String.prototype.replaceAll = function(de, para){
    var str = this;
    var pos = str.indexOf(de);
    while (pos > -1){
		str = str.replace(de, para);
		pos = str.indexOf(de);
	}
    return (str);
};

$('#formIdioma').ready(function() {
	var idiomaSelecionado = $("input[name='hiddenIdiomaSelecionado']").val();
	var idiomasExibidos = $('li.lingua');
	for (var i in idiomasExibidos) {
		if ($.isNumeric(i)) {
			var liExibido = idiomasExibidos[i];
			if (liExibido.id == idiomaSelecionado) {
				$(liExibido).remove();
			}
		}
	}
});