$(document).ready(
	function()
	{
		// Loop through each <A> tag in the menu.
		$("#menu-top ul li a").each(function()
			{
				// If the value of the <A> tag's HREF attribute matches the current URL, then add the "selected" class.
				// this.href will return the full URL, despite being relative.
				if (document.location.href.indexOf(this.href) >= 0)
				{
					$(this).addClass("selected");
				}
			}
		);
	}
);
