<!--

//do browser detect stuff

wd = screen.width;
if (wd == 1280)
var x = 420;
if (wd == 1024)
var x = 300;
if (wd == 800)
{var x=200;}
if (wd == 640)
var x=96;

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 (isDynamic && activeMenu != menuLayerRef) {

                if (activeMenu) hideMenu("menu" + activeMenu);
                        
                menuID = "menu" + menuLayerRef;
                activeMenu = menuLayerRef;
                hmenuoff = offset;
                vmenuoff = voffset;
                if (isNS) {
                        document[menuID].top = 12 + voffset;
		
			if(wd == 1280)
                        document[menuID].left = offset+302;
			if(wd == 1024)
                        document[menuID].left = offset+282;
			if(wd == 800)
                        document[menuID].left = offset+170;
			if(wd == 640)
                        document[menuID].left = offset+90;

			document[menuID].zIndex = 2;
                } 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 <=4) {
	  menuX1 = document[menuID].left;
	  menuX2 = menuX1 + document[menuID].clip.right;
	  menuY1 = document[menuID].top;
	  menuY2 = menuY1 + document[menuID].clip.bottom;
	//alert(menuX1+"  "+menuX2+"  "+menuY1+"  "+menuY2);
	} // if menu 1 through 4
	// side menus
        if (activeMenu >=5) {
 	  menuX1 = 0;
          menuX2 = 275;
	  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


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,410,290)\">\
<A href=\"ecology.html\"> > Our Policies  </B></A><BR>\
<A href=\"malabar.html\"> > The Malabar Foundation</A><BR>\
</DIV>");



document.write("<DIV id=\"menu3\" class=\"menu\" onmouseover=\"activateMenu(3,x,270)\">\
<A href=\"activities.html\"><span style=\"color:#ffffff\"> >  </span> Cultural Programme  </A><BR>\
<A href=\"yoga.html\"><span style=\"color:#ffffff\"> >  </span>Yoga & meditation</A><BR>\
<A href=\"indian-cookery.html\"><span style=\"color:#ffffff\"> >  </span>Indian cookery classes</A><BR>\
<A href=\"backwater-houseboat.html\"><span style=\"color:#ffffff\"> >  </span>Backwater houseboat</A><BR>\
<A href=\"wildlife.html\"><span style=\"color:#ffffff\"> >  </span>Wildlife</A><BR>\
<A href=\"cycling.html\"><span style=\"color:#ffffff\"> >  </span>Cycling</A><BR>\
</DIV>");

document.write("<DIV id=\"menu5\" class=\"menu\" onmouseover=\"activateMenu(5,x,270)\">\
<A href=\"rates-inr.html\"><span style=\"color:#ffffff\"> >  </span>In Rupees (RS) </A><BR>\
<A href=\"rates.html\"><span style=\"color:#ffffff\"> >  </span>In Euros (&euro;)</A><BR>\
</DIV>");

document.write("<DIV id=\"menu4\" class=\"menu\" onmouseover=\"activateMenu(4,x,280)\">\
<A href=\"#\" ><span style=\"color:#ffffff\">  </span></A><BR>\
</DIV>");

document.write("<DIV id=\"menu6\" class=\"menu\" onmouseover=\"activateMenu(6,x,180)\">\
<A href=\"ayurveda-spa.html\"><span style=\"color:#ffffff\"> >  </span>Ayurveda</A><BR>\
<A href=\"ayurveda-priya-spa.html\"><span style=\"color:#ffffff\"> >  </span>Ayurveda at the Priya Spa</A><BR>\
<A href=\"natural-healing.html\"><span style=\"color:#ffffff\"> >  </span>Natural Healing at the Priya Spa</A><BR>\
<A href=\"wellbeing.html\"><span style=\"color:#ffffff\"> >  </span>Wellbeing at the Priya Spa</A><BR>\
</DIV>");


document.write("<DIV id=\"menu7\" class=\"menu\" onmouseover=\"activateMenu(7,x,180)\">\
<A href=\"http://www.india-discovery.com/expedition/index.html\"><span style=\"color:#ffffff\"> >  </span>Introduction</A><BR>\
</DIV>");

document.write("<DIV id=\"menu8\" class=\"menu\" onmouseover=\"activateMenu(8,x,180)\">\
<A href=\"testimonials.html\"><span style=\"color:#ffffff\"> >  </span>Personal Testimonials</A><BR>\
<A href=\"press-comments.html\"><span style=\"color:#ffffff\"> >  </span>Press Comments</A><BR>\
</DIV>");




document.write("<DIV id=\"menu9\" class=\"menu\" onmouseover=\"activateMenu(9,x,180)\">\
<A href=\"welcome.html\"><span style=\"color:#ffffff\"> >  </span>Welcome</A><BR>\
<A href=\"the-site.html\"><span style=\"color:#ffffff\"> >  </span>The Hotel</A><BR>\
<A href=\"hermitage-map.html\"><span style=\"color:#ffffff\"> >  </span>Hermitage Map</A><BR>\
<A href=\"our-name.html\"><span style=\"color:#ffffff\"> >  </span>Our Name</A><BR>\
<A href=\"our-logo.html\"><span style=\"color:#ffffff\"> >  </span>Our Logo</A><BR>\
<A href=\"our-codes.html\"><span style=\"color:#ffffff\"> >  </span>Our Codes</A><BR>\
</DIV>");


document.write("<DIV id=\"menu10\" class=\"menu\" onmouseover=\"activateMenu(10,x,180)\">\
<A href=\"golden-triangle.html#delhi\">Golden Triangle - Delhi</A><BR>\
<A href=\"golden-triangle-agra.html\">Golden Triangle - Agra</A><BR>\
<A href=\"golden-triangle-jaipur.html\">Golden Triangle - Jaipur</A><BR>\
</DIV>");


}


//-->