function cycleAds()
{
    if (document.images)
    {
        if (document.adBanner.complete)
        {
            if (++thisAd == adImages.length)
                thisAd = 0;
 
            document.adBanner.src = adImages[thisAd];
        }
    }
 
    // change to next banner every 7seconds
    setTimeout("cycleAds()", 11300);
}
 
// This function is used to direct the user to the website when
// the user clicks on a particular banner image.
 
function gotoAd()
{
    document.location.href = adURLs[thisAd];
}
