

	function Tooltip()
	{
		this.tooltips = new Array() ;
		this.init() ;
		this.tooltiptarget = document.getElementById( 'tooltip' ) ;
		this.tooltiptext = document.getElementById( 'tooltip_in' )
		this.posx   = 20 ;
		this.posy   = 20 ;
		this.status = 0 ;
		this.timer  = null ;
	}
	
	
	Tooltip.prototype.init = function()
	{
		this.tooltips = document.getElementById( "leftblock" ).getElementsByTagName( 'a' ) ;
		for( t in this.tooltips )
		{
			if ( this.tooltips[t].className && this.tooltips[t].className.substr( 0,6 ) == 'button' ) 
			{
				if( this.tooltips[t].title )
				{
					this.tooltips[t].tooltiptext = this.tooltips[t].title ;
					this.tooltips[t].title       = '' ;
					this.tooltips[t]._mama       = this ;
					this.tooltips[t].onmousemove = this.hover ;
					this.tooltips[t].onmouseout  = this.stophover ;
				}
			}
		}
	}
	
	
	Tooltip.prototype.hover = function(e)
	{
		this._mama.mousePosition(e) ;
		this._mama.tooltiptarget.style.left = this._mama.posx + 15 + 'px' ;
		this._mama.tooltiptarget.style.top  = this._mama.posy   +'px' ;
		if( this._mama.status == 0 )
		{
			this._mama.status = 1 ;
			this._mama.tooltiptext.innerHTML  = this.tooltiptext ;
			this._mama.timer = setTimeout( "document.getElementById( 'tooltip' ).style.display = 'block' ;" , 100 ) ;
		}
	}
	
	
	Tooltip.prototype.stophover = function()
	{
		clearTimeout( this._mama.timer ) ;
		this._mama.status = 0 ;
		this._mama.tooltiptarget.style.display = 'none' ;
	}
	
	
	Tooltip.prototype.mousePosition = function(e)
	{
		if (!e) var e = window.event;
		if (e.pageX || e.pageY) 	{
			this.posx = e.pageX;
			this.posy = e.pageY;
		}
		else if (e.clientX || e.clientY) 	{
			this.posx = e.clientX + document.body.scrollLeft
				+ document.documentElement.scrollLeft;
			this.posy = e.clientY + document.body.scrollTop
				+ document.documentElement.scrollTop;
		}
	}
	
	
	
	
	
	