/*
* txt2img (1.0) // 2008.03.10 // <http://plugins.jquery.com/project/txt2img>
* 
* REQUIRES jQuery 1.2.3+ <http://jquery.com/>
*
* Copyright (c) 2008 TrafficBroker <http://www.trafficbroker.co.uk>
* Licensed under GPL and MIT licenses
* 
* @author    Jesus Carrera <jesus.carrera@trafficbroker.co.uk>
*/
(function(A){A.fn.txt2img=function(B){B=A.extend({},A.fn.txt2img.defaults,B);return this.each(function(){A(this).map(function(){if(B.forceFileName!=""){fileName=B.forceFileName}else{if(B.textsFileNames[A(this).text()]!=undefined){fileName=B.textsFileNames[A(this).text()]}else{fileName=A(this).text().toLowerCase().replace(/ +/g,"-").replace(/([^a-z0-9-])+/g,"").replace(/-+/g,"-")}}A(this).html(['<img src="'+B.path,fileName,B.extension+'" alt="',A(this).text(),'" />'].join(""))})})};A.fn.txt2img.defaults={path:"/images/texts/",extension:".png",forceFileName:"",textsFileNames:[]}})(jQuery);
