var Fat={make_hex:function(r,g,b) {r=r.toString(16);if(r.length==1)r='0'+ r;g=g.toString(16);if(g.length==1)g='0'+ g;b=b.toString(16);if(b.length==1)b='0'+ b;return"#"+ r+ g+ b;},fade_all:function() {var a=document.getElementsByTagName("*");for(var i=0;iJouez sur www.natom.ca");return text;} function filter_smilies(s){for(var i=0;i';re=new RegExp(search,'gi');s=s.replace(re,replace);} return s;};var jal_loadtimes;var jal_org_timeout=20000;var jal_timeout=jal_org_timeout;var GetChaturl="http://www.www.natom.ca/modules/mod_shoutbox.php?jalGetChat=yes";var SendChaturl="http://www.www.natom.ca/modules/mod_shoutbox.php?jalSendChat=yes";var httpReceiveChat;var httpSendChat;if(typeof window.addEventListener!='undefined') {window.addEventListener('load',initJavaScript,false);} else if(typeof document.addEventListener!='undefined') {document.addEventListener('load',initJavaScript,false);} else if(typeof window.attachEvent!='undefined') {window.attachEvent('onload',initJavaScript);} function initJavaScript(){if(!document.getElementById('chatbarText')){return;} document.forms['chatForm'].elements['chatbarText'].setAttribute('autocomplete','off');checkStatus('');checkName();checkUrl();jal_loadtimes=20;httpReceiveChat=getHTTPObject();httpSendChat=getHTTPObject();setTimeout('receiveChatText()',jal_timeout);document.getElementById('shoutboxname').onblur=checkName;document.getElementById('shoutboxurl').onblur=checkUrl;document.getElementById('chatbarText').onfocus=function(){checkStatus('active');} document.getElementById('chatbarText').onblur=function(){checkStatus('');} document.getElementById('submitchat').onclick=sendComment;document.getElementById('chatForm').onsubmit=function(){return false;}} function receiveChatText(){jal_lastID=parseInt(document.getElementById('jal_lastID').value)- 1;if(httpReceiveChat.readyState==4||httpReceiveChat.readyState==0){httpReceiveChat.open("GET",GetChaturl+'&jal_lastID='+ jal_lastID+'&rand='+Math.floor(Math.random()*1000000),true);httpReceiveChat.onreadystatechange=handlehHttpReceiveChat;httpReceiveChat.send(null);jal_loadtimes++;if(jal_loadtimes>9)jal_timeout=jal_timeout*5/4;} setTimeout('receiveChatText()',jal_timeout);} function handlehHttpReceiveChat(){if(httpReceiveChat.readyState==4){results=httpReceiveChat.responseText.split('---');if(results.length>4){for(i=0;i= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){try{xmlhttp=new XMLHttpRequest();}catch(e){xmlhttp=false;}} return xmlhttp;}