parseInt(navigator.appVersion) //	Javascript for Britannia Buttons
var hasImage = false;
// Check on Browser type
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >= 3) ||
    (bName == "Mozilla" && bVer >= 5) ||
    (bName == "Microsoft Internet Explorer" && bVer >= 4)) {
    hasImage = true;
    // Create an associative array of buttons
    // new Array doesn't work in Netscape 2, so declare it here
    Buttons = new Array();
    // create buttons
    crButton("la", "lady-off.gif", "lady-on.gif");
    crButton("lo", "logo-off.gif", "logo-on.gif");
    crButton("re", "recy-off.gif", "recy-on.gif");
    crButton("co", "comp-off.gif", "comp-on.gif");
    crButton("pr", "prod-off.gif", "prod-on.gif");
    crButton("le", "lead-off.gif", "lead-on.gif");
    crButton("en", "envi-off.gif", "envi-on.gif");
    crButton("li", "link-off.gif", "link-on.gif");
}
// Create a button object
function Button(off, on) {
    this.off = new Image();
    this.off.src = "gfx/"+off;
    this.on = new Image();
    this.on.src = "gfx/"+on;
}
function crButton(name, off, on) {
    Buttons[name] = new Button(off, on);
}

function imgAct(imgName) {
    if (hasImage == true) {
	document[imgName].src = Buttons[imgName].on.src;
    }
}
function imgInAct(imgName) {
    if (hasImage == true) {
	document[imgName].src = Buttons[imgName].off.src;
    }
}

