function mainFadeIn () {

	$('#main').fadeIn('slow');

	$('#studio,#domingoestarque,#contato').animate({ opacity: "0.5" }, 1 ); 
	$('#portfolio').css("background-image", "url(images/portfolio_selected.png)");
	$('#portfolio').addClass("selected");
	
	// fade-in leftMenu
	$("#leftMenu").animate({ top: "-440px", opacity: 0 }, 1 );
	$('#logo,#studio,#domingoestarque,#portfolio,#contato').animate({ left: "-205px" }, 1 );
		
	$("#leftMenu").animate({ top: "0px", opacity: 1 }, 1200 );

	// show leftMenu Itens
	
	
	$('#logo').delay(1200).fadeIn('slow');
	$("#studio").delay(1000).animate({ left: 0 }, 1000 );
	$("#domingoestarque").delay(1300).animate({ left: 0 }, 1000 );
	$("#portfolio").delay(1500).animate({ left: 0 }, 1000 );
	$("#contato").delay(1700).animate({ left: 0 }, 1000 );
	$('#marcadagua').delay(1800).fadeIn('slow');

	
	
	// set thumbs opacity to 0
	$(".thumbs").animate({ opacity: 1 }, 1 );
	$(".first").animate({ opacity: 0 }, 1 );
	$("#page1").show();
//	$(".firstRoll").animate({ opacity: 0 }, 1 );
//	$(".secondRoll").animate({ opacity: 0 }, 1 ).delay(3500);
//	$(".thirdRoll").animate({ opacity: 0 }, 1 ).delay(3500);
	
	// slide rightBlock in
	
	$("#rightBlock").delay(2500).animate({ left: 0 }, 1200 );
	
	
	// pop-up every thumb
	$(".first").delay(2000).each(function (index) { 
	     $(this).delay(index*200).animate({
			width: "85px",
			height: "130px",
			opacity: 1
		}, 500 );
	   });

// leftMenu

$('#studio,#domingoestarque,#contato, #portfolio').hover(function () {
	if (!$(this).hasClass('selected')) {
		$(this).animate({ opacity: "1" }, 1 );
	} 
	},
	function () {
		if (!$(this).hasClass('selected')) {
			$(this).animate({ opacity: "0.5" }, 1 ); 
		}
		}
);

$("#studio,#domingoestarque,#contato, #portfolio").click(function() {
	$("#studio,#domingoestarque,#contato, #portfolio").removeClass('selected');
	$("#studio").css("background-image", "url(images/studio.png)");
	$("#domingoestarque").css("background-image", "url(images/domingoestarque.png)");
	$("#portfolio").css("background-image", "url(images/portfolio.png)");
	$("#contato").css("background-image", "url(images/contato.png)");	
	myIMG = $(this).css("background-image");
	myIMG = myIMG.replace(".png", "_selected.png");
	$(this).css("background-image", myIMG);
	$(this).addClass("selected");
	$("#studio,#domingoestarque,#contato, #portfolio").not(".selected").animate({ opacity: "0.5" }, 1 );
})



// lightbox

$(function() { $('a.foods').lightBox() });
$(function() { $('a.location').lightBox() });	
$(function() { $('a.panorama').lightBox() });
$(function() { $('a.people').lightBox() });	
$(function() { $('a.products').lightBox() });	
$(function() { $('a.cosmetics').lightBox() });	   
}


