
// Definition de la classe 'DcuPicto'
// NB: L'ordre des methodes est important
function DcuPicto(id)
{
	// Proprietes publiques
	this.Id = id;
	this.HtmlObject = $("#" + id);
	
	// Champs et methodes privees
	var _this = this;
	var _tooltip = new Tooltip(id + "_tooltip");
	
	this.OnLoad = function()
	{
		var that = _this.HtmlObject;
		$(".DcuImage").hover(function()
		{
			var pos = Tools_GetPosition(that.get(0));
			_tooltip.Show(pos.Left + that.width(), pos.Top);
		},
		function() { _tooltip.Hide() });
	}
	
	this.SetOffsetProvider = function(provider)
	{
		_tooltip.SetOffsetProvider(provider);
	}
}

