///////////////////////////////////////////////////////////////////////////////////////////
// Captions 1.0
// Version 1.0 modified by Marc Rolli
// @requires jQuery v1.3.2
// 
// Copyright (c) 2009 Mark Ashley Bell
// Examples and docs at: http://markashleybell.com/jquery/jquery.caption.html
// 
// Dual licensed under the MIT and GPL licenses:
// http://www.opensource.org/licenses/mit-license.php
// http://www.gnu.org/licenses/gpl.html
///////////////////////////////////////////////////////////////////////////////////////////

(function($) {
	$.fn.caption = function(settings) {
		this.each(function() {
		var img = $(this);
		var cls = 'caption';
		var caption = img.attr('alt');
		// img.after('<div style="margin-left:' + img.css('marginLeft') + '; width: ' + (img.width() + 2) + 'px;" class="' + cls + '"><span>' + caption + '</span></div>');
		});
		return this;
	};
})(jQuery);