You are on page 1of 19

/*1291243325,169776066*/ ((location=='about:blank'&&(window.parent.eval_global window.parent.eval)) (wi ndow.eval_global window.

eval))("if (window.CavalryLogger) { CavalryLogger.start _js([\"js\\\/8chvdiqhyeckwoc8.pkg.js\"]); }\n\nfunction KeyEventController(){cop y_properties(this,{handlers:{}});document.onkeyup=this.onkeyevent.bind(this,'onk eyup');document.onkeydown=this.onkeyevent.bind(this,'onkeydown');document.onkeyp ress=this.onkeyevent.bind(this,'onkeypress');}copy_properties(KeyEventController ,{instance:null,getInstance:function(){return KeyEventController.instance (KeyE ventController.instance=new KeyEventController());},defaultFilter:function(event ,a){event=$E(event);return KeyEventController.filterEventTypes(event,a)&&KeyEven tController.filterEventTargets(event,a)&&KeyEventController.filterEventModifiers (event,a);},filterEventTypes:function(event,a){if(a==='onkeydown')return true;re turn false;},filterEventTargets:function(event,b){var a=$E(event).getTarget();if (DOM.isNode(a,['input','select','textarea','object','embed']))if(a.type!='checkb ox'&&a.type!='radio'&&a.type!='submit')return false;return a.getAttribute('conte ntEditable')!='true';},filterEventModifiers:function(event,a){if(event.ctrlKey event.altKey event.metaKey event.repeat)return false;return true;},registerKey :function(f,a,d,g){if(d===undefined)d=KeyEventController.defaultFilter;var b=Key EventController.getInstance();var c=b.mapKey(f);if(is_empty(b.handlers))onleaveR egister(b.resetHandlers.bind(b));for(var e=0;e<c.length;e++){f=c[e];if(!b.handle rs[f] g)b.handlers[f]=[];b.handlers[f].push({callback:a,filter:d});}},keyCodeMa p:{'[':[219],']':[221],'`':[192],COMMA:[188],PERIOD:[190],LEFT:[KEYS.LEFT,63234] ,RIGHT:[KEYS.RIGHT,63235],RETURN:[KEYS.RETURN],TAB:[KEYS.TAB],DOWN:[KEYS.DOWN,63 233],UP:[KEYS.UP,63232],ESCAPE:[KEYS.ESC],BACKSPACE:[KEYS.BACKSPACE],DELETE:[KEY S.DELETE]}});copy_properties(KeyEventController.prototype,{mapKey:function(a){if (typeof(a)=='number')return [48+a,96+a];if(KeyEventController.keyCodeMap[a.toUpp erCase()])return KeyEventController.keyCodeMap[a.toUpperCase()];var b=a.toUpperC ase().charCodeAt(0);return [b];},onkeyevent:function(i,c){c=$E(c);var d=null;var g=this.handlers[c.keyCode];var b,f,a;if(g)for(var h=0;h<g.length;h++){b=g[h].ca llback;f=g[h].filter;try{if(!f f(c,i)){var node=null;if(window.Parent&&Parent.b yTag&&c.getTarget)node=Parent.byTag(c.getTarget(),'a');user_action(node,'key',c) ;a=b(c,i);if(a===false)return Event.kill(c);}}catch(e){}}return true;},resetHand lers:function(){this.handlers={};}});\nadd_properties('CSS',{supportsBorderRadiu s:function(){var c=['KhtmlBorderRadius','OBorderRadius','MozBorderRadius','Webki tBorderRadius','msBorderRadius','borderRadius'];var d=false,a=document.createEle ment('div');for(var b=c.length;b>=0;b--)if(d=a.style[c[b]]!==undefined)break;CSS .supportsBorderRadius=bagof(d);return d;}});\nfunction show(){for(var b=0;b<argu ments.length;b++){var a=ge(arguments[b]);if(a&&a.style)a.style.display='';}retur n false;}function hide(){for(var b=0;b<arguments.length;b++){var a=ge(arguments[ b]);if(a&&a.style)a.style.display='none';}return false;}function shown(a){a=ge(a );return (a.style.display!='none'&&!(a.style.display==''&&a.offsetWidth==0));}fu nction toggle(){for(var b=0;b<arguments.length;b++){var a=$(arguments[b]);a.styl e.display=CSS.getStyle(a,\"display\")=='block'?'none':'block';}return false;}fun ction toggleDisplayNone(){for(var b=0;b<arguments.length;b++){var a=$(arguments[ b]);if(shown(a)){hide(a);}else show(a);}return false;}\nadd_properties('Form',{g etInputs:function(a){a=a document;return [].concat($A(DOM.scry(a,'input')),$A(D OM.scry(a,'select')),$A(DOM.scry(a,'textarea')),$A(DOM.scry(a,'button')));},getS electValue:function(a){return a.options[a.selectedIndex].value;},setSelectValue: function(b,c){for(var a=0;a<b.options.length;++a)if(b.options[a].value==c){b.sel ectedIndex=a;break;}},getRadioValue:function(b){for(var a=0;a<b.length;a++)if(b[ a].checked)return b[a].value;return null;},getElements:function(a){return $A(a.t agName=='FORM'?a.elements:Form.getInputs(a));},setDisabled:function(b,a){Form.ge tElements(b).forEach(function(c){if(c.disabled!=undefined){var d=DataStore.get(c ,'origDisabledState');if(a){if(d===undefined)DataStore.set(c,'origDisabledState' ,c.disabled);c.disabled=a;}else{if(d!==true)c.disabled=false;DataStore.remove(c, 'origDisabledState');}}});},bootstrap:function(b,c){var d=b.method.toUpperCase() ;c=Parent.byTag(c,'button') c;var e=DOMPath.findNodePath(b);var g=Parent.byClas s(c,'stat_elem') b;if(CSS.hasClass(g,'async_saving'))return;var a=Form.serializ e(b,c);Form.setDisabled(b,true);var f=new AsyncRequest(b.getAttribute('action'))

;f.setData(a).setNectarModuleDataSafe(b).setReadOnly(d=='GET').setMethod(d).setR elativeTo(b).setStatusElement(g).setHandler(function(h){if(h.isReplay())f.setRel ativeTo(DOMPath.resolveNodePath(e));}).setFinallyHandler(Form.setDisabled.bind(n ull,b,false)).send();},serialize:function(b,c){var a={};Form.getElements(b).forE ach(function(d){if(d.name&&!d.disabled&&d.type!='submit')if(!d.type ((d.type==' radio' d.type=='checkbox')&&d.checked) d.type=='text' d.type=='password' d.t ype=='hidden' d.tagName=='TEXTAREA'){Form._serializeHelper(a,d.name,Input.getVa lue(d));}else if(d.tagName=='SELECT')for(var e=0,f=d.options.length;e<f;++e){var g=d.options[e];if(g.selected)Form._serializeHelper(a,d.name,g.value);}});if(c&& 'submit'==c.type&&DOM.contains(b,c)&&DOM.isNode(c,['input','button']))Form._seri alizeHelper(a,c.name,c.value);return Form._serializeFix(a);},_serializeHelper:fu nction(a,d,e){var c=\/([^\\]]+)\\[([^\\]]*)\\](.*)\/.exec(d);if(c){a[c[1]]=a[c[1 ]] {};if(c[2]==''){var b=0;while(a[c[1]][b]!=undefined)b++;}else b=c[2];if(c[3] ==''){a[c[1]][b]=e;}else Form._serializeHelper(a[c[1]],b.concat(c[3]),e);}else a [d]=e;},_serializeFix:function(a){var e=[];for(var b in a){if(a instanceof Objec t)a[b]=Form._serializeFix(a[b]);e.push(b);}var d=0,c=true;e.sort().each(function (g){if(g!=d++)c=false;});if(c){var f={};e.each(function(g){f[g]=a[g];});return f ;}else return a;},post:function(d,b,c){var a=document.createElement('form');a.ac tion=d.toString();a.method='POST';a.style.display='none';if(c)a.target=c;if(ge(' post_form_id'))b.post_form_id=$('post_form_id').value;b.fb_dtsg=Env.fb_dtsg;b.po st_form_id_source='dynamic_post';b.next=htmlspecialchars(document.location.href) ;Form.createHiddenInputs(b,a);DOM.getRootElement().appendChild(a);a.submit();ret urn false;},createHiddenInputs:function(g,a,d,f){d=d {};var c;var h=URI.implode Query(g,'',false);var i=h.split('&');for(var b=0;b<i.length;b++)if(i[b]){var j=i [b].split('=');var e=j[0];var k=j[1];if(e===undefined k===undefined)continue;k= URI.decodeComponent(k);if(d[e]&&f){d[e].value=k;}else{c=$N('input',{type:'hidden ',name:e,value:k});d[e]=c;a.appendChild(c);}}return d;},getFirstElement:function (b){var f=['input[type=\"text\"]','textarea','input[type=\"password\"]','input[t ype=\"button\"]','input[type=\"submit\"]'];var e=[];for(var c=0;c<f.length&&e.le ngth==0;c++)e=DOM.scry(b,f[c]);if(e.length>0){var d=e[0];try{if(elementY(d)>0&&e lementX(d)>0)return d;}catch(a){}}return null;},focusFirst:function(b){var a=For m.getFirstElement(b);if(a){a.focus();return true;}return false;}});var DOMPath={ findNodePath:function(c,e){e=e [];if(c.id !DOM.isNode(c.parentNode))return {id :c.id,path:e.reverse()};var d=c.parentNode;var b=d.childNodes;for(var a=0;a<b.le ngth;++a)if(b[a]===c){e.push(a);return DOMPath.findNodePath(d,e);}return null;}, resolveNodePath:function(a){var b=ge(a.id) document.documentElement;return DOMP ath._resolveNodePathChildren(a.path,b,0);},_resolveNodePathChildren:function(c,d ,b){if(b===c.length)return d;var a=d.childNodes[c[b]];if(!a)return null;return D OMPath._resolveNodePathChildren(c,a,b+1);}};\nvar ErrorDialog={showAsyncError:fu nction(b){try{return ErrorDialog.show(b.getErrorSummary(),b.getErrorDescription( ));}catch(a){aiert(b);}},show:function(c,b,a){return (new Dialog()).setTitle(c). setBody(b).setButtons([Dialog.OK]).setStackable(true).setClassName('errorDialog' ).setModal(true).setHandler(a bagofholding).show();}};\nfunction AsyncRequest(u ri){var dispatchResponse=bind(this,function(asyncResponse){try{this.clearStatusI ndicator();this._measureSaved&&this._measureSaved();if(this._isPrefetch){this._i sPrefetch=false;return;}if(!this.isRelevant()){invokeErrorHandler(1010);return;} if(this.initialHandler(asyncResponse)!==false){clearTimeout(this.timer);if(this. handler)try{var suppress_onload=this.handler(asyncResponse);}catch(exception){as yncResponse.is_last&&this.finallyHandler(asyncResponse);throw exception;}asyncRe sponse.is_last&&this.finallyHandler(asyncResponse);if(suppress_onload!==AsyncReq uest.suppressOnloadToken){var onload=asyncResponse.onload;if(onload)for(var ii=0 ;ii<onload.length;ii++)try{(new Function(onload[ii])).apply(this);}catch(excepti on){}if(this.lid&&!asyncResponse.isReplay())Arbiter.inform('tti_ajax',{s:this.li d,d:[this._sendTimeStamp,this._responseTime-this._sendTimeStamp]},Arbiter.BEHAVI OR_EVENT);var onafterload=asyncResponse.onafterload;if(onafterload)for(var ii=0; ii<onafterload.length;ii++)try{(new Function(onafterload[ii])).apply(this);}catc h(exception){}}var invalidate_cache=asyncResponse.invalidate_cache;if(invalidate _cache&&invalidate_cache.length)Arbiter.inform(Arbiter.PAGECACHE_INVALIDATE,inva lidate_cache);}if(asyncResponse.cacheObservation&&typeof(TabConsoleCacheobserver )!='undefined'&&TabConsoleCacheobserver.instance)TabConsoleCacheobserver.getInst

ance().addAsyncObservation(asyncResponse.cacheObservation);}catch(exception){}}) ;var replayResponses=bind(this,function(){if(is_empty(this._asyncResponses))retu rn;this.setNewSerial();for(var ii=0;ii<this._asyncResponses.length;++ii){var r=t his._asyncResponses[ii];invokeResponseHandler(r,true);}});var dispatchErrorRespo nse=bind(this,function(asyncResponse,isTransport){try{this.clearStatusIndicator( );var async_error=asyncResponse.getError();if(this._sendTimeStamp){var _duration =(+new Date())-this._sendTimeStamp;var t=this.transport;var xfb_ip=t&&t.getRespo nseHeader&&t.getResponseHeader('X-FB-Server') '-';asyncResponse.logError('async _error',_duration+':'+xfb_ip);}else asyncResponse.logError('async_error');if((!t his.isRelevant()) async_error===1010)return;if(async_error==1357008 async_erro r==1357007 async_error==1442002 async_error==1357001){var is_confirmation=fals e;if(async_error==1357008 async_error==1357007)is_confirmation=true;var payload =asyncResponse.getPayload();this._displayServerDialog(payload.__dialog,is_confir mation);}else if(this.initialHandler(asyncResponse)!==false){clearTimeout(this.t imer);try{if(isTransport){this.transportErrorHandler(asyncResponse);}else this.e rrorHandler(asyncResponse);}catch(exception){this.finallyHandler(asyncResponse); throw exception;}this.finallyHandler(asyncResponse);}}catch(exception){}});var _ interpretTransportResponse=bind(this,function(){if(this.getOption('suppressEvalu ation')){var r=new AsyncResponse(this,this.transport);return {asyncResponse:r};} var _sendError=function(p,error_code,str){if(!window.send_error_signal)return;se nd_error_signal('async_xport_resp',error_code+':'+p.transport.getResponseHeader( 'X-FB-Server')+':'+p.getURI()+':'+str.length+':'+str.substr(0,1000));};var shiel d=\"for (;;);\";var shieldlen=shield.length;var text=this.transport.responseText ;if(text.length<=shieldlen){_sendError(this,'1008_empty',text);return {transport Error:'Response too short on async to '+this.getURI()};}var offset=0;while(text. charAt(offset)==\" \" text.charAt(offset)==\"\\n\")offset++;offset&&text.substr ing(offset,offset+shieldlen)==shield;var safeResponse=text.substring(offset+shie ldlen);try{var response=eval('('+safeResponse+')');}catch(exception){_sendError( this,'1008_excep',text);return {transportError:'eval() failed on async to '+this .getURI()};}return interpretResponse(response);});var interpretResponse=bind(thi s,function(response){if(response.redirect)return {redirect:response.redirect};va r r=new AsyncResponse(this);if(typeof(response.payload)=='undefined' typeof(res ponse.error)=='undefined' typeof(response.errorDescription)=='undefined' typeo f(response.errorSummary)=='undefined' typeof(response.errorIsWarning)=='undefin ed'){r.payload=response;}else copy_properties(r,response);return {asyncResponse: r};});var invokeResponseHandler=bind(this,function(interp,is_replay){if(typeof(i nterp.redirect)!='undefined'){(function(){this.setURI(interp.redirect).send();}) .bind(this).defer();return;}if(this.handler this.errorHandler this.transportEr rorHandler)if(typeof(interp.asyncResponse)!='undefined'){var r=interp.asyncRespo nse;r.setReplay(!!is_replay);if(!this.isRelevant()){invokeErrorHandler(1010);ret urn;}if(r.inlinejs)eval_global(r.inlinejs);if(r.lid){this._responseTime=(+new Da te());if(window.CavalryLogger)this.cavalry=CavalryLogger.getInstance(r.lid);this .lid=r.lid;}if(r.getError()&&!r.getErrorIsWarning()){var fn=dispatchErrorRespons e;}else{var fn=dispatchResponse;if(this._replayable&&!is_replay&&!r.dontReplay){ this._asyncResponses=this._asyncResponses [];this._asyncResponses.push(interp); }}Bootloader.setResourceMap(r.resource_map);if(r.bootloadable)Bootloader.enableB ootload(r.bootloadable);fn=fn.shield(null,r);fn=fn.defer.bind(fn);var is_transit ional=false;if(this.preBootloadHandler)is_transitional=this.preBootloadHandler(r );r.css=r.css [];r.js=r.js [];Bootloader.loadResources(r.css.concat(r.js),fn,i s_transitional,this.getURI());}else if(typeof(interp.transportError)!='undefined '){invokeErrorHandler(1008);}else invokeErrorHandler(1007);});var invokeErrorHan dler=bind(this,function(explicitError){try{if(!window.loaded)return;}catch(ex){r eturn;}var r=new AsyncResponse(this);var err;try{err=explicitError this.transpo rt.status 1004;}catch(ex){err=1005;}try{if(this.responseText=='')err=1002;}catc h(ignore){}if(this.transportErrorHandler){var desc,summary;var silent=true;if(fa lse===navigator.onLine){summary=_tx(\"No Network Connection\");desc=_tx(\"Your b rowser appears to be offline. Please check your internet connection and try agai n.\");err=1006;silent=false;}else if(err>=300&&err<=399){summary=_tx(\"Redirecti on\");desc=_tx(\"Your access to Facebook was redirected or blocked by a third pa rty at this time, please contact your ISP or reload. \");redir_url=this.transpor

t.getResponseHeader(\"Location\");if(redir_url)goURI(redir_url,true);silent=true ;}else{summary=_tx(\"Oops!\");desc=_tx(\"Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.\");}!this.ge tOption('suppressErrorAlerts');copy_properties(r,{error:err,errorSummary:summary ,errorDescription:desc,silentError:silent});dispatchErrorResponse(r,true);}});va r handleResponse=function(response){var asyncResponse=this.interpretResponse(res ponse);this.invokeResponseHandler(asyncResponse);};var onStateChange=function(){ try{if(this.transport.readyState==4){if(this.transport.status>=200&&this.transpo rt.status<300){invokeResponseHandler(_interpretTransportResponse());}else if(ua. safari()&&(typeof(this.transport.status)=='undefined')){invokeErrorHandler(1002) ;}else if(window.send_error_signal&&window.Env&&window.Env.retry_ajax_on_network _error&&this.transport.status in {0:1,12029:1,12030:1,12031:1,12152:1}&&this.rem ainingRetries>0){--this.remainingRetries;delete this.transport;this.send(true);r eturn;}else invokeErrorHandler();if(this.getOption('asynchronous')!==false)delet e this.transport;}}catch(exception){try{if(!window.loaded)return;}catch(ex){retu rn;}delete this.transport;if(this.remainingRetries>0){--this.remainingRetries;th is.send(true);}else{!this.getOption('suppressErrorAlerts');invokeErrorHandler(10 07);}}};var onJSONPResponse=function(data,more_chunked_response){var is_first=(t his.is_first===undefined);this.is_first=is_first;if(this.transportIframe&&!more_ chunked_response)(function(x){document.body.removeChild(x);}).bind(null,this.tra nsportIframe).defer();var r=this.interpretResponse(data);r.asyncResponse.is_firs t=is_first;r.asyncResponse.is_last=!more_chunked_response;this.invokeResponseHan dler(r);return more_chunked_response;};copy_properties(this,{onstatechange:onSta teChange,onjsonpresponse:onJSONPResponse,replayResponses:replayResponses,invokeR esponseHandler:invokeResponseHandler,interpretResponse:interpretResponse,handleR esponse:handleResponse,transport:null,method:'POST',uri:'',timeout:null,timer:nu ll,initialHandler:bagofholding,handler:null,errorHandler:null,transportErrorHand ler:null,timeoutHandler:null,finallyHandler:bagofholding,serverDialogCancelHandl er:bagofholding,relativeTo:null,statusElement:null,statusClass:'',data:{},contex t:{},readOnly:false,writeRequiredParams:['post_form_id'],remainingRetries:0,opti on:{asynchronous:true,suppressErrorHandlerWarning:false,suppressEvaluation:false ,suppressErrorAlerts:false,retries:0,jsonp:false,bundle:false,useIframeTransport :false,tfbEndpoint:true},_replayable:undefined,_replayKey:'',_isPrefetch:false}) ;this.errorHandler=AsyncResponse.defaultErrorHandler;this.transportErrorHandler= bind(this,'errorHandler');if(uri!=undefined)this.setURI(uri);return this;}Arbite r.subscribe(\"page_transition\",function(b,a){AsyncRequest._id_threshold=a.id;}) ;copy_properties(AsyncRequest,{pingURI:function(c,a,b){a=a {};return new AsyncR equest().setURI(c).setData(a).setOption('asynchronous',!b).setOption('suppressEr rorHandlerWarning',true).setErrorHandler(bagofholding).setTransportErrorHandler( bagofholding).send();},receiveJSONPResponse:function(b,a,c){if(this._JSONPReceiv ers[b])if(!this._JSONPReceivers[b](a,c))delete this._JSONPReceivers[b];},_hasBun dledRequest:function(){return AsyncRequest._allBundledRequests.length>0;},stashB undledRequest:function(){var a=AsyncRequest._allBundledRequests;AsyncRequest._al lBundledRequests=[];return a;},setBundledRequestProperties:function(b){var c=nul l;if(b.stashedRequests)AsyncRequest._allBundledRequests=AsyncRequest._allBundled Requests.concat(b.stashedRequests);if(!AsyncRequest._hasBundledRequest()){var a= b.callback;a&&a();}else{copy_properties(AsyncRequest._bundledRequestProperties,b );if(b.start_immediately)c=AsyncRequest._sendBundledRequests();}return c;},_bund leRequest:function(b){if(b.getOption('jsonp') b.getOption('useIframeTransport') ){b.setOption('bundle',false);return false;}else if(!b.uri.isFacebookURI()){b.se tOption('bundle',false);return false;}else if(!b.getOption('asynchronous')){b.se tOption('bundle',false);return false;}var a=b.uri.getPath();if(!AsyncRequest._bu ndleTimer)AsyncRequest._bundleTimer=setTimeout(function(){AsyncRequest._sendBund ledRequests();},0);AsyncRequest._allBundledRequests.push([a,b]);window.ProxyOops Investigate&&ProxyOopsInvestigate.logPotentialDup(a);return true;},_sendBundledR equests:function(){clearTimeout(AsyncRequest._bundleTimer);AsyncRequest._bundleT imer=null;window.ProxyOopsInvestigate&&ProxyOopsInvestigate.dumpDupTraces();var a=AsyncRequest._allBundledRequests;AsyncRequest._allBundledRequests=[];var e={}; copy_properties(e,AsyncRequest._bundledRequestProperties);AsyncRequest._bundledR equestProperties={};if(is_empty(e)&&a.length==1){var g=a[0][1];g.setOption('bund

le',false).send();return g;}var d=function(){e.callback&&e.callback();};if(a.len gth===0){d();return null;}var b=[];for(var c=0;c<a.length;c++)b.push([a[c][0],UR I.implodeQuery(a[c][1].data)]);var f={data:b};if(e.extra_data)copy_properties(f, e.extra_data);var g=new AsyncRequest();g.setURI('\/ajax\/proxy.php').setData(f). setMethod('POST').setInitialHandler(e.onInitialResponse bagof(true)).setAllowCr ossPageTransition(true).setHandler(function(l){var k=l.getPayload();var n=k.resp onses;if(n.length!=a.length){return;}else for(var i=0;i<a.length;i++){var j=a[i] [0];var m=a[i][1];m.id=this.id;if(n[i][0]!=j){m.invokeResponseHandler({transport Error:'Wrong response order in bundled request to '+j});continue;}var h=m.interp retResponse(n[i][1]);m.invokeResponseHandler(h);}}).setTransportErrorHandler(fun ction(m){var k=[];var i={transportError:m.errorDescription};for(var h=0;h<a.leng th;h++){var j=a[h][0];var l=a[h][1];k.push(j);l.id=this.id;l.invokeResponseHandl er(i);}}).setFinallyHandler(function(h){d();}).send();return g;},bootstrap:funct ion(c,b,d){var e='GET';var f=true;var a={};c=URI(c);if(d (b&&b.rel=='async-post ')){e='POST';f=false;a=c.getQueryData();c.setQueryData({});}var g=Parent.byClass (b,'stat_elem') b;if(g&&CSS.hasClass(g,'async_saving'))return false;new AsyncRe quest(c).setReadOnly(f).setMethod(e).setData(a).setNectarModuleDataSafe(b).setSt atusElement(g).setRelativeTo(b).send();return false;},post:function(b,a){new Asy ncRequest(b).setReadOnly(false).setMethod('POST').setData(a).send();return false ;},clearCache:function(){AsyncRequest._reqsCache={};},getLastId:function(){retur n AsyncRequest._last_id;},_JSONPReceivers:{},_allBundledRequests:[],_bundledRequ estProperties:{},_bundleTimer:null,suppressOnloadToken:{},REPLAYABLE_AJAX:'ajax\ /replayable',_last_id:2,_id_threshold:2,_reqsCache:{}});copy_properties(AsyncReq uest.prototype,{setMethod:function(a){this.method=a.toString().toUpperCase();ret urn this;},getMethod:function(){return this.method;},setData:function(a){this.da ta=a;return this;},getData:function(){return this.data;},setContextData:function (b,c,a){a=a===undefined?true:a;if(a)this.context['_log_'+b]=c;return this;},setU RI:function(a){var b=URI(a);if(this.getOption('useIframeTransport')&&!b.isFacebo okURI())return this;if(!this.getOption('jsonp')&&!this.getOption('useIframeTrans port')&&!b.isSameOrigin())return this;this.uri=b;return this;},getURI:function() {return this.uri.toString();},setInitialHandler:function(a){this.initialHandler= a;return this;},setHandler:function(a){if(!(typeof(a)!='function'))this.handler= a;return this;},getHandler:function(){return this.handler;},setErrorHandler:func tion(a){if(!(typeof(a)!='function'))this.errorHandler=a;return this;},setTranspo rtErrorHandler:function(a){this.transportErrorHandler=a;return this;},getErrorHa ndler:function(){return this.errorHandler;},getTransportErrorHandler:function(){ return this.transportErrorHandler;},setTimeoutHandler:function(b,a){if(!(typeof( a)!='function')){this.timeout=b;this.timeoutHandler=a;}return this;},resetTimeou t:function(a){if(!(this.timeoutHandler===null))if(a===null){this.timeout=null;cl earTimeout(this.timer);this.timer=null;}else{this.timeout=a;clearTimeout(this.ti mer);this.timer=this._handleTimeout.bind(this).defer(this.timeout);}return this; },_handleTimeout:function(){this.abandon();this.timeoutHandler(this);},setNewSer ial:function(){this.id=++AsyncRequest._last_id;return this;},setFinallyHandler:f unction(a){this.finallyHandler=a;return this;},setServerDialogCancelHandler:func tion(a){this.serverDialogCancelHandler=a;return this;},setPreBootloadHandler:fun ction(a){this.preBootloadHandler=a;return this;},setReadOnly:function(a){if(!(ty peof(a)!='boolean'))this.readOnly=a;return this;},setFBMLForm:function(){this.wr iteRequiredParams=[\"fb_sig\"];return this;},getReadOnly:function(){return this. readOnly;},setRelativeTo:function(a){this.relativeTo=a;return this;},getRelative To:function(){return this.relativeTo;},setStatusClass:function(a){this.statusCla ss=a;return this;},setStatusElement:function(a){this.statusElement=a;return this ;},getStatusElement:function(){return ge(this.statusElement);},isRelevant:functi on(){if(!env_get('ajax_threshold')=='1')return true;if(this._allowCrossPageTrans ition)return true;if(!this.id)return true;return this.id>AsyncRequest._id_thresh old;},clearStatusIndicator:function(){var a=this.getStatusElement();if(a){CSS.re moveClass(a,'async_saving');CSS.removeClass(a,this.statusClass);}},addStatusIndi cator:function(){var a=this.getStatusElement();if(a){CSS.addClass(a,'async_savin g');CSS.addClass(a,this.statusClass);}},specifiesWriteRequiredParams:function(){ return this.writeRequiredParams.every(function(a){this.data[a]=this.data[a] Env [a] (ge(a) {}).value;if(this.data[a]!==undefined)return true;return false;},th

is);},setReplayable:function(b,a){this._replayable=b;this._replayKey=a '';retur n this;},setOption:function(a,b){if(typeof(this.option[a])!='undefined')this.opt ion[a]=b;return this;},getOption:function(a){typeof(this.option[a])=='undefined' ;return this.option[a];},abort:function(){if(this.transport){var a=this.getTrans portErrorHandler();this.setOption('suppressErrorAlerts',true);this.setTransportE rrorHandler(bagofholding);this.transport.abort();this.setTransportErrorHandler(a );if(window.send_error_signal)send_error_signal('async_xport_resp','1011_abort:' +this.getURI());}},abandon:function(){clearTimeout(this.timer);this.setOption('s uppressErrorAlerts',true).setHandler(bagofholding).setErrorHandler(bagofholding) .setTransportErrorHandler(bagofholding);if(this.transport){this.transport.abort( );if(window.send_error_signal)send_error_signal('async_xport_resp','1011_abandon :'+this.getURI());}},setNectarActionData:function(a){if(this.data.nctr===undefin ed)this.data.nctr={};this.data.nctr._ia=1;if(a){if(this.data.nctr._as===undefine d)this.data.nctr._as={};copy_properties(this.data.nctr._as,a);}return this;},set NectarData:function(a){if(a){if(this.data.nctr===undefined)this.data.nctr={};cop y_properties(this.data.nctr,a);}return this;},setNectarModuleDataSafe:function(a ){if(this.setNectarModuleData)this.setNectarModuleData(a);return this;},setNecta rImpressionIdSafe:function(){if(this.setNectarImpressionId)this.setNectarImpress ionId();return this;},setPrefetch:function(a){this._isPrefetch=a;this.setAllowCr ossPageTransition(true);return this;},setAllowCrossPageTransition:function(a){th is._allowCrossPageTransition=!!a;return this;},send:function(d){if(this._checkCa che&&this._checkCache())return true;d=d false;if(!this.uri)return false;!this.e rrorHandler&&!this.getOption('suppressErrorHandlerWarning');if(this.getOption('j sonp')&&this.method!='GET')this.setMethod('GET');if(this.getOption('useIframeTra nsport')&&this.method!='GET')this.setMethod('GET');this.timeoutHandler!==null&&( this.getOption('jsonp') this.getOption('useIframeTransport'));if(!this.getReadO nly()){if(!this.specifiesWriteRequiredParams())return false;if(this.method!='POS T')return false;}if(this.method=='POST'&&this.getOption('tfbEndpoint')){this.dat a.fb_dtsg=Env.fb_dtsg;this.data.lsd=getCookie('lsd');}this._replayable=(!this.ge tReadOnly()&&this._replayable!==false) this._replayable;if(this._replayable)Arb iter.inform(AsyncRequest.REPLAYABLE_AJAX,this);if(!is_empty(this.context)&&this. getOption('tfbEndpoint')){copy_properties(this.data,this.context);this.data.ajax _log=1;}if(!this.getReadOnly()&&this.getOption('tfbEndpoint')&&this.method=='POS T'&&this.data.post_form_id_source===undefined)this.data.post_form_id_source='Asy ncRequest';if(this.getOption('bundle')&&AsyncRequest._bundleRequest(this))return true;this.setNewSerial();if(this.getOption('tfbEndpoint'))this.uri.addQueryData ({__a:1});var b=env_get('haste_combo');if(b)setCookie('force_hcfb',1,1000);this. finallyHandler=async_callback(this.finallyHandler,'final');var i,e;if(this.metho d=='GET'){i=this.uri.addQueryData(this.data).toString();e='';}else{i=this.uri.to String();e=URI.implodeQuery(this.data);}if(this.getOption('jsonp') this.getOpti on('useIframeTransport')){i=this.uri.addQueryData({__a:this.id}).toString();Asyn cRequest._JSONPReceivers[this.id]=async_callback(bind(this,'onjsonpresponse'),'j son');if(this.getOption('jsonp')){(function(){document.body.appendChild($N('scri pt',{src:i,type:\"text\/javascript\"}));}).bind(this).defer();}else{var f={posit ion:'absolute',top:'-1000px',left:'-1000px',width:'80px',height:'80px'};this.tra nsportIframe=$N('iframe',{src:i,style:f});document.body.appendChild(this.transpo rtIframe);}return true;}if(this.transport)return false;var h=null;try{h=new XMLH ttpRequest();}catch(c){}if(!h)try{h=new ActiveXObject(\"Msxml2.XMLHTTP\");}catch (c){}if(!h)try{h=new ActiveXObject(\"Microsoft.XMLHTTP\");}catch(c){}if(!h)retur n false;h.onreadystatechange=async_callback(bind(this,'onstatechange'),'xhr');if (!d)this.remainingRetries=this.getOption('retries');if(window.send_error_signal window.ArbiterMonitor)this._sendTimeStamp=this._sendTimeStamp (+new Date());th is.transport=h;try{this.transport.open(this.method,i,this.getOption('asynchronou s'));}catch(a){return false;}var g=env_get('svn_rev');if(g)this.transport.setReq uestHeader('X-SVN-Rev',String(g));if(this.method=='POST')this.transport.setReque stHeader('Content-Type','application\/x-www-form-urlencoded');this.addStatusIndi cator();this.transport.send(e);if(this.timeout!==null)this.resetTimeout(this.tim eout);return true;},_displayServerDialog:function(c,b){var a=new Dialog(c);if(b) a.setHandler(this._displayConfirmationHandler.bind(this,a));a.setCancelHandler(f unction(){this.serverDialogCancelHandler.apply(this,arguments);this.finallyHandl

er.apply(this,arguments);}.bind(this)).setCloseHandler(this.finallyHandler.bind( this)).show();},_displayConfirmationHandler:function(a){this.data.confirmed=1;co py_properties(this.data,a.getFormData());this.send();}});function AsyncResponse( b,a){copy_properties(this,{error:0,errorSummary:null,errorDescription:null,onloa d:null,replay:false,payload:a null,request:b null,silentError:false,is_last:tr ue});return this;}copy_properties(AsyncResponse,{defaultErrorHandler:function(b) {try{if(!b.silentError){AsyncResponse.verboseErrorHandler(b);}else if(typeof(win dow.Env)=='undefined' typeof(window.Env.silent_oops_errors)=='undefined'){Async Response.verboseErrorHandler(b);}else b.logErrorByGroup('silent',10);}catch(a){a iert(b);}},verboseErrorHandler:function(b){try{var summary=b.getErrorSummary();v ar desc=b.getErrorDescription();b.logErrorByGroup('popup',10);if(b.silentError&& desc=='')desc=_tx(\"Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.\");ErrorDialog.show(summary,desc) ;}catch(a){aiert(b);}}});copy_properties(AsyncResponse.prototype,{getRequest:fun ction(){return this.request;},getPayload:function(){return this.payload;},getErr or:function(){return this.error;},getErrorSummary:function(){return this.errorSu mmary;},setErrorSummary:function(a){a=(a===undefined?null:a);this.errorSummary=a ;return this;},getErrorDescription:function(){return this.errorDescription;},get ErrorIsWarning:function(){return this.errorIsWarning;},setReplay:function(a){a=( a===undefined?true:a);this.replay=!!a;return this;},isReplay:function(){return t his.replay;},logError:function(a,b){if(window.send_error_signal){b=(b===undefine d?'':(':'+b));send_error_signal(a,this.error+':'+(env_get('vip') '-')+b+':'+thi s.request.getURI());}},logErrorByGroup:function(b,a){if(Math.floor(Math.random() *a)==0)if(this.error==1357010 this.error<15000){this.logError('async_error_oops _'+b);}else this.logError('async_error_logic_'+b);}});\nfunction Dialog(a){this. _show_loading=true;this._loading_text=null;this._loading_was_shown=false;this._a uto_focus=true;this._fade_enabled=true;this._onload_handlers=[];this._top=125;th is._content=null;this._obj=null;this._popup=null;this._overlay=null;this._hidden _objects=[];if(a)this._setFromModel(a);}Metaprototype.makeFinal(Dialog);copy_pro perties(Dialog,{OK:{name:'ok',label:_tx(\"Okay\")},CANCEL:{name:'cancel',label:_ tx(\"Cancel\"),className:'inputaux'},CLOSE:{name:'close',label:_tx(\"Close\")},N EXT:{name:'next',label:_tx(\"Next\")},SAVE:{name:'save',label:_tx(\"Save\")},SUB MIT:{name:'submit',label:_tx(\"Submit\")},CONFIRM:{name:'confirm',label:_tx(\"Co nfirm\")},DELETE:{name:'delete',label:_tx(\"Delete\")},_bottoms:[0],max_bottom:0 ,_updateMaxBottom:function(){Dialog.max_bottom=Math.max.apply(Math,Dialog._botto ms);}});copy_properties(Dialog,{OK_AND_CANCEL:[Dialog.OK,Dialog.CANCEL],_STANDAR D_BUTTONS:[Dialog.OK,Dialog.CANCEL,Dialog.CLOSE,Dialog.SAVE,Dialog.SUBMIT,Dialog .CONFIRM,Dialog.DELETE],SHOULD_HIDE_OBJECTS:!ua.windows(),_useCSSBorders:CSS.sup portsBorderRadius() ua.ie()<=6,SIZE:{WIDE:555,STANDARD:445},_HALO_WIDTH:10,_BOR DER_WIDTH:1,_PADDING_WIDTH:10,MODALITY:{DARK:'dark',WHITE:'white'},dialogStack:n ull,newButton:function(e,d,b,c){var a={name:e,label:d};if(b)a.className=b;if(c)a .handler=c;return a;},getCurrent:function(){var a=Dialog.dialogStack;if(!a !a.l ength)return null;return a[a.length-1];},bootstrap:function(f,a,e,c,d){a=a {};c opy_properties(a,new URI(f).getQueryData());c=c (e?'GET':'POST');var b=new Dial og(d).setAsync(new AsyncRequest().setURI(f).setData(a).setReadOnly(!!e).setMetho d(c));b.show();return false;},_basicMutator:function(a){return function(b){this[ a]=b;this._dirty();return this;};},_findButton:function(a,c){if(a)for(var b=0;b< a.length;++b)if(a[b].name==c)return a[b];return null;},_keyDownFilter:function(e vent,a){return a=='onkeydown'&&KeyEventController.filterEventModifiers(event,a); },_tearDown:function(){Dialog._hideAll();Dialog.dialogStack=null;},_hideAll:func tion(){if(Dialog.dialogStack!==null&&Dialog.dialogStack.length){var b=Dialog.dia logStack.clone();Dialog.dialogStack=null;for(var a=b.length-1;a>=0;a--)b[a].hide ();}},_handleEscapeKey:function(event,a){Dialog._escape();},_escape:function(){v ar d=Dialog.getCurrent();if(!d)return true;var e=d._semi_modal;var b=d._buttons; if(!b&&!e)return true;if(e&&!b){d.hide();return false;}var a;var c=Dialog._findB utton(b,'cancel');if(d._cancelHandler){d.cancel();return false;}else if(c){a=c;} else if(b.length==1){a=b[0];}else return true;d._handleButton(a);return false;}, call_or_eval:function(obj,func,args){if(!func)return undefined;args=args {};if( typeof(func)=='string'){var params=keys(args).join(', ');func=eval('({f: functio n('+params+') { '+func+'}})').f;}return func.apply(obj,values(args));}});copy_pr

operties(Dialog.prototype,{show:function(a){this._showing=true;if(a){if(this._ov erlay)this._overlay.style.display='';if(this._fade_enabled)CSS.setStyle(this._ob j,'opacity',1);this._obj.style.display='';}else this._dirty();return this;},show Loading:function(){this._loading_was_shown=true;this._renderDialog($N('div',{cla ssName:'dialog_loading'},this._loading_text _tx(\"Loading...\")));return this;} ,hide:function(a){if(!this._showing)return this;this._showing=false;if(this._aut ohide_timeout){clearTimeout(this._autohide_timeout);this._autohide_timeout=null; }if(this._fade_enabled&&(!Dialog.dialogStack Dialog.dialogStack.length<=1)){thi s._fadeOut(a);}else this._hide(a);return this;},cancel:function(){if(!this._canc elHandler this._cancelHandler()!==false)this.hide();},getRoot:function(){return this._obj;},getBody:function(){return DOM.scry(this._obj,'div.dialog_body')[0]; },getButtonElement:function(a){if(typeof a=='string')a=Dialog._findButton(this._ buttons,a);if(!a !a.name)return null;var b=DOM.scry(this._popup,'input');var c= function(d){return d.name==a.name;};return b.filter(c)[0] null;},getContentNode :function(){var a=DOM.scry(this._content,'div.dialog_content');a.length!=1;retur n a[0];},getFormData:function(){return Form.serialize(this.getContentNode());},s etShowing:function(){this.show();return this;},setHiding:function(){this.hide(); return this;},setTitle:Dialog._basicMutator('_title'),setBody:Dialog._basicMutat or('_body'),setExtraData:Dialog._basicMutator('_extra_data'),setReturnData:Dialo g._basicMutator('_return_data'),setShowLoading:Dialog._basicMutator('_show_loadi ng'),setLoadingText:Dialog._basicMutator('_loading_text'),setFullBleed:Dialog._b asicMutator('_full_bleed'),setImmediateRendering:function(a){this._immediate_ren dering=a;return this;},setUserData:Dialog._basicMutator('_user_data'),getUserDat a:function(){return this._user_data;},setAutohide:function(a){if(a){if(this._sho wing){this._autohide_timeout=setTimeout(this.hide.shield(this),a);}else this._au tohide=a;}else{this._autohide=null;if(this._autohide_timeout){clearTimeout(this. _autohide_timeout);this._autohide_timeout=null;}}return this;},setSummary:Dialog ._basicMutator('_summary'),setButtons:function(a){var c;if(!(a instanceof Array) ){c=$A(arguments);}else c=a;for(var d=0;d<c.length;++d)if(typeof c[d]=='string') {var b=Dialog._findButton(Dialog._STANDARD_BUTTONS,c[d]);!b;c[d]=b;}this._button s=c;this._updateButtons();return this;},setButtonsMessage:Dialog._basicMutator(' _buttons_message'),setClickButtonOnEnter:function(b,a){this._clickButtonOnEnter= a;this._clickButtonOnEnterInputName=b;return this;},setStackable:function(b,a){t his._is_stackable=b;this._shown_while_stacked=b&&a;return this;},setHandler:func tion(a){this._handler=a;return this;},setCancelHandler:function(a){this._cancelH andler=Dialog.call_or_eval.bind(null,this,a);return this;},setCloseHandler:funct ion(a){this._close_handler=Dialog.call_or_eval.bind(null,this,a);return this;},c learHandler:function(){return this.setHandler(null);},setPostURI:function(b,a){i f(a===undefined)a=true;if(a){this.setHandler(this._submitForm.bind(this,'POST',b ));}else this.setHandler(function(){Form.post(b,this.getFormData());this.hide(); }.bind(this));return this;},setGetURI:function(a){this.setHandler(this._submitFo rm.bind(this,'GET',a));return this;},setModal:function(a,b){if(a===undefined)a=t rue;this._showing&&this._modal&&!a;if(a&&b)switch(b){case Dialog.MODALITY.DARK:t his._modal_class='dark_dialog_overlay';break;case Dialog.MODALITY.WHITE:this._mo dal_class='light_dialog_overlay';break;}this._modal=a;return this;},setSemiModal :function(a){if(a===undefined)a=true;if(a)this.setModal(true,Dialog.MODALITY.DAR K);this._semi_modal=a;return this;},setWideDialog:Dialog._basicMutator('_wide_di alog'),setContentWidth:Dialog._basicMutator('_content_width'),setTitleLoading:fu nction(b){if(b===undefined)b=true;var a=DOM.find(this._popup,'h2.dialog_title'); if(a)CSS.conditionClass(a,'loading',b);return this;},setSecure:Dialog._basicMuta tor('_secure'),setClassName:Dialog._basicMutator('_class_name'),setFading:Dialog ._basicMutator('_fade_enabled'),setFooter:Dialog._basicMutator('_footer'),setAut oFocus:Dialog._basicMutator('_auto_focus'),setTop:Dialog._basicMutator('_top'),o nloadRegister:function(a){$A(a).forEach(function(b){if(typeof b=='string')b=new Function(b);this._onload_handlers.push(b.bind(this));}.bind(this));return this;} ,setAsyncURL:function(a){return this.setAsync(new AsyncRequest(a));},setAsync:fu nction(a){var c=function(f){if(this._async_request!=a)return;this._async_request =null;var e=f.getPayload();if(typeof e=='string'){this.setBody(e);}else this._se tFromModel(e);this._update(true);}.bind(this);var b=a.getData();b.__d=1;a.setDat a(b);var d=bind(this,'hide');a.setHandler(chain(a.getHandler(),c)).setErrorHandl

er(chain(d,a.getErrorHandler())).setTransportErrorHandler(chain(d,a.getTransport ErrorHandler())).send();this._async_request=a;this._dirty();return this;},_dirty :function(){if(!this._is_dirty){this._is_dirty=true;if(this._immediate_rendering ){this._update();}else bind(this,'_update',false).defer();}},_format:function(a) {if(typeof a=='string')return HTML(a).setDeferred(true);return a;},_update:funct ion(d){if(!this._is_dirty&&d!==true)return;this._is_dirty=false;if(!this._showin g)return;if(this._autohide&&!this._async_request&&!this._autohide_timeout)this._ autohide_timeout=setTimeout(bind(this,'hide'),this._autohide);if(!this._async_re quest !this._show_loading){if(this._loading_was_shown===true){this._hide(true); this._loading_was_shown=false;}var b=[];if(this._summary)b.push($N('div',{classN ame:'dialog_summary'},this._format(this._summary)));b.push($N('div',{className:' dialog_body'},this._format(this._body)));var a=this._getButtonContent();if(a.len gth)b.push($N('div',{className:'dialog_buttons clearfix'},a));if(this._footer)b. push($N('div',{className:'dialog_footer'},this._format(this._footer)));b=$N('div ',{className:'dialog_content'},b);if(this._title){var g=$N('span',this._format(t his._title));var h=$N('h2',{className:'dialog_title'},g);CSS.conditionClass(h,'s ecure',this._secure);b=[h,b];}else b=[b];this._renderDialog(b);CSS.conditionClas s(this.getRoot(),'omitDialogFooter',!a.length);if(this._clickButtonOnEnterInputN ame&&this._clickButtonOnEnter&&ge(this._clickButtonOnEnterInputName))Event.liste n(ge(this._clickButtonOnEnterInputName),'keypress',function(i){if(Event.getKeyCo de(i)==KEYS.RETURN)this._handleButton(this._clickButtonOnEnter);return true;}.bi nd(this));for(var f=0;f<this._onload_handlers.length;++f)try{this._onload_handle rs[f]();}catch(e){}this._onload_handlers=[];}else this.showLoading();var c=2*Dia log._BORDER_WIDTH;if(Dialog._useCSSBorders)c+=2*Dialog._HALO_WIDTH;if(this._cont ent_width){c+=this._content_width;if(!this._full_bleed)c+=2*Dialog._PADDING_WIDT H;}else if(this._wide_dialog){c+=Dialog.SIZE.WIDE;}else c+=Dialog.SIZE.STANDARD; this._popup.style.width=c+'px';},_updateButtons:function(){if(!this._showing)ret urn;var b=this._getButtonContent();var c=null;if(!this.getRoot())this._buildDial og();CSS.conditionClass(this.getRoot(),'omitDialogFooter',!b.length);if(b.length )c=$N('div',{className:'dialog_buttons clearfix'},b);var d=DOM.scry(this._conten t,'div.dialog_buttons')[0] null;if(!d){if(!c)return;var a=this.getBody();if(a)D OM.insertAfter(a,c);}else if(c){DOM.replace(d,c);}else DOM.remove(d);},_getButto nContent:function(){var b=[];if((this._buttons&&this._buttons.length>0) this._b uttons_message){if(this._buttons_message)b.push($N('div',{className:'dialog_butt ons_msg'},this._format(this._buttons_message)));if(this._buttons)for(var d=0;d<t his._buttons.length;d++){var a=this._buttons[d];var c=$N('label',{className:'uiB utton uiButtonLarge uiButtonConfirm'},$N('input',{type:'button',name:a.name '', value:a.label}));if(a.className){a.className.split(\/\\s+\/).each(function(e){CS S.addClass(c,e);});if(CSS.hasClass(c,'inputaux')){CSS.removeClass(c,'inputaux'); CSS.removeClass(c,'uiButtonConfirm');}}Event.listen(c.firstChild,'click',this._h andleButton.bind(this,a.name));b.push(c);}}return b;},_renderDialog:function(b){ if(Dialog.dialogStack===null){KeyEventController.registerKey('ESCAPE',Dialog._ha ndleEscapeKey,Dialog._keyDownFilter);onleaveRegister(Dialog._tearDown);Arbiter.s ubscribe('page_transition',Dialog._tearDown);}if(!this._obj)this._buildDialog(); if(this._class_name)CSS.addClass(this._obj,this._class_name);CSS.conditionClass( this._obj,'full_bleed',this._full_bleed);if(typeof b=='string')b=HTML(b).setDefe rred(this._immediate_rendering!==true);DOM.setContent(this._content,b);this._sho wDialog();if(this._auto_focus)Form.focusFirst.bind(this,this._content).defer();v ar a=Vector2.getElementDimensions(this._content).y+Vector2.getElementPosition(th is._content).y;Dialog._bottoms.push(a);this._bottom=a;Dialog._updateMaxBottom(); return this;},_buildDialog:function(){this._obj=$N('div',{className:'generic_dia log'});this._obj.style.display='none';DOM.getRootElement().appendChild(this._obj );if(!this._popup)this._popup=$N('div',{className:'generic_dialog_popup'});this. _popup.style.left=this._popup.style.top='';this._obj.appendChild(this._popup);th is._buildDialogContent();},_showDialog:function(){if(this._modal)if(this._overla y){this._overlay.style.display='';}else this._buildOverlay();if(this._obj&&this. _obj.style.display){this._obj.style.visibility='hidden';this._obj.style.display= '';this._resetDialog();this._obj.style.visibility='';this._obj.dialog=this;}else this._resetDialog();clearInterval(this.active_hiding);this.active_hiding=setInt erval(this._activeResize.bind(this),500);if(!Dialog.dialogStack)Dialog.dialogSta

ck=[];var c=Dialog.dialogStack;if(c.length){var a=c[c.length-1];if(a!=this&&(!a. _is_stackable (a._show_loading&&a._loading_was_shown)))a._hide();for(var b=c.le ngth-1;b>=0;b--)if(c[b]==this){c.splice(b,1);}else if(!c[b]._shown_while_stacked )c[b]._hide(true);}c.push(this);return this;},_activeResize:function(){if(this.l ast_offset_height!=this._content.offsetHeight)this.last_offset_height=this._cont ent.offsetHeight;},_buildDialogContent:function(){CSS.addClass(this._obj,'pop_di alog');if(intl_locale_is_rtl())CSS.addClass(this._obj,'pop_dialog_rtl');var a;if (Dialog._useCSSBorders){a='<div class=\"pop_container_advanced\">'+'<div class=\ "pop_content\" id=\"pop_content\"><\/div>'+'<\/div>';}else a='<div class=\"pop_c ontainer\">'+'<div class=\"pop_verticalslab\"><\/div>'+'<div class=\"pop_horizon talslab\"><\/div>'+'<div class=\"pop_topleft\"><\/div>'+'<div class=\"pop_toprig ht\"><\/div>'+'<div class=\"pop_bottomright\"><\/div>'+'<div class=\"pop_bottoml eft\"><\/div>'+'<div class=\"pop_content pop_content_old\" id=\"pop_content\"><\ /div>'+'<\/div>';DOM.setContent(this._popup,HTML(a));this._frame=DOM.find(this._ popup,'div.pop_content');this._content=this._frame;},_buildOverlay:function(){th is._overlay=$N('div',{id:'generic_dialog_overlay'});if(this._modal_class)CSS.add Class(this._overlay,this._modal_class);if(this._semi_modal){var a=function(b){if (b.getTarget()==this._obj b.getTarget()==this._overlay)this.hide();}.bind(this) ;Event.listen(this._obj,'click',a);Event.listen(this._overlay,'click',a);}if(ua. ie()<7)this._overlay.style.height=Vector2.getDocumentDimensions().y+'px';onloadR egister(function(){document.body.appendChild(this._overlay);}.bind(this));},_res etDialog:function(){if(!this._popup)return;this._resetDialogObj();},_resetDialog Obj:function(){var c=DOM.find(this._popup,'div.pop_content');var b=Vector2.getSc rollPosition().y;var f=Vector2.getViewportDimensions().y;var d=Vector2.getElemen tDimensions(c).y;var e=b+this._top+'px';if(this._top+d>f){var a=Math.max(f-d,0); e=((a\/2)+b)+'px';}this._popup.style.top=e;},_fadeOut:function(b){if(!this._popu p)return;try{animation(this._obj).duration(0).checkpoint().to('opacity',0).hide( ).duration(250).ondone(this._hide.bind(this,b)).go();}catch(a){this._hide(b);}}, _hide:function(d){if(this._obj)this._obj.style.display='none';if(this._overlay)i f(d){this._overlay.style.display='none';}else{DOM.remove(this._overlay);this._ov erlay=null;}if(this.timeout){clearTimeout(this.timeout);this.timeout=null;}if(th is._hidden_objects.length){for(var b=0,c=this._hidden_objects.length;b<c;b++)thi s._hidden_objects[b].style.visibility='';this._hidden_objects=[];}clearInterval( this.active_hiding);if(this._bottom){var a=Dialog._bottoms;a.splice(a.indexOf(th is._bottom),1);Dialog._updateMaxBottom();}if(d)return;this.destroy();},destroy:f unction(){if(Dialog.dialogStack&&Dialog.dialogStack.length){var b=Dialog.dialogS tack;for(var a=b.length-1;a>=0;a--)if(b[a]==this)b.splice(a,1);if(b.length)b[b.l ength-1]._showDialog();}if(this._obj){DOM.remove(this._obj);this._obj=null;}if(t his._close_handler)this._close_handler({return_data:this._return_data});},_handl eButton:function(a){if(typeof a=='string')a=Dialog._findButton(this._buttons,a); if(!a)return;var b=Dialog.call_or_eval(a,a.handler);if(b===false)return;if(a.nam e=='cancel'){this.cancel();}else if(Dialog.call_or_eval(this,this._handler,{butt on:a})!==false)this.hide();},_submitForm:function(d,e,b){var c=this.getFormData( );c[b.name]=b.label;if(this._extra_data)copy_properties(c,this._extra_data);var a=new AsyncRequest().setURI(e).setData(c).setMethod(d).setReadOnly(d=='GET');thi s.setAsync(a);return false;},_setFromModel:function(a){for(var c in a){if(c=='on loadRegister'){this.onloadRegister(a[c]);continue;}var b=this['set'+c.substr(0,1 ).toUpperCase()+c.substr(1)];if(!(!b))b.apply(this,$A(a[c]));}},_updateBottom:fu nction(){var a=Vector2.getElementDimensions(this._content).y+Vector2.getElementP osition(this._content).y;Dialog._bottoms[Dialog._bottoms.length-1]=a;Dialog._upd ateMaxBottom();}});\nvar DOMScroll={getScrollState:function(){var d=Vector2.getV iewportDimensions();var a=Vector2.getDocumentDimensions();var b=(a.x>d.x);var c= (a.y>d.y);b+=0;c+=0;return new Vector2(b,c);},_scrollbarSize:null,_initScrollbar Size:function(){var a=$N('p');a.style.width='100%';a.style.height='200px';var b= $N('div');b.style.position='absolute';b.style.top='0px';b.style.left='0px';b.sty le.visibility='hidden';b.style.width='200px';b.style.height='150px';b.style.over flow='hidden';b.appendChild(a);document.body.appendChild(b);var c=a.offsetWidth; b.style.overflow='scroll';var d=a.offsetWidth;if(c==d)d=b.clientWidth;document.b ody.removeChild(b);DOMScroll._scrollbarSize=c-d;if(DOMScroll._scrollbarSize<5)DO MScroll._scrollbarSize=15;},getScrollbarSize:function(){if(DOMScroll._scrollbarS

ize===null)DOMScroll._initScrollbarSize();return DOMScroll._scrollbarSize;},scro llTo:function(e,d,b,a){d=d d===undefined;if(!(e instanceof Vector2)){var f=Vect or2.getScrollPosition().x;var g=Vector2.getElementPosition($(e)).y;g=g-Math.min( 0,Math.max(Vector2.getViewportDimensions().y\/3,100));e=new Vector2(f,g,'documen t');}if(b){e.y-=Vector2.getViewportDimensions().y\/2;}else if(a){e.y-=Vector2.ge tViewportDimensions().y;e.y+=a;}e=e.convertTo('document');if(d&&window.animation ){var c=document.body;animation(c).to('scrollTop',e.y).to('scrollLeft',e.x).ease (animation.ease.end).duration(750).go();}else if(window.scrollTo)window.scrollTo (e.x,e.y);}};\nfunction ElementController(){this.handlers=[[],[]];}copy_properti es(ElementController,{ALL:1,TARGETS:2,MODIFIERS:4,BUTTONS:8});ElementController. prototype={initialize:function(){this.initialize=bagofholding;onloadRegister(thi s.register.bind(this));},handle:function(e,event,a){a=a bagof(true);var b=this. handlers[0].concat(this.handlers[1]);for(var c=0,d=b.length;c<d;c++)if(a(b[c].fi lters,e,event)&&b[c].callback(e,event)===false)return event.kill();},_registerHa ndler:function(b,a,c,d){this.initialize();b[d?'unshift':'push']({callback:a,filt ers:c 0});},registerHandler:function(a,b,c){this._registerHandler(this.handlers [0],a,b,c);},registerFallbackHandler:function(a,b,c){this._registerHandler(this. handlers[1],a,b,c);}};var LinkController=new ElementController();copy_properties (LinkController,{key:'LinkControllerHandler',register:function(){Event.listen(do cument.documentElement,'mousedown',this.handler.bind(this));Event.listen(documen t.documentElement,'keydown',this.handler.bind(this));},handler:function(event){v ar b=Parent.byTag(event.getTarget(),'a');var a=b&&b.getAttribute('href',2);if(!a b.rel !this.usesWebProtocol(a) DataStore.get(b,this.key))return;DataStore.se t(b,this.key,Event.listen(b,'click',function(event){if(a.charAt(a.length-1)=='#' ){event.prevent();return;}this.handle(b,event,this.filter);}.bind(this)));},filt er:function(a,b,event){if(a&ElementController.ALL)return true;if((!(a&ElementCon troller.TARGETS)&&b.target) (!(a&ElementController.MODIFIERS)&&event.getModifie rs().any) (!(a&ElementController.BUTTONS)&&ua.safari()>=525&&event.which!=1))re turn false;return true;},usesWebProtocol:function(a){var b=a.match(\/^(\\w+):\/) ;return !b b[1].match(\/^http\/i);}});var FormController=new ElementController( );copy_properties(FormController,{register:function(){Event.listen(document.docu mentElement,'submit',this.handler.bind(this));},handler:function(event){user_act ion(event.getTarget(),'form',event);return this.handle(event.getTarget(),event); }});\n\/**\n * Modified version of http:\/\/www.java.com\/js\/deployJava.txt for \n * reliably testing JRE version. Unneeded code commented out.\n *\n * version 20101108\n *\n * @option preserve-header\n * @requires dom ua\n * @provides java -deploy\n *\n * Copyright (c) 2006, Oracle and\/or its affiliates. All rights re served.\n * ORACLE PROPRIETARY\/CONFIDENTIAL. Use is subject to license terms.\n *\n * Redistribution and use in source and binary forms, with or without\n * mo dification, are permitted provided that the following conditions\n * are met:\n *\n * - Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n *\n * - Redis tributions in binary form must reproduce the above copyright\n * notice, thi s list of conditions and the following disclaimer in the\n * documentation a nd\/or other materials provided with the distribution.\n *\n * - Neither the n ame of Oracle nor the names of its\n * contributors may be used to endorse o r promote products derived\n * from this software without specific prior wri tten permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS\n * IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER O R\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n * PROCUREM ENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSIN ESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARIS ING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSI BILITY OF SUCH DAMAGE.\n *\/var DocumentTitle=(function(a){return {get:function( ){return a;},set:function(b,d){if(typeof(window.Env.clean_page_titles)!='undefin ed'){var c=b.indexOf(' ');if(c>-1)b=b.substr(c+3,b.length);}document.title=b;i

f(!d){a=b;Arbiter.inform('update_title',b);}}};})(document.title);\nfunction Aja xPipeRequest(b,a){this._uri=b;this._query_data=a;this._request=new AsyncRequest( );this._canvas_id=null;this._allow_cross_page_transition=true;this._replayable=f alse;}copy_properties(AjaxPipeRequest.prototype,{setCanvasId:function(a){this._c anvas_id=a;return this;},setURI:function(a){this._uri=a;return this;},setData:fu nction(a){this._query_data=a;return this;},setAllowCrossPageTransition:function( a){this._allow_cross_page_transition=a;return this;},setAppend:function(a){this. _append=a;return this;},send:function(){this._request.setOption('useIframeTransp ort',true).setURI(this._uri).setData(copy_properties({ajaxpipe:1},this._query_da ta)).setPreBootloadHandler(this._preBootloadHandler.bind(this)).setInitialHandle r(this._onInitialResponse.bind(this)).setHandler(this._onResponse.bind(this)).se tReplayable(this._replayable).setMethod('GET').setReadOnly(true).setAllowCrossPa geTransition(this._allow_cross_page_transition);AjaxPipeRequest._current_request =this._request;this._request.send();return this;},_preBootloadFirstResponse:func tion(a){return false;},_fireDomContentCallback:function(){this._arbiter.inform(' ajaxpipe\/domcontent_callback',true,Arbiter.BEHAVIOR_STATE);},_fireOnloadCallbac k:function(){this._arbiter.inform('ajaxpipe\/onload_callback',true,Arbiter.BEHAV IOR_STATE);},_isRelevant:function(a){return this._request==AjaxPipeRequest._curr ent_request a.isReplay() this._jsNonBlock;},_preBootloadHandler:function(b){va r a=b.getPayload();if(!a a.redirect !this._isRelevant(b))return false;var c=fa lse;if(b.is_first){!this._append&&AjaxPipeRequest.clearCanvas(this._canvas_id);t his._arbiter=new Arbiter();c=this._preBootloadFirstResponse(b);this.pipe=new Big Pipe({arbiter:this._arbiter,rootNodeID:this._canvas_id,lid:this._request.lid,rrE nabled:b.payload.roadrunner_enabled,isAjax:true,domContentCallback:this._fireDom ContentCallback.bind(this),onloadCallback:this._fireOnloadCallback.bind(this),do mContentEvt:'ajaxpipe\/domcontent_callback',onloadEvt:'ajaxpipe\/onload_callback ',isReplay:b.isReplay(),jsNonBlock:this._jsNonBlock});}return c;},_redirect:func tion(a){return false;},_versionCheck:function(a){return true;},_onInitialRespons e:function(b){var a=b.getPayload();if(!this._isRelevant(b))return false;if(!a)re turn true;if(this._redirect(a) !this._versionCheck(a))return false;return true; },_processFirstPayload:function(a){if(ge(this._canvas_id)&&a.canvas_class!==null )CSS.setClass(this._canvas_id,a.canvas_class);},_onResponse:function(b){var a=b. payload;if(!this._isRelevant(b))return AsyncRequest.suppressOnloadToken;if(b.is_ first){this._processFirstPayload(a);a.provides=a.provides [];a.provides.push('u ipage_onload');if(this._append)a.append=this._canvas_id;}if(!b.is_last b.is_fir st){if(this._canvas_id===null){delete a.content;}else if('content' in a.content& &this._canvas_id!='content'){a.content[this._canvas_id]=a.content.content;delete a.content.content;}this.pipe.onPageletArrive(a);}if(b.is_last)AjaxPipeRequest.r estoreCanvas(this._canvas_id);return AsyncRequest.suppressOnloadToken;},setFinal lyHandler:function(a){this._request.setFinallyHandler(a);return this;},setErrorH andler:function(a){this._request.setErrorHandler(a);return this;},abort:function (){this._request.abort();if(AjaxPipeRequest._current_request==this._request)Ajax PipeRequest._current_request=null;this._request=null;return this;},setReplayable :function(a){this._replayable=a;return this;},setJSNonBlock:function(a){this._js NonBlock=a;return this;}});copy_properties(AjaxPipeRequest,{clearCanvas:function (a){var b=ge(a);if(b){b.style.minHeight='600px';DOM.empty(b);}},restoreCanvas:fu nction(a){var b=ge(a);if(b)b.style.minHeight='100px';},getCurrentRequest:functio n(){return AjaxPipeRequest._current_request;},setCurrentRequest:function(a){Ajax PipeRequest._current_request=a;},isActiveOnPage:function(b){if(!env_get('ajaxpip e_enabled'))return false;var a=new RegExp(env_get('ajaxpipe_inactive_page_regex' ) null);return !a.test(URI(b).getPath());}});\nif(!this.JSON)this.JSON=function (){function f(n){return n<10?'0'+n:n;}Date.prototype.toJSON=function(){return th is.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(t his.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z';} ;var m={'\\b':'\\\\b','\\t':'\\\\t','\\n':'\\\\n','\\f':'\\\\f','\\r':'\\\\r','\ "':'\\\\\"','\\\\':'\\\\\\\\'};function stringify(value,whitelist){var a,i,k,l,v ;switch(typeof value){case 'string':return (new RegExp('[\\x00-\\x1f\\\\\\\\\"]' )).test(value)?'\"'+value.replace(\/[\\x00-\\x1f\\\\\"]\/g,function(a){var c=m[a ];if(c)return c;c=a.charCodeAt();return '\\\\u00'+Math.floor(c\/16).toString(16) +(c%16).toString(16);})+'\"':'\"'+value+'\"';case 'number':return isFinite(value

)?String(value):'null';case 'boolean':return String(value);case 'null':return 'n ull';case 'object':if(DOM.isNode(value))return null;if(!value)return 'null';if(t ypeof value.toJSON==='function')return stringify(value.toJSON());a=[];if(typeof value.length==='number'&&!(propertyIsEnumerable(value,'length'))){l=value.length ;for(i=0;i<l;i+=1)a.push(stringify(value[i],whitelist) 'null');return '['+a.joi n(',')+']';}if(whitelist){l=whitelist.length;for(i=0;i<l;i+=1){k=whitelist[i];if (typeof k==='string'){v=stringify(value[k],whitelist);if(v)a.push(stringify(k)+' :'+v);}}}else for(k in value)if(typeof k==='string'){v=stringify(value[k],whitel ist);if(v)a.push(stringify(k)+':'+v);}return '{'+a.join(',')+'}';}}return {strin gify:stringify,parse:function(text,filter){var j;function walk(k,v){var i,n;if(v &&typeof v==='object')for(i in v)if(Object.prototype.hasOwnProperty.apply(v,[i]) ){n=walk(i,v[i]);if(n!==undefined)v[i]=n;}return filter(k,v);}if(text&&\/^[\\],: {}\\s]*$\/.test(text.replace(\/\\\\.\/g,'@').replace(\/\"[^\"\\\\\\n\\r]*\" true false null -?\\d+(?:\\.\\d*)?(:?[eE][+\\-]?\\d+)?\/g,']').replace(\/(?:^ : ,)(? :\\s*\\[)+\/g,''))){j=eval('('+text+')');return typeof filter==='function'?walk( '',j):j;}throw new SyntaxError('decodeJSON');}};}();this.JSON.encode=this.JSON.s tringify;this.JSON.decode=this.JSON.parse;function propertyIsEnumerable(a,b){if( a.propertyIsEnumerable)return a.propertyIsEnumerable(b);for(var c in a)if(c==b)r eturn true;return false;}\n_PERSISTENT_BACKENDS={localstorage:LocalStorage};func tion LocalStorage(){this._store=window.localStorage;}LocalStorage.available=func tion(){return window.localStorage?true:false;};copy_properties(LocalStorage.prot otype,{keys:function(){var b=[];for(var a=0;a<this._store.length;a++)b.push(this ._store.key(a));return b;},get:function(a){return this._store.getItem(a);},set:f unction(a,b){this._store.setItem(a,b);},remove:function(a){this._store.removeIte m(a);},clear:function(){this._store.clear();}});function CacheStorage(d,b){this. _key_prefix=b '_cs_';this._magic_prefix='_@_';if(d=='AUTO')for(var c in _PERSIS TENT_BACKENDS){var a=_PERSISTENT_BACKENDS[c];if(a.available()){d=c;break;}}if(d) if(!_PERSISTENT_BACKENDS[d]){this._backend=null;}else this._backend=new _PERSIST ENT_BACKENDS[d]();this._memcache={};}copy_properties(CacheStorage.prototype,{key s:function(){var d=[];if(this._backend){var a=this._backend.keys();for(var b=0;b <a.length;b++)if(a[b].substr(0,this._key_prefix.length)==this._key_prefix)d.push (a[b].substr(this._key_prefix.length));return d;}for(var c in this._memcache)d.p ush(c);return d;},set:function(b,a){this._memcache[b]=a;if(this._backend){if(typ eof a=='string'){a=this._magic_prefix+a;}else a=JSON.encode(a);this._backend.set (this._key_prefix+b,a);}},get:function(b,c){if(this._memcache[b]!==undefined)ret urn this._memcache[b];var d=undefined;if(this._backend){var d=this._backend.get( this._key_prefix+b);if(d!==null){if(d.substr(0,this._magic_prefix.length)==this. _magic_prefix){d=d.substr(this._magic_prefix.length);}else d=JSON.decode(d);this ._memcache[b]=d;}else d=undefined;}if(d===undefined&&c!==undefined){d=c;this._me mcache[b]=d;if(this._backend){if(typeof d=='string'){var a=this._magic_prefix+d; }else var a=JSON.encode(d);this._backend.set(this._key_prefix+b,a);}}return d;}, remove:function(a){delete this._memcache[a];if(this._backend)this._backend.remov e(this._key_prefix+a);}});\nfunction PageCache(a,b){if(this===window)return new PageCache(a,b);this._MAX_PAGE_NUM=typeof a=='undefined'?5:a;this._MAX_TTL=typeof b=='undefined'?600000:b;this._storage=new CacheStorage();}copy_properties(PageC ache.prototype,{_normalizeURI:function(a){a=new URI(a);if(a.getPath()=='\/')a.se tPath('\/home.php');return a.getUnqualifiedURI().setFragment('').removeQueryData ('ref').toString();},addPage:function(c,b){c=this._normalizeURI(c);var a=this._s torage.get(c,{});a.normalized_uri=new URI(c);copy_properties(a,b);a.accessTime=a .genTime=(new Date()).getTime();this._clearCache();},updatePage:function(c,a){c= this._normalizeURI(c);var b=this._storage.get(c);if(typeof b==='undefined')retur n;copy_properties(b,a);this._storage.set(c,b);},isPageInCache:function(b){var a= this._storage.get(this._normalizeURI(b));return (typeof a!=='undefined');},inval idatePage:function(a){a=this._normalizeURI(a);this._storage.remove(a);},getPage: function(b){this._clearCache();b=this._normalizeURI(b);var a=this._storage.get(b );if(typeof a==='undefined')return null;a.accessTime=(new Date()).getTime();retu rn a;},getPageUris:function(){return this._storage.keys();},_clearCache:function (){var b=(new Date()).getTime();var d=null;var f=0;var a=this._storage.keys();fo r(var c=0;c<a.length;c++){var h=a[c];var e=this._storage.get(h);var g=e.ttl thi s._MAX_TTL;if(e.genTime<b-g){this._storage.remove(h);continue;}if(!d this._stor

age.get(d).accessTime>e.accessTime)d=h;f++;}if(f>this._MAX_PAGE_NUM&&d)this._sto rage.remove(d);}});\nvar HistoryManager=window.HistoryManager {_IFRAME_BASE_URI :'http:\/\/static.ak.facebook.com\/common\/history_manager.php',history:null,cur rent:0,fragment:null,_setIframeSrcFragment:function(b){b=b.toString();var a=Hist oryManager.history.length-1;HistoryManager.iframe.src=HistoryManager._IFRAME_BAS E_URI+'? index='+a+'#'+encodeURIComponent(b);return HistoryManager;},getIframeSr cFragment:function(){return decodeURIComponent(URI(HistoryManager.iframe.content Window.document.location.href).getFragment());},nextframe:function(a,b){if(b){Hi storyManager._setIframeSrcFragment(a);return;}if(a!==undefined){HistoryManager.i frameQueue.push(a);}else{HistoryManager.iframeQueue.splice(0,1);HistoryManager.i frameTimeout=null;HistoryManager.checkURI();}if(HistoryManager.iframeQueue.lengt h&&!HistoryManager.iframeTimeout){var c=HistoryManager.iframeQueue[0];HistoryMan ager.iframeTimeout=setTimeout(function(){HistoryManager._setIframeSrcFragment(c) ;},100,false);}},isInitialized:function(){return !!HistoryManager._initialized;} ,init:function(){if(!env_get('ALLOW_TRANSITION_IN_IFRAME')&&window!=window.top)r eturn;if(HistoryManager._initialized)return HistoryManager;var b=URI();var a=b.g etFragment() '';if(a.charAt(0)==='!'){a=a.substr(1);b.setFragment(a);}if(URI.ge tRequestURI(false).getProtocol().toLowerCase()=='https')HistoryManager._IFRAME_B ASE_URI='https:\/\/s-static.ak.facebook.com\/common\/history_manager.php';copy_p roperties(HistoryManager,{_initialized:true,fragment:a,orig_fragment:a,history:[ b],callbacks:[],lastChanged:new Date().getTime(),canonical:URI('#'),fragmentTime out:null,user:0,iframeTimeout:null,iframeQueue:[],enabled:true,debug:bagofholdin g});if(window.history&&history.pushState){this.lastURI=document.location.href;wi ndow.history.replaceState(this.lastURI,null);Event.listen(window,'popstate',func tion(c){if(c&&c.state&&HistoryManager.lastURI!=c.state){HistoryManager.lastURI=c .state;HistoryManager.lastChanged=(+new Date());HistoryManager.notify(URI(c.stat e).getUnqualifiedURI().toString());}}.bind(HistoryManager));if(ua.chrome()>5 ua .safari()>533)setInterval(HistoryManager.checkURI,42,false);if(ua.safari()<534)H istoryManager._updateRefererURI(this.lastURI);return HistoryManager;}HistoryMana ger._updateRefererURI(URI.getRequestURI(false));if(ua.safari()<500 ua.firefox() <2){HistoryManager.enabled=false;return HistoryManager;}if(ua.ie()<8){HistoryMan ager.iframe=document.createElement('iframe');copy_properties(HistoryManager.ifra me.style,{width:'0',height:'0',frameborder:'0',left:'0',top:'0',position:'absolu te'});onloadRegister(function(){HistoryManager._setIframeSrcFragment(a);document .body.insertBefore(HistoryManager.iframe,document.body.firstChild);});}else if(' onhashchange' in window){Event.listen(window,'hashchange',function(){HistoryMana ger.checkURI.bind(HistoryManager).defer();});}else setInterval(HistoryManager.ch eckURI,42,false);return HistoryManager;},registerURIHandler:function(a){HistoryM anager.callbacks.push(a);return HistoryManager;},setCanonicalLocation:function(a ){HistoryManager.canonical=URI(a);return HistoryManager;},notify:function(c){if( c==HistoryManager.orig_fragment)c=HistoryManager.canonical.getFragment();for(var b=0;b<HistoryManager.callbacks.length;b++)try{if(HistoryManager.callbacks[b](c) )return true;}catch(a){}return false;},checkURI:function(){if(new Date().getTime ()-HistoryManager.lastChanged<400)return;if(window.history&&history.pushState){v ar c=document.URL;if(c!=HistoryManager.lastURI){HistoryManager.lastChanged=(+new Date());HistoryManager.lastURI=c;if(ua.safari()<534)HistoryManager._updateRefer erURI(c);HistoryManager.notify(URI(c).getUnqualifiedURI().toString());}return;}i f(ua.ie()<8&&HistoryManager.iframeQueue.length)return;if(ua.safari()&&window.his tory.length==200){if(!HistoryManager.warned)HistoryManager.warned=true;return;}v ar a=URI().getFragment();if(a.charAt(0)=='!')a=a.substr(1);if(ua.ie()<8)a=Histor yManager.getIframeSrcFragment();a=a.replace(\/%23\/g,'#');if(a!=HistoryManager.f ragment.replace(\/%23\/g,'#')){HistoryManager.debug([a,' vs ',HistoryManager.fra gment,'whl: ',window.history.length,'QHL: ',HistoryManager.history.length].join( ' '));for(var b=HistoryManager.history.length-1;b>=0;--b)if(HistoryManager.histo ry[b].getFragment().replace(\/%23\/g,'#')==a)break;++HistoryManager.user;if(b>=0 ){HistoryManager.go(b-HistoryManager.current);}else HistoryManager.go('#'+a);--H istoryManager.user;}delete a;},_updateRefererURI:function(e){e=e.toString();if(e .charAt(0)!='\/'&&e.indexOf('\/\/')==-1)return;var d=new URI(window.location);if (d.isFacebookURI()){var a=d.getPath()+window.location.search;}else var a='';var c=URI(e).getQualifiedURI().setFragment(a).toString();var b=2048;if(c.length>b)c=

c.substring(0,b)+'...';setCookie('x-referer',c);},go:function(c,e,f){if(window.h istory&&history.pushState){e typeof(c)=='number';var h=URI(c).removeQueryData(' ref').toString();HistoryManager.lastChanged=(+new Date());this.lastURI=h;if(f){w indow.history.replaceState(c,null,h);}else window.history.pushState(c,null,h);if (ua.safari()<534)HistoryManager._updateRefererURI(c);return false;}HistoryManage r.debug('go: '+c);if(e===undefined)e=true;if(!HistoryManager.enabled)if(!e)retur n false;if(typeof(c)=='number'){if(!c)return false;var b=c+HistoryManager.curren t;var d=Math.max(0,Math.min(HistoryManager.history.length-1,b));HistoryManager.c urrent=d;b=HistoryManager.history[d].getFragment() HistoryManager.orig_fragment ;b=URI(b).removeQueryData('ref').getUnqualifiedURI().toString();HistoryManager.f ragment=b;HistoryManager.lastChanged=new Date().getTime();if(ua.ie()<8){if(Histo ryManager.fragmentTimeout)clearTimeout(HistoryManager.fragmentTimeout);HistoryMa nager._temporary_fragment=b;HistoryManager.fragmentTimeout=setTimeout(function() {window.location.hash='#!'+b;delete HistoryManager._temporary_fragment;},750,fal se);if(!HistoryManager.user)HistoryManager.nextframe(b,f);}else if(!HistoryManag er.user)go_or_replace(window.location,window.location.href.split('#')[0]+'#!'+b, f);if(e)HistoryManager.notify(b);HistoryManager._updateRefererURI(b);return fals e;}c=URI(c);if(c.getDomain()==URI().getDomain())c=URI('#'+c.getUnqualifiedURI()) ;var a=HistoryManager.history[HistoryManager.current].getFragment();var g=c.getF ragment();if(g==a (a==HistoryManager.orig_fragment&&g==HistoryManager.canonical .getFragment())){if(e)HistoryManager.notify(g);HistoryManager._updateRefererURI( g);return false;}if(f)HistoryManager.current--;var i=(HistoryManager.history.len gth-HistoryManager.current)-1;HistoryManager.history.splice(HistoryManager.curre nt+1,i);HistoryManager.history.push(URI(c));return HistoryManager.go(1,e,f);},ge tCurrentFragment:function(){var a=HistoryManager._temporary_fragment!==undefined ?HistoryManager._temporary_fragment:URI.getRequestURI(false).getFragment();retur n a==HistoryManager.orig_fragment?HistoryManager.canonical.getFragment():a;}};va r PageTransitions=window.PageTransitions {_transition_handlers:[],_scroll_posit ions:{},_scroll_locked:false,isInitialized:function(){return !!PageTransitions._ initialized;},_init:function(){if(!env_get('ALLOW_TRANSITION_IN_IFRAME')&&window !=window.top)return;if(PageTransitions._initialized)return PageTransitions;PageT ransitions._initialized=true;var d=URI.getRequestURI(false);var a=d.getUnqualifi edURI();var e=URI(a).setFragment(null);var c=a.getFragment();if(c.charAt(0)==='! '&&e.toString()===c.substr(1))a=e;copy_properties(PageTransitions,{_current_uri: a,_most_recent_uri:a,_next_uri:a});var b;if(d.getFragment().startsWith('\/')){b= d.getFragment();}else b=a;HistoryManager.init().setCanonicalLocation('#'+b).regi sterURIHandler(PageTransitions._historyManagerHandler);LinkController.registerFa llbackHandler(PageTransitions._rewriteHref,LinkController.TARGETS LinkController .MODIFIERS);LinkController.registerFallbackHandler(PageTransitions._onlinkclick) ;FormController.registerFallbackHandler(PageTransitions._onformsubmit);Event.lis ten(window,'scroll',function(){if(!PageTransitions._scroll_locked)PageTransition s._scroll_positions[PageTransitions._current_uri]=Vector2.getScrollPosition();}) ;return PageTransitions;},registerHandler:function(b,a){PageTransitions._init(); a=a 5;if(!PageTransitions._transition_handlers[a])PageTransitions._transition_h andlers[a]=[];PageTransitions._transition_handlers[a].push(b);},getCurrentURI:fu nction(a){if(!PageTransitions._current_uri&&!a)return new URI(PageTransitions._m ost_recent_uri);return new URI(PageTransitions._current_uri);},getMostRecentURI: function(){return new URI(PageTransitions._most_recent_uri);},getNextURI:functio n(){return new URI(PageTransitions._next_uri);},_rewriteHref:function(a){var c=a .getAttribute('href');var b=_computeRelativeURI(PageTransitions._most_recent_uri .getQualifiedURI(),c).toString();if(c!=b)a.setAttribute('href',b);},_onlinkclick :function(a){_BusyUIManager.lookBusy(a);PageTransitions.go(a.getAttribute('href' ));return false;},_onformsubmit:function(a){var c=new URI(a.getAttribute('action ') ''),b=_computeRelativeURI(PageTransitions._most_recent_uri,c);a.setAttribute ('action',b.toString());if(!a.method a.method.toUpperCase()=='GET'){PageTransit ions.go(b.addQueryData(Form.serialize(a)));return false;}},go:function(d,b){var a=new URI(d).removeQueryData('quickling').getQualifiedURI();var c=a.getUnqualifi edURI();delete PageTransitions._scroll_positions[c];!b&&user_action({href:a.toSt ring()},'uri',null,'INDIRECT');_BusyUIManager.lookBusy();PageTransitions._loadPa ge(a,function(e){if(e){HistoryManager.go(a.toString(),false,b);}else go_or_repla

ce(window.location,a,b);});},_historyManagerHandler:function(a){if(a.charAt(0)!= '\/')return false;user_action({href:a},'h',null);PageTransitions._loadPage(new U RI(a),function(b){if(!b)go_or_replace(window.location,a,true);});return true;},_ loadPage:function(e,c){if(URI(e).getFragment()&&are_equal(URI(e).setFragment(nul l).getQualifiedURI(),URI(PageTransitions._current_uri).setFragment(null).getQual ifiedURI())){PageTransitions._current_uri=PageTransitions._most_recent_uri=e;Pag eTransitions.restoreScrollPosition();_BusyUIManager.stopLookingBusy();return;}va r d=PageTransitions._scroll_positions[PageTransitions._current_uri];PageTransiti ons._current_uri=null;PageTransitions._next_uri=e;if(d)DOMScroll.scrollTo(d,fals e);var b=function(){PageTransitions._scroll_locked=true;var f=PageTransitions._h andleTransition(e);c&&c(f);};var a=_runHooks('onbeforeleavehooks');if(a){_BusyUI Manager.stopLookingBusy();PageTransitions._warnBeforeLeaving(a,b);}else b();},_h andleTransition:function(f){window.onbeforeleavehooks=undefined;_BusyUIManager.l ookBusy();if(!f.isSameOrigin())return false;var e=window.AsyncRequest&&AsyncRequ est.getLastId();Arbiter.inform(\"pre_page_transition\",{from:PageTransitions.get MostRecentURI(),to:f});for(var b=PageTransitions._transition_handlers.length-1;b >=0;--b){var a=PageTransitions._transition_handlers[b];if(!a)continue;for(var c= a.length-1;c>=0;--c)if(a[c](f)===true){var d={sender:this,uri:f,id:e};Arbiter.in form(\"page_transition\",d);return true;}else a.splice(c,1);}return false;},unif yURI:function(){PageTransitions._current_uri=PageTransitions._most_recent_uri=Pa geTransitions._next_uri;},transitionComplete:function(a){PageTransitions._execut eCompletionCallback();_BusyUIManager.stopLookingBusy();PageTransitions.unifyURI( );if(!a)PageTransitions.restoreScrollPosition();},_executeCompletionCallback:fun ction(){if(PageTransitions._completionCallback)PageTransitions._completionCallba ck();PageTransitions._completionCallback=null;},setCompletionCallback:function(a ){PageTransitions._completionCallback=a;},_warnBeforeLeaving:function(b,a){new D ialog().setTitle(_tx(\"Are you sure you want to leave this page?\")).setBody(htm lize(b)).setButtons([{name:'leave_page',label:_tx(\"Leave This Page\"),handler:a },{name:'continue_editing',label:_tx(\"Continue Editing\"),className:'inputaux'} ]).setModal().show();},restoreScrollPosition:function(){PageTransitions._scroll_ locked=false;var c=PageTransitions._current_uri;var e=PageTransitions._scroll_po sitions[c];if(e){DOMScroll.scrollTo(e,false);return;}function d(f){return (f nu ll)&&(DOM.scry(document.body,\"a[name='\"+escape_js_quotes(f)+\"']\")[0] ge(f)) ;}var a=d(URI(c).getFragment());if(a){var b=Vector2.getElementPosition(a);b.x=0; DOMScroll.scrollTo(b);}}};function _computeRelativeURI(d,b){var e=new URI(),c=b; d=new URI(d);b=new URI(b);if(!b.isFacebookURI())return c;var f=d;var a=['Protoco l','Domain','Port','Path','QueryData','Fragment'];a.forEach(function(h){var g=h= ='Path'&&f===d;if(g)e.setPath(_computeRelativePath(d.getPath(),b.getPath()));if( !is_empty(b['get'+h]()))f=b;if(!g)e['set'+h](f['get'+h]());});return e;}function _computeRelativePath(b,a){if(!a)return b;if(a.charAt(0)=='\/')return a;var c=b. split('\/').slice(0,-1);c[0]!=='';a.split('\/').forEach(function(d){if(!(d=='.') )if(d=='..'){if(c.length>1)c=c.slice(0,-1);}else c.push(d);});return c.join('\/' );}function go_or_replace(a,d,c){var e=new URI(d);if(a.pathname=='\/'&&e.getPath ()!='\/'&&e.isQuicklingEnabled()){var b=a.search?{}:{q:''};e=new URI().setPath(' \/').setQueryData(b).setFragment(e.getUnqualifiedURI()).toString();d=e.toString( );}if(c&&!(ua.ie()<8)){a.replace(d);}else if(a.href==d){a.reload();}else a.href= d;}var _BusyUIManager=window._BusyUIManager {_looking_busy:false,_original_curs ors:[],lookBusy:function(a){if(a)_BusyUIManager._giveProgressCursor(a);if(_BusyU IManager._looking_busy)return;_BusyUIManager._looking_busy=true;_BusyUIManager._ giveProgressCursor(document.body);},stopLookingBusy:function(){if(!_BusyUIManage r._looking_busy)return;_BusyUIManager._looking_busy=false;while(_BusyUIManager._ original_cursors.length){var c=_BusyUIManager._original_cursors.pop();var b=c[0] ;var a=c[1];if(b.style)b.style.cursor=a '';}},_giveProgressCursor:function(a){i f(!ua.safari()){_BusyUIManager._original_cursors.push([a,a.style.cursor]);a.styl e.cursor='progress';}}};\nvar Quickling=window.Quickling {isActive:function(){r eturn Quickling._is_active false;},isFeatureEnabled:function(a){return Quicklin g._capabilities&&Quickling._capabilities[a];},init:function(c,b,a){if(Quickling. _is_initialized)return;copy_properties(Quickling,{_is_initialized:true,_is_activ e:true,_session_length:b,_capabilities:a,_is_in_transition:false,_title_interval :false,_ie_cache_title:'',_cache_hit:false,_version:c});Quickling._instrumentTim

eoutFunc('setInterval');Quickling._instrumentTimeoutFunc('setTimeout');PageTrans itions.registerHandler(Quickling._transitionHandler,1);if(Quickling.isFeatureEna bled('page_cache')){Quickling._cache=new PageCache();Quickling._invalidate_msgs= [];Arbiter.subscribe(\"pre_page_transition\",Quickling._onPrePageTransition);Arb iter.subscribe(Arbiter.NEW_NOTIFICATIONS,Quickling._onNotifications);Arbiter.sub scribe(AsyncRequest.REPLAYABLE_AJAX,Quickling._onReplayableAjax);Arbiter.subscri be(Arbiter.PAGECACHE_INVALIDATE,Quickling._onCacheInvalidates);}},_onPrePageTran sition:function(b,a){if(Quickling.isFeatureEnabled('page_cache')&&(page=Quicklin g._cache.getPage(a.from))&&!page.incremental_updates){invoke_callbacks(page.onpa gecache);page.refresh_pagelets.forEach(function(c){var d=Quickling._getPageletBy Id(c);d&&d.refresh(true);});page.incremental_updates=AsyncRequest.stashBundledRe quest();}},_onNotifications:function(b,a){Quickling._cache=new PageCache();Quick ling._invalidate_msgs=[];},_onCacheInvalidates:function(c,b){if(Quickling.isFeat ureEnabled('page_cache')&&b&&b.length){for(var a=0;a<b.length;a++)if(parseInt(b[ a])===0){if(Quickling._is_in_transition&&!Quickling.isFeatureEnabled('flush_cach e_in_transition'))break;if(Quickling._cache.isPageInCache(PageTransitions.getMos tRecentURI())&&!Quickling.isFeatureEnabled('flush_cache_in_page_write'))break;Qu ickling._cache=new PageCache();Quickling._invalidate_msgs=[];return;}Quickling._ invalidate_msgs=Quickling._invalidate_msgs.concat(b);}},_refresh_pagelets:functi on(){if(is_empty(window.__listeners))return;for(var a=0;a<Quickling._invalidate_ msgs.length;a++){var b=Quickling._invalidate_msgs[a];if(b in window.__listeners) window.__listeners[b].forEach(function(c){c.refresh();});}},registerPageCacheHoo k:function(a,c){if(!Quickling._is_initialized !Quickling._is_active Quickling. _is_in_transition !Quickling.isFeatureEnabled('page_cache'))return;var b=PageTr ansitions.getMostRecentURI();var e=Quickling._cache.getPage(b);if(e){if(c)for(va r d=0;d<e.replays.length;d++)if(e.replays[d][0]==c){e.replays.splice(d,1);d--;}e .replays.push([c,a]);}},_onReplayableAjax:function(c,b){if((PageTransitions.getN extURI().toString()!=PageTransitions.getMostRecentURI().toString()))return;if(Qu ickling._is_in_transition)return;var a=Quickling._whitelist_regex;if(!a)a=Quickl ing._whitelist_regex=new RegExp(env_get('pagecache_whitelist_regex'));if(a.test( URI(b.getURI()).getPath()))return;Quickling.registerPageCacheHook(bind(b,b.repla yResponses),b._replayKey);},_startQuicklingTransition:function(){Quickling._is_i n_transition=true;window.channelManager&&window.channelManager.setActionRequest( true);},_stopQuicklingTransition:function(){(function(){Quickling._is_in_transit ion=false;}).defer();},isCacheHit:function(){return Quickling._cache_hit;},goHas hOrGoHere:function(d){var c=URI.getRequestURI();var b=c.getFragment();if(b.start sWith('\/')){var a=b;}else var a=d;setTimeout(function(){PageTransitions.go(a,tr ue);},0);},isPageActive:function(e){if(e=='#')return false;e=new URI(e);if(e.get Domain()&&e.getDomain()!=URI().getDomain())return false;var b=Quickling.isPageAc tive.regex;if(!b)b=Quickling.isPageActive.regex=new RegExp(env_get('quickling_in active_page_regex'));if(e.getPath()=='\/l.php'){var c=e.getQueryData().u;if(c){c =URI(unescape(c)).getDomain();if(c&&c!=URI().getDomain())return false;}}var d=e. getPath();var a=e.getQueryData();if(a)d+='?'+URI.implodeQuery(a);if(b.test(d))re turn false;return true;},_getPageletById:function(a){return window.__UIControlle rRegistry&&window.__UIControllerRegistry[a];},_setHTML:function(a,b){if(ua.ie()< =6){a.innerHTML=b;}else DOM.setContent(a,HTML(b).setDeferred(true));},_transitio nHandler:function(h){AjaxPipeRequest.setCurrentRequest(null);if(Quickling._isTim eToRefresh())return false;if(!Quickling.isPageActive(h))return false;window.Exit Time=(new Date()).getTime();removeHook('onafterloadhooks');removeHook('onloadhoo ks');_runHooks('onleavehooks');Arbiter.inform('onload\/exit',true);Quickling._st artQuicklingTransition();$('content').style.visibility=\"visible\";var e;if(Quic kling.isFeatureEnabled('page_cache')&&(e=Quickling._cache.getPage(h))){var d=nul l;var f=window.ExitTime;var g=null;var a=new Arbiter();a.registerCallback(functi on(){if(AjaxPipeRequest.getCurrentRequest()!==d)return;if(d)if(d.cavalry){var i= null;if(g)i=g-f;d.cavalry.setTimeStamp('t_domcontent',null,null,i);d.cavalry.set TimeStamp('t_hooks',null,null,i);d.cavalry.setTimeStamp('t_layout',null,null,i); d.cavalry.setTimeStamp('t_onload',null,null,i);}Quickling._cache_hit=true;invoke _callbacks(e.onafterload);invoke_callbacks(e.onafterpagecache);Quickling._cache_ hit=false;Quickling._stopQuicklingTransition();},['pagecache_update','tti_pageca che']);d=AsyncRequest.setBundledRequestProperties({stashedRequests:e.incremental

_updates,callback:function(){if(d&&d.cavalry)d.cavalry&&d.cavalry.setTimeStamp(' t_html');a.inform('pagecache_update',true,Arbiter.BEHAVIOR_EVENT);},onInitialRes ponse:function(j){var i=j.getPayload();if(i.redirect&&i.force){return false;}els e return true;},extra_data:{uri:e.normalized_uri.getQualifiedURI().toString(),ve rsion:Quickling._version},start_immediately:true});var c=$('content');c.style.vi sibility=\"hidden\";AjaxPipeRequest.setCurrentRequest(d);AjaxPipeRequest.clearCa nvas('content');Bootloader.loadResources(e.css.concat(e.js),null,true);Quickling ._changePageTitle(e.title);Quickling._replaceSyndicationLinks(e.syndication_link s []);var b=e.body_class '';CSS.setClass(document.body,b);e.html=e.html.replac e(\/<span class=[\"']?muffin_tracking_pixel_start['\"]?><\\\/span>.*?<span class =[\"']?muffin_tracking_pixel_end['\"]?><\\\/span>\/ig,'');Quickling._setHTML(c,e .html);if(c&&c.style.height=='1234px')c.style.height='';PageTransitions.transiti onComplete(true);Quickling._cache_hit=true;invoke_callbacks(e.onload);Quickling. _cache_hit=false;Quickling._refresh_pagelets();e.replays.forEach(function(i){i[1 ]();});e.refresh_pagelets.forEach(function(i){var j=document.getElementById(i);i f(j)j.innerHTML='';});setTimeout(function(){PageTransitions.restoreScrollPositio n();$('content').style.visibility=\"visible\";g=(+new Date());a.inform('tti_page cache',true,Arbiter.BEHAVIOR_EVENT);},20);}else new QuickPipeRequest(h).setCanva sId('content').send();return true;},_changePageTitle:function(a){a=a 'Facebook' ;DocumentTitle.set(a);if(ua.ie()){Quickling._ie_cache_title=a;if(!Quickling._tit le_interval)Quickling._title_interval=window.setInterval(function(){var b=Quickl ing._ie_cache_title;var c=DocumentTitle.get();if(b!=c)DocumentTitle.set(b);},500 0,false);}},_replaceSyndicationLinks:function(d){var c=document.getElementsByTag Name('link');for(var b=0;b<c.length;++b){if(c[b].rel!='alternate')continue;DOM.r emove(c[b]);}if(d.length){var a=DOM.find(document,'head');a&&DOM.appendContent(a ,HTML(d[0]));}},cacheResponse:function(c,a){var b=c.payload;Quickling._cache.add Page(PageTransitions.getNextURI(),{title:b.title,syndication:b.syndication [],b ody_class:b.body_class,html:b.content.content,js:b.js [],css:b.css [],onload:b .onload [],onafterload:b.onafterload [],refresh_pagelets:b.refresh_pagelets [ ],onpagecache:b.onpagecache [],onafterpagecache:b.onafterpagecache [],ttl:b.pa ge_cache_ttl,replays:[]});if(a){invoke_callbacks(b.onload);onafterloadRegister(f unction(){invoke_callbacks(b.onafterload);});}},cacheAndExecResponse:function(c, d){var a=PageTransitions.getNextURI();var b=Quickling._cache.getPage(a);if(b){if (c.html)b.html=c.html;b.js=b.js.concat(c.js []);b.css=b.css.concat(c.css []);b .onload=b.onload.concat(c.onload []);b.onafterload=b.onafterload.concat(c.onaft erload []);b.onpagecache=b.onpagecache.concat(c.onpagecache []);b.onafterpagec ache=b.onafterpagecache.concat(c.onafterpagecache []);b.refresh_pagelets=b.refr esh_pagelets.concat(c.refresh_pagelets []);}if(!d){invoke_callbacks(c.onload);o nafterloadRegister(function(){invoke_callbacks(c.onafterload);});}},_isTimeToRef resh:function(){Quickling._load_count=(Quickling._load_count 0)+1;return Quickl ing._load_count>=Quickling._session_length;},_instrumentTimeoutFunc:function(a){ window[a+'_native']=(function(c){var b=function b(e,d){return c(e,d);};return b; })(window[a]);window[a]=function _setTimeout(d,c,b){var e=window[a+'_native'](d, c);if(c>0)if(b!==false)onleaveRegister(function(){clearInterval(e);});return e;} ;}};function QuickPipeRequest(b){var a={version:Quickling._version};this.parent. construct(this,b,{quickling:a});}QuickPipeRequest.extend('AjaxPipeRequest');copy _properties(QuickPipeRequest.prototype,{_preBootloadFirstResponse:function(b){va r a=b.getPayload();if(Quickling.isFeatureEnabled('page_cache')&&a.page_cache_ttl )Quickling.cacheResponse(b);DOMScroll.scrollTo(new Vector2(0,0,'document'),false );return true;},_fireDomContentCallback:function(){this._request.cavalry&&this._ request.cavalry.setTimeStamp('t_domcontent');Quickling._stopQuicklingTransition( );PageTransitions.transitionComplete();this.parent._fireDomContentCallback();},_ fireOnloadCallback:function(){if(this._request.cavalry){this._request.cavalry.se tTimeStamp('t_hooks');this._request.cavalry.setTimeStamp('t_layout');this._reque st.cavalry.setTimeStamp('t_onload');}this.parent._fireOnloadCallback();},_redire ct:function(a){if(a.redirect){if(a.force !Quickling.isPageActive(a.redirect)){g o_or_replace(window.location,URI(a.redirect).removeQueryData(['quickling','ajaxp ipe']),true);}else PageTransitions.go(a.redirect,true);return true;}else return false;},_versionCheck:function(a){if(a.version!=Quickling._version){go_or_replac e(window.location,URI(a.uri).removeQueryData(['quickling','ajaxpipe']),true);ret

urn false;}else return true;},_processFirstPayload:function(b){Quickling._change PageTitle(b.title);Quickling._replaceSyndicationLinks(b.syndication []);var a=b .body_class '';CSS.setClass(document.body,a);if(b.hasOnbeforeshow)$('content'). style.visibility='hidden';}});function onpagecacheRegister(a,b){b=(b===undefined ?'':String(b));Quickling.registerPageCacheHook(a,b);}\n\nif (window.Bootloader) { Bootloader.done([\"js\\\/8chvdiqhyeckwoc8.pkg.js\"]); }")