/* add class="show-description" to any image 
that you want to display it's alt attr below [default] the image.
add 'top' if you want it above the image: class="show-description top" */
$(window).bind("load", function() { 

	 $("img.show-description").each(function(){
	 	thisAlt = $(this).attr("alt");
	 	thisWidth = $(this).width();
	 	thisAlign = $(this).css("float");
	 	imgDescription = "<span>" + thisAlt + "</span>";
	 	
	 	$(this).wrap("<span class=\"img-with-description\"></span>").css("float","");
	 	$(this).parents("span").css({"width":thisWidth + 6 , "float":thisAlign});
	 	
	 	if ($(this).hasClass("top")) {
	 		$(this).parents("span").addClass("top").prepend(imgDescription);
	 	} else {
	 		$(this).parents("span").append(imgDescription);
	 	}
	 	
	 });

});