function show(div) {
	if (div.style.display == 'none') {
		div.style.display = 'block';
	} else {
		div.style.display = 'none';
	}
}

menudivs = new Array();
menudivs[0] = "subm0";

function ShowVMenu(div) {
	div.style.visibility = "block";
}
function HideVMenu(div) {
	div.style.visibility = "hidden";
}
function zxcLeft(zxc) {
	zxcObjLeft = zxc.offsetLeft;
	while (zxc.offsetParent != null) {
		zxcObjParent = zxc.offsetParent;
		zxcObjLeft += zxcObjParent.offsetLeft;
		zxc = zxcObjParent;
	}
	return zxcObjLeft;
}
function zxcTop(zxc) {
	var zxcObjTop = 0;
	do {
		zxcObjTop += zxc.offsetTop
	} while ((zxc = zxc.offsetParent) != null);
	return zxcObjTop;
}
function ShowMenu(div, el) {
	div.style.display = "";
	if (el) {
		y = zxcTop(el);
		div.style.left = zxcLeft(el) + 'px';
		div.style.width = el.offsetWidth + 'px';
		div.style.top = y - div.offsetHeight + "px";
		div.style.top = 0 + "px";

	}
	div.mastHide = false;
}
function HideMenu(div) {
	div.mastHide = true;
	setTimeout("DoHide(document.getElementById('" + div.id + "'))", 900);
}
function DoHide(div) {
	if ((div) && (div.mastHide)) {
		div.mastHide = false;
		div.style.display = "none";
	}
}
