nobodyspecial

Untitled

Mar 22nd, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 93.62 KB | None | 0 0
  1. (function(){var a=[" #status .menubutton i{_width:90%;}",".fixupstyles{padding:0 8px!important;}","#ChatContainer i{font-style:normal;}","#tabContainer{float:left;}",".image{background:transparent url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_sprite_91.png) no-repeat;_background-image:url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_sprite_9.gif);}","#ChatContainer .gradient{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAUCAIAAADHmRDLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEFJREFUeNpkjEEOwDAIw5i0//+1PS9OpWrAAU6RTfKstePe6/CfIFO4mBnWJFMnKW11m8FcgbRf/2nuiWmrcQQYAJYqOakoy2euAAAAAElFTkSuQmCC) repeat-x;cursor:auto;*background-image:url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/gradbar_1.png);}","#ChatContainer .gradient.hover{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAUCAIAAADHmRDLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEFJREFUeNpsjMENACAIAzVx/y3VIWzBxAg8gNel7dHn2u3dUNVPJI1EjMDUgsiG7wD4rnC9DeOEES0jKz4bXQEGAMViO0HQWZH5AAAAAElFTkSuQmCC) repeat-x;z-index:1;*background-image:url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/gradbar_hover_1.png);}","#ChatContainer .hd b{float:right;margin-right:4px;font-weight:normal;}","#contactBar h3,#mobileBar h3{float:left;padding:3px 0 5px 2px;color:#000;}","li.hide #mobileBar div,li.hide #contactBar div{background-position:-2px -212px;}","#mobileListToggle,#imListToggle{height:20px;width:16px;float:left;background-color:transparent;cursor:pointer;}","#contactsBody.hide,li.hide #contactBody,li.hide #mobileBody{display:none;}","#contactsBody ol{max-height:230px;overflow-y:auto;overflow-x:hidden;}","@media screen and(-webkit-min-device-pixel-ratio:0){#contactsBody ol{max-height:225px;}","}","#inModuleMessage{font:normal 10px Verdana;padding:9px 0;line-height:12px;white-space:normal;*margin-bottom:-1px;}","#inModuleMessage a{font:bold 12px Arial;line-height:16px;color:#039!important;}","#inModuleMessage p{padding-bottom:4px;}","#ChatContainer .flashInstall{padding:10px 10px 6px;background-color:#FFF8CC!important;}","#ChatContainer .flashInstall a{font:bold 11px Arial;}",".flashWarningImage{background-color:#FFF8CC!important;height:20px!important;background-position:-5px -277px;float:left;padding-left:21px;}",".downAro{background-position:-2px -245px;}",".sideAro{background-position:-2px -212px;}",".hd #status #astatus:hover{background-color:#FFF;}","#contactBar b,#mobileBar b{font-weight:normal;float:right;padding:3px 5px 0 0;color:#333;display:block;}","#contactBar b a,#mobileBar b a{color:#039;}","#ChatContainer ol li{margin:0 0 0 13px;padding:4px 2px 4px 16px;font:normal 12px Arial;color:#039;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:75%;*width:72%;}","#ChatContainer ol li span{font:italic 12px Arial;color:#999;}","#ChatContainer #mobileBody ol span{font-style:normal;}",".avail{background-position:-5px 6px;}",".idle{background-position:-5px -30px;}",".off{background-position:-6px -106px;}",".dc{background-position:-5px -283px;padding-left:17px!important;font-style:normal;}",".busy{background-position:-5px -66px;}",".mobile{background-position:-5px -174px;}",".offline{background-position:-5px -168px;}","#ChatContainer div.newChat{padding:12px 0 12px 13px;font:normal 12px Arial;color:#000;}","#ChatContainer .ft a{font:9px Verdana;text-decoration:underline;color:#FFF;}","#ChatContainer .ft{padding:5px 0 0 5px;display:none;}",".hd #status #astatus{background:#E1EBFB no-repeat scroll 95% 58%;color:#000;padding:0 16px 2px 5px;text-decoration:none;display:block;float:left;max-width:55%;min-width:35%;_width:55%;height:14px;}","#status a i{padding:2px 5px 2px 15px;font-weight:normal;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;}","#status a i.avail{background-position:-6px 2px;}","#status a i.invisible{background-position:-6px -106px;}","#status a i.busy{background-position:-6px -69px;}",".arrDownImg{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAEBAMAAABfKlNwAAAAHlBMVEUAAAD///////////////////////////////////8kfJuVAAAACXRSTlMA789gMJ+PUCA0iyQBAAAAGElEQVQY02PQnDmJwXGmBAPzzAIGhjAGACJjA6lP+yahAAAAAElFTkSuQmCC) no-repeat 100% 70%!important;*background-image:url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/dwn_arw.png)!important;padding-right:8px!important;}",".presenceMenu{width:155px!important;padding:2px!important;_overflow-x:hidden;}",".p_avail a{background-position:-3px 2px;}",".p_busy a{background-position:-3px -70px;}",".p_offline a{background-position:-3px -106px;}",".presenceMenu li{height:19px;overflow:hidden;}",".presenceMenu li.hide{display:none;}",".presenceMenu li.activeitem a{font-weight:bold;}",".presenceMenu li a{display:block;white-space:nowrap;overflow:hidden;*height:16px;padding:2px 2px 1px!important;}",".presenceMenu li a.image{padding-left:18px!important;*height:16px;}",".presenceMenu li a.selected{font-weight:bold!important;}",".presenceMenu li.last{height:21px;padding-top:4px;}","#imOptions{padding-left:0!important;float:left;}","#imFeedback{float:right;padding:2px 0;margin-right:5px;}",".settingsMenu{width:150px!important;}",".settingsMenu h6{font:normal 10px Verdana;color:#999;padding-left:8px;}",".settingsMenu ul li a{padding-left:8px!important;}",".settingsMenu ul li,.settingsMenu ul li a{font:normal 10px Verdana!important;color:#333!important;}",".settingsMenu ul li a div{background:transparent url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/pimstrip_24.png) no-repeat scroll 0 0;background-position:0 -1111px;padding:4px;display:inline;}",".settingsMenu ul li .showInBlue{color:#039!important;}",".settingsMenu li a:focus{background-color:#F6F6F6!important;}",".optionsImage{background:transparent url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_sprite_91.png) no-repeat scroll 0 0;}",".optionsImage{_background-image:url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_sprite_9.gif);}",".settingsMenu .selected a{background-position:-9px -935px;*background-position:-7px -933px;}","#ChatWindow{width:310px;height:220px;position:absolute;bottom:0;right:12px;z-index:2000;background-color:#FFF;border:1px solid #3D77CB;}","#cHead{background-color:#3D77CB;width:100%;z-index:5;}","#cHead div{border-top:1px solid #3D77CB!important;zoom:1;margin-top:-2px;position:relative;}","#cHead li{float:left;width:82px;height:20px;padding:3px 0 0 5px;;background-repeat:repeat-x;border-right:1px solid #3D77CB;cursor:pointer;}","#cHead li a{padding:2px 0 0 16px;font:bold 9px Verdana;color:#666;float:left;text-decoration:none;color:#666;width:47px;overflow:hidden;white-space:nowrap;}","#cHead .bclose,.close,.min,.max{float:right;width:18px;height:20px;display:block;padding:0;}",".close,.min{width:23px;}",".close{padding-right:0;}","#cHead .hide,.cScreen .hide{display:none;}","#cHead .notify a.bclose,#cHead .blink a.bclose{display:none;}","#cHead .notify a,#cHead .notifyclose a{color:#FFF;}",".c_avail{background-position:-6px 2px;}",".c_mobile{background-position:-6px -178px;}",".c_busy{background-position:-6px -70px;}",".c_offline{background-position:-6px -106px;}",".c_idle{background-position:-6px -34px;}",".c_msn{background-position:-4px -695px;padding-left:19px!important;padding-bottom:2px!important;}",".c_gtalk{background-position:-4px -736px;padding-left:19px!important;padding-bottom:2px!important;}",".c_bubble{background-position:-6px -142px;}",".c_mail{background-position:-7px -878px;}",".tickMark{background-position:-3px -834px;padding-left:22px!important;}",".otherClients{font:italic 12px Arial;margin:14px 0 0 0;}",".ac_mobile{background-position:5px -178px;}",".ac_avail{background-position:5px 3px;}",".ac_idle{background-position:5px -32px;}",".ac_dc{background-position:5px -289px;padding-left:17px!important;font-style:normal;}",".ac_busy{background-position:5px -68px;}",".ac_offline{background-position:5px -105px;}","#ChatContainer .cmNotify{background-position:7px -138px;background-color:#9BCD36;width:82%;padding-left:29px;margin-left:0;}","#ChatContainer .cmNotify a{font-weight:bold;color:#FFF;}","#ChatContainer .cmNotify span{display:none;}","#ChatContainer .cmGray{background-color:#FFF;}","#ChatContainer .cmGray a{font-weight:bold;color:#039;}",".act_smiley,.dec_smiley{float:left;width:31px;height:31px;}",".act_smiley{background-position:0 -353px;}",".dec_smiley{background-position:0 -401px;}",".bubble{background-position:-6px -142px;}",".min{background-position:3px -505px;}",".max{background-position:-1px -619px;}","a.min:hover{background-position:3px -579px;}",".hmin{background-position:0 -585px;}",".close{background-position:-1px -444px;}","a.close:hover{background-position:-2px -541px;}",".hclose{background-position:0 -546px;}",".bclose{background-position:-4px -479px;_height:18px!important;}","a.bclose:hover{background-position:-4px -544px;}",".cScreen{padding:0;overflow-y:auto;height:133px;}",".cScreen u{text-decoration:none;}",".scrMsg{text-align:right;color:#999;}",".scrMsg a{font:normal 10px Verdana;color:#039;}",".screenBody{padding-bottom:23px;}",".screenBody div p{display:inline;}",".screenBody div{padding:5px 12px 0 12px;}",".myId{font:bold 12px Arial;color:#68B24A;}",".otherId{font:bold 12px Arial;color:#743D9C;}",".talk{font:normal 12px Arial;color:#000;}",".st_update{font:italic 12px Arial;margin:4px 0 0 0;padding-left:15px;}","div.st_update{padding:0;}",".st_update div{padding:5px 0 0 0;width:15px;height:12px;float:left;}",".offlineheader{font:12px Arial;color:#B3B3B3;}",".offlinestatus{font:10px Verdana;color:#B3B3B3;}",".newchat{text-align:left;font:normal 9px Verdana;color:#000;}","div.newchat p{padding-bottom:14px;display:block;}",".newchat b{font-size:11px;}",".newchat div{text-align:center;color:#039;padding-top:0;}",".newchat .first{padding-top:7px;}",".noContacts{padding:10px 10px 6px;font:normal 10px Verdana;line-height:12px;white-space:normal;}",".noContacts a{font:bold 12px Arial;line-height:16px;}",".noContacts p{padding-bottom:4px;}",".chatScrPad{padding-top:12px!important;}","#chatVita{height:24px;}","#screenContainer{height:133px;}","#cFoot{padding-top:12px;width:100%;background-color:#F2F2F2;border-top:1px solid #D9D9D9;font:bold 10px Verdana;}",".typing{font:10px Verdana;color:#B3B3B3;position:absolute;bottom:63px;width:85%;background-color:#FFF;height:19px;padding:3px 0 0 12px;margin-bottom:1px;}",".typing p{padding-top:3px;}","#cFoot textarea{height:31px;width:65%;_width:64%;background-color:#FFF;*overflow-y:hidden;float:left;border-right:0;font:normal 12px Verdana;border-bottom:1px solid #D9D9D9;margin-left:12px;}","#cFoot input{height:34px;width:50px;font:bold 10px Verdana;}",".active{background:#FFF url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_active_tab.png) no-repeat 0 0;height:21px!important;}",".inactive{background:#FFF url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_inactive_tab.png) no-repeat 0 0;}",".notify,.notifyclose{background:#FFF url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_cw_notifytab.png) no-repeat 0 0;height:20px!important;}",".notifyclose{height:19px!important;border-bottom:2px solid #FFF;}","li.inactive:hover{background:transparent url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_cw_tabrollover.png) no-repeat 0 0;}","div.addIdContainer{padding:0 12px;}","div.idInputBox{padding:20px 0;}",".confirmAdd .newAddicon{background-position:0 -776px;padding:0 0 0 20px;}",".confirmAdd a{float:right;display:block;}",".confirmAdd div{margin-right:12px;font:normal 12px Arial;color:#039;}",".confirmAdd p{float:left;width:80%;}",".newIdinput{width:68%;border:2px solid #78BDE8;}",".messageDiv{padding:0 12px!important;}",".verTen{font:normal 10px Verdana;}",".idExample{color:#999;}","div.confirmAdd{background-color:#DFEDFA;padding:6px 6px 0 6px;margin:0 6px;height:22px;font:normal 12px Arial;}","#cFoot #mFoot{background-color:transparent;border:0 none;position:absolute;bottom:52px;left:0;padding-left:12px;display:none;font:normal 9px Verdana;color:#999;}","#cFoot #yMsgrLogo{background:transparent url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_msgr_logo.png) no-repeat 0 2px;_background-image:url(http://mail.yimg.com/nq/mc/1_0_0/us/pim/im_msgr_logo.gif);margin-left:12px;height:16px;float:left;border:none;width:30%;}","#resizeImage{float:right;background-position:2px -653px;height:17px;width:19px;cursor:se-resize;}","#homeCountry{font:normal 10px Arial;}","#hcMessage{text-align:left;padding:0!important;color:#000;}","#hcOptionsMessage{padding-top:12px;font:normal 10px Arial;color:#B3B3B3;}","#selectHC{font:normal o12px Arial;}",".smsInactive{background-color:#F5F5F5!important;}",".inact_smiley{width:31px;height:31px;background-position:0 -400px;float:left;background-color:#FFF;border-top:2px solid #808080;}","#mScreen{padding:2px 0 0 0;overflow-y:auto;overflow-x:hidden;text-align:left;}","#mScreen .c_mobile{background-position:-8px -180px;padding-left:12px;}","#mScreen ul{padding:0 0 5px 0;}","#mScreen ul li i{padding-left14px;font:italic 12px Arial;color:#000;}","#mCarriers{padding:0!important;font:normal 10px Verdana;color:#B3B3B3;text-align:left;}","#screenBody div div ul li i .dc{padding-left:17px!important;font-style:normal!important;margin-left:12px;background-position:-5px -283px;}",".chatWarning{background-position:-4px -278px;padding-left:20px!important;font:normal 11px Arial;color:#EB2227;}","#cacheContacts{width:200px;overflow-x:hidden;}","#emoticonBtn{background-color:#FFF;border-top:2px solid #808080;border-bottom:1px solid #D9D9D9;}","#emotewrapper{float:left;position:relative;}","#emoticon{background-color:#FFF;border:1px solid #848080!important;position:absolute;width:192px;right:7px;bottom:28px;}","#emoticon a{border-color:#fff;border-style:solid;border-width:2px;text-decoration:none;}","#emoticon a:hover{border-color:#808080;}",".cnewmsg{background-position:2px -2280px!important;padding-left:20px!important;font-weight:bold!important;}",".cnewchat{background-position:-3px 2px!important;padding-left:20px!important;}",".cnewsms{background-position:2px -998px!important;padding-left:20px!important;}",".mozdragel{cursor:grab;cursor:-moz-grab;}",".dragel{cursor:url('http://mail.yimg.com/nq/mc/1_0_0/us/pim/open.bmp');}",".mozdragdown{cursor:grabbing;cursor:-moz-grabbing;}",".dragdown{cursor:url('http://mail.yimg.com/nq/mc/1_0_0/us/pim/close.bmp');}",".dragup{cursor:default;}",".chatOffscreen{display:block;width:1px;text-indent:-10000px;position:fixed;*position:absolute;}",""];injectStyles(a.join("\n"));})();MIM.strings=function(b){var a={};switch(b){case"contactmodule":a={common_header_text:"Chat & Mobile Text",common_chat_header_text:"Chat",common_new_chat:"New Chat",common_new_text:"New Text",common_add:"Add",common_i_am:"I am",common_settings:"Settings",common_select_all:"Select All",compose_email:"Email Message",compose_sms:"Text Message (SMS)",im_loading_msg:"Loading",im_cancel_msg:"Cancel",im_avail:"Available",im_busy:"Busy",im_invisible:"Invisible",im_status_brb:"Be Right Back",im_status_notathome:"Not at Home",im_status_notatdesk:"Not at Desk",im_status_notinoffice:"Not in Office",im_status_onthephone:"On the Phone",im_status_onvacation:"On Vacation",im_status_outtolunch:"Out to Lunch",im_status_steppedout:"Stepped Out",im_idle:"Idle",im_offline:"Offline",im_disconnect:"Disconnected",im_sign_out_chat:"Sign out of Chat",im_signed_out_chat:"You are signed out of Chat",im_custom:"Custom Status Message...",im_set_custom_status:"Set Custom Status",im_opt_chatlist_loc:"Location of Chat List",im_opt_loc_above:"Above My Folders",im_opt_loc_below:"Below My Folders",im_opt_sound_alerts:"Play Sound Alerts",im_opt_sa_incoming:"For Incoming Chats",im_opt_sa_dont_play:"Do not play a sound",im_opt_mail_options:"Mail Options",im_opt_help:"Help",im_opt_send_feedback:"Send Feedback",im_client_send_feedback_url_l10n:"http://feedback.mail.yahoo.com/feedback_mail.php?idf=basie",im_client_send_feedback_toggle_l10n:"true",im_gtalk_enable_toggle_l10n:"false",im_report_chat_abuse_url_l10n:"http://help.yahoo.com/l/us/yahoo/messenger/forms/abusetranscript.html",im_report_chat_learnmore_url_l10n:"http://help.yahoo.com/l/us/yahoo/mail/classic/chat/",im_flash_not_avail:"To chat or send a mobile text message, you need to get the latest version of Flash.",im_flash_install:"Install Adobe Flash Player 9",im_flash_adobe_url_l10n:"http://get.adobe.com/flashplayer/",im_nofity_exrn_accnts:"You have %number% contacts from Windows Live that you can add to your Chat List.",im_nofity_exrn_accnts_g:"You have %number% contacts from Google or Windows Live that you can add to your Chat List.",im_view_egble_cnts:"View Eligible Contacts",im_no_text_contact:"You don't have any Mobile Text contacts yet.",im_no_chat_contact:"You don't have any Chat contacts yet.",im_strt_txtmsg:"Start a Text Message",im_strt_newchat:"Start a New Chat",im_no_cnts_online:"No contacts online right now.",im_disconnect_msg:"You have been disconnected from chat because you have signed into Yahoo! Messenger from another computer or device.",cm_show:"Show",cm_hide:"Hide",cm_online_contact:"Online Contact",cm_online_contacts:"Online Contacts",cm_mobile_contact:"Mobile Contact",cm_mobile_contacts:"Mobile Contacts",cm_not_listed:"Not Listed?",oc_show_tooltip:"Show Online Contacts",oc_hide_tooltip:"Hide Online Contacts",mc_show_tooltip:"Show Mobile Contacts",mc_hide_tooltip:"Hide Mobile Contacts",dialog_block:"Block",dialog_discard_unread_msg:"Discard Unread Chat Messages?",dialog_block_sender:"Block this Sender?",dialog_sender_blocked:"Sender has been Blocked",dialog_unread_close:"You have unread Chat messages. Do you want to close the window anyway?",dialog_block_sender_msg:"By blocking this sender, %name% won't be able to see when you're online or send you chat messages, and you will help train our systems to better recognize unwanted messages and abusive users.",dialog_block_sender_comment:"%name% will also be removed from your Messenger List.",dialog_report_abuse:'(Note: You can also <a href="%url%" target="_blank">learn more about how about how to protect yourself</a> against chat abuse or <a href="%url1%" target="_blank">contact Customer Care to report threats or harassment</a>).',dialog_block_confirm_msg:"%name% has been added to your Blocked Senders list. You cannot receive chat messages sent by him/her.",dialog_block_confirm_comment:"He/She has also been removed from your Messenger List.",dialog_block_option:'You can manage your list of blocked Chat IDs in <a href="%url%">Mail Options</a>.',dialog_close:"Close",dialog_continue:"Continue",dialog_cus_status_save:"SAVE",dialog_cus_status_cancel:"Cancel",dialog_cus_status_custom:"Custom Status Message",dialog_cus_status_appear_as:"Appear as:",dialog_cus_status_your_msg:"Your Message:",dialog_cus_status_warning:"Please enter a status message.",dialog_close_window:"Close Window",dialog_close_chat:"Close Chat?",dialog_err_refresh:"If you complete this action, your open Chat conversations will be lost.",dialog_err_sign_in_msg:"To chat or send messages, first sign in to Chat.",dialog_err_sign_in:"Sign in to Chat",dialog_err_sign_in_first:"Sign in to Chat First",dialog_err_vespa:"You will lose your open Chat conversations if you search Mail. Do you want to continue with your Mail Search?",dialog_err_mail_options:"You will lose your open Chat conversations if you navigate to Mail Options. Do you want to continue to Mail Options?",dialog_decline_request:"Decline Add Request",dialog_decline_warning:"If you decline this request, %name% will not be able to see when you are online.",dialog_block_future_message:"Block all future chat messages from %name%",dialog_request_declined:"Add Request Declined",dialog_decline_confirm:"%name%'s request to add you has been declined.",dialog_added_to_blocked_list:"He/She has been also added to your Blocked Senders list.",dialog_accept_request:"Add Request Accepted",dialog_accept_confirm:"You have been added to %name%'s Online Contacts list",dialog_save_contact_info:"If you would also like to add %name% to your list, save some additional information:",dialog_add_to_contacts:"Add to Contacts",dialog_name:"Name",dialog_first_name:"First",dialog_last_name:"Last",dialog_yahoo_msgr:"Y! Messenger",dialog_add_to_msgr_list:"Add to Y! Messenger List",dialog_mobile_phone:"Mobile Phone",dialog_home_email:"Home Email",dialog_work_email:"Work Email",dialog_contact_added:"Contact Added",dialog_contact_add_msg:"Contact has been added",dlg_contact_added_offline_msg:"Contact has been added and is offline",dlg_contact_not_online:"When this contact is online, he/she will appear in your Online Contacts list",dialog_add_request_sent:"Add Request Sent",dialog_request_sent_msg:"An Add Request was sent to %id%",dialog_mobile:"Mobile",dialog_email:"Email",dlg_chat_now:"Chat Now",dlg_send_offline:"Send Offline Chat",dlg_send_text:"Send Mobile Text",dlg_add_rqt_pending:"Add Request Pending",dlg_added_contact_not_online:"%name% is not currently online. He/she will appear in your Online Contacts list when he/she is online and available to chat.",dlg_signed_out_hdr:"Signed out of Chat",dlg_signed_out_msg:"You have been signed out of Chat because you signed in to Yahoo! Messenger from another application.",dlg_dont_show_msg:"Don't show this message again",dlg_introp_scan_hdr:"Scanning your Contacts...",dlg_introp_scan_msg:"Scanning your contacts for Windows Live Messenger users...",dlg_introp_scan_msg_g:"Scanning your contacts for Google Talk and Windows Live Messenger users...",dlg_introp_cnt_fnd_hdr:"%number% Contact Found",dlg_introp_cnt_fnd_msg1_w:"%number% Windows Live Contact found.",dlg_introp_cnt_fnd_msg1_g:"%number% Google Talk Contact found.",dlg_introp_cnts_fnd_hdr:"%number% Contacts Found",dlg_introp_cnts_fnd_msg1:"%number% Google Talk and Windows Live Contacts found.",dlg_introp_cnts_fnd_msg1_w:"%number% Windows Live Contacts found.",dlg_introp_cnts_fnd_msg1_g:"%number% Google Talk Contacts found.",dlg_introp_cnts_fnd_msg2:"Select those you want to add to your Chat List.",dlg_introp_cnts_note:"Note: Windows Live Contacts must approve your request before you can chat with them",dlg_introp_cnts_note_g:"Note: Google Talk and Windows Live Contacts must approve your request before you can chat with them",dlg_introp_res_hdr:"Results",dlg_introp_res_msg:"No Windows Live Messenger users found.",dlg_introp_res_msg_g:"No Google Talk or Windows Live Messenger users found.",dlg_introp_button_add:"Add Manually",dlg_introp_req_sent_hdr:"Add Requests Sent",dlg_introp_req_sent_msg1_w:"You have requested that %number% Windows Live Contacts be added to your Chat List.",dlg_introp_req_sent_msg1_g:"You have requested that %number% Google Talk Contacts be added to your Chat List.",dlg_introp_one_cnt_req_sent_msg1_w:"You have requested that %number% Windows Live Contact be added to your Chat List.",dlg_introp_one_cnt_req_sent_msg1_g:"You have requested that %number% Google Talk Contact be added to your Chat List.",dlg_introp_req_sent_msg1:"You have requested that %number% Google Talk and Windows Live Contacts be added to your Chat List.",dlg_introp_req_sent_msg2:"You will be able to chat with the Contacts that accept your request."};break;case"chatwindow":a={cw_myself:"Me",cw_send:"Send",cw_view_history:"View History",cw_block_sender:"Block Sender",cw_unblock_sender:"Unblock Sender",cw_offline_msg:"Messages sent to you while you were signed out of Chat:",cw_offline_status:"%name% will receive your Chat message after signing in.",cw_sender_typing:"%name% is typing...",cw_sender_title:"%sender% sent you a message",cw_buddy_status_available:"%name% is Available",cw_buddy_status_busy:"%name% is Busy",cw_buddy_status_idle:"%name% is Idle",cw_buddy_status_invisible:"%name% is Offline",cw_buddy_msn_msgr_client:"%name% is using Windows Live Messenger",cw_mobile_with:"Mobile Text with %num%",cw_mobile_from:"Mobile Text from %num%",cw_mobile_save:"Save",cw_mobile_manage:'You can manage this setting in <a href="%url%">Options</a>',cw_mobile_charge:"Mobile carriers may charge the recipient fees for receiving and sending text messsages",cw_mobile_char_count:"149",cw_mobile_char_left:"characters left",cw_mobile_first_msg:"Before sending your first message, choose the country to which you will be sending mobile texts.",cw_mobile_country_select:"Select Country",cw_mobile_country_canada:"Canada",cw_mobile_country_india:"India",cw_mobile_country_philippines:"Philippines",cw_mobile_country_indonesia:"Indonesia",cw_mobile_country_malaysia:"Malaysia",cw_mobile_country_thailand:"Thailand",cw_mobile_country_vietnam:"Vietnam",cw_mobile_country_us:"United States",cw_mobile_country_uae:"United Arab Emirates",cw_mobile_country_egypt:"Egypt",cw_mobile_country_saudi_arabia:"Saudi Arabia",cw_mobile_country_kuwait:"Kuwait",cw_mobile_warning_msg:"Either this phone number is incorrect or %name% cannot receive mobile texts at this time.",cw_mobile_spam_msg:"Your last message could not be delivered because your contact must respond to your mobile texts before you can send any more",cw_err_signed_out:"You are no longer signed into Chat",cw_notify_restore:"Your connection to Chat has been restored!",new_chat_show_msg:"Show Message",new_chat_received:"Received",new_chat_id_ins:"Type the person's Yahoo! or Windows Live email address",new_chat_id_ins_g:"Type the person's Yahoo!, Google Talk, or Windows Live email address",new_chat_id_format:"(e.g yodelingterry@yahoo.com or example555@hotmail.com)",new_chat_invalid_uid:"Please enter a valid user ID for your contact",new_chat_invalid_domain:"Please enter a Yahoo! or Windows Live email address",new_chat_invalid_domain_g:"Please enter a Yahoo!, Google Talk, or Windows Live email address",new_chat_mobile_no_ins:"Type the mobile phone number of the person you are contacting",new_chat_privacy_msg:"This message is from unknown sender and has been hidden to protect your privacy.",new_chat_from:"New Chat message from %id%",new_chat_unknown_person:"%id% is not in your Contacts",new_chat_label_to:"To:",new_chat_button:"Chat",new_text_button:"Text",new_text_invalid_mobile_num:"Please enter a valid mobile phone number",new_text_from:"New Mobile Text from %id%",cw_add_contact:"Add Contact",cw_add_interop_user:"To chat with a %interop% user, you must first add him or her to your Chat list.",cw_windows_live:"Windows Live",cw_google_talk:"Google Talk",cw_interop_usage:"%name% is using %interop% Messenger",cw_incoming_add_request:"%name% would like to add you to his or her Online Contacts list.",cw_accept:"Accept",cw_decline:"Decline",weekday_sunday:"Sunday",weekday_monday:"Monday",weekday_tuesday:"Tuesday",weekday_wednesday:"Wednesday",weekday_thursday:"Thursday",weekday_friday:"Friday",weekday_saturday:"Saturday",weekday_abbr_sunday:"Sun",weekday_abbr_monday:"Mon",weekday_abbr_tuesday:"Tue",weekday_abbr_wednesday:"Wed",weekday_abbr_thursday:"Thu",weekday_abbr_friday:"Fri",weekday_abbr_saturday:"Sat",month_january:"January",month_february:"February",month_march:"March",month_april:"April",month_may:"May",month_june:"June",month_july:"July",month_august:"August",month_september:"September",month_october:"October",month_november:"November",month_december:"December",month_abbr_january:"Jan",month_abbr_february:"Feb",month_abbr_march:"Mar",month_abbr_april:"Apr",month_abbr_may:"May",month_abbr_june:"Jun",month_abbr_july:"Jul",month_abbr_august:"Aug",month_abbr_september:"Sep",month_abbr_october:"Oct",month_abbr_november:"Nov",month_abbr_december:"Dec",cw_textarea_diff_no_trans:0,acc_CW_heading:"Chat Window",acc_CW_close:"Close Chat Window",acc_CW_minimize:"Minimize Chat Window",acc_CW_maximize:"Maximize Chat Window",acc_CW_closetab:"Close Tab",acc_CW_unread_msg:"You have Unread Messages.",acc_CW_talking_to:"Talking to %name%"};break;default:a=null;break;}return a;};YAHOO.namespace("YAHOO.mc.util");YLang.augmentObject(MUtil,{supplant:function(b,d,c,a){if(!b){return;}return b.replace(/{([^{}]*)}/g,function(g,f){if(f.indexOf("__uid")==0){return a;}if(f.indexOf("__")==0){var k=c[f.substring(2)];if(k){return k.call(c,d);}else{return"";}}if(!d){return b;}var h=f.split(".");var l=d;for(var j=0,e=h.length;j<e;j++){l=(l[h[j]]!=null)?l[h[j]]:null;if(!l){break;}}if(!l){return"";}else{return l;}});},getCookie:function(){var f=document.cookie;var e="";var b=f.split("; ");for(var d=0,a=b.length;d<a;d++){if((b[d].charAt(0)=="Y"||b[d].charAt(0)=="T")&&b[d].charAt(1)=="="){e+=b[d]+"; ";}}e=e.substr(0,e.length-2);return e;},jsonToXML:function(a,m){var f=[];var k=[];if(!m){m="payload";}var j=["<"+m+" "];for(var l in a){if(this.typeOf(a[l])==="object"){f.push(l);}else{if(this.typeOf(a[l])==="array"){k.push(l);}else{j.push(l);j.push('="');j.push(a[l]);j.push('" ');}}}j.push(">");var b,g;for(b=0,g=f.length;b<g;b++){j.push(this.jsonToXML(a[f[b]],f[b]));}for(b=0,g=k.length;b<g;b++){var e=a[k[b]];for(var d=0,h=e.length;d<h;d++){if(this.typeOf(e[d])==="object"){j.push(this.jsonToXML(e[d],k[b]));}}}j.push("</"+m+">");return j.join("");},typeOf:function(b){var a=typeof b;if(a==="object"){if(b){if(b instanceof Array){a="array";}}else{a="null";}}return a;},indexOf:function(a,c){for(var b=a.length-1;b>=0;b--){if(a[b]==c){return b;}}return -1;},escapeHtml:function(a){if(a==null){return null;}a=a.replace(/&/g,"&amp;");a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;");a=a.replace(/\"/g,"&quot;");a=a.replace(/&(?:amp;)+/g,"&amp;");return a;},unescapeHtml:function(a){if(a==null){return null;}a=a.replace(/&#39;/g,"'");a=a.replace(/&amp;/g,"&");a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");a=a.replace(/&quot;/g,'"');return a;}});MIM.yala={_strings:{},_initTranCache:function(a){if(!this._strings[a]){this._strings[a]=MIM.strings(a);}return this._strings[a];},_getTran:function(e,d,b){var a=this._initTranCache(e)[d];if(a&&b){for(var c in b){a=a.replace("%"+c+"%",b[c]);}}return a;},removeCategory:function(a){if(this._strings[a]){delete this._strings[a];}},getTranCM:function(b,a){return this._getTran("contactmodule",b,a);},getTranCW:function(b,a){return this._getTran("chatwindow",b,a);}};MIM.Globals={SMILEY_PATH:"http://mail.yimg.com/nq/mc/1_0_0/mesg/emoticons7/",emoticonIDtoText:function(){return{"01":":)","02":":(","03":";)","04":":d","05":";;)","06":":-/","07":":x","08":':">',"09":":p","10":":-*","11":":O","12":"x(","13":":>","14":"b-)","15":":-s","16":">:)","17":":((","18":":))","19":":|","20":"/:)","21":"o:-)","22":":b","23":"=;","24":"i-)","25":"8-|","26":":-&","27":":-$","28":"[-(","29":":o)","30":"8-}","31":"(:|","32":"=p~","33":":-?","34":"#-o","35":"=d>","36":":@)","37":"3:-o","38":":(|)","39":"~:>","40":"@};-","41":"%%-","42":"**==","43":"(~~)","44":"~o)","45":"*-:)","46":"8-x","47":"=:)","48":">-)","49":":-l","50":"<):)","51":"[-o<","52":"@-)","53":"$-)","54":':-"',"55":":^o","56":"b-(","57":":)>-","58":"[-x","59":":d/","60":">:d<","61":"o->","62":"o=>","63":"o-+","64":"(%)"};},emoticonTexttoID:function(){return{":)":"1",":-)":"1",":(":"2",":-(":"2",";)":"3",";-)":"3",":d":"4",":-d":"4",";;)":"5",";;-)":"5",">:d<":"6",":-/":"7",":-\\":"7",":x":"8",":-x":"8",':">':"9",":p":"10",":-p":"10",":-*":"11",":*":"11","=*":"11","=((":"12",":o":"13",":-o":"13","x-(":"14","x(":"14",":>":"15",":->":"15","b-)":"16",":-s":"17","#:-s":"18",">:)":"19",":((":"20",":-((":"20",":))":"21",":-))":"21",":|":"22",":-|":"22","/:)":"23","/:-)":"23","=))":"24","o:)":"25","0:)":"25","o:-)":"25",":b":"26",":-b":"26","=;":"27","i-)":"28","|-)":"28","8-|":"29","l-)":"30",":-&":"31",":-$":"32","[-(":"33",":o)":"34",":0)":"34","8-}":"35","<:-p":"36","(:|":"37","=p~":"38",":-?":"39","#-o":"40","=d>":"41",":-ss":"42","@-)":"43",":^o":"44",":-w":"45",":-<":"46",">:p":"47","<):)":"48",":@)":"49","3:-o":"50","3:-0":"50",":(|)":"51","~:>":"52","@};-":"53","%%-":"54","**==":"55","(~~)":"56","~o)":"57","*-:)":"58","8-x":"59","=:)":"60","=:-)":"60",">-)":"61",":-l":"62","[-o<":"63","$-)":"64",':-"':"65","b-(":"66",":)>-":"67","[-x":"68","\\:d/":"69",">:/":"70",";))":"71","o->":"72","o=>":"73","o-+":"74","(%)":"75",":-@":"76","^:)^":"77",":-j":"78","(*)":"79",":)]":"100",":-c":"101","~x(":"102",":-h":"103",":-t":"104","8->":"105",":-??":"106","%-(":"107",":o3":"108",">:o":"81","%-}":"91","<^>":"92","(|)":"93","/\\/*":"94",">:#":"95",":)~*":"96",":~)":"97","->xo":"98","|:d|":"99",x_x:"109",":!!":"110","\\m/":"111",":-q":"112",":-bd":"113","^#(^":"114",":bz":"115"};},kWeekdayInitials:["S","M","T","W","T","F","S"],_strings:MIM.yala,kWeekdayNames:function(){return[this._strings.getTranCW("weekday_sunday"),this._strings.getTranCW("weekday_monday"),this._strings.getTranCW("weekday_tuesday"),this._strings.getTranCW("weekday_wednesday"),this._strings.getTranCW("weekday_thursday"),this._strings.getTranCW("weekday_friday"),this._strings.getTranCW("weekday_saturday")];},kAbbrWeekdayNames:function(){return[this._strings.getTranCW("weekday_abbr_sunday"),this._strings.getTranCW("weekday_abbr_monday"),this._strings.getTranCW("weekday_abbr_tuesday"),this._strings.getTranCW("weekday_abbr_wednesday"),this._strings.getTranCW("weekday_abbr_thursday"),this._strings.getTranCW("weekday_abbr_friday"),this._strings.getTranCW("weekday_abbr_saturday")];},kMonthNames:function(){return[this._strings.getTranCW("month_january"),this._strings.getTranCW("month_february"),this._strings.getTranCW("month_march"),this._strings.getTranCW("month_april"),this._strings.getTranCW("month_may"),this._strings.getTranCW("month_june"),this._strings.getTranCW("month_july"),this._strings.getTranCW("month_august"),this._strings.getTranCW("month_september"),this._strings.getTranCW("month_october"),this._strings.getTranCW("month_november"),this._strings.getTranCW("month_december")];},kAbbrMonthNames:function(){return[this._strings.getTranCW("month_abbr_january"),this._strings.getTranCW("month_abbr_february"),this._strings.getTranCW("month_abbr_march"),this._strings.getTranCW("month_abbr_april"),this._strings.getTranCW("month_abbr_may"),this._strings.getTranCW("month_abbr_june"),this._strings.getTranCW("month_abbr_july"),this._strings.getTranCW("month_abbr_august"),this._strings.getTranCW("month_abbr_september"),this._strings.getTranCW("month_abbr_october"),this._strings.getTranCW("month_abbr_november"),this._strings.getTranCW("month_abbr_december")];}};MIM.util={YCONST:{},YEvents:{},YAHOO_CLOUD_ID:"0",MSN_CLOUD_ID:"2",GTALK_CLOUD_ID:"4",knownDomains:{"msn.com":"2","hotmail.com":"2","live.com":"2","gmail.com":"4"},domainExceptions:{"yahoo.cn":true},strings:MIM.yala,_util:MUtil,MDCallInProgress:false,MDQueue:{},isMDQueue:false,makeKey:function(b,a){a=a||this.YAHOO_CLOUD_ID;return a+":"+b;},splitKey:function(b){var a=b.split(":");return{cloudId:a[0],buddyId:a[1]};},isBuddyOffline:function(a){return(a.away_status==this.YCONST.YMSG_Offline)||(a.away_status=="");},getBuddyStatus:function(b,f){if(!f){f="";}var e;var d;var a=this.YCONST;if(b&&b.away_status!=a.YMSG_Offline){var c=b.away_status-"0";if(c==a.YMSG_Custom){switch(b.custom_dnd_status){case"1":e="busy"+f;break;default:e="avail"+f;break;}d=b.away_msg?b.away_msg:"";}else{e="busy"+f;switch(c){case a.YMSG_Busy:d=this.strings.getTranCM("im_busy");break;case a.YMSG_BeRightBack:d=this.strings.getTranCM("im_status_brb");break;case a.YMSG_NotAtHome:d=this.strings.getTranCM("im_status_notathome");break;case a.YMSG_NotAtMyDesk:d=this.strings.getTranCM("im_status_notatdesk");break;case a.YMSG_NotInTheOffice:d=this.strings.getTranCM("im_status_notinoffice");break;case a.YMSG_OnThePhone:d=this.strings.getTranCM("im_status_onthephone");break;case a.YMSG_OnVacation:d=this.strings.getTranCM("im_status_onvacation");break;case a.YMSG_OutToLunch:d=this.strings.getTranCM("im_status_outtolunch");break;case a.YMSG_SteppedOut:d=this.strings.getTranCM("im_status_steppedout");break;case a.YMSG_Idle:d=this.strings.getTranCM("im_idle");e="idle"+f;break;default:d=null;e="avail"+f;break;}}}else{e="off"+f;d=null;}return{icon:e,msg:d};},_featureCue:function(a,c,d){if(MC.noCues){return;}if(FCue&&FCue.generate){var b=FCue.generate;if(a){if(c=="00"){if(d!=-1){b.availableCue();if(MC.FCUE_METADATA.fcEcap>=2&&MIM.presenceList.arrBuddies.length>4){b.interopCue();b.interOpShown=true;}}else{b.offlineCue(false);}}else{b.offlineCue(true);}}else{b.offlineCue(a);}}else{MEM.fire("fc","bootstrap",{callback:this._featureCue,scope:this,params:[a,c,d]});}},initSDK:function(){MIM.onSigninStatus=false;var a=MGlbl.contactView;MEM.subscribe("im","onLoad",MIM.api.login,MIM.api);if(optInState){if(MC.selfPres){this.presCallback(MC.selfPres);}else{MC.presTimer=setTimeout(function(){detectMessengerInstall("00");},15000);}}else{a._toggleContactsBody();}if(this.strings.getTranCM("im_gtalk_enable_toggle_l10n")){delete this.knownDomains["gmail.com"];}},presCallback:function(c){var b=MIM,d=true;var a=MGlbl.contactView;if(imPrefs.imstate=="-1"||imPrefs.imstate==""){if(imPrefs.imstate=="-1"||MC.IM_TOGGLE_STRINGS.im_sign_in==="false"){a._toggleContactsBody();sendRS();if(imPrefs.imstate==""){b.util._featureCue(false);}return;}}if(c=="00"||c===null||typeof c==="undefined"){gLaunchProfile.start("IM_SDK_LOAD");b.api.load("http://mail.yimg.com/nq/mc/1_0_0/mg/swf/imsdk_2.0.swf");b.onSigninStatus=true;d=false;if(c=="00"){gLaunchProfile.stop("IM_SELF_PRES");}}else{a._toggleContactsBody();sendRS();}if(d){b.util._featureCue(true,c,imPrefs.imstate);}},_uidSeed:100,createUid:function(){return"ymc_"+(this._uidSeed++);},toggleShowHide:function(b,c){var a=false;if(typeof b==="string"){b=document.getElementById(b);}if(c){if(YDom.hasClass(b,"hide")){YDom.removeClass(b,"hide");a=true;}else{b.className+=" hide";}}else{if(b.display==="none"){b.display="block";a=true;}else{b.display="none";}}resizeLeftPane();return a;},togglePaneTooltip:function(b,a){var c;if(b.parentNode.id=="contactBar"){c=a?"oc_show_tooltip":"oc_hide_tooltip";}else{c=a?"mc_show_tooltip":"mc_hide_tooltip";}b.title=this.strings.getTranCM(c);},_globals:MIM.Globals,smileyize:function(g){var c=this._globals.emoticonTexttoID();var b=[];var l=g.length;var d=0,f=0;while(f<l){for(var e=4;e>=2;e--){var a=c[g.substring(f,f+e).toLowerCase()];if(typeof a!=="undefined"){var h='<img border="0" src="'+this._globals.SMILEY_PATH+a+'.gif" />';b.push(this.highlightURL(MUtil.escapeHtml(g.substring(d,f))),h);f+=e-1;d=f+1;}}f++;}b.push(this.highlightURL(MUtil.escapeHtml(g.substring(d,l))));g="";return b.join("");},highlightURL:function(a){var c=a.match(/(http:\/\/|https:\/\/|www\.|ftp:\/\/|mailto:)\S+/i);if(c){var b="";if(c.index>0){b+=this.highlightURL(a.substring(0,c.index));}b+='<a target=_blank href="'+this.URLize(c[0])+'">'+MUtil.escapeHtml(c[0])+"</a>";if((c.index+c[0].length)<a.length){b+=this.highlightURL(a.substring(c.index+c[0].length));}return b;}else{return a;}},URLize:function(f){var b=[];if(f.toLowerCase().indexOf("www.")==0){b.push("http://");}for(var a=0;a<f.length;a++){var e=f.charAt(a);var g=e.toLowerCase();if(((g<"a")||(g>"z"))&&((g<"0")||(g>"9"))&&(";/?:@&=+$,-_.!~*'()#%".indexOf(g)==-1)){b.push(escape(e));}else{b.push(e);}}return b.join("");},addInvisibleBreaks:function(f){var h=f.split("");var g=[];var c;var e=0;var b=false;var a=false;var d="";for(c=0;c<h.length;c++){d=h[c];if(d=="<"){b=true;}else{if(d=="&"){a=true;}else{if(b&&(d==">")){b=false;}else{if(a&&(d==";")){a=false;}}}}g.push(d);if(b||a){continue;}else{if(d.match(/[?#%\-_=]/)){g.push("<WBR>");e=0;}else{if(e==15){g.push("<WBR>");e=0;}else{if(d==" "){e=0;}else{e++;}}}}}return g.join("");},zeroPrefix:function(a){if(a<10){return"0"+a;}return a;},dateFormatter:function(g,a){var j=MC.IM_TOGGLE_STRINGS;var b=this._globals.kWeekdayNames();var w=this._globals.kAbbrWeekdayNames();var v=this._globals.kMonthNames();var h=this._globals.kAbbrMonthNames();var l=a;var q=g.getDay();if(a.indexOf("{EEE}")>-1){var r=this._globals.kWeekdayNames[q];l=l.replace("{EEE}",r);}l=l.replace("{EE}",b[q]);l=l.replace("{E}",w[q]);var n=g.getMonth();l=l.replace("{M}",n+1);l=l.replace("{MM}",this.zeroPrefix(n+1));l=l.replace("{MMMM}",v[n]);l=l.replace("{MMM}",h[n]);var t=g.getDate();l=l.replace("{d}",t);l=l.replace("{dd}",this.zeroPrefix(t));l=l.replace("{yy}",g.getFullYear().toString().substring(2,4));l=l.replace("{yyyy}",g.getFullYear());var c=g.getSeconds();l=l.replace("{S}",c);l=l.replace("{SS}",this.zeroPrefix(c));var i=g.getHours();var f=i;var k=(f<12)?j.im_time_format_am:j.im_time_format_pm;if(f==0){f=12;}else{if(f>12){f-=12;}}l=l.replace("{h}",f);l=l.replace("{hh}",this.zeroPrefix(f));l=l.replace("{H}",i);l=l.replace("{HH}",this.zeroPrefix(i));var p=g.getMinutes();l=l.replace("{m}",p);l=l.replace("{mm}",this.zeroPrefix(p));l=l.replace("{A}",k);var e=g.getTimezoneOffset();var u=e>0?"-":"+";e=Math.abs(e);var s=Math.floor(e/60);var o=e%60;s=this.zeroPrefix(s);o=this.zeroPrefix(o);l=l.replace("{Z}",u+s+o);l=l.replace("{ZZ}",u+s+":"+o);return l;},getCloudAndEmailId:function(e){if(!e){return null;}if(typeof e==="object"){if(typeof e.cloud_id!=="undefined"){b=parseInt(e.cloud_id);return[b,e.sender];}e=e.sender;}var a=e.split("@");if(a.length==1){return[this.YAHOO_CLOUD_ID,a[0]];}var f=a[0];var d=a[1];if(this.domainExceptions[d]){return[this.YAHOO_CLOUD_ID,e];}var c=d.match(/(yahoo).[\w.]*$/i);if(c&&c[1]&&c[1]!=""){return[this.YAHOO_CLOUD_ID,f];}if(typeof this.knownDomains[d]==="undefined"){return[this.YAHOO_CLOUD_ID,e];}else{var b=this.knownDomains[d];}if(!b){b=this.YAHOO_CLOUD_ID;}return[b,e];},charsInBag:function(e){var d;var a="!#$^&*()+|}{[]?><~%:;/,=`\"'";var b="";for(d=0;d<e.length;d++){var f=e.charAt(d);if(d>0){b=e.charAt(d-1);}if(a.indexOf(f)!=-1||(b=="."&&f==".")){return false;}}return true;},isInteger:function(b){var a;for(a=0;a<b.length;a++){var d=b.charAt(a);if((d>="0")&&(d<="9")&&(d!=".")){return false;}}return true;},emailIdValidate:function(h){var a="@";var b=".";var g=h.indexOf(a);var d=h.length;var f=h.indexOf(b);var c=h.lastIndexOf(b);if(h.indexOf(a)==0||h.indexOf(a)==d){return false;}if((h.indexOf(a)!=-1&&h.indexOf(b)==-1)||h.indexOf(b)==0||h.indexOf(b)==d||h.substring(c+1)==""){return false;}if(h.indexOf(a,(g+1))!=-1){return false;}if(h.substring(g-1,g)==b||h.substring(g+1,g+2)==b){return false;}if(h.indexOf(a)!=-1&&h.indexOf(b,(g+2))==-1){return false;}if(h.indexOf(" ")!=-1){return false;}if(this.charsInBag(h)==false){return false;}if(h.indexOf(a)!=-1){var e=h.split("@");f=e[1].indexOf(".");if(this.isInteger(e[1].substring(f+1))==false){return false;}}return true;},getEmailFromIMID:function(c){var a=c.indexOf("@");var d={};if(a==-1){d.address=c+"@yahoo.com";d.cloud=this.YAHOO_CLOUD_ID;}else{var b=c.substring(a+1);if(this.knownDomains[b]){d.address=c;d.cloud=this.knownDomains[b];}else{d.address=c;d.cloud=this.YAHOO_CLOUD_ID;}}return d;},trimLength:function(c,b){var d=document.getElementById(b.txtId);var a=b.maxChars;if(d.value.length>=a){switch(c.keyCode){case 8:case 9:case 17:case 35:case 36:case 37:case 38:case 39:case 40:case 46:break;default:YUtil.Event.preventDefault(c);break;}}if(b.sms&&d.value.length<=a&&a===149){document.getElementById("charCount").innerHTML=(a-d.value.length);}}};MData=function(){function a(e,d,f){MDom.insert('<input type="hidden" name="'+d+'" value="'+f+'"/>',e);}function c(h,d,f,g,e){var i=(typeof e!="undefined")?"("+e+")":"";a(h,"call"+i+"-id","setmetadata");a(h,"call"+i+"-SetMetaData-meta-name",d);a(h,"call"+i+"-SetMetaData-meta-value",f);a(h,"call"+i+"-SetMetaData-meta-path",g);}function b(h){var m={cmpos:"ymc>msgr>cm_Pos",cmcol:"ymc>msgr>cm_Coll",occol:"ymc>msgr>cm_ocColl",mccol:"ymc>msgr>cm_mcColl",imstate:"ymc>msgr>im_State",iminit:"ymc>msgr>im_init",imsent:"ymc>msgr>im_sent",imstatus:"cg>pref>im>customStat",homecountry:"cg>pref>im>homeCountry",soundenabled:"cg>pref>im>soundenabled",elap:"ymc>fcue>elap",ecap:"ymc>fcue>ecap",fcnag:"ymc>fcue>nag",inecap:"ymc>fcue>inecap1",inelap:"ymc>fcue>inelap1",flashts:"ymc>msgr>flashts",blocklist:"cg>pref>im>blocklist",curstatus:"ymc>msgr>curstatus",blocknotinAB:"cg>pref>im>blocknotinAB"};if(isAMT){return;}var g=MIM.util;if(g.MDCallInProgress==false){g.MDCallInProgress=true;g.MDQueue={};g.isMDQueue=false;}else{YLang.augmentObject(g.MDQueue,h);g.isMDQueue=true;return;}var q;if(!(q=document.getElementById("metaform"))){MDom.insert('<form name="metaform" id="metaform" method="POST" action="'+cascadeEndPt+'&m=BatchExecute" target="metaframe"></form>',document.body);q=document.getElementById("metaform");}else{q.innerHTML="";}var l,s="";if(!(l=document.getElementById("metaframe"))){MDom.insert('<iframe name="metaframe" id="metaframe" class="offscreen"></iframe>',document.body);YUtil.Event.on("metaframe","load",function(){g.MDCallInProgress=false;if(g.isMDQueue==true){MData.setMetaData(g.MDQueue);g.MDQueue={};g.isMDQueue=false;}});l=document.getElementById("metaframe");}var e="",r,f=0;for(key in h){if(key!="imstatus"){r=m[key];e=r.substr(r.lastIndexOf(">")+1);c(q,e,h[key],m[key],f);if(imPrefs&&(key in imPrefs)){imPrefs[key]=h[key];}}else{var n,j;for(n in imPrefs.imstatus){j=parseInt(n,10)+1;c(q,j,(imPrefs.imstatus[n].state+imPrefs.imstatus[n].status),(m[key]+">"+j),f);f++;}}s+="&"+key+"="+encodeURIComponent(h[key]);f++;}try{q.submit();}catch(p){var o={success:function(i){},failure:function(i){}};var d="mail?cmd=user.setmeta"+s+"&mcrumb="+mCrumb+"&.rand="+Math.round(Math.random()*10000000);YHttp.asyncRequest("GET",d,o,null);}}return{setMetaData:b};}();MIM.Emoticon={_emoticonFlimStipMapping:["37","00","02","01","15","16","17","19","07","08","09","11","10","12","13","14","04","03","18","20","21","22","25","24","23","26","27","05","28","29","30","31","32","33","34","06","35","36","39","38"],_emoticonMapping:{"00":":(","01":";)","02":":d","03":";;)","04":":-/","05":":x","06":':">',"07":":p","08":":-*","09":":O","10":"X(","11":":>","12":"B-)","13":":-S","14":">:)","15":":((","16":":))","17":":|","18":"/:)","19":"o:-)","20":":-B","21":"=;","22":"I-)","23":"8-|","24":":-&","25":":-$","26":"[-(","27":":O)","28":"8-}","29":"(:|","30":"=P~","31":":-?","32":"#-o","33":"=D>","34":"3:-o","35":"~:>","36":"@};-","37":":)","38":"=:)","39":"<):)"},initialize:function(){this.render();},updateText:function(b){var a=document.getElementById("imChat");if(a){MIM.Emoticon.hide();this.insertatcursor(a,this._emoticonMapping[b]);a.focus();}},findCursorPosition:function(){MIM.Emoticon.LENGTH_TEXT=-1;var b=document.getElementById("imChat");MGlbl.chatWin.focusTextField("imChat");var e=MC.IM_DELIMITER;var d=document.selection.createRange();var a=d.duplicate();a.moveToElementText(b);d.text=e;MIM.Emoticon.LENGTH_TEXT=a.text.indexOf(e);d.moveStart("character",-1);d.text="";return false;},insertatcursor:function(e,d){if(document.selection&&MIM.Emoticon.LENGTH_TEXT!=-1){var a=e.createTextRange();a.collapse(true);a.moveStart("character",MIM.Emoticon.LENGTH_TEXT);a.moveEnd("character",0);a.text=d;}else{if(e.selectionStart!=null){var c=e.selectionStart;var b=e.selectionEnd;e.value=e.value.substring(0,c)+d+e.value.substring(b,e.value.length);e.setSelectionRange(c+d.length,c+d.length);}else{e.value+=d;}}},hide:function(){var a=document.getElementById("emoticon");if(a){a.style.display="none";document.getElementById("emoticonBtn").className="image act_smiley";}},show:function(){var a=document.getElementById("emoticon");if(a){a.style.display="";document.getElementById("emoticonBtn").className="image dec_smiley";}},render:function(){var b=[];for(var a=0,d=this._emoticonFlimStipMapping.length;a<d;a++){b[b.length]="<a ";b[b.length]=MC.isIE?'unselectable="on" ':"";b[b.length]='style="background: transparent url(http://mail.yimg.com/nq/mc/1_0_0/mesg/tsmileys2/emoticons_strip.gif) '+-1*this._emoticonFlimStipMapping[a]*20+'px 0px no-repeat; width: 20px; height: 20px;display:block;float:left;" href="#" onClick="MIM.Emoticon.updateText(\''+this._emoticonFlimStipMapping[a]+"'); return false;\">";b[b.length]="&nbsp;</a>";}document.getElementById("emoticon").innerHTML=b.join("");YUtil.Event.on(document,"click",function(){var c=document.getElementById("emoticon");if(c&&c.style.display==""){MIM.Emoticon.hide();}});}};MIM.Track={beaconULT:function(a){setTimeout(function(){if((typeof(MPg.TriggerULT)!="undefined")&&MPg.TriggerULT){var b={};b=a;b[YAHOO.ULT.SRC_SPACEID_KEY]=YAHOO.mc.page.BasieSpaceId;YAHOO.ULT.beacon_click(b);}},10);}};MIM.smsUtil={getIntl:function(){return imPrefs.homecountry;},normalizeMobileNum:function(d,f){var n="";var a="abcdefghijklmnoprstuvwyz";var j,o,k,e;d=d.toLowerCase();for(j=0,k=d.length;j<k;j++){var o=d.charAt(j);if("0"<=o&&o<="9"){n+=o;}else{if("q"==o){n+="7";}else{if("z"==o){n+="9";}else{if("a"<=o&&o<="z"){n+=Math.floor(a.indexOf(o)/3)+2;}}}}}d=n;var h={us:["011"],ca:["011"],"in":["00"],ph:["00"],my:["00"],vn:["00"],sg:["001","002","008"],id:["001","007","008"],th:["001"],ae:["00"],eg:["00"],sa:["00"],kw:["00"]};var b={us:["1"],ca:["1"],"in":["0"],ph:["0"],my:["0"],vn:["0"],id:["0"],sg:[""],th:["0"],ae:["0"],eg:["0"],sa:["0"],kw:[""]};var c={us:"1",ca:"1","in":"91",ph:"63",sg:"65",id:"62",my:"60",vn:"84",th:"66",ae:"971",eg:"20",sa:"966",kw:"965"};var l=h[f];var g=c[f];var m=b[f];for(e=0;e<l.length;e++){if(d.indexOf(l[e])==0){return d.substr(l[e].length);}}for(e=0;e<m.length;e++){if(d.indexOf(m[e])==0){return g+d.substr(m[e].length);}}if(d.indexOf(g)==0){return d;}return g+d;},isValid:function(a){if(a&&a.match(/[a-zA-Z@!#$%^&;:'"?><,.]/)){return false;}return(a&&a.match(/(\D*\d){10,}/));}};MIM.presenceList={_eventManager:MEM,_util:MUtil,_imutil:MIM.util,_imlib:MIM.api,_smsutil:MIM.smsUtil,_dataManager:MData,_getString:MIM.yala,_blinkMap:[],_map:{},_presenceMap:{"0":"0","1":"2","2":"12"},arrBuddies:[],allContacts:{},miscContacts:{},ghostBuddies:{},mobileContacts:{},arrContacts:[],cloudIDMap:{},login:false,offline:false,signedout:false,customStatus:false,firstLogin:true,totalIMContacts:false,totalMobContacts:false,init:function(){var a="im";this._eventManager.subscribe(a,"onBuddyList",this._onBuddyList,this);this._eventManager.subscribe(a,"onBuddyInfo",this._onBuddyInfo,this);this._eventManager.subscribe(a,"onBuddyLogin",this._onBuddyUpdate,this);this._eventManager.subscribe(a,"onBuddyLogoff",this._onBuddyUpdate,this);this._eventManager.subscribe(a,"onBuddySetAwayStatus",this._onBuddyUpdate,this);this._eventManager.subscribe(a,"onABContactsInfo",this._onABContactsInfo,this);this._eventManager.subscribe("sms","onMobileMsg",this._onMobileMsg,this);this._eventManager.subscribe("im.presenceList","onSelfUpdate",this._onEarlyAdopter,this);this._eventManager.subscribe(a,"onCancelLogin",this.stopLogin,this);},apply:function(c,b){this._sort();for(var a in this.arrBuddies){c.call(b,this.arrBuddies[a]);}},_sort:function(){this.arrBuddies.sort(function(d,c){return(d.name.toUpperCase()>c.name.toUpperCase())?1:-1;});},_omSMSUpdate:function(){var a=this.mobileContacts,d,b;this.arrContacts=[];for(var c in a){d={};d.mobile=c;d.displayMobileNum=a[c]["displayMobileNum"];b=(a[c]["nickName"]||a[c]["NICKNAME"])||(a[c]["FN"]+" "+a[c]["LN"]);d.name=b;d.tooltip=b+" "+a[c]["displayMobileNum"];this.arrContacts.push(d);}this.arrContacts.sort(function(f,e){return(f.name.toUpperCase()>e.name.toUpperCase())?1:-1;});},_onBuddyList:function(h){this.totalIMContacts=this.totalMobContacts=0;var f,d;if(h.group_record_list["records"]){var b=h.group_record_list["records"],c,a;for(c=0,a=b.length;c<a;c++){if(b[c]&&b[c]["buddy_record_list"]["records"]){var g=b[c]["buddy_record_list"]["records"];for(f=0,a=g.length;f<a;f++){var e=(g[f].cloud_id?g[f].cloud_id:"0")+":"+g[f].buddy;if(this.allContacts&&!this.allContacts[e]){if(g[f].name==g[f].buddy){d=this._getNameFromAB(e);g[f].name=d?d:g[f].name;}this.allContacts[e]={FN:g[f].name,LN:""};if(!this.ghostBuddies[e]){this.ghostBuddies[e]=this.allContacts[e];this.totalIMContacts++;}}}}}}for(f in this.allContacts){this.totalIMContacts++;}for(f in this.mobileContacts){this.totalMobContacts++;}},_onBuddyInfo:function(d){if(d.buddy_info_list&&d.buddy_info_list["records"]){var c=d.buddy_info_list["records"];for(var b=0,a=c.length;b<a;b++){this.cloudIDMap[c[b].buddy||c[b].name]=c[b].cloud_id||this._imutil.YAHOO_CLOUD_ID;this._onBuddyUpdate(c[b],null,true);}}this.arrBuddies.sort(function(f,e){return(f.name.toUpperCase()>e.name.toUpperCase())?1:-1;});this._eventManager.fire("im.presenceList","onUpdate");},_onBuddyUpdate:function(g,c,e){var n=this._imutil.makeKey(g.name,g.cloud_id);var a=this._map;var h;this.updateIMConfirmationDialog(g.name);if(this._imutil.isBuddyOffline(g)){if(a[n]){var b=a[n];delete a[n];var f=MUtil.indexOf(this.arrBuddies,b);this.arrBuddies.splice(f,1);this._eventManager.fire("im.presenceList","onRemove",{buddyInfo:b});g.id=n;g.icon="offline image";g.name=b.name;this._eventManager.fire("im.presenceList","onBuddyLogoff",g);}}else{var l=this._map[n];if(!l){l={};a[n]=l;this.arrBuddies.push(l);h=true;if(!MC.noCues){var k=this;var j=function(i){var p=FCue.generate;if(!p.interOpShown&&MC.FCUE_METADATA.fcEcap>=2&&i>4){p.interopCue();}else{if(!p.nagShown&&MC.FCUE_METADATA.fcEcap>=2&&i>2){p.nagCue();}}if(p.startTour&&i>=6){p.collapseCue();}};if(FCue&&FCue.generate){j(this.arrBuddies.length);}else{MEM.fire("fc","bootstrap",{callback:j,params:k.arrBuddies.length});}}}l.cloud_id=g.cloud_id||this._imutil.YAHOO_CLOUD_ID;l.away_status=g.away_status;l.away_msg=g.away_msg;l.custom_dnd_status=g.custom_dnd_status;l.key=l.cloud_id+":"+g.name;var m=this._getNameFromAB(l.key)||this.getGhostBuddy(g);l.tooltip=m+((YLang.trim(m)==g.name)?"":" ("+g.name+")");l.name=m;var o=" image";if(l.notifyClass){o+=" "+l.notifyClass;}var d=this._imutil.getBuddyStatus(l,o);l.msg=MUtil.escapeHtml(d.msg);l.icon=d.icon;this._eventManager.fire("im.presenceList","onBuddySetAwayStatus",{id:l.key,icon:l.icon,away_msg:l.away_msg});}if(!e){this._sort();h?this._eventManager.fire("im.presenceList","onAdd",{buddyInfo:l}):this._eventManager.fire("im.presenceList","onUpdate",{buddyInfo:l});}},getGhostBuddy:function(b){var e=b.name;var a=(b.cloud_id||this._imutil.YAHOO_CLOUD_ID)+":"+e;var c=MUtil.escapeHtml(e);var d={FN:c,LN:""};this.allContacts[a]=d;this.ghostBuddies[a]=d;return c;},_getNameFromAB:function(a,b){var c=this.allContacts[a];if(!c){a=a.split(":")[1];c=this.miscContacts[a];}if(!c){return false;}if(typeof c.nickName!=="undefined"&&typeof b==="undefined"){return c.nickName;}else{if(typeof c.FN!=="undefined"){if(YLang.trim(c.FN+c.LN)==""){return false;}return[c.FN," ",c.LN].join("");}}},_onABContactsInfo:function(f){var l=f.contactsList;var a=f.subscribe,h=false;if(typeof(this.allContacts)=="undefined"){this.allContacts={};}else{var k={};YLang.augmentObject(k,this.allContacts);h=true;}this.allContacts=l[0]["userIds"]||{};this.miscContacts=l[0]["miscContacts"]||{};var g;for(var e in this.ghostBuddies){g=e.split(":")[1];if(this.miscContacts[g]){this.ghostBuddies[e]=this.miscContacts[g];}}YLang.augmentObject(this.allContacts,this.ghostBuddies);this.mobileContacts=this.getMobileContacts(l[0]["mobileNums"]);if(this.login){if(h){var c,d;for(var e in k){if(!(e in this.allContacts)){d=e.split(":")[1];c={away_status:-1,buddy:d,id:d,name:d};this.deleteABContact(c);}}}var b=[],j=this;YLang.augmentObject(b,this.arrBuddies);setTimeout(function(){for(var p=0,m=b.length,o,q,n,r;p<m;p++){q=b[p];n=YLang.trim(q.name);o=YLang.trim(j._getNameFromAB(q.key));r=q.key.split(":")[1];if(n!=o){MEM.fire("im","onBuddySetAwayStatus",{name:r,buddy:r,away_status:q.away_status});}}},50);}if(a||this.login){this.subscribeABContacts();}MGlbl.contactView._updateContactsBody();if(MC.IM_TOGGLE_STRINGS.im_enable_mobile_l10n){MGlbl.contactView._updateSMSList();}},deleteABContact:function(a){this._imlib.sendSubscribe([a.id],false);this._eventManager.fire("im","onBuddyLogoff",a);},_onEarlyAdopter:function(c){if(MC.noCues){return;}var b=0;if(c.text=="Available"||c.text=="Busy"||c.text=="Invisible"){b=1;}var a=function(d){if(!MC.FCUE_METADATA.imInit&&!MIM.onSigninStatus&&d){FCue.generate.buildCue(FCue.cues.cue_1b);}};if(FCue&&FCue.cues){a(b);}else{this._eventManager.fire("fc","bootstrap",{callback:a,params:b});}},loginToIM:function(){MGlbl.contactView._onContentReady();if(!MIM.api._loaded){MEM.subscribe("im","onLoad",MIM.api.login,MIM.api);MIM.api.load("http://mail.yimg.com/nq/mc/1_0_0/mg/swf/imsdk_2.0.swf");}else{if(!MIM.ABContacts.loaded){MIM.ABContacts.init(true);}MIM.api.login();}this.offline=true;MGlbl.contactView._updateContactsBody();},stopLogin:function(a){this.login=false;this.offline=false;MEM.fire("im.presenceList","onSelfUpdate",{text:this._getString.getTranCM("im_offline"),icon:"off image"});MEM.fire("im.chat","onSignOut",this);if(a){this._imlib.logoff();}},updateBlockedList:function(b){var f="";var e=MIM.api.getBlockList();if(e.ignoreList&&e.ignoreList["records"]){var d=e.ignoreList["records"];for(var c=0,a=d.length;c<a;c++){f+=d[c].name+"|";}}if(!b){MData.setMetaData({blocklist:f});}else{MC.metaQ.blocklist=f;}},updateSelf:function(h){YUtil.Event.preventDefault(h);var e=YUtil.Event.getTarget(h).parentNode;if(e.nodeName.toUpperCase()==="LI"){var c={};if(!this.login&&e.className!="last"){this.selfStatusBuffer=this._presenceMap[e.value]?this._presenceMap[e.value]:e.value;this.loginToIM();return;}else{MEM.fire("im.presenceList","onLogoff");}var a=MGlbl.contactView;var f=parseInt(this._presenceMap[e.value],10);var j,d,g,b=0;g=e.firstChild.innerHTML;if(e.className=="p_busy"){j="1";d="busy image";this.customStatus=false;}else{if(e.className=="p_avail"){j="0";d="avail image";this.customStatus=false;}else{if(e.className=="p_offline"){d="off image";this.customStatus=false;}}}var i=e.value;if(e.className=="last"){this._imlib.logoff();if(this.login==true){MEM.fire("im.chat","onSignOut",this);}this.login=false;this.offline=false;MData.setMetaData({imstate:-1});d="off image";g=this._getString.getTranCM("im_offline");}else{if(e.className===""){b=1;if(!this.login){MEM.fire("dialogue","signOn");}else{MEM.fire("dialogue","customStatus");}}else{if(i>2){this._imlib.setCustomStatus(j,"0",g);this._imlib.setVisibility(true);this.customStatus=true;a._updatePrefs("imstate",(j==0)?0:2);a._updatePrefs("curstatus",e.value);MData.setMetaData({imstate:(j==0)?0:2,curstatus:e.value});c={ac:"cStat"};}else{if(f===12){this._imlib.setVisibility(false);a._updatePrefs("imstate",f);a._updatePrefs("curstatus",2);MData.setMetaData({imstate:f,curstatus:"2"});c={ac:"iStat"};}else{this._imlib.setStatus(f);this._imlib.setVisibility(true);a._updatePrefs("imstate",f);a._updatePrefs("curstatus",e.value);MData.setMetaData({imstate:f,curstatus:e.value});c=(f==0)?{ac:"aStat"}:{ac:"bStat"};}}}}if(b!=1){this._eventManager.fire("im.presenceList","onSelfUpdate",{text:g,icon:d});}if(c.ac!=null){MIM.Track.beaconULT(c);}}},updateSelfStatus:function(c,g){if(typeof this.selfStatusBuffer==="undefined"){if(imPrefs.curstatus){var b=imPrefs.curstatus;switch(imPrefs.curstatus){case"1":this.selfStatusBuffer=2;break;case"2":this.selfStatusBuffer=12;break;default:this.selfStatusBuffer=imPrefs.curstatus;break;}}else{this.selfStatusBuffer=0;}}c=this.selfStatusBuffer;if(typeof c==="undefined"||c===""){c=0;}delete this.selfStatusBuffer;if(typeof b==="undefined"){var b;switch(c){case"2":b=1;break;case"12":b=2;break;default:b=c;break;}}var d={0:{icon:"avail image",msg:this._getString.getTranCM("im_avail")},2:{icon:"busy image",msg:this._getString.getTranCM("im_busy")},12:{icon:"off image",msg:this._getString.getTranCM("im_invisible")}};if(c>2&&c<12){var i=imPrefs.imstatus[c-3];var c=(i.state==1)?2:0;var f=i.status;var h=d[c]["icon"];this._imlib.setCustomStatus(i.state,"0",i.status);}else{var f=d[c]["msg"];var h=d[c]["icon"];}if(c!=12&&b<=2&&c!=0){this._imlib.setStatus(c);}MC.metaQ.imstate=c;if(this.firstLogin){this.firstLogin=false;var e=window.screen;var a={};a={resoln:e.width+"x"+e.height};if(this.totalIMContacts&&this.totalMobContacts){a.c_imcon=this.totalIMContacts;a.c_mbcon=this.totalMobContacts;}a.im="login";MIM.Track.beaconULT(a);}MGlbl.contactView._updatePrefs("imstate",c);if(!g){MData.setMetaData({curstatus:b});}else{MC.metaQ.curstatus=b;}MGlbl.contactView._updatePrefs("curstatus",b);this._eventManager.fire("im.presenceList","onSelfUpdate",{text:MUtil.escapeHtml(f),icon:h});},subscribeABContacts:function(){var c=this._imlib.getBuddies();var b=[];var e=this.allContacts,a;var d=imPrefs.blocklist;d=(!d)?[]:d.split("|");if(d.length>0){d.pop(d.length);}for(a in e){abContact=a.split(":")[1];cloud=a.split(":")[0];if((c===null||typeof c==="undefined"||typeof c[abContact]==="undefined")&&abContact!=activeYid&&!this.inArray(d,abContact)&&cloud==0&&typeof e[a].EXT==="undefined"){b.push(abContact);}}if(b.length>0){this._imlib.sendSubscribe(b,true,true);}for(a in e){this.updateIMConfirmationDialog(a.split(":")[1]);}},inArray:function(b,d){for(var c=0,a=b.length;c<a;c++){if(b[c]===d){return true;}}return false;},updateIMConfirmationDialog:function(a){if(MDlg&&MDlg.pendingRequest==a){var e=MIM.api.getBuddyInfo(a,0,false);if(e!=null&&e.away_status!="none"){var b=e.away_status;}var d=document.getElementById("opiStatus");if(d){if(b){d.className=(b==-1)?"image c_offline":(b==2?"image c_busy":"image c_avail");}}d=document.getElementById("userNotOnline");if(d){d.style.display=(b&&(b==2||b==0))?"none":"block";}var c=YDom.getElementsByClassName("button-group")[0];if(c.childNodes.length>1&&!MDlg.mobileRequest){c.childNodes[0].style.display="inline";c.childNodes[0].innerHTML=(b==0||b==2)?this._getString.getTranCM("dlg_chat_now"):this._getString.getTranCM("dlg_send_offline");}}},updateMobileConfirmationDialog:function(a){if(MDlg&&MDlg.mobileRequest==a){var b=YDom.getElementsByClassName("button-group")[0];if(b.childNodes.length>1){b.childNodes[0].style.display="inline";b.childNodes[0].innerHTML=this._getString.getTranCM("dlg_send_text");}}},getMobileContacts:function(c){var b={};var e=this._smsutil.getIntl(),d;for(var a in c){this.updateMobileConfirmationDialog(a);if(e!=""){d=this._smsutil.normalizeMobileNum(a,e);}else{d=a;}b[d]={displayMobileNum:a,FN:c[a]["FN"],LN:c[a]["LN"],NICKNAME:c[a]["nickName"]};}return b;}};MIM.presenceList.init();MIM.ABContacts={abUrl:"mail?cmd=abcontacts",loaded:false,handleABData:function(o){if(o.responseText){var contactsObj=eval(o.responseText);if(!contactsObj){return;}if(hasIM){MIM.ABContacts.loaded=true;MEM.fire("im","onABContactsInfo",{contactsList:contactsObj,subscribe:this.subscribe});}}},init:function(b){var a="";var c={success:this.handleABData,failure:function(d){},subscribe:(b||false)};if(imPrefs&&imPrefs.imstate==""){a="&newUser=1";}YHttp.asyncRequest("GET",this.abUrl+"&mcrumb="+mCrumb+"&.jsrand="+Math.round(Math.random()*100000000)+extraArgs+a,c);}};MIM.ContactView=function(b){var a="im.presenceList";this._container=b.container||"ChatContainer";this._contactsBody=b.contactsBody||"contactsBody";this._eventManager.subscribe("im","onLoginSuccess",this._onLoginSuccess,this);this._eventManager.subscribe("im","onSelfLogoff",this._onLogoff,this);this._eventManager.subscribe(a,"onSelfUpdate",this._onSelfUpdate,this);this._eventManager.subscribe(a,"onAdd",this._onAdd,this);this._eventManager.subscribe(a,"onUpdate",this._onUpdate,this);this._eventManager.subscribe(a,"onRemove",this._onRemove,this);this._eventManager.subscribe("im.chat","notifyContact",this._onNotifyContact,this);this._eventManager.subscribe("im.chat","notifyContact",this.rotateTitle,this);};MIM.ContactView.prototype={_eventManager:MEM,_util:MUtil,_imutil:MIM.util,_supplant:MUtil.supplant,_Event:YUtil.Event,_contacts:MIM.presenceList,_idList:MIM.util.createUid(),_smsList:MIM.util.createUid(),_idOnlineCount:MIM.util.createUid()+"|toggle",_smsOnlineCount:MIM.util.createUid()+"|toggle",_buddyCount:"0",_smsCount:"0",_getString:MIM.yala,_selfpresence:{text:MIM.yala.getTranCM("im_offline"),title:MIM.yala.getTranCM("im_offline"),icon:"off image",Iam:MIM.yala.getTranCM("common_i_am")},markup:{beginHead:'<div class="first"><span class="first"></span><span class="last"></span></div><div class="ChatContent"><div class="hd"><div class="head clearfix"><h2 class="chatHeader">{_headerText}</h2><div id="cmColl">',toggleDisplay:'<b id="bcmColl" style="{___collapseState}">[<a id="chat_container_hide" href="#">{___toggleText}</a>]</b>',closeDisplay:'<b id="bcmColl">[<a id="chat_container_close" href="#">{_closeText}</a>]</b></div></div>',endToggle:'</div></div><div id="status" class="clearfix">',presenceTemplate:'<u>{_selfpresence.Iam} </u><a href="#" id="astatus" title="{_selfpresence.title}"><i class="{_selfpresence.icon}">{_selfpresence.text}</i></a>',endHead:'</div></div><div class="hide" id="{_contactsBody}"><ul>',inModuleMessage:{beginTemplate:'<div id="inModuleMessage">',flashMessage:'<div class="flashInstall"><div class="image flashWarningImage"></div><p>{_flashmsg}</p><p><a id="adobe_install" href="{_flashurl}" target="_blank">{_flashInstall}</a></div>',end:"</div>"},loading:'<u class="loading">{_loading}<img src="'+loadingImg+'" alt="..."> </u><a href="#" style="text-decoration:underline;font-weight:normal;" id="cm_cancel">{_cancel}</a>',im:{beginTemplate:'<li class="{___toggleIMPane}"><div id="contactBar" class="gradient clearfix">',toggleList:'<div id="imListToggle" class="image downAro" title="{___toggleIMPaneTooltip}"></div>',onlineCount:{beginTemplate:'<h3 id="{__uid}">',itemTemplate:"{___contactsBar}",end:'</h3><b> [<a id="CM_addContact" href="#" title="{_add}">{_add}</a>]</b></div>'},contactBody:{beginTemplate:'<div id="contactBody">',beginListTemplate:'<ol id="{_idList}">',beginItemTemplate:'<li class="{icon}" id="{__uid}">',itemTemplate:'<a href="#" title="{___tooltip}" class="buddy">{name}</a> <span style="{___customMsg}"> - {msg}</span>',endItemTemplate:"</li>",endListTemplate:"</ol>",noContactsTemplate:'<div class="noContacts"><p>{_noContactsMsg}</p><p><a href="#" id="aNewChat">{_newchat}</a></div>',newChatTemplate:'<div class="newChat">{_notlisted} <a href="#" id="aNewChat">{_newchat}</a></div>',endTemplate:"</div></li>"}},text:{beginTemplate:'<li class="{___toggleSMSPane}"><div id="mobileBar" class="gradient clearfix">',toggleList:'<div id="mobileListToggle" class="image downAro" title="{___toggleSMSPaneTooltip}"></div>',onlineCount:{beginTemplate:'<h3 id="{__uid}">',itemTemplate:"{___mobileBar}",end:'</h3><b> [<a id="CM_addMobile" href="#" title="{_add}">{_add}</a>]</b></div>'},mobileBody:{beginTemplate:'<div id="mobileBody">',beginListTemplate:'<ol id="{_smsList}">',beginItemTemplate:'<li class="mobile image" id="{__uid}">',itemTemplate:'<a href="#" title="{tooltip}" class="contact">{name}</a><span> {displayMobileNum}</span>',endItemTemplate:"</li>",endListTemplate:"</ol>",noContactsTemplate:'<div class="noContacts"><p>{_noContactsMsg}</p><p><a href="#" id="aNewText">{_newtext}</a></div>',newTextTemplate:'<div class="newChat">{_notlisted} <a href="#" id="aNewText">{_newtext}</a></div>',endTemplate:"</div></li>"}},foot:{beginTemplate:'</ul></div><div class="ft clearfix" id="contactsFoot"><a id="imOptions" href="#" class="arrDownImg">{_settings}</a>',end:'</div></div><div class="last"><span class="first"></span><span class="last"></span></div>'}},getMarkup:function(){var a=[this._supplant(this.markup.beginHead,{_headerText:this._getString.getTranCM((MC.IM_TOGGLE_STRINGS.im_enable_mobile_l10n)?"common_header_text":"common_chat_header_text")}),this._supplant(this.markup.toggleDisplay,this,this),this.markup.endToggle,this._supplant(this.markup.loading,{_loading:MC.YM_STRINGS.loading,_cancel:MC.YM_STRINGS.cancel}),this._supplant(this.markup.endHead,this)];a.push(this._supplant(this.markup.im.beginTemplate,this,this),this._supplant(this.markup.im.toggleList,this,this),this._supplant(this.markup.im.onlineCount.beginTemplate,this,this,this._idOnlineCount),this._supplant(this.markup.im.onlineCount.itemTemplate,this,this),this._supplant(this.markup.im.onlineCount.end,{_add:this._getString.getTranCM("common_add")}),this.markup.im.contactBody.beginTemplate,this._supplant(this.markup.im.contactBody.beginListTemplate,{_idList:this._idList}),this.markup.im.contactBody.endListTemplate,this._supplant(this.markup.im.contactBody.newChatTemplate,{_notlisted:this._getString.getTranCM("cm_not_listed"),_newchat:this._getString.getTranCM("common_new_chat")}),this.markup.im.contactBody.endTemplate);if(MC.IM_TOGGLE_STRINGS.im_enable_mobile_l10n){a.push(this._supplant(this.markup.text.beginTemplate,this,this),this._supplant(this.markup.text.toggleList,this,this),this._supplant(this.markup.text.onlineCount.beginTemplate,this,this,this._smsOnlineCount),this._supplant(this.markup.text.onlineCount.itemTemplate,this,this),this._supplant(this.markup.text.onlineCount.end,{_add:this._getString.getTranCM("common_add")}),this.markup.text.mobileBody.beginTemplate,this._supplant(this.markup.text.mobileBody.beginListTemplate,{_smsList:this._smsList}),this.markup.text.mobileBody.endListTemplate,this._supplant(this.markup.text.mobileBody.newTextTemplate,{_notlisted:this._getString.getTranCM("cm_not_listed"),_newtext:this._getString.getTranCM("common_new_text")}),this.markup.text.mobileBody.endTemplate);}a.push(this._supplant(this.markup.foot.beginTemplate,{_settings:this._getString.getTranCM("common_settings")}));a.push(this._supplant(this.markup.foot.end));return a.join("");},_onContentReady:function(){if(isAMT){imPrefs.imstate=-1;}var a=document.getElementById(this._container);if(!a){var b;a=b=document.getElementById("cacheContacts");if(!b){a=document.createElement("div");a.id="cacheContacts";a.className="offscreen";document.body.appendChild(a);}}else{this.initEvents();}a.innerHTML=this.getMarkup();if(a.className.indexOf("fixupstyles")==-1){a.className+=" fixupstyles";}resizeLeftPane();document.getElementById("bcmColl").style.display="none";this.initSettingsMenu();},_onLoginSuccess:function(){this._contacts.login=true;this._toggleContactsBody();if(MC.IM_TOGGLE_STRINGS.im_enable_mobile_l10n){this._updateSMSList();}document.getElementById("contactsFoot").style.display="block";var a=imPrefs.imstate;this._contacts.updateSelfStatus(a,true);this._contacts.updateBlockedList(true);MData.setMetaData(MC.metaQ);MC.metaQ={};MIM.util._featureCue(true,"00",imPrefs.imstate);MEM.fire("im.chat","onSignIn",this);},_onLogoff:function(a){if(this._contacts.login&&!MIM.logoffinProgress){this._contacts.login=false;this._contacts.signedout=true;MEM.fire("im.chat","onSignOut");if(a&&a.showAlert){alert(this._getString.getTranCM("im_disconnect_msg"));}this._selfpresence.text=this._getString.getTranCM("im_disconnect");this._selfpresence.icon="dc image";this._getString.removeCategory("contactmodule");this._toggleContactsBody();}MIM.logOffinProgress=false;},_onSelfUpdate:function(a){this._selfpresence.text=a.text;this._selfpresence.title=this._getString.getTranCM("im_set_custom_status");this._selfpresence.icon=a.icon;this._toggleContactsBody();},_updatePrefs:function(a,b){imPrefs[a]=b;},_isObjEmpty:function(b){for(var a in b){return false;}return true;},_tooltip:function(a){return a.tooltip+" - "+(a.msg?a.msg:this._getString.getTranCM("im_avail"));},_customMsg:function(a){return a.msg?null:"display:none;";},_contactsBar:function(){return this._buddyCount+" "+((this._buddyCount==1)?this._getString.getTranCM("cm_online_contact"):this._getString.getTranCM("cm_online_contacts"));},_mobileBar:function(){return this._smsCount+" "+((this._smsCount==1)?this._getString.getTranCM("cm_mobile_contact"):this._getString.getTranCM("cm_mobile_contacts"));},_collapseState:function(){if(this._contacts.login){return"";}else{return"display:none;";}},_toggleIMPane:function(){return(imPrefs.occol=="false"||imPrefs.occol=="")?"":"hide";},_toggleSMSPane:function(){return(imPrefs.mccol=="false"||imPrefs.mccol=="")?"":"hide";},_toggleText:function(){return(imPrefs.cmcol=="false"||imPrefs.cmcol=="")?this._getString.getTranCM("cm_hide"):this._getString.getTranCM("cm_show");},_toggleContactsBody:function(){var a=((imPrefs.cmcol=="false"||imPrefs.cmcol=="")&&this._contacts.login)?"bd":"hide";document.getElementById(this._contactsBody).className=a;if(!this._contacts.login){document.getElementById(this._idList).innerHTML="";this._contacts.arrBuddies.length=0;this._contacts._map={};}document.getElementById("cmColl").innerHTML=this._supplant(this.markup.toggleDisplay,this,this);document.getElementById("status").innerHTML=this._supplant(this.markup.presenceTemplate,this);resizeLeftPane();if(a=="hide"){setTimeout(resizeLeftPane,200);}this.initMenu();},_toggleIMPaneTooltip:function(){return(imPrefs.occol=="false"||imPrefs.occol=="")?this._getString.getTranCM("oc_hide_tooltip"):this._getString.getTranCM("oc_show_tooltip");},_toggleSMSPaneTooltip:function(){return(imPrefs.mccol=="false"||imPrefs.mccol=="")?this._getString.getTranCM("mc_hide_tooltip"):this._getString.getTranCM("mc_show_tooltip");},_updateSMSList:function(){var f=[],b;this._contacts._omSMSUpdate();var e=this._contacts.arrContacts;for(var c=0,g=e.length;c<g;c++){b=this._smsList+"|"+e[c].mobile;f.push(this._supplant(this.markup.text.mobileBody.beginItemTemplate,{},this,b));f.push(this._supplant(this.markup.text.mobileBody.itemTemplate,e[c],this));f.push(this.markup.text.mobileBody.endItemTemplate);}var a=document.getElementById(this._smsList);a.innerHTML=f.join("");var d=document.getElementById("mobileBody");var j=document.getElementById(this._smsList),h;d.removeChild(d.lastChild);if(e.length==0){j.style.display="none";h=this._supplant(this.markup.text.mobileBody.noContactsTemplate,{_noContactsMsg:this._getString.getTranCM("im_no_text_contact"),_newtext:this._getString.getTranCM("im_strt_txtmsg")});}else{j.style.display="";h=this._supplant(this.markup.text.mobileBody.newTextTemplate,{_notlisted:this._getString.getTranCM("cm_not_listed"),_newtext:this._getString.getTranCM("common_new_text")});}MDom.insert(h,d);this._updateSMSCount();},_getBuddyId:function(a){return this._idList+"|"+a.key;},_updateOnlineCount:function(){var a=this._contacts.arrBuddies.length;this._buddyCount=""+a;document.getElementById(this._idOnlineCount).innerHTML=this._supplant(this.markup.im.onlineCount.itemTemplate,this,this);if(a>=10){}else{}},_updateContactsBody:function(){var a=this._contacts.arrBuddies.length;var b=document.getElementById("contactBody");var e=this._isObjEmpty(this._contacts.allContacts);var d;var c=document.getElementById(this._idList);b.removeChild(b.lastChild);if(e){this._contacts.arrBuddies=[];this._updateOnlineCount();c.style.display="none";d=this._supplant(this.markup.im.contactBody.noContactsTemplate,{_noContactsMsg:this._getString.getTranCM("im_no_chat_contact"),_newchat:this._getString.getTranCM("im_strt_newchat")});}else{if(a==0){c.style.display="none";d=this._supplant(this.markup.im.contactBody.noContactsTemplate,{_noContactsMsg:this._getString.getTranCM("im_no_cnts_online"),_newchat:this._getString.getTranCM("im_strt_newchat")});}else{c.style.display="";d=this._supplant(this.markup.im.contactBody.newChatTemplate,{_notlisted:this._getString.getTranCM("cm_not_listed"),_newchat:this._getString.getTranCM("common_new_chat")});}}MDom.insert(d,b);},_updateSMSCount:function(){this._smsCount=this._contacts.arrContacts.length;document.getElementById(this._smsOnlineCount).innerHTML=this._supplant(this.markup.text.onlineCount.itemTemplate,this,this);},_onAdd:function(a){this._addBuddy(a.buddyInfo);},_onUpdate:function(a){if(a){this._updateContact(a.buddyInfo);}else{this._contacts.apply(this._updateContact,this);}},_onRemove:function(b){var a=document.getElementById(this._getBuddyId(b.buddyInfo));if(a){a.parentNode.removeChild(a);}this._updateOnlineCount();this._updateContactsBody();resizeLeftPane();},_onNotifyContact:function(g){var e=this._contacts.allContacts[g.key];var b=this._contacts._blinkMap;var a=b.length;if(e){var h=this._getBuddyId(g);var d=document.getElementById(h);if(d){if(g.evtName=="onReceiveChat"||g.evtName=="onOffline"){if(e.notifyClass=="cmNotify"){return;}e.notifyClass="cmNotify";d.className+=" "+e.notifyClass;b[a]=h;var f=1;setTimeout(function(){d.className+=" cmGray";var i=arguments.callee;setTimeout(function(){f++;d.className=d.className.replace(/ cmGray/,"");if(f<3){setTimeout(i,300);}},300);},300);}else{if(g.evtName=="onSwitch"){e.notifyClass="";d.className=d.className.replace(/ cmNotify/,"");for(var c=0;c<a;c++){if(b[c]==h){this._contacts._blinkMap.splice(c,1);break;}}}}}}},rotateTitle:function(g){var d=1500;var c=this._getString;if(g.name){if(!MC.titleObj&&g.evtName=="onSwitch"){return;}if(!MC.titleObj){MC.titleObj={};MC.senderStack=[document.title];}var b=document.title;if(!MC.asyncObj){MC.asyncObj={TITLE:b};}if(!MC.titleObj[g.key]&&g.evtName!="onSwitch"){MC.senderStack.push(g.name);MC.titleObj[g.key]=MC.senderStack.length-1;}var f=0,e=g.evtName;clearTimeout(MC.rotateID);MC.rotateID=setTimeout(function(){if(e=="onSwitch"){var a=0;for(var h in MC.titleObj){if(h===g.key){delete MC.titleObj[h];MC.senderStack.splice(a+1,1);break;}a++;}if(MC.senderStack.length===1){document.title=(MC.asyncObj.TITLE==b)?b:MC.asyncObj.TITLE;return;}}else{if(e!="dummy"){f=MC.titleObj[g.key];}}if(f==0||MC.senderStack[f]===undefined){document.title=(MC.asyncObj.TITLE==b)?b:MC.asyncObj.TITLE;if(MC.senderStack[1]===undefined){return;}}else{document.title=c.getTranCW("cw_sender_title",{sender:MUtil.unescapeHtml(MC.senderStack[f])});}f++;if(f>=MC.senderStack.length){f=0;}e="dummy";MC.rotateID=setTimeout(arguments.callee,d);},d);}},stopRotation:function(c){if(!c){MC.titleObj={};if(MC.senderStack){MC.senderStack.length=0;}MC.senderStack=[document.title];}else{var a=0;for(var b in MC.titleObj){if(b===c){delete MC.titleObj[b];MC.senderStack.splice(a+1,1);break;}a++;}}},_addBuddy:function(c,a){if(!c){return;}var h=this._getBuddyId(c),d;var g=[],f;g.push(this._supplant(this.markup.im.contactBody.beginItemTemplate,c,this,h));g.push(this._supplant(this.markup.im.contactBody.itemTemplate,c,this));g.push(this.markup.im.contactBody.endItemTemplate);var b=document.getElementById(this._idList);var e=MUtil.indexOf(this._contacts.arrBuddies,c);if(b.childNodes.length===0){b.innerHTML=g.join("")+b.innerHTML;}else{if(e===0){for(d=e+1,len=this._contacts.arrBuddies.length;d<len;d++){f=document.getElementById(this._getBuddyId(this._contacts.arrBuddies[d]));if(f){MDom.insert(g.join(""),f,"beforeBegin");break;}}}else{for(d=e-1;d>=0;d--){f=document.getElementById(this._getBuddyId(this._contacts.arrBuddies[d]));if(f){MDom.insert(g.join(""),f,"afterEnd");break;}}}}this._updateOnlineCount();this._updateContactsBody();resizeLeftPane();},_updateContact:function(a){if(!a||!a.key){return;}var c=this._getBuddyId(a);var b=document.getElementById(c);if(b){if(b.className.match("cmNotify")){b.className=a.icon+" cmNotify";}else{b.className=a.icon;}b.innerHTML=this._supplant(this.markup.im.contactBody.itemTemplate,a,this,c);}else{this._addBuddy(a);}},initMenu:function(){var n=[{menuitems:[{anchor:{innerHTML:this._getString.getTranCM("im_avail"),id:"",title:this._getString.getTranCM("im_avail"),className:"image"},li:{className:"p_avail"}},{anchor:{innerHTML:this._getString.getTranCM("im_busy"),id:"",title:this._getString.getTranCM("im_busy"),className:"image"},li:{className:"p_busy"}},{anchor:{innerHTML:this._getString.getTranCM("im_invisible"),id:"",title:this._getString.getTranCM("im_invisible"),className:"image"},li:{className:"p_offline"}}]}];var h={};h.menuitems=[];var m={0:"p_avail",1:"p_busy"};var c=parseInt(imPrefs.imstate,10);if(this._contacts.login&&(!this._contacts.customStatus&&imPrefs.curstatus<=2)){if(c===0){n[0].menuitems[0].anchor.className="image selected";}else{if(c==2){n[0].menuitems[1].anchor.className="image selected";}else{if(c==12){n[0].menuitems[2].anchor.className="image selected";}}}}for(var j=0,l=imPrefs.imstatus.length;j<l;j++){var g=imPrefs.imstatus[j].status;var f=(this._selfpresence.text===MUtil.escapeHtml(g)?"image selected":"image");h.menuitems.push({anchor:{innerHTML:MUtil.escapeHtml(g),title:MUtil.escapeHtml(g),className:f},li:{className:m[imPrefs.imstatus[j].state]}});}var d=this._getString.getTranCM("im_sign_out_chat");var b=this._getString.getTranCM("im_sign_out_chat");var e="";var k="";if(!this._contacts.login){d=b=this._getString.getTranCM("im_signed_out_chat");e=" selected";k="hide";}if(this._contacts.login){h.menuitems.push({anchor:{innerHTML:this._getString.getTranCM("im_custom"),title:this._getString.getTranCM("im_custom")},li:{className:k}});}n.push(h);n.push({menuitems:[{anchor:{innerHTML:d,title:b,className:("last"+e)},li:{className:"last"}}]});var p=document.getElementById("astatus_selectmenu");if(p){p.parentNode.removeChild(p);}var o=new DataButton("astatus",n);o.menuClass="presenceMenu";o.registerMenuCallBack(this._contacts.updateSelf,this._contacts);},initSettingsMenu:function(){var d=[{grouptitle:this._getString.getTranCM("im_opt_chatlist_loc")+":",menuitems:[{anchor:{innerHTML:this._getString.getTranCM("im_opt_loc_above"),id:"aboveFolders"},li:{}},{anchor:{innerHTML:this._getString.getTranCM("im_opt_loc_below"),id:"belowFolders"},li:{}}]},{grouptitle:this._getString.getTranCM("im_opt_sound_alerts")+":",menuitems:[{anchor:{innerHTML:this._getString.getTranCM("im_opt_sa_incoming"),id:"play_sound",className:(imPrefs.soundenabled=="yes"?"optionsImage":"")},li:{value:21,className:(imPrefs.soundenabled=="yes"?"selected":"")}},{anchor:{innerHTML:this._getString.getTranCM("im_opt_sa_dont_play"),id:"dont_play_sound",className:(imPrefs.soundenabled=="no"?"optionsImage":"")},li:{value:22,className:(imPrefs.soundenabled=="no"?"selected":"")}}]},{menuitems:[{anchor:{innerHTML:this._getString.getTranCM("im_opt_mail_options"),id:"",href:optionsURL,className:"showInBlue"},li:{}}]}];if(MC.IM_TOGGLE_STRINGS.im_settings_help_toggle){d[2].menuitems.push({anchor:{innerHTML:this._getString.getTranCM("im_opt_help"),id:"",href:MC.IM_TOGGLE_STRINGS.im_settings_helpurl,target:"_blank",className:"showInBlue"},li:{}});}if(this._getString.getTranCM("im_client_send_feedback_toggle_l10n")){var c=this._getString.getTranCM("im_client_send_feedback_url_l10n");c+=(MC.Galaxy)?((c.indexOf("?")===-1)?"?gx=1":"&gx=1"):"";d.push({menuitems:[{anchor:{innerHTML:this._getString.getTranCM("im_opt_send_feedback"),id:"",href:c,target:"_blank",className:"showInBlue"},li:{}}]});}imPrefs.cmpos=(imPrefs.cmpos===""?1:imPrefs.cmpos);if(imPrefs.cmpos==0){d[0].menuitems[1].anchor.className="optionsImage";d[0].menuitems[1].li.className="selected";}else{d[0].menuitems[0].anchor.className="optionsImage";d[0].menuitems[0].li.className="selected";}if(document.getElementById("myfolderlist")===null){d.splice(0,1);}var a=new DataButton("imOptions",d);a.menuClass="settingsMenu";a.showMenu=function(){DataButton.prototype.showMenu.call(this);MIM.Track.beaconULT({ac:"imOptn"});};a.registerMenuCallBack(this.updateSettings,this);},updateSettings:function(a){var f=YUtil.Event.getTarget(a).parentNode;var d=document.getElementById("aboveFolders");var c=document.getElementById("belowFolders");var e=document.getElementById("play_sound");var b=document.getElementById("dont_play_sound");switch(f.value){case 0:YUtil.Event.preventDefault(a);if(!document.getElementById("myfolderlist")){return;}if(c.parentNode.className=="selected"){MDom.insert(document.getElementById("ChatContainer").parentNode,document.getElementById("myfolderlist").parentNode.parentNode,"beforeBegin");MData.setMetaData({cmpos:1});setTimeout(function(){c.parentNode.className="";c.className="";d.parentNode.className="selected";d.className="optionsImage";},200);}break;case 1:YUtil.Event.preventDefault(a);if(!document.getElementById("myfolderlist")){return;}if(d.parentNode.className=="selected"){MDom.insert(document.getElementById("ChatContainer").parentNode,document.getElementById("myfolderlist").parentNode.parentNode,"afterEnd");MData.setMetaData({cmpos:0});setTimeout(function(){d.parentNode.className="";d.className="";c.parentNode.className="selected";c.className="optionsImage";},200);}break;case 21:YUtil.Event.preventDefault(a);if(b.parentNode.className=="selected"){MData.setMetaData({soundenabled:"yes"});setTimeout(function(){b.parentNode.className="";b.className="";e.parentNode.className="selected";e.className="optionsImage";},200);}break;case 22:YUtil.Event.preventDefault(a);if(e.parentNode.className=="selected"){MData.setMetaData({soundenabled:"no"});setTimeout(function(){e.parentNode.className="";e.className="";b.parentNode.className="selected";b.className="optionsImage";},200);}break;}},initEvents:function(){var a="gradient clearfix";var c={contactBar:[],imListToggle:["contactBody","occol"],mobileBar:[],mobileListToggle:["mobileBody","mccol"],chat_container_hide:["contactsBody","cmcol"]};var b=YUtil.Event;b.removeListener("ChatContainer","mouseover");b.removeListener("ChatContainer","mouseout");b.removeListener("ChatContainer","click");var d=function(j){var k=b.getTarget(j);if(k.id=="imFeedback"&&j.type=="click"){window.open(k.href);b.stopEvent(j);return;}var f=MData.setMetaData;var h=false;var g={};while(k.id!="ChatContainer"){if(j.type=="click"&&(k.id=="CM_addContact"||k.id=="CM_addMobile")){MEM.fire("dialogue","acFlow",{event:k.id,entry_point:(k.id=="CM_addContact")?1:2});h=true;g={ac:"addCnt"};break;}else{if(c[k.id]!==undefined){if(j.type=="mouseover"){if(k.id=="imListToggle"||k.id=="mobileListToggle"){k=k.parentNode;}a=k.className;k.className=a+" hover";}else{if(j.type=="mouseout"){if(k.id=="imListToggle"||k.id=="mobileListToggle"){k=k.parentNode;}k.className=a;}else{if(j.type=="click"){if(k.id=="chat_container_hide"){if(MIM.util.toggleShowHide("contactsBody",true)){k.innerHTML=MIM.yala.getTranCM("cm_hide");var l={};l[c[k.id][1]]=false;f(l);}else{k.innerHTML=MIM.yala.getTranCM("cm_show");var l={};l[c[k.id][1]]=true;f(l);}}else{if(k.id=="imListToggle"||k.id=="mobileListToggle"){if(MIM.util.toggleShowHide(k.parentNode.parentNode,true)){var l={};l[c[k.id][1]]=false;f(l);MIM.util.togglePaneTooltip(k,false);}else{if(c[k.id][1]=="occol"){g={ac:"ocCol"};}else{if(c[k.id][1]=="mccol"){g={ac:"mcCol"};}}var l={};l[c[k.id][1]]=true;f(l);MIM.util.togglePaneTooltip(k,true);}}}resizeLeftPane();h=true;}}}break;}else{if(j.type=="click"){h=true;if(k.className=="buddy"){MEM.fire("im","onStartChat",b.getTarget(j).parentNode);g={ac:"iniChat"};break;}else{if(k.className=="contact"){MEM.fire("im","onStartSMS",b.getTarget(j).parentNode);g={ac:"iniSMS"};break;}else{if(k.id.substring(0,4)=="aNew"){MEM.fire("im","onStartNewChat",k.id.substr(1));if(k.id=="aNewChat"){g={ac:"newChat"};}else{if(k.id=="aNewText"){g={ac:"newTxt"};}}break;}else{if(k.id=="cm_cancel"){MC.loadCancel=true;MEM.fire("im","onCancelLogin");break;}else{if(k.id=="adobe_install"){window.open(k.href);break;}else{if(k.id=="chat_container_close"){var i=document.getElementById("ChatContainer").parentNode;i.parentNode.removeChild(i);break;}}}}}}k=k.parentNode;}else{k=k.parentNode;}}}}if(h){b.stopEvent(j);b.preventDefault(j);MC.menuObj.hideAll();}if(g.ac!=null){MIM.Track.beaconULT(g);}};b.on("ChatContainer","mouseover",d);b.on("ChatContainer","mouseout",d);b.on("ChatContainer","click",d);}};function sendRS(){if(!MC.fireRS){if(typeof fireRSBeacon==="function"){fireRSBeacon(null,true);}MC.fireRS=true;}}(function(){MGlbl.contactView=new MIM.ContactView({container:"ChatContainer",contactsBody:"contactsBody"});MC.metaQ={};if(flashPresence()===true&&parseInt(getFlashVer())>=9){MGlbl.contactView._onContentReady();var d=MGlbl.contactView;switch(imPrefs.imstate){case"-1":d._toggleContactsBody();sendRS();MIM.util._featureCue(false);break;case"":if(MC.IM_TOGGLE_STRINGS.im_sign_in==="false"){MIM.util._featureCue(false);d._toggleContactsBody();sendRS();break;}default:YUtil.Event.onDOMReady(function(){MIM.util.initSDK();});}}else{var b=MUtil.supplant;var c=MIM.yala;var f=MGlbl.contactView;var e=(new Date()).getTime();var g=e-(86400000*7);if(imPrefs.flashts==""){MData.setMetaData({flashts:e});}if(imPrefs.flashts>g){var a=[b(f.markup.beginHead,{_headerText:c.getTranCM((MC.IM_TOGGLE_STRINGS.im_enable_mobile_l10n)?"common_header_text":"common_chat_header_text")}),b(f.markup.closeDisplay,{_closeText:c.getTranCM("dialog_close")}),f.markup.inModuleMessage.beginTemplate,b(f.markup.inModuleMessage.flashMessage,{_flashmsg:c.getTranCM("im_flash_not_avail"),_flashInstall:c.getTranCM("im_flash_install"),_flashurl:c.getTranCM("im_flash_adobe_url_l10n")}),f.markup.inModuleMessage.end,f.markup.foot.end];document.getElementById("ChatContainer").innerHTML=a.join("");MGlbl.contactView.initEvents();}sendRS();}})();window.onfocus=function(){MGlbl.contactView.stopRotation();};MIM.api={_loaded:false,_flashobj:null,_imutil:MIM.util,_util:MUtil,firstList:true,YEvents:MIM.util.YEvents,YCONST:MIM.util.YCONST,intl:MC.intl||"us",loginInProgress:false,load:function(b){if(!MC.asyncManager.forceIM&&MC.asyncManager.isBookmark){MIM.loginNow=true;return;}MC.isIdle=false;if(!MIM.ABContacts.loaded){MIM.ABContacts.init();}var a=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','id="WEBSDK" width="1" height="1"','codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">','<param name="movie" value="',b,'" />','<param name="quality" value="high" />','<param name="bgcolor" value="#869ca7" />','<param name="allowScriptAccess" value="always" />','<embed src="',b,'" quality="high" bgcolor="#869ca7"','width="1" height="1" name="WEBSDK" align="middle"','play="true"','loop="false"','quality="high"','allowScriptAccess="always"','type="application/x-shockwave-flash"','pluginspage="http://www.macromedia.com/go/getflashplayer">',"</embed>","</object>"].join(" ");var c=document.getElementById("sdkContainer");if(!c){var d='<div id="sdkContainer" style="width:50px;">'+a+"</div>";MDom.insert(d,document.body);MC.DebugLog.log("BASIE","Inserting SDK");}},onLoaded:function(c){if(!this._loaded){try{this._loaded=true;YLang.augmentObject(this.YEvents,c.YEvents);YLang.augmentObject(this.YCONST,c.YCONST);this._flashobj=(MC.isIE)?window.WEBSDK:document.WEBSDK;}catch(b){}}var a=document.getElementById("selfStatusContainer");if(a){a.innerHTML="";a.parentNode.removeChild(a);}MC.DebugLog.log("BASIE","SDK Loaded");MEM.fire("im","onLoad");MGlbl.chatSDKLoaded=true;gLaunchProfile.stop("IM_SDK_LOAD");},getConfig:function(){var a=true;if(imPrefs&&imPrefs.curstatus&&imPrefs.curstatus==2){a=false;}return{servers:[{host:"webcs.msg.yahoo.com",port:5050},{host:"httpcs.msg.yahoo.com",port:80}],cookie:MUtil.getCookie(),userId:null,vendorId:409,countryCode:this.intl,weight:6,visible:a};},login:function(){if(!MC.loadCancel){gLaunchProfile.start("IM_LOGIN");MC.DebugLog.log("BASIE","Begin Login");try{if(!this.loginInProgress){this.loginInProgress=true;this._flashobj.login(this.getConfig());}}catch(a){MC.loadCancel=false;MEM.fire("im","onCancelLogin");}}else{MC.loadCancel=this.loginInProgress=false;MEM.fire("im","onCancelLogin");}},logoff:function(){this.loginInProgress=false;if(this._flashobj){MC.DebugLog.log("BASIE","Msgr Logoff");this._flashobj.logoff();}},onEvent:function(f,g){var a=this.YCONST;var e=[];for(var d in this.YCONST){if(this.YCONST[d]==f){e.push(d);}}switch(f){case a.YES_USER_LOGOFF_NOTIFY:g.away_status="-1";break;case a.YES_LOGGED_IN:if(!MC.loadCancel){MC.DebugLog.log("BASIE","Login Complete");MEM.fire("im","onLoginSuccess");MIM.presenceList.subscribeABContacts();}else{MC.loadCancel=false;MEM.fire("im","onCancelLogin",true);}break;}var c=MEM;switch(f){case a.YES_PRELOGIN_DATA:MC.isIdle=true;gLaunchProfile.stop("IM_LOGIN");gLaunchProfile.start("IM_BUDDY_LIST");break;case a.YES_BUDDY_LIST:c.fire("im","onBuddyList",g);gLaunchProfile.stop("IM_BUDDY_LIST");if(!MC.fireRS&&typeof fireRSBeacon==="function"){sendRS();}break;case a.YES_BUDDY_INFO:c.fire("im","onBuddyInfo",g);break;case a.YES_NEW_INCOMING_SESSION:break;case a.YES_NEW_SAVED_SESSION:break;case a.YES_USER_HAS_MSG:c.fire("im","onReceiveChat",g);break;case a.YES_USER_HAS_SAVED_MSG:g.evtName="onOffline";c.fire("im","onReceiveChat",g);break;case a.YES_USER_SEND_MESG:if(g.appname=="TYPING"){c.fire("im","onTyping",g);}break;case a.YES_USER_LOGOFF_ERR:this.loginInProgress=false;c.fire("im","onSelfLogoff",{showAlert:true});break;case a.YES_CONNECTION_FAILED:this.loginInProgress=false;c.fire("im","onSelfLogoff");break;case a.YES_BUDDY_AUTHORIZE_NEW_BUDDYOF:g.newBuddy=1;c.fire("im","onReceiveChat",g);break;case a.YES_MOBILE_SEND_SMS_MESSAGE:var b=imPrefs.homecountry;if(b){g.sender=MIM.smsUtil.normalizeMobileNum(g.sender,b);}c.fire("sms","onMobileMsg",g);break;case a.YES_USER_HAS_MAIL:c.fire("ymc","onNewMail",g);break;case a.YES_USER_LOGIN:c.fire("im","onBuddyLogin",g);break;case a.YES_SET_AWAY_STATUS:c.fire("im","onBuddySetAwayStatus",g);break;case a.YES_USER_LOGOFF_NOTIFY:c.fire("im","onBuddyLogoff",g);break;case 2060:if(MGlbl.chatWin){MGlbl.chatWin.onSMSVerify(g);}break;case a.YES_ADDRESS_BOOK_CHANGED:MIM.ABContacts.init(true);break;}},send:function(a,b){this._flashobj.send(a,b);},handleSelectEvents:function(b,a){this._flashobj.handleSelectEvents(b,a);},smsValidate:function(a){this._flashobj.smsValidate(a);},sendSMS:function(b,d,a){a=a.replace(/\"/g,"&quot;").replace(/\'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;");var c=MUtil.jsonToXML({current_id:activeYid,target_user:b,phone_carrier_code:d,msg:a});this._flashobj.send("sms",c);},setVisibility:function(a){var b=MUtil.jsonToXML({flag:(a?1:2)});this._flashobj.send("setVisibility",b);},setStatus:function(b,c){var a=MUtil.jsonToXML({away_status:b,no_idle_time:(c?1:0)});this._flashobj.send("setStatus",a);},setCustomStatus:function(a,c,e,d){e=e.replace(/\"/g,"&quot;").replace(/\'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;");var b=MUtil.jsonToXML({away_status:99,no_idle_time:(d?1:0),away_msg:e,custom_dnd_status:a,status_link_type:c});this._flashobj.send("setStatus",b);},setStealthStatus:function(d,c,b){var a=MUtil.jsonToXML({current_id:activeYid,command:(c?1:2),flag:2,buddy:d,cloud_id:(b?b:0)});this._flashobj.send("stealthStatus",a);},addBuddyToGroup:function(h,g,c,b){var e=[];if(!c){c=0;}for(var f=0,a=g.length;f<a;f++){e.push({buddy:g[f],cloud_id:c});}var d=MUtil.jsonToXML({current_id:h,buddy_grp_name:(b?b:"Friends"),buddy_record_list:{records:e}});this._flashobj.send("addBuddyToGroup",d);},removeBuddy:function(b,a){this._flashobj.removeBuddy(activeYid,b,a);},sendBuddyAuthorize:function(e,d,c,f,b){var a=MUtil.jsonToXML({current_id:e,target_user:d,cloud_id:(c?c:0),flag:(f?1:2),msg:b});this._flashobj.send("buddyAuthorize",a);},getSelf:function(){var a=this._flashobj.getSelf();if(a&&a.profiles){return a.profiles;}return null;},getBuddies:function(){return this._flashobj.getBuddies();},sendSubscribe:function(g,d,c){var e=this.getSelf();var f=(e&&e.subscribe_list_size)||50;if(g&&g.length>f){this.sendSubscribe(g.slice(0,f),d,c);var e=this;setTimeout(function(){e.sendSubscribe(g.slice(f),d,c);},100);return;}var h="subscribe";var a=["<payload current_id='",activeYid,"'"];if(!d){h="unsubscribe";a.push(" flag='"+(c?"1":"0")+"'");}a.push(">");if(g&&g.length>0){a.push("<target_user>");for(var b=0;b<g.length;b++){a.push("<record target_user='"+g[b]+"'/>");}a.push("</target_user>");}a.push("</payload>");this._flashobj.sendSubscribe(h,a.join(""));},ignoreUser:function(c,b,d){var a=["<payload current_id='",activeYid,"'"," flag='",(d?1:2),"'><buddy_record_list>","<record buddy='",c,"' cloud_id='",(b?b:0),"'/></buddy_record_list></payload>"];this._flashobj.send("ignoreUser",a.join(""));},getPresenceList:function(){return this._flashobj.getPresenceList();},getBlockList:function(){return this._flashobj.getBlockList();},getSubscribeList:function(){var b=this._flashobj.getSubscribeList();var a=b.stranger_record_list;if(!a||!a.records||a.records.length===0){return null;}return a.records;},getInvisibleToList:function(){return this._flashobj.getInvisibleToList();},getBuddyInfo:function(d,c,b){var a=MUtil.jsonToXML({name:d,cloud_id:(c?c:0)},"record");return this._flashobj.getBuddyInfo(a,b);},isBlockedUser:function(c,b){var a=MUtil.jsonToXML({name:c,cloud_id:(b?b:0)},"record");return this._flashobj.isBlockedUser(a);},sendIM:function(c,b,d){d=d.replace(/\"/g,"&quot;").replace(/\'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;");var a=MUtil.jsonToXML({current_id:activeYid,target_user:c,cloud_id:(b?b:0),msg:d});this.send("im",a);},sendTypingIndicator:function(c,d,b){var a=MUtil.jsonToXML({appname:"TYPING",flag:(c?1:0),current_id:activeYid,target_user:d,cloud_id:b,msg:""});this.send("typingIndicator",a);},reportSpim:function(b,a){this._flashobj.reportSpim(activeYid,b,a?(""+a):"");}};var websdk=MIM.api;MIM.presenceList._imlib=MIM.api;
Add Comment
Please, Sign In to add comment