



// *** (3) MENU EFFECTS AND ANIMATION ***



if (!isOp && navigator.userAgent.indexOf('rv:0.')==-1)

{

 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 10)');

 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -10)');



}

// *** (4) EVENTS ***



if (!isNS4)

{

 // Write menus now in non-NS4 browsers, by calling the "Fast" mode .update(true) method.

 pMenu.update(true);

 //anotherMenu.update(true);

}

else

{

 // For Netscape 4, back up the old onload function and make a new one to update our menus.

 // This is the regular "Dynamic" mode menu update, it works in IE and NS6 too if required.

 var popOldOL = window.onload;

 window.onload = function()

 {

  if (popOldOL) popOldOL();

  pMenu.update();

  //anotherMenu.update();

 }

}





// Other events must be assigned, these are less complicated, just add or remove menu objects.



var nsWinW = window.innerWidth, nsWinH = window.innerHeight, popOldOR = window.onresize;

window.onresize = function()

{

 if (popOldOR) popOldOR();

 if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight)) history.go(0);

 pMenu.position();

 //anotherMenu.position();

}



window.onscroll = function()

{

 pMenu.position();

 //anotherMenu.position();

}





// NS4 can't reliably capture clicks on layers, so here's a workaround.

if (isNS4)

{

 document.captureEvents(Event.CLICK);

 document.onclick = function(evt)

 {

  with (pMenu) if (overI) click(overM, overI);

  //with (anotherMenu) if (overI) click(overM, overI);

  return document.routeEvent(evt);

 }

}



// Activate the window.onscroll() event in non-Microsoft browsers.

if (!isIE || isOp)

{

 var nsPX=pageXOffset, nsPY=pageYOffset;

 setInterval('if (nsPX!=pageXOffset || nsPY!=pageYOffset) ' +

 '{ nsPX=pageXOffset; nsPY=pageYOffset; window.onscroll() }', 50);

}







// *** (5) OPTIONAL CODE ***





// ************************************************************************

// *******MOUSE EVENTS - CLICKING MAIN NAV BUTTON TO GO TO WEBPAGE:********


function SwitchImg() { //start
 return;
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      src = SwitchImg.arguments[rem+2];
     // alert(obj.src);
      obj.src = src;
  } }
  document.Data = switcher;
} //end

function RestoreImg() { //start
  return
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      src=document.Data[rem+1];
     //  alert(src);
      document.Data[rem].src=src;
} //end

