var bnToolTip={
        xOffset: 50,
        yOffset: 1,    
        showRec: function(i)
        {
		var coordinates = $('#' + i).offset();
		var tY = coordinates.top + this.yOffset;
		var tX = coordinates.left + this.xOffset;
                $("body").append("<div id='bnTooltip' style='position: absolute; display: none; z-index: 99999; background-color: #ffffff; padding: 5px; border: 1px solid #000;'>"+ this.desc +"</div>");
                $("#bnTooltip").css("top",tY + "px");
                $("#bnTooltip").css("left",tX + "px");
                $("#bnTooltip").fadeIn("fast");
        },
        hideRec: function()
        {
                $("#bnTooltip").remove();
        },
	setDesc: function()
	{
		this.desc = '<div style="width: 150px;">';
		this.desc += '<div style="float: left; font-weight: bold; width: 25px; text-align: right;"><b>B</b></div><div style="float: left; font-weight: normal; padding-left: 10px;">Buy</div><div class="clr">';
		this.desc += '<div style="float: left; font-weight: bold; width: 25px; text-align: right;">W</div><div style="float: left; font-weight: normal; padding-left: 10px;">Buy on weakness</div><div class="clr">';
		this.desc += '<div style="float: left; font-weight: bold; width: 25px; text-align: right;">P</div><div style="float: left; font-weight: normal; padding-left: 10px;">Buy on speculation</div><div class="clr">';
		this.desc += '<div style="float: left; font-weight: bold; width: 25px; text-align: right;">S</div><div style="float: left; font-weight: normal; padding-left: 10px;">Sell</div><div class="clr">';
		this.desc += '<div style="float: left; font-weight: bold; width: 25px; text-align: right;">T</div><div style="float: left; font-weight: normal; padding-left: 10px;">Take Profits</div><div class="clr">';
		this.desc += '<div style="float: left; font-weight: bold; width: 25px; text-align: right;">H</div><div style="float: left; font-weight: normal; padding-left: 10px;">Hold</div><div class="clr">';
		this.desc += '</div>';
	},
	init: function() {
		this.setDesc();
	}
}
bnToolTip.init();

