var cm=null;
document.onclick = new Function("show(null)")

function getPos(el,sProp) {
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos
}
function show(el,m) {
	if (m) {
		m.style.display='';
		m.style.pixelLeft = getPos(el,"Left")
		m.style.pixelTop = getPos(el,"Top") + el.offsetHeight
		m.style.visibility="visible";
		m.style.filter="alpha(opacity=80)";
		m.style.zIndex="1"
	}
	if ((m!=cm) && (cm)) cm.style.display='none'
	cm=m
}

var timerID = null;
var timeOut = 0;

function setMouseOver() {
	fTime = document.fTimeSelect.fTimes;
	timeOut = fTime[fTime.selectedIndex].value;
}

function outMenu() {
	timerID = setTimeout("show(null)", timeOut);
}

function onMenu() {
	clearTimeout(timerID);
}

function bestwin(location,width,height,scroll) {
 if (width < 10) { width = 490; }
 if (height < 10) { height = 420; }
 if (scroll != "yes") { scroll = "no"; }
 width = width + 20;
 height = height + 40;
 flags = "toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=" + scroll + ",Width=" + width + ",Height=" + height;
 OpenWin = this.open(location, "miniWindow", flags);
}

