// Mouseover, Mouseclick functions for horizontal navigation images

if (document.images)
{    
	homeon = new Image;
	homeon.src = "/images/nav/home-on.gif";
	homeoff = new Image;
	homeoff.src = "/images/nav/home.gif";
	homepress = new Image;
	homepress.src = "/images/nav/home-on.gif";

	fossilpoweron = new Image;
	fossilpoweron.src = "/images/nav/fossil-power-on.gif";
	fossilpoweroff = new Image;
	fossilpoweroff.src = "/images/nav/fossil-power.gif";
	fossilpowerpress = new Image;
	fossilpowerpress.src = "/images/nav/fossil-power-on.gif";
	
	nuclearpoweron = new Image;
	nuclearpoweron.src = "/images/nav/nuclear-power-on.gif";
	nuclearpoweroff = new Image;
	nuclearpoweroff.src = "/images/nav/nuclear-power.gif";
	nuclearpowerpress = new Image;
	nuclearpowerpress.src = "/images/nav/nuclear-power-on.gif";
	
	powerdeliveryon = new Image;
	powerdeliveryon.src = "/images/nav/power-delivery-on.gif";
	powerdeliveryoff = new Image;
	powerdeliveryoff.src = "/images/nav/power-delivery.gif";
	powerdeliverypress = new Image;
	powerdeliverypress.src = "/images/nav/power-delivery-on.gif";
	
	globalenergyconsultingon = new Image;
	globalenergyconsultingon.src = "/images/nav/global-energy-consulting-on.gif";
	globalenergyconsultingoff = new Image;
	globalenergyconsultingoff.src = "/images/nav/global-energy-consulting.gif";
	globalenergyconsultingpress = new Image;
	globalenergyconsultingpress.src = "/images/nav/global-energy-consulting-on.gif";
	
	renewableenergyon = new Image;
	renewableenergyon.src = "/images/nav/renewable-energy-on.gif";
	renewableenergyoff = new Image;
	renewableenergyoff.src = "/images/nav/renewable-energy.gif";
	renewableenergypress = new Image;
	renewableenergypress.src = "/images/nav/renewable-energy-on.gif";
	
	newspublicationson = new Image;
	newspublicationson.src = "/images/nav/news-publications-on.gif";
	newspublicationsoff = new Image;
	newspublicationsoff.src = "/images/nav/news-publications.gif";
	newspublicationspress = new Image;
	newspublicationspress.src = "/images/nav/news-publications-on.gif";
	
	aboutuson = new Image;
	aboutuson.src = "/images/nav/about-us-on.gif";
	aboutusoff = new Image;
	aboutusoff.src = "/images/nav/about-us.gif";
	aboutuspress = new Image;
	aboutuspress.src = "/images/nav/about-us-on.gif";
}
		
		
var thisPage = "";

function setcurrent(page){

	img_press(page);
	thisPage = page;
	
}

function img_act(imgName)
{
    if (document.images)
    {
      imgOn = eval(imgName + "on.src");
		  imgPress = eval(imgName + "press.src");
		  imgSrc = document [imgName].src;

		  if (imgSrc != imgPress && imgName != thisPage){
			  document [imgName].src = imgOn;
		  }
    }
}

function img_inact(imgName)
{
    if (document.images && imgName != thisPage)
    {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
    }
}

function img_press(imgName)
{
    if (document.images && imgName != thisPage)
    {
        imgPress = eval(imgName + "press.src");
        document [imgName].src = imgPress;
    }
}


