//		var boolOverride = false;
	//	create the objects
		function loadMenuClass() {
			sysMenu = new Menu("sysMenu");

		//					name     Top R   W
			sysMenu.addMenu("subApt", 0, 0, 0);
			sysMenu.addMenu("subFeatures", 0, 0, 0);
			sysMenu.addMenu("subNeigh", 0, 0, 0);
		}

	//	constructor for entire menu
		function Menu(objName) {
			this.subMenu = new Array();
			this.objName = objName;
			
			this.addMenu = function(elMenu, intTop, intRight, intWidth) {
				this.subMenu[this.subMenu.length] = new NavMenu(elMenu, intTop, intRight, intWidth);
			}
		}		

	//	constructor... initializes any instance properties of the object			
		function NavMenu(elMenu, intTop, intRight, intWidth) {
			this.state = 'off';

			this.el = document.getElementById(elMenu);	
			this.elName = elMenu;

			if (intTop > 0)
				this.menuTop = intTop + "px";
			if (intRight > 0)
				this.menuRight = intRight + "px";
			if (intWidth > 0)
				this.menuWidth = intWidth + "px";
			
			return;	
		}

	//	show menu... block
		Menu.prototype.showMenu = function(ary) {
			try {
				this.subMenu[ary].state = 'on';
				
				if (this.subMenu[ary].menuTop > 0)
					this.subMenu[ary].el.style.top = this.subMenu[ary].menuTop;
				if (this.subMenu[ary].menuRight > 0)
					this.subMenu[ary].el.style.right = this.subMenu[ary].menuRight;
				if (this.subMenu[ary].menuWidth > 0)
					this.subMenu[ary].el.style.width = this.subMenu[ary].menuWidth;
				
				this.subMenu[ary].el.style.display = "block";
				
				// loop through and hide all other ones
				for (x=0; x < this.subMenu.length; x++) {
					if (x != ary) {
						this.subMenu[x].el.style.display = "none";
					}
				}
				return;
			} catch (e) {}
		}

	//	hide menu... none
		Menu.prototype.hideMenu = function(ary) {
			try {
				this.subMenu[ary].state = 'off';
				
				if (this.subMenu[ary].state == "off") {
				//	if time to turn off the menu, wait a couple of seconds first to make sure mouse isn't over menu items
					setTimeout("ridMenu('" + this.objName + "', " + ary + ")", 240);
				}
				return;
			} catch (e) {}
		}
		
	// this function hides the menu, but checks first if it is on or off	
		function ridMenu(objName, ary) {
			obj = eval(objName);
			if (obj.subMenu[ary].state == "off") {
				obj.subMenu[ary].el.style.display = "none";
			}
		}

		showMenu = function() {
			if (defaultMenu) {
				setTimeout("showDefault()", 240);
			}
		}
		
		showDefault = function() {
			try {
				for (x=0; x < sysMenu.subMenu.length; x++) {
					if (sysMenu.subMenu[x].el.style.display != "none") {
						var boolHo = true;
					}
				}
				if (boolHo != true) {
					document.getElementById(defaultMenu).style.display = "block";
				}
			} catch (e) {}
		}


