 // Copyright © 1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com

var i = 1;
banner1 = new Image();
banner1.src = "/banners/2010_tri_con exhibit.jpg";
banner2 = new Image();
banner2.src = "/banners/2010_tri_con sponsor.jpg";
banner3= new Image();
banner3.src = "/banners/job.jpg"
banner4= new Image();
banner4.src = "/banners/cweanom.jpg";
banner5= new Image();
banner5.src = "/banners/haiti.jpg";
banner6 = new Image();
banner6.src = "/banners/asset_mgmt.jpg";

banner7= new Image();
banner7.src = "/banners/reuse.jpg";

banner8 = new Image();
banner8.src = "/banners/enr.jpg";





links = new Array
links[1] = "http://www.wwoa-cwea.org/tri-con/2010prelim.html"
links[2] = "http://www.wwoa-cwea.org/tri-con/2010.html"
links[3] = "http://www.wwoa-cwea.org/job_bank.html"
links[4] = "http://www.wwoa-cwea.org/cwea/Award.html"
links[5] = "http://www.wwoa-cwea.org/wwoa/Haiti.pdf"
links[6] = "http://www.wwoa-cwea.org/cwea/Asset Management.html"
links[7] = "http://www.wwoa-cwea.org/cwea/LCSA_BroadRunWRF_Dec07.ppt"
links[8] = "http://www.wwoa-cwea.org/cwea/On Line Analyzer/meeting.html"






description = new Array
description[1] =" 2010 Tri-Conference Ehibitor Information"
description[2] = "2010 Tri-Conference Sponsorship Information"
description[3] = "New Job Bank Posting"
description[4] = "CWEA & WEF are seeking Nominations"
description[5] = "A letter to the members of WWOA"
description[6] = "CWEA / USEPA Asset Management Workshop"
description[7] = "LCSA Water Reuse Power Point Presentation"
description[8] = "Presentations from CWEA's O&M Committee on The Use of On-Line Analyzers for ENR"







function startTime(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=2.2;   // How many seconds til the next rotation
        Timer();

}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
                if (i < 8){     // The number is the number of banners that you have - in this case, 8
                        i++;
                        document.banner.src = eval("banner" + i + ".src");
                }
                else{
                        i = 1;
                        document.banner.src = eval("banner" + i + ".src");
                }
                startTime();
        }
        else{
                window.setTimeout("Timer()",1000)}

}

function clickLink(){
        top.location = links[i]
}

function descript(){
        window.status = description[i]
}

