/*
* 
* // Usage
* $('div.image').imgCaption();
* 
* 
* HTML:
* 
* <div class="captioned image-left-caption-left">
*      <img src="myimage.jpg" width="250" height="350" alt="Image alt" title="Image title" />
* </div>
* 
*/
// Plugin to create an image caption from the title on the fly
(function($) {
     $.fn.imgcaption = function() {
         return this.each(function() {
             var img = $('img', this);
             $(this).css({width: img.width() + 'px'});
         });
     };
})(jQuery);