function Tooltip(x_off, y_off){
    var This = this;
	this.ie = navigator.appName.indexOf("xplorer") > 0 ? true : false;
	
	var el = new Element("page");
	//var tip = el.append("div", "", 'class="tooltip"');
		//el = document.getElementById("wrap").appendChild(el);  
	
	this.xoffset = x_off ? x_off : -50;
	this.yoffset = y_off ? y_off : 50;
	this.tip = new Animation("tooltip",{alpha:0.01});
	this.over = false;
	this.timer = null;
	
	this.show = function(message, e){
	   if(this.timer) window.clearTimeout(this.timer);	   
	   var ei = new EventInfo(e, true);
	   This.tip.element.setContent(message);
	   This.tip.element.show('block');
	   This.tip.effect({alpha:99.9,duration:0.3});
	   ei.source.onmousemove = function(e){   
		    var ein = new EventInfo(e, true);  
			var y = 0;
			Window.construct();
			if(This.ie){
				if(Window.scrolledy){
				    y = ein.ymouse-17+Window.scrolledy; 
				}else{//alert(win.vscroll);
					y = ein.ymouse-17;
				} 
				//y = (ein.ymouse-17) + (win.vsrcoll - win.height); 
			}else{
				y = ein.ymouse-17
			}
			This.tip.element.setPosition(ein.xmouse - el.getRealLeft() + This.xoffset, (y + This.yoffset));
	   } 
	}                
	
	this.hide = function(e){		
		this.over = false;	 
		this.timer = window.setTimeout(tooltip.close, 800);
	}
	
	this.close = function(){
		
		if(this.over) return;
		This.tip.effect({alpha:0.01,duration:0.3}); 		
		window.clearTimeout(this.timer);
	}
}