var scrollbarY = 0;
var timerEventPopup = "";
var IE = document.all?true:false;
if(!IE){
	document.onmousemove = getMouseXY;
}
var tempXPosition = 0;
var tempYPosition = 0;
function getMouseXY(evt){
	evt = (evt)? evt : ((window.event)? window.event : "");
	if(IE){
		tempXPosition = evt.clientX + document.body.scrollLeft;
		tempYPosition = evt.clientY + document.body.scrollTop;
	}else {
		tempXPosition = evt.pageX;
		tempYPosition = evt.pageY;
	}
	if (tempXPosition < 0){tempXPosition = 0;}
	if (tempYPosition < 0){tempYPosition = 0;}
}
function updateVerticalScrollbar(){
	if (window.pageYOffset){
		scrollbarY=0;
	}else if (document.documentElement && document.documentElement.scrollTop){
		scrollbarY=document.documentElement.scrollTop;
	}else if (document.body){
		scrollbarY=document.body.scrollTop;
	}
}
function closeLayer(){
	if(timerEventPopup){
		clearTimeout(timerEventPopup);
	}
	timerEventPopup = setTimeout("$('popup_quicklinks_box').style.display = 'none';", 400);
}
function popupn(oEvent){
	if(timerEventPopup){
		clearTimeout(timerEventPopup);
	}
	if(IE){
		getMouseXY(oEvent);
	}
	oEventPopupDiv = $("popup_quicklinks_box");
	oEventPopupDiv.style.display = 'block';
	updateVerticalScrollbar();
	oEventPopupDiv.style.left = (tempXPosition-150)+'px';
	oEventPopupDiv.style.top = (tempYPosition+scrollbarY+5)+ 'px';
}
function KeepOpen(){
	if(timerEventPopup){
		clearTimeout(timerEventPopup);
	}
}

