/**
 * @author Ken Dunnington
 * @date 10/15/2007
 * @description Turns the first letter of a paragraph into an 'illuminated' drop cap using CSS and images
 */

 // Set up some constants
 var IMAGES_DIR = "images/template/"; // folder where images are stored - requires trailing slash
 var IMAGE_PREFIX = "illuminated_";
 var IMAGE_SUFFIX = ".gif";
 var CLASSNAME = "illuminate"; // CSS class to use on paragraph tags
 
 $(function() {
 	$("p."+CLASSNAME).each(function() {
		var letter = IMAGE_PREFIX + $("span:first",this).text().toLowerCase() + IMAGE_SUFFIX;
		$(this).css("background-image","url("+IMAGES_DIR+letter+")");
	});
 });