// Java Document
//
//set image paths
src = ["/images/home/intro/s1.jpg", "/images/home/intro/s2.jpg", "/images/home/intro/s3.jpg", "/images/home/intro/s4.jpg","/images/home/intro/s5.jpg", "/images/home/intro/s6.jpg", "/images/home/intro/s7.jpg", "/images/home/intro/s8.jpg","/images/home/intro/s9.jpg", "/images/home/intro/s10.jpg", "/images/home/intro/s11.jpg"]
//set corresponding urls
url = ["http://www.dicoeonline.com", "http://www.dicoeonline.com", "http://www.dicoeonline.com", "http://www.dicoeonline.com","http://www.dicoeonline.com", "http://www.dicoeonline.com", "http://www.dicoeonline.com", "http://www.dicoeonline.com","http://www.dicoeonline.com", "http://www.dicoeonline.com", "http://www.dicoeonline.com"]
//set duration for each image
duration = 2;
//do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["Example"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
function doLink(){
location.href = url[ct];
} onload = function(){
if (document.images)
switchAd();
}
