﻿    /* you must supply your own immages */
    var bgimages = new Array()
    bgimages[0] = "images/iwwfa_web_1home.png"
    bgimages[1] = "images/iwwfa_web_2home.png"
    bgimages[2] = "images/iwwfa_web_3home.png"
    bgimages[3] = "images/iwwfa_web_4home.png"
    bgimages[4] = "images/iwwfa_web_5home.png"
    bgimages[5] = "images/iwwfa_web_6home.png"

    //preload images
    var pathToImg = new Array()
    for (i = 0; i < bgimages.length; i++) {
        pathToImg[i] = new Image()
        pathToImg[i].src = bgimages[i]
    }
    var inc = -1
    function bgSlide() {
        if (inc < bgimages.length - 1)
            inc++
        else
            inc = 0
        document.body.background = pathToImg[inc].src
    }
    if (document.all || document.getElementById) {
        window.onload = new Function('setInterval("bgSlide()",3000)')
        document.body.background = "images/iwwfa_web_6home.png"
    
    }
