
img_name = "Ad_Image";
//set image paths
path = "Animation/";
//set image array
src = [ "1.jpg", "1f.jpg", "2.jpg", "2f.jpg", "3.jpg", "3f.jpg" ]

//set duration for each image
duration = 2;
autoShow = 1;
stopShow = 0;

//Please do not edit below
ads=[]; ct=0;
function switchNext() {
    if (stopShow) return true;
	var n=(ct+1)%src.length;
	if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
		document[img_name].src = ads[ct=n].src;
	}
	ads[n=(ct+1)%src.length] = new Image;
	ads[n].src = path + src[n];
    if (autoShow)
		setTimeout("switchNext()",duration*1000);
}

onload = function() {
	if (document.images)
		switchNext();
}
//-->
