// JavaScript Document

$(function(){
		   
	$('.menu li a').hover(function()
			{
			
			

			$('.menu li a')
			.stop()
						   
			var bubble = "<div></div>";
				if (jQuery.support.opacity)
				{
					$(this).append(bubble)
					.children('div').animate({opacity: "show", top: "28"}, "fast")
					
				} else {
					$(this).append(bubble)
					.children('div')
					
					.animate({top: "28"}, "slow")
					.show();
				}
			}	
			
	  	 ,function()
		 {
		 	$(this)
		 	.children('div')
			
			.animate({top: "28", opacity: "hide"}, "fast")
			.remove();
			$('.menu li a')
			.stop()


		}
	
	)
	
	$('.menu li a').hover(function()
			{
			$(this).css('background-color', '#F79239')
			$(this).css('color', '#ffffff')	
        }, function() {
        $(this).css('background-color', '')
		$(this).css('color', '#333333')	
    }

		)
})




function enviardados(){
if(document.newsletter.nome.value=="" || document.newsletter.nome.value.length < 3 || document.newsletter.nome.value=="Digite o seu nome")
{
alert( "Por favor preencha o campo Nome correctamente!" );
document.newsletter.nome.focus();
return false;
}


if( document.newsletter.email.value=="" || document.newsletter.email.value.indexOf('@')==-1 || document.newsletter.email.value.indexOf('.')==-1 )
{
alert( "Por favor preencha o campo Email correctamente!" );
document.newsletter.email.focus();
return false;
}


return true;
}
