
var tooltip = function(){

	var id;
	var toolTipContent, toolTipBlock;
	var top  = 3;
	var left = 3;
	var ie   = document.all ? true : false;

	return{
		show:function(id, w){
			toolTipContent = document.getElementById(id);
			toolTipBlock   = document.getElementById(id+'-BLOCK');
			document.onmousemove = this.pos;			
			toolTipBlock.style.display = 'block';
      $(toolTipContent).fadeIn("slow");
			return (true);
		},
		pos:function(e){
			try {
				x = ie ? window.event.x + document.documentElement.scrollLeft: e.pageX;
				y = ie ? window.event.y + document.documentElement.scrollTop:  e.pageY;
		
				toolTipBlock.style.left = (x + 20) + "px";
				toolTipBlock.style.top  = (y + 20) + "px";

			}catch (error) {
				error=null;
			}
		},

		hide:function(id){
			toolTipContent = document.getElementById(id);
			toolTipBlock   = document.getElementById(id+'-BLOCK');

			toolTipContent.style.display = 'none';
			toolTipBlock.style.display   = 'none';
			return (true);
		}
	};
}();

