menu_status = new Array();

var params = window.location.search.substring(1); // this gets the entire query string and chops off the "?" in one smooth, easy motion.
var mySplit = params.split('='); // this line splits the string (now represented by the variable "params") into an array named "mySplit."
var mS = mySplit[1]; // this creates a variable named "mS" from the SECOND item in the mySplit array.

function showHide(theid) {
	if (document.getElementById) {
	var switch_id = document.getElementById(theid);
	
		if(menu_status[theid] != 'show') {
			switch_id.className = 'show';
			menu_status[theid] = 'show';
		} else {
			switch_id.className = 'hide';
			menu_status[theid] = 'hide';
		}
	}
}