
var currentIndex=0;

$(function(){
	$($('.imge').get(currentIndex)).css('opacity',1);
	setTimeout('nextImage()',4000);
})

function nextImage(){
	$($('.imge').get(currentIndex)).animate({'opacity':0},1000,function(){
		if(currentIndex == $('.imge').size() - 1)
		{
			currentIndex = -1;
		}
		currentIndex++;
		$($('.imge').get(currentIndex)).animate({'opacity':1},1000);
	})
	setTimeout('nextImage()',4000);
}
