// ###########################################################
// © 2005 MoonLite Vision, Inc.
// All rights reserved.
// ##########################################################

function showSubMenuDelay(subMenu) {
	document.getElementById('menuval').value = subMenu;
	setTimeout("showSubMenu(" + subMenu + ")",100);
}
function hideSubMenuDelay(subMenu) {
	document.getElementById('menuval').value = '-1';
	setTimeout("hideSubMenu(" + subMenu + ")",100);
}
function showSubMenu(subMenu) {
	if (document.getElementById('menuval').value == subMenu) {
		smvalue = 'submenurow' + subMenu;
		document.getElementById(smvalue).style.visibility = 'visible';
		mmvalue = 'mainmenurow' + subMenu;
		tempObject = document.getElementById(mmvalue);
		tempObject.className = 'menuout menuhovr';
	}
}
function hideSubMenu(subMenu) {
	if (document.getElementById('menuval').value != subMenu) {
		smvalue = 'submenurow' + subMenu;
		document.getElementById(smvalue).style.visibility = 'hidden';
		mmvalue = 'mainmenurow' + subMenu;
		tempObject = document.getElementById(mmvalue);
		tempObject.className = 'menuout';
	}
}
function backoffWindow(backoffPage) {
	mybackoffWindow = window.open(backoffPage,'backoffWindow','');
	if (mybackoffWindow.focus) {
		mybackoffWindow.focus();
	}
}
function bbhelpWindow(bbhelpPage) {
	mybbhelpWindow = window.open(bbhelpPage,'bbhelpWindow','toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=1,width=770,height=500');
	if (mybbhelpWindow.focus) {
		mybbhelpWindow.focus();
	}
}
function bbcontWindow(bbcontPage) {
	mybbcontWindow = window.open(bbcontPage,'bbcontWindow','toolbar=0,location=0,directories=0,scrollbars=1,status=0,menubar=0,resizable=0,width=600,height=480');
	if (mybbcontWindow.focus) {
		mybbcontWindow.focus();
	}
}
