// JavaScript Document
function getMyURL() {
	u = document.URL;
	if (navigator.appName == "Microsoft Internet Explorer") {
		i = u.lastIndexOf("/");
	} else {
		i = u.lastIndexOf("/");
	}
	if (i > 0 ) {
		myURL = u.substr(i + 1);
	} else {
		myURL = u;
	}
	return (myURL);
}

function trimURL(u ) {

	i = u.lastIndexOf("/");

	if (i > 0 ) {
		myURL = u.substr(i + 1);
	} else {
		myURL = u;
	}
	return (myURL);
}


function getMyID(u) {
	i = u.lastIndexOf("_");
	r = u.substr(0, i);
	return r;
}

function doLoad() {
	u = getMyURL();
	i = document.links.length;
	//alert(u);
	for ( j = 0; j < i; j++ ) {
		//alert(document.links[j].href);
		if ( trimURL(document.links[j].href) == u) {
			s = getMyID(document.links[j].id)
			doMenuOn(s);
			break;
		}
	}
}

function doMenuOn(s) {
	el = document.getElementById(s);
	if (el != null) {
		el.className = "menuon";
	}
}
