Nom = navigator.appName; ie = (Nom == 'Microsoft Internet Explorer') ? 1:0 ; var inscription_membre_open = false ; var poststring = null ; var form_selected = null ; var grise_first_submit_inscription_membre = true ; var session = null ; var to_addurl = "" ; var to_addcode = "" ; var opened_window = false ; function fermer_inscription_membre() { poststring = null ; form_selected = null ; inscription_membre_open = false ; } function ouvrir_inscription_membre(submitgris,justscript,addurl,addcode,shimiframe_param) { if (document.readyState == "interactive") { alert("Merci d'attendre que la page soit entièrement chargée pour effectuer cette action !"); return false ; } if ((typeof(shimiframe_param) != "undefined")) { shimiframe = shimiframe_param ; } if ((typeof(addurl) != "undefined")) { to_addurl = addurl ; } if ((typeof(addcode) != "undefined")) { to_addcode = addcode ; } if ((submitgris == false) || (typeof(submitgris) == "undefined")) { grise_first_submit_inscription_membre = false ; } if (inscription_membre_open != true) { if (justscript == true) { inscription_membre_box(true) ; } else { inscription_membre_box() ; } inscription_membre_open = true ; } } function inscription_membre_box(justscript) { var new_session = null ; if (session != null) { new_session = session ; session = null ; } var bloc = "" ; if(window.XMLHttpRequest) myajax = new XMLHttpRequest(); else if(window.ActiveXObject) myajax = new ActiveXObject("Microsoft.XMLHTTP"); id_date = new Date(); var newid = id_date.getTime() + "c" + id_date.getHours()+"a"+id_date.getMinutes()+"a"+id_date.getSeconds()+"b"; newid += Math.floor(Math.random()*1000000) ; if (poststring == null) { myajax.open("POST", "http://www.mimichat.com/ajax/inscription_membre.php" + to_addurl, true); to_addurl = "" ; } else { myajax.open("POST", "http://www.mimichat.com/ajax/inscription_membre.php", true); } myajax.onreadystatechange= function() { if (myajax.readyState == 4) { if (myajax.status == 200) { if (myajax.responseText.substring(0,14) == "##JUSTSCRIPT##") { justscript = true ; } bloc = "
fixbug
" + myajax.responseText ; bloc += to_addcode ; to_addcode = "" ; if (justscript == true) { // met a jour les scripts var script_div = document.createElement("div"); script_div.style.display = "none"; document.body.appendChild(script_div); script_div.innerHTML = bloc ; maj_script(script_div) ; document.body.removeChild(script_div) ; justscript = false ; poststring = null ; form_selected = null ; inscription_membre_open = false ; return true ; } justscript = false ; if (poststring == null) { create_box(bloc,"#FFEEEE",6,3,"","",fermer_inscription_membre) ; } else { update_box(bloc) ; } // replace les scripts // maj_script(tmp_obj) ; => remis dans fenetre.js // mise a jour de la form if (ie) { maj_form(submit_form_inscription_membre) ; } else { maj_form("submit_form_inscription_membre") ; } } } } if (poststring != null) { myajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); if (new_session != null) { myajax.setRequestHeader("Set-Cookie", new_session); } } myajax.send(poststring) ; } function startCallback() { return true; } function completeCallback(response) { var thesession = response.split("=") ; thesession = thesession[0] ; session = response ; poststring += "&session_file_ajax=" ; poststring += thesession ; inscription_membre_box() ; } function submit_form_inscription_membre() { var hasfile = false ; // grise le submit if (grise_first_submit_inscription_membre == true) { if (tmp_obj != null) { var form_balise = tmp_obj.getElementsByTagName('form') ; if (form_balise.length != 0) { form_balise = form_balise[0] ; form_selected = form_balise ; var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "submit") { inputs[i].disabled = true ; inputs[i].value = "Veuillez patienter svp ..." ; break ; } } // gere les eventuels file var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "file") { if (inputs[i].value != "") { hasfile = true ; } break ; } } if (hasfile) { form_selected.action = "/ajax/upload.php" ; AIM.submit(form_selected, {'onStart' : startCallback, 'onComplete' : completeCallback}) form_selected.submit() ; } } } } poststring = return_url_form() ; if (hasfile == false) { inscription_membre_box() ; } return false ; } Nom = navigator.appName; ie = (Nom == 'Microsoft Internet Explorer') ? 1:0 ; var connexion_open = false ; var poststring = null ; var form_selected = null ; var grise_first_submit_connexion = true ; var session = null ; var to_addurl = "" ; var to_addcode = "" ; var opened_window = false ; function fermer_connexion() { poststring = null ; form_selected = null ; connexion_open = false ; } function ouvrir_connexion(submitgris,justscript,addurl,addcode,shimiframe_param) { if (document.readyState == "interactive") { alert("Merci d'attendre que la page soit entièrement chargée pour effectuer cette action !"); return false ; } if ((typeof(shimiframe_param) != "undefined")) { shimiframe = shimiframe_param ; } if ((typeof(addurl) != "undefined")) { to_addurl = addurl ; } if ((typeof(addcode) != "undefined")) { to_addcode = addcode ; } if ((submitgris == false) || (typeof(submitgris) == "undefined")) { grise_first_submit_connexion = false ; } if (connexion_open != true) { if (justscript == true) { connexion_box(true) ; } else { connexion_box() ; } connexion_open = true ; } } function connexion_box(justscript) { var new_session = null ; if (session != null) { new_session = session ; session = null ; } var bloc = "" ; if(window.XMLHttpRequest) myajax = new XMLHttpRequest(); else if(window.ActiveXObject) myajax = new ActiveXObject("Microsoft.XMLHTTP"); id_date = new Date(); var newid = id_date.getTime() + "c" + id_date.getHours()+"a"+id_date.getMinutes()+"a"+id_date.getSeconds()+"b"; newid += Math.floor(Math.random()*1000000) ; if (poststring == null) { myajax.open("POST", "http://www.mimichat.com/ajax/connexion.php" + to_addurl, true); to_addurl = "" ; } else { myajax.open("POST", "http://www.mimichat.com/ajax/connexion.php", true); } myajax.onreadystatechange= function() { if (myajax.readyState == 4) { if (myajax.status == 200) { if (myajax.responseText.substring(0,14) == "##JUSTSCRIPT##") { justscript = true ; } bloc = "
fixbug
" + myajax.responseText ; bloc += to_addcode ; to_addcode = "" ; if (justscript == true) { // met a jour les scripts var script_div = document.createElement("div"); script_div.style.display = "none"; document.body.appendChild(script_div); script_div.innerHTML = bloc ; maj_script(script_div) ; document.body.removeChild(script_div) ; justscript = false ; poststring = null ; form_selected = null ; connexion_open = false ; return true ; } justscript = false ; if (poststring == null) { create_box(bloc,"#FFEEEE",6,3,"","",fermer_connexion) ; } else { update_box(bloc) ; } // replace les scripts // maj_script(tmp_obj) ; => remis dans fenetre.js // mise a jour de la form if (ie) { maj_form(submit_form_connexion) ; } else { maj_form("submit_form_connexion") ; } } } } if (poststring != null) { myajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); if (new_session != null) { myajax.setRequestHeader("Set-Cookie", new_session); } } myajax.send(poststring) ; } function startCallback() { return true; } function completeCallback(response) { var thesession = response.split("=") ; thesession = thesession[0] ; session = response ; poststring += "&session_file_ajax=" ; poststring += thesession ; connexion_box() ; } function submit_form_connexion() { var hasfile = false ; // grise le submit if (grise_first_submit_connexion == true) { if (tmp_obj != null) { var form_balise = tmp_obj.getElementsByTagName('form') ; if (form_balise.length != 0) { form_balise = form_balise[0] ; form_selected = form_balise ; var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "submit") { inputs[i].disabled = true ; inputs[i].value = "Veuillez patienter svp ..." ; break ; } } // gere les eventuels file var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "file") { if (inputs[i].value != "") { hasfile = true ; } break ; } } if (hasfile) { form_selected.action = "/ajax/upload.php" ; AIM.submit(form_selected, {'onStart' : startCallback, 'onComplete' : completeCallback}) form_selected.submit() ; } } } } poststring = return_url_form() ; if (hasfile == false) { connexion_box() ; } return false ; } Nom = navigator.appName; ie = (Nom == 'Microsoft Internet Explorer') ? 1:0 ; var deconnexion_open = false ; var poststring = null ; var form_selected = null ; var grise_first_submit_deconnexion = true ; var session = null ; var to_addurl = "" ; var to_addcode = "" ; var opened_window = false ; function fermer_deconnexion() { poststring = null ; form_selected = null ; deconnexion_open = false ; } function ouvrir_deconnexion(submitgris,justscript,addurl,addcode,shimiframe_param) { if (document.readyState == "interactive") { alert("Merci d'attendre que la page soit entièrement chargée pour effectuer cette action !"); return false ; } if ((typeof(shimiframe_param) != "undefined")) { shimiframe = shimiframe_param ; } if ((typeof(addurl) != "undefined")) { to_addurl = addurl ; } if ((typeof(addcode) != "undefined")) { to_addcode = addcode ; } if ((submitgris == false) || (typeof(submitgris) == "undefined")) { grise_first_submit_deconnexion = false ; } if (deconnexion_open != true) { if (justscript == true) { deconnexion_box(true) ; } else { deconnexion_box() ; } deconnexion_open = true ; } } function deconnexion_box(justscript) { var new_session = null ; if (session != null) { new_session = session ; session = null ; } var bloc = "" ; if(window.XMLHttpRequest) myajax = new XMLHttpRequest(); else if(window.ActiveXObject) myajax = new ActiveXObject("Microsoft.XMLHTTP"); id_date = new Date(); var newid = id_date.getTime() + "c" + id_date.getHours()+"a"+id_date.getMinutes()+"a"+id_date.getSeconds()+"b"; newid += Math.floor(Math.random()*1000000) ; if (poststring == null) { myajax.open("POST", "http://www.mimichat.com/ajax/deconnexion.php" + to_addurl, true); to_addurl = "" ; } else { myajax.open("POST", "http://www.mimichat.com/ajax/deconnexion.php", true); } myajax.onreadystatechange= function() { if (myajax.readyState == 4) { if (myajax.status == 200) { if (myajax.responseText.substring(0,14) == "##JUSTSCRIPT##") { justscript = true ; } bloc = "
fixbug
" + myajax.responseText ; bloc += to_addcode ; to_addcode = "" ; if (justscript == true) { // met a jour les scripts var script_div = document.createElement("div"); script_div.style.display = "none"; document.body.appendChild(script_div); script_div.innerHTML = bloc ; maj_script(script_div) ; document.body.removeChild(script_div) ; justscript = false ; poststring = null ; form_selected = null ; deconnexion_open = false ; return true ; } justscript = false ; if (poststring == null) { create_box(bloc,"#FFEEEE",6,3,"","",fermer_deconnexion) ; } else { update_box(bloc) ; } // replace les scripts // maj_script(tmp_obj) ; => remis dans fenetre.js // mise a jour de la form if (ie) { maj_form(submit_form_deconnexion) ; } else { maj_form("submit_form_deconnexion") ; } } } } if (poststring != null) { myajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); if (new_session != null) { myajax.setRequestHeader("Set-Cookie", new_session); } } myajax.send(poststring) ; } function startCallback() { return true; } function completeCallback(response) { var thesession = response.split("=") ; thesession = thesession[0] ; session = response ; poststring += "&session_file_ajax=" ; poststring += thesession ; deconnexion_box() ; } function submit_form_deconnexion() { var hasfile = false ; // grise le submit if (grise_first_submit_deconnexion == true) { if (tmp_obj != null) { var form_balise = tmp_obj.getElementsByTagName('form') ; if (form_balise.length != 0) { form_balise = form_balise[0] ; form_selected = form_balise ; var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "submit") { inputs[i].disabled = true ; inputs[i].value = "Veuillez patienter svp ..." ; break ; } } // gere les eventuels file var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "file") { if (inputs[i].value != "") { hasfile = true ; } break ; } } if (hasfile) { form_selected.action = "/ajax/upload.php" ; AIM.submit(form_selected, {'onStart' : startCallback, 'onComplete' : completeCallback}) form_selected.submit() ; } } } } poststring = return_url_form() ; if (hasfile == false) { deconnexion_box() ; } return false ; } Nom = navigator.appName; ie = (Nom == 'Microsoft Internet Explorer') ? 1:0 ; var info_perso_open = false ; var poststring = null ; var form_selected = null ; var grise_first_submit_info_perso = true ; var session = null ; var to_addurl = "" ; var to_addcode = "" ; var opened_window = false ; function fermer_info_perso() { poststring = null ; form_selected = null ; info_perso_open = false ; } function ouvrir_info_perso(submitgris,justscript,addurl,addcode,shimiframe_param) { if (document.readyState == "interactive") { alert("Merci d'attendre que la page soit entièrement chargée pour effectuer cette action !"); return false ; } if ((typeof(shimiframe_param) != "undefined")) { shimiframe = shimiframe_param ; } if ((typeof(addurl) != "undefined")) { to_addurl = addurl ; } if ((typeof(addcode) != "undefined")) { to_addcode = addcode ; } if ((submitgris == false) || (typeof(submitgris) == "undefined")) { grise_first_submit_info_perso = false ; } if (info_perso_open != true) { if (justscript == true) { info_perso_box(true) ; } else { info_perso_box() ; } info_perso_open = true ; } } function info_perso_box(justscript) { var new_session = null ; if (session != null) { new_session = session ; session = null ; } var bloc = "" ; if(window.XMLHttpRequest) myajax = new XMLHttpRequest(); else if(window.ActiveXObject) myajax = new ActiveXObject("Microsoft.XMLHTTP"); id_date = new Date(); var newid = id_date.getTime() + "c" + id_date.getHours()+"a"+id_date.getMinutes()+"a"+id_date.getSeconds()+"b"; newid += Math.floor(Math.random()*1000000) ; if (poststring == null) { myajax.open("POST", "http://www.mimichat.com/ajax/info_perso.php" + to_addurl, true); to_addurl = "" ; } else { myajax.open("POST", "http://www.mimichat.com/ajax/info_perso.php", true); } myajax.onreadystatechange= function() { if (myajax.readyState == 4) { if (myajax.status == 200) { if (myajax.responseText.substring(0,14) == "##JUSTSCRIPT##") { justscript = true ; } bloc = "
fixbug
" + myajax.responseText ; bloc += to_addcode ; to_addcode = "" ; if (justscript == true) { // met a jour les scripts var script_div = document.createElement("div"); script_div.style.display = "none"; document.body.appendChild(script_div); script_div.innerHTML = bloc ; maj_script(script_div) ; document.body.removeChild(script_div) ; justscript = false ; poststring = null ; form_selected = null ; info_perso_open = false ; return true ; } justscript = false ; if (poststring == null) { create_box(bloc,"#FFEEEE",6,3,"","",fermer_info_perso) ; } else { update_box(bloc) ; } // replace les scripts // maj_script(tmp_obj) ; => remis dans fenetre.js // mise a jour de la form if (ie) { maj_form(submit_form_info_perso) ; } else { maj_form("submit_form_info_perso") ; } } } } if (poststring != null) { myajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); if (new_session != null) { myajax.setRequestHeader("Set-Cookie", new_session); } } myajax.send(poststring) ; } function startCallback() { return true; } function completeCallback(response) { var thesession = response.split("=") ; thesession = thesession[0] ; session = response ; poststring += "&session_file_ajax=" ; poststring += thesession ; info_perso_box() ; } function submit_form_info_perso() { var hasfile = false ; // grise le submit if (grise_first_submit_info_perso == true) { if (tmp_obj != null) { var form_balise = tmp_obj.getElementsByTagName('form') ; if (form_balise.length != 0) { form_balise = form_balise[0] ; form_selected = form_balise ; var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "submit") { inputs[i].disabled = true ; inputs[i].value = "Veuillez patienter svp ..." ; break ; } } // gere les eventuels file var inputs = form_selected.getElementsByTagName('input') ; for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "file") { if (inputs[i].value != "") { hasfile = true ; } break ; } } if (hasfile) { form_selected.action = "/ajax/upload.php" ; AIM.submit(form_selected, {'onStart' : startCallback, 'onComplete' : completeCallback}) form_selected.submit() ; } } } } poststring = return_url_form() ; if (hasfile == false) { info_perso_box() ; } return false ; } Nom = navigator.appName; ie = (Nom == 'Microsoft Internet Explorer') ? 1:0 ; var fading_cpt = 0 ; var fading_timer = null ; var fading_div = null ; var fading_type = null ; var fading_callback = null ; var newbox = null ; var tmp_obj = null ; var contenu_obj = null ; var array_objet = new Array() ; var array_objet_save = new Array() ; var array_objet_visible_off = new Array() ; var opacity_max = 6 ; var opacity_palier = 3 ; var pos_x_box = null ; var pos_y_box = null ; var updated_contenu = null ; var close_callback = null ; var save_top_window = null ; var shimiframe = false ; var theishim = null ; var ishame_timer = null ; function getStyle(objet,styleProp) { var x = objet ; if (x.currentStyle) var y = x.currentStyle[styleProp]; else if (window.getComputedStyle) var y = document.defaultView.getComputedStyle(x,null)[styleProp]; return y; } function first_child( par ) { var res=par.firstChild; while (res != null) { if (!is_ignorable(res)) return res; res = res.nextSibling; } return null; return par.firstChild ; } function is_ignorable( nod ) { if (nod.nodeType == 8) { return true ; } if (nod.nodeType == 3) { return true ; } return false ; } function mettre_listener(id,type,fonction) { enlever_listener(id,type,fonction); if (typeof(id) != "object") { objet_event = document.getElementById(id) ; } else { objet_event = id ; } if (objet_event != null) { if (objet_event.addEventListener) { // mozilla objet_event.addEventListener(type, fonction, true) } else { objet_event.attachEvent('on'+type, fonction) ; } } } function enlever_listener(id,type,fonction) { if (typeof(id) != "object") { objet_event = document.getElementById(id) ; } else { objet_event = id ; } if (objet_event != null) { if (objet_event.removeEventListener) { // mozilla objet_event.removeEventListener(type, fonction, true) } else { objet_event.detachEvent('on'+type, fonction) ; } } } function fading() { fading_cpt = fading_cpt + opacity_palier ; fading_div.style.filter = "alpha(opacity=" + fading_cpt + "0)" ; fading_div.style.opacity = "." + fading_cpt ; if (fading_cpt >= opacity_max) { clearInterval(fading_timer) ; newbox = fading_div ; fading_timer = null ; fading_cpt = 0 ; fading_type = null ; fading_callback() ; } } function closeme() { opened_window = false ; if (theishim != null) { if (ishame_timer != null) { clearInterval(ishame_timer); ishame_timer = null ; } shimiframe = false ; document.body.removeChild(theishim); theishim = null ; } // Supprime la box crée document.body.removeChild(tmp_obj); tmp_obj = null // Effectue un fadeout // Supprime le Fond if (fading_div != null) { document.body.removeChild(fading_div); } fading_div = null ; // Remet les Zindex for (var i = 0; i < array_objet.length; i++) { array_objet[i].style.zIndex = array_objet_save[i] ; } for (var i = 0; i < array_objet_visible_off.length; i++) { array_objet_visible_off[i].style.visibility = "visible" ; } array_objet_visible_off = new Array() ; array_objet_save = new Array() ; array_objet = new Array() ; var htmlEl = document.getElementsByTagName('html')[0]; htmlEl.onscroll = null ; window.onscroll = null ; if (close_callback != null) { close_callback() ; } } function openbox(ignore) { var objet_in = tmp_obj ; objet_in.style.display = "block" ; objet_in.style.position = "absolute" ; objet_in.style.width = "auto"; objet_in.style.height = "auto"; if (pos_x_box == null) { objet_in.style.left = ((document.body.clientWidth)/2) - (objet_in.offsetWidth/2) ; } else { objet_in.style.left = pos_x_box ; } if (pos_y_box == null) { objet_in.style.top = ((document.body.clientHeight)/2) - (objet_in.offsetHeight/2) ; save_top_window = ((document.body.clientHeight)/2) - (objet_in.offsetHeight/2) ; } else { objet_in.style.top = pos_y_box ; save_top_window = pos_y_box ; } objet_in.style.zIndex = 255 ; objet_in.style.backgroundImage = "url(/images/blank.JPG)" ; objet_in.style.backgroundRepeat = "repeat" ; if (theishim != null) { ishame_timer = setInterval ("resize_ishame()", 1); theishim.style.width = objet_in.offsetWidth; theishim.style.height = objet_in.offsetHeight; theishim.style.top = objet_in.style.top; theishim.style.left = objet_in.style.left; theishim.style.display = "block" ; } // replace les scripts maj_script(tmp_obj) ; } function resize_ishame() { if ((theishim != null) && (tmp_obj != null)) { theishim.style.width = tmp_obj.offsetWidth; theishim.style.height = tmp_obj.offsetHeight; theishim.style.top = tmp_obj.style.top; theishim.style.left = tmp_obj.style.left; theishim.style.display = "block" ; } else { clearInterval(ishame_timer); ishame_timer = null ; } } function resized() { if (newbox != null) { newbox.style.width = document.body.clientWidth ; //window.innerWidth ; newbox.style.height = document.body.clientHeight ; //window.innerHeight; } if (tmp_obj != null) { openbox() ; } } function sort_int(a,b) { return a-b; } function update_box(contenu) { if( contenu_obj != null) { // met a jout contenu déja affiché // tmp_obj.innerHTML = contenu ; tmp_obj.innerHTML = "
a
" + contenu ; openbox() ; } else { // prévois la mise a jour du contenu pas encore affiché updated_contenu = contenu ; } } function create_box(contenu,thecolor,op_m,op_p,px,py,closecallback) { opened_window = true ; // Technique du shim iframe // cache les windowed objet if (shimiframe != true) { var type_balise = new Array("APPLET","SELECT","OBJECT") ; array_objet_visible_off = new Array() ; for (var i = 0; i < type_balise.length; i++) { var obj = document.getElementsByTagName(type_balise[i]); for (var j = 0; j < obj.length; j++) { if (typeof (obj[j].style) != "undefined") { if (obj[j].style.visibility != "hidden") { obj[j].style.visibility = "hidden" ; array_objet_visible_off.push(obj[j]) ; } } } } } var contenu_div = document.createElement("div"); contenu_div.style.display = "none"; document.body.appendChild(contenu_div); tmp_obj = contenu_div ; contenu_obj = contenu ; contenu_div.innerHTML = contenu_obj ; if ((closecallback != null) && (typeof closecallback != "undefined")) { close_callback = closecallback ; } if ( (op_m != "") && (typeof op_m != "undefined")) { opacity_max = op_m ; } if ( (op_p != "") && (typeof op_p != "undefined")) { opacity_palier = op_p ; } if ( (px != "") && (typeof px != "undefined")) { pos_x_box = px ; } if ( (py != "") && (typeof py != "undefined")) { pos_y_box = py ; } // cache tout les mauvais Zindex var type_balise = new Array("A","DIV","SPAN","IMG","SELECT","OPTION","INPUT","TD","APPLET") ; array_objet_save = new Array() ; array_objet = new Array() ; array_objet_new = new Array() ; for (var i = 0; i < type_balise.length; i++) { var obj = document.getElementsByTagName(type_balise[i]); for (var j = 0; j < obj.length; j++) { if (typeof (obj[j].style) != "undefined") { if ((getStyle(obj[j],"zIndex") != "auto") && (getStyle(obj[j],"zIndex") != "")) { array_objet.push(obj[j]) ; array_objet_save.push(getStyle(obj[j],"zIndex")) ; array_objet_new.push(getStyle(obj[j],"zIndex")) ; } } } } array_objet_new.sort(sort_int) ; // fait le renum var savecpt = "" ; var thecpt = 0 ; for (var j = 0 ; j < array_objet_new.length; j++) { if (array_objet_new[j] != savecpt) { savecpt = array_objet_new[j] ; thecpt++ ; } array_objet_new[j] = thecpt ; } for (var j = 0 ; j < array_objet_new.length; j++) { var newn = new Number(array_objet_new[j]) ; array_objet[j].style.zIndex = newn ; } if (shimiframe != true) { var newdiv = document.createElement("div"); newdiv.style.position = "absolute" ; newdiv.style.left = "0px" ; newdiv.style.top = "0px" ; newdiv.style.width = "0px" ; newdiv.style.height = "0px" ; newdiv.style.filter = "alpha(opacity=0)" ; newdiv.style.opacity = ".0" ; newdiv.style.backgroundColor = thecolor ; newdiv.style.opacity = ".0" ; newdiv.style.zIndex = 254 ; // mettre_listener(window,"resize",resized) document.body.appendChild(newdiv); newdiv.style.width = document.body.clientWidth ; //window.innerWidth ; newdiv.style.height = document.body.clientHeight ; //window.innerHeight; fading_type = 1 ; fading_div = newdiv ; fading_timer = setInterval ("fading()", 1); fading_callback = openbox ; } else { var newishim = document.createElement("iframe"); newishim.style.position = "absolute" ; newishim.src = "" ; newishim.frameborder = "0"; newishim.style.display = "none" ; newishim.style.zIndex = 254 ; // document.body.appendChild(newishim); theishim = newishim ; fading_div = null ; openbox() ; } var htmlEl = document.getElementsByTagName('html')[0]; htmlEl.onscroll = window_scrolled ; window.onscroll = window_scrolled ; } function window_scrolled() { var objet_in = tmp_obj ; tmp_obj.style.top = (document.body.scrollTop + save_top_window) + "px" ; if (fading_div != null) { fading_div.style.top = (document.body.scrollTop) + "px" ; } if (theishim != null) { theishim.style.width = objet_in.offsetWidth; theishim.style.height = objet_in.offsetHeight; theishim.style.top = objet_in.style.top; theishim.style.left = objet_in.style.left; } } function maj_script(div_obj) { if (div_obj != null) { var allscripts = div_obj.getElementsByTagName('script') ; var head = document.getElementsByTagName('head').item(0); var all_new_scripts = new Array() ; for (var i = 0 ; i < allscripts.length ; i++) { all_new_scripts[i] = document.createElement('script'); all_new_scripts[i].text = allscripts[i].text; all_new_scripts[i].type = 'text/javascript'; all_new_scripts[i].defer = true; head.appendChild(all_new_scripts[i]) ; } all_new_scripts = new Array() ; } } function maj_form(callback_retour) { // modifie la form if (tmp_obj != null) // si on a quitté la fenetre { var form_balise = tmp_obj.getElementsByTagName('form') ; if (form_balise.length != 0) { form_balise = form_balise[0] ; form_selected = form_balise ; if (ie) { form_selected.setAttribute("onsubmit",callback_retour) ; } else { form_selected.setAttribute("onsubmit",callback_retour + "();return false;") ; } } } } function return_url_form() { if (tmp_obj != null) // si on a quitté la fenetre { var form_balise = tmp_obj.getElementsByTagName('form') ; if (form_balise.length != 0) { form_balise = form_balise[0] ; form_selected = form_balise ; var url_post = "" ; var first = "" ; for (var i = 0; i < form_selected.elements.length; i++) { if (form_selected.elements[i].name) { if ((form_selected.elements[i].type == "radio") || (form_selected.elements[i].type == "checkbox")) { if (form_selected.elements[i].checked == true) { url_post += first + escape(form_selected.elements[i].name) +"="+ escape(form_selected.elements[i].value) ; } } else { url_post += first + escape(form_selected.elements[i].name) +"="+ escape(form_selected.elements[i].value) ; } first = "&" ; } } } } return url_post ; } var connecte = false ; var undo = false ; function outme(valuem) { aj2 = null ; if(window.XMLHttpRequest) aj2 = new XMLHttpRequest(); else if(window.ActiveXObject) aj2 = new ActiveXObject("Microsoft.XMLHTTP"); aj2.open("GET", "http://www.mimichat.com/topclic.php?time=" + (new Date()).getTime() + "&id=" + valuem, false); aj2.onreadystatechange = function() { if (aj2.readyState == 4) { if (aj2.status == 200) { } } } aj2.send(null); } function setHomef(ab) { if (isie()) { ab.style.behavior='url(#default#homepage)';ab.setHomePage('http://www.mimichat.com/home.php'); } else { // window.sidebar.addPanel("Mimichat", "http://www.mimichat.com",""); } } function isie() { var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0; return isIE ; } function ouvrir_paneau_connexion() { if (connecte == false) { ouvrir_connexion(false,null,"",""); } else { alert("Vous êtes déjà connecté(e) !") ; } } function deconnexion_page_pseudo() { connecte = false ; ouvrir_deconnexion("",true) ; } /** * * AJAX IFRAME METHOD (AIM) * http://www.webtoolkit.info/ * **/ AIM = { frame : function(c) { var n = 'f' + Math.floor(Math.random() * 99999); var d = document.createElement('DIV'); d.innerHTML = ''; document.body.appendChild(d); var i = document.getElementById(n); if (c && typeof(c.onComplete) == 'function') { i.onComplete = c.onComplete; } return n; return false ; }, form : function(f, name) { f.setAttribute('target', name); }, submit : function(f, c) { AIM.form(f, AIM.frame(c)); if (c && typeof(c.onStart) == 'function') { return c.onStart(); } else { return true; } }, loaded : function(id) { var i = document.getElementById(id); if (i.contentDocument) { var d = i.contentDocument; } else if (i.contentWindow) { var d = i.contentWindow.document; } else { var d = window.frames[id].document; } if (d.location.href == "about:blank") { return; } if (typeof(i.onComplete) == 'function') { i.onComplete(d.body.innerHTML); } } } if ((top != self)) { top.location = self.location; }