AjaxTip = {
	getContent: function(e)
	{
		var ajaxTipObj = $('ajaxTip');
		new Ajax.Updater(ajaxTipObj,this.getAttribute('rel')); 
	},
	clear: function(id)
	{
		var ajaxTipObj = $('ajaxTip');
		ajaxTipObj.hide();
		ajaxTipObj.down().innerHTML = '<img src="/themes/global/default/normal/images/loading.gif" alt="loading" style="display: block; margin: auto; position: relative; top: 35px;" />';
	},
	updatePosition: function(e)
	{
		var IE = document.all?true:false;
		var ajaxTipObj = $('ajaxTip');

		if(IE)
		{
			var scrollLeft=document.documentElement?document.documentElement.scrollLeft:document.body.scrollLeft;
			var scrollTop=document.documentElement?document.documentElement.scrollTop:document.body.scrollTop;
			var mouseX = scrollLeft + window.event.clientX + 10;
			var mouseY = scrollTop + window.event.clientY + 10;
			
			ajaxTipObj.show();
			ajaxTipObj.style.position = 'absolute';
			ajaxTipObj.style.top = String(mouseY);
			ajaxTipObj.style.left = String(mouseX);
		}
		else
		{
			mouseX = Event.pointerX(e)+10;
			mouseY = Event.pointerY(e)+10;
			
			var style = 'display:block;z-index: 1000;position:absolute; top: ' + String(mouseY) + 'px; left: ' + String(mouseX) + 'px;';
			ajaxTipObj.setAttribute('style',style);
		}
	}
}
