	if(section == 'default') section = '';

	window.onload = function()
	{
		var menu = document.getElementById('mainmenu').getElementsByTagName('a');
	
		for(i in menu)
		{
			try 
			{
				if(menu[i].getAttribute('href').toString().match(section) == section)
					return menu[i].className = 'selected';
			}
			catch(e){};
		}
	}