		var currentBackgroundColour;
		var currentBorder;
		
		function show(item, submenu)
		{ 
			var extra = document.getElementById(item + "extra");
			var link = document.getElementById(item + "link");
			extra.style.display = "block";

			currentBackgroundColour = link.style.backgroundColor;
			link.style.backgroundColor = '#999900';
		}
		
		function hide(item, submenu)
		{
			var extra = document.getElementById(item + "extra");
			var link = document.getElementById(item + "link");
			extra.style.display = "none";

			if(submenu == false)
				link.style.backgroundColor = currentBackgroundColour; //'#FFF';
			else
				link.style.backgroundColor = currentBackgroundColour; //'#EEEE99';
		}
		
		function editable(item)
		{
			var x = document.getElementById(item);
			currentBackgroundColour = x.style.backgroundColor;
			currentBorder = x.style.border;
			
			x.style.backgroundColor = "#EEE";
			x.style.border = "1px dashed #CCC";
		}
		
		function uneditable(item)
		{
			var x = document.getElementById(item);
			x.style.backgroundColor = currentBackgroundColour;
			x.style.border = currentBorder;
		}	