$(document).ready(function() 
{
   $('#about_link')
      .click(function()
      {
         // Destroy currrent tooltip if present
         if($(this).data("qtip")) $(this).qtip("destroy");

         $(this).qtip({
               content: 'People post <b>#scribblefacts</b> on <a href="http://twitter.com/">twitter</a>. We capture all of them and let you vote on each one. The best ones are posted in the <a href="http://twitter.com/scribblefacts">scribblefacts twitter account</a>. Rinse and repeat.', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', // Use the corner...
                     target: 'topLeft' // ...and opposite corner
                  }
               },
               show: {
                  when: false, // Don't specify a show event
                  ready: true // Show the tooltip when ready
               },

               hide: { when: { event: 'unfocus' } },
               style: {
                  border: {
                     width: 5,
                     radius: 10
                  },
                  padding: 10, 
                  textAlign: 'center',
                  tip: true, // Give it a speech bubble tip with automatic corner detection
                  name: 'cream' // Style it according to the preset 'cream' style
               }
            });
      });

	 $('#twitter_link')
	      .click(function()
	      {
	         // Destroy currrent tooltip if present
	         if($(this).data("qtip")) $(this).qtip("destroy");

	         $(this).qtip({
	               content: 'Too lazy to vote? Just follow <a href="http://twitter.com/scribblefacts">@scribblefacts</a> on twitter and get tips in real time.', 
	               position: {
	                  corner: {
	                     tooltip: 'bottomRight', // Use the corner...
	                     target: 'topLeft' // ...and opposite corner
	                  }
	               },
	               show: {
	                  when: false, // Don't specify a show event
	                  ready: true // Show the tooltip when ready
	               },

	               hide: { when: { event: 'unfocus' } },
	               style: {
	                  border: {
	                     width: 5,
	                     radius: 10
	                  },
	                  padding: 10, 
	                  textAlign: 'center',
	                  tip: true, // Give it a speech bubble tip with automatic corner detection
	                  name: 'cream' // Style it according to the preset 'cream' style
	               }
	            });
	      });
	
		$('#scribbllenats_link')
		      .click(function()
		      {
		         // Destroy currrent tooltip if present
		         if($(this).data("qtip")) $(this).qtip("destroy");

		         $(this).qtip({
		               content: '<a href="http://games.kidswb.com/scribblenauts/">An amazing puzzle action game for Nintendo DS</a>', 
		               position: {
		                  corner: {
		                     tooltip: 'bottomRight', // Use the corner...
		                     target: 'topLeft' // ...and opposite corner
		                  }
		               },
		               show: {
		                  when: false, // Don't specify a show event
		                  ready: true // Show the tooltip when ready
		               },

		               hide: { when: { event: 'unfocus' } },
		               style: {
		                  border: {
		                     width: 5,
		                     radius: 10
		                  },
		                  padding: 10, 
		                  textAlign: 'center',
		                  tip: true, // Give it a speech bubble tip with automatic corner detection
		                  name: 'cream' // Style it according to the preset 'cream' style
		               }
		            });
		      });
});
