function menu(){
	
	var url = this.location.href;
	var menu = document.getElementById('nav').getElementsByTagName("A");
	// find href which matches uri
	if (menu != null) {
		for( var x = 0; x < menu.length ; x++ ){
			if (menu[x].href == url) {
				menu[x].className = 'active';
			}
		}
	}
}