$(function(){
	
	//hide all but the first
	$('.image_home').hide()
	$('.image_home:first').show().addClass("current_image")
	
	count = 0
	
	setTimeout("fade_images()", 6000)
	
})

function fade_images(){
	
	if(count == $('.image_home').length){
		count = 0
	}
	
	
	$('.current_image').fadeOut(function(){
		count ++
		$(this).removeClass("current_image")
		$('.image_home:nth-child('+count+')').fadeIn().addClass("current_image")
	})
	
	
	

	setTimeout("fade_images()", 6000)
	
}