function init() {
	var x = document.URL
	
	x = (x.split("/")[3]);
	x = (x.split(".")[0]);
	
	if(x == "") { x = "index" };
	
	x = document.getElementById(x);

	x = x.getElementsByTagName("a");
	x[0].className = "current";
}
window.addEvent('domready', init);