//wH(Tip,"z");
//hE(Tip);

function mxTip()
{
	this._html = '<div id="tipper" style="top: 0px; left: 0px; position: absolute;  text-align: left; padding: 0px; padding-left: 5px; padding-right: 5px;" >I Love Cookies</div>';
	
	document.write(this._html);	
	this._tip = gE("tipper");
	//setOp(this._tip,80);
	sZ(this._tip,9000);
	hE(this._tip);
}

function tipOut()
{
	hE(gE("tipper"));
}

function tipOver(evt)
{
	var e = gEvtE(evt);
	
	var tip = gE("tipper");

	
		
	
	//pos1 = getPageXY(e);	
	pos = getMouseXY(evt);	
	
	//alert(pos.x + ":" + pos1.x);	
	
	
	setPageXY(tip,pos.x + 20,pos.y + 10);
	
	//wH(tip,e.getAttribute("tip") + "=" + pos.x + ":" + pos.y + "=" + pos1.x + ":" + pos1.y);
	wH(tip,e.getAttribute("tip"));
	sE(tip);
	
				
	
}

mxTip.prototype.Init2 = function ()
{
	var thisObj = this;
	setTimeout(function(){ mxT.Init(); },250);
}

mxTip.prototype.Init = function ()
{
 		 //var children = document.getElementsByTagName("a");
 		 var children = document.getElementsByTagName("*");
		 
			   for(var i=0; i < children.length; i++) {
			   		   if (children[i].getAttribute("title"))
			   		   {
			   		   	children[i].setAttribute("tip",children[i].getAttribute("title"));
			   		   	children[i].removeAttribute("title");
			   		   }
			   		   if (children[i].getAttribute("tip"))
					   {
					   	children[i]._tip = gE("tipper");
					   	children[i].tipOver = tipOver;
					   	children[i].tipOut = tipOut;					   		
					   	//children[i].onmousemove = children[i].tipOver;
					   	AttachEvent(children[i],"mousemove", function(evt) { this.tipOver(evt); } );
					    AttachEvent(children[i],"mouseout", function() { this.tipOut(); } );
						// __sig__.connectByName(children[i],"onmousemove", this, "Over");
						// __sig__.connectByName(children[i],"onmouseout", this, "Out");
					   }			   
				} 
};


var mxT = new mxTip();

AttachEvent(this,"load", mxT.Init);
