// Watling JavaScript and Menu System
function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); 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_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 mmLoadMenus() {
  if (window.mm_towbars) return;
  
  window.mm_towbars = new Menu("root",140,16,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#d4dfaa","#000099","left","middle",2,1,1000,-5,11,true,true,true,3,true,true);
  mm_towbars.addMenuItem("UK Vehicles","location='uk_cars.html'");
  mm_towbars.addMenuItem("Imports","location='import_vehicle_towbars.html'");
  mm_towbars.addMenuItem("Motorhomes","location='motorhome_towbars.html'");
  mm_towbars.addMenuItem("Commercials","location='commercial_vehicle_towbars.html'");
  mm_towbars.addMenuItem("Unusual Requests","location='unusualrequest.htm'");
   mm_towbars.hideOnMouseOut=true;
   mm_towbars.menuBorder=1;
   mm_towbars.menuLiteBgColor='#ffffff';
   mm_towbars.menuBorderBgColor='#555555';
   mm_towbars.bgColor='#ffffff';
  window.mm_mobike = new Menu("root",120,16,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#d4dfaa","#000099","left","middle",2,1,1000,-5,11,true,true,true,3,true,true);
  mm_mobike.addMenuItem("Motorack","location='motorbike_scooter_carrier.html'");
  mm_mobike.addMenuItem("Bike Rack Mk1","location='motorbike_scooter_carrier.html#mk1'");
  mm_mobike.addMenuItem("Cycle Racks","location='cycleracks.html'");
   mm_mobike.hideOnMouseOut=true;
   mm_mobike.menuBorder=1;
   mm_mobike.menuLiteBgColor='#ffffff';
   mm_mobike.menuBorderBgColor='#555555';
   mm_mobike.bgColor='#ffffff';
 window.mm_accessories = new Menu("root",133,16,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#d4dfaa","#000099","left","middle",2,1,1000,-5,11,true,true,true,3,true,true);
  mm_accessories.addMenuItem("Towing Accessories","location='accessories.html#Accessories'");
  mm_accessories.addMenuItem("Steel","location='accessories.html#Steel'");
  mm_accessories.addMenuItem("Nuts and Bolts","location='accessories.html#Bolts'");
   mm_accessories.hideOnMouseOut=true;
   mm_accessories.menuBorder=1;
   mm_accessories.menuLiteBgColor='#ffffff';
   mm_accessories.menuBorderBgColor='#555555';
   mm_accessories.bgColor='#ffffff';
  window.mm_pricelist = new Menu("root",140,16,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#d4dfaa","#000099","left","middle",2,1,1000,-5,11,true,true,true,3,true,true);
  mm_pricelist.addMenuItem("UK Towbars","location='docs/pricelist.pdf'");
  mm_pricelist.addMenuItem("Import Vehicles","location='docs/imports05.pdf'");
  mm_pricelist.addMenuItem("Front Towbars","location='docs/front_towbars05.pdf'");
   mm_pricelist.hideOnMouseOut=true;
   mm_pricelist.menuBorder=1;
   mm_pricelist.menuLiteBgColor='#ffffff';
   mm_pricelist.menuBorderBgColor='#555555';
   mm_pricelist.bgColor='#ffffff';
  window.mm_caravan = new Menu("root",240,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#d4dfaa","#000099","left","middle",2,1,1000,-5,11,true,true,true,3,true,true);
  mm_caravan.addMenuItem("Caravan Maintanance Hints &amp; Tips","location='caravan_maintenance.html'");
  mm_caravan.hideOnMouseOut=true;
  mm_caravan.menuBorder=1;
  mm_caravan.menuLiteBgColor='#ffffff';
  mm_caravan.menuBorderBgColor='#555555';
  mm_caravan.bgColor='#ffffff';
  mm_caravan.writeMenus();

  window.mm_menu_todo = new Menu("root",140,16,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#d4dfaa","#000099","left","middle",2,1,1000,-5,11,true,true,true,3,true,true);
  mm_menu_todo.addMenuItem("Park&nbsp;Street&nbsp;Village","location='parkstvillage.html'");
  mm_menu_todo.addMenuItem("St.&nbsp;Albans","location='stalbans.html'");
  mm_menu_todo.addMenuItem("Transport&nbsp;Links","location='transportlinks.html'");
  mm_menu_todo.addMenuItem("Overnight&nbsp;Stay","location='overnightstay.html'");
   mm_menu_todo.hideOnMouseOut=true;
   mm_menu_todo.menuBorder=1;
   mm_menu_todo.menuLiteBgColor='#ffffff';
   mm_menu_todo.menuBorderBgColor='#555555';
   mm_menu_todo.bgColor='#ffffff';
  mm_menu_todo.writeMenus();

} // mmLoadMenus()
