 var states = ['mout', 'mover', 'mdown'],
MENU_ITEMS0 = [
	[wrap_root('Home', 1), "http://www.speedwake.com/upload/myvbindex.php", {'sw':75, 'bw':120}, 
		[wrap_child('Home Page'), 'http://www.speedwake.com/upload/myvbindex.php'],
	],
	
	[wrap_root('Join', 1), "http://www.speedwake.com/upload/register.php?action=signup", {'sw':75, 'bw':120},
	], 
	
	[wrap_root('Forums', 1), 'http://www.speedwake.com/upload/index.php', {'sw':80, 'bw':200},
		[wrap_child('View New Posts'), 'http://www.speedwake.com/upload/search.php?action=getnew', {'bw':160}],
		[wrap_child('Forums Home Page'), 'http://www.speedwake.com/upload/index.php', {'bw':160},],
		[wrap_child('&nbsp;&nbsp;> General Boating Discussion'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=8'],
		[wrap_child('&nbsp;&nbsp;> Technical Forum'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=9'],
		[wrap_child('&nbsp;&nbsp;> Eat My Wake'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=54'],
		[wrap_child('&nbsp;&nbsp;> Off Topic'), 'http://www.speedwake.com/upload/forumdisplay.php?s=&forumid=103'],
		[wrap_child('&nbsp;&nbsp;> Advertiser Promotions'), 'http://www.speedwake.com/upload/forumdisplay.php?s=&forumid=96'],
		[wrap_child('&nbsp;&nbsp;> Parties, Shows & Runs'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=84'],
		[wrap_child('&nbsp;&nbsp;> Speedwake Unleashed'), 'http://www.speedwake.com/upload/forumdisplay.php?s=&forumid=99'],
		[wrap_child('&nbsp;&nbsp;> Classifieds'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=10'],			
		[wrap_child('&nbsp;&nbsp;> The Dock'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=22'],
		[wrap_child('&nbsp;&nbsp;> Polls'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=82'],
		[wrap_child('&nbsp;&nbsp;> Welcoming Forum'), 'http://www.speedwake.com/upload/forumdisplay.php?&forumid=73'],			
		[wrap_child('&nbsp;&nbsp;> Boating Clubs'), 'http://www.speedwake.com/upload/forumdisplay.php?forumid=52'],
		[wrap_child('Private Messages'), 'http://www.speedwake.com/upload/private.php', {'bw':160},
			[wrap_child('Read Message'), 'http://www.speedwake.com/upload/private.php'],
			[wrap_child('Send Message'), 'http://www.speedwake.com/upload/private.php?s=&action=newmessage'],
			[wrap_child('Message Tracking'), 'http://www.speedwake.com/upload/private2.php?s=&daysprune='],
			[wrap_child('PM to Buddies'), 'http://www.speedwake.com/upload/private2.php?s=&action=choosebuddies'],
			[wrap_child('Manage Folders'), 'http://www.speedwake.com/upload/private.php?s=&action=editfolders']],
		[wrap_child('Your Profile'), 'http://www.speedwake.com/upload/usercp.php', {'bw':160},
			[wrap_child('Your Forum Status'), 'http://www.speedwake.com/upload/usercp.php'],
			[wrap_child('Add/Update Photo'), 'http://www.speedwake.com/upload/upload.php'],
			[wrap_child('Edit Profile'), 'http://www.speedwake.com/upload/member.php?action=editprofile'],
			[wrap_child('Edit Options'), 'http://www.speedwake.com/upload/member.php?action=editoptions'],
			[wrap_child('Change Password'), 'http://www.speedwake.com/upload/member.php?action=editpassword'],
			[wrap_child('Edit Buddy List'), 'http://www.speedwake.com/upload/member2.php?action=viewlist&userlist=buddy'],
			[wrap_child('Ignore Users'), 'http://www.speedwake.com/upload/member2.php?action=viewlist&userlist=ignore'],
			[wrap_child('Member Locator'), 'http://www.speedwake.com/upload/fblocator.php']],
		[wrap_child('Help Screens'), 'http://www.speedwake.com/upload/misc.php?action=faq', {'bw':160}],	
		[wrap_child('Log Out'), 'http://www.speedwake.com/upload/member.php?s=&action=logout', {'bw':160}],	
	],
	
	[wrap_root('Search', 1), "http://www.speedwake.com/upload/search.php", {'sw':75, 'bw':120},
		[wrap_child('Detailed Search'), 'http://www.speedwake.com/upload/search.php', {'bw':160}]
		[wrap_child('View New Posts'), 'http://www.speedwake.com/upload/search.php?action=getnew', {'bw':160}]
	], 
	
	[wrap_root('Advertisers & Links', 1), 'http://www.speedwake.com/upload/links.php?action=viewlinks&catid=1', {'sw':140, 'bw':160}, 
		[wrap_child('Speedwake Advertisers'), 'http://www.speedwake.com/upload/links.php?action=viewlinks&catid=1',{'sw':160}],
		[wrap_child('Advertise on Speedwake'), 'http://www.speedwake.com/upload/advertise.php',{'sw':160}]
	],
	
	[wrap_root('Boat Reviews', 1), 'http://www.speedwake.com/reviewpost/index.php', {'sw':100, 'bw':120}],
	
	[wrap_root('Classifieds', 1), 'http://www.speedwake.com/newclassifieds/index.php', {'sw':100, 'bw':160},
		[wrap_child("All Boats"), 'http://www.speedwake.com/newclassifieds/index.php?cat=19'],
		[wrap_child("Engines & engine parts"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=4'],
		[wrap_child("Outdrives & outdrive parts"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=5'],
		[wrap_child("Props"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=7'],
		[wrap_child("Electronics"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=8'],
		[wrap_child("Motorcycles"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=105'],
		[wrap_child("Mucle Cars"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=106'],
		[wrap_child("Trucks"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=10'],
		[wrap_child("Trailers"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=11'],
		[wrap_child("Outboards"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=100'],
		[wrap_child("Items Wanted"), 'http://www.speedwake.com/newclassifieds/showcat.php?cat=24']
	],
	
	[wrap_root('Gallery', 1), 'http://www.speedwake.com/upload/photogallery.php', {'sw':80, 'bw':160},
		[wrap_child("Gallery"), 'http://www.speedwake.com/upload/photogallery.php'],
		[wrap_child("Dental Floss"), 'http://www.speedwake.com/photopost/showgallery.php?cat=511&thumb=1'],
		[wrap_child("Member Galleries"), 'http://www.speedwake.com/photopost/showgallery.php?cat=500&thumb=1'],
		[wrap_child("Movie Gallery"), 'http://www.speedwake.com/photopost/showgallery.php?cat=519&thumb=1'],	
		[wrap_child("Reader's Rides"), 'http://www.speedwake.com/photopost/showgallery.php?cat=520&thumb=1'],			
		[wrap_child("Pokerrunpix.com"), "http://www.pokerrunpix.com"]
	],	
	
	[wrap_root('Cool Stuff', 1), null, {'sw':80, 'bw':120},
		[wrap_child("Chat Room"), 'http://www.speedwake.com/upload/chat.php'],
		[wrap_child('Member List'), 'http://www.speedwake.com/upload/memberlist.php', {'bw':160},
		[wrap_child('Top Posters'), 'http://www.speedwake.com/upload/memberlist.php?s=&what=topposters&perpage=50'],
		[wrap_child('Alphabetical List'), 'http://www.speedwake.com/upload/memberlist.php?'],
		[wrap_child('By Date Joined'), 'http://www.speedwake.com/upload/memberlist.php?what=datejoined']],
		[wrap_child("Member Locator"), 'http://www.frappr.com/speedwake'],
		[wrap_child("Who's Where"), 'http://www.speedwake.com/upload/online.php', {'bw':160}],	
		[wrap_child("Statistics"), 'http://www.speedwake.com/upload/statistics.php', {'bw':160}]	
	],	
	
	[wrap_root('Store', 1), 'http://shop.speedwake.com', {'sw':64, 'bl': -78, 'bw':'134'},
		[wrap_child('High Performance'), 'http://shop.speedwake.com/index.php?category=Performance%20Products|pixel_trans.gif&level=0'],
		[wrap_child('Speedwake Special'), 'http://shop.speedwake.com/product_info.php/products_id/50026'],
		[wrap_child('Speedwake Apparel'), 'http://shop.speedwake.com/advanced_search_result.php?keywords=apparel&level=1&manufacturer=SpeedWake'],
		[wrap_child('Race Glaze Products'), 'http://shop.speedwake.com/index.php?category=Maintenance|pixel_trans.gif&level=1&sub_category=Race%20Glaze%20Products|pixel_trans.gif'],		
		[wrap_child('Couple-Mate'), 'http://shop.speedwake.com/product_info.php/products_id/49985?search=1&keywords=couple%20mate'],
		[wrap_child('Hi-speed Goggles'), 'http://shop.speedwake.com/advanced_search_result.php?keywords=barz&+Quick+Find+=Search'],
		[wrap_child('Leak-Proof Caps'), 'http://shop.speedwake.com/advanced_search_result.php?keywords=leak-proof&+Quick+Find+=Search'],
		[wrap_child('Filter Mags'), 'http://shop.speedwake.com/advanced_search_result.php?keywords=filtermag&+Quick+Find+=Search'],
		[wrap_child('Prop & Drive Locks'), 'http://shop.speedwake.com/advanced_search_result.php?keywords=drive+locks&+Quick+Find+=Search'],		
		[wrap_child('Leverage Products'), 'http://shop.speedwake.com/advanced_search_result.php?keywords=leverage&+Quick+Find+=Search'],				
		[wrap_child('Stickers'), 'http://www.speedwake.com/upload/fbstickers.php'],		
		[wrap_child('Donations'), 'http://www.speedwake.com/upload/fbdonation.php'],
		[wrap_child('Frenzy Products'), 'http://shop.speedwake.com/advanced_search_result.php?keywords=frenzy&+Quick+Find+=Search'],
		[wrap_child('Electronics'), 'http://shop.speedwake.com/index.php?category=Electronics|electronics.jpg&level=0']
	]
]

function wrap_child (text) {
	return '&nbsp;' + text + '&nbsp;';
}

function wrap_root (text, c) {
	var res = [];
	for (var i in states)
		res[i] = '<table cellpadding=0 cellspacing=0 border=0 width=100%><tr>' + (c ? '<td><font color=white>|</font></td>' : '') + '<td valign=middle align=center class=m0' + states[i] + 'i width=100% height=18>&nbsp;&nbsp;' + text + '&nbsp;&nbsp;</td></tr></table>'
	return res;
}

function new_win(url) {
   window.open(
      url,
      'BoatingNews',
      'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,innerHeight320,innerWidth=330,Height=320,Width=330,left=40,screenX=40,top=40,screenY=40'
   );
}

function monkey_win(url) {
	window.open(
	url,
	'ThreadMonkey',
	'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,innerHeight310,innerWidth220,Height=310,Width=220,left=40,screenX=40,top=40,screenY=40'
	);
}

