 $(document).ready(function(){
	
	// ******* Copyright info ******* //
	// Finds all images with a title, wraps them in a div with class of that image, adds a class of "image_wrap" to the div. It then inserts a paragraph containing the title of the image.
	
	var titledImage = $("div#content_pri img[title]");
	titledImage.each(function() {
		var $this = $(this);
		var titledImageWrap = document.createElement("div");
		titledImageWrap.className = $this.attr("class");
		$($this).removeClass("left right");
		$(titledImageWrap).addClass("image_wrap"); 
		titledImageWrap.style.width = $this.width() + "px"; 
		$this.wrap(titledImageWrap);
		$this.after("<span>" + $this.attr("title") + "</span>");
		var titledImageWrap = document.createElement("div");
	});
	
});