// JavaScript Document
if (document.images)
{

    adImagesLife = new Array("/images/buttons/home/lifeco/101.gif",
						 "/images/buttons/home/lifeco/102.gif",
                         "/images/buttons/home/lifeco/103.gif");

    adURLsLife = new Array("/info/fish/flex_account.html",
					   "/info/fish/esp.html",
                       "/info/products/health/individual_health.html");
    thisAdLife = 0;
}

// The following function cycles through each banner image.
// Notice the use of the variable thisAd to go from 0 to 2 and then
// back to 0. JavaScript has an object called document whose
// member adBanner can be set to the current banner to display.

function cycleAdsLife()
{
    if (document.images)
    {
        if (document.adBannerLife.complete)
        {
            if (++thisAdLife == adImagesLife.length)
                thisAdLife = 0;

            document.adBannerLife.src = adImagesLife[thisAdLife];
        }
    }

    // change to next banner every 15 seconds
    setTimeout("cycleAdsLife()", 12600);
}

// This function is used to direct the user to the website when
// the user clicks on a particular banner image.

function gotoAdLife()
{
    document.location.href = "http://" + location.hostname + adURLsLife[thisAdLife];
}