if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());if(!window.FB){FB={_apiKey:null,_session:null,_userStatus:"unknown",_logging:true,_domain:{api:window.location.protocol+"//api.facebook.com/",cdn:window.location.protocol+"//static.ak.fbcdn.net/",www:window.location.protocol+"//www.facebook.com/"},_registry:{flashVersions:[[9,0,159,0],[10,0,22,87]]},copy:function(h,a,g){if(typeof h=="string"){var j=FB,e=h.split(".");for(var f=0,c=e.length;f<c;f++){var b=e[f];if(b===""){continue}if(typeof j[b]==="undefined"){j[b]={}}j=j[b]}h=j}for(var d in a){if(a.hasOwnProperty(d)&&(g||!(d in h))){h[d]=a[d]}}return h},guid:function(){return"f"+(Math.random()*(1<<30)).toString(16).replace(".","")},log:function(a){if(FB._logging&&window.console){console.log(a)}if(FB.Event){FB.Event.fire("fb.log",a)}}}}FB.copy("",{api:function(d,b){if(FB.Auth&&d.method=="Auth.revokeAuthorization"){var c=b;b=function(e){if(e===true){FB.Auth.setSession(null,"notConnected")}c&&c(e)}}try{FB.RestServer.jsonp(d,b)}catch(a){if(FB.Flash.hasMinVersion()){FB.RestServer.flash(d,b)}else{throw new Error("Flash is required for this API call.")}}}});FB.copy("RestServer",{_callbacks:{},sign:function(a){FB.copy(a,{api_key:FB._apiKey,call_id:(new Date()).getTime(),format:"json",v:"1.0"});if(FB._session){FB.copy(a,{session_key:FB._session.session_key,ss:1})}if(FB._session){a.sig=FB.md5sum(FB.QS.encode(a,"",false)+FB._session.secret)}return a},jsonp:function(e,a){var d=FB.guid(),b=document.createElement("script"),c;e=FB.RestServer.sign(FB.copy({callback:"FB.RestServer._callbacks."+d},e));c=FB._domain.api+"restserver.php?"+FB.QS.encode(e);if(c.length>2000){throw new Error("JSONP only support a maximum of 2000 bytes of input.")}FB.RestServer._callbacks[d]=function(f){a(f);delete FB.RestServer._callbacks[d];b.parentNode.removeChild(b)};b.src=c;document.getElementsByTagName("head")[0].appendChild(b)},flash:function(b,a){if(!FB.RestServer.flash._init){window.FB_OnXdHttpResult=function(d,c){FB.RestServer._callbacks[d](FB.Flash.decode(c))};FB.RestServer.flash._init=true}FB.Flash.onReady(function(){var f,d,c,e;c=FB.QS.encode(FB.RestServer.sign(FB.copy({},b)));d=FB._domain.api+"restserver.php";if(d.length+c.length>2000){f="POST"}else{f="GET";d+="?"+c;c=""}e=document.XdComm.sendXdHttpRequest(f,d,c,null);FB.RestServer._callbacks[e]=function(g){a(JSON.parse(FB.Flash.decode(g)));delete FB.RestServer._callbacks[e]}})}});FB.copy("",{loginStatus:function(a,e){if(!FB._apiKey){FB.log("FB.loginStatus() called before calling FB.init().");return}if(a){if(!e&&FB.Auth._loadState=="loaded"){a({status:FB._userStatus,session:FB._session});return}else{FB.Auth._callbacks.push(a)}}if(!e&&FB.Auth._loadState=="loading"){return}FB.Auth._loadState="loading";var f=function(h){FB.Auth._loadState="loaded";var k=FB.Auth._callbacks;FB.Auth._callbacks=[];for(var j=0,g=k.length;j<g;j++){k[j](h)}};var c=FB.Auth.xdHandler,d=FB.guid(),b=FB._domain.www+"extern/login_status.php?"+FB.QS.encode({api_key:FB._apiKey,no_session:c(f,d,"parent",false,"notConnected"),no_user:c(f,d,"parent",false,"unknown"),ok_session:c(f,d,"parent",false,"connected")});FB.Frames.hidden(b,d)},getSession:function(){return FB._session},login:function(a,d){if(!FB._apiKey){FB.log("FB.login() called before calling FB.init().");return}if(FB._session&&!d){FB.log("FB.login() called when user is already connected.");a&&a({status:FB._userStatus,session:FB._session});return}var c=FB.Auth.xdHandler,h=FB.guid(),f=c(a,h,"opener",true,FB._userStatus,FB._session),e=c(a,h,"opener",false,"connected",FB._session),b=FB._domain.www+"login.php?"+FB.QS.encode({api_key:FB._apiKey,cancel_url:f,channel_url:window.location.toString(),display:"popup",fbconnect:1,next:e,req_perms:d,return_session:1,v:"1.0"});FB.Frames.popup(b,450,415,h)},logout:function(a){if(!FB._apiKey){FB.log("FB.logout() called before calling FB.init().");return}if(!FB._session){FB.log("FB.logout() called without a session.");return}var c=FB.guid(),b=FB._domain.www+"logout.php?"+FB.QS.encode({api_key:FB._apiKey,next:FB.Auth.xdHandler(a,c,"parent",false,"unknown"),session_key:FB._session.session_key});FB.Frames.hidden(b,c)}});FB.copy("Auth",{_callbacks:[],setSession:function(h,c){var e=!FB._session&&h,b=FB._session&&!h,g=FB._session&&h&&FB._session.uid!=h.uid,a=(FB._session&&h&&FB._session.session_key!=h.session_key),f=c!=FB._status;var d={session:h,status:c};FB._session=h;FB._userStatus=c;if(f){FB.Event.fire("auth.statusChange",d)}if(b||g){FB.Event.fire("auth.logout",d)}if(e||g){FB.Event.fire("auth.login",d)}if(e||b||a){FB.Event.fire("auth.sessionChange",d)}return d},xdHandler:function(a,f,e,c,b,d){return FB.Frames.xdHandler(function(i){var h;try{h=FB.Auth.setSession(JSON.parse(i.session),b)}catch(g){h=FB.Auth.setSession(d||null,b)}h.perms=(i.result!="xxRESULTTOKENxx"&&i.result||"");a&&a(h)},f,e,c)+"&result=xxRESULTTOKENxx"}});FB.copy("Content",{_root:null,_hiddenRoot:null,_callbacks:{},append:function(b,a){if(!a){if(!FB.Content._root){FB.Content._root=a=document.getElementById("fb-root");if(!a){FB.log('The "fb-root" div has not been created.');return}}else{a=FB.Content._root}}if(typeof b=="string"){var c=document.createElement("div");a.appendChild(c).innerHTML=b;return c}else{return a.appendChild(b)}},hidden:function(c){if(!FB.Content._hiddenRoot){var a=document.createElement("div"),b=a.style;b.position="absolute";b.top="-10000px";b.width=b.height=0;FB.Content._hiddenRoot=FB.Content.append(a)}return FB.Content.append(c,FB.Content._hiddenRoot)},iframe:function(c,a,g){var b=FB.guid(),h=FB.Content.append("",a),e=false;FB.Content._callbacks[b]=function(){if(e){g&&g(h.firstChild);delete FB.Content._callbacks[b]}};if(document.attachEvent){var d=('<iframe  src="'+c+'" onload="FB.Content._callbacks.'+b+'()"></iframe>');h.innerHTML='<iframe src="javascript:false"></iframe>';e=true;window.setTimeout(function(){h.innerHTML=d},0)}else{var f=document.createElement("iframe");f.onload=FB.Content._callbacks[b];h.appendChild(f);e=true;f.src=c}}});FB.copy("Cookie",{_domain:null,init:function(){if(!FB.Cookie._initDone){FB.Event.subscribe("auth.sessionChange",function(a){FB.Cookie.set(a.session)});FB.Cookie._initDone=true}},load:function(){var b=document.cookie.match("\\bfbs_"+FB._apiKey+"=([^;]*)\\b"),c,a;if(b){c=FB.QS.decode(b[1]);a=c.expires=parseInt(c.expires,10);FB.Cookie._domain=c.base_domain}return c},setRaw:function(c,b,a){document.cookie="fbs_"+FB._apiKey+"="+c+"; expires="+new Date(b*1000).toGMTString()+"; path=/"+(a?"; domain=."+a:"");FB.Cookie._domain=a},set:function(a){a?FB.Cookie.setRaw(FB.QS.encode(a),a.expires,a.base_domain):FB.Cookie.clear()},clear:function(){FB.Cookie.setRaw("",0,FB.Cookie._domain)}});FB.copy("",{init:function(a){if(!a||!a.apiKey){FB.log("FB.init() called without an apiKey.");return}FB.copy(a,{logging:true});FB._apiKey=a.apiKey;if(!a.logging&&window.location.toString().indexOf("fb_debug=1")<0){FB._logging=false}if(a.cookie){FB.Cookie.init()}a.session=a.session||FB.Cookie.load();FB.Auth.setSession(a.session,a.session?"connected":"unknown");if(a.status){FB.loginStatus()}}});FB.copy("Event",{_subscribers:{},subscribe:function(b,a){var c=FB.Event._subscribers;if(!c[b]){c[b]=[a]}else{c[b].push(a)}},unsubscribe:function(c,a){var e=FB.Event._subscribers;if(e[c]){for(var d=0,b=e[c].length;d<b;d++){if(e[c][d]==a){e[c][d]=null}}}},fire:function(){var c=Array.prototype.slice.call(arguments),b=c.shift(),f=FB.Event._subscribers[b],e;if(!f){return}for(var d=0,a=f.length;d<a;d++){e=f[d];if(e){e.apply(window,c)}}}});FB.copy("Flash",{_callbacks:[],init:function(){if(FB.Flash._init){return}FB.Flash._init=true;window.FB_OnFlashXdCommReady=function(){FB.Flash._ready=true;for(var e=0,d=FB.Flash._callbacks.length;e<d;e++){FB.Flash._callbacks[e]()}FB.Flash._callbacks=[]};var c=!!document.attachEvent,b=FB._domain.cdn+"swf/XdComm.swf",a=('<object type="application/x-shockwave-flash" id="XdComm" '+(c?'name="XdComm" ':"")+(c?"":'data="'+b+'" ')+(c?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ':"")+'allowscriptaccess="always"><param name="movie" value="'+b+'"></param><param name="allowscriptaccess" value="always"></param></object>');FB.Content.hidden(a)},hasMinVersion:function(){if(typeof FB.Flash._hasMinVersion==="undefined"){var q,h,f,j=[];try{q=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(k){var b="application/x-shockwave-flash";if(navigator.mimeTypes[b].enabledPlugin){var a="Shockwave Flash";q=(navigator.plugins[a+" 2.0"]||navigator.plugins[a]).description}}if(q){var g=q.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",");for(h=0,f=g.length;h<f;h++){j.push(parseInt(g[h],10))}}FB.Flash._hasMinVersion=false;majorVersion:for(h=0,f=FB._registry.flashVersions.length;h<f;h++){var p=FB._registry.flashVersions[h];if(p[0]!=j[0]){continue}for(var e=1,d=p.length,c=j.length;(e<d&&e<c);e++){if(j[e]<p[e]){FB.Flash._hasMinVersion=false;continue majorVersion}else{FB.Flash._hasMinVersion=true;if(j[e]>p[e]){break majorVersion}}}}}return FB.Flash._hasMinVersion},onReady:function(a){FB.Flash.init();if(FB.Flash._ready){window.setTimeout(a,0)}else{FB.Flash._callbacks.push(a)}},decode:function(a){if(a&&a.length&&typeof a!="string"){a=a[0]}if(!a||typeof a!="string"){return a}a=a.replace(/\&custom_lt\;/g,"<");a=a.replace(/\&custom_gt\;/g,">");a=a.replace(/\&custom_backslash\;/g,"\\");a=a.replace(/\\0/g,"\0");return a}});FB.copy("Frames",{_monitor:null,_count:0,_active:{},_defaultCb:{},_resultToken:'"xxRESULTTOKENxx"',hidden:function(a,b){FB.Content.iframe(a,FB.Content.hidden(""),function(c){FB.Frames._active[b]=c})},popup:function(a,c,j,b){var g=typeof window.screenX!="undefined"?window.screenX:window.screenLeft,e=typeof window.screenY!="undefined"?window.screenY:window.screenTop,k=typeof window.outerWidth!="undefined"?window.outerWidth:document.body.clientWidth,i=typeof window.outerHeight!="undefined"?window.outerHeight:(document.body.clientHeight-22),f=parseInt(g+((k-c)/2),10),h=parseInt(e+((i-j)/2.5),10),d=("width="+c+",height="+j+",left="+f+",top="+h);FB.Frames._active[b]=window.open(a,"_blank",d);if(b in FB.Frames._defaultCb){FB.Frames._count++;FB.Frames.winMonitor()}},winMonitor:function(){if(FB.Frames._count<1){window.clearInterval(FB.Frames._monitor);FB.Frames._monitor=null;return}if(!FB.Frames._monitor){FB.Frames._monitor=window.setInterval(FB.Frames.winMonitor,100)}for(var d in FB.Frames._active){if(FB.Frames._active.hasOwnProperty(d)&&d in FB.Frames._defaultCb){var b=FB.Frames._active[d];try{if(b.tagName){continue}}catch(a){}try{if(b.closed){FB.Frames._count--;FB.Frames.xdRecv({frame:d},FB.Frames._defaultCb[d])}}catch(c){}}}},xdHandler:function(a,d,b,c){if(c){FB.Frames._defaultCb[d]=a}return FB.XD.handler(function(e){FB.Frames.xdRecv(e,a)},b)+"&frame="+d},xdRecv:function(c,b){var d=FB.Frames._active[c.frame];try{if(d.tagName){window.setTimeout(function(){d.parentNode.removeChild(d)},500)}}catch(a){}try{if(d.close){d.close()}}catch(e){}delete FB.Frames._active[c.frame];delete FB.Frames._defaultCb[c.frame];b(c)},xdResult:function(a,d,c,b){return(FB.Frames.xdHandler(function(e){a&&a(e.result&&e.result!=FB.Frames._resultToken&&JSON.parse(e.result))},d,c,b)+"&result="+encodeURIComponent(FB.Frames._resultToken))}});FB.md5sum=function(o){var z="0123456789abcdef",f="",F,e,w,v="",q="",u=-1,n,m;function t(a,c){var b=(a&65535)+(c&65535);return(((a>>16)+(c>>16)+(b>>16))<<16)|(b&65535)}function r(I,i,d,c,H,G){var y=t(t(i,I),t(c,G));return t((y<<H)|(y>>>(32-H)),d)}function s(G,y,K,J,i,I,H){return r((y&K)|((~y)&J),G,y,i,I,H)}function B(G,y,K,J,i,I,H){return r((y&J)|(K&(~J)),G,y,i,I,H)}function h(G,y,K,J,i,I,H){return r(y^K^J,G,y,i,I,H)}function p(G,y,K,J,i,I,H){return r(K^(y|(~J)),G,y,i,I,H)}while(++u<o.length){n=o.charCodeAt(u);m=u+1<o.length?o.charCodeAt(u+1):0;if(55296<=n&&n<=56319&&56320<=m&&m<=57343){n=65536+((n&1023)<<10)+(m&1023);u++}if(n<=127){f+=String.fromCharCode(n)}else{if(n<=2047){f+=String.fromCharCode(192|((n>>>6)&31),128|(n&63))}else{if(n<=65535){f+=String.fromCharCode(224|((n>>>12)&15),128|((n>>>6)&63),128|(n&63))}else{if(n<=2097151){f+=String.fromCharCode(240|((n>>>18)&7),128|((n>>>12)&63),128|((n>>>6)&63),128|(n&63))}}}}}F=f.length*8;e=Array(f.length>>2);for(u=0;u<e.length;u++){e[u]=0}for(u=0;u<F;u+=8){e[u>>5]|=(f.charCodeAt(u/8)&255)<<(u%32)}e[F>>5]|=128<<((F)%32);e[(((F+64)>>>9)<<4)+14]=F;var E=1732584193,D=-271733879,C=-1732584194,A=271733878;for(u=0;u<e.length;u+=16){var l=E,k=D,j=C,g=A;E=s(E,D,C,A,e[u+0],7,-680876936);A=s(A,E,D,C,e[u+1],12,-389564586);C=s(C,A,E,D,e[u+2],17,606105819);D=s(D,C,A,E,e[u+3],22,-1044525330);E=s(E,D,C,A,e[u+4],7,-176418897);A=s(A,E,D,C,e[u+5],12,1200080426);C=s(C,A,E,D,e[u+6],17,-1473231341);D=s(D,C,A,E,e[u+7],22,-45705983);E=s(E,D,C,A,e[u+8],7,1770035416);A=s(A,E,D,C,e[u+9],12,-1958414417);C=s(C,A,E,D,e[u+10],17,-42063);D=s(D,C,A,E,e[u+11],22,-1990404162);E=s(E,D,C,A,e[u+12],7,1804603682);A=s(A,E,D,C,e[u+13],12,-40341101);C=s(C,A,E,D,e[u+14],17,-1502002290);D=s(D,C,A,E,e[u+15],22,1236535329);E=B(E,D,C,A,e[u+1],5,-165796510);A=B(A,E,D,C,e[u+6],9,-1069501632);C=B(C,A,E,D,e[u+11],14,643717713);D=B(D,C,A,E,e[u+0],20,-373897302);E=B(E,D,C,A,e[u+5],5,-701558691);A=B(A,E,D,C,e[u+10],9,38016083);C=B(C,A,E,D,e[u+15],14,-660478335);D=B(D,C,A,E,e[u+4],20,-405537848);E=B(E,D,C,A,e[u+9],5,568446438);A=B(A,E,D,C,e[u+14],9,-1019803690);C=B(C,A,E,D,e[u+3],14,-187363961);D=B(D,C,A,E,e[u+8],20,1163531501);E=B(E,D,C,A,e[u+13],5,-1444681467);A=B(A,E,D,C,e[u+2],9,-51403784);C=B(C,A,E,D,e[u+7],14,1735328473);D=B(D,C,A,E,e[u+12],20,-1926607734);E=h(E,D,C,A,e[u+5],4,-378558);A=h(A,E,D,C,e[u+8],11,-2022574463);C=h(C,A,E,D,e[u+11],16,1839030562);D=h(D,C,A,E,e[u+14],23,-35309556);E=h(E,D,C,A,e[u+1],4,-1530992060);A=h(A,E,D,C,e[u+4],11,1272893353);C=h(C,A,E,D,e[u+7],16,-155497632);D=h(D,C,A,E,e[u+10],23,-1094730640);E=h(E,D,C,A,e[u+13],4,681279174);A=h(A,E,D,C,e[u+0],11,-358537222);C=h(C,A,E,D,e[u+3],16,-722521979);D=h(D,C,A,E,e[u+6],23,76029189);E=h(E,D,C,A,e[u+9],4,-640364487);A=h(A,E,D,C,e[u+12],11,-421815835);C=h(C,A,E,D,e[u+15],16,530742520);D=h(D,C,A,E,e[u+2],23,-995338651);E=p(E,D,C,A,e[u+0],6,-198630844);A=p(A,E,D,C,e[u+7],10,1126891415);C=p(C,A,E,D,e[u+14],15,-1416354905);D=p(D,C,A,E,e[u+5],21,-57434055);E=p(E,D,C,A,e[u+12],6,1700485571);A=p(A,E,D,C,e[u+3],10,-1894986606);C=p(C,A,E,D,e[u+10],15,-1051523);D=p(D,C,A,E,e[u+1],21,-2054922799);E=p(E,D,C,A,e[u+8],6,1873313359);A=p(A,E,D,C,e[u+15],10,-30611744);C=p(C,A,E,D,e[u+6],15,-1560198380);D=p(D,C,A,E,e[u+13],21,1309151649);E=p(E,D,C,A,e[u+4],6,-145523070);A=p(A,E,D,C,e[u+11],10,-1120210379);C=p(C,A,E,D,e[u+2],15,718787259);D=p(D,C,A,E,e[u+9],21,-343485551);E=t(E,l);D=t(D,k);C=t(C,j);A=t(A,g)}w=[E,D,C,A];for(u=0;u<w.length*32;u+=8){v+=String.fromCharCode((w[u>>5]>>>(u%32))&255)}for(u=0;u<v.length;u++){n=v.charCodeAt(u);q+=z.charAt((n>>>4)&15)+z.charAt(n&15)}return q};FB.copy("QS",{encode:function(e,b,c){b=b===undefined?"&":b;c=c===false?function(f){return f}:encodeURIComponent;var d=[],a;for(a in e){if(e.hasOwnProperty(a)&&e[a]!==null&&typeof e[a]!="undefined"){d.push(c(a)+"="+c(e[a]))}}d.sort();return d.join(b)},decode:function(f){var c=decodeURIComponent,e={},b=f.split("&"),a,d;for(a=0;a<b.length;a++){d=b[a].split("=",2);e[c(d[0])]=c(d[1])}return e}});FB.copy("",{share:function(b,c){var a=FB._domain.www+"sharer.php?"+FB.QS.encode({title:c,u:b||window.location.toString()});FB.Frames.popup(a,575,380)},publish:function(d,a){if(a){var b=a;a=function(f){if(f){if(f.postId){f={message:f.data.user_message,post_id:f.postId}}else{f=null}}b(f)}}d=d||{};var e=FB._apiKey&&FB.guid(),c=FB._domain.www+"connect/prompt_feed.php?"+FB.QS.encode({action_links:JSON.stringify(d.action_links||{}),actor_id:d.actor_id,api_key:FB._apiKey,attachment:JSON.stringify(d.attachment||{}),callback:e&&FB.Frames.xdResult(a,e,"opener",true),message:d.message,preview:1,session_key:FB._session&&FB._session.session_key,target_id:d.target_id,user_message_prompt:d.user_message_prompt});FB.Frames.popup(c,550,242,e)},addFriend:function(d,a){var c=FB.guid(),b=FB._domain.www+"addfriend.php?"+FB.QS.encode({api_key:FB._apiKey,display:"dialog",id:d,next:FB.Frames.xdResult(a,c,"opener",true),session_key:FB._session.session_key});FB.Frames.popup(b,565,240,c)}});FB.copy("XD",{_origin:null,_transport:null,_callbacks:{},init:function(){if(FB.XD._origin){return}FB.XD._origin=(window.location.protocol+"//"+window.location.host+"/"+FB.guid());if(window.addEventListener&&window.postMessage){FB.XD.PostMessage.init();FB.XD._transport="postmessage"}else{if(FB.Flash.hasMinVersion()){FB.XD.Flash.init();FB.XD._transport="flash"}else{FB.XD._transport="fragment"}}},handler:function(a,b){FB.XD.init();var d=FB._domain.cdn+"connect/xd_proxy.php#?=&",e=FB.guid();if(FB.XD._transport=="fragment"){d=window.location.toString();var c=d.indexOf("#");if(c>0){d=d.substr(0,c)}d+="?&mu_xd_bust#?=&"+FB.XD.Fragment._magic}FB.XD._callbacks[e]=a;return d+FB.QS.encode({cb:e,origin:FB.XD._origin,relation:b||"opener",transport:FB.XD._transport})},recv:function(b){if(typeof b=="string"){b=FB.QS.decode(b)}var a=FB.XD._callbacks[b.cb];delete FB.XD._callbacks[b.cb];a&&a(b)},PostMessage:{init:function(){var a=FB.XD.PostMessage.onMessage;window.addEventListener?window.addEventListener("message",a,false):window.attachEvent("onmessage",a)},onMessage:function(a){FB.XD.recv(a.data)}},Flash:{init:function(){FB.Flash.onReady(function(){document.XdComm.postMessage_init("FB.XD.Flash.onMessage",FB.XD._origin)})},onMessage:function(a){FB.XD.recv(decodeURIComponent(a))}},Fragment:{_magic:"mu_xd_fragment;",checkAndDispatch:function(){var d=window.location.toString(),a=d.substr(d.indexOf("#")+1),b=a.indexOf(FB.XD.Fragment._magic);if(b>0){FB.init=FB.loginStatus=FB.api=function(){};document.body.style.display="none";a=a.substr(b+FB.XD.Fragment._magic.length);var c=FB.QS.decode(a);window[c.relation].FB.XD.recv(a)}}}});FB.XD.Fragment.checkAndDispatch();