$(document).ready(function(){
	
	
	$('#home-slideshow li:first img').imgpreload(function(){
		$('#home-slideshow li:first').fadeIn(1500);
		setTimeout(function(){ homeSlideShow(1500,6000); },12000);
	});
	
	
});


function homeSlideShow(animTime, waitTime){
	
	setTimeout(function(){
		$('#home-slideshow li:first').fadeOut(animTime,function(){
			$(this).appendTo('#home-slideshow',function(){ $(this).remove(); });
			homeSlideShow(animTime,(waitTime));
		});
		$('#home-slideshow li:eq(1)').fadeIn(animTime);
	},waitTime);
}
