var tempX = 0
var tempY = 0
document.onmousemove=function(e){
	var evt=window.event || e //cross browser event object
	tempX = evt.layerX;
	tempY = evt.layerY;
}
function wishWatch(ib,rec)
{
	$.ajax({
   		type: "POST",
   		url: "/bitrix/components/ballisticka/bookmarks/ajax.php",
   		data: "BID="+ib+"&ID="+rec,
   		dataType: "script"
 	});
}

function showPopup(header, text)
{
	//alert(tempY);
	$('#popup').css("left", (tempX+16)+'px');
  	$('#popup').css("top", (tempY)+'px');
  	//$('#popupHeader').html("<img src='/bitrix/templates/bmk/images/"+header+".png' width='16' height='16'>");
  	$('#popupArea').html(text);
  	HideLoader();
	$('#popup').show();
}

function hidePopup()
{
	$('#popup').hide();
}
