/* UTILITY JAVASCRIPY */
menu_status = new 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';
		}
	}
}
function hide(id) {
	// safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	} else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		} else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function show(id) {
	// safe function to show an element with a specified id

	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	} else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		} else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
function hoverOn(id) {
		document.getElementById(id).style.backgroundColor = '#003366';
		document.getElementById(id).style.color = '#FFFFFF';
}
function hoverOff(id) {
		document.getElementById(id).style.backgroundColor = '#CCCCFF';
		document.getElementById(id).style.color = '#003366';
}
