window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var NS6 = (bName == "Netscape" && bVer >= 5);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var menuActive = 0 ;
 var menuOn = 0 ;
 var onLayer ;
 var timeOn = null// LAYER SWITCHING CODE
if (NS4 || IE4 || NS6) {
  if (IE4)
  {
   layerRef="document.all[";
 styleSwitch="].style";
  }
 if (NS6)
 {
 layerRef="document.getElementById(" ;
 styleSwitch=").style" ;
 exit;
 }
if (NS4)
 {
 layerRef="document.layers[" ;
 styleSwitch="]";
 }
}
 
// SHOW MENU
function showLayer(layerName){
if (IE4 || NS6) {
 if (timeOn != null) {
 clearTimeout(timeOn) ;
 hideLayer(onLayer)
 }
 if (IE4 || NS6) {
 eval(layerRef+'"'+layerName+'"'+styleSwitch+'.visibility="visible"');
 } 
 onLayer = layerName
 }
}// HIDE MENU
function hideLayer(layerName){
 if (menuActive == 0) {
 if (IE4 || NS6) {
 eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 }
 }
}// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",400)
}// BUTTON MOUSE OUT
function btnOut(layerName) {
 if (menuActive == 0) {
 hideLayer(onLayer)
 }
}// MENU MOUSE OVER 
function menuOver() {
 clearTimeout(timeOn)
 menuActive = 1
}// MENU MOUSE OUT 
function menuOut() {
 menuActive = 0 
 timeOn = setTimeout("hideLayer(onLayer)", 400)
 }
//--------------------------------------------------- 
 
 function high(nav_image)
{ 
theobject=nav_image;
highlighting=setInterval("highlightit(theobject)",50) 
} 
function low(nav_image)
{ 
clearInterval(highlighting) 
if (nav_image.style.MozOpacity) 
nav_image.style.MozOpacity=0.8 
else if (nav_image.filters) 
nav_image.filters.alpha.opacity=80 
} 
function highlightit(im)
{ 
if (im.style.MozOpacity<1) 
im.style.MozOpacity=parseFloat(im.style.MozOpacity)+0.05 
else if (im.filters&&im.filters.alpha.opacity<100) 
im.filters.alpha.opacity+=5 
else if (window.highlighting) 
clearInterval(highlighting) 
}