
// JavaScript Document
// Billboard - rotates images in the same position

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
    if ((bName == "Netscape" && bVer >= 3) || 
        (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
    else br = "n2";
    if (br == "n3") {
//Adjust the speed of rotation here
    boardSpeed = 2000;
    boardNum = 0;
    billboards = new Array();
// Add or change images here
    billboards[0] = new Image();
    billboards[0].src = "/AM2010/images/r_CableCar.jpg";
    billboards[1] = new Image();
    billboards[1].src = "/AM2010/images/r_Skyline.jpg";
    billboards[2] = new Image();
    billboards[2].src = "/AM2010/images/r_Bridge.jpg";
   
	url = new Array();
// Add or change link references here
    url[0] = "/AM2010/menu.cfm";
    url[1] = "/AM2010/menu.cfm";
	url[2] = "/AM2010/menu.cfm";
	}

function rotateBoard() {
document.billboard.src = billboards[boardNum].src;
    if (boardNum < billboards.length - 1) boardNum++;
    else boardNum = 0;
setTimeout('rotateBoard()', boardSpeed);
}
function jumpBillboard() {
window.location.href = url[boardNum];
}
// Requires the following code in the ONLOAD attribute of the body tag
// if (br=='n3') setTimeout('rotateBoard()', boardSpeed);
// Requires the image NAME attribute to be 'billboard'

