var cytooltip = {
	showTooltip : function (evt)
	{
		if (!evt)
			evt = window.event;
		  
		elt = evt.target;
		var t='';
		try
		{    
			if (elt.alt != null)
			t=elt.alt;
			else if (elt.title != null)
			t = elt.title;
		     
		}
		catch(ee){}
		  
		  
		if (t)
		{
			
			var tooltipbox = tooltipContainer();
			if (tooltipbox)
			{
				tooltipbox.style.postion = 'absolute';
				tooltipbox.style.top = (evt.pageX + 10) + 'px';
				tooltipbox.style.left = (evt.pageX + 10) + 'px';
				tooltipbox.style.display = 'block';
			}
		}
	},

	hideTooltip:function ()
	{
		var tooltipbox = this.tooltipContainer();
		if (tooltipbox)
			tooltipbox.style.display = 'none';
	},
	
	tooltipContainer:function ()
	{
		var t = document.getElementById('_div_tooltip');
		if(!t)
		{
			t = document.createElement('div');
			t.id = '_div_tooltip';
			t.style.background = 'yellow';
			t.style.width = '300px';
			t.style.zIndex = '5000';
			t.style.display = 'none';
			document.body.appendChild(t);
		}
		return t;
	}
};
