function init_mainMenu() {
	var todo = $$('#globalMenu a');
	todo.each(function(obj) {
		var toTest = document.location.href;
		var pos = toTest.indexOf('#');
		if (pos > -1) {
			toTest = toTest.substring(0, pos);
		}

		if (obj.href == toTest) {
			obj.addClassName('active');
		}
	});
}

Event.observe(window, 'load', init_mainMenu);