function val_newsletter(){
d=document.newsletter
if(d.f_nome.value ==""||d.f_nome.value=='nome'){
alert("Por favor, informe seu nome")
d.f_nome.focus();
return false;
}
if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(d.f_email.value))) {
		alert("Preencha corretamente o campo E-mail! - verifique se não há espaço em branco após o endereço");
		d.f_email.focus();
		return false;
	}
return true;
}
/*** 
        Simple jQuery Slideshow Script
        Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
    ***/
function slideSwitch() {
        var $active = $('#slideshow IMG.active');    
        if ( $active.length == 0 ) $active = $('#slideshow IMG:last');    
        // use this to pull the images in the order they appear in the markup
        var $next =  $active.next().length ? $active.next()
            : $('#slideshow IMG:first');    
        // uncomment the 3 lines below to pull the images in random order        
        // var $sibs  = $active.siblings();
        //var rndNum = Math.floor(Math.random() * $sibs.length );
        //var $next  = $( $sibs[ rndNum ] );
		     
        $active.addClass('last-active');    
        $next.css({opacity: 0.0})
            .addClass('active')
            .animate({opacity: 1.0}, 1000, function() {
                $active.removeClass('active last-active');
            });
    }    
    $(function() {
        setInterval( "slideSwitch()", 4000 );
    });

$(document).ready(function(){
	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
	$("a").click(function(){
		$(this).blur();
	});
	
	//When mouse rolls over
	$("#menu li").mouseover(function(){
		$(this).stop().animate({height:'100px'},{queue:false, duration:1000, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("#menu li").mouseout(function(){
		$(this).stop().animate({height:'33px'},{queue:false, duration:400, easing: 'easeOutBounce'})
	});
	
});
