		var holdMenu = '';	// since there are more than one menu, you need to know which menu you are currently working with
		var subMenuOn = 'off';	// trurn the menu on and off
		var Trigger = '';	// offsets the time of div hiding and will only trigger hide if the mouse if off the div at the time of hideSubMenu running
		var OnMainNav = 'off'; // disable the time out if the user comes back on to the Main Menu
		var timer = 800; // .6 seconds	
		
		var MainSections = new Array();	// used in a reset function to make sure divs are closed when other divs are opened
			MainSections[0] = 'nightlife';
			MainSections[1] = 'vipservices';
			MainSections[2] = 'about';
			MainSections[3] = 'packages';
			MainSections[4] = 'bachelorettes';
			MainSections[5] = 'bachelors';
			
		/* Run sweep on all SubMenu divs and close them 
		*
		*
		*/
		function resetSubMenus() {
			for(var i = 0; i < MainSections.length; i++ ) {
				if(holdMenu != MainSections[i]) {
				 	closeIt = 'subNav_' + MainSections[i];
				 	document.getElementById(closeIt).style.visibility = 'hidden';
				 }
			}
		}
		
		function showSubMenu(page) {
			switch (page) {
				case 'bachelors':
				case 'bachelorettes':
				case 'packages':
				case 'vipservices': 
				case 'nightlife':
				case 'about':
					subDivID = 'subNav_' + page;
					subDiv = document.getElementById(subDivID);
					subDiv.style.visibility = 'visible';
					subMenuOn = 'on';
					Trigger = '';
					OnMainNav = 'on';
					holdMenu = page;
					resetSubMenus();
					break;
				default:
					break;
			}
		
		}
		function captureInSubMenu(page, mode) {
			if(mode == 'on') {
				subMenuOn = page;	// global to hold our current position in the sub div
				imgsrc = 'images/menu/over/' + page + '.jpg';
				try {parent.hardSwap(imgsrc, page); }catch(e) { alert('ERROR');}
				//try { parent.setClassName(page + '_top', 'topMenu_selected'); } catch(e) { alert(page);}
			}else {
				subMenuOn = 'off';	// reset the globals
				holdMenu = page;
				Trigger = 'hide'; 
				self.setTimeout('hideSub_wait()',timer);
				imgsrc = 'images/menu/' + page + '.jpg';
				parent.easySwap(imgsrc, page);
			}
		
		}
		function hideSub_wait() {
			newpage 	= holdMenu; // set this global before going to timeout
			newtrigger	= Trigger;		// trigger the function to hide the div
			hideSubMenu(newpage, newtrigger); // hide the menu
		}
		
		function captureOutMainMenu() {
			OnMainNav = 'off';
		}
		
		function hideSubMenu(newpage, trigger) {
			if(!trigger) {
				switch (newpage) {
					case 'bachelors':
					case 'bachelorettes':
					case 'packages':
					case 'vipservices': 
					case 'nightlife':
					case 'about':
						holdMenu = newpage;
						Trigger = 'hide';
							self.setTimeout('hideSub_wait()',timer);	
						break;
					default:
						break;
				}
			}else {
				if(OnMainNav == 'off') {	
					if(subMenuOn != newpage) { 
						id = 'subNav_' + newpage;
						subDiv = document.getElementById(id);
						subDiv.style.visibility = 'hidden';
						Trigger = '';	// reset your globals
						holdMenu = '';
						subMenuOn = 'off';
					}
				}
			}
		}