// following two functions kindly provided by Jonathan Howard
$.fn.pause = function(milli,type) {
	milli = milli || 1000;
	type = type || "fx";
	return this.queue(type,function(){
		var self = this;
		setTimeout(function(){
			$.dequeue(self);
		},milli);
	});
};

$.fn.clearQueue = $.fn.unpause = function(type) {
	return this.each(function(){
		type = type || "fx";
		if(this.queue && this.queue[type]) {
			this.queue[type].length = 0;
		}
	});
};
 
/////////// 
 
 
 $(document).ready(function(){
   
   // stops the hourglass mouse pointer flicker
   if ( $.browser.msie )
 document.execCommand("BackgroundImageCache", false, true) 
   
 
	 
	$('#pic1').hide();
	$('#pic2').hide();
	$('#pic3').hide();
	$('#pic4').hide();
	$('#pic5').hide();
	$('#pic6').hide();
	$('#pic7').hide();
	$('#pic8').hide();
	$('#pic9').hide();
	
	 
    
    // trigger off the fading
	 setTimeout("fade()", 10);
   
 });
	 
	
	 

 

function fade()
{
	setTimeout("fade()", 48000);
	
	 
	$('#pic1').pause(1000).fadeIn(1500) ;
	$('#pic2').pause(3000).fadeIn(1500) ;
	$('#pic3').pause(5000).fadeIn(1500) ;
	$('#pic4').pause(7000).fadeIn(1500).pause(34000).fadeOut(1500);	
	$('#pic5').pause(9000).fadeIn(1500).pause(30000).fadeOut(1500);	
	$('#pic6').pause(11000).fadeIn(1500).pause(26000).fadeOut(1500);
	$('#pic7').pause(13000).fadeIn(1500).pause(22000).fadeOut(1500);	
	$('#pic8').pause(15000).fadeIn(1500).pause(18000).fadeOut(1500);
	$('#pic9').pause(17000).fadeIn(1500).pause(14000).fadeOut(1500);
	
	$('#pic10').pause(19000).fadeIn(1500).pause(10000).fadeOut(1500);	
	$('#pic11').pause(21000).fadeIn(1500).pause(6000).fadeOut(1500);
	$('#pic12').pause(23000).fadeIn(1500).pause(2000).fadeOut(1500);
	

 	

 

}
	


