function showHide(theid){
try{
var switch_id = document.getElementById(theid);
if(switch_id.className=='offState'){
switch_id.className='onState';
}
else{
switch_id.className='offState';
}
}
catch(exception){
}
}

function collapseAll()
{ 	
	for (i=1; i<10; i++)
	{
		var catid = "menu_"	+ i;
		if(document.getElementById(catid).style.display = 'block')
		{
			document.getElementById(catid).className = 'offState';
		}
	}
}
