mainWidth=133;barHPos='center';barVPos='top';
subWidth=133;subPosn='center';
moveOnScroll=true;scrollSpeed=20;     // keep menu on screen??


/* end of user config area -- do not touch below this point */
window.onresize=menuPosn;var zObj,barTop;p=mainWidth-subWidth;
switch(subPosn.toLowerCase()){ //submenu calc is static
  case'left':subTab=0;break;
  case'center':subTab=(p-3)/2;break;
  case'right':subTab=p;break;
  default:subTab=parseInt(subPosn,10);}

function getWidth(oNode){return oNode.offsetWidth;}
function checkScrolled(){
   document.getElementById('zone').style.top=document.documentElement.scrollTop+barTop+'px';
  setTimeout(checkScrolled,scrollSpeed);}
  
function show(elmnt){
  if (document.getElementById(elmnt)===null) {return;}
  document.getElementById(elmnt).style.marginLeft=subTab+'px';
  document.getElementById(elmnt).style.display="block";}
function hide(elmnt){
  if (document.getElementById(elmnt)===null) {return;}
  document.getElementById(elmnt).style.display="none";}
function menuPosn(){
  p=document.body.offsetWidth-getWidth(zObj);
  switch(barHPos.toLowerCase()){
    case'left':shift=0;break;
    case'center':shift=p/2;break;
    case'right':shift=p;break;
    default:shift=parseInt(barHPos,10);}
  zObj.style.left=shift+'px';
  p=document.body.clientHeight+document.documentElement.clientHeight;
  switch(barVPos.toLowerCase()){
    case'top':barTop=0;break;
    case'middle':barTop=p/2;break;
    case'bottom':barTop=p-25;break;
    default:shift=parseInt(barVPos,10);}
  document.getElementById('zone').style.top=barTop+'px';}
function menuInit(){
  // document.getElementById('jsmsg').style.visibility='hidden';//noscript fix
  zObj=document.getElementById('zone');
  menuPosn(); //init positions menu 'zone', sets scrolling ptr
  if(moveOnScroll){checkScrolled();}}
/* end JavaScript code for dropdown menu system */

