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=parseInt(dojo.isIE,10)===6;var h=parseInt(dojo.isIE,10)===7;return{go:function(){for(var j in FORMALIZE.init){FORMALIZE.init[j]();}},init:{detect_webkit:function(){if(!d){return;}dojo.query("html").addClass("is_webkit");},full_input_size:function(){if(!h||!dojo.query("textarea, input.input_full").length){return;}dojo.query("textarea, input.input_full").forEach(function(j){var k=j.cloneNode(false);var i=b.createElement("span");i.className="input_full_wrap";i.appendChild(k);j.parentNode.replaceChild(i,j);});},ie6_skin_inputs:function(){if(!a||!dojo.query("input, select, textarea").length){return;}var i=/button|submit|reset/;var j=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;dojo.query("input").forEach(function(k){if(k.getAttribute("type").match(i)){dojo.addClass(k,"ie6_button");if(k.disabled){dojo.addClass(k,"ie6_button_disabled");}}else{if(k.getAttribute("type").match(j)){dojo.addClass(k,"ie6_input");if(k.disabled){dojo.addClass(k,"ie6_input_disabled");}}}});dojo.query("textarea, select").forEach(function(k){if(k.disabled){dojo.addClass(k,"ie6_input_disabled");}});},autofocus:function(){if(c||!dojo.query("[autofocus]").length){return;}dojo.query("[autofocus]")[0].focus();},placeholder:function(){if(e||!dojo.query("[placeholder]").length){return;}FORMALIZE.misc.add_placeholder();dojo.query("[placeholder]").forEach(function(i){dojo.connect(i,"onfocus",function(){var j=i.getAttribute("placeholder");if(i.value===j){i.value="";dojo.removeClass(i,"placeholder_text");}});dojo.connect(i,"onblur",function(){FORMALIZE.misc.add_placeholder();});});dojo.query("form").forEach(function(i){dojo.connect(i,"onsubmit",function(){dojo.query("[placeholder]",i).forEach(function(j){var k=j.getAttribute("placeholder");if(j.value===k){j.value="";dojo.removeClass(j,"placeholder_text");}});});dojo.connect(i,"onreset",function(){setTimeout(FORMALIZE.misc.add_placeholder,50);});});}},misc:{add_placeholder:function(){if(e||!dojo.query("[placeholder]").length){return;}dojo.query("[placeholder]").forEach(function(i){var j=i.getAttribute("placeholder");if(!i.value||i.value===j){i.value=j;dojo.addClass(i,"placeholder_text");}});}}};})(this,this.document);dojo.addOnLoad(function(){FORMALIZE.go();});