/* **** CORP TRAY **** */

function switchMenuOn(obj) {
	if (obj.id != actObjId) switchAllMenuOff();
	if (timeout != null) {
		clearTimeout(timeout);
	}
	obj.className='corpCont open';
	actObjId = obj.id;
	return false;
}

function switchMenuOff(obj) {
	timeout = setTimeout('switchAllMenuOff()', 300);
	actObjId = obj.id;
}


function switchAllMenuOff() {
	for (i=0; i<mMenuArray.length; i++) {
		document.getElementById(mMenuArray[i]).className='corpCont off';
	}
	return false;
}

timeout = null;
actObjId = '';
mMenuArray = new Array('corpTray00','corpTray01','corpTray02','corpTray03');
