//::: jQuery
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();jQuery.noConflict();

//::: jQuery (v)sprintf extension
/**
 * sprintf and vsprintf for jQuery
 * somewhat based on http://jan.moesen.nu/code/javascript/sprintf-and-printf-in-javascript/
 * 
 * Copyright (c) 2008 Sabin Iacob (m0n5t3r) <iacobs@m0n5t3r.info>
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details. 
 *
 * @license http://www.gnu.org/licenses/gpl.html 
 * @project jquery.sprintf
 */
(function($){
	var formats = {
		'%': function(val) {return '%';},
		'b': function(val) {return  parseInt(val, 10).toString(2);},
		'c': function(val) {return  String.fromCharCode(parseInt(val, 10));},
		'd': function(val) {return  parseInt(val, 10) ? parseInt(val, 10) : 0;},
		'u': function(val) {return  Math.abs(val);},
		'f': function(val, p) {return  (p > -1) ? Math.round(parseFloat(val) * Math.pow(10, p)) / Math.pow(10, p): parseFloat(val);},
		'o': function(val) {return  parseInt(val, 10).toString(8);},
		's': function(val) {return  val;},
		'x': function(val) {return  ('' + parseInt(val, 10).toString(16)).toLowerCase();},
		'X': function(val) {return  ('' + parseInt(val, 10).toString(16)).toUpperCase();},
		'U': function(val) {return  escape(val);}
	};

	var re = /%(?:(\d+)?(?:\.(\d+))?|\(([^)]+)\))([%bcduUfosxX])/g;

	var dispatch = function(data){
		if(data.length == 1 && typeof data[0] == 'object') { //python-style printf
			data = data[0];
			return function(match, w, p, lbl, fmt, off, str) {
				return formats[fmt](data[lbl]);
			};
		} else { // regular, somewhat incomplete, printf
			var idx = 0; // oh, the beauty of closures :D
			return function(match, w, p, lbl, fmt, off, str) {
				return formats[fmt](data[idx++], p);
			};
		}
	};

	$.extend({
		sprintf: function(format) {
			var argv = Array.apply(null, arguments).slice(1);
			return format.replace(re, dispatch(argv));
		},
		vsprintf: function(format, data) {
			return format.replace(re, dispatch(data));
		}
	});
})(jQuery);

//::: jTemplate
/* jTemplates 0.7.8 (http://jtemplates.tpython.com) Copyright (c) 2009 Tomasz Gloc */
if(window.jQuery&&!window.jQuery.createTemplate){(function(jQuery){var Template=function(s,includes,settings){this._tree=[];this._param={};this._includes=null;this._templates={};this._templates_code={};this.settings=jQuery.extend({disallow_functions:false,filter_data:true,filter_params:false,runnable_functions:false,clone_data:true,clone_params:true},settings);this.f_cloneData=(this.settings.f_cloneData!==undefined)?(this.settings.f_cloneData):(TemplateUtils.cloneData);this.f_escapeString=(this.settings.f_escapeString!==undefined)?(this.settings.f_escapeString):(TemplateUtils.escapeHTML);this.splitTemplates(s,includes);if(s){this.setTemplate(this._templates_code['MAIN'],includes,this.settings);}
this._templates_code=null;};Template.prototype.version='0.7.8';Template.DEBUG_MODE=true;Template.prototype.splitTemplates=function(s,includes){var reg=/\{#template *(\w*?)( .*)*\}/g;var iter,tname,se;var lastIndex=null;var _template_settings=[];while((iter=reg.exec(s))!=null){lastIndex=reg.lastIndex;tname=iter[1];se=s.indexOf('{#/template '+tname+'}',lastIndex);if(se==-1){throw new Error('jTemplates: Template "'+tname+'" is not closed.');}
this._templates_code[tname]=s.substring(lastIndex,se);_template_settings[tname]=TemplateUtils.optionToObject(iter[2]);}
if(lastIndex===null){this._templates_code['MAIN']=s;return;}
for(var i in this._templates_code){if(i!='MAIN'){this._templates[i]=new Template();}}
for(var i in this._templates_code){if(i!='MAIN'){this._templates[i].setTemplate(this._templates_code[i],jQuery.extend({},includes||{},this._templates||{}),jQuery.extend({},this.settings,_template_settings[i]));this._templates_code[i]=null;}}};Template.prototype.setTemplate=function(s,includes,settings){if(s==undefined){this._tree.push(new TextNode('',1,this));return;}
s=s.replace(/[\n\r]/g,'');s=s.replace(/\{\*.*?\*\}/g,'');this._includes=jQuery.extend({},this._templates||{},includes||{});this.settings=new Object(settings);var node=this._tree;var op=s.match(/\{#.*?\}/g);var ss=0,se=0;var e;var literalMode=0;var elseif_level=0;for(var i=0,l=(op)?(op.length):(0);i<l;++i){var this_op=op[i];if(literalMode){se=s.indexOf('{#/literal}');if(se==-1){throw new Error("jTemplates: No end of literal.");}
if(se>ss){node.push(new TextNode(s.substring(ss,se),1,this));}
ss=se+11;literalMode=0;i=jQuery.inArray('{#/literal}',op);continue;}
se=s.indexOf(this_op,ss);if(se>ss){node.push(new TextNode(s.substring(ss,se),literalMode,this));}
var ppp=this_op.match(/\{#([\w\/]+).*?\}/);var op_=RegExp.$1;switch(op_){case'elseif':++elseif_level;node.switchToElse();case'if':e=new opIF(this_op,node);node.push(e);node=e;break;case'else':node.switchToElse();break;case'/if':while(elseif_level){node=node.getParent();--elseif_level;}
case'/for':case'/foreach':node=node.getParent();break;case'foreach':e=new opFOREACH(this_op,node,this);node.push(e);node=e;break;case'for':e=opFORFactory(this_op,node,this);node.push(e);node=e;break;case'continue':case'break':node.push(new JTException(op_));break;case'include':node.push(new Include(this_op,this._includes));break;case'param':node.push(new UserParam(this_op));break;case'cycle':node.push(new Cycle(this_op));break;case'ldelim':node.push(new TextNode('{',1,this));break;case'rdelim':node.push(new TextNode('}',1,this));break;case'literal':literalMode=1;break;case'/literal':if(Template.DEBUG_MODE){throw new Error("jTemplates: Missing begin of literal.");}
break;default:if(Template.DEBUG_MODE){throw new Error('jTemplates: unknown tag: '+op_+'.');}}
ss=se+this_op.length;}
if(s.length>ss){node.push(new TextNode(s.substr(ss),literalMode,this));}};Template.prototype.get=function(d,param,element,deep){++deep;var $T=d,_param1,_param2;if(this.settings.clone_data){$T=this.f_cloneData(d,{escapeData:(this.settings.filter_data&&deep==1),noFunc:this.settings.disallow_functions},this.f_escapeString);}
if(!this.settings.clone_params){_param1=this._param;_param2=param;}else{_param1=this.f_cloneData(this._param,{escapeData:(this.settings.filter_params),noFunc:false},this.f_escapeString);_param2=this.f_cloneData(param,{escapeData:(this.settings.filter_params&&deep==1),noFunc:false},this.f_escapeString);}
var $P=jQuery.extend({},_param1,_param2);var $Q=(element!=undefined)?(element):({});$Q.version=this.version;var ret='';for(var i=0,l=this._tree.length;i<l;++i){ret+=this._tree[i].get($T,$P,$Q,deep);}
--deep;return ret;};Template.prototype.setParam=function(name,value){this._param[name]=value;};TemplateUtils=function(){};TemplateUtils.escapeHTML=function(txt){return txt.replace(/&/g,'&amp;').replace(/>/g,'&gt;').replace(/</g,'&lt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');};TemplateUtils.cloneData=function(d,filter,f_escapeString){if(d==null){return d;}
switch(d.constructor){case Object:var o={};for(var i in d){o[i]=TemplateUtils.cloneData(d[i],filter,f_escapeString);}
if(!filter.noFunc){if(d.hasOwnProperty("toString"))
o.toString=d.toString;}
return o;case Array:var o=[];for(var i=0,l=d.length;i<l;++i){o[i]=TemplateUtils.cloneData(d[i],filter,f_escapeString);}
return o;case String:return(filter.escapeData)?(f_escapeString(d)):(d);case Function:if(filter.noFunc){if(Template.DEBUG_MODE)
throw new Error("jTemplates: Functions are not allowed.");else
return undefined;}
default:return d;}};TemplateUtils.optionToObject=function(optionText){if(optionText===null||optionText===undefined){return{};}
var o=optionText.split(/[= ]/);if(o[0]===''){o.shift();}
var obj={};for(var i=0,l=o.length;i<l;i+=2){obj[o[i]]=o[i+1];}
return obj;};var TextNode=function(val,literalMode,template){this._value=val;this._literalMode=literalMode;this._template=template;};TextNode.prototype.get=function(d,param,element,deep){var __t=this._value;if(!this._literalMode){var __template=this._template;var $T=d;var $P=param;var $Q=element;__t=__t.replace(/\{(.*?)\}/g,function(__0,__1){try{var __tmp=eval(__1);if(typeof __tmp=='function'){if(__template.settings.disallow_functions||!__template.settings.runnable_functions){return'';}else{__tmp=__tmp($T,$P,$Q);}}
return(__tmp===undefined)?(""):(String(__tmp));}catch(e){if(Template.DEBUG_MODE){if(e instanceof JTException)
e.type="subtemplate";throw e;}
return"";}});}
return __t;};var opIF=function(oper,par){this._parent=par;oper.match(/\{#(?:else)*if (.*?)\}/);this._cond=RegExp.$1;this._onTrue=[];this._onFalse=[];this._currentState=this._onTrue;};opIF.prototype.push=function(e){this._currentState.push(e);};opIF.prototype.getParent=function(){return this._parent;};opIF.prototype.switchToElse=function(){this._currentState=this._onFalse;};opIF.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;var $Q=element;var ret='';try{var tab=(eval(this._cond))?(this._onTrue):(this._onFalse);for(var i=0,l=tab.length;i<l;++i){ret+=tab[i].get(d,param,element,deep);}}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException))
throw e;}
return ret;};opFORFactory=function(oper,par,template){if(oper.match(/\{#for (\w+?) *= *(\S+?) +to +(\S+?) *(?:step=(\S+?))*\}/)){oper='{#foreach opFORFactory.funcIterator as '+RegExp.$1+' begin='+(RegExp.$2||0)+' end='+(RegExp.$3||-1)+' step='+(RegExp.$4||1)+' extData=$T}';return new opFOREACH(oper,par,template);}else{throw new Error('jTemplates: Operator failed "find": '+oper);}};opFORFactory.funcIterator=function(i){return i;};var opFOREACH=function(oper,par,template){this._parent=par;this._template=template;oper.match(/\{#foreach (.+?) as (\w+?)( .+)*\}/);this._arg=RegExp.$1;this._name=RegExp.$2;this._option=RegExp.$3||null;this._option=TemplateUtils.optionToObject(this._option);this._onTrue=[];this._onFalse=[];this._currentState=this._onTrue;};opFOREACH.prototype.push=function(e){this._currentState.push(e);};opFOREACH.prototype.getParent=function(){return this._parent;};opFOREACH.prototype.switchToElse=function(){this._currentState=this._onFalse;};opFOREACH.prototype.get=function(d,param,element,deep){try{var $T=d;var $P=param;var $Q=element;var fcount=eval(this._arg);var key=[];var mode=typeof fcount;if(mode=='object'){var arr=[];jQuery.each(fcount,function(k,v){key.push(k);arr.push(v);});fcount=arr;}
var extData=(this._option.extData!==undefined)?(eval(this._option.extData)):(($T!=null)?($T):({}));var s=Number(eval(this._option.begin)||0),e;var step=Number(eval(this._option.step)||1);if(mode!='function'){e=fcount.length;}else{if(this._option.end===undefined||this._option.end===null){e=Number.MAX_VALUE;}else{e=Number(eval(this._option.end))+((step>0)?(1):(-1));}}
var ret='';var i,l;if(this._option.count){var tmp=s+Number(eval(this._option.count));e=(tmp>e)?(e):(tmp);}
if((e>s&&step>0)||(e<s&&step<0)){var iteration=0;var _total=(mode!='function')?(Math.ceil((e-s)/step)):undefined;var ckey,cval;for(;((step>0)?(s<e):(s>e));s+=step,++iteration){ckey=key[s];if(mode!='function'){cval=fcount[s];}else{cval=fcount(s);if(cval===undefined||cval===null){break;}}
if((typeof cval=='function')&&(this._template.settings.disallow_functions||!this._template.settings.runnable_functions)){continue;}
if((mode=='object')&&(ckey in Object)){continue;}
var prevValue=extData[this._name];extData[this._name]=cval;extData[this._name+'$index']=s;extData[this._name+'$iteration']=iteration;extData[this._name+'$first']=(iteration==0);extData[this._name+'$last']=(s+step>=e);extData[this._name+'$total']=_total;extData[this._name+'$key']=(ckey!==undefined&&ckey.constructor==String)?(this._template.f_escapeString(ckey)):(ckey);extData[this._name+'$typeof']=typeof cval;for(i=0,l=this._onTrue.length;i<l;++i){try{ret+=this._onTrue[i].get(extData,param,element,deep);}catch(ex){if(ex instanceof JTException){switch(ex.type){case'continue':i=l;break;case'break':i=l;s=e;break;default:throw e;}}else{throw e;}}}
delete extData[this._name+'$index'];delete extData[this._name+'$iteration'];delete extData[this._name+'$first'];delete extData[this._name+'$last'];delete extData[this._name+'$total'];delete extData[this._name+'$key'];delete extData[this._name+'$typeof'];delete extData[this._name];extData[this._name]=prevValue;}}else{for(i=0,l=this._onFalse.length;i<l;++i){ret+=this._onFalse[i].get($T,param,element,deep);}}
return ret;}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException))
throw e;return"";}};var JTException=function(type){this.type=type;};JTException.prototype=Error;JTException.prototype.get=function(d){throw this;};var Include=function(oper,includes){oper.match(/\{#include (.*?)(?: root=(.*?))?\}/);this._template=includes[RegExp.$1];if(this._template==undefined){if(Template.DEBUG_MODE)
throw new Error('jTemplates: Cannot find include: '+RegExp.$1);}
this._root=RegExp.$2;};Include.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;try{return this._template.get(eval(this._root),param,element,deep);}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException))
throw e;}
return'';};var UserParam=function(oper){oper.match(/\{#param name=(\w*?) value=(.*?)\}/);this._name=RegExp.$1;this._value=RegExp.$2;};UserParam.prototype.get=function(d,param,element,deep){var $T=d;var $P=param;var $Q=element;try{param[this._name]=eval(this._value);}catch(e){if(Template.DEBUG_MODE||(e instanceof JTException))
throw e;param[this._name]=undefined;}
return'';};var Cycle=function(oper){oper.match(/\{#cycle values=(.*?)\}/);this._values=eval(RegExp.$1);this._length=this._values.length;if(this._length<=0){throw new Error('jTemplates: cycle has no elements');}
this._index=0;this._lastSessionID=-1;};Cycle.prototype.get=function(d,param,element,deep){var sid=jQuery.data(element,'jTemplateSID');if(sid!=this._lastSessionID){this._lastSessionID=sid;this._index=0;}
var i=this._index++%this._length;return this._values[i];};jQuery.fn.setTemplate=function(s,includes,settings){if(s.constructor===Template){return jQuery(this).each(function(){jQuery.data(this,'jTemplate',s);jQuery.data(this,'jTemplateSID',0);});}else{return jQuery(this).each(function(){jQuery.data(this,'jTemplate',new Template(s,includes,settings));jQuery.data(this,'jTemplateSID',0);});}};jQuery.fn.setTemplateURL=function(url_,includes,settings){var s=jQuery.ajax({url:url_,async:false}).responseText;return jQuery(this).setTemplate(s,includes,settings);};jQuery.fn.setTemplateElement=function(elementName,includes,settings){var s=jQuery('#'+elementName).val();if(s==null){s=jQuery('#'+elementName).html();s=s.replace(/&lt;/g,"<").replace(/&gt;/g,">");}
s=jQuery.trim(s);s=s.replace(/^<\!\[CDATA\[([\s\S]*)\]\]>$/im,'$1');s=s.replace(/^<\!--([\s\S]*)-->$/im,'$1');return jQuery(this).setTemplate(s,includes,settings);};jQuery.fn.hasTemplate=function(){var count=0;jQuery(this).each(function(){if(jQuery.getTemplate(this)){++count;}});return count;};jQuery.fn.removeTemplate=function(){jQuery(this).processTemplateStop();return jQuery(this).each(function(){jQuery.removeData(this,'jTemplate');});};jQuery.fn.setParam=function(name,value){return jQuery(this).each(function(){var t=jQuery.getTemplate(this);if(t===undefined){if(Template.DEBUG_MODE)
throw new Error('jTemplates: Template is not defined.');else
return;}
t.setParam(name,value);});};jQuery.fn.processTemplate=function(d,param){return jQuery(this).each(function(){var t=jQuery.getTemplate(this);if(t===undefined){if(Template.DEBUG_MODE)
throw new Error('jTemplates: Template is not defined.');else
return;}
jQuery.data(this,'jTemplateSID',jQuery.data(this,'jTemplateSID')+1);jQuery(this).html(t.get(d,param,this,0));});};jQuery.fn.processTemplateURL=function(url_,param,options){var that=this;options=jQuery.extend({type:'GET',async:true,cache:false},options);jQuery.ajax({url:url_,type:options.type,data:options.data,dataFilter:options.dataFilter,async:options.async,cache:options.cache,timeout:options.timeout,dataType:'json',success:function(d){var r=jQuery(that).processTemplate(d,param);if(options.on_success){options.on_success(r);}},error:options.on_error,complete:options.on_complete});return this;};var Updater=function(url,param,interval,args,objs,options){this._url=url;this._param=param;this._interval=interval;this._args=args;this.objs=objs;this.timer=null;this._options=options||{};var that=this;jQuery(objs).each(function(){jQuery.data(this,'jTemplateUpdater',that);});this.run();};Updater.prototype.run=function(){this.detectDeletedNodes();if(this.objs.length==0){return;}
var that=this;jQuery.getJSON(this._url,this._args,function(d){var r=jQuery(that.objs).processTemplate(d,that._param);if(that._options.on_success){that._options.on_success(r);}});this.timer=setTimeout(function(){that.run();},this._interval);};Updater.prototype.detectDeletedNodes=function(){this.objs=jQuery.grep(this.objs,function(o){if(jQuery.browser.msie){var n=o.parentNode;while(n&&n!=document){n=n.parentNode;}
return n!=null;}else{return o.parentNode!=null;}});};jQuery.fn.processTemplateStart=function(url,param,interval,args,options){return new Updater(url,param,interval,args,this,options);};jQuery.fn.processTemplateStop=function(){return jQuery(this).each(function(){var updater=jQuery.data(this,'jTemplateUpdater');if(updater==null){return;}
var that=this;updater.objs=jQuery.grep(updater.objs,function(o){return o!=that;});jQuery.removeData(this,'jTemplateUpdater');});};jQuery.extend({createTemplate:function(s,includes,settings){return new Template(s,includes,settings);},createTemplateURL:function(url_,includes,settings){var s=jQuery.ajax({url:url_,async:false}).responseText;return new Template(s,includes,settings);},getTemplate:function(element){return jQuery.data(element,'jTemplate');},processTemplateToText:function(template,data,parameter){return template.get(data,parameter,undefined,0);},jTemplatesDebugMode:function(value){Template.DEBUG_MODE=value;}});})(jQuery);}

//::: Facebook JS SDK
/*1329959243,169893246,JIT Construction: v513378,en_US*/

if(!window.FB)window.FB={_apiKey:null,_authResponse:null,_userStatus:'unknown',_logging:true,_inCanvas:((window.name.indexOf('iframe_canvas')>-1)||(window.name.indexOf('app_runner')>-1)),_https:(window.name.indexOf('_fb_https')>-1),_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:false,getDomain:function(a,b){var c=!b&&(window.location.protocol=='https:'||FB._https);switch(a){case 'api':return FB._domain.api;case 'api_read':return FB._domain.api_read;case 'cdn':return c?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 c?FB._domain.https_staticfb:FB._domain.staticfb;case 'https_staticfb':return FB._domain.https_staticfb;case 'www':return c?FB._domain.https_www:FB._domain.www;case 'https_www':return FB._domain.https_www;case 'm':return c?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||typeof a[e]==='undefined')a[e]=d?d(b[e]):b[e];return a;},create:function(a,b){var c=window.FB,d=a?a.split('.'):[],e=d.length;for(var f=0;f<e;f++){var g=d[f],h=c[g];if(!h){h=(b&&f+1==e)?b:{};c[g]=h;}c=h;}return c;},provide:function(a,b,c){return FB.copy(typeof a=='string'?FB.create(a):a,b,c);},guid:function(){return 'f'+(Math.random()*(1<<30)).toString(16).replace('.','');},log:function(a){if(FB._logging)if(window.Debug&&window.Debug.writeln){window.Debug.writeln(a);}else if(window.console)window.console.log(a);if(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++)if(FB.Array.indexOf(a,b[c])<0)a.push(b[c]);return a;},filter:function(a,b){var c=[];for(var d=0;d<a.length;d++)if(b(a[d]))c.push(a[d]);return c;},keys:function(a,b){var c=[];for(var d in a)if(b||a.hasOwnProperty(d))c.push(d);return c;},map:function(a,b){var c=[];for(var d=0;d<a.length;d++)c.push(b(a[d]));return c;},forEach:function(a,b,c){if(!a)return;if(Object.prototype.toString.apply(a)==='[object Array]'||(!(a instanceof Function)&&typeof a.length=='number')){if(a.forEach){a.forEach(b);}else for(var d=0,e=a.length;d<e;d++)b(a[d],d,a);}else for(var f in a)if(c||a.hasOwnProperty(f))b(a[f],f,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){b=b===undefined?'&':b;c=c===false?function(e){return e;}:encodeURIComponent;var d=[];FB.Array.forEach(a,function(e,f){if(e!==null&&typeof e!='undefined')d.push(c(f)+'='+c(e));});d.sort();return d.join(b);},decode:function(a){var b=decodeURIComponent,c={},d=a.split('&'),e,f;for(e=0;e<d.length;e++){f=d[e].split('=',2);if(f&&f[0])c[b(f[0])]=b(f[1]||'');}return c;}});
FB.provide('Content',{_root:null,_hiddenRoot:null,_callbacks:{},append:function(a,b){if(!b)if(!FB.Content._root){FB.Content._root=b=FB.$('fb-root');if(!b){FB.log('The "fb-root" div has not been created.');return;}else b.className+=' fb_reset';}else b=FB.Content._root;if(typeof a=='string'){var c=document.createElement('div');b.appendChild(c).innerHTML=a;return c;}else 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=false,d=false;FB.Content._callbacks[b]=function(){if(c&&!d){d=true;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="javascript:false;"'+' 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=true;window.setTimeout(function(){a.root.innerHTML=e;a.root.firstChild.src=a.url;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)if(a.width=='100%'){f.style.width=a.width;}else f.style.width=a.width+'px';a.root.appendChild(f);c=true;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(d,e){if(d!==null&&d!==undefined){var f=document.createElement('input');f.name=e;f.value=d;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:false,init:function(){if(FB.Flash._init)return;FB.Flash._init=true;window.FB_OnFlashXdCommReady=function(){FB.Flash._ready=true;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,e=('<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>');FB.Content.appendHidden(e);if(FB.UA.ie()>=9){if(!FB.Flash._unloadRegistered){var f=function(){FB.Array.forEach(FB.Flash._names,function(g,h){var i=document.getElementById(h);if(i)i.removeNode(true);});};window.attachEvent('onunload',f);FB.Flash._unloadRegistered=true;}FB.Flash._names[a]=true;}},hasMinVersion:function(){if(typeof FB.Flash._hasMinVersion==='undefined'){var a,b,c,d=[];try{a=new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version');}catch(e){if(navigator.mimeTypes.length>0){var f='application/x-shockwave-flash';if(navigator.mimeTypes[f].enabledPlugin){var g='Shockwave Flash';a=(navigator.plugins[g+' 2.0']||navigator.plugins[g]).description;}}}if(a){var h=a.replace(/\D+/g,',').match(/^,?(.+),?$/)[1].split(',');for(b=0,c=h.length;b<c;b++)d.push(parseInt(h[b],10));}FB.Flash._hasMinVersion=false;majorVersion:for(b=0,c=FB.Flash._minVersions.length;b<c;b++){var i=FB.Flash._minVersions[b];if(i[0]!=d[0])continue;for(var j=1,k=i.length,l=d.length;(j<k&&j<l);j++)if(d[j]<i[j]){FB.Flash._hasMinVersion=false;continue majorVersion;}else{FB.Flash._hasMinVersion=true;if(d[j]>i[j])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);}});
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');};}());
FB.provide('JSON',{stringify:function(a){if(window.Prototype&&Object.toJSON){return Object.toJSON(a);}else return JSON.stringify(a);},parse:function(a){return JSON.parse(a);},flatten:function(a){var b={};for(var c in a)if(a.hasOwnProperty(c)){var d=a[c];if(null===d||undefined===d){continue;}else if(typeof d=='string'){b[c]=d;}else b[c]=FB.JSON.stringify(d);}return b;}});
FB.provide('',{api:function(){if(typeof arguments[0]==='string'){FB.ApiServer.graph.apply(FB.ApiServer,arguments);}else FB.ApiServer.rest.apply(FB.ApiServer,arguments);}});FB.provide('ApiServer',{METHODS:['get','post','delete','put'],_callbacks:{},_readOnlyCalls:{fql_query:true,fql_multiquery:true,friends_get:true,notifications_get:true,stream_get:true,users_getinfo:true},graph:function(){var a=Array.prototype.slice.call(arguments),b=a.shift().match(/\/?([^?]*)\??([^#]*)/),c=b[1],d=a.shift(),e,f,g;while(d){var h=typeof d;if(h==='string'&&!e){e=d.toLowerCase();}else if(h==='function'&&!g){g=d;}else if(h==='object'&&!f){f=d;}else{FB.log('Invalid argument passed to FB.api(): '+d);return;}d=a.shift();}e=e||'get';f=FB.copy(f||{},FB.QS.decode(b[2]));if(FB.Array.indexOf(FB.ApiServer.METHODS,e)<0){FB.log('Invalid method passed to FB.api(): '+e);return;}FB.ApiServer.oauthRequest('graph',c,e,f,g);},rest:function(a,b){var c=a.method.toLowerCase().replace('.','_');if(FB.Auth&&c==='auth_revokeauthorization'){var d=b;b=function(f){if(f===true)FB.Auth.setAuthResponse(null,'not_authorized');d&&d(f);};}a.format='json-strings';a.api_key=FB._apiKey;var e=FB.ApiServer._readOnlyCalls[c]?'api_read':'api';FB.ApiServer.oauthRequest(e,'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(i){if(FB.Auth&&i&&FB.getAccessToken()==d.access_token&&(i.error_code==='190'||(i.error&&(i.error==='invalid_token'||i.error.type==='OAuthException'))))FB.getLoginStatus(null,true);f&&f(i);};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 new 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){var f=FB.getDomain(a)+b;if(a=='graph')d.method=c;var g=FB.QS.encode(d),h='application/x-www-form-urlencoded',i=FB.ApiServer._createCORSRequest('POST',f,h);if(i){i.onload=function(){e&&e(FB.JSON.parse(i.responseText));};i.send(g);return true;}else return false;},_createCORSRequest:function(a,b,c){if(!window.XMLHttpRequest)return null;var d=new XMLHttpRequest();if("withCredentials" in d){d.open(a,b,true);d.setRequestHeader('Content-type',c);}else if(window.XDomainRequest){d=new XDomainRequest();d.open(a,b);}else d=null;return d;},jsonp:function(a,b,c,d,e){var f=FB.guid(),g=document.createElement('script');if(a==='graph'&&c!=='get')d.method=c;d.callback='FB.ApiServer._callbacks.'+f;var h=(FB.getDomain(a)+b+(b.indexOf('?')>-1?'&':'?')+FB.QS.encode(d));if(h.length>2000)throw new Error('JSONP only support a maximum of 2000 bytes of input.');FB.ApiServer._callbacks[f]=function(i){e&&e(i);delete FB.ApiServer._callbacks[f];g.parentNode.removeChild(g);};g.src=h;document.getElementsByTagName('head')[0].appendChild(g);},flash:function(a,b,c,d,e){if(!window.FB_OnXdHttpResult)window.FB_OnXdHttpResult=function(f,g){FB.ApiServer._callbacks[f](decodeURIComponent(g));};FB.Flash.onReady(function(){if(a==='graph')d.suppress_http_code=1;var f=FB.getDomain(a)+b,g=FB.QS.encode(d);if(c==='get'){if(f.length+g.length>2000){if(a==='graph')d.method='get';c='post';g=FB.QS.encode(d);}else{f+=(f.indexOf('?')>-1?'&':'?')+g;g='';}}else if(c!=='post'){if(a==='graph')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(i){e&&e(FB.JSON.parse(i));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();if(!c[a]){c[a]=[b];}else c[a].push(b);},unsubscribe:function(a,b){var c=this.subscribers()[a];FB.Array.forEach(c,function(d,e){if(d==b)c[e]=null;});},monitor:function(a,b){if(!b()){var c=this,d=function(){if(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(c){if(c)c.apply(this,a);});},listen:function(a,event,b){if(a.addEventListener){a.addEventListener(event,b,false);}else if(a.attachEvent)a.attachEvent('on'+event,b);},unlisten:function(a,event,b){if(a.removeEventListener){a.removeEventListener(event,b,false);}else if(a.detachEvent)a.detachEvent('on'+event,b);}});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)return;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')){var c=document.domain;if(c=='facebook.com')c=window.location.host;FB.XD._origin=(window.location.protocol+'//'+c+'/'+FB.guid());FB.XD.Flash.init();FB.XD._transport='flash';}else{if(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();}var d=!!window.attachEvent;if(FB.XD._transport!='postmessage'&&d&&window.postMessage){FB.XD._openerTransport=FB.XD._transport;FB.XD._openerOrigin=FB.XD._origin;FB.XD._nonOpenerOrigin=b;}},resolveRelation:function(a){var b,c,d=a.split('.'),e=window;for(var f=0,g=d.length;f<g;f++){b=d[f];if(b==='opener'||b==='parent'||b==='top'){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(window.location.toString().indexOf(FB.XD.Fragment._magic)>0)return 'javascript:false;//';if(FB.initSitevars.forceSecureXdProxy)e=true;var f=FB.getDomain((e?'https_':'')+'cdn')+FB.XD._xdProxyUrl+'#';d=d||FB.guid();b=b||'opener';if(FB.XD._openerTransport)if(b=='opener'){FB.XD._transport=FB.XD._openerTransport;FB.XD._origin=FB.XD._openerOrigin;}else{FB.XD.PostMessage.init();FB.XD._transport='postmessage';FB.XD._origin=FB.XD._nonOpenerOrigin;}if(FB.XD._transport=='fragment'){f=FB.XD.Fragment._channelUrl;var g=f.indexOf('#');if(g>0)f=f.substr(0,g);f+=((f.indexOf('?')<0?'?':'&')+FB.XD.Fragment._magic+'#?=&');}if(c)FB.XD._forever[d]=true;FB.XD._callbacks[d]=a;return f+FB.QS.encode({cb:d,origin:FB.XD._origin,relation:b,transport:FB.XD._transport});},recv:function(a){if(typeof a=='string')try{a=FB.JSON.parse(a);}catch(b){a=FB.QS.decode(a);}var c=FB.XD._callbacks[a.cb];if(!FB.XD._forever[a.cb])delete FB.XD._callbacks[a.cb];c&&c(a);},PostMessage:{_isInitialized:false,init:function(){if(!FB.XD.PostMessage._isInitialized){var a=FB.XD.PostMessage.onMessage;window.addEventListener?window.addEventListener('message',a,false):window.attachEvent('onmessage',a);FB.XD.PostMessage._isInitialized=true;}},onMessage:function(event){FB.XD.recv(event.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),c=a.indexOf(FB.XD.Fragment._magic);if(c>0){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&&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:false,_populate:function(){if(FB.UA._populated)return;FB.UA._populated=true;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(FB.UA._ie>=8&&!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;if(FB.UA._safari){a=/(?:Chrome\/(\d+\.\d+))/.exec(navigator.userAgent);FB.UA._chrome=a&&a[1]?parseFloat(a[1]):NaN;}else FB.UA._chrome=NaN;}else FB.UA._ie=FB.UA._firefox=FB.UA._opera=FB.UA._chrome=FB.UA._safari=NaN;if(b){FB.UA._osx=!!b[1];FB.UA._windows=!!b[2];FB.UA._linux=!!b[3];}else FB.UA._osx=FB.UA._windows=FB.UA._linux=false;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;}else try{window.opener.postMessage(f);return;}catch(g){}}d|=(window!=window.parent&&document.referrer.indexOf('https:')===0);var h=(FB.getDomain((d?'https_':'')+'staticfb',true)+FB.Arbiter._canvasProxyUrl+'#'+FB.QS.encode({method:a,params:FB.JSON.stringify(b||{}),behavior:e||FB.Arbiter.BEHAVIOR_PERSISTENT,relation:c})),i=FB.Content.appendHidden('');FB.Content.insertIframe({url:h,root:i,width:1,height:1,onload:function(){setTimeout(function(){i.parentNode.removeChild(i);},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='top.frames['+window.name+']',c=FB.XD.handler(function(e){for(var f in FB.Canvas._pageInfo)if(e[f])FB.Canvas._pageInfo[f]=e[f]|0;a&&a(FB.Canvas._pageInfo);},b,true),d={channelUrl:c,frame:window.name};FB.Arbiter.inform('getPageInfo',d,'top');},hideFlashElement:function(a){a.style.visibility='hidden';},showFlashElement:function(a){a.style.visibility='';},_flashClassID:"CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000",_hideFlashCallback:function(a){var b=window.document.getElementsByTagName('object');for(var c=0;c<b.length;c++){var d=b[c];if(d.type.toLowerCase()!="application/x-shockwave-flash"&&d.classid.toUpperCase()!=FB.Canvas._flashClassID)continue;var e=false;for(var f=0;f<d.childNodes.length;f++)if(d.childNodes[f].nodeName.toLowerCase()=="param"&&d.childNodes[f].name.toLowerCase()=="wmode")if(d.childNodes[f].value.toLowerCase()=="opaque"||d.childNodes[f].value.toLowerCase()=="transparent")e=true;if(!e){var g=Math.random();if(g<=1/1000)FB.api(FB._apiKey+'/occludespopups','post',{});if(FB.Canvas._devHideFlashCallback){var h=200,i={state:a.state,elem:d},j=FB.bind(function(k){if(k.state=='opened'){FB.Canvas.hideFlashElement(k.elem);}else FB.Canvas.showFlashElement(k.elem);},this,i);setTimeout(j,h);FB.Canvas._devHideFlashCallback(i);}else if(a.state=='opened'){d._old_visibility=d.style.visibility;d.style.visibility='hidden';}else if(a.state=='closed'){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();var b=FB.XD.handler(FB.Canvas._hideFlashCallback,'top.frames['+window.name+']',true);FB.Arbiter.inform('iframeSetupFlashHiding',{channelUrl:b});},setSize:function(a){if(typeof a!="object")a={};var b=0,c=0;a=a||{};if(a.width==null||a.height==null){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=FB.Canvas._lastSize[a.frame].height,e=a.height-d;if(FB.Canvas._lastSize[a.frame].width==a.width&&(e<=c&&e>=-b))return false;}FB.Canvas._lastSize[a.frame]=a;FB.Arbiter.inform('setSize',a);return true;},scrollTo:function(a,b){FB.Arbiter.inform('scrollTo',{frame:window.name||'iframe_canvas',x:a,y:b});},setAutoGrow:function(a,b){if(b===undefined&&typeof a=="number"){b=a;a=true;}if(a===undefined||a){if(FB.Canvas._timer===null)FB.Canvas._timer=window.setInterval(FB.Canvas.setSize,b||100);FB.Canvas.setSize();}else if(FB.Canvas._timer!==null){window.clearInterval(FB.Canvas._timer);FB.Canvas._timer=null;}},setAutoResize:function(a,b){return FB.Canvas.setAutoGrow(a,b);},isTabIframe:function(){return (window.name.indexOf('app_runner_')===0);},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+']',true);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;if(a)c=FB.XD.handler(a,'top.frames['+window.name+']',false);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),f=a.scrollHeight+d,g=a.offsetHeight+d,h=b.scrollHeight+e,i=b.offsetHeight+e;bottom=Math.max(f,g,h,i);if(a.offsetWidth<a.scrollWidth){c=a.scrollWidth+a.offsetLeft;}else FB.Array.forEach(a.childNodes,function(j){var k=j.offsetWidth+j.offsetLeft;if(k>c)c=k;});if(b.clientLeft>0)c+=(b.clientLeft*2);if(b.clientTop>0)bottom+=(b.clientTop*2);return {height:bottom,width:c};}});
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(c,d){var e=parseInt(d.substr(1),10),f=b[e+1];if(f===null||f===undefined)return '';return f.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={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};return b.test(a)?'"'+a.replace(b,function(d){var e=c[d];if(e)return e;e=d.charCodeAt();return '\\u00'+Math.floor(e/16).toString(16)+(e%16).toString(16);})+'"':'"'+a+'"';}});
FB.provide('Dom',{containsCss:function(a,b){var c=' '+a.className+' ';return c.indexOf(' '+b+' ')>=0;},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,c){b=b||document.body;c=c||'*';if(b.querySelectorAll)return FB.Array.toArray(b.querySelectorAll(c+'.'+a));var d=b.getElementsByTagName(c),e=[];for(var f=0,g=d.length;f<g;f++)if(this.containsCss(d[f],a))e[e.length]=d[f];return e;},getStyle:function(a,b){var c=false,d=a.style;if(a.currentStyle){FB.Array.forEach(b.match(/\-([a-z])/g),function(e){b=b.replace(e,e.substr(1,1).toUpperCase());});c=a.currentStyle[b];}else{FB.Array.forEach(b.match(/[A-Z]/g),function(e){b=b.replace(e,'-'+e.toLowerCase());});if(window.getComputedStyle){c=document.defaultView.getComputedStyle(a,null).getPropertyValue(b);if(b=='background-position-y'||b=='background-position-x')if(c=='top'||c=='left')c='0px';}}if(b=='opacity'){if(a.filters&&a.filters.alpha)return c;return c*100;}return c;},setStyle:function(a,b,c){var d=a.style;if(b=='opacity'){if(c>=100)c=99.999;if(c<0)c=0;d.opacity=c/100;d.MozOpacity=c/100;d.KhtmlOpacity=c/100;if(a.filters)if(a.filters.alpha==undefined){a.filter="alpha(opacity="+c+")";}else 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=true;FB.Array.forEach(b,function(f){if(!(f in FB.Dom._cssRules)){c=false;FB.Dom._cssRules[f]=true;}});if(c)return;if(!FB.UA.ie()){var d=document.createElement('style');d.type='text/css';d.textContent=a;document.getElementsByTagName('head')[0].appendChild(d);}else try{document.createStyleSheet().cssText=a;}catch(e){if(document.styleSheets[0])document.styleSheets[0].cssText+=a;}},getViewportInfo:function(){var a=(document.documentElement&&document.compatMode=='CSS1Compat')?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){if(FB.Dom._isReady){a&&a();}else FB.Event.subscribe('dom.ready',a);},getPosition:function(a){var b=0,c=0;do{b+=a.offsetLeft;c+=a.offsetTop;}while(a=a.offsetParent);return {x:b,y:c};}});(function(){function domReady(){FB.Dom._isReady=true;FB.Event.fire('dom.ready');FB.Event.clear('dom.ready');}if(FB.Dom._isReady||document.readyState=='complete')return domReady();if(document.addEventListener){document.addEventListener('DOMContentLoaded',domReady,false);}else if(document.attachEvent)document.attachEvent('onreadystatechange',domReady);if(FB.UA.ie()&&window===top)(function(){try{document.documentElement.doScroll('left');}catch(error){setTimeout(arguments.callee,0);return;}domReady();})();var oldonload=window.onload;window.onload=function(){domReady();if(oldonload)if(typeof oldonload=='string'){eval(oldonload);}else oldonload();};})();
FB.provide('Intl',(function(){var a=('['+'.!?'+'\u3002'+'\uFF01'+'\uFF1F'+'\u0964'+'\u2026'+'\u0EAF'+'\u1801'+'\u0E2F'+'\uFF0E'+']');function b(e){if(typeof e!='string')return false;return e.match(new RegExp(a+'['+')"'+"'"+'\u00BB'+'\u0F3B'+'\u0F3D'+'\u2019'+'\u201D'+'\u203A'+'\u3009'+'\u300B'+'\u300D'+'\u300F'+'\u3011'+'\u3015'+'\u3017'+'\u3019'+'\u301B'+'\u301E'+'\u301F'+'\uFD3F'+'\uFF07'+'\uFF09'+'\uFF3D'+'\s'+']*$'));}function c(e,f){if(f!==undefined)if(typeof f!='object'){FB.log('The second arg to FB.Intl.tx() must be an Object for '+'FB.Intl.tx('+e+', ...)');}else{var g;for(var h in f)if(f.hasOwnProperty(h)){if(b(f[h])){g=new RegExp('\{'+h+'\}'+a+'*','g');}else g=new RegExp('\{'+h+'\}','g');e=e.replace(g,f[h]);}}return e;}function d(e,f){if(!FB.Intl._stringTable)return null;return c(FB.Intl._stringTable[e],f);}d._=c;return {tx:d,_tx:c};})());
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];var d=b||function(){};d.prototype=c;d.prototype.bind=function(e){return FB.bind(e,this);};d.prototype.constructor=d;FB.create(a,d);FB.CLASSES[a]=d;return d;},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(f){var g=Array.prototype.slice.call(arguments,1);return e.prototype[f].apply(this,g);};return FB.Class(a,c?c:function(){if(e.apply)e.apply(this,arguments);},d);},CLASSES:{}});FB.provide('Type',{isType:function(a,b){while(a)if(a.constructor===b||a===b){return true;}else a=a._base;return false;}});
FB.Class('Obj',null,FB.copy({setProperty:function(a,b){if(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:false,_hideOnPopState:function(a){FB.Dialog.hide(FB.Dialog._stack.pop());},get:function(a){return FB.Dialog._dialogs[a];},_findRoot:function(a){while(a){if(FB.Dom.containsCss(a,'fb_dialog'))return a;a=a.parentNode;}},_createWWWLoader:function(a){a=parseInt(a,10);a=a?a:460;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});},_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())return;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));if(!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;if(FB.Canvas)FB.Canvas.getPageInfo(function(b){FB.Dialog._centerActive(b);});FB.Dialog._centerActive(FB.Canvas._pageInfo);},_lowerActive:function(){if(!FB.Dialog._active)return;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)return;var c=FB.Dom.getViewportInfo(),d=parseInt(b.offsetWidth,10),e=parseInt(b.offsetHeight,10),f=c.scrollLeft+(c.width-d)/2,g=(c.height-e)/2.5;if(f<g)g=f;var h=c.height-e-g,i=(c.height-e)/2;if(a)i=a.scrollTop-a.offsetTop+(a.clientHeight-e)/2;if(i<g){i=g;}else if(i>h)i=h;i+=c.scrollTop;if(FB.UA.mobile()){var j=100;if(FB.UA.iPad()){j+=(c.height-e)/2;}else{var k=document.getElementsByTagName('body')[0];FB.Dom.addCss(k,'fb_hidden');f=10000;i=10000;}var l=FB.Dom.getByClass('fb_dialog_padding',b);if(l.length)l[0].style.height=j+'px';}b.style.left=(f>0?f:0)+'px';b.style.top=(i>0?i:0)+'px';},_setDialogSizes:function(){if(!FB.UA.mobile()||FB.UA.iPad())return;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(a){if(FB.UA.android()&&screen.availWidth==FB.Dialog._availScreenWidth){window.setTimeout(FB.Dialog._handleOrientationChange,50);return;}FB.Dialog._availScreenWidth=screen.availWidth;if(FB.UA.iPad()){FB.Dialog._centerActive();}else for(var b in FB.Dialog._dialogs)if(document.getElementById(b))document.getElementById(b).style.width=FB.UIServer.getDefaultSize().width+'px';},_addOrientationHandler:function(){if(!FB.UA.mobile())return;var a="onorientationchange" in window?'orientationchange':'resize';FB.Dialog._availScreenWidth=screen.availWidth;FB.Event.listen(window,a,FB.Dialog._handleOrientationChange);},create:function(a){a=a||{};var 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||'');if(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'],function(h){var i=document.createElement('span');i.className='fb_dialog_'+h;b.appendChild(i);});}else d+=(FB.UA.mobile())?' fb_dialog_mobile':' fb_dialog_advanced';if(a.content)FB.Content.append(a.content,c);b.className=d;var f=parseInt(a.width,10);if(!isNaN(f))b.style.width=f+'px';c.className='fb_dialog_content';b.appendChild(c);if(FB.UA.mobile()){var g=document.createElement('div');g.className='fb_dialog_padding';b.appendChild(g);}FB.Content.append(b);if(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);if('fbCallID' in a)FB.Dialog.get(a.fbCallID).fire('iframe_show');if(!FB.Event._popStateListenerOn){FB.Event.listen(window,'popstate',FB.Dialog._hideOnPopState);FB.Event._popStateListenerOn=true;}}},hide:function(a){var b=FB.Dialog._findRoot(a);if(b==FB.Dialog._active){FB.Dialog._lowerActive();FB.Dialog._restoreBodyPosition();FB.Dialog._hideIPadOverlay();if('fbCallID' in a)FB.Dialog.get(a.fbCallID).fire('iframe_hide');if(FB.Event._popStateListenerOn){FB.Event.unlisten(window,'popstate',FB.Dialog._hideOnPopState);FB.Event._popStateListenerOn=false;}}},remove:function(a){a=FB.Dialog._findRoot(a);if(a){var b=FB.Dialog._active==a;FB.Dialog._removeStacked(a);if(b){FB.Dialog._hideLoader();if(FB.Dialog._stack.length>0){FB.Dialog.show(FB.Dialog._stack.pop());}else{FB.Dialog._lowerActive();FB.Dialog._restoreBodyPosition();FB.Dialog._hideIPadOverlay();}}else if(FB.Dialog._active===null&&FB.Dialog._stack.length>0)FB.Dialog.show(FB.Dialog._stack.pop());window.setTimeout(function(){a.parentNode.removeChild(a);},3000);}},isActive:function(a){var b=FB.Dialog._findRoot(a);return b&&b===FB.Dialog._active;}});
FB.provide('',{ui:function(a,b){a=FB.copy({},a);if(!a.method){FB.log('"method" is a required parameter for FB.ui().');return null;}if((a.method=='permissions.request'||a.method=='permissions.oauth')&&(a.display=='iframe'||a.display=='dialog')){var c,d;c=a.scope;d=c.split(/\s|,/g);for(var e=0;e<d.length;e++){var f=FB.String.trim(d[e]);if(f&&!FB.initSitevars.iframePermissions[f]){a.display='popup';break;}}}var g=FB.UIServer.prepareCall(a,b);if(!g)return null;var h=g.params.display;if(h==='dialog'){h='iframe';}else if(h==='none')h='hidden';var i=FB.UIServer[h];if(!i){FB.log('"display" must be one of "popup", '+'"dialog", "iframe", "touch", "async", "hidden", or "none"');return null;}i(g);return g.dialog;}});FB.provide('UIServer',{Methods:{},_loadedNodes:{},_defaultCb:{},_resultToken:'"xxRESULTTOKENxx"',_forceHTTPS:false,genericTransform:function(a){if(a.params.display=='dialog'||a.params.display=='iframe'){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=(d.noHttps!==true)&&(FB._https||(c!=='auth.status'&&c!='login.status'));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()||undefined});a.display=FB.UIServer.getDisplayMode(d,a);if(!d.url)d.url='dialog/'+c;var g={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)},h=d.transform?d.transform:FB.UIServer.genericTransform;if(h){g=h(g);if(!g)return;}var i=d.getXdRelation||FB.UIServer.getXdRelation,j=i(g.params);if(!(g.id in FB.UIServer._defaultCb)&&!('next' in g.params)&&!('redirect_uri' in g.params))g.params.next=FB.UIServer._xdResult(g.cb,g.id,j,true);if(j==='parent')g.params.channel_url=FB.UIServer._xdChannelHandler(e,'parent.parent');g=FB.UIServer.prepareParams(g);return g;},prepareParams:function(a){var b=a.params.method;if(!FB.Canvas.isTabIframe())delete a.params.method;if(FB.TemplateUI&&FB.TemplateUI.supportsTemplate(b,a)){if(FB.reportTemplates)console.log("Using template for "+b+".");FB.TemplateUI.useCachedUI(b,a);}else{a.params=FB.JSON.flatten(a.params);var c=FB.QS.encode(a.params);if(!FB.UA.nativeApp()&&FB.UIServer.urlTooLongForIE(a.url+'?'+c)){a.post=true;}else if(c)a.url+='?'+c;}return a;},urlTooLongForIE:function(a){return a.length>2000;},getDisplayMode:function(a,b){if(b.display==='hidden'||b.display==='none')return b.display;if(FB.Canvas.isTabIframe()&&b.display!=='popup')return 'async';if(FB.UA.mobile()||b.display==='touch')return 'touch';if(!FB.getAccessToken()&&b.display=='dialog'&&!a.loggedOutIframe){FB.log('"dialog" mode can only be used when the user is connected.');return 'popup';}if(a.connectDisplay&&!FB._inCanvas)return a.connectDisplay;return b.display||(FB.getAccessToken()?'dialog':'popup');},getXdRelation:function(a){var b=a.display;if(b==='popup'||b==='touch')return 'opener';if(b==='dialog'||b==='iframe'||b==='hidden'||b==='none')return 'parent';if(b==='async')return 'parent.frames['+window.name+']';},popup:function(a){var b=typeof window.screenX!='undefined'?window.screenX:window.screenLeft,c=typeof window.screenY!='undefined'?window.screenY:window.screenTop,d=typeof window.outerWidth!='undefined'?window.outerWidth:document.documentElement.clientWidth,e=typeof window.outerHeight!='undefined'?window.outerHeight:(document.documentElement.clientHeight-22),f=FB.UA.mobile()?null:a.size.width,g=FB.UA.mobile()?null:a.size.height,h=(b<0)?window.screen.width+b:b,i=parseInt(h+((d-f)/2),10),j=parseInt(c+((e-g)/2.5),10),k=[];if(f!==null)k.push('width='+f);if(g!==null)k.push('height='+g);k.push('left='+i);k.push('top='+j);k.push('scrollbars=1');if(a.name=='permissions.request'||a.name=='permissions.oauth')k.push('location=1,toolbar=0');k=k.join(',');if(a.post){FB.UIServer.setLoadedNode(a,window.open('about:blank',a.id,k),'popup');FB.Content.submitToTarget({url:a.url,target:a.id,params:a.params});}else FB.UIServer.setLoadedNode(a,window.open(a.url,a.id,k),'popup');if(a.id in FB.UIServer._defaultCb)FB.UIServer._popupMonitor();},setLoadedNode:function(a,b,c){if(a.params&&a.params.display!='popup')b.fbCallID=a.id;b={node:b,type:c,fbCallID:a.id};FB.UIServer._loadedNodes[a.id]=b;},getLoadedNode:function(a){var b=typeof a=='object'?a.id:a,c=FB.UIServer._loadedNodes[b];return c?c.node:null;},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:true,classes:(FB.UA.iPad()?'centered':'')});if(!a.hideLoader)FB.Dialog.showLoader(b,a.size.width);FB.Dom.addCss(a.root,'fb_dialog_iframe');FB.UIServer._insertIframe(a);},touch:function(a){if(a.params&&a.params.in_iframe){if(a.ui_created){FB.Dialog.showLoader(function(){FB.UIServer._triggerDefault(a.id);},0);}else FB.UIServer.iframe(a);}else if(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();}else if(!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};}else if(FB.UA.android()){return {width:screen.availWidth,height:screen.availHeight};}else{var a=window.innerWidth,b=window.innerHeight,c=a/b>1.2;return {width:a,height:Math.max(b,(c?screen.width:screen.height))};}return {width:575,height:240};},_insertIframe:function(a){FB.UIServer._loadedNodes[a.id]=false;var b=function(c){if(a.id in FB.UIServer._loadedNodes)FB.UIServer.setLoadedNode(a,c,'iframe');};if(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(c){FB.Content.submitToTarget({url:a.url,target:c.name,params:a.params});}});}else 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.getLoadedNode(a);if(!c)return;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+']',true);if(!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;for(var b in FB.UIServer._loadedNodes)if(FB.UIServer._loadedNodes.hasOwnProperty(b)&&b in FB.UIServer._defaultCb){var c=FB.UIServer._loadedNodes[b];if(c.type!='popup')continue;win=c.node;try{if(win.closed){FB.UIServer._triggerDefault(b);}else a=true;}catch(d){}}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&&FB.UA.ie()!==7);return FB.XD.handler(function(d){var e=FB.UIServer.getLoadedNode(a);if(!e)return;if(d.type=='resize'){FB.UIServer._handleResizeMessage(a,d);}else if(d.type=='hide'){FB.Dialog.hide(e);}else if(d.type=='rendered'){var f=FB.Dialog._findRoot(e);FB.Dialog.show(f);}else if(d.type=='fireevent')FB.Event.fire(d.event);},b,true,null,c);},_xdNextHandler:function(a,b,c,d){if(d)FB.UIServer._defaultCb[b]=a;return FB.XD.handler(function(e){FB.UIServer._xdRecv(e,a);},c)+'&frame='+b;},_xdRecv:function(a,b){var c=FB.UIServer.getLoadedNode(a.frame);if(c){try{if(FB.Dom.containsCss(c,'FB_UI_Hidden')){window.setTimeout(function(){c.parentNode.parentNode.removeChild(c.parentNode);},3000);}else if(FB.Dom.containsCss(c,'FB_UI_Dialog')){FB.Dialog.remove(c);if(FB.TemplateUI&&FB.UA.mobile())FB.TemplateUI.populateCache();}}catch(d){}try{if(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(e){a&&a(e.result&&e.result!=FB.UIServer._resultToken&&FB.JSON.parse(e.result));},b,c,d)+'&result='+encodeURIComponent(FB.UIServer._resultToken));}});
FB.provide('',{getLoginStatus:function(a,b){if(!FB._apiKey){FB.log('FB.getLoginStatus() called before calling FB.init().');return;}if(a)if(!b&&FB.Auth._loadState=='loaded'){a({status:FB._userStatus,authResponse:FB._authResponse});return;}else FB.Event.subscribe('FB.loginStatus',a);if(!b&&FB.Auth._loadState=='loading')return;FB.Auth._loadState='loading';var c=function(d){FB.Auth._loadState='loaded';FB.Event.fire('FB.loginStatus',d);FB.Event.clear('FB.loginStatus');};FB.Auth.fetchLoginStatus(c);},getAuthResponse:function(){return FB._authResponse;},getAccessToken:function(){return (FB._authResponse&&FB._authResponse.accessToken)||null;},getUserID:function(){return FB._userID;},login:function(a,b){if(b&&b.perms&&!b.scope){b.scope=b.perms;delete b.perms;FB.log('OAuth2 specification states that \'perms\' '+'should now be called \'scope\'.  Please update.');}FB.Auth.login(a,b);},logout:function(a){FB.ui({method:'auth.logout',display:'hidden'},a);}});FB.provide('Auth',{_callbacks:[],_xdStorePath:'xd_localstorage/',login:function(a,b){FB.ui(FB.copy({method:'permissions.oauth',display:'popup',domain:location.hostname},b||{}),a);},fetchLoginStatus:function(a){if(FB.UA.mobile()&&window.postMessage&&window.localStorage){FB.Auth.staticAuthCheck(a);}else FB.ui({method:'login.status',display:'none',domain:location.hostname},a);},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 d=frames[c.name],e=FB.guid(),f=false,g=function(h){if(!f){f=true;FB.Auth._staticAuthHandler(a,h);}};FB.XD.handler(g,'parent',true,e);setTimeout(g,500);d.postMessage(FB.JSON.stringify({method:'getItem',params:['LoginInfo_'+FB._apiKey,true],returnCb:e}),b);}});},_staticAuthHandler:function(a,b){if(b&&b.data&&b.data.status&&b.data.status=='connected'){var c,d=b.data.status;if(b.data.https==1)FB._https=true;var e=b.data.authResponse||null;c=FB.Auth.setAuthResponse(e,d);a&&a(c);}else FB.ui({method:'login.status',display:'none'},a);},setAuthResponse:function(a,b){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 e=!FB._userID&&a,f=FB._userID&&!a,g=a&&FB._userID!=c,h=e||f||g,i=b!=FB._userStatus,j={authResponse:a,status:b};FB._authResponse=a;FB._userID=c;FB._userStatus=b;if(f||g)FB.Event.fire('auth.logout',j);if(e||g)FB.Event.fire('auth.login',j);if(h)FB.Event.fire('auth.authResponseChange',j);if(i)FB.Event.fire('auth.statusChange',j);if(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,true);},1200000);return j;},_getContextType:function(){if(FB.UA.nativeApp())return 3;if(FB.UA.mobile())return 2;if(FB._inCanvas)return 5;return 1;},xdHandler:function(a,b,c,d,e){return FB.UIServer._xdNextHandler(FB.Auth.xdResponseWrapper(a,d,e),b,c,true);},xdResponseWrapper:function(a,b,c){return function(d){if(d.access_token){var e=FB.Auth.parseSignedRequest(d.signed_request);b={accessToken:d.access_token,userID:e.user_id,expiresIn:parseInt(d.expires_in,10),signedRequest:d.signed_request};if(FB.Cookie.getEnabled()){var f=b.expiresIn===0?0:(new Date()).getTime()+b.expiresIn*1000,g=FB.Cookie._domain;if(!g&&d.base_domain)g='.'+d.base_domain;FB.Cookie.setSignedRequestCookie(d.signed_request,f,g);}FB.Auth.setAuthResponse(b,'connected');}else if(!FB._authResponse&&b){FB.Auth.setAuthResponse(b,'connected');}else if(!(b&&c=='permissions.oauth')){var h;if(d.error&&d.error==='not_authorized'){h='not_authorized';}else h='unknown';FB.Auth.setAuthResponse(null,h);if(FB.Cookie.getEnabled())FB.Cookie.clearSignedRequestCookie();}if(d&&d.https==1&&!FB._https)FB._https=true;response={authResponse:FB._authResponse,status:FB._userStatus};a&&a(response);};},parseSignedRequest:function(a){if(!a)return null;var b=a.split('.',2),c=b[1],d=FB.Auth.base64URLDecode(c);return FB.JSON.parse(d);},base64URLDecode:function(a){a=a.replace(/\-/g,'+').replace(/\_/g,'/');if(a.length%4!==0){var b=4-a.length%4;for(var c=0;c<b;c++)a=a+'=';}var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e="",f,g,h="",i,j,k,l="";for(var m=0;m<a.length;m+=4){i=d.indexOf(a.charAt(m));j=d.indexOf(a.charAt(m+1));k=d.indexOf(a.charAt(m+2));l=d.indexOf(a.charAt(m+3));f=(i<<2)|(j>>4);g=((j&15)<<4)|(k>>2);h=((k&3)<<6)|l;e=e+String.fromCharCode(f);if(k!=64)e=e+String.fromCharCode(g);if(l!=64)e=e+String.fromCharCode(h);f=g=h="";i=j=k=l="";}return unescape(e);}});FB.provide('UIServer.Methods',{'permissions.oauth':{url:'dialog/oauth',size:{width:(FB.UA.mobile()?null:627),height:(FB.UA.mobile()?null:326)},transform:function(a){if(!FB._apiKey){FB.log('FB.login() called before FB.init().');return;}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});return;}var b=a.cb,c=a.id;delete a.cb;FB.copy(a.params,{client_id:FB._apiKey,redirect_uri:FB.URI.resolve(FB.Auth.xdHandler(b,c,'opener',FB._authResponse,'permissions.oauth')),origin:FB.Auth._getContextType(),response_type:'token,signed_request',domain:location.hostname});return a;}},'auth.logout':{url:'logout.php',transform:function(a){if(!FB._apiKey){FB.log('FB.logout() called before calling FB.init().');}else if(!FB._authResponse){FB.log('FB.logout() called without an access token.');}else{a.params.next=FB.Auth.xdHandler(a.cb,a.id,'parent',FB._authResponse);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.xdHandler(b,c,'parent',FB._authResponse),origin:FB.Auth._getContextType(),response_type:'token,signed_request,code',domain:location.hostname});return a;}}});
FB.provide('CanvasInsights',{setDoneLoading:function(a){FB.Canvas.setDoneLoading(a);}});
FB.provide('Cookie',{_domain:null,_enabled:false,setEnabled:function(a){FB.Cookie._enabled=!!a;if(typeof a=='string')FB.Cookie._domain=a;},getEnabled:function(){return FB.Cookie._enabled;},loadMeta:function(){var a=document.cookie.match('\\bfbm_'+FB._apiKey+'=([^;]*)\\b'),b;if(a){b=FB.QS.decode(a[1]);if(!FB.Cookie._domain)FB.Cookie._domain=b.base_domain;}return b;},loadSignedRequest:function(){var a=document.cookie.match('\\bfbsr_'+FB._apiKey+'=([^;]*)\\b');if(!a)return null;return a[1];},setSignedRequestCookie:function(a,b,c){if(!a)throw new Error('Value passed to FB.Cookie.setSignedRequestCookie '+'was empty.');if(!FB.Cookie.getEnabled())return;if(c){var d=FB.QS.encode({base_domain:c});FB.Cookie.setRaw('fbm_',d,b,c);}FB.Cookie._domain=c;FB.Cookie.setRaw('fbsr_',a,b,c);},clearSignedRequestCookie:function(){if(!FB.Cookie.getEnabled())return;FB.Cookie.setRaw('fbsr_','',0,FB.Cookie._domain);},setRaw:function(a,b,c,d){if(d){document.cookie=a+FB._apiKey+'=; expires=Wed, 04 Feb 2004 08:00:00 GMT;';document.cookie=a+FB._apiKey+'=; expires=Wed, 04 Feb 2004 08:00:00 GMT;'+'domain='+location.hostname+';';}var e=new Date(c).toGMTString();document.cookie=a+FB._apiKey+'='+b+(b&&c===0?'':'; expires='+e)+'; path=/'+(d?'; domain='+d:'');}});
FB.provide('Frictionless',{_allowedRecipients:{},_useFrictionless:false,_updateRecipients:function(){FB.Frictionless._allowedRecipients={};FB.api('/me/apprequestformerrecipients',function(a){if(!a||a.error)return;FB.Array.forEach(a.data,function(b){FB.Frictionless._allowedRecipients[b.recipient_id]=true;},false);});},init:function(){FB.Frictionless._useFrictionless=true;FB.getLoginStatus(function(a){if(a.status=='connected')FB.Frictionless._updateRecipients();});FB.Event.subscribe('auth.login',function(a){if(a.authResponse)FB.Frictionless._updateRecipients();});},_processRequestResponse:function(a,b){return function(c){var d=c&&c.updated_frictionless;if(FB.Frictionless._useFrictionless&&d)FB.Frictionless._updateRecipients();if(c){if(!b&&c.frictionless){FB.Dialog._hideLoader();FB.Dialog._restoreBodyPosition();FB.Dialog._hideIPadOverlay();}delete c.frictionless;delete c.updated_frictionless;}a&&a(c);};},isAllowed:function(a){if(!a)return false;if(typeof a==='number')return FB.Frictionless._allowedRecipients[a];if(typeof a==='string')a=a.split(',');a=FB.Array.map(a,FB.String.trim);var b=true,c=false;FB.Array.forEach(a,function(d){b=b&&FB.Frictionless._allowedRecipients[d];c=true;},false);return b&&c;}});
FB.provide('Canvas.Prefetcher',{_sampleRate:0,_appIdsBlacklist:[],_links:[],COLLECT_AUTOMATIC:0,COLLECT_MANUAL:1,_collectionMode:0,addStaticResource:function(a){if(!FB._inCanvas||!FB._apiKey)return;FB.Canvas.Prefetcher._links.push(a);},setCollectionMode:function(a){if(!FB._inCanvas||!FB._apiKey)return false;if(a!=FB.Canvas.Prefetcher.COLLECT_AUTOMATIC&&a!=FB.Canvas.Prefetcher.COLLECT_MANUAL)return false;FB.Canvas.Prefetcher._collectionMode=a;},_maybeSample:function(){if(!FB._inCanvas||!FB._apiKey||!FB.Canvas.Prefetcher._sampleRate)return;var a=Math.random();if(a>1/FB.Canvas.Prefetcher._sampleRate)return;if(FB.Canvas.Prefetcher._appIdsBlacklist=='*')return;if(FB.Array.indexOf(FB.Canvas.Prefetcher._appIdsBlacklist,parseInt(FB._apiKey,10))!=-1)return;window.setTimeout(FB.Canvas.Prefetcher._sample,30000);},_sample:function(){var a={object:'data',link:'href',script:'src'};if(FB.Canvas.Prefetcher._collectionMode==FB.Canvas.Prefetcher.COLLECT_AUTOMATIC)FB.Array.forEach(a,function(c,d){FB.Array.forEach(window.document.getElementsByTagName(d),function(e){if(e[c])FB.Canvas.Prefetcher._links.push(e[c]);});});var b=FB.JSON.stringify(FB.Canvas.Prefetcher._links);FB.api(FB._apiKey+'/staticresources','post',{urls:b,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('',{initSitevars:{},init:function(a){a=FB.copy(a||{},{logging:true,status:true});FB._userID=0;FB._apiKey=a.appId||a.apiKey;if(!a.logging&&window.location.toString().indexOf('fb_debug=1')<0)FB._logging=false;FB.XD.init(a.channelUrl);if(FB.UA.mobile()&&FB.TemplateUI&&FB.TemplateData&&FB.TemplateData._enabled&&a.useCachedDialogs!==false){FB.TemplateUI.init();FB.Event.subscribe('auth.statusChange',FB.TemplateData.update);}if(a.reportTemplates)FB.reportTemplates=true;if(a.frictionlessRequests)FB.Frictionless.init();if(FB._apiKey){FB.Cookie.setEnabled(a.cookie);if(a.authResponse){FB.Auth.setAuthResponse(a.authResponse,'connected');}else{var b=FB.Cookie.loadSignedRequest(),c=FB.Auth.parseSignedRequest(b);FB._userID=(c&&c.user_id)||0;FB.Cookie.loadMeta();}if(a.status)FB.getLoginStatus();}if(FB._inCanvas){FB.Canvas._setHideFlashCallback(a.hideFlashCallback);FB.Canvas.init();}FB.Event.subscribe('xfbml.parse',function(){FB.XFBML.IframeWidget.batchWidgetPipeRequests();});if(a.xfbml)window.setTimeout(function(){if(FB.XFBML)if(FB.initSitevars.parseXFBMLBeforeDomReady){FB.XFBML.parse();var d=window.setInterval(function(){FB.XFBML.parse();},100);FB.Dom.ready(function(){window.clearInterval(d);FB.XFBML.parse();});}else FB.Dom.ready(FB.XFBML.parse);},0);if(FB.Canvas&&FB.Canvas.Prefetcher)FB.Canvas.Prefetcher._maybeSample();}});
FB.provide('UIServer.MobileIframableMethod',{transform:function(a){if(a.params.display==='touch'&&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;}else return FB.UIServer.genericTransform(a);},getXdRelation:function(a){var b=a.display;if(b==='touch'&&window.postMessage&&a.in_iframe)return 'parent';return FB.UIServer.getXdRelation(a);}});FB.provide('UIServer.Methods',{'stream.share':{size:{width:650,height:340},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:true,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),c=FB.UIServer._xdResult(a.cb,a.id,b,true);a.params.next=FB.getDomain(FB._https?'https_www':'www')+"login.php?"+FB.QS.encode({api_key:FB._apiKey,next:c,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){if(FB.Frictionless.isAllowed(a.params.to)){a.params.in_iframe=true;a.hideLoader=true;}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:30000,getElements:function(a,b,c){var d=FB.Array,e=FB.XFBML._getDomElements(a,b,c),f=FB.Dom.getByClass(b+'-'+c,a,'div');e=d.toArray(e);f=d.toArray(f);f=d.filter(f,function(g){return !g.hasChildNodes()||(g.childNodes.length===1&&g.childNodes[0].nodeType===3);});return d.merge(e,f);},parse:function(a,b){a=a||document.body;var c=1,d=function(){c--;if(c===0){b&&b();FB.Event.fire('xfbml.render');}},e={};if(FB.XFBML._widgetPipeIsEnabled())FB.Array.forEach(FB.XFBML._tagInfos,function(f){if(f.supportsWidgetPipe){var g=f.xmlns?f.xmlns:'fb',h=FB.XFBML.getElements(a,g,f.localName);e[f.localName]=h;FB.XFBML._widgetPipeEnabledTagCount+=h.length;}});FB.Array.forEach(FB.XFBML._tagInfos,function(f){if(!f.xmlns)f.xmlns='fb';var g;if(e[f.localName]!==undefined){g=e[f.localName];}else g=FB.XFBML.getElements(a,f.xmlns,f.localName);for(var h=0;h<g.length;h++){c++;FB.XFBML._processElement(g[h],f,d);}});FB.Event.fire('xfbml.parse');window.setTimeout(function(){if(c>0)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(){if(!FB.XFBML._widgetPipeIsEnabled())return false;var a=FB.XFBML._widgetPipeEnabledTagCount>1;return a;},getBoolAttr:function(a,b){b=FB.XFBML.getAttr(a,b);return (b&&FB.Array.indexOf(['true','1','yes','on'],b.toLowerCase())>-1);},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(dom,tagInfo,cb){var element=dom._element;if(element){element.subscribe('render',cb);element.process();}else{var processor=function(){var fn=eval(tagInfo.className),isLogin=false,showFaces=true,showLoginFace=false,renderInIframe=false,addToTimeline=(tagInfo.className==='FB.XFBML.AddToTimeline');if((tagInfo.className==='FB.XFBML.LoginButton')||addToTimeline){renderInIframe=FB.XFBML.getBoolAttr(dom,'render-in-iframe');mode=FB.XFBML.getAttr(dom,'mode');showFaces=(addToTimeline&&mode!='button')||FB.XFBML.getBoolAttr(dom,'show-faces');showLoginFace=FB.XFBML.getBoolAttr(dom,'show-login-face');isLogin=addToTimeline||renderInIframe||showFaces||showLoginFace||FB.XFBML.getBoolAttr(dom,'oneclick');if(isLogin&&!addToTimeline)fn=FB.XFBML.Login;}element=dom._element=new fn(dom);if(isLogin){showFaces=!!showFaces;showLoginFace=!!showLoginFace;var extraParams={show_faces:showFaces,show_login_face:showLoginFace,add_to_profile:addToTimeline,mode:mode},scope=FB.XFBML.getAttr(dom,'scope')||FB.XFBML.getAttr(dom,'perms');if(scope)extraParams.scope=scope;element.setExtraParams(extraParams);}element.subscribe('render',cb);element.process();};if(FB.CLASSES[tagInfo.className.substr(3)]){processor();}else FB.log('Tag '+tagInfo.className+' was not found.');}},_getDomElements:function(a,b,c){var d=b+':'+c;if(FB.UA.firefox()){return a.getElementsByTagNameNS(document.body.namespaceURI,d);}else if(FB.UA.ie()<9){try{var f=document.namespaces;if(f&&f[b]){var g=a.getElementsByTagName(c);if(!document.addEventListener||g.length>0)return g;}}catch(e){}return a.getElementsByTagName(d);}else 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:true},{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:'social-context',className:'FB.XFBML.SocialContext'},{localName:'subscribe',className:'FB.XFBML.Subscribe'}],_widgetPipeEnabledTagCount:0,_widgetPipeIsEnabled:function(){return FB.widgetPipeEnabledApps&&FB.widgetPipeEnabledApps[FB._apiKey]!==undefined;}});(function(){try{if(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){if(b)this.subscribe('error',b);this.monitor('value',this.bind(function(){if(this.value!==undefined){a(this.value);return true;}}));}});
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=FB.String.format.apply(null,a),c=(/^select (.*?) from (\w+)\s+where (.*)$/i).exec(b);this.fields=this._toFields(c[1]);this.table=c[2];this.where=this._parseWhere(c[3]);for(var d=1;d<a.length;d++)if(FB.Type.isType(a[d],FB.Data.Query))a[d].hasDependency=true;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':if(this.where.value.length==1){a+=this.where.key+'='+this._encode(this.where.value[0]);}else a+=this.where.key+' in ('+FB.Array.map(this.where.value,this._encode).join(',')+')';break;}return a;},_encode:function(a){return typeof(a)=='string'?FB.String.quote(a):a;},toString:function(){return '#'+this.name;},_toFields:function(a){return FB.Array.map(a.split(','),FB.String.trim);},_parseWhere:function(s){var re=(/^\s*(\w+)\s*=\s*(.*)\s*$/i).exec(s),result,value,type='unknown';if(re){value=re[2];if(/^(["'])(?:\\?.)*?\1$/.test(value)){value=eval(value);type='index';}else if(/^\d+\.?\d*$/.test(value))type='index';}if(type=='index'){result={type:'index',key:re[1],value:value};}else result={type:'unknown',value:s};return result;}});
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(dependencies,callback){var result=new FB.Waitable(),count=dependencies.length;if(typeof(callback)=='string'){var s=callback;callback=function(args){return eval(s);};}FB.Array.forEach(dependencies,function(item){item.monitor('value',function(){var done=false;if(FB.Data._getValue(item)!==undefined){count--;done=true;}if(count===0){var value=callback(FB.Array.map(dependencies,FB.Data._getValue));result.set(value!==undefined?value:true);}return done;});});return result;},_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(FB.Data.timer<0)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];if(d.where.type=='index'&&!d.hasDependency){FB.Data._mergeIndexQuery(d,a);}else a[d.name]=d;}var e={q:{}};FB.copy(e.q,a,true,function(f){return f.toFql();});e.queries=FB.JSON.stringify(e.queries);FB.api('/fql','GET',e,function(f){if(f.error){FB.Array.forEach(a,function(g){g.error(new Error(f.error.message));});}else FB.Array.forEach(f.data,function(g){a[g.name].set(g.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(g){a.set(FB.Array.filter(g,function(h){return h[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){var c=a.exec(b.src);if(c){var d=FB.QS.decode(c[2]);FB.Array.forEach(d,function(e,f){if(e=='0')d[f]=0;});d.oauth=true;FB.init(d);}}});if(window.fbAsyncInit&&!window.fbAsyncInit.hasRun){window.fbAsyncInit.hasRun=true;fbAsyncInit();}},0);
FB.provide('Native',{NATIVE_READY_EVENT:'fbNativeReady',onready:function(a){if(!FB.UA.nativeApp()){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()');return;}if(window.__fbNative&&!this.nativeReady)FB.provide('Native',window.__fbNative);if(this.nativeReady){a();}else{var b=function(c){window.removeEventListener(FB.Native.NATIVE_READY_EVENT,b);FB.Native.onready(a);};window.addEventListener(FB.Native.NATIVE_READY_EVENT,b,false);}}});
FB.provide('UIServer.Methods',{'pay.prompt':{transform:function(a){var b=FB.XD.handler(function(c){a.cb(FB.JSON.parse(c.response));},'parent.frames['+(window.name||'iframe_canvas')+']');a.params.channel=b;FB.Arbiter.inform('Pay.Prompt',a.params);return false;}}});FB.provide('UIServer.Methods',{pay:{size:{width:555,height:120},noHttps:true,connectDisplay:'popup',transform:function(a){if(!FB._inCanvas){a.params.order_info=FB.JSON.stringify(a.params.order_info);return a;}var b=FB.XD.handler(function(c){a.cb(FB.JSON.parse(c.response));},'parent.frames['+(window.name||'iframe_canvas')+']');a.params.channel=b;a.params.uiserver=true;FB.Arbiter.inform('Pay.Prompt',a.params);return false;}}});
FB.provide('Helper',{isUser:function(a){return a<2.2e+09||(a>=1e+14&&a<=100099999989999)||(a>=8.9e+13&&a<=89999999999999);},getLoggedInUser:function(){return FB.getUserID();},upperCaseFirstChar:function(a){if(a.length>0){return a.substr(0,1).toUpperCase()+a.substr(1);}else return a;},getProfileLink:function(a,b,c){c=c||(a?FB.getDomain('www')+'profile.php?id='+a.uid:null);if(c)b='<a class="fb_link" href="'+c+'">'+b+'</a>';return b;},invokeHandler:function(handler,scope,args){if(handler)if(typeof handler==='string'){eval(handler);}else if(handler.apply)handler.apply(scope,args||[]);},fireEvent:function(a,b){var c=b._attr.href;b.fire(a,c);FB.Event.fire(a,c,b);},executeFunctionByName:function(a){var b=Array.prototype.slice.call(arguments,1),c=a.split("."),d=c.pop(),e=window;for(var f=0;f<c.length;f++)e=e[c[f]];return e[d].apply(this,b);}});
FB.provide('TemplateData',{_initialized:false,_version:0,_response:null,_localStorageTimeout:60*60*24,_enabled:true,enabled:function(){return FB.TemplateData._enabled&&FB.TemplateData._initialized&&FB.TemplateData.supportsLocalStorage()&&FB._userStatus=='connected'&&FB.TemplateData.getResponse();},supportsLocalStorage:function(){try{return 'localStorage' in window&&window.localStorage!==null;}catch(a){return false;}},_isStale:function(a){if(!a||!a.version||a.version!=FB.TemplateData._version||a.currentUserID!=FB.getUserID())return true;var b=Math.round((new Date()).getTime());return (b-a.setAt)/1000>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;}if(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)return;FB.TemplateData._initialized=true;FB.TemplateData._version=a;if(FB.TemplateData.supportsLocalStorage()&&!('FB_templateDataResponse' in localStorage))FB.TemplateData.clear();},clear:function(){FB.TemplateData.saveResponse(null);},update:function(a){if(FB._userStatus!='connected')FB.TemplateData.clear();if(FB._userStatus=='connected'&&!FB.TemplateData.getResponse())FB.api({method:'dialog.template_data'},function(b){if('error_code' in b)return;var c={data:b,currentUserID:FB.getUserID(),setAt:(new Date()).getTime(),version:FB.TemplateData._version};FB.TemplateData.saveResponse(c);});}});
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;var e=FB.QS.encode(d);this.cachedCall={url:FB.getDomain('staticfb')+'dialog/'+a+'?'+e,frameName:FB.guid(),id:FB.guid(),size:FB.UIServer.getDefaultSize(),hideLoader:true};FB.XD.handler(this.bind(function(g){if(g.type=='getParams')this.setProperty('getParamsCb',g.returnCb);}),'parent',true,this.cachedCall.frameName);if(c){FB.UIServer.iframe(this.cachedCall);FB.Dialog.hide(this.cachedCall.root);}else if(b&&!FB.TemplateUI._preloads[this.cachedCall.url]){var f=document.createElement('div');FB.TemplateUI._preloads[this.cachedCall.url]={container:f};FB.Content.insertIframe({url:this.cachedCall.url,root:FB.Content.appendHidden(f)});}},{use:function(a){if(!this.cachedCall.root){FB.UIServer.touch(this.cachedCall);var b=FB.TemplateUI._preloads[this.cachedCall.url];if(b&&b.container){b.container.parentNode.removeChild(b.container);delete b.container;}}a.ui_created=true;a.root=this.cachedCall.root;FB.UIServer.setLoadedNode(a,FB.UIServer.getLoadedNode(this.cachedCall.id));delete FB.UIServer._loadedNodes[this.cachedCall.id];var c=FB.Dialog._dialogs[a.id];FB.Dialog._dialogs[this.cachedCall.id]=c;c.id=this.cachedCall.id;delete FB.Dialog._dialogs[a.id];FB.UIServer.getLoadedNode(a).fbCallID=this.cachedCall.id;this.cachedCall.id=a.id;var d={};FB.copy(d,a.params);FB.copy(d,FB.TemplateData.getData()[this.method]);d.frictionless=FB.TemplateUI.isFrictionlessAppRequest(this.method,d);d.common=FB.TemplateData.getData().common;d.method=this.method;this.setParams(d);if(FB.UA.nativeApp())FB.UIServer._popupMonitor();},setParams:function(a){this.monitor('getParamsCb',this.bind(function(){if(this.getParamsCb){var b=frames[this.cachedCall.frameName]||FB.UIServer.getLoadedNode(this.cachedCall);b.postMessage(FB.JSON.stringify({params:a,cb:this.getParamsCb}),'*');return true;}}));}});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())return;clearInterval(FB.TemplateUI._timer);var b={feed:true,apprequests:true};for(var c in b)if(!(c in FB.TemplateUI._cache))FB.TemplateUI._cache[c]=new FB.TemplateUI(c,a);},initCache:function(){FB.TemplateUI._timer=setInterval(function(){FB.TemplateUI.populateCache(true);},2000);},supportsTemplate:function(a,b){return FB.TemplateData.enabled()&&FB.TemplateUI.paramsAllowTemplate(a,b.params)&&b.params.display==='touch'&&FB.UA.mobile();},paramsAllowTemplate:function(a,b){var c={feed:{to:1,attachment:1,source:1},apprequests:{}};if(!(a in c))return false;for(var d in c[a])if(b[d])return false;return !FB.TemplateUI.willWriteOnGet(a,b);},isFrictionlessAppRequest:function(a,b){return a==='apprequests'&&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){var d=FB.XFBML.getAttr(this.dom,a);return d?(c?c(d):d):b;},_getBoolAttribute:function(a,b){if(FB.XFBML.getAttr(this.dom,a)===null)return b;return FB.XFBML.getBoolAttr(this.dom,a);},_getPxAttribute:function(a,b){return this.getAttribute(a,b,function(c){var d=parseInt(c.replace('px',''),10);if(isNaN(d)){return b;}else return d;});},_getAttributeFromList:function(a,b,c){return this.getAttribute(a,b,function(d){d=d.toLowerCase();if(FB.Array.indexOf(c,d)>-1){return d;}else return b;});},isValid:function(){for(var a=this.dom;a;a=a.parentNode)if(a==document.body)return true;},clear:function(){this.dom.innerHTML='';}},FB.EventProvider));
FB.subclass('XFBML.IframeWidget','XFBML.Element',null,{_iframeName:null,_showLoader:true,_refreshOnAuthChange:false,_allowReProcess:false,_fetchPreCachedLoader:false,_visibleAfter:'load',_widgetPipeEnabled:false,getUrlBits:function(){throw new Error('Inheriting class needs to implement getUrlBits().');},setupAndValidate:function(){return true;},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;if(FB.XFBML.IframeWidget.masterWidgetPipeIframe===null)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',true);}return this._channelUrl;},getIframeNode:function(){return this.dom.getElementsByTagName('iframe')[0];},arbiterInform:function(event,a,b){if(this.loaded){this._arbiterInform(event,a,b);}else this.subscribe('iframe.onload',FB.bind(this._arbiterInform,this,event,a,b));},_arbiterInform:function(event,a,b){var c='parent.frames["'+this.getIframeNode().name+'"]';FB.Arbiter.inform(event,a,c,window.location.protocol=='https:',b);},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=true;if(!this.setupAndValidate()){this.fire('render');return;}if(this._showLoader)this._addLoader();FB.Dom.addCss(this.dom,'fb_iframe_widget');if(this._visibleAfter!='immediate'){FB.Dom.addCss(this.dom,'fb_hide_iframes');}else this.subscribe('iframe.onload',FB.bind(this.fire,this,'render'));var b=this.getSize()||{},c=this.getFullyQualifiedURL();if(b.width=='100%')FB.Dom.addCss(this.dom,'fb_iframe_widget_fluid');FB.Content.insertIframe({url:c,root:this.dom.appendChild(document.createElement('span')),name:this.getIframeName(),title:this.getIframeTitle(),className:FB._localeIsRtl?'fb_rtl':'fb_ltr',height:b.height,width:b.width,onload:FB.bind(this.fire,this,'iframe.onload')});this.loaded=false;this.subscribe('iframe.onload',FB.bind(function(){this.loaded=true;},this));},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();if(!this._fetchPreCachedLoader)a+='?'+FB.QS.encode(this._getQS());if(a.length>2000){a='about:blank';var 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));if(FB.getLoginStatus){this.subscribe('xd.refreshLoginStatus',FB.bind(FB.getLoginStatus,FB,function(){},true));this.subscribe('xd.logout',FB.bind(FB.logout,FB,function(){}));}if(this._refreshOnAuthChange)this._setupAuthRefresh();if(this._visibleAfter=='load')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(c){if(!this.isValid())return;if(b=='unknown'||c.status=='unknown')this.process(true);b=c.status;},this));},this));},_handleResizeMsg:function(a){if(!this.isValid())return;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');if(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',ref:this.getAttribute('ref')},this.getUrlBits().params);},_getURL:function(){var a=this.getDefaultWebDomain(),b='';if(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)return;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'},c=FB.guid(),d=FB.XFBML.IframeWidget.masterWidgetPipeIframe.dom,e=d.appendChild(document.createElement('span'));FB.Content.insertIframe({url:'about:blank',root:e,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={};for(var b in FB.XFBML.IframeWidget.allWidgetPipeIframes){var c=FB.XFBML.IframeWidget.allWidgetPipeIframes[b],d=c.getUrlBits(),e={widget:d.name};FB.copy(e,d.params);a[b]=e;}return a;}});
FB.subclass('XFBML.Activity','XFBML.IframeWidget',null,{_visibleAfter:'load',_refreshOnAuthChange:true,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 true;},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 new Error('Inheriting class needs to implement onClick().');},setupAndValidate:function(){return true;},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()){this.fire('render');return;}var a=this._getAttributeFromList('size','medium',this._allowedSizes),b='',c='';if(a=='icon'){b='fb_button_simple';}else{var d=FB._localeIsRtl?'_rtl':'';c=this.getButtonMarkup();b='fb_button'+d+' fb_button_'+a+d;}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){if(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',false),login_text:this.dom.innerHTML};this.clear();for(var a in this._extraParams)this._attr[a]=this._extraParams[a];return true;},setExtraParams:function(a){this._extraParams=a;},oneTimeSetup:function(){var a=FB._userStatus;FB.Event.subscribe('auth.statusChange',FB.bind(function(b){if(a=='connected'||b.status=='connected')this.process(true);a=b.status;},this));},getSize:function(){if(this._attr.size=='large')return {width:this._attr.width,height:90};return {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){if(a.bookmarked)FB.Helper.invokeHandler(this.getAttribute('on-add'),this);}));}});
FB.subclass('XFBML.Comments','XFBML.IframeWidget',null,{_visibleAfter:'immediate',_refreshOnAuthChange:true,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'),mobile:this._getBoolAttribute('mobile')};if(FB.initSitevars.enableMobileComments&&FB.UA.mobile()&&a.mobile!==false)a.mobile=true;if(!a.href){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){var b=document.URL.indexOf('#');if(b>0){a.xid=encodeURIComponent(document.URL.substring(0,b));}else a.xid=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);}else{var c=this.getAttribute('fb_comment_id');if(!c){c=FB.QS.decode(document.URL.substring(document.URL.indexOf('?')+1)).fb_comment_id;if(c&&c.indexOf('#')>0)c=c.substring(0,c.indexOf('#'));}if(c){a.fb_comment_id=c;this.subscribe('render',FB.bind(function(){window.location.hash=this.getIframeNode().id;},this));}}this._attr=a;return true;},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(){if(this._attr.mobile)return {width:'100%',height:160};return {width:this._attr.width,height:160};},getUrlBits:function(){return {name:'comments',params:this._attr};},getDefaultWebDomain:function(){if(this._attr.mobile){return 'https_m';}else return 'https_www';},_handleCommentMsg:function(a){if(!this.isValid())return;FB.Event.fire('comments.add',{post:a.post,user:a.user,widget:this});},_handleCommentCreatedMsg:function(a){if(!this.isValid())return;var b={href:a.href,commentID:a.commentID,parentCommentID:a.parentCommentID};FB.Event.fire('comment.create',b);},_handleCommentRemovedMsg:function(a){if(!this.isValid())return;var b={href:a.href,commentID:a.commentID};FB.Event.fire('comment.remove',b);}});
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);if(a>0)FB.Dom.removeCss(this.dom,'fb_comments_count_zero');this.fire('render');},this));}});
FB.provide('Anim',{ate:function(a,b,c,d){c=!isNaN(parseFloat(c))&&c>=0?c:750;var e=40,f={},g={},h=null,i=a.style,j=setInterval(FB.bind(function(){if(!h)h=new Date().getTime();var k=1;if(c!=0)k=Math.min((new Date().getTime()-h)/c,1);FB.Array.forEach(b,FB.bind(function(l,m){if(!f[m]){var n=FB.Dom.getStyle(a,m);if(n===false)return;f[m]=this._parseCSS(n+'');}if(!g[m])g[m]=this._parseCSS(l.toString());var o='';FB.Array.forEach(f[m],function(p,q){if(isNaN(g[m][q].numPart)&&g[m][q].textPart=='?'){o=p.numPart+p.textPart;}else if(isNaN(p.numPart)){o=p.textPart;}else o+=(p.numPart+Math.ceil((g[m][q].numPart-p.numPart)*Math.sin(Math.PI/2*k)))+g[m][q].textPart+' ';});FB.Dom.setStyle(a,m,o);},this));if(k==1){clearInterval(j);if(d)d(a);}},this),e);},_parseCSS:function(a){var b=[];FB.Array.forEach(a.split(' '),function(c){var d=parseInt(c,10);b.push({numPart:d,textPart:c.replace(d,'')});});return b;}});
FB.provide('Insights',{impression:function(a,b){var c=FB.guid(),d="//ah8.facebook.com/impression.php/"+c+"/",e=new Image(1,1),f=[];if(!a.api_key&&FB._apiKey)a.api_key=FB._apiKey;for(var g in a)f.push(encodeURIComponent(g)+'='+encodeURIComponent(a[g]));d+='?'+f.join('&');if(b)e.onload=b;e.src=d;}});
FB.subclass('XFBML.ConnectBar','XFBML.Element',null,{_initialHeight:null,_initTopMargin:0,_picFieldName:'pic_square',_page:null,_displayed:false,_notDisplayed:false,_container:null,_animationSpeed:0,process:function(){FB.getLoginStatus(this.bind(function(a){FB.Event.monitor('auth.statusChange',this.bind(function(){if(this.isValid()&&FB._userStatus=='connected'){this._uid=FB.Helper.getLoggedInUser();FB.api({method:'Connect.shouldShowConnectBar'},this.bind(function(b){if(b!=2){this._animationSpeed=(b==0)?750:0;this._showBar();}else this._noRender();}));}else this._noRender();return false;}));}));},_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(c){c[0][0].site_name=c[1][0].display_name;if(!this._displayed){this._displayed=true;this._notDisplayed=false;this._renderConnectBar(c[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=false;this._closeConnectBar();}if(!this._notDisplayed){this._notDisplayed=true;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}. \u003Cstrong>{siteName}\u003C\/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(g){g.onclick=FB.bind(d._clickHandler,d);});this._page=document.body;var e=0;if(this._page.parentNode){e=Math.round((parseFloat(FB.Dom.getStyle(this._page.parentNode,'height'))-parseFloat(FB.Dom.getStyle(this._page,'height')))/2);}else e=parseInt(FB.Dom.getStyle(this._page,'marginTop'),10);e=isNaN(e)?0:e;this._initTopMargin=e;if(!window.XMLHttpRequest){c.className+=" fb_connect_bar_container_ie6";}else{c.style.top=(-1*this._initialHeight)+'px';FB.Anim.ate(c,{top:'0px'},this._animationSpeed);}var f={marginTop:this._initTopMargin+this._initialHeight+'px'};if(FB.UA.ie()){f.backgroundPositionY=this._initialHeight+'px';}else f.backgroundPosition='? '+this._initialHeight+'px';FB.Anim.ate(this._page,f,this._animationSpeed);},_clickHandler:function(a){a=a||window.event;var b=a.target||a.srcElement;while(b.nodeName!='A')b=b.parentNode;switch(b.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(b.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:true},this.bind(function(){this.fire('connectbar.ondeauth');FB.Event.fire('connectbar.ondeauth',this);FB.Helper.invokeHandler(this.getAttribute('on-deauth'),this);if(this._getBoolAttribute('auto-refresh',true))window.location.reload();}));break;}return false;},_closeConnectBar:function(){this._notDisplayed=true;var a={marginTop:this._initTopMargin+'px'};if(FB.UA.ie()){a.backgroundPositionY='0px';}else a.backgroundPosition='? 0px';var b=(this._animationSpeed==0)?0:300;FB.Anim.ate(this._page,a,b);FB.Anim.ate(this._container,{top:(-1*this._initialHeight)+'px'},b,function(c){c.parentNode.removeChild(c);});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',true),width:this._getPxAttribute('width',300)};if(!this._attr.id&&!this._attr.name){FB.log('<fb:fan> requires one of the "id" or "name" attributes.');return false;}var a=this._attr.height;if(!a)if((!this._attr.connections||this._attr.connections==='0')&&!this._attr.stream){a=65;}else if(!this._attr.connections||this._attr.connections==='0'){a=375;}else if(!this._attr.stream){a=250;}else a=550;if(this._attr.logobar)a+=25;this._attr.height=a;return true;},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,offsetX:a.relativeWidthOffset-a.paddingLeft};this.dom=a.commentNode;this.dom.style.top=a.relativeHeightOffset+'px';this.dom.style.left=a.relativeWidthOffset+'px';this.dom.style.zIndex=FB.XFBML.EdgeCommentWidget.NextZIndex++;FB.Dom.addCss(this.dom,'fb_edge_comment_widget');},{_visibleAfter:'load',_showLoader:false,getSize:function(){return {width:this._iframeWidth,height:this._iframeHeight};},getUrlBits:function(){return {name:'comment_widget_shell',params:this._attr};}});FB.provide('XFBML.EdgeCommentWidget',{NextZIndex:10000});
FB.subclass('XFBML.EdgeWidget','XFBML.IframeWidget',null,{_visibleAfter:'immediate',_showLoader:false,_rootPadding:null,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',false)};this._rootPadding={left:parseFloat(FB.Dom.getStyle(this.dom,'paddingLeft')),top:parseFloat(FB.Dom.getStyle(this.dom,'paddingTop'))};return true;},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=this._getBoolAttribute('send'),d=65+(c?25:0),e={standard:{show:80,hide:35},box_count:{show:d,hide:d},button_count:{show:21,hide:21},simple:{show:20,hide:20}};return e[a][b];},_getWidgetWidth:function(){var a=this._getLayout(),b=this._getBoolAttribute('send'),c=this._shouldShowFaces()?'show':'hide',d=(this.getAttribute('action')==='recommend'),e=(d?265:225)+(b?60:0),f=(d?130:90)+(b?60:0),g=this.getAttribute('action')==='recommend'?100:55,h=this.getAttribute('action')==='recommend'?90:50,i={standard:{show:450,hide:450},box_count:{show:g,hide:g},button_count:{show:f,hide:f},simple:{show:h,hide:h}},j=i[a][c],k=this._getPxAttribute('width',j),l={standard:{min:e,max:900},box_count:{min:g,max:900},button_count:{min:f,max:900},simple:{min:49,max:900}};if(k<l[a].min){k=l[a].min;}else if(k>l[a].max)k=l[a].max;return k;},_getLayout:function(){return this._getAttributeFromList('layout','standard',['standard','button_count','box_count','simple']);},_shouldShowFaces:function(){return this._getLayout()==='standard'&&this._getBoolAttribute('show-faces',true);},_handleEdgeCommentDialogPresentation:function(a){if(!this.isValid())return;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,masterFrameName:a.masterFrameName,layout:this._getLayout(),relativeHeightOffset:this._getHeightOffset(a),relativeWidthOffset:this._getWidthOffset(a),anchorTargetX:parseFloat(a['query[anchorTargetX]'])+this._rootPadding.left,anchorTargetY:parseFloat(a['query[anchorTargetY]'])+this._rootPadding.top,width:parseFloat(a.width),height:parseFloat(a.height),paddingLeft:this._rootPadding.left};return new FB.XFBML.EdgeCommentWidget(c);},_getHeightOffset:function(a){return parseFloat(a['anchorGeometry[y]'])+parseFloat(a['anchorPosition[y]'])+this._rootPadding.top;},_getWidthOffset:function(a){var b=parseFloat(a['anchorPosition[x]'])+this._rootPadding.left,c=FB.Dom.getPosition(this.dom).x,d=this.dom.offsetWidth,e=FB.Dom.getViewportInfo().width,f=parseFloat(a.width),g=false;if(FB._localeIsRtl){g=f<c;}else if((c+f)>e)g=true;if(g)b+=parseFloat(a['anchorGeometry[x]'])-f;return b;},_getCommonEdgeCommentWidgetOpts:function(a,b){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:parseFloat(a.width),height:parseFloat(a.height),relativeHeightOffset:this._getHeightOffset(a),relativeWidthOffset:this._getWidthOffset(a),error:a.error,siderender:a.siderender,extended_social_context:a.extended_social_context,anchorTargetX:parseFloat(a['query[anchorTargetX]'])+this._rootPadding.left,anchorTargetY:parseFloat(a['query[anchorTargetY]'])+this._rootPadding.top};},_handleEdgeCommentDialogDismissal:function(a){if(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,(typeof a.siderender!='undefined'&&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.offsetX=a.relativeWidthOffset;this._attr.offsetY=a.relativeHeightOffset;this._attr.anchorTargetX=a.anchorTargetX;this._attr.anchorTargetY=a.anchorTargetY;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:true,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',false)};this._rootPadding={left:parseFloat(FB.Dom.getStyle(this.dom,'paddingLeft')),top:parseFloat(FB.Dom.getStyle(this.dom,'paddingTop'))};return true;},getUrlBits:function(){return {name:'send',params:this._attr};},_createEdgeCommentWidget:function(a,b){var c=this._getCommonEdgeCommentWidgetOpts(a,b);return new FB.XFBML.SendButtonFormWidget(c);},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:true,getUrlBits:function(){return {name:'like',params:this._attr};},_createEdgeCommentWidget:function(a,b){if('send' in this._attr&&'widget_type' in a&&a.widget_type=='send'){var c=this._getCommonEdgeCommentWidgetOpts(a,b);return new FB.XFBML.SendButtonFormWidget(c);}else return this._callBase("_createEdgeCommentWidget",a,b);},getIframeTitle:function(){return 'Like this content on Facebook.';}});
FB.subclass('XFBML.LikeBox','XFBML.EdgeWidget',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',true),name:this.getAttribute('name'),show_faces:this._getBoolAttribute('show-faces',true),stream:this._getBoolAttribute('stream',true),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',false))this._attr.force_wall=true;if(this._attr.connections==='0'){this._attr.show_faces=false;}else if(this._attr.connections)this._attr.show_faces=true;if(!this._attr.id&&!this._attr.name&&!this._attr.href){FB.log('<fb:like-box> requires one of the "id" or "name" attributes.');return false;}var a=this._attr.height;if(!a)if(!this._attr.show_faces&&!this._attr.stream){a=62;}else{a=95;if(this._attr.show_faces)a+=163;if(this._attr.stream)a+=300;if(this._attr.header&&this._attr.header!=='0')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 true;},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'),href:this.getAttribute('href',window.location.href),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'),via_url:this.getAttribute('via_url')};return true;},getSize:function(){return {width:this._attr.width,height:this._attr.height};},getUrlBits:function(){var a=this._attr.redesigned?'live_stream_box':'livefeed';if(this._getBoolAttribute('modern',false))a='live_stream';return {name:a,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 true;this._alreadySetup=true;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'};if(this._attr.autologoutlink)FB.Event.subscribe('auth.statusChange',FB.bind(this.process,this));if(this._attr.registration_url){FB.Event.subscribe('auth.statusChange',this._saveStatus(this.process,false));FB.getLoginStatus(this._saveStatus(this.process,false));}return true;},getButtonMarkup:function(){var a=this.getOriginalHTML();if(a)return a;if(!this._attr.registration_url){if(FB.getAccessToken()&&this._attr.autologoutlink){return FB.Intl.tx._("Facebook Logout");}else if(FB.getAccessToken()){return '';}else return this._getLoginText();}else switch(this._attr.status){case 'unknown':return this._getLoginText();case 'notConnected':case 'not_authorized':return FB.Intl.tx._("Register");case 'connected':if(FB.getAccessToken()&&this._attr.autologoutlink)return FB.Intl.tx._("Facebook Logout");return '';default:FB.log('Unknown status: '+this._attr.status);return FB.Intl.tx._("Log In");}},_getLoginText:function(){return this._attr.length=='short'?FB.Intl.tx._("Log In"):FB.Intl.tx._("Log In with Facebook");},onClick:function(){if(!this._attr.registration_url){if(!FB.getAccessToken()||!this._attr.autologoutlink){FB.login(FB.bind(this._authCallback,this),{perms:this._attr.perms,scope:this._attr.scope});}else FB.logout(FB.bind(this._authCallback,this));}else switch(this._attr.status){case 'unknown':FB.ui({method:'auth.logintoFacebook'},FB.bind(function(a){FB.bind(FB.getLoginStatus(this._saveStatus(this._authCallback,true),true),this);},this));break;case 'notConnected':case 'not_authorized':window.top.location=this._attr.registration_url;break;case 'connected':if(!FB.getAccessToken()||!this._attr.autologoutlink){this._authCallback();}else FB.logout(FB.bind(this._authCallback,this));break;default:FB.log('Unknown status: '+this._attr.status);}},_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&&(this._attr.status=='notConnected'||this._attr.status=='not_authorized')&&(c.status=='notConnected'||c.status=='not_authorized'))window.top.location=this._attr.registration_url;this._attr.status=c.status;if(a){a=this.bind(a,this);return 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',true),_subjectId:this.getAttribute('subject-id')});if(!this._uid){FB.log('"uid" is a required attribute for <fb:name>');this.fire('render');return;}var a=[];if(this._firstnameonly){a.push('first_name');}else if(this._lastnameonly){a.push('last_name');}else a.push('name');if(this._subjectId){a.push('sex');if(this._subjectId==FB.Helper.getLoggedInUser())this._reflexive=true;}var b;FB.Event.monitor('auth.statusChange',this.bind(function(){if(!this.isValid()){this.fire('render');return true;}if(!this._uid||this._uid=='loggedinuser')this._uid=FB.Helper.getLoggedInUser();if(!this._uid)return;if(FB.Helper.isUser(this._uid)){b=FB.Data._selectByIndex(a,'user','uid',this._uid);}else b=FB.Data._selectByIndex(['name','id'],'profile','id',this._uid);b.wait(this.bind(function(c){if(this._subjectId==this._uid){this._renderPronoun(c[0]);}else this._renderOther(c[0]);this.fire('render');}));}));},_renderPronoun:function(a){var b='',c=this._objective;if(this._subjectId){c=true;if(this._subjectId===this._uid)this._reflexive=true;}if(this._uid==FB.Connect.get_loggedInUser()&&this._getBoolAttribute('use-you',true)){if(this._possessive){if(this._reflexive){b='your own';}else b='your';}else if(this._reflexive){b='yourself';}else b='you';}else switch(a.sex){case 'male':if(this._possessive){b=this._reflexive?'his own':'his';}else if(this._reflexive){b='himself';}else if(c){b='him';}else b='he';break;case 'female':if(this._possessive){b=this._reflexive?'her own':'her';}else if(this._reflexive){b='herself';}else if(c){b='her';}else b='she';break;default:if(this._getBoolAttribute('use-they',true)){if(this._possessive){if(this._reflexive){b='their own';}else b='their';}else if(this._reflexive){b='themselves';}else if(c){b='them';}else b='they';}else if(this._possessive){if(this._reflexive){b='his/her own';}else b='his/her';}else if(this._reflexive){b='himself/herself';}else if(c){b='him/her';}else b='he/she';break;}if(this._getBoolAttribute('capitalize',false))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',true)){if(this._reflexive){if(this._possessive){b='your own';}else b='yourself';}else if(this._possessive){b='your';}else b='you';}else if(a){if(null===a.first_name)a.first_name='';if(null===a.last_name)a.last_name='';if(this._firstnameonly&&a.first_name!==undefined){b=FB.String.escapeHTML(a.first_name);}else if(this._lastnameonly&&a.last_name!==undefined)b=FB.String.escapeHTML(a.last_name);if(!b)b=FB.String.escapeHTML(a.name);if(b!==''&&this._possessive)b+='\'s';}if(!b)b=FB.String.escapeHTML(this.getAttribute('if-cant-see','Facebook User'));if(b){if(this._getBoolAttribute('capitalize',false))b=FB.Helper.upperCaseFirstChar(b);if(a&&this._linked){c=FB.Helper.getProfileLink(a,b,this.getAttribute('href',null));}else c=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'),e=this.dom.style,f=this.getAttribute('uid');if(this._getBoolAttribute('facebook-logo'))b+='_with_logo';if(c){c=c+'px';e.width=c;}if(d){d=d+'px';e.height=d;}var g=this.bind(function(h){var i=h?h[0]:null,j=i?i[b]:null;if(!j)j=FB.getDomain('cdn')+FB.XFBML.ProfilePic._defPicMap[b];var k=((c?'width:'+c+';':'')+(d?'height:'+c+';':'')),l=FB.String.format('<img src="{0}" alt="{1}" title="{1}" style="{2}" class="{3}" />',j,i?FB.String.escapeHTML(i.name):'',k,this.dom.className);if(this._getBoolAttribute('linked',true))l=FB.Helper.getProfileLink(i,l,this.getAttribute('href',null));this.dom.innerHTML=l;FB.Dom.addCss(this.dom,'fb_profile_pic_rendered');this.fire('render');});FB.Event.monitor('auth.statusChange',this.bind(function(){if(!this.isValid()){this.fire('render');return true;}if(this.getAttribute('uid',null)=='loggedinuser')f=FB.Helper.getLoggedInUser();if(FB._userStatus&&f){FB.Data._selectByIndex(['name',b],FB.Helper.isUser(f)?'user':'profile',FB.Helper.isUser(f)?'uid':'id',f).wait(g);}else g();}));}});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'),id:this.getAttribute('id'),width:this._getPxAttribute('width',400),height:0,questiontext:this.getAttribute('questiontext'),options:this.getAttribute('options')};this.subscribe('xd.firstVote',FB.bind(this._onInitialVote,this));this.subscribe('xd.vote',FB.bind(this._onChangedVote,this));return true;},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:true,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 true;},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(j,k){var l=0,m=null;function n(){k();m=null;l=(new Date()).getTime();}return function(){if(!m){var o=(new Date()).getTime();if(o-l<j){m=window.setTimeout(n,j-(o-l));}else n();}return true;};}function b(j){if(j.match(/^\d+(?:\.\d+)?%$/)){var k=Math.min(Math.max(parseInt(j,10),0),100);j=k/100;}else if(j!='manual'&&j!='onvisible')j='onvisible';return j;}function c(j){return Math.max(parseInt(j,10)||30,10);}function d(j){if(j=='left'||j=='right')return j;return FB._localeIsRtl?'left':'right';}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:d(this.getAttribute('side')),site:this.getAttribute('site'),action:this.getAttribute('action'),ref:this.getAttribute('ref'),max_age:this.getAttribute('max_age'),trigger:b(this.getAttribute('trigger','')),read_time:c(this.getAttribute('read_time')),num_recommendations:parseInt(this.getAttribute('num_recommendations'),10)||2};FB._inPlugin=true;this._showLoader=false;this.subscribe('iframe.onload',FB.bind(function(){var j=this.dom.children[0];j.className='fbpluginrecommendationsbar'+this._attr.side;},this));var e=FB.bind(function(){FB.Event.unlisten(window,'scroll',e);FB.Event.unlisten(document.documentElement,'click',e);FB.Event.unlisten(document.documentElement,'mousemove',e);window.setTimeout(FB.bind(this.arbiterInform,this,'platform/plugins/recommendations_bar/action',null,FB.Arbiter.BEHAVIOR_STATE),this._attr.read_time*1000);return true;},this);FB.Event.listen(window,'scroll',e);FB.Event.listen(document.documentElement,'click',e);FB.Event.listen(document.documentElement,'mousemove',e);if(this._attr.trigger=="manual"){var f=FB.bind(function(j){if(j==this._attr.href){FB.Event.unsubscribe('xfbml.recommendationsbar.read',f);this.arbiterInform('platform/plugins/recommendations_bar/trigger',null,FB.Arbiter.BEHAVIOR_STATE);}return true;},this);FB.Event.subscribe('xfbml.recommendationsbar.read',f);}else{var g=a(500,FB.bind(function(){if(this.calculateVisibility()){FB.Event.unlisten(window,'scroll',g);FB.Event.unlisten(window,'resize',g);this.arbiterInform('platform/plugins/recommendations_bar/trigger',null,FB.Arbiter.BEHAVIOR_STATE);}return true;},this));FB.Event.listen(window,'scroll',g);FB.Event.listen(window,'resize',g);g();}this.visible=false;var h=a(500,FB.bind(function(){if(!this.visible&&this.calculateVisibility()){this.visible=true;this.arbiterInform('platform/plugins/recommendations_bar/visible');}else if(this.visible&&!this.calculateVisibility()){this.visible=false;this.arbiterInform('platform/plugins/recommendations_bar/invisible');}return true;},this));FB.Event.listen(window,'scroll',h);FB.Event.listen(window,'resize',h);h();this.focused=true;var i=FB.bind(function(){this.focused=!this.focused;return true;},this);FB.Event.listen(window,'blur',i);FB.Event.listen(window,'focus',i);this.resize_running=false;this.animate=false;this.subscribe('xd.signal_animation',FB.bind(function(){this.animate=true;},this));return true;},getSize:function(){return {height:25,width:(this._attr.action=='recommend'?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 false;case "onvisible":var b=this.dom.getBoundingClientRect().top;return b<=a;default:var c=window.pageYOffset||document.body.scrollTop,d=document.documentElement.scrollHeight;return (c+a)/d>=this._attr.trigger;}},_handleResizeMsg:function(a){if(!this.isValid())return;if(a.width)this.getIframeNode().style.width=a.width+'px';if(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)return;var a=this.getIframeNode(),b=this.next_resize;this.next_resize=null;if(this.animate){this.animate=false;this.resize_running=true;FB.Anim.ate(a,{height:b+'px'},330,FB.bind(function(){this.resize_running=false;this._checkNextResize();},this));}else 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',false),fb_register:this._getBoolAttribute('fb-register',false),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')};if(this._attr.onvalidate)this.subscribe('xd.validate',this.bind(function(a){var b=FB.JSON.parse(a.value),c=this.bind(function(e){FB.Arbiter.inform('Registration.Validation',{errors:e,id:a.id},'parent.frames["'+this.getIframeNode().name+'"]',this._attr.channel_url.substring(0,5)=="https");}),d=FB.Helper.executeFunctionByName(this._attr.onvalidate,b,c);if(d)c(d);}));this.subscribe('xd.authLogin',FB.bind(this._onAuthLogin,this));this.subscribe('xd.authLogout',FB.bind(this._onAuthLogout,this));return true;},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){a=['name'];}else try{a=FB.JSON.parse(this._attr.fields);}catch(b){a=this._attr.fields.split(/,/);}if(this._attr.width<this._skinnyWidth){return this._skinnyBaseHeight+a.length*this._skinnyFieldHeight;}else return this._baseHeight+a.length*this._fieldHeight;},getUrlBits:function(){return {name:'registration',params:this._attr};},getDefaultWebDomain:function(){return 'https_www';},_onAuthLogin:function(){if(!FB.getAuthResponse())FB.getLoginStatus();FB.Helper.fireEvent('auth.login',this);},_onAuthLogout:function(){if(!FB.getAuthResponse())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&&a.type==='text/fbml')this._attr.fbml=a.innerHTML;}if(!this._attr.fbml){FB.log('<fb:serverfbml> requires the "fbml" attribute.');return false;}return true;},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(true);},_renderButton:function(a){if(!this.isValid()){this.fire('render');return;}var b='',c='',d='',e='',f=FB.Intl.tx._("Share"),g='';switch(this._type){case 'icon':case 'icon_link':e='fb_button_simple';b=('<span class="fb_button_text">'+(this._type=='icon_link'?f:'&nbsp;')+'</span>');a=false;break;case 'link':b=FB.Intl.tx._("Share on Facebook");a=false;break;case 'button':b='<span class="fb_button_text">'+f+'</span>';e='fb_button fb_button_small';a=false;break;case 'button_count':b='<span class="fb_button_text">'+f+'</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">'+f+'</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';g='fb_share_count_wrapper';}var h=FB.guid();this.dom.innerHTML=FB.String.format('<span class="{0}">{4}<a id="{1}" class="{2}" '+'target="_blank">{3}</a>{5}</span>',g,h,e,b,d,c);var i=document.getElementById(h);i.href=this._href;i.onclick=function(){FB.ui({method:'stream.share',u:this.href});return false;};if(!a)this.fire('render');},_getCounterMarkup:function(){if(!this._count)this._count=FB.Data._selectByIndex(['total_count'],'link_stat','url',this._href);var a='0';if(this._count.value!==undefined){if(this._count.value.length>0){var b=this._count.value[0].total_count;if(b>3){FB.Dom.removeCss(this.dom,'fb_share_count_hidden');a=b>=1e+07?Math.round(b/1e+06)+'M':(b>=10000?Math.round(b/1000)+'K':b);}}}else this._count.wait(FB.bind(this._renderButton,this,false));return '<span class="fb_share_count_inner">'+a+'</span>';}});
FB.subclass('XFBML.SocialContext','XFBML.IframeWidget',null,{setupAndValidate:function(){var a=this.getAttribute('size','small');this._attr={channel:this.getChannelUrl(),width:this._getPxAttribute('width',400),height:this._getPxAttribute('height',100),ref:this.getAttribute('ref'),size:this.getAttribute('size'),keywords:this.getAttribute('keywords'),urls:this.getAttribute('urls')};return true;},getSize:function(){return {width:this._attr.width,height:this._attr.height};},getUrlBits:function(){return {name:'social_context',params:this._attr};}});
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'),href:this.getAttribute('href'),ref:this.getAttribute('ref'),layout:this._getLayout(),show_faces:this._shouldShowFaces(),width:this._getWidgetWidth()};return true;},getUrlBits:function(){return {name:'subscribe',params:this._attr};},_getWidgetWidth:function(){var a=this._getLayout(),b={standard:450,box_count:83,button_count:115},c=b[a],d=this._getPxAttribute('width',c),e={standard:{min:225,max:900},box_count:{min:43,max:900},button_count:{min:63,max:900}};if(d<e[a].min){d=e[a].min;}else if(d>e[a].max)d=e[a].max;return d;}});
void(0);


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":false}, true);
FB.provide("Flash", {"_minVersions":[[10,3,181,34],[11,0,0]],"_swfPath":"rsrc.php\/v1\/yQ\/r\/f3KaqM7xIBg.swf"}, true);
FB.provide("XD", {"_xdProxyUrl":"connect\/xd_proxy.php?version=3"}, true);
FB.provide("Arbiter", {"_canvasProxyUrl":"connect\/canvas_proxy.php?version=3"}, true);
FB.provide('Auth', {"_xdStorePath":"xd_localstorage\/v2"}, true);
FB.provide("Canvas.Prefetcher", {"_appIdsBlacklist":[144959615576466],"_sampleRate":500}, true);
FB.initSitevars = {"parseXFBMLBeforeDomReady":false,"computeContentSizeVersion":0,"enableMobile":1,"enableMobileComments":1,"forceSecureXdProxy":1,"iframePermissions":{"read_stream":false,"manage_mailbox":false,"manage_friendlists":false,"read_mailbox":false,"publish_checkins":true,"status_update":true,"photo_upload":true,"video_upload":true,"sms":false,"create_event":true,"rsvp_event":true,"offline_access":true,"email":true,"xmpp_login":false,"create_note":true,"share_item":true,"export_stream":false,"publish_stream":true,"publish_likes":true,"ads_management":false,"contact_email":true,"access_private_data":false,"read_insights":false,"read_requests":false,"read_friendlists":true,"manage_pages":false,"physical_login":false,"manage_groups":false,"read_deals":false}}; FB.forceOAuth = true; FB.widgetPipeEnabledApps = {"111476658864976":1,"cca6477272fc5cb805f85a84f20fca1d":1,"179150165472010":1}; FB.widgetPipeTagCountThreshold = 4;
FB.provide("TemplateData", {"_enabled":true}, true);
FB.provide("TemplateUI", {"_version":19}, true);
FB.provide("XFBML.ConnectBar", {"imgs":{"buttonUrl":"rsrc.php\/v1\/yY\/r\/h_Y6u1wrZPW.png","missingProfileUrl":"rsrc.php\/v1\/yo\/r\/UlIqmHJn-SK.gif"}}, true);
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"}}, true);
if (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\u0025}\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\u0025;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\u0025;float:left;padding:5px 0 7px 26px}\nbody.fb_hidden{-webkit-transform:none;height:100\u0025;margin:0;left:-10000px;overflow:visible;position:absolute;top:-10000px;width:100\u0025\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\u0025 50\u0025;min-height:100\u0025;min-width:100\u0025;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\u0025;min-height:100\u0025;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\u0025, 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\u0025\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\u0025, 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\u0025 50\u0025;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_fluid{display:inline}\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\u0025;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\u0025;width:100\u0025;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_send_button_form_widget{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\u0025 50\u0025;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\/* \u0040noflip *\/\n.fbpluginrecommendationsbarleft{left:10px}\n\/* \u0040noflip *\/\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"]); }

//::: Social Omniture

(function(){jQuery('a[href$="#login"]','#LoginComponent_GuestMode').bind('click',function(){SendSocialOmnitureRequest("event32",'FB-small');});jQuery('a[href$="#logout"]','#LoginComponent_UserMode').bind('click',function(){SendSocialOmnitureRequest("event44","");});})();function SendSocialOmnitureRequest(event,campaign)
{s.linkTrackEvents=event;s.events=event;s.campaign=campaign;s.t();}
