//set duration for each image
duration = 7;

//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["Ad_Image"].src = ads[ct=n].src;
        x = document.getElementById('desc');
        x.innerHTML=desc[n];

        x = document.getElementById('name');
        x.innerHTML=name[n];

    }
    
    ads[n=(ct+1)%src.length] = new Image;

    ads[n].src = src[n];
   
    setTimeout("switchAd()",duration*1000);
}

onload = function()
{
    if (document.images)
        switchAd();
}

