// JavaScript Document
function show(level)
{ if (document.getElementById)
     { window.setTimeout("",2000)
       document.getElementById(level).style.visibility="visible";
     }
}

function hide(level)
{ if (document.getElementById)
     { window.setTimeout("",2000)
       document.getElementById(level).style.visibility="hidden";
     }
}

function leftposition(sublevel)
// Figure out how to position the submenus
{ var offset=0;
  var counter=0;
  var subname="submenu"
  counter=parseInt(sublevel);

while(counter>0)
  { if (self.innerHeight)
       { offset=Math.max(((parseInt(self.innerWidth)-780)/2)+132,153);
       } 
    else if (document.documentElement && document.documentElement.clientHeight)
       { offset=Math.max(((parseInt(document.documentElement.clientWidth)-780)/2)+141,153);
       }
    else if (document.body)
       { offset=Math.max(((parseInt(document.body.clientWidth)-780)/2)+141,153);
       }
    if (document.getElementById(subname+counter))
       document.getElementById(subname+counter).style.left=offset+"px";
    counter--;
  }
}
