function news_menu()
{
	// Get the location + query string
	var file = location.pathname.substring(location.pathname.lastIndexOf("/")+1,location.pathname.length);
	if(file == "") file = "index";

	var qs = location.search;

	var page = file + qs;

	var menu = document.getElementById("p-menu-sub");

	if(menu)
	{
		for(var i=0; i<menu.childNodes.length; i++)
		{
			var li = menu.childNodes[i];

			if(li.nodeName.toLowerCase() == "li")
			{
				for(var j=0; j<li.childNodes.length; j++)
				{
					var a = li.childNodes[j];

					if(a.nodeName.toLowerCase() == "a")
					{
						var href = a.pathname.substring(a.pathname.lastIndexOf("/")+1,a.pathname.length) + a.search;
						if(href == "") href = "index";

						if(href == page)
						{
							a.className = "on";
						}
					}
				}				
			}
		}
	}
}
