<!-- Zervaas.Com JavaScript Source, (c) 2000-2001 Zervaas.Com (http://www.zervaas.com)

var opnLayer = '';

function Setup() {
}

function hideOpenLayer() {
	if(opnLayer != '') {
		hideLayer(opnLayer, false);
	}
}

function showLayer(theLayer){
	if(opnLayer != '') {
		hideLayer(opnLayer, false);
	}

//	theLayer.style.left = document.body.clientWidth - (parseInt(theLayer.style.width) + 482);

	theLayer.style.visibility='visible';
	opnLayer = theLayer;

}

function hideLayer(theLayer, inLayer){
  var theTop = parseInt(theLayer.style.top) - document.body.scrollTop;
  var theLeft = parseInt(theLayer.style.left);
  var theHeight = parseInt(theLayer.style.height);
  var theWidth = parseInt(theLayer.style.width);
	if(inLayer) {
		if((event.clientY < theTop) || (event.clientX < theLeft) || (event.clientX > (theLeft + theWidth)) || (event.clientY > (theTop + theHeight))) {
			theLayer.style.visibility='hidden';
			opnLayer = '';
		}
	}
	else {
		theLayer.style.visibility='hidden';
		opnLayer = '';
        }
}

