var choix=0;var current=-1;var precedent=-1;var intab=0;var mth1;var mth2;var mth3;var mth4;var mth5;var mth6;var mth7;var mth8;var mth9;var mtha;var mthb;var mthc;var mthd;var mthe;var mthf;var mthg;var mthh;var ot1;var selmot1;var selmot2;var selmot3;var selmot4;var selmot5;var selmot6;var selmot7;function image_sel(i){document.getElementById('int_lng_'+i.toString()).style.backgroundColor="#ffffff";current=i;if(current!=precedent){if(precedent!=-1){if(precedent!=choix){document.getElementById('int_lng_'+precedent.toString()).style.backgroundColor="#f13f43"}else{document.getElementById('int_lng_'+precedent.toString()).style.backgroundColor="#00ff00"}}}}function image_desel(i){precedent=i}function in_tab(){intab=1}function out_tab(){if(precedent!=choix){document.getElementById('int_lng_'+precedent.toString()).style.backgroundColor="#f13f43"}else{document.getElementById('int_lng_'+precedent.toString()).style.backgroundColor="#00ff00"}intab=0}function chchoix(val){if(val!=choix){document.getElementById('int_lng_'+choix.toString()).style.backgroundColor="#f13f43";document.getElementById('int_lng_'+val.toString()).style.backgroundColor="#00ff00";choix=val}choixlng(choix);affiche_titres();return false}function init_lg(){if(window.opener!=null){chchoix(opener.langue_courante);choix=opener.langue_courante}else{choix=0;choixlng(0)}affiche_titres()}function affiche_titres(){parent.frames[0].document.getElementById("menu1").firstChild.nodeValue=ot1;parent.frames[0].document.getElementById("th1").firstChild.nodeValue=mth1;parent.frames[0].document.getElementById("th2").firstChild.nodeValue=mth2;parent.frames[0].document.getElementById("th3").firstChild.nodeValue=mth3;parent.frames[0].document.getElementById("th4").firstChild.nodeValue=mth4;parent.frames[0].document.getElementById("th5").firstChild.nodeValue=mth5;parent.frames[0].document.getElementById("th6").firstChild.nodeValue=mth6;parent.frames[0].document.getElementById("th7").firstChild.nodeValue=mth7;parent.frames[0].document.getElementById("th8").firstChild.nodeValue=mth8;parent.frames[0].document.getElementById("th9").firstChild.nodeValue=mth9;parent.frames[0].document.getElementById("tha").firstChild.nodeValue=mtha;parent.frames[0].document.getElementById("thb").firstChild.nodeValue=mthb;parent.frames[0].document.getElementById("thc").firstChild.nodeValue=mthc;parent.frames[0].document.getElementById("thd").firstChild.nodeValue=mthd;parent.frames[0].document.getElementById("the").firstChild.nodeValue=mthe;parent.frames[0].document.getElementById("thf").firstChild.nodeValue=mthf;parent.frames[0].document.getElementById("thg").firstChild.nodeValue=mthg;parent.frames[0].document.getElementById("thh").firstChild.nodeValue=mthh;if(parent.frames[1].document.getElementById("th1")){parent.frames[1].document.getElementById("th1").firstChild.nodeValue=mth1;parent.frames[1].document.getElementById("th2").firstChild.nodeValue=mth2;parent.frames[1].document.getElementById("th3").firstChild.nodeValue=mth3;parent.frames[1].document.getElementById("th4").firstChild.nodeValue=mth4;parent.frames[1].document.getElementById("th5").firstChild.nodeValue=mth5;parent.frames[1].document.getElementById("th6").firstChild.nodeValue=mth6;parent.frames[1].document.getElementById("th7").firstChild.nodeValue=mth7;parent.frames[1].document.getElementById("th8").firstChild.nodeValue=mth8;parent.frames[1].document.getElementById("th9").firstChild.nodeValue=mth9;parent.frames[1].document.getElementById("tha").firstChild.nodeValue=mtha;parent.frames[1].document.getElementById("thb").firstChild.nodeValue=mthb;parent.frames[1].document.getElementById("thc").firstChild.nodeValue=mthc;parent.frames[1].document.getElementById("thd").firstChild.nodeValue=mthd;parent.frames[1].document.getElementById("the").firstChild.nodeValue=mthe;parent.frames[1].document.getElementById("thf").firstChild.nodeValue=mthf;parent.frames[1].document.getElementById("thg").firstChild.nodeValue=mthg;parent.frames[1].document.getElementById("thh").firstChild.nodeValue=mthh}parent.frames[0].document.getElementById("choix").options[0].firstChild.nodeValue=selmot1;parent.frames[0].document.getElementById("choix").options[1].firstChild.nodeValue=selmot2;parent.frames[0].document.getElementById("choix").options[2].firstChild.nodeValue=selmot3;parent.frames[0].document.getElementById("choix").options[3].firstChild.nodeValue=selmot4;parent.frames[0].document.getElementById("choix").options[4].firstChild.nodeValue=selmot5;parent.frames[0].document.getElementById("choix").options[5].firstChild.nodeValue=selmot6;parent.frames[0].document.getElementById("choix").options[6].firstChild.nodeValue=selmot7}function choixlng(val){if(val==0){ot1='Choix équipement : ';mth1='nom';mth2='image';mth3='niveau';mth4='For';mth5='%_for';mth6='Déf';mth7='%_déf';mth8='Dex';mth9='End';mtha='Cha';mthb='Doubl';mthc='Touch';mthd='Esqui';mthe='Bloqu';mthf='DegAr';mthg='Prix';mthh='Pierres';selmot1='Armes';selmot2='Casques';selmot3='Armures';selmot4='Bijoux';selmot5='Gants';selmot6='Bottes';selmot7='Boucliers'}if(val==1){ot1='Choice equipment : ';mth1='name';mth2='screen';mth3='level';mth4='For';mth5='%_for';mth6='Def';mth7='%_def';mth8='Dex';mth9='End';mtha='Cha';mthb='Doubl';mthc='Hit';mthd='Evas';mthe='Block';mthf='Damage';mthg='Price';mthh='Stones';selmot1='Weapons';selmot2='Helmets';selmot3='Armors';selmot4='Items';selmot5='Gloves';selmot6='Boots';selmot7='Shields'}if(val==2){ot1="Scelta dell'elenco di oggetti : ";mth1='nome';mth2='illustrazione';mth3='livello';mth4='For';mth5='%_for';mth6='Dif';mth7='%_dif';mth8='Abil';mth9='Res';mtha='Car';mthb='Rad';mthc='Toc';mthd='Schi';mthe='Bloc';mthf='Danni';mthg='Prezzpo';mthh='Pietre';selmot1='Armi';selmot2='Elmi';selmot3='Armature';selmot4='Oggetti';selmot5='Guanti';selmot6='Stivali';selmot7='Scudi'}if(val==3){ot1='Auswahl Ausrüstung : ';mth1='name';mth2='bild';mth3='stufe';mth4='Kra';mth5='%_kra';mth6='Ver';mth7='%_ver';mth8='Ges';mth9='Aus';mtha='Cha';mthb='Dop';mthc='Tref';mthd='Ausw';mthe='Block';mthf='DWaff';mthg='Preis';mthh='Steines';selmot1='Walfen';selmot2='Helme';selmot3='Rüstungen';selmot4='Gegenstände';selmot5='Handschuhe';selmot6='Stiefel';selmot7='Schilde'}if(val==4){ot1='Elección de las listas : ';mth1='nombre';mth2='imágenes';mth3='nivel';mth4='Fue';mth5='%_fue';mth6='Def';mth7='%_def';mth8='Des';mth9='Res';mtha='Car';mthb='Doblo';mthc='Alca';mthd='Finta';mthe='Bloq';mthf='Damage';mthg='Precio';mthh='Piedras';selmot1='Armas';selmot2='Cascos';selmot3='Armaduras';selmot4='Articulos';selmot5='Guantes';selmot6='Botas';selmot7='Escudos'}if(val==5){ot1='Избери Екипировка : ';mth1='Име';mth2='Изображение';mth3='Ниво';mth4='Сила';mth5='%_Сила';mth6='Защ';mth7='%_Защ';mth8='Лов';mth9='Изд';mtha='Хар';mthb='Двоен';mthc='Шанс за удар';mthd='Шанс за блок';mthe='Блокиран удар';mthf='Щета на оръжие';mthg='Цена';mthh='Адски Камани';selmot1='Оръжия';selmot2='Шлемове';selmot3='Брони';selmot4='Предмети';selmot5='Ръкавици';selmot6='Ботуши';selmot7='Щитове'}}