function activeLi(id)
{
	listItem = xajax.$(id);
	list = listItem.parentNode.parentNode.parentNode; 
	listItems = list.getElementsByTagName('li');
	for(var i=0; i<listItems.length; ++i) {
		listItems[i].className='';
	}
	listItem.className='active';
}

var currentAnchor = null;
function checkAnchorLi(){
	if(currentAnchor != document.location.hash){
		currentAnchor = document.location.hash;
		if(currentAnchor)
		{
			//Creates the  string callback. This converts the url URL/#main&id=2 in URL/?section=main&id=2
			if(currentAnchor.substring(1,5)=='item') {
				var id = currentAnchor.substring(5);
				activeLi('li'+id);
			}
		}
	}
}