if(!window.FB){FB={}}if(!FB.dynData){FB.dynData={site_vars:{canvas_client_compute_content_size_method:1,use_postMessage:0,use_xdProxy:0,use_ui_server:1,monitor_usage_regex:"somethingtoputhere.com|huffingtonpost.com|lala.com",monitor_usage_rate:0.05,enable_custom_href:1},ui_server_dialogs:{"bookmark.add":1,"friends.add":1},resources:{base_url_format:"http://{0}.connect.facebook.com/",base_cdn_url:"http://static.ak.fbcdn.net/",api_channel:1274667011,api_server:1274667011,www_channel:1274666829,xd_proxy:1274666573,xd_comm_swf_url:"http://static.ak.fbcdn.net/rsrc.php/z6D2S/hash/c729bxo3.swf",share_button:"http://static.ak.fbcdn.net/rsrc.php/zAB5S/hash/4273uaqa.gif",login_img_dark_small_short:"http://static.ak.fbcdn.net/rsrc.php/zF1W2/hash/a969rwcd.gif",login_img_dark_medium_short:"http://static.ak.fbcdn.net/rsrc.php/zEF9L/hash/156b4b3s.gif",login_img_dark_medium_long:"http://static.ak.fbcdn.net/rsrc.php/zBIU2/hash/85b5jlja.gif",login_img_dark_large_short:"http://static.ak.fbcdn.net/rsrc.php/z1UX3/hash/a22m3ibb.gif",login_img_dark_large_long:"http://static.ak.fbcdn.net/rsrc.php/z7SXD/hash/8mzymam2.gif",login_img_light_small_short:"http://static.ak.fbcdn.net/rsrc.php/zDGBW/hash/8t35mjql.gif",login_img_light_medium_short:"http://static.ak.fbcdn.net/rsrc.php/z38X1/hash/6ad3z8m6.gif",login_img_light_medium_long:"http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif",login_img_light_large_short:"http://static.ak.fbcdn.net/rsrc.php/zA114/hash/7e3mp7ee.gif",login_img_light_large_long:"http://static.ak.fbcdn.net/rsrc.php/z4Z4Q/hash/8rc0izvz.gif",login_img_white_small_short:"http://static.ak.fbcdn.net/rsrc.php/z900E/hash/di0gkqrt.gif",login_img_white_medium_short:"http://static.ak.fbcdn.net/rsrc.php/z10GM/hash/cdozw38w.gif",login_img_white_medium_long:"http://static.ak.fbcdn.net/rsrc.php/zBT3E/hash/338d3m67.gif",login_img_white_large_short:"http://static.ak.fbcdn.net/rsrc.php/zCOUP/hash/8yzn0wu3.gif",login_img_white_large_long:"http://static.ak.fbcdn.net/rsrc.php/zC6AR/hash/5pwowlag.gif",logout_img_small:"http://static.ak.fbcdn.net/rsrc.php/z2Y31/hash/cxrz4k7j.gif",logout_img_medium:"http://static.ak.fbcdn.net/rsrc.php/zAD8D/hash/4lsqsd7l.gif",logout_img_large:"http://static.ak.fbcdn.net/rsrc.php/zB36N/hash/4515xk7j.gif"}}}if(!FB.locale){FB.locale="en_US"}if(!FB.localeIsRTL){FB.localeIsRTL=false}if(!window.FB){FB={}}if(!FB.Monitor){FB.Monitor={wrapObject:function(h,g,i){if(typeof(h)!="object"){return h}if(!FB.Monitor.loggingEnabled()){return h}if(g=="FB.Debug"||g=="FB.HiddenContainer"||g=="FB.XdComm.Server"||g.indexOf("FBIntern")==0){return h}for(var k in h){var l=h[k];if(!h.hasOwnProperty(k)||typeof(l)!="function"||l.wrapped){continue}var j={containerName:g,functionName:k};h[k]=FB.Monitor._monitorWrapper(l,h,i,j);h[k].wrapped=true}return h},disableLogging:function(){FB.Monitor.loggingEnabledCache=false},loggingEnabled:function(){if(FB.Monitor.loggingEnabledCache===null){var g=FB.dynData&&FB.dynData.site_vars&&FB.dynData.site_vars.monitor_usage_regex;if(!g){FB.Monitor.loggingEnabledCache=false}else{var f=new RegExp(g);var d=FB.dynData.site_vars.monitor_usage_rate;FB.Monitor.loggingEnabledCache=f.test(document.domain)?(Math.random()/d)<1:false}}return FB.Monitor.loggingEnabledCache},externalCallback:function(b){if(typeof(b)!="function"){return b}return function(){var f=FB.Monitor.internalCallStackDepth;FB.Monitor.internalCallStackDepth=0;var a=Array.prototype.slice.call(arguments);var g=b.apply(this,a);FB.Monitor.internalCallStackDepth=f;return g}},_monitorWrapper:function(f,g,h,i){return function(){var j=Array.prototype.slice.call(arguments);context=h?this:(g||window);i=i||{containerName:"unknown",functionName:"unknown"};if(FB.Monitor.internalCallStackDepth==0){if(i.functionName.substr(0,1)!="_"){FB.Monitor.logFunction(i,j)}}++FB.Monitor.internalCallStackDepth;var a=new Date();try{var b=f.apply(context,j)}finally{var c=new Date();--FB.Monitor.internalCallStackDepth;var d=c.getTime()-a.getTime();if(d){FB.Monitor.logFunction(i,[],d)}}return b}},logFunction:function(i,l,k){var g=[];for(var j=0;j<l.length;j++){var h=l[j];g[j]=h?h.toString():h}FB.Monitor.log("functions",i.containerName+"."+i.functionName,{elapsed:k})},logXFBML:function(j){var f={};for(var i=0;i<j.attributes.length;++i){var g=j.attributes[i];if(g.specified!==false&&g.nodeName&&g.nodeValue&&g.nodeName!="class"){f[g.nodeName]=g.nodeValue.toString()}}var h=j.nodeName.toLowerCase();FB.Monitor.log("tags",h,{args:f})},log:function(g,h,i){if(!FB.Monitor.loggingEnabled()){return}var f={functions:101,tags:102};i.lid=f[g];i.name=h;FB.Monitor.loggingQueue.push(i);FB.Monitor.scheduleSend()},scheduleSend:function(){if(!FB.Monitor.pendingTimer){FB.Monitor.pendingTimer=setTimeout(FB.Monitor.send,FB.Monitor.timerInterval)}},send:function(){FB.Monitor.pendingTimer=false;var b=FB.Monitor.loggingEnabled();FB.Monitor.loggingEnabledCache=false;try{if(FB.MonitorSender){while(FB.Monitor.loggingQueue.length>0){if(!FB.MonitorSender.send()){break}}}else{FB.Monitor.timerInterval*=1.2}}finally{if(FB.Monitor.loggingQueue.length!==0){FB.Monitor.scheduleSend()}FB.Monitor.loggingEnabledCache=b}},timerInterval:6*1000,internalCallStackDepth:0,loggingQueue:[],pendingTimer:false,loggingEnabledCache:null}}if(!window.FB){FB={}}FB.forEach=function(l,h,i){if(Object.prototype.toString.apply(l)==="[object Array]"){if(l.forEach){l.forEach(h)}else{for(var g=0,j=l.length;g<j;g++){h(l[g],g,l)}}}else{for(var k in l){if(i||l.hasOwnProperty(k)){h(l[k],k,l)}}}};FB.copy=function(g,d,f){FB.forEach(d,function(a,b){if(f||typeof g[b]==="undefined"){g[b]=a}})};FB.copy(FB,{$:function(b){return document.getElementById(b)},TypeLoader:{NOTIFY:{},LOADED_MODULES:{},LOADED_CLASSES:{},resolve:function(i,j,h){for(var g=0,l=j.length;g<l;g++){var k=j[g];if(k===""){continue}if(typeof i[k]==="undefined"){if(h){i[k]={}}else{return false}}i=i[k]}return i},provide:function(i,f,g){FB.Monitor.wrapObject(f,i,false);var h=this.resolve(window,i.split("."),true);if(g||!this.LOADED_MODULES[i]){FB.copy(h,f,true);if(f._onLoad){h._onLoad()}}this.LOADED_MODULES[i]=true},subclass:function(p,t,l){if(this.LOADED_CLASSES[p]){return}if(t!=="FB.Class"&&!this.LOADED_CLASSES[t]){FB.Log.debug('"'+p+'" needs to wait for "'+t+'"');var k=FB.redo(arguments,this);this.NOTIFY[t]?this.NOTIFY[t].push(k):this.NOTIFY[t]=[k];return}var s=this.resolve(window,t.split(".")),o=s.extend(l),n=this.NOTIFY[p],m=p.split("."),q=this.resolve(window,m,true),r=m.pop();FB.Monitor.wrapObject(o.prototype,p,true);FB.Monitor.wrapObject(o,p,false);FB.copy(o,q);this.resolve(window,m)[r]=o;this.LOADED_CLASSES[p]=true;if(n){FB.forEach(n,function(a){a()});delete this.NOTIFY[p]}}},bind:function(){var g=Array.prototype.slice.call(arguments),i=g.shift(),f=g.shift();var h=function(){++FB.Monitor.internalCallStackDepth;var a=i.apply(f,g.concat(Array.prototype.slice.call(arguments)));--FB.Monitor.internalCallStackDepth;return a};h._targets=[f,i];return h},redo:function(f,g){var d=Array.prototype.slice.call(f);d.unshift(g);d.unshift(f.callee);return FB.bind.apply(FB,d)}});FB.provide=FB.bind(FB.TypeLoader.provide,FB.TypeLoader);FB.subclass=FB.bind(FB.TypeLoader.subclass,FB.TypeLoader);(function(){var c=false,d=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;FB.Class=function(){};FB.Class.extend=function(b){var g=this.prototype;c=true;var a=new this();c=false;FB.forEach(b,function(f,i){a[i]=typeof f==="function"&&typeof g[i]==="function"&&d.test(f)?(function(k,l){return function(){var j=this._super;this._super=g[k];var m=l.apply(this,arguments);this._super=j;return m}})(i,f):f});var h=function(){if(!c){var f;if(this instanceof h){f=this}else{c=true;f=new h();c=false}if(f.init){f.init.apply(f,arguments)}return f}};h.prototype=a;h.constructor=h;h.extend=FB.Class.extend;return h}})();FB.provide("FB.Log",{level:-1,Level:{DEBUG:3,INFO:2,WARNING:1,ERROR:0},_helper:function(){var f=Array.prototype.slice.call(arguments),g=f.shift(),d=f.shift();if(this.level>=d&&window.console){(console[g]||console.log).apply(console,f)}}});FB.provide("FB.Log",{debug:FB.bind(FB.Log._helper,FB.Log,"debug",FB.Log.Level.DEBUG),info:FB.bind(FB.Log._helper,FB.Log,"info",FB.Log.Level.INFO),warn:FB.bind(FB.Log._helper,FB.Log,"warn",FB.Log.Level.WARNING),error:FB.bind(FB.Log._helper,FB.Log,"error",FB.Log.Level.ERROR)},true);if(!window.FB){FB={}}if(!FB.Type){FB.Type={createNamespace:function(g){var k=window;var l=g.split(".");for(var h=0;h<l.length;h++){var i=l[h];var j=k[i];if(!j){k[i]=j={}}k=j}return k},createEnum:function(h,j,i){if(this.getObj(h)){return}var g=function(){};g.prototype=j;for(var f in j){g[f]=j[f]}if(i){g.__flags=true}this.setObj(h,g)},createClass2:function(cls,baseType){if(baseType&&typeof(baseType)=="string"){baseType=eval(baseType)}cls.prototype.constructor=cls;this.extend(cls,FB.Type.Methods);cls.__baseType=baseType||Object;if(baseType){cls.__basePrototypePending=true}},setObj:function(fullName,value){var i=fullName.lastIndexOf(".");var objName;var scope=window;if(i>0){var ns=fullName.substring(0,i);this.createNamespace(ns);objName=fullName.substring(i+1);scope=eval(ns)}else{objName=fullName}scope[objName]=value},getObj:function(f){var i=window;var j=f.split(".");for(var g=0;g<j.length;g++){var h=j[g];i=i[h];if(!i){break}}return i},createClass:function(d,c){if(this.getObj(d)){return}if(arguments.length==1&&typeof(d)!="string"){return this._createClass(d)}else{this.setObj(d,this._createClass(c))}},_createClass:function(c){var d=c.ctor||function(){};if(c.static_ctor){this.addStaticInit(c.static_ctor)}if(c.instance){d.prototype=c.instance}if(c["static"]){this.extend(d,c["static"])}this.createClass2(d,c.base);return d},addStaticInit:function(b){if(!FB.Type._pendingInits){FB.Type._pendingInits=[]}FB.Type._pendingInits[FB.Type._pendingInits.length]=b;window.setTimeout(FB.Type.runPendingInits,0)},runPendingInits:function(){if(FB.Type._pendingInits){var d=FB.Type._pendingInits;FB.Type._pendingInits=null;var f=d.length;for(var g=0;g<f;g++){d[g]()}}},extend:function(f,g){for(var d in g){f[d]=g[d]}return f},getInstanceType:function(b){return b.constructor}};FB.Type.Methods={setupBase:function(){if(this.__basePrototypePending){var f=this.__baseType;if(f.__basePrototypePending){f.setupBase()}for(var d in f.prototype){var g=f.prototype[d];if(!this.prototype[d]){this.prototype[d]=g}}delete this.__basePrototypePending}},constructBase:function(c,d){if(this.__basePrototypePending){this.setupBase()}if(!d){this.__baseType.apply(c)}else{this.__baseType.apply(c,d)}},callBase:function(i,h,g){var f=this.__baseType.prototype[h];if(!g){return f.apply(i)}else{return f.apply(i,g)}},get_baseType:function(){return this.__baseType||null}}}FB.provide("FB.HiddenContainer",{_onLoad:function(){if(document.getElementById("FB_HiddenContainer")==null){var d;try{var c=window.navigator.userAgent.toLowerCase().indexOf("msie")>=0&&window.attachEvent;if((!c||document.readyState=="completed")&&document.body){d=document.createElement("div");d.id="FB_HiddenContainer";d.style.position="absolute";d.style.top="-10000px";d.style.width="0px";d.style.height="0px";document.body.appendChild(d)}}catch(f){d=null}if(!d){document.write('<div id="FB_HiddenContainer" style="position:absolute; top:-10000px; left:-10000px; width:0px; height:0px;" ></div>')}}},get:function(){return FB.$("FB_HiddenContainer")}});FB.provide("FB.HiddenContainerLoader",{_onLoad:function(){FB.HiddenContainer.get()}});FB.subclass("FB.Delegate","FB.Class",{});FB.provide("FB.Delegate",{Null:function(){},_create:function(c){var d=function(){if(c.length==2){return c[1].apply(c[0],arguments)}else{var a=c.slice();for(var b=0;b<a.length;b+=2){a[b+1].apply(a[b],arguments)}return null}};d._targets=c;return d},create:function(c,d){if(!c){return d}return FB.Delegate._create([c,d])},combine:function(g,f){if(!g){if(!f._targets){return FB.Delegate.create(null,f)}return f}if(!f){if(!g._targets){return FB.Delegate.create(null,g)}return g}var i=g._targets?g._targets:[null,g];var h=f._targets?f._targets:[null,f];return FB.Delegate._create(i.concat(h))},remove:function(h,g){if(!h||(h===g)){return null}if(!g){return h}var i=h._targets;var j=null;var k;if(g._targets){j=g._targets[0];k=g._targets[1]}else{k=g}for(var l=0;l<i.length;l+=2){if((i[l]===j)&&(i[l+1]===k)){if(i.length==2){return null}i.splice(l,2);return FB.Delegate._create(i)}}return h}});if(!window.Delegate){window.Delegate=FB.Delegate}if(!window.FB){FB={}}if(!FB.Loader){FB.Loader={loaded:{},loading:{},loadedCss:{},loadedCallback:null,onScriptLoaded:function(f){var g=f.length;for(var i=0;i<g;i++){var h=f[i];FB.Loader.loaded[h]=true}if(FB.Loader.loadedCallback){window.setTimeout(function(){FB.Loader.loadedCallback(f)},0)}},loadCssComps:function(f){var d=FB.Loader.getStaticResourceUrl("connect.php/"+FB.locale+"/css/"+f.join("/"));if(!this.loadedCss[d]){var g=document.createElement("link");g.setAttribute("rel","stylesheet");g.setAttribute("type","text/css");g.setAttribute("href",d);document.getElementsByTagName("head")[0].appendChild(g);this.loadedCss[d]=true}},getStaticResourceUrl:function(d){var f=FB.dynData.resources.base_url_format;var g=(f.indexOf("https")===0)?"ssl":"static.ak";return f.replace("{0}",g)+d}}}if(!FB.Bootstrap){FB.Bootstrap={requireFeatures:function(p,r){if(FB.Bootstrap.isXdChannel){return}var l={features:p,callback:FB.Monitor.externalCallback(r),completed:false};if(FB.Bootstrap._checkRequest(l)){return}FB.Bootstrap._featureReqQueue.push(l);FB.Loader.loadedCallback=FB.Delegate.combine(FB.Loader.loadedCallback,FB.Bootstrap._onCompLoaded);FB.Bootstrap._transformFeatureList(p);var m={};var t=[];var o;var s=p.length;var n=0;for(o=0;o<s;o++){var q=p[o];if(!(FB.Loader.loaded[q])){if(!(FB.Loader.loaded[q]||FB.Loader.loading[q])){m[q]=true;t[t.length]=q}}}t.sort();var k=FB.Loader.getStaticResourceUrl("connect.php/"+FB.locale+"/js/"+t.join("/"));FB.Bootstrap.addScript(k)},_requireFeatures:function(c,d){this.requireFeatures(c,FB.bind(d))},_checkRequest:function(i){if(!i.completed){var f=0;var h=i.features.length;var j=0;for(f=0;f<h;f++){var g=i.features[f];if(FB.Loader.loaded[g]){j++}}if(j==h){i.completed=true;if(i.callback){i.callback(true)}}}return i.completed},_transformFeatureList:function(h){var n={Api:true,CanvasUtil:true,Connect:true,XFBML:true};var i=h.length;var j=false;var k={};for(var m=0;m<i;m++){k[h[m]]=true;if(n[h[m]]){j=true}}if(j){for(var l in n){if(!k[l]){h[h.length]=l}}}},ensureInit:function(b){if(!b){throw ("FB.ensureInit called without a valid callback")}b=FB.Monitor.externalCallback(b);if(FB.Facebook&&FB.Facebook.get_initialized&&FB.Facebook.get_initialized().get_isReady()&&FB.Facebook.get_initialized().result){return b()}FB.Bootstrap._requireFeatures(FB.Bootstrap.features,function(){FB.Facebook.get_initialized().waitForValue(true,b)})},init:function(f,g,d){FB.Bootstrap._requireFeatures(FB.Bootstrap.features,function(){if(FB.Facebook){FB.Facebook.init(f,g,d)}})},addScript:function(i){var k;var j=document.getElementsByTagName("script");if(j){var h=j.length;for(var g=0;g<h;g++){k=j[g];if(k.src==i){return}}}k=document.createElement("script");k.type="text/javascript";k.src=i;var l=document.getElementsByTagName("HEAD")[0]||document.body;l.appendChild(k)},setLocale:function(c,d){window.FB.locale=c;window.FB.localeIsRTL=d},_initializeXdChannel:function(){FB.Bootstrap.isXdChannel=window.location.search.indexOf(FB.Bootstrap.fbc_channel_token)>=0},_detectDocumentNamespaces:function(){if(document.namespaces&&!document.namespaces.item.fb){document.namespaces.add("fb")}},createDefaultXdChannelUrl:function(){var b=location.protocol+"//"+location.hostname+location.pathname+location.search;if(location.search||location.search.length>0){b+="&"}else{b+="?"}b+="fbc_channel=1";return b},_onCompLoaded:function(){var c=0;var d=FB.Bootstrap._featureReqQueue.length;for(c=0;c<d;c++){FB.Bootstrap._checkRequest(FB.Bootstrap._featureReqQueue[c])}},_onLoad:function(){this._initializeXdChannel();this._detectDocumentNamespaces()},features:["XFBML","CanvasUtil"],fbc_channel_token:"fbc_channel=1",_featureReqQueue:[]};FB.Monitor.wrapObject(FB.Bootstrap,"FB.Bootstrap");window.FB_RequireFeatures=FB.Bootstrap.requireFeatures;window.FB.init=FB.Bootstrap.init;window.FB.ensureInit=FB.Bootstrap.ensureInit;FB.Bootstrap._onLoad()}if(!window.FBIntern){FBIntern={}}if(!FBIntern.XdReceiver){FBIntern.XdReceiver={delay:100,timerId:-1,dispatchMessage:function(){var j=document.URL;var n=j.indexOf("#");var o;if(n>0){o=j.substring(n+1)}else{n=j.indexOf("fb_login&");if(n>0){o=j.substring(n+9)}else{return}}var r="debug=1&";if(o.indexOf(r)==0){o=o.substring(r.length)}var k;var p=null;try{var m=window.parent;if(o.indexOf("fname=")==0){var l=o.indexOf("&");var q=o.substr(6,l-6);if(q=="_opener"){m=m.opener}else{if(q=="_oparen"){m=m.opener.parent}else{if(q!="_parent"){m=m.frames[q]}}}k=o.substr(l+1)}else{m=m.parent;k=o}p=m.FB.XdComm.Server.singleton.onReceiverLoaded}catch(n){if(n.number==-2146828218){return}}if(p){m.FB.XdComm.Server.singleton.onReceiverLoaded(k);if(FBIntern.XdReceiver.timerId!=-1){window.clearInterval(FBIntern.XdReceiver.timerId);FBIntern.XdReceiver.timerId=-1}}else{if(FBIntern.XdReceiver.timerId==-1){try{FBIntern.XdReceiver.timerId=window.setInterval(FBIntern.XdReceiver.dispatchMessage,FBIntern.XdReceiver.delay)}catch(n){}}}}};if(!(window.FB&&FB.Bootstrap&&!FB.Bootstrap.isXdChannel)){try{FBIntern.XdReceiver.dispatchMessage()}catch(e){}}}(function(){var i=document.getElementsByTagName("script");var h=i[i.length-1];if(h!=undefined){var g=h.getAttribute("fb-api-key");var f=h.getAttribute("fb-xd-receiver");if(g!=null){window.setTimeout(function(){FB.init(g,f)},0)}}})();if(FB&&FB.Loader){FB.Loader.onScriptLoaded(["FB.monitor-wrapper","FB.Prelude","FB.Class","FB.Log","FB.Type","FB.HiddenContainer","FB.HiddenContainerLoader","FB.Delegate","FB.Loader","FB.Bootstrap","XdCommReceiver"])};
