/**
 * 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 trimString(srcString){
	var whitespace = new RegExp("[\s \n\r\t]",["g"]);
	return srcString.replace(whitespace,'');
}
 
function Menu(label, bg, bgh, pad, sx, sy) 
{
	this.menuWidth = 124;
	this.entryHeight = 18;
	this.fontSize = 12;
	this.fontWeight = "plain";
	this.fontFamily = "Arial, Helvetica, sans-serif";
	this.bgColor = "#FFFFFF";
	this.entryBorder = 1;
	this.entryBG = bg;
	this.entryPadding = pad;
	this.menuLitBG = bgh;
	this.childXOffset = sx;
	this.childYOffset = sy;
	this.items = new Array();
	this.actions = new Array();
	this.addEntry = addEntry;
	this.writeMenus = writeMenus;
	this.popOn = popOn;
	this.doOver = doOver;
	this.doAction = doAction;
	this.popOff = popOff;
	if (!window.menus) window.menus = new Array();
	this.label = " " + label;
	window.menus[this.label] = this;
	window.menus[window.menus.length] = this;
	if (!window.liveMenus) window.liveMenus = new Array();
}

function addEntry(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('<span id="menuContainer"></span>');
		container = FIND("menuContainer");
	}

	window.mmpopOffTimer = null;
	if (!container) return;	
	window.triedToWriteMenus = true; 
	container.isContainer = true;
	container.menus = new Array();
	for (var i=0; i<window.menus.length; i++) 
		container.menus[i] = window.menus[i];
	window.menus.length = 0;
	var countMenus = 0;
	var countItems = 0;
	var top = 0;
	var content = '';
	var lrs = false;
	var theStat = "";
	var tsc = 0;
	if (document.layers) lrs = true;
	for (var i=0; i<container.menus.length; i++, countMenus++) {
		var menu = container.menus[i];
		menu.entryBorder = 0;
		if (lrs) {
			var menuLayer = new Layer(100, container);
			var lite = new Layer(100, menuLayer);
			lite.top = 0;
			lite.left = 0;
			var body = new Layer(100, lite);
			body.top = 0;
			body.left = 0;
		} else {
			content += ''+
			'<div id="menuLayer'+ countMenus +'" style="position:absolute;z-index:15;left:10px;top:'+ (i * 100) +'px;visibility:hidden;cursor:pointer;color:' +  menu.menuBorderBgColor + ';">\n'+
			'  <div id="menuLite'+ countMenus +'" style="position:absolute;z-index:15;left:'+ 0 +'px;top:'+ 0 +'px;visibility:hide;" onmouseout="mouseoutMenu();">\n'+
			'	 <div id="menuFg'+ countMenus +'" style="position:absolute;left:'+ 0 +'px;top:'+ 0 +'px;visibility:hide;">\n'+
			'';
		}
		var x=i;
		for (var i=0; i<menu.items.length; i++) {
			var item = menu.items[i];
			var defaultHeight = menu.fontSize+2*menu.entryPadding;
			menu.entryHeight = menu.entryHeight || defaultHeight;
			var itemProps = '';
			if( menu.fontFamily != '' ) itemProps += 'font-family:' + menu.fontFamily +';';
			itemProps += 'font-weight:' + menu.fontWeight + ';fontSize:' + menu.fontSize + 'px;';
			if (menu.fontStyle) itemProps += 'font-style:' + menu.fontStyle + ';';
			if (document.all || window.mmIsOpera) 
				itemProps += 'font-size:12px;" onmouseover="doOver(null,this);" onclick="doAction(null,this);';
			else if (!document.layers) {
				itemProps += 'font-size:12px;';
			}
			var l;
			if (lrs) {
				var lw = menu.menuWidth;
				l = new Layer(lw,body);
			}
			var itemLeft = 0;
			var itemTop = i*menu.entryHeight;
			itemLeft = i*menu.menuWidth;
			itemTop = 0;
			var dTag = '<div id="entry'+ countItems +'" style="position:absolute;left:' + itemLeft + 'px;top:'+ itemTop +'px;'+ itemProps +'">';
			var dClose = '</div>'

			var left = 0, top = 0, right = 0, bottom = 0;
			left = 1 + menu.entryPadding;
			right = left + menu.menuWidth - 2*menu.entryPadding;
			top = ((menu.entryHeight/2)-(menu.fontSize/2)-1);
			bottom = menu.entryHeight - 2*menu.entryPadding;
			var textProps = 'position:absolute;left:' + left + 'px;top:' + top + 'px;';
			if (lrs) {
				textProps +=itemProps + 'right:' + right + ';bottom:' + bottom + ';';
				dTag = "";
				dClose = "";
			}
			
			if(document.all && !window.mmIsOpera) {
				item = '<div align="left">' + item + '</div>';
			} else if (lrs) {
				item = '<div style="text-align:left;">' + item + '</div>';
			} else {
				var hitem = null;
			}
			if(document.all && !window.mmIsOpera) item = '<div id="entryShim' + countItems + '" style="position:absolute;left:0px;top:0px;">' + item + '</div>';
			var dText	= '<div id="entryText'+ countItems +'" style="' + textProps + 'color:white;">'+ item +'&nbsp</div>\n'
						+ '<div id="entryHilite'+ countItems +'" style="' + textProps + 'color:white;visibility:hidden;">' 
						+ (hitem||item) +'&nbsp</div>';
			content += ( dTag + dText + dClose);
			if (lrs) {
				l.document.open("text/html");
				l.document.writeln(content);
				l.document.close();	
				content = '';
				theStat += "-";
				tsc++;
				if (tsc > 50) {
					tsc = 0;
					theStat = "";
				}
				status = theStat;
			}
			countItems++;  
		}
		if (lrs) {
			var focusItem = new Layer(100, body);
			focusItem.visiblity="hidden";
			focusItem.document.open("text/html");
			focusItem.document.writeln("&nbsp;");
			focusItem.document.close();	
		} else {
		  content += '	  <div id="focusItem'+ countMenus +'" style="position:absolute;left:0px;top:0px;visibility:hide;" onclick="doAction(null,this);">&nbsp;</div>\n';
		  content += '   </div>\n  </div>\n</div>\n';
		}
		i=x;
	}
	if (document.layers) {		
		container.clip.width = window.innerWidth;
		container.clip.height = window.innerHeight;
		container.onmouseout = mouseoutMenu;
		for (var i=0; i<container.document.layers.length; i++) {
			proto = container.menus[i];
			var menu = container.document.layers[i];
			container.menus[i].menuLayer = menu;
			container.menus[i].menuLayer.Menu = container.menus[i];
			container.menus[i].menuLayer.Menu.container = container;
			var body = menu.document.layers[0].document.layers[0];
			body.clip.width = proto.menuWidth || body.clip.width;
			body.clip.height = proto.menuHeight || body.clip.height;
			for (var n=0; n<body.document.layers.length-1; n++) {
				var l = body.document.layers[n];
				l.Menu = container.menus[i];
				l.menuLitBG = proto.menuLitBG;
				l.document.bgColor = proto.entryBG;
				l.saveColor = proto.entryBG;
				l.onmouseover = proto.doOver;
				l.onclick = proto.doAction;
				l.mmaction = container.menus[i].actions[n];
				l.focusItem = body.document.layers[body.document.layers.length-1];
				l.clip.width = proto.menuWidth || body.clip.width;
				l.clip.height = proto.entryHeight || l.clip.height;
				if (n>0) {
					l.top = body.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.entryBorder;
				}
				l.hilite = l.document.layers[1];
				l.document.layers[1].isHilite = true;
			}
			body.document.bgColor = proto.bgColor;
			body.clip.width  = l.clip.width;
			body.clip.height = l.top + l.clip.height + proto.menuBorder;
			var focusItem = body.docuent.layers[n];
			focusItem.clip.width = body.clip.width;
			focusItem.Menu = l.Menu;
			focusItem.top = -30;
            focusItem.captureEvents(Event.MOUSEDOWN);
            focusItem.onmousedown = onentryDown;
			menu.document.bgColor = proto.menuBorderBgColor;
			var lite = menu.document.layers[0];
			lite.clip.width = body.clip.width +1;
			lite.clip.height = body.clip.height +1;
			menu.clip.width = body.clip.width;
			menu.clip.height = body.clip.height;
		}
	} else {
		if ((!document.all) && (container.hasChildNodes) && !window.mmIsOpera) {
			container.innerHTML=content;
		} else {
			container.document.open("text/html");
			container.document.writeln(content);
			container.document.close();	
		}
		if (!FIND("menuLayer0")) return;
		var menuCount = 0;
		for (var x=0; x<container.menus.length; x++) {
			var menuLayer = FIND("menuLayer" + x);
			container.menus[x].menuLayer = "menuLayer" + x;
			menuLayer.Menu = container.menus[x];
			menuLayer.Menu.container = "menuLayer" + x;
			menuLayer.style.zindex = 1;
		    var s = menuLayer.style;
			s.pixeltop = -300;
			s.pixelleft = -300;
			s.top = '-300px';
			s.left = '-300px';

			var menu = container.menus[x];
			menu.entryWidth = menu.menuWidth || menu.menuIEWidth || 140;
			menuLayer.style.backgroundColor = menu.menuBorderBgColor;
			var top = 0;
			var left = 0;
			menu.entryLayers = new Array();
			for (var i=0; i<container.menus[x].items.length; i++) {
				var l = FIND("entry" + menuCount);
				l.Menu = container.menus[x];
				l.Menu.entryLayers[l.Menu.entryLayers.length] = l;
				if (l.addEventListener || window.mmIsOpera) {
					l.style.width = menu.entryWidth + 'px';
					l.style.height = menu.entryHeight + 'px';
					l.style.pixelWidth = menu.entryWidth;
					l.style.pixelHeight = menu.entryHeight;
					l.style.top = top + 'px';
					l.style.left = left + 'px';
					if(l.addEventListener) {
						l.addEventListener("mouseover", doOver, false);
						l.addEventListener("click", doAction, false);
						l.addEventListener("mouseout", mouseoutMenu, false);
					}
				} else {
					l.style.pixelWidth = menu.entryWidth;
					l.style.pixelHeight = menu.entryHeight;
					l.style.pixelTop = top;
					l.style.pixelLeft = left;
				}
				top = top + menu.entryHeight+menu.entryBorder;
				l.style.fontSize = menu.fontSize + 'px';
				l.style.backgroundColor = menu.entryBG;
				l.style.visibility = "inherit";
				l.saveColor = menu.entryBG;
				l.menuLitBG = menu.menuLitBG;
				l.mmaction = container.menus[x].actions[i];
				l.hilite = FIND("entryHilite" + menuCount);
				l.focusItem = FIND("focusItem" + x);
				l.focusItem.style.pixelTop = -30;
				l.focusItem.style.top = '-30px';
				l.style.cursor = "hand";
				menuCount++;
			}
			menu.menuHeight = top-1;
			menu.menuWidth = menu.entryWidth;

			var lite = FIND("menuLite" + x);
			var s = lite.style;
			s.pixelHeight = menu.menuHeight ;
			s.height = s.pixelHeight + 'px';
			s.pixelWidth = menu.menuWidth;
			s.width = s.pixelWidth + 'px';

			var body = FIND("menuFg" + x);
			s = body.style;
			s.pixelHeight = menu.menuHeight;
			s.height = s.pixelHeight + 'px';
			s.pixelWidth = menu.menuWidth;
			s.width = s.pixelWidth + 'px';
			s.backgroundColor = menu.bgColor;

			s = menuLayer.style;
			s.pixelWidth  = menu.menuWidth ;
			s.width = s.pixelWidth + 'px';
			s.pixelHeight  = menu.menuHeight;
			s.height = s.pixelHeight + 'px';
		}
	}
	if (document.captureEvents) document.captureEvents(Event.MOUSEUP);
	if (document.addEventListener) document.addEventListener("mouseup", doOver, false);
	if (document.layers && window.innerWidth) {
		window.onresize = NS4resize;
		window.NS4sIW = window.innerWidth;
		window.NS4sIH = window.innerHeight;
		setTimeout("NS4resize()",500);
	}
	document.onmouseup = mouseupMenu;
	window.mmWroteMenu = true;
	status = "";
}

function NS4resize() {
	if (NS4sIW != window.innerWidth || NS4sIH != window.innerHeight) window.location.reload();
}

function doOver(e, l) {
	MM_clearTimeout();
	l = l || this;
	a = window.ActiveEntry;
	if (document.layers) {
		if (a) {
			a.document.bgColor = a.saveColor;
			if (a.hilite) a.hilite.visibility = "hidden";
			a.focusItem.top = -100;
			a.clicked = false;
		}
		if (l.hilite) {
			l.document.bgColor = l.menuLitBG;
			l.zIndex = 1;
			l.hilite.visibility = "inherit";
			l.hilite.zIndex = 2;
			l.document.layers[1].zIndex = 1;
			l.focusItem.zIndex = this.zIndex +2;
		}
		l.focusItem.top = this.top;
		l.focusItem.left = this.left;
		l.focusItem.clip.width = l.clip.width;
		l.focusItem.clip.height = l.clip.height;
	} else if (l.style && l.Menu) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
		} 
		l.style.backgroundColor = l.menuLitBG;
		l.zIndex = 1;
		if (l.hilite) {
			l.hilite.style.visibility = "inherit";
			if( l.hiliteShim ) l.hiliteShim.style.visibility = "visible";
		}
		l.focusItem.style.pixelTop = l.style.pixelTop;
		l.focusItem.style.top = l.focusItem.style.pixelTop + 'px';
		l.focusItem.style.pixelLeft = l.style.pixelLeft;
		l.focusItem.style.left = l.focusItem.style.pixelLeft + 'px';
		l.focusItem.style.zIndex = l.zIndex +1;
	} else return;
	window.ActiveEntry = l;
}

function doAction(e, l) {
	l = window.ActiveEntry;
	if (!l) return;
	hideLiveMenus();
	if (l.mmaction) eval("" + l.mmaction);
	window.ActiveEntry = 0;
}

function MM_clearTimeout() {
	if (mmpopOffTimer) clearTimeout(mmpopOffTimer);
	mmpopOffTimer = null;
	mmDHFlag = false;
}

function killMenu() {
	if( window.ActiveMenu ) {
		mmStart = new Date();
		mmDHFlag = true;
		mmpopOffTimer = setTimeout("mmDoHide()", 500);
	}
}

function mmDoHide() {
	if (!mmDHFlag || !window.ActiveMenu) return;
	var elapsed = new Date() - mmStart;
	var timeout = 500;
	if (elapsed < timeout) {
		mmpopOffTimer = setTimeout("mmDoHide()", timeout+100-elapsed);
		return;
	}
	mmDHFlag = false;
	hideLiveMenus();
	window.ActiveEntry = 0;
}

function popOn(menu, x, y, child, imgname) {
	if (!window.mmWroteMenu) return;
	MM_clearTimeout();
	if (menu) {
		var obj = FIND(imgname) || document.links[imgname] || document.anchors[imgname];
		x = moveXbySlicePos (x, obj);
		y = moveYbySlicePos (y, obj);
	}
	if (document.layers) {
		if (menu) {
			var l = menu.menuLayer || menu;
			l.top = l.left = 1;
			hideLiveMenus();
			if (this.visibility) l = this;
			window.ActiveMenu = l;
		} else {
			var l = child;
		}
		if (!l) return;
		for (var i=0; i<l.layers.length; i++) { 			   
			if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
			if (l.layers[i].document.layers.length > 0) popOn(null, "relative", "relative", l.layers[i]);
		}
		if (l.parentLayer) {
			if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
			if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
			if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
			if (l.parentLayer.isContainer) {
				l.Menu.xOffset = window.pageXOffset;
				l.Menu.yOffset = window.pageYOffset;
				l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
				l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
			}
		}
		l.visibility = "inherit";
		if (l.Menu) l.Menu.container.visibility = "inherit";
	} else if (FIND("entry0")) {
		var l = menu.menuLayer || menu;	
		hideLiveMenus();
		if (typeof(l) == "string") l = FIND(l);
		window.ActiveMenu = l;
		var s = l.style;
		s.visibility = "inherit";
		if (x != "relative") {
			s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
			s.left = s.pixelLeft + 'px';
		}
		if (y != "relative") {
			s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
			s.top = s.pixelTop + 'px';
		}
		l.Menu.xOffset = document.body.scrollLeft;
		l.Menu.yOffset = document.body.scrollTop;
	}
	if (menu) window.liveMenus[window.liveMenus.length] = l;
	MM_clearTimeout();
}

function onentryDown(e, l) {
	var a = window.ActiveEntry;
	if (document.layers && a) {
		a.eX = e.pageX;
		a.eY = e.pageY;
		a.clicked = true;
    }
}

function mouseupMenu(e) {
	popOff(true, e);
	hideLiveMenus();
	return true;
}

function getExplorerVersion() {
	var ieVers = parseFloat(navigator.appVersion);
	if( navigator.appName != 'Microsoft Internet Explorer' ) return ieVers;
	var tempVers = navigator.appVersion;
	var i = tempVers.indexOf( 'MSIE ' );
	if( i >= 0 ) {
		tempVers = tempVers.substring( i+5 );
		ieVers = parseFloat( tempVers ); 
	}
	return ieVers;
}

function mouseoutMenu() {
	if ((navigator.appName == "Microsoft Internet Explorer") && (getExplorerVersion() < 4.5))
		return true;
	popOff(false, false);
	return true;
}

function popOff(mouseup, e) {
	var a = window.ActiveEntry;
	if (a && document.layers) {
		a.document.bgColor = a.saveColor;
		a.focusItem.top = -30;
		if (a.hilite) a.hilite.visibility = "hidden";
		if (mouseup && a.mmaction && a.clicked && window.ActiveMenu) {
 			if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10 && a.eY >= e.pageY-10) {
				setTimeout('window.ActiveMenu.Menu.doAction();', 500);
			}
		}
		a.clicked = false;
	} else if (window.ActiveMenu && FIND("entry0")) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
		}
	}
	if (!mouseup && window.ActiveMenu) {
		if (window.ActiveMenu.Menu) {
			killMenu();
			return(true);
		}
	}
	return(true);
}

function hideLiveMenus() {
	if (!window.liveMenus) return;
	for (var i=0; i < window.liveMenus.length; i++) {
		if (!liveMenus[i]) continue;
		if (liveMenus[i].visibility && liveMenus[i].Menu && !window.mmIsOpera) {
			liveMenus[i].visibility = "hidden";
			liveMenus[i].Menu.container.visibility = "hidden";
			liveMenus[i].Menu.container.clip.left = 0;
		} else if (liveMenus[i].style) {
			var s = liveMenus[i].style;
			s.visibility = "hidden";
			s.left = '-200px';
			s.top = '-200px';
		}
	}
	if (window.ActiveEntry) popOff(false, false);
	window.liveMenus.length = 0;
}

function moveXbySlicePos (x, img) { 
	if (!document.layers) {
		var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
		var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5;
		var par = img;
		var lastOffset = 0;
		while(par){
			if( par.leftMargin && ! onWindows ) x += parseInt(par.leftMargin);
			if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x += parseInt(par.offsetLeft);
			if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft;
			par = macIE45 ? par.parentElement : par.offsetParent;
		}
	} else if (img.x) x += img.x;
	return x;
}

function moveYbySlicePos (y, img) {
	if(!document.layers) {
		var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
		var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5;
		var par = img;
		var lastOffset = 0;
		while(par){
			if( par.topMargin && !onWindows ) y += parseInt(par.topMargin);
			if( (par.offsetTop != lastOffset) && par.offsetTop ) y += parseInt(par.offsetTop);
			if( par.offsetTop != 0 ) lastOffset = par.offsetTop;
			par = macIE45 ? par.parentElement : par.offsetParent;
		}		
	} else if (img.y >= 0) y += img.y;
	return y;
}

function mmLoadMenus() {
  if (window.menu1) return;
  window.menu1 = new Menu("root","#441199","#330C4D",4,0,5);
	  menu1.addEntry("Party Bag Builder","location='/partybags/customBags.php'");
	  menu1.addEntry("Ready-Made Bags","location='/partybags/readymade.php'");
	  menu1.addEntry("Sweet Bags &amp; Boxes","location='/partybags/sweetBags.php'");
	  menu1.addEntry("Christmas Bags","location='/partybags/xmas.php'");
	  menu1.addEntry("85p Party Bags","location='/partybags/85p.php'");
	  menu1.addEntry("&pound;1 Party Bags","location='/partybags/pound.php'");
	  menu1.addEntry("&pound;1 Craft Bags","location='/partybags/craft.php'");
  	  menu1.addEntry("Distraction Cases","location='/partybags/cases.php'");
	  menu1.addEntry("Empty Bags","location='/partybags/emptyBags.php'");
	  menu1.addEntry("Party Bag Gifts","location='/gifts/'");
window.menu2 = new Menu("root","#441199","#330C4D",4,0,5);
	  menu2.addEntry("Toys by Category","location='/gifts/'");
	  menu2.addEntry("New Toys","location='/gifts/newItems.php'");
window.menu3 = new Menu("root","#441199","#330C4D",4,0,5);
	  menu3.addEntry("Corporate Gifts","location='/corporate/'");
window.menu4 = new Menu("root","#C01010","#7f1010",4,0,5);
      menu4.addEntry("&pound;100 Stockings","location='/xmas/hundredpound.php'");
 	  menu4.addEntry("&pound;50 Stockings","location='/xmas/fiftypound.php'");
	  menu4.addEntry("&pound;25 Stockings","location='/xmas/deluxe.php'");
	  menu4.addEntry("&pound;10 Stockings","location='/xmas/tenpound.php'");
	  menu4.addEntry("&pound;10 Sacks","location='/xmas/sack.php'");
	  menu4.addEntry("&pound;5 Stockings","location='/xmas/fivepound.php'");
	  menu4.addEntry("&pound;3 Stockings","location='/xmas/threepound.php'");
	  menu4.addEntry("&pound;1-&pound;2 Xmas Bags","location='/xmas/bags.php'");
	  menu4.addEntry("Pet Stockings","location='/xmas/petStockings.php'");
window.menu5 = new Menu("root","#441199","#330C4D",4,0,5);
	  menu5.addEntry("Terms &amp; Conditions","location='/info/terms.php'");
  	  menu5.addEntry("Newsletter Sign-Up","location='/newsletter.php'");
  menu1.writeMenus();
}