$(document).ready(function(){
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	//Remove outline from links
	$("#menu a").click(function(){
		$(this).blur();
	});
	
	//When mouse rolls over
	$("#menu a").mouseover(function(){
		$(this).stop().animate({height:'65px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("#menu a").mouseout(function(){
		$(this).stop().animate({height:'25px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
});
/*
$(document).ready(function () {
    var url = window.location.pathname,
        urlRegExp = new RegExp(url.replace(/\/$/,''));
		$('#menu a').each(function(){
            if(urlRegExp.test(this.href)){
                $(this).addClass('atual');
			  	$("#menu a").mouseout(function(){
			  		$(this).stop().animate({height:'25px'},{queue:false, duration:600, easing: 'easeOutBounce'})
			  	});
  				$().removelClass('atual');
            }
        });
});
*/
$(document).ready(function () {

    var url = window.location.href; 

    $('#menu a').each(function(){
           if(this.href == url){
                $(this).addClass('atual');
            }
     });
});
