if(typeof(HTMLElement)!= 'undefined'){
        HTMLElement.prototype.__defineGetter__("parentElement", function() {return (this.parentNode == this.ownerDocument) ? null : this.parentNode;});
}

function changemenu(){
	url=location.href;
//	TagA=document.getElementById("mainmenu").getElementsByTagName("A");
	TagA=document.getElementById("sidebar").getElementsByTagName("A");
	currentpage=0;
	for(i=0;i<TagA.length;i++){
		if(url == TagA[i].href){
			currentpage=i;
//			break;
		}
		tmp=TagA[i].parentElement;
		if(tmp.tagName=="LI"){
			tmp.link = TagA[i];
			tmp.onclick = function(){
				location.href=this.link.href;
		//		window.open(this.link.href);
		//		alert("haha");
				}
		}
	}
	tmp=TagA[currentpage].parentElement;
	if(tmp.tagName=='LI') {
			tmp.className='lion';
			thename = TagA[currentpage].innerHTML;
			if(thename == "Program Schedule") thename = "Final Program Schedule";
			document.getElementById('title').innerHTML=thename;//TagA[currentpage].innerHTML;
	}
//	TagA[currentpage].onclick = function(){
//				return false;
//			}
	TagA[currentpage].disabled = true;
	TagA[currentpage].parentElement.onclick = function(){
			return false;
			} 
}

window.onload=function(){
//	changemenu();
}

