var FORMALIZE=(function(f,b,g){var e="placeholder" in b.createElement("input");var c="autofocus" in b.createElement("input");var d="webkitAppearance" in b.createElement("select").style;var a=Ext.isIE6;var h=Ext.isIE7;return{go:function(){for(var j in FORMALIZE.init){FORMALIZE.init[j]();}},init:{detect_webkit:function(){if(!d){return;}Ext.get(Ext.query("html")).addClass("is_webkit");},full_input_size:function(){if(!h||!Ext.query("textarea, input.input_full")){return;}Ext.each(Ext.query("textarea, input.input_full"),function(i){Ext.get(i).wrap('');});},ie6_skin_inputs:function(){if(!a||!Ext.query("input, select, textarea")){return;}var i=/button|submit|reset/;var j=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;Ext.each(Ext.query("input"),function(k){if(k.getAttribute("type").match(i)){Ext.get(k).addClass("ie6_button");if(k.disabled){Ext.get(k).addClass("ie6_button_disabled");}}else{if(k.getAttribute("type").match(j)){Ext.get(k).addClass("ie6_input");if(k.disabled){Ext.get(k).addClass("ie6_input_disabled");}}}});Ext.each(Ext.query("textarea, select"),function(k){if(k.disabled){Ext.get(k).addClass("ie6_input_disabled");}});},autofocus:function(){if(c||!Ext.query("[autofocus]")){return;}Ext.query("[autofocus]")[0].focus();},placeholder:function(){if(e||!Ext.query("[placeholder]")){return;}FORMALIZE.misc.add_placeholder();Ext.each(Ext.query("[placeholder]"),function(j){var l=j.getAttribute("placeholder");var k=Ext.get(j).parent("form");function i(){if(!j.value||j.value===l){j.value=l;Ext.get(j).addClass("placeholder_text");}}Ext.get(j).on("focus",function(){if(j.value===l){j.value="";Ext.get(j).removeClass("placeholder_text");}});Ext.get(j).on("blur",function(){FORMALIZE.misc.add_placeholder();});k.on("submit",function(){if(j.value===l){j.value="";Ext.get(j).removeClass("placeholder_text");}});k.on("reset",function(){setTimeout(FORMALIZE.misc.add_placeholder,50);});});}},misc:{add_placeholder:function(){if(e||!Ext.query("[placeholder]")){return;}Ext.each(Ext.query("[placeholder]"),function(i){var j=i.getAttribute("placeholder");if(!i.value||i.value===j){i.value=j;Ext.get(i).addClass("placeholder_text");}});}}};})(this,this.document);Ext.onReady(function(){FORMALIZE.go();});