/**
 * Captions
 * 
 * Version 1.0
 * Febuary 5, 2009
 *
 * Copyright (c) 2009 Alex Kondys; Developed whilst under tenure at Revium (http://revium.com.au)
 * Licensed under the GPL licenses.
 * http://www.gnu.org/licenses/gpl.txt
 **/

jQuery.fn.captions = function(value){
	var alignAttr = this.attr('align');
	this.removeAttr('align');
	this.wrap("<div class='caption "+alignAttr+"' style='width:"+this.attr("width")+"px;'></div>");
	this.after("<span>"+this.attr("alt")+"</span>");
	
};
