			var ready1 = false;
			var numpics = 6;
			var ext = ".JPG"
			//if (screen.height <= 768 && screen.width <= 1024) {
			//ext = "Low.JPG";}

			var slidepic = new Array();
			var idx = 0;
			for (idx = 1; idx < numpics; idx++){
			if (idx < 10){
			slidepic[idx] = 'images/SlidePic0' + idx + ext;}
			else{
			slidepic[idx] = 'images/SlidePic' + idx + ext;}
			}

			var picnum = 0;
			var picH = 0;
			var pidx = slidepic.length-1;
			var timeout1 = 0;
			var timeout2 = 0;
			var started = 0;

			var LoadImages = new Array();
			for (idx = 1; idx < pidx+1; idx++){
			LoadImages[idx] = new Image();
			LoadImages[idx].src = slidepic[idx];
			}
			ready1=true;

			function changepic(){
			if (document.images){
			if (picnum==pidx) picnum = 0;
			picnum = picnum + 1;

			var canBeFiltered=false;
				if (document.images.slidepic && document.images.slidepic.style && 
				document.images.slidepic.style.filters)
				{
				canBeFiltered=true;
				target=document.images.slidepic;
				}
				if (document.getElementById("slidepic"))
				{
				target= document.getElementById("slidepic");
				canBeFiltered=true;
				}
						
				if (ready1)
				{
				if (canBeFiltered)
				{
					target.style.filter="blendTrans(duration=1.0)";
				if (target.filters && target.filters[0])
					{
					target.filters[0].Apply();
					target.filters[0].Play();
					}
				} 
				// SWAP IMAGE
				started = 1;
				document.images.slidepic.src=LoadImages[picnum].src;
//				document.images.slidepic.title = "Click to Stop Slideshow";
				}

			if (timeout1 > 0) clearTimeout(timeout1);
			timeout1 = setTimeout("changepic()",4000);
			}
			}

			function startstop(){
			if (ready1){
			document.images.slidepic.src = LoadImages[picnum].src;
			if (started == 1){
			clearTimeout(timeout1);
			started = 0;
//			document.images.slidepic.title = "Click to Start Slideshow";
			}
			else{
//			document.images.slidepic.title = "Click to Stop Slideshow";
			started = 1;
			changepic();}
			}
			}


