function init() {
	var h1 = document.getElementById('content').getElementsByTagName('h1')[0];
	var currentPageTitle = (h1.textContent) ? h1.textContent : h1.innerText;
	var menuItems = document.getElementById('menu').childNodes;
	var menuSub = document.getElementById('menu_sub').childNodes;
	for(i=0;i < menuItems.length;i++) {
		if(menuItems[i].hasChildNodes() && menuItems[i].childNodes[0].title) {
			if(menuItems[i].childNodes[0].title == currentPageTitle) {
				menuItems[i].style.backgroundColor = "#fff";
				menuItems[i].style.borderBottomColor = "#fff";
			}
		}
	}
	for(i=0;i < menuSub.length;i++) {
		if(menuSub[i].hasChildNodes() && menuSub[i].childNodes[0].title) {
			if(menuSub[i].childNodes[0].title == currentPageTitle) {
				menuSub[i].style.backgroundColor = "#fff";
				menuSub[i].style.borderBottomColor = "#fff";
			}
		}
	}
}

window.onload = init;
