
$(document).ready(function(){$("#conteudo form").validar();$(".representantes #conteudo dl").faq();$("#fundo").slides(6);$("#menu ul").menu();$("#marcas li").each(function(){var objeto=$(this);var legenda=objeto.find("p").css("opacity","0");objeto.hover(function(){legenda.stop().animate({"opacity":1});},function(){legenda.stop().animate({"opacity":0});});});layout.menus();layout.montar();});$(window).bind("resize",function(){layout.montar();});var layout={menus:function(){$("#menu").css("top",$("#menu").outerHeight()*(-1)).animate({"top":0});$("#marcas").css("bottom",$("#marcas").outerHeight()*(-1)).animate({"bottom":0});},conteudo:function(){$("#conteudo").css("height","auto");if($("#conteudo").outerHeight()<$("body").height()){var altura=$("body").height()-240;$("#conteudo").css("height",altura);}},montar:function(){$("#fundo img").fullscreen();layout.conteudo();}}
