<!--

//do browser detect stuff

wd = screen.width;
if(wd == 1280)
{
var x = 692;
	ax=320; bx=640;
}
if(wd == 1152)
{
var x = 692;
	ax=290; bx=560;
}
if (wd == 1024)
{
	var x = 692;
	ax=580; bx=690;
}
if (wd == 800)
{
	var x=195;
	ax=460; bx=570;
}
if (wd == 640)
{
	var x=307;
	ax=380; bx=465;
}


var isNS = (navigator.appName == "Netscape");
var IE4 = (0 <= navigator.userAgent.indexOf('MSIE 4.')) ? true : false ;
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 );
var xposs,yposs;

//track which menu is active
var activeMenu = 0;

//display a selected menu
function activateMenu(menuLayerRef, offset, voffset,navid){
        if (isDynamic && activeMenu != menuLayerRef) {

                if (activeMenu) hideMenu("menu" + activeMenu);
                        
                menuID = "menu" + menuLayerRef;
                activeMenu = menuLayerRef;

if(navid == 'na')
	{hmenuoff = ax;
	offset = ax;
	}
else if(navid == 'nb')
	{hmenuoff = bx;
	offset = bx;}
else
	{hmenuoff = offset;}

                vmenuoff = voffset;

                if (isNS) {
                        document[menuID].top = voffset;
                        document[menuID].left = offset;

			document[menuID].zIndex = 2;
                } else {
                        document.all[menuID].style.pixelTop = 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 <=30) {
	  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 >=31) {
 	  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




document.write("</head>\
<body bgcolor=\"#ffffff\" marginwidth=\"2\" marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\" onload=\"init();\">");

if (isDynamic) {
document.write("<DIV id=\"menu1\" class=\"menu\" onMouseover=\"activateMenu(1,153,190)\">\
<A href=\"http://www.hotels-in-delhi-reservation.com/delhi-information.html\">&nbsp;&nbsp;<b>&#164;</b>&nbsp;Delhi Information</A><BR>\
<A href=\"http://www.hotels-in-delhi-reservation.com/delhi-information.html#tourist-attractions\">&nbsp;&nbsp;<b>&#164;</b>&nbsp;Tourist Attraction</A><BR>\
<A href=\"http://www.hotels-in-delhi-reservation.com/excursion.html\">&nbsp;&nbsp;<b>&#164;</b>&nbsp;Excursions</A><BR>\
</DIV>"); 

document.write("<DIV id=\"menu2\" class=\"menu\" onMouseover=\"activateMenu(2,153,190)\">\
<A href=\"http://www.hotels-in-delhi-reservation.com/central-delhi-map.html\">&nbsp;&nbsp;<b>&#164;</b>&nbsp;Central Delhi</A><BR>\
<A href=\"http://www.hotels-in-delhi-reservation.com/central-delhi-map.html#connaught-place\">&nbsp;&nbsp;<b>&#164;</b>&nbsp;Connaught Place</A><BR>\
<A href=\"http://www.hotels-in-delhi-reservation.com/airport-map.html\">&nbsp;&nbsp;<b>&#164;</b>&nbsp;Airport</A><BR>\
<A href=\"http://www.hotels-in-delhi-reservation.com/airport-map.html#south-delhi-map\">&nbsp;&nbsp;<b>&#164;</b>&nbsp;South Delhi</A><BR>\
</DIV>"); 


}


//-->
