/*
HTTP Host: static.ak.fbcdn.net
Generated: March 21st 2010 6:22:00 AM PDT
Machine: 10.16.139.102
Locale: nu_ll
Path: js/dr9iqdidknc408c4.pkg.js
*/

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

function CIFileUploadInputController(b,c,d,a){this.parent.construct(this,b,c,d,a);CIFileUploadInputController.instance=this;return this;}CIFileUploadInputController.extend('CIInputController');copy_properties(CIFileUploadInputController.prototype,{onUploadComplete:function(a){if(a.error){this.parent.handleLoginSubmit(a);return;}hide(this.getId('iframe'));this._submitLoginForm({memcache_key:a.memcache_key});}});
function CIOutlookDesktopController(a){copy_properties(this,{args:a,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 a="";for(name in this.args)a+=sprintf("%h=%h&",name,encodeURIComponent(this.args[name]));$('frameImportContacts').src=sprintf("http://127.0.0.1:%d/importContacts?%h",this.LOCAL_SERVER_PORT,a);},showImportError_download:function(){hide('importProgress-download');show('importProgress-failure-download');},showImportError_import:function(){hide('importProgress-import');show('importProgress-failure-import');}});
function CIOutlookVertigoController(a,b){this.parent.construct(this,a,b,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');},cancelExtraction:function(a){$('extractor').detachEvent('Processing',bind(this,this.extractorHandleProcessing));$('extractor').detachEvent('Completed',bind(this,this.extractorHandleComplete));DOM.remove($('extractor'));},finishExtraction:function(){this.cancelExtraction();var b=window.opener;if(b){var a=b.CIOutlookVertigoController.instance;a.submitForm();}window.close();},submitForm:function(){this._submitLoginForm({});},extractorHandleProcessing:function(b,c){var a=Math.round((c/32768)*100);this.refreshStatus(b);this.refreshProgressBar(a);},logUpdate:function(b){var a=this.getConfigData();a.outlook_msg=b;new AsyncRequest().setURI(this.ci_config.log_endpoint).setData(a).send();},extractorHandleComplete:function(b){if(b==0){this.logUpdate('finished_upload');this.finishExtraction();}else{this.logUpdate('error_'+b);var a='<p class="outlook_error">'+this.showErrorCode(b)+'</p>';DOM.setContent($('extract_error'),HTML(a));hide('extractor_progress');show('back_link');}},showProcessing:function(){hide('install_prompt');show('extractor_progress');},refreshProgressBar:function(b){if(ge('extractor_progress_outer')){var d=$('extractor_progress_outer');var c=$('extractor_progress_inner');var e=$('extractor_progress_outer').clientWidth-6;var a=0;if(b>0){if(b>100)b=100;a=(e*b)/100;}c.style.width=a+'px';}return;},refreshStatus:function(a){var b=[_tx("\u05de\u05e2\u05d1\u05d3 \u05d0\u05ea \u05d0\u05e0\u05e9\u05d9 \u05d4\u05e7\u05e9\u05e8 \u05e9\u05dc\u05da"),_tx("\u05de\u05e2\u05d1\u05d3 \u05d0\u05ea \u05d0\u05e0\u05e9\u05d9 \u05d4\u05e7\u05e9\u05e8 \u05e9\u05dc\u05da"),_tx("\u05de\u05e2\u05dc\u05d4 \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05e7\u05e9\u05e8 \u05e9\u05dc\u05da \u05d1\u05e6\u05d5\u05e8\u05d4 \u05de\u05d0\u05d5\u05d1\u05d8\u05d7\u05ea.")+'<br />'+'<span class="subcaption">'+_tx("\u05d0\u05dc \u05ea\u05e0\u05d5\u05d5\u05d8\/\u05d9 \u05de\u05d7\u05d5\u05e5 \u05dc\u05e2\u05de\u05d5\u05d3 \u05d6\u05d4 \u05d5\u05d0\u05dc \u05ea\u05e1\u05d2\u05d5\u05e8\/\u05d9 \u05d0\u05ea \u05d4\u05d7\u05dc\u05d5\u05df \u05d4\u05d6\u05d4.")+'</span>',_tx("\u05d0\u05e0\u05e9\u05d9 \u05e7\u05e9\u05e8 \u05d4\u05d5\u05e1\u05e4\u05d5 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4.")];if(b[a]&&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(b[a]));animation($('extractor_progress_text')).from('opacity',0).to('opacity',1).duration(100).go();}else DOM.setContent($('extractor_progress_text'),HTML(b[a]));return;},showErrorCode:function(a){if(!this.error_codes)this._constructErrorCodes();if(this.error_codes[a]){return this.error_codes[a];}else return _tx("\u05e9\u05d2\u05d9\u05d0\u05d4 \u05d0\u05d9\u05e8\u05e2\u05d4. \u05d0\u05e0\u05d0 \u05e0\u05e1\u05d5 \u05ea\u05d4\u05dc\u05d9\u05da \u05d6\u05d4 \u05e9\u05e0\u05d9\u05ea \u05de\u05d0\u05d5\u05d7\u05e8 \u05d9\u05d5\u05ea\u05e8. \u05d0\u05dd \u05d0\u05ea\u05dd \u05d9\u05d5\u05e6\u05e8\u05d9\u05dd \u05e7\u05e9\u05e8 \u05e2\u05dd \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05ea\u05de\u05d9\u05db\u05d4 \u05e9\u05dc \u05e4\u05d9\u05d9\u05e1\u05d1\u05d5\u05e7, \u05d4\u05d5\u05e1\u05d9\u05e4\u05d5 \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05e9\u05d2\u05d9\u05d0\u05d4 {error-number}.",{'error-number':a});},_constructErrorCodes:function(){this.error_codes=new Array();this.error_codes[2147500037]=_tx("\u05d0\u05d5 \u05e9\u05d0\u05d0\u05d5\u05d8\u05dc\u05d5\u05e7 \u05dc\u05d0 \u05d4\u05d5\u05ea\u05e7\u05df \u05d1\u05de\u05d7\u05e9\u05d1 \u05e9\u05dc\u05da \u05d0\u05d5 \u05e9\u05d4\u05de\u05d9\u05d3\u05e2 \u05e9\u05dc\u05d5 \u05de\u05e9\u05d5\u05d1\u05e9. \u05d0\u05e0\u05d0 \u05d1\u05d3\u05d5\u05e7 \u05db\u05d9 \u05d0\u05d0\u05d5\u05d8\u05dc\u05d5\u05e7 \u05de\u05d5\u05ea\u05e7\u05df \u05d5\u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05de\u05d0\u05d5\u05d7\u05e8 \u05d9\u05d5\u05ea\u05e8.");this.error_codes[2147746069]=_tx("\u05e9\u05d2\u05d9\u05d0\u05d4 \u05d4\u05ea\u05e8\u05d7\u05e9\u05d4 \u05d1\u05e0\u05e1\u05d9\u05d5\u05df \u05d4\u05ea\u05d7\u05d1\u05e8\u05d5\u05ea \u05dc\u05d7\u05e9\u05d1\u05d5\u05df \u05d4\u05d0\u05d0\u05d5\u05d8\u05dc\u05d5\u05e7 \u05e9\u05dc\u05da \u05e0\u05d0 \u05d1\u05d3\u05d5\u05e7 \u05d0\u05ea \u05d4\u05d4\u05d2\u05d3\u05e8\u05d5\u05ea \u05d5\u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05d1\u05de\u05d5\u05e2\u05d3 \u05de\u05d0\u05d5\u05d7\u05e8 \u05d9\u05d5\u05ea\u05e8");this.error_codes[2149122452]=_tx("\u05e9\u05d2\u05d9\u05d0\u05d4 \u05d0\u05d9\u05e8\u05e2\u05d4. \u05d0\u05e0\u05d0 \u05e0\u05e1\u05d5 \u05ea\u05d4\u05dc\u05d9\u05da \u05d6\u05d4 \u05e9\u05e0\u05d9\u05ea \u05de\u05d0\u05d5\u05d7\u05e8 \u05d9\u05d5\u05ea\u05e8. \u05d0\u05dd \u05d0\u05ea\u05dd \u05d9\u05d5\u05e6\u05e8\u05d9\u05dd \u05e7\u05e9\u05e8 \u05e2\u05dd \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05ea\u05de\u05d9\u05db\u05d4 \u05e9\u05dc \u05e4\u05d9\u05d9\u05e1\u05d1\u05d5\u05e7, \u05d4\u05d5\u05e1\u05d9\u05e4\u05d5 \u05d0\u05ea \u05de\u05e1\u05e4\u05e8 \u05d4\u05e9\u05d2\u05d9\u05d0\u05d4 {error-number}.",{'error-number':'2149122452'});this.error_codes[2147942405]=_tx("\u05e9\u05d2\u05d9\u05d0\u05d4 \u05d0\u05e8\u05e2\u05d4 \u05e2\u05dd \u05d4\u05e8\u05e9\u05d0\u05d5\u05ea\u05d9\u05da. \u05d1\u05d3\u05d5\u05e7 \u05d0\u05ea \u05d4\u05d2\u05d3\u05e8\u05d5\u05ea \u05d4\u05d0\u05d1\u05d8\u05d7\u05d4 \u05d5\u05d2\u05d9\u05e9\u05ea \u05d4\u05e0\u05d9\u05d4\u05d5\u05dc \u05d5\u05e0\u05e1\u05d4 \u05e9\u05e0\u05d9\u05ea.");this.error_codes[2147746062]=_tx("\u05d9\u05e9 \u05e9\u05d2\u05d9\u05d0\u05d4 \u05d1\u05d4\u05e8\u05e9\u05d0\u05d5\u05ea \u05e9\u05dc\u05da. \u05e0\u05d0 \u05dc\u05d5\u05d5\u05d3\u05d0 \u05e9\u05d0\u05d9\u05e0\u05da \u05de\u05e9\u05ea\u05de\u05e9\/\u05ea \u05d1-Protected Mode \u05d5\u05dc\u05e0\u05e1\u05d5\u05ea \u05e9\u05e0\u05d9\u05ea.");}});
function CIWlmInputController(c,d,e,a,b){this.parent.construct(this,c,d,e,a);copy_properties(this,{api_instance:b});return this;}CIWlmInputController.extend('CIInputController');copy_properties(CIWlmInputController.prototype,{onSubmit:function(){var a=this.getLoginString();this.openAPIPopup(this.api_instance,a);return false;}});
function checkVals(){var b=ge('hs_year');var a=ge('school');$('hs').value=a.value;$('hr').value=b.value;}function genYearList(e,f,b){var a=ge(e);a.options.length=0;var d=1;a.options[0]=new Option(_tx("\u05e9\u05e0\u05ea \u05de\u05d7\u05d6\u05d5\u05e8:"),'');for(var c=b;c>=f;c--){a.options[d]=new Option(c,c);d++;}}function showYearSelector(){var a=ge('yr');a.disabled=false;}function showYearSelectorHS(){var a=ge('hs_year');a.disabled=false;}function query_hs_onselect(a){$('hs_year').disabled=false;if(a.i)$('hs').value=a.i;}function query_cm_onselect(a){if(a.i)$('n').value=a.i;}function query_college_onselect(a){$('yr').disabled=false;if(a.i)$('n').value=a.i;}function query_coworker_onselect(a){if(a.i)document.forms.coworker_form.elements.n.value=a.i;}var hiddenId='hs';
function findfriends_open_panel(d,a){CSS.addClass(d,'opened');CSS.removeClass(d,'closed');if(a){var c=d.parentNode.childNodes;for(var b=c.length-1;b>=0;b--)if(c[b]!=d)findfriends_close_panel(c[b]);hide('error');if(Vector2.getElementPosition(d,'viewport').y<0)DOMScroll.scrollTo(new Vector2(0,0,'document'));}}function findfriends_close_panel(a){CSS.addClass(a,'closed');CSS.removeClass(a,'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"]); }