function indicateCurrentPage () {
	var itemTagPrefixes = ["mm_", "sub_"];
	var indicatorClass = "current";
	if (!(document.getElementsByTagName && document.getElementById)) return;
	var bodyClassNames = document.getElementsByTagName("body")[0].className.split(" ");	// array of the body tag's classes
	var menuItem;
	var testID;
	var menuItem;
	for (var i = 0; i < bodyClassNames.length; i++) {
		for (var j = 0; j < itemTagPrefixes.length; j++) {
			testID = itemTagPrefixes[j] + bodyClassNames[i];
			menuItem = document.getElementById(testID);
			if (menuItem) {
				if (menuItem.className.length > 0) menuItem.className += " " + indicatorClass;
				else menuItem.className = indicatorClass;
			}
		}
	}
}

addEvent(window, 'load', indicateCurrentPage, false);
