

/*
 Copyright (C) 2000  e.magination network, llc.  All Rights Reserved.
   Feel free to reuse or modify this code,
   provided this header remains in tact
   http://www.emagination.com
   Jibba Jabba strikes again.
*/
function setDocCapture() {
if ( (!is.ie) && (is.ns4 || is.ns6)){
	document.captureEvents(Event.MOUSEMOVE);
  }
}

function releaseDocCapture() {
if ( (!is.ie) && (is.ns4 || is.ns6)){
   document.releaseEvents(Event.MOUSEMOVE);
  }
}

function menuShow(strLayerID) {
	if (initialized) {
		releaseDocCapture();
		if (timeoutID[strLayerID] != null) clearTimeout(timeoutID[strLayerID]);
		for (var i in aryMenuLayer) {
			if (aryMenuLayer[i] == strLayerID) {
				eval(aryMenuLayer[i].replace(/Div$/,'')).show();
			}
			else {
				eval(aryMenuLayer[i].replace(/Div$/,'')).hide();
			}
		}
	}
}

function menuHide(strLayerID) {
	if (initialized) {
		setDocCapture();
		var theTime = (is.ns6) ? 3000 : 100;
		timeoutID[strLayerID] = setTimeout(strLayerID.replace(/Div$/,'')+'.hide()', theTime);
	}
}

function menuShow2(strLayerID,e) {
	if (initialized) {
		releaseDocCapture();
		if (timeoutID[strLayerID] != null) clearTimeout(timeoutID[strLayerID]);
		for (var i in aryMenuLayer) {
			if (aryMenuLayer[i] == strLayerID) {
				var EventX = (document.all) ? (e.clientX + document.body.scrollLeft) : e.pageX;
    			var EventY = (document.all) ? (e.clientY + document.body.scrollTop)  : e.pageY;

				eval(aryMenuLayer[i].replace(/Div$/,'')).moveTo(EventX+25,EventY-50);
				eval(aryMenuLayer[i].replace(/Div$/,'')).show();
			}
			else {
				eval(aryMenuLayer[i].replace(/Div$/,'')).hide();
			}
		}
	}
}

function menuHide2(strLayerID) {
	if (initialized) {
		setDocCapture();
		timeoutID[strLayerID] = setTimeout(strLayerID.replace(/Div$/,'')+'.hide()', 100);
	}
}
