function MM_displayStatusMsg(msgStr)  { //v3.0
	status=msgStr; document.MM_returnValue = true;
}

function MM_findObj(n, d) { //v3.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); return x;
}
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 MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function mainLoadMenus() {

href = document.location.href;
a = href.split("html/");
var htmlpath = "";
var imagepath = "";
if( a[1] ) {
	a = href.split("/");
	var i = a.length-2;
	if( a[i] == "html" ) {
	    // we are in the html directory itself
	     htmlpath = "./";
		 imagepath = "../";
	} else {
	    do{
		    i--;
		    htmlpath += "../";
	    } while( a[i] != "html" );
	    imagepath = "../" + htmlpath;
	}
} else {
	// we are above the html directory in the root directory
	htmlpath = "html/";
	imagepath = "./";
}
var hcolour = "#FFFFFF";
var lcolour = "#FF0000";
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",109,17,"Arial, Helvetica, sans-serif",12,hcolour,lcolour,"#ffffff","#ffffff");
  fw_menu_0.addMenuItem("Andy","location= '" + htmlpath + "fandf/andy.htm'");
  fw_menu_0.addMenuItem("Shola","location= '" + htmlpath + "fandf/shola.htm'");
  fw_menu_0.addMenuItem("Anu","location= '" + htmlpath + "fandf/anu.htm'");
  fw_menu_0.addMenuItem("Debra &amp; Chris","location= '" + htmlpath + "fandf/debra.htm'");
  fw_menu_0.addMenuItem("Ian &amp; Karen","location= '" + htmlpath + "fandf/ian.htm'"); 
  fw_menu_0.addMenuItem("Ian\'s Web Site","location='http://homepages.which.net/~ian.slough/'"); 
  fw_menu_0.addMenuItem("Johnny &amp; Eleanor","location= '" + htmlpath + "fandf/johnny.htm'");
  fw_menu_0.addMenuItem("Julie","location= '" + htmlpath + "julie/index.htm'");
   fw_menu_0.bgImageUp= imagepath + "images/navbar/fwmenu4_109x17_up.gif";
   fw_menu_0.bgImageOver= imagepath + "images/navbar/fwmenu4_109x17_over.gif";
   fw_menu_0.fontWeight="bold";
   fw_menu_0.hideOnMouseOut=true;
  window.fw_menu_1 = new Menu("root",61,17,"Arial, Helvetica, sans-serif",12,hcolour,lcolour,"#ffffff","#ffffff");
  fw_menu_1.addMenuItem("Boston","location= '" + htmlpath + "holidays/boston.htm'");
  fw_menu_1.addMenuItem("Miami","location= '" + htmlpath + "holidays/miami.htm'");
  fw_menu_1.addMenuItem("Kernow","location= '" + htmlpath + "holidays/kernow.htm'");
  fw_menu_1.addMenuItem("Conwy","location= '" + htmlpath + "holidays/conwy.htm'");
   fw_menu_1.bgImageUp= imagepath + "images/navbar/fwmenu1_61x17_up.gif";
   fw_menu_1.bgImageOver= imagepath + "images/navbar/fwmenu1_61x17_over.gif";
   fw_menu_1.fontWeight="bold";
   fw_menu_1.hideOnMouseOut=true;
      window.fw_menu_2_1_1 = new Menu("Geography",75,17,"Arial, Helvetica, sans-serif",12,hcolour,lcolour,"#ffffff","#ffffff");
      fw_menu_2_1_1.addMenuItem("States","location= '" + htmlpath + "projects/india/states.htm'");
       fw_menu_2_1_1.bgImageUp= imagepath + "images/navbar/fwmenu2_75x17_up.gif";
       fw_menu_2_1_1.bgImageOver= imagepath + "images/navbar/fwmenu2_75x17_over.gif";
       fw_menu_2_1_1.fontWeight="bold";
       fw_menu_2_1_1.hideOnMouseOut=true;
    window.fw_menu_2_1 = new Menu("India",75,17,"Arial, Helvetica, sans-serif",12,hcolour,lcolour,"#ffffff","#ffffff");
    fw_menu_2_1.addMenuItem("Facts","location= '" + htmlpath + "projects/india/facts.htm'");
    fw_menu_2_1.addMenuItem(fw_menu_2_1_1);
     fw_menu_2_1.bgImageUp= imagepath + "images/navbar/fwmenu2_75x17_up.gif";
     fw_menu_2_1.bgImageOver= imagepath + "images/navbar/fwmenu2_75x17_over.gif";
     fw_menu_2_1.fontWeight="bold";
     fw_menu_2_1.hideOnMouseOut=true;
     fw_menu_2_1.childMenuIcon= imagepath + "images/navbar/arrows.gif";
    window.fw_menu_2_2 = new Menu("Guitar",75,17,"Arial, Helvetica, sans-serif",12,hcolour,lcolour,"#ffffff","#ffffff");
    fw_menu_2_2.addMenuItem("Chords","location= '" + htmlpath + "projects/guitar/chords1.htm'");
     fw_menu_2_2.bgImageUp= imagepath + "images/navbar/fwmenu2_75x17_up.gif";
     fw_menu_2_2.bgImageOver= imagepath + "images/navbar/fwmenu2_75x17_over.gif";
     fw_menu_2_2.fontWeight="bold";
     fw_menu_2_2.hideOnMouseOut=true;
  window.fw_menu_2 = new Menu("root",75,17,"Arial, Helvetica, sans-serif",12,hcolour,lcolour,"#ffffff","#ffffff");
  fw_menu_2.addMenuItem(fw_menu_2_1);
  fw_menu_2.addMenuItem(fw_menu_2_2,"location= '" + htmlpath + "projects/guitar/chords1.htm'");
   fw_menu_2.bgImageUp= imagepath + "images/navbar/fwmenu2_75x17_up.gif";
   fw_menu_2.bgImageOver= imagepath + "images/navbar/fwmenu2_75x17_over.gif";
   fw_menu_2.fontWeight="bold";
   fw_menu_2.hideOnMouseOut=true;
   fw_menu_2.childMenuIcon= imagepath + "images/navbar/arrows.gif";
  window.fw_menu_3 = new Menu("root",65,17,"Arial, Helvetica, sans-serif",12,hcolour,lcolour,"#ffffff","#ffffff");
  fw_menu_3.addMenuItem("Current","location='" + htmlpath + "../index.htm'");
  fw_menu_3.addMenuItem("House","location= '" + htmlpath + "news/house.htm'");
  fw_menu_3.addMenuItem("Wedding","location= '" + htmlpath + "news/wedding.htm'");
  fw_menu_3.addMenuItem("Archive","location= '" + htmlpath + "news/archive.htm'");
   fw_menu_3.bgImageUp= imagepath + "images/navbar/fwmenu3_65x17_up.gif";
   fw_menu_3.bgImageOver= imagepath + "images/navbar/fwmenu3_65x17_over.gif";
   fw_menu_3.fontWeight="bold";
   fw_menu_3.hideOnMouseOut=true;

  fw_menu_3.writeMenus();

} // mainLoadMenus()
