$(function(){
	var cartazt=$(".meudeus-center a").length;
	var cartaz=1;

	$(".meudeus-center img").css({"height":130,"width":90,"margin-top":30});
	$(".meudeus-center img:eq("+cartaz+")").css({"height":185,"width":130,"margin-top":0});
	$(".contentCol2 h3").html($(".meudeus-center img:eq("+cartaz+")").attr("alt"));

	$(".meudeus-left").click(function(){
		cartaz=cartaz==0?0:cartaz-1;
		meudeusdoceu();
	});
	$(".meudeus-right").click(function(){
		cartaz=cartaz==cartazt-1?cartazt-1:cartaz+1;
		meudeusdoceu();
	});
	function meudeusdoceu(){
		$(".meudeus-center").animate({"margin-left":(-cartaz+1)*90});
		$(".meudeus-center img").stop().animate({"height":130,"width":90,"margin-top":30});
		$(".meudeus-center img:eq("+cartaz+")").stop().animate({"height":185,"width":130,"margin-top":0});
		$(".contentCol2 h3").html($(".meudeus-center img:eq("+cartaz+")").attr("alt"));
	}
});
