//  Copyright ©2010 Paul Barrett - www.pbarrett.co.uk
//-----------------------------------------------------------------------------
//  Filename                : mn-signup-process.js
//-----------------------------------------------------------------------------
//  Project                 : Megganet.co.uk Website Development
//  Version                 : 1.00
//  Author                  : Paul Barrett
//  Date Created            : 16 Jul 2010
//-----------------------------------------------------------------------------
//  Description:
//  Provides jTip configuration for tooltips in signup section of the website.
//
//  Requires the following libraries/plugins:
//    jquery-1.3.2.min.js
//  
//  
//  Revisions:
//  16 Jul 2010 - No revisions yet.
//-----------------------------------------------------------------------------


$(document).ready(function() 
{
   // Use the each() method to gain access to each elements attributes
//   $('#main-content a[rel]').each(function()
   $('#container-content a[rel]').each(function()
   {
      $(this).qtip(
      {
         content: {
            // Set the text to an image HTML string with the correct src URL to the loading image you want to use
           text: '<img class="" src="images/loader.gif" alt="Loading..." />',
            url: $(this).attr('rel'), // Use the rel attribute of each element for the url to load
            title: {
               text: 'Megganet Help', // Give the tooltip a title using each elements text
               button: 'Close' // Show a close link in the title
            }
         },
         position: {
            corner: {
               target: 'bottomMiddle', // Position the tooltip above the link
               tooltip: 'topMiddle'
            },
            adjust: {
               screen: true // Keep the tooltip on-screen at all times
            }
         },
         show: { 
            when: 'click', 
            solo: true, // Only show one tooltip at a time
			effect: { type: 'fade' }
         },
         hide: 'unfocus',
         style: {
            tip: true, // Apply a speech bubble tip to the tooltip at the designated tooltip corner
            border: {
               width: 2,
               radius: 3
            },
            name: 'light', // Use the default light style
            width: 475 // Set the tooltip width
         }
      })
   });
});

