// JavaScript Document

var iPath = 'images/';
var iExt = 'gif';
var suffix = new Array('on', 'off');

if(document.images)
{

	//Navigation Images
	//Navigation Images
	//Navigation Images		
	nav_home_on = new Image(161,28);
	nav_home_on.src = iPath + "nav_home_on.gif";
	nav_home_off = new Image(161,28);
	nav_home_off.src = iPath + "nav_home_off.gif"; 
	
	nav_nsi_on = new Image(161,48);
	nav_nsi_on.src = iPath + "nav_nsi_on.gif";
	nav_nsi_off = new Image(161,48);
	nav_nsi_off.src = iPath + "nav_nsi_off.gif"; 
	
	nav_nep_on = new Image(161,48);
	nav_nep_on.src = iPath + "nav_nep_on.gif";
	nav_nep_off = new Image(161,48);
	nav_nep_off.src = iPath + "nav_nep_off.gif"; 

	nav_contact_on = new Image(161,28);
	nav_contact_on.src = iPath + "nav_contact_on.gif";
	nav_contact_off = new Image(161,28);
	nav_contact_off.src = iPath + "nav_contact_off.gif"; 	
	
	

}



function rollOver(iName, iState)
{
  if(document.images && self[iName + '_' + iState])
  {
    document.images[iName].src = self[iName + '_' + iState].src;
  }
}


//make image alwyas appear on by replaceing img src and mouseoffstate with on state
function postLoad(iName)
{
  //define reg exp and replace _off.gif with _on.gif
  var re = new RegExp ('_off.gif', 'gi') ;
  document.images[iName].src = document.images[iName].src.replace(re, '_on.gif') ;  //acutal image
  eval(iName + '_off').src = document.images[iName].src; //now we set the off state the same as the on state
}
