<!--
	

	var Timeout, TimeoutPeriod = 3000, Interval, Alpha = 100, Index = 0;
	var imgArr = new Array();
	

	imgArr.push("6.jpg");
	imgArr.push("14.jpg");
	imgArr.push("1.jpg");
	imgArr.push("23.jpg");
	imgArr.push("11.jpg");
	imgArr.push("9.jpg");
	imgArr.push("17.jpg");
	imgArr.push("22.jpg");
	imgArr.push("19.jpg");
	imgArr.push("4.jpg");
	imgArr.push("8.jpg");
	imgArr.push("12.jpg");
	imgArr.push("10.jpg");
	imgArr.push("25.jpg");
	imgArr.push("5.jpg");
	imgArr.push("13.jpg");
	imgArr.push("21.jpg");
	imgArr.push("24.jpg");
	imgArr.push("18.jpg");
	imgArr.push("3.jpg");
	imgArr.push("2.jpg");
	imgArr.push("20.jpg");
	imgArr.push("15.jpg");
	imgArr.push("16.jpg");
	imgArr.push("7.jpg");

	// preload images to ensure smooth transitions
	var preLoad = new Array();
	function preLoadImgs () { 
		for (i = 0; i < imgArr.length; i++) {
			preLoad[i] = new Image();
			preLoad[i].src = "/images/nav_anim/"+imgArr[i];
		}
		// shuffle image order
		preLoad.shuffle();		
		rndImage();
	}

	
	var preLoadLen = preLoad.length;
	
	
	function rndImage() {
		
		clearTimeout(Timeout);
		
		if (Index >= preLoadLen) {
			Index = 0;
			// shuffle image order
			preLoad.shuffle();
			
			// prevent the same image showing twice in a row
			var srcStr = document.getElementById("imgDiv").style.backgroundImage;
			if (srcStr.substring(4, srcStr.length-1) == preLoad[0].src) {
				var First = preLoad.shift();
				preLoad.push(First);
			}
		}
		
		var	File = preLoad[Index].src;
	
		if (document.getElementById("imgHolder").src == '') {
			// first rotation just load an image
			document.getElementById("imgHolder").src = File;
			document.getElementById("imgDiv").style.backgroundImage = "url("+File+")";
		} else {	
			// copy background img to the front
			var srcStr = document.getElementById("imgDiv").style.backgroundImage;
			document.getElementById("imgHolder").src = srcStr.substring(4, srcStr.length-1);
			
			// change front img opacity to 100
			changeOpac(100, "imgHolder");			
			
			// rotate the background img
			document.getElementById("imgDiv").style.backgroundImage = "url("+File+")";			
			
			// blend it
			Interval = setInterval("blendOpac(\"imgHolder\")", 1);

		}
		
		// increment preload array index
		Index++;
		
		// repeat function
		Timeout = setTimeout("rndImage()", TimeoutPeriod);
	}
	
	// does transition from opacity 100 - 0
	function blendOpac(id) {
		// the increment value can be altered to speed up transition
		Alpha = Alpha - 4;
		changeOpac(Alpha, id);
		if (Alpha <= 0) {
			clearInterval(Interval);
			Alpha = 100;
			return false;
		}
	}

	// cross browser opactiy switching
	function changeOpac(opacity, id) {
	 
		var object = document.getElementById(id).style; 
		object.opacity = (opacity / 100); 
		object.MozOpacity = (opacity / 100); 
		object.KhtmlOpacity = (opacity / 100); 
		object.filter = "alpha(opacity=" + opacity + ")"; 
	} 


	function showStatus (str) {
			window.status = str;
			return true;
	}
	
	
//-->
