tooltip = {
	show:function(a,o){
		var id;
		if(typeof(o.tooltipid)=="undefined"){
			id = tooltip.index++;
			o.tooltipid = id;
			tooltip.orefs[id] = o;
		}
		else id = o.tooltipid;

		o.style.display = "block";

		var p = $.pos(a);

		$.move(o,p.left,p.bottom);

		if(o.tooltiphidetimer) clearTimeout(o.tooltiphidetimer);
		if(!a.onmouseout) a.onmouseout = new Function("tooltip.orefs["+id+"].tooltiphidetimer=setTimeout(\"tooltip.dohide("+id+");\",300);");
		if(!o.onmouseout) o.onmouseout = new Function("this.tooltiphidetimer=setTimeout(\"tooltip.dohide("+id+");\",300);");
		if(!o.onmouseover) o.onmouseover = new Function("clearTimeout(this.tooltiphidetimer);");
	}
	,hide:function(){
		this.tooltiphidetimer = setTimeout("tooltip.dohide('"+this.tooltipid+"')",500);
	}
	,dohide:function(id){
		if(tooltip.orefs[id]) tooltip.orefs[id].style.display="none";
	}
	,index:0
	,orefs:{}
};


