function showCurrentPage(){
	var thisURL = window.location.pathname;
//	var parrentURL = window.location.pathname.match("[^\/]*?[\/]+?$");

	localnavi = document.getElementById("localNavigation");
	localnavilists = localnavi.getElementsByTagName("li");
	for ( i=0; i<localnavilists.length; i++){
		var linkURL = localnavilists[i].getElementsByTagName("a")[0].getAttribute("href");
		/* for IE6 */ linkURL = linkURL.replace( (window.location.protocol+"//"+window.location.hostname), "" );
		if ( thisURL.match(linkURL) ){ 
			localnavilists.item(i).className = "thisChild";
			localnavilists.item(i).innerHTML = "<span class=\"youarehere\">You are here: </span>" + localnavilists.item(i).innerHTML;
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", showCurrentPage, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", showCurrentPage);
}