var zmax = 1;

$(document).ready(function() {
    $('.toolTip').hover(
    function() {
    this.tip = this.title;
        zmax = zmax+1;
        $(this).css('zIndex', zmax );
        $(this).append(
     '<div class="toolTipWrapper">'
        + '<div class="toolTipTop"></div>'
        + '<div class="toolTipMid">'
          + this.tip
        + '</div>'
        + '<div class="toolTipBtm"></div>'
      + '</div>'
    );
        this.title = "";
        this.width = $(this).width();
        $(this).find('.toolTipWrapper').css({ left: this.width - 150 })
        $('.toolTipWrapper').fadeIn(300);
    },
    function() {
        $('.toolTipWrapper').fadeOut(100);
        $(this).children().remove();
        this.title = this.tip;
    }
  );
});
