if (document.images) {
homeon = new Image(); // Active images
homeon.src = "images/buttons/home_over.jpg";

homeoff = new Image(); // Inactive images
homeoff.src = "images/buttons/home_main.jpg";

employon = new Image(); // Active images
employon.src = "images/buttons/employ_over.jpg";

employoff = new Image(); // Inactive images
employoff.src = "images/buttons/employ_main.jpg";

currenton = new Image(); // Active images
currenton.src = "images/buttons/current_over.jpg";

currentoff = new Image(); // Inactive images
currentoff.src = "images/buttons/current_main.jpg";

paston = new Image(); // Active images
paston.src = "images/buttons/past_over.jpg";

pastoff = new Image(); // Inactive images
pastoff.src = "images/buttons/past_main.jpg";

abouton = new Image(); // Active images
abouton.src = "images/buttons/about_over.jpg";

aboutoff = new Image(); // Inactive images
aboutoff.src = "images/buttons/about_main.jpg";

contacton = new Image(); // Active images
contacton.src = "images/buttons/contact_over.jpg";

contactoff = new Image(); // Inactive images
contactoff.src = "images/buttons/contact_main.jpg";

foreston = new Image(); // Active images
foreston.src = "images/buttons/forest_over.jpg";

forestoff = new Image(); // Inactive images
forestoff.src = "images/buttons/forest_main.jpg";

graniteon = new Image(); // Active images
graniteon.src = "images/buttons/granite_over.jpg";

graniteoff = new Image(); // Inactive images
graniteoff.src = "images/buttons/granite_main.jpg";

nottinghamon = new Image(); // Active images
nottinghamon.src = "images/buttons/nottingham_over.jpg";

nottinghamoff = new Image(); // Inactive images
nottinghamoff.src = "images/buttons/nottingham_main.jpg";

sparklingon = new Image(); // Active images
sparklingon.src = "images/buttons/sparkling_over.jpg";

sparklingoff = new Image(); // Inactive images
sparklingoff.src = "images/buttons/sparkling_main.jpg";

}




function imgActivate(imgName,page) {
imgOn(imgName)
imgOff(page)
}

function imgInactivate(imgName,page) {
imgOff(imgName)
imgOn(page)
}


function imgOn(imgName) {

if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}


function hideDiv(someID) 
{ document.getElementById(someID).style.visibility = 'hidden'; } 

function showDiv(someID) 
{ document.getElementById(someID).style.visibility = 'visible'; } 

