<!--

//do browser detect stuff

wd = screen.width;

var isNS = (navigator.appName == "Netscape");
var isMacIE = ( (navigator.userAgent.indexOf("IE 4")  > -1) && (navigator.userAgent.indexOf("Mac")  > -1) );
var layerRef = (isNS) ? "document" : "document.all";
var styleRef = (isNS) ? "" : ".style";
var isDynamic = ( (document.layers || document.all) && !isMacIE );

//track which menu is active
var activeMenu = 0;


//display a selected menu
function activateMenu(menuLayerRef, offset, voffset) {

if (wd == 1024)
{
if(menuLayerRef == 1)
var offset = offset+30;
if(menuLayerRef == 2)
var offset = offset+150;
if(menuLayerRef == 3)
var offset = offset+200;
if(menuLayerRef == 4)
var offset = offset+70;
if(menuLayerRef == 5)
var offset = offset+110;
}
if (wd == 640)
{
if(menuLayerRef == 1)
var offset = offset-30;
if(menuLayerRef == 2)
var offset = offset-110;
if(menuLayerRef == 3)
var offset = offset-160;
if(menuLayerRef == 4)
var offset = offset-50;
if(menuLayerRef == 5)
var offset = offset-80;
}
        
        if (isDynamic && activeMenu != menuLayerRef) {

                if (activeMenu) hideMenu("menu" + activeMenu);

                menuID = "menu" + menuLayerRef;
                activeMenu = menuLayerRef;

                hmenuoff = offset;
                vmenuoff = voffset;
                if (isNS) {
                        document[menuID].top = 16 + voffset;
                        document[menuID].left = offset;
                } else {
                        document.all[menuID].style.pixelTop = 25 + voffset;
                        document.all[menuID].style.pixelLeft = offset;
                } // if is NS else

                showMenu(menuID)
        } // if is dynamic and new menu needed
        // kill menu if browser is IE
        if (isDynamic && !isNS) window.event.cancelBubble = true;
} // activateMenu

function showMenu(layerID) {
        eval(layerRef + '["' + layerID + '"]' + styleRef + '.visibility = "visible"');
}


function hideMenu(layerID) {
        eval(layerRef + '["' + layerID + '"]' + styleRef + '.visibility = "hidden"');
}


// get rid of menus when outside menu or button
function killMenu(e) {
  //check if theres a menu active
  if (activeMenu) {
    menuID = "menu" + activeMenu;
    if (isNS) {
// top menus
        if (activeMenu <=14) {
  menuX1 = document[menuID].left;
  menuX2 = menuX1 + document[menuID].clip.right;
  menuY1 = document[menuID].top - 25;
  menuY2 = menuY1 + document[menuID].clip.bottom + 15;
} // if menu 1 through 4
// side menus
        if (activeMenu >=15) {
   menuX1 = 0;
          menuX2 = 245;
  menuY1 = document[menuID].top;
  menuY2 = menuY1 + document[menuID].clip.bottom;
        } // if menu 5 or greater
        if ((e.pageX < menuX1) || (e.pageX > menuX2) ||
             (e.pageY < menuY1) || (e.pageY > menuY2)) {
             hideMenu(menuID);
     activeMenu = 0;
        } // if in menu
    } else { // if not NS
hideMenu(menuID);
activeMenu = 0;
    }  //if isNS else
  }  //if activeMenu
}  //function

// initialize the menu system
function init() {
  if (isDynamic) {
    if (isNS) { 
document.captureEvents(Event.MOUSEOUT); 
document.onmouseout = killMenu;
    } else {
document.onmouseover = killMenu;
    } // if NS else

  } // if dynamic
} // init


/*function hotelname(hname)
{
hn=hname;
return hn;

}*/



document.write("</head>\
<body bgcolor=\"#FFFFFF\" marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\" onload=\"init();\">");

if (isDynamic) {
        document.write("<DIV id=\"menu1\" class=\"menu\" onMouseover=\"activateMenu(1,75,165)\">\
<A href=\"cultural.htm\">Cultural Tours</A><BR>\
<A href=\"adventure.htm\">Adventure Tours</A><BR>\
<A href=\"wildlife.htm\">Wildlife Tour</A><BR>\
<A href=\"holiday.htm\">Holidays</A><BR>\
<A href=\"pilgrim.htm\">Pilgrimage Tours</A><BR>\
<A href=\"buddhist.htm\">Buddhist Info</A><BR>\
<A href=\"everest.htm\">Everest Experience</A><BR>\
</DIV>");

document.write("<DIV id=\"menu2\" class=\"menu\" onMouseover=\"activateMenu(2,75,300)\">\
<A href=\"kathmandu.htm\">Kathmandu</A><BR>\
<A href=\"bhaktapur.htm\">Bhaktapur</A><BR>\
<A href=\"patan.htm\">Patan</A><BR>\
<A href=\"pokhara.htm\">Pokhara</A><BR>\
<A href=\"lumbini.htm\">Lumbini</A><BR>\
<A href=\"chitwan.htm\">Chitwan</A><BR>\
<A href=\"everest.htm\">Everest Experience</A><BR>\
</DIV>");

document.write("<DIV id=\"menu3\" class=\"menu\" onMouseover=\"activateMenu(3,75,165)\">\
<A href=\"visa.htm\">Visa Requirements</A><BR>\
<A href=\"currency.htm\">Currency Info</A><BR>\
<A href=\"customs.htm\">Customs Rules</A><BR>\
<A href=\"transport.htm\">Transport Facilities</A><BR>\
<A href=\"climate.htm\">Climate</A><BR>\
<A href=\"nepal.htm\">Nepal at a Glance</A><BR>\
<A href=\"offices.htm\">Tourist Offices</A><BR>\
<A href=\"kathmandu.htm\">Kathmandu Info</A><BR>\
</DIV>");

document.write("<DIV id=\"menu4\" class=\"menu\" onMouseover=\"activateMenu(4,75,300)\">\
<A href=\"air.htm\">Air Route to Nepal</A><BR>\
<A href=\"airlines.htm\">Major Airlines</A><BR>\
<A href=\"environment.htm\">Environment</A><BR>\
<A href=\"mountaineering.htm\">Mountaineering</A><BR>\
<A href=\"trekking.htm\">Trekking</A><BR>\
<A href=\"handicrafts.htm\">Handicrafts </A><BR>\
<A href=\"rafting.htm\">Rafting</A><BR>\
</DIV>");

document.write("<DIV id=\"menu5\" class=\"menu\" onMouseover=\"activateMenu(5,75,300)\">\
<A HREF=\"kathhot.htm\" >Kathmandu Hotels</A><BR>\
<A HREF=\"bhahot.htm\">Bhaktapur Hotels</A><BR>\
<A HREF=\"pathot.htm\">Patan Hotels</A><BR>\
<A HREF=\"pokhot.htm\" >Pokhara Hotels</A><BR>\
<A HREF=\"lumhot.htm\" >Lumbini Hotels</A><BR>\
<A HREF=\"chihot.htm\" >Chitwan Hotels</A><BR>\
</DIV>");



}


//-->
