			/*
			Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com)
			For this script and more, visit http://www.javascriptkit.com
			*/
			
			var delay=6500 //set delay in milliseconds
			var curindex=0
			
			var randomimages=new Array()
			
				randomimages[0]="http://www.ecotrust.org/images/mastheads/DSC_0052.jpg"
				randomimages[1]="http://www.ecotrust.org/images/mastheads/IMG_0538.jpg"
				randomimages[3]="http://www.ecotrust.org/images/mastheads/L1020989.jpg"
				randomimages[4]="http://www.ecotrust.org/images/mastheads/L1010669.jpg"
				randomimages[5]="http://www.ecotrust.org/images/mastheads/L1040440.jpg"
				randomimages[6]="http://www.ecotrust.org/images/mastheads/Gardner_Canal_BC.jpg"
			
			var preload=new Array()
			
			for (n=0;n<randomimages.length;n++)
			{
				preload[n]=new Image()
				preload[n].src=randomimages[n]
			}
			
			document.write('<img name="defaultimage" src="'+randomimages[Math.floor(Math.random()*(randomimages.length))]+'">')
			
			function rotateimage()
			{
			
			if (curindex==(tempindex=Math.floor(Math.random()*(randomimages.length)))){
			curindex=curindex==0? 1 : curindex-1
			}
			else
			curindex=tempindex
			
				document.images.defaultimage.src=randomimages[curindex]
			}
			
			setInterval("rotateimage()",delay)