//set image paths
src = ["img/omg_sharks!.jpg", "img/omg_stryker1.jpg","img/omg_deathstar!.jpg", "img/omg_m1a11.jpg", "img/omg_dam!.jpg", "img/omg-wood2.jpg", "img/omg_m60a1.jpg", "img/omg_yoda!.jpg"]


//set corresponding urls
url = ["layout1.html", "layout2.html", "products.html"]

//set duration for each image
duration = 4;

//Please 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["gogo_slideshow"].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();
}