// JavaScript Document
// Hide and Show submenu
function hideAndShow (elementId) {

	if (document.getElementById) {
		// this is the way the standards work
		var el = document.getElementById(elementId);
	}
	else if (document.all) {
		// this is the way old msie versions work
		var el = document.all(elementId);
	}
	else if (document.layers) {
		// this is the way nn4 works
		var el = document.layers[elementId];
	}

	if ((el.style.display == 'none') ||(el.style.display.length==0)) 
		{el.style.display = 'block';
		
		document.cookie="menu="+elementId;
		// alert (elementId);
		
		}
	else 
		{el.style.display = 'none';
		document.cookie="menu=";

		}
		
		///use el.className to swap the class if a class is defined

}
