MediaWiki:Wikia.js/chatango.js

function onloadhookcustom { var replace = document.getElementById("OnlineChat"); if (null != replace) { var getvalue = replace.getAttribute("class"); replace.innerHTML=(function {function async_load{s.id="cid0010000025596175081";s.src='http://st.chatango.com/js/gz/emb.js';s.style.cssText="width:500px;height:600px;";s.async=true;s.text='{"handle":"CPW-Wikia","styles":{"a":"000000","b":100,"c":"FFFFFF","d":"CCCCCC","e":"000000","g":"F6F6F4","k":"666666","l":"333333","m":"000000","n":"FFFFFF","s":1}}';var ss = document.getElementsByTagName('script');for (var i=0, l=ss.length; i < l; i++){if (ss[i].id=='sid0010000025596175081'){ss[i].id +='_';ss[i].parentNode.insertBefore(s, ss[i]);break;}}}var s=document.createElement('script');if (s.async==undefined){if (window.addEventListener) {addEventListener('load',async_load,false);}else if (window.attachEvent) {attachEvent('onload',async_load);}}else {async_load;}}); ; } }

if (window.addEventListener) {window.addEventListener("load",onloadhookcustom,false);} else if (window.attachEvent) {window.attachEvent("onload",onloadhookcustom);}