if ("undefined" == typeof(RadDockNamespace))
{
	RadDockNamespace = new Object();
}

RadDockNamespace.RadTooltip_Init = function(element)
{
	if (!element)
		return;
		
	Object.Extend(element, RadDockNamespace.RadTooltip);
};

RadDockNamespace.RadTooltip = {
	SetText : function (sText)
	{
		this.innerHTML = "";
		this.appendChild(document.createTextNode(sText));
	},
	
	ShowAt : function (x, y)
	{
		this.style.display = "";
		this.style.left = x + 'px';
		this.style.top = y + 'px';
	},
		
	Hide : function ()
	{
		this.style.display = "none";
	},
	
	BringToFront : function ()
	{ 
		RadDockNamespace.RadMoveableObject.BringToFront.call(this);
	} 
};

//BEGIN_ATLAS_NOTIFY
if (typeof(Sys) != "undefined")
{
    if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null)
    {
        Sys.Application.notifyScriptLoaded();
    }
}
//END_ATLAS_NOTIFY
