 // 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 info.jpg";
banner2= new Image();
banner2.src = "/banners/101910.jpg"
banner3= new Image();
banner3.src = "/banners/job_bank.jpg";

banner4 = new Image();
banner4.src = "/banners/eco-letter_on-line.jpg";

banner5= new Image();
banner5.src = "/banners/comar.jpg";





links = new Array
links[1] = "http://www.wwoa-cwea.org/tri-con/2010 Tri-Con Main.html"
links[2] = "http://www.wwoa-cwea.org/cwea/101910.htm"
links[3] = "http://www.wwoa-cwea.org/cwea/job_bank.html"

links[4] = "http://www.wwoa-cwea.org/eco-letter/eco-letter.html"
links[5] = "http://www.wwoa-cwea.org/COMAR/COMAR 26.html"







description = new Array
description[1] =" 2010 Tri-Conference Information"
description[2] = "Stormwater Issues Around the Bay"
description[3] = "Job Bank"

description[4] = "Eco-Letter Online"
description[5] = "COMAR 26.06.01.00. Title 26"







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 < 5){     // The number is the number of banners that you have - in this case, 5
                        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]
}

