		// Set slideShowSpeed (milliseconds)
		var slideShowSpeed = 3000
		
		// Duration of crossfade (seconds)
		var crossFadeDuration = 1
		var Pic = new Array()
		var preLoad = new Array()
		var t;
		var j = 0;
		var p;
		
		// Specify the image files
		function loadSlides()
		{
		var i = 0;
		var a=loadSlides.arguments; 
		
		for(i=0; i<a.length; i++)
   			if (a[i].indexOf("#")!=0)
				{ 
				Pic[i]=a[i];
				}
				
		p = Pic.length
		
		for (i = 0; i < p; i++)
			{
		   	preLoad[i] = new Image()
		   	preLoad[i].src = Pic[i]
			}
		}
		
		function runSlideShow()
			{
			var s2, s3, s4;
			
			s1 = j;
			s2 = j + 1;
			if (s2 > (p-1)) s2=0;
			s3 = s2 + 1;
			if (s3 > (p-1)) s3=0;
			s4 = s3 + 1;
			if (s4 > (p-1)) s4=0;
			
		   	if (document.all)
				{
				if(document.images.SlideShow1)
					{  
					document.images.SlideShow1.style.filter="blendTrans(duration=2)"
			      	document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
			      	document.images.SlideShow1.filters.blendTrans.Apply() 
					}
				
				if(document.images.SlideShow2)
					{  
					document.images.SlideShow2.style.filter="blendTrans(duration=2)"
			      	document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
			      	document.images.SlideShow2.filters.blendTrans.Apply() 
					}
				if(document.images.SlideShow3)
					{
					document.images.SlideShow3.style.filter="blendTrans(duration=2)"
		      		document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
		      		document.images.SlideShow3.filters.blendTrans.Apply() 
					}
				if(document.images.SlideShow4)
					{
					document.images.SlideShow4.style.filter="blendTrans(duration=2)"
		      		document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)"
		      		document.images.SlideShow4.filters.blendTrans.Apply() 
					}
		   		}
				
		
		   if(document.images.SlideShow1) document.images.SlideShow1.src = preLoad[s1].src;
		   if(document.images.SlideShow2) document.images.SlideShow2.src = preLoad[s2].src;
		   if(document.images.SlideShow3) document.images.SlideShow3.src = preLoad[s3].src;
		   if(document.images.SlideShow4) document.images.SlideShow4.src = preLoad[s4].src;
		   
		   if (document.all)
		   		{
		      	if(document.images.SlideShow1)document.images.SlideShow1.filters.blendTrans.Play();
				if(document.images.SlideShow2)document.images.SlideShow2.filters.blendTrans.Play();
				if(document.images.SlideShow3)document.images.SlideShow3.filters.blendTrans.Play();
				if(document.images.SlideShow4)document.images.SlideShow4.filters.blendTrans.Play();
		   		}
				
		   j = j + 1
		   if (j > (p-1)) j=0;
		   
		   t = setTimeout('runSlideShow()', slideShowSpeed)
			}