Cufon.replace("#content > header h1, .list-gray-style li, #empresa-lateral h3, nav.fantasias-cat li, nav#store-cats li");jQuery(function(b){b(".cbox").colorbox({scrolling:false,maxWidth:"95%",maxHeight:"90%",title:function(){var d=null;if(b(this).attr("data-title")){d=b(this).attr("data-title")}else{if(b(this).attr("title")){d=b(this).attr("title")}}return d}});function a(d,j){var g=b(d),e=g.size()-j,h="",f=1;e>0&&e<j&&(e=g.size()-e);b.each(g,function(i){h+=(f==j&&!(f=0))?"right":"";h&&b(this).addClass(h);h="";++f})}a("#empresa-lateral .grid > li",4);a("#temas-list > li",4);a("#cenarios-list > li",5);function c(e,d){b("input, textarea, select, button",e).not(".no-uniform").uniform().addClass("no-uniform");if(d){return}b("label",e).bind("hideLabel",function(){var g=b(this),f=b(":input",g.parent());f.is(":focus")&&g.addClass("focus");f.size()&&f.val().length>0?g.hide():g.fadeTo(0,0.3)}).bind("showLabel",function(){var g=b(this),f=b(":input",g.parent());if(f.size()&&!(f.val().length>0||f.is(":focus"))){g.removeClass("focus");g.is(":visible")?g.fadeTo(0,1):g.show()}else{g.trigger("hideLabel")}});b(":input, label",e).bind("focus mouseenter",function(){(this.tagName=="label"?b(this):b("label",b(this).parent())).trigger("hideLabel")}).bind("mouseleave blur",function(){(this.tagName=="label"?b(this):b("label",b(this).parent())).trigger("showLabel")}).not("label").keypress(function(){b("label",b(this).parent()).hide()});b("label",e).disableSelection().trigger("showLabel")}c("#contato");c("#user_edit_profile,form#login,form#register",true)});
