/*-----------------------------------------------------------------------------------------------*/
/*                                      SIMPLE jQUERY TOOLTIP                                    */
/*                                      VERSION: 1.1                                             */
/*                                      AUTHOR: jon cazier                                       */
/*                                      EMAIL: jon@3nhanced.com                                  */
/*                                      WEBSITE: 3nhanced.com                                    */
/*-----------------------------------------------------------------------------------------------*/
//SIMPLE jQUERY TOOLTIP 
$(document).ready(function() {
  $('.keywords').hover(
    function() {
    this.tip = this.title;
    $(this).append(
     '<div class="toolTipWrapperNew">'
        +'<div class="toolTipTopNew"></div>'
        +'<div class="toolTipMidNew">'
          +this.tip
        +'</div>'
        +'<div class="toolTipBtmNew"></div>'
      +'</div>'
    );
    this.title = "";
//    this.width = $(this).width();
//    $(this).find('.toolTipWrapperNew').css({left:this.width-22})
  var height = $(this).height();
  var x = this.offsetLeft;
  var y = this.offsetTop-height;
  $(this).find('.toolTipWrapperNew').css({left: + (x+20) + "px",top: + (y-20) + "px"});
    $('.toolTipWrapperNew').fadeIn(300);
  },
    function() {
      $('.toolTipWrapperNew').fadeOut(100);
      $(this).children().remove();
        this.title = this.tip;
      }
  );
});

// FACEBOOK (m.fl.)
$(function() {
    $('.sharelink').click(function()
    {
        $('.lightbox').fadeIn('fast');
        return false;
    });
    $('.lightbox_close').click(function()
    {
        $('.lightbox').fadeOut('fast');
        return false;
    });
});