// JavaScript Document
function setactiveitem(){
	//Get var list from URL
	var id=location.search.substring(1, location.search.length);
	
	//If URL does not contain 'item'
	if(id.match("item") == null)
		return;
		
	//Get the div to activate
	menuItem = document.getElementById("menu_item"+id.substring(5,id.length));
	menuItem.className = "menu_item_active";
	
	/*menuItems = document.getElementById("menu_container").getElementsByTagName("div");
	
	//Set the active menu item to active
	var counter=0;
	for (var i=0;i<menuItems.length;i++){
		if(menuItems[i].id.match("menu_item") != null){
			counter++;
			
			//if counter equals to the menu_item id, set this one to active
			if(counter == id.substring(5,id.length)){
				menuItems[i].className = "menu_item_active";
			}
		}
	}*/
}