
	// END CODE THAT NEEDS TO BE PUBLISHED OUT
		
	var t
	var picIndex = 0
	var p = Pic.length
	var i = 0
	
	//this function was needed because IE and NETSCAPE determine the year differently
	function y2k(number) { return (number < 1000) ? number + 1900 : number; }
	
	var now = new Date();
    var thisYear = y2k(now.getYear());
    //var today = new Date(now.getYear(),now.getMonth(),now.getDate(), now.getHours(), now.getMinutes());
    //var today = new Date(now.getFullYear(),now.getMonth(),now.getDate(), now.getHours(), now.getMinutes());
    var today = new Date(thisYear,now.getMonth(),now.getDate(),now.getHours(),now.getMinutes());


	function runSlideShow(){
	   
	 //  if (document.all){
	 //     document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
	 //     document.images.SlideShow.filters.blendTrans.Apply();      
	 //  }
	   
	   //alert ('today= ' + today);
	   //alert ('start= ' + Start[picIndex]);
	   //alert ('end= ' + End[picIndex]);
	   
	  if ((Start[picIndex]) <= (today) && (End[picIndex]) >= (today)) {   //if banner is current, then show it
			
			document.images.SlideShow.src = Pic[picIndex].src;
			var link = document.getElementById("theLink"); 
			link.href = Links[picIndex];
			link.target = Targets[picIndex];		 
	   
		//	if (document.all){
		//		document.images.SlideShow.filters.blendTrans.Play();
		//	}
			
			t = setTimeout('runSlideShow()', 5000); 	   	
	   }else{
			t = setTimeout('runSlideShow()', 5000); 	   	
	   }
	   
	   picIndex++
	   
	   if (picIndex > (p-1)) picIndex=0
	   //	t = setTimeout('runSlideShow()', slideShowSpeed); 	   
	   
	}
///////////END SLIDESHOW CODE/////////////////////////////////	
