function cycleImages(){
	var $active = $('#home_slides .active');
  var $next = ($('#home_slides .active').next().length > 0) ? $('#home_slides .active').next() : $('#home_slides img:first');
  $next.css('z-index',2);//move the next image up the pile
	$active.fadeOut(1500,function(){//fade out the top image
		$active.css('z-index',1).show().removeClass('active');//reset the z-index and unhide the image
	  $next.css('z-index',3).addClass('active');//make the next image the top one
  });
}

$(document).ready(function(){
	// run every 7s
	setInterval('cycleImages()', 3200);
	
});
