<!--
var 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';
        }
    }
}
*/


var last_expanded = '';

function showHide(id)
{
var obj = document.getElementById(id);

var status = obj.className;

if (status == 'hide') {

if (last_expanded != '') {
var last_obj = document.getElementById(last_expanded);
last_obj.className = 'hide';
}

obj.className = 'show';

last_expanded = id;
} else {
obj.className = 'hide';
}
}
function show(){
    if (document.getElementById) {
    var switch_id = document.getElementById(menu);
	last_expanded = menu;
		if (menu != '') {
        if(menu_status[menu] != 'show') {
           switch_id.className = 'show';
           menu_status[menu] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[menu] = 'hide';
        }
    }
	}
	}
function showCentre(id,cLink){
	var obj = document.getElementById(id);
	var centreLink = document.getElementById(cLink);
	var status = obj.className;
	if (status == 'hide') {
		/*if (last_expanded != '') {
			var last_obj = document.getElementById(last_expanded);
			last_obj.className = 'hide';
		}*/
		obj.className = 'show';
		centreLink.className = 'hide';
		/*last_expanded = id;*/
	} 
	else {
		obj.className = 'hide';
		centreLink.className = 'show';
	}
}
//-->

