// Navigation - Top Nav Rollover

// This rollover code is used to activate the rollover effect over the three active top navigation buttons.  The forth button will highlight the current location of the user within the site and will have no rollover effect.  So in the HTML code around the current location button (eg. home on the home page), the onmouseover and onmouseout code will need to be removed just leaving the HREF location.

if (document.images) {

homeBefore = new Image
homeAfter = new Image

aboutBefore = new Image
aboutAfter = new Image

quotationBefore = new Image
quotationAfter = new Image

contactBefore = new Image
contactAfter = new Image


homeBefore.src = "images-buttons/nav-home.gif"
homeAfter.src = "images-buttons/nav-home-over.gif"

aboutBefore.src = "images-buttons/nav-about.gif"
aboutAfter.src = "images-buttons/nav-about-over.gif"

quotationBefore.src = "images-buttons/nav-quotation.gif"
quotationAfter.src = "images-buttons/nav-quotation-over.gif"

contactBefore.src = "images-buttons/nav-contact.gif"
contactAfter.src = "images-buttons/nav-contact-over.gif"

}

else {

homeBefore.src = ""
homeAfter.src = ""

aboutBefore.src = ""
aboutAfter.src = ""

quotationBefore.src = ""
quotationAfter.src = ""

contactBefore.src = ""
contactAfter.src = ""

}




// Left Navigation Rollovers


// Preload Images


var myimages=new Array()

function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("images-buttons/content-nav-electricity-over.gif","images-buttons/content-nav-gas-over.gif","images-buttons/content-nav-telecoms-over.gif","images-buttons/content-nav-mobiles-over.gif","images-buttons/content-nav-internet-over.gif","images-buttons/content-nav-water-over.gif","images-buttons/content-nav-brokerage-over.gif","images-buttons/content-nav-consultancy-over.gif","images-buttons/content-nav-cs-over.gif")




// These rollovers are activated when the user rollovers the image map buttons found in the left navigation bar

function electricity() {

document.one.src = "images-buttons/content-nav-electricity-over.gif";
}

function gas() {

document.two.src = "images-buttons/content-nav-gas-over.gif";
}

function telecoms() {

document.three.src = "images-buttons/content-nav-telecoms-over.gif";
}

function mobiles() {

document.four.src = "images-buttons/content-nav-mobiles-over.gif";
}

function internet() {

document.five.src = "images-buttons/content-nav-internet-over.gif";
}

function water() {

document.six.src = "images-buttons/content-nav-water-over.gif";
}

function brokerage() {

document.seven.src = "images-buttons/content-nav-brokerage-over.gif";
}

function consultancy() {

document.eight.src = "images-buttons/content-nav-consultancy-over.gif";
}

function cs() {

document.nine.src = "images-buttons/content-nav-cs-over.gif";
}




function restoreImages() {

document.one.src = "images-buttons/content-nav-electricity.gif";
document.two.src = "images-buttons/content-nav-gas.gif";
document.three.src = "images-buttons/content-nav-telecoms.gif";
document.four.src = "images-buttons/content-nav-mobiles.gif";
document.five.src = "images-buttons/content-nav-internet.gif";
document.six.src = "images-buttons/content-nav-water.gif";
document.seven.src = "images-buttons/content-nav-brokerage.gif";
document.eight.src = "images-buttons/content-nav-consultancy.gif";
document.nine.src = "images-buttons/content-nav-cs.gif";

}
