  // JS CODE REWRITTEN BY CHRIS KANEMURA TO ADD FUNCTIONALITY IN NETSCAPE 6
  // ORIGINAL CODE PROVIDED BY SIMPLY THE BEST SCRIPTS
  // U.I. INTEGRATION BY DEVIGAL DESIGN: http://devigal.com/

<!-- 
 if (document.images)
 {var imglist = new Array ("http://the.honoluluadvertiser.com/inc/pix/home_on.gif","http://the.honoluluadvertiser.com/inc/pix/localnews_on.gif","http://the.honoluluadvertiser.com/inc/pix/sports_on.gif","http://the.honoluluadvertiser.com/inc/pix/islandlife_on.gif","http://the.honoluluadvertiser.com/inc/pix/entertainment_on.gif","http://the.honoluluadvertiser.com/inc/pix/business_on.gif","http://the.honoluluadvertiser.com/inc/pix/technology_on.gif","http://the.honoluluadvertiser.com/inc/pix/opinion_on.gif","http://the.honoluluadvertiser.com/inc/pix/help_on.gif","http://the.honoluluadvertiser.com/inc/pix/classifieds_on.gif","http://the.honoluluadvertiser.com/inc/pix/jobs_on.gif","http://the.honoluluadvertiser.com/inc/pix/homes_on.gif","http://the.honoluluadvertiser.com/inc/pix/cars_on.gif","http://the.honoluluadvertiser.com/inc/pix/marketplace_on.gif","http://the.honoluluadvertiser.com/inc/pix/nav_shopOn.gif");
 var imgs = new Array(); var count;
 for (count=0; count<imglist.length; count++)
 {imgs[count]=new Image(); imgs[count].src=imglist[count];}
 }
 
 function hilite(name,m)
 {if (document.images)
 {imgswap(name, imgs[m])}
 }
 
 function imgswap(i1,i2)
 {if (document.images)
 {var temp = i1.src; i1.src=i2.src; i2.src=temp;}
 }

window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var NS6 = (bName == "Netscape" && bVer >= 5);
 var menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null
 
 // LAYER SWITCHING CODE
if (NS4 || IE4 || NS6) {
 if (NS4) {
 layerStyleRef="layer.";
 layerRef="document.layers[";
 styleSwitch="";
 endObj="]";
 }else if (NS6) {
 layerStyleRef="layer.style.";
 layerRef="document.getElementById(";
 styleSwitch=".style";
 endObj=")";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all[";
 styleSwitch=".style";
 endObj="]";
 }
}
 
// SHOW MENU
function showLayer(layerName){
if (NS4 || IE4 || NS6) {
 if (timeOn != null) {
 clearTimeout(timeOn)
 hideLayer(onLayer)
 }
 if (NS4 || IE4 || NS6) {
 eval(layerRef+'"'+layerName+'"'+endObj+styleSwitch+'.visibility="visible"');
 } 
 onLayer = layerName
 }
}

// HIDE MENU
function hideLayer(layerName){
 if (menuActive == 0) {
 if (NS4 || IE4 || NS6) {
 eval(layerRef+'"'+layerName+'"'+endObj+styleSwitch+'.visibility="hidden"');
 }
 }
}

// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",1000)
}// BUTTON MOUSE OUT
function btnOut(layerName) {
 if (menuActive == 0) {
 hideLayer(onLayer)
 }
}

// MENU MOUSE OVER 
function menuOver(itemName) {
 clearTimeout(timeOn)
 menuActive = 1
}// MENU MOUSE OUT 
function menuOut(itemName) {
 menuActive = 0 
 timeOn = setTimeout("hideLayer(onLayer)", 400)
 }
 
 // -->
