$(document).ready(function()
{
	//Abre e fecha menu					   
	$("ul.box:not(:first)").hide();
	$.each($('ul.box'), function(){
		var cookie = $.cookie("ckCV");
		if(cookie === null || String(cookie).length < 1) {
			$('#' + this.id + '.expandfirst ul:first').show();			
		}
		else {			

			$('#' + this.id + ' .' + cookie).next().show();
		}
	});
	$(this).toggleClass("corrente");
	$("#cats h3").click(function()
	{	
		$(this).next("ul.box").slideToggle("slow")
		.siblings("ul.box:visible").slideUp("slow");
		$(this).toggleClass("corrente");
		$(this).siblings("#cats h3").removeClass("corrente");
		return false;
	});
		
});

//Efeito nas imagens
	$("#cats img").hover(function () {
		$(this).fadeTo("slow", 0.4)
		},
						function () {
         $(this).fadeTo("slow", 1);
	});