//en-US var __cc_version=3.12;//3.1; var __cc_urlbase="/Chat/ChatClient/"; var __cc_strings={ "CuteChat_Messenger":"Cute Messenger" , "UI_MENU_AddContact":"Add Contact" , "UI_MENU_RemoveContact":"Remove Contact" , "UI_MENU_ViewProfile":"View Profile" , "UI_MENU_Block":"Block User" , "UI_MENU_UnBlock":"Unblock User" , "UI_MENU_ChatWith":"Send a Message" , "UI_MENU_TargetAll":"To All" , "UI_MENU_Refresh":"Refresh" , "UI_MENU_Clear":"Clear" , "UI_MENU_SaveMessages":"Save" , "UI_MENU_ReloadMessages":"Reload" , "UI_MENU_Invite":"Invite" , "UI_MENU_Kick":"Kick" , "UI_MENU_TargetIt":"Talk to" , "UI_MENU_TrackIt":"Track the user" , "UI_MENU_StopTrack":"Stop Tracking" , "UI_MENU_AutoScroll":"Auto Scroll" , "UI_MENU_StopScroll":"Stop Scroll" , "UI_MENU_Online":"Online" , "UI_MENU_Offline":"(Offline)" , "UI_MENU_Away":"Away" , "UI_MENU_Busy":"Busy" , "UI_MENU_Blocked":"Blocked" , "UI_MENU_SentList":"History" , "UI_MENU_Admin":"Admin" , "UI_MENU_SetPassword":"Set Password" , "UI_MENU_DisableAnonymous":"Disable Anonymous" , "UI_MENU_LockChannel":"Lock Channel" , "UI_MENU_UnLockChannel":"UnLock Channel" , "UI_MENU_Contacts":"Contacts" , "UI_MENU_View":"View" , "UI_MENU_Exit":"Exit" , "UI_MENU_Signout":"Sign Out" , "UI_MENU_SignIn":"Sign in" , "UI_MENU_File":"File" , "UI_MENU_OfflineMessage":"Offline Message" , "UI_MENU_Add":"Add" , "UI_Menu_GoAdminPage":"Go to admin page" , "UI_Menu_EnableAnonymous":"Allow Anonymouse users" , "UI_Menu_Connect":"Connect" , "UI_Menu_Disconnect":"Disconnect" , "UI_MENU_OnThePhone":"On The Phone" , "UI_MENU_OutToLunch":"Out To Lunch" , "UI_MENU_AppearOffline":"Appear Offline" , "UI_USER_Online":"" , "UI_USER_Away":"(Away)" , "UI_USER_Busy":"(Busy)" , "UI_USER_OutToLunch":"(Out To Lunch)" , "UI_USER_OnThePhone":"(On The Phone)" , "UI_USER_Offline":"(Offline)" , "UI_USER_All":"To All" , "UI_Whisper":"Whisper" , "UI_Lobbies":"Select a channel" , "UI_PROMPT_KICKUSER":"Are you sure you want to kick this user out of the current channel?" , "UI_UnknownUserName":"(Unknown)" , "UI_Unknown":"(Unknown)" , "UI_FloodControlMessage":"You can\x27t send so many messages in a short time. Please wait a few seconds before sending another message." , "UI_AreYouSureQuit":"Are you sure you want to close the conversation?" , "UI_AreYouSureDisconnect":"Are you sure you want to disconnect from the chat?" , "UI_NotAllowedFunction":"You are not allowed to perform this function." , "UI_PopupBlockedMessage":"Pop-up blocker detected." , "UI_popupblocked":"Pop-up blocker detected." , "UI_ShouldNotWhisperToAllAfterTargetHasLeft":"You can\x27t whisper to all users." , "UI_CONNECTION_Connecting":"Please wait, connecting to server..." , "UI_CONNECTION_Error":"The connection to the chat server is lost. {0}" , "UI_CONNECTION_Ready":"Connected!" , "UI_CONNECTION_Disconnect":"You\x27re disconnected." , "UI_CONNECTION_Cacelled":"Connection Cancelled." , "UI_CONNECTION_NotEnable":"Connection Failed. Server not ready." , "UI_CONNECTION_NeedName":"Please choose a nickname for yourself to begin chatting. Your nickname will identify you to other users in the chat room. Nicknames can be a maximum of 20 characters long, must begin with a letter and cannot contain spaces or the characters." , "UI_CONNECTION_NotLogin":"Anonymous Users are not allowed in this application. You must sign in this website first." , "UI_CONNECTION_NeedName_Title":"Guest Name" , "UI_CONNECTION_NeedName_Message":"Please type your name." , "UI_CONNECTION_NeedPassword":"Password is required." , "UI_CONNECTION_NeedPassword_Title":"Password" , "UI_CONNECTION_NeedPassword_Password":"Please input channel password" , "UI_CONNECTION_NeedPassword_Message":"This channel is password protected. Please input channel password." , "UI_CONNECTION_Kick":"You have been kicked out of this channel." , "UI_CONNECTION_MissingNickName":"The nickname field is empty." , "UI_CONNECTION_MissingPassword":"The password field is empty." , "UI_CONNECTION_ShortNickName":"Your nickname is too short." , "UI_CONNECTION_LongNickName":"Your nickname is too long." , "UI_USER_JOIN":"{0} joined the room." , "UI_USER_LEAVE":"{0} left this room." , "UI_USER_KICK":"{0} has been kicked away." , "UI_USER_DROP":"{0} left the room." , "UI_USER_TYPING":" is typing a message." , "UI_USER_BLOCK":"{0} has been blocked!" , "UI_USER_UNBLOCK":"{0} has been unblocked!" , "UI_USER_ADD":"{0} has been added to your contact list." , "UI_USER_REMOVE":"{0} has been removed from your contact list." , "UI_USER_EXPIRED":"{0} was removed from the channel due to inactivity." , "UI_USER_HELLO":"{0} say hello to everyone in the room." , "UI_USER_LOGINMESSENGER":"{0} has logged in to the messenger." , "UI_USER_LOGOFFMESSENGER":"{0} has logged off from the messenger." , "UI_USER_UPDATE":"{0} has updated the profile." , "UI_ADMIN_NOTADMIN":"Only the admin can perform this function." , "UI_CONTACT_Detach":"" , "Select":"Select" , "DisplayName":"User Name" , "Search":"Search" , "SearchResults":"Search Results" , "UI_CONTACT_CantAddSelf":"You can\x27t add yourself." , "UI_CONTACT_FinishAddContact":"This user has been added to your contacts." , "UI_CONTACT_SelectContact":"Please search for friends by name, email or gender." , "UI_CONTACT_AddContact_subTitle":"You can add someone to your contact list." , "UI_CONTACT_TargeAnonymous":"Target is an anonymous user!" , "UI_CONTACT_AnonymousCantAddContact":"Anonymous user can\x27t add contact." , "FileformatNotsupported":"Cannot upload the file. The File format is not allowed." , "My_USER_BLOCK":"You has been blocked by the target user!" , "UI_NewMessage":"New Message" , "UI_Message":"Message" , "UI_UserMessageBlocked":"You have received a new message from {0}. The chat window have been blocked by your Pop-up blocker, please click OK to open it." , "UI_UnknownSplashCommand":"Command \x27{0}\x27 is not supported by system." , "UI_WindowBlocked":"A new chat window have been blocked, please click OK to open it." , "UI_MSGTAB_GENERAL":"General" , "UI_MSGTAB_MYSELF":"Myself" , "UI_DisableAutoFocus":"Disable Focus" , "UI_EnableAutoFocus":"Auto Focus" , "UI_DisableSound":"Disable Sounds" , "UI_EnableSound":"Play sounds" , "UI_InvitePrivate":"Private Chat" , "UI_INVITEPRIVATECHAT":"{0} invites you to join a private channel." , "UI_ChangeAvatar":"Choose Avatar" , "UI_AvatarDialogSubTitle":"Avatars are small icons or graphics that represent you. Select the Avatar you like from the following list. " , "UI_SendAsOffline":"Your message has been sent as an offline message." , "UI_FeatureDisabled":"This feature has been disabled by the system administrator!" , "UI_MENU_SendFiles":"Send files" , "UI_Send_NoFile":"Please select a file to send!" , "UI_Send_a_File_subTitle":"Select a file to send, and then click send button." , "UI_Send_MaxFileSizeMustBeLessThan":"Max file size must be less than " , "UI_Send_UploadSuccessfully":"File uploaded successfully!" , "UI_Bold":"Bold" , "UI_Italic":"Italic" , "UI_Underline":"Underline" , "UI_Help":"Help" , "UI_ControlPanel":"Control Panel" , "UI_Emotion":"Insert Emotions" , "UI_FontColor":"Font Color" , "UI_Save":"Save" , "UI_SaveChat":"Save the chat log" , "UI_Avatar":"Pick an avatar" , "UI_PlaySound":"Play sounds" , "UI_AutoFocus":"Keep focus" , "UI_AutoScroll":"Scroll window" , "UI_SelectSkin":"Select a skin" , "UI_Clear":"Clear the screen" , "UI_Font":"Font" , "UI_Size":"Size" , "UI_Close":"Close" , "IEonly_Feature":"This feature is available only to users running Internet Explorer versions 5.0 and above." , "CantSaytoYourself":"To send a private message, you must select someone other than yourself." , "PrivateChatTitle":"Private Chat" , "TargetUserNotOnline":"The target user is not online." , "ConnectingToServer":"Please wait, connecting to server..." , "ConnectionFailed":"Connection Failed." , "ConnectionOK":"Connected!" , "Details":"Error Details" , "NotInvited":"Access denied! You haven\x27t been invited to join this channel." , "NumPeoplesChatting":"people chatting" , "DenyAllAnonymous":"Anonymous Users are not allowed in this chat application." , "CommandPtopOnly":"That Command can only be used in the private window." , "CantInviteSelf":"You can\x27t invite yourself." , "TargetUserOffline":"The target user is not online." , "TargetUserInvalid":"Invalid target user name." , "YouCantInvite":"Only the creator of this channel can invite users to join." , "DenyPrivateMessage":"Private messages are not allowed in this chat channel." , "ConnectedUsingNewPC":"has rejoined the channel." , "blockuser":"block" , "unblockuser":"unblock" , "ManageChannel":"Manage the channel" , "IsAnonymous":"is an Anonymous User." , "LOGINNEWACCOUNT":"This account is being used by another user. " , "UI_Loading":"Loading" , "OK":"OK" , "CANCEL":"Cancel" , "UI_SEND":"Send" , "Send":"Send" , "MessageNotSend":"Message Could Not Be Sent!" , "MsgMessageContainsBadWord":"Your message contains a \x22bad\x22 word: " , "DenyChannelAnonymous":"Anonymous Users are not allowed in this chat channel." , "NickNameIsExists":"Nickname already exists." , "YouAreRejected":"You are rejected." , "YouAreNotConnect":"You haven\x27t connect to the channel." , "YouCantGetin":"You can\x27t get into the chat channel." , "YouAreNotModerator":"You are not the moderator of the channel." , "NoModerators":"No Moderators." , "WrongPassword":"Wrong Password - Enter Again!" , "TargetUserNotPtop":"rejected the private chat request." , "TargetUserAlreadyHere":"The target user is online." , "SpecifyUserName":"Specify a user name" , "AnonymousCantChangeAvatar":"Anonymous users are not allowed to change avatar." , "CommandChannelOnly":"The Command can only be used in the channel. " , "NoManagerWindow":"No management window are available." , "NoAccountInfo":"Account Information Not Found!" , "IPAddressRejected":"The IP address is rejected." , "WordExceededMaxLen":"One word in your message exceeded the maximum length of a single word" , "MsgExceededMaxLen":"Message exceeded the maximum length of a message" , "MsgUserExpired":"Connection Expired." , "MsgUserTryJoinChannel":"is requesting to get into the channel." , "MsgChooseAvatar":"Choose Avatar" , "MsgAvatarChanged":"Your avatar has been changed." , "MsgCommandError":"Command Error" , "MsgCommandUnknown":"Unknown Command" , "ConnectionRejected":"Connection rejected." , "RequirePassword":"Password Required" , "MessageSendFailed":"Failed to Send Message!" , "SelectChannel":"Select a channel" , "NickNameRestriction":"Please choose a nickname for yourself to begin chatting. Your nickname will identify you to other users in the chat channel. Nicknames can be a maximum of 20 characters long, must begin with a letter and cannot contain spaces or the following characters: ! @ # $ % ( ) + = \x27 \x22 ; : \x3C \x3E ? \x26 /." , "GuestNameMessage":"Nicknames can be a maximum of 20 characters long, must begin with a letter and cannot contain spaces or the following characters: ! @ # $ % ( ) + = \x27 \x22 ; : \x3C \x3E ? \x26 / . Please choose a new nickname to begin chatting." , "PleaseInputChannelPassword":"Please input channel password" , "ChatPtopWelcomeMessage":"You have join in the private chat channel. Please wait for other chatters to join." , "Name":"Your Name:" , "Email":"Email:" , "Enquiry":"Message:" , "Subject":"Subject:" , "ExpiredTask":"Task Expired." , "Send_a_File":"Send a file" , "MSG_TO":" to " , "WHISPER_TO":" whisper " , "Connect_Cancel":"Cancel" , "IsNotOnline":"is not online." , "TargetBusyTryagain":"is busy. Please try again." , "Conversations":"Conversations" , "NoConversations":"No active conversations" , "NoOnlineContacts":"All of your contacts are offline." , "NoOfflineContacts":"No offline contacts." , "Invite_subTitle":"Select the people you want to add to this conversation, and click OK. (You can select more than one people)." , "InvitationSent":"An invitation has been sent." , "ViewUserProfile_Title":"Viewing user\x27s profile" , "UI_InviteIntoPrivate":"Invite people to join the conversation" , "UI_SpecifyInviteName":"Who do you want to invite?" , "UI_LeaveMessage":"Please leave a message" , "NumberOnly":"Please enter a valid number." , "ModeratorList":"Moderator List:" , "ModeratorList_subTitle":"You can add as many moderators to the system as required." , "OperatorList":"Operator List:" , "OperatorList_subTitle":"You can add as many operators to the system as required." , "UI_MENU_UnKickUsers":"Unkick Users" , "UI_MENU_CheckIP":"Check IP" , "UI_MENU_DenyIP":"Deny IP" , "UI_PROMPT_DENYUSERIP":"Are you sure you want to deny the IP of that user ?" , "UI_PROMPT_CHANNELPASSWORD":"Please specify password , use let it blank to clear it." , "UI_MessageHistory":"Message History" , "__end":"__end" }; var __cc_strings2={}; for(var __cc_strname in __cc_strings) { __cc_strings2[__cc_strname]=__cc_strings[__cc_strname]; } for(var __cc_strname in __cc_strings2) { __cc_strings[__cc_strname.toLowerCase()]=__cc_strings[__cc_strname]; __cc_strings[__cc_strname.toUpperCase()]=__cc_strings[__cc_strname]; } var __cc_global=this; for(var __cc_strname in __cc_strings) { __cc_global["TEXT_"+__cc_strname]=__cc_strings[__cc_strname]; } function GetString(name) { var upper=name.toUpperCase(); var v=__cc_strings[upper]; if(v!=null) return v; v=__cc_global["TEXT_"+upper]; if(v!=null) return v; return "[("+name+")]"; } function TEXT(text) { text=GetString(text); for(var i=1;i < arguments.length;i++) { var item=""+arguments[i]; text=text.replace(new RegExp("\\{"+(i-1)+"\\}","ig"),item); } return text; } var ReplaceStrings_RE=/\[\[([^\[]+)\]\]/ig; function ReplaceStrings(val) { if(typeof(val)!="string")return val; val=val.replace(ReplaceStrings_RE,ReplaceStrings_Match); return val; } function ReplaceStrings_Match(text,quoted,index) { return GetString(quoted) } //Now we could set it slower , because the SendMessage have been improved . var Chat_Sync_Timeout=1000; //TODO:load the setting of current user .. var SkinName="Normal"; var SkinNames=[]; var SkinTexts=[]; SkinNames[SkinNames.length]="Normal"; SkinTexts[SkinTexts.length]="Normal"; SkinNames[SkinNames.length]="Royale"; SkinTexts[SkinTexts.length]="Royale"; SkinNames[SkinNames.length]="MacWhite"; SkinTexts[SkinTexts.length]="MacWhite"; SkinNames[SkinNames.length]="Indigo"; SkinTexts[SkinTexts.length]="Indigo"; var skin_found=false; for(var i=0;i