if (document.images) {	

	aboutuson = new Image(82, 19);
	aboutuson.src = rootDirectory + "images/HNR_aboutus.gif";
	aboutusoff = new Image(82, 19);
	aboutusoff.src = rootDirectory + "images/HN_aboutus.gif";
	
	technologyon = new Image(144, 19);
	technologyon.src = rootDirectory + "images/HNR_technology.gif";
	technologyoff = new Image(144, 19);
	technologyoff.src = rootDirectory + "images/HN_technology.gif";
	
	newson = new Image(144, 19);
	newson.src = rootDirectory + "images/HNR_news.gif";
	newsoff = new Image(144, 19);
	newsoff.src = rootDirectory + "images/HN_news.gif";
				
	investorrelationson = new Image(144, 19);
	investorrelationson.src = rootDirectory + "images/HNR_investorrelations.gif";
	investorrelationsoff = new Image(144, 19);
	investorrelationsoff.src = rootDirectory + "images/HN_investorrelations.gif";			
	
	careerson = new Image(144, 19);
	careerson.src = rootDirectory + "images/HNR_careers.gif";
	careersoff = new Image(144, 19);
	careersoff.src = rootDirectory + "images/HN_careers.gif";
	
	financeon = new Image(144, 19);
	financeon.src = rootDirectory + "images/HNR_financial.gif";
	financeoff = new Image(144, 19);
	financeoff.src = rootDirectory + "images/HN_financial.gif";		
	
	planson = new Image(144, 19);
	planson.src = rootDirectory + "images/HNR_futureplans.gif";
	plansoff = new Image(144, 19);
	plansoff.src = rootDirectory + "images/HN_futureplans.gif";		
 }

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

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

defaultStatus = '';

// Netscape fix resize bug Ns4
function WM_netscapeCssFix() {
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth ||
        document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
     document.location = document.location;
    }
}

function WM_netscapeCssFixCheckIn() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
       document.WM = new Object;
       }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
       document.WM.WM_netscapeCssFix = new Object;
       document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
       document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
       }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn();

// catch all errors...
function stopError() {return true;}
window.onerror=stopError;

// for cool rollovers
	function mouseOverHighlight(i) {
		i.style.backgroundColor='#efefef';
	}
	function mouseOutReg(i) {
		i.style.backgroundColor='#ffffff';
	}
