
var validBrowser = ((navigator.appName == "Microsoft Internet Explorer") || 
                   (navigator.appName == "Netscape")) && 
                   parseInt(navigator.appVersion) >= 3;
loadNavImgs = new Array();

if(validBrowser) {
    num_rollovers = 6;

    rollovers = new Array(num_rollovers);
    
    rollovers["option"] = new rollover(   "option",
                                          "images/sideMenu_optionN.gif",
                                          "images/sideMenu_optionS.gif",
                                          "active");

    rollovers["pricing"] = new rollover(  "pricing",
                                          "images/sideMenu_pricingN.gif",
                                          "images/sideMenu_pricingS.gif",
                                          "active");

    rollovers["about"] = new rollover(    "about",
                                          "images/sideMenu_aboutN.gif",
                                          "images/sideMenu_aboutS.gif",
                                          "active");

    rollovers["definitions"] = new rollover("definitions",
                                            "images/sideMenu_definitionsN.gif",
                                            "images/sideMenu_definitionsS.gif",
                                            "active");

    rollovers["packages"] = new rollover("packages",
                                         "images/sideMenu_packagesN.gif",
                                         "images/sideMenu_packagesS.gif",
                                         "active");

    rollovers["examples"] = new rollover("examples",
                                         "images/sideMenu_examplesN.gif",
                                         "images/sideMenu_examplesS.gif",
                                         "active");

    rollovers["contact"] = new rollover("contact",
                                        "images/sideMenu_contactN.gif",
                                        "images/sideMenu_contactS.gif",
                                        "active");

}

function rollover(name, normImgSrc, selImgSrc, status) {
    this.name = name;
    this.normImg = new Image();
    this.normImg.src = normImgSrc;
    this.selImg = new Image();
    this.selImg.src = selImgSrc;
    this.status = status;
}

function setNorm(imagename) {
    if(validBrowser) {
        if (rollovers[imagename].status == "active") {
		    document.images[imagename].src = rollovers[imagename].normImg.src;
	    }
	}
}

function setSel(imagename) {
    if(validBrowser) {
        if (rollovers[imagename].status == "active") {
            document.images[imagename].src = rollovers[imagename].selImg.src;
        }
    }
}

function displayDate() {
    var this_month = new Array(12);
    this_month[0]  = "January";
    this_month[1]  = "February";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "August";
    this_month[8]  = "September";
    this_month[9]  = "October";
    this_month[10] = "November";
    this_month[11] = "December";
    var today = new Date();
    var day   = today.getDate();
    var month = today.getMonth();
    var year  = today.getYear();
    if (year < 1900) {
        year += 1900;
    }
    return(day+" "+this_month[month]+" " +year);
}
