function centraliza(obj){
	var posX = ($(window).width() - obj.width())/2;
	var posY = ($(window).height() - 146 - obj.height())/2 + 113;
	obj.animate({top:posY,left:posX},1000,"easeOutQuart");
}

function centralizaEstatico(obj){
	var posX = ($(window).width() - obj.width())/2;
	var posY = ($(window).height() - 146 - obj.height())/2 + 113;
	obj.css({top:posY,left:posX});
}

function posicionaSetasEstatico(obj, width_foto){
	var posX = ($(window).width() - obj.width())/2 + (width_foto)/2+15;
	var posY = ($(window).height() - 146 - obj.height())/2 + 113;
	obj.css({top:posY,left:posX});
}

function posicionaSetas(obj, width_foto){
	var posX = ($(window).width() - obj.width())/2 + (width_foto)/2+15;
	var posY = ($(window).height() - 146 - obj.height())/2 + 113;
	obj.animate({top:posY,left:posX},1000,"easeOutQuart");
}

$(document).ready(function(){
	$(document).pngFix();

	jQuery.preloadImages = function(){
		for(var i = 0; i<arguments.length; i++){
			jQuery("<img>").attr("src", arguments[i]);
		}
	}
	//anima as classes .bgPreto;
	$(".bgPreto").css('visibility','visible');
	$(".bgPretoAlt").css('visibility','visible');
	$(".bgPretoStatic").css('visibility','visible');
	$('#cont').css('visibility','visible');	
	
	$(".bgPretoStatic").css('opacity',.4);

	$(".bgPretoAlt").css('opacity',.3);
	$(".bgPretoAlt").hover(
		function(){
			$(this).fadeTo(250,.6);
		},
		function(){
			$(this).fadeTo(250,.3);
		}
	);

	$(".bgPreto").css('opacity',.4);
	$(".bgPreto").hover(
		function(){
			$(this).fadeTo(250,.7);
		},
		function(){
			$(this).fadeTo(250,.4);
		}
	);
	function mudaSecao(str){
		alert(str);
	}
	//Ações Menu:
	/*
	$("#BtPaola").click(function(event){event.preventDefault(); mudaSecao('Paola')});
	$("#BtComerciais").click(function(event){event.preventDefault(); mudaSecao('comerciais')});
	$("#BtResidenciais").click(function(event){event.preventDefault(); mudaSecao('residenciais')});
	$("#BtEmpreendimentos").click(function(event){event.preventDefault(); mudaSecao('empreendimentos')});
	$("#BtMostras").click(function(event){event.preventDefault(); ('mostras')});
	$("#BtClipping").click(function(event){event.preventDefault(); ('clipping')});
	$("#BtContatos").click(function(event){event.preventDefault(); ('contatos')});
*/

});
