(function(jQuery){
 jQuery(function() {

   jQuery('span.jQtooltip').each(function() {
     var title = jQuery(this).attr('title');
     if (title && title != '') {
       jQuery(this).attr('title', '').append('<div>' + title + '</div>');
       var width = jQuery(this).find('div').width();
       var height = jQuery(this).find('div').height();
       jQuery(this).hover(
         function() {
           jQuery(this).find('div')
             .clearQueue()
             .animate({width: width + 20, height: height + 20}, 200).show(200)
             .animate({width: width, height: height}, 200);
         },
         function() {
           jQuery(this).find('div')
             .animate({width: width + 20, height: height + 20}, 150)
             .animate({width: 'hide', height: 'hide'}, 150);
         }
       )
     }
   })

})
})(jQuery)
