$.langp = 'fr';

function changelangp(newlang){ 
$.langp = newlang; 

if ($.langp == 'en') {
$("#autoecouter span").html("Listening ?");
$("#autolire span").html("Reading ?");
$("#autoconverser span").html("Spoken Interaction ?");
$("#autoexprimer span").html("Spoken Production ?");
$("#autoecrire span").html("Writing ?");
}

if ($.langp == 'fr') {
$("#autoecouter span").html("Ecouter ?");
$("#autolire span").html("Lire ?");
$("#autoconverser span").html("Prendre part à une conversation ?");
$("#autoexprimer span").html("S'exprimer oralement en continu ?");
$("#autoecrire span").html("Écrire ?");
}

if ($.langp == 'de') {
$("#autoecouter span").html("Hören ?");
$("#autolire span").html("Lesen ?");
$("#autoconverser span").html("An Gesprächen teilnehmen ?");
$("#autoexprimer span").html("Zusammen­hängendes Sprechen ?");
$("#autoecrire span").html("Schreiben ?");
}

if ($.langp == 'nl') {
$("#autoecouter span").html("Luisteren ?");
$("#autolire span").html("Lezen ?");
$("#autoconverser span").html("Spreken - Productie ?");
$("#autoexprimer span").html("Spreken - Interactie ?");
$("#autoecrire span").html("Schrijven ?");
}

if ($.langp == 'pt') {
$("#autoecouter span").html("Compreensão do oral ?");
$("#autolire span").html("Leitura ?");
$("#autoconverser span").html("Interacção oral ?");
$("#autoexprimer span").html("Produção oral ?");
$("#autoecrire span").html("Escrita ?");
}

}


function levels(topicz) {
         $.ajax({
              url: "http://www.prolingua.lu/js/cecr/" + $.langp + topicz + ".html",
              data: 'oo',
              cache: false,
              success: function(html) {
$("#selfevaluationtmp").html(html);
              }
            });
       };

function cliclevels(nom,valeur) {
$('#auto'+nom+' .nber').html(valeur);
$("select#"+nom+" option:selected").removeAttr("selected");
$("select#"+nom+" option[value='"+valeur+"']").attr("selected","selected");
$('#auto'+nom+' span').css("background-color","#04A1E6");$('#auto'+nom+' span').css("color","#ffffff");


$('#auto'+nom+' .nber').fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400);


};

