var menuName = "cssmw";  This will need to be changed to reference the 
correct menu name
function pageName(strHref)	{	
	if(strHref) {
		var arr=strHref;
		arr=arr.split("/");
		arr=arr[arr.length-1];
		return arr;
	}
}
	
function setActiveMenu(arr, crtPage) {
	for (var i=0; i<arr.length; i++) {
		if(pageName(arr[i].href) == crtPage) {
			if (arr[i].parentNode.tagName != "DIV") {
				arr[i].className += " current";
				//arr[i].parentNode.className = "current";
			}
		}
	}
}
	
function setPage() {
	hrefString = document.location.href ? document.location.href : 
document.location;			
	if (document.getElementById(menuName)!=null) {
	 
setActiveMenu(document.getElementById(menuName).getElementsByTagName("a"), 
pageName(hrefString));
	}
}

if(window.attachEvent) { window.attachEvent("onload", function() { 
setPage(); }); } else if(window.addEventListener) { 
window.addEventListener("load", function() { setPage(); }, true); }
