var W3CDOM = (document.createElement && document.getElementsByTagName);

window.onload = init;

function init()
{
	if (!W3CDOM) return;

	var sPath = window.location.pathname;
	var pathArray = sPath.split('/');
	if(pathArray[1] != ''){
		document.getElementById(pathArray[1]).className = "active";
	}else{
		document.getElementById('home').className = "active";
	}
}
