// JavaScript Document
var n_imglist;
var n_imgID;

	function setNSwitchImgLoop(){
		n_imglist=new Array();
		$(".n_switchimg").each(function() {
			n_imglist.push($(this));
		});
		$(".n_switchimg").hide();
		
		var i = n_imglist.length;
		while(i){
			var j = Math.floor(Math.random()*i);
			var t = n_imglist[--i];
			n_imglist[i] = n_imglist[j];
			n_imglist[j] = t;
		}
		n_imgID=0;
		switchNImgLoop();
		timerID = setInterval("switchNImgLoop()", 6500);
	}

function switchNImgLoop(){
	n_imglist[n_imgID].fadeOut(1600,function(){
	
	n_imgID=(n_imgID+1)%n_imglist.length;
	n_imglist[n_imgID].fadeIn(1600);
	
	});
}

$(document).ready(setNSwitchImgLoop);

