

//do browser detect stuff

wd= 640;
x= 400;

<!--
//wd = screen.width;
//if (wd == 1024)
//var x = 289;
//if (wd == 800)
//{var x=210;}
//if (wd == 640)
//var x=96;



var isNS = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
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;
                
                     document.all[menuID].style.pixelTop = 25 + voffset;
                     document.all[menuID].style.pixelLeft =offset-21;
                 // 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 = 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

//F1FDD7
document.write("</head>\
<body bgcolor=\"#F1FDD7\" marginwidth=\"0\" marginheight=\"0\" topmargin=\"2\" leftmargin=\"0\" onload=\"init();\">");

if (isDynamic) {
document.write("<DIV id=\"menu9\" class=\"menu\" onMouseover=\"activateMenu(9,x,200)\">\
<A href=\"map.htm\">Visit Your Reserve</A><BR>\
<A href=\"serviceDir.asp\">Tiger Reserve Service Directory</A><BR>\
<A href=\"searchnew.asp\">Search a Reserve</A><BR>\
</DIV>");
        document.write("<DIV id=\"menu1\" class=\"menu\" onMouseover=\"activateMenu(1,x,200)\">\
<A href=\"introduction.asp\">Introduction</A><BR>\
<A href=\"directory.asp\">Official Directory</A><BR>\
<A href=\"organisation.asp\">Organisation</A><BR>\
</DIV>");

document.write("<DIV id=\"menu3\" class=\"menu\" onmouseover=\"activateMenu(3,x,270)\">\
<A href=\"whyaretigerindanger.asp\">Key Threatening Processes</A><BR>\
<A href=\"howcanyouhelp.asp\">How Can You Help?</B></A><BR>\
</DIV>");

document.write("<DIV id=\"menu5\" class=\"menu\" onmouseover=\"activateMenu(5,x,270)\">\
<A href=\"past.asp\">Past, Present, Future</B></A><BR>\
<A href=\"ecodevelopment.asp\">India Eco-Development Project</B></A><BR>\
<A href=\"internationaleffort.asp\">International Effort</B></A><BR>\
<A href=\"govtinitiative.asp\">Government Initiative</B></A><BR>\
</DIV>");

document.write("<DIV id=\"menu4\" class=\"menu\" onmouseover=\"activateMenu(4,x,280)\">\
<A href=\"tigersworld.asp\" target =\"_parent\">Tiger's World</A><BR>\
<A href=\"tigerstories.asp\" target =\"_parent\">Tiger Stories</A><BR>\
<A href=\"tigerpictures.asp\" target =\"_parent\">Tiger Pictures</A><BR>\
<A href=\"wheredoestigerlive.asp\" target =\"_parent\">Where Does Tiger Live?</A><BR>\
<A href=\"whatdoestigerlike.asp\" target =\"_parent\">What Does Tiger Like?</A><BR>\
<A href=\"whyistigersad.asp\" target =\"_parent\">Why is the Tiger SAD?</A><BR>\
<A href=\"whyshouldwesavetiger.asp\" target =\"_parent\">Why should we save Tiger?</A><BR>\
<A href=\"howcanyouhelptiger.asp\" target =\"_parent\">How can you Help Tiger?</A><BR>\
</DIV>");


document.write("<DIV id=\"menu6\" class=\"menu\" onmouseover=\"activateMenu(6,x,280)\">\
<A href=\"wildlifeprotection.asp\">Wildlife Protection Act (1972)</A><BR>\
<A href=\"actionplan.asp\">National Wildlife Action Plan</A><BR>\
<A href=\"wildlifeconservation.asp\">Wildlife Conservation Strategy</A><BR>\
</DIV>");

document.write("<DIV id=\"menu7\" class=\"menu\" onmouseover=\"activateMenu(7,x,280)\">\
<A href=\"poaching.asp\">Poaching Cases</A>\
<A href=\"photographicevidence.asp\"></A><BR>\
</DIV>");

document.write("<DIV id=\"menu8\" class=\"menu\" onmouseover=\"activateMenu(8,x,280)\">\
<A href=\"naturehabitat.asp\">Tiger/Nature,Habitat,Habits</A><BR>\
<A href=\"tigerbehaviour.asp\">Tiger Behaviour</A><BR>\
<A href=\"huntingtechniques.asp\">Hunting Techniques</A><BR>\
<A href=\"sizevariations.asp\">Size Variations</A><BR>\
</DIV>");

document.write("<DIV id=\"menu10\" class=\"menu\" onmouseover=\"activateMenu(10,x,280)\">\
<A href=\"yearofcreation.asp\">Year of Creation of Various Reserves</A><BR>\
<A href=\"populationinstate.asp\">Population of Tiger in Tiger Reserves</A><BR>\
<A href=\"populationinindia.asp\">Population of Tiger in India</A><BR>\
<A href=\"funds.asp\">Funds</A><BR>\
</DIV>");

}


//-->