
<!-- Created on Oct 8, 2003 10:43:16 AM -->

// Popup Menus Motivator copyright 2001 E. Michael Brandt of ValleyWebDesigns.com
// All rights reserved.  Please leave these comments intact.

function VWD_showMenu(theMenu,origX,Ypos,widthRoot,widthMenu,maxW,useNode,USER_ADJ) {
   var browser, width = 640, browserFudge=0, screenwidth = screen.width-20;
   if (document.all) { //IE4+
      width = document.body.clientWidth;
      browserFudge=0;
      } else { if (document.layers) { //NS4+
         width = window.innerWidth;
         browserFudge=-16;
         } else if (document.getElementById) {width = window.innerWidth;// NS6+
         browserFudge=-12;
      }
   }
   var newX ;
   if (useNode == 0) newX = ((origX)*(screenwidth/maxW)*(width/screenwidth)) - USER_ADJ*(maxW/screenwidth)*((screenwidth-width)/width) + browserFudge;
   if (useNode == 1) newX = ((origX+widthRoot)*(screenwidth/maxW)*(width/screenwidth)) - USER_ADJ*(maxW/screenwidth)*((screenwidth-width)/width) + browserFudge - widthRoot;
   if (useNode == 2) newX = ((origX+widthMenu)*(screenwidth/maxW)*(width/screenwidth)) - USER_ADJ*(maxW/screenwidth)*((screenwidth-width)/width) + browserFudge - widthMenu;
   window.FW_showMenu(theMenu,newX,Ypos);
}
