$(document).ready(function(){
$('#tabs div').hide(); // Hide all divs
$('#tabs div:first').show(); // Show the first div
$('#tabs ul li:first').addClass('active'); // Set the class of the first link to active
$('#tabs ul li a').click(function(){ //When any link is clicked	
$('#tabs div').stop(); // evita o efeito multi-click
$('#tabs ul li').removeClass('active'); // Remove active class from all links
$(this).parent().addClass('active'); //Set clicked link class to active
var currentTab = $(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link
$('#tabs div:visible').fadeOut('normal',function(){ //fade out visible div
$(currentTab).fadeIn('normal') //fade in target div
});return false;
});
});

jQuery(document).ready(function(){

	//Caption Sliding INQUÉRITO(Partially Hidden to Visible)
	jQuery('.boxgrid.caption').hover(function(){
		jQuery(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});			
	}, function() {
		jQuery(".cover", this).stop().animate({top:'190px'},{queue:false,duration:160});
	});
	
	jQuery('.boxgrid2.caption').hover(function(){
		jQuery(".cover", this).stop().animate({top:'60px'},{queue:false,duration:160});			
	}, function() {
		jQuery(".cover", this).stop().animate({top:'190px'},{queue:false,duration:160});
	});
});

