function sMn(mn,wd) { wd = parseInt(wd)+70; window.FW_showMenu(mn,wd,100); }
function IMn(mn,wd) { wd = parseInt(wd)+70; window.FW_showMenu(mn,wd,320); }
function hMn() { FW_startTimeout(); }
function msOvr(s) { s.bgColor='#ffcc68'; }
function msOut(s) { s.bgColor='#ffcc68'; }

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function fwLoadMenus() {
if (window.fw_menu_0) return;


window.fw_menu_bul_vol1=new Menu("Volume 1",100);
fw_menu_bul_vol1.addMenuItem("Volume 1 ","location=PageChanger('HTML/vol1/vol1.pdf')");

window.fw_menu_bul_vol2=new Menu("Volume 2",100);
fw_menu_bul_vol2.addMenuItem("Volume 2 No.1","location=PageChanger('HTML/vol2_1/vol2_1.pdf')");
fw_menu_bul_vol2.addMenuItem("Volume 2 No.2","location=PageChanger('HTML/vol2_2/vol2_2.pdf')");

window.fw_menu_bul_vol3=new Menu("Volume 3",100);
fw_menu_bul_vol3.addMenuItem("Volume 3 (1&2) ","location=PageChanger('HTML/vol3/vol3.pdf')");

window.fw_menu_bul_vol4=new Menu("Volume 4",100);
fw_menu_bul_vol4.addMenuItem("Volume 4 ","location=PageChanger('HTML/vol4/vol4.pdf')");

window.fw_menu_bul_vol5=new Menu("Volume 5",100);
fw_menu_bul_vol5.addMenuItem("Volume 5 No.1","location=PageChanger('HTML/vol5_1/vol5_1.pdf')");
fw_menu_bul_vol5.addMenuItem("Volume 5 No.2","location=PageChanger('HTML/vol5_2/vol5_2.pdf')");

window.fw_menu_bul_vol6=new Menu("Volume 6",100);
fw_menu_bul_vol6.addMenuItem("Volume 6 No.1","location='HTML/vol61/vol61.htm'");
fw_menu_bul_vol6.addMenuItem("Volume 6 No.2","location='HTML/vol62/vol62.htm'");

window.fw_menu_bul_vol7=new Menu("Volume 7",100);
fw_menu_bul_vol7.addMenuItem("Volume 7 No.1","location='HTML/vol71/vol71.htm'");
fw_menu_bul_vol7.addMenuItem("Volume 7 No.2","location='HTML/vol72/vol72.html'");

window.fw_menu_bul_vol8=new Menu("Volume 8",100);
fw_menu_bul_vol8.addMenuItem("Volume 8 No.1","location='HTML/vol81/vol81.html'");
fw_menu_bul_vol8.addMenuItem("Volume 8 No.2","location='HTML/vol82/vol82.html'");

window.fw_menu_bul_vol9=new Menu("Volume 9",100);
fw_menu_bul_vol9.addMenuItem("Volume 9 No.1","location='HTML/vol91/vol91.html'");
fw_menu_bul_vol9.addMenuItem("Volume 9 No.2","location='HTML/vol92/vol92.htm'");

window.fw_menu_bul_vol10=new Menu("Volume 10",100);
fw_menu_bul_vol10.addMenuItem("Volume 10 No.1","location='HTML/vol10_1/vol10_1.htm'");
fw_menu_bul_vol10.addMenuItem("Volume 10 No.2","location='HTML/vol10_2/vol10_2.htm'");

window.fw_menu_bul_vol11=new Menu("Volume 11",100);
fw_menu_bul_vol11.addMenuItem("Volume 11 No.1","location='HTML/vol11_1/vol11_1.htm'");
fw_menu_bul_vol11.addMenuItem("Volume 11 No.2","location='HTML/vol11_2/vol11_2.htm'");

window.fw_menu_bul_vol12=new Menu("Volume 12",100);
fw_menu_bul_vol12.addMenuItem("Volume 12 No.1","location='HTML/vol12_1/vol12_1.htm'");
fw_menu_bul_vol12.addMenuItem("Volume 12 No.2","location='HTML/vol12_2/vol12_2.htm'");

window.fw_menu_bul_vol13=new Menu("Volume 13",100);
fw_menu_bul_vol13.addMenuItem("Volume 13 No.1","location='HTML/vol13_1/vol13_1.htm'");
fw_menu_bul_vol13.addMenuItem("Volume 13 No.2","location='HTML/vol13_2/vol13_2.htm'");

window.fw_menu_bul_vol14=new Menu("Volume 14",100);
fw_menu_bul_vol14.addMenuItem("Volume 14 No.1","location='HTML/vol14_1/vol14_1.htm'");
fw_menu_bul_vol14.addMenuItem("Volume 14 No.2","location='HTML/vol14_2/vol14_2.htm'");

window.fw_menu_bul_vol15=new Menu("Volume 15",100);
fw_menu_bul_vol15.addMenuItem("Volume 15 (1&2)","location='HTML/vol15_1&2/vol15_1&2.htm'");

window.fw_menu_bul_vol16=new Menu("Volume 16",100);
fw_menu_bul_vol16.addMenuItem("Volume 16 No.1","location='HTML/vol16_1/vol16_1.htm'");
fw_menu_bul_vol16.addMenuItem("Volume 16 No.2","location='HTML/vol16_2/vol16_2.htm'");

window.fw_menu_bul=new Menu("Bulletin",100);
fw_menu_bul.addMenuItem(fw_menu_bul_vol1,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol2,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol3,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol4,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol5,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol6,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol7,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol8,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol9,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol10,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol11,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol12,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol13,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol14,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol15,"location='#'");
fw_menu_bul.addMenuItem(fw_menu_bul_vol16,"location='#'");

window.fw_menu_monog=new Menu("Monograph",100);
fw_menu_monog.addMenuItem("Monograph No.1","location='HTML/monograph1/contents.html'");
fw_menu_monog.addMenuItem("Monograph No.2","location='HTML/monograph2/monograph2.html'");
fw_menu_monog.addMenuItem("Monograph No.3","location='HTML/monograph3/Contents.html'");

window.fw_menu_nwl=new Menu("Newsletter",100);
fw_menu_nwl.addMenuItem("Newsletter Vol.1","location='ENVIS Newsletter/vol_1/vol_1.htm'");
fw_menu_nwl.addMenuItem("Newsletter Vol.2","location='ENVIS Newsletter/vol_2/vol_2.htm'");
fw_menu_nwl.addMenuItem("Newsletter Vol.3","location='ENVIS Newsletter/vol_3/vol_3.htm'");
fw_menu_nwl.addMenuItem("Newsletter Vol.4","location='ENVIS Newsletter/vol_4/vol_4.htm'");
fw_menu_nwl.addMenuItem("Newsletter Vol.5","location='ENVIS Newsletter/vol_5/vol_5.htm'");

window.fw_menu_pub = new Menu("root",100);
fw_menu_pub.addMenuItem(fw_menu_bul,"location='#'");
fw_menu_pub.addMenuItem(fw_menu_monog,"location='#'");
fw_menu_pub.addMenuItem(fw_menu_nwl,"location='#'");

window.fw_menu_abtus = new Menu("root",125);
fw_menu_abtus.addMenuItem("About the Institute","location='aboutinstitute.htm'");
fw_menu_abtus.addMenuItem("About Us","location='aboutenvis.htm'");
fw_menu_abtus.addMenuItem("INFOTERRA of UNEP","location='infoterra_unep.htm'");

window.fw_menu_th=new Menu("Thesis Database",150);
fw_menu_th.addMenuItem("Inhouse Thesis","location='thesis/thesis.html'");
fw_menu_th.addMenuItem("Thesis On Himalaya","location='thesis/himthesis/himthesis.html'");


window.fw_menu_res_hima = new Menu("root",140);
fw_menu_res_hima.addMenuItem("Indian Himalayan Region","location='indian_him_reg.htm'");
fw_menu_res_hima.addMenuItem("Explore Himalaya","location='himalaya.html'");
fw_menu_res_hima.addMenuItem("MIS/GIS on Himalaya","location='misgis/misgis.html'");
fw_menu_res_hima.addMenuItem("Environmental MIS","location='env_mis.htm'");
fw_menu_res_hima.addMenuItem(fw_menu_th,"location='#'");
fw_menu_res_hima.addMenuItem("Indian Himalayan States","location='him_states.htm'");


window.fw_menu_o_link = new Menu("root",120);
fw_menu_o_link.addMenuItem("Major Achievements","location='achievements.htm'");
fw_menu_o_link.addMenuItem("Himalayan Links","location='link/himalayanlink.htm'");
fw_menu_o_link.addMenuItem("Other Relevant Links","location='envislinks.htm'");

window.fw_menu_env_net = new Menu("root",120);
fw_menu_env_net.addMenuItem("Subject Specific","location='enviscenters.htm'");
fw_menu_env_net.addMenuItem("State Government","location='envisnodes.htm'");

window.fw_menu_contact = new Menu("root",90);
fw_menu_contact.writeMenus();

} // fwLoadMenus()



function PageChanger(Page)
{
   if (Page!=' ')
  {
    newWindow=window.open(Page);
  }
return this.document.location;
}
