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><div align="left"><img src="templates/site/img/att/revelar.png" border="0" /></div></span>');
$('.tgl').css('display', 'none')
$('span', '#box-toggle').click(function() {
$(this).next().slideToggle('slow')
.siblings('.tgl:visible').slideToggle('fast');
// aqui começa o funcionamento do plugin
$(this).toggleText('Mais','Menos')
.siblings('span').next('.tgl:visible').prev()
.toggleText('Mais','Menos')
});
*/
})





