var InternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;var socketConn=false;var isSent=false;function myFlash_DoFSCommand(b,a){var c=InternetExplorer?myFlash:document.myFlash;if(b=="loaded"){socketConn=false;if(!isSent){if(loggedInUserId>0&&credential.length>0){doPassVar(loggedInUserId,credential)}else{isSent=true;stoForUserID=setInterval("lookForUserId();",1000)}}}else{if(b=="newMessage"){clearInterval(im_sto);socketConn=true;clearInterval(im_sto);getIMOnComplete(a)}else{if(b=="unconnect"){socketConn=false;clearInterval(im_sto);im_sto=setInterval("getIM()",messageRequestDelay)}else{if(b=="userOk"){socketConn=true;clearInterval(im_sto)}else{if(b=="action"){alert("action : "+a);if(a=="close"){closeFlower()}}}}}}}if(navigator.appName&&navigator.appName.indexOf("Microsoft")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("Windows 3.1")==-1){document.write("<SCRIPT LANGUAGE=VBScript> \n");document.write("on error resume next \n");document.write("Sub myFlash_FSCommand(ByVal command, ByVal args)\n");document.write(" call myFlash_DoFSCommand(command, args)\n");document.write("end sub\n");document.write("</SCRIPT> \n")}function doPassVar(b,a){isSent=true;writer=new CmdWriter(1);writer.appendStr(b);writer.appendStr(a);writer.endOfObject();window.document.myFlash.SetVariable("serverStr",writer.Buffer);window.document.myFlash.TCallFrame("/",1)}function lookForUserId(){if(loggedInUserId>0&&credential.length>0){doPassVar(loggedInUserId,credential);clearInterval(stoForUserID)}};