/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 9th 2010 10:04:14 PM PST                            */
/*      Machine:  10.16.139.110                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/dr9iqdidknc408c4.pkg.js h:b90ctic0                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/dr9iqdidknc408c4.pkg.js                                   */

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/dr9iqdidknc408c4.pkg.js"]); }

function CIFileUploadInputController(_L0,_L1,_L2,_L3){this.parent.construct(this,_L0,_L1,_L2,_L3);CIFileUploadInputController.instance=this;return this;}CIFileUploadInputController.extend('CIInputController');copy_properties(CIFileUploadInputController.prototype,{onUploadComplete:function(_L0){if(_L0.error){this.parent.handleLoginSubmit(_L0);return;}hide(this.getId('iframe'));this._submitLoginForm({memcache_key:_L0.memcache_key});}});
function CIOutlookDesktopController(_L0){copy_properties(this,{args:_L0,DOWNLOAD_TIMEOUT:60*3*1000,IMPORT_TIMEOUT:60*1*1000,DETECT_SERVER_INTERVAL:500,LOCAL_SERVER_PORT:19514,imageLoaded:false,detectorImage:null,imageTimeout:null});return this;}copy_properties(CIOutlookDesktopController.prototype,{detectImportServer:function(){if(this.imageLoaded)return;if(!this.detectorImage){this.imageTimeout=setTimeout(bind(this,'failDetection'),this.DOWNLOAD_TIMEOUT);show('importProgress-download');this.detectorImage=new Image();this.detectorImage.onload=bind(this,function(){clearTimeout(this.imageTimeout);this.imageLoaded=true;this.startImportRequest();});}this.detectorImage.src=null;this.detectorImage.src=sprintf("http://127.0.0.1:%d/loaded",this.LOCAL_SERVER_PORT);setTimeout(bind(this,'detectImportServer'),this.DETECT_SERVER_INTERVAL);},failDetection:function(){this.showImportError_download();},startImportRequest:function(){setTimeout(this.showImportError_import,this.IMPORT_TIMEOUT);hide('importProgress-download');show('importProgress-import');copy_properties(this.args,{post_form_id:$("post_form_id").getAttribute("value")});var _L0="";for(name in this.args)_L0+=sprintf("%h=%h&",name,encodeURIComponent(this.args[name]));$('frameImportContacts').src=sprintf("http://127.0.0.1:%d/importContacts?%h",this.LOCAL_SERVER_PORT,_L0);},showImportError_download:function(){hide('importProgress-download');show('importProgress-failure-download');},showImportError_import:function(){hide('importProgress-import');show('importProgress-failure-import');}});
function CIOutlookVertigoController(_L0,_L1){this.parent.construct(this,_L0,_L1,true,true);CIOutlookVertigoController.instance=this;return this;}CIOutlookVertigoController.extend('CIInputController');copy_properties(CIOutlookVertigoController.prototype,{startExtraction:function(){hide('outlook_loading');if(this.controlIsInstalled()){this.logUpdate('install_success');this.exec();}else{this.logUpdate('install_pending');hide('outlook_loading');show('install_prompt');show('back_link');}},controlIsInstalled:function(){try{$('extractor').IsInstalled();return true;}catch(exc){return false;}},exec:function(){this.showProcessing();$('extractor').attachEvent('Processing',bind(this,this.extractorHandleProcessing));$('extractor').attachEvent('Completed',bind(this,this.extractorHandleComplete));if(!$('extractor').BeginUpload()){this.logUpdate('failed_upload');Util.error('Importer Failed. Could not upload contact file.');}},cancelExtraction:function(_L0){$('extractor').detachEvent('Processing',bind(this,this.extractorHandleProcessing));$('extractor').detachEvent('Completed',bind(this,this.extractorHandleComplete));DOM.remove($('extractor'));},finishExtraction:function(){this.cancelExtraction();var w=window.opener;if(w){var _L1=w.CIOutlookVertigoController.instance;_L1.submitForm();}window.close();},submitForm:function(){this._submitLoginForm({});},extractorHandleProcessing:function(_L0,_L1){var _L2=Math.round((_L1/32768)*100);this.refreshStatus(_L0);this.refreshProgressBar(_L2);},logUpdate:function(msg){var _L1=this.getConfigData();_L1['outlook_msg']=msg;new AsyncRequest().setURI(this.ci_config.log_endpoint).setData(_L1).send();},extractorHandleComplete:function(_L0){if(_L0==0){this.logUpdate('finished_upload');this.finishExtraction();}else{this.logUpdate('error_'+_L0);var _L1='<p class="outlook_error">'+this.showErrorCode(_L0)+'</p>';DOM.setContent($('extract_error'),HTML(_L1));hide('extractor_progress');show('back_link');}},showProcessing:function(){hide('install_prompt');show('extractor_progress');},refreshProgressBar:function(_L0){if(ge('extractor_progress_outer')){var _L1=$('extractor_progress_outer');var _L2=$('extractor_progress_inner');var _L3=$('extractor_progress_outer').clientWidth-6;var _L4=0;if(_L0>0){if(_L0>100)_L0=100;_L4=(_L3*_L0)/100;}_L2.style.width=_L4+'px';}return;},refreshStatus:function(_L0){var _L1=[_tx("\u0412\u0430\u0448\u0438 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f"),_tx("\u0412\u0430\u0448\u0438 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f"),_tx("\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0412\u0430\u0448\u0438\u0445 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432.")+'<br />'+'<span class="subcaption">'+_tx("\u041d\u0435 \u0443\u0445\u043e\u0434\u0438\u0442\u0435 \u0441 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u043e\u043a\u043d\u043e.")+'</span>',_tx("\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b.")];if(_L1[_L0]&&ge('extractor_progress_text'))if(typeof(animation)=='function'){animation($('extractor_progress_text')).from('opacity',1).to('opacity',0).duration(100).go();DOM.setContent($('extractor_progress_text'),HTML(_L1[_L0]));animation($('extractor_progress_text')).from('opacity',0).to('opacity',1).duration(100).go();}else DOM.setContent($('extractor_progress_text'),HTML(_L1[_L0]));return;},showErrorCode:function(_L0){if(!this.error_codes)this._constructErrorCodes();if(this.error_codes[_L0]){return this.error_codes[_L0];}else return _tx("\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u0437\u0434\u043d\u0435\u0435. \u0415\u0441\u043b\u0438 \u0412\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 Facebook, \u0441\u0441\u044b\u043b\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 \u043e\u0448\u0438\u0431\u043a\u0438: {error-number}.",{'error-number':_L0});},_constructErrorCodes:function(){this.error_codes=new Array();this.error_codes[2147500037]=_tx("\u041b\u0438\u0431\u043e \u043d\u0430 \u0412\u0430\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Outlook, \u043b\u0438\u0431\u043e \u0432\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Outlook \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u044b. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Outlook \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u043e\u0437\u0434\u043d\u0435\u0435.");this.error_codes[2147746069]=_tx("\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0412\u0430\u0448\u0435\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 Outlook \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0432\u043e\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e Outlook \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u043e\u0437\u0436\u0435.");this.error_codes[2149122452]=_tx("\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u0437\u0434\u043d\u0435\u0435. \u0415\u0441\u043b\u0438 \u0412\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 Facebook, \u0441\u0441\u044b\u043b\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 \u043e\u0448\u0438\u0431\u043a\u0438: {error-number}.",{'error-number':'2149122452'});this.error_codes[2147942405]=_tx("\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441 \u0432\u0430\u0448\u0438\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0430\u0448\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u0432\u0430\u0448\u0443 \u043f\u043e\u043f\u044b\u0442\u043a\u0443.");this.error_codes[2147746062]=_tx("\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0441 \u0412\u0430\u0448\u0438\u043c\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u0412\u044b \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u0417\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u043c \u0420\u0435\u0436\u0438\u043c\u0435 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.");}});
function CIWlmInputController(_L0,_L1,_L2,_L3,_L4){this.parent.construct(this,_L0,_L1,_L2,_L3);copy_properties(this,{api_instance:_L4});return this;}CIWlmInputController.extend('CIInputController');copy_properties(CIWlmInputController.prototype,{onSubmit:function(){var _L0=this.getLoginString();this.openAPIPopup(this.api_instance,_L0);return false;}});
function checkVals(){var _L0=ge('hs_year');var _L1=ge('school');$('hs').value=_L1.value;$('hr').value=_L0.value;}function genYearList(_L0,_L1,_L2){var ctl=ge(_L0);ctl.options.length=0;var j=1;ctl.options[0]=new Option(_tx("\u0413\u043e\u0434 \u0432\u044b\u043f\u0443\u0441\u043a\u0430:"),'');for(var i=_L2;i>=_L1;i--){ctl.options[j]=new Option(i,i);j++;}}function showYearSelector(){var _L0=ge('yr');_L0.disabled=false;}function showYearSelectorHS(){var _L0=ge('hs_year');_L0.disabled=false;}function query_hs_onselect(_L0){$('hs_year').disabled=false;if(_L0.i)$('hs').value=_L0.i;}function query_cm_onselect(_L0){if(_L0.i)$('n').value=_L0.i;}function query_college_onselect(_L0){$('yr').disabled=false;if(_L0.i)$('n').value=_L0.i;}function query_coworker_onselect(_L0){if(_L0.i)document.forms["coworker_form"].elements.n.value=_L0.i;}var hiddenId='hs';
function findfriends_open_panel(_L0,_L1){CSS.addClass(_L0,'opened');CSS.removeClass(_L0,'closed');if(_L1){var _L2=_L0.parentNode.childNodes;for(var ii=_L2.length-1;ii>=0;ii--)if(_L2[ii]!=_L0)findfriends_close_panel(_L2[ii]);hide('error');if(Vector2.getElementPosition(_L0,'viewport').y<0)DOMScroll.scrollTo(new Vector2(0,0,'document'));}}function findfriends_close_panel(_L0){CSS.addClass(_L0,'closed');CSS.removeClass(_L0,'opened');}function ff_toggle_webmail(){toggle('address_book_login_widget');toggle('upload_contact_link');toggle('webmail_contact_link');toggle('address_book_upload');}

if (window.Bootloader) { Bootloader.done(["js\/dr9iqdidknc408c4.pkg.js"]); }