<!-- Hide from old browsers
// Copyright &copy; 1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com

iright = 6 // Number of banners that you have
bannerright1 = new Image();
bannerright1.src = "http://www.fractions.ca/banners/port-stanton-right.gif";
bannerright2 = new Image();
bannerright2.src = "http://www.fractions.ca/banners/wolfe-springs-right.gif";
bannerright3 = new Image();
bannerright3.src = "http://www.fractions.ca/banners/diamondsedge-right.gif";
bannerright4 = new Image();
bannerright4.src = "http://www.fractions.ca/banners/port-stanton-right.gif";
bannerright5 = new Image();
bannerright5.src = "http://www.fractions.ca/banners/diamondsedge-right.gif";
bannerright6 = new Image();
bannerright6.src = "http://www.fractions.ca/banners/wolfe-springs-right.gif";


linksright = new Array
linksright[1] = "http://www.thecottages.ca"
linksright[2] = "http://www.wolfespringsresort.com"
linksright[3] = "http://www.diamondsedge.ca"
linksright[4] = "http://www.thecottages.ca"
linksright[5] = "http://www.diamondsedge.ca"
linksright[6] = "http://www.wolfespringsresort.com"

descriptionright = new Array
descriptionright[1] = ""
descriptionright[2] = ""
descriptionright[3] = ""
descriptionright[4] = ""
descriptionright[5] = ""
descriptionright[6] = ""

function randombannerright(){
	var randomnumberright = Math.random();
	iright = Math.round( (iright - 1) * randomnumberright) + 1;
	document.bannerright.src = eval("bannerright" + iright + ".src");
}

function startTimeright(){

        var timeright= new Date();
        hours= timeright.getHours();
        mins= timeright.getMinutes();
        secs= timeright.getSeconds();
        closeTimeright=hours*3600+mins*60+secs;
        closeTimeright+=20;
        Timerright();

}

function Timerright(){
        var timeright= new Date();
        hours= timeright.getHours();
        mins= timeright.getMinutes();
        secs= timeright.getSeconds();
        curTimeright=hours*3600+mins*60+secs
        if (curTimeright>=closeTimeright){
                if (iright < 6){
                        iright++;
                        document.bannerright.src = eval("bannerright" + iright + ".src");
                }
                else{
                        iright = 1;
                        document.bannerright.src = eval("bannerright" + iright + ".src");
                }
                startTimeright();
        }
        else{
                window.setTimeout("Timerright()",1000)}

}

function clickLinkright(){
        top.location = linksright[iright]
}

function descriptright(){
        window.status = descriptionright[iright]
}

// -->
