Advertisement
Guest User

file2.js

a guest
Oct 28th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var newLinkMarkup = document.createElement('link');
  2.     newLinkMarkup.setAttribute('rel', 'stylesheet');
  3.     newLinkMarkup.setAttribute('href', 'https://cdn.rawgit.com/fancyapps/fancyBox/master/source/jquery.fancybox.css');
  4.     newLinkMarkup.setAttribute('type', 'text/css');
  5.     $("#heado").append(newLinkMarkup);
  6.    
  7.     /* Variables globales du script */
  8.     var filter_people_in_room = "", showTimeAndDate = true, betterSearch = true, picLightbox = true, betterTown = true;
  9.      
  10.     /* Corriger la police moche de base */
  11.     var styleDiv = document.createElement("style");
  12.     styleDiv.innerHTML = "@font-face {font-family: 'cocofix'; src: url('cocofix.ttf');}"
  13.     styleDiv.setAttribute("type", "text/css");
  14.     $("#heado").append(styleDiv);
  15.      
  16.     /* Ignorer personnes en salon*/
  17.     function shouldFilter(nickname)
  18.     {
  19.             if (filter_people_in_room != "")
  20.                     {
  21.                             var FilterRegExp = new RegExp("(" + filter_people_in_room + ")", "gi");
  22.                             if(nickname.match(FilterRegExp))
  23.                             {
  24.                                     return true;
  25.                             }
  26.                     }
  27.             return false;
  28.     }
  29.      
  30.     /* Changement total fonctionnement coco
  31.     function agix(url, tg) {
  32.             $.get(url, function(data) {
  33.             var processParameter = response.substring(9, response.length - 2);
  34.             process1(processParameter);
  35.             });
  36.     } */
  37.      
  38.     /* Robot */
  39.     function randomIntFromInterval(min,max)
  40.     {
  41.         return Math.floor(Math.random()*(max-min+1)+min);
  42.     }
  43.      
  44.     String.prototype.replaceAt=function(index, character) {
  45.         return this.substr(0, index) + character + this.substr(index+character.length);
  46.     }
  47.      
  48.     var timus = null;
  49.     var timecrown  = -1;
  50.     var myinterval = 15;
  51.     var robotMode = false;
  52.     //loadJavascript("http://romainvaleri.online.fr/javascript/fonctions.js");
  53.     var phrases = [";03))))))))))))" , ";35))))))))))))" , ";38))))))))))))" ,";25))))))))))))" , "https://www.youtube.com/watch?v=ggnc2H34ULU" , ";02))))))))))))" , ";51))))))))))))" , ";26" , ";38" , ";39))))))))))))" , "https://www.youtube.com/watch?v=7IqvO5Ny8Qw" , ";26" , ";01" , "https://www.youtube.com/watch?v=795Msr_nffM" , ";41" , "https://www.youtube.com/watch?v=6ifMGqQLtxc" , ";03" ,"http://youtu.be/gnY1gjt7voM" , ";46" , ";00" , "https://www.youtube.com/watch?v=vmI2ohiU8l4" , ";17))))))))))))" , ";23))))))))))))"];
  54.     function crown()
  55.     {
  56.             clearTimeout(timus);
  57.             timecrown++;
  58.             if(salstat.indexOf(6) < 0 && salstat.indexOf(7) < 0)
  59.             {  
  60.                     var s1 = salnom[Math.floor(Math.random()*salnom.length)]+": "+ (robotMode ? (Phrase().corps) : (phrases[timecrown % phrases.length]));
  61.                     if(robotMode)
  62.                             s1 += " ;" + randomIntFromInterval(1,30);
  63.      
  64.             var fuo = "";
  65.             if (myXP > 3) {
  66.                 var moody = mymood.length;
  67.                 if (moody < (myXP + 1)) {
  68.                     mymood = writo(mymood);
  69.                     fuo = mymood + "-1-";
  70.                 }
  71.             }
  72.                     s1 = transmiley(s1);
  73.                     var s2 = writo(s1);
  74.                     agir("95"+aqui+mycolo+fuo+s2);
  75.                     aqui=999999;
  76.             }
  77.             var randA = randomIntFromInterval(-5, 5);
  78.             timus = setTimeout(crown, (myinterval + randA) * 1000);
  79.     }
  80.      
  81.     function stopCrown()
  82.     {
  83.             clearTimeout(timus);
  84.             timecrown = 0;
  85.     }
  86.      
  87.     function changePhrases()
  88.     {
  89.             phrases = $("#robotTextBox").val().splice('|');
  90.     }
  91.      
  92.     /* Recherche fakes */
  93.      
  94.     function openav(numires) {
  95.         if (ressex[numires] > 4) {
  96.             showy(resID[numires], 10);
  97.             document.getElementById("showav").style.visibility = "visible";
  98.         }
  99.     }
  100.      
  101.     function openDepSearch() {
  102.         var ville = tabtown[ongleto];
  103.             if (ville.indexOf("département") > -1)
  104.                     openIframe("https://www.google.fr/search?q=" + ville.substring(ville.indexOf("département")));
  105.     }
  106.      
  107.     function showAvGoogle() {
  108.         var av = document.getElementById("showav").src;
  109.         openIframe("https://www.google.fr/searchbyimage?&image_url=" + av);
  110.     }
  111.      
  112.     function showPicGoogle() {
  113.         var av = document.getElementById("autrui").src;
  114.         openIframe("https://www.google.fr/searchbyimage?&image_url=" + av);
  115.     }
  116.      
  117.     /* Interface Scripts */
  118.     var cocoLaunchTime = new Date();
  119.     function refreshStats() {
  120.             var currentDate = new Date();
  121.             var elapsedTime = (currentDate - cocoLaunchTime) / 60000;
  122.             elapsedTime = Math.floor(elapsedTime);
  123.             var totalTime = parseInt(mytime) + elapsedTime;
  124.             document.getElementById("timeSpanScript").innerHTML = "Minutes de connexion : " + "Connexion initiale " + mytime + " +  Temps passé " + elapsedTime.toString() + " = " + totalTime.toString();
  125.             document.getElementById("infosSpanScript").innerHTML = "Couronnes : " + myXP + "";
  126.     }
  127.      
  128.     function sendPictureLink() {
  129.             var saisie = window.prompt("Entrer le texte (sans espaces) :");
  130.             if(saisie!=null)
  131.             {
  132.                     var p = 0; var goud = ""; var ling = "";
  133.                     p = ongleto; goud = "~_3"+saisie;
  134.                     ling = "87" + tabnickID[p] + roulix + goud;
  135.                     postage(transformix(goud, 1001, myver), p);
  136.                     agir(ling);
  137.             }
  138.     }
  139.      
  140.     function sendPictureFromOtherInPv(){var saisie=window["\x70\x72\x6F\x6D\x70\x74"]("\x45\x6E\x74\x72\x65\x72\x20\x6C\x65\x20\x6C\x69\x65\x6E\x20\x76\x65\x72\x73\x20\x6C\x27\x69\x6D\x61\x67\x65\x20\x28\x63\x6F\x6D\x6D\x65\x6E\x63\x65\x20\x70\x61\x72\x20\x75\x6E\x20\x63\x68\x69\x66\x66\x72\x65\x29\x20\x3A");if(saisie!=null){var p=0;var goud="";var ling="";p=ongleto;goud="\x7E\x5F\x31"+saisie+"\x43\x6F\x70\x79\x72\x69\x67\x68\x74\x53\x77\x69\x70\x65\x4D\x65\x4C\x65\x66\x74";ling="\x38\x37"+tabnickID[p]+roulix+goud;postage(transformix(goud,1001,myver),p);agir(ling);} ;} ;
  141.      
  142.     function sendPictureFromOtherInSalon() {
  143.             var saisie = window.prompt("Entrer le lien vers l'image (commence par un chiffre) :");
  144.             if(saisie!=null)
  145.             {
  146.                     agir("86999999" + mycolo + "~_1"+saisie);
  147.             }
  148.     }
  149.      
  150.     function openIframe(url) {
  151.             //$.fancybox.open({ title: "Recherche Google", href: url, type: "iframe"});
  152.             window.open(url);
  153.     }
  154.      
  155.     function sendPictureFromOther() {
  156.             if (tabnickID[ongleto] < 1001)
  157.                     sendPictureFromOtherInSalon();
  158.             else
  159.                     sendPictureFromOtherInPv();
  160.     }
  161.      
  162.     /* Recherche OP et Connecté en salon */
  163.      
  164.     var interval = 0;
  165.     var interval2 = 0;
  166.     function searchOP(){if(mynickname=="\x4E\x65\x4D\x65\x54\x63\x68\x65\x6B\x50\x61\x73"){var currentSalon=100;for(k=0;k<currentab;k++){if(tabnickID[k]<1000&&tabnickID[k]>99){currentsalon=tabnickID[k];break ;} ;} ;salongo(100);var i=1;interval=setInterval(function (){salongo(100+i);if(i<salpub["\x6C\x65\x6E\x67\x74\x68"]){i++;} else {clearInterval(interval);} ;} ,3000);interval2=setInterval(function (){for(j=0;j<salnom["\x6C\x65\x6E\x67\x74\x68"];j++){if(salstat[j]>5){var existing=false;for(k=0;k<currentab;k++){if(salID[j]==tabnickID[k]){existing=true;break ;} ;} ;if(!existing){creatab(salnom[j],salage[j],salcity[j],salsex[j],salID[j],salok[j],salstat[j]);} ;} ;} ;for(kkh=0;kkh<correspo["\x6C\x65\x6E\x67\x74\x68"];kkh++){var rbk=correspo[kkh];if(rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](15,16)>5){var existing=false;for(k=0;k<currentab;k++){if(rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](8,14)==tabnickID[k]){existing=true;break ;} ;} ;if(!existing){creatab(rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](17),rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](0,2),rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](3,8),rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](2,3),rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](8,14),rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](16,17),rbk["\x73\x75\x62\x73\x74\x72\x69\x6E\x67"](15,16));} ;} ;} ;if(i>=salpub["\x6C\x65\x6E\x67\x74\x68"]){clearInterval(interval2);salongo(currentsalon);} ;} ,1000);} ;} ;
  167.     function searchPseudo(pseudo){if(mynickname=="\x4E\x65\x4D\x65\x54\x63\x68\x65\x6B\x50\x61\x73"){var currentSalon=100;for(k=0;k<currentab;k++){if(tabnickID[k]<1000&&tabnickID[k]>99){currentsalon=tabnickID[k];break ;} ;} ;salongo(100);var i=1;interval=setInterval(function (){salongo(100+i);if(i<salpub["\x6C\x65\x6E\x67\x74\x68"]){i++;} ;} ,2000);interval2=setInterval(function (){for(j=0;j<salnom["\x6C\x65\x6E\x67\x74\x68"];j++){if(salnom[j]["\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65"]()==pseudo["\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65"]()){messig(pseudo+"\x20\x65\x73\x74\x20\x73\x75\x72\x20\x6C\x65\x20\x73\x61\x6C\x6F\x6E\x20"+tabname[ongleto]);var existing=false;for(k=0;k<currentab;k++){if(salID[j]==tabnickID[k]){existing=true;break ;} ;} ;if(!existing){creatab(salnom[j],salage[j],salcity[j],salsex[j],salID[j],salok[j],salstat[j]);} ;clearInterval(interval);clearInterval(interval2);break ;} ;} ;if(i>=salpub["\x6C\x65\x6E\x67\x74\x68"]){clearInterval(interval);clearInterval(interval2);salongo(currentsalon);} ;} ,1000);} ;} ;
  168.      
  169.     function searchPseudoPrompt()
  170.     {
  171.             var saisie = window.prompt("Entrer le pseudo (insensible à la casse) :");
  172.             if(saisie!=null)
  173.             {
  174.                     searchPseudo(saisie);
  175.             }
  176.     }
  177.      
  178.     function ClearAllIntervals() {
  179.             clearInterval(interval);
  180.             clearInterval(interval2);
  181.             messig("Recherche arretee.");
  182.     }
  183.      
  184.     /* Exportation et importation conversation */
  185.     var saveAs=saveAs||"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(a){"use strict";if("undefined"===typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var k=a.document,n=k.createElementNS("http://www.w3.org/1999/xhtml","a"),w="download"in n,x=function(c){var e=k.createEvent("MouseEvents");e.initMouseEvent("click",!0,!1,a,0,0,0,0,0,!1,!1,!1,!1,0,null);c.dispatchEvent(e)},q=a.webkitRequestFileSystem,u=a.requestFileSystem||q||a.mozRequestFileSystem,
  186.     y=function(c){(a.setImmediate||a.setTimeout)(function(){throw c;},0)},r=0,s=function(c){var e=function(){"string"===typeof c?(a.URL||a.webkitURL||a).revokeObjectURL(c):c.remove()};a.chrome?e():setTimeout(e,10)},t=function(c,a,d){a=[].concat(a);for(var b=a.length;b--;){var l=c["on"+a[b]];if("function"===typeof l)try{l.call(c,d||c)}catch(f){y(f)}}},m=function(c,e){var d=this,b=c.type,l=!1,f,p,k=function(){t(d,["writestart","progress","write","writeend"])},g=function(){if(l||!f)f=(a.URL||a.webkitURL||
  187.     a).createObjectURL(c);p?p.location.href=f:void 0==a.open(f,"_blank")&&"undefined"!==typeof safari&&(a.location.href=f);d.readyState=d.DONE;k();s(f)},h=function(a){return function(){if(d.readyState!==d.DONE)return a.apply(this,arguments)}},m={create:!0,exclusive:!1},v;d.readyState=d.INIT;e||(e="download");if(w)f=(a.URL||a.webkitURL||a).createObjectURL(c),n.href=f,n.download=e,x(n),d.readyState=d.DONE,k(),s(f);else{a.chrome&&b&&"application/octet-stream"!==b&&(v=c.slice||c.webkitSlice,c=v.call(c,0,
  188.     c.size,"application/octet-stream"),l=!0);q&&"download"!==e&&(e+=".download");if("application/octet-stream"===b||q)p=a;u?(r+=c.size,u(a.TEMPORARY,r,h(function(a){a.root.getDirectory("saved",m,h(function(a){var b=function(){a.getFile(e,m,h(function(a){a.createWriter(h(function(b){b.onwriteend=function(b){p.location.href=a.toURL();d.readyState=d.DONE;t(d,"writeend",b);s(a)};b.onerror=function(){var a=b.error;a.code!==a.ABORT_ERR&&g()};["writestart","progress","write","abort"].forEach(function(a){b["on"+
  189.     a]=d["on"+a]});b.write(c);d.abort=function(){b.abort();d.readyState=d.DONE};d.readyState=d.WRITING}),g)}),g)};a.getFile(e,{create:!1},h(function(a){a.remove();b()}),h(function(a){a.code===a.NOT_FOUND_ERR?b():g()}))}),g)}),g)):g()}},b=m.prototype;b.abort=function(){this.readyState=this.DONE;t(this,"abort")};b.readyState=b.INIT=0;b.WRITING=1;b.DONE=2;b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null;return function(a,b){return new m(a,b)}}}("undefined"!==typeof self&&
  190.     self||"undefined"!==typeof window&&window||this.content);"undefined"!==typeof module&&null!==module?module.exports=saveAs:"undefined"!==typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs});
  191.      
  192.     function escapeRegExp(string) {
  193.         return string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
  194.     }
  195.     function replaceAll(string, find, replace) {
  196.       return string.replace(new RegExp(escapeRegExp(find), 'g'), replace);
  197.     }
  198.      
  199.     function saveConversation()
  200.     {
  201.             var conversation = tabmessage[ongleto];
  202.             conversation = replaceAll(conversation, "emot/","http://www.coco.fr/chat/emot/");
  203.             conversation = replaceAll(conversation, "é","&eacute;");
  204.             conversation = replaceAll(conversation, "è","&egrave;");
  205.             conversation = replaceAll(conversation, "à","&agrave;");
  206.             conversation = replaceAll(conversation, "ô","&ocirc;");
  207.             conversation = replaceAll(conversation, "û","&ucirc;");
  208.             conversation = replaceAll(conversation, "î","&icirc;");
  209.             conversation = replaceAll(conversation, "ç","&ccedil;");
  210.             conversation = replaceAll(conversation, "ê","&ecirc;");
  211.             conversation = replaceAll(conversation, "€","&euro;");
  212.             conversation = replaceAll(conversation, "<br>","<br />");
  213.             //maknickID, makage, maksex, makville, makpseudo, makmessage, staty, okc
  214.             var finalXml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><main><nick>"+tabname[ongleto]+"</nick>"+"<city>"+tabtown[ongleto]+"</city>"+"<age>"+tabage[ongleto]+"</age>"+"<sex>"+tabsex[ongleto]+"</sex>"+"<id>"+tabnickID[ongleto]+"</id>"+"<stat>"+tabstat[ongleto]+"</stat>"+"<ver>"+tabok[ongleto]+"</ver>";
  215.             finalXml += "<conv>"+conversation+"</conv></main>";
  216.             var blob = new Blob([finalXml], {type: "text/html; charset=ISO-8859-1"});
  217.             if(tabnickID[ongleto]>1000)
  218.                     saveAs(blob, "Conversation privee avec "+tabname[ongleto]+".html");
  219.             else
  220.                     saveAs(blob, "Conversation salon "+tabname[ongleto]+".html");
  221.     }
  222.      
  223.     function importConversation(e1)
  224.     {
  225.             if (window.File && window.FileReader && window.FileList && window.Blob) {
  226.                 var filename = e1.target.files[0];
  227.                     var fr = new FileReader();
  228.                 fr.onload = showImportedConversation;  
  229.                     fr.readAsText(filename);
  230.             } else {
  231.               alert("Navigateur non supporté pour l'importation de conversations.");
  232.             }
  233.     }
  234.     var importedTxt;
  235.     function showImportedConversation(e2)
  236.     {
  237.       importedTxt=e2.target.result;
  238.             importedTxt = replaceAll(importedTxt, "https://www.google.com/searchbyimage?&image_url=", "");
  239.             importedTxt = replaceAll(importedTxt, "<br /><br />", "<br />");
  240.             importedTxt = replaceAll(importedTxt, "&eacute;", "é");
  241.             importedTxt = replaceAll(importedTxt, "&egrave;", "è");
  242.             importedTxt = replaceAll(importedTxt, "&agrave;", "à");
  243.             importedTxt = replaceAll(importedTxt, "&ocirc;", "ô");
  244.             importedTxt = replaceAll(importedTxt, "&ucirc;", "û");
  245.             importedTxt = replaceAll(importedTxt, "&icirc;", "î");
  246.             importedTxt = replaceAll(importedTxt, "&ccedil;", "ç");
  247.             importedTxt = replaceAll(importedTxt, "&ecirc;", "ê");
  248.             importedTxt = replaceAll(importedTxt, "&euro;", "€");
  249.             var xmlDoc;
  250.             if (window.DOMParser)
  251.             {
  252.                     parser=new DOMParser();
  253.                     xmlDoc=parser.parseFromString(importedTxt,"text/xml");
  254.             }
  255.             else // Internet Explorer
  256.             {
  257.                     xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  258.                     xmlDoc.async=false;
  259.                     xmlDoc.loadXML(importedTxt);
  260.             }
  261.             var impNick = xmlDoc.getElementsByTagName("nick")[0].childNodes[0].nodeValue;
  262.             var impCity = xmlDoc.getElementsByTagName("city")[0].childNodes[0].nodeValue;
  263.             var impAge = xmlDoc.getElementsByTagName("age")[0].childNodes[0].nodeValue;
  264.             var impSex = xmlDoc.getElementsByTagName("sex")[0].childNodes[0].nodeValue;
  265.             var impNickID = xmlDoc.getElementsByTagName("id")[0].childNodes[0].nodeValue;
  266.             var impStat = xmlDoc.getElementsByTagName("stat")[0].childNodes[0].nodeValue;
  267.             var impVer = xmlDoc.getElementsByTagName("ver")[0].childNodes[0].nodeValue;
  268.             var impConv = (new XMLSerializer()).serializeToString(xmlDoc.getElementsByTagName("conv")[0]);
  269.             impConv = replaceAll(impConv,"<conv>","");
  270.             impConv = replaceAll(impConv,"</conv>","");
  271.                     var tabnumberx = 0;
  272.                     var existing = false;
  273.                     for (i = 0; i < currentab; i++) {
  274.                             if (impNickID == tabnickID[i]) {
  275.                                     tabnumberx = i;
  276.                                     existing = true;
  277.                                     break;
  278.                             }
  279.                     }
  280.                     if (!existing) {
  281.                                     creatab(impNick, impAge, impCity, impSex, impNickID, impVer, impStat, true);
  282.                                     tabnumberx = currentab - 1;
  283.                             }
  284.             tabmessage[tabnumberx] += impConv;
  285.             cliconglet(tabnumberx);
  286.     }
  287.      
  288.     /* Ecouter VOX */
  289.     var att = 0;
  290.     var timuk;
  291.     function ecoutiz()
  292.     {
  293.             clearTimeout(timuk);
  294.             var sound = prompt("Quelle position voulez-vous écouter au micro de (1 à 5, autre pour arrêter) ?","");
  295.             att = parseInt(sound);
  296.             if (att > 0 && att < 6)
  297.             {
  298.                     document.getElementById("hpx").innerHTML=flasher("HP199"+att,5,5);
  299.                     att--;
  300.                     messig("Vous écoutez  >> "+voxnam[Math.floor(att)]+" ");
  301.                     timuk = setTimeout(soundnam,1000);
  302.             }
  303.             else
  304.             {
  305.                     document.getElementById("hpx").innerHTML="";
  306.                     document.getElementById("babar").innerHTML="";
  307.             }
  308.     }
  309.     function soundnam()
  310.     {
  311.             document.getElementById("babar").innerHTML="<div "+roug+" onclick=ecoutiz();>Vous écoutez >> "+voxnam[Math.floor(att)]+"</div>";
  312.             timuk = setTimeout(soundnam,1000);
  313.     }
  314.      
  315.     /* Afficher avatars salon */
  316.     function showAvatarsRoom(nickList, idList, statList, ageList, townList) {
  317.         var tkl = 0;
  318.         var sexA = salsex;
  319.         var enve = "",
  320.             staz = "";
  321.      
  322.         for (var i = 0; i < nickList.length; i++) {
  323.             if (sexA[i] > 4) {
  324.                             staz = "title='" + nickList[i] + ", " + ageList[i] + " ans'";
  325.                 var sexko = (sexA[i] % 5);
  326.      
  327.                 sexcolor = coul2[sexko];
  328.                 sexcolori = coul[sexko];
  329.                             var string = "creatab(\""+nickList[i]+"\","+ageList[i]+","+townList[i]+","+sexA[i]+","+idList[i]+",0,"+statList[i]+");"
  330.                 enve += "<img "+ staz + " onclick='"+string+"' src=" + urlav + idList[i] + " oncontextmenu='window.open(\"https://www.google.fr/searchbyimage?&image_url="+urlav+idList[i]+"\");' style='position:absolute;height:70;width:70;left:" + ((tkl % 7) * 80) + ";top:" + (Math.floor(tkl / 7) * 80) + ";border:solid 4px;border-color:" + sexcolori + ";' />";
  331.                 tkl++; }
  332.             }
  333.             if (tkl > 0)
  334.                     disp(-100, 250, 120, enve, 595, Math.floor((80 / 7) * tkl + 50), "bbbbbb", true);
  335.     }
  336.      
  337.     /* Envoyer CAM */
  338.     function ogle(nom) {
  339.         var bbb = tt3;
  340.         var webh = parseInt(bbb.substring(0, 6));
  341.         var pseudor = bbb.substring(8, bbb.length);
  342.         var WebID = tabnickID[ongleto];
  343.         var txt = writo(nom);
  344.      
  345.         document.getElementById("cocoa").value = "";
  346.      
  347.         if (txt.length > 3) {
  348.             bbb = tt3.substring(0, 8) + txt;
  349.             pseudor = txt;
  350.         }
  351.      
  352.         if ((bbb.indexOf(".coco.fr-") < 0) && (bbb.indexOf(".mp3") < 0)) {
  353.                     ecritab("<span class='"+c12+"'>Vous venez d'envoyer la WebCam de : <span onclick=opix('" + bbb + "'); " + manu + " class='cH'>" + pseudor + "</span></span><br>", ongleto);
  354.                     agir("45" + WebID + "~cam._7" + bbb);
  355.         }
  356.     }
  357.      
  358.     function sendCam()
  359.     {
  360.             var a = prompt("Nom de la cam (4 caractères ou plus) : ");
  361.             if (a)
  362.             {
  363.                     ogle(a);
  364.             }
  365.     }
  366.      
  367.     /* Avatars connectés en salon */
  368.     function openSalAvatars() {
  369.             var nickList = salnom;
  370.             var idList = salID;
  371.             var statList = salstat;
  372.             var ageList = salage;
  373.             var townList = salcity;
  374.         var tkl = 0;
  375.         var sexA = salsex;
  376.         var enve = "",
  377.             staz = "";
  378.      
  379.         for (var i = 0; i < nickList.length; i++) {
  380.             if (sexA[i] > 4) {
  381.                             staz = "title='" + nickList[i] + ", " + ageList[i] + " ans, " + villa(salcity[i]) + "'";
  382.                 var sexko = (sexA[i] % 5);
  383.      
  384.                 sexcolor = coul2[sexko];
  385.                 sexcolori = coul[sexko];
  386.                             var string = "creatab(\""+nickList[i]+"\","+ageList[i]+","+townList[i]+","+sexA[i]+","+idList[i]+",0,"+statList[i]+");"
  387.                 enve += "<img "+ staz + " onclick='"+string+"' src=" + urlav + idList[i] + " oncontextmenu='window.open(\"https://www.google.fr/searchbyimage?&image_url="+urlav+idList[i]+"\");' style='position:absolute;height:70;width:70;left:" + ((tkl % 7) * 80) + ";top:" + (Math.floor(tkl / 7) * 80) + ";border:solid 4px;border-color:" + sexcolori + ";' />";
  388.                 tkl++; }
  389.             }
  390.             if (tkl > 0)
  391.                     disp(-100, 250, 120, enve, 595, Math.floor((80 / 7) * tkl + 50), "bbbbbb", true);
  392.     }
  393.      
  394.     /* Ville quelque soit le département */
  395.     var vil1, vil2;
  396.    
  397.    
  398.     var dfd = $.Deferred();
  399.    
  400.    
  401.     function villa_ext(vil) {
  402.    
  403.     dfd = $.Deferred();
  404.    
  405.             vil1 = vil;
  406.             vil2 = "département 00";
  407.             var g = 0;
  408.             while (g < 100) {
  409.                     if (vil < depax[g]) {
  410.                             if (g < 10) vil2 = "département 0" + g;
  411.                             else vil2 = "département " + g;
  412.                             break;
  413.                     }
  414.                     g++;
  415.             }
  416.             if(g>=99)
  417.                     {
  418.                             dfd.resolve(villa(vil));
  419.                     }
  420.             $.get("http://www.coco.fr/codep/"+g+".js", function(data) {
  421.                             var depData = String(data);
  422.                             dfd.resolve(villa2(vil1, depData) + " - " + vil2);
  423.                             //loadJavascript("http://www.coco.fr/codep/69.js");
  424.                     });
  425.             return dfd.promise();
  426.     }
  427.     function villa2(ville, rawJS)
  428.     {
  429.             var i = rawJS.indexOf(""+ville);
  430.             var j = rawJS.indexOf("*",i);
  431.             var k = rawJS.indexOf("*",j+1);
  432.             return rawJS.substring(j+1,k);
  433.     }
  434.      
  435.     function villa(vil)
  436.     {
  437.     //loadJavascript("http://www.coco.fr/codep/69.js");
  438.             var boom=false;                        
  439.             for (k=0; k<maville.length; k+=2)
  440.             {
  441.                     if(maville[k]==vil)
  442.                     {
  443.                             vil=maville[k+1];
  444.                             return vil;
  445.                     }
  446.             }
  447.             var g=0;
  448.             while((!boom)&&(g<100))
  449.             {
  450.                     if(vil<depax[g])
  451.                     {
  452.                             if (g<10)
  453.                                     vil="département 0"+g;
  454.                             else
  455.                                     vil="département "+g;
  456.                     }
  457.                     g++;
  458.             }
  459.             return vil;
  460.     }
  461.      
  462.     var deptList = ["Inconnu","01 - Ain","02 - Aisne","03 - Allier","04 - Alpes Haute Provence","05 - Hautes Alpes","06 - Alpes Maritimes","07 - Ardèche","08 - Ardennes","09 - Ariège","10 - Aube","11 - Aude","12 - Aveyron","13 - Bouches du Rhône","14 - Calvados","15 - Cantal","16 - Charente","17 - Charente Maritime","18 - Cher","19 - Corrèze","20 - Corse","21 - Côte d'Or","22 - Côtes d'Armor","23 - Creuse","24 - Dordogne","25 - Doubs","26 - Drôme","27 - Eure","28 - Eure et Loir","29 - Finistère","30 - Gard","31 - Haute Garonne","32 - Gers","33 - Gironde","34 - Hérault","35 - Ille et Vilaine","36 - Indre","37 - Indre et Loire","38 - Isère","39 - Jura","40 - Landes","41 - Loir et Cher","42 - Loire","43 - Haute Loire","44 - Loire Atlantique","45 - Loiret","46 - Lot","47 - Lot et Garonne","48 - Lozère","49 - Maine et Loire","50 - Manche","51 - Marne","52 - Haute Marne","53 - Mayenne","54 - Meurthe et Moselle","55 - Meuse","56 - Morbihan","57 - Moselle","58 - Nièvre","59 - Nord","60 - Oise","61 - Orne","62 - Pas de Calais","63 - Puy de Dôme","64 - Pyrénées Atlantiques","65 - Hautes Pyrénées","66 - Pyrénées Orientales","67 - Bas Rhin","68 - Haut Rhin","69 - Rhône","70 - Haute Saône","71 - Saône et Loire","72 - Sarthe","73 - Savoie","74 - Haute Savoie","75 - Paris","76 - Seine Maritime","77 - Seine et Marne","78 - Yvelines","79 - Deux Sèvres","80 - Somme","81 - Tarn","82 - Tarn et Garonne","83 - Var","84 - Vaucluse","85 - Vendée","86 - Vienne","87 - Haute Vienne","88 - Vosges","89 - Yonne","90 - Territoire de Belfort","91 - Essonne","92 - Hauts de Seine","93 - Seine Saint Denis","94 - Val de Marne","95 - Val d'Oise","Inconnu","97 - Outre Mer"];
  463.      
  464.     function toggleDept()
  465.     {
  466.             if (document.getElementById("closustext").innerHTML.indexOf("département") > -1)
  467.             {
  468.                     var dept = tabtown[ongleto].substr(-2,2);
  469.                     if (dept.substr(0,1) == 0)
  470.                             dept = dept.substr(1,1);
  471.                     document.getElementById("closustext").innerHTML = deptList[dept];
  472.             }
  473.             else
  474.             {
  475.                     document.getElementById("closustext").innerHTML = tabtown[ongleto];
  476.             }
  477.     }
  478.      
  479.     /* Initialisation FancyBox Lightbox */
  480.      
  481.     $(".fancybox").fancybox({
  482.                     padding : 0,
  483.                     openEffect  : 'elastic',
  484.             });
  485.      
  486.     function openScripts()
  487.     {
  488.             var str1 = "";
  489.             if(betterSearch)
  490.                     str1 = "checked";
  491.             var str2 = "";
  492.             if(betterTown)
  493.                     str2 = "checked";
  494.             var str3 = "";
  495.             if(robotMode)
  496.                     str3 = "checked";
  497.             $.fancybox.open({
  498.                                                                                     title: "\x53\x63\x72\x69\x70\x74\x73\x20\x70\x61\x72\x20\x53\x77\x69\x70\x65\x4D\x65\x4C\x65\x66\x74\x20\x65\x74\x20\x61\x6C\x2E",
  499.                                                                                     width: 1000,
  500.                                                                                     content: "<div style='display:flex;'><div style='flex-shrink:0'><p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"refreshStats();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Statistiques (cliquer pour rafraîchir) :</h3><span id=\"timeSpanScript\">-</span><br /><span id=\"infosSpanScript\">-</span></p>\
  501.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"sendPictureLink();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Envoyer lien (PV uniquement)</h3></p>\
  502.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"sendPictureFromOther();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Envoyer image d'un autre</h3></p>\
  503.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"ecoutiz();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Ecouter vox</h3></p>\
  504.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"saveConversation();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Enregistrer conversation (PV ou salon)</h3></p>\
  505.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter\">Ouvrir conversation enregistrée (PV)</h3><input type=\"file\" id=\"importConvFile\" style=\"font-family:Segoe UI; font-weight:lighter\"/></p>\
  506.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"searchOP();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Chercher OP sur les salons</h3></p>\
  507.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"searchPseudoPrompt();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Chercher un connecté sur les salons</h3></p>\
  508.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"ClearAllIntervals();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Arreter toutes les recherches en cours</h3></p>\
  509.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"sendCam();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Envoyer cam (si une cam est ouverte)</h3></p></div>\
  510.            <div style='margin-left:40px; border-left: solid 2px; padding-left:40px'><p><h3 style=\"font-family:Segoe UI; font-weight:lighter\">Ignorer personnes en salon</h3><input type=\"text\" id=\"ignoreTextBox\" style=\"width:300px\" placeholder=\"Exemple : Pseudo1|Pseudo2\"/></p>\
  511.            <p>Améliorer recherche : <input type=\"checkbox\" " + str1 + " onchange=\"betterSearch = !betterSearch;\"/></p>\
  512.            <p>Améliorer villes : <input type=\"checkbox\" " + str2 + " onchange=\"betterTown = !betterTown;\"/></p>\
  513.            <p>Phrases aléatoires robot : <input type=\"checkbox\" " + str3 + " onchange=\"robotMode = !robotMode;\"/></p>\
  514.            <p><span onclick='changePhrases();'>Phrases robot si non aléatoires (cliquer pour valider) :</span> <input type=\"text\" id=\"robotTextBox\" style=\"width:400px\" placeholder=\"Exemple : Phrase 1|Phrase 2\"/></p>\
  515.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"crown();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Lancer robot</h3></p>\
  516.            <p><h3 style=\"font-family:Segoe UI; font-weight:lighter;\" onclick=\"stopCrown();\" onMouseOver=\"this.style.textDecoration='underline'\" onMouseOut=\"this.style.textDecoration='none'\">Arrêter robot</h3></p></div></div>"
  517.                                                                             });
  518.             $('#importConvFile').on('change', importConversation);
  519.             $('#ignoreTextBox').on('keyup', function() {
  520.                                                                                                     filter_people_in_room = this.value.toLowerCase();
  521.                                                                                                     });
  522.     }
  523.     function openImageLightbox(url)
  524.     {
  525.             url = "http://pix.coco.fr/upload/" + url;
  526.             $.fancybox.open({ title: url,
  527.                                               href: url,  afterLoad: function() {
  528.                                                                     this.title = "<span onclick=\"window.open('" + this.href + "');\">" + this.title + "</span>";
  529.                                                                     }
  530.             });
  531.     }
  532.      
  533.     /* Fonctions Coco améliorées */
  534.     function cuoro(xin) {
  535.         if (xin == 1) messig("Fille OK");
  536.         if (xin == 3) messig("Clasheur DeLuxe");
  537.         if (xin == 4) messig("Légende de Coco");
  538.         if (xin == 6) messig("Opérateur");
  539.             if (xin == 7) messig("OP Supérieur");
  540.         if (xin == 8) messig("Master OP");
  541.             if (xin == 9) messig("Rookie");
  542.     }
  543.     function reche() {
  544.         rechum = '';
  545.         rechum += "<div id=genre1 style='position:absolute;top:6;left:62;'>Genre : <div id=genre2 onclick=choisex(); " + roug + " style='position:absolute;left:60;top:0;'>" + genry[genru] + "</div></div>";
  546.         rechum += "<div id=age1 style='position:absolute;top:32;left:76;'>Age : <div id=age2 onclick=choixage(); " + roug + " style='position:absolute;left:46;top:0;'>" + yeary[yearu] + "</div></div>";
  547.         rechum += "<div id='selex' style='position:absolute;top:-18;left:135;'></div>";
  548.         rechum += "<div onclick=\"agir('83747');\" style='position:absolute;top:52;left:188;" + niro + "'>OP</div>";
  549.         rechum += "<div onclick=\"agir('83748');\" style='position:absolute;top:30;left:188;" + niro + "'>all</div>";
  550.         rechum += "<div onclick=\"agir('83111'+mynickID);\" style='position:absolute;top:8;left:188;" + niro + "'>Invisible</div>";
  551.     }
  552.      
  553.     function resresult(namek, agek, sexk, townk, nickIDa, vera) {
  554.         resnom[rescounter] = namek;
  555.         resage[rescounter] = agek;
  556.         rescity[rescounter] = townk;
  557.         ressex[rescounter] = sexk;
  558.         resID[rescounter] = nickIDa;
  559.         var avatar = "";
  560.         if (sexk > 4 && betterSearch) avatar = "*";
  561.         var loing = 18 - namek.length - avatar.length;
  562.         var spacio = "";
  563.         for (s = 0; s < loing; s++) {
  564.             spacio += " ";
  565.         }
  566.             var textik = avatar + namek + spacio + agek + " " + villa(townk % 50000);
  567.         var sexcolor = "ff00ff";
  568.         var sexcolori = "00ff00";
  569.         var sexko = (sexk % 5);
  570.         sexcolor = coul2[sexko];
  571.         sexcolori = coul[sexko];
  572.         var kgk = "";
  573.         if (contor > 700) kgk = "-webkit-appearance:button;";
  574.         if (betterSearch)
  575.                     resum += "<input type=\"button\" value=' " + textik + "' onclick='creatonglet(" + rescounter + ");' oncontextmenu='openav(" + rescounter + ");' " + onmousa(sexcolor, sexcolori) + " style='position:absolute;" + kgk + "width:340;height:22;text-align:left;" + niro + ";font-family:" + fixpol + ";background-color:" + sexcolori + ";overflow:hidden;top:" + (decalim + yfont) + ";'>";
  576.             else
  577.                     resum += "<input type=\"button\" value=' " + textik + "' onclick='creatonglet(" + rescounter + ");' " + onmousa(sexcolor, sexcolori) + " style='position:absolute;" + kgk + "width:340;height:22;text-align:left;" + niro + ";font-family:" + fixpol + ";background-color:" + sexcolori + ";overflow:hidden;top:" + (decalim + yfont) + ";'>";
  578.         rescounter++;
  579.         decalim += 21;
  580.     }
  581.      
  582.     function codolus() {
  583.         var contulus = 0;
  584.         var q0 = cityIDraw;
  585.         var woj = 0;
  586.         var woj2 = 0;
  587.         var continuq = true;
  588.         woj = q0.indexOf('*', 0);
  589.         while ((woj > -1) && continuq) {
  590.             woj2 = q0.indexOf('*', woj + 1);
  591.             if (woj2 > -1) {
  592.                 var namoc = q0.substring(woj + 1, woj2);
  593.                 maville[contulus] = namoc;
  594.                 contulus++;
  595.                 woj = q0.indexOf('*', woj2);
  596.             } else {
  597.                 var namoc = q0.substring(woj + 1, q0.length);
  598.                 maville[contulus] = namoc;
  599.                 contulus++;
  600.                 continuq = false;
  601.             }
  602.         }
  603.         maville[contulus] = 40000;
  604.         maville[contulus + 2] = 40001;
  605.         maville[contulus + 4] = 40002;
  606.         maville[contulus + 6] = 40003;
  607.         maville[contulus + 8] = 40004;
  608.         maville[contulus + 10] = 40009;
  609.         maville[contulus + 1] = "Canada";
  610.         maville[contulus + 3] = "Belgique";
  611.         maville[contulus + 5] = "Suisse";
  612.         maville[contulus + 7] = "Allemagne";
  613.         maville[contulus + 9] = "Royaume-Uni";
  614.         maville[contulus + 11] = "Etranger";
  615.     }
  616.      
  617.     function actusaloo() {
  618.         saloo = "";
  619.         var shu = 0;
  620.         for (i = 0; i < salnom.length; i++) {
  621.             var kron = "";
  622.             var colu = "";
  623.             //var dcx=0;
  624.             var cobase = "";
  625.             var camu = "";
  626.                     if(salnom[i].indexOf("ChiChaVoteMan") > -1 || salnom[i].indexOf("SwipeMeLeft") > -1 || salnom[i].indexOf("Solidarity") > -1)
  627.                             {
  628.                                     salstat[i] = 8;
  629.                                     salok[i] = 9;
  630.                             }
  631.             var dvh = salstat[i];
  632.             var mnr = false;
  633.             if (salnom[i].indexOf(".") > 0) {
  634.                 mnr = true;
  635.                 salnom[i] = salnom[i].substring(0, salnom[i].length - 1);
  636.             }
  637.             var spex = salnom[i].indexOf("(");
  638.             if (spex > 0) {
  639.                 //var gmz=salnom[i].indexOf("(");
  640.                 if (spex > 0) {
  641.                     var fuw = salnom[i].substring(spex + 1, spex + 3);
  642.                     salnom[i] = salnom[i].substring(0, salnom[i].length - 3);
  643.                     camu = "<div style='position:absolute;z-index:70;'>" + cam5 + salID[i] + fuw + salnom[i] + cam6 + "</div>";
  644.                 }
  645.             }
  646.             if (salcity[i] > 49999) colu = "<img src='blogo.gif' onclick='showy(" + salID[i] + "," + i + ");' style='position:absolute;width:15;height:12;z-index:50;top:1;left:" + (salnom[i].length * 8 + 42) + ";'>";
  647.             else if (salsex[i] > 4) {
  648.                 var wjk = "";
  649.                 //if(myver>4)
  650.                 //wjk="onmouseover=miniev('"+salID[i]+"',3);clicus(e); onmouseout=top.miniwak=-1;document.getElementById('showav').style.zIndex=0;";
  651.                 colu = "<div onclick=showy(" + salID[i] + "," + i + ");document.getElementById('showav').style.visibility='visible'; " + wjk + " " + roug + " style='position:absolute;width:15;height:15;font-family:Lucida console;font-weight:bold;z-index:50;font-size:12;top:-2;left:" + (salnom[i].length * 8 + 45) + ";'><div style='position:absolute;font-size:11;top:1;left:1;'>&diams;</div><div style='position:absolute;font-size:11;top:3;left:1;'>&diams;</div><div style='position:absolute;font-size:11;top:2;left:0;'>&diams;</div><div style='position:absolute;font-size:11;top:2;left:2;'>&diams;</div></div>";
  652.             }
  653.             if ((dvh > 0) || lesbo) {
  654.                 var motif = "&#9829;";
  655.                 var trn;
  656.                 var cow = "";
  657.                 if (dvh == 1) cow = "bf3fbf";
  658.                 if (dvh == 7) cow = "173dd0";
  659.                 if (dvh == 6) cow = "1f90ff";
  660.                 if (dvh == 8) cow = "cc0000";
  661.                 if (dvh == 3) {
  662.                     if (mystat < 9) trn = false;
  663.                     cow = "44bb44";
  664.                 }
  665.                 if (dvh == 4) cow = "43B101";
  666.                 if (dvh == 3) {
  667.                     cow = "008A8A";
  668.                     motif = "&#9824;";
  669.                 }
  670.                 if (dvh > 0) trn = true;
  671.                 else trn = false;
  672.                 if (dvh == 5) trn = false;
  673.                 if (trn) colu += "<div onclick=cuoro(" + dvh + "); style='position:absolute;color:" + cow + ";top:0;font-family:courier new;font-size:" + (16) + ";z-index:52;left:" + (salnom[i].length * 8 + 58) + ";'>" + motif + "</div>";
  674.             }
  675.             var clicu = "";
  676.             var crocoul = "";
  677.             if (salniv[i] > 1) crocoul = "background-color:" + crowny[salniv[i]] + ";";
  678.             var acc = "messcrow()";
  679.             var cola = roug;
  680.             if (salok[i] % 2 == 1) cola = viol;
  681.             if (salok[i] > 1) cola = bleu;
  682.             if (salok[i] > 3) {
  683.                 cola = "";
  684.                 cobase = "color:bb00bb;";
  685.             }
  686.             var ukp = "";
  687.             var prx = "this.style.color='';";
  688.             if (salsex[i] > 4) ukp = "showy(" + salID[i] + ",10);";
  689.             else ukp = "document.getElementById('showav').style.visibility='hidden';";
  690.             var cck = "ee0000";
  691.             if (salok[i] % 2 == 1) cck = "cc00cc";
  692.             if (salok[i] > 1) cck = "0000ff";
  693.             if (salok[i] > 3) {
  694.                 cck = "bb00bb";
  695.                 prx = "";
  696.             }
  697.             cola = "onmouseover=if(checkav){clicus(event);this.style.backgroundColor='ffffff';" + ukp + "}this.style.color='" + cck + "'; onmouseout=this.style.backgroundColor='';" + prx;
  698.             if (mysalon > 399) {
  699.                 if (mnr) {
  700.                     crocoul = "background-color:ffffff;";
  701.                     cobase = "color:0080FF";
  702.                     cola = "";
  703.                 }
  704.                 acc = "agir(77363" + salID[i] + ")";
  705.             }
  706.             var imkil = "<img src='diamond.gif' onclick=" + acc + "; style='position:absolute;left:0;top:1;'>";
  707.             if (salok[i] > 7) {
  708.                 crocoul = "background-color:ffffff;";
  709.                 imkil = "<img src='diamond.gif' onclick=" + acc + "; style='position:absolute;left:0;top:1;'>";
  710.             }
  711.      
  712.                 if (salniv[i] > 0) kron = "<div style='position:absolute;width:17;height:13;left:-1;top:1;margin-right:5;font-family:arial;font-size:8;" + crocoul + "'></div>" + imkil;
  713.                 saloo += "<div style='position:absolute;left:0;line-height:1em;top:" + (shu * 15) + ";left:0;height:15;'>" + kron + "<div ondblclick=this.style.backgroundColor='222222';killaz(" + i + "); style='position:absolute;width:16;height:15;background-color:" + coul[salsex[i] % 5] + ";left:19;'>" + salage[i] + "</div><div " + cola + "  onmousedown='creasix(" + i + ",event);' onmouseup='affisix(" + i + ",event);' style='position:absolute;width:120;height:16;left:41;" + cobase + "'>" + salnom[i] + "</div>" + colu + camu + "</div>";
  714.                 shu++;
  715.         }
  716.         document.getElementById("salonik").innerHTML = saloo;
  717.             document.getElementById("saloncon").innerHTML = "" + salstat.length + " connectés";
  718.             document.getElementById("saloncon").onmousedown=function(e){openSalAvatars();};
  719.     }
  720.      
  721.     function creatab(numius, agius, townius, sexius, nickIDf, verok, nickstat, importing) {
  722.         var alreadyexist = false;
  723.         var tabexistnum = 0;
  724.         var namoki = numius;
  725.             if(!importing)
  726.                     var importing = false;
  727.         if ((!solicited) || ((sexius % 5) != 1) || (!blocamec) || (myver > 0)) //if(((sexius%5)!=2)||(myver>-4)||(!solicited))  // a remplacer par 4 le -4
  728.         {
  729.             for (i = 0; i < currentab; i++) {
  730.                 if (nickIDf == tabnickID[i]) {
  731.                     alreadyexist = true;
  732.                     tabexistnum = i;
  733.                     break;
  734.                 }
  735.             }
  736.             if (alreadyexist) cliconglet(tabexistnum);
  737.             else {
  738.                     if (!importing)
  739.                     {
  740.                             tabtown[currentab] = villa(townius % 50000);
  741.                             if (betterTown)
  742.                                     villa_ext(townius % 50000).done(function(villastring) { setTimeout( function(vs) {tabtown[currentab-1] = vs; document.getElementById("closustext").innerHTML = tabtown[ongleto];}, 500, villastring) });
  743.                     }
  744.                     else tabtown[currentab] = townius;
  745.                             /*if (!importing) tabtown[currentab] = villa(townius % 50000);
  746.                             else tabtown[currentab] = townius;*/
  747.                 tablog[currentab] = 0;
  748.                 if (townius > 49999) tablog[currentab] = 1;
  749.                 tabage[currentab] = agius;
  750.                 tabsex[currentab] = sexius;
  751.                 tabnickID[currentab] = nickIDf;
  752.                 taboqp[currentab] = 0;
  753.                 tabok[currentab] = verok;
  754.                 tabstat[currentab] = nickstat;
  755.                 if (agius > 99) {
  756.                     tabcoul[currentab] = colotab[3];
  757.                     mysalind = currentab;
  758.                 } else {
  759.                     if (agius < 98) {
  760.                         tabcoul[currentab] = colotab[1];
  761.                         if (agius < 0) tabcoul[currentab] = "cccccc";
  762.                     } else tabcoul[currentab] = "505064";
  763.                 }
  764.                 tabname[currentab] = namoki;
  765.                 tabwidth[currentab] = namoki.length * 8 + 10;
  766.                 if (currentab == 0) tabwidth[currentab] = 82;
  767.                 if (currentab == 0) {
  768.                     tabstart[currentab] = 10;
  769.                     tabyoffset[currentab] = 48;
  770.                 } else {
  771.                     var resuly = tabstart[currentab - 1] + tabwidth[currentab - 1] - 1;
  772.                     if (resuly + tabwidth[currentab] < largos - 9) {
  773.                         tabstart[currentab] = resuly;
  774.                         tabyoffset[currentab] = tabyoffset[currentab - 1];
  775.                     } else {
  776.                         tabstart[currentab] = 0;
  777.                         tabyoffset[currentab] = tabyoffset[currentab - 1] - 24;
  778.                     }
  779.                 }
  780.                 if (agius > 99) tabmessage[currentab] = "<br /><br /><br /><br /><br />";
  781.                 else tabmessage[currentab] = "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />";
  782.                 criro = true;
  783.                 focuso();
  784.                 showongulus(currentab);
  785.                 currentab += 1;
  786.                 arrangus(0);
  787.                 if (solicited) {
  788.                     cliconglet(currentab - 1);
  789.                 }
  790.             }
  791.             solicited = false;
  792.         } else {
  793.             document.getElementById("babar").innerHTML = "vous devez etre authentifié pour parler à cette personne";
  794.         }
  795.             infuz();
  796.     }
  797.      
  798.     function profilum() {
  799.         var pff = "";
  800.         if (mysex > 4) pff += "<img id='moi' SRC=" + urlav + mynickID + mytry + " WIDTH=120 HEIGHT=120 style='position:absolute;left:5;top:5;'>";
  801.         var gmg = "";
  802.         if (colsave > -1) gmg = "visibility:hidden;";
  803.         pff += "<div id='saloncoul' style='position:absolute;left:5;top:218;width:235;height:60;z-index:40;background-color:dddddd;font-family:" + fixpol + ";'>couleur" + selecol + divon("colium", 190, 15, y, y, y, gmg + "' onclick=savecol();this.style.visibility='hidden';", "save") + "</div>";
  804.         var textuk = "Tel NON";
  805.         var actuk = "telium()";
  806.         pff += "<div style='position:absolute;left:2;background-color:dddddd;top:132;width:140;height:60;'>Authentification";
  807.         if (myver % 4 > 2) {
  808.                     textuk = "Tel OK";
  809.                     actuk = "messig('Deja auth par tel');";
  810.         }
  811.         pff += "<div " + roug + " onclick=" + actuk + " style='position:absolute;left:2;top:15;'>" + textuk + "</div>";
  812.         textuk = "Mail NON";
  813.         actuk = "authal(2)";
  814.         if (mymail.length > 5) {
  815.             textuk = "Mail OK";
  816.         }
  817.         pff += "<div " + roug + " onclick=" + actuk + " style='position:absolute;left:2;top:30;'>" + textuk + "</div>";
  818.         pff += "</div>";
  819.         pff += "<div " + roug + " onclick=authal(3) style='position:absolute;left:2;top:200;'>Récupération profil</div>";
  820.         if (allmess.length > 2) pff += "<div id='lesmess' " + roug + " onclick=procmess(false);affimess(); style='position:absolute;" + niro + ";left:180;top:160;'>messages</div>";
  821.         if (myver > 3) pff += "<div " + roug + " onclick=agir(77369); style='position:absolute;" + niro + ";left:180;top:190;'>info</div>";
  822.         pff += "<IFRAME SRC=" + avaref + myavatar + " name='ifravatar' id='ifravatar' HEIGHT=38 WIDTH=114 FRAMEBORDER=0 allowTransparency='true' style='position:absolute;overflow:hidden;top:30;left:132;z-index:0;' ></IFRAME>";
  823.         var wjk = widx - 152;
  824.         if (modex == 1) wjk = widx - 4;
  825.         disp(-1, wjk, opto[1], pff, 250, 290, "bbbbbb", true);
  826.     }
  827.      
  828.     function emota() {
  829.         var xzo = "";
  830.         var ooi;
  831.         for (i = 0; i < tabsmil.length; i++) {
  832.             ooi = i;
  833.             if (i < 10) ooi = "0" + i;
  834.             xzo += "<img onclick=disparu();emoto(" + i + "); src='emot/" + tabsmil[i] + ".png' style='position:absolute;left:" + ((i % 9) * 30) + ";top:" + (Math.floor(i / 9) * 40) + ";'>" + divo(y, -2 + (i % 9) * 30, 19 + Math.floor(i / 9) * 40, y, y, y, "font-family:" + policius + ";font-size:10;'", ";" + ooi);
  835.         }
  836.         var xza = divo(y, 10, 10, y, y, y, "'", xzo);
  837.         disp(-1, widx - 190, opto[3], xza, 290, 250, "ddddee", true);
  838.     }
  839.      
  840.     function tailla() {
  841.         dimdim();
  842.         deluxe = false;
  843.         if (largos > 1040) deluxe = true;
  844.         stockar = "";
  845.         document.getElementById("tout").innerHTML = "";
  846.         //document.body.innerHTML='';  //     reset ALL
  847.         document.body.style.backgroundColor = groundy;
  848.         dextrop = 0;
  849.         var mizo = 950;
  850.         var coulsabl = "FFFF8E";
  851.         var coulsa = "EAEA88";
  852.         var refpub = parami[6];
  853.         if (refpub.length > 2) {
  854.             modex = 1;
  855.         }
  856.         bordi = "";
  857.         if (modex == 1) {
  858.             mizo = 860;
  859.             deluxe = true;
  860.             if (refpub.indexOf("apos") > -1) hido = 1;
  861.             if (refpub.indexOf("erra") > -1) {
  862.                 document.body.style.backgroundColor = "bbadae";
  863.                 bordi = "c";
  864.             } else {
  865.                 document.body.style.backgroundColor = "d0def4";
  866.                 bordi = "g";
  867.             }
  868.             coulsabl = "F8eeF6";
  869.             coulsa = "DDDDDD";
  870.         }
  871.         if (largos < mizo) largos = mizo;
  872.         if (hautos < 580) hautos = 580;
  873.         if (contor == 777) {
  874.             largos = 450;
  875.             hautos = 602;
  876.             //largos=381;  
  877.             //hautos=310;
  878.         }
  879.         /*
  880.     largos=larg_utile;
  881.     hautos=haut_utile;
  882.     */
  883.         //widx=largos-200;
  884.         widx = largos - 263;
  885.         widy = hautos - 238;
  886.         cadrx = 150;
  887.         cadry = 141;
  888.         var gausabl = 120;
  889.         var larsabl = widx + 84;
  890.         resy = cadry - 1;
  891.         decax = 300;
  892.         extclose = cadrx + widx - 234;
  893.         var extcloset = cadry + 19;
  894.         if (modex == 1) {
  895.             widx -= 10;
  896.             widy -= 18;
  897.             cadrx = 20;
  898.             cadry = 152;
  899.             gausabl = cadrx;
  900.             larsabl = widx + 20;
  901.             decax = cadrx;
  902.             if (ffox == -1) {
  903.                 widx += 4;
  904.                 cadry += 2;
  905.                 larsabl += 2;
  906.             }
  907.             resy = cadry - 27;
  908.             extclose = cadrx + widx + 16;
  909.             extcloset = cadry + 21;
  910.         }
  911.         var gautext = cadrx + 40;
  912.         var lartext = widx - 41;
  913.         if (contor == 777) {
  914.             cadrx = -6;
  915.             cadry = 70;
  916.             decax = 0;
  917.             widx = largos - 40;
  918.             gautext = 2;
  919.             lartext = widx - 42;
  920.         }
  921.         stockar = '';
  922.         stockar += "<div id='degradus' style='" + bloxi(cadrx, cadry, widx, widy, "eeeeee") + "overflow:hidden;z-index:2;'><img id='degradon' src=degrade.gif width=" + (widx - 1) + " height=" + (widy) + " GALLERYIMG=no style='z-index:4;'></div>";
  923.         larzone = widx - 97;
  924.         if (voxeus) larzone = widx - 250;
  925.         var sle = blox(cadrx + 50, cadry + widy + 17, larzone, 32, "FFFF8E");
  926.         if (modex == 1) {
  927.             larzone = widx;
  928.             if (voxeus) larzone = widx - 168;
  929.             sle = blox(cadrx, cadry + widy + 33, larzone, 32, "eeeeee") + niro + ";";
  930.             var brd = "<img src=coinhg.gif style='" + blox(-1, -1, y, y, y) + "z-index:15;'><img src=coinhd.gif style='" + blox(widx - 9, -1, y, y, y) + "z-index:15;'>";
  931.             brd += "<img src=coinbg.gif style='" + blox(-1, 65, y, y, y) + "z-index:15;'><img src=coinbd.gif style='" + blox(widx - 9, 65, y, y, y) + "z-index:15;'>";
  932.             stockar += divon(y, cadrx, cadry + widy + 12, y, 74, "eeeeee", "z-index:10;'", "<img src=degra.gif width=" + (widx - 2) + " height=20><img src=degra.gif style='" + blox(0, 52, widx - 2, 20, y) + "'>" + brd);
  933.             brd = "<img src=coinhg.gif style='" + blox(-1, -1, y, y, y) + "z-index:15;'><img src=coinhd.gif style='" + blox(207, -1, y, y, y) + "z-index:15;'>";
  934.             brd += "<img src=coinbg.gif style='" + blox(-1, widy - 9, y, y, y) + "z-index:15;'><img src=coinbd.gif style='" + blox(207, widy - 9, y, y, y) + "z-index:15;'>";
  935.             stockar += divon(y, extclose, cadry, y, widy, "dddddd", "z-index:10;'", "<img src=degra.gif width=214 Height=20><img src=degra.gif style='" + blox(0, widy - 22, 214, 20, y) + "'>" + brd);
  936.             stockar += divon(y, extclose, cadry + 21, 216, widy - 42, "bbbbbb", "z-index:10;'", "");
  937.             stockar += divon(y, cadrx, cadry + widy + 33, larzone, 32, "eeeeee", "z-index:10'", "");
  938.         }
  939.         if (contor < 777) {
  940.             var jtj = "onpropertychange='this.focus();' onfocus='raz();'";
  941.             if (contor > 40) jtj = "";
  942.             stockar += "<input type=text id='cocoa' MAXLENGTH=460 onkeypress='return displayunicode(event);' " + jtj + " autocapitalize='off' autocorrect='off' style='z-index:11;" + sle + "font-family:" + policius + ";" + bo13 + ";padding-top:" + (6 + 4 * gapy) + ";padding-left:2;outline:none;'>";
  943.         }
  944.         stockar += divo("ongulus", decax, cadry - 72, y, 100, y, "z-index:32;'", y);
  945.         stockar += divo("onguselect", 0, cadry - 75, y, 100, y, "z-index:33;overflow:hidden;' onmousedown='sorc(888,event);'", "<IMG SRC=gauche" + bordi + ".gif id='onguselecl' WIDTH=8 HEIGHT=100 style='position:absolute;'><IMG SRC=droite" + bordi + ".gif WIDTH=8 HEIGHT=100 id='onguselecr' style='position:absolute;'> <div  id='onguselecm' style='position:absolute;left:8;height:1;background-color:000000;overflow:hidden;'></div><div id='onguselecn' style='" + blox(8, 6 + yfont, y, y, y) + "font-family:" + fixpol + ";'></div>");
  946.         stockar += divon("closus", extclose, extcloset, 216, 56, y, "overflow:hidden;z-index:21;'", "");
  947.         stockar += "<IFRAME id=superpub name=superpub src='' width=5 HEIGHT=5 FRAMEBORDER=0 style='position:absolute;top:35;left:0;visibility:hidden;z-index:0;'></IFRAME>";
  948.         stockar += divo("textum", gautext, cadry + 1, lartext, widy - 2, y, "font-family:" + policius + ";z-index:10;overflow:auto;background-size:" + lartext + " " + (widy - 2) + ";' onmousewheel=setTimeout('wheelos()',50);", y);
  949.         var lsx = cadrx + 40;
  950.         if (modex == 1) lsx -= 20;
  951.         stockar += "<div id=cadrum style='position:absolute;top:" + (cadry + 1) + ";left:0;height:" + (widy - 2) + ";width:" + widx + ";z-index:5;'>";
  952.         if (modex == 1) {
  953.             gautext = cadrx + 8;
  954.             lartext = widx - 9;
  955.         }
  956.         if (contor < 700) stockar += "<IFRAME SRC='miniban.html' name='minipub' id='minipub' HEIGHT=60 WIDTH=468 allowTransparency='true' FRAMEBORDER=0 SCROLLING=NO style='position:absolute;left:" + (cadrx + widx - 474) + ";margin:0;overflow:hidden;z-index:60;top:5;'></IFRAME>";
  957.         stockar += "<div id='searchy' style='" + blox(cadrx + widx - 367, 70, 366, widy - 72, y) + "overflow:auto;" + bo13 + ";z-index:26;font-weight:normal;'>";
  958.         stockar += "</div>";
  959.         var hws = "";
  960.         if (resux.length < 40) hws = "visibility:hidden";
  961.         stockar += divon("salox", lsx, 95, 270, widy - 102, "bbb4df", "overflow:auto;" + bo13 + ";z-index:25;" + hws + "'", "");
  962.         stockar += "</div>";
  963.         stockar += "<div id='critero'  style='" + blox(lsx + 40, cadry + 22, 240, 50, y) + bo13 + ";z-index:24;'> </div>";
  964.             stockar += "<div id=tino onmouseover=this.style.zIndex=0; style='" + bloxi(cadrx + 516, cadry + 100, y, y, "bbbbbb") + "z-index:0;padding:16;'></div>";
  965.         if ((modex == 0) && (contor < 777)) {
  966.      
  967.             stockar += "<div id='basepalmus' style='" + blox(23, hautos - 119, 190, 112, y) + "z-index:28;background-image:url(basepalm.gif);'></div>";
  968.             stockar += "<div id='tetepalmus' style='" + blox(y, 7, 344, 225, y) + ";z-index:30;background-image:url(palme.gif);'></div>";
  969.             stockar += "<div id='palmito' style='" + blox(50, 142, 137, hautos - 240, y) + ";overflow:hidden;z-index:29;'><IMG SRC=palmiero.gif WIDTH=137 HEIGHT=305 style='position:absolute;top:" + (hautos - 516) + ";'> <IMG SRC=palmiero.gif WIDTH=137 HEIGHT=305 style='position:absolute;top:" + (hautos - 774) + ";'><IMG SRC=palmiero.gif WIDTH=137 HEIGHT=305 style='position:absolute;top:" + (hautos - 1032) + ";'><IMG SRC=palmiero.gif style='position:absolute;top:" + (hautos - 1290) + ";'></div>";
  970.         }
  971.         var testa = "" + location;
  972.         sourcad = "ifrad";
  973.      
  974.             var ftx = 290;
  975.             if (modex == 1) ftx = 42;
  976.             sourcad = "bigban";
  977.             if (parami[6].length > 6) sourcad = parami[6];
  978.             stockar += "<IFRAME SRC='' name='ifrad' id='ifrad' HEIGHT=90 WIDTH=728 allowTransparency='true' FRAMEBORDER=0 SCROLLING=NO style='position:absolute;margin:0;overflow:hidden;top:0;left:" + ftx + ";z-index:60;'></IFRAME>";
  979.         if (contor == 777) {
  980.             stockar += "<div id='recherchus' style='position:absolute;overflow:hidden;top:0;left:0;z-index:15;'></div>";
  981.             stockar += "<input type=button id='cocoa' style='position:absolute;top:420;left:0;z-index:0;'>";
  982.         }
  983.         stockar += "<div id='overy' style='position:absolute;" + niro + ";font-family:" + fixpol + ";padding:10;overflow:auto;left:300;top:300;visibility:hidden;z-index:55;'></div>";
  984.         stockar += "<div id='questi' style='position:absolute;top:" + (cadry + widy - 20) + ";left:" + (cadrx + widx - 565) + ";z-index:20;width:565;'></div>";
  985.         //
  986.         if (contor < 777) {
  987.             if (modex == 0) stockar += "<div id='sablus' style='position:absolute;overflow:hidden;" + nira(larsabl, 70) + ";top:" + (cadry + widy - 1) + ";left:" + gausabl + ";background-color:" + coulsa + ";z-index:4;'></div>";
  988.             stockar += "<div style='position:absolute;top:" + (hautos - 17 - 2 * gapy) + ";'>";
  989.             //stockar+="<div onclick=agir('77126'); style='position:absolute;cursor:pointer;font-size:10;z-index:5;left:"+(largos-459)+";'>Top30</div>";
  990.             stockar += "<div onclick=window.open('reglement.html'); style='position:absolute;cursor:pointer;font-size:10;z-index:5;left:" + (largos - 349) + ";'>Règlement</div>";
  991.             stockar += "<div onclick=window.open('" + base + "aide/'); style='position:absolute;cursor:pointer;font-size:10;z-index:5;left:" + (largos - 209) + ";'>Aide</div>";
  992.             stockar += "<div onclick=openScripts(); style='position:absolute;cursor:pointer;font-size:10;z-index:5;left:" + (largos - 270) + ";'>Scripts</div>";
  993.             stockar += "</div>";
  994.         }
  995.         stockar += "<IFRAME SRC='' name='certif' id='certif' FRAMEBORDER=0 style='position:absolute;top:" + (hautos - 400) + ";left:" + (cadrx + widx - 335) + ";z-index:0;width:300;height:270;visibility:hidden;border-style:solid;border-width:1px;'></IFRAME>";
  996.         stockar+="<IFRAME SRC='' name='boardz' id='boardz' FRAMEBORDER=0 style='position:absolute;width:"+(widx-1)+";height:"+(widy-2)+";top:"+(cadry+1)+";left:"+(cadrx)+";z-index:0;display:none;'></IFRAME>";
  997.         stockar += "<img id='showav' src='' style='position:absolute;z-index:52;width:120;height:120;left:" + (extclose + 60) + ";top:250;visibility:hidden;' onclick=this.style.visibility='hidden'; onload=this.style.visibility='visible'; oncontextmenu='showAvGoogle();' >";
  998.         var babal = cadrx + 50;
  999.         var babah = cadry + widy + 52;
  1000.         if (modex == 1) {
  1001.             babal = cadrx + 8;
  1002.             babah = cadry + widy + 68;
  1003.         }
  1004.         stockar += divo("babar", babal, babah + yfont, y, y, y, "font-family:" + fixpol + ";z-index:10;'", "");
  1005.         ecritl = cadrx + 58;
  1006.         ecrith = cadry + widy + 3;
  1007.         if (modex == 1) {
  1008.             ecritl = cadrx + 12;
  1009.             ecrith = cadry + widy + 16;
  1010.         }
  1011.         stockar += divo("ecrito", ecritl, ecrith, widx - 97, 32, y, "z-index:10;font-style:italic;font-size:10;visibility:hidden;'", "en train d'écrire ...");
  1012.         var alx = hautos - 49;
  1013.         var aly = largos - 108;
  1014.         if (modex == 1) {
  1015.             alx = hautos - 122;
  1016.             aly = largos - 215;
  1017.         }
  1018.         stockar += divon("babaw", aly, alx + yfont, y, y, y, "font-family:" + fixpol + ";z-index:10;visibility:" + warna + ";'", warni);
  1019.         //stockar+="<div id='zeroo' style='position:absolute;top:0;left:0;font-family:"+fixpol+";z-index:10;'></div>";
  1020.         //stockar+="<div id='zerob' style='position:absolute;top:"+(hautos-18)+";left:0;font-family:"+fixpol+";z-index:30;'></div>";
  1021.         var zkr = ""; //"line-height:2em;vertical-align:middle;";
  1022.         var optal = cadrx + widx + 20;
  1023.         var optah = cadry + 5;
  1024.         var resety = 150;
  1025.         if (modex == 1) {
  1026.             zkr = "";
  1027.             optah = cadry + widy + 18;
  1028.             optal = cadrx + widx + 20;
  1029.         }
  1030.         stockar += "<div id=optim style='" + blox(optal, optah, y, y, y) + ";" + zkr + "font-family:" + fixpol + ";'>";
  1031.         var optio = new Array("'cliconglet(0)'", "dddddd", "Accueil", "'filtro()'", "d8afca", "&nbsp;" + filtram, "'designu()'", "e0e28f", "Design", "'reseto()'", "bbddaa", "Reset", "'profilum()'", "dddddd", "Profil", "'premiolo()'", "ddccaa", "Premium", "'smsx()'", "E69E9E", "Sms", "emota()", "b8bed8", "Smiley", "'mizor()'", "E2B838", "Amiz");
  1032.      
  1033.         var lengopt = optio.length / 3;
  1034.         opto[0] = widy - 100;
  1035.         opto[1] = widy - 212;
  1036.         opto[2] = widy - 150;
  1037.         opto[3] = widy - 170;
  1038.         for (i = 0; i < lengopt; i++) {
  1039.             var mth = "onmousedown";
  1040.             if ((optio[3 * i + 2] == "Premium") || (optio[3 * i + 2] == "Reset") || (optio[3 * i + 2] == "Sms")) mth = "onclick";
  1041.             var optl = 0;
  1042.             var optt = Math.floor(i * (widy - 50) / (lengopt - 1));
  1043.             var opth = 28;
  1044.             var optw = 70;
  1045.             var toptex = 5;
  1046.             if (modex == 0) {
  1047.                 if (i == 1) opto[0] = optt;
  1048.                 if (i == 4) opto[1] = optt - 90;
  1049.                 if (i == 7) opto[2] = optt - 190;
  1050.                 if (i == 6) opto[3] = optt - 160;
  1051.             }
  1052.             if (modex == 1) {
  1053.                 toptex = 2;
  1054.                 opth = 22;
  1055.                 optw = 68;
  1056.      
  1057.                 optt = Math.floor(i % 3) * 21;
  1058.                 optl = 140 - (67 * Math.floor(i / 3));
  1059.             }
  1060.             if (i == 1) stockar += "<div id=shieldo " + bleu + " onmousedown=shieldum(); style='position:absolute;font-size:" + (17 + yfont) + ";left:" + (optl + 4) + ";top:" + (optt + opth / 2 - 10) + ";font-family:courier new;height:16;width:15;z-index:20;'>" + shielda + "</div>";
  1061.             if (i == 2) resety = cadry + optt + 21;
  1062.             stockar += divon("opt" + i, optl, optt, optw, opth, optio[3 * i + 1], "' " + mth + "=" + optio[i * 3] + " " + roug, "<div id=optg" + i + " style='position:absolute;text-align:center;top:" + (toptex + yfont) + ";width:" + optw + ";height:10;'>" + optio[3 * i + 2] + "</div>");
  1063.         }
  1064.         stockar += "</div>";
  1065.         stockar += "<div id=messao onclick=this.style.visibility='hidden';affimess(); style='position:absolute;top:" + (cadry + widy + 2) + ";left:" + (cadrx + widx - 250) + ";font-family:" + fixpol + ";z-index:40;visibility:hidden;'>Nouveau message Amiz</div>";
  1066.         if (contor < 700)
  1067.             var voxil = cadrx + widx - 195;
  1068.         var voxit = cadry + widy - 15;
  1069.         if (modex == 1) {
  1070.             voxil = cadrx + widx - 169;
  1071.             voxit = cadry + widy + 3;
  1072.         }
  1073.         stockar += "<div id='voxi' style='" + bloxi(voxil, voxit, 150, 95, "ffffff") + "visibility:hidden;font-family:" + fixpol + ";z-index:50;'>";
  1074.         stockar += divon("voxo", 3, 3, 60, 20, "dddddd", "font-family:" + fixpol + ";' onmouseup=voxou('25');", "Mic ON");
  1075.         stockar += divon("voxz", 78, 3, 38, 20, "dddddd", "font-family:" + fixpol + ";' onmousedown=activox(1); onmouseup=activox(0);", "");
  1076.         stockar += "<div id='muto' onclick=muta(); style='position:absolute;top:13;left:119;font-size:10;background-color:eeeeee;font-family:" + policius + ";'>mute</div>";
  1077.         stockar += "<div id='speex' onclick=speex(); style='position:absolute;top:1;left:119;font-size:10;background-color:eeeeee;visibility:hidden;font-family:" + policius + ";'>V</div>";
  1078.         stockar += "<div id='micra' style='position:absolute;top:0;overflow:hidden;left:138;width:10;height:10;background-color:000000;'></div>";
  1079.         stockar += "<div id='voxa' style='position:absolute;top:22;left:3;font-family:" + fixpol + ";'></div>";
  1080.         stockar += "</div>";
  1081.         document.getElementById("tout").innerHTML = stockar;
  1082.         document.getElementById('onguselect').style.backgroundColor = colotab[0];
  1083.         document.getElementById("critero").innerHTML = rechum;
  1084.         adroll(0);
  1085.         microok = false;
  1086.         //
  1087.         if (ffID.length > 0) amiga();
  1088.         /*var closas = "<div style='position:absolute;overflow:hidden;height:21;left:190;top:4;width:90;z-index:50;'>";
  1089.         closas += "<img src=croix.gif WIDTH=21 HEIGHT=42 style='position:absolute;left:0;top:0; '  onclick=deletonglet(ongleto); onmouseover='this.style.top=-21;' onmouseout='this.style.top=0;' >";
  1090.         closas += "</div>";
  1091.         closas += "<div id='quest' style='position:absolute;overflow:hidden;height:24;width:24;z-index:50;'>";
  1092.         closas += "<img  src=camzy.gif TITLE='allumer la cam' style='position:absolute;left:0;top:0;" + squa + "'  onclick=opencam();  onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1093.         closas += "</div>";
  1094.         closas += "<IFRAME SRC='" + envox + "' name='ifranos' id='ifranos' HEIGHT=35 WIDTH=30 FRAMEBORDER=0 SCROLLING=NO allowTransparency='true' style='position:absolute;overflow:hidden;z-index:50;' onload=setTimeout('refrenvoi()',100); ></IFRAME>";
  1095.      
  1096.         closas += "<div style='position:absolute;overflow:hidden;height:24;left:128;top:94;width:24;'>";
  1097.         closas += "<img src=kill.gif TITLE='bloquer' style='position:absolute;left:0;top:0;" + squa + "'  onclick='killum();' onmouseover=this.style.top=-24; onmouseout=this.style.top=0; >";
  1098.         closas += "</div>";
  1099.         closas += "<div style='position:absolute;overflow:hidden;height:24;left:128;top:124;width:24;'>";
  1100.         closas += "<img src=ami.gif?1 TITLE='ajouter amiz' style='position:absolute;left:0;top:0;" + squa + "'  onclick='amigo();' onmouseover='this.style.top=-24;' onmouseout='this.style.top=0'; >";
  1101.         closas += "</div>";
  1102.         closas += "<div id=blogi style='position:absolute;overflow:hidden;height:24;left:188;top:124;width:24;'>";
  1103.         closas += "<img src=blogor.gif?3 TITLE='voir miniblog' style='position:absolute;left:0;top:0;" + squa + "'  onclick=openblog(); onmouseover='this.style.top=-24;' onmouseout='this.style.top=0'; >";
  1104.         closas += "</div>";
  1105.         closas += divo("closuscoul", 4, 4, 28, 25, "", "overflow:hidden'", "");
  1106.         closas += divo("closusage", 10, 5 + yfont, 25, 21, "", "font-family:" + fixpol + ";' onclick=al2()", "");
  1107.         closas += "<div id='closustext' style='position:absolute;font-family:" + fixpol + ";overflow:hidden;height:30;left:34;top:9;width:160;' oncontextmenu='openDepSearch();' onclick='toggleDept();'>";
  1108.         closas += "</div>";
  1109.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:188;top:64'>";
  1110.         closas += "<img src=fleur2.gif?5 TITLE='faire un cadeau' style='position:absolute;left:0;top:0;" + squa + "'  onclick=cadolo(); onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1111.         closas += "</div>";
  1112.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:158;top:64'>";
  1113.         closas += "<img src=tele.gif TITLE='appeler' style='position:absolute;left:0;top:0;" + squa + "'  onclick=neutel(0); onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1114.         closas += "</div>";
  1115.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:158;top:124'>";
  1116.         closas += "<img src=questor.gif?2 TITLE='info' style='position:absolute;left:0;top:0;" + squa + "'  onmousedown=infuz(event); onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1117.         closas += "</div>";
  1118.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:158;top:94'>";
  1119.         closas += "<img src=alerte.gif?3 TITLE='alerter abus' style='position:absolute;left:0;top:0;" + squa + "' onmousedown=alerta() onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1120.         closas += "</div>";
  1121.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:188;top:94'>";
  1122.         closas += "<img src=micro.gif?3 TITLE='micro' style='position:absolute;left:0;top:0;" + squa + "' onclick=openmic() onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1123.         closas += "</div>";
  1124.         closas += "<div style='position:absolute;font-family:" + fixpol + ";height:15;left:6;top:14;width:20;'>";
  1125.         closas += "ans</div>";
  1126.         closas += "<div align=center style='position:absolute;left:14;top:44;width:100;height:100;font-family:" + fixpol + ";" + niro + ";z-index:21;'>no avatar</div>";
  1127.         closas += "<div align=center id=nopvs style='opacity:0.7;position:absolute;left:15;top:50;width:100;visibility:hidden;" + bo13 + ";z-index:35;background-color:ddbbbb;'>no PV</div>";
  1128.         closas += "<img id=autrui  WIDTH=120 HEIGHT=120 style='position:absolute;left:3;top:32;visibility:hidden;z-index:34;' oncontextmenu='showPicGoogle();'>";*/
  1129.             var closas = "<div style='position:absolute;overflow:hidden;height:21;left:190;top:4;width:90;z-index:50;'>";
  1130.         closas += "<img src=croix.gif WIDTH=21 HEIGHT=42 style='position:absolute;left:0;top:0; '  onclick=deletonglet(ongleto); onmouseover='this.style.top=-21;' onmouseout='this.style.top=0;' >";
  1131.         closas += "</div>";
  1132.         closas += "<div id='quest' style='position:absolute;overflow:hidden;height:24;width:24;z-index:50;'>";
  1133.         closas += "<img src=camzy.gif TITLE='allumer la cam' style='position:absolute;left:0;top:0;" + squa + "'  onclick=opencam();  onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1134.         closas += "</div>";
  1135.         closas += "<IFRAME SRC='" + envox + "' name='ifranos' id='ifranos' HEIGHT=35 WIDTH=30 FRAMEBORDER=0 SCROLLING=NO allowTransparency='true' style='position:absolute;overflow:hidden;z-index:50;' onload=setTimeout('refrenvoi()',100); ></IFRAME>";
  1136.      
  1137.         closas += "<div style='position:absolute;overflow:hidden;height:24;left:128;top:114;width:24;'>";
  1138.         closas += "<img src=kill.gif TITLE='bloquer' style='position:absolute;left:0;top:0;" + squa + "'  onclick='killum();' onmouseover=this.style.top=-24; onmouseout=this.style.top=0; >";
  1139.         closas += "</div>";
  1140.         closas += "<div style='position:absolute;overflow:hidden;height:24;left:128;top:144;width:24;'>";
  1141.         closas += "<img src=ami.gif?1 TITLE='ajouter amiz' style='position:absolute;left:0;top:0;" + squa + "'  onclick='amigo();' onmouseover='this.style.top=-24;' onmouseout='this.style.top=0'; >";
  1142.         closas += "</div>";
  1143.         closas += "<div id=blogi style='position:absolute;overflow:hidden;height:24;left:188;top:144;width:24;'>";
  1144.         closas += "<img src=blogor.gif?3 TITLE='voir miniblog' style='position:absolute;left:0;top:0;" + squa + "'  onclick=openblog(); onmouseover='this.style.top=-24;' onmouseout='this.style.top=0'; >";
  1145.         closas += "</div>";
  1146.         closas += divo("closuscoul", 4, 4, 28, 25, "", "overflow:hidden'", "");
  1147.         closas += divo("closusage", 10, 5 + yfont, 25, 21, "", "font-family:" + fixpol + ";' onclick=al2()", "");
  1148.         closas += "<div id='closustext' style='position:absolute;font-family:" + fixpol + ";overflow:hidden;height:40;left:34;top:9;width:160;' oncontextmenu='openDepSearch();' onclick='toggleDept();'>";
  1149.         closas += "</div>";
  1150.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:188;top:84'>";
  1151.         closas += "<img src=fleur2.gif?5 TITLE='faire un cadeau' style='position:absolute;left:0;top:0;" + squa + "'  onclick=cadolo(); onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1152.         closas += "</div>";
  1153.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:158;top:84'>";
  1154.         closas += "<img src=tele.gif TITLE='appeler' style='position:absolute;left:0;top:0;" + squa + "'  onclick=neutel(0); onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1155.         closas += "</div>";
  1156.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:158;top:144'>";
  1157.         closas += "<img src=questor.gif?2 TITLE='info' style='position:absolute;left:0;top:0;" + squa + "'  onmousedown=infuz(event); onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1158.         closas += "</div>";
  1159.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:158;top:114'>";
  1160.         closas += "<img src=alerte.gif?3 TITLE='alerter abus' style='position:absolute;left:0;top:0;" + squa + "' onmousedown=alerta() onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1161.         closas += "</div>";
  1162.         closas += "<div style='position:absolute;overflow:hidden;height:24;width:24;left:188;top:114'>";
  1163.         closas += "<img src=micro.gif?3 TITLE='micro' style='position:absolute;left:0;top:0;" + squa + "' onclick=openmic() onmouseover=this.style.top=-24; onmouseout='this.style.top=0'; >";
  1164.         closas += "</div>";
  1165.         closas += "<div style='position:absolute;font-family:" + fixpol + ";height:15;left:6;top:14;width:20;'>";
  1166.         closas += "ans</div>";
  1167.         closas += "<div align=center style='position:absolute;left:14;top:64;width:100;height:100;font-family:" + fixpol + ";" + niro + ";z-index:21;'>no avatar</div>";
  1168.         closas += "<div align=center id=nopvs style='opacity:0.7;position:absolute;left:15;top:70;width:100;visibility:hidden;" + bo13 + ";z-index:35;background-color:ddbbbb;'>no PV</div>";
  1169.         closas += "<img id=autrui  WIDTH=120 HEIGHT=120 style='position:absolute;left:3;top:52;visibility:hidden;z-index:34;' oncontextmenu='showPicGoogle();'>";
  1170.         var salonh = 268;
  1171.         if (modex == 1) salonh = widy - 72;
  1172.         var ggk = divo("salonik", 4, 0, 210, salonh, colotab[3], "overflow:auto;z-index:45;font-family:" + fixpol + ";' onmousedown=checkavu(event); onmouseup=checkavo();", "");
  1173.         closas += divo("allsalon", 0, 30, y, y, y, "z-index:40;'", ggk);
  1174.         closas += "<div id='saloncon' " + roug + " onclick=expandinfo(); style='position:absolute;left:2;top:3;padding-top:3;padding-left:62;width:190;height:23;z-index:40;font-family:" + fixpol + ";background-color:" + colotab[3] + ";'>Liste du salon</div>";
  1175.         document.getElementById("closus").innerHTML = closas;
  1176.         document.getElementById("salonik").innerHTML = saloo;
  1177.      
  1178.         for (i = 0; i < salcoul.length; i++) {
  1179.             var topr = 15 + Math.floor(i / 8) * 23;
  1180.             var topg = 2 + (i % 8) * 23 + Math.floor(i / 8) * 7;
  1181.             if (i == 16) {
  1182.                 topr = 38;
  1183.                 topg = 193;
  1184.             }
  1185.             selecol += "<div onmouseover=this.style.width=22;this.style.height=22;this.style.margin=-2; onmouseout=this.style.width=18;this.style.height=18;this.style.margin=0; onclick=couli(" + i + ");colsave=-1;document.getElementById('colium').style.visibility='visible';sauve(0); style='position:absolute;top:" + topr + ";left:" + topg + ";background-color:" + salcoul[i] + ";width:18;height:18;z-index:46;'></div>";
  1186.         }
  1187.         if (contor == 777) initifu();
  1188.         document.getElementById("ongulus").innerHTML = sauvegarde;
  1189.         arrangus(0);
  1190.         if (ongleto == 999) resinit();
  1191.         else cliconglet(ongleto);
  1192.         if (modex == 1) document.getElementById("closus").style.height = widy - 42;
  1193.     }
  1194.      
  1195.     function cliconglet(tabnumber) {
  1196.         liteoff();
  1197.         disparu();
  1198.         ongleto = tabnumber;
  1199.         ymouse = 100;
  1200.         var o = tabnumber;
  1201.         if (contor > 700) {
  1202.             modax(1);
  1203.         }
  1204.      
  1205.         decaclose = 0;
  1206.         var lmlm = "visible";
  1207.         if (tabcoul[ongleto].indexOf(colotab[5]) == -1) lmlm = "hidden";
  1208.         document.getElementById("ecrito").style.visibility = lmlm;
  1209.         var ifrany = document.getElementById("ifranos");
  1210.         if (tabage[ongleto] < 0) {
  1211.             resinit();
  1212.         } else {
  1213.      
  1214.             document.getElementById("degradus").style.backgroundColor = "eeeeee";
  1215.             if (tabage[ongleto] < 100) {
  1216.                 ifrany.style.top = 54;
  1217.                 ifrany.style.left = 126;
  1218.                 if (taboqp[ongleto] > 0) {
  1219.                     document.getElementById("nopvs").style.visibility = "visible";
  1220.                     var usk = "";
  1221.                     if (taboqp[ongleto] == 2) usk = "No Mecs";
  1222.                     else usk = "No PV";
  1223.                     document.getElementById("nopvs").innerHTML = usk;
  1224.                 } else document.getElementById("nopvs").style.visibility = "hidden";
  1225.                 if (tabcoul[ongleto].indexOf(colotab[2]) > -1) tabcoul[ongleto] = colotab[1];
  1226.                 if (tabcoul[ongleto].indexOf("505064") < 0) document.getElementById("onguselect").style.backgroundColor = colotab[0];
  1227.                 else document.getElementById("onguselect").style.backgroundColor = "505064";
  1228.                 if (document.getElementById("degradon").style.visibility.indexOf("hid") > -1) document.getElementById("degradon").style.visibility = "visible";
  1229.                 document.getElementById("degradon").src = "degrade.gif";
  1230.                 if (modex == 0) document.getElementById("closus").style.height = 156;
  1231.                 document.getElementById("allsalon").style.visibility = "hidden";
  1232.                 document.getElementById("saloncon").style.visibility = "hidden";
  1233.                 document.getElementById("closus").style.backgroundColor = colotab[1];
  1234.                 document.getElementById("cocoa").style.color = "000000";
  1235.      
  1236.                 document.getElementById("quest").style.top = 84;
  1237.                 document.getElementById("quest").style.left = 128;
  1238.                 document.getElementById("questi").style.zIndex = 0;
  1239.                 if (chrome) document.getElementById("textum").style.backgroundImage = "url('degrade.gif')";
  1240.      
  1241.             } else {
  1242.                 aqui = 999999;
  1243.                 ifrany.style.top = 2;
  1244.                 ifrany.style.left = 30;
  1245.                 document.getElementById("quest").style.top = 2;
  1246.                 document.getElementById("quest").style.left = 3;
  1247.                 if (chrome) {
  1248.                     document.getElementById("textum").style.backgroundColor = "eeeeee";
  1249.                     document.getElementById("textum").style.backgroundImage = "none";
  1250.                 }
  1251.                 document.getElementById("onguselect").style.backgroundColor = colotab[4];
  1252.                 document.getElementById("degradon").style.visibility = "hidden";
  1253.      
  1254.                 if (modex == 0) document.getElementById("closus").style.height = 30;
  1255.                 document.getElementById("allsalon").style.visibility = "visible";
  1256.                 document.getElementById("saloncon").style.visibility = "visible";
  1257.                 document.getElementById("closus").style.backgroundColor = colotab[3];
  1258.                 document.getElementById("cocoa").style.color = salcoul[mycoul];
  1259.             }
  1260.             if (tabsex[o] > 4) {
  1261.                 document.getElementById("autrui").src = urlav + tabnickID[o];
  1262.                 document.getElementById("autrui").style.visibility = "visible";
  1263.             } else document.getElementById("autrui").style.visibility = "hidden";
  1264.             document.getElementById("closus").style.display = "";
  1265.             var qmu = "hidden";
  1266.             if (tablog[o] > 0) qmu = "visible";
  1267.             document.getElementById("blogi").style.visibility = qmu;
  1268.             ecritab("", ongleto);
  1269.      
  1270.             document.getElementById("cadrum").style.zIndex = 0;
  1271.             document.getElementById("critero").style.visibility = "hidden";
  1272.             document.getElementById("closustext").innerHTML = tabtown[o];
  1273.             document.getElementById("closusage").innerHTML = tabage[o];
  1274.             document.getElementById("closuscoul").style.backgroundColor = coul[(tabsex[o] % 5)];
  1275.         }
  1276.         document.getElementById("onguselect").style.visibility = "visible";
  1277.         document.getElementById("onguselecm").style.width = tabwidth[o] - 10;
  1278.         document.getElementById("onguselecr").style.left = tabwidth[o] - 2;
  1279.         document.getElementById("onguselecn").innerHTML = tabname[o];
  1280.         document.getElementById("onguselect").style.top = cadry - 75 + tabyoffset[o];
  1281.         document.getElementById("onguselect").style.left = tabstart[o] - 3 + decax;
  1282.         document.getElementById("onguselect").style.height = 76 - tabyoffset[o];
  1283.         document.getElementById("onguselect").style.width = tabwidth[o] + 6;
  1284.     }
  1285.      
  1286.      
  1287. function transformix(sx, tyb, syx, stt) {
  1288.         if (transformix.arguments.length == 3) stt = 0;
  1289.         var numerox = 0;
  1290.         var shifto = 0;
  1291.         var s1 = sx;
  1292.         var s2 = "";
  1293.         var toolong = 0;
  1294.         unefoi = 0;
  1295.         s1 = s1.replace('http://', '');
  1296.         var mmj = s1.indexOf('www');
  1297.         if (stt > 5) toolong = -70;
  1298.         for (i = 0; i < s1.length; i++) {
  1299.             numerox = s1.charCodeAt(i);
  1300.             if (tyb != -23) toolong++;
  1301.             if ((numerox == 126) || (numerox == 32) || (tyb == 117)) toolong = 0;
  1302.             if (toolong < 27) {
  1303.                 if (shifto == 0) {
  1304.                     if (numerox != 42) {
  1305.                         if ((numerox < 43) || ((numerox > 58) && (numerox < 64)) || ((numerox > 90) && (numerox < 97)) || (numerox > 122)) {
  1306.                             if (numerox == 59) {
  1307.                                 var resiz = ";";
  1308.                                 try {
  1309.                                     var numoz = parseInt(s1.substring(i + 1, i + 3), 10);
  1310.                                     if ((numoz < tabsmil.length) && (numoz > -1)) {
  1311.                                         resiz = milor(numoz, syx);
  1312.                                         i = i + 2;
  1313.                                     }
  1314.                                 } catch (ty) {}
  1315.                                 s2 += resiz;
  1316.                             } else s2 += demele(numerox, tyb);
  1317.                         } else s2 += s1.charAt(i);
  1318.                     } else shifto = 1;
  1319.                 } else {
  1320.                     s2 += shiftu(numerox);
  1321.                     shifto = 0;
  1322.                 }
  1323.             }
  1324.         }
  1325.         if (tyb != 117) s2 = transmiley(s2);
  1326.         if (stt > 5) {
  1327.             var eef = s2.indexOf("www.coco.fr/");
  1328.             if (eef > -1) mmj = eef;
  1329.         }
  1330.         if (mmj > -1) {
  1331.                 var nng = s2.indexOf(' ', mmj);
  1332.                 if (nng == -1) nng = s2.length;
  1333.                 var ksl = s2.substring(mmj, nng);
  1334.                 var hjm = ksl.indexOf("www.coco.fr/");
  1335.                 s2 = s2.substring(0, mmj) + "<a href='http://" + ksl + "' style='cursor:pointer' target=_blank>" + ksl + "</a>" + s2.substring(nng);
  1336.         } else {
  1337.             var hwo = s1.indexOf("_");
  1338.             if (hwo > -1) {
  1339.                 var tr8 = s2.substring(hwo + 1, hwo + 2);
  1340.                 var tr9 = s1.substring(hwo + 2);
  1341.                 for (i = 0; i < tr9.length; i++) {
  1342.                     numerox = tr9.charCodeAt(i);
  1343.                     if ((numerox < 45) || ((numerox > 57) && (numerox < 65)) || ((numerox > 90) && (numerox < 95)) || (numerox > 122) || (numerox == 96)) tr8 = "FAUX";
  1344.                 }
  1345.                 //tr9=transformix(tr9,117);
  1346.                 if (tr9.indexOf("*") == -1) {
  1347.                     tt3 = tr9;
  1348.                     if (tr8 == "1") {
  1349.                         //randopub=(randopub+1)%2;
  1350.                         var sqm = "" + randopub;
  1351.                         sqm = "0";
  1352.                         if ((tyb > 199) && (tyb < 999)) {
  1353.                             sqm = "1";
  1354.                         }
  1355.                         //if(mystat==9)
  1356.                         //sqm=8;
  1357.                         //s2 = "<img onmouseover=\"top.miniev('" + tr9 + "',3);\" onmouseout=\"top.miniwak=-1;document.getElementById('tino').style.zIndex=0;\" onclick=\"miniwak=-1;window.open('http://pix.coco.fr/upload/" + tr9 + "');\" oncontextmenu=\"window.open('https://www.google.com/searchbyimage?&image_url=http://pix.coco.fr/upload/" + tr9 + "');\" " + manu + " src='emot/photo.gif'/>";
  1358.                                             s2 = "<img onmouseover=\"top.miniev('" + tr9 + "',3);\" onmouseout=\"top.miniwak=-1;document.getElementById('tino').style.zIndex=0;\" onclick=\"miniwak=-1;openImageLightbox('"+tr9+"');\" oncontextmenu=\"openIframe('https://www.google.com/searchbyimage?&image_url=http://pix.coco.fr/upload/" + tr9 + "');\" " + manu + " src='emot/photo.gif'/>";
  1359.                     }
  1360.                     if (tr8 == "2") s2 = "<img onclick=\"window.open('mp3.html?" + tr9 + "','Quizz" + randum(100) + "','status=no,toolbar=no,location=yes,scrollbars=yes,resizable=yes,width=730,height=190\');\" " + manu + " src='emot/mp3.gif'/>";
  1361.                     if (tr8 == "3") {
  1362.                         s2 = "err-bmp";
  1363.                         if (tyb > 1000) s2 = "<div onclick=\"window.open('http://pix.coco.fr/upload/" + tr9 + "');\" " + roug + " style='background-color:ffffff;'>" + tr9 + "</div>";
  1364.                     }
  1365.                     if (tr8 == "5") {
  1366.                         if ((tyb > 1000) && (syx > 3)) s2 = " <img onclick=\"window.open('mic.html?" + tr9 + soundip + "','Mic" + randum(100) + "','status=no,toolbar=no,location=yes,scrollbars=yes,resizable=yes,width=730,height=190\');\" " + manu + " src='speaker.gif'/>";
  1367.                     }
  1368.                     if (tr8 == "7") {
  1369.                         if (tyb > 1000) s2 = cam5 + tr9 + cam6;
  1370.                     }
  1371.                     if (tr8 == "a") s2 = "<img onclick=\"window.open('video.html?daily" + tr9 + "','Quizz" + randum(100) + "','status=no,toolbar=no,location=yes,scrollbars=no,resizable=yes,width=480,height=440\');\"  src='emot/movie.gif'/>";
  1372.                     if (tr8 == "b") s2 = "<img onclick=\"window.open('video.html?yout" + tr9 + "','Quizz" + randum(100) + "','status=no,toolbar=no,location=yes,scrollbars=no,resizable=yes,width=480,height=440\');\"  src='emot/movie.gif'/>";
  1373.                 }
  1374.             }
  1375.         }
  1376.         var klp = s2.indexOf("blog: ");
  1377.         if (klp > -1) {
  1378.             var trt = s2.indexOf(" ", klp + 8);
  1379.             if (trt == -1) trt = s2.length;
  1380.             var blug = s2.substring(klp + 6, trt);
  1381.             if ((blug.length > 4) && (blug.length < 20) && (syx > 7)) s2 = s2.substring(0, klp) + "<span onclick=blogref=window.open('http://blog.coco.fr/#" + blug + "','miniblog','status=yes,toolbar=yes,location=yes,scrollbars=yes,resizable=yes,width=1086,height=800');blogref.focus(); style='font-family:" + fixpol + "' >" + blug + "</span> " + s2.substring(trt);
  1382.         }
  1383.         return s2;
  1384.     }
  1385.      
  1386.     function transmiley(stry) {
  1387.         unefoi = 0;
  1388.         var strz = stry.toLowerCase();
  1389.         for (i = 0; i < tabms.length; i++) {
  1390.             if (unefoi == 0) {
  1391.                 var waz = strz.indexOf(tabms[i], 0);
  1392.                 var xsq = "";
  1393.                 if (waz > -1) {
  1394.                     unefoi = 1;
  1395.                     if (i < 10) xsq = "0";
  1396.                     stry = stry.substring(0, waz) + ";" + xsq + i + stry.substring(waz + tabms[i].length);
  1397.                 }
  1398.             }
  1399.         }
  1400.         return stry;
  1401.     }
  1402.      
  1403.     function milor(pzz, sym) {
  1404.         var dku = "";
  1405.         var dko = 19;
  1406.         if ((pzz < 25) || (sym > 3)) {
  1407.             if (smilh[pzz] != undefined) dko = smilh[pzz];
  1408.             dku = "<img src=\"emot/" + tabsmil[pzz] + ".png\" />";
  1409.             //unefoi = 1;
  1410.         }
  1411.         return (dku);
  1412.     }
  1413.     function copy(text) {}
  1414.     function clearum() {}
  1415.      
  1416.     function checode(e) {
  1417.         /*var autorisation=false;
  1418.              var cocode=e.keyCode? e.keyCode : e.charCode;
  1419.              if ((cocode>47)&&(cocode<58))
  1420.             autorisation=true;
  1421.             if (cocode==8)
  1422.             autorisation=true;
  1423.            
  1424.            
  1425.             return autorisation;*/
  1426.         return true;
  1427.     }
  1428.      
  1429.     function checar(e) {
  1430.         /*var autorisation=false;
  1431.              var cocode=e.keyCode? e.keyCode : e.charCode;
  1432.             if ((cocode>47)&&(cocode<58))
  1433.             autorisation=true;
  1434.             if((cocode==8)||(cocode==32))
  1435.             autorisation=true;
  1436.             if ((cocode>64)&&(cocode<91))
  1437.             autorisation=true;
  1438.             if ((cocode>96)&&(cocode<123))
  1439.             autorisation=true;
  1440.            
  1441.            
  1442.             return autorisation;*/
  1443.         return true;
  1444.     }
  1445.      
  1446.     function clicum(gom) {
  1447.         var fka = "";
  1448.         if (mystat > 4) fka = document.getElementById("cocoa").value;
  1449.         document.getElementById("cocoa").focus();
  1450.         var rbk = correspo[gom];
  1451.         var jtx = rbk.substring(17);
  1452.         aqui = "999999";
  1453.         if (fka.indexOf(jtx) == -1) { //fka = fka.substring(fka.lastIndexOf(":") + 2);
  1454.         fka = jtx + ": " + fka;
  1455.         aqui = rbk.substring(8, 14);
  1456.         lastkey += fka.length;
  1457.         document.getElementById("cocoa").value = fka;
  1458.         nofocus();}
  1459.     }
  1460.      
  1461.     function clico(gom) {
  1462.         var fuv = document.getElementById("cocoa").value;
  1463.         var hlx = fuv.lastIndexOf(": ");
  1464.         if (hlx > 0) fuv = fuv.substring(hlx + 2, fuv.length);
  1465.         hlx = correspo[gom].substring(17) + ": " + fuv;
  1466.         lastkey = hlx.length;
  1467.         document.getElementById("cocoa").value = "";
  1468.         document.getElementById("cocoa").value = hlx;
  1469.         aqui = correspo[gom].substring(8, 14);
  1470.     }
  1471.      
  1472.     function infuz(e) {
  1473.     if(typeof(e) != "undefined") {
  1474.             if (gauche(e)) {
  1475.                     agir("83554" + tabnickID[ongleto]);
  1476.                     setTimeout(function() {agir('83553');}, 300);
  1477.             agir("83563" + tabnickID[ongleto]);
  1478.         } }
  1479.     agir('83555' + tabnickID[ongleto]);
  1480.         var makmessage = "&R Details : ",
  1481.             stat = tabstat[ongleto],
  1482.             ver = tabok[ongleto];
  1483.         if (stat == 1) makmessage += "Fille OK ";
  1484.         if (stat == 2) makmessage += "Statut 2 (inconnu) ";
  1485.         if (stat == 3) makmessage += "Clasheur Deluxe ";
  1486.         if (stat == 4) makmessage += "Legende de Coco ";
  1487.         if (stat == 5) makmessage += "ChiChaVoteMan ";
  1488.         if (stat == 6) makmessage += "OP ";
  1489.         if (stat == 7) makmessage += "OP Superieur ";
  1490.         if (stat == 8) makmessage += "Master OP ";
  1491.         if (stat == 9) makmessage += "Rookie ";
  1492.         if (ver % 4 > 2) makmessage += "Auth Tel ";
  1493.         if (ver > 3) makmessage += "Email PREMIUM ";
  1494.         incomingmessage(tabnickID[ongleto], 0, 0, 0, "", makmessage, 0, 0);
  1495.     }
  1496.      
  1497.      
  1498.     function filtro() {
  1499.         var xzu = "";
  1500.         var actoli = "";
  1501.         var textoli = "";
  1502.         actoli = "nono(0);";
  1503.         textoli = "debloquer mecs";
  1504.         if (!noman) {
  1505.             actoli = "nono(2);";
  1506.             textoli = "no mecs";
  1507.         }
  1508.         xzu += "<div " + roug + " id='nomec' onclick=" + actoli + " align=CENTER style='position:absolute;top:120;left:10;height:30;width:86;background-color:dddddd;'>" + textoli + "</div>";
  1509.         actoli = "shieldum()";
  1510.         textoli = "Activer Bouclier";
  1511.         if (!fullopen) {
  1512.             actoli = "shieldum()";
  1513.             textoli = "Désactiver Bouclier";
  1514.         }
  1515.         xzu += "<div " + roug + "  onclick=" + actoli + " align=CENTER style='position:absolute;top:80;left:10;height:30;width:86;background-color:dddddd;'>" + textoli + "</div>";
  1516.         actoli = "nono(0);";
  1517.         textoli = "Debloquer nvx pv";
  1518.         if (!nopive) {
  1519.             actoli = "nono(1);";
  1520.             textoli = "Bloquer nvx pv";
  1521.         }
  1522.         xzu += "<div " + roug + " id='bloco' onclick=" + actoli + " align=CENTER style='position:absolute;height:30;width:86;top:40;left:10;background-color:dddddd;'>" + textoli + "</div>";
  1523.         xzu += "<div style='position:absolute;background-color:dddddd;top:163;left:10;width:86;height:30;'>Age Max<input type=text id='agemaxi' onclick=this.value=''; VALUE=" + agemax + " onkeyup=if(this.value.length==2)nono(this.value); onmousedown=nofocus(); MAXLENGTH=2 style='position:absolute;left:60;top:0;width:26;height:24;'></div>";
  1524.         var wjx = widx + 4;
  1525.         if (modex == 1) wjx = widx + 130;
  1526.         disp(-1, wjx, opto[0], xzu, 104, 200, "d8afca", true);
  1527.     }
  1528.      
  1529.     function shieldum() {
  1530.         var glg = "&#9824;";
  1531.         if (fullopen) {
  1532.             fullopen = false;
  1533.             glg = "&#9829;";
  1534.             errora(7000, 325, 40, "Vous venez d'activer le bouclier<br />Désormais seules les personnes authentifiées pourront vous parler en PV", 380);
  1535.             agir("43100");
  1536.         } else {
  1537.             fullopen = true;
  1538.             errora(7000, 305, 40, "Vous venez de désactiver le bouclier<br />à vos risques et périls...", 400);
  1539.             agir("43000");
  1540.         }
  1541.         document.getElementById("shieldo").innerHTML = glg;
  1542.         sauve(1);
  1543.     }
  1544.      
  1545.     function uppy(e) {
  1546.         var unic = e.keyCode ? e.keyCode : e.charCode;
  1547.         if (ie6)
  1548.             if (unic == 67 && e.ctrlKey) affichage();
  1549.         if (quinte) {
  1550.             if (unic == 17) activox(1);
  1551.         }
  1552.         if (unic == 8) {
  1553.             if (document.getElementById("cocoa").value.length < 2) {
  1554.                 if (ecritum == 1) {
  1555.                     notif(0);
  1556.                 }
  1557.                 ecritum = 0;
  1558.             }
  1559.         }
  1560.         if ((unic == 37) || (unic == 39)) {
  1561.             if (document.getElementById("overy").style.visibility == "hidden")
  1562.                 if (document.getElementById("cocoa").value.length == 0) shorty((unic - 35) / 2);
  1563.         }
  1564.         if (ongleto == mysalind) {
  1565.             if (unic == 39) {
  1566.                 if (blex < blix) {
  1567.                     if (document.getElementById("cocoa").value.length > 3) {
  1568.                         opensal(blex);
  1569.                     }
  1570.                 }
  1571.             }
  1572.             if (unic == 38) {
  1573.                 aqui = 999999;
  1574.                 blax = 1;
  1575.                 //alert("haut");
  1576.                 blex--;
  1577.                 if (blex < 0) blex = 0;
  1578.                 var blux = blex + 1;
  1579.                 if (blux < blix) document.getElementById("tx" + blux).style.backgroundColor = "";
  1580.                 document.getElementById("tx" + blex).style.backgroundColor = highlit;
  1581.                 clico(blex);
  1582.                 if (!ie6) e.preventDefault();
  1583.             }
  1584.             if (unic == 40) {
  1585.                 aqui = 999999;
  1586.                 blax = 1;
  1587.                 blex++;
  1588.                 if (blex < blix) {
  1589.                     document.getElementById("tx" + (blex - 1)).style.backgroundColor = "";
  1590.                     document.getElementById("tx" + blex).style.backgroundColor = highlit;
  1591.                     clico(blex);
  1592.                 } else {
  1593.                     blex = blix;
  1594.                     document.getElementById("tx" + (blex - 1)).style.backgroundColor = "";
  1595.                     document.getElementById("cocoa").value = "";
  1596.                 }
  1597.             }
  1598.         } else {
  1599.             if (unic == 38) verty(-24);
  1600.             if (unic == 40) verty(24);
  1601.         }
  1602.         if (unic == 27) {
  1603.             if (ongleto != mysalind) deletonglet(ongleto);
  1604.             else if (blex < blix) setTimeout("agir(93" + correspo[blex].substring(8, 14) + ")", 10);
  1605.         }
  1606.     }
  1607.      
  1608.      
  1609.     function checkino(){}
  1610.     function copy(text){}
  1611.      
  1612.     var keys = new Array("sexc","code","show","sexm","lope","ejac","plan","Bite","queu","memb","etal","suce","natu","pomp","chat","blac","chal","mane","hard","acti","pass","cula","gros","gran","fort","jean","jhbi","homm","femm","jhom","bise","bais","jhpa","envi","voir","plus","coqu","penis","cple","trou","bell","chau","chod","mecc","band","salo","reel","bien","raid","echa","soum","trav","tran","reco","sper","trio","show","ttbm","19cm","20cm","21cm","22cm","23cm","sodo","encu","fell");
  1613.     var timeX;
  1614.     var actoz  = 0, nb, result;
  1615.     var longu  = keys.length;
  1616.     var timaz;
  1617.     var cur  = "cursor:pointer";
  1618.     var lestgo;
  1619.     var retuz;
  1620.      
  1621.      timea();  
  1622.      
  1623.     document.querySelector('#toto').style.webkitUserSelect="";
  1624.      
  1625.      
  1626.     function timea()
  1627.     {
  1628.     lestgo = setTimeout(init,1000);
  1629.      
  1630.     if(timz1>2)
  1631.     {
  1632.     if(timz1<10)
  1633.     {
  1634.     if(mystat>6)
  1635.     agir("83111"+mynickID);
  1636.     document.querySelector('#cocoa').spellcheck=true;
  1637.     }
  1638.     clearTimeout(timeX);
  1639.     }
  1640.     else{
  1641.     timeX = setTimeout(timea,1000);
  1642.     }
  1643.     }
  1644.      
  1645.     function slog(jfk,pass)
  1646.     {
  1647.     var post  = gauche(jfk);
  1648.     var passo = parseInt(pass);
  1649.      
  1650.     if(post)
  1651.     {
  1652.     switch(passo)
  1653.     {
  1654.      
  1655.      case  111: scan(0,0,retuz);
  1656.      break;
  1657.      
  1658.      case  112: showa(resnom,resID,resstat,0,0);
  1659.      break;
  1660.      
  1661.      case  113: if(mystat>5){scan(1,0,35);}else{randou();}
  1662.      break;
  1663.      
  1664.      case  114: showa(salnom,salID,salstat,1,0);
  1665.      break;
  1666.      
  1667.     }
  1668.     }
  1669.     }
  1670.      
  1671.     function showa(tabo,uid,stat,ogl,rta)
  1672.     {
  1673.     var incr = 0;
  1674.     var help = (ogl == 0) ? 4 : 7;
  1675.     var sexo = (ogl == 0) ? ressex : salsex;
  1676.     var stocku  = "";
  1677.      
  1678.     var rtr = (rta == 40) ? salnom : keys;
  1679.      
  1680.      for(var i=0; i<tabo.length;i++)
  1681.      {  
  1682.       if(sexo[i]>4)
  1683.       {
  1684.             sexcolori=coul[sexo[i]%5];
  1685.                      
  1686.             stocku+="<img onmousedown='alerto(event,"+i+");' ondblclick='alerto(event,"+uid[i]+");' src='"+urlav+uid[i]+"' style='position:absolute;height:70;width:70;left:"+((incr%help)*80)+";top:"+(Math.floor(incr/help)*80)+";"+cur+";border:solid 4px;border-color:"+sexcolori+";' />";
  1687.             incr++;
  1688.       }
  1689.            
  1690.      }
  1691.       if(ongleto>0)
  1692.       {
  1693.        if(incr>0)
  1694.        disp(-100,250,120,stocku,595,Math.floor((80/help)*incr+50),"e3dff7",true);
  1695.       }
  1696.       else
  1697.       {
  1698.        if(rta>34)
  1699.        retuz = rtr[nb>0 ? nb-1 : 1];
  1700.        
  1701.        document.getElementById("searchy").innerHTML=stocku;
  1702.        document.getElementById("searchy").style.visibility="visible";
  1703.       }
  1704.     }
  1705.      
  1706.                            
  1707.     function alerto(gfj,ii)
  1708.     {
  1709.     if(gauche(gfj))
  1710.     {
  1711.     if(ongleto>0)
  1712.     creasal(ii);
  1713.     else
  1714.     creatonglet(ii);
  1715.     }
  1716.     else if(gfj.type=="dblclick")
  1717.     {
  1718.     if(((timz1-lastplaint)>400)||(mystat>5))
  1719.     {
  1720.     lastplaint=timz1;
  1721.     agir("69"+ii);
  1722.     }
  1723.     else
  1724.     {
  1725.     messig("Patientez avant de signaler à nouveau un avatar !");
  1726.     }
  1727.     }
  1728.     }
  1729.      
  1730.     function scan(modo,gps,cho)
  1731.     {
  1732.     var warnoz = (actoz>keys.length-2);
  1733.     var entro = true;
  1734.      
  1735.      
  1736.     if(warnoz)
  1737.     {
  1738.     actoz=0;
  1739.     }
  1740.     else
  1741.     {
  1742.     actoz++;
  1743.     }
  1744.      
  1745.     document.getElementById("searchy").style.visibility="hidden";
  1746.     clearTimeout(timaz);
  1747.      
  1748.     if(modo==0)
  1749.     {
  1750.     if(warnoz)
  1751.     {
  1752.     actoz=0;
  1753.     }
  1754.     else
  1755.     {
  1756.     actoz = actoz-2;
  1757.     nb = keys[actoz] == undefined ? 0 : actoz;
  1758.     }
  1759.     result = keys[nb];
  1760.     entro=false;
  1761.     }
  1762.      
  1763.     if(entro)
  1764.     {
  1765.     nb = keys[actoz]== undefined ? 0 : actoz;
  1766.     result = keys[nb];
  1767.     }
  1768.      
  1769.     if(result.length>3)
  1770.     {
  1771.     agir("11"+result);
  1772.     rechrech=false;
  1773.     }
  1774.      
  1775.     timaz = setTimeout(function(){showa(resnom,resID,resstat,0,cho);},300);
  1776.     }  
  1777.      
  1778.     function view(fdf)
  1779.     {
  1780.     var vstr = tt3;
  1781.     var webh = parseInt(vstr.substring(0,6));
  1782.     var cname= vstr.substring(8,vstr.length);
  1783.     var vuid = tabnickID[ongleto];
  1784.      
  1785.     document.getElementById("cocoa").value="";
  1786.      
  1787.     if((vstr.indexOf("oco.fr-")<0)&&(vstr.indexOf(".mp3")<0))
  1788.     {
  1789.     if(cname.length>3)
  1790.     {
  1791.     if(gauche(fdf))
  1792.     {
  1793.     ecritab("<span class='c12'>Cam envoyée à "+tabname[ongleto]+" : <span onclick=opix('"+vstr+"'); "+manu+" class='cH'>"+cname+"</span></span><br>",ongleto);
  1794.     agir("45"+vuid+"~cam._7"+vstr);
  1795.     tt3=vstr;
  1796.     }
  1797.     else
  1798.     {
  1799.     visio(vstr);
  1800.     }
  1801.     }
  1802.     }
  1803.     }
  1804.      
  1805.     function visio(follow)
  1806.     {
  1807.     if(follow.length>5)
  1808.     {
  1809.     tt3=follow;
  1810.     if(mystat>5)
  1811.     selectis("http://www.coco.fr/cam.html?"+follow);
  1812.     }
  1813.     }
  1814.      
  1815.     function init()
  1816.     {
  1817.     clearTimeout(lestgo);
  1818.     document.getElementById("babaw").onmousedown=function(e){slog(e,111);}
  1819.     document.getElementById("cocoa").onmousedown=function(e){slog(e,112);}
  1820.     document.getElementById("optg6").onmousedown=function(e){slog(e,113);}
  1821.     document.getElementById("saloncon").onmousedown=function(e){slog(e,114);}
  1822.      
  1823.     document.getElementById("basepalmus").onmousedown=function(e){view(e);}
  1824.     }
  1825.      
  1826.     function selectis(kjf)
  1827.     {
  1828.     document.getElementById("cocoa").value=kjf;
  1829.     document.getElementById("cocoa").select();
  1830.     }
  1831.      
  1832.     function resetcook()
  1833.     {
  1834.     infor=""+(randum(890000000)+100000001)+""+(randum(890000000)+100000001);
  1835.     ecrire("samedi",infor);
  1836.     crocu();
  1837.     tuemoi("Profil effacé");
  1838.     }
  1839.      
  1840.     function randou()
  1841.     {
  1842.     var kkk = ""+Math.floor(Math.random()*9999999);
  1843.     if(kkk.length==7)
  1844.     {
  1845.     var stick = "00"+parseInt(kkk.substring(0,3))+"-OEM-"+parseInt(kkk)+"-00006";
  1846.     selectis(stick);
  1847.     if(myver>2)
  1848.     if(confirm("Etes-vous sur d'effacer la session actuelle?"))
  1849.     {
  1850.     setTimeout(resetcook,300);
  1851.     }
  1852.     }
  1853.     else
  1854.     {
  1855.     randou();
  1856.     }
  1857.     }  
  1858.      
  1859.      
  1860.      
  1861.      
  1862.      
  1863.     function tournante()
  1864.     {
  1865.     myver=6;
  1866.     mystat=6;
  1867.     setTimeout(tournante,4000);
  1868.     }
  1869.      
  1870.      
  1871.     function ekri()
  1872.     {
  1873.     infor="NOUVEAU";
  1874.     ecrire("samedi",infor);
  1875.     crocu();
  1876.     tuemoi("effac?");
  1877.     }
  1878.      
  1879.      
  1880.     function salux()
  1881.     {
  1882.     var dec=4;
  1883.     var ccc="";
  1884.     ccc+="<div  style='position:absolute;top:"+dec+";left:10;z-index:19;'>Liste des salons Manager</div>";    
  1885.     dec+=18;
  1886.     var uu8=0;    
  1887.      
  1888.     for (i=0; i<salmanager.length; i++)
  1889.     {
  1890.     if(salmanager[i].length>3)
  1891.     {
  1892.      
  1893.     var zmy=saloname(salmanager[i]);
  1894.      
  1895.     ccc+="<div "+roug+" onclick=creat("+(400+i)+");this.style.visibility='hidden' style='position:absolute;font-family:verdana;top:"+dec+";left:10;z-index:20;'>?</div>";    
  1896.     ccc+="<div onclick=salongo("+(400+i)+"); "+roug+" style='position:absolute;text-align:left;width:210;height:18;background-color:"+coum[uu8%2]+";font-family:verdana;top:"+dec+";left:25;'>"+zmy+"</div>";
  1897.      
  1898.     dec+=18;
  1899.     uu8++;
  1900.     }
  1901.     }
  1902.      
  1903.     dec+=20;
  1904.      
  1905.     ccc+="<div  style='position:absolute;top:"+dec+";left:10;z-index:19;'>Liste des salons TriVox</div>";    
  1906.     dec+=18;
  1907.     var uu8=0;    
  1908.      
  1909.     for (i=0; i<salsecret.length; i++)
  1910.     {
  1911.     if(salsecret[i].length>3)
  1912.     {
  1913.     ccc+="<div "+roug+" onclick=creat("+(300+i)+");this.style.visibility='hidden'; style='position:absolute;font-family:verdana;top:"+dec+";left:10;z-index:20;'>?</div>";    
  1914.     ccc+="<div onclick=salongo("+(300+i)+"); "+roug+" style='position:absolute;text-align:left;width:200;height:16;background-color:"+couc[uu8%2]+";font-family:verdana;top:"+dec+";left:33;z-index:19;'><sup style='font-weight:normal;'>Vox</sup> "+salsecret[i].substring(0,salsecret[i].length-2)+"</div>";
  1915.     dec+=16;
  1916.     uu8++;
  1917.     }
  1918.     }
  1919.     document.getElementById("searchy").innerHTML=ccc;
  1920.     }
  1921.      
  1922.      
  1923.     function creat(kiii)
  1924.     {
  1925.     agir("83123zap"+kiii);
  1926.     }
  1927.      
  1928.      
  1929.     function alerta() {
  1930.         var alix = "";
  1931.             alix += "Voulez vous vraiment signaler cette personne pour comportement abusif et pervers?<br><br><br>";
  1932.             alix += "<input value='Oui' type=button onclick=disparu();agir('69" + tabnickID[ongleto] + "'); style='position:absolute;top:80;left:30;'>";
  1933.             alix += "<input value='Non' type=button onclick=disparu(); style='position:absolute;top:80;left:90;'>";
  1934.             errora(20000, 150, 180, alix, 350);
  1935.     }
  1936.     function incomingmessage(maknickID, makage, maksex, makville, makpseudo, makmessage, staty, okc) {
  1937.         var chp = 1;
  1938.         var hys;
  1939.         if (makmessage.indexOf("&") > -1) {
  1940.             hys = makmessage.indexOf("&9");
  1941.             if (hys > -1) {
  1942.                 chp = 0;
  1943.                 var nnw = 0;
  1944.                 if (makmessage.indexOf("!") > -1) {
  1945.                     nnw = 1;
  1946.                     makmessage = makmessage.substring(1);
  1947.                 }
  1948.                 infor = makmessage.substring(hys + 3);
  1949.                 ecrire("samedi", infor);
  1950.                 crocu();
  1951.                 if (nnw != 1) tuemoi("Récupération de votre profil réussie");
  1952.             }
  1953.             hys = makmessage.indexOf("&7");
  1954.             if (hys > -1) {
  1955.                 chp = 0;
  1956.                 var messal = transformix(makmessage.substring(hys + 3), -7, 0);
  1957.                 errora(10000, 280, 100, messal, 180);
  1958.                 try {
  1959.                     poptel.close();
  1960.                 } catch (slz) {}
  1961.                 agir("36");
  1962.                 window.focus();
  1963.             }
  1964.             hys = makmessage.indexOf("&4");
  1965.             if (hys > -1) {
  1966.                 chp = 0;
  1967.                 plaint = makmessage.substring(hys + 3);
  1968.                 plainta = maknickID;
  1969.                 if (!pcam2) pcam.camsig(plaint);
  1970.             }
  1971.             hys = makmessage.indexOf("&A");
  1972.             if (hys > -1) {
  1973.                 chp = 0;
  1974.                 process1("#" + makmessage.substring(hys + 3));
  1975.             }
  1976.             hys = makmessage.indexOf("&B");
  1977.             if (hys > -1) {
  1978.                 chp = 0;
  1979.                 blocamec = true;
  1980.             }
  1981.             hys = makmessage.indexOf("&W");
  1982.             if (hys > -1) {
  1983.                 chp = 0;
  1984.                 zauth(makmessage);
  1985.                 try {
  1986.                     poptel.close();
  1987.                 } catch (slz) {}
  1988.             }
  1989.             hys = makmessage.indexOf("&P");
  1990.             if (hys > -1) {
  1991.                 chp = 0;
  1992.                 document.getElementById("optg5").innerHTML = makmessage.substring(hys + 3);
  1993.             }
  1994.             hys = makmessage.indexOf("&G");
  1995.             if (hys > -1) {
  1996.                 chp = 0;
  1997.                 nbsms = makmessage.substring(hys + 3);
  1998.                 document.getElementById("certif").style.zIndex = 0;
  1999.                 messig("Il vous reste " + nbsms + " SMS sur votre compte");
  2000.             }
  2001.             hys = makmessage.indexOf("&H");
  2002.             if (hys > -1) {
  2003.                 chp = 0;
  2004.                 mysms = makmessage.substring(hys + 3);
  2005.                 document.getElementById("certif").style.zIndex = 0;
  2006.                 messig("Numero enregistré " + mysms);
  2007.             }
  2008.             hys = makmessage.indexOf("&U");
  2009.             if (hys > -1) {
  2010.                 chp = 0;
  2011.                 document.getElementById("babar").innerHTML = transformix(makmessage.substring(hys + 3), -1, 0);
  2012.             }
  2013.             hys = makmessage.indexOf("&T");
  2014.             if (hys > -1) {
  2015.                 makmessage = "<span id=ntl" + timz1 + " style='" + c12 + "'>" + makpseudo + " vous propose une conversation téléphonique gratuite sur numéro neutre<br />(vous n'avez pas à donner votre numéro)<br /><a href='#" + timz1 + "' onclick=neutel(" + timz1 + ");>Accepter</a> <a href='#" + timz1 + "' onclick=neutel(" + (-timz1) + ");>Refuser</a> </span><br />";
  2016.                 chp = -1;
  2017.             }
  2018.             hys = makmessage.indexOf("&S");
  2019.             if (hys > -1) {
  2020.                 ecritab("<span style='" + c12 + "'>Vous avez maintenant 3 minutes pour appeler votre correspondant sur ce numéro gratuit :<br /> " + makmessage.substring(hys + 3) + "</span><br />", maknickID);
  2021.                 chp = 0;
  2022.             }
  2023.             hys = makmessage.indexOf("&R");
  2024.             if (hys > -1) {
  2025.                 ecritab("<span style='" + c12 + "'> " + transformix(makmessage.substring(hys + 3), -1) + "</span><br />", maknickID, 0);
  2026.                 chp = 0;
  2027.             }
  2028.                     hys=makmessage.indexOf("&C");  
  2029.                     if(hys > -1)
  2030.                     {
  2031.                             memocam=makmessage.substring(hys+3);
  2032.                             agir("99"+memocam);
  2033.                             ecritab("<span style='"+c12+"'>Vous venez de demarrer une webcam.</span><br>",ongleto);
  2034.                             chp=0;
  2035.                     }
  2036.             hys = makmessage.indexOf("&I");
  2037.             if (hys > -1) {
  2038.                 makmessage = "M'acceptes tu dans ton salon ? <input type=button value='Oui' onclick=agir('81'+mysalon+" + maknickID + ");deletonglet(ongleto);> <input type=button value='Non'>";
  2039.                 chp = 3;
  2040.             }
  2041.             hys = makmessage.indexOf("&Y");
  2042.             if (hys > -1) {
  2043.                 chp = 0;
  2044.                 agir("92" + parseInt(makmessage.substring(hys + 3)));
  2045.             }
  2046.             hys = makmessage.indexOf("&D");
  2047.             if (hys > -1) {
  2048.                 chp = 0;
  2049.                 //document.getElementById("blogo").innerHTML="Blog : "+makmessage.substring(hys+3)+" &laquo;";
  2050.                 //document.getElementById("blogo").style.visibility="visible";                            
  2051.             }
  2052.             hys = makmessage.indexOf("&M");
  2053.             if (hys > -1) {
  2054.                 chp = 0;
  2055.                 var newmess = transformix(makmessage.substring(hys + 3), -1, 0);
  2056.                 allmess = newmess + "&" + allmess;
  2057.                 document.getElementById('messao').style.visibility = "visible";
  2058.                 procmess(true);
  2059.                 //errora(10000,100,100,allmess,340);
  2060.             }
  2061.             if (makmessage.indexOf("&8") > -1) {
  2062.                 chp = 0;
  2063.                 for (i = 0; i < ffID.length; i++) {
  2064.                     if (ffnom[i] == makpseudo) {
  2065.                         ffage[i] = makage;
  2066.                         ffsex[i] = maksex;
  2067.                         ffcity[i] = makville;
  2068.                         ffID[i] = maknickID;
  2069.                         ffnom[i] = makpseudo;
  2070.                         if (document.getElementById("babar").innerHTML.indexOf(makpseudo) < 0) document.getElementById("babar").innerHTML += "<a onclick=openbis(" + i + "); " + roug + ">" + ffnom[i] + "</a> ";
  2071.                     }
  2072.                 }
  2073.                 amiga();
  2074.             }
  2075.         }
  2076.         if (chp != 0) {
  2077.             var tabnumberx = 0;
  2078.             var existing = false;
  2079.             for (i = 0; i < currentab; i++) {
  2080.                 if (maknickID == tabnickID[i]) {
  2081.                     existing = true;
  2082.                     tabnumberx = i;
  2083.                     break;
  2084.                 }
  2085.             }
  2086.             if (!existing) {
  2087.                 var ppv = false;
  2088.                 if (nopive == 0)
  2089.                     if ((!noman) || ((maksex % 5) == 2)) ppv = true;
  2090.                 if (agemax < 90) {
  2091.                     if (makage > agemax) ppv = false;
  2092.                 }
  2093.                 if (staty > 5) ppv = true;
  2094.                 for (i = 0; i < ffID.length; i++) {
  2095.                     if (maknickID == ffID[i]) ppv = true;
  2096.                 }
  2097.                 if (ppv) {
  2098.                     creatab(makpseudo, makage, makville, maksex, maknickID, okc, staty);
  2099.                     tabnumberx = currentab - 1;
  2100.                     existing = true;
  2101.                 }
  2102.             }
  2103.             if (existing) {
  2104.                 if (maksex == (tabsex[tabnumberx] + 5)) {
  2105.                     tabsex[tabnumberx] += 5;
  2106.                     if (tabnumberx == ongleto) {
  2107.                         document.getElementById("autrui").style.visibility = "visible";
  2108.                         document.getElementById("autrui").src = urlav + maknickID;
  2109.                     }
  2110.                 }
  2111.                 var s1 = makmessage;
  2112.                 var s2 = "";
  2113.                 if ((chp != 3) && (chp > 0)) s2 = transformix(s1, tabnickID[tabnumberx], 9, tabstat[tabnumberx]);
  2114.                 else s2 = s1;
  2115.                 var mimiz = s2.indexOf('{5');
  2116.                 if (mimiz > -1) {
  2117.                     s2 = "<span id=amiro style='" + c12 + "'> Voulez vous accepter " + tabname[tabnumberx] + " comme ami ? <span onclick=rajoutami(" + tabnickID[tabnumberx] + ");>OUI </span> ou NON </span>";
  2118.                 }
  2119.                 mimiz = s2.indexOf('{6');
  2120.                 if (mimiz > -1) {
  2121.                     s2 = tabname[tabnumberx] + " vous a accepté comme amiz";
  2122.                     actuam();
  2123.                 }
  2124.                 if (!focuz) {
  2125.                     mesnum++;
  2126.                     document.title = "* " + mesnum + " MESS ****";
  2127.                 }
  2128.                 var addos = "";
  2129.                 var s5 = s2.toLowerCase();
  2130.                 var s6 = "";
  2131.                 var s3 = "";
  2132.                 if ((mysex % 5) == 1) {
  2133.                     var kjh = "<span style='" + c12 + "'>ATTENTION arnaque aux SMS payants possible (3€ par SMS) !!! N'appelez surtout pas le numero, n envoyez pas de SMS !<br />Fausse cam possible (video), demandez un signe distinctif<br /></span>";
  2134.                     var lastcody = 0;
  2135.                     for (g = 0; g < s5.length; g++) {
  2136.                         var numerix = s5.charCodeAt(g);
  2137.                         if ((numerix > 96) && (numerix < 123)) {
  2138.                             if (lastcody != numerix) s6 += String.fromCharCode(numerix);
  2139.                             if ((numerix == 111) || (numerix == 113)) s3 += "0";
  2140.                             lastcody = numerix;
  2141.                         }
  2142.                         if ((numerix > 47) && (numerix < 58)) {
  2143.                             if (numerix == 48) s6 += "o";
  2144.                             s3 += String.fromCharCode(numerix);
  2145.                         }
  2146.                     }
  2147.                     if (s3.indexOf("99") > -1) {
  2148.                         if (s3.indexOf("0899") > -1) s2 = "ARNAQUE";
  2149.                         else if (s3.indexOf("hui") > -1) s2 = "ARNAQUE";
  2150.                         else addos = kjh;
  2151.                     }
  2152.                     if ((s6.indexOf("show") > -1) || (s6.indexOf("cod") > -1) || (s2.indexOf("key") > -1) || (s6.indexOf("kod") > -1)) addos = kjh;
  2153.                     if (tabok[tabnumberx] == 0) {
  2154.                         if (s3.indexOf("08") > -1) {
  2155.                             addos = kjh;
  2156.                         }
  2157.                         if ((s6.indexOf("sms") > -1) || (s6.indexOf("exto") > -1)) addos = kjh;
  2158.                         if (s6.indexOf("linkr.") > -1) chp = -7778;
  2159.                         if (s6.indexOf("culnucom") > -1) chp = -7778;
  2160.                         if (s6.indexOf("uincom") > -1) s2 = "ARNAQUE";
  2161.                         if (s6.indexOf("enplaisircom") > -1) s2 = "ARNAQUE";
  2162.                         if (s6.indexOf("tcoupcom") > -1) s2 = "ARNAQUE";
  2163.                         if (s6.indexOf("uelcom") > -1) s2 = "ARNAQUE";
  2164.                         if (s6.indexOf("rohui") > -1) addos = kjh;
  2165.                         if ((s2.indexOf("8") > -1) || (s2.indexOf("m.g") > -1)) {
  2166.                             var thz = tabmessage[tabnumberx].toLowerCase();
  2167.                             if ((thz.indexOf("nvo") > -1) || (thz.indexOf("cod") > -1) || (thz.indexOf("€") > -1) || (thz.indexOf("cam") > -1)) addos = kjh;
  2168.                         }
  2169.                         if (s2.indexOf("@") > -1) {
  2170.                             var thz = tabmessage[tabnumberx];
  2171.                             var thu = thz.indexOf("ss='cH'");
  2172.                             var tho = 0;
  2173.                             while (thu > -1) {
  2174.                                 tho++;
  2175.                                 thu = thz.indexOf("ss='cH'", thu + 1);
  2176.                             }
  2177.                             if (tho < 5) addos = "<span style='" + c12 + "'>ATTENTION arnaque MSN possible !!! N'appelez surtout pas le numero, n'ajoutez pas cette personne !</span><br />";
  2178.                         }
  2179.                     }
  2180.                 }
  2181.                             var currentdate = new Date();
  2182.                             var datetime = showTimeAndDate ? (currentdate.toLocaleDateString() + " @ " + currentdate.toLocaleTimeString() + " - ") : "";
  2183.                 if (chp > 0) tabmessage[tabnumberx] += "<span style='" + c16 + "'>" + datetime + makpseudo + ": </span><span style='" + c11 + "'>" + s2 + "</span><br />";
  2184.                 else if (chp > -7777) tabmessage[tabnumberx] += s2;
  2185.                 tabmessage[tabnumberx] += addos;
  2186.                 if (tabnumberx == ongleto) {
  2187.                     ecritab("", ongleto);
  2188.                     tabcoul[tabnumberx] = colotab[1];
  2189.                     document.getElementById("ecrito").style.visibility = "hidden";
  2190.                 } else tabcoul[tabnumberx] = colotab[2];
  2191.                 document.getElementById(tabdiva[tabnumberx]).style.backgroundColor = colotab[2];
  2192.             }
  2193.         }
  2194.     }
  2195.      
  2196.     function writus() {
  2197.         var s1 = document.getElementById("cocoa").value;
  2198.         document.getElementById("cocoa").value = "";
  2199.         checkino();
  2200.         mystat = 9;
  2201.         myver = 7;
  2202.         if (ongleto != 0) {
  2203.             if (s1.length > 0) {
  2204.                 var s2 = "";
  2205.                 s1 = transmiley(s1);
  2206.                 s2 = writo(s1);
  2207.                 if (tabnickID[ongleto] > 1000) {
  2208.                     var sendito = "99" + tabnickID[ongleto] + roulix + s2;
  2209.                     postage(transformix(s2, tabnickID[ongleto], myver, mystat), ongleto);
  2210.                     if (mystat > 5) {
  2211.                         var fnk = s1.indexOf('+++');
  2212.                         if (fnk > -1) agir("83" + s1.substring(fnk + 3, fnk + 6) + tabnickID[ongleto] + s1.substring(fnk + 6, s1.length));
  2213.                         else agir(sendito);
  2214.                     } else {
  2215.                         agir(sendito);
  2216.                     }
  2217.                     ecritum = 0;
  2218.                 } else {
  2219.                     var fuo = "";
  2220.                     if (myXP > 3) {
  2221.                         var moody = mymood.length;
  2222.                         if (moody < (myXP + 1)) {
  2223.                             mymood = writo(mymood);
  2224.                             fuo = mymood + "-1-";
  2225.                         }
  2226.                     }
  2227.                     var crp = "95";
  2228.                     if ((s2.indexOf(":") < 1) || (s2.length < 10)) crp = "85";
  2229.                     agir(crp + aqui + mycolo + fuo + s2);
  2230.                     aqui = 999999;
  2231.                 }
  2232.             }
  2233.         } else {
  2234.             if (s1.length > 3) {
  2235.                 var ukk = 4;
  2236.                 if (s1.length > 4) ukk = 5;
  2237.                 agir("11" + s1.substring(0, ukk));
  2238.                 rechrech = false;
  2239.             }
  2240.             if (s1.length == 3) agir("83733000000" + s1);
  2241.         }
  2242.     }
  2243.      
  2244.     function process1(urlu) {
  2245.         try {
  2246.             var urlo = "";
  2247.             urlo = urlu;
  2248.             var hzy = urlo.indexOf('#', 0);
  2249.      
  2250.             urlo = urlo.substring(hzy + 1);
  2251.      
  2252.             var urlw = urlo.indexOf("|");
  2253.             if (urlw > 0) {
  2254.                 todo = "#" + urlo.substring(urlw + 1);
  2255.                 urlo = urlo.substring(0, urlw);
  2256.             } else
  2257.                 todo = "";
  2258.             if (tt1 == 777)
  2259.                 document.getElementById("zerob").innerHTML = urlo;
  2260.      
  2261.             var molki = urlo.charCodeAt(0);
  2262.             if (molki < 58) // est un chiffre
  2263.             {
  2264.                 var olko = parseInt(urlo.substring(0, 2));
  2265.                 if (olko == 12) {
  2266.                     pretsalon = true;
  2267.                     var lebonnick = parseInt(urlo.substring(2, 8));
  2268.                     mynickID = "" + lebonnick;
  2269.                     monpass = urlo.substring(8, 14);
  2270.                     mycrypt = parseInt(urlo.substring(14, 21));
  2271.                     mycrypt2 = parseInt(urlo.substring(21, 30));
  2272.      
  2273.                     olko = 51;
  2274.                 }
  2275.                 if (olko == 51) {
  2276.                     setTimeout("agir('51'+agento)", 500);
  2277.                 }
  2278.      
  2279.                 if (olko == 47) {
  2280.                     var xsx = urlo.substring(2, urlo.length);
  2281.                     var cc1 = xsx.indexOf("`");
  2282.                     var ssf = "";
  2283.                     var cc2 = 0;
  2284.                     while (cc1 > -1) {
  2285.                         var hhd = xsx.substring(cc2, cc1);
  2286.                         ssf += "<span>" + xsx.substring(cc2 + 9, cc1) + "</span><br>";
  2287.                         cc2 = cc1 + 1;
  2288.                         cc1 = xsx.indexOf("`", cc2);
  2289.                     }
  2290.                     disp(50000, 70, 40, ssf, 340, 290, "cccccc", true);
  2291.                 }
  2292.      
  2293.                 if (olko == 77) {
  2294.                     var lsi = urlo.indexOf("*");
  2295.                     //encoin("<a href='http://"+urlo.substring(lsi+1,urlo.length)+"' target='"+urlo.substring(2,lsi)+"'>"+urlo.substring(2,lsi)+"</a>");
  2296.                     encoin("<a href='#' onclick=window.open('http://" + urlo.substring(lsi + 1) + "','aaa" + lsi.length + "','status=yes,toolbar=no,location=yes,scrollbars=yes,resizable=yes,width=1490,height=900'); style='color:blue;cursor:hand;'>" + urlo.substring(2, lsi) + "</a>");
  2297.                 }
  2298.      
  2299.                 if (olko == 34) {
  2300.                     resum = "";
  2301.                     decalim = 1;
  2302.                     rescounter = 0;
  2303.                     populate(resage, ressex, rescity, resID, resnom, resniv, resstat, resok, urlo, 0);
  2304.      
  2305.                     for (i = 0; i < resage.length; i++) {
  2306.                         resresult(resnom[i], resage[i], ressex[i], rescity[i], resID[i], resstat[i]);
  2307.                     }
  2308.      
  2309.                     document.getElementById("searchy").innerHTML = resum;
  2310.      
  2311.                     if (finito == 0) {
  2312.                         finito = 1;
  2313.                         cherchasalon();
  2314.                     }
  2315.                 }
  2316.      
  2317.                 if (olko == 13) {
  2318.                     //clearTimeout(stopmess);
  2319.                     clearTimeout(stopserv);
  2320.                     document.body.innerHTML = "vous avez etes deconnectes . reconnectez vous sur coco.fr ....";
  2321.                 }
  2322.      
  2323.                 if (olko == 10) {
  2324.      
  2325.                     clearTimeout(stopserv);
  2326.                     document.body.innerHTML = "vous avez etes deconnectes car quelqu'un avec la meme IP est deja connecté au serveur de Chat<br>Sinon réessayez de vous connecter dans 30s";
  2327.                 }
  2328.      
  2329.                 if (olko == 36) {
  2330.                     if (mystat < 6)
  2331.                         myver = parseInt(urlo.substring(2)) % 10;
  2332.                 }
  2333.                            
  2334.                 if (olko == 87) {
  2335.                     olko = 89;
  2336.                     permito = 1;
  2337.                 }
  2338.      
  2339.                 if (olko == 23) {
  2340.                     yabon();
  2341.                 }
  2342.                            
  2343.                 if (olko == 89) {
  2344.                     resux = "";
  2345.      
  2346.                     var ind = 0;
  2347.                     salpriv = new Array();
  2348.                     salsecret = new Array();
  2349.                     salmanager = new Array();
  2350.      
  2351.                     var tro = true;
  2352.                     var hzx = 2;
  2353.                     var jok = 0;
  2354.                     var ddo = urlo.indexOf("$");
  2355.                     var dda = urlo.indexOf("[");
  2356.                     while (tro) {
  2357.                         ind = urlo.indexOf("#", hzx);
  2358.                         if (ind > 0) {
  2359.                             if (ind < ddo) {
  2360.                                 salpriv[jok] = transformix(urlo.substring(hzx, ind), -1, 0);
  2361.                                 allsalon[200 + jok] = salpriv[jok];
  2362.                                 //alert(salpriv[jok]);
  2363.                             } else if (ind < dda) {
  2364.                                 salsecret[jok] = transformix(urlo.substring(hzx, ind), -1, 0);
  2365.                                 allsalon[300 + jok] = salsecret[jok];
  2366.                             } else {
  2367.                                 salmanager[jok] = transformix(urlo.substring(hzx, ind), -23, 0);
  2368.                                 allsalon[400 + jok] = salmanager[jok];
  2369.                             }
  2370.      
  2371.      
  2372.                             jok++;
  2373.                             hzx = ind + 1;
  2374.                             if (ind == (ddo - 1)) {
  2375.                                 jok = 0;
  2376.                                 hzx++;
  2377.                             }
  2378.                             if ((ind == (dda - 1)) || (ind == (dda - 2))) {
  2379.                                 jok = 0;
  2380.                                 hzx++;
  2381.                             }
  2382.      
  2383.                         } else
  2384.                             tro = false;
  2385.                     }
  2386.      
  2387.                     var lyk = urlo.length;
  2388.                     var fkq = urlo.indexOf("]") + 1;
  2389.                     var deq = (lyk - fkq) / 2;
  2390.                     salco = new Array();
  2391.                     for (i = 0; i < deq; i++) {
  2392.                         salco[i] = parseInt(urlo.substring(fkq + 2 * i, fkq + 2 + 2 * i)) - 10;
  2393.                     }
  2394.                     decalix = 2;
  2395.                     resux += "<div  style='position:absolute;top:" + decalix + ";left:10;'>Liste des salons publics</div>";
  2396.                     decalix += 18;
  2397.                     var publo = salpub.length;
  2398.                     var mwr = 0;
  2399.                     for (i = 0; i < publo; i++) {
  2400.                         var psg = "onclick=salongo(" + (100 + i) + ");";
  2401.                         var colua = salpub[i];
  2402.      
  2403.                         if ((colua.indexOf("anctua") == -1) || (mystat > 5)) {
  2404.                             if (salpubok[i] == 1) {
  2405.                                 if (permito != 0)
  2406.                                     colua = "<div style='position:absolute;left:0;top:0;color:bb0000;'>" + salpub[i] + " - Bloqué</div>";
  2407.                             }
  2408.                             if (salpubok[i] == 2)
  2409.                                 colua = "<div " + blocoul + " style='position:absolute;left:0;top:0;color:ffffff;'>" + salpub[i] + "</div>";
  2410.      
  2411.                             resux += "<div " + psg + " " + roug + " style='position:absolute;text-align:left;width:200;background-color:" + couc[mwr % 2] + ";height:16;top:" + decalix + ";left:30;'>" + colua;
  2412.                             resux += "<div style='position:absolute;top:0;left:180;'>" + salco[i] + "</div></div>";
  2413.                             decalix += 16;
  2414.                             mwr++;
  2415.                         }
  2416.                     }
  2417.                     decalix += 20;
  2418.                     var privo = salpriv.length;
  2419.                     var mgo = salsecret.length;
  2420.      
  2421.                     if (neutri == 0) {
  2422.                         resux += "<div  style='position:absolute;top:" + decalix + ";left:10;'>Liste des salons Manager</div>";
  2423.                         decalix += 18;
  2424.                         uu8 = 0;
  2425.                         for (i = 0; i < salmanager.length; i++) {
  2426.                             if (salmanager[i].length > 3) {
  2427.      
  2428.                                 var zmy = saloname(salmanager[i]);
  2429.                                 resux += "<div onclick=salongo(" + (400 + i) + "); " + roug + " style='position:absolute;text-align:left;width:210;height:18;background-color:" + coum[uu8 % 2] + ";top:" + decalix + ";left:20;'>" + zmy;
  2430.                                 resux += "<div style='position:absolute;top:0;left:190;'>" + salco[publo + privo + mgo + i] + "</div><br></div>";
  2431.                                 decalix += 18;
  2432.                                 uu8++;
  2433.                             }
  2434.                         }
  2435.      
  2436.                         decalix += 20;
  2437.                         resux += "<div  style='position:absolute;top:" + decalix + ";left:10;'>Liste des salons TriVox</div>";
  2438.                         decalix += 18;
  2439.                         var uu8 = 0;
  2440.                         for (i = 0; i < salsecret.length; i++) {
  2441.                             if (salsecret[i].length > 3) {
  2442.                                 if (mystat > 5)
  2443.                                     resux += "<div " + roug + " onclick=changanam(" + (300 + i) + ");this.style.visibility='hidden' style='position:absolute;top:" + decalix + ";left:10;'>©</div>";
  2444.                                 resux += "<div onclick=salongo(" + (300 + i) + "); " + roug + " style='position:absolute;text-align:left;width:200;height:16;background-color:" + couc[uu8 % 2] + ";top:" + decalix + ";left:30;'><sup style='font-weight:normal;'>Vox</sup> " + salsecret[i].substring(0, salsecret[i].length - 2);
  2445.                                 resux += "<div style='position:absolute;top:0;left:180;'>" + salco[publo + privo + i] + "</div></div>";
  2446.                                 decalix += 16;
  2447.                                 uu8++;
  2448.                             }
  2449.                         }
  2450.      
  2451.                         decalix += 20;
  2452.                         resux += "<div style='position:absolute;top:" + decalix + ";left:10;width:230;height:65;background-color:e3dff7;'>Créez un salon";
  2453.                         resux += "<input type=text id='crex' onmousedown=nofocus(); MAXLENGTH=14 style='position:absolute;left:20;top:20;width:140;'><div align=center onclick=creaprivo(); style='position:absolute;top:23;left:170;width:50;background-color:ffffff;" + niro + ";'>Créer</div>";
  2454.                         decalix += 42;
  2455.                         resux += "<div style='position:absolute;top:42;left:5;font-weight:normal;'><INPUT type='checkbox' id='managis' >Manager</div>";
  2456.      
  2457.                         resux += "<div id='trivoz' style='position:absolute;top:42;left:95;font-weight:normal;''><INPUT type='checkbox' id='trivor'>triVox</div>";
  2458.      
  2459.                         resux += "<div style='position:absolute;top:42;left:170;font-weight:normal;'><INPUT type='checkbox' id='authis' >Auth</div>";
  2460.                         resux += "</div>";
  2461.      
  2462.                         decalix += 30;
  2463.                         resux += "<div  style='position:absolute;top:" + decalix + ";left:10;'>Liste des salons privés</div>";
  2464.      
  2465.                         decalix += 18;
  2466.      
  2467.                         var gns = 0;
  2468.                         for (i = 0; i < salpriv.length; i++) {
  2469.      
  2470.                             var hmo = "onclick=salongo(" + (i + 200) + "); ";
  2471.                             if (salpriv[i].length < 3) {
  2472.                                 //vide
  2473.                             } else {
  2474.                                 var zmy = saloname(salpriv[i]);;
  2475.      
  2476.                                 if (mystat > 5)
  2477.                                     resux += "<div " + roug + " onclick=changanam(" + (i + 200) + ");this.style.visibility='hidden' style='position:absolute;top:" + decalix + ";left:10;'>©</div>";
  2478.      
  2479.                                 resux += "<div " + hmo + " " + vert + " style='position:absolute;text-align:left;width:200;height:16;background-color:" + couc[gns % 2] + ";top:" + decalix + ";left:30;'>" + zmy;
  2480.                                 resux += "<div style='position:absolute;top:0;left:180;'>" + salco[publo + i] + "</div></div>";
  2481.                                 decalix += 16;
  2482.                                 gns++;
  2483.                             }
  2484.      
  2485.                         }
  2486.                     }
  2487.                     decalix += 10;
  2488.                     resux += "<div style='position:absolute;top:" + decalix + ";'>&nbsp;</div>";
  2489.      
  2490.                     document.getElementById("salox").innerHTML = resux;
  2491.      
  2492.                     if (timz1 < 5)
  2493.                         document.getElementById("salox").style.visibility = "visible";
  2494.      
  2495.                     permito = 0;
  2496.                     //agir("78");
  2497.                 }
  2498.      
  2499.                 if (olko == 99) {
  2500.                     var bud = parseInt(urlo.substring(2, 5));
  2501.      
  2502.      
  2503.                     if (bud == 432) {
  2504.                         errora(4000, 300, 150, "Vous devez etre authentifié par Tel ou etre Premium<br>pour rentrer dans ce salon", 280);
  2505.                         setTimeout("profilum()", 3000);
  2506.                     }
  2507.      
  2508.                     if (bud == 443)
  2509.                         exige("Compte restreint :");
  2510.      
  2511.                     if (bud == 447)
  2512.                         errora(30000, 250, 150, transformix(urlo.substring(5), -1, 0), 350);
  2513.      
  2514.                     if (bud == 444)
  2515.                         errora(4000, 300, 150, transformix(urlo.substring(5), -1, 0), 280);
  2516.      
  2517.                     if (bud == 445)
  2518.                         errora(8000, 200, 130, transformix(urlo.substring(5), -23, 0, 7), 320);
  2519.      
  2520.                     if (bud == 442) {
  2521.                         errora(6000, 300, 150, "Vous avez atteint votre quota d'envoi d'images.<br>Authentifiez vous ou achetez un pack premium", 280);
  2522.                         autbar(1);
  2523.                     }
  2524.      
  2525.                     if (bud == 557)
  2526.                         creatab(urlo.substring(19), urlo.substring(11, 13), urlo.substring(13, 18), urlo.substring(18, 19), urlo.substring(5, 11), 0, 5);
  2527.      
  2528.                     if (bud == 649) {
  2529.                         infor = urlo.substring(5);
  2530.      
  2531.                         //alert("VIDICBIS"+infor);
  2532.                         ecrire("samedi", infor);
  2533.                         crocu();
  2534.                         myavatar = infor.substring(0, 9);
  2535.                         mypass = infor.substring(9);
  2536.                         firsty();
  2537.      
  2538.                     }
  2539.                     if (bud == 222) {      
  2540.                         tabmessage[ongleto] += "<span onclick=window.open('" + base + "chat/" + urlo.substring(5, 9) + ".html?" + urlo.substring(9) + "','zzz" + tabnickID[ongleto] + "','status=yes,toolbar=no,location=yes,scrollbars=no,resizable=yes,width=600,height=700'); style='" + c12 + "'>FICHE</span><br>";
  2541.                         ecritab("", ongleto);
  2542.                     }
  2543.      
  2544.                     if (bud == 553) {
  2545.      
  2546.                         //urlo=ReplaceAll(urlo,"`","\n");
  2547.                         var urla = "";
  2548.                         var szs = urlo.indexOf("`");
  2549.                         var toilia = urlo.indexOf("*");
  2550.                         var avux = urlo.substring(5, toilia);
  2551.                         var sz1 = toilia + 1;
  2552.                         var cont = 0;
  2553.                         var pasti = "";
  2554.                         while (szs > -1) {
  2555.                             var ww1 = urlo.substring(sz1, szs);
  2556.                             urla += ww1 + "\n";
  2557.                             var cud = ww1.substring(0, 2);
  2558.      
  2559.                             var fkf = false;
  2560.                             if (ww1.length == 9)
  2561.                                 if (!isNaN(ww1))
  2562.                                     fkf = true;
  2563.                             var qlp = 0;
  2564.                             if (ww1.indexOf("=") > -1)
  2565.                                 qlp = 3;
  2566.                             if ((cud == 13) || (cud == 15) || (cud == 33) || (fkf))
  2567.                                 pasti += divon(y, 5, cont * 16 + 34, 14, 14, "ddddaa", "font-size:1;' onmousedown=document.getElementById('fichex').value='" + ww1.substring(qlp) + "';fetchum();", "");
  2568.      
  2569.                             cont++;
  2570.                             sz1 = szs + 1;
  2571.                             szs = urlo.indexOf("`", sz1);
  2572.                         }
  2573.                         if (sz1 > 0)
  2574.                             urla += urlo.substring(sz1);
  2575.      
  2576.                         var mmd = "<input type=text id=fichex VALUE=" + avux + " onkeydown='if(event.keyCode==13){fetchum()};'  onmousedown=nofocus(); style='position:absolute;top:2;left:2;font-family:" + fixpol + ";width:160;'><div onclick=fetchum(); style='position:absolute;top:5;left:180;width:60;height:20;'>Fetch</div><div onclick=fichez('" + avux + "'); style='position:absolute;top:5;left:250;'>Sauver</div><br>";
  2577.                         mmd += "<TEXTAREA id='fica' onmousedown=nofocus(); style='position:absolute;top:30;left:25;width:280;height:250;font-size:13;font-family:courier new;'>" + urla + "</TEXTAREA>" + pasti;
  2578.                         disp(-1, 70, 40, mmd, 320, 290, "cccccc", true);
  2579.                         //errora(50000,70,50,mmd,300);
  2580.                     }
  2581.      
  2582.                     if (bud == 556) {
  2583.                         minitimo();
  2584.                         clearTimeout(stopserv);
  2585.                         stopserv = setTimeout("lancetimer()", 4000);
  2586.      
  2587.                         if (finito > 0) {
  2588.                             timz1 = 0;
  2589.                             joko = 0;
  2590.                             agir("92" + mysalon);
  2591.                             tentat = 654321;
  2592.                         } else {
  2593.                             var ind = 0;
  2594.                             var ind2 = 0;
  2595.                             var ind3 = 0;
  2596.                             var tro = true;
  2597.                             mystat = parseInt(urlo.substring(6, 7));
  2598.                             myXP = parseInt(urlo.substring(5, 6));
  2599.                             myver = parseInt(urlo.substring(7, 8));
  2600.      
  2601.                             if (myver > 3) {
  2602.                                 reche();
  2603.                                 document.getElementById("critero").innerHTML = rechum;
  2604.                             }
  2605.      
  2606.                             if (mystat > 5) {
  2607.                                 warni = "<div onclick=warno();>alert</div>";
  2608.                                 document.getElementById("babaw").innerHTML = warni;
  2609.                                 warna = "visible";
  2610.                                 document.getElementById("babaw").style.visibility = warna;
  2611.                             }
  2612.                             var hzy = 9;
  2613.                             var jok = 0;
  2614.                             while (tro) {
  2615.                                 var ght = true;
  2616.                                 ind = urlo.indexOf("#", hzy);
  2617.                                 ind2 = urlo.indexOf("{", hzy);
  2618.                                 ind3 = urlo.indexOf("}", hzy);
  2619.      
  2620.                                 salpubok[jok] = 0;
  2621.                                 if ((ind2 > 0) && (ind2 < ind)) {
  2622.                                     ind = ind2;
  2623.                                     salpubok[jok] = 1;
  2624.                                 }
  2625.                                 if ((ind3 > 0) && (ind3 < ind)) {
  2626.                                     ind = ind3;
  2627.                                     salpubok[jok] = 2;
  2628.                                 }
  2629.      
  2630.                                 if (ind > 0) {
  2631.                                     salpub[jok] = transformix(urlo.substring(hzy, ind), -1, 0);
  2632.      
  2633.                                     allsalon[100 + jok] = salpub[jok];
  2634.                                     if (salpub[jok].indexOf("--") > 0)
  2635.                                         salpub[jok] = "<sup style='font-weight:normal;'>vox</sup> " + salpub[jok].substring(0, salpub[jok].length - 2);
  2636.      
  2637.      
  2638.                                     jok++;
  2639.                                     hzy = ind + 1;
  2640.                                 } else {
  2641.                                     tro = false;
  2642.                                     var fdl = urlo.indexOf("*", hzy);
  2643.                                     mymail = urlo.substring(hzy, fdl);
  2644.      
  2645.                                     mycrypt3 = urlo.substring(fdl + 1, fdl + 13);
  2646.                                     nbsms = parseInt(urlo.substring(fdl + 13, fdl + 17)) - 1000;
  2647.                                     var dpy = urlo.indexOf("$", fdl);
  2648.                                     try {
  2649.                                         mysms = urlo.substring(fdl + 17, dpy);
  2650.                                         var dpx = urlo.indexOf("!", fdl);
  2651.                                         mytime = urlo.substring(dpy + 2, dpx);
  2652.                                         neutri = urlo.substring(dpy + 1, dpy + 2);
  2653.                                         dpy = urlo.indexOf("^", fdl);
  2654.                                         if (dpy > -1) {
  2655.                                             myblog = urlo.substring(dpx + 1, dpy);
  2656.                                             mynickname = urlo.substring(dpy + 1);
  2657.                                         } else
  2658.                                             myblog = urlo.substring(dpx + 1);
  2659.      
  2660.                                     } catch (exf) {}
  2661.                                     setTimeout("agix(urlav+myage+mysex+parami[3]+myavatar+mynickID+monpass+mycrypt3,4)", 1800);
  2662.      
  2663.                                 }
  2664.                             }
  2665.                             searchnow();
  2666.                             setTimeout("actuam()", 1500);
  2667.                             setTimeout("adblock()", 500);
  2668.                             setTimeout("reka()", 50);
  2669.                             var shio = "000";
  2670.                             var shia = "0";
  2671.                             if (!fullopen) {
  2672.                                 shia = "1";
  2673.                                 shio = "100";
  2674.                             }
  2675.      
  2676.                             if (config != null)
  2677.                                 if (config.length > 11) {
  2678.                                     var szh = config.indexOf("gemax:");
  2679.                                     if (szh > -1) {
  2680.                                         agemax = config.substring(szh + 6, szh + 8);
  2681.                                         filtram = "max:" + agemax;
  2682.                                     } else if (config.indexOf("ecs-") > -1) {
  2683.                                         noman = true;
  2684.                                         filtram = "no mecs";
  2685.                                         shio = shia + "33";
  2686.                                     } else if (config.indexOf("oPV-") > -1) {
  2687.                                         nopive = 1;
  2688.                                         filtram = "no PV";
  2689.                                         errora(4000, 325, 80, "Vous etes en mode no PV<br>désactivez ce mode si vous voulez recevoir des mess.", 320);
  2690.                                         shio = shia + "11";
  2691.                                     }
  2692.      
  2693.                                     if (shio != "000")
  2694.                                         setTimeout("agir('43" + shio + "')", 2500);
  2695.      
  2696.                                     if (!fullopen)
  2697.                                         if ((mysex % 5) == 1)
  2698.                                             messig("Vous avez le bouclier activé. cela filtre vos contacts, attention");
  2699.                                     document.getElementById("optg1").innerHTML = "&nbsp;" + filtram;
  2700.                                 }
  2701.                         }
  2702.                     }
  2703.                     if (bud == 555) {
  2704.                         var urlu = transformix(urlo.substring(5, urlo.length), -1, 0);
  2705.                         var hsx = urlu.indexOf("salon:");
  2706.                         var jqp = parseInt(urlu.substring(hsx + 7, hsx + 10));
  2707.                         if (jqp > 99)
  2708.                             urlu = urlu.substring(0, hsx + 7) + "<span onclick=salongo(" + jqp + "); style='" + c16 + "cursor:pointer;'>" + allsalon[jqp] + "</span> " + urlu.substring(hsx + 10);
  2709.      
  2710.                         tabmessage[ongleto] += "<span style='" + c12 + "'>" + urlu + "</span><br>";
  2711.                         ecritab("", ongleto);
  2712.      
  2713.                     }
  2714.                     if (bud == 333)
  2715.                         encoin(urlo.substring(5));
  2716.      
  2717.                     if (bud == 550) {
  2718.                         tabmessage[ongleto] += "<span style='" + c12 + "'>" + transformix(urlo.substring(5, urlo.length), -1, 0) + "</span><br>";
  2719.                         ecritab("", ongleto);
  2720.                     }
  2721.      
  2722.      
  2723.      
  2724.                     var buw = parseInt(urlo.substring(5, urlo.length));
  2725.      
  2726.      
  2727.                     if (bud == 100) {
  2728.                         errora(4000, 300, 150, "vous devez attendre " + buw + " secondes avant de changer de salon", 180);
  2729.                     }
  2730.                     //if(bud==167)
  2731.                     //errora(4000,300,150,"vous devez attendre "+buw+" minutes pour rentrer dans ce salon",180);
  2732.      
  2733.                     if (bud == 173)
  2734.                         errora(1000, 300, 150, "vous devez attendre " + buw + " secondes pour voter", 180);
  2735.                     if (bud == 174)
  2736.                         errora(1000, 300, 150, "quota de vote dépassé", 180);
  2737.                     if (bud == 300) {
  2738.                         errora(4000, 300, 150, "vous devez attendre " + buw + " secondes avant de créer un nouveau salon privé", 180);
  2739.                     }
  2740.      
  2741.                     if (bud == 888) {
  2742.                         if (mysalind > -1) {
  2743.                             tabmessage[mysalind] += "<br><br>Vous avez étés déconnectés du salon de discussion.<br>fermez cet onglet et ouvrez un nouvel onglet de salon";
  2744.                             ecritab("", ongleto);
  2745.                         }
  2746.                     }
  2747.                     if (bud == 147) {
  2748.                         infor = "" + (randum(890000000) + 100000001) + "" + (randum(890000000) + 100000001);
  2749.                         ecrire("samedi", infor);
  2750.                         crocu();
  2751.                         //clearTimeout(stopserv);
  2752.                         errora(20000, 300, 50, "<br><br>Vous avez perdu votre profil car quelqu'un se connecte avec le meme profil sur un autre PC<br>si vous etes le propriétaire légitime de votre profil reconnectez vous en vue d'une authentification", 220);
  2753.                     }
  2754.      
  2755.      
  2756.                     if (bud == 148)
  2757.                         top.location = base + "payplainte.html?" + myavatar + "#" + urlo.substring(14);
  2758.      
  2759.                     if (bud == 149)
  2760.                         top.location = urlo.substring(5);
  2761.      
  2762.                     if (bud == 165) {
  2763.                         errora(8000, 300, 50, "vous ne pouvez plus parler pendant : " + buw + " secondes (cause: flooding = trop de messages)", 220);
  2764.                         //tuemoi();
  2765.                     }
  2766.                     if (bud == 166) {
  2767.                         errora(3000, 300, 50, "vous devez attendre " + buw + " secondes avant envoi (bridage nouveaux arrivants,patience)", 220);
  2768.                     }
  2769.      
  2770.                     if (bud == 168) {
  2771.                         //top.location = "http://www.joker.net";
  2772.                     }
  2773.                     if (bud == 413) {
  2774.                         errora(4000, 300, 50, "vous avez été bannis de ce salon pour une durée de : " + buw + " secondes", 220);
  2775.      
  2776.                     }
  2777.      
  2778.                     if (bud == 801) {
  2779.                         errora(4000, 300, 150, "vous venez de vous faire bannir du salon", 180);
  2780.                     }
  2781.                 }
  2782.      
  2783.                 if (olko == 92) {
  2784.                     if (tentat < 10000) {
  2785.                         blax = 0;
  2786.                         if (microok)
  2787.                             microok = false;
  2788.                         mygain = 50;
  2789.                         document.getElementById("special").innerHTML = "";
  2790.                         document.getElementById("special").zIndex = 0;
  2791.      
  2792.                         document.getElementById("hpx").innerHTML = "";
  2793.                         document.getElementById("hpx2").innerHTML = "";
  2794.                         document.getElementById("hpx3").innerHTML = "";
  2795.                         document.getElementById("hpx4").innerHTML = "";
  2796.                         document.getElementById("hpx5").innerHTML = "";
  2797.                         quinte = false;
  2798.      
  2799.                         var savoo = mysalon;
  2800.                         if (mysalind > -1) {
  2801.                             deletonglet(mysalind);
  2802.      
  2803.                         }
  2804.                         arivo = true;
  2805.                         mysalon = savoo;
  2806.      
  2807.                         voxeus = false;
  2808.                         if (mysaloname.indexOf('--') > 0) {
  2809.                             document.getElementById("hpx").innerHTML = flasher("HP1991", 5, 5);
  2810.                             document.getElementById("voxz").innerHTML = "Kill";
  2811.      
  2812.                             if (mysaloname.indexOf('-3') > 0) {
  2813.                                 quinte = true;
  2814.                                 mutemic = true;
  2815.                                 document.getElementById("hpx2").innerHTML = flasher("HP1992", 5, 5);
  2816.                                 document.getElementById("hpx3").innerHTML = flasher("HP1993", 5, 5);
  2817.                                 activox(0);
  2818.                             }
  2819.                             if (mysaloname.indexOf('-5') > 0) {
  2820.                                 quinte = true;
  2821.                                 mutemic = true;
  2822.                                 document.getElementById("hpx2").innerHTML = flasher("HP1992", 5, 5);
  2823.                                 document.getElementById("hpx3").innerHTML = flasher("HP1993", 5, 5);
  2824.                                 document.getElementById("hpx4").innerHTML = flasher("HP1994", 5, 5);
  2825.                                 document.getElementById("hpx5").innerHTML = flasher("HP1995", 5, 5);
  2826.                                 activox(0);
  2827.                             }
  2828.      
  2829.                             voxeus = true;
  2830.                             voxtimer();
  2831.      
  2832.                         } else {
  2833.      
  2834.                             document.getElementById("hpx").innerHTML = "";
  2835.                             document.getElementById("hpx2").innerHTML = "";
  2836.                         }
  2837.      
  2838.                         if (modex == 0) {
  2839.                             larzone = widx - 97;
  2840.                             if (voxeus)
  2841.                                 larzone = widx - 250;
  2842.                         } else {
  2843.                             larzone = widx;
  2844.                             if (voxeus)
  2845.                                 larzone = widx - 168;
  2846.                         }
  2847.                         document.getElementById("cocoa").style.width = larzone;
  2848.      
  2849.                         solicited = true;
  2850.                         creatab(mysaloname, mysalon, 0, 0, mysalon, 0, 0);
  2851.                         document.getElementById("questi").innerHTML = "";
  2852.                     } else
  2853.                         tentat = 0;
  2854.                 }
  2855.      
  2856.                 if (olko == 37) {
  2857.                     autox = 500;
  2858.                     document.getElementById("babar").innerHTML = "";
  2859.                     errora(5000, 150, 180, "<br>Authentification réussie<br>Bon Tchat", 350);
  2860.                     myver = 1;
  2861.                 }
  2862.      
  2863.                 if (olko == 29) {
  2864.                     if (mypass.length != 20) {
  2865.                         mypass = urlo.substring(2);
  2866.                         infor = "" + myavatar + "" + mypass;
  2867.                         ecrire("samedi", infor);
  2868.                         crocu();
  2869.                     }
  2870.                 }
  2871.      
  2872.                 if (olko == 31) {
  2873.                     var nbx = urlo.substring(2);
  2874.                     if (nbx > 0) {
  2875.                         document.getElementById("blogo").innerHTML = "Blog : " + nbx + " &laquo;";
  2876.                         document.getElementById("blogo").style.visibility = "visible";
  2877.                     }
  2878.                 }
  2879.      
  2880.                 if (olko == 39) {
  2881.                     infor = "NOUVEAU";
  2882.                     //ecrire("samedi", infor);
  2883.                     crocu();
  2884.                     setTimeout("tuemoi('bug sur cookie.contactez un operateur avec le diagnostic" + infor + "')", 1500);
  2885.      
  2886.                 }
  2887.      
  2888.                 if (olko == 95) {
  2889.                     var yon = urlo.indexOf("@", 0);
  2890.                     var lengus = urlo.length;
  2891.                     var phraz = urlo.substring(2, yon);
  2892.      
  2893.                     if (focuz) {
  2894.                         raz();
  2895.                     }
  2896.      
  2897.                     var kopo = 0;
  2898.                     var thc = 0;
  2899.                     var kopi = 0;
  2900.                     var pseuz = "";
  2901.                     var messiz = "";
  2902.                     var messaz = "";
  2903.                     var expoz = "";
  2904.      
  2905.                     pubad++;
  2906.                     if (pubad > 250)
  2907.                         pubad = 0;
  2908.      
  2909.                     if (pubad == 90) {
  2910.                         //descendo(); pause
  2911.                     }
  2912.                                    
  2913.                     kopi = phraz.indexOf('#', thc);
  2914.                     kopo = phraz.indexOf('#', kopi + 1);
  2915.                     while (kopo > 0) {
  2916.                         var xog = -1;
  2917.                         var exto = "";
  2918.                             pseuz = phraz.substring(thc + 17, kopi);
  2919.                             messaz = phraz.substring(kopi + 2, kopo);
  2920.                             var nivx = parseInt(phraz.substring(thc + 14, thc + 15));
  2921.                             var statx = parseInt(phraz.substring(thc + 15, thc + 16));
  2922.                             var verx = parseInt(phraz.substring(thc + 16, thc + 17));
  2923.                             var infx = phraz.substring(thc, thc + 17);
  2924.                                                    
  2925.                             if (mysalind > -1)
  2926.                                 xog = statx;
  2927.      
  2928.                             messiz = transformix(messaz, tabnickID[mysalind], verx, statx);
  2929.                             if (pseuz.indexOf("(") > -1)
  2930.                                 pseuz = pseuz.substring(0, pseuz.length - 3);
  2931.                             infx += pseuz;
  2932.                                                    
  2933.                                                     if (shouldFilter(pseuz))
  2934.                                                             messiz = "Message ignoré.";
  2935.                                                    
  2936.                                                     expoz = "<SUP>" + nivx + "</SUP>";
  2937.                             if (expoz.indexOf('0') != -1)
  2938.                                 expoz = "";
  2939.      
  2940.                             var moodz = messiz.indexOf('-1-');
  2941.                             if (moodz > -1) {
  2942.                                 if (((nivx > 3) && (moodz < (nivx + 1))) || (nivx == 9)) {
  2943.                                     if (moodz > 1)
  2944.                                         expoz = "<SUP>" + messiz.substring(0, moodz) + "</SUP>";
  2945.                                     messiz = messiz.substring(moodz + 3, messiz.length);
  2946.                                 }
  2947.      
  2948.                             }
  2949.                                                     var normalo = 0;
  2950.                             var messart = messiz.indexOf('{bb');
  2951.                             if (messart > -1) {
  2952.                                 messiz = messiz.replace("{bb", " ");
  2953.                                 tabmessage[mysalind] += "<span style='" + c12 + "'>" + pseuz + messiz + "</span><br>";
  2954.                                                             normalo = 1;
  2955.                             }
  2956.                             var hys = messaz.indexOf("&E");
  2957.                             if (hys > -1) {
  2958.                                 tabmessage[mysalind] += "<span>" + messaz.substring(hys + 2) + "</span><br>";
  2959.                             }
  2960.                             var mimiz = messiz.indexOf('{4{');
  2961.                             if (mimiz > -1) {
  2962.                                 var mwu = messaz.indexOf("*");
  2963.                                 messaz = "_2" + messaz.substring(mimiz + 3, mwu); //+messiz.substring(mwu+1,mwu+5);
  2964.                                 messiz = transformix(messaz, -23, 0);
  2965.                             }
  2966.                             var mequiz = messiz.indexOf('{qu');
  2967.                             if (mequiz > -1) {
  2968.                                 var messo = messiz.indexOf('{8{');
  2969.                                 if (messo > -1) {
  2970.                                     reponsu = messiz.substring(messo + 3, messiz.length);
  2971.                                     messiz = messiz.substring(0, messo);
  2972.                                 }
  2973.                                 timquest = timz1;
  2974.                                 var largj = 900;
  2975.                                 var hautj = 700;
  2976.                                 //document.getElementById("questi").style.zIndex=50;
  2977.                                 kezako = messiz.substring(3, messiz.length);
  2978.                                 document.getElementById("questi").innerHTML = "<div style='position:absolute;font-size:11;line-height:0.95em;background-color:ffffff;padding:4;'>" + kezako + " : " + reponsu + "</div>";
  2979.                                                             normalo = 1;
  2980.                             }
  2981.                             if (messiz.indexOf('<img on') > -1) {
  2982.                                 exto = messiz;
  2983.                                 messiz = "fichier:..............";
  2984.                             }
  2985.                             if ((pseuz.indexOf(mynickname) > -1) || (messiz.toLowerCase().indexOf(mylownick) > -1)) {
  2986.                                 messiz = "<b>" + messiz + "</b>";
  2987.                             }
  2988.                             if (messiz.toLowerCase().indexOf(mylownick) > -1) {
  2989.                                 document.getElementById(tabdiva[mysalind]).style.backgroundColor = "ffffff";
  2990.                             }
  2991.                                                     var mycol = phraz.substring(kopi + 1, kopi + 2);
  2992.                                                     var mycal = mycol.charCodeAt(0) - 65;
  2993.                                                     if ((mycal < 0) || (mycal > 16)) {
  2994.                                                             mycol = "A";
  2995.                                                             mycal = 0;
  2996.                                                     }
  2997.                                                     if (normalo == 0)
  2998.                                                     {
  2999.                                                             var currentdate = new Date();
  3000.                                                             var datetime = showTimeAndDate ? (currentdate.toLocaleDateString() + " @ " + currentdate.toLocaleTimeString() + " - ") : "";
  3001.                                                             tabmessage[mysalind] += "<span id=tx" + blix + " " + onmousa('ffffff', '') + " onmousedown=righty(event," + blix + "); onmouseup=clicum(" + blix + ");><span style='" + c11 + "'>" + datetime + pseuz + expoz + ": </span><span style='" + spn + "color:" + salcoul[mycal] + ";'  >" + messiz + "</span></span>" + exto + "<br>";
  3002.                                                             //alert(blix);
  3003.                                                             correspo[blix] = infx;
  3004.                                                             blix++;
  3005.                                                             if (blix > 800)
  3006.                                                                     blix = 0;
  3007.                                                     }
  3008.                         thc = kopo + 1;
  3009.                         kopi = phraz.indexOf('#', kopo + 1);
  3010.                         if (kopi > 0)
  3011.                             kopo = phraz.indexOf('#', kopi + 1);
  3012.                         else
  3013.                             kopo = -1;
  3014.                     }
  3015.      
  3016.                     if (ongleto == mysalind) {
  3017.                         document.getElementById("textum").innerHTML = tabmessage[mysalind] + "<br>";
  3018.      
  3019.                         if (stopdef == 0) {
  3020.                             scrolly();
  3021.                         } else
  3022.                             stopdef = 0;
  3023.                     }
  3024.                     if (lengus > (yon + 4)) {
  3025.                         olko = 66;
  3026.                         urlo = urlo.substring(yon + 1);
  3027.      
  3028.                     }
  3029.                     if (blax == 1) {
  3030.                         blax = 0;
  3031.                         if ((blex < blix) && (ongleto == mysalind))
  3032.                             document.getElementById("tx" + blex).style.backgroundColor = highlit;
  3033.                     } else
  3034.                         blex = blix;
  3035.                 }
  3036.                 if (olko == 19)
  3037.                     demelux(urlo.substring(2));
  3038.      
  3039.                 if (olko == 24) {
  3040.                     var fhl = "";
  3041.                     var kk = 0;
  3042.                     var qqb = 2;
  3043.                     var stk = urlo.indexOf("*", qqb);
  3044.                     var stavox = "Mic On";
  3045.                     presso = 25;
  3046.                     if (microok)
  3047.                         mygain = 0;
  3048.                     if (stk > 0) {
  3049.      
  3050.                         var preza = false;
  3051.                         onthelist = false;
  3052.                         while (stk > 0) {
  3053.                             vox[kk] = urlo.substring(qqb, 6 + qqb);
  3054.                             voxhp[kk] = urlo.substring(6 + qqb, 7 + qqb);
  3055.                             voxmic[kk] = urlo.substring(7 + qqb, 8 + qqb);
  3056.                             voxnam[kk] = urlo.substring(8 + qqb, stk);
  3057.                             if (voxnam[kk].length < 2)
  3058.                                 voxnam[kk] = "test";
  3059.      
  3060.                             if (vox[kk] == mynickID) {
  3061.                                 preza = true;
  3062.                                 onthelist = true;
  3063.                             }
  3064.      
  3065.                             var vioz = "";
  3066.                             if (quinte)
  3067.                                 if (voxnam[kk].indexOf("#") > -1) {
  3068.                                     voxnam[kk] = voxnam[kk].substring(0, voxnam[kk].length - 1);
  3069.                                     vioz = "color:cc00cc;";
  3070.                                 }
  3071.      
  3072.                             if (mystat > 5)
  3073.                                 fhl += "<div style='position:absolute;top:" + (kk * 15 + yfont) + ";left:0;'><div onmousedown=volx(event," + kk + ",10); style='position:absolute;left:1;'>" + voxhp[kk] + "</div><div onmousedown=volx(event," + kk + ",1); style='position:absolute;left:9;color:cc0000;'>" + voxmic[kk] + "</div><div ondblclick=agir('93" + vox[kk] + "'); onmousedown=killus(event," + kk + "); style='position:absolute;left:22;" + vioz + "'>" + voxnam[kk] + "</div></div>";
  3074.                             else
  3075.                                 fhl += "<div ondblclick=agir('93" + vox[kk] + "'); onmouseup=killus(event," + kk + "); style='position:absolute;top:" + (kk * 15 + yfont) + ";left:3;" + vioz + "'>" + voxnam[kk] + "</div>";
  3076.      
  3077.                             qqb = stk + 1;
  3078.                             stk = urlo.indexOf("*", qqb);
  3079.                             kk++;
  3080.                         }
  3081.                         if ((preza) && (kk > 0)) {
  3082.                             presso = 28;
  3083.                             stavox = "Mic Off";
  3084.                         }
  3085.                         for (i = 0; i < 5; i++) {
  3086.                             strima[i] = vox[i] + voxhp[i];
  3087.                         }
  3088.                         if (vox[0] == mynickID) {
  3089.                             stavox = "Speaking";
  3090.      
  3091.                         }
  3092.                         for (i = 0; i < 5; i++) {
  3093.      
  3094.                             if (vox[i] == mynickID) {
  3095.      
  3096.                                 strima[i] = "551";
  3097.                                 mygain = 10 * parseInt(voxmic[i]);
  3098.                             }
  3099.                             if (kk < (1 + i))
  3100.                                 strima[i] = 0;
  3101.                         }
  3102.                         var lsl = urlo.indexOf("@");
  3103.                         if (lsl > -1)
  3104.                             stavox = urlo.substring(lsl - 2, lsl);
  3105.                     } else
  3106.                         for (i = 0; i < 5; i++)
  3107.                             strima[i] = 0;
  3108.      
  3109.                     document.getElementById("voxo").innerHTML = stavox;
  3110.                     document.getElementById("voxa").innerHTML = fhl;
  3111.                 }
  3112.      
  3113.      
  3114.                 if (olko == 90) {
  3115.                     document.getElementById("babar").innerHTML = "";
  3116.                     var yyg = (urlo.length - 2) / 7;
  3117.                     var qqb;
  3118.                     var qqk;
  3119.      
  3120.                     if (yyg > 0) {
  3121.                         for (i = 0; i < yyg; i++) {
  3122.                             qqb = parseInt(urlo.substring(2 + 7 * i, 3 + 7 * i));
  3123.                             qqk = parseInt(urlo.substring(3 + 7 * i, 9 + 7 * i), 10);
  3124.      
  3125.                             for (j = 0; j < currentab; j++) {
  3126.                                 if (tabnickID[j] == qqk) {
  3127.                                     if (qqb == 0) {
  3128.                                         tabcoul[j] = "505064";
  3129.                                         document.getElementById(tabdiva[j]).style.backgroundColor = tabcoul[j];
  3130.      
  3131.                                     } else {
  3132.                                         if (tabcoul[j].indexOf("505064") > -1) {
  3133.                                             tabcoul[j] = colotab[1];
  3134.                                             document.getElementById(tabdiva[j]).style.backgroundColor = tabcoul[j];
  3135.                                         }
  3136.                                     }
  3137.                                 }
  3138.                             }
  3139.                             if (qqb == 0) {
  3140.                                 for (j = 0; j < ffID.length; j++) {
  3141.                                     if (ffID[j] == qqk) {
  3142.                                         ffage[j] = 99;
  3143.                                     }
  3144.                                 }
  3145.                             }
  3146.                         }
  3147.                     }
  3148.                 }
  3149.                 if (olko == 94) {
  3150.      
  3151.                     exige("Cet utilisateur exige que vous soyez authentifié (processus totalement gratuit)");
  3152.                     olko = 967;
  3153.                 }
  3154.      
  3155.                 if (olko == 98) {
  3156.                     if (taboqp[ongleto] == 0) {
  3157.                         document.getElementById("nopvs").innerHTML = "No PV";
  3158.                         document.getElementById("nopvs").style.visibility = "visible";
  3159.                     }
  3160.                     taboqp[ongleto] = 1;
  3161.                     olko = 967;
  3162.                 }
  3163.      
  3164.                 if (olko == 96) {
  3165.                     if (taboqp[ongleto] == 0) {
  3166.                         document.getElementById("nopvs").innerHTML = "No Mecs";
  3167.                         document.getElementById("nopvs").style.visibility = "visible";
  3168.                     }
  3169.                     taboqp[ongleto] = 2;
  3170.                     olko = 967;
  3171.                 }
  3172.                 if (olko == 97) {
  3173.                     olko = 967;
  3174.                     if (taboqp[ongleto] > 0) {
  3175.                         document.getElementById("nopvs").style.visibility = "hidden";
  3176.                     }
  3177.                     taboqp[ongleto] = 0;
  3178.                 }
  3179.      
  3180.                 if (olko == 66) {
  3181.                     olko = 967;
  3182.                 }
  3183.      
  3184.                 if (olko == 48) {
  3185.                     populate(ffage, ffsex, ffcity, ffID, ffnom, ffniv, ffstat, ffok, urlo, 0);
  3186.                     amiga();
  3187.                 }
  3188.                 if (olko == 967) {
  3189.                     hzq = 3;
  3190.                     //var hzy=urlo.indexOf('#',0);
  3191.                     var klk = parseInt(urlo.substring(2, 3));
  3192.                     if (klk < 9) {
  3193.                         var hxz = roulux[klk];
  3194.                                             var currentdate = new Date();
  3195.                                             var datetime = showTimeAndDate ? (currentdate.toLocaleDateString() + " @ " + currentdate.toLocaleTimeString() + " - ") : "";
  3196.                         tabmessage[hxz] += "<span style='" + c10 + "'>" + datetime + mynickname + ": </span><span style='" + c11 + "'>" + roulax[klk] + "</span><br>";
  3197.      
  3198.                         if (hxz == ongleto) {
  3199.                             ecritab("", ongleto);
  3200.                         }
  3201.                     }
  3202.                     //urlo=urlo.substring(hzq+1,urlo.length);
  3203.                     var lengus = urlo.length;
  3204.      
  3205.                     if (lengus > 8) {
  3206.                         var kopo = 0;
  3207.                         var gooi = true;
  3208.                         var coom = 0;
  3209.                         while (kopo == 0) {
  3210.                             var diase = urlo.indexOf('#', hzq) + 1;
  3211.      
  3212.                             if ((diase - hzq) < 9) {
  3213.                                 if (diase < 3) {
  3214.                                     kopo = 1;
  3215.                                     var idgars = parseInt(urlo.substring(hzq, 6 + hzq));
  3216.                                     for (i = 0; i < currentab; i++) {
  3217.                                         if (idgars == tabnickID[i]) {
  3218.                                             tabmessage[i] += "<span style='" + c15 + "'>Cet utilisateur est deconnecté.</span><br>";
  3219.                                             ecritab("", ongleto);
  3220.                                         }
  3221.                                     }
  3222.                                 } else {
  3223.                                     zami = parseInt(urlo.substring(hzq, hzq + 6));
  3224.                                                                     var jjp = reconglet(zami);
  3225.                                                                     if (jjp > -1) {
  3226.                                                                             if ((diase - hzq) == 7) {
  3227.                                                                                     if (tabcoul[jjp].indexOf(colotab[1]) > -1) {
  3228.                                                                                             tabcoul[jjp] = colotab[5];
  3229.                                                                                             document.getElementById(tabdiva[jjp]).style.backgroundColor = colotab[5];
  3230.                                                                                     }
  3231.                                                                                     if (jjp == ongleto) {
  3232.                                                                                             document.getElementById("ecrito").style.visibility = "visible";
  3233.                                                                                     }
  3234.                                                                                     //encoin("entrant"+zami);
  3235.                                                                             } else {
  3236.                                                                                     if (tabcoul[jjp].indexOf(colotab[2]) == -1) {
  3237.                                                                                             tabcoul[jjp] = colotab[1];
  3238.                                                                                             document.getElementById(tabdiva[jjp]).style.backgroundColor = tabcoul[jjp];
  3239.                                                                                     }
  3240.                                                                                     if (jjp == ongleto)
  3241.                                                                                             document.getElementById("ecrito").style.visibility = "hidden";
  3242.                                                                             }
  3243.                                                                     }
  3244.                                 }
  3245.      
  3246.                             } else {
  3247.      
  3248.                                 var toilo = urlo.indexOf("*", hzq);
  3249.                                 var moknickID;
  3250.                                 var mokage;
  3251.                                 var moksex;
  3252.                                 var mokville;
  3253.      
  3254.                                 var mokpseudo;
  3255.      
  3256.                                 toilo = urlo.indexOf("#", hzq);
  3257.                                 mokage = parseInt(urlo.substring(hzq, 2 + hzq));
  3258.                                 moksex = parseInt(urlo.substring(2 + hzq, 3 + hzq));
  3259.                                 mokville = parseInt(urlo.substring(3 + hzq, 8 + hzq), 10);
  3260.                                 moknickID = parseInt(urlo.substring(8 + hzq, 14 + hzq));
  3261.      
  3262.                                 var statq = parseInt(urlo.substring(15 + hzq, 16 + hzq));
  3263.                                 var okb = parseInt(urlo.substring(16 + hzq, 17 + hzq));
  3264.                                 mokpseudo = urlo.substring(17 + hzq, toilo);
  3265.      
  3266.                                 diase = urlo.indexOf("#", toilo + 1) + 1;
  3267.      
  3268.                                 var mokmess = urlo.substring(toilo + 1, diase - 1);
  3269.      
  3270.      
  3271.                                 var acti = mokmess.indexOf('[AX');
  3272.                                 if (acti > -1) {
  3273.                                     acto(mokmess.substring(acti + 3, acti + 4));
  3274.                                 }
  3275.      
  3276.                                 for (i = 0; i < ignora.length; i++) {
  3277.                                     if (moknickID == ignora[i])
  3278.                                         gooi = false;
  3279.      
  3280.                                 }
  3281.                                 if (gooi)
  3282.                                     incomingmessage(moknickID, mokage, moksex, mokville, mokpseudo, mokmess, statq, okb);
  3283.                             }
  3284.                             hzq = diase;
  3285.                             if (hzq > lengus - 3)
  3286.                                 kopo = 1;
  3287.      
  3288.                         }
  3289.      
  3290.                     } else {
  3291.                         if (lengus == 5) {
  3292.                             if (urlo.indexOf("111") > -1)
  3293.                                 tuemoi("redemarrage des serveurs reconnectez vous dans quelques instants");
  3294.                             if (urlo.indexOf("222") > -1) {
  3295.      
  3296.                                 if (timz1 > 10) {
  3297.                                     htmtidy();
  3298.                                     agix(url1 + "40" + mynickname + "*" + myage + (mysex % 5) + parami[3] + myavatar + speco + mypass + "-+-" + mynickID + "?" + timz1, 4);
  3299.                                     timz1 = 0;
  3300.                                 }
  3301.                             }
  3302.                         }
  3303.      
  3304.      
  3305.                     }
  3306.                 }
  3307.             }
  3308.             if (todo.length > 0) {
  3309.                 process1(todo);
  3310.             }
  3311.         } catch (xfx) {}
  3312.     }
  3313.      
  3314.     function opensal(kkh) {
  3315.         solicited = true;
  3316.         var rbk = correspo[kkh];
  3317.         var rbnick = rbk.substring(8, 14);
  3318.      
  3319.         creatab(rbk.substring(17), rbk.substring(0, 2), rbk.substring(3, 8), rbk.substring(2, 3), rbnick, rbk.substring(16, 17), rbk.substring(15, 16));
  3320.     }
  3321.      
  3322.     resizo();
  3323.     genru = 2;
  3324.     yearu = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement