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(Y.UA.ie,10)===6;var h=parseInt(Y.UA.ie,10)===7;return{go:function(){for(var j in FORMALIZE.init){FORMALIZE.init[j]();}},init:{detect_webkit:function(){if(!d){return;}Y.one("html").addClass("is_webkit");},full_input_size:function(){if(!h||!Y.all("textarea, input.input_full")){return;}Y.all("textarea, input.input_full").each(function(i){var j=Y.Node.create('');j.append(i.replace(j));});},ie6_skin_inputs:function(){if(!a||!Y.all("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/;Y.all("input").each(function(k){if(k.getAttribute("type").match(i)){k.addClass("ie6_button");if(k.disabled){k.addClass("ie6_button_disabled");}}else{if(k.getAttribute("type").match(j)){k.addClass("ie6_input");if(k.disabled){k.addClass("ie6_input_disabled");}}}});Y.all("textarea, select").each(function(k){if(k.disabled){k.addClass("ie6_input_disabled");}});},autofocus:function(){if(c||!Y.one("[autofocus]")){return;}Y.one("[autofocus]").focus();},placeholder:function(){if(e||!Y.one("[placeholder]")){return;}FORMALIZE.misc.add_placeholder();Y.all("[placeholder]").each(function(j){var l=j.getAttribute("placeholder");var k=j.ancestor("form");function i(){if(!j.get("value")||j.get("value")===l){j.set("value",l).addClass("placeholder_text");}}j.on("focus",function(){if(j.get("value")===l){j.set("value","").removeClass("placeholder_text");}});j.on("blur",function(){FORMALIZE.misc.add_placeholder();});k.on("submit",function(){if(j.get("value")===l){j.set("value","").removeClass("placeholder_text");}});k.on("reset",function(){setTimeout(FORMALIZE.misc.add_placeholder,50);});});}},misc:{add_placeholder:function(){if(e||!Y.one("[placeholder]")){return;}Y.all("[placeholder]").each(function(i){var j=i.getAttribute("placeholder");if(!i.get("value")||i.get("value")===j){i.set("value",j).addClass("placeholder_text");}});}}};})(this,this.document);Y.on("domready",function(){FORMALIZE.go();});