// JavaScript Document


  $(document).ready(function()
      {
         $('a#contact').qtip(
         {
           style: 
            { 
              tip: true,
              classes: 'ui-tooltip-tipsy'
            }
            ,position: 
            {
               my: 'left bottom',
               at: 'right bottom',
               target: $('a#contact')
            }
         });
         $('a#facebook').qtip(
         {
            style: 
            { 
              tip: true,
              classes: 'ui-tooltip-tipsy'
            },
            position: 
            {
               my: 'right bottom',
               at: 'left bottom',
               target: $('#facebook')
            }
            ,
            content: 
            {
              text: function(api) 
                    {
                        
                        // Retrieve content from custom attribute of the $('.selector') elements.
                        return $("#tooltip_facebook").html();
                    }
            }
            ,
            events: 
            {
                show: function(event, api) 
                {
                       
                       $("h2.profil").addClass('fb');
                }
                ,
                hide: function(event, api) 
                {
                       $("h2.profil").removeClass('fb');
                }
           }
         });
         
         $('a#linkedin').qtip(
         {
            style: 
            { 
              tip: true,
              classes: 'ui-tooltip-tipsy'
            }
            ,position: 
            {
               my: 'right bottom',
               at: 'left bottom',
               target: $('#facebook')
            }
            ,
            content: 
            {
              text: function(api) 
                    {
                        // Retrieve content from custom attribute of the $('.selector') elements.
                        return $("#tooltip_linkedin").html();
                    }
            }
         });
         
         $('a#cv').qtip(
         {
            style: 
            { 
              tip: true,
              classes: 'ui-tooltip-tipsy'
            }
            ,position: 
            {
               my: 'right bottom',
               at: 'left bottom',
               target: $('#facebook')
            }
            ,
            content: 
            {
              text: function(api) 
                    {
                        // Retrieve content from custom attribute of the $('.selector') elements.
                        return $("#tooltip_cv").html();
                    }
            }
         });
         
      });
