// JavaScript Document
var imglist;
var imgID;

	function setSwitchImgLoop(){
		imglist=new Array();
		$(".switchimg").each(function() {
			imglist.push($(this));
		});
		$(".switchimg").hide();
		
		var i = imglist.length;
		while(i){
			var j = Math.floor(Math.random()*i);
			var t = imglist[--i];
			imglist[i] = imglist[j];
			imglist[j] = t;
		}
		imgID=0;
		switchImgLoop();
		timerID = setInterval("switchImgLoop()", 8000);
	}

function switchImgLoop(){
	imglist[imgID].fadeOut(1600,function(){
	
	imgID=(imgID+1)%imglist.length;
	imglist[imgID].fadeIn(1600);
	
	});
}

$(document).ready(setSwitchImgLoop);
