document.write(""); var defaultvalue="wordsent"; var defaultsurvive=360000000; document.write(""); var readid=null; var restorehtml=null; var newhtml=""; var oldwordhl=null; var oldsenthl=null; var playeropen=false; var thetext = { es_es: ["Descargar mp3", "Cerrar reproductor", "Configuración", "Configuración", "Palabra y frase", "Solo frase", "Solo palabra", "Sin Resaltar", "reproducir", "pausa", "aturar", "control%2520de%2520volumen"], ca_es: ["Descarregar mp3", "Tancar reproductor", "Configuració", "Configuració", "Paraula i frase", "Només frase", "Només paraula", "Sense ressaltar", "reproduir", "pausa", "parar", "control%2520de%2520volum"], check: function(lang, num) { if(this[lang]) { return this[lang][num]; } else { return this["ca_es"][num]; } } } function rshlsetContent(thecontent) { newhtml+=thecontent; } function rshlsetId(theid) { readid=theid; } function rshlinit() { var x=null; if (readid!=null) { x=document.getElementById(readid); } if (x!=null) { restorehtml=x.innerHTML; x.innerHTML=newhtml; newhtml=""; } } function rshltidy() { var x=null; if (readid!=null) { x=document.getElementById(readid); } if (x!=null && restorehtml!=null) { x.innerHTML=restorehtml; restorehtml=null; readid=null; } } function rshlexit() { closepage('xpl'); } function rshlsync(type,id) { var newEl = document.getElementById("sync"+id); if (newEl && newEl.className=="sync_sent") { if (oldsenthl) { oldsenthl.className = 'sync_sent'; } oldsenthl=newEl; newEl.className = 'sync_sent_highlighted'; } else if (newEl && newEl.className=="sync_word") { if (oldwordhl) { oldwordhl.className = 'sync_word'; } oldwordhl=newEl; newEl.className = 'sync_word_highlighted'; } } function readpage(rscall,playerid,buttonid) { if(playeropen==true) { document.getElementById(buttonid).style.visibility = 'visible'; } else { document.getElementById(buttonid).style.visibility = 'hidden'; playeropen=true; rshltidy(); var thesync=loadSettings("ReadSpeakerHL"); if (thesync=="") thesync=defaultvalue; var audioformat="mp3"; if (thesync!='none') audioformat="swf"; origrscall=rscall; rscall=rscall+"&audioformat="+audioformat+"&sync="+thesync; newrscall=escape(rscall); tmp_array=rscall.match(/lang=[^&]+/gi); rs_lang = tmp_array[0].replace("lang=",""); the_player=""+thetext.check(rs_lang, 1)+""; the_player+="
"; the_player+=""; the_player+=""; the_player+=""; the_player+=""; the_player+=""; the_player+=""+thetext.check(rs_lang, 2)+""+thetext.check(rs_lang, 0)+""; the_html+=""; var x=document.getElementById(playerid); if (x) { x.innerHTML=the_player+the_html; } } } function closepage(playerid,buttonid) { var x=document.getElementById(playerid); if (x) { x.innerHTML=''; document.getElementById(buttonid).style.visibility = 'visible'; playeropen=false; } rshltidy(); } function saveSettings(name, content, lifetime) { lifetime=parseInt(eval(lifetime)); if (lifetime+""=="NaN") { tmpdate=""; } else { var thedate = new Date(); thedate.setTime(thedate.getTime() + lifetime); thedate=thedate.toGMTString(); tmpdate="; expires="+thedate; } document.cookie=name+"="+escape(content)+tmpdate; } function loadSettings(ckname) { ckarr=document.cookie; cks=ckarr.split("; "); for (i=0;i"; thestring+="
  • "; thestring+="
  • "; thestring+="
  • "; thestring+="
  • "; var x=document.getElementById('controls'); if (x!=null) x.innerHTML=thestring; }