	var url = location.href;
	if(url.substring(url.length - 1, url.length) == '#')
	{
		url = url.substring(0, url.length - 1);
	}
	
	var pos = url.lastIndexOf('/') + 1;
	url = (pos == url.length) ? 'index' : url.substring(pos);

	with(document)
	{
		if(getElementById(url))
		{
			getElementById(url).href = '#';
			getElementById(url).id = 'current';
		}
		
		if(url == 'contact' && getElementById('notValidLink'))
		{
			getElementById('notValidLink').href = '#';
		}
	}