jQuery.fn.toggleText = function(a,b) {
    return   this.html(this.html().replace(new RegExp("("+a+"|"+b+")"),function(x){return(x==a)?b:a;}));
    }
    
    $(document).ready(function(){
    $('.tgl').before('<span>Logar no sistema <img src=imagens/seta.jpg border=0/></span>');
    $('.tgl').css('display', 'none')
    $('span', '#box-toggle').click(function() {
    $(this).next().slideToggle('fast')
    .siblings('.tgl:visible').slideToggle('fast');
    // aqui começa o funcionamento do plugin
    $(this).toggleText('Revelar','Esconder')
    .siblings('span').next('.tgl:visible').prev()
    .toggleText('Revelar','Esconder')
    });
})
