//This code is optimized by the w3compiler from Port80 Software:  BUY w3compiler to remove this comment from your optimized files at www.w3compiler.com!

function TextToImage() {

    $('.text-to-image').each(function(i) {
        var txt = $(this).html().toLowerCase();
        txt = txt.replace(/^\s+|\s+$/g, "");
        txt = txt.replace(/ /ig, '-').replace(/&/ig, '').replace(/\?/ig, '');
        txt = 'tti-' + txt + '.png';
        $(this).html('<img src="images/' + txt + '"  border=\"0\"/>');
    });
}


function TextToImageJPG() {

    $('.text-to-jpg').each(function(i) {
        var txt = $(this).html().toLowerCase();
        txt = txt.replace(/^\s+|\s+$/g, "");
        txt = txt.replace(/ /ig, '-').replace(/&/ig, '').replace(/\?/ig, '');
        txt = 'tti-' + txt + '.jpg';
        $(this).html('<img src="templates/adms/images/' + txt + '"  border=\"0\"/>');
    });
}
$(document).ready(TextToImage);
$(document).ready(TextToImageJPG);  