$(function(){
	indice = 1
	$("#slide img").animate({opacity:0},1)
	$("#slide img:nth-child(" + indice + ")").animate({opacity:1},1)
	
	setInterval (function(){
		$("#slide img:nth-child(" + indice + ")").animate({opacity:0},"slow")
		indice = indice + 1
		if(indice > 4){
			indice = 1
		}
		margin = (indice - 1) * (-60)
		background = (indice - 1) * (-100)
		$("#info div:first-child").animate({marginTop:margin},"slow")
		$("#info").animate({backgroundPosition:"(0px "+background+")"},"slow")
		$("#slide img:nth-child(" + indice + ")").animate({opacity:1},"slow")
	},5000)
})
