/**
* mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 Macromedia, Inc.
*
* based on menu.js
* by gary smith, July 1997
* Copyright (c) 1997-1999 Netscape Communications Corp.
*
* Netscape grants you a royalty free license to use or modify this
* software provided that this copyright notice appears on all copies.
* This software is provided "AS IS," without a warranty of any kind.
*/
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
{
this.version = "020320 [Menu; mm_menu.js]";
this.type = "Menu";
this.menuWidth = mw;
this.menuItemHeight = mh;
this.fontSize = fs;
this.fontWeight = "plain";
this.fontFamily = fnt;
this.fontColor = fclr;
this.fontColorHilite = fhclr;
this.bgColor = "#FFFFFF";
this.menuBorder = 1;
this.menuBgOpaque=opq;
this.menuItemBorder = 1;
this.menuItemIndent = idt;
this.menuItemBgColor = bg;
this.menuItemVAlign = valgn;
this.menuItemHAlign = halgn;
this.menuItemPadding = pad;
this.menuItemSpacing = space;
this.menuLiteBgColor = "#FFFFFF";
this.menuBorderBgColor = "";
this.menuHiliteBgColor = bgh;
this.menuContainerBgColor = "#cccccc";
this.childMenuIcon = "images/arrows.gif";
this.submenuXOffset = sx+8;
this.submenuYOffset = sy-8;
this.submenuRelativeToItem = srel;
this.vertical = vert;
this.items = new Array();
this.actions = new Array();
this.childMenus = new Array();
this.hideOnMouseOut = true;
this.hideTimeout = to;
this.addMenuItem = addMenuItem;
this.writeMenus = writeMenus;
this.MM_showMenu = MM_showMenu;
this.onMenuItemOver = onMenuItemOver;
this.onMenuItemAction = onMenuItemAction;
this.hideMenu = hideMenu;
this.hideChildMenu = hideChildMenu;
if (!window.menus) window.menus = new Array();
this.label = " " + label;
window.menus[this.label] = this;
window.menus[window.menus.length] = this;
if (!window.activeMenus) window.activeMenus = new Array();
}
function mmLoadMenus() {
if (window.mm_menu_0517070711_0) return;
window.mm_menu_0517070711_0 = new Menu("root",150,20,"Geneva, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#840D71","#d689a9","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0517070711_0.addMenuItem("Food in a Glass","location='foodglass.php'");
mm_menu_0517070711_0.addMenuItem("Omega 3","location='omega.php'");
mm_menu_0517070711_0.addMenuItem("Prebiotic Fibre","location='fibre.php'");
mm_menu_0517070711_0.addMenuItem("Calcium","location='calcium.php'");
mm_menu_0517070711_0.addMenuItem("Vitamins & Minerals","location='vitamins.php'");
mm_menu_0517070711_0.addMenuItem("Which Milk?","location='milks.php'");
if (window.mm_menu_0517070711_1) return;
window.mm_menu_0517070711_1 = new Menu("root",150,20,"Geneva, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#840D71","#d689a9","left","middle",3,0,1000,-5,7,true,true,true,0,true,false);
mm_menu_0517070711_1.addMenuItem("Eating In","location='eatingin.php'");
mm_menu_0517070711_1.addMenuItem("Eating Out","location='eatout.php'");
mm_menu_0517070711_1.addMenuItem("Vegetarian","location='vegetarians.php'");
mm_menu_0517070711_1.addMenuItem("Snacking","location='snacking.php'");
mm_menu_0517070711_1.addMenuItem("Drinks","location='drinks.php'");
mm_menu_0517070711_0.writeMenus();
mm_menu_0517070711_1.writeMenus();
} // mmLoadMenus()
function addMenuItem(label, action) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
}
function FIND(item) {
if( window.mmIsOpera ) return(document.getElementById(item));
if (document.all) return(document.all[item]);
if (document.getElementById) return(document.getElementById(item));
return(false);
}
function writeMenus(container) {
if (window.triedToWriteMenus) return;
var agt = navigator.userAgent.toLowerCase();
window.mmIsOpera = agt.indexOf("opera") != -1;
if (!container && document.layers) {
window.delayWriteMenus = this.writeMenus;
var timer = setTimeout('delayWriteMenus()', 500);
container = new Layer(100);
clearTimeout(timer);
} else if (document.all || document.hasChildNodes || window.mmIsOpera) {
document.writeln('');
container = FIND("menuContainer");
}
window.mmHideMenuTimer = null;
if (!container) return;
window.triedToWriteMenus = true;
container.isContainer = true;
container.menus = new Array();
for (var i=0; i