/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 9th 2010 9:38:37 PM PST                             */
/*      Machine:  10.16.140.109                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/fbjs.js h:a8p1nsg7                                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/fbjs.js                                                   */

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

if(Object.prototype.eval)window.eval=Object.prototype.eval;delete Object.prototype.eval;delete Object.prototype.valueOf;function fbjs_sandbox(_L0){if(fbjs_sandbox.instances['a'+_L0])return fbjs_sandbox.instances['a'+_L0];this.appid=_L0;this.pending_bootstraps=[];this.bootstrapped=false;fbjs_sandbox.instances['a'+_L0]=this;}fbjs_sandbox.instances={};fbjs_sandbox.prototype.bootstrap=function(){if(!this.bootstrapped){var appid=this.appid;var code=['a',appid,'_Math = new fbjs_math();','a',appid,'_Date = fbjs_date();','a',appid,'_String = new fbjs_string();','a',appid,'_RegExp = new fbjs_regexp();','a',appid,'_Ajax = fbjs_ajax(',appid,');','a',appid,'_Dialog = fbjs_dialog(',appid,');','a',appid,'_Facebook = new fbjs_facebook(',appid,');','a',appid,'_Animation = new fbjs_animation();','a',appid,'_LiveMessage = new fbjs_livemessage(',appid,');','a',appid,'_document = new fbjs_main(',appid,');','a',appid,'_undefined = undefined;','a',appid,'_console = new fbjs_console();','a',appid,'_setTimeout = fbjs_sandbox.set_timeout;','a',appid,'_setInterval = fbjs_sandbox.set_interval;','a',appid,'_escape = escapeURI;','a',appid,'_unescape = unescape;'];for(var i in {clearTimeout:1,clearInterval:1,parseFloat:1,parseInt:1,isNaN:1,isFinite:1})code=code.concat(['a',appid,'_',i,'=',i,';']);eval(code.join(''));}for(var i=0,il=this.pending_bootstraps.length;i<il;i++)eval_global(this.pending_bootstraps[i]);this.pending_bootstraps=[];this.bootstrapped=true;};fbjs_sandbox.prototype.setBridgeHash=function(_L0){this.bridgeHash=_L0;return this;};fbjs_sandbox.quicklingEnabled=function(){query=URI.getRequestURI().getQueryData();if(query['_fb_q']&&window.Quickling)return true;return false;};fbjs_sandbox.getSandbox=function(_L0){return fbjs_sandbox.instances['a'+_L0];};fbjs_sandbox.loadScripts=function(_L0){script=_L0.shift(0);if(!script)return false;if(script['inline']){eval_global(script['inline']);fbjs_sandbox.loadScripts(_L0);}else loadExternalJavascript(script['src'],fbjs_sandbox.loadScripts.bind(null,_L0));};var $FBJS=function(){function ref(_L4){if(_L4==window){return null;}else if(_L4.ownerDocument===document){fbjs_console.error('ref called with a DOM object!');return fbjs_dom.get_instance(_L4);}else{if(ua.safari()<528.16&&(typeof _L4=='object')&&!(_L4 instanceof Object))return null;return _L4;}}function idx(b){return (b instanceof Object||_L2[b])?'__unknown__':b;}var _L2={'caller':true,'$FBJS':true};function arg(_L4){var _L5=[];for(var i=0;i<_L4.length;i++)_L5.push(_L4[i]);return _L5;}return ({arg:arg,idx:idx,ref:ref});}();void function(){var _L0=String.prototype.replace,_L1=String.prototype.toLowerCase;fbjs_sandbox.safe_string=function(str){String.prototype.replace=_L0;String.prototype.toLowerCase=_L1;return str+'';};}();fbjs_sandbox.set_timeout=function(js,_L1){if(typeof js!='function'){fbjs_console.error('setTimeout may not be used with a string. Please enclose your event in an anonymous function.');}else return setTimeout(js,_L1);};fbjs_sandbox.set_interval=function(js,_L1){if(typeof js!='function'){fbjs_console.error('setInterval may not be used with a string. Please enclose your event in an anonymous function.');}else return setInterval(js,_L1);};function fbjs_main(_L0){fbjs_private.get(this).appid=_L0;}fbjs_main.allowed_elements={a:true,abbr:true,acronym:true,address:true,b:true,br:true,bdo:true,big:true,blockquote:true,caption:true,center:true,cite:true,code:true,del:true,dfn:true,div:true,dl:true,dd:true,dt:true,em:true,fieldset:true,font:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,hr:true,i:true,img:true,input:true,ins:true,iframe:true,kbd:true,label:true,legend:true,li:true,ol:true,option:true,optgroup:true,p:true,pre:true,q:true,s:true,samp:true,select:true,small:true,span:true,strike:true,strong:true,sub:true,sup:true,table:true,textarea:true,tbody:true,td:true,tfoot:true,th:true,thead:true,tr:true,tt:true,u:true,ul:true};fbjs_main.allowed_editable={embed:true,object:true};fbjs_main.allowed_events={focus:true,click:true,mousedown:true,mouseup:true,dblclick:true,change:true,reset:true,select:true,submit:true,keydown:true,keypress:true,keyup:true,blur:true,load:true,mouseover:true,mouseout:true,mousemove:true,selectstart:true};fbjs_main.prototype.getElementById=function(id){var _L1=fbjs_private.get(this).appid;return fbjs_dom.get_instance(document.getElementById('app'+_L1+'_'+id),_L1);};fbjs_main.prototype.getRootElement=function(){var _L0=fbjs_private.get(this).appid;return fbjs_dom.get_instance(document.getElementById('app_content_'+_L0).firstChild,_L0);};fbjs_main.prototype.createElement=function(_L0){var mix=fbjs_sandbox.safe_string(_L0.toLowerCase());if(fbjs_main.allowed_elements[mix]){return fbjs_dom.get_instance(document.createElement(mix),fbjs_private.get(this).appid);}else switch(mix){case 'fb:swf':return new fbjs_fbml_dom('fb:swf',fbjs_private.get(this).appid);break;default:fbjs_console.error(mix+' is not an allowed DOM element');break;}};fbjs_main.prototype.setLocation=function(url){url=fbjs_sandbox.safe_string(url);if(fbjs_dom.href_regex.test(url)){if(window.Quickling&&Quickling.isActive()){if(!Quickling.isFeatureEnabled('full_platform'))url=new URI(url).addQueryData({'_fb_q':true});goURI(url);}else document.location.href=url;return this===window?null:this;}else fbjs_console.error(url+' is not a valid location');};function fbjs_facebook(_L0){var _L1=fbjs_private.get(this);_L1.appid=_L0;_L1.sandbox=fbjs_sandbox.instances['a'+_L0];this.appid=_L0;}fbjs_facebook.prototype.getUser=function(){var _L0=fbjs_private.get(this);if(_L0.sandbox.data.installed){return _L0.sandbox.data.user;}else return null;};fbjs_facebook.prototype.isApplicationAdded=function(){return fbjs_private.get(this).sandbox.data.installed;};fbjs_facebook.prototype.isLoggedIn=function(){return fbjs_private.get(this).sandbox.data.installed;};fbjs_facebook.prototype.urchinTracker=function(_L0){if(urchinTracker){urchinTracker(_L0);}else fbjs_console.error('There is no fb:google-analytics tag on this page!');};fbjs_facebook.prototype.showFeedDialog=function(_L0,_L1,_L2,_L3,_L4,_L5,_L6){FBML.showFeedDialog(this.appid,_L0,_L1,_L2,_L3,_L4,_L5,_L6);};fbjs_facebook.prototype.streamPublish=function(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7){FBML.streamPublish(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7);};fbjs_facebook.prototype.promptPermission=function(_L0,_L1){FBML.promptPermissionPro(this.appid,_L0,_L1);};fbjs_facebook.prototype.showPermissionDialog=function(_L0,_L1,_L2,_L3){FBML.showPermissionDialog(_L0,_L1,_L2,_L3);};fbjs_facebook.prototype.showBookmarkDialog=function(_L0){FBML.showBookmarkDialog(_L0);};fbjs_facebook.prototype.createApplication=function(_L0,_L1){FBML.createApplication(_L0,_L1);};fbjs_facebook.prototype.setPublishStatus=function(on){var _L1=ge(this.appid+'_publish_button');if(_L1){_L1.disabled=!on;CSS[on?'removeClass':'addClass'](_L1,'disabled_button');}var _L2=ge('app_content_'+this.appid);if(_L2){var _L3=DataStore.get(_L2,'attachment');if(_L3)_L3.setEnabled(on);}};fbjs_facebook.prototype.requireLogin=function(_L0,_L1){if(!_L0){fbjs_console.error('Continuation is a required parameter for requireLogin');return false;}var _L2=fbjs_private.get(this);if(!_L2.sandbox.data.installed){FBML.requireLogin(this.appid,function(){_L2.sandbox.data.installed=true;_L0();},(_L1||bagofholding));}else _L0();};fbjs_facebook.prototype.submitOrder=function(_L0){var _L1=fbjs_private.get(this).appid;var _L2=_L0['receiver'];var _L3=_L0['order_info'];var _L4=_L0['next_js'];var _L5=_L0['next_url'];GiftCredits.getPrompt(_L1,_L2,_L3,_L5,_L4,GiftCredits.PLACE_APP);};function fbjs_dom(obj,_L1){this.__instance=fbjs_dom.len;try{obj.fbjs_instance=fbjs_dom.len;}catch(e){}fbjs_dom[fbjs_dom.len]={instance:this,obj:obj,events:{},appid:_L1};fbjs_dom.len++;}fbjs_dom.len=0;fbjs_dom.attr_setters={'href':'setHref','id':'setId','dir':'setDir','checked':'setChecked','action':'setAction','value':'setValue','method':'setMethod','target':'setTarget','src':'setSrc','class':'setClassName','dir':'setDir','title':'setTitle','tabIndex':'setTabIndex','name':'setName','cols':'setCols','rows':'setRows','accessKey':'setAccessKey','disabled':'setDisabled','readOnly':'setReadOnly','type':'setType','selectedIndex':'setSelectedIndex','selected':'setSelected'};fbjs_dom.factory=function(obj,_L1){if(!obj.tagName||((!fbjs_main.allowed_elements[obj.tagName.toLowerCase()]&&!fbjs_main.allowed_editable[obj.tagName.toLowerCase()])||CSS.hasClass(obj,'__fbml_tag')||(obj.tagName=='INPUT'&&(obj.name.substring(0,2)=='fb'||obj.name=='post_form_id'))||obj.getAttribute('fb_protected')=='true')){return null;}else return new this(obj,_L1);};fbjs_dom.get_data=function(_L0){if(_L0.__instance instanceof Object){return null;}else{var _L1=fbjs_dom[_L0.__instance];return _L1.instance==_L0?_L1:null;}};fbjs_dom.get_obj=function(_L0){if(_L0 instanceof fbjs_fbml_dom){return fbjs_fbml_dom.get_obj(_L0);}else if(typeof _L0.__instance=='number'){var _L1=fbjs_dom[_L0.__instance];if(_L1&&_L1.instance==_L0){return _L1.obj;}else throw ('This DOM node is no longer valid.');}else throw ('This DOM node is no longer valid.');};fbjs_dom.render=function(_L0){if(_L0 instanceof fbjs_fbml_dom)fbjs_fbml_dom.render(_L0);};fbjs_dom.get_instance=function(obj,_L1){if(!obj)return null;if(typeof obj.fbjs_instance=='undefined'){return fbjs_dom.factory(obj,_L1);}else return fbjs_dom[obj.fbjs_instance].instance;};fbjs_dom.get_instance_list=function(_L0,_L1){var _L2=[];for(var i=0;i<_L0.length;i++){var obj=fbjs_dom.get_instance(_L0[i],_L1);if(obj)_L2.push(obj);}return _L2;};fbjs_dom.get_first_valid_instance=function(obj,_L1,_L2){var ret=null;if(obj&&((obj.id&&obj.id.indexOf('app_content')!=-1)||(obj.tagName&&obj.tagName.toLowerCase()=='body')))return null;while(obj&&(!(ret=fbjs_dom.factory(obj,_L2)))){if((obj.id&&obj.id.indexOf('app_content')!=-1)||(obj.tagName&&obj.tagName.toLowerCase()=='body'))return null;obj=obj[_L1];}return ret;};fbjs_dom.clear_instances=function(obj,_L1){if(_L1&&obj.fbjs_instance){delete fbjs_dom[obj.fbjs_instance].obj;delete fbjs_dom[obj.fbjs_instance].events;delete fbjs_dom[obj.fbjs_instance].instance;delete fbjs_dom[obj.fbjs_instance];obj.fbjs_instance=undefined;}var cn=obj.childNodes;for(var i=0;i<cn.length;i++)fbjs_dom.clear_instances(cn[i],true);};fbjs_dom.prototype.appendChild=function(_L0){fbjs_dom.get_obj(this).appendChild(fbjs_dom.get_obj(_L0));fbjs_dom.render(_L0);return _L0;};fbjs_dom.prototype.insertBefore=function(_L0,_L1){if(_L1){fbjs_dom.get_obj(this).insertBefore(fbjs_dom.get_obj(_L0),fbjs_dom.get_obj(_L1));}else fbjs_dom.get_obj(this).appendChild(fbjs_dom.get_obj(_L0));fbjs_dom.render(_L0);return _L0;};fbjs_dom.prototype.removeChild=function(_L0){var _L0=fbjs_dom.get_obj(_L0);fbjs_dom.clear_instances(_L0,true);fbjs_dom.get_obj(this).removeChild(_L0);return this;};fbjs_dom.prototype.replaceChild=function(_L0,_L1){fbjs_dom.clear_instances(_L1,true);fbjs_dom.get_obj(this).replaceChild(fbjs_dom.get_obj(_L0),fbjs_dom.get_obj(_L1));return this;};fbjs_dom.prototype.cloneNode=function(_L0){var _L1=fbjs_dom.get_data(this);var obj=_L1.obj.cloneNode(_L0);obj.fbjs_instance=undefined;return fbjs_dom.get_instance(obj,_L1.appid);};fbjs_dom.prototype.getParentNode=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_first_valid_instance(_L0.obj.parentNode,'parentNode',_L0.appid);};fbjs_dom.prototype.getNextSibling=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_first_valid_instance(_L0.obj.nextSibling,'nextSibling',_L0.appid);};fbjs_dom.prototype.getPreviousSibling=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_first_valid_instance(_L0.obj.previousSibling,'previousSibling',_L0.appid);};fbjs_dom.prototype.getFirstChild=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_first_valid_instance(_L0.obj.firstChild,'nextSibling',_L0.appid);};fbjs_dom.prototype.getLastChild=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_first_valid_instance(_L0.obj.lastChild,'previousSibling',_L0.appid);};fbjs_dom.prototype.getChildNodes=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_instance_list(_L0.obj.childNodes,_L0.appid);};fbjs_dom.prototype.getElementsByTagName=function(tag){var _L1=fbjs_dom.get_data(this);return fbjs_dom.get_instance_list(_L1.obj.getElementsByTagName(tag),_L1.appid);};fbjs_dom.prototype.getOptions=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_instance_list(_L0.obj.options,_L0.appid);};fbjs_dom.prototype.getForm=function(){var _L0=fbjs_dom.get_data(this);return fbjs_dom.get_instance(_L0.obj.form,_L0.appid);};fbjs_dom.prototype.serialize=function(){var _L0=fbjs_dom.get_data(this).obj.elements;var _L1={};for(var i=_L0.length-1;i>=0;i--)if(_L0[i].name&&_L0[i].name.substring(0,2)!='fb'&&_L0[i].name!='post_form_id'&&!_L0[i].disabled)if(_L0[i].tagName=='SELECT'){var _L3=_L0[i].multiple?_L0[i].name+'[]':_L0[i].name;for(var j=0,jl=_L0[i].options.length;j<jl;j++)if(_L0[i].options[j].selected)serialize_form_helper(_L1,_L3,(_L0[i].options[j].getAttribute('value')==null)?undefined:_L0[i].options[j].value);}else if(!(_L0[i].type=='radio'||_L0[i].type=='checkbox')||_L0[i].checked||(!_L0[i].type||_L0[i].type=='text'||_L0[i].type=='password'||_L0[i].type=='hidden'||_L0[i].tagName=='TEXTAREA'))serialize_form_helper(_L1,_L0[i].name,_L0[i].value);return _L1;};fbjs_dom.prototype.setInnerXHTML=function(_L0){var _L1=fbjs_dom.get_data(this);var _L2=new fbjs_fbml_sanitize(_L1.appid);var _L3=_L2.parseFBML(_L0);if(!_L3)return this;var obj=fbjs_dom.get_obj(this);switch(obj.tagName){case 'TEXTAREA':fbjs_console.error('setInnerXHTML is not supported on textareas. Please use .value instead.');break;case 'COL':case 'COLGROUP':case 'TABLE':case 'TBODY':case 'TFOOT':case 'THEAD':case 'TR':fbjs_console.error('setInnerXHTML is not supported on this node.');break;default:fbjs_dom.clear_instances(obj,false);DOM.setContent(obj,'');this.appendChild(_L3);break;}return this;};fbjs_dom.prototype.setInnerFBML=function(_L0){var _L1=fbjs_private.get(_L0).htmlstring;var obj=fbjs_dom.get_obj(this);switch(obj.tagName){case 'TEXTAREA':fbjs_console.error('setInnerFBML is not supported on textareas. Please use .value instead.');break;case 'COL':case 'COLGROUP':case 'TABLE':case 'TBODY':case 'TFOOT':case 'THEAD':case 'TR':fbjs_console.error('setInnerFBML is not supported on this node.');break;default:DOM.setContent(obj,_L1);break;}return this;};fbjs_dom.prototype.setTextValue=function(_L0){var obj=fbjs_dom.get_obj(this);fbjs_dom.clear_instances(obj,false);DOM.setContent(obj,fbjs_sandbox.safe_string(_L0));return this;};fbjs_dom.prototype.setValue=function(_L0){fbjs_dom.get_obj(this).value=_L0;return this;};fbjs_dom.prototype.getValue=function(){var obj=fbjs_dom.get_obj(this);if(obj.tagName=='SELECT'){var si=obj.selectedIndex;if(si==-1){return null;}else if(obj.options[si].getAttribute('value')==null){return undefined;}else return obj.value;}else return fbjs_dom.get_obj(this).value;};fbjs_dom.prototype.getSelectedIndex=function(){return fbjs_dom.get_obj(this).selectedIndex;};fbjs_dom.prototype.setSelectedIndex=function(si){fbjs_dom.get_obj(this).selectedIndex=si;return this;};fbjs_dom.prototype.getChecked=function(){return fbjs_dom.get_obj(this).checked;};fbjs_dom.prototype.setChecked=function(c){fbjs_dom.get_obj(this).checked=c;return this;};fbjs_dom.prototype.getSelected=function(){return fbjs_dom.get_obj(this).selected;};fbjs_dom.prototype.setSelected=function(s){fbjs_dom.get_obj(this).selected=s;return this;};fbjs_dom.set_style=function(obj,_L1,_L2){if(typeof _L1=='string'){if(_L1=='opacity'){CSS.setOpacity(obj,parseFloat(_L2,10));}else{_L2=fbjs_sandbox.safe_string(_L2);if(fbjs_dom.css_regex.test(_L2)){obj.style[_L1]=_L2;}else fbjs_console.error(_L1+': '+_L2+' is not a valid CSS style');}}else for(var i in _L1)fbjs_dom.set_style(obj,i,_L1[i]);};fbjs_dom.css_regex=/^(?:[\w\-#%+]+|rgb\(\d+ *, *\d+, *\d+\)|url\('?http[^ ]+?'?\)| +)*$/i;fbjs_dom.prototype.setStyle=function(_L0,_L1){fbjs_dom.set_style(fbjs_dom.get_obj(this),_L0,_L1);return this;};fbjs_dom.prototype.getStyle=function(_L0){return fbjs_dom.get_obj(this).style[$FBJS.idx(_L0)];};fbjs_dom.prototype.setHref=function(_L0){_L0=fbjs_sandbox.safe_string(_L0);if(fbjs_dom.href_regex.test(_L0)){fbjs_dom.get_obj(this).href=_L0;return this;}else fbjs_console.error(_L0+' is not a valid hyperlink');};fbjs_dom.href_regex=/^(?:https?|mailto|ftp|aim|irc|itms|gopher|\/|#)/;fbjs_dom.sanitizeUri=function(_L0){var uri=new URI().parse(_L0);for(key in uri.getQueryData())if(key.startsWith("_fb"))uri.removeQueryData(key);return uri.toString();};fbjs_dom.prototype.getHref=function(){return fbjs_dom.sanitizeUri(fbjs_dom.get_obj(this).href);};fbjs_dom.prototype.setAction=function(a){a=fbjs_sandbox.safe_string(a);if(fbjs_dom.href_regex.test(a)){fbjs_dom.get_obj(this).action=a;return this;}else fbjs_console.error(a+' is not a valid hyperlink');};fbjs_dom.prototype.getAction=function(){return fbjs_dom.get_obj(this).action;};fbjs_dom.prototype.setMethod=function(m){m=fbjs_sandbox.safe_string(m);fbjs_dom.get_obj(this).method=m.toLowerCase()=='get'?'get':'post';return this;};fbjs_dom.prototype.getMethod=function(){return fbjs_dom.get_obj(this).method;};fbjs_dom.prototype.setSrc=function(src){src=fbjs_sandbox.safe_string(src);if(fbjs_dom.href_regex.test(src)){fbjs_dom.get_obj(this).src=src;return this;}else fbjs_console.error(src+' is not a valid hyperlink');};fbjs_dom.prototype.getSrc=function(){return fbjs_dom.get_obj(this).src;};fbjs_dom.prototype.setTarget=function(_L0){fbjs_dom.get_obj(this).target=_L0;return this;};fbjs_dom.prototype.getTarget=function(){return fbjs_dom.get_obj(this).target;};fbjs_dom.prototype.setClassName=function(_L0){fbjs_dom.get_obj(this).className=_L0;return this;};fbjs_dom.prototype.getClassName=function(){return fbjs_dom.get_obj(this).className;};fbjs_dom.prototype.hasClassName=function(_L0){return CSS.hasClass(fbjs_dom.get_obj(this),_L0);};fbjs_dom.prototype.addClassName=function(_L0){CSS.addClass(fbjs_dom.get_obj(this),_L0);return this;};fbjs_dom.prototype.removeClassName=function(_L0){CSS.removeClass(fbjs_dom.get_obj(this),_L0);return this;};fbjs_dom.prototype.toggleClassName=function(_L0){this.hasClassName(_L0)?this.removeClassName(_L0):this.addClassName(_L0);return $FBJS.ref(this);};fbjs_dom.prototype.getTagName=function(){return fbjs_dom.get_obj(this).tagName;};fbjs_dom.prototype.getNodeType=function(){return fbjs_dom.get_obj(this).nodeType;};fbjs_dom.prototype.getId=function(){var id=fbjs_dom.get_obj(this).id;if(id){return id.replace(/^app\d+_/,'');}else return id;};fbjs_dom.prototype.setId=function(id){var _L1=fbjs_dom.get_data(this);_L1.obj.id=['app',_L1.appid,'_',id].join('');return this;};fbjs_dom.prototype.setDir=function(dir){fbjs_dom.get_obj(this).dir=dir;return this;};fbjs_dom.prototype.getDir=function(dir){return fbjs_dom.get_obj(this).dir;};fbjs_dom.prototype.getdir=function(dir){return fbjs_dom.get_obj(this).dir;};fbjs_dom.prototype.getClientWidth=function(){return fbjs_dom.get_obj(this).clientWidth;};fbjs_dom.prototype.getClientHeight=function(){return fbjs_dom.get_obj(this).clientHeight;};fbjs_dom.prototype.getOffsetWidth=function(){return fbjs_dom.get_obj(this).offsetWidth;};fbjs_dom.prototype.getOffsetHeight=function(){return fbjs_dom.get_obj(this).offsetHeight;};fbjs_dom.prototype.getAbsoluteLeft=function(){return elementX(fbjs_dom.get_obj(this));};fbjs_dom.prototype.getAbsoluteTop=function(){return elementY(fbjs_dom.get_obj(this));};fbjs_dom.prototype.getScrollHeight=function(){return fbjs_dom.get_obj(this).scrollHeight;};fbjs_dom.prototype.getScrollWidth=function(val){return fbjs_dom.get_obj(this).scrollWidth;};fbjs_dom.prototype.getScrollTop=function(){return fbjs_dom.get_obj(this).scrollTop;};fbjs_dom.prototype.setScrollTop=function(val){fbjs_dom.get_obj(this).scrollTop=val;return this;};fbjs_dom.prototype.getScrollLeft=function(){return fbjs_dom.get_obj(this).scrollLeft;};fbjs_dom.prototype.setScrollLeft=function(val){fbjs_dom.get_obj(this).scrollLeft=val;return this;};fbjs_dom.prototype.getTabIndex=function(){return fbjs_dom.get_obj(this).tabIndex;};fbjs_dom.prototype.setTabIndex=function(_L0){fbjs_dom.get_obj(this).tabIndex=_L0;return this;};fbjs_dom.prototype.getTitle=function(){return fbjs_dom.get_obj(this).title;};fbjs_dom.prototype.setTitle=function(_L0){fbjs_dom.get_obj(this).title=_L0;return this;};fbjs_dom.prototype.getRowSpan=function(){return fbjs_dom.get_obj(this).rowSpan;};fbjs_dom.prototype.setRowSpan=function(_L0){fbjs_dom.get_obj(this).rowSpan=_L0;return this;};fbjs_dom.prototype.getColSpan=function(){return fbjs_dom.get_obj(this).colSpan;};fbjs_dom.prototype.setColSpan=function(_L0){fbjs_dom.get_obj(this).colSpan=_L0;return this;};fbjs_dom.prototype.getName=function(){return fbjs_dom.get_obj(this).name;};fbjs_dom.prototype.setName=function(_L0){fbjs_dom.get_obj(this).name=_L0;return this;};fbjs_dom.prototype.getCols=function(){return fbjs_dom.get_obj(this).cols;};fbjs_dom.prototype.setCols=function(_L0){fbjs_dom.get_obj(this).cols=_L0;return this;};fbjs_dom.prototype.getRows=function(){return fbjs_dom.get_obj(this).rows;};fbjs_dom.prototype.setRows=function(_L0){fbjs_dom.get_obj(this).rows=_L0;return this;};fbjs_dom.prototype.getAccessKey=function(){return fbjs_dom.get_obj(this).accessKey;};fbjs_dom.prototype.setAccessKey=function(_L0){fbjs_dom.get_obj(this).accessKey=_L0;return this;};fbjs_dom.prototype.setDisabled=function(_L0){fbjs_dom.get_obj(this).disabled=_L0;return this;};fbjs_dom.prototype.getDisabled=function(){return fbjs_dom.get_obj(this).disabled;};fbjs_dom.prototype.setMaxLength=function(_L0){fbjs_dom.get_obj(this).maxLength=_L0;return this;};fbjs_dom.prototype.getMaxLength=function(){return fbjs_dom.get_obj(this).maxLength;};fbjs_dom.prototype.setReadOnly=function(_L0){fbjs_dom.get_obj(this).readOnly=_L0;return this;};fbjs_dom.prototype.getReadOnly=function(){return fbjs_dom.get_obj(this).readOnly;};fbjs_dom.prototype.setType=function(_L0){_L0=fbjs_sandbox.safe_string(_L0);fbjs_dom.get_obj(this).type=_L0;return this;};fbjs_dom.prototype.getType=function(){return fbjs_dom.get_obj(this).type;};fbjs_dom.prototype.getSelection=function(){var obj=fbjs_dom.get_obj(this);return DOM.getCaretPosition(obj);};fbjs_dom.prototype.setSelection=function(_L0,end){var obj=fbjs_dom.get_obj(this);DOM.setCaretPosition(obj,_L0,end);return this;};fbjs_dom.prototype.submit=function(){fbjs_dom.get_obj(this).submit();return this;};fbjs_dom.prototype.focus=function(){fbjs_dom.get_obj(this).focus();return this;};fbjs_dom.prototype.select=function(){fbjs_dom.get_obj(this).select();return this;};fbjs_dom.eventHandler=function(_L0){var e=(_L0 instanceof fbjs_event)?_L0:new fbjs_event(_L0?_L0:window.event,this[2]);if(e.ignore)return;var r=this[1].call(this[0],e);if(r===false)e.preventDefault();return fbjs_event.destroy(e);};fbjs_dom.prototype.addEventListener=function(_L0,_L1){_L0=fbjs_sandbox.safe_string(_L0.toLowerCase());if(!fbjs_main.allowed_events[_L0]){fbjs_console.error(_L0+' is not an allowed event');return false;}var _L2=fbjs_dom.get_data(this);var obj=_L2.obj;if(!_L2.events[_L0])_L2.events[_L0]=[];var _L4=null;var _L5=null;if(fbjs_sandbox.quicklingEnabled()){_L5=Event.listen(obj,_L0,_L4=fbjs_dom.eventHandler.bind([this,_L1,_L2.appid]));}else if(obj.addEventListener){obj.addEventListener(_L0,_L4=fbjs_dom.eventHandler.bind([this,_L1,_L2.appid]),false);}else if(obj.attachEvent)obj.attachEvent('on'+_L0,_L4=fbjs_dom.eventHandler.bind([this,_L1,_L2.appid]));_L2.events[_L0].push({func:_L1,handler:_L4,listener:_L5});return $FBJS.ref(this);};fbjs_dom.prototype.removeEventListener=function(_L0,_L1){_L0=_L0.toLowerCase();var _L2=fbjs_dom.get_data(this);var obj=_L2.obj;if(_L2.events[_L0])for(var i=0,il=_L2.events[_L0].length;i<il;i++)if(_L2.events[_L0][i].func==_L1){if(fbjs_sandbox.quicklingEnabled()){_L2.events[_L0][i].listener.remove();}else if(obj.removeEventListener){obj.removeEventListener(_L0,_L2.events[_L0][i].handler,false);}else if(obj.detachEvent)obj.detachEvent('on'+_L0,_L2.events[_L0][i].handler);_L2.events[_L0].splice(i,1);}if(!fbjs_sandbox.quicklingEnabled()&&obj['on'+_L0]==_L1)obj['on'+_L0]=null;return this;};fbjs_dom.prototype.listEventListeners=function(_L0){_L0=_L0.toLowerCase();var _L1=fbjs_dom.get_data(this);var _L2=[];if(_L1.events[_L0])for(var i=0,il=_L1.events[_L0].length;i<il;i++)_L2.push(_L1.events[_L0].func);if(_L1.obj['on'+_L0])_L2.push(_L1.obj['on'+_L0]);return _L2;};fbjs_dom.prototype.purgeEventListeners=function(_L0){_L0=_L0.toLowerCase();var _L1=fbjs_dom.get_data(this);var obj=_L1.obj;if(_L1.events[_L0])for(var i=0,il=_L1.events[_L0].length;i<il;i++)if(fbjs_sandbox.quicklingEnabled()){_L1.events[_L0][i].listener.remove();}else if(obj.removeEventListener){obj.removeEventListener(_L0,_L1.events[_L0][i].handler,false);}else if(obj.detachEvent)obj.detachEvent('on'+_L0,_L1.events[_L0][i].handler);if(!fbjs_sandbox.quicklingEnabled()&&obj['on'+_L0])obj['on'+_L0]=null;return this;};fbjs_dom.prototype.callSWF=function(_L0){var obj=fbjs_dom.get_data(this).obj;var _L2=new Array(arguments.length-1);for(var i=1;i<arguments.length;i++)_L2[i-1]=arguments[i];if(ua.ie()<8){var id=0;for(var i=0;i<obj.childNodes.length;i++)if(obj.childNodes[i].name=="fbjs")id=obj.childNodes[i].getAttribute("value");var _L5=window.so_swf_fbjs;}else{var id=obj.getAttribute("fbjs");var _L5=document.so_swf_fbjs;}if(_L5.length!==undefined)_L5=_L5[0];return _L5.callFlash(id,_L0,_L2);};function fbjs_fbml_dom(_L0,_L1){var _L2=fbjs_private.get(this);_L2.type=_L0;_L2.appid=_L1;}fbjs_fbml_dom.get_obj=function(_L0){var _L1=fbjs_private.get(_L0);if(!_L1.obj){_L1.obj=document.createElement('div');_L1.obj.className='__fbml_tag';}return _L1.obj;};fbjs_fbml_dom.render=function(_L0){var _L1=fbjs_private.get(_L0);if(_L1.rendered)return;if(!_L1.id)_L1.id='swf'+parseInt(Math.random()*999999);switch(_L1.type){case 'fb:swf':var _L2=new SWFObject(_L1.swf_src,_L1.id,_L1.width,_L1.height,['5.0.0'],_L1.bg_color?_L1.bg_color:'000000');var _L3={loop:true,quality:true,scale:true,align:true,salign:true};for(i in _L3)if(_L1[i])_L2.addParam(i,_L1[i]);_L2.addParam('wmode','transparent');_L2.addParam('allowScriptAccess','never');if(_L1.flash_vars)for(var i in _L1.flash_vars)_L2.addVariable(i,_L1.flash_vars[i]);var _L5=fbjs_sandbox.instances['a'+_L1.appid];if(_L5.validation_vars)for(var i in _L5.validation_vars)_L2.addVariable(i,_L5.validation_vars[i]);_L2.addVariable('fb_local_connection',_L5.bridgeHash);var _L6='_'+'swf'+parseInt(Math.random()*999999);_L2.addVariable('fb_fbjs_connection',_L6);_L2.addParam('fbjs',_L6);if(_L1.wait_for_click){var img=document.createElement('img');img.src=_L1.img_src;if(_L1.width)img.width=_L1.width;if(_L1.height)img.height=_L1.height;if(_L1.img_style)fbjs_dom.set_style(img,_L1.img_style);if(_L1.img_class)img.className=_L1.img_class;var _L8=document.createElement('a');_L8.href='#';_L8.onclick=function(){_L2.write(_L1.obj);return false;};_L8.appendChild(img);_L1.obj.appendChild(_L8);}else _L2.write(_L1.obj);break;}};fbjs_fbml_dom.prototype.setId=function(id){var _L1=fbjs_private.get(this);_L1.id=['app',_L1.appid,'_',id].join('');return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setSWFSrc=function(swf){var _L1=fbjs_private.get(this);swf=fbjs_sandbox.safe_string(swf);if(fbjs_dom.href_regex.test(swf)){_L1.swf_src=swf;}else fbjs_console.error(swf+' is not a valid swf');};fbjs_fbml_dom.prototype.setImgSrc=function(img){var _L1=fbjs_private.get(this);img=fbjs_sandbox.safe_string(img);if(fbjs_dom.href_regex.test(img)){_L1.img_src=img;}else fbjs_console.error(img+' is not a valid src');return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setWidth=function(_L0){var _L1=fbjs_private.get(this);_L1.width=(/\d+%?/.exec(_L0)||[]).pop();return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setHeight=function(_L0){var _L1=fbjs_private.get(this);_L1.height=(/\d+%?/.exec(_L0)||[]).pop();return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setImgStyle=function(_L0,_L1){var _L2=fbjs_private.get(this);var _L3=_L2.img_style?_L2.img_style:_L2.img_style={};if(typeof _L0=='string'){_L3[_L0]=_L1;}else for(var i in _L0)this.setImgStyle(i,_L0[i]);return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setImgClass=function(_L0){var _L1=fbjs_private.get(this);_L1.img_class=_L0;return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setFlashVar=function(key,val){var _L2=fbjs_private.get(this);var _L3=_L2.flash_vars?_L2.flash_vars:_L2.flash_vars={};_L3[key]=val;return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setSWFBGColor=function(bg){var _L1=fbjs_private.get(this);if(fbjs_dom.css_regex.text(bg)){_L1.bg_color=bg;}else fbjs_console.error(bg+' is not a valid background color.');return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setWaitForClick=function(_L0){var _L1=fbjs_private.get(this);_L1.wait_for_click=_L0;return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setLoop=function(val){var _L1=fbjs_private.get(this);_L1.loop=val;return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setQuality=function(val){var _L1=fbjs_private.get(this);_L1.quality=val;return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setScale=function(val){var _L1=fbjs_private.get(this);_L1.scale=val;return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setAlign=function(val){var _L1=fbjs_private.get(this);_L1.align=val;return $FBJS.ref(this);};fbjs_fbml_dom.prototype.setSAlign=function(val){var _L1=fbjs_private.get(this);_L1.salign=val;return $FBJS.ref(this);};function fbjs_event(_L0,_L1){if(!fbjs_event.hacks){fbjs_event.hacks=true;fbjs_event.should_check_double_arrows=ua.safari()&&(ua.safari()<500);fbjs_event.arrow_toggle={};}for(var i in fbjs_event.allowed_properties)this[i]=_L0[i];this.keyCode=this.keyCode||_L0.charCode;var _L3=null;if(_L0.target){_L3=_L0.target;}else if(_L0.srcElement)_L3=_L0.srcElement;if(_L3&&_L3.nodeType==3)_L3=_L3.parentNode;this.target=fbjs_dom.get_instance(_L3,_L1);var _L4=Vector2.getEventPosition(_L0);this.pageX=_L4.x;this.pageY=_L4.y;if(fbjs_event.should_check_double_arrows&&this.keyCode>=37&&this.keyCode<=40){fbjs_event.arrow_toggle[this.type]=!fbjs_event.arrow_toggle[this.type];if(fbjs_event.arrow_toggle[this.type])this.ignore=true;}fbjs_private.get(this).event=_L0;}fbjs_event.allowed_properties={type:true,ctrlKey:true,keyCode:true,metaKey:true,shiftKey:true};fbjs_event.prototype.preventDefault=function(){var _L0=fbjs_private.get(this);if(!_L0.prevented&&_L0.event.preventDefault){_L0.event.preventDefault();_L0.prevented=true;}_L0.return_value=false;};fbjs_event.prototype.stopPropagation=function(){var _L0=fbjs_private.get(this).event;if(_L0.stopPropagation){_L0.stopPropagation();}else _L0.cancelBubble=true;};fbjs_event.destroy=function(obj){var _L1=fbjs_private.get(obj).return_value;fbjs_private.remove(obj);delete obj.target;return _L1==undefined?true:_L1;};function fbjs_math(){}fbjs_math.prototype.abs=Math.abs;fbjs_math.prototype.acos=Math.acos;fbjs_math.prototype.asin=Math.asin;fbjs_math.prototype.atan=Math.atan;fbjs_math.prototype.atan2=Math.atan2;fbjs_math.prototype.ceil=Math.ceil;fbjs_math.prototype.cos=Math.cos;fbjs_math.prototype.exp=Math.exp;fbjs_math.prototype.floor=Math.floor;fbjs_math.prototype.log=Math.log;fbjs_math.prototype.max=Math.max;fbjs_math.prototype.min=Math.min;fbjs_math.prototype.pow=Math.pow;fbjs_math.prototype.random=Math.random;fbjs_math.prototype.round=Math.round;fbjs_math.prototype.sin=Math.sin;fbjs_math.prototype.sqrt=Math.sqrt;fbjs_math.prototype.tan=Math.tan;fbjs_math.prototype.valueOf=Math.valueOf;fbjs_math.prototype.E=Math.E;fbjs_math.prototype.LN2=Math.LN2;fbjs_math.prototype.LN10=Math.LN10;fbjs_math.prototype.LOG2E=Math.LOG2E;fbjs_math.prototype.PI=Math.PI;fbjs_math.prototype.SQRT1_2=Math.SQRT1_2;fbjs_math.prototype.SQRT2=Math.SQRT2;function fbjs_string(){}fbjs_string.prototype.fromCharCode=String.fromCharCode;function fbjs_date(){var _L0=function(){var ret=new Date();if(arguments.length)ret.setFullYear.apply(ret,arguments);return ret;};_L0.parse=Date.parse;return _L0;}function fbjs_regexp(){var _L0=function(){var ret=arguments.length?new RegExp(arguments[0],arguments[1]):new RegExp();return ret;};return _L0;}function fbjs_console(){}fbjs_console.error=function(_L0){if(typeof console!='undefined'&&console.error)console.error(_L0);};fbjs_console.render=function(obj){if(obj&&typeof obj.__priv!='undefined'){var _L1={};for(var i in obj)_L1[i]=obj[i];delete _L1.__priv;delete _L1.__private;for(var i in _L1)_L1[i]=fbjs_console.render(_L1[i]);var _L3=fbjs_private.get(obj);for(var i in _L3)_L1['PRIV_'+i]=_L3[i];if(obj.__private){var _L3=fbjs_private.get(obj.__private);for(var i in _L3)_L1['PRIV_'+i]=_L3[i];}return _L1;}else if(obj&&typeof obj.__instance!='undefined'&&obj.setInnerFBML){var _L1={};for(var i in obj)_L1[i]=obj[i];delete _L1.__instance;_L1.PRIV_obj=fbjs_dom.get_obj(obj);return _L1;}else if(obj&&typeof obj=='object'&&obj.ownerDocument!=document){var _L1=obj instanceof Array?[]:{};var _L4=false;for(var i in obj){obj instanceof Array?_L1.push(fbjs_console.render(obj[i])):_L1[i]=fbjs_console.render(obj[i]);if(_L1[i]!=obj[i])_L4=true;}return _L4?_L1:obj;}else return obj;};fbjs_console.render_args=function(_L0){var _L1=[];for(var i=0;i<_L0.length;i++)_L1[i]=fbjs_console.render(_L0[i]);return _L1;};if(typeof console!='undefined')for(var i in console)fbjs_console.prototype[i]=console[i];fbjs_console.prototype.debug=function(){if(typeof console!='undefined'&&console.debug)console.debug.apply(console,fbjs_console.render_args(arguments));};fbjs_console.prototype.log=function(){if(typeof console!='undefined'&&console.log)console.log.apply(console,fbjs_console.render_args(arguments));};fbjs_console.prototype.warn=function(){if(typeof console!='undefined'&&console.warn)console.warn.apply(console,fbjs_console.render_args(arguments));};fbjs_console.prototype.error=function(){if(typeof console!='undefined'&&console.error)console.error.apply(console,fbjs_console.render_args(arguments));};fbjs_console.prototype.assert=function(){if(typeof console!='undefined'&&console.assert)console.assert.apply(console,fbjs_console.render_args(arguments));};fbjs_console.prototype.dir=function(){if(typeof console!='undefined'&&console.dir)console.dir.apply(console,fbjs_console.render_args(arguments));};fbjs_console.prototype.group=function(){if(typeof console!='undefined'&&console.group)console.group.apply(console,fbjs_console.render_args(arguments));};fbjs_console.prototype.dirxml=function(obj){if(typeof console!='undefined'&&console.dirxml)if(obj.get_obj){console.dirxml(obj.get_obj(obj));}else console.dirxml(obj);};function fbjs_ajax(_L0){var _L1=function(){};for(var i in fbjs_ajax.prototype)_L1.prototype[i]=fbjs_ajax.prototype[i];var _L3=fbjs_private.get(_L1.prototype.__private={});_L3.appid=_L0;_L3.sandbox=fbjs_sandbox.instances['a'+_L0];_L3.request=null;_L1.JSON=fbjs_ajax.JSON;_L1.FBML=fbjs_ajax.FBML;_L1.RAW=fbjs_ajax.RAW;return _L1;}fbjs_ajax.proxy_url='/fbml/fbjs_ajax_proxy.php';fbjs_ajax.RAW=0;fbjs_ajax.JSON=1;fbjs_ajax.FBML=2;fbjs_ajax.STATUS_WAITING_FOR_USER=1;fbjs_ajax.STATUS_WAITING_FOR_SERVER=2;fbjs_ajax.STATUS_IDLE=0;fbjs_ajax.prototype.responseType=0;fbjs_ajax.prototype.useLocalProxy=false;fbjs_ajax.prototype.requireLogin=false;fbjs_ajax.prototype.status=fbjs_ajax.STATUS_IDLE;fbjs_ajax.tokencount=0;fbjs_ajax.tokens=new Object();fbjs_ajax.flash_success=function(res,t){fbjs_ajax.tokens[t].success(res);};fbjs_ajax.flash_fail=function(t){fbjs_ajax.tokens[t].fail();};fbjs_ajax.prototype.post=function(url,_L1){var _L2=fbjs_private.get(this.__private);var _L3=_L2.appid;var _L4=ge('post_form_id');if(!_L2.sandbox.data.installed&&this.requireLogin){this.status=fbjs_ajax.STATUS_WAITING_FOR_USER;FBML.requireLogin(_L3,function(){this.status=fbjs_ajax.STATUS_READY;_L2.sandbox.data.installed=true;this.post(url,_L1);}.bind(this),fbjs_ajax.errorHandler.bind(this));return;}if(this.useLocalProxy&&window.localProxy.callUrl&&this.responseType!=fbjs_ajax.FBML){fbjs_ajax.tokencount++;fbjs_ajax.tokens[fbjs_ajax.tokencount]={"success":function(e){this.status=fbjs_ajax.STATUS_READY;this.ondone(e);}.bind(this),"fail":fbjs_ajax.errorHandler.bind(this)};var _L5=(this.responseType==fbjs_ajax.JSON);var _L6=localProxy.callUrl(url+'?query='+_L1,_L5,"fbjs_ajax.flash_success","fbjs_ajax.flash_fail",fbjs_ajax.tokencount);if(!_L6)(fbjs_ajax.errorHandler.bind(this))();}else{var _L7={url:url,query:_L1,type:this.responseType,require_login:this.requireLogin,fb_mockajax_context:fbjs_sandbox.instances['a'+_L3].contextd,fb_mockajax_context_hash:fbjs_sandbox.instances['a'+_L3].context,appid:_L3};this.status=fbjs_ajax.STATUS_WAITING_FOR_SERVER;_L2.request=new AsyncRequest();_L2.request.setURI(fbjs_ajax.proxy_url).setData(_L7).setHandler(fbjs_ajax.doneHandler.bind(this)).setErrorHandler(fbjs_ajax.errorHandler.bind(this)).setTransportErrorHandler(fbjs_ajax.errorHandler.bind(this));if(!this.requireLogin){_L2.request.setReadOnly(true);_L2.request.specifiesWriteRequiredParams();}_L2.request.send();}};fbjs_ajax.prototype.abort=function(){var _L0=fbjs_private.get(this.__private);if(_L0.request)_L0.request.setHandler(bagofholding).setErrorHandler(bagofholding).setTransportErrorHandler(bagofholding);this.status=fbjs_ajax.STATUS_READY;};fbjs_ajax.doneHandler=function(_L0){if(!(this.ondone instanceof Function))this.ondone=function(){};this.status=fbjs_ajax.STATUS_READY;var _L1=_L0.getPayload();var _L2=_L1.data;switch(_L1.type){case fbjs_ajax.RAW:this.ondone(_L2);break;case fbjs_ajax.JSON:fbjs_ajax.make_fbjs_recursive(_L2);this.ondone(_L2);break;case fbjs_ajax.FBML:this.ondone(new fbjs_fbml_string(_L2));break;}};fbjs_ajax.errorHandler=function(){this.status=fbjs_ajax.STATUS_READY;if(this.onerror){this.onerror();}else fbjs_console.error('There was an uncaught Ajax error. Please attach on onerror handler to properly handle failures.');};fbjs_ajax.make_fbjs_recursive=function(obj){for(var i in obj)if(i.substring(0,5)=='fbml_'){obj[i]=new fbjs_fbml_string(obj[i]);}else if(typeof obj[i]=='object')fbjs_ajax.make_fbjs_recursive(obj[i]);};function fbjs_dialog(_L0){var _L1=function(_L3){var _L4=fbjs_private.get(this);switch(_L3){case fbjs_dialog.DIALOG_CONTEXTUAL:_L4.dialog=new ContextualDialog();break;case fbjs_dialog.DIALOG_POP:default:_L4.dialog=new Dialog();break;}_L4.dialog.setImmediateRendering(true).setClassName('app_content_'+_L0).setStackable(true);_L4.type=_L3;_L4.ready=false;};for(var i in fbjs_dialog.prototype)_L1.prototype[i]=fbjs_dialog.prototype[i];_L1.DIALOG_POP=fbjs_dialog.DIALOG_POP;_L1.DIALOG_CONTEXTUAL=fbjs_dialog.DIALOG_CONTEXTUAL;return _L1;}fbjs_dialog.DIALOG_POP=1;fbjs_dialog.DIALOG_CONTEXTUAL=2;fbjs_dialog.onconfirm=function(){var _L0=true;if(this.onconfirm)if(this.onconfirm()===false)_L0=false;if(_L0)this.hide();return false;};fbjs_dialog.oncancel=function(){var _L0=true;if(this.oncancel)if(this.oncancel()===false)_L0=false;if(_L0)this.hide();return false;};fbjs_dialog.build_dialog=function(){var _L0=fbjs_private.get(this);if(!_L0.ready){_L0.dialog._buildDialog();_L0.ready=true;}};fbjs_dialog.prototype.setStyle=function(_L0,_L1){var _L2=fbjs_private.get(this);fbjs_dialog.build_dialog.call(this);var obj=null;if(_L0=='width'||_L0=='height'){obj=_L2.type==fbjs_dialog.DIALOG_CONTEXTUAL?_L2.dialog._frame:_L2.dialog._frame.parentNode;}else obj=_L2.dialog._content;fbjs_dom.set_style(obj,_L0,_L1);return $FBJS.ref(this);};fbjs_dialog.prototype.showMessage=function(_L0,_L1,_L2){this.showChoice(_L0,_L1,_L2,false);return $FBJS.ref(this);};fbjs_dialog.prototype.showChoice=function(_L0,_L1,_L2,_L3){var _L4=fbjs_private.get(this).dialog;fbjs_dialog.build_dialog.call(this);var _L5=[];var _L6=_L2?fbjs_fbml_string.get(_L2):_tx("Iawn");_L5.push({label:_L6,name:'button1',handler:bind(this,fbjs_dialog.onconfirm)});if(_L3||_L3===undefined){var _L7=_L3?fbjs_fbml_string.get(_L3):_tx("Canslo");_L5.push({label:_L7,name:'button2',handler:bind(this,fbjs_dialog.oncancel)});}_L4.setTitle(fbjs_fbml_string.get(_L0)).setBody(fbjs_fbml_string.get(_L1)).setButtons(_L5).show();_L4._content.id='app_content_'+gen_unique();return $FBJS.ref(this);};fbjs_dialog.prototype.setContext=function(_L0){var _L1=fbjs_private.get(this).dialog;var obj=fbjs_dom.get_obj(_L0);_L1.setContext(obj);return $FBJS.ref(this);};fbjs_dialog.prototype.hide=function(){var _L0=fbjs_private.get(this).dialog;_L0.hide();return $FBJS.ref(this);};function fbjs_animation(){var _L0=function(obj){if(this==window){return new arguments.callee(fbjs_dom.get_obj(obj));}else fbjs_private.get(this).animation=new animation(obj);};for(var i in fbjs_animation.prototype)_L0.prototype[i]=fbjs_animation.prototype[i];_L0.ease={begin:animation.ease.begin,end:animation.ease.end,both:animation.ease.both};return _L0;}fbjs_animation.prototype.stop=function(){fbjs_private.get(this).animation.stop();return this;};fbjs_animation.prototype.to=function(_L0,val){fbjs_private.get(this).animation.to(_L0,val);return this;};fbjs_animation.prototype.by=function(_L0,val){fbjs_private.get(this).animation.by(_L0,val);return this;};fbjs_animation.prototype.from=function(_L0,val){fbjs_private.get(this).animation.from(_L0,val);return this;};fbjs_animation.prototype.duration=function(_L0){fbjs_private.get(this).animation.duration(_L0);return this;};fbjs_animation.prototype.checkpoint=function(_L0,_L1){fbjs_private.get(this).animation.checkpoint(_L0,typeof _L1=='function'?bind(this,_L1):null);return this;};fbjs_animation.prototype.ondone=function(_L0){if(typeof _L0=='function'){fbjs_private.get(this).animation.checkpoint(bind(this,_L0));return this;}};fbjs_animation.prototype.blind=function(){fbjs_private.get(this).animation.blind();return this;};fbjs_animation.prototype.show=function(){fbjs_private.get(this).animation.show();return this;};fbjs_animation.prototype.hide=function(){fbjs_private.get(this).animation.hide();return this;};fbjs_animation.prototype.ease=function(_L0){fbjs_private.get(this).animation.ease(_L0);return this;};fbjs_animation.prototype.go=function(){fbjs_private.get(this).animation.go();return this;};function fbjs_livemessage(_L0){var _L1=function(_L3,_L4){if(!_L3)throw ('Parameter "event_name" must be non-empty.');var _L5=fbjs_private.get(this);_L5.appid=_L0;_L5.event_name=_L3;_L5.send_success_handler=null;_L5.send_error_handler=null;_L5.livemessage=new LiveMessageReceiver(_L3).setAppId(_L0).setHandler(_L4).register();};for(var i in fbjs_livemessage.prototype)_L1.prototype[i]=fbjs_livemessage.prototype[i];return _L1;}fbjs_livemessage.prototype.send=function(_L0,_L1){if(!_L0)throw ('Parameter "recipient" must be non-empty.');var _L2=fbjs_private.get(this);new AsyncRequest().setURI('/fbml/ajax/livemessage_send.php').setData({app_id:_L2.appid,recipient:_L0,event_name:_L2.event_name,message:JSON.encode(_L1)}).setMethod('POST').setHandler(function(_L3){payload=_L3.getPayload();if(payload.error_code){var _L4=_L2.send_error_handler;if(_L4)_L4(payload.error_code,payload.error_msg,_L0,_L1);}else{var _L5=_L2.send_success_handler;if(_L5)_L5(_L0,_L1);}}).setErrorHandler(function(_L3){var _L4=_L2.send_error_handler;if(_L4)_L4(_L3.getError(),_L3.getErrorSummary(),_L0,_L1);}).send();};fbjs_livemessage.prototype.setSendSuccessHandler=function(_L0){var _L1=fbjs_private.get(this);_L1.send_success_handler=_L0;return $FBJS.ref(this);};fbjs_livemessage.prototype.setSendErrorHandler=function(_L0){var _L1=fbjs_private.get(this);_L1.send_error_handler=_L0;return $FBJS.ref(this);};fbjs_livemessage.prototype.setShutdownHandler=function(_L0){var _L1=fbjs_private.get(this);_L1.livemessage.setShutdownHandler(_L0);return $FBJS.ref(this);};fbjs_livemessage.prototype.setRestartHandler=function(_L0){var _L1=fbjs_private.get(this);_L1.livemessage.setRestartHandler(_L0);return $FBJS.ref(this);};function fbjs_fbml_string(_L0,js){_L0=HTML(_L0);if(js)_L0.setAction(js);fbjs_private.get(this).htmlstring=_L0;}fbjs_fbml_string.get=function(_L0){if(_L0 instanceof fbjs_fbml_string){return fbjs_private.get(_L0).htmlstring.toString();}else return htmlspecialchars(fbjs_sandbox.safe_string(_L0));};fbjs_private=new Object();fbjs_private.len=0;fbjs_private.get=function(_L0){if(typeof _L0!='object')return null;if(_L0==window)throw ('Invalid object supplied');if(_L0.__priv==undefined){var _L1={data:{},instance:_L0};_L0.__priv=fbjs_private.len;fbjs_private.len++;_L1.instance=_L0;fbjs_private[_L0.__priv]=_L1;return _L1.data;}else if(typeof _L0.__priv=='number'){var _L1=fbjs_private[_L0.__priv];if(_L1.instance==_L0){return _L1.data;}else throw ('Invalid object supplied to fbjs_private.get');}else throw ('Invalid object supplied to fbjs_private.get');};fbjs_private.remove=function(_L0){if(_L0.__priv!=undefined)if(fbjs_private[_L0.__priv].instance==_L0){delete fbjs_private[_L0.__priv];delete _L0.__priv;}};function fbjs_fbml_sanitize(appid){this.appid=appid;this.main=eval('a'+appid+'_document');return this;}fbjs_fbml_sanitize.prototype.parseFBML=function(_L0){if(window.ActiveXObject){var doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(_L0);if(doc.parseError.reason){fbjs_console.error(doc.parseError.reason);return null;}}else{var _L2=new DOMParser();var doc=_L2.parseFromString(_L0,"text/xml");if(doc.documentElement.nodeName=='parsererror'){fbjs_console.error(doc.documentElement.textContent);return null;}}var x=doc.documentElement;return this.processElement(x);};fbjs_fbml_sanitize.prototype.processElement=function(_L0){if(_L0.nodeType==3){return new fbjs_dom(document.createTextNode(_L0.nodeValue),this.appid);}else if(_L0.nodeType!=1)return null;var _L1=this.main.createElement(_L0.nodeName);if(!_L1)return null;for(var x=0;x<_L0.attributes.length;x++){var _L3=_L0.attributes[x];var _L4=_L3.nodeName;if(_L4=='style'){var _L5=_L3.nodeValue.split(";");for(var i=0;i<_L5.length;i++)if(_L5[i]!=''){var _L7=_L5[i].split(":");_L1.setStyle(_L7[0],_L7[1].replace(/^\s+|\s+$/g,''));}}else{setter=fbjs_dom.attr_setters[_L4];if(_L1[setter])_L1[setter](_L3.nodeValue);}}for(var x=0;x<_L0.childNodes.length;x++){var _L8=_L0.childNodes[x];var ch=this.processElement(_L8);if(ch)_L1.appendChild(ch);}return _L1;};

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