var isDOM_chatroom = (document.getElementById ? true : false); var isIE4_chatroom = ((document.all && !isDOM_chatroom) ? true : false); var isNS4_chatroom = (document.layers ? true : false); var isDyn_chatroom = (isDOM_chatroom || isIE4_chatroom || isNS4_chatroom); window.onerror = myError; function myError(message, url, line){ return true; } // Default ZONE DISPLAY : left|center|right|leftBis|centerBis|centerBisAgenda|centerBisSortir noLog function myDivObject() { // myDivObject.prototype.sub1 = '1|1|0|0|0'; this.sub0 = '0|1|0|0|0'; this.sub1 = '0|1|0|0|0'; this.sub2 = '0|1|0|1|0'; this.sub3 = '0|1|0|0|0'; this.sub4 = '0|1|0|0|0'; this.sub5 = '0|1|0|0|0'; this.sub6 = '0|1|0|0|0'; this.sub7 = '0|1|0|0|0'; } // Default ZONE DISPLAY : left|center|right|leftBis|centerBis|centerBisAgenda|centerBisSortir Logged function myDivObjectLogged() { // myDivObject.prototype.sub1 = '1|1|0|0|0'; this.sub0 = '0|1|0|0|0'; this.sub1 = '1|1|0|0|0'; this.sub2 = '0|1|0|1|0'; this.sub3 = '0|1|0|0|0'; this.sub4 = '0|1|0|0|0'; this.sub5 = '0|1|0|0|0'; this.sub6 = '0|1|0|0|0'; this.sub7 = '0|1|0|0|0'; } global_zoneArr = new myDivObject(); function getRef_chatroom(id) { if (isDOM_chatroom) return document.getElementById(id); if (isIE4_chatroom) return document.all[id]; if (isNS4_chatroom) return document.layers[id]; } function getSty_chatroom(id) { return (isNS4_chatroom ? getRef_chatroom(id) : getRef_chatroom(id).style); } var chatroom_loop=0; var chatroom_amount=1; var chatroom_fact=40; function ScrollDiv_chatroom(id) { getRef_chatroom(id).scrollTop += (chatroom_amount*chatroom_fact); if (chatroom_loop>0) setTimeout("ScrollDiv_chatroom('"+id+"')", chatroom_loop); } function ScrollDivL_chatroom(id) { getRef_chatroom(id).scrollLeft += (chatroom_amount*chatroom_fact); if (chatroom_loop>0) setTimeout("ScrollDivL_chatroom('"+id+"')", chatroom_loop); } var myWidth, myHeight = null; function getSize_Browser() { if ( typeof( window.outerWidth ) == 'number' && navigator.userAgent.indexOf('Firefox')>-1) { // firefox myWidth = window.screen.availWidth-20; myHeight = window.screen.availHeight-160; } else if( typeof( window.innerWidth ) == 'number' ) { //Non-IE Chrome, Safari, opera myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } } function getEvent(e) { var event = e || window.event; var srcEl = event.srcElement? event.srcElement : event.target; var ElArr = new Array(); // Array: Id Element - Id parent ElArr.push(srcEl.id); ElArr.push(srcEl.parentNode.id); return ElArr; } function GetNodeClassInfo(elmt,classIn) { var allElements = elmt.getElementsByTagName("*"); var results = []; var element; for (var i = 0; (element = allElements[i]) != null; i++) { var elementClass = element.className; if (elementClass && elementClass.indexOf(classIn) != -1) return element.innerHTML; } } function global_simul_click(element) { try { //pour ie document.getElementById(element).click(); } catch(e) { //pour ff var evt = document.createEvent("MouseEvents"); // créer un évennement souris evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); // intiailser l'évennement déja crée par un click var cb = document.getElementById(element); // pointe sur l'élement cb.dispatchEvent(evt); // envoyer l'évennement vers l'élement } } //////////////////////////////////////////// // Drag div : Prob sous IE8, perte du focus en move // var N = (document.all) ? 0 : 1; var obToDrag; // Object var movingToDrag; // ID obj drag var over = false; var dragPosX, dragPosY = 0; if (N) { document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP); } /* // Set page event handlers if (window.addEventListener || document.addEventListener){ alert('addEventListener'); // Chrome, firefox, safari, opera //window.addEventListener("load",init,false); //window.addEventListener("resize",hairs,false); document.addEventListener("mousemove",MM,false); document.addEventListener("mousedown", MD, false); document.addEventListener("mouseup", MU, false); } else if (document.attachEvent){ alert('attachEvent'); // Explorer //window.attachEvent("onload",init); //window.attachEvent("onresize",hairs); document.attachEvent("onmousemove",MM); document.attachEvent("onmousedown", MD); document.attachEvent("onmouseup", MU); } else { alert('Autre'); */ document.onmousemove = MM; document.onmousedown = MD; document.onmouseup = MU; //} function getInfoMouse(statusMouse,X,Y,over,objId,xval,yval) { if (!document.getElementById("x")) return false; document.title=statusMouse+':::'+over+' - '+objId; document.getElementById("x").innerHTML = X+'px'; document.getElementById("y").innerHTML = Y+'px'; document.getElementById("xval").innerHTML = xval; document.getElementById("yval").innerHTML = yval; } function MD(e) { if (over) { if (N) { obToDrag = getRef_chatroom(movingToDrag); dragPosX=e.layerX; dragPosY=e.layerY; //getInfoMouse('mouse down',dragPosX,dragPosY,over,movingToDrag); return false; } else { obToDrag = getRef_chatroom(movingToDrag); dragPosX=event.offsetX; dragPosY=event.offsetY; //getInfoMouse('mouse down',dragPosX,dragPosY,over,movingToDrag); return false; } } } function MM(e) { //if (N) {getInfoMouse('mouse up',e.pageX,e.pageY,over,movingToDrag,0,0);} //else {getInfoMouse('mouse up',event.clientX,event.clientY,over,movingToDrag,0,0);} if (obToDrag) { getSty_chatroom(movingToDrag).position = 'absolute'; if (N) { obToDrag.style.left = e.pageX-dragPosX+'px'; obToDrag.style.top = e.pageY-dragPosY+'px'; } else { obToDrag.style.left = event.clientX-dragPosX+'px'; obToDrag.style.top = event.clientY-dragPosY+'px'; } } } function MU() { //getInfoMouse('no object',dragPosX,dragPosY,over,movingToDrag,0,0); obToDrag = null; } // //////////////////////////////////////////// //////////////////////////////////////////// // Gestion Timeout et Interval call message // var memo_message = 0; // all mess var memo_my_message = 0; // mess for user var memo_my_messageLu = 0; // mess non lu var isWritingDo = false; // En envoie de message var messages=function(){ var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); var isDyn = (isDOM || isIE4 || isNS4); var urlCallMess = 'http://www.axegay.com/data_G999/chat/global_message.php'; var chatRefreshInit=null; var chatRefresh=null; var chatRefreshLow=null; var chatStandBy=null; var chatLow=false; var chatStoped=false; var timeRefreshInit = 1000; var timeRefresh = 30000; // 30 = 30000 ms var timeRefreshLow = 300000; // 5 minutes = 300000 ms var timeStandBy = 10800000; // 3h = 180 minutes = 10800000 ms var timeRefreshDo = timeRefresh; return{ SizeBrowser:function() { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } }, getRef:function(idObj) { if (isDOM_chatroom) return document.getElementById(idObj); if (isIE4_chatroom) return document.all[idObj]; if (isNS4_chatroom) return document.layers[idObj]; }, getSty:function(idObj) { return (isNS4_chatroom ? this.getRef(idObj) : this.getRef(idObj).style); }, HightLightStatus:function(inMess) { if (messages.getRef('tt6topHead')) messages.getRef('tt6topHead').innerHTML = inMess; }, Init:function() { chatRefreshInit = setTimeout(function() { ///////////////////// // Si no login if (global_login == '') { global_wait(); return false; } // ///////////////////// status = 'Start INIT Appel messages en cours ('+(timeRefreshInit/1000)+'s)'; messages.HightLightStatus(' Appel messages en cours ('+(timeRefreshInit/1000)+'s)'); setTimeout(function() {messages.getRef('tt6topHead').innerHTML = '';},5000); global_queryHide('inDiv=tt6contTxt&userLogin='+global_login+'&test_new_messInit=1&test_new_mess='+memo_message+'&my='+memo_my_message ,'http://www.axegay.com/data_G999/chat/global_message.php'); messages.Refresh(); messages.RefreshLow(); messages.StandBy(); },timeRefreshInit); document.body.setAttribute('onmouseover','messages.ReInit();'); }, LogOut:function() { memo_message = 0; clearTimeout(chatRefreshInit); clearInterval(chatRefresh); clearTimeout(chatRefreshLow); clearTimeout(chatStandBy); }, Refresh:function() { chatRefresh = setInterval(function() { if (global_login == '') {clearInterval(chatRefresh); return false;} status = 'Start CALL Appel messages en cours ('+(timeRefreshInit/1000)+'s)'; messages.HightLightStatus(' Appel messages en cours ('+(timeRefreshDo/1000)+'s)'); global_queryHide('inDiv=tt6contTxt&userLogin='+global_login+'&test_new_mess='+memo_message+'&my='+memo_my_message ,'http://www.axegay.com/data_G999/chat/global_message.php'); },timeRefreshDo); }, RefreshLow:function() { chatRefreshLow = setTimeout(function() { clearInterval(chatRefresh); timeRefreshDo = timeRefreshLow; chatLow=true; chatRefresh = setInterval(function() { messages.HightLightStatus(' LOW: Appel messages en cours ('+(timeRefreshDo/1000)+'s)'); global_queryHide('inDiv=tt6contTxt&userLogin='+global_login+'&test_new_mess='+memo_message+'&my='+memo_my_message ,'http://www.axegay.com/data_G999/chat/global_message.php'); },timeRefreshDo); },timeRefreshLow); }, StandBy:function() { chatStandBy = setTimeout(function() { clearInterval(chatRefresh); messages.HightLightStatus(' STOP: Utilateur inactif'); chatStoped=true; },timeStandBy); }, ReInit:function() { if (chatLow==true) { chatLow=false; clearInterval(chatRefresh); timeRefreshDo = timeRefresh; messages.Refresh(); } if (chatStoped==true) { chatLow=false; chatStoped=false; clearInterval(chatRefresh); clearInterval(chatRefreshLow); clearInterval(chatStandBy); timeRefreshDo = timeRefresh; messages.Init(); } } } // fin return }(); // //////////////////////////////////////////// //////////////////////////////////////////// // Use : // Appel connectés // var online=function(){ var onLinePageOne = null; return{ Init:function(userOnArr) { onLinePageOne = userOnArr; }, Synchro:function(userNewArr) { if ( onLinePageOne.toString() != userNewArr.toString() ) { // Appel refresh des sticker user online.Call(); online.Init(userNewArr); } }, Call:function() { global_queryHide('onlineRefresh=1','http://www.axegay.com/data_G999/chat/global_chatRequest.php'); } } }(); //////////////////////////////////////////// // Use : // Appel mess sur le live // var live=function(){ var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); var isDyn = (isDOM || isIE4 || isNS4); var timeout_liveInit = null; return{ SizeBrowser:function() { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } }, getRef:function(idObj) { if (isDOM_chatroom) return document.getElementById(idObj); if (isIE4_chatroom) return document.all[idObj]; if (isNS4_chatroom) return document.layers[idObj]; }, getSty:function(idObj) { return (isNS4_chatroom ? this.getRef(idObj) : this.getRef(idObj).style); }, Call:function() { // Appel boîte à mess if (live.getRef('tt8cont')) { live.getSty('tt8').display = 'block' if (live.getSty('tt8cont').display == 'none') global_extraDiv.liveBoxReduce(); } else { global_extraDiv.liveBoxShow('tt8','Le Live message : Loading ...',600,250,'Live',null,2); } clearTimeout(timeout_liveInit); timeout_liveInit = setTimeout(function() { if (live.getRef('tt8contTxt').innerHTML == 'Le Live message : Loading ...') { live.getRef('tt8contTxt').innerHTML = '' +'' +''; } if (live.getRef('tt8contForm').innerHTML == '') { live.getRef('tt8contForm').innerHTML = '' +'
' +'' +'' +'' +'' +'
' +'' +''; } },900); }, InitMessIn:function() { live.getRef('liveBox_messageIn').value = 'Ton message pour le Live ?'; }, RefreshMess:function() { global_queryHide('liveBox_messageRefresh=1','http://www.axegay.com/data_G999/chat/global_liveCallBox.php'); }, RefreshMessDo:function() { live.getRef('tt8_iframe').src = 'http://www.axegay.com/data_G999/chat/global_liveCallBox.php?liveBox_messageRead=1'; } } }(); // //////////////////////////////////////////// //////////////////////////////////////////// // Use : // var messagerie=function(){ var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); var isDyn = (isDOM || isIE4 || isNS4); return{ subjectEmail:false, // variable a declarer pour passer sujet ds mail - si non laisser sur false SizeBrowser:function() { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } }, getRef:function(idObj) { if (isDOM_chatroom) return document.getElementById(idObj); if (isIE4_chatroom) return document.all[idObj]; if (isNS4_chatroom) return document.layers[idObj]; }, getSty:function(idObj) { return (isNS4_chatroom ? this.getRef(idObj) : this.getRef(idObj).style); }, InitNotLoged:function(user,pseudo,pic,inMail) { // Formulaire no login call if (inMail==undefined) var inMail = ''; // Si messagerie.subjectEmail non false, inclusion sujet mail var html_subjectEmail = ''; if (messagerie.subjectEmail) { html_subjectEmail = ' '; } var noLogForm = '' +'
« '+pseudo+' »  
 
' +'
Envoyer
mon message
' +'
' +'
' +' - Ton adresse E-mail (obligatoire) ?' +'
' +'
- Ton message pour « '+pseudo+' » ?
' +' ' +html_subjectEmail +'
' +' ' +'Attention tout message avec adresse E-mail bidon, sera refusé.' +'
' +'' +'' +''; return noLogForm; }, Init:function(user,pseudo,pic) { // Init formulaire mess /////////////////////////// // Si non logé if (global_login == '') {return messagerie.InitNotLoged(user,pseudo,pic);} // ////////////////////////// var myPic = null; var myPicSelect = ''; if (!messagerie.getRef('global_message_myPic')) { setTimeout(function() { global_query('myPic=1&inDiv=global_message_myPic','http://www.axegay.com/data_G999/chat/global_UserSessionPicChat.php'); messages.Init(); }, 1000); } else { myPic=messagerie.getRef('global_message_myPic').innerHTML; setTimeout(function() { messagerie.getRef('global_message_myPic').innerHTML=myPic; var objDivPic = messagerie.getRef('global_message_myPic_in'); var objDivElements = objDivPic.getElementsByTagName("div"); var arrSelect = new Array(); for (i=0; i sélectionée(s) jointes - '; }, 60); } messagerie.getRef('tt6cont').setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); // Si messagerie.subjectEmail non false, inclusion sujet mail var html_subjectEmail = ''; if (messagerie.subjectEmail) { html_subjectEmail = ' '; } var html = '' +'
Retour messages
' +'
Envoyer
mon message
' +'
 
' +'
' +'
' +' - Ton message pour « '+pseudo+' » ?
' +' ' +' ' +html_subjectEmail +'
' +'
' +' ' +' - Sélectionnes les « photos » à associer ? - ( Exporter une « Nouvelle pic » )' +'
Tes photos disponibles, loading ...
' +'
' +' ' +' ' +' ' +'
' +' Tout sélectionner | Tout dé-sélectionner' +' ' +' ' +'
' +'' +''; return html; }, MySelectedPic:function(inPic) { var objDivPic = messagerie.getRef('global_message_myPic_in'); var objDivElements = objDivPic.getElementsByTagName("div"); // selection all if (inPic=='all') {for (i=0; i sélectionée(s) jointes - '; }, MyPicExport:function(user,inDo) { if (inDo==1) { messagerie.getRef('global_message_myLabel').innerHTML = '- Exporter nouvelle « photos » - ( Retour à « Mes pic » )'; messagerie.getSty('global_message_myPic').display = 'none'; messagerie.getSty('global_message_exportPic').display = 'block'; var formExportPic = '' +'
  • Sélectionnes / recherches t`as photo : « Parcourir/choix fichier »
  • ' +'' +''; messagerie.getRef('global_message_exportPic').innerHTML = formExportPic; } if (inDo==0) {messagerie.getRef('global_message_myLabel').innerHTML = '- Sélectionnes les « photos » à associer ? - ( Exporter une « Nouvelle pic » )'; messagerie.getSty('global_message_exportPic').display = 'none'; messagerie.getSty('global_message_myPic').display = 'block';} }, ExtensionPic:function() { var objPic = messagerie.getRef('userfile'); var objForm = messagerie.getRef('global_message_myPicForm'); if( (objPic.value.lastIndexOf(".jpg")==-1) && (objPic.value.lastIndexOf(".jpeg")==-1) && (objPic.value.lastIndexOf(".JPG")==-1) && (objPic.value.lastIndexOf(".JPEG")==-1) ) { alert("DESOLE !, \nL'extension / format de votre fichier doit être du type .JPG ou .JPEG"); objPic.select(); return false; } messagerie.getRef('tt6cont').setAttribute((document.all ? 'className' : 'class'),'global_ttcont'); messagerie.getRef('global_message_Error').innerHTML = '
  • Exortation photo en cours ...
  • '; objForm.submit(); }, CallInputMess:function(user,pseudo,pic) { if (messagerie.getRef('tt6cont')) { messagerie.getSty('tt6').display = 'block' global_extraDiv.bottomBoxDisplay(1); if (messagerie.getSty('tt6cont').display == 'none') global_extraDiv.bottomBoxReduce(); setTimeout(function() {messagerie.getRef('mess').focus();}, 100); } if (global_login == '') { if (!messagerie.getRef('tt6cont')) { global_extraDiv.bottomBoxShow('tt6','Formulaire : Loading ...',600,200,'Messagerie / Contacts',null,2); messagerie.getSty('tt6').display = 'none'; setTimeout(function() { messagerie.getSty('tt6cont').display = 'block'; messagerie.getRef('tt6contForm').innerHTML = messagerie.InitNotLoged(user,pseudo,pic); messagerie.getSty('tt6contTxt').display = 'none'; messagerie.getSty('tt6contForm').display = 'block'; messagerie.getSty('tt6').display = 'block'; messagerie.getRef('tt6cont').setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); }, 500); } else { var memoMailOld = messagerie.getRef('email_other').value; messagerie.getSty('tt6cont').display = 'block'; messagerie.getRef('tt6contForm').innerHTML = messagerie.InitNotLoged(user,pseudo,pic,memoMailOld); messagerie.getSty('tt6contTxt').display = 'none'; messagerie.getSty('tt6contForm').display = 'block'; messagerie.getSty('tt6').display = 'block'; messagerie.getRef('tt6cont').setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); } } else { messagerie.getRef('tt6contForm').innerHTML = messagerie.Init(user,pseudo,pic); } }, Call:function() { // Appel boîte à mess if (messagerie.getRef('tt6cont')) { messagerie.getSty('tt6').display = 'block' global_extraDiv.bottomBoxDisplay(0); if (messagerie.getSty('tt6cont').display == 'none') global_extraDiv.bottomBoxReduce(); } else { global_extraDiv.bottomBoxShow('tt6','Messages : Loading ...',600,200,'Messagerie',null,2); } }, CallMyMess:function() { messagerie.getSty('tt6').display = 'block'; global_queryHide('inDiv=tt6contTxt&callMyMess=1' ,'http://www.axegay.com/data_G999/chat/global_message.php'); }, Send:function() { if (messagerie.getRef('mess').value == '') { messagerie.getRef('tt6topHead').innerHTML = ' ERREUR - Aucum message saisie :-)'; setTimeout(function() { messagerie.getRef('tt6topHead').innerHTML = ''; }, 4000); messagerie.getRef('mess').focus(); return false;} var objForm = messagerie.getRef('global_message_mySendForm'); messagerie.getSty('global_message_masq').display = 'block'; objForm.submit(); messagerie.subjectEmail=false; isWritingDo=false; } } // fin return }(); // //////////////////////////////////////////// //////////////////////////////////////////// // Use : global_extraDiv.show(content,w,ht,titleBox,urlCall,maxBt); // var global_extraDiv=function(){ var id = 'tt'; var top = 3; var left = 3; var maxw = 600; var speed = 50; var timer = 5; var endalpha = 95; var alpha = 0; var tt,t,c,cIn,b,h,tb1,tb2,tb3,tb4,tb4b,tb3b,tb2b,tb1b; var t_tt,t_t,c_t,cIn_t,b_t,h,tb1_t,tb2_t,tb3_t,tb4_t,tb4b_t,tb3b_t,tb2b_t,tb1b_t; var m_tt,t_m,c_m,cIn_m,b_m,h_m,tb1_m,tb2_m,tb3_m,tb4_m,tb4b_m,tb3b_m,tb2b_m,tb1b_m; var o_tt,t_o,c_o,cIn_o,b_o,h_o,tb1_o,tb2_o,tb3_o,tb4_o,tb4b_o,tb3b_o,tb2b_o,tb1b_o,o_Height; var l_tt,t_l,c_l,cIn_l,b_l,h_l,tb1_l,tb2_l,tb3_l,tb4_l,tb4b_l,tb3b_l,tb2b_l,tb1b_l; var p_tt,t_p,c_p,cIn_p,b_p,h_p,tb1_p,tb2_p,tb3_p,tb4_p,tb4b_p,tb3b_p,tb2b_p,tb1b_p; var t_bb,t_b,c_b,cIn_b,b_b,h,tb1_b,tb2_b,tb3_b,tb4_b,tb4b_b,tb3b_b,tb2b_b,tb1b_b; var ie = document.all ? true : false; var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); var isDyn = (isDOM || isIE4 || isNS4); reg = new RegExp("([0-9]*)px", "i"); var hightLight_created = false; var bulle_created = false; var myWidth,myHeight,myObjId = null; var myWHLT = new Array(0,0,0,0,0); // memo style width:height:left:top:heightDivOverflow var objIsOpen=false; var objIsFullScreen=false; var objIsReplyScreen=false; var extraTimeOut = null; var bulleTimeOut = null; var intervalReduce = null; var hightlightTimeOut = null; var boxIntervalOption = null; var boxTimerOption = null; return{ SizeBrowser:function() { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } }, getRef:function(idObj) { if (isDOM_chatroom) return document.getElementById(idObj); if (isIE4_chatroom) return document.all[idObj]; if (isNS4_chatroom) return document.layers[idObj]; }, getSty:function(idObj) { return (isNS4_chatroom ? this.getRef(idObj) : this.getRef(idObj).style); }, getCss:function( selector, property ) { var i, r, s=document.styleSheets && document.styleSheets[0]; if(s) { r = s.rules ? s.rules : s.cssRules; if(r) { i = r.length; while (i--) { if(r[i].selectorText.toLowerCase() === selector.toLowerCase()) {return ( r[i].style[property] );} } } } return null; }, stillWait:function(ids,toDo) { // Si toDo defini appel waitfond var bgClassChx = 'global_ttcont loaded'; if (toDo!=undefined) bgClassChx = 'global_ttcont'; // Recerche Elt ds le tt var myElt_tt=document.getElementById(ids) var myElt_items= myElt_tt.getElementsByTagName("div") for (i=0; i-1) myElt_items[i].setAttribute((document.all ? 'className' : 'class'),bgClassChx); } }, stillDrag:function(idObj) { var element = global_extraDiv.getRef(idObj); var elementX = parseInt(reg.exec(element.style.left)[1]); var elementY = parseInt(reg.exec(element.style.top)[1]); alert(elementX+':::'+elementY); }, stillStop:function(ids){ if (objIsFullScreen==true) tt.style.left=myWHLT[2]; tt.style.top=myWHLT[3]; tt = global_extraDiv.getRef(ids); tt.style.display = 'none'; objIsOpen=false; }, stillMax:function(ids) { if (objIsFullScreen==true) { tt.style.width=myWHLT[0]; tt.style.height=myWHLT[1]; tt.style.left=myWHLT[2]; tt.style.top=myWHLT[3]; c.style.height=myWHLT[4]; objIsFullScreen=false; return false; } tt = global_extraDiv.getRef(ids); // Recerche Elt ds le tt var myElt_tt=document.getElementById(ids) var myElt_items= myElt_tt.getElementsByTagName("div") for (i=0; i-1) {cIn = myElt_items[i];} } } c = document.getElementById(ids+'cont'); this.SizeBrowser(); tt.style.top = '0px'; tt.style.left = '0px'; tt.style.width = myWidth ? myWidth + 'px' : 'auto'; tt.style.height = myHeight ? myHeight + 'px' : 'auto'; c.style.height = (myHeight-40) + 'px'; cIn.style.height = (myHeight-60) + 'px'; objIsFullScreen=true; }, repliMaxMin:function(ids) { tt = global_extraDiv.getRef(ids); if (objIsReplyScreen==true && global_extraDiv.getSty(ids+'cont').display == 'none') { tt.style.width=myWHLT[0]; tt.style.height=myWHLT[1]; tt.style.left=myWHLT[2]; tt.style.top=myWHLT[3]; global_extraDiv.getSty(ids+'cont').height=myWHLT[4]; global_extraDiv.getSty(ids+'cont').display = 'block'; global_extraDiv.getSty(ids+'bot').display = 'block'; objIsReplyScreen=false; return false; } // Memo init pos et dym myWHLT[0]=tt.style.width; myWHLT[1]=tt.style.height; myWHLT[2]=tt.style.left; myWHLT[3]=tt.style.top; myWHLT[4]=global_extraDiv.getRef(ids+'cont').style.height; global_extraDiv.getSty(ids+'cont').display = 'none'; global_extraDiv.getSty(ids+'bot').display = 'none'; tt.style.height='auto'; objIsReplyScreen = true; }, hightlight:function(idIn,v,w,ht,titleBox){ myObjId=idIn; // memo id tt_t = global_extraDiv.getRef(idIn); if(tt_t == null){alert('ERROR - Element ID: '+idIn+' à créer dans le source de la page'); return false; } clearTimeout(extraTimeOut); clearTimeout(hightlightTimeOut); hightlightTimeOut = setTimeout(function() { if (hightLight_created==false) { tt_t.style.height='50px'; tt_t.innerHTML = ''; tb1_t = document.createElement('b'); tb1_t.setAttribute((document.all ? 'className' : 'class'),'b1'); tb2_t = document.createElement('b'); tb2_t.setAttribute((document.all ? 'className' : 'class'),'b2'); tb3_t = document.createElement('b'); tb3_t.setAttribute((document.all ? 'className' : 'class'),'b3'); tb4_t = document.createElement('b'); tb4_t.setAttribute((document.all ? 'className' : 'class'),'b4'); t_t = document.createElement('div'); t_t.setAttribute('id',idIn + 'top'); t_t.setAttribute((document.all ? 'className' : 'class'),'global_tttop'); cIn_t = document.createElement('div'); cIn_t.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_txt'); cIn_t.setAttribute('id',idIn + 'cont'); c_t = document.createElement('div'); c_t.setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); c_t.setAttribute('id',idIn + 'contTxt'); c_t.appendChild(cIn_t); b_t = document.createElement('div'); b_t.setAttribute((document.all ? 'className' : 'class'),'global_ttbot'); b_t.setAttribute('id',idIn + 'bot'); tb4b_t = document.createElement('b'); tb4b_t.setAttribute((document.all ? 'className' : 'class'),'b4b'); tb3b_t = document.createElement('b'); tb3b_t.setAttribute((document.all ? 'className' : 'class'),'b3b'); tb2b_t = document.createElement('b'); tb2b_t.setAttribute((document.all ? 'className' : 'class'),'b2b'); tb1b_t = document.createElement('b'); tb1b_t.setAttribute((document.all ? 'className' : 'class'),'b1b'); tt_t.appendChild(tb1_t); tt_t.appendChild(tb2_t); tt_t.appendChild(tb3_t); tt_t.appendChild(tb4_t); tt_t.appendChild(t_t); tt_t.appendChild(c_t); tt_t.appendChild(b_t); tt_t.appendChild(tb4b_t); tt_t.appendChild(tb3b_t); tt_t.appendChild(tb2b_t); tt_t.appendChild(tb1b_t); hightLight_created=true; } document.onmousemove = function(e) { this.SizeBrowser; var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY; var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX; tt_t.style.top = (u - h) + 'px'; if ((u - h)<0) {tt_t.style.top = '10 px';} tt_t.style.left = (l + left) + 'px'; if ((l + left + (myWidth/2))>myWidth) tt_t.style.left = (l + left - (myWidth/2)-20) + 'px'; } tt_t.style.display = 'block'; clearTimeout(extraTimeOut); extraTimeOut = setTimeout(function() { t_t.innerHTML = ''; //t_t.innerHTML += 'X'; if (titleBox) t_t.innerHTML += '
    '+titleBox+'
    '; t_t.innerHTML += ''; cIn_t.innerHTML = v; b_t.innerHTML = 'AXEGAY © Copyright 2011'; cIn_t.style.height = (cIn_t.scrollHeight)+'px'; //c_t.style.height = (cIn_t.scrollHeight+5)+'px'; tt_t.style.height = (cIn_t.scrollHeight+45)+'px'; },300); tt_t.style.width = w ? w + 'px' : 'auto'; if(!w && ie){ t_t.style.display = 'none'; b_t.style.display = 'none'; tt_t.style.width = tt_t.offsetWidth; t_t.style.display = 'block'; b_t.style.display = 'block'; } //c_t.style.height = (ht-30) + 'px' tt_t.style.width = w + 'px'; if(tt_t.offsetWidth > maxw){tt_t.style.width = maxw + 'px'} h = parseInt(tt_t.offsetHeight) + top; },100); }, hightlightStop:function(ids){ clearTimeout(hightlightTimeOut); tt_t.style.display = 'none'; objIsOpen=false; }, bulle:function(idIn,v,w,ht){ myObjId=idIn; // memo id bb_t = global_extraDiv.getRef(idIn); if(bb_t == null){alert('ERROR - Element ID: '+idIn+' à créer dans le source de la page'); return false; } clearTimeout(extraTimeOut); clearTimeout(bulleTimeOut); bulleTimeOut = setTimeout(function() { //bb_t.style.height='50px'; if (bulle_created==false) { bb_t.innerHTML = ''; tb1_b = document.createElement('b'); tb1_b.setAttribute((document.all ? 'className' : 'class'),'b1'); tb2_b = document.createElement('b'); tb2_b.setAttribute((document.all ? 'className' : 'class'),'b2'); tb3_b = document.createElement('b'); tb3_b.setAttribute((document.all ? 'className' : 'class'),'b3'); tb4_b = document.createElement('b'); tb4_b.setAttribute((document.all ? 'className' : 'class'),'b4'); cIn_b = document.createElement('div'); cIn_b.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_txt'); cIn_b.setAttribute('id',idIn + 'cont'); c_b = document.createElement('div'); c_b.setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); c_b.setAttribute('id',idIn + 'contTxt'); c_b.appendChild(cIn_b); tb4b_b = document.createElement('b'); tb4b_b.setAttribute((document.all ? 'className' : 'class'),'b4b'); tb3b_b = document.createElement('b'); tb3b_b.setAttribute((document.all ? 'className' : 'class'),'b3b'); tb2b_b = document.createElement('b'); tb2b_b.setAttribute((document.all ? 'className' : 'class'),'b2b'); tb1b_b = document.createElement('b'); tb1b_b.setAttribute((document.all ? 'className' : 'class'),'b1b'); bb_t.appendChild(tb1_b); bb_t.appendChild(tb2_b); bb_t.appendChild(tb3_b); bb_t.appendChild(tb4_b); bb_t.appendChild(c_b); bb_t.appendChild(tb4b_b); bb_t.appendChild(tb3b_b); bb_t.appendChild(tb2b_b); bb_t.appendChild(tb1b_b); bulle_created=true; this.pos; } document.onmousemove = function(e) { //if (bb_t.style.display=='none') return false; this.SizeBrowser; var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY; var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX; bb_t.style.top = (u - h) + 'px'; if ((u - h)<0) {bb_t.style.top = '10 px';} if ((l + 290 + 20)>myWidth) bb_t.style.left = (l - 290 -20) + 'px'; else {bb_t.style.left = (l + left + 20) + 'px';} } //c_b.style.height = '50px'; bb_t.style.display = 'block'; clearTimeout(extraTimeOut); extraTimeOut = setTimeout(function() { c_b.innerHTML = v; if (ie) { c_b.style.height = c_b.scrollHeight+'px'; bb_t.style.height = (c_b.scrollHeight+15)+'px'; } },50); bb_t.style.width = w ? w + 'px' : 'auto'; if(!w && ie){ bb_t.style.width = bb_t.offsetWidth; } bb_t.style.width = w + 'px' if(bb_t.offsetWidth > maxw){bb_t.style.width = maxw + 'px'} h = parseInt(bb_t.offsetHeight) + top; },300); }, bulleStop:function(ids){ clearTimeout(bulleTimeOut); bb_t.style.display = 'none'; objIsOpen=false; }, pos:function(e){ //if (bb_t.style.display=='none') return false; this.SizeBrowser; var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY; var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX; bb_t.style.top = (u - h) + 'px'; if ((u - h)<0) {bb_t.style.top = '10 px';} if ((l + 290 + 20)>myWidth) bb_t.style.left = (l - 290 -20) + 'px'; else {bb_t.style.left = (l + left + 20) + 'px';} }, show:function(idIn,v,w,ht,titleBox,urlCalling,maxBt){ myObjId=idIn; // memo id tt = global_extraDiv.getRef(idIn); if(tt == null){alert('ERROR - Element ID: '+idIn+' à créer dans le source de la page'); return false; } tt.innerHTML = ''; tb1 = document.createElement('b'); tb1.setAttribute((document.all ? 'className' : 'class'),'b1'); tb2 = document.createElement('b'); tb2.setAttribute((document.all ? 'className' : 'class'),'b2'); tb3 = document.createElement('b'); tb3.setAttribute((document.all ? 'className' : 'class'),'b3'); tb4 = document.createElement('b'); tb4.setAttribute((document.all ? 'className' : 'class'),'b4'); t = document.createElement('div'); t.setAttribute('id',idIn + 'top'); t.setAttribute((document.all ? 'className' : 'class'),'global_tttop'); //t.setAttribute('onmouseover','movingToDrag=\''+idIn+'\';over=true; this.style.cursor=\'move\';'); //t.setAttribute('onmouseout','movingToDrag=\''+idIn+'\';over=false; this.style.cursor=\'pointer\';'); //t.setAttribute('onmousedown','movingToDrag=\''+idIn+'\';over=true; this.style.cursor=\'move\';'); //t.setAttribute('onmousemove','movingToDrag=\''+idIn+'\';over=true; this.style.cursor=\'move\';'); //t.setAttribute('onclick','movingToDrag=\''+idIn+'\';over=false; this.style.cursor=\'pointer\';global_extraDiv.stillDrag('+idIn+');'); cIn = document.createElement('div'); cIn.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_txt'); cIn.setAttribute('id',idIn + 'contTxt'); c = document.createElement('div'); c.setAttribute((document.all ? 'className' : 'class'),'global_ttcont'); c.setAttribute('id',idIn + 'cont'); c.appendChild(cIn); b = document.createElement('div'); b.setAttribute((document.all ? 'className' : 'class'),'global_ttbot'); b.setAttribute('id',idIn + 'bot'); tb4b = document.createElement('b'); tb4b.setAttribute((document.all ? 'className' : 'class'),'b4b'); tb3b = document.createElement('b'); tb3b.setAttribute((document.all ? 'className' : 'class'),'b3b'); tb2b = document.createElement('b'); tb2b.setAttribute((document.all ? 'className' : 'class'),'b2b'); tb1b = document.createElement('b'); tb1b.setAttribute((document.all ? 'className' : 'class'),'b1b'); tt.appendChild(tb1); tt.appendChild(tb2); tt.appendChild(tb3); tt.appendChild(tb4); tt.appendChild(t); tt.appendChild(c); tt.appendChild(b); tt.appendChild(tb4b); tt.appendChild(tb3b); tt.appendChild(tb2b); tt.appendChild(tb1b); tt.style.display = 'block'; if (extraTimeOut != null) clearTimeout(extraTimeOut); setTimeout(function() { t.innerHTML = ''; t.innerHTML += 'X'; if (maxBt==1) t.innerHTML += '_'; if (maxBt==2) t.innerHTML += '_'; if (titleBox) t.innerHTML += '
    '+titleBox+'
    '; t.innerHTML += '
    '; cIn.innerHTML = v; b.innerHTML = '' +'
    ' +'
    ' +' ....' +'
    ' +'
    ' +' AXEGAY © Copyright 2011' +'
    ' +'
    '; // Appel de url if (urlCalling) { var refDivInDisplay = idIn + 'contTxt'; var dt=new Date ();temps=dt.getTime(); var scriptExtraCallUrl = document.createElement('script'); scriptExtraCallUrl.type = 'text/javascript'; scriptExtraCallUrl.src = urlCalling+'&divIn='+refDivInDisplay+'&timer='+temps; document.getElementsByTagName('head')[0].appendChild(scriptExtraCallUrl); } },300); tt.style.width = w ? w + 'px' : 'auto'; if(!w && ie){ t.style.display = 'none'; b.style.display = 'none'; tt.style.width = tt.offsetWidth; t.style.display = 'block'; b.style.display = 'block'; } c.style.height = (ht-30) + 'px' tt.style.width = w + 'px' if(tt.offsetWidth > maxw){tt.style.width = maxw + 'px'} h = parseInt(tt.offsetHeight) + top; tt.style.display = 'block'; // Memo init pos et dym myWHLT[0]=tt.style.width; myWHLT[1]=ht+'px'; myWHLT[2]=global_extraDiv.getSty(myObjId).left; myWHLT[3]=global_extraDiv.getSty(myObjId).top; myWHLT[4]=c.style.height; //c.style.height = '250px'; //document.onclick = this.pos; }, photoBoxShow:function(user,pseudo,titleBox,picOrFlash) { var idIn = 'tt5'; p_tt = global_extraDiv.getRef(idIn); if(p_tt == null){alert('ERROR - Element ID: '+idIn+' à créer dans le source de la page'); return false; } p_tt.style.width = '630px'; p_tt.style.height = '520px'; if (p_tt.innerHTML == '') { tb1_p = document.createElement('b'); tb1_p.setAttribute((document.all ? 'className' : 'class'),'b1'); tb2_p = document.createElement('b'); tb2_p.setAttribute((document.all ? 'className' : 'class'),'b2'); tb3_p = document.createElement('b'); tb3_p.setAttribute((document.all ? 'className' : 'class'),'b3'); tb4_p = document.createElement('b'); tb4_p.setAttribute((document.all ? 'className' : 'class'),'b4'); t_p = document.createElement('div'); t_p.setAttribute('id',idIn + 'top'); t_p.setAttribute((document.all ? 'className' : 'class'),'global_tttop'); cIn_p = document.createElement('div'); cIn_p.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_txt'); cIn_p.setAttribute('id',idIn + 'contTxt'); c_p = document.createElement('div'); c_p.setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); c_p.setAttribute('id',idIn + 'cont'); c_p.appendChild(cIn_p); b_p = document.createElement('div'); b_p.setAttribute((document.all ? 'className' : 'class'),'global_ttbot'); b_p.setAttribute('id',idIn + 'bot'); tb4b_p = document.createElement('b'); tb4b_p.setAttribute((document.all ? 'className' : 'class'),'b4b'); tb3b_p = document.createElement('b'); tb3b_p.setAttribute((document.all ? 'className' : 'class'),'b3b'); tb2b_p = document.createElement('b'); tb2b_p.setAttribute((document.all ? 'className' : 'class'),'b2b'); tb1b_p = document.createElement('b'); tb1b_p.setAttribute((document.all ? 'className' : 'class'),'b1b'); p_tt.appendChild(tb1_p); p_tt.appendChild(tb2_p); p_tt.appendChild(tb3_p); p_tt.appendChild(tb4_p); p_tt.appendChild(t_p); p_tt.appendChild(c_p); p_tt.appendChild(b_p); p_tt.appendChild(tb4b_p); p_tt.appendChild(tb3b_p); p_tt.appendChild(tb2b_p); p_tt.appendChild(tb1b_p); } p_tt.style.display = 'block'; clearTimeout(extraTimeOut); extraTimeOut = setTimeout(function() { t_p.innerHTML = ''; t_p.innerHTML += 'X'; if (titleBox) {t_p.innerHTML += '
    '+titleBox+'
    ';} else if (!picOrFlash) {t_p.innerHTML += '
    Page perso de « '+pseudo+' »
    ';} else {t_p.innerHTML += '
    Book photos de « '+pseudo+' »
    ';} t_p.innerHTML += '
    '; // Affiche flash page perso if (!picOrFlash) { var dt=new Date ();temps=dt.getTime(); cIn_p.innerHTML = '' // Si picOrFlash undefined +'' +''; c_p.setAttribute((document.all ? 'className' : 'class'),'global_ttcont'); } // Affiche book photo else if (picOrFlash==1) { cIn_p.innerHTML = ''; // Si picOrFlash undefined var dt=new Date ();temps=dt.getTime(); var scriptPicCallUrl = document.createElement('script'); scriptPicCallUrl.type = 'text/javascript'; scriptPicCallUrl.src = 'http://www.axegay.com/data_G999/chat/global_pic_ScrollOther.php?user='+user+'&pseudo='+pseudo+'&divIn='+idIn+'&timer='+temps; document.getElementsByTagName('head')[0].appendChild(scriptPicCallUrl); c_p.setAttribute((document.all ? 'className' : 'class'),'global_ttcont'); } // Affiche photo URL complete fichier htt://xxxxxxxx .... /photo.xxx else if (picOrFlash.indexOf("http://")>-1) { cIn_p.innerHTML = '' // Si picOrFlash undefined +'
     
    ' +''; c_p.setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); } // Affiche photo solo nom fichier photo.xxx else if (picOrFlash.split('.').length>1) { var fistLetter = user.split('')[0].toLowerCase(); cIn_p.innerHTML = '' // Si picOrFlash undefined +'
     
    ' +''; c_p.setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); } else { cIn_p.innerHTML = '' // Si non determiné +'
     Action non déterminée ...
    ' +''; c_p.setAttribute((document.all ? 'className' : 'class'),'global_ttcont loaded'); } b_p.innerHTML = '' +'' +'       ' +'AXEGAY © Copyright 2011' +''; },60); }, bottomBoxShow:function(idIn,v,w,ht,titleBox,urlCall,maxBt) { // messageBox variables : m_tt,t_m,c_m,cIn_m,b_m,h_m,tb1_m,tb2_m,tb3_m,tb4_m,tb4b_m,tb3b_m,tb2b_m,tb1b_m myObjId=idIn; // memo id clearInterval(intervalReduce); m_tt = global_extraDiv.getRef(idIn); if(m_tt == null){alert('ERROR - Element ID: '+idIn+' à créer dans le source de la page'); return false; } m_tt.style.width = w+'px'; m_tt.style.height = ht+'px'; if (m_tt.innerHTML == '') { tb1_m = document.createElement('b'); tb1_m.setAttribute((document.all ? 'className' : 'class'),'b1'); tb2_m = document.createElement('b'); tb2_m.setAttribute((document.all ? 'className' : 'class'),'b2'); tb3_m = document.createElement('b'); tb3_m.setAttribute((document.all ? 'className' : 'class'),'b3'); tb4_m = document.createElement('b'); tb4_m.setAttribute((document.all ? 'className' : 'class'),'b4'); t_m = document.createElement('div'); t_m.setAttribute('id',idIn + 'top'); t_m.setAttribute((document.all ? 'className' : 'class'),'global_tttop'); cIn_m = document.createElement('div'); cIn_m.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_txt'); cIn_m.setAttribute('id',idIn + 'contTxt'); cForm_m = document.createElement('div'); cForm_m.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_form'); cForm_m.setAttribute('id',idIn + 'contForm'); c_m = document.createElement('div'); c_m.setAttribute((document.all ? 'className' : 'class'),'global_ttcont'); c_m.setAttribute('id',idIn + 'cont'); c_m.appendChild(cIn_m); c_m.appendChild(cForm_m); b_m = document.createElement('div'); b_m.setAttribute((document.all ? 'className' : 'class'),'global_ttbot'); b_m.setAttribute('id',idIn + 'bot'); tb4b_m = document.createElement('b'); tb4b_m.setAttribute((document.all ? 'className' : 'class'),'b4b'); tb3b_m = document.createElement('b'); tb3b_m.setAttribute((document.all ? 'className' : 'class'),'b3b'); tb2b_m = document.createElement('b'); tb2b_m.setAttribute((document.all ? 'className' : 'class'),'b2b'); tb1b_m = document.createElement('b'); tb1b_m.setAttribute((document.all ? 'className' : 'class'),'b1b'); m_tt.appendChild(tb1_m); m_tt.appendChild(tb2_m); m_tt.appendChild(tb3_m); m_tt.appendChild(tb4_m); m_tt.appendChild(t_m); m_tt.appendChild(c_m); m_tt.appendChild(b_m); m_tt.appendChild(tb4b_m); m_tt.appendChild(tb3b_m); m_tt.appendChild(tb2b_m); m_tt.appendChild(tb1b_m); } if (m_tt.innerHTML != '') {if (c_m.style.display == 'none') {global_extraDiv.bottomBoxRepliMaxMin(idIn);}} //m_tt.style.display = 'block'; this.SizeBrowser(); clearTimeout(extraTimeOut); extraTimeOut = setTimeout(function() { t_m.innerHTML = ''; t_m.innerHTML += 'X'; if (maxBt==1) t_m.innerHTML += '_'; if (maxBt==2) t_m.innerHTML += '_'; if (titleBox) t_m.innerHTML += '
    '+titleBox+'
    '; t_m.innerHTML += '
    '; cIn_m.innerHTML = v; cForm_m.innerHTML = messagerie.Init(); b_m.innerHTML = 'AXEGAY © Copyright 2011'; setTimeout(function() { m_tt.style.display = 'block'; m_tt.style.paddingTop = '0px'; m_tt.style.marginTop = '0px'; m_tt.style.height = t_m.scrollHeight + c_m.scrollHeight + b_m.scrollHeight + 5 + 'px'; var margH = myHeight - parseInt(reg.exec(m_tt.style.height)[1]) - 5; m_tt.style.top = '0px'; m_tt.style.marginTop = margH+'px'; var margL = myWidth - w - 25; m_tt.style.left = '0px'; m_tt.style.marginLeft = margL+'px'; },300); // Appel de url if (urlCall) { var refDivInDisplay = idIn + 'contTxt'; var dt=new Date ();temps=dt.getTime(); var scriptExtraCallUrl = document.createElement('script'); scriptExtraCallUrl.type = 'text/javascript'; scriptExtraCallUrl.src = urlCall+'&divIn='+refDivInDisplay+'&timer='+temps; document.getElementsByTagName('head')[0].appendChild(scriptExtraCallUrl); } },300); }, bottomBoxDisplay:function(inChx) { if (inChx==0) {cForm_m.style.display = 'none'; cIn_m.style.display = 'block';} if (inChx==1) {cIn_m.style.display = 'none'; cForm_m.style.display = 'block'; isWritingDo=false;} }, bottomBoxRepliMaxMin:function() { clearInterval(intervalReduce); this.SizeBrowser(); if (c_m.style.display != 'none') { m_tt.style.paddingTop = '0px'; c_m.style.display = 'none'; b_m.style.display = 'none'; m_tt.style.height = t_m.scrollHeight + 12 - parseInt(reg.exec(m_tt.style.paddingTop)[1]) + 'px'; var margH = myHeight - parseInt(reg.exec(m_tt.style.paddingTop)[1]) - parseInt(reg.exec(m_tt.style.height)[1]) - 5; m_tt.style.top = '0px'; m_tt.style.marginTop = margH+'px'; var margL = myWidth - parseInt(reg.exec(m_tt.style.width)[1]) - 25; m_tt.style.left = '0px'; m_tt.style.marginLeft = margL+'px'; isWritingDo=false; return false } c_m.style.display = 'block'; b_m.style.display = 'block'; m_tt.style.height = (t_m.scrollHeight + c_m.scrollHeight + b_m.scrollHeight + 5 - parseInt(reg.exec(m_tt.style.paddingTop)[1])) + 'px'; var margH = myHeight - parseInt(reg.exec(m_tt.style.paddingTop)[1]) - parseInt(reg.exec(m_tt.style.height)[1]) - 5; m_tt.style.top = '0px'; m_tt.style.marginTop = margH+'px'; var margL = myWidth - w - 25; m_tt.style.left = '0px'; m_tt.style.marginLeft = margL+'px'; }, bottomBoxReduce:function() { clearInterval(intervalReduce); this.SizeBrowser(); if (c_m.style.display != 'none') { intervalReduce = setInterval(function() { if (parseInt(reg.exec(m_tt.style.height)[1])>25) { m_tt.style.height = (parseInt(reg.exec(m_tt.style.height)[1])-4)+'px'; m_tt.style.paddingTop = (parseInt(reg.exec(m_tt.style.paddingTop)[1])+4)+'px'; var margH = myHeight - parseInt(reg.exec(m_tt.style.paddingTop)[1]) - parseInt(reg.exec(m_tt.style.height)[1]) - 5; m_tt.style.marginTop = margH+'px'; } else {clearInterval(intervalReduce); global_extraDiv.bottomBoxRepliMaxMin();} },5); return false; } c_m.style.display = 'block'; intervalReduce = setInterval(function() { if (parseInt(reg.exec(m_tt.style.height)[1])<=209) { m_tt.style.height = (parseInt(reg.exec(m_tt.style.height)[1])+4)+'px'; if (m_tt.style.paddingTop=='0px') {m_tt.style.paddingTop='4px'} m_tt.style.paddingTop = (parseInt(reg.exec(m_tt.style.paddingTop)[1])-4)+'px'; var margH = myHeight - parseInt(reg.exec(m_tt.style.paddingTop)[1]) - parseInt(reg.exec(m_tt.style.height)[1]) - 5; m_tt.style.marginTop = margH+'px'; } else {clearInterval(intervalReduce); c_m.style.display = 'none'; global_extraDiv.bottomBoxRepliMaxMin();} },5); }, liveBoxShow:function(idIn,v,w,ht,titleBox,urlCall,maxBt) { myObjId=idIn; // memo id clearInterval(intervalReduce); l_tt = global_extraDiv.getRef(idIn); if(l_tt == null){alert('ERROR - Element ID: '+idIn+' à créer dans le source de la page'); return false; } l_tt.style.width = w+'px'; l_tt.style.height = ht+'px'; if (l_tt.innerHTML == '') { tb1_l = document.createElement('b'); tb1_l.setAttribute((document.all ? 'className' : 'class'),'b1'); tb2_l = document.createElement('b'); tb2_l.setAttribute((document.all ? 'className' : 'class'),'b2'); tb3_l = document.createElement('b'); tb3_l.setAttribute((document.all ? 'className' : 'class'),'b3'); tb4_l = document.createElement('b'); tb4_l.setAttribute((document.all ? 'className' : 'class'),'b4'); t_l = document.createElement('div'); t_l.setAttribute('id',idIn + 'top'); t_l.setAttribute((document.all ? 'className' : 'class'),'global_tttop'); cIn_l = document.createElement('div'); cIn_l.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_txt'); cIn_l.setAttribute('id',idIn + 'contTxt'); cForm_l = document.createElement('div'); cForm_l.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_form'); cForm_l.setAttribute('id',idIn + 'contForm'); c_l = document.createElement('div'); c_l.setAttribute((document.all ? 'className' : 'class'),'global_ttcont'); c_l.setAttribute('id',idIn + 'cont'); c_l.appendChild(cIn_l); c_l.appendChild(cForm_l); b_l = document.createElement('div'); b_l.setAttribute((document.all ? 'className' : 'class'),'global_ttbot'); b_l.setAttribute('id',idIn + 'bot'); tb4b_l = document.createElement('b'); tb4b_l.setAttribute((document.all ? 'className' : 'class'),'b4b'); tb3b_l = document.createElement('b'); tb3b_l.setAttribute((document.all ? 'className' : 'class'),'b3b'); tb2b_l = document.createElement('b'); tb2b_l.setAttribute((document.all ? 'className' : 'class'),'b2b'); tb1b_l = document.createElement('b'); tb1b_l.setAttribute((document.all ? 'className' : 'class'),'b1b'); l_tt.appendChild(tb1_l); l_tt.appendChild(tb2_l); l_tt.appendChild(tb3_l); l_tt.appendChild(tb4_l); l_tt.appendChild(t_l); l_tt.appendChild(c_l); l_tt.appendChild(b_l); l_tt.appendChild(tb4b_l); l_tt.appendChild(tb3b_l); l_tt.appendChild(tb2b_l); l_tt.appendChild(tb1b_l); } clearTimeout(extraTimeOut); extraTimeOut = setTimeout(function() { t_l.innerHTML = ''; t_l.innerHTML += 'X'; if (maxBt==1) t_l.innerHTML += '_'; if (maxBt==2) t_l.innerHTML += '_'; if (titleBox) t_l.innerHTML += '
    '+titleBox+'
    '; t_l.innerHTML += '
    '; cIn_l.innerHTML = v; cForm_l.innerHTML = ''; b_l.innerHTML = 'AXEGAY © Copyright 2011'; },300); setTimeout(function() { l_tt.style.display = 'block'; l_tt.style.paddingTop = '0px'; l_tt.style.marginTop = '0px'; l_tt.style.height = t_l.scrollHeight + c_l.scrollHeight + b_l.scrollHeight + 5 + 'px'; var margH = myHeight - parseInt(reg.exec(l_tt.style.height)[1]) - 35; l_tt.style.top = '0px'; l_tt.style.marginTop = margH+'px'; var margL = myWidth - w - 25; l_tt.style.left = '0px'; l_tt.style.marginLeft = margL+'px'; l_tt.style.display = 'block'; },200); }, liveBoxReduce:function() { clearInterval(intervalReduce); this.SizeBrowser(); if (c_l.style.display != 'none') { intervalReduce = setInterval(function() { if (parseInt(reg.exec(l_tt.style.height)[1])>25) { l_tt.style.height = (parseInt(reg.exec(l_tt.style.height)[1])-4)+'px'; l_tt.style.paddingTop = (parseInt(reg.exec(l_tt.style.paddingTop)[1])+4)+'px'; var margH = myHeight - parseInt(reg.exec(l_tt.style.paddingTop)[1]) - parseInt(reg.exec(l_tt.style.height)[1]) - 35; l_tt.style.marginTop = margH+'px'; } else {clearInterval(intervalReduce); global_extraDiv.liveBoxRepliMaxMin();} },5); return false; } c_l.style.display = 'block'; intervalReduce = setInterval(function() { if (parseInt(reg.exec(l_tt.style.height)[1])<=209) { l_tt.style.height = (parseInt(reg.exec(l_tt.style.height)[1])+4)+'px'; if (l_tt.style.paddingTop=='0px') {l_tt.style.paddingTop='4px'} l_tt.style.paddingTop = (parseInt(reg.exec(l_tt.style.paddingTop)[1])-4)+'px'; var margH = myHeight - parseInt(reg.exec(l_tt.style.paddingTop)[1]) - parseInt(reg.exec(l_tt.style.height)[1]) - 35; l_tt.style.marginTop = margH+'px'; } else {clearInterval(intervalReduce); c_l.style.display = 'none'; global_extraDiv.liveBoxRepliMaxMin();} },5); }, liveBoxRepliMaxMin:function(inDo) { clearInterval(intervalReduce); this.SizeBrowser(); if (c_l.style.display != 'none' && inDo==undefined) { l_tt.style.paddingTop = '0px'; c_l.style.display = 'none'; b_l.style.display = 'none'; l_tt.style.height = t_l.scrollHeight + 12 - parseInt(reg.exec(l_tt.style.paddingTop)[1]) + 'px'; var margH = myHeight - parseInt(reg.exec(l_tt.style.paddingTop)[1]) - parseInt(reg.exec(l_tt.style.height)[1]) - 35; l_tt.style.top = '0px'; l_tt.style.marginTop = margH+'px'; var margL = myWidth - parseInt(reg.exec(l_tt.style.width)[1]) - 25; l_tt.style.left = '0px'; l_tt.style.marginLeft = margL+'px'; return false } c_l.style.display = 'block'; b_l.style.display = 'block'; l_tt.style.height = (t_l.scrollHeight + c_l.scrollHeight + b_l.scrollHeight + 5 - parseInt(reg.exec(l_tt.style.paddingTop)[1])) + 'px'; var margH = myHeight - parseInt(reg.exec(l_tt.style.paddingTop)[1]) - parseInt(reg.exec(l_tt.style.height)[1]) - 30; l_tt.style.top = '0px'; l_tt.style.marginTop = margH+'px'; var margL = myWidth - w - 25; l_tt.style.left = '0px'; l_tt.style.marginLeft = margL+'px'; }, optionBoxShow:function(idIn,v,w,ht,titleBox,urlCall) { // optionBox variables : o_tt,t_o,c_o,cIn_o,b_o,h_o,tb1_o,tb2_o,tb3_o,tb4_o,tb4b_o,tb3b_o,tb2b_o,tb1b_o myObjId=idIn; // memo id o_tt = global_extraDiv.getRef(idIn); if(o_tt == null){alert('ERROR - Element ID: '+idIn+' à créer dans le source de la page'); return false; } o_tt.style.height = '0px'; if (w) o_tt.style.width = w+'px'; if (ht) var htOpt = ht; else var htOpt = 60; o_tt.style.zIndex = '100'; if (o_tt.innerHTML == '') { tb1_o = document.createElement('b'); tb1_o.setAttribute((document.all ? 'className' : 'class'),'b1'); tb2_o = document.createElement('b'); tb2_o.setAttribute((document.all ? 'className' : 'class'),'b2'); tb3_o = document.createElement('b'); tb3_o.setAttribute((document.all ? 'className' : 'class'),'b3'); tb4_o = document.createElement('b'); tb4_o.setAttribute((document.all ? 'className' : 'class'),'b4'); t_o = document.createElement('div'); t_o.setAttribute('id',idIn + 'top'); t_o.setAttribute((document.all ? 'className' : 'class'),'global_tttop'); cIn_o = document.createElement('div'); cIn_o.setAttribute((document.all ? 'className' : 'class'),'global_ttcont_txt'); cIn_o.setAttribute('id',idIn + 'contTxt'); c_o = document.createElement('div'); c_o.setAttribute((document.all ? 'className' : 'class'),'global_ttcont'); c_o.setAttribute('id',idIn + 'cont'); c_o.appendChild(cIn_o); b_o = document.createElement('div'); b_o.setAttribute((document.all ? 'className' : 'class'),'global_ttbot'); b_o.setAttribute('id',idIn + 'bot'); tb4b_o = document.createElement('b'); tb4b_o.setAttribute((document.all ? 'className' : 'class'),'b4b'); tb3b_o = document.createElement('b'); tb3b_o.setAttribute((document.all ? 'className' : 'class'),'b3b'); tb2b_o = document.createElement('b'); tb2b_o.setAttribute((document.all ? 'className' : 'class'),'b2b'); tb1b_o = document.createElement('b'); tb1b_o.setAttribute((document.all ? 'className' : 'class'),'b1b'); o_tt.appendChild(tb1_o); o_tt.appendChild(tb2_o); o_tt.appendChild(tb3_o); o_tt.appendChild(tb4_o); o_tt.appendChild(t_o); o_tt.appendChild(c_o); o_tt.appendChild(b_o); o_tt.appendChild(tb4b_o); o_tt.appendChild(tb3b_o); o_tt.appendChild(tb2b_o); o_tt.appendChild(tb1b_o); } this.SizeBrowser(); clearTimeout(extraTimeOut); extraTimeOut = setTimeout(function() { //global_extraDiv.getCss('.global_option_box', 'height' ); o_Height = 0; o_tt.style.height = o_Height+'px'; o_tt.style.top = (myHeight*0.93-parseInt(reg.exec(o_tt.style.height)[1])) + 'px'; t_o.innerHTML = ''; t_o.innerHTML += '_'; if (titleBox) t_o.innerHTML += '
    '+titleBox+'
    '; t_o.innerHTML += '
    '; cIn_o.innerHTML = v; //b_o.innerHTML = 'AXEGAY © Copyright 2011'; o_tt.style.display = 'none'; cIn_o.style.height = (htOpt-25)+'px'; c_o.style.height = (htOpt-24)+'px'; clearInterval(boxIntervalOption); boxIntervalOption = setInterval(function() { var o_hauteur = parseInt(reg.exec(o_tt.style.height)[1]); if ( o_Height <= htOpt ) { o_Height = (o_Height+2); o_tt.style.height = o_Height +15 + 'px'; o_tt.style.top = (myHeight*0.93-o_hauteur-2) + 'px'; if ( (myHeight*0.94+o_hauteur*2+5)= 0 ) { o_Height = (o_hauteur-2); o_tt.style.height = (o_hauteur-2) + 'px'; o_tt.style.top = (myHeight*0.93-o_hauteur+2) + 'px'; } else {clearInterval(boxIntervalOption); o_tt.style.display = 'none';} },6); },6000); }, optionBoxReduce:function() { clearInterval(boxIntervalOption); boxIntervalOption = setInterval(function() { var o_hauteur = parseInt(reg.exec(o_tt.style.height)[1]); if ( o_Height >= 0 ) { o_Height = (o_hauteur-2); o_tt.style.height = (o_hauteur-2) + 'px'; o_tt.style.top = (myHeight*0.93-o_hauteur+2) + 'px'; } else {clearInterval(boxIntervalOption); o_tt.style.display = 'none';} },5); } } // fin return }(); function global_adaptMenuLevel(inId,grpClass,adaptClass) { var groupIn = inId[0].split('_')[0]; var groupSub = inId[0].split('_')[1]; //alert(groupIn+'-'+inId[0]+'-'+inId[1]+' > '+grpClass+' : '+adaptClass); // Adapt class button var mylist=document.getElementById(inId[1]) var listitems= mylist.getElementsByTagName("a") // Si top thematique for (i=0; i-1) listitems[i].className=grpClass; } // Si click ds bottom sub nav if (inId[1].indexOf("bottom_nav_sub")>-1) { var memo = inId[1]; var mylist=document.getElementById(memo.replace('bottom', 'top')); var listitems2= mylist.getElementsByTagName("a"); for (i=0; i-1) listitems2[i].className=grpClass;} } // Si click ds top sub nav if (inId[1].indexOf("top_nav_sub")>-1) { var memo = inId[1]; var mylist=document.getElementById(memo.replace('top', 'bottom')); var listitems3= mylist.getElementsByTagName("a"); for (i=0; i-1) listitems3[i].className=grpClass;} } // Active thema getRef_chatroom(inId[0]).className=adaptClass; // Affiche global_center_container_sub* if (getRef_chatroom('global_center_container_'+groupSub) && groupIn=='navLevel1') { for (i=0; i-1 ) { // appel disclaimer global_callDisclaimer(1); global_disclaimerClicked = true; } // Memo global_thema = global_themaArr[groupSub]; global_sub = groupSub; getRef_chatroom('global_center_container_title').innerHTML = global_tilteArr[groupSub]; global_maximalize('default'); } } function global_optionsChatSearchCheck(objIn) { var startGeoIndex = 4; var numIn = objIn.id.split('_'); // Re-init search distance critere var divElt = getRef_chatroom('global_top_nav_subContentDisplay_in'); var searchItems= divElt.getElementsByTagName("a"); if (numIn[1]>=startGeoIndex) for (i=0; i=startGeoIndex && i!=numIn[1]) {getRef_chatroom('imgSch_'+i).src = 'http://www.axegay.com/data_G999/deco/arrow_next.png';}} if (getRef_chatroom('imgSch_'+numIn[1]).src!='http://www.axegay.com/data_G999/deco/global_check_red.png') getRef_chatroom('imgSch_'+numIn[1]).src = 'http://www.axegay.com/data_G999/deco/global_check_red.png'; else getRef_chatroom('imgSch_'+numIn[1]).src = 'http://www.axegay.com/data_G999/deco/arrow_next.png'; setTimeout(function() { getRef_chatroom('global_top_nav_subContentDisplay_in').innerHTML = getRef_chatroom('global_top_nav_subsub_search').innerHTML; getSty_chatroom('global_top_nav_subContentDisplay').display = 'block'; },80); } function global_optionsChatSearchCall() { var divElt = getRef_chatroom('global_top_nav_subContentDisplay_in'); var searchItems= divElt.getElementsByTagName("a"); var queryItems = 'query=14&'; for (i=0; i-1) queryItems += 'u_online=1&'; if (i==1 && objChecked.indexOf('check')>-1) queryItems += 'u_pic=1&'; if (i==2 && objChecked.indexOf('check')>-1) queryItems += 'u_video=1&'; if (i==3 && objChecked.indexOf('check')>-1) queryItems += 'u_blog=1&'; if (i==4 && objChecked.indexOf('check')>-1) queryItems += 'u_region='+getRef_chatroom('linkSch_'+i).title+'&'; if (i==5 && objChecked.indexOf('check')>-1) queryItems += 'u_ville='+getRef_chatroom('linkSch_'+i).title+'&'; if (i==6 && objChecked.indexOf('check')>-1) queryItems += 'u_radius='+getRef_chatroom('linkSch_'+i).title+'&'; if (i==7 && objChecked.indexOf('check')>-1) queryItems += 'u_radius='+getRef_chatroom('linkSch_'+i).title+'&'; if (i==8 && objChecked.indexOf('check')>-1) queryItems += 'u_radius='+getRef_chatroom('linkSch_'+i).title+'&'; } global_query(queryItems,'http://www.axegay.com/data_G999/chat/global_chatRequest.php'); } var timeOutSubOff=null; var memoSubOff=null; var memoContent=''; function getSubEvent(e,idIn) { var event = e || window.event; var srcEl = event.srcElement? event.srcElement : event.target; if (!idIn) { if (memoSubOff!=null) getRef_chatroom(memoSubOff).setAttribute((document.all ? 'className' : 'class'),'wdwbutton black small'); timeOutSubOff = setTimeout(function() { getSty_chatroom('global_top_nav_subContentDisplay').display = 'none'; return false; },1000); } var subLinkToDisplayId = 'global_top_nav_subsub_'+srcEl.id.split('_')[1]; if (getRef_chatroom(subLinkToDisplayId)) { if (memoSubOff!=null) getRef_chatroom(memoSubOff).setAttribute((document.all ? 'className' : 'class'),'wdwbutton black small'); clearTimeout(timeOutSubOff); var ie = document.all ? true : false; var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY; var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX; // highlight memoSubOff = srcEl.id; getRef_chatroom(srcEl.id).setAttribute((document.all ? 'className' : 'class'),'wdwbutton orange small'); // Mise en place sub getSty_chatroom('global_top_nav_subContentDisplay').left = (l-70) + 'px'; if (getRef_chatroom('global_top_nav_subContentDisplay_in').innerHTML != getRef_chatroom(subLinkToDisplayId).innerHTML) { getRef_chatroom('global_top_nav_subContentDisplay_in').innerHTML = getRef_chatroom(subLinkToDisplayId).innerHTML; } getSize_Browser(); getSty_chatroom('global_top_nav_subContentDisplay').maxHeight = (myHeight-120)+'px'; getSty_chatroom('global_top_nav_subContentDisplay_in').maxHeight = (myHeight-140)+'px'; // Si contenu supérieur a la boite scroll tool if ( getRef_chatroom('global_top_nav_subContentDisplay_in').scrollHeight>(myHeight-140) ) {getSty_chatroom('global_top_nav_subContentDisplay_scroll').display = 'inline-block';} else {getSty_chatroom('global_top_nav_subContentDisplay_scroll').display = 'none';} getSty_chatroom('global_top_nav_subContentDisplay').display = 'inline-block'; getRef_chatroom('global_top_nav_subContentDisplay').onmouseout= function() { getRef_chatroom(memoSubOff).setAttribute((document.all ? 'className' : 'class'),'wdwbutton black small'); timeOutSubOff = setTimeout(function() { getSty_chatroom('global_top_nav_subContentDisplay').display = 'none'; },1000); } getRef_chatroom('global_top_nav_subContentDisplay').onmouseover= function () {this.style.display='inline-block'; clearTimeout(timeOutSubOff);} getRef_chatroom('global_top_nav_subContentDisplay').onclick= function () {this.style.display='none'; getRef_chatroom(memoSubOff).setAttribute((document.all ? 'className' : 'class'),'wdwbutton orange small');} /* if (srcEl.id.split('_')[1]=='boutique0' || srcEl.id.split('_')[1]=='boutique1') { if (getRef_chatroom(subLinkToDisplayId).innerHTML!='') memoContent = getRef_chatroom(subLinkToDisplayId).innerHTML; if (memoContent!='') getRef_chatroom(subLinkToDisplayId).innerHTML = ''; getRef_chatroom('global_top_nav_subContentDisplay').onmouseout= function () {if (getRef_chatroom('global_top_nav_subContentDisplay_in').innerHTML!=memoContent) getRef_chatroom('global_top_nav_subContentDisplay_in').innerHTML = memoContent;} getSty_chatroom('global_top_nav_subContentDisplay_scroll').display = 'block'; } */ if (srcEl.id.split('_')[1]=='searchPlace') { getRef_chatroom('global_top_nav_subContentDisplay').onclick=null; if (getRef_chatroom(subLinkToDisplayId).innerHTML!='') memoContent = getRef_chatroom(subLinkToDisplayId).innerHTML; if (memoContent!='') getRef_chatroom(subLinkToDisplayId).innerHTML = ''; getRef_chatroom('global_top_nav_subContentDisplay').onclick=null; getRef_chatroom('global_top_nav_subContentDisplay').onmouseout= function () {if (getRef_chatroom('global_top_nav_subContentDisplay_in').innerHTML!=memoContent) getRef_chatroom('global_top_nav_subContentDisplay_in').innerHTML = memoContent;} } } else {getSty_chatroom('global_top_nav_subContentDisplay').display = 'none';} } function global_callDisclaimer(inDo) { if (inDo!=undefined) { getSty_chatroom('global_disclaimer').display='block'; global_wait(1); getSty_chatroom('global_waitPub768x90').display='none'; return false; } getSty_chatroom('global_disclaimer').display='none'; global_wait(); } regPerCent = new RegExp("([0-9]*)%", "i"); var global_memoDisplay = new Array(); function global_maximalize(inMax) { // param-> max, maxLeft, maxRight getSty_chatroom('global_leftBis').display = 'none'; // Replis, reduce si déjà max pour `global_center_container_maxMin` var largCenter = parseInt(regPerCent.exec(getSty_chatroom('global_center').width)); if (inMax=='max' && largCenter>60) inMax='default'; // Reduce max for tchat if (global_thema=='tchat' && inMax=='max' && global_auth==true) inMax='maxRight'; if (global_memoDisplay.length==0) { global_memoDisplay.push(getSty_chatroom('global_left').display); global_memoDisplay.push(getSty_chatroom('global_right').display); } if (inMax=='max') { getSty_chatroom('global_left').display = 'none'; getSty_chatroom('global_right').display = 'none'; getSty_chatroom('global_center').display = 'block'; getSty_chatroom('global_center').width = '99%'; getSty_chatroom('global_center').left = '10px'; getSty_chatroom('global_left').width = '0%'; getSty_chatroom('global_right').width = '0%'; getRef_chatroom('global_center_container_maxMin').onclick = function() { global_maximalize(); } } else if (inMax=='maxLeft') { getSty_chatroom('global_left').display = 'none'; getSty_chatroom('global_left').width = '0%'; getSty_chatroom('global_center').display = 'block'; getSty_chatroom('global_center').left = '10px'; getSty_chatroom('global_center').width = '80%'; getSty_chatroom('global_right').left = '80%'; getSty_chatroom('global_right').width = '20%'; } else if (inMax=='maxRight') { getSty_chatroom('global_left').display = 'none'; // Reduce max for tchat if (global_thema=='tchat' && global_auth==true) getSty_chatroom('global_left').display = 'block'; getSty_chatroom('global_left').width = '20%'; getSty_chatroom('global_center').display = 'block'; getSty_chatroom('global_center').left = '20%'; getSty_chatroom('global_center').width = '80%'; getSty_chatroom('global_right').display = 'none'; getSty_chatroom('global_right').width = '0%'; } else if (inMax=='default') { // Affichage zone par default init var zone = global_zoneArr[global_sub].split('|'); if (zone[0]==1) {getSty_chatroom('global_left').display = 'block';} else {getSty_chatroom('global_left').display = 'none';} if (zone[1]==1) {getSty_chatroom('global_center').display = 'block';} else {getSty_chatroom('global_center').display = 'none';} if (zone[2]==1) {getSty_chatroom('global_right').display = 'block';} else {getSty_chatroom('global_right').display = 'none';} if (zone[3]==1) {getSty_chatroom('global_leftBis').display = 'block'; getSty_chatroom('global_leftBis_container').display = 'block'; } else {getSty_chatroom('global_leftBis').display = 'none';} if (zone[4]==1) {getSty_chatroom('global_centerBis').display = 'block'; getSty_chatroom('global_leftBis_container').display = 'block';} else {getSty_chatroom('global_centerBis').display = 'none';} getSty_chatroom('global_left').left = '10px'; getSty_chatroom('global_left').width = '20%'; getSty_chatroom('global_center').left = '20%'; getSty_chatroom('global_center').width = '60%'; getSty_chatroom('global_right').left = '80%'; getSty_chatroom('global_right').width = '20%'; global_memoDisplay = new Array(); // Affiche `global_left` ou `global_leftBis` getSty_chatroom('global_leftBis_containerAgenda').display = 'none'; getSty_chatroom('global_leftBis_containerSortir').display = 'none'; getSty_chatroom('global_leftBis_containerItineraire').display = 'none'; if (getSty_chatroom('global_left').display == 'none' && global_thema=='blog') { getSty_chatroom('global_leftBis').display = 'block'; } else if (getSty_chatroom('global_left').display == 'none' && global_thema=='agenda') { getSty_chatroom('global_leftBis_container').display = 'none'; getSty_chatroom('global_leftBis_containerAgenda').display = 'block'; getSty_chatroom('global_leftBis').display = 'block'; } else if (getSty_chatroom('global_left').display == 'none' && global_thema=='sortir') { getSty_chatroom('global_leftBis_container').display = 'none'; getSty_chatroom('global_leftBis_containerSortir').display = 'block'; getSty_chatroom('global_leftBis').display = 'block'; getRef_chatroom('global_center_container_maxMin').onclick = function() { global_maximalize('maxRight'); getSty_chatroom('global_leftBis').display = 'block'; getRef_chatroom('global_center_container_maxMin').onclick = function() { global_maximalize('default'); getSty_chatroom('global_leftBis').display = 'block'; } } } else if (getSty_chatroom('global_left').display == 'none' && global_thema=='itineraire') { getSty_chatroom('global_leftBis_container').display = 'none'; getSty_chatroom('global_leftBis_containerItineraire').display = 'block'; getSty_chatroom('global_leftBis').display = 'block'; } else { getSty_chatroom('global_leftBis').display = 'none'; } } else { // restauration initial getSty_chatroom('global_left').display = global_memoDisplay[0]; getSty_chatroom('global_left').width = '20%'; getSty_chatroom('global_center').display = 'block'; getSty_chatroom('global_right').display = global_memoDisplay[1]; getSty_chatroom('global_right').width = '20%'; getSty_chatroom('global_center').left = '20%'; getSty_chatroom('global_center').width = '60%'; global_memoDisplay = new Array(); // Affiche `global_left` ou `global_leftBis` if (getRef_chatroom('global_leftBis_container').innerHTML != '' && getSty_chatroom('global_left').display == 'none' && global_thema=='blog') { getSty_chatroom('global_leftBis').display = 'block'; } getRef_chatroom('global_center_container_maxMin').onclick = function() { global_maximalize('max'); } } // Affichage pub right setTimeout(function() { var largLeft = parseInt(regPerCent.exec(getSty_chatroom('global_left').width)); var largCenter = parseInt(regPerCent.exec(getSty_chatroom('global_center').width)); var largRight = parseInt(regPerCent.exec(getSty_chatroom('global_right').width)); var totLeft = largLeft+largCenter; var totLarg = largLeft+largCenter+largRight; if (largRight != 0 && totLeft==80 && global_auth == true) {getSty_chatroom('global_right_pub').display = 'block'; getSty_chatroom('global_boxlogin').margin = '4px 10px 0 75%';} else if (largRight != 0 && totLeft==80 && global_auth == false) {getSty_chatroom('global_right_pub').display = 'block'; getSty_chatroom('global_boxlogin').margin = '4px 10px 0 57%';} else { getSty_chatroom('global_right_pub').display = 'none'; } },30); } var waitPub768x90_timerOut = null; function global_wait(inDo) { if (inDo!=undefined) { getSize_Browser(); document.body.style.scrollTop = 0; getSty_chatroom('global_wait').position = 'absolute'; getSty_chatroom('global_wait').top = '0px'; getSty_chatroom('global_wait').left = '0px'; getSty_chatroom('global_wait').width = myWidth+'px'; getSty_chatroom('global_wait').height = myHeight+'px'; getSty_chatroom('global_wait').display = 'block'; getSty_chatroom('global_waitPub768x90').display='block'; return false; } getSty_chatroom('global_wait').display='none'; clearTimeout(waitPub768x90_timerOut); waitPub768x90_timerOut = setTimeout(function() { getSty_chatroom('global_waitPub768x90').display='none'; },200); } function KeyPressHappened(e) { // use : document.onkeypress = KeyPressHappened; if (!e) e=window.event; var code; if ((e.charCode) && (e.keyCode==0)) code = e.charCode else code = e.keyCode; alert(code); } ///////////////////////////////////////////////////// // AJAX function global_query(param,url) { var myWidthDisplay = getRef_chatroom('global_center_container').scrollWidth; var myHeightDisplay = getRef_chatroom('global_center_container').scrollHeight; var dt=new Date ();temps=dt.getTime(); var scriptQuery = document.createElement('script'); scriptQuery.type = 'text/javascript'; scriptQuery.src = 'http://www.axegay.com/data_G999/chat/global_chat.php?'+param+'&myWidth='+myWidthDisplay+'&myHeight='+myHeightDisplay+'&timer='+temps; if (url!=undefined) scriptQuery.src = url+'?'+param+'&myWidth='+myWidthDisplay+'&myHeight='+myHeightDisplay+'&timer='+temps; //alert(scriptQuery.src); scriptQuery.defer = true; global_wait(1); document.getElementsByTagName('head')[0].appendChild(scriptQuery); } function global_queryHide(param,url) { var myWidthDisplay = getRef_chatroom('global_center_container').scrollWidth; var myHeightDisplay = getRef_chatroom('global_center_container').scrollHeight; var dt=new Date ();temps=dt.getTime(); var scriptQueryHide = document.createElement('script'); scriptQueryHide.type = 'text/javascript'; scriptQueryHide.src = 'http://www.axegay.com/data_G999/chat/global_chat.php?'+param+'&myWidth='+myWidthDisplay+'&myHeight='+myHeightDisplay+'&timer='+temps; if (url!=undefined) scriptQueryHide.src = url+'?'+param+'&myWidth='+myWidthDisplay+'&myHeight='+myHeightDisplay+'&timer='+temps; //alert(scriptQueryHide.src); scriptQueryHide.defer = true; document.getElementsByTagName('head')[0].appendChild(scriptQueryHide); } // fin ajax ///////////////////////////////////////////////////// ///////////////////////////////////////////////////// // // AJAX HTTP REQUEST // var oAjaxRequest = null; // Ajax Request Object var oAjaxData = null; // Ajax Response Data var oAjaxDiv = null; // Ajax Response Div ID var XhrObj_error = null; var XhrObj=global_ajax_XMLHttp(); function global_ajax_XMLHttp() { /* Object Ajax */ if (window.XMLHttpRequest) { // Mozilla oAjaxRequest = new XMLHttpRequest(); if (oAjaxRequest.overrideMimeType) { oAjaxRequest.overrideMimeType('text/html; charset=ISO-8859-1'); } } else { if (window.ActiveXObject) { /* Internet explorer < IE7 */ try { oAjaxRequest = new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch(ex) { try { oAjaxRequest = new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch(ex) { try { oAjaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch(ex) { try { oAjaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch(ex) { alert( "ATTENTION : \nVisiblement votre navigateur n`accepte pas les ``ActiveX``, ce qui ne vous permettra pas de vous inscrire.\nVeuillez vérifier votre configuration navigateur, en autorisant l`execussion des ``ActiveX``." + "Module: ajaxSendRequest()\n" ); return false; } } } } } } return oAjaxRequest; } function global_ajax_statechange() { /* status process ajax */ if (XhrObj.readyState == 1) { // 1 (loading) début du transfert des données : loading visible getRef_chatroom('global_error').innerHTML = '(loading) Début du transfert des données'; if (XhrObj.readyState == 2) { // 2 (loaded) données transférées : loading visible getRef_chatroom('global_error').innerHTML = '(loaded) Données transférées'; if (XhrObj.readyState == 3) { // 3 (interactive) les données reçues sont accssibles en partie : loading visible getRef_chatroom('global_error').innerHTML = '(interactive) Données reçues sont accssibles en partie'; } } } } function global_ajax_postData(param, page, sDiv) { /* Post Ajax */ if (XhrObj_error != null) {alert(XhrObj_error);} // si methode Ajax activeX refusée // verif si exist requests oAjaxData = null; if ((XhrObj != null) && (XhrObj.readyState != 0) && (XhrObj.readyState != 4) ) { XhrObj.abort(); } global_wait(1); if (sDiv!=null) var content = getRef_chatroom(sDiv); oAjaxDiv = sDiv; XhrObj.open("POST", page, true); XhrObj.onreadystatechange = function() { //Ok pour la page cible global_ajax_statechange; if (XhrObj.readyState == 4 && XhrObj.status == 200) { oAjaxData = XhrObj.responseText; if (oAjaxDiv!=null) { content.innerHTML = XhrObj.responseText; } // si à afficher ds une div else { eval(XhrObj.responseText); } // si code direct js setTimeout(function() { global_wait(); getRef_chatroom('global_error').innerHTML = 'Loading / Chargement ...'; },300); } } XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); XhrObj.setRequestHeader("Content-length", param.length); XhrObj.setRequestHeader("Connection", "close"); XhrObj.send(param+'&timer='+(new Date()).getTime()); } function global_ajax_getData(sRequest, sDiv) { /* Get Ajax */ if (XhrObj_error != null) {alert(XhrObj_error);} // si methode Ajax activeX refusée // verif si exist requests oAjaxData = null; if ((XhrObj != null) && (XhrObj.readyState != 0) && (XhrObj.readyState != 4) ) { XhrObj.abort(); } global_wait(1); if (sDiv!=null) var content = getRef_chatroom(sDiv); oAjaxDiv = sDiv; XhrObj.open('GET',sRequest,true); XhrObj.onreadystatechange = function() { //Ok pour la page cible global_ajax_statechange; if (XhrObj.readyState == 4 && XhrObj.status == 200) { oAjaxData = XhrObj.responseText; if (oAjaxDiv!=null) { content.innerHTML = XhrObj.responseText; // si div definie } else { eval(XhrObj.responseText); // si code direct js } setTimeout(function() { global_wait(); getRef_chatroom('global_error').innerHTML = 'Loading / Chargement ...'; },300); } } XhrObj.send(null); } function global_urlencode(str) { return escape(str.replace(/%/g, '%25').replace(/\+/g, '%2B')).replace(/%25/g, '%'); } // fin ajax http request ////////////////////////////////////////////// ///////////////////////////////////// // Détection Plugin // // - Flash // - Windows Media Player // - Java // - Shockwave // - RealPlayer // - QuickTime // - Acrobat Reader // - SVG Viewer // Initialize global variables var detectableWithVB = false; var pluginFound = false; function goURL(daURL) { // if the browser can do it, use replace to preserve back button if(javascriptVersion1_1) { window.location.replace(daURL); } else { window.location = daURL; } return; } function redirectCheck(pluginFound, redirectURL, redirectIfFound) { // check for redirection if( redirectURL && ((pluginFound && redirectIfFound) || (!pluginFound && !redirectIfFound)) ) { // go away goURL(redirectURL); return pluginFound; } else { // stay here and return result of plugin detection return pluginFound; } } function canDetectPlugins() { if( detectableWithVB || (navigator.plugins && navigator.plugins.length > 0) ) { return true; } else { return false; } } function detectFlash(redirectURL, redirectIfFound) { pluginFound = detectPlugin('Shockwave','Flash'); // if not found, try to detect with VisualBasic if(!pluginFound && detectableWithVB) { pluginFound = detectActiveXControl('ShockwaveFlash.ShockwaveFlash.1'); } // check for redirection return redirectCheck(pluginFound, redirectURL, redirectIfFound); } function detectDirector(redirectURL, redirectIfFound) { pluginFound = detectPlugin('Shockwave','Director'); // if not found, try to detect with VisualBasic if(!pluginFound && detectableWithVB) { pluginFound = detectActiveXControl('SWCtl.SWCtl.1'); } // check for redirection return redirectCheck(pluginFound, redirectURL, redirectIfFound); } function detectQuickTime(redirectURL, redirectIfFound) { pluginFound = detectPlugin('QuickTime'); // if not found, try to detect with VisualBasic if(!pluginFound && detectableWithVB) { pluginFound = detectQuickTimeActiveXControl(); } return redirectCheck(pluginFound, redirectURL, redirectIfFound); } function detectReal(redirectURL, redirectIfFound) { pluginFound = detectPlugin('RealPlayer'); // if not found, try to detect with VisualBasic if(!pluginFound && detectableWithVB) { pluginFound = (detectActiveXControl('rmocx.RealPlayer G2 Control') || detectActiveXControl('RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)') || detectActiveXControl('RealVideo.RealVideo(tm) ActiveX Control (32-bit)')); } return redirectCheck(pluginFound, redirectURL, redirectIfFound); } function detectWindowsMedia(redirectURL, redirectIfFound) { pluginFound = detectPlugin('Windows Media'); // if not found, try to detect with VisualBasic if(!pluginFound && detectableWithVB) { pluginFound = detectActiveXControl('MediaPlayer.MediaPlayer.1'); } return redirectCheck(pluginFound, redirectURL, redirectIfFound); } function detectPlugin() { // allow for multiple checks in a single pass var daPlugins = detectPlugin.arguments; // consider pluginFound to be false until proven true var pluginFound = false; // if plugins array is there and not fake if (navigator.plugins && navigator.plugins.length > 0) { var pluginsArrayLength = navigator.plugins.length; // for each plugin... for (pluginsArrayCounter=0; pluginsArrayCounter < pluginsArrayLength; pluginsArrayCounter++ ) { // loop through all desired names and check each against the current plugin name var numFound = 0; for(namesCounter=0; namesCounter < daPlugins.length; namesCounter++) { // if desired plugin name is found in either plugin name or description if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) || (navigator.plugins[pluginsArrayCounter].description.indexOf(daPlugins[namesCounter]) >= 0) ) { // this name was found numFound++; } } // now that we have checked all the required names against this one plugin, // if the number we found matches the total number provided then we were successful if(numFound == daPlugins.length) { pluginFound = true; // if we've found the plugin, we can stop looking through at the rest of the plugins break; } } } return pluginFound; } // detectPlugin function global_plugginList() { var returnPluggins = ''; returnPluggins += '\nCan Detect Plugins: ' + canDetectPlugins() + '\n\n'; if(canDetectPlugins()) { returnPluggins += 'Supports Shockwave for Director: ' + detectDirector() + '\n' + 'Supports Shockwave Flash: ' + detectFlash() + '\n' + 'Supports QuickTime: ' + detectQuickTime() + '\n' + 'Supports RealPlayer: ' + detectReal() + '\n' + 'Supports Windows Media Player: ' + detectWindowsMedia(); } return returnPluggins; } function global_plugginInstall(inPlugg) { if(canDetectPlugins()) { if (inPlugg.toLowerCase()=='director') {return detectDirector();} if (inPlugg.toLowerCase()=='flash') {return detectFlash();} if (inPlugg.toLowerCase()=='quicktime') {return detectQuickTime();} if (inPlugg.toLowerCase()=='windows media') {return detectWindowsMedia();} } } // Here we write out the VBScript block for MSIE Windows if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) { document.writeln('