$(function(){
	$('#menu a')
		.css( {backgroundPosition: "0 -36px", color: "#ffffff"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition: "(0 0)", color: "#699bce"}, {duration:400});
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition: "(0 -36px)", color: "#ffffff"}, {duration:400});
		})
	$('table#home_capacetes img')
		.css( {width: "210px"} )
		.mouseover(function(){
			$(this).stop().animate({width: "215px"}, {duration:400});
		})
		.mouseout(function(){
			$(this).stop().animate({width: "210px"}, {duration:100});
		})
});
$(function() {
	$('#antes_depois a, a.lightbox').lightBox();
	$('#banner_1, #banner_2').jshowoff({ controls: false, links: false });
});

function Redireciona(filtrocat){
		location.href=filtrocat;
}

function surgir (objeto, msg) {
		if (objeto.value == '')objeto.value = msg;
}

function limpar (objeto, msg) {
		if (objeto.value == msg)objeto.value = '';
}
	
function mostrar (objeto, msg) {
		if (objeto.value == '')objeto.value = msg;
}
function verifica(){
      
		var nome,email,telefone,mensagem;
	  
		nome = document.form.nome.value;
		email= document.form.email.value;
		telefone = document.form.telefone.value;
		mensagem = document.form.msg.value;

		if ( nome == "Digite seu nome" ){
		alert("Digite o seu nome.") ;
		document.form.nome.focus();
		document.form.nome.style.background = '#F0F0F0';
		return false ;
	    }     

		if ( email == "Digite seu e-mail" ){
		alert("Digite o seu e-mail.") ;
		document.form.email.focus();
		document.form.email.style.background = '#F0F0F0';
		return false ;
	    }

		if ( mensagem == "Digite sua mensagem." ){
		alert("Digite a mensagem.") ;
		document.form.msg.focus();
		document.form.msg.style.background = '#F0F0F0';
		return false ;
	    }     

		return true;
}

