if(!window.FB)window.FB={_apiKey:null,_session:null,_userStatus:"unknown",_logging:!0,_inCanvas:-1<window.location.search.indexOf("fb_sig_in_iframe=1")||-1<window.location.search.indexOf("session=")||-1<window.location.search.indexOf("signed_request=")||-1<window.name.indexOf("iframe_canvas")||-1<window.name.indexOf("app_runner"),_https:-1<window.name.indexOf("_fb_https"),_domain:{api:"https://api.facebook.com/",api_read:"https://api-read.facebook.com/",cdn:"http://static.ak.fbcdn.net/",https_cdn:"https://s-static.ak.fbcdn.net/",graph:"https://graph.facebook.com/",staticfb:"http://static.ak.facebook.com/",https_staticfb:"https://s-static.ak.facebook.com/",www:"http://www.facebook.com/",https_www:"https://www.facebook.com/",m:"http://m.facebook.com/",https_m:"https://m.facebook.com/"},_locale:null,_localeIsRtl:!1,getDomain:function(a){switch(a){case "api":return FB._domain.api;case "api_read":return FB._domain.api_read;case "cdn":return"https:"==window.location.protocol||FB._https?FB._domain.https_cdn:FB._domain.cdn;case "cdn_foreign":return FB._domain.cdn_foreign;case "https_cdn":return FB._domain.https_cdn;case "graph":return FB._domain.graph;case "staticfb":return 0==document.referrer.indexOf("https:")||FB._https?FB._domain.https_staticfb:FB._domain.staticfb;case "https_staticfb":return FB._domain.https_staticfb;case "www":return"https:"==window.location.protocol||FB._https?FB._domain.https_www:FB._domain.www;case "https_www":return FB._domain.https_www;case "m":return"https:"==window.location.protocol||FB._https?FB._domain.https_m:FB._domain.m;case "https_m":return FB._domain.https_m}},copy:function(a,b,c,d){for(var e in b)if(c||"undefined"===typeof a[e])a[e]=d?d(b[e]):b[e];return a},create:function(a,b){for(var c=window.FB,d=a?a.split("."):[],e=d.length,f=0;f<e;f++){var g=d[f],h=c[g];h||(h=b&&f+1==e?b:{},c[g]=h);c=h}return c},provide:function(a,b,c){return FB.copy("string"==typeof a?FB.create(a):a,b,c)},guid:function(){return"f"+(1073741824*Math.random()).toString(16).replace(".","")},log:function(a){FB._logging&&(window.Debug&&window.Debug.writeln?window.Debug.writeln(a):window.console&&window.console.log(a));FB.Event&&FB.Event.fire("fb.log",a)},$:function(a){return document.getElementById(a)}};FB.provide("Array",{indexOf:function(a,b){if(a.indexOf)return a.indexOf(b);var c=a.length;if(c)for(var d=0;d<c;d++)if(a[d]===b)return d;return-1},merge:function(a,b){for(var c=0;c<b.length;c++)0>FB.Array.indexOf(a,b[c])&&a.push(b[c]);return a},filter:function(a,b){for(var c=[],d=0;d<a.length;d++)b(a[d])&&c.push(a[d]);return c},keys:function(a,b){var c=[],d;for(d in a)(b||a.hasOwnProperty(d))&&c.push(d);return c},map:function(a,b){for(var c=[],d=0;d<a.length;d++)c.push(b(a[d]));return c},forEach:function(a,b,c){if(a)if("[object Array]"===Object.prototype.toString.apply(a)||!(a instanceof Function)&&"number"==typeof a.length)if(a.forEach)a.forEach(b);else for(var c=0,d=a.length;c<d;c++)b(a[c],c,a);else for(d in a)(c||a.hasOwnProperty(d))&&b(a[d],d,a)},toArray:function(a){for(var b=0,c=[],d=a.length;b<d;b++)c[b]=a[b];return c}});FB.provide("QS",{encode:function(a,b,c){var b=void 0===b?"&":b,c=!1===c?function(a){return a}:encodeURIComponent,d=[];FB.Array.forEach(a,function(a,b){null!==a&&"undefined"!=typeof a&&d.push(c(b)+"="+c(a))});d.sort();return d.join(b)},decode:function(a){var b=decodeURIComponent,c={},a=a.split("&"),d,e;for(d=0;d<a.length;d++)(e=a[d].split("=",2))&&e[0]&&(c[b(e[0])]=b(e[1]||""));return c}});FB.provide("Content",{_root:null,_hiddenRoot:null,_callbacks:{},append:function(a,b){if(!b)if(FB.Content._root)b=FB.Content._root;else if(FB.Content._root=b=FB.$("fb-root"))b.className+=" fb_reset";else{FB.log('The "fb-root" div has not been created.');return}if("string"==typeof a){var c=document.createElement("div");b.appendChild(c).innerHTML=a;return c}return b.appendChild(a)},appendHidden:function(a){if(!FB.Content._hiddenRoot){var b=document.createElement("div"),c=b.style;c.position="absolute";c.top="-10000px";c.width=c.height=0;FB.Content._hiddenRoot=FB.Content.append(b)}return FB.Content.append(a,FB.Content._hiddenRoot)},insertIframe:function(a){a.id=a.id||FB.guid();a.name=a.name||FB.guid();var b=FB.guid(),c=!1,d=!1;FB.Content._callbacks[b]=function(){c&&!d&&(d=!0,a.onload&&a.onload(a.root.firstChild))};if(document.attachEvent){var e='<iframe id="'+a.id+'" name="'+a.name+'"'+(a.title?' title="'+a.title+'"':"")+(a.className?' class="'+a.className+'"':"")+' style="border:none;'+(a.width?"width:"+a.width+"px;":"")+(a.height?"height:"+a.height+"px;":"")+'" src="'+a.url+'" frameborder="0" scrolling="no" allowtransparency="true" onload="FB.Content._callbacks.'+b+'()"></iframe>';a.root.innerHTML='<iframe src="javascript:false" frameborder="0" scrolling="no" style="height:1px"></iframe>';c=!0;window.setTimeout(function(){a.root.innerHTML=e;a.onInsert&&a.onInsert(a.root.firstChild)},0)}else{var f=document.createElement("iframe");f.id=a.id;f.name=a.name;f.onload=FB.Content._callbacks[b];f.scrolling="no";f.style.border="none";f.style.overflow="hidden";if(a.title)f.title=a.title;if(a.className)f.className=a.className;if(a.height)f.style.height=a.height+"px";if(a.width)f.style.width=a.width+"px";a.root.appendChild(f);c=!0;f.src=a.url;a.onInsert&&a.onInsert(f)}},submitToTarget:function(a,b){var c=document.createElement("form");c.action=a.url;c.target=a.target;c.method=b?"GET":"POST";FB.Content.appendHidden(c);FB.Array.forEach(a.params,function(a,b){if(null!==a&&void 0!==a){var f=document.createElement("input");f.name=b;f.value=a;c.appendChild(f)}});c.submit();c.parentNode.removeChild(c)}});FB.provide("Flash",{_minVersions:[[9,0,159,0],[10,0,22,87]],_swfPath:"swf/XdComm.swf",_callbacks:[],_names:{},_unloadRegistered:!1,init:function(){if(!FB.Flash._init)FB.Flash._init=!0,window.FB_OnFlashXdCommReady=function(){FB.Flash._ready=!0;for(var a=0,b=FB.Flash._callbacks.length;a<b;a++)FB.Flash._callbacks[a]();FB.Flash._callbacks=[]},FB.Flash.embedSWF("XdComm",FB.getDomain("cdn_foreign")+FB.Flash._swfPath)},embedSWF:function(a,b,c){var d=!!document.attachEvent;FB.Content.appendHidden('<object type="application/x-shockwave-flash" id="'+a+'" '+(c?'flashvars="'+c+'" ':"")+(d?'name="'+a+'" ':"")+(d?"":'data="'+b+'" ')+(d?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ':"")+'allowscriptaccess="always"><param name="movie" value="'+b+'"></param><param name="allowscriptaccess" value="always"></param></object>');if(9<=FB.UA.ie()){if(!FB.Flash._unloadRegistered)window.attachEvent("onunload",function(){FB.Array.forEach(FB.Flash._names,function(a,b){var c=document.getElementById(b);c&&c.removeNode(!0)})}),FB.Flash._unloadRegistered=!0;FB.Flash._names[a]=!0}},hasMinVersion:function(){if("undefined"===typeof FB.Flash._hasMinVersion){var a,b,c=[];try{a=(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(d){if(0<navigator.mimeTypes.length&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)a=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description}if(a){var e=a.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",");for(a=0,b=e.length;a<b;a++)c.push(parseInt(e[a],10))}FB.Flash._hasMinVersion=!1;a=0;b=FB.Flash._minVersions.length;a:for(;a<b;a++)if(e=FB.Flash._minVersions[a],e[0]==c[0])for(var f=1,g=e.length,h=c.length;f<g&&f<h;f++)if(c[f]<e[f]){FB.Flash._hasMinVersion=!1;continue a}else if(FB.Flash._hasMinVersion=!0,c[f]>e[f])break a}return FB.Flash._hasMinVersion},onReady:function(a){FB.Flash.init();FB.Flash._ready?window.setTimeout(a,0):FB.Flash._callbacks.push(a)}});if(!this.JSON)this.JSON={};(function(){function a(a){return 10>a?"0"+a:a}function b(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=h[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,h,l,n,o=f,k,i=d[a];i&&"object"===typeof i&&"function"===typeof i.toJSON&&(i=i.toJSON(a));"function"===typeof j&&(i=j.call(d,a,i));switch(typeof i){case "string":return b(i);case "number":return isFinite(i)?""+i:"null";case "boolean":case "null":return""+i;case "object":if(!i)return"null";f+=g;k=[];if("[object Array]"===Object.prototype.toString.apply(i)){n=i.length;for(e=0;e<n;e+=1)k[e]=c(e,i)||"null";l=0===k.length?"[]":f?"[\n"+f+k.join(",\n"+f)+"\n"+o+"]":"["+k.join(",")+"]";f=o;return l}if(j&&"object"===typeof j){n=j.length;for(e=0;e<n;e+=1)h=j[e],"string"===typeof h&&(l=c(h,i))&&k.push(b(h)+(f?": ":":")+l)}else for(h in i)Object.hasOwnProperty.call(i,h)&&(l=c(h,i))&&k.push(b(h)+(f?": ":":")+l);l=0===k.length?"{}":f?"{\n"+f+k.join(",\n"+f)+"\n"+o+"}":"{"+k.join(",")+"}";f=o;return l}}if("function"!==typeof Date.prototype.toJSON)Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;if("function"!==typeof JSON.stringify)JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((j=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})};if("function"!==typeof JSON.parse)JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");}})();FB.provide("JSON",{stringify:function(a){return window.Prototype&&Object.toJSON?Object.toJSON(a):JSON.stringify(a)},parse:function(a){return JSON.parse(a)},flatten:function(a){var b={},c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];null===d||void 0===d||(b[c]="string"==typeof d?d:FB.JSON.stringify(d))}return b}});FB.provide("",{api:function(){"string"===typeof arguments[0]?FB.ApiServer.graph.apply(FB.ApiServer,arguments):FB.ApiServer.rest.apply(FB.ApiServer,arguments)}});FB.provide("ApiServer",{METHODS:["get","post","delete","put"],_callbacks:{},_readOnlyCalls:{fql_query:!0,fql_multiquery:!0,friends_get:!0,notifications_get:!0,stream_get:!0,users_getinfo:!0},graph:function(){for(var a=Array.prototype.slice.call(arguments),b=a.shift(),c=a.shift(),d,e,f;c;){var g=typeof c;if("string"===g&&!d)d=c.toLowerCase();else if("function"===g&&!f)f=c;else if("object"===g&&!e)e=c;else{FB.log("Invalid argument passed to FB.api(): "+c);return}c=a.shift()}d=d||"get";e=e||{};"/"===b[0]&&(b=b.substr(1));0>FB.Array.indexOf(FB.ApiServer.METHODS,d)?FB.log("Invalid method passed to FB.api(): "+d):FB.ApiServer.oauthRequest("graph",b,d,e,f)},rest:function(a,b){var c=a.method.toLowerCase().replace(".","_");if(FB.Auth&&"auth_revokeauthorization"===c)var d=b,b=function(a){!0===a&&(FB._oauth?FB.Auth.setAuthResponse(null,"not_authorized"):FB.Auth.setSession(null,"notConnected"));d&&d(a)};a.format="json-strings";a.api_key=FB._apiKey;FB.ApiServer.oauthRequest(FB.ApiServer._readOnlyCalls[c]?"api_read":"api","restserver.php","get",a,b)},oauthRequest:function(a,b,c,d,e){if(!d.access_token&&FB.getAccessToken())d.access_token=FB.getAccessToken();d.sdk="joey";d.pretty=0;var f=e,e=function(a){FB.Auth&&a&&FB._session&&FB._session.access_token==d.access_token&&("190"===a.error_code||a.error&&("invalid_token"===a.error||"OAuthException"===a.error.type))&&FB.getLoginStatus(null,!0);f&&f(a)};try{FB.ApiServer.jsonp(a,b,c,FB.JSON.flatten(d),e)}catch(g){try{if(!FB.initSitevars.corsKillSwitch&&FB.ApiServer.corsPost(a,b,c,FB.JSON.flatten(d),e))return}catch(h){}if(FB.Flash.hasMinVersion())FB.ApiServer.flash(a,b,c,FB.JSON.flatten(d),e);else throw Error("Your browser does not support long connect requests. You can fix this problem by upgrading your browser or installing the latest version of Flash");}},corsPost:function(a,b,c,d,e){b=FB.getDomain(a)+b;if("graph"==a)d.method=c;var a=FB.QS.encode(d),f=FB.ApiServer._createCORSRequest("POST",b,"application/x-www-form-urlencoded");return f?(f.onload=function(){e&&e(FB.JSON.parse(f.responseText))},f.send(a),!0):!1},_createCORSRequest:function(a,b,c){if(!window.XMLHttpRequest)return null;var d=new XMLHttpRequest;"withCredentials"in d?(d.open(a,b,!0),d.setRequestHeader("Content-type",c)):window.XDomainRequest?(d=new XDomainRequest,d.open(a,b)):d=null;return d},jsonp:function(a,b,c,d,e){var f=FB.guid(),g=document.createElement("script");if("graph"===a&&"get"!==c)d.method=c;d.callback="FB.ApiServer._callbacks."+f;a=FB.getDomain(a)+b+(-1<b.indexOf("?")?"&":"?")+FB.QS.encode(d);if(2E3<a.length)throw Error("JSONP only support a maximum of 2000 bytes of input.");FB.ApiServer._callbacks[f]=function(a){e&&e(a);delete FB.ApiServer._callbacks[f];g.parentNode.removeChild(g)};g.src=a;document.getElementsByTagName("head")[0].appendChild(g)},flash:function(a,b,c,d,e){if(!window.FB_OnXdHttpResult)window.FB_OnXdHttpResult=function(a,b){FB.ApiServer._callbacks[a](decodeURIComponent(b))};FB.Flash.onReady(function(){if("graph"===a)d.suppress_http_code=1;var f=FB.getDomain(a)+b,g=FB.QS.encode(d);if("get"===c)if(2E3<f.length+g.length){if("graph"===a)d.method="get";c="post";g=FB.QS.encode(d)}else f+=(-1<f.indexOf("?")?"&":"?")+g,g="";else if("post"!==c){if("graph"===a)d.method=c;c="post";g=FB.QS.encode(d)}var h=document.XdComm.sendXdHttpRequest(c.toUpperCase(),f,g,null);FB.ApiServer._callbacks[h]=function(a){e&&e(FB.JSON.parse(a));delete FB.ApiServer._callbacks[h]}})}});FB.provide("EventProvider",{subscribers:function(){if(!this._subscribersMap)this._subscribersMap={};return this._subscribersMap},subscribe:function(a,b){var c=this.subscribers();c[a]?c[a].push(b):c[a]=[b]},unsubscribe:function(a,b){var c=this.subscribers()[a];FB.Array.forEach(c,function(a,e){a==b&&(c[e]=null)})},monitor:function(a,b){if(!b()){var c=this,d=function(){b.apply(b,arguments)&&c.unsubscribe(a,d)};this.subscribe(a,d)}},clear:function(a){delete this.subscribers()[a]},fire:function(){var a=Array.prototype.slice.call(arguments),b=a.shift();FB.Array.forEach(this.subscribers()[b],function(b){b&&b.apply(this,a)})},listen:function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent(b,c)},unlisten:function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent(b,c)}});FB.provide("Event",FB.EventProvider);FB.provide("XD",{_origin:null,_transport:null,_callbacks:{},_forever:{},_xdProxyUrl:"connect/xd_proxy.php",_openerTransport:null,_openerOrigin:null,_nonOpenerOrigin:null,init:function(a){if(!FB.XD._origin){var b=window.location.protocol+"//"+window.location.host+"/"+FB.guid();if(window.addEventListener&&!window.attachEvent&&window.postMessage)FB.XD._origin=b,FB.XD.PostMessage.init(),FB.XD._transport="postmessage";else if(!a&&FB.Flash.hasMinVersion())if(document.getElementById("fb-root")){a=document.domain;if("facebook.com"==a)a=window.location.host;FB.XD._origin=window.location.protocol+"//"+a+"/"+FB.guid();FB.XD.Flash.init();FB.XD._transport="flash"}else FB.log&&FB.log("missing fb-root, defaulting to fragment-based xdcomm"),FB.XD._transport="fragment",FB.XD.Fragment._channelUrl=a||window.location.toString();else FB.XD._transport="fragment",FB.XD.Fragment._channelUrl=a||window.location.toString();a=!!window.attachEvent;if("postmessage"!=FB.XD._transport&&a&&window.postMessage)FB.XD._openerTransport=FB.XD._transport,FB.XD._openerOrigin=FB.XD._origin,FB.XD._nonOpenerOrigin=b}},resolveRelation:function(a){for(var b,c,d=a.split("."),e=window,f=0,g=d.length;f<g;f++)if(b=d[f],"opener"===b||"parent"===b||"top"===b)e=e[b];else if(c=/^frames\[['"]?([a-zA-Z0-9-_]+)['"]?\]$/.exec(b))e=e.frames[c[1]];else throw new SyntaxError("Malformed id to resolve: "+a+", pt: "+b);return e},handler:function(a,b,c,d,e){if(0<window.location.toString().indexOf(FB.XD.Fragment._magic))return"javascript:false;//";FB.initSitevars.forceSecureXdProxy&&(e=!0);e=FB.getDomain((e?"https_":"")+"cdn")+FB.XD._xdProxyUrl+"#";d=d||FB.guid();b=b||"opener";if(FB.XD._openerTransport)"opener"==b?(FB.XD._transport=FB.XD._openerTransport,FB.XD._origin=FB.XD._openerOrigin):(FB.XD.PostMessage.init(),FB.XD._transport="postmessage",FB.XD._origin=FB.XD._nonOpenerOrigin);if("fragment"==FB.XD._transport){var e=FB.XD.Fragment._channelUrl,f=e.indexOf("#");0<f&&(e=e.substr(0,f));e+=(0>e.indexOf("?")?"?":"&")+FB.XD.Fragment._magic+"#?=&"}c&&(FB.XD._forever[d]=!0);FB.XD._callbacks[d]=a;return e+FB.QS.encode({cb:d,origin:FB.XD._origin,relation:b,transport:FB.XD._transport})},recv:function(a){if("string"==typeof a)try{a=FB.JSON.parse(a)}catch(b){a=FB.QS.decode(a)}var c=FB.XD._callbacks[a.cb];FB.XD._forever[a.cb]||delete FB.XD._callbacks[a.cb];c&&c(a)},PostMessage:{_isInitialized:!1,init:function(){if(!FB.XD.PostMessage._isInitialized){var a=FB.XD.PostMessage.onMessage;window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a);FB.XD.PostMessage._isInitialized=!0}},onMessage:function(a){FB.XD.recv(a.data)}},WebView:{onMessage:function(a,b,c){FB.XD.recv(c)}},Flash:{init:function(){FB.Flash.onReady(function(){document.XdComm.postMessage_init("FB.XD.Flash.onMessage",FB.XD._openerOrigin?FB.XD._openerOrigin:FB.XD._origin)})},onMessage:function(a){FB.XD.recv(decodeURIComponent(a))}},Fragment:{_magic:"fb_xd_fragment",checkAndDispatch:function(){var a=window.location.toString(),b=a.substr(a.indexOf("#")+1);if(0<a.indexOf(FB.XD.Fragment._magic))FB.init=FB.getLoginStatus=FB.api=function(){},document.documentElement.style.display="none",FB.XD.resolveRelation(FB.QS.decode(b).relation).FB.XD.recv(b)}}});FB.XD.Fragment.checkAndDispatch();FB.provide("UA",{ie:function(){return FB.UA._populate()||this._ie},firefox:function(){return FB.UA._populate()||this._firefox},opera:function(){return FB.UA._populate()||this._opera},safari:function(){return FB.UA._populate()||this._safari},chrome:function(){return FB.UA._populate()||this._chrome},windows:function(){return FB.UA._populate()||this._windows},osx:function(){return FB.UA._populate()||this._osx},linux:function(){return FB.UA._populate()||this._linux},ios:function(){FB.UA._populate();return FB.UA.mobile()&&this._ios},mobile:function(){FB.UA._populate();return!FB._inCanvas&&FB.UA._enableMobile&&this._mobile},nativeApp:function(){return FB.UA.mobile()&&navigator.userAgent.match(/FBAN\/\w+;/i)},android:function(){FB.UA._populate();return FB.UA.mobile()&&this._android},iPad:function(){FB.UA._populate();return FB.UA.mobile()&&this._iPad},_populated:!1,_populate:function(){if(!FB.UA._populated){FB.UA._populated=!0;var a=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))/.exec(navigator.userAgent),b=/(Mac OS X)|(Windows)|(Linux)/.exec(navigator.userAgent),c=/\b(iPhone|iP[ao]d)/.exec(navigator.userAgent);FB.UA._iPad=/\b(iPad)/.exec(navigator.userAgent);FB.UA._android=navigator.userAgent.match(/Android/i);FB.UA._mobile=c||FB.UA._android||navigator.userAgent.match(/Mobile/i);if(a){FB.UA._ie=a[1]?parseFloat(a[1]):NaN;if(8<=FB.UA._ie&&!window.HTMLCollection)FB.UA._ie=7;FB.UA._firefox=a[2]?parseFloat(a[2]):NaN;FB.UA._opera=a[3]?parseFloat(a[3]):NaN;FB.UA._safari=a[4]?parseFloat(a[4]):NaN;FB.UA._safari?(a=/(?:Chrome\/(\d+\.\d+))/.exec(navigator.userAgent),FB.UA._chrome=a&&a[1]?parseFloat(a[1]):NaN):FB.UA._chrome=NaN}else FB.UA._ie=FB.UA._firefox=FB.UA._opera=FB.UA._chrome=FB.UA._safari=NaN;b?(FB.UA._osx=!!b[1],FB.UA._windows=!!b[2],FB.UA._linux=!!b[3]):FB.UA._osx=FB.UA._windows=FB.UA._linux=!1;FB.UA._ios=c}}});FB.provide("Arbiter",{_canvasProxyUrl:"connect/canvas_proxy.php",BEHAVIOR_EVENT:"e",BEHAVIOR_PERSISTENT:"p",BEHAVIOR_STATE:"s",inform:function(a,b,c,d,e){if(FB.Canvas.isTabIframe()||FB._inPlugin&&window.postMessage||!FB._inCanvas&&FB.UA.mobile()&&window.postMessage){var f=FB.JSON.stringify({method:a,params:b,behavior:e||FB.Arbiter.BEHAVIOR_PERSISTENT});if(window.postMessage){FB.XD.resolveRelation(c||"parent").postMessage(f,"*");return}try{window.opener.postMessage(f);return}catch(g){}}var a=FB.getDomain((d?"https_":"")+"staticfb")+FB.Arbiter._canvasProxyUrl+"#"+FB.QS.encode({method:a,params:FB.JSON.stringify(b||{}),behavior:e||FB.Arbiter.BEHAVIOR_PERSISTENT,relation:c}),h=FB.Content.appendHidden("");FB.Content.insertIframe({url:a,root:h,width:1,height:1,onload:function(){setTimeout(function(){h.parentNode.removeChild(h)},10)}})}});FB.provide("Canvas",{_timer:null,_lastSize:{},_pageInfo:{clientWidth:0,clientHeight:0,scrollLeft:0,scrollTop:0,offsetLeft:0,offsetTop:0},getPageInfo:function(a){var b={channelUrl:FB.XD.handler(function(b){for(var d in FB.Canvas._pageInfo)b[d]&&(FB.Canvas._pageInfo[d]=b[d]|0);a&&a(FB.Canvas._pageInfo)},"top.frames["+window.name+"]",!0),frame:window.name};FB.Arbiter.inform("getPageInfo",b,"top");return FB.Canvas._pageInfo},hideFlashElement:function(a){a.style.visibility="hidden"},showFlashElement:function(a){a.style.visibility=""},_flashClassID:"CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000",_hideFlashCallback:function(a){for(var b=window.document.getElementsByTagName("object"),c=0;c<b.length;c++){var d=b[c];if(!("application/x-shockwave-flash"!=d.type.toLowerCase()&&d.classid.toUpperCase()!=FB.Canvas._flashClassID)){for(var e=!1,f=0;f<d.childNodes.length;f++)if("param"==d.childNodes[f].nodeName.toLowerCase()&&"wmode"==d.childNodes[f].name.toLowerCase()&&("opaque"==d.childNodes[f].value.toLowerCase()||"transparent"==d.childNodes[f].value.toLowerCase()))e=!0;if(!e)if(0.001>=Math.random()&&FB.api(FB._apiKey+"/occludespopups","post",{}),FB.Canvas._devHideFlashCallback)d={state:a.state,elem:d},setTimeout(function(a){"opened"==a.state?FB.Canvas.hideFlashElement(a.elem):FB.Canvas.showFlashElement(a.elem)}.bind(this,d),200),FB.Canvas._devHideFlashCallback(d);else if("opened"==a.state)d._old_visibility=d.style.visibility,d.style.visibility="hidden";else if("closed"==a.state)d.style.visibility=d._old_visibility,delete d._old_visibility}}},_devHideFlashCallback:null,_setHideFlashCallback:function(a){FB.Canvas._devHideFlashCallback=a},init:function(){var a=FB.Dom.getViewportInfo();FB.Canvas._pageInfo.clientWidth=a.width;FB.Canvas._pageInfo.clientHeight=a.height;FB.Canvas.getPageInfo();a=FB.XD.handler(FB.Canvas._hideFlashCallback,"top.frames["+window.name+"]",!0);FB.Arbiter.inform("iframeSetupFlashHiding",{channelUrl:a})},setSize:function(a){"object"!=typeof a&&(a={});var b=0,c=0,a=a||{};if(null==a.width||null==a.height)a=FB.copy(a,FB.Canvas._computeContentSize()),b=16,c=4;a=FB.copy(a,{frame:window.name||"iframe_canvas"});if(FB.Canvas._lastSize[a.frame]){var d=a.height-FB.Canvas._lastSize[a.frame].height;if(FB.Canvas._lastSize[a.frame].width==a.width&&d<=c&&d>=-b)return!1}FB.Canvas._lastSize[a.frame]=a;FB.Arbiter.inform("setSize",a);return!0},scrollTo:function(a,b){FB.Arbiter.inform("scrollTo",{frame:window.name||"iframe_canvas",x:a,y:b})},setAutoGrow:function(a,b){void 0===b&&"number"==typeof a&&(b=a,a=!0);if(void 0===a||a){if(null===FB.Canvas._timer)FB.Canvas._timer=window.setInterval(FB.Canvas.setSize,b||100);FB.Canvas.setSize()}else if(null!==FB.Canvas._timer)window.clearInterval(FB.Canvas._timer),FB.Canvas._timer=null},setAutoResize:function(a,b){return FB.Canvas.setAutoGrow(a,b)},isTabIframe:function(){return 0===window.name.indexOf("app_runner_")},setDoneLoading:function(a){FB.Canvas._passAppTtiMessage(a,"RecordIframeAppTti")},stopTimer:function(a){FB.Canvas._passAppTtiMessage(a,"StopIframeAppTtiTimer")},setUrlHandler:function(a){var b=FB.XD.handler(a,"top.frames["+window.name+"]",!0);FB.Arbiter.inform("setUrlHandler",b);FB.Event.listen(window,"load",function(){FB.Arbiter.inform("setUrlHandler",b)})},startTimer:function(){FB.Canvas._passAppTtiMessage(null,"StartIframeAppTtiTimer")},_passAppTtiMessage:function(a,b){var c=null;a&&(c=FB.XD.handler(a,"top.frames["+window.name+"]",!1));FB.Arbiter.inform(b,{frame:window.name||"iframe_canvas",time:(new Date).getTime(),appId:parseInt(FB._apiKey,10),channelUrl:c})},_computeContentSize:function(){var a=document.body,b=document.documentElement,c=0,d=Math.max(a.offsetTop,0),e=Math.max(b.offsetTop,0);bottom=Math.max(a.scrollHeight+d,a.offsetHeight+d,b.scrollHeight+e,b.offsetHeight+e);a.offsetWidth<a.scrollWidth?c=a.scrollWidth+a.offsetLeft:FB.Array.forEach(a.childNodes,function(a){a=a.offsetWidth+a.offsetLeft;a>c&&(c=a)});0<b.clientLeft&&(c+=2*b.clientLeft);0<b.clientTop&&(bottom+=2*b.clientTop);return{height:bottom,width:c}}});FB.provide("Intl",{_punctCharClass:"[.!?\u3002\uff01\uff1f\u0964\u2026\u0eaf\u1801\u0e2f\uff0e]",_endsInPunct:function(a){return"string"!=typeof a?!1:a.match(RegExp(FB.Intl._punctCharClass+"[)\"'\u00bb\u0f3b\u0f3d\u2019\u201d\u203a\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3f\uff07\uff09\uff3ds]*$"))},_tx:function(a,b){if(void 0!==b)if("object"!=typeof b)FB.log("The second arg to FB.Intl._tx() must be an Object for tx("+a+", ...)");else{var c,d;for(d in b)b.hasOwnProperty(d)&&(c=FB.Intl._endsInPunct(b[d])?RegExp("{"+d+"}"+FB.Intl._punctCharClass+"*","g"):RegExp("{"+d+"}","g"),a=a.replace(c,b[d]))}return a},tx:function(a,b){return!FB.Intl._stringTable?null:FBIntern.Intl._tx(FB.Intl._stringTable[a],b)}});FB.provide("String",{trim:function(a){return a.replace(/^\s*|\s*$/g,"")},format:function(a){if(!FB.String.format._formatRE)FB.String.format._formatRE=/(\{[^\}^\{]+\})/g;var b=arguments;return a.replace(FB.String.format._formatRE,function(a,d){var e=parseInt(d.substr(1),10),e=b[e+1];return null===e||void 0===e?"":e.toString()})},escapeHTML:function(a){var b=document.createElement("div");b.appendChild(document.createTextNode(a));return b.innerHTML.replace(/"/g,"&quot;").replace(/'/g,"&#39;")},quote:function(a){var b=/["\\\x00-\x1f\x7f-\x9f]/g,c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return b.test(a)?'"'+a.replace(b,function(a){var b=c[a];if(b)return b;b=a.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"':'"'+a+'"'}});FB.provide("Dom",{containsCss:function(a,b){return 0<=(" "+a.className+" ").indexOf(" "+b+" ")},addCss:function(a,b){if(!FB.Dom.containsCss(a,b))a.className=a.className+" "+b},removeCss:function(a,b){if(FB.Dom.containsCss(a,b))a.className=a.className.replace(b,""),FB.Dom.removeCss(a,b)},getByClass:function(a,b){b=b||document.body;if(b.getElementsByClassName)return FB.Array.toArray(b.getElementsByClassName(a));for(var c=b.getElementsByTagName("*"),d=[],e=0,f=c.length;e<f;e++)this.containsCss(c[e],a)&&(d[d.length]=c[e]);return d},getStyle:function(a,b){var c=!1;if(a.currentStyle)FB.Array.forEach(b.match(/\-([a-z])/g),function(a){b=b.replace(a,a.substr(1,1).toUpperCase())}),c=a.currentStyle[b];else if(FB.Array.forEach(b.match(/[A-Z]/g),function(a){b=b.replace(a,"-"+a.toLowerCase())}),window.getComputedStyle&&(c=document.defaultView.getComputedStyle(a,null).getPropertyValue(b),"background-position-y"==b||"background-position-x"==b))if("top"==c||"left"==c)c="0px";return"opacity"==b?a.filters&&a.filters.alpha?c:100*c:c},setStyle:function(a,b,c){var d=a.style;if("opacity"==b){if(100<=c&&(c=99.999),0>c&&(c=0),d.opacity=c/100,d.MozOpacity=c/100,d.KhtmlOpacity=c/100,a.filters)void 0==a.filters.alpha?a.filter="alpha(opacity="+c+")":a.filters.alpha.opacity=c}else d[b]=c},addScript:function(a){var b=document.createElement("script");b.type="text/javascript";b.src=a;return document.getElementsByTagName("head")[0].appendChild(b)},addCssRules:function(a,b){if(!FB.Dom._cssRules)FB.Dom._cssRules={};var c=!0;FB.Array.forEach(b,function(a){a in FB.Dom._cssRules||(c=!1,FB.Dom._cssRules[a]=!0)});if(!c)if(FB.UA.ie())try{document.createStyleSheet().cssText=a}catch(d){document.styleSheets[0]&&(document.styleSheets[0].cssText+=a)}else{var e=document.createElement("style");e.type="text/css";e.textContent=a;document.getElementsByTagName("head")[0].appendChild(e)}},getViewportInfo:function(){var a=document.documentElement&&"CSS1Compat"==document.compatMode?document.documentElement:document.body;return{scrollTop:a.scrollTop,scrollLeft:a.scrollLeft,width:self.innerWidth?self.innerWidth:a.clientWidth,height:self.innerHeight?self.innerHeight:a.clientHeight}},ready:function(a){FB.Dom._isReady?a&&a():FB.Event.subscribe("dom.ready",a)}});(function(){function a(){FB.Dom._isReady=!0;FB.Event.fire("dom.ready");FB.Event.clear("dom.ready")}if(FB.Dom._isReady||"complete"==document.readyState)return a();document.addEventListener?document.addEventListener("DOMContentLoaded",a,!1):document.attachEvent&&document.attachEvent("onreadystatechange",a);FB.UA.ie()&&window===top&&function(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a()}();var b=window.onload;window.onload=function(){a();b&&("string"==typeof b?eval(b):b())}})();FB.provide("",{bind:function(){var a=Array.prototype.slice.call(arguments),b=a.shift(),c=a.shift();return function(){return b.apply(c,a.concat(Array.prototype.slice.call(arguments)))}},Class:function(a,b,c){if(FB.CLASSES[a])return FB.CLASSES[a];b=b||function(){};b.prototype=c;b.prototype.bind=function(a){return FB.bind(a,this)};b.prototype.constructor=b;FB.create(a,b);return FB.CLASSES[a]=b},subclass:function(a,b,c,d){if(FB.CLASSES[a])return FB.CLASSES[a];var e=FB.create(b);FB.copy(d,e.prototype);d._base=e;d._callBase=function(a){var b=Array.prototype.slice.call(arguments,1);return e.prototype[a].apply(this,b)};return FB.Class(a,c?c:function(){e.apply&&e.apply(this,arguments)},d)},CLASSES:{}});FB.provide("Type",{isType:function(a,b){for(;a;){if(a.constructor===b||a===b)return!0;a=a._base}return!1}});FB.Class("Obj",null,FB.copy({setProperty:function(a,b){FB.JSON.stringify(b)!=FB.JSON.stringify(this[a])&&(this[a]=b,this.fire(a,b))}},FB.EventProvider));FB.subclass("Dialog","Obj",function(a){this.id=a;if(!FB.Dialog._dialogs)FB.Dialog._dialogs={},FB.Dialog._addOrientationHandler();FB.Dialog._dialogs[a]=this},{});FB.provide("Dialog",{_dialogs:null,_lastYOffset:0,_loaderEl:null,_overlayEl:null,_stack:[],_active:null,_popStateListenerOn:!1,_hideOnPopState:function(){FB.Dialog.hide(FB.Dialog._stack.pop())},get:function(a){return FB.Dialog._dialogs[a]},_findRoot:function(a){for(;a;){if(FB.Dom.containsCss(a,"fb_dialog"))return a;a=a.parentNode}},_createWWWLoader:function(a){a=parseInt(a,10);return FB.Dialog.create({content:'<div class="dialog_title">  <a id="fb_dialog_loader_close">    <div class="fb_dialog_close_icon"></div>  </a>  <span>Facebook</span>  <div style="clear:both;"></div></div><div class="dialog_content"></div><div class="dialog_footer"></div>',width:a?a:460})},_createMobileLoader:function(){var a=FB.UA.nativeApp()?"":'<table>  <tbody>    <tr>      <td class="header_left">        <label class="touchable_button">          <input type="submit" value="'+FB.Intl._tx("Cancel")+'"            id="fb_dialog_loader_close"/>        </label>      </td>      <td class="header_center">        <div>'+FB.Intl._tx("Loading...")+'</div>      </td>      <td class="header_right">      </td>    </tr>  </tbody></table>';return FB.Dialog.create({classes:"loading"+(FB.UA.iPad()?" centered":""),content:'<div class="dialog_header">'+a+"</div>"})},_restoreBodyPosition:function(){if(!FB.UA.iPad()){var a=document.getElementsByTagName("body")[0];FB.Dom.removeCss(a,"fb_hidden")}},_showIPadOverlay:function(){if(FB.UA.iPad()){if(!FB.Dialog._overlayEl)FB.Dialog._overlayEl=document.createElement("div"),FB.Dialog._overlayEl.setAttribute("id","fb_dialog_ipad_overlay"),FB.Content.append(FB.Dialog._overlayEl,null);FB.Dialog._overlayEl.className=""}},_hideIPadOverlay:function(){if(FB.UA.iPad())FB.Dialog._overlayEl.className="hidden"},showLoader:function(a,b){FB.Dialog._showIPadOverlay();if(!FB.Dialog._loaderEl)FB.Dialog._loaderEl=FB.Dialog._findRoot(FB.UA.mobile()?FB.Dialog._createMobileLoader():FB.Dialog._createWWWLoader(b));a||(a=function(){});var c=FB.$("fb_dialog_loader_close");FB.Dom.removeCss(c,"fb_hidden");c.onclick=function(){FB.Dialog._hideLoader();FB.Dialog._restoreBodyPosition();FB.Dialog._hideIPadOverlay();a()};var d=FB.$("fb_dialog_ipad_overlay");if(d)d.ontouchstart=c.onclick;FB.Dialog._makeActive(FB.Dialog._loaderEl)},_hideLoader:function(){if(FB.Dialog._loaderEl&&FB.Dialog._loaderEl==FB.Dialog._active)FB.Dialog._loaderEl.style.top="-10000px"},_makeActive:function(a){FB.Dialog._setDialogSizes();FB.Dialog._lowerActive();FB.Dialog._active=a;a=FB.Canvas.getPageInfo(function(a){FB.Dialog._centerActive(a)});FB.Dialog._centerActive(a)},_lowerActive:function(){if(FB.Dialog._active)FB.Dialog._active.style.top="-10000px",FB.Dialog._active=null},_removeStacked:function(a){FB.Dialog._stack=FB.Array.filter(FB.Dialog._stack,function(b){return b!=a})},_centerActive:function(a){var b=FB.Dialog._active;if(b){var c=FB.Dom.getViewportInfo(),d=parseInt(b.offsetWidth,10),e=parseInt(b.offsetHeight,10),d=c.scrollLeft+(c.width-d)/2,f=(c.height-e)/2.5;d<f&&(f=d);var g=c.height-e-f,a=a.scrollTop-a.offsetTop+(a.clientHeight-e)/2;a<f?a=f:a>g&&(a=g);a+=c.scrollTop;if(FB.UA.mobile()&&(f=100,FB.UA.iPad()?f+=(c.height-e)/2:(c=document.getElementsByTagName("body")[0],FB.Dom.addCss(c,"fb_hidden"),a=d=1E4),c=FB.Dom.getByClass("fb_dialog_padding",b),c.length))c[0].style.height=f+"px";b.style.left=(0<d?d:0)+"px";b.style.top=(0<a?a:0)+"px"}},_setDialogSizes:function(){if(FB.UA.mobile()&&!FB.UA.iPad())for(var a in FB.Dialog._dialogs)if(document.getElementById(a)){var b=document.getElementById(a);b.style.width=FB.UIServer.getDefaultSize().width+"px";b.style.height=FB.UIServer.getDefaultSize().height+"px"}},_handleOrientationChange:function(){if(FB.UA.android()&&screen.availWidth==FB.Dialog._availScreenWidth)window.setTimeout(FB.Dialog._handleOrientationChange,50);else if(FB.Dialog._availScreenWidth=screen.availWidth,FB.UA.iPad())FB.Dialog._centerActive(FB.Canvas.getPageInfo());else for(var a in FB.Dialog._dialogs)if(document.getElementById(a))document.getElementById(a).style.width=FB.UIServer.getDefaultSize().width+"px"},_addOrientationHandler:function(){if(FB.UA.mobile()){var a;FB.Dialog._availScreenWidth=screen.availWidth;FB.Event.listen(window,"onorientationchange"in window?"orientationchange":"resize",FB.Dialog._handleOrientationChange)}},create:function(a){var a=a||{},b=document.createElement("div"),c=document.createElement("div"),d="fb_dialog";if(a.closeIcon&&a.onClose){var e=document.createElement("a");e.className="fb_dialog_close_icon";e.onclick=a.onClose;b.appendChild(e)}d+=" "+(a.classes||"");FB.UA.ie()?(d+=" fb_dialog_legacy",FB.Array.forEach("vert_left,vert_right,horiz_top,horiz_bottom,top_left,top_right,bottom_left,bottom_right".split(","),function(a){var c=document.createElement("span");c.className="fb_dialog_"+a;b.appendChild(c)})):d+=FB.UA.mobile()?" fb_dialog_mobile":" fb_dialog_advanced";a.content&&FB.Content.append(a.content,c);b.className=d;d=parseInt(a.width,10);if(!isNaN(d))b.style.width=d+"px";c.className="fb_dialog_content";b.appendChild(c);if(FB.UA.mobile())d=document.createElement("div"),d.className="fb_dialog_padding",b.appendChild(d);FB.Content.append(b);a.visible&&FB.Dialog.show(b);return c},show:function(a){var b=FB.Dialog._findRoot(a);if(b&&(FB.Dialog._removeStacked(b),FB.Dialog._hideLoader(),FB.Dialog._makeActive(b),FB.Dialog._stack.push(b),"fbCallID"in a&&FB.Dialog.get(a.fbCallID).fire("iframe_show"),!FB.Event._popStateListenerOn))FB.Event.listen(window,"popstate",FB.Dialog._hideOnPopState),FB.Event._popStateListenerOn=!0},hide:function(a){if(FB.Dialog._findRoot(a)==FB.Dialog._active&&(FB.Dialog._lowerActive(),FB.Dialog._restoreBodyPosition(),FB.Dialog._hideIPadOverlay(),"fbCallID"in a&&FB.Dialog.get(a.fbCallID).fire("iframe_hide"),FB.Event._popStateListenerOn))FB.Event.unlisten(window,"popstate",FB.Dialog._hideOnPopState),FB.Event._popStateListenerOn=!1},remove:function(a){if(a=FB.Dialog._findRoot(a)){var b=FB.Dialog._active==a;FB.Dialog._removeStacked(a);b?(FB.Dialog._hideLoader(),0<FB.Dialog._stack.length?FB.Dialog.show(FB.Dialog._stack.pop()):(FB.Dialog._lowerActive(),FB.Dialog._restoreBodyPosition(),FB.Dialog._hideIPadOverlay())):null===FB.Dialog._active&&0<FB.Dialog._stack.length&&FB.Dialog.show(FB.Dialog._stack.pop());window.setTimeout(function(){a.parentNode.removeChild(a)},3E3)}},isActive:function(a){return(a=FB.Dialog._findRoot(a))&&a===FB.Dialog._active}});FB.provide("",{ui:function(a,b){a=FB.copy({},a);if(!a.method)return FB.log('"method" is a required parameter for FB.ui().'),null;if(("permissions.request"==a.method||"permissions.oauth"==a.method)&&("iframe"==a.display||"dialog"==a.display)){var c;FB._oauth?(c=a.scope,c=c.split(/\s|,/g)):(c=a.perms,c=c.split(","));for(var d=0;d<c.length;d++){var e=FB.String.trim(c[d]);if(e&&!FB.initSitevars.iframePermissions[e]){a.display="popup";break}}}c=FB.UIServer.prepareCall(a,b);if(!c)return null;d=c.params.display;"dialog"===d?d="iframe":"none"===d&&(d="hidden");d=FB.UIServer[d];if(!d)return FB.log('"display" must be one of "popup", "dialog", "iframe", "touch", "async", "hidden", or "none"'),null;d(c);return c.dialog}});FB.provide("UIServer",{Methods:{},_loadedNodes:{},_defaultCb:{},_resultToken:'"xxRESULTTOKENxx"',_forceHTTPS:!1,genericTransform:function(a){if("dialog"==a.params.display||"iframe"==a.params.display)a.params.display="iframe",a.params.channel=FB.UIServer._xdChannelHandler(a.id,"parent.parent");return a},prepareCall:function(a,b){var c=a.method.toLowerCase(),d=FB.copy({},FB.UIServer.Methods[c]),e=FB.guid(),f=!0!==d.noHttps&&(FB._https||"auth.status"!==c&&"login.status"!=c);FB.UIServer._forceHTTPS=f;FB.copy(a,{api_key:FB._apiKey,app_id:FB._apiKey,locale:FB._locale,sdk:"joey",access_token:f&&FB.getAccessToken()||void 0});a.display=FB.UIServer.getDisplayMode(d,a);if(!d.url)d.url="dialog/"+c;c={cb:b,id:e,size:d.size||FB.UIServer.getDefaultSize(),url:FB.getDomain(f?"https_www":"www")+d.url,forceHTTPS:f,params:a,name:c,dialog:new FB.Dialog(e)};if(f=d.transform?d.transform:FB.UIServer.genericTransform)if(c=f(c),!c)return;d=(d.getXdRelation||FB.UIServer.getXdRelation)(c.params);if(!(c.id in FB.UIServer._defaultCb)&&!("next"in c.params)&&!("redirect_uri"in c.params))c.params.next=FB.UIServer._xdResult(c.cb,c.id,d,!0);if("parent"===d)c.params.channel_url=FB.UIServer._xdChannelHandler(e,"parent.parent");return c=FB.UIServer.prepareParams(c)},prepareParams:function(a){var b=a.params.method;FB.Canvas.isTabIframe()||delete a.params.method;FB.TemplateUI&&FB.TemplateUI.supportsTemplate(b,a)?(FB.reportTemplates&&console.log("Using template for "+b+"."),FB.TemplateUI.useCachedUI(b,a)):(a.params=FB.JSON.flatten(a.params),b=FB.QS.encode(a.params),!FB.UA.nativeApp()&&FB.UIServer.urlTooLongForIE(a.url+"?"+b)?a.post=!0:b&&(a.url+="?"+b));return a},urlTooLongForIE:function(a){return 2E3<a.length},getDisplayMode:function(a,b){if("hidden"===b.display||"none"===b.display)return b.display;if(FB.Canvas.isTabIframe()&&"popup"!==b.display)return"async";if(FB.UA.mobile()||"touch"===b.display)return"touch";return!FB.getAccessToken()&&"dialog"==b.display&&!a.loggedOutIframe?(FB.log('"dialog" mode can only be used when the user is connected.'),"popup"):a.connectDisplay&&!FB._inCanvas?a.connectDisplay:b.display||(FB.getAccessToken()?"dialog":"popup")},getXdRelation:function(a){a=a.display;if("popup"===a||"touch"===a)return"opener";if("dialog"===a||"iframe"===a||"hidden"===a||"none"===a)return"parent";if("async"===a)return"parent.frames["+window.name+"]"},popup:function(a){var b="undefined"!=typeof window.screenX?window.screenX:window.screenLeft,c="undefined"!=typeof window.screenY?window.screenY:window.screenTop,d="undefined"!=typeof window.outerWidth?window.outerWidth:document.documentElement.clientWidth,e="undefined"!=typeof window.outerHeight?window.outerHeight:document.documentElement.clientHeight-22,f=FB.UA.mobile()?null:a.size.width,g=FB.UA.mobile()?null:a.size.height,b=parseInt((0>b?window.screen.width+b:b)+(d-f)/2,10),c=parseInt(c+(e-g)/2.5,10),e=[];null!==f&&e.push("width="+f);null!==g&&e.push("height="+g);e.push("left="+b);e.push("top="+c);e.push("scrollbars=1");("permissions.request"==a.name||"permissions.oauth"==a.name)&&e.push("location=1,toolbar=0");e=e.join(",");a.post?(FB.UIServer.setLoadedNode(a,window.open("about:blank",a.id,e)),FB.Content.submitToTarget({url:a.url,target:a.id,params:a.params})):FB.UIServer.setLoadedNode(a,window.open(a.url,a.id,e));a.id in FB.UIServer._defaultCb&&FB.UIServer._popupMonitor()},setLoadedNode:function(a,b){FB.UIServer._loadedNodes[a.id]=b;if(a.params)b.fbCallID=a.id},getLoadedNode:function(a){return FB.UIServer._loadedNodes[a.id]},hidden:function(a){a.className="FB_UI_Hidden";a.root=FB.Content.appendHidden("");FB.UIServer._insertIframe(a)},iframe:function(a){a.className="FB_UI_Dialog";var b=function(){FB.UIServer._triggerDefault(a.id)};a.root=FB.Dialog.create({onClose:b,closeIcon:!0,classes:FB.UA.iPad()?"centered":""});a.hideLoader||FB.Dialog.showLoader(b,a.size.width);FB.Dom.addCss(a.root,"fb_dialog_iframe");FB.UIServer._insertIframe(a)},touch:function(a){a.params&&a.params.in_iframe?a.ui_created?FB.Dialog.showLoader(function(){FB.UIServer._triggerDefault(a.id)},0):FB.UIServer.iframe(a):FB.UA.nativeApp()&&!a.ui_created?(a.frame=a.id,FB.Native.onready(function(){FB.UIServer.setLoadedNode(a,FB.Native.open(a.url+"#cb="+a.frameName))}),FB.UIServer._popupMonitor()):a.ui_created||FB.UIServer.popup(a)},async:function(a){a.frame=window.name;delete a.url;delete a.size;FB.Arbiter.inform("showDialog",a)},getDefaultSize:function(){if(FB.UA.mobile()){if(FB.UA.iPad())return{width:500,height:590};if(FB.UA.android())return{width:screen.availWidth,height:screen.availHeight};var a=window.innerWidth,b=window.innerHeight;return{width:a,height:Math.max(b,1.2<a/b?screen.width:screen.height)}}return{width:575,height:240}},_insertIframe:function(a){FB.UIServer._loadedNodes[a.id]=!1;var b=function(b){a.id in FB.UIServer._loadedNodes&&FB.UIServer.setLoadedNode(a,b)};a.post?FB.Content.insertIframe({url:"about:blank",root:a.root,className:a.className,width:a.size.width,height:a.size.height,id:a.id,onInsert:b,onload:function(b){FB.Content.submitToTarget({url:a.url,target:b.name,params:a.params})}}):FB.Content.insertIframe({url:a.url,root:a.root,className:a.className,width:a.size.width,height:a.size.height,id:a.id,name:a.frameName,onInsert:b})},_handleResizeMessage:function(a,b){var c=FB.UIServer._loadedNodes[a];if(b.height)c.style.height=b.height+"px";if(b.width)c.style.width=b.width+"px";FB.Arbiter.inform("resize.ack",b||{},"parent.frames["+c.name+"]",!0);FB.Dialog.isActive(c)||FB.Dialog.show(c)},_triggerDefault:function(a){FB.UIServer._xdRecv({frame:a},FB.UIServer._defaultCb[a]||function(){})},_popupMonitor:function(){var a,b;for(b in FB.UIServer._loadedNodes)if(FB.UIServer._loadedNodes.hasOwnProperty(b)&&b in FB.UIServer._defaultCb){var c=FB.UIServer._loadedNodes[b];try{if(c.tagName)continue}catch(d){}try{c.closed?FB.UIServer._triggerDefault(b):a=!0}catch(e){}}if(a&&!FB.UIServer._popupInterval)FB.UIServer._popupInterval=window.setInterval(FB.UIServer._popupMonitor,100);else if(!a&&FB.UIServer._popupInterval)window.clearInterval(FB.UIServer._popupInterval),FB.UIServer._popupInterval=null},_xdChannelHandler:function(a,b){var c=FB.UIServer._forceHTTPS&&7!==FB.UA.ie();return FB.XD.handler(function(b){var c=FB.UIServer._loadedNodes[a];c&&("resize"==b.type?FB.UIServer._handleResizeMessage(a,b):"hide"==b.type?FB.Dialog.hide(c):"rendered"==b.type?(b=FB.Dialog._findRoot(c),FB.Dialog.show(b)):"fireevent"==b.type&&FB.Event.fire(b.event))},b,!0,null,c)},_xdNextHandler:function(a,b,c,d){d&&(FB.UIServer._defaultCb[b]=a);return FB.XD.handler(function(b){FB.UIServer._xdRecv(b,a)},c)+"&frame="+b},_xdRecv:function(a,b){var c=FB.UIServer._loadedNodes[a.frame];try{FB.Dom.containsCss(c,"FB_UI_Hidden")?window.setTimeout(function(){c.parentNode.parentNode.removeChild(c.parentNode)},3E3):FB.Dom.containsCss(c,"FB_UI_Dialog")&&(FB.Dialog.remove(c),FB.TemplateUI&&FB.UA.mobile()&&FB.TemplateUI.populateCache())}catch(d){}try{c.close&&(c.close(),FB.UIServer._popupCount--)}catch(e){}delete FB.UIServer._loadedNodes[a.frame];delete FB.UIServer._defaultCb[a.frame];b(a)},_xdResult:function(a,b,c,d){return FB.UIServer._xdNextHandler(function(b){a&&a(b.result&&b.result!=FB.UIServer._resultToken&&FB.JSON.parse(b.result))},b,c,d)+"&result="+encodeURIComponent(FB.UIServer._resultToken)}});FB.provide("",{getLoginStatus:function(a,b){if(FB._apiKey){if(a){if(!b&&"loaded"==FB.Auth._loadState){FB._oauth?a({status:FB._userStatus,authResponse:FB._authResponse}):a({status:FB._userStatus,session:FB._session});return}FB.Event.subscribe("FB.loginStatus",a)}if(b||"loading"!=FB.Auth._loadState){FB.Auth._loadState="loading";var c=function(a){FB.Auth._loadState="loaded";FB.Event.fire("FB.loginStatus",a);FB.Event.clear("FB.loginStatus")};FB.UA.mobile()&&window.postMessage&&window.localStorage?FB.Auth.staticAuthCheck(c):FB._oauth?FB.ui({method:"login.status",display:"none"},c):FB.ui({method:"auth.status",display:"hidden"},c)}}else FB.log("FB.getLoginStatus() called before calling FB.init().")},getSession:function(){if(FB._oauth)throw Error("FB.getSession incompatible with OAuth2.");return FB._session},getAuthResponse:function(){if(!FB._oauth)throw Error("getAuthResponse called when OAuth2 support is disabled.  Please fix.");return FB._authResponse},getAccessToken:function(){return FB._oauth?FB._authResponse&&FB._authResponse.accessToken||null:FB._session&&FB._session.access_token||null},getUserID:function(){return FB._oauth?FB._userID:FB._session&&FB._session.uid||0},login:function(a,b){if(FB._oauth){if(b&&b.perms)throw Error("OAuth2 specification states that 'perms' should now be called 'scope'.  Please update.");FB.ui(FB.copy({method:"permissions.oauth",display:"popup"},b||{}),a)}else FB.ui(FB.copy({method:"permissions.request",display:"popup"},b||{}),a)},logout:function(a){FB.ui({method:"auth.logout",display:"hidden"},a)}});FB.provide("Auth",{_callbacks:[],_xdStorePath:"xd_localstorage/",staticAuthCheck:function(a){var b=FB.getDomain("https_staticfb");FB.Content.insertIframe({root:FB.Content.appendHidden(""),className:"FB_UI_Hidden",url:b+FB.Auth._xdStorePath,onload:function(c){var c=frames[c.name],d=FB.guid(),e=!1,f=function(b){e||(e=!0,FB.Auth._staticAuthHandler(a,b))};FB.XD.handler(f,"parent",!0,d);setTimeout(f,500);c.postMessage(FB.JSON.stringify({method:"getItem",params:["LoginInfo_"+FB._apiKey,!0],returnCb:d}),b)}})},_staticAuthHandler:function(a,b){if(b&&b.data&&b.data.status&&"connected"==b.data.status){var c;c=b.data.status;c=FB._oauth?FB.Auth.setAuthResponse(b.data.authResponse||null,c):FB.Auth.setSession(b.data.session||null,c);a&&a(c)}else FB._oauth?FB.ui({method:"login.status",display:"none"},a):FB.ui({method:"auth.status",display:"hidden"},a)},setSession:function(a,b){if(FB._oauth)throw Error("FB.Auth.setSession incompatible with OAuth2.");var c=!FB._session&&a,d=FB._session&&!a,e=FB._session&&a&&FB._session.uid!=a.uid,f=c||d||FB._session&&a&&FB._session.access_token!=a.access_token,g=b!=FB._userStatus,h={session:a,status:b};FB._session=a;FB._userStatus=b;f&&FB.Cookie&&FB.Cookie.getEnabled()&&FB.Cookie.set(a);g&&FB.Event.fire("auth.statusChange",h);(d||e)&&FB.Event.fire("auth.logout",h);(c||e)&&FB.Event.fire("auth.login",h);f&&FB.Event.fire("auth.sessionChange",h);FB.Auth._refreshTimer&&(window.clearTimeout(FB.Auth._refreshTimer),delete FB.Auth._refreshTimer);if(FB.Auth._loadState&&a&&a.expires)FB.Auth._refreshTimer=window.setTimeout(function(){FB.getLoginStatus(null,!0)},12E5);return h},setAuthResponse:function(a,b){if(!FB._oauth)throw Error("FB.Auth.setAuthResponse only compatible with OAuth2.");var c=0;if(a)if(a.userID)c=a.userID;else if(a.signedRequest){var d=FB.Auth.parseSignedRequest(a.signedRequest);if(d&&d.user_id)c=d.user_id}var d=!FB._userID&&a,e=FB._userID&&!a,f=a&&FB._userID!=c,g=d||e||f,h=b!=FB._userStatus,j={authResponse:a,status:b};FB._authResponse=a;FB._userID=c;FB._userStatus=b;(e||f)&&FB.Event.fire("auth.logout",j);(d||f)&&FB.Event.fire("auth.login",j);g&&FB.Event.fire("auth.authResponseChange",j);h&&FB.Event.fire("auth.statusChange",j);FB.Auth._refreshTimer&&(window.clearTimeout(FB.Auth._refreshTimer),delete FB.Auth._refreshTimer);if(FB.Auth._loadState&&a)FB.Auth._refreshTimer=window.setTimeout(function(){FB.getLoginStatus(null,!0)},12E5);return j},xdHandler:function(a,b,c,d,e,f){return FB.UIServer._xdNextHandler(FB.Auth.xdResponseWrapper(a,e,f),b,c,d)},xdResponseWrapper:function(a,b,c){return function(d){try{c=FB.JSON.parse(d.session)}catch(e){}c&&(b="connected");if(d&&d.fb_https&&!FB._https)FB._https=!0;var f=FB.Auth.setSession(c||null,b);f.perms=d&&d.perms||null;if(d&&d.required_perms&&FB.UA.nativeApp()){var d=JSON.parse(d.required_perms),g=[];FB.Array.forEach(d,function(a){g=g.concat(a)});d=g.join(",");FB.login(a,{perms:d})}else a&&a(f)}},_getSessionOrigin:function(){return FB.UA.nativeApp()?3:FB.UA.mobile()?2:FB._inCanvas?5:1},xdNewHandler:function(a,b,c,d){if(!FB._oauth)throw Error("xdNewHandler should not be invoked unless OAuth2 is being used.");return FB.UIServer._xdNextHandler(FB.Auth.xdNewResponseWrapper(a,d),b,c,!0)},xdNewResponseWrapper:function(a,b){if(!FB._oauth)throw Error("xdNewResponseWrapper should not be invoked unless OAuth2 is being used.");return function(c){if(c.access_token){var d=FB.Auth.parseSignedRequest(c.signed_request);b={accessToken:c.access_token,userID:d.user_id,expiresIn:parseInt(c.expires_in,10),signedRequest:c.signed_request};FB.Auth.setAuthResponse(b,"connected");FB.Cookie.getEnabled()&&(d=(new Date).getTime()+1E3*b.expiresIn,FB.Cookie.setSignedRequestCookie(c.signed_request,d))}else!FB._authResponse&&b?FB.Auth.setAuthResponse(b,"connected"):(FB.Auth.setAuthResponse(null,c.error&&"not_authorized"===c.error?"not_authorized":"unknown"),FB.Cookie.getEnabled()&&FB.Cookie.clearSignedRequestCookie());if(c&&c.fb_https&&!FB._https)FB._https=!0;response={authResponse:FB._authResponse,status:FB._userStatus};a&&a(response)}},parseSignedRequest:function(a){if(!a)return null;a=a.split(".",2)[1];a=FB.Auth.base64URLDecode(a);return FB.JSON.parse(a)},base64URLDecode:function(a){a=a.replace(/\-/g,"+").replace(/\_/g,"/");if(0!==a.length%4)for(var b=4-a.length%4,c=0;c<b;c++)a+="=";for(var b="",d,e,f="",g="",h=0;h<a.length;h+=4)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h)),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h+1)),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h+2)),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(h+3)),d=d<<2|e>>4,e=(e&15)<<4|c>>2,f=(c&3)<<6|g,b+=String.fromCharCode(d),64!=c&&(b+=String.fromCharCode(e)),64!=g&&(b+=String.fromCharCode(f));return unescape(b)}});FB.provide("UIServer.Methods",{"permissions.request":{size:{width:FB.UA.mobile()?null:640,height:FB.UA.mobile()?null:241},transform:function(a){if(FB._apiKey)if(FB._session&&!a.params.perms&&!a.params.auth_type)FB.log("FB.login() called when user is already connected."),a.cb&&a.cb({status:FB._userStatus,session:FB._session});else return a=FB.UIServer.genericTransform(a),a.cb=FB.Auth.xdResponseWrapper(a.cb,FB._userStatus,FB._session),a.params.method="permissions.request",FB.copy(a.params,{fbconnect:FB._inCanvas?0:1,return_session:1,session_version:3}),a;else FB.log("FB.login() called before calling FB.init().")}},"permissions.oauth":{url:"dialog/oauth",size:{width:FB.UA.mobile()?null:627,height:FB.UA.mobile()?null:326},transform:function(a){if(FB._apiKey)if(FB._authResponse&&!a.params.scope)FB.log("FB.login() called when user is already connected."),a.cb&&a.cb({status:FB._userStatus,authResponse:FB._authResponse});else{var b=a.cb,c=a.id;delete a.cb;FB.copy(a.params,{client_id:FB._apiKey,redirect_uri:FB.Auth.xdNewHandler(b,c,"opener"),origin:FB.Auth._getSessionOrigin(),response_type:"token,signed_request"});return a}else FB.log("FB.login() called before FB.init().")}},"auth.logout":{url:"logout.php",transform:function(a){if(FB._apiKey)if(FB._oauth&&!FB._authResponse)FB.log("FB.logout() called without an access token.");else if(!FB._oauth&&!FB._session)FB.log("FB.logout() called without a session.");else return a.params.next=FB._oauth?FB.Auth.xdNewHandler(a.cb,a.id,"parent"):FB.Auth.xdHandler(a.cb,a.id,"parent",!1,"unknown"),a;else FB.log("FB.logout() called before calling FB.init().")}},"auth.status":{url:"extern/login_status.php",transform:function(a){var b=a.cb,c=a.id,d=FB.Auth.xdHandler;delete a.cb;FB.copy(a.params,{no_session:d(b,c,"parent",!1,"notConnected"),no_user:d(b,c,"parent",!1,"unknown"),ok_session:d(b,c,"parent",!1,"connected"),session_version:3,extern:FB._inCanvas?0:2,session_origin:FB.Auth._getSessionOrigin()});return a}},"login.status":{url:"dialog/oauth",transform:function(a){var b=a.cb,c=a.id;delete a.cb;FB.copy(a.params,{client_id:FB._apiKey,redirect_uri:FB.Auth.xdNewHandler(b,c,"parent"),origin:FB.Auth._getSessionOrigin(),response_type:"token,signed_request,code"});return a}}});FB.provide("CanvasInsights",{setDoneLoading:function(a){FB.Canvas.setDoneLoading(a)}});FB.provide("Cookie",{_domain:null,_enabled:!1,setEnabled:function(a){FB.Cookie._enabled=a},getEnabled:function(){return FB.Cookie._enabled},load:function(){var a=document.cookie.match("\\bfbs_"+FB._apiKey+'="([^;]*)\\b'),b;if(a)b=FB.QS.decode(a[1]),b.expires=parseInt(b.expires,10),FB.Cookie._domain=b.base_domain;return b},loadSignedRequest:function(){var a=document.cookie.match("\\bfbsr_"+FB._apiKey+"=([^;]*)\\b");return!a?null:a[1]},setSignedRequestCookie:function(a,b){if(!FB._oauth)throw Error("FB.Cookie.setSignedRequestCookie should only be used with OAuth2.");if(!a)throw Error("Value passed to FB.Cookie.setSignedRequestCookie was empty.");FB.Cookie.getEnabled()&&FB.Cookie.setRaw("fbsr_",a,b)},clearSignedRequestCookie:function(){if(!FB._oauth)throw Error("FB.Cookie.setSignedRequestCookie should only be used with OAuth2.");FB.Cookie.getEnabled()&&FB.Cookie.setRaw("fbsr_","",0)},setRaw:function(a,b,c,d){var e=(new Date(1E3*c)).toGMTString();document.cookie=a+FB._apiKey+"="+b+(b&&0===c?"":"; expires="+e)+"; path=/"+(d?"; domain=."+d:"")},set:function(a){a?(FB.Cookie.setRaw("fbs_",'"'+FB.QS.encode(a)+'"',a.expires,a.base_domain),FB.Cookie._domain=a.base_domain):FB.Cookie.clear()},clear:function(){FB.Cookie.setRaw("fbs_","",0,FB.Cookie._domain)}});FB.provide("Frictionless",{_allowedRecipients:{},_useFrictionless:!1,_updateRecipients:function(){FB.Frictionless._allowedRecipients={};FB.api("/me/apprequestformerrecipients",function(a){a&&!a.error&&FB.Array.forEach(a.data,function(a){FB.Frictionless._allowedRecipients[a.recipient_id]=!0},!1)})},init:function(){FB.Frictionless._useFrictionless=!0;FB.getLoginStatus(function(a){"connected"==a.status&&FB.Frictionless._updateRecipients()});FB.Event.subscribe("auth.login",function(a){a.session&&FB.Frictionless._updateRecipients()})},_processRequestResponse:function(a,b){return function(c){var d=c&&"undefined"!==typeof c.frictionless_value,e=c&&c.updated_frictionless;if(FB.Frictionless._useFrictionless&&(e||d))if(FB.Frictionless._updateRecipients(),d){var f=[];FB.Array.forEach(c.request_ids,function(a){f.push(a)},!1);c.request_ids=f}c&&(!b&&c.frictionless&&(FB.Dialog._hideLoader(),FB.Dialog._restoreBodyPosition(),FB.Dialog._hideIPadOverlay()),delete c.frictionless);a&&a(c)}},isAllowed:function(a){if(!a)return!1;if("number"===typeof a)return FB.Frictionless._allowedRecipients[a];"string"===typeof a&&(a=a.split(","));var a=FB.Array.map(a,FB.String.trim),b=!0,c=!1;FB.Array.forEach(a,function(a){b=b&&FB.Frictionless._allowedRecipients[a];c=!0},!1);return b&&c}});FB.provide("",{initSitevars:{},init:function(a){a=FB.copy(a||{},{logging:!0,status:!0});FB._userID=0;FB._apiKey=a.appId||a.apiKey;FB._oauth=FB.forceOAuth||!!a.oauth;if(!a.logging&&0>window.location.toString().indexOf("fb_debug=1"))FB._logging=!1;if(FB.initSitevars.enableMobile)FB.UA._enableMobile=!0;FB.XD.init(a.channelUrl);FB.UA.mobile()&&FB.TemplateUI&&FB.TemplateData&&FB.TemplateData._enabled&&!1!==a.useCachedDialogs&&(FB.TemplateUI.init(),FB.Event.subscribe("auth.statusChange",FB.TemplateData.update));if(a.reportTemplates)FB.reportTemplates=!0;a.frictionlessRequests&&FB.Frictionless.init();if(FB._apiKey){FB.Cookie.setEnabled(a.cookie);if(FB._oauth)if(a.authResponse)FB.Auth.setAuthResponse(a.authResponse,"connected");else{var b=FB.Cookie.loadSignedRequest(),b=FB.Auth.parseSignedRequest(b);FB._userID=b&&b.user_id||0}else a.session=a.session||FB.Cookie.load(),FB.Auth.setSession(a.session,a.session?"connected":"unknown");a.status&&FB.getLoginStatus()}FB._inCanvas&&(FB.Canvas._setHideFlashCallback(a.hideFlashCallback),FB.Canvas.init());FB.Event.subscribe("xfbml.parse",function(){FB.XFBML.IframeWidget.batchWidgetPipeRequests()});a.xfbml&&window.setTimeout(function(){if(FB.XFBML)if(FB.initSitevars.parseXFBMLBeforeDomReady){FB.XFBML.parse();var a=window.setInterval(function(){FB.XFBML.parse()},100);FB.Dom.ready(function(){window.clearInterval(a);FB.XFBML.parse()})}else FB.Dom.ready(FB.XFBML.parse)},0);FB.Canvas&&FB.Canvas.Prefetcher&&FB.Canvas.Prefetcher._maybeSample()}});FB.provide("Canvas.Prefetcher",{_sampleRate:0,_appIdsBlacklist:[],_links:[],COLLECT_AUTOMATIC:0,COLLECT_MANUAL:1,_collectionMode:0,addStaticResource:function(a){FB._inCanvas&&FB._apiKey&&FB.Canvas.Prefetcher._links.push(a)},setCollectionMode:function(a){if(!FB._inCanvas||!FB._apiKey||a!=FB.Canvas.Prefetcher.COLLECT_AUTOMATIC&&a!=FB.Canvas.Prefetcher.COLLECT_MANUAL)return!1;FB.Canvas.Prefetcher._collectionMode=a},_maybeSample:function(){FB._inCanvas&&FB._apiKey&&FB.Canvas.Prefetcher._sampleRate&&(Math.random()>1/FB.Canvas.Prefetcher._sampleRate||"*"==FB.Canvas.Prefetcher._appIdsBlacklist||-1==FB.Array.indexOf(FB.Canvas.Prefetcher._appIdsBlacklist,parseInt(FB._apiKey,10))&&window.setTimeout(FB.Canvas.Prefetcher._sample,3E4))},_sample:function(){var a={object:"data",link:"href",script:"src"};FB.Canvas.Prefetcher._collectionMode==FB.Canvas.Prefetcher.COLLECT_AUTOMATIC&&FB.Array.forEach(a,function(a,c){FB.Array.forEach(window.document.getElementsByTagName(c),function(c){c[a]&&FB.Canvas.Prefetcher._links.push(c[a])})});a=FB.JSON.stringify(FB.Canvas.Prefetcher._links);FB.api(FB._apiKey+"/staticresources","post",{urls:a,is_https:FB._https});FB.Canvas.Prefetcher._links=[]}});FB.provide("Canvas.EarlyFlush",{addResource:function(a){return FB.Canvas.Prefetcher.addStaticResource(a)},setCollectionMode:function(a){return FB.Canvas.Prefetcher.setCollectionMode(a)}});FB.provide("UIServer.MobileIframableMethod",{transform:function(a){if("touch"===a.params.display&&a.params.access_token&&window.postMessage){a.params.channel=FB.UIServer._xdChannelHandler(a.id,"parent");if(!FB.UA.nativeApp())a.params.in_iframe=1;return a}return FB.UIServer.genericTransform(a)},getXdRelation:function(a){return"touch"===a.display&&window.postMessage&&a.in_iframe?"parent":FB.UIServer.getXdRelation(a)}});FB.provide("UIServer.Methods",{"stream.share":{size:{width:575,height:380},url:"sharer.php",transform:function(a){if(!a.params.u)a.params.u=window.location.toString();return a}},"fbml.dialog":{size:{width:575,height:300},url:"render_fbml.php",loggedOutIframe:!0,transform:function(a){return a}},"auth.logintofacebook":{size:{width:530,height:287},url:"login.php",transform:function(a){a.params.skip_api_login=1;var b=FB.UIServer.getXdRelation(a.params),b=FB.UIServer._xdResult(a.cb,a.id,b,!0);a.params.next=FB.getDomain(FB._https?"https_www":"www")+"login.php?"+FB.QS.encode({api_key:FB._apiKey,next:b,skip_api_login:1});return a}},apprequests:{transform:function(a){a=FB.UIServer.MobileIframableMethod.transform(a);a.params.frictionless=FB.Frictionless&&FB.Frictionless._useFrictionless;if(a.params.frictionless)a.hideLoader=FB.Frictionless.isAllowed(a.params.to),a.cb=FB.Frictionless._processRequestResponse(a.cb,a.hideLoader);return a},getXdRelation:function(a){return FB.UIServer.MobileIframableMethod.getXdRelation(a)}},feed:FB.UIServer.MobileIframableMethod});FB.provide("",{share:function(a){FB.log("FB.share() has been deprecated. Please use FB.ui() instead.");FB.ui({display:"popup",method:"stream.share",u:a})},publish:function(a,b){FB.log("FB.publish() has been deprecated. Please use FB.ui() instead.");a=a||{};FB.ui(FB.copy({display:"popup",method:"stream.publish",preview:1},a||{}),b)},addFriend:function(a,b){FB.log("FB.addFriend() has been deprecated. Please use FB.ui() instead.");FB.ui({display:"popup",id:a,method:"friend.add"},b)}});FB.UIServer.Methods["auth.login"]=FB.UIServer.Methods["permissions.request"];FB.provide("XFBML",{_renderTimeout:3E4,getElements:function(a,b,c){var d=FB.Array,e=FB.XFBML._getDomElements(a,b,c),a=FB.Dom.getByClass(b+"-"+c,a),e=d.toArray(e),a=d.toArray(a),a=d.filter(a,function(a){return!a.hasChildNodes()||1===a.childNodes.length&&3===a.childNodes[0].nodeType});return d.merge(e,a)},parse:function(a,b){var a=a||document.body,c=1,d=function(){c--;0===c&&(b&&b(),FB.Event.fire("xfbml.render"))},e={};FB.XFBML._widgetPipeIsEnabled()&&FB.Array.forEach(FB.XFBML._tagInfos,function(b){if(b.supportsWidgetPipe){var c=FB.XFBML.getElements(a,b.xmlns?b.xmlns:"fb",b.localName);e[b.localName]=c;FB.XFBML._widgetPipeEnabledTagCount+=c.length}});FB.Array.forEach(FB.XFBML._tagInfos,function(b){if(!b.xmlns)b.xmlns="fb";var g;g=void 0!==e[b.localName]?e[b.localName]:FB.XFBML.getElements(a,b.xmlns,b.localName);for(var h=0;h<g.length;h++)c++,FB.XFBML._processElement(g[h],b,d)});FB.Event.fire("xfbml.parse");window.setTimeout(function(){0<c&&FB.log(c+" XFBML tags failed to render in "+FB.XFBML._renderTimeout+"ms.")},FB.XFBML._renderTimeout);d()},registerTag:function(a){FB.XFBML._tagInfos.push(a)},shouldUseWidgetPipe:function(){return!FB.XFBML._widgetPipeIsEnabled()?!1:1<FB.XFBML._widgetPipeEnabledTagCount},getBoolAttr:function(a,b){return(b=FB.XFBML.getAttr(a,b))&&-1<FB.Array.indexOf(["true","1","yes","on"],b.toLowerCase())},getAttr:function(a,b){return a.getAttribute(b)||a.getAttribute(b.replace(/_/g,"-"))||a.getAttribute(b.replace(/-/g,"_"))||a.getAttribute(b.replace(/-/g,""))||a.getAttribute(b.replace(/_/g,""))||a.getAttribute("data-"+b)||a.getAttribute("data-"+b.replace(/_/g,"-"))||a.getAttribute("data-"+b.replace(/-/g,"_"))||a.getAttribute("data-"+b.replace(/-/g,""))||a.getAttribute("data-"+b.replace(/_/g,""))||null},_processElement:function(a,b,c){var d=a._element;if(d)d.subscribe("render",c),d.process();else{var e=function(){var e=eval(b.className),g=!1,h=!0,j=!1,m="FB.XFBML.AddToTimeline"===b.className;if("FB.XFBML.LoginButton"===b.className||m)if(j=FB.XFBML.getBoolAttr(a,"render-in-iframe"),mode=FB.XFBML.getAttr(a,"mode"),h=m&&"button"!=mode||FB.XFBML.getBoolAttr(a,"show-faces"),(g=m||j||h||FB.XFBML.getBoolAttr(a,"oneclick"))&&!m)e=FB.XFBML.Login;d=a._element=new e(a);if(g){e={show_faces:!!h,add_to_profile:m,mode:mode};if(g=FB.XFBML.getAttr(a,"scope"))FB._oauth?e.scope=g:e.perms=g;else if(g=FB.XFBML.getAttr(a,"perms"))e.perms=g;d.setExtraParams(e)}d.subscribe("render",c);d.process()};FB.CLASSES[b.className.substr(3)]?e():FB.log("Tag "+b.className+" was not found.")}},_getDomElements:function(a,b,c){var d=b+":"+c;if(FB.UA.firefox())return a.getElementsByTagNameNS(document.body.namespaceURI,d);if(9>FB.UA.ie())try{var e=document.namespaces;if(e&&e[b]){var f=a.getElementsByTagName(c);if(!document.addEventListener||0<f.length)return f}}catch(g){}return a.getElementsByTagName(d)},_tagInfos:[{localName:"activity",className:"FB.XFBML.Activity"},{localName:"add-profile-tab",className:"FB.XFBML.AddProfileTab"},{localName:"add-to-timeline",className:"FB.XFBML.AddToTimeline"},{localName:"bookmark",className:"FB.XFBML.Bookmark"},{localName:"comments",className:"FB.XFBML.Comments"},{localName:"comments-count",className:"FB.XFBML.CommentsCount"},{localName:"connect-bar",className:"FB.XFBML.ConnectBar"},{localName:"fan",className:"FB.XFBML.Fan"},{localName:"like",className:"FB.XFBML.Like",supportsWidgetPipe:!0},{localName:"like-box",className:"FB.XFBML.LikeBox"},{localName:"live-stream",className:"FB.XFBML.LiveStream"},{localName:"login",className:"FB.XFBML.Login"},{localName:"login-button",className:"FB.XFBML.LoginButton"},{localName:"facepile",className:"FB.XFBML.Facepile"},{localName:"friendpile",className:"FB.XFBML.Friendpile"},{localName:"name",className:"FB.XFBML.Name"},{localName:"profile-pic",className:"FB.XFBML.ProfilePic"},{localName:"question",className:"FB.XFBML.Question"},{localName:"recommendations",className:"FB.XFBML.Recommendations"},{localName:"recommendations-bar",className:"FB.XFBML.RecommendationsBar"},{localName:"registration",className:"FB.XFBML.Registration"},{localName:"send",className:"FB.XFBML.Send"},{localName:"serverfbml",className:"FB.XFBML.ServerFbml"},{localName:"share-button",className:"FB.XFBML.ShareButton"},{localName:"subscribe",className:"FB.XFBML.Subscribe"}],_widgetPipeEnabledTagCount:0,_widgetPipeIsEnabled:function(){return FB.widgetPipeEnabledApps&&void 0!==FB.widgetPipeEnabledApps[FB._apiKey]}});(function(){try{document.namespaces&&!document.namespaces.item.fb&&document.namespaces.add("fb")}catch(a){}})();FB.provide("XFBML",{set:function(a,b,c){FB.log("FB.XFBML.set() has been deprecated.");a.innerHTML=b;FB.XFBML.parse(a,c)}});FB.subclass("Waitable","Obj",function(){},{set:function(a){this.setProperty("value",a)},error:function(a){this.fire("error",a)},wait:function(a,b){b&&this.subscribe("error",b);this.monitor("value",this.bind(function(){if(void 0!==this.value)return a(this.value),!0}))}});FB.subclass("Data.Query","Waitable",function(){if(!FB.Data.Query._c)FB.Data.Query._c=1;this.name="v_"+FB.Data.Query._c++},{parse:function(a){var b=/^select (.*?) from (\w+)\s+where (.*)$/i.exec(FB.String.format.apply(null,a));this.fields=this._toFields(b[1]);this.table=b[2];this.where=this._parseWhere(b[3]);for(b=1;b<a.length;b++)if(FB.Type.isType(a[b],FB.Data.Query))a[b].hasDependency=!0;return this},toFql:function(){var a="select "+this.fields.join(",")+" from "+this.table+" where ";switch(this.where.type){case "unknown":a+=this.where.value;break;case "index":a+=this.where.key+"="+this._encode(this.where.value);break;case "in":a=1==this.where.value.length?a+(this.where.key+"="+this._encode(this.where.value[0])):a+(this.where.key+" in ("+FB.Array.map(this.where.value,this._encode).join(",")+")")}return a},_encode:function(a){return"string"==typeof a?FB.String.quote(a):a},toString:function(){return"#"+this.name},_toFields:function(a){return FB.Array.map(a.split(","),FB.String.trim)},_parseWhere:function(a){var b=/^\s*(\w+)\s*=\s*(.*)\s*$/i.exec(a),c,d="unknown";b&&(c=b[2],/^(["'])(?:\\?.)*?\1$/.test(c)?(c=eval(c),d="index"):/^\d+\.?\d*$/.test(c)&&(d="index"));return"index"==d?{type:"index",key:b[1],value:c}:{type:"unknown",value:a}}});FB.provide("Data",{query:function(a,b){var c=(new FB.Data.Query).parse(arguments);FB.Data.queue.push(c);FB.Data._waitToProcess();return c},waitOn:function(a,b){var c=new FB.Waitable,d=a.length;if("string"==typeof b)var e=b,b=function(){return eval(e)};FB.Array.forEach(a,function(e){e.monitor("value",function(){var g=!1;void 0!==FB.Data._getValue(e)&&(d--,g=!0);if(0===d){var h=b(FB.Array.map(a,FB.Data._getValue));c.set(void 0!==h?h:!0)}return g})});return c},_getValue:function(a){return FB.Type.isType(a,FB.Waitable)?a.value:a},_selectByIndex:function(a,b,c,d){var e=new FB.Data.Query;e.fields=a;e.table=b;e.where={type:"index",key:c,value:d};FB.Data.queue.push(e);FB.Data._waitToProcess();return e},_waitToProcess:function(){if(0>FB.Data.timer)FB.Data.timer=setTimeout(FB.Data._process,10)},_process:function(){FB.Data.timer=-1;var a={},b=FB.Data.queue;FB.Data.queue=[];for(var c=0;c<b.length;c++){var d=b[c];"index"==d.where.type&&!d.hasDependency?FB.Data._mergeIndexQuery(d,a):a[d.name]=d}b={method:"fql.multiquery",queries:{}};FB.copy(b.queries,a,!0,function(a){return a.toFql()});b.queries=FB.JSON.stringify(b.queries);FB.api(b,function(b){b.error_msg?FB.Array.forEach(a,function(a){a.error(Error(b.error_msg))}):FB.Array.forEach(b,function(b){a[b.name].set(b.fql_result_set)})})},_mergeIndexQuery:function(a,b){var c=a.where.key,d=a.where.value,e="index_"+a.table+"_"+c,f=b[e];if(!f)f=b[e]=new FB.Data.Query,f.fields=[c],f.table=a.table,f.where={type:"in",key:c,value:[]};FB.Array.merge(f.fields,a.fields);FB.Array.merge(f.where.value,[d]);f.wait(function(b){a.set(FB.Array.filter(b,function(a){return a[c]==d}))})},timer:-1,queue:[]});window.setTimeout(function(){var a=/(connect.facebook.net|facebook.com\/assets.php).*?#(.*)/;FB.Array.forEach(document.getElementsByTagName("script"),function(b){if(b.src&&(b=a.exec(b.src))){var c=FB.QS.decode(b[2]);FB.Array.forEach(c,function(a,b){"0"==a&&(c[b]=0)});c.oauth=!0;FB.init(c)}});if(window.fbAsyncInit&&!window.fbAsyncInit.hasRun)window.fbAsyncInit.hasRun=!0,fbAsyncInit()},0);FB.provide("Native",{NATIVE_READY_EVENT:"fbNativeReady",onready:function(a){if(FB.UA.nativeApp())if(window.__fbNative&&!this.nativeReady&&FB.provide("Native",window.__fbNative),this.nativeReady)a();else{var b=function(){window.removeEventListener(FB.Native.NATIVE_READY_EVENT,b);FB.Native.onready(a)};window.addEventListener(FB.Native.NATIVE_READY_EVENT,b,!1)}else FB.log("FB.Native.onready only works when the page is rendered in a WebView of the native Facebook app. Test if this is the case calling FB.UA.nativeApp()")}});FB.provide("UIServer.Methods",{"pay.prompt":{transform:function(a){var b=FB.XD.handler(function(b){a.cb(FB.JSON.parse(b.response))},"parent.frames["+(window.name||"iframe_canvas")+"]");a.params.channel=b;FB.Arbiter.inform("Pay.Prompt",a.params);return!1}}});FB.provide("UIServer.Methods",{pay:{size:{width:555,height:120},noHttps:!0,connectDisplay:"popup",transform:function(a){if(!FB._inCanvas)return a.params.order_info=FB.JSON.stringify(a.params.order_info),a;var b=FB.XD.handler(function(b){a.cb(FB.JSON.parse(b.response))},"parent.frames["+(window.name||"iframe_canvas")+"]");a.params.channel=b;a.params.uiserver=!0;FB.Arbiter.inform("Pay.Prompt",a.params);return!1}}});FB.provide("Helper",{isUser:function(a){return 22E8>a||1E14<=a&&100099999989999>=a||89E12<=a&&89999999999999>=a},getLoggedInUser:function(){return FB.getUserID()},upperCaseFirstChar:function(a){return 0<a.length?a.substr(0,1).toUpperCase()+a.substr(1):a},getProfileLink:function(a,b,c){(c=c||(a?FB.getDomain("www")+"profile.php?id="+a.uid:null))&&(b='<a class="fb_link" href="'+c+'">'+b+"</a>");return b},invokeHandler:function(a,b,c){a&&("string"===typeof a?eval(a):a.apply&&a.apply(b,c||[]))},fireEvent:function(a,b){var c=b._attr.href;b.fire(a,c);FB.Event.fire(a,c,b)},executeFunctionByName:function(a){for(var b=Array.prototype.slice.call(arguments,1),c=a.split("."),d=c.pop(),e=window,f=0;f<c.length;f++)e=e[c[f]];return e[d].apply(this,b)}});FB.provide("TemplateData",{_initialized:!1,_version:0,_response:null,_localStorageTimeout:86400,_enabled:!0,enabled:function(){return FB.TemplateData._enabled&&FB.TemplateData._initialized&&FB.TemplateData.supportsLocalStorage()&&"connected"==FB._userStatus&&FB.TemplateData.getResponse()&&FB.TemplateData.getData().apprequests.template_data_enabled},supportsLocalStorage:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(a){return!1}},_isStale:function(a){return!a||!a.version||a.version!=FB.TemplateData._version||a.currentUserID!=FB.getUserID()?!0:(Math.round((new Date).getTime())-a.setAt)/1E3>FB.TemplateData._localStorageTimeout},getResponse:function(){var a=FB.TemplateData;try{a._response=a._response||a.supportsLocalStorage()&&FB.JSON.parse(localStorage.FB_templateDataResponse||"null")}catch(b){a._response=null}a._isStale(a._response)&&a.saveResponse(null);return a._response},saveResponse:function(a){FB.TemplateData._response=a;if(FB.TemplateData.supportsLocalStorage())localStorage.FB_templateDataResponse=FB.JSON.stringify(a)},getData:function(){var a=FB.TemplateData.getResponse();return a?a.data:{}},init:function(a){if(a)FB.TemplateData._initialized=!0,FB.TemplateData._version=a,FB.TemplateData.supportsLocalStorage()&&!("FB_templateDataResponse"in localStorage)&&FB.TemplateData.clear()},clear:function(){FB.TemplateData.saveResponse(null)},update:function(){"connected"!=FB._userStatus&&FB.TemplateData.clear();"connected"==FB._userStatus&&!FB.TemplateData.getResponse()&&FB.api({method:"dialog.template_data"},function(a){"error_code"in a||(a={data:a,currentUserID:FB.getUserID(),setAt:(new Date).getTime(),version:FB.TemplateData._version},FB.TemplateData.saveResponse(a))})}});FB.subclass("TemplateUI","Obj",function(a,b){this.method=a;var c=FB.UA.nativeApp()?0:1,d={display:"touch",preview_template:1,in_iframe:c,locale:FB._locale,v:FB.TemplateUI._version,user_agent:navigator.userAgent};if(window.devicePixelRatio)d.m_pixel_ratio=window.devicePixelRatio;d=FB.QS.encode(d);this.cachedCall={url:FB.getDomain("staticfb")+"dialog/"+a+"?"+d,frameName:FB.guid(),id:FB.guid(),size:FB.UIServer.getDefaultSize(),hideLoader:!0};FB.XD.handler(this.bind(function(a){"getParams"==a.type&&this.setProperty("getParamsCb",a.returnCb)}),"parent",!0,this.cachedCall.frameName);c?(FB.UIServer.iframe(this.cachedCall),FB.Dialog.hide(this.cachedCall.root)):b&&!FB.TemplateUI._preloads[this.cachedCall.url]&&(c=document.createElement("div"),FB.TemplateUI._preloads[this.cachedCall.url]={container:c},FB.Content.insertIframe({url:this.cachedCall.url,root:FB.Content.appendHidden(c)}))},{use:function(a){if(!this.cachedCall.root){FB.UIServer.touch(this.cachedCall);var b=FB.TemplateUI._preloads[this.cachedCall.url];b&&b.container&&(b.container.parentNode.removeChild(b.container),delete b.container)}a.ui_created=!0;a.root=this.cachedCall.root;FB.UIServer.setLoadedNode(a,FB.UIServer._loadedNodes[this.cachedCall.id]);delete FB.UIServer._loadedNodes[this.cachedCall.id];b=FB.Dialog._dialogs[a.id];FB.Dialog._dialogs[this.cachedCall.id]=b;b.id=this.cachedCall.id;delete FB.Dialog._dialogs[a.id];FB.UIServer.getLoadedNode(a).fbCallID=this.cachedCall.id;this.cachedCall.id=a.id;b={};FB.copy(b,a.params);FB.copy(b,FB.TemplateData.getData()[this.method]);b.frictionless=FB.TemplateUI.isFrictionlessAppRequest(this.method,b);b.common=FB.TemplateData.getData().common;b.method=this.method;this.setParams(b);FB.UA.nativeApp()&&FB.UIServer._popupMonitor()},setParams:function(a){this.monitor("getParamsCb",this.bind(function(){if(this.getParamsCb)return(frames[this.cachedCall.frameName]||FB.UIServer.getLoadedNode(this.cachedCall)).postMessage(FB.JSON.stringify({params:a,cb:this.getParamsCb}),"*"),!0}))}});FB.provide("TemplateUI",{_timer:null,_cache:{},_preloads:{},_version:0,init:function(){FB.TemplateData.init(FB.TemplateUI._version);FB.TemplateUI.initCache()},useCachedUI:function(a,b){try{FB.TemplateUI.populateCache(),cache=FB.TemplateUI._cache[a],delete FB.TemplateUI._cache[a],cache.use(b)}catch(c){FB.TemplateData.clear()}},populateCache:function(a){if(FB.TemplateData.enabled()&&FB.UA.mobile()){clearInterval(FB.TemplateUI._timer);var b={feed:!0,apprequests:!0},c;for(c in b)c in FB.TemplateUI._cache||(FB.TemplateUI._cache[c]=new FB.TemplateUI(c,a))}},initCache:function(){FB.TemplateUI._timer=setInterval(function(){FB.TemplateUI.populateCache(!0)},2E3)},supportsTemplate:function(a,b){return FB.TemplateData.enabled()&&FB.TemplateUI.paramsAllowTemplate(a,b.params)&&"touch"===b.params.display&&FB.UA.mobile()},paramsAllowTemplate:function(a,b){var c={feed:{to:1,attachment:1,source:1},apprequests:{}};if(!(a in c))return!1;for(var d in c[a])if(b[d])return!1;return!FB.TemplateUI.willWriteOnGet(a,b)},isFrictionlessAppRequest:function(a){return"apprequests"===a&&FB.Frictionless&&FB.Frictionless._useFrictionless},willWriteOnGet:function(a,b){return FB.TemplateUI.isFrictionlessAppRequest(a,b)&&b.to&&FB.Frictionless.isAllowed(b.to)}});FB.provide("URI",{resolve:function(a){if(!a)return window.location.href;var b=document.createElement("div");b.innerHTML='<a href="'+a.replace(/"/g,"&quot;")+'"></a>';return b.firstChild.href}});FB.Class("XFBML.Element",function(a){this.dom=a},FB.copy({getAttribute:function(a,b,c){return(a=FB.XFBML.getAttr(this.dom,a))?c?c(a):a:b},_getBoolAttribute:function(a,b){return null===FB.XFBML.getAttr(this.dom,a)?b:FB.XFBML.getBoolAttr(this.dom,a)},_getPxAttribute:function(a,b){return this.getAttribute(a,b,function(a){a=parseInt(a.replace("px",""),10);return isNaN(a)?b:a})},_getAttributeFromList:function(a,b,c){return this.getAttribute(a,b,function(a){a=a.toLowerCase();return-1<FB.Array.indexOf(c,a)?a:b})},isValid:function(){for(var a=this.dom;a;a=a.parentNode)if(a==document.body)return!0},clear:function(){this.dom.innerHTML=""}},FB.EventProvider));FB.subclass("XFBML.IframeWidget","XFBML.Element",null,{_iframeName:null,_showLoader:!0,_refreshOnAuthChange:!1,_allowReProcess:!1,_fetchPreCachedLoader:!1,_visibleAfter:"load",_widgetPipeEnabled:!1,getUrlBits:function(){throw Error("Inheriting class needs to implement getUrlBits().");},setupAndValidate:function(){return!0},oneTimeSetup:function(){},getSize:function(){},getIframeName:function(){if(!this._iframeName&&this._widgetPipeEnabled&&FB.XFBML.shouldUseWidgetPipe()&&(this._iframeName=this.generateWidgetPipeIframeName(),FB.XFBML.IframeWidget.allWidgetPipeIframes[this._iframeName]=this,null===FB.XFBML.IframeWidget.masterWidgetPipeIframe))FB.XFBML.IframeWidget.masterWidgetPipeIframe=this;return this._iframeName},getIframeTitle:function(){},getChannelUrl:function(){if(!this._channelUrl){var a=this;this._channelUrl=FB.XD.handler(function(b){a.fire("xd."+b.type,b)},"parent.parent",!0)}return this._channelUrl},getIframeNode:function(){return this.dom.getElementsByTagName("iframe")[0]},arbiterInform:function(a,b,c){this.loaded?this._arbiterInform(a,b,c):this.subscribe("iframe.onload",FB.bind(this._arbiterInform,this,a,b,c))},_arbiterInform:function(a,b,c){var d='parent.frames["'+this.getIframeNode().name+'"]';FB.Arbiter.inform(a,b,d,"https:"==window.location.protocol,c)},getDefaultWebDomain:function(){return"www"},getDefaultStaticDomain:function(){return"cdn"},process:function(a){if(this._done){if(!this._allowReProcess&&!a)return;this.clear()}else this._oneTimeSetup();this._done=!0;if(this.setupAndValidate()){this._showLoader&&this._addLoader();FB.Dom.addCss(this.dom,"fb_iframe_widget");"immediate"!=this._visibleAfter?FB.Dom.addCss(this.dom,"fb_hide_iframes"):this.subscribe("iframe.onload",FB.bind(this.fire,this,"render"));var a=this.getSize()||{},b=this.getFullyQualifiedURL();FB.Content.insertIframe({url:b,root:this.dom.appendChild(document.createElement("span")),name:this.getIframeName(),title:this.getIframeTitle(),className:FB._localeIsRtl?"fb_rtl":"fb_ltr",height:a.height,width:a.width,onload:FB.bind(this.fire,this,"iframe.onload")});this.loaded=!1;this.subscribe("iframe.onload",FB.bind(function(){this.loaded=!0},this))}else this.fire("render")},generateWidgetPipeIframeName:function(){FB.XFBML.IframeWidget.widgetPipeIframeCount++;return"fb_iframe_"+FB.XFBML.IframeWidget.widgetPipeIframeCount},getFullyQualifiedURL:function(){if(FB.XFBML.shouldUseWidgetPipe()&&this._widgetPipeEnabled)return this._getWidgetPipeShell();var a=this._getURL();this._fetchPreCachedLoader||(a+="?"+FB.QS.encode(this._getQS()));if(2E3<a.length){var a="about:blank",b=FB.bind(function(){this._postRequest();this.unsubscribe("iframe.onload",b)},this);this.subscribe("iframe.onload",b)}return a},_getWidgetPipeShell:function(){return FB.getDomain("www")+"common/widget_pipe_shell.php"},_oneTimeSetup:function(){this.subscribe("xd.resize",FB.bind(this._handleResizeMsg,this));FB.getLoginStatus&&(this.subscribe("xd.refreshLoginStatus",FB.bind(FB.getLoginStatus,FB,function(){},!0)),this.subscribe("xd.logout",FB.bind(FB.logout,FB,function(){})));this._refreshOnAuthChange&&this._setupAuthRefresh();"load"==this._visibleAfter&&this.subscribe("iframe.onload",FB.bind(this._makeVisible,this));this.oneTimeSetup()},_makeVisible:function(){this._removeLoader();FB.Dom.removeCss(this.dom,"fb_hide_iframes");this.fire("render")},_setupAuthRefresh:function(){FB.getLoginStatus(FB.bind(function(a){var b=a.status;FB.Event.subscribe("auth.statusChange",FB.bind(function(a){if(this.isValid())("unknown"==b||"unknown"==a.status)&&this.process(!0),b=a.status},this))},this))},_handleResizeMsg:function(a){if(this.isValid()){var b=this.getIframeNode();b.style.height=a.height+"px";if(a.width)b.style.width=a.width+"px";b.style.border="none";this._makeVisible()}},_addLoader:function(){if(!this._loaderDiv)FB.Dom.addCss(this.dom,"fb_iframe_widget_loader"),this._loaderDiv=document.createElement("div"),this._loaderDiv.className="FB_Loader",this.dom.appendChild(this._loaderDiv)},_removeLoader:function(){if(this._loaderDiv)FB.Dom.removeCss(this.dom,"fb_iframe_widget_loader"),this._loaderDiv.parentNode&&this._loaderDiv.parentNode.removeChild(this._loaderDiv),this._loaderDiv=null},_getQS:function(){return FB.copy({api_key:FB._apiKey,locale:FB._locale,sdk:"joey",session_key:FB._session&&FB._session.session_key,ref:this.getAttribute("ref")},this.getUrlBits().params)},_getURL:function(){var a=this.getDefaultWebDomain(),b="";this._fetchPreCachedLoader&&(a=this.getDefaultStaticDomain(),b="static/");return FB.getDomain(a)+"plugins/"+b+this.getUrlBits().name+".php"},_postRequest:function(){FB.Content.submitToTarget({url:this._getURL(),target:this.getIframeNode().name,params:this._getQS()})}});FB.provide("XFBML.IframeWidget",{widgetPipeIframeCount:0,masterWidgetPipeIframe:null,allWidgetPipeIframes:{},batchWidgetPipeRequests:function(){if(FB.XFBML.IframeWidget.masterWidgetPipeIframe){var a=FB.XFBML.IframeWidget._groupWidgetPipeDescriptions(),b={widget_pipe:FB.JSON.stringify(a),href:window.location,site:location.hostname,channel:FB.XFBML.IframeWidget.masterWidgetPipeIframe.getChannelUrl(),api_key:FB._apiKey,locale:FB._locale,sdk:"joey",session_key:FB._session&&FB._session.session_key},c=FB.guid(),a=FB.XFBML.IframeWidget.masterWidgetPipeIframe.dom.appendChild(document.createElement("span"));FB.Content.insertIframe({url:"about:blank",root:a,name:c,className:"fb_hidden fb_invisible",onload:function(){FB.Content.submitToTarget({url:FB._domain.www+"widget_pipe.php?widget_pipe=1",target:c,params:b})}})}},_groupWidgetPipeDescriptions:function(){var a={},b;for(b in FB.XFBML.IframeWidget.allWidgetPipeIframes){var c=FB.XFBML.IframeWidget.allWidgetPipeIframes[b].getUrlBits(),d={widget:c.name};FB.copy(d,c.params);a[b]=d}return a}});FB.subclass("XFBML.Activity","XFBML.IframeWidget",null,{_visibleAfter:"load",_refreshOnAuthChange:!0,setupAndValidate:function(){this._attr={border_color:this.getAttribute("border-color"),colorscheme:this.getAttribute("color-scheme"),filter:this.getAttribute("filter"),action:this.getAttribute("action"),max_age:this.getAttribute("max_age"),font:this.getAttribute("font"),linktarget:this.getAttribute("linktarget","_blank"),header:this._getBoolAttribute("header"),height:this._getPxAttribute("height",300),recommendations:this._getBoolAttribute("recommendations"),site:this.getAttribute("site",location.hostname),width:this._getPxAttribute("width",300)};return!0},getSize:function(){return{width:this._attr.width,height:this._attr.height}},getUrlBits:function(){return{name:"activity",params:this._attr}}});FB.subclass("XFBML.ButtonElement","XFBML.Element",null,{_allowedSizes:["icon","small","medium","large","xlarge"],onClick:function(){throw Error("Inheriting class needs to implement onClick().");},setupAndValidate:function(){return!0},getButtonMarkup:function(){return this.getOriginalHTML()},getOriginalHTML:function(){return this._originalHTML},process:function(){if(!("_originalHTML"in this))this._originalHTML=FB.String.trim(this.dom.innerHTML);if(this.setupAndValidate()){var a=this._getAttributeFromList("size","medium",this._allowedSizes),b="",c="";"icon"==a?b="fb_button_simple":(b=FB._localeIsRtl?"_rtl":"",c=this.getButtonMarkup(),b="fb_button"+b+" fb_button_"+a+b);if(""!==c)this.dom.innerHTML='<a class="'+b+'"><span class="fb_button_text">'+c+"</span></a>",this.dom.firstChild.onclick=FB.bind(this.onClick,this)}this.fire("render")}});FB.subclass("XFBML.AddProfileTab","XFBML.ButtonElement",null,{getButtonMarkup:function(){return FB.Intl._tx("Add Profile Tab on Facebook")},onClick:function(){FB.ui({method:"profile.addtab"},this.bind(function(a){a.tab_added&&FB.Helper.invokeHandler(this.getAttribute("on-add"),this)}))}});FB.subclass("XFBML.Facepile","XFBML.IframeWidget",null,{_visibleAfter:"load",_extraParams:{},setupAndValidate:function(){this._attr={href:this.getAttribute("href"),channel:this.getChannelUrl(),colorscheme:this.getAttribute("colorscheme","light"),max_rows:this.getAttribute("max-rows"),action:this.getAttribute("action","like"),tense:this.getAttribute("tense","past"),width:this._getPxAttribute("width",200),ref:this.getAttribute("ref"),size:this.getAttribute("size","small"),extended_social_context:this.getAttribute("extended_social_context",!1),login_text:this.dom.innerHTML};this.clear();for(var a in this._extraParams)this._attr[a]=this._extraParams[a];return!0},setExtraParams:function(a){this._extraParams=a},oneTimeSetup:function(){var a=FB._userStatus;FB.Event.subscribe("auth.statusChange",FB.bind(function(b){("connected"==a||"connected"==b.status)&&this.process(!0);a=b.status},this))},getSize:function(){return"large"==this._attr.size?{width:this._attr.width,height:90}:{width:this._attr.width,height:70}},getUrlBits:function(){return{name:"facepile",params:this._attr}}});FB.subclass("XFBML.AddToTimeline","XFBML.Facepile",null,{_visibleAfter:"load",getSize:function(){return{width:300,height:250}},getUrlBits:function(){return{name:"add_to_timeline",params:this._attr}}});FB.subclass("XFBML.Bookmark","XFBML.ButtonElement",null,{getButtonMarkup:function(){return FB.Intl._tx("Bookmark on Facebook")},onClick:function(){FB.ui({method:"bookmark.add"},this.bind(function(a){a.bookmarked&&FB.Helper.invokeHandler(this.getAttribute("on-add"),this)}))}});FB.subclass("XFBML.Comments","XFBML.IframeWidget",null,{_visibleAfter:"immediate",_refreshOnAuthChange:!0,setupAndValidate:function(){var a={channel_url:this.getChannelUrl(),colorscheme:this.getAttribute("colorscheme"),numposts:this.getAttribute("num-posts",10),width:this._getPxAttribute("width",550),href:this.getAttribute("href"),permalink:this.getAttribute("permalink"),publish_feed:this.getAttribute("publish_feed")};if(a.href){var b=this.getAttribute("fb_comment_id");if(!b)(b=FB.QS.decode(document.URL.substring(document.URL.indexOf("?")+1)).fb_comment_id)&&0<b.indexOf("#")&&(b=b.substring(0,b.indexOf("#")));if(b)a.fb_comment_id=b,this.subscribe("render",FB.bind(function(){window.location.hash=this.getIframeNode().id},this))}else{a.migrated=this.getAttribute("migrated");a.xid=this.getAttribute("xid");a.title=this.getAttribute("title",document.title);a.url=this.getAttribute("url",document.URL);a.quiet=this.getAttribute("quiet");a.reverse=this.getAttribute("reverse");a.simple=this.getAttribute("simple");a.css=this.getAttribute("css");a.notify=this.getAttribute("notify");if(!a.xid)b=document.URL.indexOf("#"),a.xid=0<b?encodeURIComponent(document.URL.substring(0,b)):encodeURIComponent(document.URL);if(a.migrated)a.href="http://www.facebook.com/plugins/comments_v1.php?app_id="+FB._apiKey+"&xid="+encodeURIComponent(a.xid)+"&url="+encodeURIComponent(a.url)}this._attr=a;return!0},oneTimeSetup:function(){this.subscribe("xd.addComment",FB.bind(this._handleCommentMsg,this));this.subscribe("xd.commentCreated",FB.bind(this._handleCommentCreatedMsg,this));this.subscribe("xd.commentRemoved",FB.bind(this._handleCommentRemovedMsg,this))},getSize:function(){return{width:this._attr.width,height:160}},getUrlBits:function(){return{name:"comments",params:this._attr}},getDefaultWebDomain:function(){return"https_www"},_handleCommentMsg:function(a){this.isValid()&&FB.Event.fire("comments.add",{post:a.post,user:a.user,widget:this})},_handleCommentCreatedMsg:function(a){this.isValid()&&FB.Event.fire("comment.create",{href:a.href,commentID:a.commentID,parentCommentID:a.parentCommentID})},_handleCommentRemovedMsg:function(a){this.isValid()&&FB.Event.fire("comment.remove",{href:a.href,commentID:a.commentID})}});FB.subclass("XFBML.CommentsCount","XFBML.Element",null,{process:function(){this._href=this.getAttribute("href",window.location.href);this._count=FB.Data._selectByIndex(["commentsbox_count"],"link_stat","url",this._href);FB.Dom.addCss(this.dom,"fb_comments_count_zero");this._count.wait(FB.bind(function(){var a=this._count.value[0].commentsbox_count;this.dom.innerHTML=FB.String.format('<span class="fb_comments_count">{0}</span>',a);0<a&&FB.Dom.removeCss(this.dom,"fb_comments_count_zero");this.fire("render")},this))}});FB.provide("Anim",{ate:function(a,b,c,d){var c=!isNaN(parseFloat(c))&&0<=c?c:750,e={},f={},g=null,h=setInterval(FB.bind(function(){g||(g=(new Date).getTime());var j=1;0!=c&&(j=Math.min(((new Date).getTime()-g)/c,1));FB.Array.forEach(b,FB.bind(function(b,c){if(!e[c]){var d=FB.Dom.getStyle(a,c);if(!1===d)return;e[c]=this._parseCSS(d+"")}f[c]||(f[c]=this._parseCSS(b.toString()));var g="";FB.Array.forEach(e[c],function(a,b){g=isNaN(f[c][b].numPart)&&"?"==f[c][b].textPart?a.numPart+a.textPart:isNaN(a.numPart)?a.textPart:g+(a.numPart+Math.ceil((f[c][b].numPart-a.numPart)*Math.sin(Math.PI/2*j))+f[c][b].textPart+" ")});FB.Dom.setStyle(a,c,g)},this));1==j&&(clearInterval(h),d&&d(a))},this),40)},_parseCSS:function(a){var b=[];FB.Array.forEach(a.split(" "),function(a){var d=parseInt(a,10);b.push({numPart:d,textPart:a.replace(d,"")})});return b}});FB.provide("Insights",{impression:function(a,b){var c="//ah8.facebook.com/impression.php/"+FB.guid()+"/",d=new Image(1,1),e=[];if(!a.api_key&&FB._apiKey)a.api_key=FB._apiKey;for(var f in a)e.push(encodeURIComponent(f)+"="+encodeURIComponent(a[f]));c+="?"+e.join("&");if(b)d.onload=b;d.src=c}});FB.subclass("XFBML.ConnectBar","XFBML.Element",null,{_initialHeight:null,_initTopMargin:0,_picFieldName:"pic_square",_page:null,_displayed:!1,_notDisplayed:!1,_container:null,_animationSpeed:0,process:function(){FB.getLoginStatus(this.bind(function(){FB.Event.monitor("auth.statusChange",this.bind(function(){this.isValid()&&"connected"==FB._userStatus?(this._uid=FB.Helper.getLoggedInUser(),FB.api({method:"Connect.shouldShowConnectBar"},this.bind(function(a){2!=a?(this._animationSpeed=0==a?750:0,this._showBar()):this._noRender()}))):this._noRender();return!1}))}))},_showBar:function(){var a=FB.Data._selectByIndex(["first_name","profile_url",this._picFieldName],"user","uid",this._uid),b=FB.Data._selectByIndex(["display_name"],"application","api_key",FB._apiKey);FB.Data.waitOn([a,b],FB.bind(function(a){a[0][0].site_name=a[1][0].display_name;if(!this._displayed)this._displayed=!0,this._notDisplayed=!1,this._renderConnectBar(a[0][0]),this.fire("render"),FB.Insights.impression({lid:104,name:"widget_load"}),this.fire("connectbar.ondisplay"),FB.Event.fire("connectbar.ondisplay",this),FB.Helper.invokeHandler(this.getAttribute("on-display"),this)},this))},_noRender:function(){if(this._displayed)this._displayed=!1,this._closeConnectBar();if(!this._notDisplayed)this._notDisplayed=!0,this.fire("render"),this.fire("connectbar.onnotdisplay"),FB.Event.fire("connectbar.onnotdisplay",this),FB.Helper.invokeHandler(this.getAttribute("on-not-display"),this)},_renderConnectBar:function(a){var b=document.createElement("div"),c=document.createElement("div");b.className="fb_connect_bar";c.className="fb_reset fb_connect_bar_container";c.appendChild(b);document.body.appendChild(c);this._container=c;this._initialHeight=Math.round(parseFloat(FB.Dom.getStyle(c,"height"))+parseFloat(FB.Dom.getStyle(c,"borderBottomWidth")));b.innerHTML=FB.String.format('<div class="fb_buttons"><a href="#" class="fb_bar_close"><img src="{1}" alt="{2}" title="{2}"/></a></div><a href="{7}" class="fb_profile" target="_blank"><img src="{3}" alt="{4}" title="{4}"/></a>{5} <span><a href="{8}" class="fb_learn_more" target="_blank">{6}</a> &ndash; <a href="#" class="fb_no_thanks">{0}</a></span>',FB.Intl._tx("No Thanks"),FB.getDomain("cdn")+FB.XFBML.ConnectBar.imgs.buttonUrl,FB.Intl._tx("Close"),a[this._picFieldName]||FB.getDomain("cdn")+FB.XFBML.ConnectBar.imgs.missingProfileUrl,FB.String.escapeHTML(a.first_name),FB.Intl._tx("Hi {firstName}. <strong>{siteName}</strong> is using Facebook to personalize your experience.",{firstName:FB.String.escapeHTML(a.first_name),siteName:FB.String.escapeHTML(a.site_name)}),FB.Intl._tx("Learn More"),a.profile_url,FB.getDomain("www")+"sitetour/connect.php");var d=this;FB.Array.forEach(b.getElementsByTagName("a"),function(a){a.onclick=FB.bind(d._clickHandler,d)});this._page=document.body;a=0;a=this._page.parentNode?Math.round((parseFloat(FB.Dom.getStyle(this._page.parentNode,"height"))-parseFloat(FB.Dom.getStyle(this._page,"height")))/2):parseInt(FB.Dom.getStyle(this._page,"marginTop"),10);this._initTopMargin=a=isNaN(a)?0:a;window.XMLHttpRequest?(c.style.top=-1*this._initialHeight+"px",FB.Anim.ate(c,{top:"0px"},this._animationSpeed)):c.className+=" fb_connect_bar_container_ie6";c={marginTop:this._initTopMargin+this._initialHeight+"px"};FB.UA.ie()?c.backgroundPositionY=this._initialHeight+"px":c.backgroundPosition="? "+this._initialHeight+"px";FB.Anim.ate(this._page,c,this._animationSpeed)},_clickHandler:function(a){a=a||window.event;for(a=a.target||a.srcElement;"A"!=a.nodeName;)a=a.parentNode;switch(a.className){case "fb_bar_close":FB.api({method:"Connect.connectBarMarkAcknowledged"});FB.Insights.impression({lid:104,name:"widget_user_closed"});this._closeConnectBar();break;case "fb_learn_more":case "fb_profile":window.open(a.href);break;case "fb_no_thanks":this._closeConnectBar(),FB.api({method:"Connect.connectBarMarkAcknowledged"}),FB.Insights.impression({lid:104,name:"widget_user_no_thanks"}),FB.api({method:"auth.revokeAuthorization",block:!0},this.bind(function(){this.fire("connectbar.ondeauth");FB.Event.fire("connectbar.ondeauth",this);FB.Helper.invokeHandler(this.getAttribute("on-deauth"),this);this._getBoolAttribute("auto-refresh",!0)&&window.location.reload()}))}return!1},_closeConnectBar:function(){this._notDisplayed=!0;var a={marginTop:this._initTopMargin+"px"};FB.UA.ie()?a.backgroundPositionY="0px":a.backgroundPosition="? 0px";var b=0==this._animationSpeed?0:300;FB.Anim.ate(this._page,a,b);FB.Anim.ate(this._container,{top:-1*this._initialHeight+"px"},b,function(a){a.parentNode.removeChild(a)});this.fire("connectbar.onclose");FB.Event.fire("connectbar.onclose",this);FB.Helper.invokeHandler(this.getAttribute("on-close"),this)}});FB.provide("XFBML.ConnectBar",{imgs:{buttonUrl:"images/facebook-widgets/close_btn.png",missingProfileUrl:"pics/q_silhouette.gif"}});FB.subclass("XFBML.Fan","XFBML.IframeWidget",null,{_visibleAfter:"load",setupAndValidate:function(){this._attr={api_key:FB._apiKey,connections:this.getAttribute("connections","10"),css:this.getAttribute("css"),height:this._getPxAttribute("height"),id:this.getAttribute("profile-id"),logobar:this._getBoolAttribute("logo-bar"),name:this.getAttribute("name"),stream:this._getBoolAttribute("stream",!0),width:this._getPxAttribute("width",300)};if(!this._attr.id&&!this._attr.name)return FB.log('<fb:fan> requires one of the "id" or "name" attributes.'),!1;var a=this._attr.height;a||(a=(!this._attr.connections||"0"===this._attr.connections)&&!this._attr.stream?65:!this._attr.connections||"0"===this._attr.connections?375:this._attr.stream?550:250);this._attr.logobar&&(a+=25);this._attr.height=a;return!0},getSize:function(){return{width:this._attr.width,height:this._attr.height}},getUrlBits:function(){return{name:"fan",params:this._attr}}});FB.subclass("XFBML.Friendpile","XFBML.Facepile",null,{});FB.subclass("XFBML.EdgeCommentWidget","XFBML.IframeWidget",function(a){this._iframeWidth=a.width+1;this._iframeHeight=a.height;this._attr={master_frame_name:a.masterFrameName};this.dom=a.commentNode;this.dom.style.top=a.relativeHeightOffset;if(a.relativeWidthOffset)FB._localeIsRtl?this.dom.style.right=a.relativeWidthOffset:this.dom.style.left=a.relativeWidthOffset;this.dom.style.zIndex=FB.XFBML.EdgeCommentWidget.NextZIndex++;FB.Dom.addCss(this.dom,"fb_edge_comment_widget")},{_visibleAfter:"load",_showLoader:!1,getSize:function(){return{width:this._iframeWidth,height:this._iframeHeight}},getUrlBits:function(){return{name:"comment_widget_shell",params:this._attr}}});FB.provide("XFBML.EdgeCommentWidget",{NextZIndex:1E4});FB.subclass("XFBML.EdgeWidget","XFBML.IframeWidget",null,{_visibleAfter:"immediate",_showLoader:!1,setupAndValidate:function(){FB.Dom.addCss(this.dom,"fb_edge_widget_with_comment");this._attr={channel_url:this.getChannelUrl(),debug:this._getBoolAttribute("debug"),href:this.getAttribute("href",window.location.href),is_permalink:this._getBoolAttribute("is-permalink"),node_type:this.getAttribute("node-type","link"),width:this._getWidgetWidth(),font:this.getAttribute("font"),layout:this._getLayout(),colorscheme:this.getAttribute("color-scheme"),action:this.getAttribute("action"),ref:this.getAttribute("ref"),show_faces:this._shouldShowFaces(),no_resize:this._getBoolAttribute("no_resize"),send:this._getBoolAttribute("send"),url_map:this.getAttribute("url_map"),extended_social_context:this._getBoolAttribute("extended_social_context",!1)};return!0},oneTimeSetup:function(){this.subscribe("xd.authPrompted",FB.bind(this._onAuthPrompt,this));this.subscribe("xd.edgeCreated",FB.bind(this._onEdgeCreate,this));this.subscribe("xd.edgeRemoved",FB.bind(this._onEdgeRemove,this));this.subscribe("xd.presentEdgeCommentDialog",FB.bind(this._handleEdgeCommentDialogPresentation,this));this.subscribe("xd.dismissEdgeCommentDialog",FB.bind(this._handleEdgeCommentDialogDismissal,this));this.subscribe("xd.hideEdgeCommentDialog",FB.bind(this._handleEdgeCommentDialogHide,this));this.subscribe("xd.showEdgeCommentDialog",FB.bind(this._handleEdgeCommentDialogShow,this))},getSize:function(){return{width:this._getWidgetWidth(),height:this._getWidgetHeight()}},_getWidgetHeight:function(){var a=this._getLayout(),b=this._shouldShowFaces()?"show":"hide",c=65+(this._getBoolAttribute("send")?25:0);return{standard:{show:80,hide:35},box_count:{show:c,hide:c},button_count:{show:21,hide:21},simple:{show:20,hide:20}}[a][b]},_getWidgetWidth:function(){var a=this._getLayout(),b=this._getBoolAttribute("send"),c=this._shouldShowFaces()?"show":"hide",d="recommend"===this.getAttribute("action"),e=(d?265:225)+(b?60:0),b=(d?130:90)+(b?60:0),d="recommend"===this.getAttribute("action")?100:55,f="recommend"===this.getAttribute("action")?90:50,c=this._getPxAttribute("width",{standard:{show:450,hide:450},box_count:{show:d,hide:d},button_count:{show:b,hide:b},simple:{show:f,hide:f}}[a][c]),e={standard:{min:e,max:900},box_count:{min:d,max:900},button_count:{min:b,max:900},simple:{min:49,max:900}};if(c<e[a].min)c=e[a].min;else if(c>e[a].max)c=e[a].max;return c},_getLayout:function(){return this._getAttributeFromList("layout","standard",["standard","button_count","box_count","simple"])},_shouldShowFaces:function(){return"standard"===this._getLayout()&&this._getBoolAttribute("show-faces",!0)},_handleEdgeCommentDialogPresentation:function(a){if(this.isValid()){var b=document.createElement("span");this._commentSlave=this._createEdgeCommentWidget(a,b);this.dom.appendChild(b);this._commentSlave.process();this._commentWidgetNode=b}},_createEdgeCommentWidget:function(a,b){var c={commentNode:b,externalUrl:a.externalURL,width:400,height:225,masterFrameName:a.masterFrameName,layout:this._getLayout(),relativeHeightOffset:this._getHeightOffset(a),relativeWidthOffset:this._getWidthOffset(a)};return new FB.XFBML.EdgeCommentWidget(c)},_getHeightOffset:function(a){return a&&a.preComputedHeightOffset?parseInt(a.preComputedHeightOffset,10)+"px":{standard:"22px",button_count:"19px",box_count:"-5px",simple:"18px"}[this._getLayout()]},_getCommonEdgeCommentWidgetOpts:function(a,b,c,d){return{colorscheme:this._attr.colorscheme,commentNode:b,controllerID:a.controllerID,nodeImageURL:a.nodeImageURL,nodeRef:this._attr.ref,nodeTitle:a.nodeTitle,nodeURL:a.nodeURL,nodeSummary:a.nodeSummary,width:400,height:300,relativeHeightOffset:d?this._getHeightOffset(a):this._getHeightOffset(),relativeWidthOffset:c?this._getWidthOffset(a):this._getWidthOffset(),error:a.error,siderender:a.siderender,extended_social_context:a.extended_social_context}},_getWidthOffset:function(a){return a&&a.preComputedWidthOffset?parseInt(a.preComputedWidthOffset,10)+"px":{standard:"0px",box_count:"0px",button_count:"0px",simple:"0px"}[this._getLayout()]},_handleEdgeCommentDialogDismissal:function(){this._commentWidgetNode&&(this.dom.removeChild(this._commentWidgetNode),delete this._commentWidgetNode)},_handleEdgeCommentDialogHide:function(){if(this._commentWidgetNode)this._commentWidgetNode.style.display="none"},_handleEdgeCommentDialogShow:function(){if(this._commentWidgetNode)this._commentWidgetNode.style.display="block"},_fireEventAndInvokeHandler:function(a,b){FB.Helper.fireEvent(a,this);FB.Helper.invokeHandler(this.getAttribute(b),this,[this._attr.href])},_onEdgeCreate:function(){this._fireEventAndInvokeHandler("edge.create","on-create")},_onEdgeRemove:function(){this._fireEventAndInvokeHandler("edge.remove","on-remove")},_onAuthPrompt:function(){this._fireEventAndInvokeHandler("auth.prompt","on-prompt")}});FB.subclass("XFBML.SendButtonFormWidget","XFBML.EdgeCommentWidget",function(a){this._base(a);FB.Dom.addCss(this.dom,"fb_send_button_form_widget");FB.Dom.addCss(this.dom,a.colorscheme);FB.Dom.addCss(this.dom,"undefined"!=typeof a.siderender&&a.siderender?"siderender":"");this._attr.nodeImageURL=a.nodeImageURL;this._attr.nodeRef=a.nodeRef;this._attr.nodeTitle=a.nodeTitle;this._attr.nodeURL=a.nodeURL;this._attr.nodeSummary=a.nodeSummary;this._attr.channel=this.getChannelUrl();this._attr.controllerID=a.controllerID;this._attr.colorscheme=a.colorscheme;this._attr.error=a.error;this._attr.siderender=a.siderender;this._attr.extended_social_context=a.extended_social_context},{_showLoader:!0,getUrlBits:function(){return{name:"send_button_form_shell",params:this._attr}},oneTimeSetup:function(){this.subscribe("xd.messageSent",FB.bind(this._onMessageSent,this))},_onMessageSent:function(){FB.Event.fire("message.send",this._attr.nodeURL,this)}});FB.subclass("XFBML.Send","XFBML.EdgeWidget",null,{setupAndValidate:function(){FB.Dom.addCss(this.dom,"fb_edge_widget_with_comment");this._attr={channel:this.getChannelUrl(),api_key:FB._apiKey,font:this.getAttribute("font"),colorscheme:this.getAttribute("colorscheme","light"),href:this.getAttribute("href",window.location.href),ref:this.getAttribute("ref"),extended_social_context:this.getAttribute("extended_social_context",!1)};return!0},getUrlBits:function(){return{name:"send",params:this._attr}},_createEdgeCommentWidget:function(a,b){var c=this._getCommonEdgeCommentWidgetOpts(a,b);return new FB.XFBML.SendButtonFormWidget(c)},_getHeightOffset:function(){return"21px"},_getWidthOffset:function(){return"0px"},getSize:function(){return{width:FB.XFBML.Send.Dimensions.width,height:FB.XFBML.Send.Dimensions.height}}});FB.provide("XFBML.Send",{Dimensions:{width:80,height:25}});FB.subclass("XFBML.Like","XFBML.EdgeWidget",null,{_widgetPipeEnabled:!0,getUrlBits:function(){return{name:"like",params:this._attr}},_createEdgeCommentWidget:function(a,b){if("send"in this._attr&&"widget_type"in a&&"send"==a.widget_type){var c=this._getCommonEdgeCommentWidgetOpts(a,b,!0,!0);return new FB.XFBML.SendButtonFormWidget(c)}return this._callBase("_createEdgeCommentWidget",a,b)},getIframeTitle:function(){return"Like this content on Facebook."}});FB.subclass("XFBML.LikeBox","XFBML.IframeWidget",null,{_visibleAfter:"load",setupAndValidate:function(){this._attr={channel:this.getChannelUrl(),api_key:FB._apiKey,connections:this.getAttribute("connections"),css:this.getAttribute("css"),height:this.getAttribute("height"),id:this.getAttribute("profile-id"),header:this._getBoolAttribute("header",!0),name:this.getAttribute("name"),show_faces:this._getBoolAttribute("show-faces",!0),stream:this._getBoolAttribute("stream",!0),width:this._getPxAttribute("width",300),href:this.getAttribute("href"),colorscheme:this.getAttribute("colorscheme","light"),border_color:this.getAttribute("border_color")};if(this._getBoolAttribute("force_wall",!1))this._attr.force_wall=!0;if("0"===this._attr.connections)this._attr.show_faces=!1;else if(this._attr.connections)this._attr.show_faces=!0;if(!this._attr.id&&!this._attr.name&&!this._attr.href)return FB.log('<fb:like-box> requires one of the "id" or "name" attributes.'),!1;var a=this._attr.height;a||(!this._attr.show_faces&&!this._attr.stream?a=62:(a=95,this._attr.show_faces&&(a+=163),this._attr.stream&&(a+=300),this._attr.header&&"0"!==this._attr.header&&(a+=32)));this._attr.height=a;this.subscribe("xd.likeboxLiked",FB.bind(this._onLiked,this));this.subscribe("xd.likeboxUnliked",FB.bind(this._onUnliked,this));return!0},getSize:function(){return{width:this._attr.width,height:this._attr.height}},getUrlBits:function(){return{name:"likebox",params:this._attr}},_onLiked:function(){FB.Helper.fireEvent("edge.create",this)},_onUnliked:function(){FB.Helper.fireEvent("edge.remove",this)}});FB.subclass("XFBML.LiveStream","XFBML.IframeWidget",null,{_visibleAfter:"load",setupAndValidate:function(){this._attr={app_id:this.getAttribute("event-app-id"),height:this._getPxAttribute("height",500),hideFriendsTab:this.getAttribute("hide-friends-tab"),redesigned:this._getBoolAttribute("redesigned-stream"),width:this._getPxAttribute("width",400),xid:this.getAttribute("xid","default"),always_post_to_friends:this._getBoolAttribute("always-post-to-friends",!1),via_url:this.getAttribute("via_url")};return!0},getSize:function(){return{width:this._attr.width,height:this._attr.height}},getUrlBits:function(){return{name:this._attr.redesigned?"live_stream_box":"livefeed",params:this._attr}}});FB.subclass("XFBML.Login","XFBML.Facepile",null,{_visibleAfter:"load",getSize:function(){return{width:this._attr.width,height:94}},getUrlBits:function(){return{name:"login",params:this._attr}}});FB.subclass("XFBML.LoginButton","XFBML.ButtonElement",null,{setupAndValidate:function(){if(this._alreadySetup)return!0;this._alreadySetup=!0;this._attr={autologoutlink:this._getBoolAttribute("auto-logout-link"),length:this._getAttributeFromList("length","short",["long","short"]),onlogin:this.getAttribute("on-login"),perms:this.getAttribute("perms"),scope:this.getAttribute("scope"),registration_url:this.getAttribute("registration-url"),status:"unknown"};this._attr.autologoutlink&&FB.Event.subscribe("auth.statusChange",FB.bind(this.process,this));this._attr.registration_url&&(FB.Event.subscribe("auth.statusChange",this._saveStatus(this.process,!1)),FB.getLoginStatus(this._saveStatus(this.process,!1)));return!0},getButtonMarkup:function(){var a=this.getOriginalHTML();if(a)return a;if(this._attr.registration_url)switch(this._attr.status){case "unknown":return this._getLoginText();case "notConnected":case "not_authorized":return FB.Intl._tx("Register");case "connected":return FB.getAccessToken()&&this._attr.autologoutlink?FB.Intl._tx("Facebook Logout"):"";default:return FB.log("Unknown status: "+this._attr.status),FB.Intl._tx("Log In")}else return FB.getAccessToken()&&this._attr.autologoutlink?FB.Intl._tx("Facebook Logout"):FB.getAccessToken()?"":this._getLoginText()},_getLoginText:function(){return"short"==this._attr.length?FB.Intl._tx("Log In"):FB.Intl._tx("Log In with Facebook")},onClick:function(){if(this._attr.registration_url)switch(this._attr.status){case "unknown":FB.ui({method:"auth.logintoFacebook"},FB.bind(function(){FB.bind(FB.getLoginStatus(this._saveStatus(this._authCallback,!0),!0),this)},this));break;case "notConnected":case "not_authorized":window.top.location=this._attr.registration_url;break;case "connected":!FB.getAccessToken()||!this._attr.autologoutlink?this._authCallback():FB.logout(FB.bind(this._authCallback,this));break;default:FB.log("Unknown status: "+this._attr.status)}else!FB.getAccessToken()||!this._attr.autologoutlink?FB.login(FB.bind(this._authCallback,this),{perms:this._attr.perms,scope:this._attr.scope}):FB.logout(FB.bind(this._authCallback,this))},_authCallback:function(a){FB.Helper.invokeHandler(this._attr.onlogin,this,[a])},_saveStatus:function(a,b){return FB.bind(function(c){if(b&&this._attr.registration_url&&("notConnected"==this._attr.status||"not_authorized"==this._attr.status)&&("notConnected"==c.status||"not_authorized"==c.status))window.top.location=this._attr.registration_url;this._attr.status=c.status;if(a)return a=this.bind(a,this),a(c)},this)}});FB.subclass("XFBML.Name","XFBML.Element",null,{process:function(){FB.copy(this,{_uid:this.getAttribute("uid"),_firstnameonly:this._getBoolAttribute("first-name-only"),_lastnameonly:this._getBoolAttribute("last-name-only"),_possessive:this._getBoolAttribute("possessive"),_reflexive:this._getBoolAttribute("reflexive"),_objective:this._getBoolAttribute("objective"),_linked:this._getBoolAttribute("linked",!0),_subjectId:this.getAttribute("subject-id")});if(this._uid){var a=[];this._firstnameonly?a.push("first_name"):this._lastnameonly?a.push("last_name"):a.push("name");if(this._subjectId&&(a.push("sex"),this._subjectId==FB.Helper.getLoggedInUser()))this._reflexive=!0;var b;FB.Event.monitor("auth.statusChange",this.bind(function(){if(!this.isValid())return this.fire("render"),!0;if(!this._uid||"loggedinuser"==this._uid)this._uid=FB.Helper.getLoggedInUser();this._uid&&(b=FB.Helper.isUser(this._uid)?FB.Data._selectByIndex(a,"user","uid",this._uid):FB.Data._selectByIndex(["name","id"],"profile","id",this._uid),b.wait(this.bind(function(a){this._subjectId==this._uid?this._renderPronoun(a[0]):this._renderOther(a[0]);this.fire("render")})))}))}else FB.log('"uid" is a required attribute for <fb:name>'),this.fire("render")},_renderPronoun:function(a){var b="",b=this._objective;if(this._subjectId&&(b=!0,this._subjectId===this._uid))this._reflexive=!0;if(this._uid==FB.Connect.get_loggedInUser()&&this._getBoolAttribute("use-you",!0))b=this._possessive?this._reflexive?"your own":"your":this._reflexive?"yourself":"you";else switch(a.sex){case "male":b=this._possessive?this._reflexive?"his own":"his":this._reflexive?"himself":b?"him":"he";break;case "female":b=this._possessive?this._reflexive?"her own":"her":this._reflexive?"herself":b?"her":"she";break;default:b=this._getBoolAttribute("use-they",!0)?this._possessive?this._reflexive?"their own":"their":this._reflexive?"themselves":b?"them":"they":this._possessive?this._reflexive?"his/her own":"his/her":this._reflexive?"himself/herself":b?"him/her":"he/she"}this._getBoolAttribute("capitalize",!1)&&(b=FB.Helper.upperCaseFirstChar(b));this.dom.innerHTML=b},_renderOther:function(a){var b="",c="";if(this._uid==FB.Helper.getLoggedInUser()&&this._getBoolAttribute("use-you",!0))b=this._reflexive?this._possessive?"your own":"yourself":this._possessive?"your":"you";else if(a){if(null===a.first_name)a.first_name="";if(null===a.last_name)a.last_name="";this._firstnameonly&&void 0!==a.first_name?b=FB.String.escapeHTML(a.first_name):this._lastnameonly&&void 0!==a.last_name&&(b=FB.String.escapeHTML(a.last_name));b||(b=FB.String.escapeHTML(a.name));""!==b&&this._possessive&&(b+="'s")}b||(b=FB.String.escapeHTML(this.getAttribute("if-cant-see","Facebook User")));b&&(this._getBoolAttribute("capitalize",!1)&&(b=FB.Helper.upperCaseFirstChar(b)),c=a&&this._linked?FB.Helper.getProfileLink(a,b,this.getAttribute("href",null)):b);this.dom.innerHTML=c}});FB.subclass("XFBML.ProfilePic","XFBML.Element",null,{process:function(){var a=this.getAttribute("size","thumb"),b=FB.XFBML.ProfilePic._sizeToPicFieldMap[a],c=this._getPxAttribute("width"),d=this._getPxAttribute("height"),a=this.dom.style,e=this.getAttribute("uid");this._getBoolAttribute("facebook-logo")&&(b+="_with_logo");if(c)c+="px",a.width=c;if(d)d+="px",a.height=d;var f=this.bind(function(a){var e=(a=a?a[0]:null)?a[b]:null;e||(e=FB.getDomain("cdn")+FB.XFBML.ProfilePic._defPicMap[b]);var f=(c?"width:"+c+";":"")+(d?"height:"+c+";":""),e=FB.String.format('<img src="{0}" alt="{1}" title="{1}" style="{2}" class="{3}" />',e,a?FB.String.escapeHTML(a.name):"",f,this.dom.className);this._getBoolAttribute("linked",!0)&&(e=FB.Helper.getProfileLink(a,e,this.getAttribute("href",null)));this.dom.innerHTML=e;FB.Dom.addCss(this.dom,"fb_profile_pic_rendered");this.fire("render")});FB.Event.monitor("auth.statusChange",this.bind(function(){if(!this.isValid())return this.fire("render"),!0;"loggedinuser"==this.getAttribute("uid",null)&&(e=FB.Helper.getLoggedInUser());FB._userStatus&&e?FB.Data._selectByIndex(["name",b],FB.Helper.isUser(e)?"user":"profile",FB.Helper.isUser(e)?"uid":"id",e).wait(f):f()}))}});FB.provide("XFBML.ProfilePic",{_defPicMap:{pic:"pics/s_silhouette.jpg",pic_big:"pics/d_silhouette.gif",pic_big_with_logo:"pics/d_silhouette_logo.gif",pic_small:"pics/t_silhouette.jpg",pic_small_with_logo:"pics/t_silhouette_logo.gif",pic_square:"pics/q_silhouette.gif",pic_square_with_logo:"pics/q_silhouette_logo.gif",pic_with_logo:"pics/s_silhouette_logo.gif"},_sizeToPicFieldMap:{n:"pic_big",normal:"pic_big",q:"pic_square",s:"pic",small:"pic",square:"pic_square",t:"pic_small",thumb:"pic_small"}});FB.subclass("XFBML.Question","XFBML.IframeWidget",null,{_visibleAfter:"load",setupAndValidate:function(){this._attr={channel:this.getChannelUrl(),api_key:FB._apiKey,permalink:this.getAttribute("permalink"),width:this.getAttribute("width",400),height:0};this.subscribe("xd.firstVote",FB.bind(this._onInitialVote,this));this.subscribe("xd.vote",FB.bind(this._onChangedVote,this));return!0},getSize:function(){return{width:this._attr.width,height:this._attr.height}},getUrlBits:function(){return{name:"question",params:this._attr}},_onInitialVote:function(a){FB.Event.fire("question.firstVote",this._attr.permalink,a.vote)},_onChangedVote:function(a){FB.Event.fire("question.vote",this._attr.permalink,a.vote)}});FB.subclass("XFBML.Recommendations","XFBML.IframeWidget",null,{_visibleAfter:"load",_refreshOnAuthChange:!0,setupAndValidate:function(){this._attr={border_color:this.getAttribute("border-color"),colorscheme:this.getAttribute("color-scheme"),filter:this.getAttribute("filter"),font:this.getAttribute("font"),action:this.getAttribute("action"),linktarget:this.getAttribute("linktarget","_blank"),max_age:this.getAttribute("max_age"),header:this._getBoolAttribute("header"),height:this._getPxAttribute("height",300),site:this.getAttribute("site",location.hostname),width:this._getPxAttribute("width",300)};return!0},getSize:function(){return{width:this._attr.width,height:this._attr.height}},getUrlBits:function(){return{name:"recommendations",params:this._attr}}});FB.subclass("XFBML.RecommendationsBar","XFBML.IframeWidget",null,{getUrlBits:function(){return{name:"recommendations_bar",params:this._attr}},setupAndValidate:function(){function a(a,b){function c(){b();e=null;d=(new Date).getTime()}var d=0,e=null;return function(){if(!e){var b=(new Date).getTime();b-d<a?e=window.setTimeout(c,a-(b-d)):c()}return!0}}this._attr={channel:this.getChannelUrl(),api_key:FB._apiKey,font:this.getAttribute("font"),colorscheme:this.getAttribute("colorscheme"),href:FB.URI.resolve(this.getAttribute("href")),side:function(a){return"left"==a||"right"==a?a:FB._localeIsRtl?"left":"right"}(this.getAttribute("side")),site:this.getAttribute("site"),action:this.getAttribute("action"),ref:this.getAttribute("ref"),trigger:function(a){a.match(/^\d+(?:\.\d+)?%$/)?a=Math.min(Math.max(parseInt(a,10),0),100)/100:"manual"!=a&&"onvisible"!=a&&(a="onvisible");return a}(this.getAttribute("trigger","")),read_time:function(a){return Math.max(parseInt(a,10)||30,10)}(this.getAttribute("read_time"))};FB._inPlugin=!0;this._showLoader=!1;this.subscribe("iframe.onload",FB.bind(function(){this.dom.children[0].className="fbpluginrecommendationsbar"+this._attr.side},this));var b=FB.bind(function(){FB.Event.unlisten(window,"scroll",b);FB.Event.unlisten(document.documentElement,"click",b);FB.Event.unlisten(document.documentElement,"mousemove",b);window.setTimeout(FB.bind(this.arbiterInform,this,"platform/plugins/recommendations_bar/action",null,FB.Arbiter.BEHAVIOR_STATE),1E3*this._attr.read_time);return!0},this);FB.Event.listen(window,"scroll",b);FB.Event.listen(document.documentElement,"click",b);FB.Event.listen(document.documentElement,"mousemove",b);if("manual"==this._attr.trigger){var c=FB.bind(function(a){a==this._attr.href&&(FB.Event.unsubscribe("xfbml.recommendationsbar.read",c),this.arbiterInform("platform/plugins/recommendations_bar/trigger",null,FB.Arbiter.BEHAVIOR_STATE));return!0},this);FB.Event.subscribe("xfbml.recommendationsbar.read",c)}else{var d=a(500,FB.bind(function(){this.calculateVisibility()&&(FB.Event.unlisten(window,"scroll",d),FB.Event.unlisten(window,"resize",d),this.arbiterInform("platform/plugins/recommendations_bar/trigger",null,FB.Arbiter.BEHAVIOR_STATE));return!0},this));FB.Event.listen(window,"scroll",d);FB.Event.listen(window,"resize",d);d()}this.visible=!1;var e=a(500,FB.bind(function(){if(!this.visible&&this.calculateVisibility())this.visible=!0,this.arbiterInform("platform/plugins/recommendations_bar/visible");else if(this.visible&&!this.calculateVisibility())this.visible=!1,this.arbiterInform("platform/plugins/recommendations_bar/invisible");return!0},this));FB.Event.listen(window,"scroll",e);FB.Event.listen(window,"resize",e);e();this.focused=!0;e=FB.bind(function(){this.focused=!this.focused;return!0},this);FB.Event.listen(window,"blur",e);FB.Event.listen(window,"focus",e);this.animate=this.resize_running=!1;this.subscribe("xd.signal_animation",FB.bind(function(){this.animate=!0},this));return!0},getSize:function(){return{height:25,width:"recommend"==this._attr.action?140:96}},calculateVisibility:function(){var a=document.documentElement.clientHeight;if(!this.focused&&window.console&&window.console.firebug)return this.visible;switch(this._attr.trigger){case "manual":return!1;case "onvisible":return this.dom.getBoundingClientRect().top<=a;default:return(window.scrollY+a)/document.documentElement.scrollHeight>=this._attr.trigger}},_handleResizeMsg:function(a){if(this.isValid()){if(a.width)this.getIframeNode().style.width=a.width+"px";a.height&&(this._setNextResize(a.height),this._checkNextResize());this._makeVisible()}},_setNextResize:function(a){this.next_resize=a},_checkNextResize:function(){if(this.next_resize&&!this.resize_running){var a=this.getIframeNode(),b=this.next_resize;this.next_resize=null;this.animate?(this.animate=!1,this.resize_running=!0,FB.Anim.ate(a,{height:b+"px"},300,FB.bind(function(){this.resize_running=!1;this._checkNextResize()},this))):a.style.height=b+"px"}}});FB.XFBML.RecommendationsBar.markRead=function(a){FB.Event.fire("xfbml.recommendationsbar.read",a||window.location.href)};FB.subclass("XFBML.Registration","XFBML.IframeWidget",null,{_visibleAfter:"immediate",_baseHeight:167,_fieldHeight:28,_skinnyWidth:520,_skinnyBaseHeight:173,_skinnyFieldHeight:52,setupAndValidate:function(){this._attr={action:this.getAttribute("action"),border_color:this.getAttribute("border-color"),channel_url:this.getChannelUrl(),client_id:FB._apiKey,fb_only:this._getBoolAttribute("fb-only",!1),fb_register:this._getBoolAttribute("fb-register",!1),fields:this.getAttribute("fields"),height:this._getPxAttribute("height"),redirect_uri:this.getAttribute("redirect-uri",window.location.href),no_footer:this._getBoolAttribute("no-footer"),no_header:this._getBoolAttribute("no-header"),onvalidate:this.getAttribute("onvalidate"),width:this._getPxAttribute("width",600),target:this.getAttribute("target")};this._attr.onvalidate&&this.subscribe("xd.validate",this.bind(function(a){var b=FB.JSON.parse(a.value),c=this.bind(function(b){FB.Arbiter.inform("Registration.Validation",{errors:b,id:a.id},'parent.frames["'+this.getIframeNode().name+'"]',"https:"==window.location.protocol)});(b=FB.Helper.executeFunctionByName(this._attr.onvalidate,b,c))&&c(b)}));this.subscribe("xd.authLogin",FB.bind(this._onAuthLogin,this));this.subscribe("xd.authLogout",FB.bind(this._onAuthLogout,this));return!0},getSize:function(){return{width:this._attr.width,height:this._getHeight()}},_getHeight:function(){if(this._attr.height)return this._attr.height;var a;if(this._attr.fields)try{a=FB.JSON.parse(this._attr.fields)}catch(b){a=this._attr.fields.split(/,/)}else a=["name"];return this._attr.width<this._skinnyWidth?this._skinnyBaseHeight+a.length*this._skinnyFieldHeight:this._baseHeight+a.length*this._fieldHeight},getUrlBits:function(){return{name:"registration",params:this._attr}},getDefaultWebDomain:function(){return"https_www"},_onAuthLogin:function(){FB.getSession()||FB.getLoginStatus();FB.Helper.fireEvent("auth.login",this)},_onAuthLogout:function(){FB.getSession()||FB.getLoginStatus();FB.Helper.fireEvent("auth.logout",this)}});FB.subclass("XFBML.ServerFbml","XFBML.IframeWidget",null,{_visibleAfter:"resize",setupAndValidate:function(){this._attr={channel_url:this.getChannelUrl(),fbml:this.getAttribute("fbml"),width:this._getPxAttribute("width")};if(!this._attr.fbml){var a=this.dom.getElementsByTagName("script")[0];if(a&&"text/fbml"===a.type)this._attr.fbml=a.innerHTML}return!this._attr.fbml?(FB.log('<fb:serverfbml> requires the "fbml" attribute.'),!1):!0},getSize:function(){return{width:this._attr.width,height:this._attr.height}},getUrlBits:function(){return{name:"serverfbml",params:this._attr}}});FB.subclass("XFBML.ShareButton","XFBML.Element",null,{process:function(){this._href=this.getAttribute("href",window.location.href);this._type=this.getAttribute("type","icon_link");FB.Dom.addCss(this.dom,"fb_share_count_hidden");this._renderButton(!0)},_renderButton:function(a){if(this.isValid()){var b="",c="",d="",e="",b=FB.Intl._tx("Share"),f="";switch(this._type){case "icon":case "icon_link":e="fb_button_simple";b='<span class="fb_button_text">'+("icon_link"==this._type?b:"&nbsp;")+"</span>";a=!1;break;case "link":b=FB.Intl._tx("Share on Facebook");a=!1;break;case "button":b='<span class="fb_button_text">'+b+"</span>";e="fb_button fb_button_small";a=!1;break;case "button_count":b='<span class="fb_button_text">'+b+"</span>";c='<span class="fb_share_count_nub_right">&nbsp;</span><span class="fb_share_count fb_share_count_right">'+this._getCounterMarkup()+"</span>";e="fb_button fb_button_small";break;default:b='<span class="fb_button_text">'+b+"</span>",d='<span class="fb_share_count_nub_top">&nbsp;</span><span class="fb_share_count fb_share_count_top">'+this._getCounterMarkup()+"</span>",e="fb_button fb_button_small",f="fb_share_count_wrapper"}var g=FB.guid();this.dom.innerHTML=FB.String.format('<span class="{0}">{4}<a id="{1}" class="{2}" target="_blank">{3}</a>{5}</span>',f,g,e,b,d,c);c=document.getElementById(g);c.href=this._href;c.onclick=function(){FB.ui({method:"stream.share",u:this.href});return!1};a||this.fire("render")}else this.fire("render")},_getCounterMarkup:function(){if(!this._count)this._count=FB.Data._selectByIndex(["total_count"],"link_stat","url",this._href);var a="0";if(void 0!==this._count.value){if(0<this._count.value.length){var b=this._count.value[0].total_count;3<b&&(FB.Dom.removeCss(this.dom,"fb_share_count_hidden"),a=1E7<=b?Math.round(b/1E6)+"M":1E4<=b?Math.round(b/1E3)+"K":b)}}else this._count.wait(FB.bind(this._renderButton,this,!1));return'<span class="fb_share_count_inner">'+a+"</span>"}});FB.subclass("XFBML.Subscribe","XFBML.EdgeWidget",null,{setupAndValidate:function(){this._attr={channel:this.getChannelUrl(),api_key:FB._apiKey,font:this.getAttribute("font"),colorscheme:this.getAttribute("colorscheme","light"),user:this.getAttribute("user"),ref:this.getAttribute("ref"),layout:this._getLayout(),show_faces:this._shouldShowFaces(),width:this._getWidgetWidth()};return!0},getUrlBits:function(){return{name:"subscribe",params:this._attr}},_getWidgetWidth:function(){var a=this._getLayout(),b=this._getPxAttribute("width",{standard:450,box_count:85,button_count:110}[a]),c={standard:{min:225,max:900},box_count:{min:85,max:900},button_count:{min:110,max:900}};if(b<c[a].min)b=c[a].min;else if(b>c[a].max)b=c[a].max;return b}});FB.provide("",{_domain:{api:"https://api.facebook.com/",api_read:"https://api-read.facebook.com/",cdn:"http://static.ak.fbcdn.net/",cdn_foreign:"http://connect.facebook.net/",graph:"https://graph.facebook.com/",https_cdn:"https://s-static.ak.fbcdn.net/",https_staticfb:"https://s-static.ak.facebook.com/",https_www:"https://www.facebook.com/",staticfb:"http://static.ak.facebook.com/",www:"http://www.facebook.com/",m:"http://m.facebook.com/",https_m:"https://m.facebook.com/"},_locale:"en_US",_localeIsRtl:!1},!0);FB.provide("Flash",{_minVersions:[[10,3,181,34],[11,0,0]],_swfPath:"rsrc.php/v1/yK/r/RIxWozDt5Qq.swf"},!0);FB.provide("XD",{_xdProxyUrl:"connect/xd_proxy.php?version=3"},!0);FB.provide("Arbiter",{_canvasProxyUrl:"connect/canvas_proxy.php?version=3"},!0);FB.provide("Auth",{_xdStorePath:"xd_localstorage/v2"},!0);FB.initSitevars={parseXFBMLBeforeDomReady:!1,computeContentSizeVersion:0,enableMobile:1,forceSecureXdProxy:1,iframePermissions:{read_stream:!1,manage_mailbox:!1,manage_friendlists:!1,read_mailbox:!1,publish_checkins:!0,status_update:!0,photo_upload:!0,video_upload:!0,sms:!1,create_event:!0,rsvp_event:!0,offline_access:!0,email:!0,xmpp_login:!1,create_note:!0,share_item:!0,export_stream:!1,publish_stream:!0,publish_likes:!0,ads_management:!1,contact_email:!0,access_private_data:!1,read_insights:!1,read_requests:!1,read_friendlists:!0,manage_pages:!1,physical_login:!1,manage_groups:!1,read_deals:!1}};FB.forceOAuth=!1;FB.widgetPipeEnabledApps={111476658864976:1,cca6477272fc5cb805f85a84f20fca1d:1,179150165472010:1};FB.widgetPipeTagCountThreshold=4;FB.provide("Canvas.Prefetcher",{_appIdsBlacklist:[144959615576466],_sampleRate:500},!0);FB.provide("TemplateData",{_enabled:!0},!0);FB.provide("TemplateUI",{_version:18},!0);FB.provide("XFBML.ConnectBar",{imgs:{buttonUrl:"rsrc.php/v1/yY/r/h_Y6u1wrZPW.png",missingProfileUrl:"rsrc.php/v1/yo/r/UlIqmHJn-SK.gif"}},!0);FB.provide("XFBML.ProfilePic",{_defPicMap:{pic:"rsrc.php/v1/yh/r/C5yt7Cqf3zU.jpg",pic_big:"rsrc.php/v1/yL/r/HsTZSDw4avx.gif",pic_big_with_logo:"rsrc.php/v1/y5/r/SRDCaeCL7hM.gif",pic_small:"rsrc.php/v1/yi/r/odA9sNLrE86.jpg",pic_small_with_logo:"rsrc.php/v1/yD/r/k1xiRXKnlGd.gif",pic_square:"rsrc.php/v1/yo/r/UlIqmHJn-SK.gif",pic_square_with_logo:"rsrc.php/v1/yX/r/9dYJBPDHXwZ.gif",pic_with_logo:"rsrc.php/v1/yu/r/fPPR9f2FJ3t.gif"}},!0);FB.Dom&&FB.Dom.addCssRules&&FB.Dom.addCssRules('.fb_hidden{position:absolute;top:-10000px;z-index:10001}\n.fb_invisible{display:none}\n.fb_reset{background:none;border-spacing:0;border:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size: 11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}\n.fb_link img{border:none}\n.fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}\n.fb_dialog_advanced{padding:10px;-moz-border-radius:8px;-webkit-border-radius:8px}\n.fb_dialog_content{background:#fff;color:#333}\n.fb_dialog_close_icon{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;_background-image:url(http://static.ak.fbcdn.net/rsrc.php/v1/yL/r/s816eWC-2sl.gif);cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px;top:8px\\9;right:7px\\9}\n.fb_dialog_mobile .fb_dialog_close_icon{top:5px;left:5px;right:auto}\n.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}\n.fb_dialog_close_icon:hover{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent;_background-image:url(http://static.ak.fbcdn.net/rsrc.php/v1/yL/r/s816eWC-2sl.gif)}\n.fb_dialog_close_icon:active{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent;_background-image:url(http://static.ak.fbcdn.net/rsrc.php/v1/yL/r/s816eWC-2sl.gif)}\n.fb_dialog_loader{background-color:#f2f2f2;border:1px solid #606060;font-size: 24px;padding:20px}\n.fb_dialog_top_left,\n.fb_dialog_top_right,\n.fb_dialog_bottom_left,\n.fb_dialog_bottom_right{height:10px;width:10px;overflow:hidden;position:absolute}\n.fb_dialog_top_left{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/ye/r/8YeTNIlTZjm.png) no-repeat 0 0;left:-10px;top:-10px}\n.fb_dialog_top_right{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/ye/r/8YeTNIlTZjm.png) no-repeat 0 -10px;right:-10px;top:-10px}\n.fb_dialog_bottom_left{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/ye/r/8YeTNIlTZjm.png) no-repeat 0 -20px;bottom:-10px;left:-10px}\n.fb_dialog_bottom_right{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/ye/r/8YeTNIlTZjm.png) no-repeat 0 -30px;right:-10px;bottom:-10px}\n.fb_dialog_vert_left,\n.fb_dialog_vert_right,\n.fb_dialog_horiz_top,\n.fb_dialog_horiz_bottom{position:absolute;background:#525252;filter:alpha(opacity=70);opacity:.7}\n.fb_dialog_vert_left,\n.fb_dialog_vert_right{width:10px;height:100%}\n.fb_dialog_vert_left{margin-left:-10px}\n.fb_dialog_vert_right{right:0;margin-right:-10px}\n.fb_dialog_horiz_top,\n.fb_dialog_horiz_bottom{width:100%;height:10px}\n.fb_dialog_horiz_top{margin-top:-10px}\n.fb_dialog_horiz_bottom{bottom:0;margin-bottom:-10px}\n.fb_dialog_iframe{line-height:0}\n.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #3b5998;color:#fff;font-size: 14px;font-weight:bold;margin:0}\n.fb_dialog_content .dialog_title > span{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/yd/r/Cou7n-nqK52.gif)\nno-repeat 5px 50%;float:left;padding:5px 0 7px 26px}\nbody.fb_hidden{-webkit-transform:none;height:100%;margin:0;left:-10000px;overflow:visible;position:absolute;top:-10000px;width:100%\n}\n.fb_dialog.fb_dialog_mobile.loading{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/yO/r/_j03izEX40U.gif)\nwhite no-repeat 50% 50%;min-height:100%;min-width:100%;overflow:hidden;position:absolute;top:0;z-index:10001}\n.fb_dialog.fb_dialog_mobile.loading.centered{max-height:590px;min-height:590px;max-width:500px;min-width:500px}\n#fb-root #fb_dialog_ipad_overlay{background:rgba(0, 0, 0, .45);position:absolute;left:0;top:0;width:100%;min-height:100%;z-index:10000}\n#fb-root #fb_dialog_ipad_overlay.hidden{display:none}\n.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}\n.fb_dialog_content .dialog_header{-webkit-box-shadow:white 0 1px 1px -1px inset;background:-webkit-gradient(linear, 0 0, 0 100%, from(#738ABA), to(#2C4987));border-bottom:1px solid;border-color:#1d4088;color:#fff;font:14px Helvetica, sans-serif;font-weight:bold;text-overflow:ellipsis;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0;vertical-align:middle;white-space:nowrap}\n.fb_dialog_content .dialog_header table{-webkit-font-smoothing:subpixel-antialiased;height:43px;width:100%\n}\n.fb_dialog_content .dialog_header td.header_left{font-size: 12px;padding-left:5px;vertical-align:middle;width:60px\n}\n.fb_dialog_content .dialog_header td.header_right{font-size: 12px;padding-right:5px;vertical-align:middle;width:60px\n}\n.fb_dialog_content .touchable_button{background:-webkit-gradient(linear, 0 0, 0 100%, from(#4966A6),\ncolor-stop(0.5, #355492), to(#2A4887));border:1px solid #29447e;-webkit-background-clip:padding-box;-webkit-border-radius:3px;-webkit-box-shadow:rgba(0, 0, 0, .117188) 0 1px 1px inset,\nrgba(255, 255, 255, .167969) 0 1px 0;display:inline-block;margin-top:3px;max-width:85px;line-height:18px;padding:4px 12px;position:relative}\n.fb_dialog_content .dialog_header .touchable_button input{border:none;background:none;color:#fff;font:12px Helvetica, sans-serif;font-weight:bold;margin:2px -12px;padding:2px 6px 3px 6px;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}\n.fb_dialog_content .dialog_header .header_center{color:#fff;font-size: 16px;font-weight:bold;line-height:18px;text-align:center;vertical-align:middle}\n.fb_dialog_content .dialog_content{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/y9/r/jKEcVPZFk-2.gif) no-repeat 50% 50%;border:1px solid #555;border-bottom:0;border-top:0;height:150px}\n.fb_dialog_content .dialog_footer{background:#f2f2f2;border:1px solid #555;border-top-color:#ccc;height:40px}\n#fb_dialog_loader_close{float:left}\n.fb_dialog.fb_dialog_mobile .fb_dialog_close_button{text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}\n.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}\n.fb_iframe_widget{position:relative;display:-moz-inline-block;display:inline-block}\n.fb_iframe_widget iframe{position:relative;vertical-align:text-bottom}\n.fb_iframe_widget span{position:relative}\n.fb_hide_iframes iframe{position:relative;left:-10000px}\n.fb_iframe_widget_loader{position:relative;display:inline-block}\n.fb_iframe_widget_loader iframe{min-height:32px;z-index:2;zoom:1}\n.fb_iframe_widget_loader .FB_Loader{background:url(http://static.ak.fbcdn.net/rsrc.php/v1/y9/r/jKEcVPZFk-2.gif) no-repeat;height:32px;width:32px;margin-left:-16px;position:absolute;left:50%;z-index:4}\n.fb_button_simple,\n.fb_button_simple_rtl{background-image:url(http://static.ak.fbcdn.net/rsrc.php/v1/yH/r/eIpbnVKI9lR.png);background-repeat:no-repeat;cursor:pointer;outline:none;text-decoration:none}\n.fb_button_simple_rtl{background-position:right 0}\n.fb_button_simple .fb_button_text{margin:0 0 0 20px;padding-bottom:1px}\n.fb_button_simple_rtl .fb_button_text{margin:0 10px 0 0}\na.fb_button_simple:hover .fb_button_text,\na.fb_button_simple_rtl:hover .fb_button_text,\n.fb_button_simple:hover .fb_button_text,\n.fb_button_simple_rtl:hover .fb_button_text{text-decoration:underline}\n.fb_button,\n.fb_button_rtl{background:#29447e url(http://static.ak.fbcdn.net/rsrc.php/v1/yL/r/FGFbc80dUKj.png);background-repeat:no-repeat;cursor:pointer;display:inline-block;padding:0 0 0 1px;text-decoration:none;outline:none}\n.fb_button .fb_button_text,\n.fb_button_rtl .fb_button_text{background:#5f78ab url(http://static.ak.fbcdn.net/rsrc.php/v1/yL/r/FGFbc80dUKj.png);border-top:solid 1px #879ac0;border-bottom:solid 1px #1a356e;color:#fff;display:block;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;font-weight:bold;padding:2px 6px 3px 6px;margin:1px 1px 0 21px;text-shadow:none}\na.fb_button,\na.fb_button_rtl,\n.fb_button,\n.fb_button_rtl{text-decoration:none}\na.fb_button:active .fb_button_text,\na.fb_button_rtl:active .fb_button_text,\n.fb_button:active .fb_button_text,\n.fb_button_rtl:active .fb_button_text{border-bottom:solid 1px #29447e;border-top:solid 1px #45619d;background:#4f6aa3;text-shadow:none}\n.fb_button_xlarge,\n.fb_button_xlarge_rtl{background-position:left -60px;font-size: 24px;line-height:30px}\n.fb_button_xlarge .fb_button_text{padding:3px 8px 3px 12px;margin-left:38px}\na.fb_button_xlarge:active{background-position:left -99px}\n.fb_button_xlarge_rtl{background-position:right -268px}\n.fb_button_xlarge_rtl .fb_button_text{padding:3px 8px 3px 12px;margin-right:39px}\na.fb_button_xlarge_rtl:active{background-position:right -307px}\n.fb_button_large,\n.fb_button_large_rtl{background-position:left -138px;font-size: 13px;line-height:16px}\n.fb_button_large .fb_button_text{margin-left:24px;padding:2px 6px 4px 6px}\na.fb_button_large:active{background-position:left -163px}\n.fb_button_large_rtl{background-position:right -346px}\n.fb_button_large_rtl .fb_button_text{margin-right:25px}\na.fb_button_large_rtl:active{background-position:right -371px}\n.fb_button_medium,\n.fb_button_medium_rtl{background-position:left -188px;font-size: 11px;line-height:14px}\na.fb_button_medium:active{background-position:left -210px}\n.fb_button_medium_rtl{background-position:right -396px}\n.fb_button_text_rtl,\n.fb_button_medium_rtl .fb_button_text{padding:2px 6px 3px 6px;margin-right:22px}\na.fb_button_medium_rtl:active{background-position:right -418px}\n.fb_button_small,\n.fb_button_small_rtl{background-position:left -232px;font-size: 10px;line-height:10px}\n.fb_button_small .fb_button_text{padding:2px 6px 3px;margin-left:17px}\na.fb_button_small:active,\n.fb_button_small:active{background-position:left -250px}\n.fb_button_small_rtl{background-position:right -440px}\n.fb_button_small_rtl .fb_button_text{padding:2px 6px;margin-right:18px}\na.fb_button_small_rtl:active{background-position:right -458px}\n.fb_share_count_wrapper{position:relative;float:left}\n.fb_share_count{background:#b0b9ec none repeat scroll 0 0;color:#333;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;text-align:center}\n.fb_share_count_inner{background:#e8ebf2;display:block}\n.fb_share_count_right{margin-left:-1px;display:inline-block}\n.fb_share_count_right .fb_share_count_inner{border-top:solid 1px #e8ebf2;border-bottom:solid 1px #b0b9ec;margin:1px 1px 0 1px;font-size: 10px;line-height:10px;padding:2px 6px 3px;font-weight:bold}\n.fb_share_count_top{display:block;letter-spacing:-1px;line-height:34px;margin-bottom:7px;font-size: 22px;border:solid 1px #b0b9ec}\n.fb_share_count_nub_top{border:none;display:block;position:absolute;left:7px;top:35px;margin:0;padding:0;width:6px;height:7px;background-repeat:no-repeat;background-image:url(http://static.ak.fbcdn.net/rsrc.php/v1/yU/r/bSOHtKbCGYI.png)}\n.fb_share_count_nub_right{border:none;display:inline-block;padding:0;width:5px;height:10px;background-repeat:no-repeat;background-image:url(http://static.ak.fbcdn.net/rsrc.php/v1/yX/r/i_oIVTKMYsL.png);vertical-align:top;background-position:right 5px;z-index:10;left:2px;margin:0 2px 0 0;position:relative}\n.fb_share_no_count{display:none}\n.fb_share_size_Small .fb_share_count_right .fb_share_count_inner{font-size: 10px}\n.fb_share_size_Medium .fb_share_count_right .fb_share_count_inner{font-size: 11px;padding:2px 6px 3px;letter-spacing:-1px;line-height:14px}\n.fb_share_size_Large .fb_share_count_right .fb_share_count_inner{font-size: 13px;line-height:16px;padding:2px 6px 4px;font-weight:normal;letter-spacing:-1px}\n.fb_share_count_hidden .fb_share_count_nub_top,\n.fb_share_count_hidden .fb_share_count_top,\n.fb_share_count_hidden .fb_share_count_nub_right,\n.fb_share_count_hidden .fb_share_count_right{visibility:hidden}\n.fb_connect_bar_container div,\n.fb_connect_bar_container span,\n.fb_connect_bar_container a,\n.fb_connect_bar_container img,\n.fb_connect_bar_container strong{background:none;border-spacing:0;border:0;direction:ltr;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal;vertical-align:baseline}\n.fb_connect_bar_container{position:fixed;left:0 !important;right:0 !important;height:42px !important;padding:0 25px !important;margin:0 !important;vertical-align:middle !important;border-bottom:1px solid #333 !important;background:#3b5998 !important;z-index:99999999 !important;overflow:hidden !important}\n.fb_connect_bar_container_ie6{position:absolute;top:expression(document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px":body.scrollTop+"px")}\n.fb_connect_bar{position:relative;margin:auto;height:100%;width:100%;padding:6px 0 0 0 !important;background:none;color:#fff !important;font-family:"lucida grande", tahoma, verdana, arial, sans-serif !important;font-size: 13px !important;font-style:normal !important;font-variant:normal !important;font-weight:normal !important;letter-spacing:normal !important;line-height:1 !important;text-decoration:none !important;text-indent:0 !important;text-shadow:none !important;text-transform:none !important;white-space:normal !important;word-spacing:normal !important}\n.fb_connect_bar a:hover{color:#fff}\n.fb_connect_bar .fb_profile img{height:30px;width:30px;vertical-align:middle;margin:0 6px 5px 0}\n.fb_connect_bar div a,\n.fb_connect_bar span,\n.fb_connect_bar span a{color:#bac6da;font-size: 11px;text-decoration:none}\n.fb_connect_bar .fb_buttons{float:right;margin-top:7px}\n.fb_edge_widget_with_comment{position:relative;*z-index:1000}\n.fb_edge_widget_with_comment span.fb_edge_comment_widget{position:absolute}\n.fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_ltr{left:-4px}\n.fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_rtl{left:2px}\n.fb_edge_widget_with_comment span.fb_send_button_form_widget{left:0;z-index:1}\n.fb_edge_widget_with_comment span.fb_send_button_form_widget .FB_Loader{left:0;top:1px;margin-top:6px;margin-left:0;background-position:50% 50%;background-color:#fff;height:150px;width:394px;border:1px #666 solid;border-bottom:2px solid #283e6c;z-index:1}\n.fb_edge_widget_with_comment span.fb_send_button_form_widget.dark .FB_Loader{background-color:#000;border-bottom:2px solid #ccc}\n.fb_edge_widget_with_comment span.fb_send_button_form_widget.siderender\n.FB_Loader{margin-top:0}\n.fbpluginrecommendationsbarleft,\n.fbpluginrecommendationsbarright{position:fixed !important;bottom:0;z-index:999}\n/* @noflip */\n.fbpluginrecommendationsbarleft{left:10px}\n/* @noflip */\n.fbpluginrecommendationsbarright{right:10px}\n',"fb.css.base,fb.css.dialog,fb.css.iframewidget,fb.css.button,fb.css.sharebutton,fb.css.connectbarwidget,fb.css.edgecommentwidget,fb.css.sendbuttonformwidget,fb.css.plugin.recommendationsbar".split(","));
