function setCurrentTabAndQuickLink() {
	if(!document.getElementById || !document.createTextNode){
		return;
	}
	
	var n = document.getElementById('navMenu');

	if(!n) {
		return;
	}

	var urlLastPart = window.location.pathname;
	var splitPath = urlLastPart.split('/');
	var curPageWithExt = splitPath.pop();
	var curPage =  curPageWithExt.split('.').shift();

	var lis = n.getElementsByTagName('li');

	for (var i = 0; i < lis.length; i++) {
		if(lis[i].className.match(curPage.toLowerCase())) {
			lis[i].className += " Cur";
			break;
		}
	}
}

window.onload=setCurrentTabAndQuickLink;
