<!-- to adjust height of bar change 1st number, ie: 30 -->

var hBar = new ItemStyle(20, 0, '', 0, 1, '#f8ecdb', '#edaba7', 'menu_text', 'menu_texthi', '', '',
 97, 97, 'hand', 'default');

// full var hBar = new ItemStyle(22, 0, '&gt;', 0, 1, '#f8ecdb', '#e89995', 'menu_text', 'menu_texthi', '', 
// '', 97, 97, 'hand', 'default');

var subM = new ItemStyle(20, 0, '', -1, 0, '#f8ecdb', '#edaba7', 'menu_text', 'menu_texthi', '', '', 
null, null, 'hand', 'default');

var subBlank = new ItemStyle(20, 0, '', -1, 1, '#f8ecdb', '#edaba7', 'menu_text', 'menu_texthi', '', '', 
null, null, 'hand', 'default');

var button = new ItemStyle(20, 0, '', -1, 1, '#006633', '#CC6600', 'menu_text', 'menu_texthi',
 'buttonBorder', 'buttonBorderOver', 99, 99, 'crosshair', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

startMenu('root', false, 10, 0, 17, hBar, '', false);
addItem('', 'mSche', 'sm:', null, -100);

// change the .x + 182" to adjust the positioning
// to ensure alignment with each button, name "menu_home", etc to match on .html page

startMenu('mSche', true, 'page.elmPos("menu_sche").x + 153', 'page.elmPos("menu_sche").y + 0', 100, hBar);
addItem(' - 2009 Tours', 'm2009', 'sm:');

startMenu('m2009', true, 100, 0, 110, subBlank, '', false);
addItem(' - Mexico Tours', '2009_mexico.html', '');
addItem(' - Peru Tours', '2009_peru.html', '');
addItem(' - Nepal Tours', '2009_nepal.html', '');

// If require file to be opened instead of html page
// addItem('- Land Surveyors Act', 'window.open("http://www.q.com/48_01.htm")', 'js:');

}


if ((navigator.userAgent.indexOf('rv:0.')==-1) &&
    !(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 5)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -85)');

}

page.elmPos=function(e,p)
{
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 if (e && this.MS && navigator.platform.indexOf('Mac')>-1 && e.tagName=='A')
 {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' +
   'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
};


function menuAnim(menuObj, menuName, dir)
{
 var mD = menuObj.menu[menuName][0];
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;

 with (mD)
 {
  clearTimeout(timer);

  if (!lyr || !lyr.ref) return;
  if (!visNow && dir>0) dir = 0-dir;
  if (dir>0) lyr.vis('visible');
  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;

  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  counter += dir;
  if (counter>100) { counter = 100; lyr.sty.zIndex = mD.zIndex }
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
 }
};

// this section is to prevent the menu going under other JS menus on the page, its for IE5.5/6 only
function IE55SelectBoxFix(menuObj) { with (menuObj)
{
 if (window.createPopup) for (var mN in menu) with (menu[mN][0])
 {
  extraHTML += '<iframe src="about:blank" style="position: absolute; left: 0px; top: 0px; width: ' +
   menuW + 'px; height: ' + menuH + 'px; z-index: 0; border: none; ' +
   'filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"></iframe>';
 }
}};
IE55SelectBoxFix(pMenu);