/******************************************************************************/
/* 123 Flash Chat Server Software --- Flash Client Source code                */
/* Software Version:           V6.4                                           */
/* Author:                     Daniel Jiang (support@123flashchat.com)        */
/* Copyright 2001-2006 by:     http://www.topcmm.com (TopCMM Computing Inc.)  */
/* Support, News, Updates at:  http://www.123flashchat.com                    */
/* Last update:                Dec. 15th,2006                                 */
/******************************************************************************/
//You should set the variable my_domain to the shared domain suffix of the domain name of the 
//URL that can access the web page containing the 123flashchat.swf and the domain
// name of httpServer host value in client.xml.                                  
var my_domain="localhost";
//Please don't editing following code!!!
var L=true;document.domain=my_domain;function F(){var K=window.location.href.indexOf(my_domain)==-1?"0":"1";window.document.topcmm_123flashchat.SetVariable("checkCometObj.cometDomain",my_domain);window.document.topcmm_123flashchat.SetVariable("checkCometObj.K",K);};function d(A){if(A.contentDocument){return(A.contentDocument);}else if(A.contentWindow){return(A.contentWindow.document);}else if(A.document){return(A.document);}else{return(undefined);}};function c(z){var v=null;var o=z;var j=z+'_div';var w='border-width:0;height:0;width:0;visibility:hidden;';var k='position:absolute;top:0;left:0;width:0;height:0;overflow:hidden;';if(document.getElementById(o)){return(document.getElementById(o));}try{var C=document.createElement("iframe");C.setAttribute("id",o);C.setAttribute("name",o);C.setAttribute("style",w);var B=document.createElement("div");B.setAttribute("id",j);B.setAttribute("style",k);B.appendChild(C);document.body.appendChild(B);if(typeof document.frames!="undefined"){v=document.frames[o];}if(!v||typeof v.nodeType=="undefined"){v=document.getElementById(o);}}catch(e){var n='<iframe id="'+o+'" name="'+o+'" style="'+w+'"><\/iframe>';if(!document.getElementById(j)){B=document.createElement("div");B.setAttribute('id',j);B.setAttribute('style',k);B.innerHTML=n;document.getElementsByTagName('DIV')[0].appendChild(B);}else{document.getElementById(j).innerHTML=n;}v=document.getElementById(o);}return v;};function J(url,f,r){try{var m=(navigator.userAgent.toLowerCase().indexOf("msie")!=-1);var g=url+"?"+f;var v=c(r);var contentDocument=d(v);}catch(l){}try{if(!contentDocument.location){contentDocument.location=g;}else{contentDocument.location.replace(g);}}catch(l){v.src=g;}};function I(i){window.document.topcmm_123flashchat.SetVariable("cometObject.xmlStr",i);};function D(){var t=navigator.userAgent.toLowerCase();window.document.topcmm_123flashchat.SetVariable("cometObject.type",t);};function G(){var t=navigator.userAgent.toLowerCase();window.document.topcmm_123flashchat.SetVariable("cometObject.wb",t);};function H(){var t=window.location.href;window.document.topcmm_123flashchat.SetVariable("cometObject.url",t);}