/*    HTTP Host:  static.ak.connect.facebook.com                               */
/*    Generated:  January 11th 2010 10:03:46 PM PDT                            */
/*      Machine:  10.17.40.159                                                 */
/*       Source:  Local/Global Cache                                           */
/*     Location:  JIT Construction: v211448                                    */
/*       Locale:  en_US                                                        */
/*   Components:  js/connect/core/FB/monitorWrapper.js:r210808,js/connect/core/FB/prelude.js:r209402,js/connect/FBIntern/HostName.js:r209402,js/connect/FBIntern/HostInfo.js:r209402,js/connect/FBIntern/AppInfo.js:r209402,js/connect/FB/Size.js:r209402,js/connect/FB/Point.js:r209402,js/connect/core/FB/log.js:r209402,js/connect/core/FB/class.js:r209402,js/connect/core/FB/Type.js:r209402,js/connect/core/FB/Debug.js:r209402,js/connect/core/FB/ArrayEnumerator.js:r209402,js/connect/FBIntern/Uri.js:r209402,js/connect/FBIntern/FbGlobals.js:r209402,js/connect/core/FB/Sys.js:r209402,js/connect/FBIntern/Utility.js:r209402,js/connect/FB/json.js:r209402,js/connect/FB/XdComm/PageRelation.js:r209402,js/connect/FB/XdComm/_packet.js:r209402,js/connect/FB/XdComm/_packetType.js:r209402,js/connect/FB/XdComm/_sendChannel.js:r209402,js/connect/FB/XdComm/EndPoint.js:r209402,js/connect/core/FB/StringBuilder.js:r209402,js/connect/FB/XdComm/_fragDataHolder.js:r209402,js/connect/FB/XdComm/_receiveChannel.js:r209402,js/connect/core/FB/HiddenContainer.js:r209402,js/connect/FB/XdComm/PacketDataFormat.js:r209402,js/connect/core/FB/Enum.js:r209402,js/connect/FB/Waitable.js:r209402,js/connect/FB/SimpleWaitable.js:r209402,js/connect/FBIntern/Flash.js:r209402,js/connect/core/FB/Loader.js:r209402,js/connect/core/FB/Delegate.js:r209402,js/connect/core/FB/Bootstrap.js:r209402,js/connect/FB/XdComm/Server.js:r209402,js/connect/FB/XdComm/XdRpcServer.js:r209402,js/connect/FB/XdComm/XdRpcClient.js:r209402,js/connect/FBIntern/CacheData.js:r209402 */

if (!window.FB) {FB = {};} if(!FB.dynData) { FB.dynData = {"site_vars":{"canvas_client_compute_content_size_method":1,"use_postMessage":1,"use_xdProxy":0,"monitor_usage_regex":"somethingtoputhere.com|huffingtonpost.com|lala.com","monitor_usage_rate":0.05,"enable_custom_href":0},"resources":{"base_url_format":"http:\/\/{0}.connect.facebook.com\/","base_cdn_url":"http:\/\/static.ak.fbcdn.net\/","api_channel":203625,"api_server":203625,"www_channel":203625,"xd_proxy":205601,"xd_comm_swf_url":"http:\/\/static.ak.fbcdn.net\/swf\/XdComm.swf","share_button":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zAB5S\/hash\/4273uaqa.gif","login_img_dark_small_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zF1W2\/hash\/a969rwcd.gif","login_img_dark_medium_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zEF9L\/hash\/156b4b3s.gif","login_img_dark_medium_long":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zBIU2\/hash\/85b5jlja.gif","login_img_dark_large_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z1UX3\/hash\/a22m3ibb.gif","login_img_dark_large_long":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z7SXD\/hash\/8mzymam2.gif","login_img_light_small_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zDGBW\/hash\/8t35mjql.gif","login_img_light_medium_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z38X1\/hash\/6ad3z8m6.gif","login_img_light_medium_long":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zB6N8\/hash\/4li2k73z.gif","login_img_light_large_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zA114\/hash\/7e3mp7ee.gif","login_img_light_large_long":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z4Z4Q\/hash\/8rc0izvz.gif","login_img_white_small_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z900E\/hash\/di0gkqrt.gif","login_img_white_medium_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z10GM\/hash\/cdozw38w.gif","login_img_white_medium_long":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zBT3E\/hash\/338d3m67.gif","login_img_white_large_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zCOUP\/hash\/8yzn0wu3.gif","login_img_white_large_long":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zC6AR\/hash\/5pwowlag.gif","logout_img_small":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z2Y31\/hash\/cxrz4k7j.gif","logout_img_medium":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zAD8D\/hash\/4lsqsd7l.gif","logout_img_large":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zB36N\/hash\/4515xk7j.gif"}};} if (!FB.locale) {FB.locale = "en_US";} if (!FB.localeIsRTL) {FB.localeIsRTL = false;}


if (!window.FB) {FB = {};} if(!FB.dynData) { FB.dynData = {"site_vars":{"canvas_client_compute_content_size_method":1,"use_postMessage":1,"use_xdProxy":0,"monitor_usage_regex":"somethingtoputhere.com|huffingtonpost.com|lala.com","monitor_usage_rate":0.05,"enable_custom_href":0},"resources":{"base_url_format":"http:\/\/{0}.connect.facebook.com\/","base_cdn_url":"http:\/\/static.ak.fbcdn.net\/","api_channel":203625,"api_server":203625,"www_channel":203625,"xd_proxy":205601,"xd_comm_swf_url":"http:\/\/static.ak.fbcdn.net\/swf\/XdComm.swf","share_button":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zAB5S\/hash\/4273uaqa.gif","login_img_dark_small_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zF1W2\/hash\/a969rwcd.gif","login_img_dark_medium_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zEF9L\/hash\/156b4b3s.gif","login_img_dark_medium_long":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zBIU2\/hash\/85b5jlja.gif","login_img_dark_large_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z1UX3\/hash\/a22m3ibb.gif","login_img_dark_large_long":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z7SXD\/hash\/8mzymam2.gif","login_img_light_small_short":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zDGBW\/hash\/8t35mjql.gif","login_img_light_medium_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z38X1\/hash\/6ad3z8m6.gif","login_img_light_medium_long":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zB6N8\/hash\/4li2k73z.gif","login_img_light_large_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zA114\/hash\/7e3mp7ee.gif","login_img_light_large_long":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/z4Z4Q\/hash\/8rc0izvz.gif","login_img_white_small_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z900E\/hash\/di0gkqrt.gif","login_img_white_medium_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z10GM\/hash\/cdozw38w.gif","login_img_white_medium_long":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zBT3E\/hash\/338d3m67.gif","login_img_white_large_short":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zCOUP\/hash\/8yzn0wu3.gif","login_img_white_large_long":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zC6AR\/hash\/5pwowlag.gif","logout_img_small":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/z2Y31\/hash\/cxrz4k7j.gif","logout_img_medium":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/zAD8D\/hash\/4lsqsd7l.gif","logout_img_large":"http:\/\/b.static.ak.fbcdn.net\/rsrc.php\/zB36N\/hash\/4515xk7j.gif"}};} if (!FB.locale) {FB.locale = "en_US";} if (!FB.localeIsRTL) {FB.localeIsRTL = false;}
if(!window.FB)FB={};if(!FB.Monitor)FB.Monitor={wrapObject:function(a,b,f){if(typeof(a)!="object")return a;if(!FB.Monitor.loggingEnabled())return a;if(b=='FB.Debug'||b=='FB.HiddenContainer'||b=='FB.XdComm.Server'||b.indexOf('FBIntern')==0)return a;for(var d in a){var c=a[d];if(!a.hasOwnProperty(d)||typeof(c)!='function'||c.wrapped)continue;var e={containerName:b,functionName:d};a[d]=FB.Monitor._monitorWrapper(c,a,f,e);a[d].wrapped=true;}return a;},disableLogging:function(){FB.Monitor.loggingEnabledCache=false;},loggingEnabled:function(){if(FB.Monitor.loggingEnabledCache===null){var c=FB.dynData&&FB.dynData.site_vars&&FB.dynData.site_vars.monitor_usage_regex;if(!c){FB.Monitor.loggingEnabledCache=false;}else{var a=new RegExp(c);var b=FB.dynData.site_vars.monitor_usage_rate;FB.Monitor.loggingEnabledCache=a.test(document.domain)?(Math.random()/b)<1:false;}}return FB.Monitor.loggingEnabledCache;},externalCallback:function(a){if(typeof(a)!='function')return a;return function(){var d=FB.Monitor.internalCallStackDepth;FB.Monitor.internalCallStackDepth=0;var b=Array.prototype.slice.call(arguments);var c=a.apply(this,b);FB.Monitor.internalCallStackDepth=d;return c;};},_monitorWrapper:function(b,a,d,c){return function(){var e=Array.prototype.slice.call(arguments);context=d?this:(a||window);c=c||{containerName:'unknown',functionName:'unknown'};if(FB.Monitor.internalCallStackDepth==0)if(c.functionName.substr(0,1)!='_')FB.Monitor.logFunction(c,e);++FB.Monitor.internalCallStackDepth;var f=b.apply(context,e);--FB.Monitor.internalCallStackDepth;return f;};},logFunction:function(e,c){var b=[];for(var d=0;d<c.length;d++){var a=c[d];b[d]=a?a.toString():a;}FB.Monitor.log("functions",e.containerName+"."+e.functionName,b);},logXFBML:function(c){var b={};for(var d=0;d<c.attributes.length;++d){var a=c.attributes[d];if(a.specified!==false&&a.nodeName&&a.nodeValue&&a.nodeName!="class")b[a.nodeName]=a.nodeValue.toString();}var e=c.nodeName.toLowerCase();FB.Monitor.log("tags",e,b);},log:function(b,d,a){var c={name:d,args:a};FB.Monitor.loggingQueue[b].push(c);if(!FB.Monitor.pendingTimer){setTimeout(FB.Monitor.send,FB.Monitor.TIMER_INTERVAL);FB.Monitor.pendingTimer=true;}},clearQueues:function(){var a=FB.Monitor.loggingQueue;FB.Monitor.pendingTimer=false;FB.Monitor.loggingQueue={tags:[],functions:[]};return a;},send:function(){if(FB.MonitorSender){FB.bind(FB.MonitorSender.send)();}else{FB.Monitor.TIMER_INTERVAL=FB.Monitor.TIMER_INTERVAL*1.5;setTimeout(FB.Monitor.send,FB.Monitor.TIMER_INTERVAL);}},TIMER_INTERVAL:6*1000,internalCallStackDepth:0,loggingQueue:{tags:[],functions:[]},pendingTimer:false,loggingEnabledCache:null};
if(!window.FB)FB={};FB.forEach=function(c,a,f){if(Object.prototype.toString.apply(c)==='[object Array]'){if(c.forEach){c.forEach(a);}else for(var b=0,e=c.length;b<e;b++)a(c[b],b,c);}else for(var d in c)if(f||c.hasOwnProperty(d))a(c[d],d,c);};FB.copy=function(c,b,a){FB.forEach(b,function(e,d){if(a||typeof c[d]==='undefined')c[d]=e;});};FB.copy(FB,{$:function(a){return document.getElementById(a);},TypeLoader:{NOTIFY:{},LOADED_MODULES:{},LOADED_CLASSES:{},resolve:function(f,e,a){for(var b=0,c=e.length;b<c;b++){var d=e[b];if(d==='')continue;if(typeof f[d]==='undefined')if(a){f[d]={};}else return false;f=f[d];}return f;},provide:function(c,b,a){FB.Monitor.wrapObject(b,c,false);var d=this.resolve(window,c.split('.'),true);if(a||!this.LOADED_MODULES[c]){FB.copy(d,b,true);if(b._onLoad)d._onLoad();}this.LOADED_MODULES[c]=true;},subclass:function(e,a,i){if(this.LOADED_CLASSES[e])return;if(a!=='FB.Class'&&!this.LOADED_CLASSES[a]){FB.Log.debug('"'+e+'" needs to wait for "'+a+'"');var j=FB.redo(arguments,this);this.NOTIFY[a]?this.NOTIFY[a].push(j):this.NOTIFY[a]=[j];return;}var b=this.resolve(window,a.split('.')),f=b.extend(i),g=this.NOTIFY[e],h=e.split('.'),d=this.resolve(window,h,true),c=h.pop();FB.Monitor.wrapObject(f.prototype,e,true);FB.Monitor.wrapObject(f,e,false);FB.copy(f,d);this.resolve(window,h)[c]=f;this.LOADED_CLASSES[e]=true;if(g){FB.forEach(g,function(k){k();});delete this.NOTIFY[e];}}},bind:function(){var a=Array.prototype.slice.call(arguments),c=a.shift(),b=a.shift();var d=function(){++FB.Monitor.internalCallStackDepth;var e=c.apply(b,a.concat(Array.prototype.slice.call(arguments)));--FB.Monitor.internalCallStackDepth;return e;};d._targets=[b,c];return d;},redo:function(a,c){var b=Array.prototype.slice.call(a);b.unshift(c);b.unshift(a.callee);return FB.bind.apply(FB,b);}});FB.provide=FB.bind(FB.TypeLoader.provide,FB.TypeLoader);FB.subclass=FB.bind(FB.TypeLoader.subclass,FB.TypeLoader);
FB.provide('FBIntern.HostName',{IE:0,MOZILLA:1,SAFARI:2,OPERA:3,OTHER:4});
FB.subclass('FBIntern.HostInfo','FB.Class',{init:function(){var b=window.navigator.userAgent.toLowerCase();var a;var d=null;if((a=b.indexOf('opera'))>=0){this._hostName=FBIntern.HostName.OPERA;}else if((a=b.indexOf('msie'))>=0){this._hostName=FBIntern.HostName.IE;d=b.substr(a+5);}else if((a=b.indexOf('firefox'))>=0){this._hostName=FBIntern.HostName.MOZILLA;d=b.substr(a+8);}else if((a=b.indexOf('safari'))>=0){this._hostName=FBIntern.HostName.SAFARI;d=b.substr(a+7);}else if((a=b.indexOf('gecko'))>=0){this._hostName=FBIntern.HostName.MOZILLA;d=window.navigator.appVersion;}else this._hostName=FBIntern.HostName.OTHER;if(d){var c=parseFloat(d);this.majorVersion=parseInt(c);if((a=d.indexOf('.'))>=0)this.minorVersion=parseInt(d.substr(a+1));}},get_hostName:function(){return this._hostName;},majorVersion:0,minorVersion:0,_hostName:0});
FB.subclass('FBIntern.AppInfo','FB.Class',{init:function(){this._hostInfo=new FBIntern.HostInfo();},get_hostInfo:function(){return this._hostInfo;},_hostInfo:null});FB.provide('FBIntern.AppInfo',{_onLoad:function(){FBIntern.AppInfo._current=null;},get_singleton:function(){if(!FBIntern.AppInfo._current)FBIntern.AppInfo._current=new FBIntern.AppInfo();return FBIntern.AppInfo._current;}});
FB._create_Size=function(c,a){var b={};b.w=c;b.h=a;return b;};
FB._create_Point=function(b,c){var a={};a.x=b;a.y=c;return a;};
FB.provide('FB.Log',{level:3,Level:{DEBUG:3,INFO:2,WARNING:1,ERROR:0},_helper:function(){var a=Array.prototype.slice.call(arguments),c=a.shift(),b=a.shift();if(this.level>=b&&window.console)(console[c]||console.log).apply(console,a);}});FB.provide('FB.Log',{debug:FB.bind(FB.Log._helper,FB.Log,'debug',FB.Log.Level.DEBUG),info:FB.bind(FB.Log._helper,FB.Log,'info',FB.Log.Level.INFO),warn:FB.bind(FB.Log._helper,FB.Log,'warn',FB.Log.Level.WARNING),error:FB.bind(FB.Log._helper,FB.Log,'error',FB.Log.Level.ERROR)},true);
(function(){var b=false,a=/xyz/.test(function(){xyz;})?/\b_super\b/:/.*/;FB.Class=function(){};FB.Class.extend=function(e){var d=this.prototype;b=true;var f=new this();b=false;FB.forEach(e,function(h,g){f[g]=typeof h==="function"&&typeof d[g]==="function"&&a.test(h)?(function(j,i){return function(){var l=this._super;this._super=d[j];var k=i.apply(this,arguments);this._super=l;return k;};})(g,h):h;});var c=function(){if(!b){var g;if(this instanceof c){g=this;}else{b=true;g=new c();b=false;}if(g.init)g.init.apply(g,arguments);return g;}};c.prototype=f;c.constructor=c;c.extend=FB.Class.extend;return c;};})();
if(!window.FB)FB={};if(!FB.Type){FB.Type={createNamespace:function(b){var d=window;var c=b.split('.');for(var a=0;a<c.length;a++){var f=c[a];var e=d[f];if(!e)d[f]=e={};d=e;}return d;},createEnum:function(e,c,d){if(this.getObj(e))return;var a=function(){};a.prototype=c;for(var b in c)a[b]=c[b];if(d)a.__flags=true;this.setObj(e,a);},createClass2:function(cls,baseType){if(baseType&&typeof(baseType)=="string")baseType=eval(baseType);cls.prototype.constructor=cls;this.extend(cls,FB.Type.Methods);cls.__baseType=baseType||Object;if(baseType)cls.__basePrototypePending=true;},setObj:function(fullName,value){var i=fullName.lastIndexOf('.');var objName;var scope=window;if(i>0){var ns=fullName.substring(0,i);this.createNamespace(ns);objName=fullName.substring(i+1);scope=eval(ns);}else objName=fullName;scope[objName]=value;},getObj:function(b){var d=window;var c=b.split('.');for(var a=0;a<c.length;a++){var e=c[a];d=d[e];if(!d)break;}return d;},createClass:function(a,b){if(this.getObj(a))return;if(arguments.length==1&&typeof(a)!="string"){return this._createClass(a);}else this.setObj(a,this._createClass(b));},_createClass:function(b){var a=b.ctor||function(){};if(b.static_ctor)this.addStaticInit(b.static_ctor);if(b.instance)a.prototype=b.instance;if(b['static'])this.extend(a,b['static']);this.createClass2(a,b.base);return a;},addStaticInit:function(a){if(!FB.Type._pendingInits)FB.Type._pendingInits=[];FB.Type._pendingInits[FB.Type._pendingInits.length]=a;window.setTimeout(FB.Type.runPendingInits,0);},runPendingInits:function(){if(FB.Type._pendingInits){var b=FB.Type._pendingInits;FB.Type._pendingInits=null;var a=b.length;for(var c=0;c<a;c++)b[c]();}},extend:function(a,c){for(var b in c)a[b]=c[b];return a;},getInstanceType:function(a){return a.constructor;}};FB.Type.Methods={setupBase:function(){if(this.__basePrototypePending){var a=this.__baseType;if(a.__basePrototypePending)a.setupBase();for(var b in a.prototype){var c=a.prototype[b];if(!this.prototype[b])this.prototype[b]=c;}delete this.__basePrototypePending;}},constructBase:function(b,a){if(this.__basePrototypePending)this.setupBase();if(!a){this.__baseType.apply(b);}else this.__baseType.apply(b,a);},callBase:function(c,d,a){var b=this.__baseType.prototype[d];if(!a){return b.apply(c);}else return b.apply(c,a);},get_baseType:function(){return this.__baseType||null;}};}
FB.provide('FB.Debug',{logLevel:0,assert:function(a,b){if(FB.Debug.logLevel>0&&!a){b='Assert failed: '+b;if(confirm(b+'\r\n\r\nBreak into debugger?'))FB.Debug._fail(b);}},writeLine:function(a){if(FB.Debug.logLevel>0)if(window.Debug&&window.Debug.writeln){window.Debug.writeln(a);}else if(window.console){if(window.console.debug){window.console.debug(a);}else if(window.console.log)window.console.log(a);}else if(window.opera&&window.opera.postError)window.opera.postError(a);},logLine:function(a,b){if(a<=FB.Debug.logLevel)FB.Debug.writeLine(b);},_fail:function(a){FB.Debug.writeLine(a);debugger;},_dumpCore:function Debug$_dumpCore(j,h,g,f,c){if(h===null){j.appendLine(f+g+': null');return;}switch(typeof(h)){case 'undefined':j.appendLine(f+g+': undefined');break;case 'number':case 'string':case 'boolean':j.appendLine(f+g+': '+h);break;default:if(h instanceof Date||h instanceof RegExp){j.appendLine(f+g+': '+h);break;}if(FB.Sys.contains(c,h)){j.appendLine(f+g+': ...');break;}c[c.length]=h;var i=f+'  ';if(h.tagName){j.appendLine(f+g+': <'+h.tagName+'>');var b=h.attributes;for(var e=0;e<b.length;e++){var a=b[e].nodeValue;if(a)FB.Debug._dumpCore(j,a,b[e].nodeName,i,c);}}else{j.appendLine(f+g+': ');for(var d in h){var k=h[d];if(!(k instanceof Function))FB.Debug._dumpCore(j,k,d,i,c);}}FB.Sys.remove(c,h);break;}},dump:function Debug$dump(b,a){if((!a||!a.length)&&(b!==null))a=typeof(b);if(!a||!a.length)return;var c=new FB.StringBuilder();FB.Debug._dumpCore(c,b,a,'',[]);FB.Debug.writeLine(c.toString());},fail:function Debug$fail(a){FB.Debug._fail(a);}});FB.FBDebug=FB.Debug;
FB.subclass('FB.ArrayEnumerator','FB.Class',{init:function(a){this._array=a;this._index=-1;},get_current:function(){return this._array[this._index];},moveNext:function(){this._index++;return (this._index<this._array.length);},reset:function(){this._index=-1;}});
FB.subclass('FBIntern.Uri','FB.Class',{init:function(a){this._uriString=a;},get_uriString:function(){return this._uriString;},get_pathAndQuery:function(){var a=this._uriString.indexOf('://');if(a>=0){a=this._uriString.indexOf('/',a+3);if(a>=0)return this._uriString.substr(a);}return this._uriString;},get_schemeAndDomain:function(){var a=this._uriString.indexOf('http://');if(a)a=this._uriString.indexOf('https://');if(!a){var b=this._uriString.indexOf('/',8);if(b>=0){return this._uriString.substr(0,b);}else return this._uriString;}throw new Error('This object is not an absolute URI.');},get_queryParameters:function(){if(!this._queryParameters){this._queryParameters={};var d;var b=this._uriString.indexOf('?');if(b>-1){d=this._uriString.substr(b+1);b=d.indexOf('#');if(b>0)d=d.substring(0,b-1);var f=d.split('&');var a=new FB.ArrayEnumerator(f);while(a.moveNext()){var e=a.get_current();b=e.indexOf('=');if(b>0){var c=e.substr(0,b);var g=e.substr(b+1);this._queryParameters[c]=decodeURIComponent(g);}}}}return this._queryParameters;},get_domain:function(){var a=this.get_domainAndPath();var b=a.indexOf('/');if(b>=0)a=a.substring(0,b);return a;},get_domainAndPath:function(){var a=this._uriString;var b=a.indexOf('#');if(b>=0)a=a.substring(0,b);var d=a.indexOf('?');if(d>=0)a=a.substring(0,d);var c=a.indexOf('://');if(c>=0)a=a.substring(c+3);return a;},_queryParameters:null,_uriString:null});FB.provide('FBIntern.Uri',{create:function(a,c){var e;if(FBIntern.Uri.isAbsoluteUri(c)){e=c;}else if(c.charAt(0)==='/'){e=a.get_schemeAndDomain()+c;}else{var e=a.get_uriString();var b=e.indexOf('?');if(b>0)e=e.substr(0,b);var d=e.lastIndexOf('/');e=e.substr(0,d+1)+c;}return new FBIntern.Uri(e);},isAbsoluteUri:function(a){return a.indexOf('://')>0;},addQueryParameters:function(b,a){if(b.indexOf('?')>0){return b+'&'+a;}else return b+'?'+a;},createQueryString:function(d){var e='';var a=d;for(var b in a){var c={key:b,value:a[b]};e+=c.key+'='+encodeURIComponent((c.value))+'&';}if(e!==''&&e.charAt(e.length-1)==='&')e=e.substr(0,e.length-1);return e;},bothHaveSameDomain:function(e,f){var c=new FBIntern.Uri(e);var d=new FBIntern.Uri(f);var a=c.get_domain().toLowerCase();var b=d.get_domain().toLowerCase();return a==b;}});
FB.subclass('FBIntern.FbGlobals','FB.Class',{init:function(){}});FB.provide('FBIntern.FbGlobals',{get_fB_StaticResourceVersions:function(){return FB.dynData?FB.dynData.resources:{};}});
FB.Sys=function(){};FB.Sys.isUndefined=function(a){return (a===undefined);};FB.Sys.isNullOrUndefined=function(a){return (a===null)||(a===undefined);};FB.Sys.isNullOrEmpty=function(a){return !a||!a.length;};FB.Sys.parseBool=function(a){return (a.toLowerCase()=='true');};FB.Sys.trim=function(a){return a.replace(/^\s*|\s*$/g,'');};FB.Sys.compare=function(b,c,a){if(a){if(b)b=b.toUpperCase();if(c)c=c.toUpperCase();}b=b||'';c=c||'';if(b==c)return 0;if(b<c)return -1;return 1;};FB.Sys.quote=function(h){var e={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};var a,b,c,d,f=/["\\\x00-\x1f\x7f-\x9f]/g,g;return f.test(h)?'"'+h.replace(f,function(i){var j=e[i];if(j)return j;j=i.charCodeAt();return '\\u00'+Math.floor(j/16).toString(16)+(j%16).toString(16);})+'"':'"'+h+'"';};FB.Sys.startsWith=function(a,b){return a.substring(0,b.length)==b;};FB.Sys.format=function(a){if(!FB.Sys.format._formatRE)FB.Sys.format._formatRE=/(\{[^\}^\{]+\})/g;var b=arguments;return a.replace(FB.Sys.format._formatRE,function(e,d){var c=parseInt(d.substr(1));var f=b[c+1];if(FB.Sys.isNullOrUndefined(f))return '';return f.toString();});};FB.Sys.htmlDecode=function(a){htmlDecMap={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'"'};htmlDecRE=/(&amp;|&lt;|&gt;|&quot;)/gi;a=a.replace(htmlDecRE,function(c,b){return htmlDecMap[b];});return a;};FB.Sys.htmlEncode=function(a){htmlEncMap={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'};htmlEncRE=/([&<>"])/g;if(htmlEncRE.test(a))a=a.replace(htmlEncRE,function(c,b){return htmlEncMap[b];});return a;};FB.Sys.endsWith=function(a,b){return a.length>=b.length&&a.substring(a.length-b.length)==b;};FB.Sys.contains=function(a,c){var b=FB.Sys.indexOf(a,c);return (b>=0);};FB.Sys.add=function(a,b){a[a.length]=b;};FB.Sys.remove=function(a,c){var b=FB.Sys.indexOf(a,c);if(b>=0){a.splice(b,1);return true;}return false;};FB.Sys.indexOf=function(a,c){var d=a.length;if(d)for(var b=0;b<d;b++)if(a[b]===c)return b;return -1;};FB.Sys.addRange=function(a,c){var d=c.length;for(var b=0;b<d;b++)a[a.length]=c[b];};FB.Sys.clear=function(a){if(a.length>0)a.splice(0,a.length);};FB.Sys.clearKeys=function(a){for(var b in a)delete a[b];};FB.Sys.containsKey=function(a,b){return a[b]!==undefined;};FB.Sys.getKeyCount=function(b){var a=0;for(var c in b)a++;return a;};FB.Sys.isAssignableFrom=function(a,b){while(a!=b)if(a.__baseType){a=a.__baseType;}else return false;return true;};FB.Sys.createException=function(c,d,b){var a=new Error(c);if(d)a.userData=d;if(b)a.innerException=b;return a;};FB.Type.createClass2(FB.Sys);
FB.subclass('FBIntern.Utility','FB.Class',{init:function(){}});FB.provide('FBIntern.Utility',{getFacebookUrl:function(a){return FB.Sys.format(FBIntern.FbGlobals.get_fB_StaticResourceVersions().base_url_format,a);},getNonConnectFacebookUrl:function(c){var a=FBIntern.FbGlobals.get_fB_StaticResourceVersions().base_url_format;if(a.indexOf('connect.facebook.com')>=0){var b=(!a.indexOf('https'))?'https':'http';a=b+'://{0}.facebook.com/';return FB.Sys.format(a,c);}else return FBIntern.Utility.getFacebookUrl(c);},createFacebookUrl:function(e,c,d,a){var f;if(a){f=FBIntern.Utility.getFacebookUrl(e);}else f=FBIntern.Utility.getNonConnectFacebookUrl(e);f+=c;var b=FB.locale;if(!FB.Sys.containsKey(d,'locale')&&!FB.Sys.isNullOrEmpty(b))d.locale=b;return FBIntern.Uri.addQueryParameters(f,FBIntern.Uri.createQueryString(d));},isSecure:function(){return window.location.href.indexOf('https')===0;},id64BitEquals:function(a,b){var c='';var d='';if(typeof(a)==='number'){if(a>2147483647)FB.FBDebug.logLine(1,'This integer is great than 32 bit and can\'t be properly in comparison in JavaScript. It should be stored as string instead.');c=a.toString();}else c=a;if(typeof(b)==='number'){if(b>2147483647)FB.FBDebug.logLine(1,'This integer is great than 32 bit and can\'t be properly in comparison in JavaScript. It should be stored as string instead.');d=b.toString();}else d=b;return !FB.Sys.compare(c,d,false);},waitForLoaded:function(b,a){var c=null;c=function(d){FBIntern.Utility.removeEventListener(b,'load',c);a();};FBIntern.Utility.addEventListener(b,'load',c);},get_windowLocation:function(){var b=FB._create_Point(0,0);var a,c;if(window.screenLeft){a=window.screenLeft;c=window.screenTop;}else{a=window.screenX;c=window.screenY;}b.x=a;b.y=c;if(FB.Sys.isUndefined(b.x))b.x=0;if(FB.Sys.isUndefined(b.y))b.y=0;return b;},get_windowSize:function(){var a=FB._create_Size((window&&window.innerWidth)||(document&&document.documentElement&&document.documentElement.clientWidth)||(document&&document.body&&document.body.clientWidth)||0,(window&&window.innerHeight)||(document&&document.documentElement&&document.documentElement.clientHeight)||(document&&document.body&&document.body.clientHeight)||0);return a;},get_documentSize:function(){var c=FB._create_Size(document.body.scrollWidth,document.body.scrollHeight);if(c.w<=0||c.w>document.documentElement.scrollWidth)c.w=document.documentElement.scrollWidth;if(c.h<=0||c.h>document.documentElement.scrollHeight)c.h=document.documentElement.scrollHeight;if(window&&window.getComputedStyle){var a=window.getComputedStyle(document.body,null),b=parseInt(a.getPropertyValue('height'),10);if(b<c.h)c.h=b;}return c;},get_isInUserActionCallstack:function(){var a=FBIntern.Utility.get_currentEvent();if(!a){return false;}else{var c=['onclick','oncontextmenu','ondblclick','onfocus','onkeydown','onkeypress','onkeyup','onmousedown','onmousemove','onmouseout','onmouseover','onmouseup','click','ctextmenu','dblclick','focus','keydown','keypress','keyup','mousedown','mousemove','mouseout','mouseover','mouseup'];var b=a.type;return b&&FB.Sys.contains(c,b);}},get_currentEvent:function(){var b=window.event;if(!b&&FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.MOZILLA){var c=arguments.callee;var d=[];var a;while(true){FB.Sys.add(d,c);a=c.caller;if(!a)break;if(FB.Sys.indexOf(d,a)>=0){FB.FBDebug.logLine(1,'FB.Connect.get_isInUserActionCallstack(): we can\'t correctly make a detection because of recursion in call stack');return null;}c=a;}b=c.arguments.length==1&&c.arguments[0]&&c.arguments[0].type?c.arguments[0]:null;}return b;},addEventListener:function(a,c,b){if(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()!==FBIntern.HostName.IE){(a).addEventListener(c,b,false);}else{b._ieEventHandler=function(){b(window.event);};(a).attachEvent('on'+c,(b._ieEventHandler));}},removeEventListener:function(a,c,b){if(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()!==FBIntern.HostName.IE){(a).removeEventListener(c,b,false);}else (a).detachEvent('on'+c,(b._ieEventHandler));},createXMLHttpRequest:function(){if(!FB.XMLHttpRequest)if(!window.XMLHttpRequest){FB.XMLHttpRequest=function(){var b=['Msxml2.XMLHTTP','Microsoft.XMLHTTP'];for(var a=0;a<b.length;a++)try{var c=new ActiveXObject(b[a]);return c;}catch(ex){}};}else FB.XMLHttpRequest=window.XMLHttpRequest;return new FB.XMLHttpRequest();},getIFrameDocument:function(e,c,a){var b=(window.self.frames)[e];var d=null;if(window.location.hostname===document.domain)try{d=b.document;}catch(e1){FB.FBDebug.logLine(1,'Failed to get frameWindow.document, will try again later');}if(d){a(d);}else FBIntern.Utility.waitForLoaded(c,function(){a(b.document);});},isConnectSession:function(a){if(!a)throw new Error('session key is null');return a.substr(0,2)==='3.';},isStrInt:function(a){return parseInt(a).toString()===a;},createException:function(c,d,b){var a=new Error(c);if(d)a.userData=d;if(b)a.innerException=b;return a;},getSiteVar:function(c,a){var b=FB.dynData;if(b){var d=b.site_vars;if(FB.Sys.containsKey(d,c))return d[c];}return a;},setSiteVar:function(a,c){var b=FB.dynData.site_vars;b[a]=c;},paymentsLog:function(g,a){var e={step_id:g,api_key:a};var b=FBIntern.Utility.getFacebookUrl('www')+'/connect/waterfall_log.php';var d=FBIntern.Uri.addQueryParameters(b,FBIntern.Uri.createQueryString(e));var f=FB.$('FB_HiddenContainer');FB.FBDebug.assert(f,'Can\'t find the DOM element with id FB_HiddenContainer');var c=document.createElement('img');c.setAttribute('src',d);f.appendChild(c);}});
FB.JSON=function FB_JSON(){};FB.JSON.deserialize=function(b,a){if(FB.Sys.isNullOrEmpty(b))return null;if(a){if(!FB.JSON._64bitIntRegex)FB.JSON._64bitIntRegex=new RegExp('([^\\\\]\"\:)([0-9]{11,20})(,|}|])','gm');b=b.replace(FB.JSON._64bitIntRegex,'$1"$2"$3');}return FB.JSON.parse(b);};if(window.JSON&&typeof JSON.parse==='function'){FB.JSON.parse=JSON.parse;}else FB.JSON.parse=function(text,reviver){var j;function walk(a,c){var b,d,e=a[c];if(e&&typeof e==='object')for(b in e)if(Object.hasOwnProperty.call(e,b)){d=walk(e,b);if(d!==undefined){e[b]=d;}else delete e[b];}return reviver.call(a,c,e);}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;cx.lastIndex=0;if(cx.test(text))text=text.replace(cx,function(a){return '\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);});if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}throw new SyntaxError('JSON.parse');};FB.JSON.serialize=function(a){if(FB.Sys.isNullOrUndefined(a))return '';var b=new FB.StringBuilder();FB.JSON._serializeCore(b,a);return b.toString();};FB.JSON._serializeCore=function(j,i){if(FB.Sys.isNullOrUndefined(i)){j.append('null');return;}var k=typeof(i);switch(k){case 'boolean':j.append(i.toString());return;case 'number':j.append((isFinite(i))?i.toString():'null');return;case 'string':j.append(FB.Sys.quote(i));return;case 'object':if(i instanceof Array){j.append('[');var c=i;var h=c.length;var f=true;for(var g=0;g<h;g++){if(typeof(c[g])=='function')continue;if(f){f=false;}else j.append(',');FB.JSON._serializeCore(j,c[g]);}j.append(']');}else if(i instanceof Date){var d=i;var l=Date.UTC(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate(),d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds());j.append('\"\\@');j.append(l.toString());j.append('@\"');}else if(i instanceof RegExp){j.append(i.toString());}else{j.append('{');var f=true;var a=i;for(var b in a){var e={key:b,value:a[b]};if(FB.Sys.startsWith(e.key,'$'))continue;if(typeof(e.value)=='function')continue;if(f){f=false;}else j.append(',');j.append('"'+e.key+'"');j.append(':');FB.JSON._serializeCore(j,e.value);}j.append('}');}return;default:j.append('null');return;}};
FB.provide('FB.XdComm.PageRelation',{parent:1,child:2,self:3,opener:4,openee:5});
FB._create__packet=function(){return {};};
FB.provide('FB.XdComm._packetType',{data:0,dataFragment:1,dataFragmentEnd:2,udpSingle:3,ack:4});
FB.subclass('FB.XdComm._sendChannel','FB.Class',{init:function(a){this._iframes={};this._endPoint=a;},_send:function(d,a){var l=FB.XdComm.Server.singleton;var k=FB.JSON.serialize(a);var b=k.length;var f=0;var j=false;var c=0;while(!j){var m=FB.XdComm._packetType.data;var g=FB._create__packet();g.id=this._sendIdCount;if(!this._sendIdCount&&!f){g.sc=l.get_receiverUrl();g.sf=window.name;g.sr=FB.XdComm._sendChannel._getReverseRelation(this._endPoint.relation);}if(!f)g.h=d;var h;if(!f&&b<=l._maxPacketDataLength){h=k;j=true;}else{g.fid=c++;var i=b-f;if(i>l._maxPacketDataLength){i=l._maxPacketDataLength;m=FB.XdComm._packetType.dataFragment;}else{m=FB.XdComm._packetType.dataFragmentEnd;j=true;}h=k.substr(f,i);f+=i;}g.sid=l._id;g.t=m;var e=l._createPacketUrl(g,this._endPoint);e+=encodeURIComponent(h);this._addIframe(e,g);}this._sendIdCount++;},_onAck:function(b){if(FB.FBDebug.logLevel>4)FB.FBDebug.writeLine('SendChannel.OnAck: '+b.toString());var c=new FB.ArrayEnumerator(b);while(c.moveNext()){var a=c.get_current();var f=a.toString();var g=this._iframes[f];var d=new FB.ArrayEnumerator(g);while(d.moveNext()){var e=d.get_current();FB.XdComm.Server.singleton._removeIframe(e);}delete this._iframes[f];}},_addIframe:function(b,e){var a=FB.XdComm.Server.singleton._createHiddenIFrame(b);var c=e.id.toString();var d=this._iframes[c];if(!d)this._iframes[c]=d=[];FB.Sys.add(d,a);},_sendIdCount:0,_endPoint:null});FB.provide('FB.XdComm._sendChannel',{_getReverseRelation:function(a){switch(a){case FB.XdComm.PageRelation.child:return FB.XdComm.PageRelation.parent;case FB.XdComm.PageRelation.parent:return FB.XdComm.PageRelation.child;case FB.XdComm.PageRelation.self:return FB.XdComm.PageRelation.self;case FB.XdComm.PageRelation.opener:return FB.XdComm.PageRelation.openee;default:throw new Error('Unknown relation');}}});
FB.subclass('FB.XdComm.EndPoint','FB.Class',{init:function(b,c,a){this.frameName=(!b)?'':b;this.relation=c;this.channelUrl=a;this.UID=0;},isEqual:function(a){return a.frameName===this.frameName&&a.relation===this.relation&&a.UID===this.UID;},frameName:null,relation:0,channelUrl:null,UID:0,origin:null});
FB.Type.createClass('FB.StringBuilder',{ctor:function(a){if((a!==undefined)&&(a!==null)){this._parts=[a];}else this._parts=[];},instance:{get_isEmpty:function(){return (this._parts.length==0);},append:function(a){if((a!==undefined)&&(a!==null))FB.Sys.add(this._parts,a);},appendLine:function(a){this.append(a);this.append('\r\n');},clear:function(){this._parts.clear();},toString:function(){return this._parts.join('');}}});if(!window.Delegate)window.Delegate=FB.Delegate;
FB.subclass('FB.XdComm._fragDataHolder','FB.Class',{init:function(){this._segments={};this._totalSegments=-1;},_addSegment:function(c){if(c.t===FB.XdComm._packetType.dataFragmentEnd)this._totalSegments=c.fid+1;if(!c.fid)this._combinedPacket=c;this._segments[c.fid.toString()]=c.d;if(this._totalSegments!==-1&&this._totalSegments===FB.Sys.getKeyCount(this._segments)){var a=new FB.StringBuilder();for(var b=0;b<this._totalSegments;b++)a.append(this._segments[b.toString()]);this._combinedPacket.d=a.toString();this._combinedPacket.t=FB.XdComm._packetType.data;return this._combinedPacket;}else return null;},_combinedPacket:null});
FB.subclass('FB.XdComm._receiveChannel','FB.Class',{init:function(b,a){this._fragDataDict={};this._ackList=[];this._id=b;this._endPoint=a;},_onReceivedPacket:function(d){FB.FBDebug.logLine(3,'XdComm: Received packet');var b=null;if(d.t===FB.XdComm._packetType.dataFragment||d.t===FB.XdComm._packetType.dataFragmentEnd){var c=this._fragDataDict[d.id.toString()];if(!c){c=new FB.XdComm._fragDataHolder();this._fragDataDict[d.id.toString()]=c;}b=c._addSegment(d);if(b)delete this._fragDataDict[b.id.toString()];}else b=d;if(b){if(!b.id){this._endPoint=new FB.XdComm.EndPoint(b.sf,b.sr,b.sc);if(this._queuedPackets){var a=new FB.ArrayEnumerator(this._queuedPackets);while(a.moveNext()){var e=a.get_current();this._onFullDataReceived(e);}this._queuedPackets=null;}}if(this._endPoint){this._onFullDataReceived(b);}else if(!this._queuedPackets){this._queuedPackets=[];FB.Sys.add(this._queuedPackets,b);}}},_onFullDataReceived:function(c){var d=FB.XdComm.Server.singleton;d._onFullDataReceived(c,this._endPoint);FB.Sys.add(this._ackList,c.id);if(this._ackList.length>5){if(FB.FBDebug.logLevel>4)FB.FBDebug.writeLine('ReceiveChannel.Ack: '+this._ackList.toString());var b=FB._create__packet();b.t=FB.XdComm._packetType.ack;b.sid=d._id;b.sc=d.get_receiverUrl();b.sf=window.name;b.sr=FB.XdComm._sendChannel._getReverseRelation(this._endPoint.relation);var a=d._createPacketUrl(b,this._endPoint);a+=encodeURIComponent(FB.JSON.serialize(this._ackList));d._removeIframe(this._ackIframe);this._ackIframe=d._createHiddenIFrame(a);FB.Sys.clear(this._ackList);}},_queuedPackets:null,_endPoint:null,_ackIframe:null,_id:null});
FB.provide('FB.HiddenContainer',{_onLoad:function(){if(document.getElementById('FB_HiddenContainer')==null){var a;try{if((!document.readyState||document.readyState=="complete")&&document.body){a=document.createElement('div');a.id="FB_HiddenContainer";a.style.position="absolute";a.style.top="-10000px";a.style.width="0px";a.style.height="0px";document.body.appendChild(a);}}catch(e){a=null;}if(!a)document.write('<div id="FB_HiddenContainer" '+'style="position:absolute; top:-10000px; left:-10000px; width:0px; height:0px;" >'+'</div>');}},get:function(){return FB.$('FB_HiddenContainer');}});
FB.provide('FB.XdComm.PacketDataFormat',{JSON:0,rawText:1,OBJ:2});
FB.subclass('FB.Enum','FB.Class',{});FB.provide('FB.Enum',{toString:function(a,b){return b.toString();}});
FB.subclass('FB.Waitable','FB.Class',{init:function(){},onChange:function(){if(this.__changed)this.__changed(this);},waitUntilReady:function(a){if(this.get_isReady()){a(this.result);}else{var b=null;b=FB.bind(function(c){this.remove_changed(b);a(this.result);},this);this.add_changed(b);}},waitForValue:function(b,a){this.waitForCondition(FB.bind(function(c){if(this.get_isReady()&&this.result===b){a();return true;}return false;},this));},waitForCondition:function(a){if(!a(this)){var b=null;b=FB.bind(function(c){if(a(c))this.remove_changed(b);},this);this.add_changed(b);}},resetChange:function(){this.__changed=null;},result:null,add_changed:function(a){this.__changed=FB.Delegate.combine(this.__changed,a);},remove_changed:function(a){this.__changed=FB.Delegate.remove(this.__changed,a);},__changed:null});
FB.subclass('FB.SimpleWaitable','FB.Waitable',{init:function(){this._super();},get_isReady:function(){return this._isReady;},_setResult:function(a,c){var b=typeof(a);if(this._isReady&&!c&&this.result===a&&(b==='undefined'||b==='number'||b==='string'))return;this.result=a;this._isReady=(!c);this.onChange();},_isReady:false});
FB.subclass('FBIntern.Flash','FB.Class',{init:function(){}});FB.provide('FBIntern.Flash',{_onLoad:function(){FBIntern.Flash.xdComm=null;FBIntern.Flash.curMajor=0;FBIntern.Flash.curMinor=0;FBIntern.Flash.versionDetected=false;},hasRequireVersion:function(){return FBIntern.Flash._verifyMinimumVersion(9,0);},_verifyMinimumVersion:function(e,f){if(!FBIntern.Flash.versionDetected){var h=['0','0'];var d=FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE;var g=navigator.plugins;if(g&&g.length>0){if(g['Shockwave Flash 2.0']||g['Shockwave Flash']){var c;if(g['Shockwave Flash 2.0']){c=(g['Shockwave Flash 2.0'].description);}else c=(g['Shockwave Flash'].description);var b=c.split(' ');h=b[2].split('.');}}else if(d){var i=null;var a;try{a=new ActiveXObject('ShockwaveFlash.ShockwaveFlash.7');i=a.GetVariable('$version');}catch(e1){}if(!h)try{a=new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');i='WIN 6,0,21,0';}catch(e2){}if(!FB.Sys.isNullOrEmpty(i))h=i.split(' ')[1].split(',');}if(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.MOZILLA){FB.FBDebug.logLine(1,'Cannot use Flash on Firefox due to a possible bug in Flash');FBIntern.Flash.curMajor=0;FBIntern.Flash.curMinor=0;}else if(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.OPERA){FB.FBDebug.logLine(1,'Cannot use Flash on Opera due to a possible bug in Flash');FBIntern.Flash.curMajor=0;FBIntern.Flash.curMinor=0;}else if(FBIntern.Utility.isSecure()&&d){FB.FBDebug.logLine(1,'Currenty, Flash is not used on IE in SSL pages');FBIntern.Flash.curMajor=0;FBIntern.Flash.curMinor=0;}else{FBIntern.Flash.curMajor=parseInt(h[0]);FBIntern.Flash.curMinor=parseInt(h[1]);}FBIntern.Flash.versionDetected=true;}return FBIntern.Flash.curMajor>e||(FBIntern.Flash.curMajor===e&&FBIntern.Flash.curMinor>=f);},_createFlashObject:function(c,e){var b;if(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE){b=FB.Sys.format('<object width=\"1\" height=\"\"  id=\"{0}\" name=\"{1}\" type=\"application/x-shockwave-flash\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" ><param name=\"movie\" value=\"{2}\" /> <param name=\"quality\" value=\"high\" /> <param name=\"bgcolor\" value=\"#869ca7\" /> <param name=\"allowScriptAccess\" value=\"always\" /> </object>',c,c,e);}else b=FB.Sys.format('<embed width=\'1\' height=\'1\' type=\'application/x-shockwave-flash\' pluginspage=\'http://get.adobe.com/flashplayer\' allowscriptaccess=\'always\' name=\'{0}\' id=\'{1}\' bgcolor=\'#869ca7\' quality=\'high\'  src=\'{2}\' />',c,c,e);var a=document.createElement('div');FB.$('FB_HiddenContainer').appendChild(a);a.innerHTML=b;if(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE){var d=a.parentNode;while(d&&d.tagName!=='HTML'){if(d.tagName==='FORM'){window[c]=d[c];break;}d=d.parentNode;}return window[c];}else return document[c];},get_xdComm:function(){if(!FBIntern.Flash.xdComm&&FBIntern.Flash.hasRequireVersion()){FB.FBDebug.logLine(3,'Create Flash XdComm object');FBIntern.Flash.xdComm=new FB.SimpleWaitable();var a=null;var b=false;window.FB_OnFlashXdCommReady=function(){FB.FBDebug.logLine(3,'Flash XdComm ready');b=true;if(a)FBIntern.Flash.xdComm._setResult(a);};a=FBIntern.Flash._createFlashObject('flashXdComm',FBIntern.FbGlobals.get_fB_StaticResourceVersions().xd_comm_swf_url);if(a&&b)FBIntern.Flash.xdComm._setResult(a);}return FBIntern.Flash.xdComm;},decode:function(a){if(a&&a.length&&typeof a!="string")a=a[0];if(!a||typeof a!="string")return a;a=a.replace(/\&custom_lt\;/g,"<");a=a.replace(/\&custom_gt\;/g,">");a=a.replace(/\&custom_backslash\;/g,'\\');a=a.replace(/\\0/g,"\0");return a;}});
if(!window.FB)FB={};if(!FB.Loader)FB.Loader={loaded:{},loading:{},loadedCss:{},loadedCallback:null,onScriptLoaded:function(b){var a=b.length;for(var c=0;c<a;c++){var d=b[c];FB.Loader.loaded[d]=true;}if(FB.Loader.loadedCallback)window.setTimeout(function(){FB.Loader.loadedCallback(b);},0);},loadCssComps:function(a){var b=FB.Loader.getStaticResourceUrl('connect.php/'+FB.locale+'/css/'+a.join('/'));if(!this.loadedCss[b]){var c=document.createElement('link');c.setAttribute('rel','stylesheet');c.setAttribute('type','text/css');c.setAttribute('href',b);document.getElementsByTagName('head')[0].appendChild(c);this.loadedCss[b]=true;}},getStaticResourceUrl:function(b){var a=FB.dynData.resources.base_url_format;var c=(a.indexOf('https')===0)?'ssl':'static.ak';return a.replace('{0}',c)+b;}};
FB.subclass('FB.Delegate','FB.Class',{});FB.provide('FB.Delegate',{Null:function(){},_create:function(b){var a=function(){if(b.length==2){return b[1].apply(b[0],arguments);}else{var d=b.slice();for(var c=0;c<d.length;c+=2)d[c+1].apply(d[c],arguments);return null;}};a._targets=b;return a;},create:function(b,a){if(!b)return a;return FB.Delegate._create([b,a]);},combine:function(a,b){if(!a){if(!b._targets)return FB.Delegate.create(null,b);return b;}if(!b){if(!a._targets)return FB.Delegate.create(null,a);return a;}var c=a._targets?a._targets:[null,a];var d=b._targets?b._targets:[null,b];return FB.Delegate._create(c.concat(d));},remove:function(a,b){if(!a||(a===b))return null;if(!b)return a;var f=a._targets;var e=null;var d;if(b._targets){e=b._targets[0];d=b._targets[1];}else d=b;for(var c=0;c<f.length;c+=2)if((f[c]===e)&&(f[c+1]===d)){if(f.length==2)return null;f.splice(c,2);return FB.Delegate._create(f);}return a;}});if(!window.Delegate)window.Delegate=FB.Delegate;
if(!FB.Bootstrap){FB.Bootstrap={requireFeatures:function(e,c){if(FB.Bootstrap.isXdChannel)return;var i={features:e,callback:FB.Monitor.externalCallback(c),completed:false};if(FB.Bootstrap._checkRequest(i))return;FB.Bootstrap._featureReqQueue.push(i);FB.Loader.loadedCallback=FB.Delegate.combine(FB.Loader.loadedCallback,FB.Bootstrap._onCompLoaded);FB.Bootstrap._transformFeatureList(e);var h={};var a=[];var f;var b=e.length;var g=0;for(f=0;f<b;f++){var d=e[f];if(!(FB.Loader.loaded[d]))if(!(FB.Loader.loaded[d]||FB.Loader.loading[d])){h[d]=true;a[a.length]=d;}}a.sort();var j=FB.Loader.getStaticResourceUrl('connect.php/'+FB.locale+'/js/'+a.join('/'));FB.Bootstrap.addScript(j);},_requireFeatures:function(b,a){this.requireFeatures(b,FB.bind(a));},_checkRequest:function(d){if(!d.completed){var b=0;var e=d.features.length;var c=0;for(b=0;b<e;b++){var a=d.features[b];if(FB.Loader.loaded[a])c++;}if(c==e){d.completed=true;if(d.callback)d.callback(true);}}return d.completed;},_transformFeatureList:function(b){var c={Api:true,CanvasUtil:true,Connect:true,XFBML:true};var a=b.length;var g=false;var f={};for(var d=0;d<a;d++){f[b[d]]=true;if(c[b[d]])g=true;}if(g)for(var e in c)if(!f[e])b[b.length]=e;},ensureInit:function(a){if(!a)throw ("FB.ensureInit called without a valid callback");a=FB.Monitor.externalCallback(a);if(FB.Facebook&&FB.Facebook.get_initialized&&FB.Facebook.get_initialized().get_isReady()&&FB.Facebook.get_initialized().result)return a();FB.Bootstrap._requireFeatures(FB.Bootstrap.features,function(){FB.Facebook.get_initialized().waitForValue(true,a);});},init:function(a,c,b){FB.Bootstrap._requireFeatures(FB.Bootstrap.features,function(){if(FB.Facebook)FB.Facebook.init(a,c,b);});},addScript:function(f){var d;var e=document.getElementsByTagName('script');if(e){var a=e.length;for(var b=0;b<a;b++){d=e[b];if(d.src==f)return;}}d=document.createElement("script");d.type="text/javascript";d.src=f;var c=document.getElementsByTagName('HEAD')[0]||document.body;c.appendChild(d);},setLocale:function(b,a){window.FB.locale=b;window.FB.localeIsRTL=a;},_initializeXdChannel:function(){FB.Bootstrap.isXdChannel=window.location.search.indexOf(FB.Bootstrap.fbc_channel_token)>=0;},_detectDocumentNamespaces:function(){if(document.namespaces&&!document.namespaces.item['fb'])document.namespaces.add('fb');},createDefaultXdChannelUrl:function(){var a=location.protocol+'//'+location.hostname+location.pathname+location.search;if(location.search||location.search.length>0){a+='&';}else a+='?';a+='fbc_channel=1';return a;},_onCompLoaded:function(){var b=0;var a=FB.Bootstrap._featureReqQueue.length;for(b=0;b<a;b++)FB.Bootstrap._checkRequest(FB.Bootstrap._featureReqQueue[b]);},_onLoad:function(){this._initializeXdChannel();this._detectDocumentNamespaces();},features:["XFBML","CanvasUtil"],fbc_channel_token:'fbc_channel=1',_featureReqQueue:[]};FB.Monitor.wrapObject(FB.Bootstrap,'FB.Bootstrap');window.FB_RequireFeatures=FB.Bootstrap.requireFeatures;window.FB.init=FB.Bootstrap.init;window.FB.ensureInit=FB.Bootstrap.ensureInit;FB.Bootstrap._onLoad();}
FB.subclass('FB.XdComm.Server','FB.Class',{init:function(){this._sendChannels=[];this._receiveChannels=[];this._handlers={};this._dataRequestQueues={};this._nativeXdState=-1;this._flashXdState=-1;this._nativeMsgsSendQueue={};this._nativeMsgsReceiveQueue={};this._id=Math.random().toString().substr(0,5);FB.FBDebug.logLine(2,'Init XdComm.Server with ID '+this._id+' for '+document.URL);switch(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()){case FBIntern.HostName.IE:this._maxPacketDataLength=1024;break;case FBIntern.HostName.MOZILLA:this._maxPacketDataLength=100000;break;case FBIntern.HostName.SAFARI:this._maxPacketDataLength=100000;break;case FBIntern.HostName.OPERA:this._maxPacketDataLength=190000;break;default:this._maxPacketDataLength=1024;break;}if(this.get__useNativeXd())FBIntern.Utility.addEventListener(window.self,'message',FB.bind(this._onMessageEvent,this));},get_receiverUrl:function(){return this._receiverUrl;},set_receiverUrl:function(b){if(!b){FB.FBDebug.logLine(0,'Cross Domain Channel cannot be null. We will use the current page as cross domain channel, but it would be inefficient');b=FB.Bootstrap.createDefaultXdChannelUrl();}var a=FBIntern.Uri.create(new FBIntern.Uri(document.URL),b);if(window.location.hostname!==document.domain)FB.FBDebug.logLine(2,'You appear to have changed the document.domain property.\nIf you run into problems with the Facebook Connect library, please refer to\n http://wiki.developers.facebook.com/index.php/How_To_Support_Subdomain_In_Connect for\nhelp.');this._receiverUrl=a.get_uriString();return b;},getUniqueOrigin:function(){if(!this._useXdProxy())return null;if(!this._uniqueOrigin){var a;if(this._receiverUrl){a=this._receiverUrl;}else a=window.location.protocol+'//'+document.domain;a+='/'+Math.random();this._uniqueOrigin=a;if(this.get__useFlashXd())FBIntern.Flash.get_xdComm().waitUntilReady(FB.bind(function(c){var b=c;window.FB_ReceiveFlashMessage=FB.bind(function(d){this._receiveFlashMessage(d);},this);b.postMessage_init('FB_ReceiveFlashMessage',a);},this));}return this._uniqueOrigin;},send:function(b,c,a){if(FB.FBDebug.logLevel>2){FB.FBDebug.writeLine('<<<<<<< '+document.URL);FB.FBDebug.writeLine('Server.send: handler='+c);FB.FBDebug.dump(a,'data');FB.FBDebug.dump(b,'endPoint');}if(this.get__useNativeXd()){this._postMessage(b,c,a);}else if(b.flashOrigin){this._sendWithFlash(b,c,a);}else this._sendWithIframe(b,c,a);},_sendWithIframe:function(c,e,b){var a=null;var d=new FB.ArrayEnumerator(this._sendChannels);while(d.moveNext()){var f=d.get_current();if(c.isEqual(f._endPoint))a=f;}if(!a){a=new FB.XdComm._sendChannel(c);FB.Sys.add(this._sendChannels,a);}a._send(e,b);},_sendWithFlash:function(b,c,a){var e=this._prepareMessagePacket(b,c,a);e.ackFlashOrigin=this.getUniqueOrigin();var d=(FB.XdComm.Server.postMessageHeader+FB.JSON.serialize(e));FBIntern.Flash.get_xdComm().waitUntilReady(FB.bind(function(f){this._retrySender(e.id.toString(),FB.bind(function(){f.postMessage_send(d,b.flashOrigin);},this));},this));},_postMessage:function(b,c,a){var f=this._prepareMessagePacket(b,c,a);var g;switch(b.relation){case FB.XdComm.PageRelation.child:g=window.frames[b.frameName];break;case FB.XdComm.PageRelation.opener:g=window.opener;break;case FB.XdComm.PageRelation.parent:g=window.parent;break;default:throw new Error('Can\'t send message to endpoint with type = '+FB.Enum.toString(FB.XdComm.PageRelation,b.relation));}var d=FB.XdComm.Server.postMessageHeader+FB.JSON.serialize(f);var e=(b.origin)?b.origin:'*';this._retrySender(f.id.toString(),FB.bind(function(){g.postMessage(d,e);},this));},_prepareMessagePacket:function(b,c,a){var d=FB._create__packet();d.sc=this.get_receiverUrl();d.sf=window.name;d.sr=FB.XdComm._sendChannel._getReverseRelation(b.relation);d.h=c;d.nd=a;d.df=FB.XdComm.PacketDataFormat.OBJ;d.id=this._nativeMsgId;d.sid=this._id;this._nativeMsgId++;return d;},_retrySender:function(b,a){var e=1;var d=-1;var c=FB.bind(function(){FB.FBDebug.logLine(2,'RetrySender '+e.toString()+'rd try');e++;if(e<100){a();}else{window.clearInterval(d);FB.FBDebug.logLine(0,'Message couldn\'t be delivered: id'+b);delete this._nativeMsgsSendQueue[b];}},this);c();d=window.setInterval(c,500);this._nativeMsgsSendQueue[b]=d;},_handleAckMessage:function(a){a=a.substr(FB.XdComm.Server.postMessageAckHeader.length);if(!a.indexOf(this._id)){var b=parseInt(a.substr(this._id.length));var c=this._nativeMsgsSendQueue[b.toString()];if(c){delete this._nativeMsgsSendQueue[b.toString()];window.clearInterval(c);}}else FB.FBDebug.logLine(0,'Ignore XdComm Ack message because send id does not match');},_onMessageEvent:function(b){var c=b.data;if(!c.indexOf(FB.XdComm.Server.postMessageHeader)){c=c.substr(FB.XdComm.Server.postMessageHeader.length);var e=FB.JSON.deserialize(c);var d=new FBIntern.Uri(b.origin);var h=new FBIntern.Uri(e.sc);var a=FB.XdComm.Server.postMessageAckHeader+e.sid+e.id.toString();((b.source)).postMessage(a,b.origin);var f=e.sid+e.id.toString();if(!this._nativeMsgsReceiveQueue[f]){this._nativeMsgsReceiveQueue[f]=true;var g=new FB.XdComm.EndPoint(e.sf,e.sr,e.sc);this._ensureReceiveChannel(e.sid,g);this._onFullDataReceived(e,g);}}else if(!c.indexOf(FB.XdComm.Server.postMessageAckHeader)){this._handleAckMessage(c);}else this._tryRecvXdProxy(c);},_receiveFlashMessage:function(a){a=decodeURIComponent(a);if(a.indexOf(FB.XdComm.Server.postMessageAckHeader)===0){this._handleAckMessage(a);}else if(a.indexOf(FB.XdComm.Server.postMessageHeader)===0){a=a.substr(FB.XdComm.Server.postMessageHeader.length);var b=FB.JSON.deserialize(a);var d=new FB.XdComm.EndPoint(b.sf,b.sr,b.sc);var c=b.sid+b.id.toString();if(this._nativeMsgsReceiveQueue[c])return;this._nativeMsgsReceiveQueue[c]=true;FBIntern.Flash.get_xdComm().waitUntilReady(FB.bind(function(g){var e=FB.XdComm.Server.postMessageAckHeader+c;var f=g;f.postMessage_send(e,b.ackFlashOrigin);},this));this._ensureReceiveChannel(b.sid,d);this._onFullDataReceived(b,d);}else if(!this._tryRecvXdProxy(a))FB.FBDebug.logLine(3,'Ignoring Flash XD message with unknown header.');},_tryRecvXdProxy:function(a){var b=a.indexOf('endXdProxy');if(b>0){this.onReceiverLoaded(a.substr(b+11));return true;}else return false;},createUdpUrl:function(c,a,b){return this._createUdpUrlWithFormat(c,a,b,FB.XdComm.PacketDataFormat.JSON);},createUdpUrlWithRawText:function(c,a,b){return this._createUdpUrlWithFormat(c,a,b,FB.XdComm.PacketDataFormat.rawText);},_createUdpUrlWithFormat:function(d,a,c,b){var e=FB._create__packet();e.t=FB.XdComm._packetType.udpSingle;e.h=d;e.sid=this._id;if(b!==FB.XdComm.PacketDataFormat.JSON)e.df=b;var g=this._createPacketUrl(e,c);var f=FB.JSON.serialize(a);if(f.length>this._maxPacketDataLength)throw new Error('data length is too long');g+=encodeURIComponent(f);return g;},_createXdProxyBase:function(a){var e=(FBIntern.FbGlobals.get_fB_StaticResourceVersions().base_cdn_url+'connect/xd_proxy.php?r='+FBIntern.FbGlobals.get_fB_StaticResourceVersions().xd_proxy+'#');var c={origin:this.getUniqueOrigin()};var b=(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE);c.transport=this.get__useNativeXd()?'postmessage':'flash';if(a.relation===FB.XdComm.PageRelation.child){FB.FBDebug.assert(a.frameName,'XdComm.Server._createXdProxyPacketUrl: end point '+'does not have child name name specified');c.relation='parent.frames['+a.frameName+']';}else if(a.relation===FB.XdComm.PageRelation.self){c.relation='parent';}else if(a.relation===FB.XdComm.PageRelation.parent){c.relation='parent.parent';}else if(a.relation===FB.XdComm.PageRelation.opener){c.relation='opener';if(b)c.transport='flash';}else throw new Error("Can't handle endPoint relation.");var d=(e+FBIntern.Uri.createQueryString(c)+'&endXdProxy&');return d;},_createXdProxyPacketUrl:function(b,a){return (this._createXdProxyBase(a)+encodeURIComponent(FB.JSON.serialize(b)));},unregisterDataHandler:function(a){FB.FBDebug.logLine(2,'Unregister data handler '+a);if(!FB.Sys.containsKey(this._handlers,a))throw new Error('Handler doesn\'t exist');delete this._handlers[a];},getUniqueHandlerName:function(c){if(!c)c='handler_';var b=0;var a=c+b.toString();while(FB.Sys.containsKey(this._handlers,a)){b++;a=c+b.toString();}return a;},registerDataHandler:function(e,d){FB.FBDebug.logLine(2,'Register data handler '+e);if(FB.Sys.containsKey(this._handlers,e))throw new Error('Handler already exists');this._handlers[e]=d;var h=this._dataRequestQueues[e];if(h){var b=new FB.ArrayEnumerator(h);while(b.moveNext()){var g=b.get_current();FB.FBDebug.logLine(2,'handle queued request');var a=null;var c=new FB.ArrayEnumerator(this._receiveChannels);while(c.moveNext()){var f=c.get_current();if(f._id===g.sid){a=f._endPoint;break;}}FB.FBDebug.assert(a,'can\'t find endpoint');d(this._getDataObject(g),a);}}},isDataHandlerRegistered:function(a){return this._handlers[a];},createNamedHiddenIFrame:function(c,g,a,f){var b=document.createElement('div');var d=FB.HiddenContainer.get();b=FB.HiddenContainer.get().appendChild(b);if(!this._iframeCreated&&FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE){b.innerHTML='<iframe src=\'javascript:false\' ></iframe>';this._iframeCreated=true;}if(!a)a='FB_SERVER_IFRAME';var e='<iframe name=\"'+c+'\" ';if(f)e+=f;e+=' src=\"'+g+'\" class=\"'+a+'\" scrolling=\"no\" frameborder=\"0\"></iframe>';b.innerHTML=e;return b.childNodes[0];},onReceiverLoaded:function(a){if(a)window.setTimeout(FB.bind(function(){this._onHashReceived(a);},this),0);},_createPacketUrl:function(b,a){if(this._useXdProxy()&&!/facebook\.com/.test(this._receiverUrl))return this._createXdProxyPacketUrl(b,a);var c=FB.JSON.serialize(b);c=encodeURIComponent(c);if(a.channelUrl.indexOf('http'))throw new Error('Invalid channel url '+a.channelUrl);var d=a.channelUrl+'#';if(FB.FBDebug.logLevel>4)d+='debug=1&';if(a.relation===FB.XdComm.PageRelation.child){FB.FBDebug.assert(a.frameName,'XdComm.Server.CreatePacketUrl: end point does not have child name name specified');d+='fname='+a.frameName+'&';}else if(a.relation===FB.XdComm.PageRelation.self){d+='fname=_parent&';}else if(a.relation===FB.XdComm.PageRelation.opener){d+='fname=_opener&';}else if(a.relation===FB.XdComm.PageRelation.openee)throw new Error('Can\'t handle endPoint '+FB.Enum.toString(FB.XdComm.PageRelation,a.relation));d+=c;return d;},_createHiddenIFrame:function(b){if(FB.FBDebug.logLevel>4)FB.FBDebug.writeLine('Create iframe '+b+' in '+document.URL);var a;a=document.createElement('iframe');a.className='FB_RECEIVER_DOM';if(!this._iframeCreated&&FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE){a.src='javascript:false';this._iframeCreated=true;}if(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE){a.src=b;a=FB.HiddenContainer.get().appendChild(a);}else{a=FB.HiddenContainer.get().appendChild(a);a.src=b;}return a;},_removeIframe:function(a){if(FB.FBDebug.logLevel>4)FB.FBDebug.writeLine('Remove iframe in '+document.URL);if(a){var b=a.parentNode;if(b)b.removeChild(a);}},_onHashReceived:function(g){if(FB.FBDebug.logLevel>3){FB.FBDebug.writeLine('>>>>>> '+document.URL);FB.FBDebug.writeLine('received hash '+g);}if(FB.Sys.startsWith(g,'guid=')){var b=decodeURIComponent(g);var f=b.indexOf('&');var e=b.substring(5,f);if(this.get_GUID()!==e)return;var h=b.substr(f+9);if(h==='loggedout'){if(FB.Sys.containsKey(this._handlers,'fbLogout')){var j=this._handlers.fbLogout;j(h,null);}}else if(FB.Sys.containsKey(this._handlers,'fbLogin')){var i=this._handlers.fbLogin;i(h,null);}}else{var l=encodeURIComponent('}');var m=g.indexOf(l)+l.length;var n=decodeURIComponent(g.substring(0,m));var a=g.substr(m);var k=FB.JSON.deserialize(n);k.d=a;switch(k.t){case FB.XdComm._packetType.udpSingle:this._onFullDataReceived(k,new FB.XdComm.EndPoint(k.sf,k.sr,k.sc));break;case FB.XdComm._packetType.ack:var c=new FB.XdComm.EndPoint(k.sf,k.sr,k.sc);var d=new FB.ArrayEnumerator(this._sendChannels);while(d.moveNext()){var p=d.get_current();if(c.isEqual(p._endPoint))p._onAck(this._getDataObject(k));}break;default:var o=this._ensureReceiveChannel(k.sid,null);o._onReceivedPacket(k);break;}}},_ensureReceiveChannel:function(e,a){var d=null;var b=new FB.ArrayEnumerator(this._receiveChannels);while(b.moveNext()){var c=b.get_current();if(c._id===e){d=c;break;}}if(!d){d=new FB.XdComm._receiveChannel(e,a);FB.Sys.add(this._receiveChannels,d);}return d;},_onFullDataReceived:function(b,a){if(FB.FBDebug.logLevel>3){FB.FBDebug.dump(b,'received full packet');FB.FBDebug.dump(a,'sender');}if(FB.Sys.containsKey(this._handlers,b.h)){var c=this._handlers[b.h];c(this._getDataObject(b),a);}else{FB.FBDebug.logLine(2,'queue request to unknown handler {0} '+b.h);var d=this._dataRequestQueues[b.h];if(!d)this._dataRequestQueues[b.h]=d=[];FB.Sys.add(d,b);}},_getDataObject:function(b){var a=b.d;switch(b.df){case FB.XdComm.PacketDataFormat.rawText:return a;case FB.XdComm.PacketDataFormat.OBJ:return b.nd;case FB.XdComm.PacketDataFormat.JSON:default:return FB.JSON.deserialize(decodeURIComponent(a));}},get__useNativeXd:function(){if(!FBIntern.Utility.getSiteVar('use_postMessage')){this._nativeXdState=0;}else if(this._nativeXdState===-1)if((FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE&&FBIntern.AppInfo.get_singleton().get_hostInfo().majorVersion<8)){this._nativeXdState=0;}else this._nativeXdState=window.postMessage!=null?1:0;return this._nativeXdState===1;},_useXdProxy:function(){return (FBIntern.Utility.getSiteVar('use_xdProxy')&&!FB.Facebook.get_isInCanvas()&&(this.get__useNativeXd()||this.get__useFlashXd()));},get_GUID:function(){if(!this._guid)this._guid=Math.random().toString();return this._guid;},get__useFlashXd:function(){var a=(FBIntern.AppInfo.get_singleton().get_hostInfo().get_hostName()===FBIntern.HostName.IE);if(this._flashXdState===-1)if((!this.get__useNativeXd()||a)&&FBIntern.Flash.hasRequireVersion()){this._flashXdState=1;}else this._flashXdState=0;return this._flashXdState===1;},_receiverUrl:null,_uniqueOrigin:null,_iframeCreated:false,_id:null,_maxPacketDataLength:0,_nativeMsgId:0,_guid:null});FB.provide('FB.XdComm.Server',{_onLoad:function(){FB.XdComm.Server.singleton=new FB.XdComm.Server();FB.XdComm.Server.postMessageHeader='FB_msg:';FB.XdComm.Server.postMessageAckHeader='FB_msg_ack:';},init:function(a){FB.XdComm.Server.singleton.set_receiverUrl(a);},registerSimpleHandler:function(b,a){if(!FB.XdComm.Server.singleton.isDataHandlerRegistered(b))FB.XdComm.Server.singleton.registerDataHandler(b,function(c,d){a(c);});}});
FB.subclass('FB.XdComm.XdRpcServer','FB.Class',{init:function(b,a){if(a){this.registeredMethodMap=a;}else this.registeredMethodMap={};FB.XdComm.Server.singleton.registerDataHandler(b,FB.bind(this._onDataReceived,this));},_onDataReceived:function(c,j){var g=c;if(g.length!==5)FB.FBDebug.logLine(1,'XdRpcServer.OnDataReceived: invalid parameters.');var h=g[0];var b=g[1];var e=g[2];var a=g[3];var f=g[4];if(!FB.Sys.containsKey(this.registeredMethodMap,e)){FB.FBDebug.logLine(1,'XD RPC server: method '+e+' is not allowed or doesn\'t exist.');return;}var d=this.registeredMethodMap[e];FB.FBDebug.logLine(3,'XdRpcServer.Received: '+e);if(d.method){var i=d.method(a,j);if(f)FB.XdComm.Server.singleton.send(j,b,[h,i]);}else if(d.asyncMethod){d.asyncMethod(a,FB.bind(function(k){if(f)FB.XdComm.Server.singleton.send(j,b,[h,k]);},this),j);}else FB.FBDebug.logLine(1,'MethodInfo for '+e+' does not contain any function pointers.');},registeredMethodMap:null});
FB.subclass('FB.XdComm.XdRpcClient','FB.Class',{init:function(b,a,c){this._requestQueue={};this._serverEndPoint=c;this._rpcClientName=(a)?a:FB.XdComm.Server.singleton.getUniqueHandlerName('rpcClient');this._rcpServerName=b;FB.XdComm.Server.singleton.registerDataHandler(a,FB.bind(this._onDataReceived,this));},send:function(c,a,b){FB.FBDebug.logLine(3,'XdRpcClient.Send: '+c);var e=this._idCount++;var d=[e,this._rpcClientName,c,a,(b)?true:false];this._requestQueue[e.toString()]=b;FB.XdComm.Server.singleton.send(this._serverEndPoint,this._rcpServerName,d);},_onDataReceived:function(c,d){var a=c;var e=a[0];var b=this._requestQueue[e];if(b)b(a[1]);},detachClient:function(){FB.XdComm.Server.singleton.unregisterDataHandler(this._rpcClientName);},_serverEndPoint:null,_rpcClientName:null,_rcpServerName:null,_idCount:0});
FB.provide('FBIntern.CacheClient',{ensureRpcClient:function FB_CacheClient$ensureRpcClient(){if(!FBIntern.CacheClient._rpcClient)FBIntern.CacheClient._rpcClient=new FB.XdComm.XdRpcClient('CacheUtilServer','CacheUtilClient',new FB.XdComm.EndPoint(null,FB.XdComm.PageRelation.parent,FBIntern.CacheClient.serverReceiverUrl));},friendsGet:function(a){FBIntern.CacheClient.ensureRpcClient();FBIntern.CacheClient._rpcClient.send('friendsGet',null,a);},preloadFQLGet:function(a){FBIntern.CacheClient.ensureRpcClient();FBIntern.CacheClient._rpcClient.send('preloadFQLGet',null,a);},userGetInfo:function(a){FBIntern.CacheClient.ensureRpcClient();FBIntern.CacheClient._rpcClient.send('userGetInfo',null,a);},reload:function(a){FBIntern.CacheClient.ensureRpcClient();FBIntern.CacheClient._rpcClient.send('reload',null,a);},serverReceiverUrl:FBIntern.Utility.getFacebookUrl('static.ak')+'xd_receiver_v0.4.php?r='+FBIntern.FbGlobals.get_fB_StaticResourceVersions().www_channel,_rpcClient:null});FB.provide('FBIntern.CacheUtil.CacheUtilServer',{friendsGet:function(a,b,c){return FBIntern.CacheUtil.CacheUtilServer.userfriends;},preloadFQLGet:function(a,b,c){return FBIntern.CacheUtil.CacheUtilServer.dataparams;},userGetInfo:function(a,b,c){return FBIntern.CacheUtil.CacheUtilServer.userinfo;},reload:function(a,b,c){window.location.reload();return null;},run:function(a){if(!FBIntern.CacheUtil.CacheUtilServer._rpcServer){var b={friendsGet:{method:FBIntern.CacheUtil.CacheUtilServer.friendsGet},userGetInfo:{method:FBIntern.CacheUtil.CacheUtilServer.userGetInfo},preloadFQLGet:{method:FBIntern.CacheUtil.CacheUtilServer.preloadFQLGet},reload:{method:FBIntern.CacheUtil.CacheUtilServer.reload}};FB.FBDebug.assert(FB.XdComm.Server.singleton.get_receiverUrl(),'FB.XdComm.Server not initialized');FBIntern.CacheUtil.CacheUtilServer._rpcServer=new FB.XdComm.XdRpcServer('CacheUtilServer',b);}else if(a&&!FBIntern.CacheUtil.CacheUtilServer._getUtil.allowGet)FBIntern.CacheUtil.CacheUtilServer._getUtil.allowGet=true;},_rpcServer:null});

FB.Loader.onScriptLoaded(["FB.monitor-wrapper","FB.Prelude","FBIntern.HostName","FBIntern.HostInfo","FBIntern.AppInfo","FB.Size","FB.Point","FB.Log","FB.Class","FB.Type","FB.FBDebug","FB.ArrayEnumerator","FBIntern.Uri","FBIntern.FbGlobals","FB.Sys","FBIntern.Utility","FB.JSON","FB.XdComm.PageRelation","FB.XdComm._packet","FB.XdComm._packetType","FB.XdComm._sendChannel","FB.XdComm.EndPoint","FB.StringBuilder","FB.XdComm._fragDataHolder","FB.XdComm._receiveChannel","FB.HiddenContainer","FB.XdComm.PacketDataFormat","FB.Enum","FB.Waitable","FB.SimpleWaitable","FBIntern.Flash","FB.Loader","FB.Delegate","FB.Bootstrap","FB.XdComm.Server","FB.XdComm.XdRpcServer","FB.XdComm.XdRpcClient","CacheData"]);