/*  Show and hide the menu sections  */
var img_close = 'images/expandbutton-close.gif';
var img_open = 'images/expandbutton-open.gif';	
function showHideSwitch (theid)	{
  	if (document.getElementById) 
  		{
    	var switch_id = document.getElementById(theid);
    	
    	if (theid != 'show') 
   		{
      		switch_id.className = 'showSwitch';
	  		theid = 'show';	  		
    		}
    	else
    		{
      		switch_id.className = 'hideSwitch';
	  		theid = 'hide';	  
    		}
  		}
	}
	

function toggleVisibility (id) {
	if (document.getElementById) {
		var eid = document.getElementById(id);
		switch (eid.className) {
			case "showSwitch": {eid.className="hideSwitch"; break;}
			case "hideSwitch": {eid.className="showSwitch"; break;}
			default: {eid.className="hideSwitch";}
		} // switch classname
		
		
		var menu = document.getElementById(id+'status');
		if (eid.className == "hideSwitch") menu.className="expand";
		else if (eid.className == "showSwitch") menu.className="close";
		
	} // if doc.getID
	
}
