<!--
/******************************************************************
* Script by FPMC at http://jsarchive.8m.com
* Submitted to JavaScript Kit (http://javascriptkit.com)
* For this and 400+ free scripts, visit http://javascriptkit.com
* 10/29/2005 I added onmouseover image pause
*******************************************************************/
//set duration for each image
var duration = 5;
var bPause = false;

//Please do not edit below
ads=[]; ct=0;

// 	preload images
    for(i=ct; i<src.length; i++){
        ads[i] = new Image();
        ads[i].src = src[i];
    }

// Image rotator
function switchAd(){

		var n=(ct+1)%src.length;
		//var n = Math.floor(src.length*Math.random());

		if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
			if (!bPause){
				document["Ad_Image"].src = ads[ct=n].src;
			}
		}
		ads[n=(ct+1)%src.length] = new Image(140,113);
		ads[n].src = src[n];
		
		setTimeout("switchAd()",duration*1000);
		
}

// Hyper link
function doLink(){
	location.href = url[ct];
} 

//	Image pause
	function pause(){
		bPause=true;
		return true;
	}

	function resume(){
		bPause=false;
		return true;
	}
//	Start
window.onload = function(){
	if (document.images){
	switchAd();
	}
}
// -->
