var myURL = "" + window.location;
var myURLsplit = myURL.split('/');
var myMenu = myURLsplit[myURLsplit.length - 1];

if (myMenu.length > 0)
{
	var menuId = document.getElementById("menu-" + myMenu);
	if (menuId) menuId.setAttribute("class", "selected");
}
