$(document).ready(function() {
	menuInit({
		menus:	[
			{
				width:			function() { return $(document).width(); },
				x:			0,
				y:			function() { return $("#menu").offset().top; },
				horizontal:		true,
				menuItems:		[
					{
						text:		"Home",
						action:		"/index.php"
					},
					{
						text:		"-"
					},
					{
						text:		"Software",
						action:		"/software.php",
						submenu:	{
							width:	150,
							menuItems:	[
								{
									text:		"Windows",
									action:		"/software.php?id=win",
									submenu:	{
										width:	150,
										menuItems:	[
											{
												text:		"CleanUp",
												icon:		"/images/software/cleanup_small.png",
												action:		"/software.php?id=cleanup"
											},
											{
												text:		"Dave\'s Messenger",
												icon:		"/images/software/msngr_small.png",
												action:		"/software.php?id=msngr"
											},
											{
												text:		"IE Web Accessories",
												action:		"/software.php?id=iewa"
											}
										]
									}
								},
								{
									text:		"Web Development",
									action:		"/software.php?id=web",
									submenu:	{
										width:	150,
										menuItems:	[
											{
												text:		"DHTML/JavaScript Menu",
												action:		"/software.php?id=menu"
											}
										]
									}
								}
							]
						}
					},
					{
						text:		"-"
					},
					{
						text:		"Articles",
						action:		"/phorum/index.php?f=8",
						submenu:	{
							width:			220,
							menuItems:		[
								{
									text:		"Article Index",
									action:		"/phorum/index.php?f=8"
								},
								{
									text:		"Submit an Article",
									action:		"/phorum/post.php?f=8"
								},
								{
									text:		"-"
								},
								{
									text:		"WGA Removal Tool (51 replies)",
									action:		"/phorum/read.php?f=8&id=103",
									allowWrap: 	true
								},
								{
									text:		"Disabling MSN Messenger ActiveX Control (Hotmail Integration) (0 replies)",
									action:		"/phorum/read.php?f=8&id=93",
									allowWrap: 	true
								},
								{
									text:		"Reinstall Microsoft Java Virtual Machine (13 replies)",
									action:		"/phorum/read.php?f=8&id=86",
									allowWrap: 	true
								},
								{
									text:		"Blocking Hotmail newsletters and other marketing crap (0 replies)",
									action:		"/phorum/read.php?f=8&id=85",
									allowWrap: 	true
								},
								{
									text:		"Web Page Guidelines (0 replies)",
									action:		"/phorum/read.php?f=8&id=84",
									allowWrap: 	true
								}
							]
						}
					},
					{
						text:		"-"
					},
					{
						text:		"Games",
						action:		"/games/index.php"
					},
					{
						text:		"-"
					},
					{
						text:		"Forum",
						action:		"/phorum/index.php"
					},
					{
						text:		"-"
					},
					{
						text:		"Donate",
						action:		"/donate.php"
					},
					{
						text:		"-"
					},
					{
						text:		"Contact",
						action:		"/contact.php"
					}
				]
			}
		]
	});
});

