/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* larsTips based on a jquery piece by jon cazier */
/* v 1.0                                          */
/* update: 01/12/2009 - increased fadeout delay   */
/* from 1 second to 2.5                            */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

$(document).ready(function() {
  $('.toolTip').hover(
    function() {
    this.tip = this.title;
    $("body").append(
       '<div class="toolTipWrapper">'
      +this.tip
      +'</div>'
    );
    this.title = "";
    var myOff = $(this).offset();
    $('.toolTipWrapper').css({left:myOff.left-60});
    $('.toolTipWrapper').css({top:myOff.top+20});
    $('.toolTipWrapper').fadeIn(300);
    $('#jsspacer').show();
  },
  function() {
    $('.toolTipWrapper').fadeOut(2500,function() {
      $(this).remove();
    });
    this.title = this.tip;
    }
  );
});
