// JavaScript Document

// Create the tooltips only on document load
$(document).ready(function() 
{
	

			
   // Notice the use of the each method to gain access to each element individually
   $('.webThumbs a').each(function()
   {
      // Create image content using websnapr thumbnail service
      var content = '<img src="http://images.websnapr.com/?url=';
      content += $(this).attr('href');
      content += '" alt="Loading thumbnail..." height="152" width="202" />';
      
      // Setup the tooltip with the content
      $(this).qtip(
      {
         content: content,
         position: {
            corner: {
               tooltip: 'bottomMiddle',
               target: 'topMiddle'
            }
         },
         style: {
            tip: true, // Give it a speech bubble tip with automatic corner detection
						border: { 
								width: 7,
								radius: 5,
								color: '#A9D7EA'
						}
            
         }
      });
			
			
	
   });
});

