/* jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement){cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close()}d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1){for(h in a.converters){typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h])}}l=k,k=d[g];if(k==="*"){k=l}else{if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g){i in d&&(c[g[i]]=d[i])}while(f[0]==="*"){f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"))}if(h){for(i in e){if(e[i]&&e[i].test(h)){f.unshift(i);break}}}if(f[0] in d){j=f[0]}else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b)){f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)})}else{if(!c&&f.type(b)==="object"){for(var e in b){b_(a+"["+e+"]",b[e],c,d)}}else{d(a,b)}}}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c){c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d])}e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++){l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)))}(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++){h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border"){for(;e<g;e+=2){c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0}}return d+"px"}d=by(a,b);if(d<0||d==null){d=a.style[b]}if(bt.test(d)){return d}d=parseFloat(d)||0;if(c){for(;e<g;e+=2){d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0)}}return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio"){a.defaultChecked=a.checked}}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i){for(d=0,e=i[c].length;d<e;d++){f.event.add(b,c,i[c][d])}}}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement){while(b.length){c.createElement(b.pop())}}return c}function T(a,b,c){b=b||0;if(f.isFunction(b)){return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c})}if(b.nodeType){return f.grep(a,function(a,d){return a===b===c})}if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b)){return f.filter(b,d,!c)}b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function K(){return !0}function J(){return !1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b])){continue}if(b!=="toJSON"){return !1}}return !0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else{d=b}}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++){b[a[c]]=!0}return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a){return this}if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2]){return f.find(a)}this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return !d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a)){return f.ready(a)}a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++){if((a=arguments[j])!=null){for(c in a){d=i[c],f=a[c];if(i===f){continue}l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}}}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body){return setTimeout(e.ready,1)}e.isReady=!0;if(a!==!0&&--e.readyWait>0){return}A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete"){return setTimeout(e.ready,1)}if(c.addEventListener){c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1)}else{if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return !isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a)){return !1}try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}var d;for(d in a){}return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a){return !1}return !0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b){return null}b=e.trim(b);if(a.JSON&&a.JSON.parse){return a.JSON.parse(b)}if(n.test(b.replace(o,"@").replace(p,"]").replace(q,""))){return(new Function("return "+b))()}e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c){return null}var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a){if(c.apply(a[f],d)===!1){break}}}else{for(;g<h;){if(c.apply(a[g++],d)===!1){break}}}}else{if(i){for(f in a){if(c.call(a[f],f,a[f])===!1){break}}}else{for(;g<h;){if(c.call(a[g],g,a[g++])===!1){break}}}}return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H){return H.call(b,a,c)}d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++){if(c in b&&b[c]===a){return c}}}return -1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number"){for(var f=c.length;e<f;e++){a[d++]=c[e]}}else{while(c[e]!==b){a[d++]=c[e++]}}a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++){e=!!b(a[f],f),c!==e&&d.push(a[f])}return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k){for(;i<j;i++){f=c(a[i],i,d),f!=null&&(h[h.length]=f)}}else{for(g in a){f=c(a[g],g,d),f!=null&&(h[h.length]=f)}}return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a)){return b}var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d){e.access(a,c,l,d[l],1,h,f)}g=1}else{if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c){for(;l<m;l++){c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i)}}g=1}}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test("??")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++){g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)}},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++){if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++){for(var f=0;f<c.length;f++){if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique){break}}}}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++){if(a===c[b]){return !0}}}return !1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return !c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return !d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return !!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null){a=h}else{for(var b in h){a[b]=h[b]}}return a}},i=h.promise({}),j;for(j in g){i[j]=g[j].fire,i[j+"With"]=g[j].fireWith}i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++){b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g}g||j.resolveWith(j,b)}else{j!==a&&j.resolveWith(j,d?[a]:[])}return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent){for(n in {submit:1,change:1,focusin:1}){m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o}}j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div><table "+n+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return !!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b){return}n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function"){e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c)}g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c]){return g.events}k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k]){return}if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++){delete d[b[e]]}if(!(c?m:f.isEmptyObject)(d)){return}}}if(!c){delete j[k].data;if(!m(j[k])){return}}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b){return b!==!0&&a.getAttribute("classid")===b}}return !0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++){h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]))}f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object"){return this.each(function(){f.data(this,a)})}d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d){return f.queue(this[0],a)}return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--){if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0)){h++,l.add(m)}}m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a)){return this.each(function(b){f(this).addClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1){if(!e.className&&b.length===1){e.className=a}else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++){~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ")}e.className=f.trim(g)}}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a)){return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className){if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++){h=h.replace(" "+c[i]+" "," ")}g.className=f.trim(h)}else{g.className=""}}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a)){return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)})}return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++]){i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}}else{if(c==="undefined"||c==="boolean"){this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""}}})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++){if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1){return !0}}return !1},val:function(a){var c,d,e,g=this[0];if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set" in c)||c.set(this,h,"value")===b){this.value=h}}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get" in c&&(d=c.get(g,"value"))!==b){return d}d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return !b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0){return null}c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j){return b}h.push(b)}}if(j&&!h.length&&i.length){return f(i[g]).val()}return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn){return f(a)[c](d)}if(typeof a.getAttribute=="undefined"){return f.prop(a,c,d)}i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set" in h&&i&&(g=h.set(a,d,c))!==b){return g}a.setAttribute(c,""+d);return d}if(h&&"get" in h&&i&&(g=h.get(a,c))!==null){return g}g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++){e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode){f.error("type property can't be changed")}else{if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button")){return w.get(a,b)}return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button")){return w.set(a,b,c)}a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set" in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get" in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b)){return a.checked=f.inArray(f(a).val(),b)>=0}}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1){a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o){f.event.remove(a,j+b[h],c,d,!0)}continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++){s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s))}r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered)){return}h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h]){return}c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j){j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0)}return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1){return}r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode){r.push([m,s]),n=m}n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++){m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault()}c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this){if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++){s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s)}r.length&&j.push({elem:m,matches:r})}}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace)){c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando]){return a}var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;){e=i[--d],a[e]=g[e]}a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event)){return new f.Event(a,b)}a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d)){a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b}return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form")){return !1}f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form")){return !1}f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))})}return !1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox"){return a.handleObj.handler.apply(this,arguments)}},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a){this.on(i,c,d,a[i],g)}return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1){e=J}else{if(!e){return this}}g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a){this.off(g,c,a[g])}return this}if(c===!1||typeof c=="function"){d=c,c=b}d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){return f.event.trigger(a,b,this[0],!0)}},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length){b[d++].guid=c}return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else{if(m.filter(b,[j]).length>0){k=j;break}}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!b||typeof b!="string"){return e}var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b)){if(w.length===2&&o.relative[w[0]]){j=y(w[0]+w[1],d,f)}else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length){b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}}}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length){q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}}else{k=w=[]}}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]"){if(!u){e.push.apply(e,k)}else{if(d&&d.nodeType===1){for(t=0;k[t]!=null;t++){k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t])}}else{for(t=0;k[t]!=null;t++){k[t]&&k[t].nodeType===1&&e.push(j[t])}}}}else{s(k,e)}l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h){for(var b=1;b<a.length;b++){a[b]===a[b-1]&&a.splice(b--,1)}}}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a){return[]}for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter){if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\"){continue}s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f){g=i=!0}else{if(f===!0){continue}}}if(f){for(n=0;(j=s[n])!=null;n++){j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0))}}if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g){return[]}break}}}if(a===q){if(g==null){m.error(a)}else{break}}q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string"){return a.textContent}if(typeof a.innerText=="string"){return a.innerText.replace(k,"")}for(a=a.firstChild;a;a=a.nextSibling){e+=n(a)}}else{if(d===3||d===4){return a.nodeValue}}}else{for(b=0;c=a[b];b++){c.nodeType!==8&&(e+=n(c))}}return e},o=m.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++){if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++){c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b)}d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++){d[e].getAttribute("name")===a[1]&&c.push(d[e])}return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined"){return b.getElementsByTagName(a[1])}}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f){return a}for(var g=0,h;(h=b[g])!=null;g++){h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1))}return !1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else{a[2]&&m.error(a[0])}a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=m(b[3],null,null,c)}else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return !1}}else{if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0])){return !0}}return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0}if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++){if(g[h]===a){return !1}}return !0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling){if(l.nodeType===1){return !1}}if(k==="first"){return !0}l=a;case"last":while(l=l.nextSibling){if(l.nodeType===1){return !1}}return !0;case"nth":c=b[2],e=b[3];if(c===1&&e===0){return !0}f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling){l.nodeType===1&&(l.nodeIndex=++i)}g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f){return f(a,c,b,d)}}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match){o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q))}o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var e=a.length;c<e;c++){d.push(a[c])}}else{for(;a[c];c++){d.push(a[c])}}}return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition){return a.compareDocumentPosition?-1:1}return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex}var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i){return v(a,b)}if(!g){return -1}if(!i){return 1}while(j){e.unshift(j),j=j.parentNode}j=i;while(j){f.unshift(j),j=j.parentNode}c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++){if(e[k]!==f[k]){return v(e[k],f[k])}}return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b){return c}var d=a.nextSibling;while(d){if(d===b){return -1}d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){c[e].nodeType===1&&d.push(c[e])}c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return s(e.getElementsByTagName(b),f)}if(h[2]&&o.find.CLASS&&e.getElementsByClassName){return s(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(b==="body"&&e.body){return s([e.body],f)}if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode){return s([],f)}if(i.id===h[3]){return s([i],f)}}try{return s(e.querySelectorAll(b),f)}catch(j){}}else{if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p){return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}}catch(r){}finally{l||k.removeAttribute("id")}}}}return a(b,e,f,g)};for(var e in a){m[e]=a[e]}b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a)){try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11){return f}}}catch(g){}}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c){return b.getElementsByClassName(a[1])}},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return !1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a)){f+=d[0],a=a.replace(o.match.PSEUDO,"")}a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++){m(a,g[h],e,c)}return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string"){return f(a).filter(function(){for(c=0,d=b.length;c<d;c++){if(f.contains(b[c],this)){return !0}}})}var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0){for(h=g;h<e.length;h++){for(i=0;i<g;i++){if(e[i]===e[h]){e.splice(h--,1);break}}}}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++){if(f.contains(this,b[a])){return !0}}})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return !!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++){f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h})}g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11){break}}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof a=="string"){return f.inArray(this[0],f(a))}return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d))){g.nodeType===1&&e.push(g),g=g[c]}return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){a.nodeType===1&&a!==b&&c.push(a)}return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapAll(a.call(this,b))})}if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})}if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++){if(!a||f.filter(a,[d]).length){!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d)}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild){b.removeChild(b.firstChild)}}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b){return c.nodeType===1?c.innerHTML.replace(W,""):null}if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++){c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a)}c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a)){return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))})}typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j)){return this.each(function(){f(this).domManip(a,c,d,!0)})}if(f.isFunction(j)){return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)})}if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++){d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g){e[g]&&bk(d[g],e[g])}}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g){bj(d[g],e[g])}}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l){continue}if(typeof l=="string"){if(!_.test(l)){l=b.createTextNode(l)}else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--){p=p.lastChild}if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i){f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}}var u;if(!f.support.appendChecked){if(l[0]&&typeof(u=l.length)=="number"){for(i=0;i<u;i++){bn(l[i])}}else{bn(l)}}l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return !a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type))){e.push(h.parentNode?h.parentNode.removeChild(h):h)}else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()]){continue}c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events){e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle)}b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get" in k&&(g=k.get(a,!1,e))!==b){return g}return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d)){return}h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set" in k)||(d=k.set(a,d))!==b){try{j[c]=d}catch(l){}}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get" in g&&(e=g.get(a,!0,d))!==b){return e}if(by){return by(a,c)}},swap:function(a,b,c){var d={},e,f;for(f in b){d[f]=a.style[f],a.style[f]=b[f]}e=c.call(a);for(f in b){a.style[f]=d[f]}return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c){return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})}},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter){return}}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return !f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++){f[a+bx[d]+b]=e[d]||e[d-2]||e[0]}return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR){return bR.apply(this,arguments)}if(!this.length){return this}var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified")){f.lastModified[k]=y}if(z=v.getResponseHeader("Etag")){f.etag[k]=z}}if(a===304){w="notmodified",o=!0}else{try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}}else{u=w;if(!w||a){w="error",a<0&&(a=0)}}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n)){o[c[1].toLowerCase()]=c[2]}}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2){for(b in a){j[b]=[j[b],a[b]]}}else{b=a[v.status],v.then(b,b)}}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2){return !1}t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers){v.setRequestHeader(u,d.headers[u])}if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return !1}for(u in {success:1,error:1,complete:1}){v[u](d[u])}p=bZ(bT,d,c,v);if(!p){w(-1,"No Transport")}else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2){w(-1,z)}else{throw z}}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a)){f.each(a,function(){e(this.name,this.value)})}else{for(var g in a){b_(g,a[g],c,e)}}return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState)){d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")}},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg){cg[a](0,1)}}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return !this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials" in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields){for(j in c.xhrFields){h[j]=c.xhrFields[j]}}c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e){h.setRequestHeader(j,e[j])}}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e){h.readyState!==4&&h.abort()}else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0){return this.animate(ct("show",3),a,b,c)}for(var g=0,h=this.length;g<h;g++){d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)))}for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none"){d.style.display=f._data(d,"olddisplay")||""}}}return this},hide:function(a,b,c){if(a||a===0){return this.animate(ct("hide",3),a,b,c)}var d,e,g=0,h=this.length;for(;g<h;g++){d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e))}for(g=0;g<h;g++){this[g].style&&(this[g].style.display="none")}return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand" in k){l=k.expand(a[g]),delete a[g];for(i in l){i in a||(a[i]=l[i])}}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d){return b.complete.call(this)}c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a){j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""))}return !0}var e=f.speed(b,c,d);if(f.isEmptyObject(a)){return this.each(e.complete,[!1])}a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null){for(b in g){g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b)}}else{g[b=a+".run"]&&g[b].stop&&h(this,g,b)}for(b=e.length;b--;){e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1))}(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0){d.queue="fx"}d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return -Math.cos(a*Math.PI)/2+0.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties){i.animatedProperties[b]!==!0&&(g=!1)}if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show){for(b in i.animatedProperties){f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0)}}d=i.complete,d&&(i.complete=!1,d.call(h))}return !1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return !0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++){a=b[c],!a()&&b[c]===a&&b.splice(c--,1)}b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect" in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a)){return d?{top:d.top,left:d.left}:{top:0,left:0}}var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed"){break}d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static"){k+=h.offsetTop,l+=h.offsetLeft}f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length){return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)})}var c=this[0],d=c&&c.ownerDocument;if(!d){return null}if(c===d.body){return f.offset.bodyOffset(c)}return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using" in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static"){a=a.offsetParent}return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b){return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e]}h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e]){return i[d]}return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
/*
 * jQuery UI 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(e,d){function b(f,c){var g=f.nodeName.toLowerCase();if("area"===g){c=f.parentNode;g=c.name;if(!f.href||!g||c.nodeName.toLowerCase()!=="map"){return false}f=e("img[usemap=#"+g+"]")[0];return !!f&&a(f)}return(/input|select|textarea|button|object/.test(g)?!f.disabled:"a"==g?f.href||c:c)&&a(f)}function a(c){return !e(c).parents().andSelf().filter(function(){return e.curCSS(this,"visibility")==="hidden"||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{};if(!e.ui.version){e.extend(e.ui,{version:"1.8.16",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});e.fn.extend({propAttr:e.fn.prop||e.fn.attr,_focus:e.fn.focus,focus:function(f,c){return typeof f==="number"?this.each(function(){var g=this;setTimeout(function(){e(g).focus();c&&c.call(g)},f)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?e(document):c},zIndex:function(f){if(f!==d){return this.css("zIndex",f)}if(this.length){f=e(this[0]);for(var c;f.length&&f[0]!==document;){c=f.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(f.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c}}f=f.parent()}}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});e.each(["Width","Height"],function(f,c){function l(r,q,p,s){e.each(k,function(){q-=parseFloat(e.curCSS(r,"padding"+this,true))||0;if(p){q-=parseFloat(e.curCSS(r,"border"+this+"Width",true))||0}if(s){q-=parseFloat(e.curCSS(r,"margin"+this,true))||0}});return q}var k=c==="Width"?["Left","Right"]:["Top","Bottom"],j=c.toLowerCase(),g={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+c]=function(m){if(m===d){return g["inner"+c].call(this)}return this.each(function(){e(this).css(j,l(this,m)+"px")})};e.fn["outer"+c]=function(n,m){if(typeof n!=="number"){return g["outer"+c].call(this,n)}return this.each(function(){e(this).css(j,l(this,n,true,m)+"px")})}});e.extend(e.expr[":"],{data:function(f,c,g){return !!e.data(f,g[3])},focusable:function(c){return b(c,!isNaN(e.attr(c,"tabindex")))},tabbable:function(f){var c=e.attr(f,"tabindex"),g=isNaN(c);return(g||c>=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,j){f=e.ui[f].prototype;for(var g in j){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,j[g]])}},call:function(f,c,j){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g<c.length;g++){f.options[c[g][0]]&&c[g][1].apply(f.element,j)}}}},contains:function(f,c){return document.compareDocumentPosition?f.compareDocumentPosition(c)&16:f!==c&&f.contains(c)},hasScroll:function(f,c){if(e(f).css("overflow")==="hidden"){return false}c=c&&c==="left"?"scrollLeft":"scrollTop";var g=false;if(f[c]>0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f<c+g},isOver:function(f,c,l,k,j,g){return e.ui.isOverAxis(f,l,j)&&e.ui.isOverAxis(c,k,g)}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,e){if(a.cleanData){var d=a.cleanData;a.cleanData=function(b){for(var j=0,g;(g=b[j])!=null;j++){try{a(g).triggerHandler("remove")}catch(f){}}d(b)}}else{var c=a.fn.remove;a.fn.remove=function(b,f){return this.each(function(){if(!f){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(g){}})}}return c.call(a(this),b,f)})}}a.widget=function(b,l,k){var j=b.split(".")[0],g;b=b.split(".")[1];g=j+"-"+b;if(!k){k=l;l=a.Widget}a.expr[":"][g]=function(f){return !!a.data(f,b)};a[j]=a[j]||{};a[j][b]=function(f,m){arguments.length&&this._createWidget(f,m)};l=new l;l.options=a.extend(true,{},l.options);a[j][b].prototype=a.extend(true,l,{namespace:j,widgetName:b,widgetEventPrefix:a[j][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},k);a.widget.bridge(b,a[j][b])};a.widget.bridge=function(b,f){a.fn[b]=function(l){var k=typeof l==="string",j=Array.prototype.slice.call(arguments,1),g=this;l=!k&&j.length?a.extend.apply(null,[true,l].concat(j)):l;if(k&&l.charAt(0)==="_"){return g}k?this.each(function(){var n=a.data(this,b),m=n&&a.isFunction(n[l])?n[l].apply(n,j):n;if(m!==n&&m!==e){g=m;return false}}):this.each(function(){var m=a.data(this,b);m?m.option(l||{})._init():a.data(this,b,new f(l,this))});return g}};a.Widget=function(b,f){arguments.length&&this._createWidget(b,f)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,g){a.data(g,this.widgetName,this);this.element=a(g);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var f=this;this.element.bind("remove."+this.widgetName,function(){f.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,g){var f=b;if(arguments.length===0){return a.extend({},this.options)}if(typeof b==="string"){if(g===e){return this.options[b]}f={};f[b]=g}this._setOptions(f);return this},_setOptions:function(b){var f=this;a.each(b,function(j,g){f._setOption(j,g)});return this},_setOption:function(b,f){this.options[b]=f;if(b==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,l,k){var j=this.options[b];l=a.Event(l);l.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();k=k||{};if(l.originalEvent){b=a.event.props.length;for(var g;b;){g=a.event.props[--b];l[g]=l.originalEvent[g]}}this.element.trigger(l,k);return !(a.isFunction(j)&&j.call(this.element[0],l,k)===false||l.isDefaultPrevented())}}})(jQuery);(function(f){f.ui=f.ui||{};var e=/left|center|right/,d=/top|center|bottom/,b=f.fn.position,a=f.fn.offset;f.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments)}c=f.extend({},c);var l=f(c.of),s=l[0],q=(c.collision||"flip").split(" "),r=c.offset?c.offset.split(" "):[0,0],p,m,n;if(s.nodeType===9){p=l.width();m=l.height();n={top:0,left:0}}else{if(s.setTimeout){p=l.width();m=l.height();n={top:l.scrollTop(),left:l.scrollLeft()}}else{if(s.preventDefault){c.at="left top";p=m=0;n={top:c.of.pageY,left:c.of.pageX}}else{p=l.outerWidth();m=l.outerHeight();n=l.offset()}}}f.each(["my","at"],function(){var g=(c[this]||"").split(" ");if(g.length===1){g=e.test(g[0])?g.concat(["center"]):d.test(g[0])?["center"].concat(g):["center","center"]}g[0]=e.test(g[0])?g[0]:"center";g[1]=d.test(g[1])?g[1]:"center";c[this]=g});if(q.length===1){q[1]=q[0]}r[0]=parseInt(r[0],10)||0;if(r.length===1){r[1]=r[0]}r[1]=parseInt(r[1],10)||0;if(c.at[0]==="right"){n.left+=p}else{if(c.at[0]==="center"){n.left+=p/2}}if(c.at[1]==="bottom"){n.top+=m}else{if(c.at[1]==="center"){n.top+=m/2}}n.left+=r[0];n.top+=r[1];return this.each(function(){var y=f(this),u=y.outerWidth(),t=y.outerHeight(),k=parseInt(f.curCSS(this,"marginLeft",true))||0,j=parseInt(f.curCSS(this,"marginTop",true))||0,A=u+k+(parseInt(f.curCSS(this,"marginRight",true))||0),z=t+j+(parseInt(f.curCSS(this,"marginBottom",true))||0),x=f.extend({},n),g;if(c.my[0]==="right"){x.left-=u}else{if(c.my[0]==="center"){x.left-=u/2}}if(c.my[1]==="bottom"){x.top-=t}else{if(c.my[1]==="center"){x.top-=t/2}}x.left=Math.round(x.left);x.top=Math.round(x.top);g={left:x.left-k,top:x.top-j};f.each(["left","top"],function(B,v){f.ui.position[q[B]]&&f.ui.position[q[B]][v](x,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:t,collisionPosition:g,collisionWidth:A,collisionHeight:z,offset:r,my:c.my,at:c.at})});f.fn.bgiframe&&y.bgiframe();y.offset(f.extend(x,{using:c.using}))})};f.ui.position={fit:{left:function(c,g){var j=f(window);j=g.collisionPosition.left+g.collisionWidth-j.width()-j.scrollLeft();c.left=j>0?c.left-j:Math.max(c.left-g.collisionPosition.left,c.left)},top:function(c,g){var j=f(window);j=g.collisionPosition.top+g.collisionHeight-j.height()-j.scrollTop();c.top=j>0?c.top-j:Math.max(c.top-g.collisionPosition.top,c.top)}},flip:{left:function(c,j){if(j.at[0]!=="center"){var n=f(window);n=j.collisionPosition.left+j.collisionWidth-n.width()-n.scrollLeft();var l=j.my[0]==="left"?-j.elemWidth:j.my[0]==="right"?j.elemWidth:0,m=j.at[0]==="left"?j.targetWidth:-j.targetWidth,k=-2*j.offset[0];c.left+=j.collisionPosition.left<0?l+m+k:n>0?l+m+k:0}},top:function(c,j){if(j.at[1]!=="center"){var n=f(window);n=j.collisionPosition.top+j.collisionHeight-n.height()-n.scrollTop();var l=j.my[1]==="top"?-j.elemHeight:j.my[1]==="bottom"?j.elemHeight:0,m=j.at[1]==="top"?j.targetHeight:-j.targetHeight,k=-2*j.offset[1];c.top+=j.collisionPosition.top<0?l+m+k:n>0?l+m+k:0}}}};if(!f.offset.setOffset){f.offset.setOffset=function(c,j){if(/static/.test(f.curCSS(c,"position"))){c.style.position="relative"}var n=f(c),l=n.offset(),m=parseInt(f.curCSS(c,"top",true),10)||0,k=parseInt(f.curCSS(c,"left",true),10)||0;l={top:j.top-l.top+m,left:j.left-l.left+k};"using" in j?j.using.call(c,l):n.css(l)};f.fn.offset=function(c){var g=this[0];if(!g||!g.ownerDocument){return null}if(c){return this.each(function(){f.offset.setOffset(this,c)})}return a.call(this)}}})(jQuery);jQuery.effects||function(x,v){function e(j){var f;if(j&&j.constructor==Array&&j.length==3){return j}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(j)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(j)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(j)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(j)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(/rgba\(0, 0, 0, 0\)/.exec(j)){return d.transparent}return d[x.trim(j).toLowerCase()]}function A(k,j){var f;do{f=x.curCSS(k,j);if(f!=""&&f!="transparent"||x.nodeName(k,"body")){break}j="backgroundColor"}while(k=k.parentNode);return e(f)}function c(){var m=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,j={},f,l;if(m&&m.length&&m[0]&&m[m[0]]){for(var k=m.length;k--;){f=m[k];if(typeof m[f]=="string"){l=f.replace(/\-(\w)/g,function(p,n){return n.toUpperCase()});j[l]=m[f]}}}else{for(f in m){if(typeof m[f]==="string"){j[f]=m[f]}}}return j}function b(k){var j,f;for(j in k){f=k[j];if(f==null||x.isFunction(f)||j in z||/scrollbar/.test(j)||!/color/i.test(j)&&isNaN(parseFloat(f))){delete k[j]}}return k}function y(l,j){var f={_:0},k;for(k in j){if(l[k]!=j[k]){f[k]=j[k]}}return f}function r(l,j,f,k){if(typeof l=="object"){k=j;f=null;j=l;l=j.effect}if(x.isFunction(j)){k=j;f=null;j={}}if(typeof j=="number"||x.fx.speeds[j]){k=f;f=j;j={}}if(x.isFunction(f)){k=f;f=null}j=j||{};f=f||j.duration;f=x.fx.off?0:typeof f=="number"?f:f in x.fx.speeds?x.fx.speeds[f]:x.fx.speeds._default;k=k||j.complete;return[l,j,f,k]}function g(f){if(!f||typeof f==="number"||x.fx.speeds[f]){return true}if(typeof f==="string"&&!x.effects[f]){return true}return false}x.effects={};x.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(j,f){x.fx.step[f]=function(k){if(!k.colorInit){k.start=A(k.elem,f);k.end=e(k.end);k.colorInit=true}k.elem.style[f]="rgb("+Math.max(Math.min(parseInt(k.pos*(k.end[0]-k.start[0])+k.start[0],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[1]-k.start[1])+k.start[1],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[2]-k.start[2])+k.start[2],10),255),0)+")"}});var d={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},a=["add","remove","toggle"],z={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};x.effects.animateClass=function(l,j,f,k){if(x.isFunction(f)){k=f;f=null}return this.queue(function(){var s=x(this),q=s.attr("style")||" ",n=b(c.call(this)),p,m=s.attr("class");x.each(a,function(t,u){l[u]&&s[u+"Class"](l[u])});p=b(c.call(this));s.attr("class",m);s.animate(y(n,p),{queue:false,duration:j,easing:f,complete:function(){x.each(a,function(t,u){l[u]&&s[u+"Class"](l[u])});if(typeof s.attr("style")=="object"){s.attr("style").cssText="";s.attr("style").cssText=q}else{s.attr("style",q)}k&&k.apply(this,arguments);x.dequeue(this)}})})};x.fn.extend({_addClass:x.fn.addClass,addClass:function(l,j,f,k){return j?x.effects.animateClass.apply(this,[{add:l},j,f,k]):this._addClass(l)},_removeClass:x.fn.removeClass,removeClass:function(l,j,f,k){return j?x.effects.animateClass.apply(this,[{remove:l},j,f,k]):this._removeClass(l)},_toggleClass:x.fn.toggleClass,toggleClass:function(m,j,f,l,k){return typeof j=="boolean"||j===v?f?x.effects.animateClass.apply(this,[j?{add:m}:{remove:m},f,l,k]):this._toggleClass(m,j):x.effects.animateClass.apply(this,[{toggle:m},j,f,l])},switchClass:function(m,j,f,l,k){return x.effects.animateClass.apply(this,[{add:j,remove:m},f,l,k])}});x.extend(x.effects,{version:"1.8.16",save:function(k,j){for(var f=0;f<j.length;f++){j[f]!==null&&k.data("ec.storage."+j[f],k[0].style[j[f]])}},restore:function(k,j){for(var f=0;f<j.length;f++){j[f]!==null&&k.css(j[f],k.data("ec.storage."+j[f]))}},setMode:function(j,f){if(f=="toggle"){f=j.is(":hidden")?"show":"hide"}return f},getBaseline:function(k,j){var f;switch(k[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=k[0]/j.height}switch(k[1]){case"left":k=0;break;case"center":k=0.5;break;case"right":k=1;break;default:k=k[1]/j.width}return{x:k,y:f}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper")){return l.parent()}var j={width:l.outerWidth(true),height:l.outerHeight(true),"float":l.css("float")},f=x("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),k=document.activeElement;l.wrap(f);if(l[0]===k||x.contains(l[0],k)){x(k).focus()}f=l.parent();if(l.css("position")=="static"){f.css({position:"relative"});l.css({position:"relative"})}else{x.extend(j,{position:l.css("position"),zIndex:l.css("z-index")});x.each(["top","left","bottom","right"],function(n,m){j[m]=l.css(m);if(isNaN(parseInt(j[m],10))){j[m]="auto"}});l.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return f.css(j).show()},removeWrapper:function(k){var j,f=document.activeElement;if(k.parent().is(".ui-effects-wrapper")){j=k.parent().replaceWith(k);if(k[0]===f||x.contains(k[0],f)){x(f).focus()}return j}return k},setTransition:function(l,j,f,k){k=k||{};x.each(j,function(n,m){unit=l.cssUnit(m);if(unit[0]>0){k[m]=unit[0]*f+unit[1]}});return k}});x.fn.extend({effect:function(l){var j=r.apply(this,arguments),f={options:j[1],duration:j[2],callback:j[3]};j=f.options.mode;var k=x.effects[l];if(x.fx.off||!k){return j?this[j](f.duration,f.callback):this.each(function(){f.callback&&f.callback.call(this)})}return k.call(this,f)},_show:x.fn.show,show:function(j){if(g(j)){return this._show.apply(this,arguments)}else{var f=r.apply(this,arguments);f[1].mode="show";return this.effect.apply(this,f)}},_hide:x.fn.hide,hide:function(j){if(g(j)){return this._hide.apply(this,arguments)}else{var f=r.apply(this,arguments);f[1].mode="hide";return this.effect.apply(this,f)}},__toggle:x.fn.toggle,toggle:function(j){if(g(j)||typeof j==="boolean"||x.isFunction(j)){return this.__toggle.apply(this,arguments)}else{var f=r.apply(this,arguments);f[1].mode="toggle";return this.effect.apply(this,f)}},cssUnit:function(k){var j=this.css(k),f=[];x.each(["em","px","%","pt"],function(m,l){if(j.indexOf(l)>0){f=[parseFloat(j),l]}});return f}});x.easing.jswing=x.easing.swing;x.extend(x.easing,{def:"easeOutQuad",swing:function(m,j,f,l,k){return x.easing[x.easing.def](m,j,f,l,k)},easeInQuad:function(m,j,f,l,k){return l*(j/=k)*j+f},easeOutQuad:function(m,j,f,l,k){return -l*(j/=k)*(j-2)+f},easeInOutQuad:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j+f}return -l/2*(--j*(j-2)-1)+f},easeInCubic:function(m,j,f,l,k){return l*(j/=k)*j*j+f},easeOutCubic:function(m,j,f,l,k){return l*((j=j/k-1)*j*j+1)+f},easeInOutCubic:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j+f}return l/2*((j-=2)*j*j+2)+f},easeInQuart:function(m,j,f,l,k){return l*(j/=k)*j*j*j+f},easeOutQuart:function(m,j,f,l,k){return -l*((j=j/k-1)*j*j*j-1)+f},easeInOutQuart:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j*j+f}return -l/2*((j-=2)*j*j*j-2)+f},easeInQuint:function(m,j,f,l,k){return l*(j/=k)*j*j*j*j+f},easeOutQuint:function(m,j,f,l,k){return l*((j=j/k-1)*j*j*j*j+1)+f},easeInOutQuint:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j*j*j+f}return l/2*((j-=2)*j*j*j*j+2)+f},easeInSine:function(m,j,f,l,k){return -l*Math.cos(j/k*(Math.PI/2))+l+f},easeOutSine:function(m,j,f,l,k){return l*Math.sin(j/k*(Math.PI/2))+f},easeInOutSine:function(m,j,f,l,k){return -l/2*(Math.cos(Math.PI*j/k)-1)+f},easeInExpo:function(m,j,f,l,k){return j==0?f:l*Math.pow(2,10*(j/k-1))+f},easeOutExpo:function(m,j,f,l,k){return j==k?f+l:l*(-Math.pow(2,-10*j/k)+1)+f},easeInOutExpo:function(m,j,f,l,k){if(j==0){return f}if(j==k){return f+l}if((j/=k/2)<1){return l/2*Math.pow(2,10*(j-1))+f}return l/2*(-Math.pow(2,-10*--j)+2)+f},easeInCirc:function(m,j,f,l,k){return -l*(Math.sqrt(1-(j/=k)*j)-1)+f},easeOutCirc:function(m,j,f,l,k){return l*Math.sqrt(1-(j=j/k-1)*j)+f},easeInOutCirc:function(m,j,f,l,k){if((j/=k/2)<1){return -l/2*(Math.sqrt(1-j*j)-1)+f}return l/2*(Math.sqrt(1-(j-=2)*j)+1)+f},easeInElastic:function(p,j,f,n,m){p=1.70158;var l=0,k=n;if(j==0){return f}if((j/=m)==1){return f+n}l||(l=m*0.3);if(k<Math.abs(n)){k=n;p=l/4}else{p=l/(2*Math.PI)*Math.asin(n/k)}return -(k*Math.pow(2,10*(j-=1))*Math.sin((j*m-p)*2*Math.PI/l))+f},easeOutElastic:function(p,j,f,n,m){p=1.70158;var l=0,k=n;if(j==0){return f}if((j/=m)==1){return f+n}l||(l=m*0.3);if(k<Math.abs(n)){k=n;p=l/4}else{p=l/(2*Math.PI)*Math.asin(n/k)}return k*Math.pow(2,-10*j)*Math.sin((j*m-p)*2*Math.PI/l)+n+f},easeInOutElastic:function(p,j,f,n,m){p=1.70158;var l=0,k=n;if(j==0){return f}if((j/=m/2)==2){return f+n}l||(l=m*0.3*1.5);if(k<Math.abs(n)){k=n;p=l/4}else{p=l/(2*Math.PI)*Math.asin(n/k)}if(j<1){return -0.5*k*Math.pow(2,10*(j-=1))*Math.sin((j*m-p)*2*Math.PI/l)+f}return k*Math.pow(2,-10*(j-=1))*Math.sin((j*m-p)*2*Math.PI/l)*0.5+n+f},easeInBack:function(n,j,f,m,l,k){if(k==v){k=1.70158}return m*(j/=l)*j*((k+1)*j-k)+f},easeOutBack:function(n,j,f,m,l,k){if(k==v){k=1.70158}return m*((j=j/l-1)*j*((k+1)*j+k)+1)+f},easeInOutBack:function(n,j,f,m,l,k){if(k==v){k=1.70158}if((j/=l/2)<1){return m/2*j*j*(((k*=1.525)+1)*j-k)+f}return m/2*((j-=2)*j*(((k*=1.525)+1)*j+k)+2)+f},easeInBounce:function(m,j,f,l,k){return l-x.easing.easeOutBounce(m,k-j,0,l,k)+f},easeOutBounce:function(m,j,f,l,k){return(j/=k)<1/2.75?l*7.5625*j*j+f:j<2/2.75?l*(7.5625*(j-=1.5/2.75)*j+0.75)+f:j<2.5/2.75?l*(7.5625*(j-=2.25/2.75)*j+0.9375)+f:l*(7.5625*(j-=2.625/2.75)*j+0.984375)+f},easeInOutBounce:function(m,j,f,l,k){if(j<k/2){return x.easing.easeInBounce(m,j*2,0,l,k)*0.5+f}return x.easing.easeOutBounce(m,j*2-k,0,l,k)*0.5+l*0.5+f}})}(jQuery);(function(a){a.effects.bounce=function(c){return this.queue(function(){var x=a(this),e=["position","top","bottom","left","right"],r=a.effects.setMode(x,c.options.mode||"effect"),u=c.options.direction||"up",v=c.options.distance||20,b=c.options.times||5,q=c.duration||250;/show|hide/.test(r)&&e.push("opacity");a.effects.save(x,e);x.show();a.effects.createWrapper(x);var t=u=="up"||u=="down"?"top":"left";u=u=="up"||u=="left"?"pos":"neg";v=c.options.distance||(t=="top"?x.outerHeight({margin:true})/3:x.outerWidth({margin:true})/3);if(r=="show"){x.css("opacity",0).css(t,u=="pos"?-v:v)}if(r=="hide"){v/=b*2}r!="hide"&&b--;if(r=="show"){var s={opacity:1};s[t]=(u=="pos"?"+=":"-=")+v;x.animate(s,q/2,c.options.easing);v/=2;b--}for(s=0;s<b;s++){var p={},n={};p[t]=(u=="pos"?"-=":"+=")+v;n[t]=(u=="pos"?"+=":"-=")+v;x.animate(p,q/2,c.options.easing).animate(n,q/2,c.options.easing);v=r=="hide"?v*2:v/2}if(r=="hide"){s={opacity:0};s[t]=(u=="pos"?"-=":"+=")+v;x.animate(s,q/2,c.options.easing,function(){x.hide();a.effects.restore(x,e);a.effects.removeWrapper(x);c.callback&&c.callback.apply(this,arguments)})}else{p={};n={};p[t]=(u=="pos"?"-=":"+=")+v;n[t]=(u=="pos"?"+=":"-=")+v;x.animate(p,q/2,c.options.easing).animate(n,q/2,c.options.easing,function(){a.effects.restore(x,e);a.effects.removeWrapper(x);c.callback&&c.callback.apply(this,arguments)})}x.queue("fx",function(){x.dequeue()});x.dequeue()})}})(jQuery);
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright ?? 2008 George McGinley Smith
 * All rights reserved.
 */
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,j,g){return jQuery.easing[jQuery.easing.def](e,f,a,j,g)},easeInQuad:function(e,f,a,j,g){return j*(f/=g)*f+a},easeOutQuad:function(e,f,a,j,g){return -j*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,j,g){if((f/=g/2)<1){return j/2*f*f+a}return -j/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,j,g){return j*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,j,g){return j*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,j,g){if((f/=g/2)<1){return j/2*f*f*f+a}return j/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,j,g){return j*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,j,g){return -j*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,j,g){if((f/=g/2)<1){return j/2*f*f*f*f+a}return -j/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,j,g){return j*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,j,g){return j*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,j,g){if((f/=g/2)<1){return j/2*f*f*f*f*f+a}return j/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,j,g){return -j*Math.cos(f/g*(Math.PI/2))+j+a},easeOutSine:function(e,f,a,j,g){return j*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,j,g){return -j/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,j,g){return(f==0)?a:j*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,j,g){return(f==g)?a+j:j*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,j,g){if(f==0){return a}if(f==g){return a+j}if((f/=g/2)<1){return j/2*Math.pow(2,10*(f-1))+a}return j/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,j,g){return -j*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,j,g){return j*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,j,g){if((f/=g/2)<1){return -j/2*(Math.sqrt(1-f*f)-1)+a}return j/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,j,e,n,m){var k=1.70158;var l=0;var g=n;if(j==0){return e}if((j/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return -(g*Math.pow(2,10*(j-=1))*Math.sin((j*m-k)*(2*Math.PI)/l))+e},easeOutElastic:function(f,j,e,n,m){var k=1.70158;var l=0;var g=n;if(j==0){return e}if((j/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return g*Math.pow(2,-10*j)*Math.sin((j*m-k)*(2*Math.PI)/l)+n+e},easeInOutElastic:function(f,j,e,n,m){var k=1.70158;var l=0;var g=n;if(j==0){return e}if((j/=m/2)==2){return e+n}if(!l){l=m*(0.3*1.5)}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}if(j<1){return -0.5*(g*Math.pow(2,10*(j-=1))*Math.sin((j*m-k)*(2*Math.PI)/l))+e}return g*Math.pow(2,-10*(j-=1))*Math.sin((j*m-k)*(2*Math.PI)/l)*0.5+n+e},easeInBack:function(e,f,a,k,j,g){if(g==undefined){g=1.70158}return k*(f/=j)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,k,j,g){if(g==undefined){g=1.70158}return k*((f=f/j-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,k,j,g){if(g==undefined){g=1.70158}if((f/=j/2)<1){return k/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return k/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,j,g){return j-jQuery.easing.easeOutBounce(e,g-f,0,j,g)+a},easeOutBounce:function(e,f,a,j,g){if((f/=g)<(1/2.75)){return j*(7.5625*f*f)+a}else{if(f<(2/2.75)){return j*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return j*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return j*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,j,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,j,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,j,g)*0.5+j*0.5+a}});(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return e}var f=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safari||f.compatMode=="BackCompat"?f.body:f.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var n=this,l=c(n),m=f,k,g={},p=l.is("html,body");switch(typeof m){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(m)){m=b(m);break}m=c(m,this);case"object":if(m.is||m.style){k=(m=c(m)).offset()}}c.each(d.axis.split(""),function(t,u){var v=u=="x"?"Left":"Top",y=v.toLowerCase(),s="scroll"+v,r=n[s],q=a.max(n,u);if(k){g[s]=k[y]+(p?0:r-l.offset()[y]);if(d.margin){g[s]-=parseInt(m.css("margin"+v))||0;g[s]-=parseInt(m.css("border"+v+"Width"))||0}g[s]+=d.offset[y]||0;if(d.over[y]){g[s]+=m[u=="x"?"width":"height"]()*d.over[y]}}else{var x=m[y];g[s]=x.slice&&x.slice(-1)=="%"?parseFloat(x)/100*q:x}if(/^\d+$/.test(g[s])){g[s]=g[s]<=0?0:Math.min(g[s],q)}if(!t&&d.queue){if(r!=g[s]){j(d.onAfterFirst)}delete g[s]}});j(d.onAfter);function j(q){l.animate(g,e,d.easing,q&&function(){q.call(this,f,d)})}}).end()};a.max=function(l,k){var j=k=="x"?"Width":"Height",e="scroll"+j;if(!c(l).is("html,body")){return l[e]-c(l)[j.toLowerCase()]()}var g="client"+j,f=l.ownerDocument.documentElement,d=l.ownerDocument.body;return Math.max(f[e],d[e])-Math.min(f[g],d[g])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);
/*
 * jQuery Form Plugin
 * version: 2.24 (10-MAR-2009)
 * @requires jQuery v1.2.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.ajaxSubmit=function(u){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof u=="function"){u={success:u}}var e=this.attr("action")||window.location.href;e=(e.match(/^([^#]+)/)||[])[1];e=e||"";u=b.extend({url:e,type:this.attr("method")||"GET"},u||{});var x={};this.trigger("form-pre-serialize",[this,u,x]);if(x.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(u.beforeSerialize&&u.beforeSerialize(this,u)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var p=this.formToArray(u.semantic);if(u.data){u.extraData=u.data;for(var f in u.data){if(u.data[f] instanceof Array){for(var g in u.data[f]){p.push({name:f,value:u.data[f][g]})}}else{p.push({name:f,value:u.data[f]})}}}if(u.beforeSubmit&&u.beforeSubmit(p,this,u)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[p,this,u,x]);if(x.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(p);if(u.type.toUpperCase()=="GET"){u.url+=(u.url.indexOf("?")>=0?"&":"?")+d;u.data=null}else{u.data=d}var v=this,m=[];if(u.resetForm){m.push(function(){v.resetForm()})}if(u.clearForm){m.push(function(){v.clearForm()})}if(!u.dataType&&u.target){var s=u.success||function(){};m.push(function(j){b(u.target).html(j).each(s,arguments)})}else{if(u.success){m.push(u.success)}}u.success=function(q,k){for(var n=0,j=m.length;n<j;n++){m[n].apply(u,[q,k,v])}};var c=b("input:file",this).fieldValue();var t=false;for(var l=0;l<c.length;l++){if(c[l]){t=true}}if(u.iframe||t){if(u.closeKeepAlive){b.get(u.closeKeepAlive,r)}else{r()}}else{b.ajax(u)}this.trigger("form-submit-notify",[this,u]);return this;function r(){var z=v[0];if(b(":input[name=submit]",z).length){alert('Error: Form elements must not be named "submit".');return}var q=b.extend({},b.ajaxSettings,u);var J=jQuery.extend(true,{},b.extend(true,{},b.ajaxSettings),q);var y="jqFormIO"+(new Date().getTime());var F=b('<iframe id="'+y+'" name="'+y+'" src="about:blank" />');var H=F[0];F.css({position:"absolute",top:"-1000px",left:"-1000px"});var I={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;F.attr("src","about:blank")}};var G=q.global;if(G&&!b.active++){b.event.trigger("ajaxStart")}if(G){b.event.trigger("ajaxSend",[I,q])}if(J.beforeSend&&J.beforeSend(I,J)===false){J.global&&jQuery.active--;return}if(I.aborted){return}var k=0;var B=0;var j=z.clk;if(j){var A=j.name;if(A&&!j.disabled){u.extraData=u.extraData||{};u.extraData[A]=j.value;if(j.type=="image"){u.extraData[name+".x"]=z.clk_x;u.extraData[name+".y"]=z.clk_y}}}setTimeout(function(){var M=v.attr("target"),K=v.attr("action");z.setAttribute("target",y);if(z.getAttribute("method")!="POST"){z.setAttribute("method","POST")}if(z.getAttribute("action")!=q.url){z.setAttribute("action",q.url)}if(!u.skipEncodingOverride){v.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(q.timeout){setTimeout(function(){B=true;C()},q.timeout)}var L=[];try{if(u.extraData){for(var N in u.extraData){L.push(b('<input type="hidden" name="'+N+'" value="'+u.extraData[N]+'" />').appendTo(z)[0])}}F.appendTo("body");H.attachEvent?H.attachEvent("onload",C):H.addEventListener("load",C,false);z.submit()}finally{z.setAttribute("action",K);M?z.setAttribute("target",M):v.removeAttr("target");b(L).remove()}},10);var D=0;function C(){if(k++){return}H.detachEvent?H.detachEvent("onload",C):H.removeEventListener("load",C,false);var K=true;try{if(B){throw"timeout"}var L,N;N=H.contentWindow?H.contentWindow.document:H.contentDocument?H.contentDocument:H.document;if((N.body==null||N.body.innerHTML=="")&&!D){D=1;k--;setTimeout(C,100);return}I.responseText=N.body?N.body.innerHTML:null;I.responseXML=N.XMLDocument?N.XMLDocument:N;I.getResponseHeader=function(P){var O={"content-type":q.dataType};return O[P]};if(q.dataType=="json"||q.dataType=="script"){var n=N.getElementsByTagName("textarea")[0];I.responseText=n?n.value:I.responseText}else{if(q.dataType=="xml"&&!I.responseXML&&I.responseText!=null){I.responseXML=E(I.responseText)}}L=b.httpData(I,q.dataType)}catch(M){K=false;b.handleError(q,I,"error",M)}if(K){q.success(L,"success");if(G){b.event.trigger("ajaxSuccess",[I,q])}}if(G){b.event.trigger("ajaxComplete",[I,q])}if(G&&!--b.active){b.event.trigger("ajaxStop")}if(q.complete){q.complete(I,K?"success":"error")}setTimeout(function(){F.remove();I.responseXML=null},100)}function E(n,K){if(window.ActiveXObject){K=new ActiveXObject("Microsoft.XMLDOM");K.async="false";K.loadXML(n)}else{K=(new DOMParser()).parseFromString(n,"text/xml")}return(K&&K.documentElement&&K.documentElement.tagName!="parsererror")?K:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);return false}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(f){var d=this.form;d.clk=this;if(this.type=="image"){if(f.offsetX!=undefined){d.clk_x=f.offsetX;d.clk_y=f.offsetY}else{if(typeof b.fn.offset=="function"){var g=b(this).offset();d.clk_x=f.pageX-g.left;d.clk_y=f.pageY-g.top}else{d.clk_x=f.pageX-this.offsetLeft;d.clk_y=f.pageY-this.offsetTop}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")})};b.fn.formToArray=function(s){var r=[];if(this.length==0){return r}var d=this[0];var k=s?d.getElementsByTagName("*"):d.elements;if(!k){return r}for(var l=0,p=k.length;l<p;l++){var e=k[l];var f=e.name;if(!f){continue}if(s&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){r.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var t=b.fieldValue(e,true);if(t&&t.constructor==Array){for(var g=0,c=t.length;g<c;g++){r.push({name:f,value:t[g]})}}else{if(t!==null&&typeof t!="undefined"){r.push({name:f,value:t})}}}if(!s&&d.clk){var m=d.getElementsByTagName("input");for(var l=0,p=m.length;l<p;l++){var q=m[l];var f=q.name;if(f&&!q.disabled&&q.type=="image"&&d.clk==q){r.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}}return r};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var j=this.name;if(!j){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:j,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(j){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,j);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,k){var e=c.name,r=c.type,s=c.tagName.toLowerCase();if(typeof k=="undefined"){k=true}if(k&&(!e||c.disabled||r=="reset"||r=="button"||(r=="checkbox"||r=="radio")&&!c.checked||(r=="submit"||r=="image")&&c.form&&c.form.clk!=c||s=="select"&&c.selectedIndex==-1)){return null}if(s=="select"){var l=c.selectedIndex;if(l<0){return null}var p=[],d=c.options;var g=(r=="select-one");var m=(g?l+1:d.length);for(var f=(g?l:0);f<m;f++){var j=d[f];if(j.selected){var q=j.value;if(!q){q=(j.attributes&&j.attributes.value&&!(j.attributes.value.specified))?j.text:j.value}if(g){return q}p.push(q)}}return p}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);
/*
 * jquery.Jcrop.js v0.9.8
 * jQuery Image Cropping Plugin
 * @author Kelly Hallman <khallman@gmail.com>
 * Copyright (c) 2008-2009 Kelly Hallman - released under MIT License {{{
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 */
(function(a){a.Jcrop=function(d,B){var d=d,B=B;if(typeof(d)!=="object"){d=a(d)[0]}if(typeof(B)!=="object"){B={}}if(!("trackDocument" in B)){B.trackDocument=a.browser.msie?false:true;if(a.browser.msie&&a.browser.version.split(".")[0]=="8"){B.trackDocument=true}}if(!("keySupport" in B)){B.keySupport=a.browser.msie?false:true}var V={trackDocument:false,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:0.6,borderOpacity:0.4,handleOpacity:0.5,handlePad:5,handleSize:9,handleOffset:5,edgeMargin:14,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,boxWidth:0,boxHeight:0,boundary:8,animationDelay:20,swingSpeed:3,allowSelect:true,allowMove:true,allowResize:true,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onkeydown:function(){}};var I=V;A(B);var X=a(d);var am=X.clone().removeAttr("id").css({position:"absolute"});am.width(X.width());am.height(X.height());X.after(am).hide();U(am,I.boxWidth,I.boxHeight);var R=am.width(),P=am.height(),aa=a("<div />").width(R).height(P).addClass(D("holder")).css({position:"relative",backgroundColor:I.bgColor}).insertAfter(X).append(am);if(I.addClass){aa.addClass(I.addClass)}var J=a("<img />").attr("src",am.attr("src")).css("position","absolute").width(R).height(P);var k=a("<div />").width(L(100)).height(L(100)).css({zIndex:310,position:"absolute",overflow:"hidden"}).append(J);var M=a("<div />").width(L(100)).height(L(100)).css("zIndex",320);var z=a("<div />").css({position:"absolute",zIndex:300}).insertBefore(am).append(k,M);var u=I.boundary;var b=af().width(R+(u*2)).height(P+(u*2)).css({position:"absolute",top:l(-u),left:l(-u),zIndex:290}).mousedown(ad);var y,ai,q,T;var N,e,n=true;var ae=E(am),s,ao,an,C,ac;var ab=function(){var ar=0,aD=0,aq=0,aC=0,av,at;function ax(aG){var aG=au(aG);aq=ar=aG[0];aC=aD=aG[1]}function aw(aG){var aG=au(aG);av=aG[0]-aq;at=aG[1]-aC;aq=aG[0];aC=aG[1]}function aF(){return[av,at]}function ap(aI){var aH=aI[0],aG=aI[1];if(0>ar+aH){aH-=aH+ar}if(0>aD+aG){aG-=aG+aD}if(P<aC+aG){aG+=P-(aC+aG)}if(R<aq+aH){aH+=R-(aq+aH)}ar+=aH;aq+=aH;aD+=aG;aC+=aG}function ay(aG){var aH=aE();switch(aG){case"ne":return[aH.x2,aH.y];case"nw":return[aH.x,aH.y];case"se":return[aH.x2,aH.y2];case"sw":return[aH.x,aH.y2]}}function aE(){if(!I.aspectRatio){return aB()}var aI=I.aspectRatio,aP=I.minSize[0]/N,aO=I.minSize[1]/e,aH=I.maxSize[0]/N,aR=I.maxSize[1]/e,aJ=aq-ar,aQ=aC-aD,aK=Math.abs(aJ),aL=Math.abs(aQ),aM=aK/aL,aG,aN;if(aH==0){aH=R*10}if(aR==0){aR=P*10}if(aM<aI){aN=aC;w=aL*aI;aG=aJ<0?ar-w:w+ar;if(aG<0){aG=0;h=Math.abs((aG-ar)/aI);aN=aQ<0?aD-h:h+aD}else{if(aG>R){aG=R;h=Math.abs((aG-ar)/aI);aN=aQ<0?aD-h:h+aD}}}else{aG=aq;h=aK/aI;aN=aQ<0?aD-h:aD+h;if(aN<0){aN=0;w=Math.abs((aN-aD)*aI);aG=aJ<0?ar-w:w+ar}else{if(aN>P){aN=P;w=Math.abs(aN-aD)*aI;aG=aJ<0?ar-w:w+ar}}}if(aG>ar){if(aG-ar<aP){aG=ar+aP}else{if(aG-ar>aH){aG=ar+aH}}if(aN>aD){aN=aD+(aG-ar)/aI}else{aN=aD-(aG-ar)/aI}}else{if(aG<ar){if(ar-aG<aP){aG=ar-aP}else{if(ar-aG>aH){aG=ar-aH}}if(aN>aD){aN=aD+(ar-aG)/aI}else{aN=aD-(ar-aG)/aI}}}if(aG<0){ar-=aG;aG=0}else{if(aG>R){ar-=aG-R;aG=R}}if(aN<0){aD-=aN;aN=0}else{if(aN>P){aD-=aN-P;aN=P}}return last=aA(az(ar,aD,aG,aN))}function au(aG){if(aG[0]<0){aG[0]=0}if(aG[1]<0){aG[1]=0}if(aG[0]>R){aG[0]=R}if(aG[1]>P){aG[1]=P}return[aG[0],aG[1]]}function az(aJ,aL,aI,aK){var aN=aJ,aM=aI,aH=aL,aG=aK;if(aI<aJ){aN=aI;aM=aJ}if(aK<aL){aH=aK;aG=aL}return[Math.round(aN),Math.round(aH),Math.round(aM),Math.round(aG)]}function aB(){var aH=aq-ar;var aG=aC-aD;if(y&&(Math.abs(aH)>y)){aq=(aH>0)?(ar+y):(ar-y)}if(ai&&(Math.abs(aG)>ai)){aC=(aG>0)?(aD+ai):(aD-ai)}if(T&&(Math.abs(aG)<T)){aC=(aG>0)?(aD+T):(aD-T)}if(q&&(Math.abs(aH)<q)){aq=(aH>0)?(ar+q):(ar-q)}if(ar<0){aq-=ar;ar-=ar}if(aD<0){aC-=aD;aD-=aD}if(aq<0){ar-=aq;aq-=aq}if(aC<0){aD-=aC;aC-=aC}if(aq>R){var aI=aq-R;ar-=aI;aq-=aI}if(aC>P){var aI=aC-P;aD-=aI;aC-=aI}if(ar>R){var aI=ar-P;aC-=aI;aD-=aI}if(aD>P){var aI=aD-P;aC-=aI;aD-=aI}return aA(az(ar,aD,aq,aC))}function aA(aG){return{x:aG[0],y:aG[1],x2:aG[2],y2:aG[3],w:aG[2]-aG[0],h:aG[3]-aG[1]}}return{flipCoords:az,setPressed:ax,setCurrent:aw,getOffset:aF,moveOffset:ap,getCorner:ay,getFixed:aE}}();var Y=function(){var ax,at,aD,aC,aL=370;var aw={};var aP={};var ar=false;var aB=I.handleOffset;if(I.drawBorders){aw={top:ay("hline").css("top",a.browser.msie?l(-1):l(0)),bottom:ay("hline"),left:ay("vline"),right:ay("vline")}}if(I.dragEdges){aP.t=aK("n");aP.b=aK("s");aP.r=aK("e");aP.l=aK("w")}I.sideHandles&&aG(["n","s","e","w"]);I.cornerHandles&&aG(["sw","nw","ne","se"]);function ay(aS){var aT=a("<div />").css({position:"absolute",opacity:I.borderOpacity}).addClass(D(aS));k.append(aT);return aT}function aq(aS,aT){var aU=a("<div />").mousedown(c(aS)).css({cursor:aS+"-resize",position:"absolute",zIndex:aT});M.append(aU);return aU}function aE(aS){return aq(aS,aL++).css({top:l(-aB+1),left:l(-aB+1),opacity:I.handleOpacity}).addClass(D("handle"))}function aK(aU){var aX=I.handleSize,aY=aB,aW=aX,aT=aX,aV=aY,aS=aY;switch(aU){case"n":case"s":aT=L(100);break;case"e":case"w":aW=L(100);break}return aq(aU,aL++).width(aT).height(aW).css({top:l(-aV+1),left:l(-aS+1)})}function aG(aS){for(i in aS){aP[aS[i]]=aE(aS[i])}}function aI(aZ){var aU=Math.round((aZ.h/2)-aB),aT=Math.round((aZ.w/2)-aB),aX=west=-aB+1,aW=aZ.w-aB,aV=aZ.h-aB,aS,aY;"e" in aP&&aP.e.css({top:l(aU),left:l(aW)})&&aP.w.css({top:l(aU)})&&aP.s.css({top:l(aV),left:l(aT)})&&aP.n.css({left:l(aT)});"ne" in aP&&aP.ne.css({left:l(aW)})&&aP.se.css({top:l(aV),left:l(aW)})&&aP.sw.css({top:l(aV)});"b" in aP&&aP.b.css({top:l(aV)})&&aP.r.css({left:l(aW)})}function aA(aS,aT){J.css({top:l(-aT),left:l(-aS)});z.css({top:l(aT),left:l(aS)})}function aR(aS,aT){z.width(aS).height(aT)}function au(){var aS=ab.getFixed();ab.setPressed([aS.x,aS.y]);ab.setCurrent([aS.x2,aS.y2]);aO()}function aO(){if(aC){return az()}}function az(){var aS=ab.getFixed();aR(aS.w,aS.h);aA(aS.x,aS.y);I.drawBorders&&aw.right.css({left:l(aS.w-1)})&&aw.bottom.css({top:l(aS.h-1)});ar&&aI(aS);aC||aQ();I.onChange(Z(aS))}function aQ(){z.show();am.css("opacity",I.bgOpacity);aC=true}function aM(){aN();z.hide();am.css("opacity",1);aC=false}function ap(){if(ar){aI(ab.getFixed());M.show()}}function aH(){ar=true;if(I.allowResize){aI(ab.getFixed());M.show();return true}}function aN(){ar=false;M.hide()}function aJ(aS){(C=aS)?aN():aH()}function aF(){aJ(false);au()}var av=af().mousedown(c("move")).css({cursor:"move",position:"absolute",zIndex:360});k.append(av);aN();return{updateVisible:aO,update:az,release:aM,refresh:au,setCursor:function(aS){av.css("cursor",aS)},enableHandles:aH,enableOnly:function(){ar=true},showHandles:ap,disableHandles:aN,animMode:aJ,done:aF}}();var Q=function(){var aq=function(){},at=function(){},ar=I.trackDocument;if(!ar){b.mousemove(ap).mouseup(au).mouseout(au)}function ay(){b.css({zIndex:450});if(ar){a(document).mousemove(ap).mouseup(au)}}function ax(){b.css({zIndex:290});if(ar){a(document).unbind("mousemove",ap).unbind("mouseup",au)}}function ap(az){aq(G(az))}function au(az){az.preventDefault();az.stopPropagation();if(s){s=false;at(G(az));I.onSelect(Z(ab.getFixed()));ax();aq=function(){};at=function(){}}return false}function av(aA,az){s=true;aq=aA;at=az;ay();return false}function aw(az){b.css("cursor",az)}am.before(b);return{activateHandlers:av,setCursor:aw}}();var al=function(){var at=a('<input type="radio" />').css({position:"absolute",left:"-30px"}).keypress(ap).blur(au),av=a("<div />").css({position:"absolute",overflow:"hidden"}).append(at);function aq(){if(I.keySupport){at.show();at.focus()}}function au(aw){at.hide()}function ar(ax,aw,ay){if(I.allowMove){ab.moveOffset([aw,ay]);Y.updateVisible()}ax.preventDefault();ax.stopPropagation()}function ap(ax){if(ax.ctrlKey){return true}ac=ax.shiftKey?true:false;var aw=ac?10:1;switch(ax.keyCode){case 37:ar(ax,-aw,0);break;case 39:ar(ax,aw,0);break;case 38:ar(ax,0,-aw);break;case 40:ar(ax,0,aw);break;case 27:Y.release();break;case 9:return true}return I.onkeydown(ax)}if(I.keySupport){av.insertBefore(am)}return{watchKeys:aq}}();function l(ap){return""+parseInt(ap)+"px"}function L(ap){return""+parseInt(ap)+"%"}function D(ap){return I.baseClass+"-"+ap}function E(ap){var aq=a(ap).offset();return[aq.left,aq.top]}function G(ap){return[(ap.pageX-ae[0]),(ap.pageY-ae[1])]}function F(ap){if(ap!=ao){Q.setCursor(ap);ao=ap}}function f(ar,au){ae=E(am);Q.setCursor(ar=="move"?ar:ar+"-resize");if(ar=="move"){return Q.activateHandlers(S(au),p)}var ap=ab.getFixed();var aq=r(ar);var at=ab.getCorner(r(aq));ab.setPressed(ab.getCorner(aq));ab.setCurrent(at);Q.activateHandlers(H(ar,ap),p)}function H(aq,ap){return function(ar){if(!I.aspectRatio){switch(aq){case"e":ar[1]=ap.y2;break;case"w":ar[1]=ap.y2;break;case"n":ar[0]=ap.x2;break;case"s":ar[0]=ap.x2;break}}else{switch(aq){case"e":ar[1]=ap.y+1;break;case"w":ar[1]=ap.y+1;break;case"n":ar[0]=ap.x+1;break;case"s":ar[0]=ap.x+1;break}}ab.setCurrent(ar);Y.update()}}function S(aq){var ap=aq;al.watchKeys();return function(ar){ab.moveOffset([ar[0]-ap[0],ar[1]-ap[1]]);ap=ar;Y.update()}}function r(ap){switch(ap){case"n":return"sw";case"s":return"nw";case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function c(ap){return function(aq){if(I.disabled){return false}if((ap=="move")&&!I.allowMove){return false}s=true;f(ap,G(aq));aq.stopPropagation();aq.preventDefault();return false}}function U(au,aq,at){var ap=au.width(),ar=au.height();if((ap>aq)&&aq>0){ap=aq;ar=(aq/au.width())*au.height()}if((ar>at)&&at>0){ar=at;ap=(at/au.height())*au.width()}N=au.width()/ap;e=au.height()/ar;au.width(ap).height(ar)}function Z(ap){return{x:parseInt(ap.x*N),y:parseInt(ap.y*e),x2:parseInt(ap.x2*N),y2:parseInt(ap.y2*e),w:parseInt(ap.w*N),h:parseInt(ap.h*e)}}function p(aq){var ap=ab.getFixed();if(ap.w>I.minSelect[0]&&ap.h>I.minSelect[1]){Y.enableHandles();Y.done()}else{Y.release()}Q.setCursor(I.allowSelect?"crosshair":"default")}function ad(ap){if(I.disabled){return false}if(!I.allowSelect){return false}s=true;ae=E(am);Y.disableHandles();F("crosshair");var aq=G(ap);ab.setPressed(aq);Q.activateHandlers(ak,p);al.watchKeys();Y.update();ap.stopPropagation();ap.preventDefault();return false}function ak(ap){ab.setCurrent(ap);Y.update()}function af(){var ap=a("<div></div>").addClass(D("tracker"));a.browser.msie&&ap.css({opacity:0,backgroundColor:"white"});return ap}function t(aH){var aC=aH[0]/N,aq=aH[1]/e,aB=aH[2]/N,ap=aH[3]/e;if(C){return}var aA=ab.flipCoords(aC,aq,aB,ap);var aF=ab.getFixed();var at=initcr=[aF.x,aF.y,aF.x2,aF.y2];var ar=I.animationDelay;var ay=at[0];var ax=at[1];var aB=at[2];var ap=at[3];var aE=aA[0]-initcr[0];var av=aA[1]-initcr[1];var aD=aA[2]-initcr[2];var au=aA[3]-initcr[3];var az=0;var aw=I.swingSpeed;Y.animMode(true);var aG=function(){return function(){az+=(100-az)/aw;at[0]=ay+((az/100)*aE);at[1]=ax+((az/100)*av);at[2]=aB+((az/100)*aD);at[3]=ap+((az/100)*au);if(az<100){aI()}else{Y.done()}if(az>=99.8){az=100}aj(at)}}();function aI(){window.setTimeout(aG,ar)}aI()}function K(ap){aj([ap[0]/N,ap[1]/e,ap[2]/N,ap[3]/e])}function aj(ap){ab.setPressed([ap[0],ap[1]]);ab.setCurrent([ap[2],ap[3]]);Y.update()}function A(ap){if(typeof(ap)!="object"){ap={}}I=a.extend(I,ap);if(typeof(I.onChange)!=="function"){I.onChange=function(){}}if(typeof(I.onSelect)!=="function"){I.onSelect=function(){}}}function j(){return Z(ab.getFixed())}function ah(){return ab.getFixed()}function v(ap){A(ap);O()}function x(){I.disabled=true;Y.disableHandles();Y.setCursor("default");Q.setCursor("default")}function W(){I.disabled=false;O()}function m(){Y.done();Q.activateHandlers(null,null)}function ag(){aa.remove();X.show()}function O(ap){I.allowResize?ap?Y.enableOnly():Y.enableHandles():Y.disableHandles();Q.setCursor(I.allowSelect?"crosshair":"default");Y.setCursor(I.allowMove?"move":"default");aa.css("backgroundColor",I.bgColor);if("setSelect" in I){K(B.setSelect);Y.done();delete (I.setSelect)}if("trueSize" in I){N=I.trueSize[0]/R;e=I.trueSize[1]/P}y=I.maxSize[0]||0;ai=I.maxSize[1]||0;q=I.minSize[0]||0;T=I.minSize[1]||0;if("outerImage" in I){am.attr("src",I.outerImage);delete (I.outerImage)}Y.refresh()}M.hide();O(true);var g={animateTo:t,setSelect:K,setOptions:v,tellSelect:j,tellScaled:ah,disable:x,enable:W,cancel:m,focus:al.watchKeys,getBounds:function(){return[R*N,P*e]},getWidgetSize:function(){return[R,P]},release:Y.release,destroy:ag};X.data("Jcrop",g);return g};a.fn.Jcrop=function(c){function b(f){var e=c.useImg||f.src;var d=new Image();d.onload=function(){a.Jcrop(f,c)};d.src=e}if(typeof(c)!=="object"){c={}}this.each(function(){if(a(this).data("Jcrop")){if(c=="api"){return a(this).data("Jcrop")}else{a(this).data("Jcrop").setOptions(c)}}else{b(this)}});return this}})(jQuery);(function(a){a.site=new (function(){function b(){if(!this.bodyEl){this.bodyEl=a("body")}return this.bodyEl}function c(f){return b().attr("id")==f}function d(){function f(j){return b().hasClass(j)}function g(k){for(var l=k.length;l!=0;){var j=k[--l];if(a.isArray(j)){if(g(j)){return true}}else{if(f(j)){return true}}}return false}return g(arguments)}function e(g){var j=1;for(var f=g.length;f!==0;--f){if(g.charAt(f-1)===","){++j}}return(a(g).size()===j)}return{version:"0.1",isModule:c,isAction:d,dependingElements:e}})()})(jQuery);(function(a){jQuery.browser.chrome=/chrome/.test(navigator.userAgent.toLowerCase());a.magma=new (function(){var b={layer1:10000,layer2:20000,layer3:30000,layer4:40000,layer5:50000};b.magma={magmaFakeLinkClass:"magma-fake-link"};var c=b.magma;function r(E){o={cache:true,minlength:4,maxlength:16,validator:function(){},valid:function(){},invalid:function(){},reset:function(){},triggers:null};a.extend(o,E||{});o.field=a(o.field);if(!o.field){return}var C,D,x,m={},u;var B=a("#webpersona-message"),z=a("#webpersona_name");function A(){clearTimeout(C);if(x){x.abort()}}function y(F){m[u]=F;o[F?"valid":"invalid"]()}function v(){if(o.field.val().length<o.minlength||o.field.val().length>o.maxlength){A();o.reset(function(){});return}if(D==o.field.val()&&o.triggers&&a(this).filter(o.triggers.selector).length==0){return}D=o.field.val();o.reset(function(){A();u=D;C=setTimeout(function(){if(o.cache&&D in m){o[m[D]?"valid":"invalid"]();return}x=o.validator(D,y)},300)})}o.field.keyup(v).attr("autocomplete","off");if(o.triggers){a(o.triggers).change(v)}}b.dialog={minTop:10,defaultWidth:400,fadeOutLevel:0.15,bgOpacity:"0.75"};var s=function(){var y;var m;a(document).ready(function(){y=a("<div/>").css({position:"fixed",height:"100%",width:"100%",top:"0",left:"0","z-index":b.layer5++,"background-color":"#000000",opacity:b.dialog.bgOpacity}).hide();if(a.browser.msie&&parseInt(a.browser.version)<=6){y.css({position:"absolute",width:a(document.body).width()+"px",height:a(document.body).height()+"px"})}y.appendTo(document.body);y.click(x)});function x(){if(typeof m==="function"){m()}}function u(z){m=z;y.show()}function v(){y.animate({opacity:0},"fast",function(){a(this).hide().css("opacity",b.dialog.bgOpacity)})}return{show:u,hide:v}}();function l(G){var B=b.dialog;var x={color:"pale",title:null,splatter:null,width:B.defaultWidth,focusInput:true,removeOnClose:true};a.extend(x,G||{});var m=function(){var J=x.color;var H=x.title;H=(H?'<h2 class="bfhBox-heading">'+H+"</h2>":"");var I=a('<div><a class="dialogClose"></a><div class="bfhBox bfhBox-'+J+'"><div class="wrapper">'+H+'<div class="content clearfix"><div class="box-content clearfix"></div></div></div><div class="bg"><u class="w"/><u class="e"/><i class="w"/><i class="e"/><b class="w"/><b class="e"/></div></div></div>');return I}();var u=m.find(".box-content");var E=m.find(".dialogClose");var A=false;var v=false;function z(){var H=this;m.appendTo(document.body).addClass("magmaDialog").css({position:"absolute",width:x.width=="auto"?x.width:x.width+"px",left:((a(window).width()-(x.width=="auto"?0:x.width))/2)+"px",display:"none",zIndex:b.layer5++});E.click(function(I){I.preventDefault();F()})}function y(){u.animate({opacity:B.fadeOutLevel});v=true}function D(){A=true;s.show(function(){F()});m.css({display:"block"});if(x.width=="auto"){m.css("left",0);m.css("left",(a(window).scrollLeft()+(a(window).width()-m.outerWidth())/2)+"px")}var H=a(window).scrollTop()+(a(window).height()-m.outerHeight())/2;m.css({top:(H<B.minTop?B.minTop:H)+"px"});if(v){u.animate({opacity:1})}if(x.focusInput){u.find(":text,:password").eq(0).focus()}if(typeof x.openPost==="function"){x.openPost()}}function F(){s.hide();A=false;if(typeof x.closePre==="function"){x.closePre()}if(x.removeOnClose){m.remove()}else{m.css("display","none")}}function C(){E.unbind("click");m.remove()}return{insert:z,show:D,close:F,fade:y,destroy:C,html:function(){return u.html(arguments[0])},find:function(){return u.find(arguments[0])},stop:function(){return u.stop(arguments[0])},append:function(){return u.append(arguments[0])}}}function t(v,u){var B=b.dialog;var A={color:"pale",title:v.attr("title"),splatter:null,width:B.defaultWidth,hijackForms:false,focusInput:true,redirMsg:'<img src="/static/images/loading.gif" />',removeOnClose:true};a.extend(A,u||{});if(A.title.length==0){if(v.children().length==0){}A.title=v.html();if(v.children().length==1){}A.title=v.children().eq(0).html()}var m=v.attr("href");var x=new l(A);function z(C,E){var D=E?"post":"get";var F=false;E=E||a.makeArray();p({type:D,url:C,data:E,beforeRedirect:function(){x.html('<div class="redirect-message">'+A.redirMsg+"</div>");F=true},html:function(H,G){if(G=="success"){x.stop(false,true);x.html(H);F=true}},after:function(){if(F){x.show();if(A.hijackForms){x.find("form").submit(y)}}}})}function y(C){C.preventDefault();x.find("form").unbind("submit",y);z(a(this).attr("action"),a(this).serializeArray());x.fade()}v.click(function(C){C.preventDefault();x.insert();z(m)});v.magmaFakeLink()}function d(x,v){var A=b.dialog;var z={width:"auto",type:"none",removeOnClose:false};a.extend(z,v||{});var y=null;if(z.type=="error"){y=a('<div class="magmaLightboxError">'+x+"</div>");z.color="red"}else{if(z.type=="warning"){y=a('<div class="magmaLightboxWarning">'+x+"</div>");z.color="orange"}else{if(z.type=="info"){y=a('<div class="magmaLightboxInfo">'+x+"</div>");z.color="bluegray"}else{y=a(x)}}}box=new l(z);box.append(y);box.insert();var u=box.find("img, iframe");if(u.length>0){var m=0;u.one("load",function(){if(++m==u.length){box.show()}})}else{box.show()}return box}b.select={disabledOpacity:0.25};function g(v,m,F){var y=b.select;var u={url:null};a.extend(u,F||{});v=a(v);m=a(m);var z,B,D;D=v.parents(".magmaFormElementWrapper").eq(0);B=D.find(".magmaLabel");B=B.eq(B.size()-1);function E(){D.fadeTo("fast",y.disabledOpacity);v.attr("disabled",true)}function A(){v.attr("disabled",false);D.fadeTo("fast",1)}function x(H){if(H.result=="success"){if(typeof H.name==="string"){B.html(H.name)}if(a.isArray(H.data)){v.html("");if(H.language&&typeof H.language.select_a_region==="string"){a('<option value="">'+H.language.select_a_region+"</option>").appendTo(v)}for(var G=0,J,I=H.data.length;G<I;){J=H.data[G++];a('<option value="'+J[0]+'">'+J[1]+"</option>").appendTo(v)}}setTimeout(A,10)}}function C(){E();z=a.post(u.url,{value:m.val()},x,"json")}m.change(C)}function k(m,v,z){var y={x:0,y:0,top:0,left:0,center:"none"};a.extend(y,z||{});m=a(m);v=a(v);var A=v.offset();var u=A.left+y.x;var x=A.top+y.y;if(y.top===1||y.top==2){x+=v.outerHeight()}if(y.top===-1||y.top==2){x-=m.outerHeight()}if(y.left===1||y.left==2){u+=v.outerWidth()}if(y.left===-1||y.left==2){u-=m.outerWidth()}if(y.center==="x"){u+=(v.outerWidth()-m.outerWidth())/2}if(y.center==="y"){x+=(v.outerHeight()-m.outerHeight())/2}m.css({position:"absolute",top:x+"px",left:u+"px",color:m.css("color")}).appendTo(document.body);return m}b.ajax={};function p(m){var x=b.ajax;var v={url:"",type:"get",data:{},nocache:true,beforeRedirect:null,jsonSuccess:null,jsonError:null,html:null,error:null,after:null};a.extend(v,m||{});if(typeof v.form=="object"){v.url=v.form.attr("action");v.type=v.form.attr("method");v.data=v.form.serializeArray()}if(v.type.toLowerCase()=="get"&&v.nocache){v.data=v.data||a.makeArray();if(a.isArray(v.data)){v.data.push({name:"nocache",value:Math.floor(Math.random()*10000000000000)})}else{if(typeof v.data==="object"){a.extend(v.data,{nocache:Math.floor(Math.random()*10000000000000)})}else{if(typeof v.data==="string"){v.data+="&nocache="+Math.floor(Math.random()*10000000000000)}}}}return a.ajax({type:v.type,url:v.url,data:v.data,dataType:"html",complete:u});function u(C,y){var A=C.getResponseHeader("Content-Type");if(A.indexOf("application/json")!=-1){var z;try{z=window["eval"]("("+C.responseText+")")}catch(B){}if(typeof z==="object"){if(z.result=="redirect"){if(z.redirectUrl){if(typeof v.beforeRedirect==="function"){v.beforeRedirect()}window.location=z.redirectUrl}}else{if(z.result=="success"){if(typeof v.jsonSuccess==="function"){v.jsonSuccess.call(this,z)}}else{if(z.result=="error"){if(typeof v.jsonError==="function"){v.jsonError.call(this,z)}}}}}}else{if(A.indexOf("text/html")!=-1){if(typeof v.html==="function"){v.html.call(this,C.responseText,y)}}else{if(typeof v.error==="function"){v.error.call(this,C.responseText,y,"Unsupported Content-Type: "+A)}}}if(typeof v.after==="function"){v.after.call(this)}}}b.paginator={activePanelClass:"magma-panel-active",disableButtonClass:"disabled",pageLinksClass:"pages",firstClass:"first",lastClass:"last",activeLinkClass:"active"};function q(z,K){var F=b.paginator;var x={replace:true,wrap:false,panels:[],maxPages:9};a.extend(x,K||{});$el=a(z);var I;var H=$el.find(".pagenumbers");var y=a(x.panels);var E=0,C;var m=[];var v=a('<span class="spacing">...</span>').hide();var J=v.clone().hide();if(x.replace){H.hide().empty()}y.each(function(L,M){m[L]=D(y.length,L,x.maxPages);if(a(M).hasClass(F.activeClass)){E=L}if(x.replace){H.append(A(L,a(M)))}});if(x.replace){H.show()}I=H.find("."+F.pageLinksClass).eq(0).after(v).end().eq(y.length-1).before(J).end().hide();(function(){var M=y.eq(0).parent();var L=a("<div></div>").css("height",y.eq(E).height()+"px");M.hide();y.eq(0).before(L).end().appendTo(L);M.show()})();H.find("."+F.pageLinksClass+":first").addClass(F.firstClass).end().find("."+F.pageLinksClass+":last").addClass(F.lastClass);var u=$el.find(".prev .bfhButton").click(function(L){L.preventDefault();if(!x.wrap&&E==0){return}G(E-1)}).magmaFakeLink();var B=$el.find(".next .bfhButton").click(function(L){L.preventDefault();if(!x.wrap&&E==y.length-1){return}G(E+1)}).magmaFakeLink();G(E);function G(M){C=E;E=(M+y.length)%y.length;y.eq(C).removeClass(F.activePanelClass).end().eq(E).addClass(F.activePanelClass);I.eq(C).removeClass(F.activeLinkClass).end().eq(E).addClass(F.activeLinkClass);if(y.length>x.maxPages){for(var L=0;L<y.length;++L){if(E==C){if(m[E][L]){I.eq(L).show()}}else{if(m[E][L]&&!m[C][L]){I.eq(L).show()}else{if(!m[E][L]&&m[C][L]){I.eq(L).hide()}}}}if(m[E][1]){v.hide()}else{v.show()}if(m[E][y.length-2]){J.hide()}else{J.show()}}if(!x.wrap){if(E==0){u.addClass(F.disableButtonClass)}else{u.removeClass(F.disableButtonClass)}if(E==y.length-1){B.addClass(F.disableButtonClass)}else{B.removeClass(F.disableButtonClass)}}}function A(M,L){return a("<a>"+(M+1)+"</a>").addClass(F.pageLinksClass).click(function(){G(M)}).magmaFakeLink()}function D(M,P,U){function T(V){if(V>=0&&V<M){O[V]=1}}var O=[];var R=Math.floor((U-1)/2),Q=Math.ceil((U-1)/2),S=Q-2,L=R-2;for(var N=0;N<M;++N){O[N]=0}O[0]=O[M-1]=O[P]=1;for(var N=P-S;N<=P+L;++N){T(N)}for(var N=P;N<Q;++N){T(N+R-1)}for(var N=M-P-1;N<R;++N){T(M-(N+Q))}if(!O[1]&&O[2]){T(1)}if(!O[M-2]&&O[M-3]){T(M-2)}if(M-1==U){if(P<(M/2)){O[M-2]=O[M-3]=0}else{O[1]=O[2]=0}}return O}}a.fn.magmaFakeLink=function(){return this.removeAttr("href").addClass(c.magmaFakeLinkClass)};a.fn.magmaHoverImage=function(m){var u={addElement:true};a.extend(u,m||{});return this.each(function(){var y=a(this).hide();var v;if(u.addElement){if(y.css("position")!=="relative"&&y.css("position")!=="absolute"){y.css("position","absolute")}v=a('<div class="magma-hover-image"/>').append(y.children()).appendTo(y);(function x(){var z,B,A;A=y.css("backgroundPosition");if(typeof A=="undefined"){z=y.css("backgroundPositionX");B=y.css("backgroundPositionY");if(typeof z=="undefined"){setTimeout(x,5000);return}else{z=parseInt(z);B=parseInt(B)}}else{z=parseInt(A);B=parseInt(A.substr(A.indexOf(" ")))}v.css({width:y.width(),height:y.height(),"background-image":y.css("background-image"),"background-position":z+"px "+(B-y.height())+"px"})})()}else{v=y}if(a.browser.msie){v.css("background-image",y.css("background-image").replace(/png/i,"gif"))}if(!a.browser.safari){v.css("opacity",0);v.hover(function(){v.stop().fadeTo("normal",1)},function(){v.stop().fadeTo("normal",0)})}y.show()})};b.toggle={activeTriggerClass:"active"};a.fn.magmaToggle=function(m){var v=b.toggle;var u={distance:0,duration:400,hideDelay:500,triggerClass:"trigger",popupClass:"popup",toggleOpacity:true,toggleHeight:true,onEvent:"click",offEvent:"click",appendToBody:true,easing:"jswing"};a.extend(u,m||{});if(u.offEvent=="click"){u.hideDelay=0}if(a.browser.msie||a.browser.chrome){u.toggleOpacity=false}if(!u.toggleOpacity&&!u.toggleHeight&&u.distance==0){u.duration=0}return this.each(function(){var G=a(this),B=null,N={open:false,close:false},I=false,H=a("."+u.triggerClass,this),x=a("."+u.popupClass,this),C,A,J,y,F,M=false;J={display:"block",visibility:"hidden"};x.css(J);f(function(){if(u.appendToBody){x.magmaAppendToBody()}C=parseInt(x.css("top"));A=x.outerHeight();J={display:"none",top:C-u.distance,visibility:"visible"};if(u.toggleHeight){J.height=0}if(u.toggleOpacity){J.opacity=0}x.css(J);y={};if(u.toggleOpacity){y.opacity=1}if(u.toggleHeight){y.height=A}if(u.distance!=0){y.top=C}F={};if(u.toggleOpacity){F.opacity=0}if(u.toggleHeight){F.height=0}if(u.distance!=0){F.top=C-u.distance}if(u.duration==0){F.display="none"}M=true},0);function K(O){if(B){clearTimeout(B)}if(!M){return}if((I&&!N.open)||(!I&&N.open)){return}else{N.open=true;x.stop().css({display:"block","z-index":b.layer1++});if(u.duration>0){x.animate(y,u.duration,u.easing,function(){N.open=false;I=true;H.addClass(v.activeTriggerClass)})}else{x.css(y);N.open=false;I=true;H.addClass(v.activeTriggerClass)}}return false}function L(O){if(B){clearTimeout(B)}if(!M){return}B=setTimeout(function(){B=null;N.close=true;if(u.duration>0){x.animate(F,u.duration,u.easing,function(){H.removeClass(v.activeTriggerClass);x.css("display","none");N.close=false});I=false}else{x.css(F);N.close=false;I=false;H.removeClass(v.activeTriggerClass)}},u.hideDelay);return false}var D=[];if(H.length!=0){D[D.length]=H.get(0)}if(x.length!=0){D[D.length]=x.get(0)}D=a(D);var z;if(u.offEvent=="click"){z=H}else{z=a(D)}if(u.onEvent==u.offEvent){var E=false;D.bind(u.onEvent,function(O){if(!E){K(O)}else{if(u.offEvent=="click"&&x.eq(0).find(O.target.tagName).filter(function(){return this==O.target}).length>0){return}L(O)}E=!E})}else{D.bind(u.onEvent,K);z.bind(u.offEvent,L);if((u.offEvent=="mouseleave"||u.offEvent=="mouseout")&&(u.onEvent!="mouseenter"||u.onEvent!="mouseover")){z.bind(u.offEvent=="mouseleave"?"mouseenter":"mouseover",function(){if(B){clearTimeout(B)}})}}})};a.fn.magmaHoverToggle=function(m){var u={onEvent:"mouseenter",offEvent:"mouseleave"};a.extend(u,m||{});return this.magmaToggle(u)};a.fn.magmaNoTextSelection=function(){return this.mousedown(function(m){return false})};b.appendToBody={};a.fn.magmaAppendToBody=function(){var u=b.appendToBody;if(typeof u.bodyEl=="undefined"){if(!c.cssReady){var m=this;setTimeout(function(){m.magmaAppendToBody()},0);return this}u.bodyEl=a(".mainContentArea");u.bodyElOffset=u.bodyEl.offset()}return this.each(function(){var v=a(this);var x=v.offset();v.appendTo(u.bodyEl).css({position:"absolute",top:x.top-u.bodyElOffset.top,left:x.left-u.bodyElOffset.left,right:"auto",bottom:"auto"})})};c.cssReady=false;a(function(){var u=a("#magma-cssready");var m=setInterval(function(){if(u.css("display")=="none"){clearTimeout(m);u.remove();c.cssReady=true;a(document).trigger("cssready")}},10)});function f(m,u){if(typeof m=="function"){if(c.cssReady){if(typeof u=="number"){setTimeout(m,u)}else{m()}}else{a(document).one("cssready",function(){m()})}}else{return c.cssReady}}function e(v,x,y){if(y){var u=new Date();u.setTime(u.getTime()+(y*24*60*60*1000));var m="; expires="+u.toGMTString()}else{var m=""}document.cookie=v+"="+x+m+"; path=/"}function j(u){var x=u+"=";var m=document.cookie.split(";");for(var v=0;v<m.length;v++){var y=m[v];while(y.charAt(0)==" "){y=y.substring(1,y.length)}if(y.indexOf(x)==0){return y.substring(x.length,y.length)}}return null}function n(m){e(m,"",-1)}return{version:"0.1",ajaxValidator:r,addDialog:t,dynamicSelect:g,positionElementRelativeTo:k,lightbox:d,ajax:p,paginator:q,cssReady:f,createCookie:e,readCookie:j,eraseCookie:n}})();a(document).ready(function(){a(".dialog-link").each(function(){var b=a(this);if(b.get(0).tagName.toLowerCase()!=="a"){b=a("a",this)}if(b.length==0){return}var c={};try{c=window["eval"]("("+b.attr("rel")+")")}catch(d){}a.magma.addDialog(b,c)})})})(jQuery);jQuery.fn.customInput=function(){$(this).each(function(c){if($(this).is("[type=checkbox],[type=radio]")){var a=$(this);var b=$("label[for="+a.attr("id")+"]");var d=(a.is("[type=checkbox]"))?"checkbox":"radio";$('<div class="custom-'+d+'"></div>').insertBefore(a).append(a,b);var e=$("input[name="+a.attr("name")+"]");b.hover(function(){$(this).addClass("hover");if(d=="checkbox"&&a.is(":checked")){$(this).addClass("checkedHover")}},function(){$(this).removeClass("hover checkedHover")});a.bind("updateState",function(){if(a.is(":checked")){if(a.is(":radio")){e.each(function(){$("label[for="+$(this).attr("id")+"]").removeClass("checked")})}b.addClass("checked")}else{b.removeClass("checked checkedHover checkedFocus")}}).trigger("updateState").click(function(){$(this).trigger("updateState")}).focus(function(){b.addClass("focus");if(d=="checkbox"&&a.is(":checked")){$(this).addClass("checkedFocus")}}).blur(function(){b.removeClass("focus checkedFocus")})}})};(function(a){a.widget("ui.selectmenu",{getter:"value",version:"1.9",eventPrefix:"selectmenu",options:{transferClasses:true,appendTo:"body",typeAhead:1000,style:"dropdown",positionOptions:{my:"left top",at:"left bottom",offset:null},width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,escapeHtml:false,bgImage:function(){}},_create:function(){var b=this,e=this.options;var d=(this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10)).replace(":","\\:");this.ids=[d,d+"-button",d+"-menu"];this._safemouseup=true;this.isOpen=false;this.newelement=a("<a />",{"class":this.widgetBaseClass+" ui-widget ui-state-default ui-corner-all",id:this.ids[1],role:"button",href:"#nogo",tabindex:this.element.attr("disabled")?1:0,"aria-haspopup":true,"aria-owns":this.ids[2]});this.newelementWrap=a("<span />").append(this.newelement).insertAfter(this.element);var c=this.element.attr("tabindex");if(c){this.newelement.attr("tabindex",c)}this.newelement.data("selectelement",this.element);this.selectmenuIcon=a('<span class="'+this.widgetBaseClass+'-icon ui-icon"></span>').prependTo(this.newelement);this.newelement.prepend('<span class="'+b.widgetBaseClass+'-status" />');this.element.bind({"click.selectmenu":function(f){b.newelement.focus();f.preventDefault()}});this.newelement.bind("mousedown.selectmenu",function(f){b._toggle(f,true);if(e.style=="popup"){b._safemouseup=false;setTimeout(function(){b._safemouseup=true},300)}return false}).bind("click.selectmenu",function(){return false}).bind("keydown.selectmenu",function(g){var f=false;switch(g.keyCode){case a.ui.keyCode.ENTER:f=true;break;case a.ui.keyCode.SPACE:b._toggle(g);break;case a.ui.keyCode.UP:if(g.altKey){b.open(g)}else{b._moveSelection(-1)}break;case a.ui.keyCode.DOWN:if(g.altKey){b.open(g)}else{b._moveSelection(1)}break;case a.ui.keyCode.LEFT:b._moveSelection(-1);break;case a.ui.keyCode.RIGHT:b._moveSelection(1);break;case a.ui.keyCode.TAB:f=true;break;case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.HOME:b.index(0);break;case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.END:b.index(b._optionLis.length);break;default:f=true}return f}).bind("keypress.selectmenu",function(f){if(f.which>0){b._typeAhead(f.which,"mouseup")}return true}).bind("mouseover.selectmenu",function(){if(!e.disabled){a(this).addClass("ui-state-hover")}}).bind("mouseout.selectmenu",function(){if(!e.disabled){a(this).removeClass("ui-state-hover")}}).bind("focus.selectmenu",function(){if(!e.disabled){a(this).addClass("ui-state-focus")}}).bind("blur.selectmenu",function(){if(!e.disabled){a(this).removeClass("ui-state-focus")}});a(document).bind("mousedown.selectmenu-"+this.ids[0],function(f){if(b.isOpen){b.close(f)}});this.element.bind("click.selectmenu",function(){b._refreshValue()}).bind("focus.selectmenu",function(){if(b.newelement){b.newelement[0].focus()}});if(!e.width){e.width=this.element.outerWidth()}this.newelement.width(e.width);this.element.hide();this.list=a("<ul />",{"class":"ui-widget ui-widget-content","aria-hidden":true,role:"listbox","aria-labelledby":this.ids[1],id:this.ids[2]});this.listWrap=a("<div />",{"class":b.widgetBaseClass+"-menu"}).append(this.list).appendTo(e.appendTo);this.list.bind("keydown.selectmenu",function(g){var f=false;switch(g.keyCode){case a.ui.keyCode.UP:if(g.altKey){b.close(g,true)}else{b._moveFocus(-1)}break;case a.ui.keyCode.DOWN:if(g.altKey){b.close(g,true)}else{b._moveFocus(1)}break;case a.ui.keyCode.LEFT:b._moveFocus(-1);break;case a.ui.keyCode.RIGHT:b._moveFocus(1);break;case a.ui.keyCode.HOME:b._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:b._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:b._scrollPage("down");break;case a.ui.keyCode.END:b._moveFocus(":last");break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:b.close(g,true);a(g.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:f=true;b.close(g,true);a(g.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.ESCAPE:b.close(g,true);break;default:f=true}return f}).bind("keypress.selectmenu",function(f){if(f.which>0){b._typeAhead(f.which,"focus")}return true}).bind("mousedown.selectmenu mouseup.selectmenu",function(){return false});a(window).bind("resize.selectmenu-"+this.ids[0],a.proxy(b.close,this))},_init:function(){var t=this,e=this.options;var b=[];this.element.find("option").each(function(){var j=a(this);b.push({value:j.attr("value"),text:t._formatText(j.text()),selected:j.attr("selected"),disabled:j.attr("disabled"),classes:j.attr("class"),typeahead:j.attr("typeahead"),parentOptGroup:j.parent("optgroup"),bgImage:e.bgImage.call(j)})});var n=(t.options.style=="popup")?" ui-state-active":"";this.list.html("");if(b.length){for(var l=0;l<b.length;l++){var f={role:"presentation"};if(b[l].disabled){f["class"]=this.namespace+"-state-disabled"}var v={html:b[l].text||"&nbsp;",href:"#nogo",tabindex:-1,role:"option","aria-selected":false};if(b[l].disabled){v["aria-disabled"]=b[l].disabled}if(b[l].typeahead){v.typeahead=b[l].typeahead}var s=a("<a/>",v);var d=a("<li/>",f).append(s).data("index",l).addClass(b[l].classes).data("optionClasses",b[l].classes||"").bind("mouseup.selectmenu",function(j){if(t._safemouseup&&!t._disabled(j.currentTarget)&&!t._disabled(a(j.currentTarget).parents("ul>li."+t.widgetBaseClass+"-group "))){var x=a(this).data("index")!=t._selectedIndex();t.index(a(this).data("index"));t.select(j);if(x){t.change(j)}t.close(j,true)}return false}).bind("click.selectmenu",function(){return false}).bind("mouseover.selectmenu focus.selectmenu",function(j){if(!a(j.currentTarget).hasClass(t.namespace+"-state-disabled")&&!a(j.currentTarget).parent("ul").parent("li").hasClass(t.namespace+"-state-disabled")){t._selectedOptionLi().addClass(n);t._focusedOptionLi().removeClass(t.widgetBaseClass+"-item-focus ui-state-hover");a(this).removeClass("ui-state-active").addClass(t.widgetBaseClass+"-item-focus ui-state-hover")}}).bind("mouseout.selectmenu blur.selectmenu",function(){if(a(this).is(t._selectedOptionLi().selector)){a(this).addClass(n)}a(this).removeClass(t.widgetBaseClass+"-item-focus ui-state-hover")});if(b[l].parentOptGroup.length){var m=t.widgetBaseClass+"-group-"+this.element.find("optgroup").index(b[l].parentOptGroup);if(this.list.find("li."+m).length){this.list.find("li."+m+":last ul").append(d)}else{a(' <li role="presentation" class="'+t.widgetBaseClass+"-group "+m+(b[l].parentOptGroup.attr("disabled")?" "+this.namespace+'-state-disabled" aria-disabled="true"':'"')+'><span class="'+t.widgetBaseClass+'-group-label">'+b[l].parentOptGroup.attr("label")+"</span><ul></ul></li> ").appendTo(this.list).find("ul").append(d)}}else{d.appendTo(this.list)}if(e.icons){for(var k in e.icons){if(d.is(e.icons[k].find)){d.data("optionClasses",b[l].classes+" "+t.widgetBaseClass+"-hasIcon").addClass(t.widgetBaseClass+"-hasIcon");var q=e.icons[k].icon||"";d.find("a:eq(0)").prepend('<span class="'+t.widgetBaseClass+"-item-icon ui-icon "+q+'"></span>');if(b[l].bgImage){d.find("span").css("background-image",b[l].bgImage)}}}}}}else{a('<li role="presentation"><a href="#nogo" tabindex="-1" role="option"></a></li>').appendTo(this.list)}var c=(e.style=="dropdown");this.newelement.toggleClass(t.widgetBaseClass+"-dropdown",c).toggleClass(t.widgetBaseClass+"-popup",!c);this.list.toggleClass(t.widgetBaseClass+"-menu-dropdown ui-corner-bottom",c).toggleClass(t.widgetBaseClass+"-menu-popup ui-corner-all",!c).find("li:first").toggleClass("ui-corner-top",!c).end().find("li:last").addClass("ui-corner-bottom");this.selectmenuIcon.toggleClass("ui-icon-triangle-1-s",c).toggleClass("ui-icon-triangle-2-n-s",!c);if(e.transferClasses){var u=this.element.attr("class")||"";this.newelement.add(this.list).addClass(u)}if(e.style=="dropdown"){this.list.width(e.menuWidth?e.menuWidth:e.width)}else{this.list.width(e.menuWidth?e.menuWidth:e.width-e.handleWidth)}this.list.css("height","auto");var p=this.listWrap.height();var g=a(window).height();var r=e.maxHeight?Math.min(e.maxHeight,g):g/3;if(p>r){this.list.height(r)}this._optionLis=this.list.find("li:not(."+t.widgetBaseClass+"-group)");if(this.element.attr("disabled")){this.disable()}else{this.enable()}this.index(this._selectedIndex());this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-focus");clearTimeout(this.refreshTimeout);this.refreshTimeout=window.setTimeout(function(){t._refreshPosition()},200)},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled").unbind(".selectmenu");a(window).unbind(".selectmenu-"+this.ids[0]);a(document).unbind(".selectmenu-"+this.ids[0]);this.newelementWrap.remove();this.listWrap.remove();this.element.unbind(".selectmenu").show();a.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(e,f){var m=this,l=String.fromCharCode(e).toLowerCase(),d=null,k=null;if(m._typeAhead_timer){window.clearTimeout(m._typeAhead_timer);m._typeAhead_timer=undefined}m._typeAhead_chars=(m._typeAhead_chars===undefined?"":m._typeAhead_chars).concat(l);if(m._typeAhead_chars.length<2||(m._typeAhead_chars.substr(-2,1)===l&&m._typeAhead_cycling)){m._typeAhead_cycling=true;d=l}else{m._typeAhead_cycling=false;d=m._typeAhead_chars}var g=(f!=="focus"?this._selectedOptionLi().data("index"):this._focusedOptionLi().data("index"))||0;for(var j=0;j<this._optionLis.length;j++){var b=this._optionLis.eq(j).text().substr(0,d.length).toLowerCase();if(b===d){if(m._typeAhead_cycling){if(k===null){k=j}if(j>g){k=j;break}}else{k=j}}}if(k!==null){this._optionLis.eq(k).find("a").trigger(f)}m._typeAhead_timer=window.setTimeout(function(){m._typeAhead_timer=undefined;m._typeAhead_chars=undefined;m._typeAhead_cycling=undefined},m.options.typeAhead)},_uiHash:function(){var b=this.index();return{index:b,option:a("option",this.element).get(b),value:this.element[0].value}},open:function(e){var b=this,f=this.options;if(b.newelement.attr("aria-disabled")!="true"){b._closeOthers(e);b.newelement.addClass("ui-state-active");b.listWrap.appendTo(f.appendTo);b.list.attr("aria-hidden",false);b.listWrap.addClass(b.widgetBaseClass+"-open");var c=this._selectedOptionLi();if(f.style=="dropdown"){b.newelement.removeClass("ui-corner-all").addClass("ui-corner-top")}else{this.list.css("left",-5000).scrollTop(this.list.scrollTop()+c.position().top-this.list.outerHeight()/2+c.outerHeight()/2).css("left","auto")}b._refreshPosition();var d=c.find("a");if(d.length){d[0].focus()}b.isOpen=true;b._trigger("open",e,b._uiHash())}},close:function(c,b){if(this.newelement.is(".ui-state-active")){this.newelement.removeClass("ui-state-active");this.listWrap.removeClass(this.widgetBaseClass+"-open");this.list.attr("aria-hidden",true);if(this.options.style=="dropdown"){this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all")}if(b){this.newelement.focus()}this.isOpen=false;this._trigger("close",c,this._uiHash())}},change:function(b){this.element.trigger("change");this._trigger("change",b,this._uiHash())},select:function(b){if(this._disabled(b.currentTarget)){return false}this._trigger("select",b,this._uiHash())},widget:function(){return this.listWrap.add(this.newelementWrap)},_closeOthers:function(b){a("."+this.widgetBaseClass+".ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",b)});a("."+this.widgetBaseClass+".ui-state-hover").trigger("mouseout")},_toggle:function(c,b){if(this.isOpen){this.close(c,b)}else{this.open(c)}},_formatText:function(b){if(this.options.format){b=this.options.format(b)}else{if(this.options.escapeHtml){b=a("<div />").text(b).html()}}return b},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find("."+this.widgetBaseClass+"-item-focus")},_moveSelection:function(e,b){if(!this.options.disabled){var d=parseInt(this._selectedOptionLi().data("index")||0,10);var c=d+e;if(c<0){c=0}if(c>this._optionLis.size()-1){c=this._optionLis.size()-1}if(c===b){return false}if(this._optionLis.eq(c).hasClass(this.namespace+"-state-disabled")){(e>0)?++e:--e;this._moveSelection(e,c)}else{this._optionLis.eq(c).trigger("mouseover").trigger("mouseup")}}},_moveFocus:function(f,b){if(!isNaN(f)){var e=parseInt(this._focusedOptionLi().data("index")||0,10);var d=e+f}else{var d=parseInt(this._optionLis.filter(f).data("index"),10)}if(d<0){d=0}if(d>this._optionLis.size()-1){d=this._optionLis.size()-1}if(d===b){return false}var c=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1000);this._focusedOptionLi().find("a:eq(0)").attr("id","");if(this._optionLis.eq(d).hasClass(this.namespace+"-state-disabled")){(f>0)?++f:--f;this._moveFocus(f,d)}else{this._optionLis.eq(d).find("a:eq(0)").attr("id",c).focus()}this.list.attr("aria-activedescendant",c)},_scrollPage:function(c){var b=Math.floor(this.list.outerHeight()/this._optionLis.first().outerHeight());b=(c=="up"?-b:b);this._moveFocus(b)},_setOption:function(b,c){this.options[b]=c;if(b=="disabled"){if(c){this.close()}this.element.add(this.newelement).add(this.list)[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",c)}},disable:function(b,c){if(typeof(b)=="undefined"){this._setOption("disabled",true)}else{if(c=="optgroup"){this._disableOptgroup(b)}else{this._disableOption(b)}}},enable:function(b,c){if(typeof(b)=="undefined"){this._setOption("disabled",false)}else{if(c=="optgroup"){this._enableOptgroup(b)}else{this._enableOption(b)}}},_disabled:function(b){return a(b).hasClass(this.namespace+"-state-disabled")},_disableOption:function(b){var c=this._optionLis.eq(b);if(c){c.addClass(this.namespace+"-state-disabled").find("a").attr("aria-disabled",true);this.element.find("option").eq(b).attr("disabled","disabled")}},_enableOption:function(b){var c=this._optionLis.eq(b);if(c){c.removeClass(this.namespace+"-state-disabled").find("a").attr("aria-disabled",false);this.element.find("option").eq(b).removeAttr("disabled")}},_disableOptgroup:function(c){var b=this.list.find("li."+this.widgetBaseClass+"-group-"+c);if(b){b.addClass(this.namespace+"-state-disabled").attr("aria-disabled",true);this.element.find("optgroup").eq(c).attr("disabled","disabled")}},_enableOptgroup:function(c){var b=this.list.find("li."+this.widgetBaseClass+"-group-"+c);if(b){b.removeClass(this.namespace+"-state-disabled").attr("aria-disabled",false);this.element.find("optgroup").eq(c).removeAttr("disabled")}},index:function(b){if(arguments.length){if(!this._disabled(a(this._optionLis[b]))){this.element[0].selectedIndex=b;this._refreshValue()}else{return false}}else{return this._selectedIndex()}},value:function(b){if(arguments.length){this.element[0].value=b;this._refreshValue()}else{return this.element[0].value}},_refreshValue:function(){var d=(this.options.style=="popup")?" ui-state-active":"";var c=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1000);this.list.find("."+this.widgetBaseClass+"-item-selected").removeClass(this.widgetBaseClass+"-item-selected"+d).find("a").attr("aria-selected","false").attr("id","");this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-selected"+d).find("a").attr("aria-selected","true").attr("id",c);var b=(this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):"");var e=(this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"");this.newelement.removeClass(b).data("optionClasses",e).addClass(e).find("."+this.widgetBaseClass+"-status").html(this._selectedOptionLi().find("a:eq(0)").html());this.list.attr("aria-activedescendant",c)},_refreshPosition:function(){var d=this.options;if(d.style=="popup"&&!d.positionOptions.offset){var c=this._selectedOptionLi();var b="0 "+(this.list.offset().top-c.offset().top-(this.newelement.outerHeight()+c.outerHeight())/2)}this.listWrap.zIndex(this.element.zIndex()+1).position({of:d.positionOptions.of||this.newelement,my:d.positionOptions.my,at:d.positionOptions.at,offset:d.positionOptions.offset||b,collision:d.positionOptions.collision||d.style=="popup"?"fit":"flip"})}})})(jQuery);window.Modernizr=function(al,ak,aj){function H(b){ac.cssText=b}function G(d,c){return H(prefixes.join(d+";")+(c||""))}function W(d,c){return typeof d===c}function U(d,c){return !!~(""+d).indexOf(c)}function S(e,c){for(var f in e){if(ac[e[f]]!==aj){return c=="pfx"?e[f]:!0}}return !1}function Q(g,c,l){for(var k in g){var j=c[g[k]];if(j!==aj){return l===!1?g[k]:W(j,"function")?j.bind(l||c):j}}return !1}function O(g,f,l){var k=g.charAt(0).toUpperCase()+g.substr(1),j=(g+" "+Y.join(k+" ")+k).split(" ");return W(f,"string")||W(f,"undefined")?S(j,f):(j=(g+" "+X.join(k+" ")+k).split(" "),Q(j,f,l))}var ai="2.5.3",ah={},ag=!0,af=ak.documentElement,ae="modernizr",ad=ak.createElement(ae),ac=ad.style,ab,aa={}.toString,Z="Webkit Moz O ms",Y=Z.split(" "),X=Z.toLowerCase().split(" "),V={},T={},R={},P=[],N=P.slice,M,K=function(v,u,t,s){var r,q,p,n=ak.createElement("div"),g=ak.body,b=g?g:ak.createElement("body");if(parseInt(t,10)){while(t--){p=ak.createElement("div"),p.id=s?s[t]:ae+(t+1),n.appendChild(p)}}return r=["&#173;","<style>",v,"</style>"].join(""),n.id=ae,b.innerHTML+=r,b.appendChild(n),g||(b.style.background="",af.appendChild(b)),q=u(n,v),g?n.parentNode.removeChild(n):b.parentNode.removeChild(b),!!q},J={}.hasOwnProperty,I;!W(J,"undefined")&&!W(J.call,"undefined")?I=function(d,c){return J.call(d,c)}:I=function(d,c){return c in d&&W(d.constructor.prototype[c],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(a){var j=this;if(typeof j!="function"){throw new TypeError}var g=N.call(arguments,1),f=function(){if(this instanceof f){var b=function(){};b.prototype=j.prototype;var d=new b,c=j.apply(d,g.concat(N.call(arguments)));return Object(c)===c?c:d}return j.apply(a,g.concat(N.call(arguments)))};return f}),V.csstransitions=function(){return O("transition")};for(var L in V){I(V,L)&&(M=L.toLowerCase(),ah[M]=V[L](),P.push((ah[M]?"":"no-")+M))}return H(""),ad=ab=null,ah._version=ai,ah._domPrefixes=X,ah._cssomPrefixes=Y,ah.testProp=function(b){return S([b])},ah.testAllProps=O,ah.testStyles=K,af.className=af.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(ag?" js "+P.join(" "):""),ah}(this,this.document),function(ad,ac,ab){function aa(b){return P.call(b)=="[object Function]"}function Z(b){return typeof b=="string"}function Y(){}function X(b){return !b||b=="loaded"||b=="complete"||b=="uninitialized"}function W(){var b=O.shift();M=1,b?b.t?R(function(){(b.t=="c"?L.injectCss:L.injectJs)(b.s,0,b.a,b.x,b.e,1)},0):(b(),W()):M=0}function V(y,x,v,t,s,q,p){function n(a){if(!g&&X(m.readyState)&&(z.r=g=1,!M&&W(),m.onload=m.onreadystatechange=null,a)){y!="img"&&R(function(){I.removeChild(m)},50);for(var c in D[x]){D[x].hasOwnProperty(c)&&D[x][c].onload()}}}var p=p||L.errorTimeout,m={},g=0,b=0,z={t:v,s:x,e:s,a:q,x:p};D[x]===1&&(b=1,D[x]=[],m=ac.createElement(y)),y=="object"?m.data=x:(m.src=x,m.type=y),m.width=m.height="0",m.onerror=m.onload=m.onreadystatechange=function(){n.call(this,b)},O.splice(t,0,z),y!="img"&&(b||D[x]===2?(I.insertBefore(m,J?null:Q),R(n,p)):D[x].push(m))}function U(g,e,l,k,j){return M=0,e=e||"j",Z(g)?V(e=="c"?G:H,g,e,this.i++,l,k,j):(O.splice(this.i++,0,g),O.length==1&&W()),this}function T(){var b=L;return b.loader={load:U,i:0},b}var S=ac.documentElement,R=ad.setTimeout,Q=ac.getElementsByTagName("script")[0],P={}.toString,O=[],M=0,K="MozAppearance" in S.style,J=K&&!!ac.createRange().compareNode,I=J?S:Q.parentNode,S=ad.opera&&P.call(ad.opera)=="[object Opera]",S=!!ac.attachEvent&&!S,H=K?"object":S?"script":"img",G=S?"script":H,F=Array.isArray||function(b){return P.call(b)=="[object Array]"},E=[],D={},C={timeout:function(d,c){return c.length&&(d.timeout=c[0]),d}},N,L;L=function(f){function d(l){var l=l.split("!"),j=E.length,t=l.pop(),s=l.length,t={url:t,origUrl:t,prefixes:l},r,q,m;for(q=0;q<s;q++){m=l[q].split("="),(r=C[m.shift()])&&(t=r(t,m))}for(q=0;q<j;q++){t=E[q](t)}return t}function p(m,u,t,s,r){var q=d(m),b=q.autoCallback;q.url.split(".").pop().split("?").shift(),q.bypass||(u&&(u=aa(u)?u:u[m]||u[s]||u[m.split("/").pop().split("?")[0]]||W),q.instead?q.instead(m,u,t,s,r):(D[q.url]?q.noexec=!0:D[q.url]=1,t.load(q.url,q.forceCSS||!q.forceJS&&"css"==q.url.split(".").pop().split("?").shift()?"c":ab,q.noexec,q.attrs,q.timeout),(aa(u)||aa(b))&&t.load(function(){T(),u&&u(q.origUrl,r,s),b&&b(q.origUrl,r,s),D[q.url]=2})))}function n(z,y){function x(b,j){if(b){if(Z(b)){j||(t=function(){var l=[].slice.call(arguments);s.apply(this,l),r()}),p(b,t,y,0,v)}else{if(Object(b)===b){for(g in q=function(){var a=0,l;for(l in b){b.hasOwnProperty(l)&&a++}return a}(),b){b.hasOwnProperty(g)&&(!j&&!--q&&(aa(t)?t=function(){var l=[].slice.call(arguments);s.apply(this,l),r()}:t[g]=function(l){return function(){var a=[].slice.call(arguments);l&&l.apply(this,a),r()}}(s[g])),p(b[g],t,y,g,v))}}}}else{!j&&r()}}var v=!!z.test,u=z.load||z.both,t=z.callback||Y,s=t,r=z.complete||Y,q,g;x(v?z.yep:z.nope,!!u),u&&x(u)}var k,e,c=this.yepnope.loader;if(Z(f)){p(f,0,c,0)}else{if(F(f)){for(k=0;k<f.length;k++){e=f[k],Z(e)?p(e,0,c,0):F(e)?L(e):Object(e)===e&&n(e,c)}}else{Object(f)===f&&n(f,c)}}},L.addPrefix=function(d,c){C[d]=c},L.addFilter=function(b){E.push(b)},L.errorTimeout=10000,ac.readyState==null&&ac.addEventListener&&(ac.readyState="loading",ac.addEventListener("DOMContentLoaded",N=function(){ac.removeEventListener("DOMContentLoaded",N,0),ac.readyState="complete"},0)),ad.yepnope=T(),ad.yepnope.executeStack=W,ad.yepnope.injectJs=function(s,r,q,p,n,m){var g=ac.createElement("script"),f,b,p=p||L.errorTimeout;g.src=s;for(b in q){g.setAttribute(b,q[b])}r=m?W:r||Y,g.onreadystatechange=g.onload=function(){!f&&X(g.readyState)&&(f=1,r(),g.onload=g.onreadystatechange=null)},R(function(){f||(f=1,r(1))},p),n?g.onload():Q.parentNode.insertBefore(g,Q)},ad.yepnope.injectCss=function(b,p,n,m,l,k){var m=ac.createElement("link"),f,p=k?W:p||Y;m.href=b,m.rel="stylesheet",m.type="text/css";for(f in n){m.setAttribute(f,n[f])}l||(Q.parentNode.insertBefore(m,Q),R(p,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};(function(K,J,I){function x(d){var c={x:d.offsetLeft,y:d.offsetTop};while(d=d.offsetParent){c.x+=d.offsetLeft,c.y+=d.offsetTop}return c}function y(f){for(var c=1;c<arguments.length;c++){var j=arguments[c];for(var g in j){f[g]===I&&(f[g]=j[g])}}return f}function z(e,d){for(var f in d){e.style[A(e,f)||f]=d[f]}return e}function A(d,c){var l=d.style,k,j;if(l[c]!==I){return c}c=c.charAt(0).toUpperCase()+c.slice(1);for(j=0;j<H.length;j++){k=H[j]+c;if(l[k]!==I){return k}}}function B(M,L,r,q){var p=["opacity",L,~~(M*100),r,q].join("-"),n=0.01+r/q*100,m=Math.max(1-(1-M)/L*(100-n),M),f=F.substring(0,F.indexOf("Animation")).toLowerCase(),e=f&&"-"+f+"-"||"";G[p]||(C.insertRule("@"+e+"keyframes "+p+"{0%{opacity:"+m+"}"+n+"%{opacity:"+M+"}"+(n+0.01)+"%{opacity:1}"+(n+L)%100+"%{opacity:"+M+"}100%{opacity:"+m+"}}",0),G[p]=1);return p}function D(e,d,f){f&&!f.parentNode&&D(e,f),e.insertBefore(d,f||null);return e}function E(b,j){var g=J.createElement(b||"div"),f;for(f in j){g[f]=j[f]}return g}var H=["webkit","Moz","ms","O"],G={},F,C=function(){var b=E("style");D(J.getElementsByTagName("head")[0],b);return b.sheet||b.styleSheet}(),v=function s(b){if(!this.spin){return new s(b)}this.opts=y(b||{},s.defaults,u)},u=v.defaults={lines:12,length:7,width:5,radius:10,color:"#000",speed:1,trail:100,opacity:0.25,fps:20},t=v.prototype={spin:function(R){this.stop();var Q=this,P=Q.el=z(E(),{position:"relative"}),O,N;R&&(N=x(D(R,P,R.firstChild)),O=x(P),z(P,{left:(R.offsetWidth>>1)-O.x+N.x+"px",top:(R.offsetHeight>>1)-O.y+N.y+"px"})),P.setAttribute("aria-role","progressbar"),Q.lines(P,Q.opts);if(!F){var M=Q.opts,L=0,r=M.fps,n=r/M.speed,l=(1-M.opacity)/(n*M.trail/100),g=n/M.lines;(function f(){L++;for(var b=M.lines;b;b--){var c=Math.max(1-(L+b*g)%n*l,M.opacity);Q.opacity(P,M.lines-b,c,M)}Q.timeout=Q.el&&setTimeout(f,~~(1000/r))})()}return Q},stop:function(){var b=this.el;b&&(clearTimeout(this.timeout),b.parentNode&&b.parentNode.removeChild(b),this.el=I);return this}};t.lines=function(g,f){function j(b,c){return z(E(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*l)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.width>>1)+"px"})}var l=0,k;for(;l<f.lines;l++){k=z(E(),{position:"absolute",top:1+~(f.width/2)+"px",transform:"translate3d(0,0,0)",opacity:f.opacity,animation:F&&B(f.opacity,f.trail,l,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&D(k,z(j("#000","0 0 4px #000"),{top:"2px"})),D(g,D(k,j(f.color,"0 0 1px rgba(0,0,0,.1)")))}return g},t.opacity=function(e,d,f){d<e.childNodes.length&&(e.childNodes[d].style.opacity=f)},function(){var d=z(E("group"),{behavior:"url(#default#VML)"}),c;if(!A(d,"transform")&&d.adj){for(c=4;c--;){C.addRule(["group","roundrect","fill","stroke"][c],"behavior:url(#default#VML)")}t.lines=function(M,L){function g(b,f,e){D(n,D(z(p(),{rotation:360/L.lines*b+"deg",left:~~f}),D(z(E("roundrect",{arcsize:1}),{width:r,height:L.width,left:L.radius,top:-L.width>>1,filter:e}),E("fill",{color:L.color,opacity:L.opacity}),E("stroke",{opacity:0}))))}function p(){return z(E("group",{coordsize:q+" "+q,coordorigin:-r+" "+-r}),{width:q,height:q})}var r=L.length+L.width,q=2*r,n=p(),m=~(L.length+L.radius+L.width)+"px",l;if(L.shadow){for(l=1;l<=L.lines;l++){g(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)")}}for(l=1;l<=L.lines;l++){g(l)}return D(z(M,{margin:m+" 0 0 "+m,zoom:1}),n)},t.opacity=function(g,f,l,k){var j=g.firstChild;k=k.shadow&&k.lines||0,j&&f+k<j.childNodes.length&&(j=j.childNodes[f+k],j=j&&j.firstChild,j=j&&j.firstChild,j&&(j.opacity=l))}}else{F=A(d,"animation")}}(),K.Spinner=v})(window,document);(function(a){a.fn.spin=function(d,c){var b={tiny:{lines:8,length:2,width:2,radius:3},small:{lines:8,length:4,width:3,radius:5},large:{lines:10,length:8,width:4,radius:8}};if(Spinner){return this.each(function(){var f=a(this),e=f.data();if(e.spinner){e.spinner.stop();delete e.spinner}if(d!==false){if(typeof d==="string"){if(d in b){d=b[d]}else{d={}}if(c){d.color=c}}e.spinner=new Spinner(a.extend({color:f.css("color")},d)).spin(this)}})}else{throw"Spinner class not available."}}})(jQuery);(function(){function aa(b,p,n){if(b===p){return b!==0||1/b==1/p}if(b==null||p==null){return b===p}if(b._chain){b=b._wrapped}if(p._chain){p=p._wrapped}if(b.isEqual&&ak.isFunction(b.isEqual)){return b.isEqual(p)}if(p.isEqual&&ak.isFunction(p.isEqual)){return p.isEqual(b)}var m=ag.call(b);if(m!=ag.call(p)){return false}switch(m){case"[object String]":return b==String(p);case"[object Number]":return b!=+b?p!=+p:b==0?1/b==1/p:b==+p;case"[object Date]":case"[object Boolean]":return +b==+p;case"[object RegExp]":return b.source==p.source&&b.global==p.global&&b.multiline==p.multiline&&b.ignoreCase==p.ignoreCase}if(typeof b!="object"||typeof p!="object"){return false}for(var l=n.length;l--;){if(n[l]==b){return true}}n.push(b);var l=0,k=true;if(m=="[object Array]"){if(l=b.length,k=l==p.length){for(;l--;){if(!(k=l in b==l in p&&aa(b[l],p[l],n))){break}}}}else{if("constructor" in b!="constructor" in p||b.constructor!=p.constructor){return false}for(var j in b){if(ak.has(b,j)&&(l++,!(k=ak.has(p,j)&&aa(b[j],p[j],n)))){break}}if(k){for(j in p){if(ak.has(p,j)&&!l--){break}}k=!l}}n.pop();return k}var Y=this,Q=Y._,ae={},ah=Array.prototype,ad=Object.prototype,aj=ah.slice,N=ah.unshift,ag=ad.toString,g=ad.hasOwnProperty,O=ah.forEach,M=ah.map,f=ah.reduce,d=ah.reduceRight,ac=ah.filter,Z=ah.every,X=ah.some,ab=ah.indexOf,W=ah.lastIndexOf,ad=Array.isArray,e=Object.keys,V=Function.prototype.bind,ak=function(b){return new af(b)};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=ak}exports._=ak}else{Y._=ak}ak.VERSION="1.3.1";var ai=ak.each=ak.forEach=function(b,m,l){if(b!=null){if(O&&b.forEach===O){b.forEach(m,l)}else{if(b.length===+b.length){for(var k=0,j=b.length;k<j;k++){if(k in b&&m.call(l,b[k],k,b)===ae){break}}}else{for(k in b){if(ak.has(b,k)&&m.call(l,b[k],k,b)===ae){break}}}}}};ak.map=ak.collect=function(k,m,j){var l=[];if(k==null){return l}if(M&&k.map===M){return k.map(m,j)}ai(k,function(b,p,n){l[l.length]=m.call(j,b,p,n)});if(k.length===+k.length){l.length=k.length}return l};ak.reduce=ak.foldl=ak.inject=function(b,m,l,k){var j=arguments.length>2;b==null&&(b=[]);if(f&&b.reduce===f){return k&&(m=ak.bind(m,k)),j?b.reduce(m,l):b.reduce(m)}ai(b,function(p,n,q){j?l=m.call(k,l,p,n,q):(l=p,j=true)});if(!j){throw new TypeError("Reduce of empty array with no initial value")}return l};ak.reduceRight=ak.foldr=function(b,n,m,l){var k=arguments.length>2;b==null&&(b=[]);if(d&&b.reduceRight===d){return l&&(n=ak.bind(n,l)),k?b.reduceRight(n,m):b.reduceRight(n)}var j=ak.toArray(b).reverse();l&&!k&&(n=ak.bind(n,l));return k?ak.reduce(j,n,m,l):ak.reduce(j,n)};ak.find=ak.detect=function(k,m,j){var l;U(k,function(b,p,n){if(m.call(j,b,p,n)){return l=b,true}});return l};ak.filter=ak.select=function(k,m,j){var l=[];if(k==null){return l}if(ac&&k.filter===ac){return k.filter(m,j)}ai(k,function(b,p,n){m.call(j,b,p,n)&&(l[l.length]=b)});return l};ak.reject=function(k,m,j){var l=[];if(k==null){return l}ai(k,function(b,p,n){m.call(j,b,p,n)||(l[l.length]=b)});return l};ak.every=ak.all=function(k,m,j){var l=true;if(k==null){return l}if(Z&&k.every===Z){return k.every(m,j)}ai(k,function(b,p,n){if(!(l=l&&m.call(j,b,p,n))){return ae}});return l};var U=ak.some=ak.any=function(b,l,k){l||(l=ak.identity);var j=false;if(b==null){return j}if(X&&b.some===X){return b.some(l,k)}ai(b,function(n,m,p){if(j||(j=l.call(k,n,m,p))){return ae}});return !!j};ak.include=ak.contains=function(k,l){var j=false;if(k==null){return j}return ab&&k.indexOf===ab?k.indexOf(l)!=-1:j=U(k,function(b){return b===l})};ak.invoke=function(b,k){var j=aj.call(arguments,2);return ak.map(b,function(l){return(ak.isFunction(k)?k||l:l[k]).apply(l,j)})};ak.pluck=function(b,j){return ak.map(b,function(k){return k[j]})};ak.max=function(b,l,k){if(!l&&ak.isArray(b)){return Math.max.apply(Math,b)}if(!l&&ak.isEmpty(b)){return -Infinity}var j={computed:-Infinity};ai(b,function(n,m,p){m=l?l.call(k,n,m,p):n;m>=j.computed&&(j={value:n,computed:m})});return j.value};ak.min=function(b,l,k){if(!l&&ak.isArray(b)){return Math.min.apply(Math,b)}if(!l&&ak.isEmpty(b)){return Infinity}var j={computed:Infinity};ai(b,function(n,m,p){m=l?l.call(k,n,m,p):n;m<j.computed&&(j={value:n,computed:m})});return j.value};ak.shuffle=function(k){var j=[],l;ai(k,function(b,m){m==0?j[0]=b:(l=Math.floor(Math.random()*(m+1)),j[m]=j[l],j[l]=b)});return j};ak.sortBy=function(b,k,j){return ak.pluck(ak.map(b,function(m,l,n){return{value:m,criteria:k.call(j,m,l,n)}}).sort(function(m,l){var p=m.criteria,n=l.criteria;return p<n?-1:p>n?1:0}),"value")};ak.groupBy=function(b,l){var k={},j=ak.isFunction(l)?l:function(m){return m[l]};ai(b,function(n,m){var p=j(n,m);(k[p]||(k[p]=[])).push(n)});return k};ak.sortedIndex=function(b,n,m){m||(m=ak.identity);for(var l=0,k=b.length;l<k;){var j=l+k>>1;m(b[j])<m(n)?l=j+1:k=j}return l};ak.toArray=function(b){return !b?[]:b.toArray?b.toArray():ak.isArray(b)?aj.call(b):ak.isArguments(b)?aj.call(b):ak.values(b)};ak.size=function(b){return ak.toArray(b).length};ak.first=ak.head=function(k,j,l){return j!=null&&!l?aj.call(k,0,j):k[0]};ak.initial=function(k,j,l){return aj.call(k,0,k.length-(j==null||l?1:j))};ak.last=function(k,j,l){return j!=null&&!l?aj.call(k,Math.max(k.length-j,0)):k[k.length-1]};ak.rest=ak.tail=function(k,j,l){return aj.call(k,j==null||l?1:j)};ak.compact=function(b){return ak.filter(b,function(j){return !!j})};ak.flatten=function(b,j){return ak.reduce(b,function(k,l){if(ak.isArray(l)){return k.concat(j?l:ak.flatten(l))}k[k.length]=l;return k},[])};ak.without=function(b){return ak.difference(b,aj.call(arguments,1))};ak.uniq=ak.unique=function(b,l,k){var k=k?ak.map(b,k):b,j=[];ak.reduce(k,function(p,n,m){if(0==m||(l===true?ak.last(p)!=n:!ak.include(p,n))){p[p.length]=n,j[j.length]=b[m]}return p},[]);return j};ak.union=function(){return ak.uniq(ak.flatten(arguments,true))};ak.intersection=ak.intersect=function(b){var j=aj.call(arguments,1);return ak.filter(ak.uniq(b),function(k){return ak.every(j,function(l){return ak.indexOf(l,k)>=0})})};ak.difference=function(b){var j=ak.flatten(aj.call(arguments,1));return ak.filter(b,function(k){return !ak.include(j,k)})};ak.zip=function(){for(var b=aj.call(arguments),l=ak.max(ak.pluck(b,"length")),k=Array(l),j=0;j<l;j++){k[j]=ak.pluck(b,""+j)}return k};ak.indexOf=function(b,l,k){if(b==null){return -1}var j;if(k){return k=ak.sortedIndex(b,l),b[k]===l?k:-1}if(ab&&b.indexOf===ab){return b.indexOf(l)}for(k=0,j=b.length;k<j;k++){if(k in b&&b[k]===l){return k}}return -1};ak.lastIndexOf=function(k,j){if(k==null){return -1}if(W&&k.lastIndexOf===W){return k.lastIndexOf(j)}for(var l=k.length;l--;){if(l in k&&k[l]===j){return l}}return -1};ak.range=function(k,j,p){arguments.length<=1&&(j=k||0,k=0);for(var p=arguments[2]||1,n=Math.max(Math.ceil((j-k)/p),0),m=0,l=Array(n);m<n;){l[m++]=k,k+=p}return l};var S=function(){};ak.bind=function(b,l){var k,j;if(b.bind===V&&V){return V.apply(b,aj.call(arguments,1))}if(!ak.isFunction(b)){throw new TypeError}j=aj.call(arguments,2);return k=function(){if(!(this instanceof k)){return b.apply(l,j.concat(aj.call(arguments)))}S.prototype=b.prototype;var m=new S,n=b.apply(m,j.concat(aj.call(arguments)));return Object(n)===n?n:m}};ak.bindAll=function(b){var j=aj.call(arguments,1);j.length==0&&(j=ak.functions(b));ai(j,function(k){b[k]=ak.bind(b[k],b)});return b};ak.memoize=function(b,k){var j={};k||(k=ak.identity);return function(){var l=k.apply(this,arguments);return ak.has(j,l)?j[l]:j[l]=b.apply(this,arguments)}};ak.delay=function(k,j){var l=aj.call(arguments,2);return setTimeout(function(){return k.apply(k,l)},j)};ak.defer=function(b){return ak.delay.apply(ak,[b,1].concat(aj.call(arguments,1)))};ak.throttle=function(b,q){var p,n,m,l,k,j=ak.debounce(function(){k=l=false},q);return function(){p=this;n=arguments;var r;m||(m=setTimeout(function(){m=null;k&&b.apply(p,n);j()},q));l?k=true:b.apply(p,n);j();l=true}};ak.debounce=function(k,j){var l;return function(){var m=this,b=arguments;clearTimeout(l);l=setTimeout(function(){l=null;k.apply(m,b)},j)}};ak.once=function(k){var j=false,l;return function(){if(j){return l}j=true;return l=k.apply(this,arguments)}};ak.wrap=function(k,j){return function(){var b=[k].concat(aj.call(arguments,0));return j.apply(this,b)}};ak.compose=function(){var b=arguments;return function(){for(var j=arguments,k=b.length-1;k>=0;k--){j=[b[k].apply(this,j)]}return j[0]}};ak.after=function(k,j){return k<=0?j():function(){if(--k<1){return j.apply(this,arguments)}}};ak.keys=e||function(b){if(b!==Object(b)){throw new TypeError("Invalid object")}var k=[],j;for(j in b){ak.has(b,j)&&(k[k.length]=j)}return k};ak.values=function(b){return ak.map(b,ak.identity)};ak.functions=ak.methods=function(b){var k=[],j;for(j in b){ak.isFunction(b[j])&&k.push(j)}return k.sort()};ak.extend=function(b){ai(aj.call(arguments,1),function(j){for(var k in j){b[k]=j[k]}});return b};ak.defaults=function(b){ai(aj.call(arguments,1),function(j){for(var k in j){b[k]==null&&(b[k]=j[k])}});return b};ak.clone=function(b){return !ak.isObject(b)?b:ak.isArray(b)?b.slice():ak.extend({},b)};ak.tap=function(k,j){j(k);return k};ak.isEqual=function(k,j){return aa(k,j,[])};ak.isEmpty=function(b){if(ak.isArray(b)||ak.isString(b)){return b.length===0}for(var j in b){if(ak.has(b,j)){return false}}return true};ak.isElement=function(b){return !!(b&&b.nodeType==1)};ak.isArray=ad||function(b){return ag.call(b)=="[object Array]"};ak.isObject=function(b){return b===Object(b)};ak.isArguments=function(b){return ag.call(b)=="[object Arguments]"};if(!ak.isArguments(arguments)){ak.isArguments=function(b){return !(!b||!ak.has(b,"callee"))}}ak.isFunction=function(b){return ag.call(b)=="[object Function]"};ak.isString=function(b){return ag.call(b)=="[object String]"};ak.isNumber=function(b){return ag.call(b)=="[object Number]"};ak.isNaN=function(b){return b!==b};ak.isBoolean=function(b){return b===true||b===false||ag.call(b)=="[object Boolean]"};ak.isDate=function(b){return ag.call(b)=="[object Date]"};ak.isRegExp=function(b){return ag.call(b)=="[object RegExp]"};ak.isNull=function(b){return b===null};ak.isUndefined=function(b){return b===void 0};ak.has=function(k,j){return g.call(k,j)};ak.noConflict=function(){Y._=Q;return this};ak.identity=function(b){return b};ak.times=function(k,j,m){for(var l=0;l<k;l++){j.call(m,l)}};ak.escape=function(b){return(""+b).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")};ak.mixin=function(b){ai(ak.functions(b),function(j){c(j,ak[j]=b[j])})};var a=0;ak.uniqueId=function(k){var j=a++;return k?k+j:j};ak.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var T=/.^/,R=function(b){return b.replace(/\\\\/g,"\\").replace(/\\'/g,"'")};ak.template=function(b,l){var k=ak.templateSettings,k="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+b.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(k.escape||T,function(n,m){return"',_.escape("+R(m)+"),'"}).replace(k.interpolate||T,function(n,m){return"',"+R(m)+",'"}).replace(k.evaluate||T,function(n,m){return"');"+R(m).replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",j=new Function("obj","_",k);return l?j(l,ak):function(m){return j.call(this,m,ak)}};ak.chain=function(b){return ak(b).chain()};var af=function(b){this._wrapped=b};ak.prototype=af.prototype;var P=function(b,j){return j?ak(b).chain():b},c=function(b,j){af.prototype[b]=function(){var k=aj.call(arguments);N.call(k,this._wrapped);return P(j.apply(ak,k),this._chain)}};ak.mixin(ak);ai("pop,push,reverse,shift,sort,splice,unshift".split(","),function(k){var j=ah[k];af.prototype[k]=function(){var l=this._wrapped;j.apply(l,arguments);var b=l.length;(k=="shift"||k=="splice")&&b===0&&delete l[0];return P(l,this._chain)}});ai(["concat","join","slice"],function(k){var j=ah[k];af.prototype[k]=function(){return P(j.apply(this._wrapped,arguments),this._chain)}});af.prototype.chain=function(){this._chain=true;return this};af.prototype.value=function(){return this._wrapped}}).call(this);(function(){var K=this,C=K.Backbone,B=Array.prototype.slice,n=Array.prototype.splice,M;M="undefined"!==typeof exports?exports:K.Backbone={};M.VERSION="0.9.1";var N=K._;!N&&"undefined"!==typeof require&&(N=require("underscore"));var L=K.jQuery||K.Zepto||K.ender;M.setDomLibrary=function(f){L=f};M.noConflict=function(){K.Backbone=C;return this};M.emulateHTTP=!1;M.emulateJSON=!1;M.Events={on:function(j,g,q){for(var p,j=j.split(/\s+/),m=this._callbacks||(this._callbacks={});p=j.shift();){p=m[p]||(m[p]={});var l=p.tail||(p.tail=p.next={});l.callback=g;l.context=q;p.tail=l.next={}}return this},off:function(j,g,q){var p,m,l;if(j){if(m=this._callbacks){for(j=j.split(/\s+/);p=j.shift();){if(l=m[p],delete m[p],g&&l){for(;(l=l.next)&&l.next;){if(!(l.callback===g&&(!q||l.context===q))){this.on(p,l.callback,l.context)}}}}}}else{delete this._callbacks}return this},trigger:function(g){var f,m,l,j;if(!(l=this._callbacks)){return this}j=l.all;for((g=g.split(/\s+/)).push(null);f=g.shift();){j&&g.push({next:j.next,tail:j.tail,event:f}),(m=l[f])&&g.push({next:m.next,tail:m.tail})}for(j=B.call(arguments,1);m=g.pop();){f=m.tail;for(l=m.event?[m.event].concat(j):j;(m=m.next)!==f;){m.callback.apply(m.context||this,l)}}return this}};M.Events.bind=M.Events.on;M.Events.unbind=M.Events.off;M.Model=function(g,f){var j;g||(g={});f&&f.parse&&(g=this.parse(g));if(j=J(this,"defaults")){g=N.extend({},j,g)}f&&f.collection&&(this.collection=f.collection);this.attributes={};this._escapedAttributes={};this.cid=N.uniqueId("c");if(!this.set(g,{silent:!0})){throw Error("Can't create an invalid model")}delete this._changed;this._previousAttributes=N.clone(this.attributes);this.initialize.apply(this,arguments)};N.extend(M.Model.prototype,M.Events,{idAttribute:"id",initialize:function(){},toJSON:function(){return N.clone(this.attributes)},get:function(f){return this.attributes[f]},escape:function(g){var f;if(f=this._escapedAttributes[g]){return f}f=this.attributes[g];return this._escapedAttributes[g]=N.escape(null==f?"":""+f)},has:function(f){return null!=this.attributes[f]},set:function(g,f,r){var p,m;N.isObject(g)||null==g?(p=g,r=f):(p={},p[g]=f);r||(r={});if(!p){return this}p instanceof M.Model&&(p=p.attributes);if(r.unset){for(m in p){p[m]=void 0}}if(!this._validate(p,r)){return !1}this.idAttribute in p&&(this.id=p[this.idAttribute]);var f=this.attributes,j=this._escapedAttributes,q=this._previousAttributes||{},l=this._setting;this._changed||(this._changed={});this._setting=!0;for(m in p){if(g=p[m],N.isEqual(f[m],g)||delete j[m],r.unset?delete f[m]:f[m]=g,this._changing&&!N.isEqual(this._changed[m],g)&&(this.trigger("change:"+m,this,g,r),this._moreChanges=!0),delete this._changed[m],!N.isEqual(q[m],g)||N.has(f,m)!=N.has(q,m)){this._changed[m]=g}}l||(!r.silent&&this.hasChanged()&&this.change(r),this._setting=!1);return this},unset:function(g,f){(f||(f={})).unset=!0;return this.set(g,null,f)},clear:function(f){(f||(f={})).unset=!0;return this.set(N.clone(this.attributes),f)},fetch:function(g){var g=g?N.clone(g):{},f=this,j=g.success;g.success=function(p,m,l){if(!f.set(f.parse(p,l),g)){return !1}j&&j(f,p)};g.error=M.wrapError(g.error,f,g);return(this.sync||M.sync).call(this,"read",this,g)},save:function(g,f,q){var p,m;N.isObject(g)||null==g?(p=g,q=f):(p={},p[g]=f);q=q?N.clone(q):{};q.wait&&(m=N.clone(this.attributes));g=N.extend({},q,{silent:!0});if(p&&!this.set(p,q.wait?g:q)){return !1}var j=this,l=q.success;q.success=function(s,r,t){r=j.parse(s,t);q.wait&&(r=N.extend(p||{},r));if(!j.set(r,q)){return !1}l?l(j,s):j.trigger("sync",j,s,q)};q.error=M.wrapError(q.error,j,q);f=this.isNew()?"create":"update";f=(this.sync||M.sync).call(this,f,this,q);q.wait&&this.set(m,g);return f},destroy:function(g){var g=g?N.clone(g):{},f=this,m=g.success,l=function(){f.trigger("destroy",f,f.collection,g)};if(this.isNew()){return l()}g.success=function(p){g.wait&&l();m?m(f,p):f.trigger("sync",f,p,g)};g.error=M.wrapError(g.error,f,g);var j=(this.sync||M.sync).call(this,"delete",this,g);g.wait||l();return j},url:function(){var f=J(this.collection,"url")||J(this,"urlRoot")||G();return this.isNew()?f:f+("/"==f.charAt(f.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(f){return f},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},change:function(g){if(this._changing||!this.hasChanged()){return this}this._moreChanges=this._changing=!0;for(var f in this._changed){this.trigger("change:"+f,this,this._changed[f],g)}for(;this._moreChanges;){this._moreChanges=!1,this.trigger("change",this,g)}this._previousAttributes=N.clone(this.attributes);delete this._changed;this._changing=!1;return this},hasChanged:function(f){return !arguments.length?!N.isEmpty(this._changed):this._changed&&N.has(this._changed,f)},changedAttributes:function(g){if(!g){return this.hasChanged()?N.clone(this._changed):!1}var f,m=!1,l=this._previousAttributes,j;for(j in g){if(!N.isEqual(l[j],f=g[j])){(m||(m={}))[j]=f}}return m},previous:function(f){return !arguments.length||!this._previousAttributes?null:this._previousAttributes[f]},previousAttributes:function(){return N.clone(this._previousAttributes)},isValid:function(){return !this.validate(this.attributes)},_validate:function(g,f){if(f.silent||!this.validate){return !0}var g=N.extend({},this.attributes,g),j=this.validate(g,f);if(!j){return !0}f&&f.error?f.error(this,j,f):this.trigger("error",this,j,f);return !1}});M.Collection=function(g,f){f||(f={});f.comparator&&(this.comparator=f.comparator);this._reset();this.initialize.apply(this,arguments);g&&this.reset(g,{silent:!0,parse:f.parse})};N.extend(M.Collection.prototype,M.Events,{model:M.Model,initialize:function(){},toJSON:function(){return this.map(function(f){return f.toJSON()})},add:function(u,t){var s,r,q,p,m,l={},f={};t||(t={});u=N.isArray(u)?u.slice():[u];for(s=0,r=u.length;s<r;s++){if(!(q=u[s]=this._prepareModel(u[s],t))){throw Error("Can't add an invalid model to a collection")}if(l[p=q.cid]||this._byCid[p]||null!=(m=q.id)&&(f[m]||this._byId[m])){throw Error("Can't add the same model to a collection twice")}l[p]=f[m]=q}for(s=0;s<r;s++){(q=u[s]).on("all",this._onModelEvent,this),this._byCid[q.cid]=q,null!=q.id&&(this._byId[q.id]=q)}this.length+=r;n.apply(this.models,[null!=t.at?t.at:this.models.length,0].concat(u));this.comparator&&this.sort({silent:!0});if(t.silent){return this}for(s=0,r=this.models.length;s<r;s++){if(l[(q=this.models[s]).cid]){t.index=s,q.trigger("add",q,this,t)}}return this},remove:function(j,f){var q,p,m,l;f||(f={});j=N.isArray(j)?j.slice():[j];for(q=0,p=j.length;q<p;q++){if(l=this.getByCid(j[q])||this.get(j[q])){delete this._byId[l.id],delete this._byCid[l.cid],m=this.indexOf(l),this.models.splice(m,1),this.length--,f.silent||(f.index=m,l.trigger("remove",l,this,f)),this._removeReference(l)}}return this},get:function(f){return null==f?null:this._byId[null!=f.id?f.id:f]},getByCid:function(f){return f&&this._byCid[f.cid||f]},at:function(f){return this.models[f]},sort:function(g){g||(g={});if(!this.comparator){throw Error("Cannot sort a set without a comparator")}var f=N.bind(this.comparator,this);1==this.comparator.length?this.models=this.sortBy(f):this.models.sort(f);g.silent||this.trigger("reset",this,g);return this},pluck:function(f){return N.map(this.models,function(g){return g.get(f)})},reset:function(g,f){g||(g=[]);f||(f={});for(var l=0,j=this.models.length;l<j;l++){this._removeReference(this.models[l])}this._reset();this.add(g,{silent:!0,parse:f.parse});f.silent||this.trigger("reset",this,f);return this},fetch:function(g){g=g?N.clone(g):{};void 0===g.parse&&(g.parse=!0);var f=this,j=g.success;g.success=function(p,m,l){f[g.add?"add":"reset"](f.parse(p,l),g);j&&j(f,p)};g.error=M.wrapError(g.error,f,g);return(this.sync||M.sync).call(this,"read",this,g)},create:function(g,f){var l=this,f=f?N.clone(f):{},g=this._prepareModel(g,f);if(!g){return !1}f.wait||l.add(g,f);var j=f.success;f.success=function(p,m){f.wait&&l.add(p,f);j?j(p,m):p.trigger("sync",g,m,f)};g.save(null,f);return g},parse:function(f){return f},chain:function(){return N(this.models).chain()},_reset:function(){this.length=0;this.models=[];this._byId={};this._byCid={}},_prepareModel:function(g,f){g instanceof M.Model?g.collection||(g.collection=this):(f.collection=this,g=new this.model(g,f),g._validate(g.attributes,f)||(g=!1));return g},_removeReference:function(f){this==f.collection&&delete f.collection;f.off("all",this._onModelEvent,this)},_onModelEvent:function(g,f,l,j){("add"==g||"remove"==g)&&l!=this||("destroy"==g&&this.remove(f,j),f&&g==="change:"+f.idAttribute&&(delete this._byId[f.previous(f.idAttribute)],this._byId[f.id]=f),this.trigger.apply(this,arguments))}});N.each("forEach,each,map,reduce,reduceRight,find,detect,filter,select,reject,every,all,some,any,include,contains,invoke,max,min,sortBy,sortedIndex,toArray,size,first,initial,rest,last,without,indexOf,shuffle,lastIndexOf,isEmpty,groupBy".split(","),function(f){M.Collection.prototype[f]=function(){return N[f].apply(N,[this.models].concat(N.toArray(arguments)))}});M.Router=function(f){f||(f={});f.routes&&(this.routes=f.routes);this._bindRoutes();this.initialize.apply(this,arguments)};var k=/:\w+/g,e=/\*\w+/g,d=/[-[\]{}()+?.,\\^$|#\s]/g;N.extend(M.Router.prototype,M.Events,{initialize:function(){},route:function(g,f,j){M.history||(M.history=new M.History);N.isRegExp(g)||(g=this._routeToRegExp(g));j||(j=this[f]);M.history.route(g,N.bind(function(l){l=this._extractParameters(g,l);j&&j.apply(this,l);this.trigger.apply(this,["route:"+f].concat(l));M.history.trigger("route",this,f,l)},this));return this},navigate:function(g,f){M.history.navigate(g,f)},_bindRoutes:function(){if(this.routes){var g=[],f;for(f in this.routes){g.unshift([f,this.routes[f]])}f=0;for(var j=g.length;f<j;f++){this.route(g[f][0],g[f][1],this[g[f][1]])}}},_routeToRegExp:function(f){f=f.replace(d,"\\$&").replace(k,"([^/]+)").replace(e,"(.*?)");return RegExp("^"+f+"$")},_extractParameters:function(g,f){return g.exec(f).slice(1)}});M.History=function(){this.handlers=[];N.bindAll(this,"checkUrl")};var H=/^[#\/]/,c=/msie [\w.]+/,I=!1;N.extend(M.History.prototype,M.Events,{interval:50,getFragment:function(g,f){if(null==g){if(this._hasPushState||f){var g=window.location.pathname,j=window.location.search;j&&(g+=j)}else{g=window.location.hash}}g=decodeURIComponent(g);g.indexOf(this.options.root)||(g=g.substr(this.options.root.length));return g.replace(H,"")},start:function(g){if(I){throw Error("Backbone.history has already been started")}this.options=N.extend({},{root:"/"},this.options,g);this._wantsHashChange=!1!==this.options.hashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||!window.history||!window.history.pushState);var g=this.getFragment(),f=document.documentMode;if(f=c.exec(navigator.userAgent.toLowerCase())&&(!f||7>=f)){this.iframe=L('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(g)}this._hasPushState?L(window).bind("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange" in window&&!f?L(window).bind("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval));this.fragment=g;I=!0;g=window.location;f=g.pathname==this.options.root;if(this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!f){return this.fragment=this.getFragment(null,!0),window.location.replace(this.options.root+"#"+this.fragment),!0}this._wantsPushState&&this._hasPushState&&f&&g.hash&&(this.fragment=g.hash.replace(H,""),window.history.replaceState({},document.title,g.protocol+"//"+g.host+this.options.root+this.fragment));if(!this.options.silent){return this.loadUrl()}},stop:function(){L(window).unbind("popstate",this.checkUrl).unbind("hashchange",this.checkUrl);clearInterval(this._checkUrlInterval);I=!1},route:function(g,f){this.handlers.unshift({route:g,callback:f})},checkUrl:function(){var f=this.getFragment();f==this.fragment&&this.iframe&&(f=this.getFragment(this.iframe.location.hash));if(f==this.fragment||f==decodeURIComponent(this.fragment)){return !1}this.iframe&&this.navigate(f);this.loadUrl()||this.loadUrl(window.location.hash)},loadUrl:function(g){var f=this.fragment=this.getFragment(g);return N.any(this.handlers,function(j){if(j.route.test(f)){return j.callback(f),!0}})},navigate:function(g,f){if(!I){return !1}if(!f||!0===f){f={trigger:f}}var j=(g||"").replace(H,"");this.fragment==j||this.fragment==decodeURIComponent(j)||(this._hasPushState?(0!=j.indexOf(this.options.root)&&(j=this.options.root+j),this.fragment=j,window.history[f.replace?"replaceState":"pushState"]({},document.title,j)):this._wantsHashChange?(this.fragment=j,this._updateHash(window.location,j,f.replace),this.iframe&&j!=this.getFragment(this.iframe.location.hash)&&(f.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,j,f.replace))):window.location.assign(this.options.root+g),f.trigger&&this.loadUrl(g))},_updateHash:function(g,f,j){j?g.replace(g.toString().replace(/(javascript:|#).*$/,"")+"#"+f):g.hash=f}});M.View=function(f){this.cid=N.uniqueId("view");this._configure(f||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()};var b=/^(\S+)\s*(.*)$/,F="model,collection,el,id,attributes,className,tagName".split(",");N.extend(M.View.prototype,M.Events,{tagName:"div",$:function(f){return this.$el.find(f)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();return this},make:function(g,f,j){g=document.createElement(g);f&&L(g).attr(f);j&&L(g).html(j);return g},setElement:function(g,f){this.$el=L(g);this.el=this.$el[0];!1!==f&&this.delegateEvents();return this},delegateEvents:function(g){if(g||(g=J(this,"events"))){this.undelegateEvents();for(var f in g){var m=g[f];N.isFunction(m)||(m=this[g[f]]);if(!m){throw Error('Event "'+g[f]+'" does not exist')}var l=f.match(b),j=l[1],l=l[2],m=N.bind(m,this),j=j+(".delegateEvents"+this.cid);""===l?this.$el.bind(j,m):this.$el.delegate(l,j,m)}}},undelegateEvents:function(){this.$el.unbind(".delegateEvents"+this.cid)},_configure:function(g){this.options&&(g=N.extend({},this.options,g));for(var f=0,l=F.length;f<l;f++){var j=F[f];g[j]&&(this[j]=g[j])}this.options=g},_ensureElement:function(){if(this.el){this.setElement(this.el,!1)}else{var f=J(this,"attributes")||{};this.id&&(f.id=this.id);this.className&&(f["class"]=this.className);this.setElement(this.make(this.tagName,f),!1)}}});M.Model.extend=M.Collection.extend=M.Router.extend=M.View.extend=function(g,f){var j=a(this,g,f);j.extend=this.extend;return j};var E={create:"POST",update:"PUT","delete":"DELETE",read:"GET"};M.sync=function(g,f,m){var l=E[g],j={type:l,dataType:"json"};m.url||(j.url=J(f,"url")||G());if(!m.data&&f&&("create"==g||"update"==g)){j.contentType="application/json",j.data=JSON.stringify(f.toJSON())}M.emulateJSON&&(j.contentType="application/x-www-form-urlencoded",j.data=j.data?{model:j.data}:{});if(M.emulateHTTP&&("PUT"===l||"DELETE"===l)){M.emulateJSON&&(j.data._method=l),j.type="POST",j.beforeSend=function(p){p.setRequestHeader("X-HTTP-Method-Override",l)}}"GET"!==j.type&&!M.emulateJSON&&(j.processData=!1);return L.ajax(N.extend(j,m))};M.wrapError=function(g,f,j){return function(m,l){l=m===f?l:m;g?g(f,l,j):f.trigger("error",f,l,j)}};var D=function(){},a=function(g,f,l){var j;j=f&&f.hasOwnProperty("constructor")?f.constructor:function(){g.apply(this,arguments)};N.extend(j,g);D.prototype=g.prototype;j.prototype=new D;f&&N.extend(j.prototype,f);l&&N.extend(j,l);j.prototype.constructor=j;j.__super__=g.prototype;return j},J=function(g,f){return !g||!g[f]?null:N.isFunction(g[f])?g[f]():g[f]},G=function(){throw Error('A "url" property or function must be specified')}}).call(this);jQuery(function(a){window.StoreData=Backbone.Model.extend({defaults:function(){return{loggedIn:true}}});window.Item=Backbone.Model.extend({defaults:function(){return{loaded:false,bought:false}},url:function(){return"/miniStore/getStoreItem?itemId="+this.get("prodId")+"&rnd="+Math.random()},parse:function(c){if(c.result==="success"){window.storeData.set({_PF:c.data.wallets._PF,_DV:c.data.wallets._DV,_csrf_token:c.data._csrf_token});return{src:c.data.storeItem.image,description:String(c.data.storeItem.description!==undefined?c.data.storeItem.description:"").replace(/\|n/g,""),name:c.data.storeItem.name,pricePoints:c.data.storeItem.pricePoints,heroes:c.data.personas,stats:c.data.storeItem.stats,loaded:true}}else{if(c.result==="notAuthenticated"){window.storeData.set({loggedIn:false});return{loaded:true}}else{alert("ERROR!")}}}});window.AvailableItems=Backbone.Collection.extend({model:Item});window.Items=new AvailableItems();window.ItemView=Backbone.View.extend({className:"ministore",template:_.template(a("#item-template").html()+" "),events:{"mouseenter .pricePoint.funds":"showHeroes","click .noFunds .fund":"fund","click .heroBox .buy":"buy"},initialize:function(){this.model.bind("change",this.render,this);if(window.storeData.get("loggedIn")!==false&&!this.model.get("loaded")){this.timerId=setTimeout(_.bind(function(){this.fetch({dataType:"json"})},this.model),800)}this.left=false},render:function(k){if(!this.model.get("bought")){this.left=false;if(a(window).width()-a(this.model.get("el")).offset().left<500){this.left=true}a(this.el).html(this.template(this.model.toJSON())).css("top",a(this.model.get("el")).offset().top-4).show();if(this.left){a(this.el).css("right",a(window).width()-a(this.model.get("el")).offset().left-72).addClass("left")}else{a(this.el).css("left",a(this.model.get("el")).offset().left-10)}var j=_.template(a("#stats-template").html()+" ");var d=_.map(this.model.get("stats"),function(m,e){if(m!==null){return j({label:e,value:m[0],valueCode:m[1]})}}).join("");this.$(".stats").html(d);var l=_.template(a("#pricePoint-template").html()+" ");var g=_.map(this.model.get("pricePoints"),function(e){e.noFunds=(window.storeData.get(e.currency)<e.price);return l(e)}).join("");this.$(".pricePoints:hidden").html(g).show();var f=_.template(a("#hero-template").html()+" ");var c=_.map(this.model.get("heroes"),function(e){return f(e)}).join("");this.$(".heroPicker").html(c);if((a(this.el).offset().top+a(this.el).height())>(a(window).height()+a(window).scrollTop())){this.el.scrollIntoView(false)}}return this},positionCorrectly:function(){},remove:function(){clearTimeout(this.timerId);Backbone.View.prototype.remove.call(this)},showHeroes:function(d){var c=d.currentTarget;this.$(".pricePoints").find("li").removeClass("current");a(c).addClass("current");a(".heroPicker").css(this.left?"right":"left",a(c).outerWidth()-2).css("top",a(c).position().top).filter(":hidden").show()},fund:function(c){location.href="/store/purchaseFunds"},buy:function(j){var f=j.currentTarget;var d=a(f).closest(".heroBox").data("id");var c=a(f).closest(".ministore").find(".pricePoint.current").data("id");this.model.set({loaded:false});var g=_.template(a("#item-bought-template").html()+" ");a(g({id:this.model.get("prodId"),name:this.model.get("name"),src:this.model.get("src")})).appendTo("body");var k=a(".boughtItem").find("p");k.css("margin-top",(k.parent().height()-k.height())/2);a(this.el).hide();a.get("/miniStore/buyItem",{offerId:c,personaId:d,_csrf_token:window.storeData.get("_csrf_token"),rnd:Math.random()},_.bind(function(e){window.storeData.set({_PF:e.data.wallets._PF,_DV:e.data.wallets._DV});a("#siteHeader").find(".infoBar .wallet._PF .amount").text(this.formatPF(window.storeData.get("_PF")));a("#siteHeader").find(".infoBar .wallet._DV .amount").text(this.formatPF(window.storeData.get("_DV")));a(".boughtItem").find(".loading").hide().siblings("p").show().siblings(".dialog .close").show().click(function(){a(this).closest(".boughtItem").remove()});this.remove()},this))},formatPF:function(d){var c=/(\d+)(\d{3})/;while(c.test(d)){d=d.replace(c,"$1,$2")}return d}});var b=Backbone.Router.extend({initialize:function(){var c=new AvailableItems();a(".weapon-image, .currenthero .items .item, .dailyspinner-feed .icon").each(_.bind(function(n,p){var f=a(p).data("id");var j=a(p).data("name");var e=a(p).css("margin-right");var d=a(p).css("margin-left");var k=a(p).css("margin-top");var g=a(p).css("margin-bottom");var m=a(p).css("float");var l=new Item({el:p,prodId:f,name:j});a(p).wrap('<span class="ministore_item '+(a(p).is(".dailyspinner-feed .icon")?"store":"info")+'"/>').css("margin","0").css("float","none").parent(".ministore_item").mouseenter(_.bind(function(){this.openMinistore(l.cid)},this)).css({"margin-top":k,"margin-bottom":g,"margin-right":e,"margin-left":d,"float":m}).append('<span class="storeIcon"/>');c.add(l)},this));a(".storeitem").each(_.bind(function(f,g){var j=a(g).data("id");var e=a(g).data("name");icon=a(g).before('<img src="/static/images/item-icons/'+j+'.png" alt="'+e+'"/>').prev("img");var d=new Item({el:icon,prodId:j,name:e});a(icon).wrap('<span class="ministore_item info"/>').parent(".ministore_item").mouseenter(_.bind(function(){this.openMinistore(d.cid)},this)).append('<span class="storeIcon"/>').next(".storeitem").mouseenter(_.bind(function(){this.openMinistore(d.cid)},this));c.add(d)},this));window.storeData=new StoreData();this.itemList=c},openMinistore:function(c){if(this.itemView){this.itemView.remove()}this.itemView=new ItemView({model:this.itemList.getByCid(c)});document.body.appendChild(this.itemView.el);this.itemView.render();a(this.itemView.el).mouseleave(_.bind(function(){this.closeTimeout=setTimeout(_.bind(this.remove,this),400)},this.itemView)).mouseenter(_.bind(function(){clearTimeout(this.closeTimeout)},this.itemView))}});app=new b()});(function(a){a(function(){var d=3;var f=a("#siteHeader").children(".headerBar").children(".friends");var g=_.template(a("#friend-list-template").html()+" ");f.mouseenter(function(k){a(k.currentTarget).off("mouseenter");a.getJSON(f.data("url")+"?r="+Math.random(),function(m){if(m.data.friends){f.find(".indicator .number").text(m.data.friends.length);for(var l=0;l<m.data.friends.length;l++){f.find(".friendList").children(".noFriends").hide();f.find(".friendList").prepend(g(m.data.friends[l]))}}})});var c=a("#siteHeader").children(".headerBar").children(".notifications");var e=_.template(a("#alert-notification-template").html()+" ");var b=_.template(a("#notification-template").html()+" ");c.mouseenter(function(k){a(k.currentTarget).off("mouseenter");a.getJSON(c.data("url")+"?r="+Math.random(),function(n){var l=0;if(n.data.notifications){for(var m=0;m<n.data.notifications.length;m++){c.find(".notificationList").append(b(n.data.notifications[m]));l+=parseInt(n.data.notifications[m].description.match(/\d+/))}c.find(".webNotification").find(".dismiss").click(function(p){a.getJSON("/activities/removeImportantStatusFromActivityIdList?activityIds="+a(p.currentTarget).data("ids"),function(){var q=a(p.currentTarget).closest(".notification").slideUp();c.find(".indicator .number").text(parseInt(c.find(".indicator .number").text())-q.text().match(/\d+/))});return false})}if(n.data.alerts){l+=n.data.alerts.length;for(var m=0;m<n.data.alerts.length;m++){c.find(".notificationList").append(e(n.data.alerts[m]))}}c.find(".indicator .number").text(l)})});a("#siteHeader").find(".headerBar > .heroes").click(function(){a("#siteHeader").find(".heroSelector").slideToggle().find(".exitLeftStack, .exitRightStack").removeClass("exitLeftStack exitRightStack");a(this).toggleClass("open");a(".card .persona-avatar").each(function(){a(this).attr("src",a(this).data("src"))})});var j=a(".heroSelector").find(".cards");j.find(".defaultHero").click(function(k){a.getJSON(a(this).data("url")+"?r="+Math.random(),_.bind(function(m){this.closest(".cards").find(".defaultHero").removeClass("default");this.addClass("default");var l=this.closest("#siteHeader").find(".displayHero");l.attr("href",m.data.url);l.children(".portrait").attr("src",m.data.mugshot);l.children(".name").text(m.data.name)},a(k.currentTarget)))});j.find(".card:not(.leftStack)").each(function(k,m){if(k<d){a(m).addClass("c"+(k+1))}else{var l=a(m).addClass("rightStack").find(".cardBg");l.attr("src",l.attr("src").replace("cardHangerLeft","cardHangerRight"))}});if(Modernizr.csstransitions){a(".heroSelector").find(".left").click(function(){var k=j.find(".card:not(.leftStack):first").index();if(k>=1){a(this).siblings(".from").text(parseInt(a(this).siblings(".from").text())-1);a(this).siblings(".to").text(parseInt(a(this).siblings(".to").text())-1);j.find(".card").each(function(l,n){if(l===k-1){a(n).removeClass("leftStack").addClass("c1 exitLeftStack")}else{if(l===k+d-1){var m=a(n).removeClass("c"+d+" exitRightStack").addClass("rightStack").find(".cardBg");m.attr("src",m.attr("src").replace("cardHangerLeft","cardHangerRight"))}else{if(l>k-1&&l<k+d){a(n).removeClass("c"+(l-k+1)+" exitLeftStack").addClass("c"+(l-k+2))}}}})}}).siblings(".right").click(function(){var l=j.find(".card:not(.leftStack):first").index();var k=j.find(".card").length;if(l<k-d){a(this).siblings(".from").text(parseInt(a(this).siblings(".from").text())+1);a(this).siblings(".to").text(parseInt(a(this).siblings(".to").text())+1);j.find(".card").each(function(m,p){if(m===l){var n=a(p).removeClass("c1 exitLeftStack").addClass("leftStack").find(".cardBg");n.attr("src",n.attr("src").replace("cardHangerRight","cardHangerLeft"))}else{if(m===l+d){a(p).removeClass("rightStack").addClass("c"+d+" exitRightStack")}else{if(m>l&&m<l+d){a(p).removeClass("c"+(m-l+1)+" exitRightStack").addClass("c"+(m-l))}}}})}})}else{a(".heroSelector").find(".left").click(function(){var k=j.data("firstcard");if(k>=1){a(this).siblings(".from").text(parseInt(a(this).siblings(".from").text())-1);a(this).siblings(".to").text(parseInt(a(this).siblings(".to").text())-1);j.find(".card").each(function(l,m){j.data("firstcard",k-1);if(l===k-1){a(m).animate({left:210,top:-18},function(){a(m).removeClass("leftStack").addClass("c1")})}else{if(l===k+d-1){a(m).animate({left:800,top:-35},function(){a(m).removeClass("c"+d).addClass("rightStack")})}else{if(l>k-1&&l<k+d){a(m).animate({left:"+=190"},function(){a(m).removeClass("c"+(l-k+1)).addClass("c"+(l-k+2))})}}}})}}).siblings(".right").click(function(){var l=j.data("firstcard");var k=j.find(".card").length;if(l<k-d){a(this).siblings(".from").text(parseInt(a(this).siblings(".from").text())+1);a(this).siblings(".to").text(parseInt(a(this).siblings(".to").text())+1);j.find(".card").each(function(m,n){j.data("firstcard",l+1);if(m===l){a(n).animate({left:-20,top:-35},function(){a(n).removeClass("c1").addClass("leftStack")})}else{if(m===l+d){a(n).animate({left:590,top:-18},function(){a(n).removeClass("rightStack").addClass("c"+d)})}else{if(m>l&&m<l+d){a(n).animate({left:"-=190"},function(){a(this).removeClass("c"+(m-l+1)).addClass("c"+(m-l))})}}}})}})}})})(jQuery);(function(a){a(function(){var b=a(".loginForm");b.find("input").keypress(function(c){if(c.which===13){a(this).closest("form").submit()}});b.find(".submit").click(function(){a(this).closest("form").submit()});b.submit(function(){a(this).addClass("submitted")})})})(jQuery);(function(a){a(document).ready(function(){a(".cache-info-container").magmaToggle({distance:15,onEvent:"mousemove",offEvent:"mouseleave"})})})(jQuery);var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),j=c?/win/.test(c):/win/.test(e),l=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],m=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){m=aB.plugins[ab].description;if(m&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;m=m.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(m.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(m.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(m)?parseInt(m.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var k=new ActiveXObject(X);if(k){m=k.GetVariable("$version");if(m){d=true;m=m.split(" ")[1].split(",");f=[parseInt(m[0],10),parseInt(m[1],10),parseInt(m[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:j,mac:l}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var j=0;j<g;j++){var c=aG[j].id;var n=aG[j].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var k=aS(c);if(k){if(ao(aG[j].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(n){a.success=true;a.ref=av(c);n(a)}}else{if(aG[j].expressInstall&&au()){var e={};e.data=aG[j].expressInstall;e.width=k.getAttribute("width")||"0";e.height=k.getAttribute("height")||"0";if(k.getAttribute("class")){e.styleclass=k.getAttribute("class")}if(k.getAttribute("align")){e.align=k.getAttribute("align")}var f={};var d=k.getElementsByTagName("param");var m=d.length;for(var l=0;l<m;l++){if(d[l].getAttribute("name").toLowerCase()!="movie"){f[d[l].getAttribute("name")]=d[l].getAttribute("value")}}ae(e,f,c,n)}else{aF(k);if(n){n(a)}}}}}else{ay(c,true);if(n){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}n(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,j,e){aU=true;ap=e||null;at={success:false,id:j};var a=aS(j);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=j}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");j+="SWFObjectNew";g.setAttribute("id",j);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,j)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var k in e){if(e[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){g.movie=e[k]}else{if(k.toLowerCase()=="styleclass"){f+=' class="'+e[k]+'"'}else{if(k.toLowerCase()!="classid"){f+=" "+k+'="'+e[k]+'"'}}}}}var j="";for(var l in g){if(g[l]!=Object.prototype[l]){j+='<param name="'+l+'" value="'+g[l]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+j+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var m in e){if(e[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){b.setAttribute("class",e[m])}else{if(m.toLowerCase()!="classid"){b.setAttribute(m,e[m])}}}}for(var n in g){if(g[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){aQ(b,n,g[n])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(m,e,j,f,c,a,b,k,g,l){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&m&&e&&j&&f&&c){ay(e,false);aj(function(){j+="";f+="";var t={};if(g&&typeof g===aD){for(var r in g){t[r]=g[r]}}t.data=m;t.width=j;t.height=f;var q={};if(k&&typeof k===aD){for(var s in k){q[s]=k[s]}}if(b&&typeof b===aD){for(var n in b){if(typeof q.flashvars!=aq){q.flashvars+="&"+n+"="+b[n]}else{q.flashvars=n+"="+b[n]}}}if(ao(c)){var p=aA(t,q,e);if(t.id==e){ay(e,true)}d.success=true;d.ref=p}else{if(a&&au()){t.data=a;ae(t,q,e,l);return}else{ay(e,true)}}if(l){l(d)}})}else{if(l){l(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();var s_account="eaeacom,eagameplaybfheroesglobal,eaeacomeu";var s_imageDisableFlag=0;var s_ea=s_gi(s_account);s_ea.visitorNamespace="eaeacom";s_ea.dynamicAccountSelection=false;s_ea.dynamicAccountList="eaglobalus,eagamescom=www.eagames.com;eaglobalus,easportscom=www.easports.com;eaglobalus,easportsbigcom=www.easportsbig.com;eadevus=alpha.ea.com;eadevus=ea-colo.ea.com;eadevus=beta.ea.com;eadevus=online.ea.com;eadevus=ad.ea.com;eadevus=alpha.pogo.com;eadevus=beta.pogo.com;eaglobalus,eaeacom=ea.com;eaglobalus,eapogocom=pogo.com";s_ea.currencyCode="USD";s_ea.trackDownloadLinks=false;s_ea.trackExternalLinks=false;s_ea.trackInlineStats=false;s_ea.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls,dmg,rar,mp4,png,flv";s_ea.linkInternalFilters="javascript:,eagames.com,ea.com,easports.com,pogo.com,speedhunters.com,needforspeed.com,spore.com,noknownsurvivors.com,thesims.com,maxis.com,simcity.com,thesims2.com,urbzsims.com,battlefield-heroes.com,swtor.com,mirrorsedge.com,footballworld.com,sportsworld.com,eacashcard.com,conquerthislife.com,commandandconquer.com,battleforge.com,warhammeronline.com,mythicentertainment.com,eamythic.com,mythicstore.com,darkageofcamelot.com,camelotherald.com,uoherald.com,dantesinferno.com,brutallegend.com,henryhatsworth.com,bioware.com,pandemicstudios.com,mirrorsedge2d.com,easportsactive.com,mysims.com,mysimsagent.com,sporewtf.com,rupture.com,charmgirlsclub.com,eacomics.com,medalofhonor.com,easportsfootball.,battlefieldbadcompany2.com,ultimateprestige.com";s_ea.linkLeaveQueryString=false;s_ea.linkTrackVars="None";s_ea.linkTrackEvents="None";s_ea.charSet="UTF-8";s_ea.usePlugins=true;function s_ea_doPlugins(a){if(a.getQueryParam("sssdmh")){a.eVar13=a.getQueryParam("sssdmh")}if(a.getQueryParam("sourceid")){a.campaign=a.getQueryParam("sourceid");a.eVar14=a.getQueryParam("sourceid");a.eVar4=a.getQueryParam("sourceid");a.eVar37=a.getQueryParam("sourceid")}a.prop44=a.getAndPersistValue(a.campaign,"s_cp_persist",0);if(a.getQueryParam("sssdmh")){a.eVar13=a.getQueryParam("sssdmh")}if(!window.s_ea.eVar5){a.eVar5=a.getQueryParam("intcmp");if((a.getQueryParam("intcmp")!="")&&(a.getQueryParam("intcmp")!=null)){a.eVar14=a.getQueryParam("intcmp")}}a.detectRIA("s_ria","prop33","prop34","","","");if((a.events=="")||(a.events==undefined)||(a.events==null)){a.events="event35,event36"}}s_ea.doPlugins=s_ea_doPlugins;s_ea.getQueryParam=new Function("p","d","u","var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.location);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p.length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i==p.length?i:i+1)}return v");s_ea.p_gpv=new Function("k","u","var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v=s.pt(q,'&','p_gvf',k)}return v");s_ea.p_gvf=new Function("t","k","if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'True':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s.epa(v)}return ''");s_ea.detectRIA=new Function("cn","fp","sp","mfv","msv","sf","cn=cn?cn:'s_ria';msv=msv?msv:2;mfv=mfv?mfv:10;var s=this,sv='',fv=-1,dwi=0,fr='',sr='',w,mt=s.n.mimeTypes,uk=s.c_r(cn),k=s.c_w('s_cc','true',0)?'Y':'N';fk=uk.substring(0,uk.indexOf('|'));sk=uk.substring(uk.indexOf('|')+1,uk.length);if(k=='Y'&&s.p_fo('detectRIA')){if(uk&&!sf){if(fp){s[fp]=fk;}if(sp){s[sp]=sk;}return false;}if(!fk&&fp){if(s.pl&&s.pl.length){if(s.pl['Shockwave Flash 2.0'])fv=2;x=s.pl['Shockwave Flash'];if(x){fv=0;z=x.description;if(z)fv=z.substring(16,z.indexOf('.'));}}else if(navigator.plugins&&navigator.plugins.length){x=navigator.plugins['Shockwave Flash'];if(x){fv=0;z=x.description;if(z)fv=z.substring(16,z.indexOf('.'));}}else if(mt&&mt.length){x=mt['application/x-shockwave-flash'];if(x&&x.enabledPlugin)fv=0;}if(fv<=0)dwi=1;w=s.u.indexOf('Win')!=-1?1:0;if(dwi&&s.isie&&w&&execScript){result=false;for(var i=mfv;i>=3&&result!=true;i--){execScript('on error resume next: result = IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.'+i+'\"))','VBScript');fv=i;}}fr=fv==-1?'flash not detected':fv==0?'flash enabled (no version)':'flash '+fv;}if(!sk&&sp&&s.apv>=4.1){var tc='try{x=new ActiveXObject(\"AgControl.A'+'gControl\");for(var i=msv;i>0;i--){for(var j=9;j>=0;j--){if(x.is'+'VersionSupported(i+\".\"+j)){sv=i+\".\"+j;break;}}if(sv){break;}'+'}}catch(e){try{x=navigator.plugins[\"Silverlight Plug-In\"];sv=x'+'.description.substring(0,x.description.indexOf(\".\")+2);}catch('+'e){}}';eval(tc);sr=sv==''?'silverlight not detected':'silverlight '+sv;}if((fr&&fp)||(sr&&sp)){s.c_w(cn,fr+'|'+sr,0);if(fr)s[fp]=fr;if(sr)s[sp]=sr;}}");s_ea.setInitValOnce=new Function("v","c","e","var s=this,a=new Date,v=v?v:v='',c=c?c:c='s_sivo',e=e?e:0,k=s.c_r(c);if(!k){a.setTime(a.getTime()+e*86400000);s.c_w(c,v,e?a:0);}return k==''?v:k");s_ea.setUserState=new Function("v","if(!v || isNaN(v)){s_ea.prop43='LOGGEDOUT',v='No ID';} else{s_ea.prop43='LOGGEDIN'};return v");s_ea.getValOnce=new Function("v","c","e","var s=this,a=new Date,v=v?v:v='',c=c?c:c='s_gvo',e=e?e:0,k=s.c_r(c);if(v){a.setTime(a.getTime()+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");s_ea.getAndPersistValue=new Function("v","c","e","var s=this,a=new Date;e=e?e:0;a.setTime(a.getTime()+e*86400000);if(v)s.c_w(c,v,e?a:0);return s.c_r(c);");s_ea.p_fo=new Function("n","var s=this;if(!s.__fo){s.__fo=new Object;}if(!s.__fo[n]){s.__fo[n]=new Object;return 1;}else {return 0;}");s_ea.dc=112;var s_code="",s_objectID;function s_gi(j,k,A){var q="s._c='s_c';s.wd=window;if(!s.wd.s_c_in){s.wd.s_c_il=new Array;s.wd.s_c_in=0;}s._il=s.wd.s_c_il;s._in=s.wd.s_c_in;s._il[s._in]=s;s.wd.s_c_in++;s.an=s_an;s.cls=function(x,c){var i,y='';if(!c)c=this.an;for(i=0;i<x.length;i++){n=x.substring(i,i+1);if(c.indexOf(n)>=0)y+=n}return y};s.fl=function(x,l){return x?(''+x).substring(0,l):x};s.co=function(o){if(!o)return o;var n=new Object,x;for(x in o)if(x.indexOf('select')<0&&x.indexOf('filter')<0)n[x]=o[x];return n};s.num=function(x){x=''+x;for(var p=0;p<x.length;p++)if(('0123456789').indexOf(x.substring(p,p+1))<0)return 0;return 1};s.rep=s_rep;s.sp=s_sp;s.jn=s_jn;s.ape=function(x){var s=this,h='0123456789ABCDEF',i,c=s.charSet,n,l,e,y='';c=c?c.toUpperCase():'';if(x){x=''+x;if(c=='AUTO'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.substring(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e=h.substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+='%u'+e}else if(c=='+')y+='%2B';else y+=escape(c)}x=y}else{x=x?s.rep(escape(''+x),'+','%2B'):x;if(x&&c&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('%U')<0){i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substring(i,i+1).toUpperCase())>=0)return x.substring(0,i)+'u00'+x.substring(i);i=x.indexOf('%',i)}}}}return x};s.epa=function(x){var s=this;return x?unescape(s.rep(''+x,'+',' ')):x};s.pt=function(x,d,f,a){var s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.substring(0,y);r=s[f](t,a);if(r)return r;z+=y+d.length;t=x.substring(z,x.length);t=z<x.length?t:''}return ''};s.isf=function(t,a){var c=a.indexOf(':');if(c>=0)a=a.substring(0,c);if(t.substring(0,2)=='s_')t=t.substring(2);return (t!=''&&t==a)};s.fsf=function(t,a){var s=this;if(s.pt(a,',','isf',t))s.fsg+=(s.fsg!=''?',':'')+t;return 0};s.fs=function(x,f){var s=this;s.fsg='';s.pt(x,',','fsf',f);return s.fsg};s.si=function(wd){var s=this,c=''+s_gi,a=c.indexOf(\"{\"),b=c.lastIndexOf(\"}\"),m;c=s_fe(a>0&&b>0?c.substring(a+1,b):0);if(wd&&wd.document&&c){wd.setTimeout('function s_sv(o,n,k){var v=o[k],i;if(v){if(typeof(v)==\"string\"||typeof(v)==\"number\")n[k]=v;else if (typeof(v)==\"array\"){n[k]=new Array;for(i=0;i<v.length;i++)s_sv(v,n[k],i)}else if (typeof(v)==\"object\"){n[k]=new Object;for(i in v)s_sv(v,n[k],i)}}}function s_si(t){var wd=window,s,i,j,c,a,b;wd.s_gi=new Function(\"un\",\"pg\",\"ss\",\"'+c+'\");wd.s=s_gi(\"'+s.oun+'\");s=wd.s;s.sa(\"'+s.un+'\");s.tfs=wd;s.pt(s.vl_g,\",\",\"vo1\",t);s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3=\\'\\';if(t.m_l&&t.m_nl)for(i=0;i<t.m_nl.length;i++){n=t.m_nl[i];if(n){m=t[n];c=t[\"m_\"+n];if(m&&c){c=\"\"+c;if(c.indexOf(\"function\")>=0){a=c.indexOf(\"{\");b=c.lastIndexOf(\"}\");c=a>0&&b>0?c.substring(a+1,b):0;s[\"m_\"+n+\"_c\"]=c;if(m._e)s.loadModule(n);if(s[n])for(j=0;j<m._l.length;j++)s_sv(m,s[n],m._l[j])}}}}}var e,o,t;try{o=window.opener;if(o&&o.s_gi){t=o.s_gi(\"'+s.un+'\");if(t)s_si(t)}}catch(e){}',1)}};s.c_d='';s.c_gdf=function(t,a){var s=this;if(!s.num(t))return 1;return 0};s.c_gd=function(){var s=this,d=s.wd.location.hostname,n=s.fpCookieDomainPeriods,p;if(!n)n=s.cookieDomainPeriods;if(d&&!s.c_d){n=n?parseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf('.',p-1);n--}s.c_d=p>0&&s.pt(d,'.','c_gdf',0)?d.substring(p):d}}return s.c_d};s.c_r=function(k){var s=this;k=s.ape(k);var c=' '+s.d.cookie,i=c.indexOf(' '+k+'='),e=i<0?i:c.indexOf(';',i),v=i<0?'':s.epa(c.substring(i+2+k.length,e<0?c.length:e));return v!='[[B]]'?v:''};s.c_w=function(k,v,e){var s=this,d=s.c_gd(),l=s.cookieLifetime,t;v=''+v;l=l?(''+l).toUpperCase():'';if(e&&l!='SESSION'&&l!='NONE'){t=(v!=''?parseInt(l?l:0):-60);if(t){e=new Date;e.setTime(e.getTime()+(t*1000))}}if(k&&l!='NONE'){s.d.cookie=k+'='+s.ape(v!=''?v:'[[B]]')+'; path=/;'+(e&&l!='SESSION'?' expires='+e.toGMTString()+';':'')+(d?' domain='+d+';':'');return s.c_r(k)==v}return 0};s.eh=function(o,e,r,f){var s=this,b='s_'+e+'_'+s._in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.ehl;for(i=0;i<l.length&&n<0;i++){if(l[i].o==o&&l[i].e==e)n=i}if(n<0){n=i;l[n]=new Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r||f){x.b=r?0:o[e];x.o[e]=f}if(x.b){x.o[b]=x.b;return b}return 0};s.cet=function(f,a,t,o,b){var s=this,r,tcf;if(s.apv>=5&&(!s.isopera||s.apv>=7)){tcf=new Function('s','f','a','t','var e,r;try{r=s[f](a)}catch(e){r=s[t](e)}return r');r=tcf(s,f,a,t)}else{if(s.ismac&&s.u.indexOf('MSIE 4')>=0)r=s[b](a);else{s.eh(s.wd,'onerror',0,o);r=s[f](a);s.eh(s.wd,'onerror',1)}}return r};s.gtfset=function(e){var s=this;return s.tfs};s.gtfsoe=new Function('e','var s=s_c_il['+s._in+'],c;s.eh(window,\"onerror\",1);s.etfs=1;c=s.t();if(c)s.d.write(c);s.etfs=0;return true');s.gtfsfb=function(a){return window};s.gtfsf=function(w){var s=this,p=w.parent,l=w.location;s.tfs=w;if(p&&p.location!=l&&p.location.host==l.host){s.tfs=p;return s.gtfsf(s.tfs)}return s.tfs};s.gtfs=function(){var s=this;if(!s.tfs){s.tfs=s.wd;if(!s.etfs)s.tfs=s.cet('gtfsf',s.tfs,'gtfset',s.gtfsoe,'gtfsfb')}return s.tfs};s.mrq=function(u){var s=this,l=s.rl[u],n,r;s.rl[u]=0;if(l)for(n=0;n<l.length;n++){r=l[n];s.mr(0,0,r.r,0,r.t,r.u)}};s.br=function(id,rs){var s=this;if(s.disableBufferedRequests||!s.c_w('s_br',rs))s.brl=rs};s.flushBufferedRequests=function(){this.fbr(0)};s.fbr=function(id){var s=this,br=s.c_r('s_br');if(!br)br=s.brl;if(br){if(!s.disableBufferedRequests)s.c_w('s_br','');s.mr(0,0,br)}s.brl=0};s.mr=function(sess,q,rs,id,ta,u){var s=this,dc=s.dc,t1=s.trackingServer,t2=s.trackingServerSecure,tb=s.trackingServerBase,p='.sc',ns=s.visitorNamespace,un=s.cls(u?u:(ns?ns:s.fun)),r=new Object,l,imn='s_i_'+(un),im,b,e;if(!rs){if(t1){if(t2&&s.ssl)t1=t2}else{if(!tb)tb='2o7.net';if(dc)dc=(''+dc).toLowerCase();else dc='d1';if(tb=='2o7.net'){if(dc=='d1')dc='112';else if(dc=='d2')dc='122';p=''}t1=un+'.'+dc+'.'+p+tb}rs='http'+(s.ssl?'s':'')+'://'+t1+'/b/ss/'+s.un+'/'+(s.mobile?'5.1':'1')+'/H.20.3/'+sess+'?AQB=1&ndh=1'+(q?q:'')+'&AQE=1';if(s.isie&&!s.ismac){if(s.apv>5.5)rs=s.fl(rs,4095);else rs=s.fl(rs,2047)}if(id){s.br(id,rs);return}}if(s.d.images&&s.apv>=3&&(!s.isopera||s.apv>=7)&&(s.ns6<0||s.apv>=6.1)){if(!s.rc)s.rc=new Object;if(!s.rc[un]){s.rc[un]=1;if(!s.rl)s.rl=new Object;s.rl[un]=new Array;setTimeout('if(window.s_c_il)window.s_c_il['+s._in+'].mrq(\"'+un+'\")',750)}else{l=s.rl[un];if(l){r.t=ta;r.u=un;r.r=rs;l[l.length]=r;return ''}imn+='_'+s.rc[un];s.rc[un]++}im=s.wd[imn];if(!im)im=s.wd[imn]=new Image;im.s_l=0;im.onload=new Function('e','this.s_l=1;var wd=window,s;if(wd.s_c_il){s=wd.s_c_il['+s._in+'];s.mrq(\"'+un+'\");s.nrs--;if(!s.nrs)s.m_m(\"rr\")}');if(!s.nrs){s.nrs=1;s.m_m('rs')}else s.nrs++;im.src=rs;if(rs.indexOf('&pe=')>=0&&(!ta||ta=='_self'||ta=='_top'||(s.wd.name&&ta==s.wd.name))){b=e=new Date;while(!im.s_l&&e.getTime()-b.getTime()<500)e=new Date}return ''}return '<im'+'g sr'+'c=\"'+rs+'\" width=1 height=1 border=0 alt=\"\">'};s.gg=function(v){var s=this;if(!s.wd['s_'+v])s.wd['s_'+v]='';return s.wd['s_'+v]};s.glf=function(t,a){if(t.substring(0,2)=='s_')t=t.substring(2);var s=this,v=s.gg(t);if(v)s[t]=v};s.gl=function(v){var s=this;if(s.pg)s.pt(v,',','glf',0)};s.rf=function(x){var s=this,y,i,j,h,l,a,b='',c='',t;if(x){y=''+x;i=y.indexOf('?');if(i>0){a=y.substring(i+1);y=y.substring(0,i);h=y.toLowerCase();i=0;if(h.substring(0,7)=='http://')i+=7;else if(h.substring(0,8)=='https://')i+=8;h=h.substring(i);i=h.indexOf(\"/\");if(i>0){h=h.substring(0,i);if(h.indexOf('google')>=0){a=s.sp(a,'&');if(a.length>1){l=',q,ie,start,search_key,word,kw,cd,';for(j=0;j<a.length;j++){t=a[j];i=t.indexOf('=');if(i>0&&l.indexOf(','+t.substring(0,i)+',')>=0)b+=(b?'&':'')+t;else c+=(c?'&':'')+t}if(b&&c){y+='?'+b+'&'+c;if(''+x!=y)x=y}}}}}}return x};s.hav=function(){var s=this,qs='',fv=s.linkTrackVars,fe=s.linkTrackEvents,mn,i;if(s.pe){mn=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1);if(s[mn]){fv=s[mn].trackVars;fe=s[mn].trackEvents}}fv=fv?fv+','+s.vl_l+','+s.vl_l2:'';for(i=0;i<s.va_t.length;i++){var k=s.va_t[i],v=s[k],b=k.substring(0,4),x=k.substring(4),n=parseInt(x),q=k;if(v&&k!='linkName'&&k!='linkType'){if(s.pe||s.lnk||s.eo){if(fv&&(','+fv+',').indexOf(','+k+',')<0)v='';if(k=='events'&&fe)v=s.fs(v,fe)}if(v){if(k=='dynamicVariablePrefix')q='D';else if(k=='visitorID')q='vid';else if(k=='pageURL'){q='g';v=s.fl(v,255)}else if(k=='referrer'){q='r';v=s.fl(s.rf(v),255)}else if(k=='vmk'||k=='visitorMigrationKey')q='vmt';else if(k=='visitorMigrationServer'){q='vmf';if(s.ssl&&s.visitorMigrationServerSecure)v=''}else if(k=='visitorMigrationServerSecure'){q='vmf';if(!s.ssl&&s.visitorMigrationServer)v=''}else if(k=='charSet'){q='ce';if(v.toUpperCase()=='AUTO')v='ISO8859-1';else if(s.em==2)v='UTF-8'}else if(k=='visitorNamespace')q='ns';else if(k=='cookieDomainPeriods')q='cdp';else if(k=='cookieLifetime')q='cl';else if(k=='variableProvider')q='vvp';else if(k=='currencyCode')q='cc';else if(k=='channel')q='ch';else if(k=='transactionID')q='xact';else if(k=='campaign')q='v0';else if(k=='resolution')q='s';else if(k=='colorDepth')q='c';else if(k=='javascriptVersion')q='j';else if(k=='javaEnabled')q='v';else if(k=='cookiesEnabled')q='k';else if(k=='browserWidth')q='bw';else if(k=='browserHeight')q='bh';else if(k=='connectionType')q='ct';else if(k=='homepage')q='hp';else if(k=='plugins')q='p';else if(s.num(x)){if(b=='prop')q='c'+n;else if(b=='eVar')q='v'+n;else if(b=='list')q='l'+n;else if(b=='hier'){q='h'+n;v=s.fl(v,255)}}if(v)qs+='&'+q+'='+(k.substring(0,3)!='pev'?s.ape(v):v)}}}return qs};s.ltdf=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';var qi=h.indexOf('?');h=qi>=0?h.substring(0,qi):h;if(t&&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0};s.ltef=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';if(t&&h.indexOf(t)>=0)return 1;return 0};s.lt=function(h){var s=this,lft=s.linkDownloadFileTypes,lef=s.linkExternalFilters,lif=s.linkInternalFilters;lif=lif?lif:s.wd.location.hostname;h=h.toLowerCase();if(s.trackDownloadLinks&&lft&&s.pt(lft,',','ltdf',h))return 'd';if(s.trackExternalLinks&&h.substring(0,1)!='#'&&(lef||lif)&&(!lef||s.pt(lef,',','ltef',h))&&(!lif||!s.pt(lif,',','ltef',h)))return 'e';return ''};s.lc=new Function('e','var s=s_c_il['+s._in+'],b=s.eh(this,\"onclick\");s.lnk=s.co(this);s.t();s.lnk=0;if(b)return this[b](e);return true');s.bc=new Function('e','var s=s_c_il['+s._in+'],f,tcf;if(s.d&&s.d.all&&s.d.all.cppXYctnr)return;s.eo=e.srcElement?e.srcElement:e.target;tcf=new Function(\"s\",\"var e;try{if(s.eo&&(s.eo.tagName||s.eo.parentElement||s.eo.parentNode))s.t()}catch(e){}\");tcf(s);s.eo=0');s.oh=function(o){var s=this,l=s.wd.location,h=o.href?o.href:'',i,j,k,p;i=h.indexOf(':');j=h.indexOf('?');k=h.indexOf('/');if(h&&(i<0||(j>=0&&i>j)||(k>=0&&i>k))){p=o.protocol&&o.protocol.length>1?o.protocol:(l.protocol?l.protocol:'');i=l.pathname.lastIndexOf('/');h=(p?p+'//':'')+(o.host?o.host:(l.host?l.host:''))+(h.substring(0,1)!='/'?l.pathname.substring(0,i<0?0:i)+'/':'')+h}return h};s.ot=function(o){var t=o.tagName;t=t&&t.toUpperCase?t.toUpperCase():'';if(t=='SHAPE')t='';if(t){if(t=='INPUT'&&o.type&&o.type.toUpperCase)t=o.type.toUpperCase();else if(!t&&o.href)t='A';}return t};s.oid=function(o){var s=this,t=s.ot(o),p,c,n='',x=0;if(t&&!o.s_oid){p=o.protocol;c=o.onclick;if(o.href&&(t=='A'||t=='AREA')&&(!c||!p||p.toLowerCase().indexOf('javascript')<0))n=s.oh(o);else if(c){n=s.rep(s.rep(s.rep(s.rep(''+c,\"\\r\",''),\"\\n\",''),\"\\t\",''),' ','');x=2}else if(o.value&&(t=='INPUT'||t=='SUBMIT')){n=o.value;x=3}else if(o.src&&t=='IMAGE')n=o.src;if(n){o.s_oid=s.fl(n,100);o.s_oidt=x}}return o.s_oid};s.rqf=function(t,un){var s=this,e=t.indexOf('='),u=e>=0?','+t.substring(0,e)+',':'';return u&&u.indexOf(','+un+',')>=0?s.epa(t.substring(e+1)):''};s.rq=function(un){var s=this,c=un.indexOf(','),v=s.c_r('s_sq'),q='';if(c<0)return s.pt(v,'&','rqf',un);return s.pt(un,',','rq',0)};s.sqp=function(t,a){var s=this,e=t.indexOf('='),q=e<0?'':s.epa(t.substring(e+1));s.sqq[q]='';if(e>=0)s.pt(t.substring(0,e),',','sqs',q);return 0};s.sqs=function(un,q){var s=this;s.squ[un]=q;return 0};s.sq=function(q){var s=this,k='s_sq',v=s.c_r(k),x,c=0;s.sqq=new Object;s.squ=new Object;s.sqq[q]='';s.pt(v,'&','sqp',0);s.pt(s.un,',','sqs',q);v='';for(x in s.squ)if(x&&(!Object||!Object.prototype||!Object.prototype[x]))s.sqq[s.squ[x]]+=(s.sqq[s.squ[x]]?',':'')+x;for(x in s.sqq)if(x&&(!Object||!Object.prototype||!Object.prototype[x])&&s.sqq[x]&&(x==q||c<2)){v+=(v?'&':'')+s.sqq[x]+'='+s.ape(x);c++}return s.c_w(k,v,0)};s.wdl=new Function('e','var s=s_c_il['+s._in+'],r=true,b=s.eh(s.wd,\"onload\"),i,o,oc;if(b)r=this[b](e);for(i=0;i<s.d.links.length;i++){o=s.d.links[i];oc=o.onclick?\"\"+o.onclick:\"\";if((oc.indexOf(\"s_gs(\")<0||oc.indexOf(\".s_oc(\")>=0)&&oc.indexOf(\".tl(\")<0)s.eh(o,\"onclick\",0,s.lc);}return r');s.wds=function(){var s=this;if(s.apv>3&&(!s.isie||!s.ismac||s.apv>=5)){if(s.b&&s.b.attachEvent)s.b.attachEvent('onclick',s.bc);else if(s.b&&s.b.addEventListener)s.b.addEventListener('click',s.bc,false);else s.eh(s.wd,'onload',0,s.wdl)}};s.vs=function(x){var s=this,v=s.visitorSampling,g=s.visitorSamplingGroup,k='s_vsn_'+s.un+(g?'_'+g:''),n=s.c_r(k),e=new Date,y=e.getYear();e.setYear(y+10+(y<1900?1900:0));if(v){v*=100;if(!n){if(!s.c_w(k,x,e))return 0;n=x}if(n%10000>v)return 0}return 1};s.dyasmf=function(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0};s.dyasf=function(t,m){var s=this,i=t?t.indexOf('='):-1,n,x;if(i>=0&&m){var n=t.substring(0,i),x=t.substring(i+1);if(s.pt(x,',','dyasmf',m))return n}return 0};s.uns=function(){var s=this,x=s.dynamicAccountSelection,l=s.dynamicAccountList,m=s.dynamicAccountMatch,n,i;s.un=s.un.toLowerCase();if(x&&l){if(!m)m=s.wd.location.host;if(!m.toLowerCase)m=''+m;l=l.toLowerCase();m=m.toLowerCase();n=s.pt(l,';','dyasf',m);if(n)s.un=n}i=s.un.indexOf(',');s.fun=i<0?s.un:s.un.substring(0,i)};s.sa=function(un){var s=this;s.un=un;if(!s.oun)s.oun=un;else if((','+s.oun+',').indexOf(','+un+',')<0)s.oun+=','+un;s.uns()};s.m_i=function(n,a){var s=this,m,f=n.substring(0,1),r,l,i;if(!s.m_l)s.m_l=new Object;if(!s.m_nl)s.m_nl=new Array;m=s.m_l[n];if(!a&&m&&m._e&&!m._i)s.m_a(n);if(!m){m=new Object,m._c='s_m';m._in=s.wd.s_c_in;m._il=s._il;m._il[m._in]=m;s.wd.s_c_in++;m.s=s;m._n=n;m._l=new Array('_c','_in','_il','_i','_e','_d','_dl','s','n','_r','_g','_g1','_t','_t1','_x','_x1','_rs','_rr','_l');s.m_l[n]=m;s.m_nl[s.m_nl.length]=n}else if(m._r&&!m._m){r=m._r;r._m=m;l=m._l;for(i=0;i<l.length;i++)if(m[l[i]])r[l[i]]=m[l[i]];r._il[r._in]=r;m=s.m_l[n]=r}if(f==f.toUpperCase())s[n]=m;return m};s.m_a=new Function('n','g','e','if(!g)g=\"m_\"+n;var s=s_c_il['+s._in+'],c=s[g+\"_c\"],m,x,f=0;if(!c)c=s.wd[\"s_\"+g+\"_c\"];if(c&&s_d)s[g]=new Function(\"s\",s_ft(s_d(c)));x=s[g];if(!x)x=s.wd[\\'s_\\'+g];if(!x)x=s.wd[g];m=s.m_i(n,1);if(x&&(!m._i||g!=\"m_\"+n)){m._i=f=1;if((\"\"+x).indexOf(\"function\")>=0)x(s);else s.m_m(\"x\",n,x,e)}m=s.m_i(n,1);if(m._dl)m._dl=m._d=0;s.dlt();return f');s.m_m=function(t,n,d,e){t='_'+t;var s=this,i,x,m,f='_'+t,r=0,u;if(s.m_l&&s.m_nl)for(i=0;i<s.m_nl.length;i++){x=s.m_nl[i];if(!n||x==n){m=s.m_i(x);u=m[t];if(u){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t](d,e);else if(d)u=m[t](d);else u=m[t]()}}if(u)r=1;u=m[t+1];if(u&&!m[f]){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t+1](d,e);else if(d)u=m[t+1](d);else u=m[t+1]()}}m[f]=1;if(u)r=1}}return r};s.m_ll=function(){var s=this,g=s.m_dl,i,o;if(g)for(i=0;i<g.length;i++){o=g[i];if(o)s.loadModule(o.n,o.u,o.d,o.l,o.e,1);g[i]=0}};s.loadModule=function(n,u,d,l,e,ln){var s=this,m=0,i,g,o=0,f1,f2,c=s.h?s.h:s.b,b,tcf;if(n){i=n.indexOf(':');if(i>=0){g=n.substring(i+1);n=n.substring(0,i)}else g=\"m_\"+n;m=s.m_i(n)}if((l||(n&&!s.m_a(n,g)))&&u&&s.d&&c&&s.d.createElement){if(d){m._d=1;m._dl=1}if(ln){if(s.ssl)u=s.rep(u,'http:','https:');i='s_s:'+s._in+':'+n+':'+g;b='var s=s_c_il['+s._in+'],o=s.d.getElementById(\"'+i+'\");if(s&&o){if(!o.l&&s.wd.'+g+'){o.l=1;if(o.i)clearTimeout(o.i);o.i=0;s.m_a(\"'+n+'\",\"'+g+'\"'+(e?',\"'+e+'\"':'')+')}';f2=b+'o.c++;if(!s.maxDelay)s.maxDelay=250;if(!o.l&&o.c<(s.maxDelay*2)/100)o.i=setTimeout(o.f2,100)}';f1=new Function('e',b+'}');tcf=new Function('s','c','i','u','f1','f2','var e,o=0;try{o=s.d.createElement(\"script\");if(o){o.type=\"text/javascript\";'+(n?'o.id=i;o.defer=true;o.onload=o.onreadystatechange=f1;o.f2=f2;o.l=0;':'')+'o.src=u;c.appendChild(o);'+(n?'o.c=0;o.i=setTimeout(f2,100)':'')+'}}catch(e){o=0}return o');o=tcf(s,c,i,u,f1,f2)}else{o=new Object;o.n=n+':'+g;o.u=u;o.d=d;o.l=l;o.e=e;g=s.m_dl;if(!g)g=s.m_dl=new Array;i=0;while(i<g.length&&g[i])i++;g[i]=o}}else if(n){m=s.m_i(n);m._e=1}return m};s.vo1=function(t,a){if(a[t]||a['!'+t])this[t]=a[t]};s.vo2=function(t,a){if(!a[t]){a[t]=this[t];if(!a[t])a['!'+t]=1}};s.dlt=new Function('var s=s_c_il['+s._in+'],d=new Date,i,vo,f=0;if(s.dll)for(i=0;i<s.dll.length;i++){vo=s.dll[i];if(vo){if(!s.m_m(\"d\")||d.getTime()-vo._t>=s.maxDelay){s.dll[i]=0;s.t(vo)}else f=1}}if(s.dli)clearTimeout(s.dli);s.dli=0;if(f){if(!s.dli)s.dli=setTimeout(s.dlt,s.maxDelay)}else s.dll=0');s.dl=function(vo){var s=this,d=new Date;if(!vo)vo=new Object;s.pt(s.vl_g,',','vo2',vo);vo._t=d.getTime();if(!s.dll)s.dll=new Array;s.dll[s.dll.length]=vo;if(!s.maxDelay)s.maxDelay=250;s.dlt()};s.t=function(vo,id){var s=this,trk=1,tm=new Date,sed=Math&&Math.random?Math.floor(Math.random()*10000000000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/10800000)%10+sed,y=tm.getYear(),vt=tm.getDate()+'/'+tm.getMonth()+'/'+(y<1900?y+1900:y)+' '+tm.getHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset(),tcf,tfs=s.gtfs(),ta='',q='',qs='',code='',vb=new Object;s.gl(s.vl_g);s.uns();s.m_ll();if(!s.td){var tl=tfs.location,a,o,i,x='',c='',v='',p='',bw='',bh='',j='1.0',k=s.c_w('s_cc','true',0)?'Y':'N',hp='',ct='',pn=0,ps;if(String&&String.prototype){j='1.1';if(j.match){j='1.2';if(tm.setUTCDate){j='1.3';if(s.isie&&s.ismac&&s.apv>=5)j='1.4';if(pn.toPrecision){j='1.5';a=new Array;if(a.forEach){j='1.6';i=0;o=new Object;tcf=new Function('o','var e,i=0;try{i=new Iterator(o)}catch(e){}return i');i=tcf(o);if(i&&i.next)j='1.7'}}}}}if(s.apv>=4)x=screen.width+'x'+screen.height;if(s.isns||s.isopera){if(s.apv>=3){v=s.n.javaEnabled()?'Y':'N';if(s.apv>=4){c=screen.pixelDepth;bw=s.wd.innerWidth;bh=s.wd.innerHeight}}s.pl=s.n.plugins}else if(s.isie){if(s.apv>=4){v=s.n.javaEnabled()?'Y':'N';c=screen.colorDepth;if(s.apv>=5){bw=s.d.documentElement.offsetWidth;bh=s.d.documentElement.offsetHeight;if(!s.ismac&&s.b){tcf=new Function('s','tl','var e,hp=0;try{s.b.addBehavior(\"#default#homePage\");hp=s.b.isHomePage(tl)?\"Y\":\"N\"}catch(e){}return hp');hp=tcf(s,tl);tcf=new Function('s','var e,ct=0;try{s.b.addBehavior(\"#default#clientCaps\");ct=s.b.connectionType}catch(e){}return ct');ct=tcf(s)}}}else r=''}if(s.pl)while(pn<s.pl.length&&pn<30){ps=s.fl(s.pl[pn].name,100)+';';if(p.indexOf(ps)<0)p+=ps;pn++}s.resolution=x;s.colorDepth=c;s.javascriptVersion=j;s.javaEnabled=v;s.cookiesEnabled=k;s.browserWidth=bw;s.browserHeight=bh;s.connectionType=ct;s.homepage=hp;s.plugins=p;s.td=1}if(vo){s.pt(s.vl_g,',','vo2',vb);s.pt(s.vl_g,',','vo1',vo)}if(s.usePlugins)s.doPlugins(s);var l=s.wd.location,r=tfs.document.referrer;if(!s.pageURL)s.pageURL=l.href?l.href:l;if(!s.referrer&&!s._1_referrer){s.referrer=r;s._1_referrer=1}if((vo&&vo._t)||!s.m_m('d')){s.m_m('g');if(s.lnk||s.eo){var o=s.eo?s.eo:s.lnk;if(!o)return '';var p=s.pageName,w=1,t=s.ot(o),n=s.oid(o),x=o.s_oidt,h,l,i,oc;if(s.eo&&o==s.eo){while(o&&!n&&t!='BODY'){o=o.parentElement?o.parentElement:o.parentNode;if(!o)return '';t=s.ot(o);n=s.oid(o);x=o.s_oidt}oc=o.onclick?''+o.onclick:'';if((oc.indexOf(\"s_gs(\")>=0&&oc.indexOf(\".s_oc(\")<0)||oc.indexOf(\".tl(\")>=0)return ''}ta=n?o.target:1;h=s.oh(o);i=h.indexOf('?');h=s.linkLeaveQueryString||i<0?h:h.substring(0,i);l=s.linkName;t=s.linkType?s.linkType.toLowerCase():s.lt(h);if(t&&(h||l))q+='&pe=lnk_'+(t=='d'||t=='e'?s.ape(t):'o')+(h?'&pev1='+s.ape(h):'')+(l?'&pev2='+s.ape(l):'');else trk=0;if(s.trackInlineStats){if(!p){p=s.pageURL;w=0}t=s.ot(o);i=o.sourceIndex;if(s.gg('objectID')){n=s.gg('objectID');x=1;i=1}if(p&&n&&t)qs='&pid='+s.ape(s.fl(p,255))+(w?'&pidt='+w:'')+'&oid='+s.ape(s.fl(n,100))+(x?'&oidt='+x:'')+'&ot='+s.ape(t)+(i?'&oi='+i:'')}}if(!trk&&!qs)return '';s.sampled=s.vs(sed);if(trk){if(s.sampled)code=s.mr(sess,(vt?'&t='+s.ape(vt):'')+s.hav()+q+(qs?qs:s.rq(s.un)),0,id,ta);qs='';s.m_m('t');if(s.p_r)s.p_r();s.referrer=''}s.sq(qs);}else{s.dl(vo);}if(vo)s.pt(s.vl_g,',','vo1',vb);s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';if(s.pg)s.wd.s_lnk=s.wd.s_eo=s.wd.s_linkName=s.wd.s_linkType='';if(!id&&!s.tc){s.tc=1;s.flushBufferedRequests()}return code};s.tl=function(o,t,n,vo){var s=this;s.lnk=s.co(o);s.linkType=t;s.linkName=n;s.t(vo)};if(pg){s.wd.s_co=function(o){var s=s_gi(\"_\",1,1);return s.co(o)};s.wd.s_gs=function(un){var s=s_gi(un,1,1);return s.t()};s.wd.s_dc=function(un){var s=s_gi(un,1);return s.t()}}s.ssl=(s.wd.location.protocol.toLowerCase().indexOf('https')>=0);s.d=document;s.b=s.d.body;if(s.d.getElementsByTagName){s.h=s.d.getElementsByTagName('HEAD');if(s.h)s.h=s.h[0]}s.n=navigator;s.u=s.n.userAgent;s.ns6=s.u.indexOf('Netscape6/');var apn=s.n.appName,v=s.n.appVersion,ie=v.indexOf('MSIE '),o=s.u.indexOf('Opera '),i;if(v.indexOf('Opera')>=0||o>0)apn='Opera';s.isie=(apn=='Microsoft Internet Explorer');s.isns=(apn=='Netscape');s.isopera=(apn=='Opera');s.ismac=(s.u.indexOf('Mac')>=0);if(o>0)s.apv=parseFloat(s.u.substring(o+6));else if(ie>0){s.apv=parseInt(i=v.substring(ie+5));if(s.apv>3)s.apv=parseFloat(i)}else if(s.ns6>0)s.apv=parseFloat(s.u.substring(s.ns6+10));else s.apv=parseFloat(v);s.em=0;if(String.fromCharCode){i=escape(String.fromCharCode(256)).toUpperCase();s.em=(i=='%C4%80'?2:(i=='%U0100'?1:0))}s.sa(un);s.vl_l='dynamicVariablePrefix,visitorID,vmk,visitorMigrationKey,visitorMigrationServer,visitorMigrationServerSecure,ppu,charSet,visitorNamespace,cookieDomainPeriods,cookieLifetime,pageName,pageURL,referrer,currencyCode';s.va_l=s.sp(s.vl_l,',');s.vl_t=s.vl_l+',variableProvider,channel,server,pageType,transactionID,purchaseID,campaign,state,zip,events,products,linkName,linkType';for(var n=1;n<51;n++)s.vl_t+=',prop'+n+',eVar'+n+',hier'+n+',list'+n;s.vl_l2=',tnt,pe,pev1,pev2,pev3,resolution,colorDepth,javascriptVersion,javaEnabled,cookiesEnabled,browserWidth,browserHeight,connectionType,homepage,plugins';s.vl_t+=s.vl_l2;s.va_t=s.sp(s.vl_t,',');s.vl_g=s.vl_t+',trackingServer,trackingServerSecure,trackingServerBase,fpCookieDomainPeriods,disableBufferedRequests,mobile,visitorSampling,visitorSamplingGroup,dynamicAccountSelection,dynamicAccountList,dynamicAccountMatch,trackDownloadLinks,trackExternalLinks,trackInlineStats,linkLeaveQueryString,linkDownloadFileTypes,linkExternalFilters,linkInternalFilters,linkTrackVars,linkTrackEvents,linkNames,lnk,eo,_1_referrer';s.va_g=s.sp(s.vl_g,',');s.pg=pg;s.gl(s.vl_g);if(!ss)s.wds()",t=window,f=t.s_c_il,b=navigator,y=b.userAgent,x=b.appVersion,p=x.indexOf("MSIE "),d=y.indexOf("Netscape6/"),r,g,z;if(j){j=j.toLowerCase();if(f){for(g=0;g<f.length;g++){z=f[g];if(!z._c||z._c=="s_c"){if(z.oun==j){return z}else{if(z.fs&&z.sa&&z.fs(z.oun,j)){z.sa(j);return z}}}}}}t.s_an="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";t.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.substring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");t.s_jn=new Function("a","d","var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");t.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");t.s_d=new Function("x","var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn(x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");t.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");t.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':a");t.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){if(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")'+c.substring(e+1);s=c.indexOf('=function(')}return c;");q=s_d(q);if(p>0){r=parseInt(g=x.substring(p+5));if(r>3){r=parseFloat(g)}}else{if(d>0){r=parseFloat(y.substring(d+10))}else{r=parseFloat(x)}}if(r>=5&&x.indexOf("Opera")<0&&y.indexOf("Opera")<0){t.s_c=new Function("un","pg","ss","var s=this;"+q);return new s_c(j,k,A)}else{z=new Function("un","pg","ss","var s=new Object;"+s_ft(q)+";return s")}return z(j,k,A)}var prefix="s_ea.";var eventArr="eventsAssignmentArray";var addValuesArr="additionalValuesAssignmentArray";var eventsAssignmentArray=new Array();var propsAssignmentArray=new Array();var evarsAssignmentArray=new Array();var additionalValuesAssignmentArray=new Array();var trackingItems=new Array(4);trackingItems[0]="props";trackingItems[1]="evars";trackingItems[2]="events";trackingItems[3]="additionalValues";var eventString="";var extendOmniSession=0;var numOfExtensions=1;var timesSessionExtended=1;function setOmniValues(link,type,linkName,props,evars,events,reportPageView,productDetails,additionalValues,pageName){propsAssignmentArray.length=0;evarsAssignmentArray.length=0;eventsAssignmentArray.length=0;additionalValuesAssignmentArray.length=0;eventString="";s_ea=s_gi(s_account);if(isNotEmpty(pageName)){s_ea.pageName=pageName}for(i=0;i<=3;i++){if(isNotEmpty(eval(trackingItems[i]))){var chunk=eval(trackingItems[i]);var currArrayName=trackingItems[i]+"AssignmentArray";eval(currArrayName+" = chunk.split(',')");if(currArrayName!=eventArr){var currArraySegmentedName=trackingItems[i]+"Array";for(var j=0;j<eval(currArrayName).length;j++){currArraySegmentedName=eval(currArrayName)[j].split("=");currArraySegmentedName[0]=omnitureMapping(currArraySegmentedName[0],trackingItems[i]);eval(currArrayName)[j]=currArraySegmentedName}}else{for(var j=0;j<eval(currArrayName).length;j++){eventString+=eval(currArrayName)[j]=omnitureMapping(eval(currArrayName)[j],trackingItems[i]);if(j<eval(currArrayName).length-1){eventString+=","}}}if(currArrayName!=eventArr){assignValuestoParams(i)}}}var currEvents=assignEvents(reportPageView);assignLinkTrackVars(reportPageView,currEvents,productDetails);assignProducts(reportPageView,productDetails);reportData(link,type,linkName,reportPageView)}function omniLinkCall(a,b){setOmniValues(a,"o",b,"","","",0,"","")}function assignEvents(a){s_ea.linkTrackEvents="None";s_ea.events="";if(a){if(eventsAssignmentArray.length>0){s_ea.events=eventString+",event35,event36"}else{s_ea.events="event35,event36"}return"None"}if((!a)&&(eventsAssignmentArray.length>0)){s_ea.linkTrackEvents=eventString;s_ea.events=eventString;return"events"}return"None"}function reportData(c,a,d,b){if(b){s_ea.t()}else{d=s_ea.pageName+":"+d;if(isNotEmpty(c)){s_ea.tl(c,a,d)}else{s_ea.tl("",a,d)}}}function assignProducts(b,a){s_ea.products="";if(isNotEmpty(a)){s_ea.products=a}}function assignLinkTrackVars(e,f,d){if(e){s_ea.linkTrackVars="None"}else{var a=getLinkTrackVarsValues("propsAssignmentArray");var b=getLinkTrackVarsValues("evarsAssignmentArray");var c=getLinkTrackVarsValues("additionalValuesAssignmentArray");if(isNotEmpty(d)){currProductDetails="products"}else{currProductDetails="None"}s_ea.linkTrackVars=buildLinkTrackVarsValues(a,b,c,f,currProductDetails)}}function buildLinkTrackVarsValues(b,d,e,f,c){var a=new Array();if(b!="None"){a.push(b)}if(d!="None"){a.push(d)}if(e!="None"){a.push(e)}if(f!="None"){a.push(f)}if(c!="None"){a.push(c)}if(a.length==0){return"None"}else{return a.join(",")}}function getLinkTrackVarsValues(arrayName){if(eval(arrayName).length>0){linkTrackVarsValues="";for(var i=0;i<eval(arrayName).length;i++){linkTrackVarsValues+=eval(arrayName)[i][0];if(i<eval(arrayName).length-1){linkTrackVarsValues+=","}}}else{linkTrackVarsValues="None"}return linkTrackVarsValues}function assignValuestoParams(arrayPos){var currMultiDimArrayName=eval(trackingItems[arrayPos]+"AssignmentArray");var arrName=trackingItems[arrayPos]+"AssignmentArray";for(var m=0;m<currMultiDimArrayName.length;m++){eval(prefix+currMultiDimArrayName[m][0]+"= currMultiDimArrayName[m][1]")}}function isNotEmpty(a){re=/^ *$/;if(re.exec(a)||(a==null)){return false}else{return true}}function modifyOmniRSI(b,a){s_account=b;s_ea.sa(b);if(isNotEmpty(a)){if(a){setOmniValues("","","","","","",1,"","")}}}function omnitureMapping(b,a){b=b.toLowerCase();var d=new Array();if(a=="evars"){d.userid="eVar1";d.sitecode="eVar2";d.game="eVar3";d.newslettertype="eVar4";d.intcmp="eVar5";d.registrationlevel="eVar6";d.supporteventtype="eVar7";d.downloadtype="eVar8";d.gamespecifictype="eVar9";d.registrationtype="eVar10";d.purchaseintentaction="eVar11";d.extcampaignid="eVar14";d.entitlementtype="eVar15";d.eastoreintcampaign="eVar16";d.territory="eVar18";d.abtest="eVar19";d.intsearchterms="eVar20";d.prodfindingmethod="eVar22";d.merchcategorybrowse="eVar23";d.crossselltype="eVar24";d.originatingpage="eVar25";d.promocode="eVar26";d.shipmethod="eVar27";d.paymentmethod="eVar28";d.originalsite="eVar29";d.recentsite="eVar30";d.deliverymethod="eVar31";d.ordertype="eVar32";d.label="eVar34";d.buymodulename="eVar35"}if(a=="props"){d.userid="prop1";d.sitecode="prop2";d.brand="prop3";d.franchise="prop4";d.game="prop5";d.platform="prop6";d.studio="prop7";d.registrationlevel="prop8";d.sitetype="prop9";d.contenttitle="prop10";d.territory="prop11";d.language="prop12";d.contentmediatype="prop13";d.contentcategory="prop14";d.contentbucket="prop15";d.contenttype="prop16";d.country="prop17";d.siteid="prop18";d.abtest="prop19";d.intsearchterms="prop20";d.searchnoresults="prop21";d.searchcategory="prop22";d.pagedetailviews="prop23";d.pagenamesdetailviews="prop24";d.prodregplatform="prop25";d.prodreggametitle="prop26";d.prodregcountry="prop27";d.gfcategory="prop28";d.gfcomponent="prop29";d.secondarysearchterm="prop30";d.predsearchsel="prop31";d.gfpagepath="prop32";d.subbrand="prop35";d.secondarypersona="prop36";d.actiontype="prop37";d.languagetype="prop38";d.categorytype="prop39";d.itemdesc="prop40";d.simpointsspent="prop41";d.simpointspurch="prop42";d.userstatus="prop43";d.server="server"}if(a=="events"){d.htmlopens="event1";d.successdownload="event2";d.successregistration="event3";d.passalong="event4";d.successentitlementexpiration="event5";d.successentitlement="event6";d.totalclicks="event7";d.successgamespecific="event9";d.searches="event10";d.successsupport="event11";d.successfindastore="event12";d.proddetailviews="event13";d.logins="event14";d.successpurchaseintent="event15";d.successnewsletter="event16";d.successcancelsubscription="event17";d.acctcreation="event18";d.shipping="event19";d.tax="event20";d.revieworder="event21";d.cashcardpurchase="event23";d.simsptspurch="event30";d.fullscreenmode="event40";d.successproductview="prodView";d.successcartview="scView";d.successscopen="scOpen";d.successscadd="scAdd";d.successscremove="scRemove";d.successsccheckout="scCheckout";d.successpurchase="purchase"}if(a=="additionalValues"){d.zip="zip";d.campaign="campaign";d.state="state";d.usd="USD";d.charset="charSet";d.purchaseid="purchaseID"}var c=d[b];if(c==null){c="notFound"}return c}function buildContentType(a,c,b){if((a=="<ADD CONTENT>")||(!isNotEmpty(a))||(a=="undefined")){a="Unset"}if((!isNotEmpty(b))||(b=="undefined")){b="Unset"}if((c=="<ADD CONTENT>")||(c=="undefined")){classification_category="Unset";classification_subcategory="Unset"}else{var d=c.split("::");classification_category=d[0];classification_subcategory=d[1]}setOmniValues("","","","contentmediatype="+a+",contentcategory="+classification_category+",contentbucket="+classification_subcategory+",contenttitle="+b+",contenttype="+a+" : "+classification_category+" : "+classification_subcategory+" : "+b,"","",1)}function omniUpdateContentType(content_type_media,content_type_category,content_type_contentbucket,content_type_title){if((!isNotEmpty(content_type_media))||(content_type_media=="undefined")||(content_type_media==null)){content_type_media=eval(prefix+omnitureMapping("contentmediatype","props"))}if((!isNotEmpty(content_type_category))||(content_type_category=="undefined")||(content_type_category==null)){content_type_category=eval(prefix+omnitureMapping("contentcategory","props"))}if((!isNotEmpty(content_type_contentbucket))||(content_type_contentbucket=="undefined")||(content_type_contentbucket==null)){content_type_contentbucket=eval(prefix+omnitureMapping("contentbucket","props"))}if((!isNotEmpty(content_type_title))||(content_type_title=="undefined")||(content_type_title==null)){content_type_title=eval(prefix+omnitureMapping("contenttitle","props"))}setOmniValues("","","","contentmediatype="+content_type_media+",contentcategory="+content_type_category+",contentbucket="+content_type_contentbucket+",contenttitle="+content_type_title+",contenttype="+content_type_media+" : "+content_type_category+" : "+content_type_contentbucket+" : "+content_type_title,"","",1)}function omniLocalize(k,n,b,c,g,e){var r=k.toLowerCase();var f=new Array();f.en_intl=new Array("INTL","GLOBAL","eaeacom");f.en_ca=new Array("CA","NA","eaeacom,eaeacomna");f.zh_cn=new Array("CN","APAC","eaeacom,eaeacomapac,eagamescn");f.en_hk=new Array("HK","APAC","eaeacom,eaeacomapac,eagameshk");f.zh_hk=new Array("HK","APAC","eaeacom,eaeacomapac,eagameshk");f.en_in=new Array("IN","APAC","eaeacom,eaeacomapac,eagamesin");f.zh_tw=new Array("TW","APAC","eaeacom,eaeacomapaceagamestw");f.cs_cz=new Array("CZ","EMEA","eaeacom,eaeacomeu,easportscz");f.da_dk=new Array("DK","EMEA","eaeacom,eaeacomeu,easportsdk");f.nl_nl=new Array("NL","EMEA","eaeacom,eaeacomeu,easportsnl");f.en_au=new Array("AU","APAC","eaeacom,eaeacomapac,eagamesau");f.en_ie=new Array("IE","EMEA","eaeacom,eaeacomeu,eagamesuk");f.en_nz=new Array("NZ","APAC","eaeacom,eaeacomapac,eagamesnz");f.en_za=new Array("ZA","APAC","eaeacom,eaeacomapac,eagamesza");f.en_gb=new Array("UK","EMEA","eaeacom,eaeacomeu,eagamesuk");f.en_us=new Array("US","NA","eaeacom,eaeacomna");f.fi_fi=new Array("FI","EMEA","eaeacom,eaeacomeu,easportsfi");f.fr_fr=new Array("FR","EMEA","eaeacom,eaeacomeu,easportsfr");f.de_de=new Array("DE","EMEA","eaeacom,eaeacomeu,eagamesde");f.hu_hu=new Array("HU","EMEA","eaeacom,eaeacomeu,easportshu");f.it_it=new Array("IT","EMEA","eaeacom,eaeacomeu,easportsit");f.ja_jp=new Array("JP","APAC","eaeacom,eaeacomapac,eagamesjp");f.ko_kr=new Array("KR","APAC","eaeacom,eaeacomapac,eagameskr");f.es_mx=new Array("MX","EMEA","eaeacom,eaeacomeu,easportsmx");f.no_no=new Array("NO","EMEA","eaeacom,eaeacomeu,easportsno");f.pl_pl=new Array("PL","EMEA","eaeacom,eaeacomeu,easportspl");f.pt_br=new Array("BR","EMEA","eaeacom,eaeacomeu,easportsbr");f.pt_pt=new Array("PT","EMEA","eaeacom,eaeacomeu,easportspt");f.ru_ru=new Array("RU","EMEA","eaeacom,eaeacomeu,eagamesru");f.es_es=new Array("ES","EMEA","eaeacom,eaeacomeu,easportses");f.sv_se=new Array("SE","EMEA","eaeacom,eaeacomeu,easportsse");f.th_th=new Array("TH","APAC","eaeacom,eaeacomapac,eagamesth");f.en_sg=new Array("SG","APAC","eaeacom,eaeacomapac,eagamessg");f.en_ph=new Array("PH","APAC","eaeacom,eaeacomapac,eagamesph");f.el_gr=new Array("GR","EMEA","eaeacom,eaeacomeu,easportsgr");f.fr_be=new Array("BE","EMEA","eaeacom,eaeacomeu,easportsnl");f.nl_be=new Array("BE","EMEA","eaeacom,eaeacomeu,easportsnl");var q;var l;var m;if(f[r]!=null){q=f[r][0];l=f[r][1];m=f[r][2]}else{q="US";l="NA";m="eaeacom,eaeacomna"}var a=":";s_ea.pageName=l+a+q+s_ea.pageName.substring(s_ea.pageName.indexOf(":",s_ea.pageName.indexOf(":")+1));s_ea.prop11=l;s_ea.prop12=k;s_ea.prop17=q;var d=s_ea.prop18.split(":");if(d.length==3){s_ea.prop18=q+a+d[1]+a+d[2]}var p=s_ea.eVar29.split(":");if(p.length==3){s_ea.eVar29=q+a+p[1]+a+p[2]}s_ea.eVar17=q;s_ea.eVar18=l;if(isNotEmpty(c)){if(!c){var j=s_ea.eVar30.split(":");if(j.length==3){s_ea.eVar30=q+a+j[1]+a+j[2]}}}else{var j=s_ea.eVar30.split(":");if(j.length==3){s_ea.eVar30=q+a+j[1]+a+j[2]}}if(isNotEmpty(n)){m+=","+n}if(isNotEmpty(b)){if(b){modifyOmniRSI(omniCheckHost(m,g,e),1)}else{modifyOmniRSI(omniCheckHost(m,g,e),0)}}else{modifyOmniRSI(omniCheckHost(m,g,e),1)}}function omniSetPageTypeId(a){var b=s_ea.pageName;s_ea.pageName=b.replace(/:[^:]*$/,":"+a)}function omniKeepSessionAlive(){if(extendOmniSession){omniLinkCall(this,"extendSession")}if(timesSessionExtended<=numOfExtensions){extendOmniSession=1;timesSessionExtended++;setTimeout("omniKeepSessionAlive()",1700000)}}omniKeepSessionAlive();function omniCheckHost(b,g,f){var a=document.location.hostname.toLowerCase();if((a=="")||(a==null)||(a==undefined)){return b?(b.split(",").join("dev,")+"dev").replace(/\s+/g,"").toLowerCase():"eaeacomdev"}if(a.match(/(alpha|beta|dev)\./)){if((f!=null)&&(f!=undefined)){var m=f.split(",");if(m.length>0){for(var c=0;c<m.length;c++){var d=m[c].toLowerCase();if(a.indexOf(d)!=-1){return b.replace(/\s+/g,"").toLowerCase()}}}return b?(b.split(",").join("dev,")+"dev").replace(/\s+/g,"").toLowerCase():"eaeacomdev"}else{return b?(b.split(",").join("dev,")+"dev").replace(/\s+/g,"").toLowerCase():"eaeacomdev"}}else{if((g!=null)&&(g!=undefined)){var k=g.split(",");if(k.length>0){for(var e=0;e<k.length;e++){var l=k[e].toLowerCase();if(a.indexOf(l)!=-1){return b?(b.split(",").join("dev,")+"dev").replace(/\s+/g,"").toLowerCase():"eaeacomdev"}}}}return b.replace(/\s+/g,"").toLowerCase()}}(function(a){a(document).ready(function(){var f=a("#js-msgs #add-to-friends").html();var e=a("#js-msgs #remove-from-friends").html();function d(j){return j.replace(/\s+$/g,"")}function c(j){var k=d(a(j).attr("class"));player_class=k.split(" ").slice(-1);player_class=player_class[0].substr(3).replace(" ","");return player_class}function g(m){var l=a(".headerBar .account a").html().split(" ")[0];var j=a(".friends").data("url");var k=m.map(function(){$this=a(this);var n=null;a($this.parent().attr("class").split(" ")).each(function(p){if(this.substr(0,3)=="uid"){n=this.substr(4)}});return n});j+="/"+k.get().join(",");if(k.length==0){return}a.post(j,function(p){if(p.result=="success"){var n=p.data.friends;friends_map=n.map(function(q){return q.name});a(m).each(function(s){$this=a(this);var r=c($this);var q=a.inArray(r,friends_map);if(q!=-1){if(n[q].status=="online"){$this.append(' <a title="'+e+'" href="#" class="friendlink friendlink-online">-Friend</a>')}else{$this.append(' <a title="'+e+'" href="#" class="friendlink friendlink-friend">-Friend</a>')}}else{if(r!=l){$this.append(' <a title="'+f+'" href="#" class="friendlink friendlink-add">+Friend</a>')}}})}},"","json")}function b(l){l.preventDefault();var p=a(this);var j;var n;var k=/\d+$/;var q=p.siblings("a").attr("href");q=k.exec(q);var m=c(p.parent());if(a(".forum .largetext").length>0){j=a("#js-msgs #friend-url").html()+"/increase/mybb/"+q;n=a("#js-msgs #friend-url").html()+"/decrease/mybb/"+q}else{j=a("#js-msgs #friend-url").html()+"/increase/"+q;n=a("#js-msgs #friend-url").html()+"/decrease/"+q}if(p.hasClass("friendlink-add")){a.post(j,function(r){if(r.result=="success"){a(".pn-"+m+" .friendlink").addClass("friendlink-friend").removeClass("friendlink-add").attr("title",e)}},"","json")}else{a.post(n,function(r){if(r.result=="success"){a(".pn-"+m+" .friendlink").addClass("friendlink-add").removeClass("friendlink-friend").attr("title",f)}},"","json")}}if(a(".headerBar .account").length>0){if(a(".forum .largetext").length>0){g(a(".forum .largetext .player-name"))}if((a(".viewHeroProfile").length>0)||(a(".viewUserProfile").length>0)){g(a(".player-name"))}if(!a("#friends.manage").length>0){a(".friendlink").live("click",b)}}})})(jQuery);function insertAd(a,e,d){var e=(location.protocol=="https:"?"https":"http")+"://"+e;var b=e+"/ad/ajs.php";var c=Math.floor(Math.random()*99999999999);var g=getLangFromPath();if(!document.MAX_used){document.MAX_used=","}var f="<script id='adscript' type='text/javascript' src='"+b+"?zoneid="+a+"&amp;cb="+c;if(document.MAX_used!=","){f+="&amp;exclude="+document.MAX_used}f+=(document.charset?"&amp;charset="+document.charset:(document.characterSet?"&amp;charset="+document.characterSet:""));f+="&amp;loc="+escape(window.location);if(d){f+="&amp;ch="+d}if(g){f+="&amp;lang="+g}if(document.referrer){f+="&amp;referer="+escape(document.referrer)}if(document.context){f+="&context="+escape(document.context)}if(document.mmm_fo){f+="&amp;mmm_fo=1"}f+="'><\/script>";document.write(f)}function getLangFromPath(){var c=location.pathname;var b=/^\/(..)\//;var a=b.exec(c);if(a!=null){return a[1]}return getCookie("language")}function getCookie(a){if(document.cookie.length>0){cookieStart=document.cookie.indexOf(a+"=");if(cookieStart!=-1){cookieStart=cookieStart+a.length+1;cookieEnd=document.cookie.indexOf(";",cookieStart);if(cookieEnd==-1){cookieEnd=document.cookie.length}return unescape(document.cookie.substring(cookieStart,cookieEnd))}}return"en"}(function(){var a=document.getElementsByTagName("script");(function(){var s=document.createElement("link");s.href=(location.protocol=="https:"?"https":"http")+"://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic&subset=latin,cyrillic";s.type="text/css";s.rel="stylesheet";try{document.documentElement.firstChild.appendChild(s)}catch(r){if(window.console&&(typeof console.log=="function")){console.log("Failed adding stylesheet of Google Font!");console.log(r)}}})();var p;try{p=Play4Free.CommonNav.getInitParameterMap()||{}}catch(k){p={};if(window.console&&(typeof console.log=="function")){console.log(k)}}if(p.navCssLinkHref){var c=document.createElement("link");c.href=p.navCssLinkHref;c.type="text/css";c.rel="stylesheet";try{var n=document.documentElement.firstChild;n.appendChild(c)}catch(k){if(window.console&&(typeof console.log=="function")){console.log("Failed adding stylesheet of Play4Free Common Nav bar!")}}}var q=function(r){var s=typeof r=="string"?document.getElementById(r):r;var e=function(u){var v=function(){return false};var z=function(){return true};var y=document.documentElement,t=document.body;u=u||window.event;var x={target:u.target||u.srcElement||document,currentTarget:s,relatedTarget:u.relatedTarget||(u.type==="mouseover"?u.fromElement:u.toElement),charCode:u.charCode||u.keyCode,which:u.which||u.keyCode,metaKey:u.metaKey||u.ctrlKey,layerX:u.layerX||u.offsetX,layerY:u.layerY||u.offsetY,pageX:u.pageX||(u.clientX+(y&&y.scrollLeft||t&&t.scrollLeft||0)-(y&&y.clientLeft||t&&t.clientLeft||0)),pageY:u.pageY||(u.clientY+(y&&y.scrollTop||t&&t.scrollTop||0)-(y&&y.clientTop||t&&t.clientTop||0)),timeStamp:new Date(),preventDefault:function(){this.isDefaultPrevented=z;if(u.preventDefault){u.preventDefault()}else{this.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=z;if(u.stopPropagation){u.stopPropagation()}else{u.cancelBubble=true}},isDefaultPrevented:v,isPropagationStopped:v};if(x.target.nodeType===3){x.target=x.target.parentNode}if(!x.which&&x.button!==undefined){x.which=(x.button&1?1:(x.button&2?3:(x.button&4?2:0)))}for(var A in u){if(x[A]===undefined){x[A]=u[A]}}return x};return{get:function(){return s},bind:function(v,u){if(!s){return this}var t=function(y){y=e(y);var x=u.call(s,y);if(x===false&&!y.isDefaultPrevented()){y.preventDefault()}return y.returnValue};t.element=s;u.eventListeners=u.eventListeners||[];u.eventListeners.push(t);if(s.addEventListener){s.addEventListener(v,t,false)}else{if(s.attachEvent){s.attachEvent("on"+v,t)}}return this},unbind:function(y,x){if(!s){return this}try{for(var v=0,t=x.eventListeners.length;v<t;v++){var u=x.eventListeners[v];if(u.element===s){if(s.removeEventListener){s.removeEventListener(y,u,false)}else{if(s.detachEvent){s.detachEvent("on"+y,u)}}x.eventListeners.splice(v,1);break}}}catch(z){if(window.console&&(typeof console.log=="function")){console.log(z)}}return this},isAncestorOf:function(u){if(u){var t=u.parentNode;return t===s?true:this.isAncestorOf(t)}else{return false}},prepend:function(x){if(!s){return this}try{if(typeof x=="string"){var u=document.createElement("div");u.innerHTML=x;if(s.firstChild){for(var t=u.childNodes.length-1;t>=0;t--){s.insertBefore(u.childNodes[t],s.firstChild)}}else{for(var t=0;t<u.childNodes.length;t++){s.appendChild(u.childNodes[t--])}}u=null}else{if(s.firstChild){s.insertBefore(x,s.firstChild)}else{s.appendChild(x)}}}catch(v){if(window.console&&(typeof console.log=="function")){console.log(v)}}return this},prependTo:function(t){if(!s){return this}try{t=typeof t=="string"?document.getElementById(t):t;if(t.firstChild){t.insertBefore(s,t.firstChild)}else{t.appendChild(s)}}catch(u){if(window.console&&(typeof console.log=="function")){console.log(u)}}return this},addClass:function(u){if(!s){return this}if(s.className){var t=!(new RegExp("\\s*"+u+"\\s*").test(s.className));if(t){s.className+=" "+u}}else{s.className=u}return this},removeClass:function(u){if(!s){return this}if(s.className){var x=s.className.split(" ");for(var v=0,t=x.length;v<t;v++){if(x[v]==u){x.splice(v,1);break}}s.className=x.join(" ")}return this},animate:function(F,t,C){if(!s){return this}var M=new Date().getTime(),Q={fast:200,normal:400,slow:600};C=C||t;t=typeof t=="number"?t:typeof t=="string"?Q[t]:Q.normal;var y=50,H=Math.ceil(t/y),O={};for(var L in F){var E=typeof F[L]=="string"?F[L].toLowerCase().replace(/(^\s+|\s+$|\s+(?=important)|\s+(?=\s))/g,"").split(" "):[F[L]];var I=this.css(L),S=typeof I=="string"?I.split(" "):[];if(L=="opacity"&&window.ActiveXObject){L="filter"}O[L]=[];for(var P=0;P<H;P++){var u=[];for(var N=0,R=E.length;N<R;N++){var z=E[N];if(z!=="!important"){var T=parseFloat(S[N]),A=parseFloat(z),D=(A-T)/H;if(!isNaN(D)){var K=/\d+(\D+)$/.test(z)?RegExp.$1:"";var v=T+D*(P+1);z=L=="filter"?"alpha(opacity="+(v*100)+")":v+K}}u.push(z)}O[L].push(u.join(" "))}}var J=0,G=this,x=false;(function B(){if(x){for(var V in O){G.css(V,O[V][J++])}}else{x=true}if(J<H){var U=M+y*(J+1)-new Date().getTime();setTimeout(B,U<0?0:U)}else{if(typeof C=="function"){setTimeout(function(){C.call(s)},1)}}})();return this},css:function(z,A){if(!s){return this}if(typeof z=="string"){var y=/\-/.test(z);if(A===undefined){var x;if(y){var u=z.toLowerCase().split("-");for(var v=1,t=u.length;v<t;v++){u[v]=u[v].replace(/^\w/,u[v].charAt(0).toUpperCase())}x=u.join("")}else{x=z}return s.style[x]}else{var B=y?z:z.replace(/([A-Z])/g,"-$1");s.style.cssText+=";"+B+":"+A;return this}}else{if(typeof z=="object"){for(var v in z){this.css(v,z[v])}return this}}}}};function b(s,u){if(u){try{var v=q(s?s:document.body);v.prepend(u)}catch(x){if(window.console&&(typeof console.log=="function")){console.log("Container (id: "+s+") of Play4Free Common Nav bar is NOT found!")}}}var r=document.getElementById("p4fnav-p4f-logo");if(r){q(r).animate({top:"0px"})}var t=document.getElementById("p4fnav-topnav-full");if(t){q(t).animate({opacity:1},100,function(){this.style.filter="";this.style.opacity=1});return true}return false}function m(B){var F="p4fCommonNav",E=F+"._trackEvent",u="CommonNav";var z=function(){_gaq.push([E,u,"P4FLogoClick"])};var v=location.hostname.replace(/^[^\.]+/,"");_gaq=window._gaq||[];_gaq.push([F+"._setAccount",B]);_gaq.push([F+"._setDomainName",v]);_gaq.push([F+"._setAllowLinker",true]);_gaq.push([F+"._setAllowHash",false]);q("p4fnav-more-games-btn").bind("click",function(){_gaq.push([E,u,"MoreGamesClick"])});var e=document.getElementById("p4fnav-p4f-logo");if(e){q(e).bind("click",z)}var t=document.getElementById("p4fnav-p4f-logo-full");if(t){q(t).bind("click",z)}var D=document.getElementById("p4fnav-more-games-dropdown");if(D&&D.childNodes){for(var x=0,A=D.childNodes.length;x<A;x++){var C=D.childNodes[x];if(C.nodeName.toLowerCase()=="a"){var r=C.getAttribute("href");if(r){q(C).bind("click",function(){var s=/:\/\/([^\/]+)/.test(r)?RegExp.$1:r;_gaq.push([E,u,"GameClick",s])})}}}}var y=".google-analytics.com/ga.js";var G=true;for(var x=0,A=a.length;x<A;x++){if(a[x].src.indexOf(y)!=-1){G=false;break}}if(G){var H=document.createElement("script");H.type="text/javascript";H.async=true;H.src=("https:"==document.location.protocol?"https://ssl":"http://www")+y;var I=a[0];I.parentNode.insertBefore(H,I)}}function f(v){var y=function(){var z=this.getAttribute("href");if(z){var A=new RegExp("^https?://"+location.hostname).test(z);if(!A){var B=/\?/.test(z)?"&":"?";var C="authToken="+encodeURIComponent(v);this.setAttribute("href",z+B+C)}}};var s=document.getElementById("p4fnav-p4f-logo");if(s){q(s).bind("click",y)}var x=document.getElementById("p4fnav-p4f-logo-full");if(x){q(x).bind("click",y)}var t=document.getElementById("p4fnav-more-games-dropdown");if(t&&t.childNodes){for(var u=0,r=t.childNodes.length;u<r;u++){var e=t.childNodes[u];if(e.nodeName.toLowerCase()=="a"){q(e).bind("click",y)}}}}function l(){var r="click";var B;var D=q("p4fnav-more-games-btn");var t=q("p4fnav-more-games-dropdown");var u=function(){t.get().style.display="none";D.removeClass(r)};var E=function(){if(!D.slidingUp){var F=t.css("display")=="block";if(F){D.css({"background-position":"0 -292px"})}D.animate({top:"-12px"},100,function(){D.css({"background-position":"0 -292px"}).slidingUp=false}).slidingUp=true}};t.bind("mouseout",function(F){var G=!t.isAncestorOf(F.relatedTarget);if(G){B=setTimeout(function(){E();u()},600)}}).bind("mouseover",function(){clearTimeout(B)}).bind("click",function(F){F.stopPropagation()});D.bind("click",function(G){if(typeof s=="function"){s()}var F=t.css("display")!="block";if(F){D.addClass(r);t.get().style.display="block"}else{clearTimeout(B);u()}G.stopPropagation();return false}).bind("mouseout",function(G){var H=!D.isAncestorOf(G.relatedTarget)&&this!==G.relatedTarget;if(H){var F=t.css("display")=="block";if(!F){E()}B=setTimeout(function(){if(F){E()}u()},600)}}).bind("mouseover",function(G){clearTimeout(B);var F=!D.isAncestorOf(G.relatedTarget)&&this!==G.relatedTarget;if(F&&!D.slidingDown){D.css({"background-position":"0 -73px"}).animate({top:"-1px"},100,function(){D.slidingDown=false}).slidingDown=true}});var e=document.getElementById("p4fnav-p4f-logo");if(e){var A=q(e);A.bind("mouseover",function(){A.animate({backgroundPosition:"0 -146px"},100)}).bind("mouseout",function(){A.animate({"background-position":"0 -158px"},100)})}var z;var y=document.getElementById("p4fnav-lang-selector-btn");var v=document.getElementById("p4fnav-lang-selector-dropdown");if(y&&v){var C=q(y);var x=q(v);var s=function(){x.get().style.display="none";C.removeClass(r)};C.bind("click",function(G){u();var F=x.css("display")!="block";if(F){C.addClass(r);x.get().style.display="block"}else{s()}G.stopPropagation();return false}).bind("mouseover",function(){clearTimeout(z)}).bind("mouseout",function(F){var G=!C.isAncestorOf(F.relatedTarget)&&this!==F.relatedTarget;if(G){z=setTimeout(function(){s()},600)}});x.bind("mouseover",function(){clearTimeout(z)}).bind("mouseout",function(F){var G=!x.isAncestorOf(F.relatedTarget);if(G){z=setTimeout(function(){s()},600)}})}q(document).bind("click",function(){var G=t.css("display")=="block";if(G){clearTimeout(B);E();u()}var F=x&&x.css("display")=="block";if(F){clearTimeout(z);s()}})}function j(v,e){var x=document.getElementById("p4fnav-login-block");var r=document.getElementById("p4fnav-logout-block");if(v){if(x){x.style.display="none"}if(r){r.style.display="block"}var u=document.getElementById("p4fnav-logged-in-block");if(v.length>0){if(u){u.style.display="block"}var t=document.getElementById("p4fnav-logged-in-user");if(t){t.innerHTML="";t.appendChild(document.createTextNode(v))}}else{if(u){u.style.display="none"}}}else{if(x){x.style.display="block"}if(r){r.style.display="none"}}var s=document.getElementById("p4fnav-logout-form");if(s){q(s).bind("submit",function(){if(typeof window[e]=="function"){window[e]()}else{if(typeof window.logout=="function"){logout()}else{return true}}return false})}}function g(){var A=document.getElementById("p4fnav-lang-selector-dropdown");var v=document.getElementById("p4fnav-supported-lang-regex");if(A&&v){var D=v.value;var B=new RegExp("(^.*/"+D+"/|^/"+D+"$|^/)");var t=location.pathname.replace(B,"");var r=location.search.substr(1);var u=A.childNodes;for(var x=0,z=u.length;x<z;x++){var F=u[x];if(F.href){var e=unescape(F.href);if(r){var y=e.split("?")[1];if(y){var C=y.split("=")[0];var s=new RegExp(C+"=[^&]*&?","g");var E=r.replace(s,"");e=(e+"&"+E).replace(/&+$/,"")}else{e+="?"+r}}F.href=e.replace("${uri}",t)}}}}(function d(){var e=p.containerId?document.getElementById(p.containerId):document.body;if(!e){setTimeout(d,50);return}if(!b(e,p.navBarHTML)){return}j(p.loggedInUser,p.logoutFunction);l();g();if(p.gaAcctId){m(p.gaAcctId)}})()})();if(!window.__twttrlr){(function(aE,aD){function al(f){for(var e=1,j;j=arguments[e];e++){for(var g in j){f[g]=j[g]}}return f}function ak(b){return Array.prototype.slice.call(b)}function ai(f,e){for(var j=0,g;g=f[j];j++){if(e==g){return j}}return -1}function ah(){var f=ak(arguments),e=[];for(var j=0,g=f.length;j<g;j++){f[j].length>0&&e.push(f[j].replace(/\/$/,""))}return e.join("/")}function ag(j,g,n){var m=g.split("/"),l=j;while(m.length>1){var k=m.shift();l=l[k]=l[k]||{}}l[m[0]]=n}function af(){}function ae(d,c){this.id=this.path=d,this.force=!!c}function ad(d,c){this.id=d,this.body=c,typeof c=="undefined"&&(this.path=this.resolvePath(d))}function ac(d,c){this.deps=d,this.collectResults=c,this.deps.length==0&&this.complete()}function ab(d,c){this.deps=d,this.collectResults=c}function aa(){for(var b in aB){if(aB[b].readyState=="interactive"){return at[aB[b].id]}}}function Z(e,c){var f;return !e&&aC&&(f=au||aa()),f?(delete at[f.scriptId],f.body=c,f.execute()):(av=f=new ad(e,c),aw[f.id]=f),f}function Y(){var e=ak(arguments),d,f;return typeof e[0]=="string"&&(d=e.shift()),f=e.shift(),Z(d,f)}function X(g,f){var l=f.id||"",k=l.split("/");k.pop();var j=k.join("/");return g.replace(/^\./,j)}function W(j,g){function m(b){return ad.exports[X(b,g)]}var n=[];for(var l=0,k=j.length;l<k;l++){if(j[l]=="require"){n.push(m);continue}if(j[l]=="exports"){g.exports=g.exports||{},n.push(g.exports);continue}n.push(m(j[l]))}return n}function V(){var f=ak(arguments),e=[],j,g;return typeof f[0]=="string"&&(j=f.shift()),aj(f[0])&&(e=f.shift()),g=f.shift(),Z(j,function(b){function m(){var c=W(ak(e),p),a;typeof g=="function"?a=g.apply(p,c):a=g,typeof a=="undefined"&&(a=p.exports),b(a)}var p=this,n=[];for(var l=0,k=e.length;l<k;l++){var d=e[l];ai(["require","exports"],d)==-1&&n.push(X(d,p))}n.length>0?U.apply(this,n.concat(m)):m()})}function U(){var f=ak(arguments),e,j;typeof f[f.length-1]=="function"&&(e=f.pop()),typeof f[f.length-1]=="boolean"&&(j=f.pop());var g=new ac(T(f,j),j);return e&&g.then(e),g}function T(g,f){var l=[];for(var k=0,j;j=g[k];k++){typeof j=="string"&&(j=S(j)),aj(j)&&(j=new ab(T(j,f),f)),l.push(j)}return l}function S(k){var j,q;for(var p=0,n;n=U.matchers[p];p++){var m=n[0],l=n[1];if(j=k.match(m)){return l(k)}}throw new Error(k+" was not recognised by loader")}function Q(){return aE.using=ar,aE.provide=aq,aE.define=ap,aE.loadrunner=ao,R}function P(e){for(var d=0;d<U.bundles.length;d++){for(var f in U.bundles[d]){if(f!=e&&ai(U.bundles[d][f],e)>-1){return f}}}}var aC=aE.attachEvent&&!aE.opera,aB=aD.getElementsByTagName("script"),aA=0,az,ay=aD.createElement("script"),ax={},aw={},av,au,at={},ar=aE.using,aq=aE.provide,ap=aE.define,ao=aE.loadrunner;for(var an=0,am;am=aB[an];an++){if(am.src.match(/loadrunner\.js(\?|#|$)/)){az=am;break}}var aj=Array.isArray||function(b){return b.constructor==Array};af.prototype.then=function(a){var d=this;return this.started||(this.started=!0,this.start()),this.completed?a.apply(aE,this.results):(this.callbacks=this.callbacks||[],this.callbacks.push(a)),this},af.prototype.start=function(){},af.prototype.complete=function(){if(!this.completed){this.results=ak(arguments),this.completed=!0;if(this.callbacks){for(var a=0,d;d=this.callbacks[a];a++){d.apply(aE,this.results)}}}},ae.loaded=[],ae.prototype=new af,ae.prototype.start=function(){var f=this,e,j,g;return(g=aw[this.id])?(g.then(function(){f.complete()}),this):((e=ax[this.id])?e.then(function(){f.loaded()}):!this.force&&ai(ae.loaded,this.id)>-1?this.loaded():(j=P(this.id))?U(j,function(){f.loaded()}):this.load(),this)},ae.prototype.load=function(){var a=this;ax[this.id]=a;var d=ay.cloneNode(!1);this.scriptId=d.id="LR"+ ++aA,d.type="text/javascript",d.async=!0,d.onerror=function(){throw new Error(a.path+" not loaded")},d.onreadystatechange=d.onload=function(b){b=aE.event||b;if(b.type=="load"||ai(["loaded","complete"],this.readyState)>-1){this.onreadystatechange=null,a.loaded()}},d.src=this.path,au=this,aB[0].parentNode.insertBefore(d,aB[0]),au=null,at[d.id]=this},ae.prototype.loaded=function(){this.complete()},ae.prototype.complete=function(){ai(ae.loaded,this.id)==-1&&ae.loaded.push(this.id),delete ax[this.id],af.prototype.complete.apply(this,arguments)},ad.exports={},ad.prototype=new ae,ad.prototype.resolvePath=function(b){return ah(U.path,b+".js")},ad.prototype.start=function(){var f,e,j=this,g;this.body?this.execute():(f=ad.exports[this.id])?this.exp(f):(e=aw[this.id])?e.then(function(b){j.exp(b)}):(bundle=P(this.id))?U(bundle,function(){j.start()}):(aw[this.id]=this,this.load())},ad.prototype.loaded=function(){var e,c,f=this;aC?(c=ad.exports[this.id])?this.exp(c):(e=aw[this.id])&&e.then(function(b){f.exp(b)}):(e=av,av=null,e.id=e.id||this.id,e.then(function(b){f.exp(b)}))},ad.prototype.complete=function(){delete aw[this.id],ae.prototype.complete.apply(this,arguments)},ad.prototype.execute=function(){var b=this;typeof this.body=="object"?this.exp(this.body):typeof this.body=="function"&&this.body.apply(window,[function(a){b.exp(a)}])},ad.prototype.exp=function(b){this.complete(this.exports=ad.exports[this.id]=b||{})},ac.prototype=new af,ac.prototype.start=function(){function e(){var a=[];f.collectResults&&(a[0]={});for(var l=0,k;k=f.deps[l];l++){if(!k.completed){return}k.results.length>0&&(f.collectResults?k instanceof ab?al(a[0],k.results[0]):ag(a[0],k.id,k.results[0]):a=a.concat(k.results))}f.complete.apply(f,a)}var f=this;for(var j=0,g;g=this.deps[j];j++){g.then(e)}return this},ab.prototype=new af,ab.prototype.start=function(){var f=this,e=0,j=[];return f.collectResults&&(j[0]={}),function g(){var a=f.deps[e++];a?a.then(function(c){a.results.length>0&&(f.collectResults?a instanceof ab?al(j[0],a.results[0]):ag(j[0],a.id,a.results[0]):j.push(a.results[0])),g()}):f.complete.apply(f,j)}(),this},V.amd={};var R=function(b){return b(U,Y,R,define)};R.Script=ae,R.Module=ad,R.Collection=ac,R.Sequence=ab,R.Dependency=af,R.noConflict=Q,aE.loadrunner=R,aE.using=U,aE.provide=Y,aE.define=V,U.path="",U.matchers=[],U.matchers.add=function(d,c){this.unshift([d,c])},U.matchers.add(/(^script!|\.js$)/,function(d){var c=new ae(d.replace(/^\$/,U.path.replace(/\/$/,"")+"/").replace(/^script!/,""),!1);return c.id=d,c}),U.matchers.add(/^[a-zA-Z0-9_\-\/]+$/,function(b){return new ad(b)}),U.bundles=[],az&&(U.path=az.getAttribute("data-path")||az.src.split(/loadrunner\.js/)[0]||"",(main=az.getAttribute("data-main"))&&U.apply(aE,main.split(/\s*,\s*/)).then(function(){}))})(this,document);(window.__twttrlr=loadrunner.noConflict())}__twttrlr(function(using,provide,loadrunner,define){provide("util/iframe",function(a){a(function(a){var b=document.createElement("div"),c;b.innerHTML="<iframe allowtransparency='true' frameborder='0' scrolling='no'></iframe>",c=b.firstChild,c.src=a.url,c.className=a.className||"";if(a.css){for(var d in a.css){c.style[d]=a.css[d]}}if(a.attributes){for(var e in a.attributes){c.setAttribute(e,a.attributes[e])}}return a.replace?a.replace.parentNode.replaceChild(c,a.replace):document.body.insertBefore(c,document.body.firstChild),c})});provide("util/querystring",function(a){function b(a){return encodeURIComponent(a).replace(/\+/g,"%2B")}function c(a){return decodeURIComponent(a)}function d(a){var c=[];for(var d in a){a[d]!==null&&typeof a[d]!="undefined"&&c.push(b(d)+"="+b(a[d]))}return c.sort().join("&")}function e(a){var b={},d,e,f,g;if(a){d=a.split("&");for(g=0;f=d[g];g++){e=f.split("="),e.length==2&&(b[c(e[0])]=c(e[1]))}}return b}function f(a,b){var c=d(b);return c.length>0?a.indexOf("?")>=0?a+"&"+d(b):a+"?"+d(b):a}a({url:f,decode:e,encode:d,encodePart:b,decodePart:c})});provide("util/nodeselect",function(a){var b=document,c="querySelectorAll" in b?function(a,c){return b.querySelectorAll(a+"."+c)}:"getElementsByClassName" in b?function(a,c){var d=b.getElementsByClassName(c),e,f=[];for(i=0;e=d[i];i++){e.tagName.toLowerCase()==a&&f.push(e)}return f}:function(a,c){var d=b.getElementsByTagName(a),e,f=new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)"),g=[];for(i=0;e=d[i];i++){f.test(e.className)&&g.push(e)}return g};a(c)});provide("$vendor/domready/ready.js",function(exports){!function(a){function k(){b=1;for(var a=0,d=c.length;a<d;a++){c[a]()}}var b=0,c=[],d,e,f=!1,g=a.createElement("a"),h="DOMContentLoaded",i="addEventListener",j="onreadystatechange";/^loade|c/.test(a.readyState)&&(b=1),a[i]&&a[i](h,e=function(){a.removeEventListener(h,e,f),k()},f),g.doScroll&&a.attachEvent(j,d=function(){/^c/.test(a.readyState)&&(a.detachEvent(j,d),k())});var l=g.doScroll?function(a){self!=top?b?a():c.push(a):!function(){try{g.doScroll("left")}catch(b){return setTimeout(function(){l(a)},50)}a()}()}:function(a){b?a():c.push(a)};typeof module!="undefined"&&module.exports?module.exports={domReady:l}:window.domReady=l}(document);exports();loadrunner.Script.loaded.push("$vendor/domready/ready.js")});provide("util/domready",function(a){using("$vendor/domready/ready.js",function(){a(domReady)})});provide("util/util",function(a){function b(a){for(var b=1,c;c=arguments[b];b++){for(var d in c){a[d]=c[d]}}return a}function c(a){return b([],a)}function d(a){for(var b in a){a.hasOwnProperty(b)&&!a[b]&&a[b]!==!1&&a[b]!==0&&delete a[b]}}function e(a,b){if(a.indexOf){return a.indexOf(b)}for(var c=0,d;d=a[c];c++){if(b==d){return c}}return -1}function f(a,b){if(!a){return null}if(!b){return a}if(a.filter){return a.filter(b)}var c=[],d=0,e=a.length;for(;d<e;d++){b(a[d])&&c.push(a[d])}return c}function g(a,b){if(a.contains){return a.contains(b)}var c=b.parentNode;while(c){if(c===a){return !0}c=c.parentNode}return !1}a({aug:b,array:c,indexOf:e,filter:f,compact:d,containsElement:g})});provide("tfw/widget/base",function(a){using("util/util","util/domready","util/nodeselect","util/querystring","util/iframe",function(b,c,d,e,f){function m(a){if(!a){return}return a.lang?a.lang:m(a.parentNode)}function n(){var a=i.widgets,b,c;for(var e in a){e.match(/\./)?b=d.apply(this,e.split(".")):b=document.getElementsByTagName(e);for(var f=0,g;g=b[f];f++){if(g.getAttribute("data-twttr-rendered")){continue}g.setAttribute("data-twttr-rendered","true"),c=new a[e](g),j.list.push(c),j.byId[c.id]=c,c.render(i)}}}function o(a){i=a}function p(){n()}function q(a){return a&&j.byId[a]?j.byId[a].element:null}var g=0,h,i,j={list:[],byId:{}},k={ko:{"%{followers_count} followers":"%{followers_count}?????? ?????????","100K+":"100??? ??????","10k unit":"??? ??????",Follow:"?????????","Follow %{screen_name}":"%{screen_name} ???????????????",K:"???",M:"??????",Tweet:"??????","Tweet %{hashtag}":"%{hashtag} ?????? ????????????","Tweet to %{name}":"%{name}????????? ????????????"},no:{"%{followers_count} followers":"%{followers_count} f??gere","100K+":"100K+","10k unit":"10k ",Follow:"F??lg","Follow %{screen_name}":"F??lg %{screen_name}",K:"K",M:"M",Tweet:"Tweet","Tweet %{hashtag}":"Tweet %{hashtag}","Tweet to %{name}":"Send tweet til %{name}"},fil:{"%{followers_count} followers":"%{followers_count} mga tagasunod","100K+":"100K+","10k unit":"10k yunit",Follow:"Sundan","Follow %{screen_name}":"Sundan si %{screen_name}",K:"K",M:"M",Tweet:"I-tweet","Tweet %{hashtag}":"I-tweet ang %{hashtag}","Tweet to %{name}":"Mag-Tweet kay %{name}"},sv:{"%{followers_count} followers":"%{followers_count} f??ljare","100K+":"100K+","10k unit":"10k",Follow:"F??lj","Follow %{screen_name}":"F??lj %{screen_name}",K:"K",M:"M",Tweet:"Tweeta","Tweet %{hashtag}":"Tweeta %{hashtag}","Tweet to %{name}":"Tweeta till %{name}"},nl:{"%{followers_count} followers":"%{followers_count} volgers","100K+":"100k+","10k unit":"10k-eenheid",Follow:"Volgen","Follow %{screen_name}":"%{screen_name} volgen",K:"k",M:" mln.",Tweet:"Tweeten","Tweet %{hashtag}":"%{hashtag} tweeten","Tweet to %{name}":"Tweeten naar %{name}"},es:{"%{followers_count} followers":"%{followers_count} seguidores","100K+":"100K+","10k unit":"10k unidad",Follow:"Seguir","Follow %{screen_name}":"Seguir a %{screen_name}",K:"K",M:"M",Tweet:"Twittear","Tweet %{hashtag}":"Twittear %{hashtag}","Tweet to %{name}":"Twittear a %{name}"},hu:{"%{followers_count} followers":"%{followers_count} k??vet??","100K+":"100E+","10k unit":"10E+",Follow:"K??vet??s","Follow %{screen_name}":"%{screen_name} k??vet??se",K:"E",M:"M",Tweet:"Tweet","Tweet %{hashtag}":"%{hashtag} tweetel??se","Tweet to %{name}":"Tweet k??ld??se neki: %{name}"},hi:{"%{followers_count} followers":"%{followers_count} ???????????????????????????","100K+":"????????? ????????????+","10k unit":"?????? ???????????? ?????????????????????",Follow:"???????????????","Follow %{screen_name}":"%{screen_name} ?????? ??????????????? ????????????",K:"????????????",M:"?????? ?????????",Tweet:"???????????????","Tweet %{hashtag}":"??????????????? %{hashtag}","Tweet to %{name}":"%{name} ?????? ??????????????? ????????????"},ja:{"%{followers_count} followers":"%{followers_count}?????????????????????","100K+":"10?????????","10k unit":"???",Follow:"??????????????????","Follow %{screen_name}":"%{screen_name}???????????????",K:"K",M:"M",Tweet:"????????????","Tweet %{hashtag}":"%{hashtag} ?????????????????????","Tweet to %{name}":"%{name}?????????????????????"},da:{"%{followers_count} followers":"%{followers_count} f??lgere","100K+":"100K+","10k unit":"10k enhed",Follow:"F??lg","Follow %{screen_name}":"F??lg %{screen_name}",K:"K",M:"M",Tweet:"Tweet","Tweet %{hashtag}":"Tweet %{hashtag}","Tweet to %{name}":"Tweet til %{name}"},ur:{"%{followers_count} followers":"%{followers_count} ????????????","100K+":"1 ????????+","10k unit":"???? ???????? ????????",Follow:"???????? ????????","Follow %{screen_name}":"%{screen_name} ???? ???????? ????????",K:"????????",M:"????????",Tweet:"???????? ????????","Tweet %{hashtag}":"???????? ???????? %{hashtag}","Tweet to %{name}":"%{name} ???? ???????? ????????"},he:{"%{followers_count} followers":"%{followers_count} ????????????","100K+":"???????? ??????????","10k unit":"?????????? ??????????",Follow:"????????","Follow %{screen_name}":"?????????? ?????? %{screen_name}",K:"??????",M:"????????????",Tweet:"????????","Tweet %{hashtag}":"?????????? %{hashtag}","Tweet to %{name}":"???????? ???? %{name}"},pt:{"%{followers_count} followers":"%{followers_count} seguidores","100K+":"+100 mil","10k unit":"10 mil unidades",Follow:"Seguir","Follow %{screen_name}":"Seguir %{screen_name}",K:"Mil",M:"M",Tweet:"Tweetar","Tweet %{hashtag}":"Tweetar %{hashtag}","Tweet to %{name}":"Tweetar para %{name}"},ru:{"%{followers_count} followers":"????????????????: %{followers_count} ","100K+":"100 ??????.+","10k unit":"???????? 10k",Follow:"????????????","Follow %{screen_name}":"???????????? %{screen_name}",K:"??????.",M:"??????.",Tweet:"????????????????","Tweet %{hashtag}":"???????????????? %{hashtag}","Tweet to %{name}":"???????????????? %{name}"},"zh-cn":{"%{followers_count} followers":"%{followers_count} ?????????","100K+":"10???+","10k unit":"1?????????",Follow:"??????","Follow %{screen_name}":"?????? %{screen_name}",K:"???",M:"??????",Tweet:"??????","Tweet %{hashtag}":"??? %{hashtag} ??????","Tweet to %{name}":"????????? %{name}"},"zh-tw":{"%{followers_count} followers":"%{followers_count} ????????????","100K+":"????????????","10k unit":"1??? ??????",Follow:"??????","Follow %{screen_name}":"?????? %{screen_name}",K:"???",M:"??????",Tweet:"??????","Tweet %{hashtag}":"??????%{hashtag}","Tweet to %{name}":"?????????%{name}"},ar:{"%{followers_count} followers":"?????? ?????????????????? %{followers_count}","100K+":"+100 ??????","10k unit":"10 ???????? ????????",Follow:"????????","Follow %{screen_name}":"???????? %{screen_name}",K:"??????",M:"??????????",Tweet:"??????????","Tweet %{hashtag}":"?????????? %{hashtag}","Tweet to %{name}":"?????????? ???? %{name}"},it:{"%{followers_count} followers":"%{followers_count} follower","100K+":"100K+","10k unit":"10k unit??",Follow:"Segui","Follow %{screen_name}":"Segui %{screen_name}",K:"K",M:"M",Tweet:"Tweet","Tweet %{hashtag}":"Twitta %{hashtag}","Tweet to %{name}":"Twitta a %{name}"},id:{"%{followers_count} followers":"%{followers_count} pengikut","100K+":"100 ribu+","10k unit":"10 ribu unit",Follow:"Ikuti","Follow %{screen_name}":"Ikuti %{screen_name}",K:"&nbsp;ribu",M:"&nbsp;juta",Tweet:"Tweet","Tweet %{hashtag}":"Tweet %{hashtag}","Tweet to %{name}":"Tweet ke %{name}"},tr:{"%{followers_count} followers":"%{followers_count} takip??i","100K+":"+100 bin","10k unit":"10 bin birim",Follow:"Takip et","Follow %{screen_name}":"Takip et: %{screen_name}",K:"bin",M:"milyon",Tweet:"Tweetle","Tweet %{hashtag}":"Tweetle: %{hashtag}","Tweet to %{name}":"Tweetle: %{name}"},fr:{"%{followers_count} followers":"%{followers_count} abonn??s","100K+":"100K+","10k unit":"unit?? de 10k",Follow:"Suivre","Follow %{screen_name}":"Suivre %{screen_name}",K:"K",M:"M",Tweet:"Tweeter","Tweet %{hashtag}":"Tweeter %{hashtag}","Tweet to %{name}":"Tweeter ?? %{name}"},fi:{"%{followers_count} followers":"%{followers_count} seuraajaa","100K+":"100 000+","10k unit":"10 000 yksikk????",Follow:"Seuraa","Follow %{screen_name}":"Seuraa k??ytt??j???? %{screen_name}",K:"tuhatta",M:"milj.",Tweet:"Twiittaa","Tweet %{hashtag}":"Twiittaa %{hashtag}","Tweet to %{name}":"Twiittaa k??ytt??j??lle %{name}"},fa:{"%{followers_count} followers":"%{followers_count} ???????????????????????","100K+":">??????????????","10k unit":"???????????? ????????",Follow:"?????????? ????????","Follow %{screen_name}":"?????????? ???????? %{screen_name}",K:"????????",M:"????????????",Tweet:"??????????","Tweet %{hashtag}":"?????????? ???????? %{hashtag}","Tweet to %{name}":"???? %{name} ?????????? ????????"},th:{"%{followers_count} followers":"%{followers_count} ???????????????????????????","100K+":"100?????????+","10k unit":"??????????????? 10?????????",Follow:"??????????????????","Follow %{screen_name}":"?????????????????? %{screen_name}",K:"?????????",M:"????????????",Tweet:"????????????","Tweet %{hashtag}":"???????????? %{hashtag}","Tweet to %{name}":"????????????????????? %{name}"},msa:{"%{followers_count} followers":"%{followers_count} pengikut","100K+":"100 ribu+","10k unit":"10 ribu unit",Follow:"Ikut","Follow %{screen_name}":"Ikut %{screen_name}",K:"ribu",M:"juta",Tweet:"Tweet","Tweet %{hashtag}":"Tweet %{hashtag}","Tweet to %{name}":"Tweet kepada %{name}"},pl:{"%{followers_count} followers":"%{followers_count} obserwuj??cych","100K+":"100 tys.+","10k unit":"10 tys.",Follow:"Obserwuj","Follow %{screen_name}":"Obserwuj %{screen_name}",K:"tys.",M:"mln",Tweet:"Tweetnij","Tweet %{hashtag}":"Tweetnij %{hashtag}","Tweet to %{name}":"Tweetnij do %{name}"},de:{"%{followers_count} followers":"%{followers_count} Follower","100K+":"100Tsd+","10k unit":"10tsd-Einheit",Follow:"Folgen","Follow %{screen_name}":"%{screen_name} folgen",K:"Tsd",M:"M",Tweet:"Twittern","Tweet %{hashtag}":"Tweet %{hashtag}","Tweet to %{name}":"Tweet an %{name}"}},l=function(){};b.aug(l.prototype,{setLanguage:function(a){var b;a||(a=this.params().lang||this.originElement.getAttribute("data-lang")||m(this.originElement)),a=a&&a.toLowerCase();if(!a){return this.lang="en"}if(k[a]){return this.lang=a}b=a.replace(/[-_].*/,"");if(k[b]){return this.lang=b}this.lang="en"},_:function(a,b){var c=this.lang;b=b||{};if(!c||!k.hasOwnProperty(c)){c=this.lang="en"}return a=k[c]&&k[c][a]||a,this.ringo(a,b,/%\{([\w_]+)\}/g)},ringo:function(a,b,c){return c=c||/\{\{([\w_]+)\}\}/g,a.replace(c,function(a,c){return b[c]!==undefined?b[c]:a})},add:function(a){j.list.push(this),j.byId[this.id]=a},create:function(a,b,c,d){return this.id=this.generateId(),f({url:a,css:{width:c[0]+(typeof c[0]!="string"?"px":""),height:c[1]+(typeof c[1]!="string"?"px":"")},className:b,id:this.id,attributes:d,replace:this.originElement})},params:function(){var a=this.originElement.href&&this.originElement.href.split("?")[1],b=a?e.decode(a):{};return(this.params=function(){return b})()},dataAttr:function(a){return this.originElement.getAttribute("data-"+a)},generateId:function(){return this.originElement.id||"twitter-widget-"+g++},styles:{base:"font: normal normal normal 11px/18px 'Helvetica Neue', Arial, sans-serif; margin: 0; padding: 0; white-space: nowrap;",button:"font-weight: bold; text-shadow: 0 1px 0 rgba(255,255,255,.5);",large:"font-size: 13px; line-height: 26px;",vbubble:"font-size: 16px;"},width:function(){throw new Error(name+" not implemented")},height:function(){return this.size=="m"?20:28},dimensions:function(){return[this.width(),this.height()]}}),a({Base:l,init:o,embed:p,find:q,TWITTER_PROFILE_URL:/^https?\:\/\/(?:www\.)?twitter\.com\/(?:#!?\/)?([\w_]{1,20})\/?$/})})});provide("util/events",function(a){using("util/util",function(b){function d(){this.completed=!1,this.callbacks=[]}var c={bind:function(a,b){return this._handlers=this._handlers||{},this._handlers[a]=this._handlers[a]||[],this._handlers[a].push(b)},unbind:function(a,c){if(!this._handlers[a]){return}if(c){var d=b.indexOf(this._handlers[a],c);d>=0&&this._handlers[a].splice(d,1)}else{this._handlers[a]=[]}},trigger:function(a,b){var c=this._handlers&&this._handlers[a];b.type=a;if(c){for(var d=0,e;e=c[d];d++){e.call(this,b)}}}};d.prototype.addCallback=function(a){this.completed?a.apply(this,this.results):this.callbacks.push(a)},d.prototype.complete=function(){this.results=makeArray(arguments),this.completed=!0;for(var a=0,b;b=this.callbacks[a];a++){b.apply(this,this.results)}},a({Emitter:c,Promise:d})})});provide("util/uri",function(a){using("util/querystring","util/util",function(b,c){function d(a){var b;return a.match(/^https?:\/\//)?a:(b=location.host,location.port.length>0&&(b+=":"+location.port),[location.protocol,"//",b,a].join(""))}function e(){var a=document.getElementsByTagName("link");for(var b=0,c;c=a[b];b++){if(c.getAttribute("rel")=="canonical"){return d(c.getAttribute("href"))}}return null}function f(){var a=document.getElementsByTagName("a"),b=document.getElementsByTagName("link"),d=/\bme\b/,e=/^https?\:\/\/(www\.)?twitter.com\/([a-zA-Z0-9_]+)$/,f=c.array(a).concat(c.array(b)),g,h,i;for(var j=0,k;k=f[j];j++){h=k.getAttribute("rel"),i=k.getAttribute("href");if(h&&i&&h.match(d)&&(g=i.match(e))){return g[2]}}}a({absolutize:d,getCanonicalURL:e,getScreenNameFromPage:f})})});provide("tfw/widget/intent",function(a){using("util/util","tfw/widget/base","util/querystring","util/uri",function(b,c,d,e){function m(a){var b=Math.round(k/2-h/2),c=0;j>i&&(c=Math.round(j/2-i/2)),window.open(a,"intent",g+",width="+h+",height="+i+",left="+b+",top="+c)}function n(a,b){using("tfw/widget/hubclient",function(c){c.openIntent(a,b)})}function o(a){var b="original_referer="+location.href;return[a,b].join(a.indexOf("?")==-1?"?":"&")}function q(a){a=a||window.event;var b=a.target||a.srcElement,c,d;while(b&&b.nodeName.toLowerCase()!=="a"){b=b.parentNode}if(b&&b.nodeName.toLowerCase()==="a"&&b.href){c=b.href.match(f);if(c){var e=o(b.href);e=e.replace(/^http[:]/,"https:"),e=e.replace(/^\/\//,"https://"),twttr.events.hub?(d=new p(l.generateId(),b),l.add(d),n(e,b),twttr.events.trigger("click",{target:b,region:"intent",type:"click",data:{}})):m(e),a.returnValue=!1,a.preventDefault&&a.preventDefault()}}}var f=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/,g="scrollbars=yes,resizable=yes,toolbar=no,location=yes",h=550,i=520,j=screen.height,k=screen.width,l,p=function(a,b){this.id=a,this.element=this.originElement=b},r=function(a){this.originElement=[],this.element=a};r.prototype=new c.Base,b.aug(r.prototype,{render:function(a){l=this,window.__twitterIntentHandler||(document.addEventListener?document.addEventListener("click",q,!1):document.attachEvent&&document.attachEvent("onclick",q),window.__twitterIntentHandler=!0)}}),a({Listener:r})})});provide("lib/twt",function(a){a(function(a,b){var c=a!="en"?a+".":"";using("$vendor/twt/dist/twt."+c+"min.js",function(){twt.settings.lang=a,b(twt)})})});provide("$xd/json2.js",function(exports){window.JSON||(window.JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i){return"null"}gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1){h[c]=str(c,i)||"null"}return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1){d=rep[c],typeof d=="string"&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}}else{for(d in i){Object.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}}return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){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(a){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;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number"){for(d=0;d<c;d+=1){indent+=" "}}else{typeof c=="string"&&(indent=c)}rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number"){return str("",{"":a})}throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object"){for(c in e){Object.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c])}}return reviver.call(a,b,e)}var j;cx.lastIndex=0,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,""))){return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")})}();exports();loadrunner.Script.loaded.push("$xd/json2.js")});provide("util/decider",function(a){function c(a){var c=b[a]||!1;if(!c){return !1}if(c===!0||c===100){return !0}var d=Math.random()*100,e=c>=d;return b[a]=e,e}var b={force_new_cookie:100,rufous_pixel:25,decider_fixture:12.34};a({isAvailable:c})});provide("util/params",function(a){using("util/querystring",function(b){var c=function(a){var c=a.search.substr(1);return b.decode(c)},d=function(a){var c=a.href,d=c.indexOf("#"),e=d<0?"":c.substring(d+1);return b.decode(e)},e=function(a){var b={},e=c(a),f=d(a);for(var g in e){e.hasOwnProperty(g)&&(b[g]=e[g])}for(var g in f){f.hasOwnProperty(g)&&(b[g]=f[g])}return b};a({combined:e,fromQuery:c,fromFragment:d})})});provide("tfw/widget/env",function(a){using("util/params",function(b){function d(){var a=3600000,d=b.combined(document.location)._;return c!==undefined?c:(c=!1,d&&/^\d+$/.test(d)&&(c=+(new Date)-parseInt(d)<a),c)}var c;a({isDynamicWidget:d})})});provide("dom/cookie",function(a){using("util/util",function(b){a(function(a,c,d){var e=b.aug({},d);if(arguments.length>1&&String(c)!=="[object Object]"){if(c===null||c===undefined){e.expires=-1}if(typeof e.expires=="number"){var f=e.expires,g=new Date((new Date).getTime()+f*60*1000);e.expires=g}return c=String(c),document.cookie=[encodeURIComponent(a),"=",e.raw?c:encodeURIComponent(c),e.expires?"; expires="+e.expires.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("")}e=c||{};var h,i=e.raw?function(a){return a}:decodeURIComponent;return(h=(new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)")).exec(document.cookie))?i(h[1]):null})})});provide("util/donottrack",function(a){using("dom/cookie",function(b){a(function(){return b("dnt")?!0:/\.(gov|mil)(:\d+)?$/i.test(document.location.host)?!0:document.navigator?document.navigator.doNotTrack==1:navigator?navigator.doNotTrack==1||navigator.msDoNotTrack==1:!1})})});provide("tfw/widget/guest_cookie",function(a){using("dom/cookie","util/donottrack","util/decider",function(b,c,d){function f(){var a=b(e)||!1;if(!a){return}a.match(/^v3\:/)||g()}function g(){b(e)&&b(e,null,{domain:".twitter.com",path:"/"})}function h(){c()&&g()}var e="pid";a({set:h,destroy:g,forceNewCookie:f,guest_id_cookie:e})})});provide("tfw/widget/tracking",function(a){using("dom/cookie","util/donottrack","tfw/widget/guest_cookie","tfw/widget/env","util/decider",function(b,c,d,e,f){function i(a,b,c){var d=g+b;if(!a){return}return a[d]=c,a}function j(a,g,j,k,l){k||(k=!1),l||(l=!1),g||(g={}),j=j||"tweetbutton";var m=h[j]||h.tweetbutton,n=a.ownerDocument.createElement("img"),o=[];if(!k){var p=g.original_redirect_referrer||document.referrer.toString();i(g,"referrer",p),i(g,"widget",+e.isDynamicWidget()),!l&&!c()?(i(g,"hask",+!!b("k")),i(g,"li",+!!b("twid")),i(g,d.guest_id_cookie,b(d.guest_id_cookie)||"")):i(g,"dnt","1")}for(var q in g){if(g.hasOwnProperty(q)){var r=encodeURIComponent(q),s=encodeURIComponent(g[q]);s=s.replace(/'/g,"%27"),o.push(r+"="+s)}}n.src=m+"?"+o.join("&"),n.alt="",n.style.position="absolute",n.style.height="1px",n.style.width="1px",n.style.top="-9999px",n.style.left="-9999px",a.appendChild(n);if(f.isAvailable("rufous_pixel")){var t={twttr_referrer:"referrer",twttr_variant:"version",lang:"language",screen_name:"screen_name"},u={_category_:"tfw_widgets",event_name:j+":impression"};for(var q in g){var v=t[q];v&&(u[v]=g[q])}!l&&!c()&&(g.twttr_li&&(u.logged_in=g.twttr_li=="1"),u.pid=b(d.guest_id_cookie)||""),g.status_id&&(u.tweet_ids=[g.status_id]),g.twttr_widget&&(u.widget=g.twttr_widget=="1");var n=a.ownerDocument.createElement("img"),w=Array.prototype.toJSON;delete Array.prototype.toJSON;var x="//r.twimg.com/jot?l="+encodeURIComponent(JSON.stringify(u)).replace(/'/g,"%27");Array.prototype.toJSON=w;if(l||c()){x+="&dnt=1"}n.src=x,n.alt="",n.style.position="absolute",n.style.height="1px",n.style.width="1px",n.style.top="-9999px",n.style.left="-9999px",a.appendChild(n)}}function k(){a({addPixel:j,addVar:i})}var g="twttr_",h={tweetbutton:"//p.twitter.com/t.gif",followbutton:"//p.twitter.com/f.gif",tweetembed:"//p.twitter.com/e.gif"};f.isAvailable("force_new_cookie")&&d.forceNewCookie(),typeof JSON=="undefined"?using("$xd/json2.js",function(){k()}):k()})});provide("util/tweetparser",function(a){using("util/util",function(b){function g(a,c){var d=document.getElementsByTagName(a),e=b.filter(d,function(a){return b.containsElement(c,a)});return e||[]}function h(a){return a&&c.test(a)&&RegExp.$1}function i(a){if(!a||!a.nodeName||!/blockquote/i.test(a.nodeName)){return}var b={},c=g("p",a).shift(),d=g("a",a).pop();if(!c&&g("br",a).length){c=document.createElement("p");for(var e=0,f;f=c.childNodes[e];e++){if(f.nodeType===1&&/^br$/i.test(f.nodeName)){break}c.appendChild(f)}}return c&&(b.text=c.textContent||c.innerText||"",b.rendered_text=c.innerHTML||""),d&&(d.getAttribute("data-datetime")?b.created_at=d.getAttribute("data-datetime"):b.time=d.textContent||d.innerText),b.user=j(a),b.id=b.id_str=h(d.href),b.id_str&&b.text&&b.user&&b}function j(a){var b={},c=0,d=a.childNodes.length,h,i;for(;c<d;c++){h=a.childNodes[c],h.nodeType===1&&/^p$/i.test(h.nodeName)&&(h=h.childNodes[0]);if(h&&h.nodeType===3&&e.test(h.nodeValue)){b.name=RegExp.$1.split(" ").slice(1).join(" "),b.screen_name=RegExp.$2;break}}if(b.screen_name){return b}i=g("a",a).pop();if(i&&f.test(i.href)){return b.name="",b.screen_name=RegExp.$2,b}}var c=/\/(\d+)\/?$/,d=/^https?:\/\/(?:www\.)?twitter\.com\/(?:#!\/)?[\w_]+\/status(?:es)?\/(\d+)\/?/,e=/^\s*(.+)\s+\(@([\w_]{1,20})\)\s*$/,f=/^https?:\/\/(?:www\.)?twitter\.com\/(#!\/)?([\w_]{1,20})/;a({parseTweet:i,parseId:h,parseAuthor:j})})});provide("i18n/i18n",function(a){function b(){twttr.i18n_missing_interval||(twttr.i18n_missing_interval=window.setInterval(function(){twttr.i18n_missing&&twttr.i18n_missing.length>0&&($.ajax({type:"POST",data:$.param({authenticity_token:twttr.form_authenticity_token,location:window.location.href,"strings[]":twttr.i18n_missing}),url:"/translate/untranslated_javascript"}),twttr.i18n_missing=new Array)},10000))}function c(a){twttr.i18n_missing||(twttr.i18n_missing=new Array),twttr.i18n_missing_reported||(twttr.i18n_missing_reported={}),twttr.i18n_missing_reported[a]||(twttr.i18n_missing.push(encodeURIComponent(a)),twttr.i18n_missing_reported[a]=!0)}function d(a,b){if(b){for(var c in b){a=a.replace(new RegExp("\\%\\{"+c+"\\}","gi"),b[c])}}return a}window.setupTranslationCallback=b,a({_:function(a,b){if(twttr.i18n){var e=twttr.i18n[a];e?a=e:c(a)}return d(a,b)},setupTranslationCallback:b})});provide("tfw/data",function(a){using("util/querystring",function(b){window.twttr=window.twttr||{},window.twttr.tfw=window.twttr.tfw||{},window.twttr.tfw.callbacks=window.twttr.tfw.callbacks||{};var c="twttr.tfw.callbacks",d=twttr.tfw.callbacks,e="cb",f=0,g=!1,h=function(a,b){return a=={}.toString.call(b).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},i=function(a){return function(b){b.error?a.error&&a.error(b):a.success&&a.success(b),a.complete&&a.complete(b),j(a)}},j=function(a){var b=a.script;b&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),a.script=undefined,b=undefined),a.callbackName&&twttr.tfw.callbacks[a.callbackName]&&delete twttr.tfw.callbacks[a.callbackName]},k=function(a){var b={};return a.success&&h("function",a.success)&&(b.success=a.success),a.error&&h("function",a.error)&&(b.error=a.error),a.complete&&h("function",a.complete)&&(b.complete=a.complete),b},l=function(a,h){g&&(a=a.replace(/^\/\//,"https://"));var j=e+f,k=c+"."+j;d[j]=i(h);var l=document.createElement("script"),m={callback:k,suppress_response_codes:!0};l.src=b.url(a,m),l.async="async";var n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n.appendChild(l),h.script=l,h.callbackName=j,f++},m=function(a,b,c){var d=a.length,e=[],f={},g=0;return function(e){var h;h=c(e),f[h]=e;if(++g===d){var i=[],j=[],k=[];for(var l=0;l<d;l++){var e=f[a[l]];i.push(e),e.error?k.push(e):j.push(e)}b.error&&k.length>0&&b.error(k),b.success&&j.length>0&&b.success(j),b.complete&&b.complete(i)}}},n={};n.config=function(a){if(a.forceSSL===!0||a.forceSSL===!1){g=a.forceSSL}},n.user=function(){var a="//api.twitter.com/1/users/lookup.json",c="//cdn.api.twitter.com/1/users/show.json";return function(){var d,e={};arguments.length===1?(d=arguments[0].screenName,e=k(arguments[0])):(d=arguments[0],e.success=arguments[1]);var f=h("array",d)?a:c;d=h("array",d)?d.join(","):d;var g={screen_name:d},i=b.url(f,g);l(i,e)}}(),n.status=function(){var a="//cdn.api.twitter.com/1/statuses/show.json";return function(){var c,d={};arguments.length===1?(c=arguments[0].id,d=k(arguments[0])):(c=arguments[0],d.success=arguments[1]);if(!h("array",c)){var e={id:c,include_entities:!0},f=b.url(a,e);l(f,d)}else{var g=m(c,d,function(a){var b;return a.error?b=a.request.split("id=")[1].split("&")[0]:b=a.id_str,b});for(var i=0;i<c.length;i++){var e={id:c[i],include_entities:!0},f=b.url(a,e);l(f,{success:g,error:g})}}}}(),n.tweet=n.status,n.count=function(){var a="//cdn.api.twitter.com/1/urls/count.json";return function(){var c="",d={};arguments.length===1?(c=arguments[0].url,d=k(arguments[0])):arguments.length===2&&(c=arguments[0],d.success=arguments[1]);var e={url:c},f=b.url(a,e);l(f,d)}}(),n.friendshipExists=function(){var a="//cdn.api.twitter.com/1/friendships/exists.json";return function(c){var d=arguments[0],e=k(arguments[0]),f={screen_name_a:c.screenNameA,screen_name_b:c.screenNameB},g=b.url(a,f);l(g,e)}}(),a(n)})});provide("util/insert",function(a){a(function(a,b){if(b){if(!b.parentNode){return b}b.parentNode.replaceChild(a,b),delete b}else{document.body.insertBefore(a,document.body.firstChild)}return a})});provide("dom/textsize",function(a){function c(a,b,c){return a+b+c}var b={};a(function(a,d,e){var f=document.createElement("span"),g={},h;return e=e||"",d=d||"",h=c(a,d,e),b[h]?b[h]:(f.className=d+" twitter-measurement",f.setAttribute("style",e),f.innerHTML=a,document.body.appendChild(f),g.width=f.clientWidth||f.offsetWidth,g.height=f.clientHeight||f.offsetHeight,document.body.removeChild(f),delete f,b[h]=g)})});provide("tfw/widget/tweet",function(a){using("util/util","tfw/widget/base","util/querystring","util/uri","dom/textsize",function(b,c,d,e,f){var g=document.title,h=encodeURI(location.href),i=["vertical","horizontal","none"],j=function(a){this.originElement=a,this.id=this.generateId();var c=this.params(),d=c.count||this.dataAttr("count"),f=c.size||this.dataAttr("size"),j=e.getScreenNameFromPage();this.setLanguage(),~a.className.indexOf("twitter-hashtag-button")?this.type="hashtag":~a.className.indexOf("twitter-mention-button")&&(this.type="mention"),this.text=c.text||this.dataAttr("text"),this.align=c.align||this.dataAttr("align")||"",this.via=c.via||this.dataAttr("via"),this.related=c.related||this.dataAttr("related"),this.counturl=c.counturl||this.dataAttr("counturl"),this.searchlink=c.searchlink||this.dataAttr("searchlink"),this.placeid=c.placeid||this.dataAttr("placeid"),this.hashtags=c.hashtags||this.dataAttr("hashtags"),this.screen_name=c.screen_name||this.dataAttr("button-screen-name"),this.button_hashtag=c.button_hashtag||this.dataAttr("button-hashtag"),this.url=c.url||this.dataAttr("url"),this.size=f=="large"?"l":"m",this.dnt=c.dnt||this.dataAttr("dnt")||"",this.type?(this.count="none",j&&(this.related=this.related?j+","+this.related:j)):(this.text=this.text||g,this.url=this.url||e.getCanonicalURL()||h,this.count=~b.indexOf(i,d)?d:"horizontal",this.count=this.count=="vertical"&&this.size=="l"?"none":this.count,this.via=this.via||j)};j.prototype=new c.Base,b.aug(j.prototype,{parameters:function(){var a={text:this.text,url:this.url,via:this.via,related:this.related,count:this.count,lang:this.lang,counturl:this.counturl,searchlink:this.searchlink,placeid:this.placeid,original_referer:location.href,id:this.id,size:this.size,type:this.type,screen_name:this.screen_name,button_hashtag:this.button_hashtag,hashtags:this.hashtags,align:this.align,dnt:this.dnt,_:+(new Date)};return b.compact(a),d.encode(a)},height:function(){return this.count=="vertical"?62:this.size=="m"?20:28},width:function(){var a={ver:8,cnt:14,btn:24,xlcnt:18,xlbtn:38},c=this.count=="vertical",d=this.type=="hashtag"?"Tweet %{hashtag}":this.type=="mention"?"Tweet to %{name}":"Tweet",e=this._(d,{name:"@"+this.screen_name,hashtag:"#"+this.button_hashtag}),g=this._("K"),h=this._("100K+"),i=(c?"8888":"88888")+g,j=0,k=0,l=0,m=0,n=this.styles.base,o=n;return ~b.indexOf(["ja","ko"],this.lang)?i+=this._("10k unit"):i=i.length>h.length?i:h,c?(o=n+this.styles.vbubble,m=a.ver,l=a.btn):this.size=="l"?(n=o=n+this.styles.large,l=a.xlbtn,m=a.xlcnt):(l=a.btn,m=a.cnt),this.count!="none"&&(k=f(i,"",o).width+m),j=f(e,"",n+this.styles.button).width+l,c?j>k?j:k:this.calculatedWidth=j+k},render:function(a){var b=a.assetUrl()+"/widgets/tweet_button.1336551279.html#"+this.parameters();this.count&&(this.originElement.className+=" twitter-count-"+this.count),this.element=this.create(b,this.originElement.className,this.dimensions(),{title:this._("Twitter Tweet Button")})}}),a({Embeddable:j})})});provide("tfw/widget/tweetembed",function(a){using("util/util","tfw/widget/base","tfw/widget/tweet","util/uri","util/insert","tfw/data","i18n/i18n","util/params","util/tweetparser","tfw/widget/tracking",function(b,c,d,e,f,g,h,i,j,k){function r(a){var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.href=twttr.widgets.config.assetUrl()+"/"+a,document.getElementsByTagName("head")[0].appendChild(b)}function s(){if(n){return}r("embed/embed.css"),n=!0}function t(a,b){var c={};c.status_id=a.id_str,c.context=p,k.addVar(c,"variant",l),k.addVar(c,"referrer",document.location.href),k.addPixel(document.body,c,"tweetembed",!0),b&&a._wjs_reply&&(c.status_id=a._wjs_reply.id_str,c.context=q,k.addPixel(document.body,c,"tweetembed",!0))}var l="1.0",m=i.fromQuery(document.location),n,o=/^([0-9]+)( ?px)?$/,p="subject",q="thread",u=function(a){var c,d,e=a.getAttribute("width")||"";this.originElement=a,this.id=this.generateId(),c=this.params(),this.setLanguage(),this.related=c.related||a.getAttribute("data-related"),this.partner=c.partner||a.getAttribute("data-partner"),this.classNames=b.filter(a.className.split(" "),function(a){return a!="twitter-tweet"}),this.classNames.push(["twitter-tweet-rendered"]),this.styleAttr=[],this.styleAttr.push(a.getAttribute("style")||""),o.test(e)?this.explicitWidth=RegExp.$1:a.className.match(/(?:\b|^)tw-align-[lr]/i)&&(this.explicitWidth="350"),this.explicitWidth&&this.styleAttr.push("width:"+this.explicitWidth+"px!important"),this.showThread=!~b.indexOf(this.classNames,"tw-hide-thread"),this.showMedia=!~b.indexOf(this.classNames,"tw-hide-media"),this.data=j.parseTweet(this.originElement),this.inReplyTo=a.getAttribute("data-in-reply-to")||""};u.prototype=new c.Base,b.aug(u.prototype,{create:function(a,b){var c=this,d,e=!!a._wjs_stub_data;return !e&&t(a,c.showThread),using("lib/twt",function(g){g(c.lang,function(g){var h=document.createElement("div"),i=g.autoFormat(c.explicitWidth||c.element),j=g(a,{format:i,popupWebIntents:!1,tweetElement:"blockquote",showMedia:c.showMedia,showErrors:!1,showFollowButton:!e,renderActions:!e,product:"tweetembed",partner:c.partner,related:c.related}),k='<div id="{{id}}" class="{{classNames}}" lang="{{lang}}" style="{{style}}">{{twt}}</div>',l={id:c.id,classNames:b||"",style:c.styleAttr.join(";"),lang:c.lang,twt:c.data._wjs_reply?j.inReplyTo(a._wjs_reply).html():j.html()};h.innerHTML=c.ringo(k,l),d=f(h.firstChild,c.element)})}),d},render:function(a){var b=this,c,d;if(!b.data){return}s(),using("lib/twt",function(a){a(b.lang,function(){c=b.classNames.join(" "),b.data._wjs_stub_data=!0,b.element=b.originElement,b.element=b.create(b.data,c),d=[b.data.id_str],b.inReplyTo&&b.showThread&&d.push(b.inReplyTo),g.status({id:d,complete:function(a){var d=a[0],e=a[1];if(d.error){return}b.data=d;if(b.showThread&&d.in_reply_to_status_id_str&&(!e||d.in_reply_to_status_id_str!=e.id_str)){g.status({id:d.in_reply_to_status_id_str,complete:function(a){a&&!a.error&&(b.data._wjs_reply=a),b.element=b.create(b.data,c)}});return}d.in_reply_to_status_id_str&&e&&!e.error&&(b.data._wjs_reply=e),b.element=b.create(b.data,c)}})})})}}),a({Embeddable:u})})});provide("tfw/widget/follow",function(a){using("util/util","tfw/widget/base","util/querystring","util/uri","dom/textsize",function(b,c,d,e,f){var g=function(a){this.originElement=a;var b=this.params(),c=b.size||this.dataAttr("size"),d=b.show_screen_name||this.dataAttr("show-screen-name"),e=b.show_count||this.dataAttr("show-count");this.id=this.generateId(),this.setLanguage(),this.showScreenName=d!="false",this.showCount=e!="false",this.explicitWidth=b.width||this.dataAttr("width")||"",this.screenName=this.screenNameFromHref(),this.preview=b.preview||this.dataAttr("preview")||"",this.align=b.align||this.dataAttr("align")||"",this.dnt=b.dnt||this.dataAttr("dnt")||"",this.size=c=="large"?"l":"m"};g.prototype=new c.Base,b.aug(g.prototype,{parameters:function(){var a={screen_name:this.screenName,lang:this.lang,show_count:this.showCount,show_screen_name:this.showScreenName,align:this.align,id:this.id,preview:this.preview,size:this.size,dnt:this.dnt,_:+(new Date)};return b.compact(a),d.encode(a)},screenNameFromHref:function(){var a=this.originElement.href;return c.TWITTER_PROFILE_URL.test(a),RegExp.$1},render:function(a){if(!this.screenName){return}var b=a.assetUrl()+"/widgets/follow_button.1336551279.html#"+this.parameters();this.element=this.create(b,"twitter-follow-button",this.dimensions(),{title:this._("Twitter Follow Button")})},width:function(){if(this.calculatedWidth){return this.calculatedWidth}if(this.explicitWidth){return this.explicitWidth}var a={cnt:13,btn:24,xlcnt:22,xlbtn:38},c=this.showScreenName?"Follow %{screen_name}":"Follow",d=this._(c,{screen_name:"@"+this.screenName}),e=~b.indexOf(["ja","ko"],this.lang)?this._("10k unit"):this._("M"),g=this._("%{followers_count} followers",{followers_count:"88888"+e}),h=0,i=0,j=this.styles.base;return this.size=="l"?(j+=this.styles.large,buttonPadding=a.xlbtn,countPadding=a.xlcnt):(buttonPadding=a.btn,countPadding=a.cnt),this.showCount&&(i=f(g,"",j).width+countPadding),h=f(d,"",j+this.styles.button).width+buttonPadding,this.calculatedWidth=h+i}}),a({Embeddable:g})})});!function(){function a(a){return(window.location.protocol.match(/s\:$/)||a)&&!twttr.ignoreSSL?"https":"http"}window.twttr=window.twttr||{},twttr.host=twttr.host||"platform.twitter.com";if(twttr.widgets){return twttr.widgets.loaded&&twttr.widgets.load(),!1}if(twttr.init){return !1}twttr.init=!0,!function(){twttr._e=twttr._e||[],twttr.ready=twttr.ready||function(a){twttr.widgets&&twttr.widgets.loaded?a(twttr):twttr._e.push(a)}}(),using.path.length||(using.path="//"+twttr.host+"/js"),twttr.ignoreSSL=twttr.ignoreSSL||!1;var b=[];twttr.events={bind:function(a,c){return b.push([a,c])}},using("util/domready",function(c){c(function(){using("util/util","tfw/widget/follow","tfw/widget/tweet","tfw/widget/tweetembed","tfw/widget/intent","util/events","tfw/widget/base",function(c,d,e,f,g,h,i){function l(){using("tfw/widget/hubclient",function(a){twttr.events.hub=a.init(j),a.init(j,!0)})}var j={widgets:{"a.twitter-share-button":e.Embeddable,"a.twitter-mention-button":e.Embeddable,"a.twitter-hashtag-button":e.Embeddable,"a.twitter-follow-button":d.Embeddable,"blockquote.twitter-tweet":f.Embeddable,body:g.Listener}},k=twttr.events&&twttr.events.hub?twttr.events:{};twttr.events=c.aug(k,h.Emitter),j.assetUrl=function(b){var c=twttr.host;return a(b)==="https"&&twttr.secureHost&&(c=twttr.secureHost),a(b)+"://"+c},twttr.events.oldbind=twttr.events.bind,twttr.events.bind=function(a,b){l(),this.bind=this.oldbind,this.bind(a,b)};for(var m=0,n;n=b[m];m++){twttr.events.bind(n[0],n[1])}for(m=0;n=twttr._e[m];m++){n(twttr)}twttr.ready=function(a){a(twttr)},twttr.widgets={load:function(){i.init(j),i.embed(),twttr.widgets.loaded=!0},config:j},twttr.widgets.load()})})})}()});var FB;if(!FB){FB={};(function(){function bagofholding(){}var __DEV__=0;function __d(){FB.__d.apply(FB,arguments)}function require(){return FB.require.apply(null,arguments)}var ES5=function(){__d("ES5ArrayPrototype",[],function(a,b,c,d,e,f){var g={};g.map=function(h,i){if(typeof h!="function"){throw new TypeError()}var j,k=this.length,l=new Array(k);for(j=0;j<k;++j){if(j in this){l[j]=h.call(i,this[j],j,this)}}return l};g.forEach=function(h,i){g.map.call(this,h,i)};g.filter=function(h,i){if(typeof h!="function"){throw new TypeError()}var j,k,l=this.length,m=[];for(j=0;j<l;++j){if(j in this){k=this[j];if(h.call(i,k,j,this)){m.push(k)}}}return m};g.every=function(h,i){if(typeof h!="function"){throw new TypeError()}var j=new Object(this),k=j.length;for(var l=0;l<k;l++){if(l in j){if(!h.call(i,j[l],l,j)){return false}}}return true};g.some=function(h,i){if(typeof h!="function"){throw new TypeError()}var j=new Object(this),k=j.length;for(var l=0;l<k;l++){if(l in j){if(h.call(i,j[l],l,j)){return true}}}return false};g.indexOf=function(h,i){var j=this.length;i|=0;if(i<0){i+=j}for(;i<j;i++){if(i in this&&this[i]===h){return i}}return -1};e.exports=g});__d("ES5FunctionPrototype",[],function(a,b,c,d,e,f){var g={};g.bind=function(h){if(typeof this!="function"){throw new TypeError("Bind must be called on a function")}var i=this,j=Array.prototype.slice.call(arguments,1);function k(){return i.apply(h,j.concat(Array.prototype.slice.call(arguments)))}k.displayName="bound:"+(i.displayName||i.name||"(?)");k.toString=function l(){return"bound: "+i};return k};e.exports=g});__d("ES5StringPrototype",[],function(a,b,c,d,e,f){var g={};g.trim=function(){if(this==null){throw new TypeError("String.prototype.trim called on null or undefined")}return String.prototype.replace.call(this,/^\s+|\s+$/g,"")};e.exports=g});__d("ES5Array",[],function(a,b,c,d,e,f){var g={};g.isArray=function(h){return Object.prototype.toString.call(h)=="[object Array]"};e.exports=g});__d("ES5Object",[],function(a,b,c,d,e,f){var g={};g.create=function(h){var i=typeof h;if(i!="object"&&i!="function"){throw new TypeError("Object prototype may only be a Object or null")}var j=new Function();j.prototype=h;return new j()};g.keys=function(h){var i=typeof h;if(i!="object"&&i!="function"||h===null){throw new TypeError("Object.keys called on non-object")}var j=[];for(var k in h){if(Object.prototype.hasOwnProperty.call(h,k)){j.push(k)}}var l=!({toString:true}).propertyIsEnumerable("toString"),m=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","prototypeIsEnumerable","constructor"];if(l){for(var n=0;n<m.length;n++){var o=m[n];if(Object.prototype.hasOwnProperty.call(h,o)){j.push(o)}}}return j};e.exports=g});__d("ES5Date",[],function(a,b,c,d,e,f){var g={};g.now=function(){return new Date().getTime()};e.exports=g});__d("JSON3",[],function(a,b,c,d,e,f){var g={}.toString,h={}.hasOwnProperty,i,j,k;j=typeof f.stringify=="function";k=typeof f.parse=="function";(function(){var l='{"result":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}',m,n,o;if(j){m=function q(){return 1};m.toJSON=m;try{switch(false){case f.stringify(0)==="0":case f.stringify(new (0).constructor())==="0":case f.stringify(new "".constructor())=='""':case f.stringify(g)===void 0:case f.stringify(void 0)===void 0:case f.stringify()===void 0:case f.stringify(m)==="1":case f.stringify([m])=="[1]":case f.stringify([void 0])=="[null]":case f.stringify(null)=="null":case f.stringify([void 0,g,null])=="[null,null,null]":case f.stringify({result:[m,true,false,null,"\0\b\n\f\r\t"]})==l:case f.stringify(null,m)==="1":case f.stringify([1,2],null,1)=="[\n 1,\n 2\n]":case (m=new Date(-8640000000000000)).getUTCFullYear()!=-271821||f.stringify(m)=='"-271821-04-20T00:00:00.000Z"':case (m=new Date(8640000000000000)).getUTCFullYear()!=275760||f.stringify(m)=='"+275760-09-13T00:00:00.000Z"':j=false}}catch(p){j=false}}if(k){try{if(f.parse("0")===0&&!f.parse(false)){o=f.parse(l);if((k=o.result.length==5&&o.result[0]==1)){try{k=!f.parse('"\t"')}catch(p){}if(k){try{k=f.parse("+1")!=1&&f.parse("01")!=1}catch(p){}}}}}catch(p){k=false}}})();if(typeof h!="function"){h=(function(){var l,m={},n=m.constructor;if((m.__proto__=null,m.__proto__={toString:1},m).toString!=g){l=function o(p){var q=this.__proto__,r=p in (this.__proto__=null,this);this.__proto__=q;return r}}else{l=function o(p){var q=(this.constructor||n).prototype;return p in this&&!(p in q&&this[p]===q[p])}}m=null;return l})()}i=(function(){var l,m,n,o=0;function p(){this.valueOf=0}p.prototype.valueOf=0;l=new p();for(m in l){if(h.call(l,m)){o+=1}}l=null;if(!o){l=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];n=function q(r,s){var t=g.call(r)=="[object Function]",u,v;for(u in r){if(!(t&&u=="prototype")&&h.call(r,u)){s(u)}}for(v=l.length;v--;){u=l[v];if(h.call(r,u)){s(u)}}}}else{if(o==2){n=function q(r,s){var t={},u=g.call(r)=="[object Function]",v;for(v in r){if(!(u&&v=="prototype")&&!h.call(t,v)&&(t[v]=1)&&h.call(r,v)){s(v)}}}}else{n=function q(r,s){var t=g.call(r)=="[object Function]",u,v;for(u in r){if(!(t&&u=="prototype")&&h.call(r,u)&&!(v=u==="constructor")){s(u)}}if(v||h.call(r,"constructor")){s("constructor")}}}}return n})();if(!j){f.stringify=(function(){var l={"\\":"\\\\",'"':'\\"',"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};function m(q,r){r="000000"+(r||0);return r.slice(r.length-q)}function n(q){var r='"',s=0,t;for(;t=q.charAt(s);s+=1){r+='\\"\b\f\n\r\t'.indexOf(t)>-1?l[t]:t<" "?"\\u00"+m(2,t.charCodeAt(0).toString(16)):t}return r+'"'}function o(q,r,s,t,u,v,w){var x=r[q],y,z,aa,ba,ca,da,ea,fa;if(typeof x=="object"&&x){if(g.call(x)=="[object Date]"&&!h.call(x,"toJSON")){if(x>-1/0&&x<1/0){z=x.getUTCFullYear();x=(z<=0||z>=10000?(z<0?"-":"+")+m(6,z<0?-z:z):m(4,z))+"-"+m(2,x.getUTCMonth()+1)+"-"+m(2,x.getUTCDate())+"T"+m(2,x.getUTCHours())+":"+m(2,x.getUTCMinutes())+":"+m(2,x.getUTCSeconds())+"."+m(3,x.getUTCMilliseconds())+"Z"}else{x=null}}else{if(typeof x.toJSON=="function"){x=x.toJSON(q)}}}if(s){x=s.call(r,q,x)}if(x===null){return"null"}y=g.call(x);switch(y){case"[object Boolean]":return""+x;case"[object Number]":return x>-1/0&&x<1/0?""+x:"null";case"[object String]":return n(x)}if(typeof x=="object"){for(da=w.length;da--;){if(w[da]==x){throw TypeError("Cyclic structures cannot be serialized.")}}w.push(x);aa=[];ea=v;v+=u;if(y=="[object Array]"){for(ca=0,da=x.length;ca<da;fa||(fa=true),ca++){ba=o(ca,x,s,t,u,v,w);aa.push(ba===void 0?"null":ba)}return fa?(u?"[\n"+v+aa.join(",\n"+v)+"\n"+ea+"]":("["+aa.join(",")+"]")):"[]"}else{i(t||x,function(ga){var ha=o(ga,x,s,t,u,v,w);if(ha!==void 0){aa.push(n(ga)+":"+(u?" ":"")+ha)}fa||(fa=true)});return fa?(u?"{\n"+v+aa.join(",\n"+v)+"\n"+ea+"}":("{"+aa.join(",")+"}")):"{}"}w.pop()}}function p(q,r,s){var t="",u,v,w,x;if(typeof r=="function"||typeof r=="object"&&r){if(g.call(r)=="[object Function]"){u=r}else{if(g.call(r)=="[object Array]"){v={};for(w=r.length;w--;){x=r[w];if(x&&(g.call(x)=="[object String]"||g.call(x)=="[object Number]")){v[x]=1}}}}}if(s!=null&&s!==""){if(g.call(s)=="[object Number]"){if((s-=s%1)>0){for(t="",s>10&&(s=10);t.length<s;){t+=" "}}}else{if(g.call(s)=="[object String]"){t=s.length<=10?s:s.slice(0,10)}}}return o("$",{$:q},u,v,t,"",[])}return p})()}if(!k){f.parse=(function(){var l={"\\":"\\",'"':'"',"/":"/",b:"\b",t:"\t",n:"\n",f:"\f",r:"\r"},m="".constructor.fromCharCode;function n(s){this.source=s;this.index=0}n.prototype.lex=o;function o(){for(var s=this.source,t=this.source.length,u,v,w,x,y;this.index<t;){u=s.charAt(this.index);switch(u){case"\t":case"\r":case"\n":case" ":this.index+=1;break;case"{":case"}":case"[":case"]":case":":case",":this.index+=1;return u;case'"':v="@";this.index+=1;while(this.index<t){u=s.charAt(this.index);if(u<" "){throw SyntaxError("Unescaped control character in string.")}else{if(u=="\\"){this.index+=1;u=s.charAt(this.index);if('\\"/btnfr'.indexOf(u)>-1){v+=l[u];this.index+=1}else{if(u=="u"){w=this.index+=1;for(x=this.index+4;this.index<x;this.index+=1){u=s.charAt(this.index);if(!(u>="0"&&u<="9"||u>="a"&&u<="f"||u>="A"&&u<="F")){throw SyntaxError("Invalid Unicode escape sequence in string.")}}v+=m("0x"+s.slice(w,this.index))}else{throw SyntaxError("Invalid escape sequence in string.")}}}else{if(u=='"'){break}v+=u;this.index+=1}}}if(s.charAt(this.index)=='"'){this.index+=1;return v}throw SyntaxError("Unterminated string.");default:w=this.index;if(u=="-"){y=true;u=s.charAt(this.index+=1)}if(u>="0"&&u<="9"){if(u=="0"&&(u=s.charAt(this.index+1),u>="0"&&u<="9")){throw SyntaxError("Illegal octal literal.")}y=false;for(;this.index<t&&(u=s.charAt(this.index),u>="0"&&u<="9");this.index+=1){}if(s.charAt(this.index)=="."){x=this.index+=1;for(;x<t&&(u=s.charAt(x),u>="0"&&u<="9");x+=1){}if(x==this.index){throw SyntaxError("Illegal trailing decimal.")}this.index=x}u=s.charAt(this.index);if(u=="e"||u=="E"){u=s.charAt(this.index+=1);if(u=="+"||u=="-"){this.index+=1}for(x=this.index;x<t&&(u=s.charAt(x),u>="0"&&u<="9");x+=1){}if(x==this.index){throw SyntaxError("Illegal empty exponent.")}this.index=x}return +s.slice(w,this.index)}if(y){throw SyntaxError("Unexpected `-`.")}if(u=="t"&&s.slice(this.index,this.index+4)=="true"){this.index+=4;return true}else{if(u=="f"&&s.slice(this.index,this.index+5)=="false"){this.index+=5;return false}else{if(u=="n"&&s.slice(this.index,this.index+4)=="null"){this.index+=4;return null}}}throw SyntaxError("Unrecognized token.")}}return"$"}n.prototype.get=p;function p(s){var t,u,v;if(s=="$"){throw SyntaxError("Unexpected end-of-file.")}if(typeof s=="string"){if(s.charAt(0)=="@"){return s.slice(1)}switch(s){case"[":t=[];for(;;u||(u=true)){s=this.lex();if(s=="]"){break}if(u){if(s==","){s=this.lex();if(s=="]"){throw SyntaxError("Unexpected trailing `,` in array literal.")}}else{throw SyntaxError("A comma (`,`) must separate the previous array element from the next.")}}if(s==","){throw SyntaxError("Unexpected `,` in array literal.")}t.push(this.get(s))}return t;case"{":t={};for(;;u||(u=true)){s=this.lex();if(s=="}"){break}if(u){if(s==","){s=this.lex();if(s=="}"){throw SyntaxError("Unexpected trailing `,`. in object literal.")}}else{throw SyntaxError("A comma (`,`) must separate the previous object member from the next.")}}if(s==","){throw SyntaxError("Unexpected `,` in object literal.")}if(typeof s!="string"||s.charAt(0)!="@"){throw SyntaxError("Object property names must be double-quoted strings.")}if(this.lex()!=":"){throw SyntaxError("A single colon (`:`) must separate each object property name from the value.")}t[s.slice(1)]=this.get(this.lex())}return t}throw SyntaxError("Expected `[` or `{`.")}return s}function q(s,t,u){var v=s[t],w,x;if(typeof v=="object"&&v){if(g.call(v)=="[object Array]"){for(w=v.length;w--;){x=q(v,w,u);if(x===void 0){v.splice(w,1)}else{v[w]=x}}}else{i(v,function(y){var z=q(v,y,u);if(z===void 0){delete v[y]}else{v[y]=z}})}}return u.call(s,t,v)}function r(s,t){var u=new n(""+s),v=u.get(u.lex());if(u.lex()!="$"){throw SyntaxError("Expected end-of-file.")}return t&&g.call(t)=="[object Function]"?q({$:v},"$",t):v}return r})()}e.exports=f});__d("ES5",["ES5ArrayPrototype","ES5FunctionPrototype","ES5StringPrototype","ES5Array","ES5Object","ES5Date","JSON3"],function(a,b,c,d,e,f){var g=b("ES5ArrayPrototype"),h=b("ES5FunctionPrototype"),i=b("ES5StringPrototype"),j=b("ES5Array"),k=b("ES5Object"),l=b("ES5Date"),m=b("JSON3"),n=Array.prototype.slice,o=Object.prototype.toString,p={},q={array:g,"function":h,string:i,Object:k,Array:j,Date:l,JSON:m};for(var r in q){if(!q.hasOwnProperty(r)){continue}var s=q[r],t=r===r.toLowerCase()?window[r.replace(/^\w/,function(x){return x.toUpperCase()})].prototype:window[r];for(var u in s){if(!s.hasOwnProperty(u)){continue}if(!t){p[r+"."+u]=s[u];continue}var v=t[u];p[r+"."+u]=v&&/\{\s+\[native code\]\s\}/.test(v)?v:s[u]}}function w(x,y,z){var aa=n.call(arguments,3),ba=z?/\s(.*)\]/.exec(o.call(x).toLowerCase())[1]:x,ca=p[ba+"."+y]||x[y];if(typeof ca==="function"){return ca.apply(x,aa)}}e.exports=w});ES5=require("ES5");return ES5.apply(null,arguments)};(function(a){if(a.require){return}var b={},c={},d={},e=0,f=1,g=2,h="special",i="refcount",j="exports",k="dependencies",l="module",m="waiting",n="factory",o=undefined,p="define",q="global",r="require",s="requireLazy",t="requireDynamic",u="context",v=Object.prototype.hasOwnProperty;function w(ha){if(!b[ha]){var ia='Requiring unknown module "'+ha+'"';throw new Error(ia)}var ja=b[ha],ka,la,ma;if(ja[m]&&ja[h]&g){z()}if(ja[m]){ma='Requiring module "'+ha+'" with unresolved dependencies';throw new Error(ma)}if(!ja[j]){var na=ja[j]={},oa=ja[n];if(Object.prototype.toString.call(oa)==="[object Function]"){var pa=[],qa=ja[k],ra=qa.length;if(ja[h]&g){ra=Math.min(ra,oa.length)}for(la=0;la<ra;la++){ka=qa[la];pa.push(ka===l?ja:(ka===j?na:w(ka)))}var sa=oa.apply(ja[u]||a,pa);if(sa){ja[j]=sa}}else{ja[j]=oa}}if(ja[i]--===1){delete b[ha]}return ja[j]}function x(ha,ia,ja,ka,la,ma){if(ia===o){ia=[];ja=ha;ha=ba()}else{if(ja===o){ja=ia;ia=ha;ha=ba()}}var na=b[ha];if(na){if(ma){na[i]+=ma}return}else{if(!ia&&!ja&&ma){d[ha]=(d[ha]||0)+ma;return}else{na={id:ha};na[i]=(d[ha]||0)+(ma||0);delete d[ha]}}na[n]=ja;na[k]=ia;na[u]=la;na[h]=ka;b[ha]=na;ca(ha)}function y(ha,ia,ja){x(ha,ia,o,f,ja,1)}function z(){var ha={},ia;for(ia in c){if(v.call(c,ia)){if(b[ia]&&!ha[ia]&&b[ia][h]&g){aa({},ia,ha)}}}}function aa(ha,ia,ja){ja[ia]=1;var ka=c[ia],la;if(!ka){return}ha[ia]=1;for(la in ka){if(v.call(ka,la)){if(!b[la][h]&g){continue}if(ha[la]){delete ka[la];b[la][m]--;if(!b[la][m]){da(la)}}else{aa(ha,la,ja)}}}ha[ia]=0}function ba(){return"__mod__"+e++}function ca(ha){var ia=b[ha],ja=0;for(var ka=0;ka<ia[k].length;ka++){var la=ia[k][ka];if(!b[la]||b[la][m]){c[la]||(c[la]={});if(!c[la][ha]){ja++}c[la][ha]=1}}ia[m]=ja;if(!ja){da(ha)}}function da(ha){var ia=b[ha];if(ia[h]&f){w(ha)}var ja=c[ha];if(ja){delete c[ha];for(var ka in ja){if(v.call(ja,ka)){if(!--b[ka][m]){da(ka)}}}}}function ea(ha,ia){b[ha]={id:ha};b[ha][j]=ia}ea(l,0);ea(j,0);ea(p,x);ea(q,a);ea(r,w);ea(t,w);ea(s,y);x.amd={};a[p]=x;a[r]=w;a[t]=w;a[s]=y;w.__debug={modules:b,deps:c};var fa=false,ga=function(ha,ia,ja,ka){x(ha,ia,ja,ka||g);if(b[ha][m]&&!fa){fa=setTimeout(function(){z();fa=false},9)}};a.__d=function(ha,ia,ja,ka){ia=[q,r,t,s,l,j].concat(ia);ga(ha,ia,ja,ka)};a.__e=a.__d})(this);if(window.FB&&!window.FB.copy){(function(){var a=/iframe_canvas|app_runner|dialog/.test(window.name);function b(c,d,e,f){for(var g in d){if(e||typeof c[g]==="undefined"){c[g]=f?f(d[g]):d[g]}}return c}b(window.FB,{_apiKey:null,_authResponse:null,_userStatus:"unknown",_logging:true,_inCanvas:a,_https:(function(){if(location.protocol=="https:"&&(window==top||!a)){return true}if(/_fb_https?/.test(window.name)){return ES5(window.name,"indexOf",true,"_fb_https")!=-1}})(),onlyUseHttps:function(){return FB._https===true},onlyUseHttp:function(){return FB._https===false&&location.protocol=="http:"},_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(c,d){var e=!d&&(window.location.protocol=="https:"||FB._https);switch(c){case"api":return FB._domain.api;case"api_read":return FB._domain.api_read;case"cdn":return e?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 e?FB._domain.https_staticfb:FB._domain.staticfb;case"https_staticfb":return FB._domain.https_staticfb;case"www":return e?FB._domain.https_www:FB._domain.www;case"https_www":return FB._domain.https_www;case"m":return e?FB._domain.https_m:FB._domain.m;case"https_m":return FB._domain.https_m}},copy:b,create:function(c,d){var e=window.FB,f=c?c.split("."):[],g=f.length;for(var h=0;h<g;h++){var i=f[h],j=e[i];if(!j){j=(d&&h+1==g)?d:{};e[i]=j}e=j}return e},provide:function(c,d,e){return FB.copy(typeof c=="string"?FB.create(c):c,d,e)},guid:function(){return"f"+(Math.random()*(1<<30)).toString(16).replace(".","")},log:function(c){if(FB._logging){if(window.Debug&&window.Debug.writeln){window.Debug.writeln(c)}else{if(window.console){window.console.log(c)}}}if(FB.Event){FB.Event.fire("fb.log",c)}},$:function(c){return document.getElementById(c)}})})()}FB.provide("Array",{merge:function(a,b){for(var c=0;c<b.length;c++){if(ES5(a,"indexOf",true,b[c])<0){a.push(b[c])}}return a},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){ES5(a,"forEach",true,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=[];ES5(FB.Array,"forEach",true,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}});__d("copyProperties",[],function(a,b,c,d,e,f){function g(h,i){h=h||{};i=i||{};for(var j in i){h[j]=i[j]}if(i.hasOwnProperty&&i.hasOwnProperty("toString")&&(typeof i.toString!="undefined")&&(h.toString!==i.toString)){h.toString=i.toString}return h}e.exports=g});__d("FB",[],function(a,b,c,d,e,f){var g=window.FB;e.exports=g});__d("UserAgent",[],function(a,b,c,d,e,f){var g=false,h,i,j,k,l,m,n,o,p,q,r,s,t,u;function v(){if(g){return}g=true;var x=navigator.userAgent,y=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))/.exec(x),z=/(Mac OS X)|(Windows)|(Linux)/.exec(x);r=/\b(iPhone|iP[ao]d)/.exec(x);s=/\b(iP[ao]d)/.exec(x);p=/Android/i.exec(x);t=/FBAN\/\w+;/i.exec(x);u=/Mobile/i.exec(x);q=!!(/Win64/.exec(x));if(y){h=y[1]?parseFloat(y[1]):NaN;if(h&&document.documentMode){h=document.documentMode}i=y[2]?parseFloat(y[2]):NaN;j=y[3]?parseFloat(y[3]):NaN;k=y[4]?parseFloat(y[4]):NaN;if(k){y=/(?:Chrome\/(\d+\.\d+))/.exec(x);l=y&&y[1]?parseFloat(y[1]):NaN}else{l=NaN}}else{h=i=j=l=k=NaN}if(z){if(z[1]){var aa=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(x);m=aa?parseFloat(aa[1].replace("_",".")):true}else{m=false}n=!!z[2];o=!!z[3]}else{m=n=o=false}}var w={ie:function(){return v()||h},ie64:function(){return w.ie()&&q},firefox:function(){return v()||i},opera:function(){return v()||j},safari:function(){return v()||k},chrome:function(){return v()||l},windows:function(){return v()||n},osx:function(){return v()||m},linux:function(){return v()||o},iphone:function(){return v()||r},mobile:function(){return v()||(r||s||p||u)},nativeApp:function(){return v()||t},android:function(){return v()||p},ipad:function(){return v()||s}};e.exports=w});__d("legacy:fb.ua",["copyProperties","FB","UserAgent"],function(a,b,c,d){var e=b("copyProperties"),f=b("FB"),g=b("UserAgent"),h=e({},g);h.mobile=function(){return !f._inCanvas&&g.mobile()};f.provide("UA",h)},3);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, auto-creating');FB.Content._root=b=document.createElement("div");b.id="fb-root";if(FB.UA.ie()||!document.body){FB.Dom.ready(function(){document.body.appendChild(b)})}else{document.body.appendChild(b)}}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);ES5(FB.Array,"forEach",true,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(){ES5(FB.Array,"forEach",true,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(){try{if(typeof FB.Flash._hasMinVersion==="undefined"){var b,c,d,e=[];try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(f){if(navigator.mimeTypes.length>0){var g="application/x-shockwave-flash";if(navigator.mimeTypes[g]&&navigator.mimeTypes[g].enabledPlugin){var h="Shockwave Flash";b=(navigator.plugins[h+" 2.0"]||navigator.plugins[h]).description}}}if(b){var i=b.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",");for(c=0,d=i.length;c<d;c++){e.push(parseInt(i[c],10))}}FB.Flash._hasMinVersion=false;majorVersion:for(c=0,d=FB.Flash._minVersions.length;c<d;c++){var j=FB.Flash._minVersions[c];if(j[0]!=e[0]){continue}for(var k=1,l=j.length,m=e.length;(k<l&&k<m);k++){if(e[k]<j[k]){FB.Flash._hasMinVersion=false;continue majorVersion}else{FB.Flash._hasMinVersion=true;if(e[k]>j[k]){break majorVersion}}}}}}catch(a){FB.Flash._hasMinVersion=false}return FB.Flash._hasMinVersion},onReady:function(a){FB.Flash.init();if(FB.Flash._ready){window.setTimeout(a,0)}else{FB.Flash._callbacks.push(a)}}});FB.provide("JSON",{stringify:function(a){return ES5("JSON","stringify",false,a)},parse:function(a){return ES5("JSON","parse",false,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]=ES5("JSON","stringify",false,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(ES5(FB.ApiServer.METHODS,"indexOf",true,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){if(i.error=="invalid_token"||i.error_code=="190"||(i.error&&i.error.type=="OAuthException"&&i.error.code==190)){FB.getLoginStatus(null,true)}}f&&f(i)};d=FB.JSON.flatten(d);try{FB.ApiServer.jsonp(a,b,c,d,e);return}catch(g){}try{if(FB.ApiServer.corsPost(a,b,c,d,e)){return}}catch(h){}if(FB.Flash.hasMinVersion()){FB.ApiServer.flash(a,b,c,d,e);return}e({error:"no-transport"})},corsPost:function(a,b,c,d,e){var f=FB.getDomain(a)+b;d=FB.copy({},d);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){if(e){i.onload=function(j){e(ES5("JSON","parse",false,j.responseText))};i.onerror=function(j){var k;try{k=ES5("JSON","parse",false,j.responseText)}catch(l){}if(!k||!k.error){k={error:"load-error: status "+j.status,raw:j.responseText}}e(k)}}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{return null}}var e={send:function(f){d.send(f)}};d.onload=function(){d.onload=Function.prototype;if("onload" in e){e.onload(d)}};d.onerror=function(){d.onerror=Function.prototype;if("onerror" in e){e.onerror(d)}};d.onreadystatechange=function(){if(d.readyState==4){if(d.status==200){d.onload()}else{d.onerror()}}};return e},jsonp:function(a,b,c,d,e){var f=FB.guid(),g=document.getElementsByTagName("script")[0],h=document.createElement("script");d=FB.copy({},d);if(a==="graph"&&c!=="get"){d.method=c}d.callback="FB.ApiServer._callbacks."+f;var i=(FB.getDomain(a)+b+(ES5(b,"indexOf",true,"?")>-1?"&":"?")+FB.QS.encode(d));if(i.length>2000){throw new Error("JSONP only support a maximum of 2000 bytes of input.")}FB.ApiServer._callbacks[f]=function(k){e&&e(k);delete FB.ApiServer._callbacks[f];h.parentNode.removeChild(h)};h.onerror=function(){if(f in FB.ApiServer._callbacks){FB.ApiServer._callbacks[f]({error:"load-error: unknown"})}};var j=function(){setTimeout(function(){if(f in FB.ApiServer._callbacks){h.onerror()}},0)};if(h.addEventListener){h.addEventListener("load",j,false)}else{h.onreadystatechange=function(){if(/loaded|complete/.test(this.readyState)){j()}}}h.src=i;g.parentNode.insertBefore(h,g)},flash:function(a,b,c,d,e){if(!window.FB_OnXdHttpResult){window.FB_OnXdHttpResult=function(f,g){FB.ApiServer._callbacks[f](decodeURIComponent(g))}}d=FB.copy({},d);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+=(ES5(f,"indexOf",true,"?")>-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(ES5("JSON","parse",false,i));delete FB.ApiServer._callbacks[h]}})}});__d("flattenObject",[],function(a,b,c,d,e,f){function g(h){var i={};for(var j in h){if(h.hasOwnProperty(j)){var k=h[j];if(null===k||undefined===k){continue}else{if(typeof k=="string"){i[j]=k}else{i[j]=ES5("JSON","stringify",false,k)}}}}return i}e.exports=g});__d("sprintf",[],function(a,b,c,d,e,f){function g(h,i){i=Array.prototype.slice.call(arguments,1);var j=0;return h.replace(/%s/g,function(k){return i[j++]})}e.exports=g});__d("QueryString",[],function(a,b,c,d,e,f){var g={encode:function(h){var i=[];ES5(ES5("Object","keys",false,h),"forEach",true,function(j){var k=h[j];if(typeof k==="undefined"){return}if(k===null){i.push(j);return}i.push(encodeURIComponent(j)+"="+encodeURIComponent(k))});return i.join("&")},decode:function(h){var i={};if(h===""){return i}var j=h.split("&"),k=j.length;while(k--){var l=j[k].split("=",2);i[decodeURIComponent(l[0])]=l.length===2?decodeURIComponent(l[1]):null}return i},appendToUrl:function(h,i){return h+(~ES5(h,"indexOf",true,"?")?"&":"?")+(typeof i==="string"?i:g.encode(i))}};e.exports=g});__d("CORSRequest",["QueryString"],function(a,b,c,d,e,f){var g=b("QueryString");function h(k,l){if(!window.XMLHttpRequest){return null}var m=new XMLHttpRequest();if("withCredentials" in m){m.open(k,l,true);m.setRequestHeader("Content-type","application/x-www-form-urlencoded")}else{if(window.XDomainRequest){m=new XDomainRequest();try{m.open(k,l)}catch(n){return null}}else{return null}}var o={send:function(p){m.send(p)}};m.onload=function(){m.onload=function(){};if("onload" in o){o.onload(m)}};m.onerror=function(){console.log("onerror");m.onerror=function(){};if("onerror" in o){o.onerror(m)}};m.onreadystatechange=function(){console.log("onread");if(m.readyState==4){if(m.status==200){m.onload()}else{m.onerror()}}};return o}function i(k,l,m,n){m.suppress_http_code=1;var o=g.encode(m);if(l!="post"){k=g.appendToUrl(k,o);o=""}var p=h(l,k);if(!p){return false}p.onload=function(q){n(ES5("JSON","parse",false,q.responseText))};p.onerror=function(q){if(q.responseText){n(ES5("JSON","parse",false,q.responseText))}else{n({error:{type:"http",message:"unknown error",status:q.status}})}};p.send(o);return true}var j={execute:i};e.exports=j});__d("DOMWrapper",[],function(a,b,c,d,e,f){var g,h={setRoot:function(i){g=i},getRoot:function(){return g||document.body}};e.exports=h});__d("guid",[],function(a,b,c,d,e,f){function g(){return"f"+(Math.random()*(1<<30)).toString(16).replace(".","")}e.exports=g});__d("Flash",["QueryString","UserAgent","copyProperties","guid"],function(a,b,c,d,e,f){var g=b("QueryString"),h=b("UserAgent"),i=b("copyProperties"),j=b("guid"),k={},l;function m(r){var s=document.getElementById(r);if(s){s.parentNode.removeChild(s)}delete k[r]}function n(){for(var r in k){if(k.hasOwnProperty(r)){m(r)}}}function o(r){return r.replace(/\d+/g,function(s){return"000".substring(s.length)+s})}function p(r){if(!l){if(h.ie()>=9){window.attachEvent("onunload",n)}l=true}k[r]=r}var q={embed:function(r,s,t,u){var v=j();r=encodeURI(r);t=i({allowscriptaccess:"always",flashvars:u,movie:r},t||{});if(typeof t.flashvars=="object"){t.flashvars=g.encode(t.flashvars)}var w=[];for(var x in t){if(t.hasOwnProperty(x)&&t[x]){w.push('<param name="'+encodeURI(x)+'" value="'+encodeURI(t[x])+'">')}}var y=document.createElement("div"),z="<object "+(h.ie()?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ':'type="application/x-shockwave-flash"')+'data="'+r+'" id="'+v+'">'+w.join("")+"</object>";y.innerHTML=z;var aa=s.appendChild(y.firstChild);p(v);return aa},remove:m,getVersion:function(){var r="Shockwave Flash",s="application/x-shockwave-flash",t="ShockwaveFlash.ShockwaveFlash",u;if(navigator.plugins&&typeof navigator.plugins[r]=="object"){var v=navigator.plugins[r].description;if(v&&navigator.mimeTypes&&navigator.mimeTypes[s]&&navigator.mimeTypes[s].enabledPlugin){u=v.match(/\d+/g)}}if(!u){try{u=(new ActiveXObject(t)).GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/);u=Array.prototype.slice.call(u,1)}catch(w){}}return u},checkMinVersion:function(r){var s=q.getVersion();if(!s){return false}return o(s.join("."))>=o(r)},isAvailable:function(){return !!q.getVersion()}};e.exports=q});__d("dotAccess",[],function(a,b,c,d,e,f){function g(h,i,j){var k=i.split(".");do{var l=k.shift();h=h[l]||j&&(h[l]={})}while(k.length&&h);return h}e.exports=g});__d("GlobalCallback",["dotAccess"],function(a,b,c,d,e,f){var g=b("dotAccess"),h,i,j=0,k={setPrefix:function(l){h=g(window,l,true);i=l},create:function(l){if(!h){this.setPrefix("window.__globalCallbacks")}var m="__gcb"+(++j);h[m]=l;return i+"."+m},remove:function(l){var m=l.substring(i.length+1);delete h[m]}};e.exports=k});__d("Queue",["copyProperties"],function(a,b,c,d,e,f){var g=b("copyProperties"),h={};function i(l,m){return function(){m.apply(l,arguments)}}function j(){var l=Array.prototype.slice.call(arguments);for(var m=0;m<l.length;m++){if(typeof l[m]!="undefined"){return l[m]}}}function k(l){this._opts=g({interval:0,processor:null},l);this._queue=[];this._stopped=true}g(k.prototype,{_dispatch:function(l){if(this._stopped||this._queue.length===0){return}if(!this._opts.processor){this._stopped=true;throw new Error("No processor available")}if(this._opts.interval){this._opts.processor.call(this,this._queue.shift());this._timeout=setTimeout(i(this,this._dispatch),this._opts.interval)}else{while(this._queue.length){this._opts.processor.call(this,this._queue.shift())}}},enqueue:function(l){if(this._opts.processor&&!this._stopped){this._opts.processor.call(this,l)}else{this._queue.push(l)}return this},start:function(l){if(l){this._opts.processor=l}this._stopped=false;this._dispatch();return this},dispatch:function(){this._dispatch(true)},stop:function(l){this._stopped=true;if(j(l,false)){clearTimeout(this._timeout)}return this},merge:function(l,m){this._queue[m?"unshift":"push"].apply(this._queue,l._queue);l._queue=[];this._dispatch();return this},getLength:function(){return this._queue.length}});g(k,{get:function(l,m){var n;if(l in h){n=h[l]}else{n=h[l]=new k(m)}return n},exists:function(l){return l in h},remove:function(l){return delete h[l]}});e.exports=k});__d("FlashRequest",["DOMWrapper","Flash","GlobalCallback","QueryString","Queue"],function(a,b,c,d,e,f){var g=b("DOMWrapper"),h=b("Flash"),i=b("GlobalCallback"),j=b("QueryString"),k=b("Queue"),l,m={},n,o;function p(){if(!n){throw new Error("swfUrl has not been set")}var s=i.create(function(){l.start(function(u){var v=o.execute(u.method,u.url,u.body);if(!v){throw new Error("Could create request")}m[v]=u.callback})}),t=i.create(function(u,v,w){var x;try{x=ES5("JSON","parse",false,decodeURIComponent(w))}catch(y){x={error:{type:"SyntaxError",message:y.message,status:v,raw:w}}}m[u](x);delete m[u]});o=h.embed(n,g.getRoot(),null,{log:false,initCallback:s,requestCallback:t})}function q(s,t,u,v){u.suppress_http_code=1;if(!u.method){u.method=t}var w=j.encode(u);if(t==="get"&&s.length+w.length<2000){s=j.appendToUrl(s,w);w=""}else{t="post"}if(!l){if(!h.isAvailable()){return false}l=new k();p()}l.enqueue({method:t,url:s,body:w,callback:v});return true}var r={setSwfUrl:function(s){n=s},execute:q};e.exports=r});__d("JSONPRequest",["DOMWrapper","GlobalCallback","QueryString"],function(a,b,c,d,e,f){var g=b("DOMWrapper"),h=b("GlobalCallback"),i=b("QueryString");function j(l,m,n,o){var p=document.createElement("script"),q=function(s){q=function(){};h.remove(n.callback);o(s);p.parentNode.removeChild(p)};n.callback=h.create(q);if(!n.method){n.method=m}l=i.appendToUrl(l,n);if(l.length>2000){return false}p.onerror=function(){q({error:{type:"http",message:"unknown error"}})};var r=function(){setTimeout(function(){q({error:{type:"http",message:"unknown error"}})},0)};if(p.addEventListener){p.addEventListener("load",r,false)}else{p.onreadystatechange=function(){if(/loaded|complete/.test(this.readyState)){r()}}}p.src=l;g.getRoot().appendChild(p);return true}var k={execute:j};e.exports=k});__d("Log",["sprintf"],function(a,b,c,d,e,f){var g=b("sprintf"),h={DEBUG:3,INFO:2,WARNING:1,ERROR:0};function i(k,l){var m=Array.prototype.slice.call(arguments,2),n=g.apply(null,m);if(j.level>=k&&window.console){console[l in console?l:"log"](n)}}var j={level:-1,Level:h,debug:ES5(i,"bind",true,null,h.DEBUG,"debug"),info:ES5(i,"bind",true,null,h.INFO,"debug"),warn:ES5(i,"bind",true,null,h.WARNING,"debug"),error:ES5(i,"bind",true,null,h.ERROR,"debug")};e.exports=j});__d("UrlMap",["UrlMapConfig"],function(a,b,c,d,e,f){var g=c("UrlMapConfig"),h={resolve:function(i,j){var k=typeof j=="undefined"?location.protocol.replace(":",""):j?"https":"http";if(i in g){return k+"://"+g[i]}if(typeof j=="undefined"&&i+"_"+k in g){return k+"://"+g[i+"_"+k]}if(j!==true&&i+"_http" in g){return"http://"+g[i+"_http"]}if(j!==false&&i+"_https" in g){return"https://"+g[i+"_https"]}}};e.exports=h});__d("URL",["copyProperties","QueryString","Log"],function(a,b,c,d,e,f){var g=b("copyProperties"),h=b("QueryString"),i=b("Log"),j=new RegExp("((((\\w+):)?//)(.*?@)?([^~/?#:]+)(:(\\d+))?)?([^\\?$#]+)?(\\?([^$#]+))?(#([^$]+))?"),k=/[^\w\-\.,;\/\?:@=&%#$~+!*'\[\]()]/,l=/^[a-z0-9.][a-z0-9\-\.]+[a-z0-9.]$/,m=/\.facebook\.com$/;function n(o){if(typeof o!="string"){throw new TypeError("The passed argument was of invalid type.")}if(k.test(o)){throw new URIError("The passed argument could not be parsed as a url.")}if(this instanceof n===false){return new n(o)}var p=o.match(j);if(!o||!p){throw new URIError("The passed argument could not be parsed as a url.")}this._protocol=p[4]||location.protocol.replace(/:/,"");this._domain=p[6]||location.hostname;this._port=p[8]||(p[6]?(this._protocol=="http"?"80":"443"):location.port);this._path=p[9]||"";this._search=p[11]||"";this._fragment=p[13]||"";if(this._path.substring(0,1)!="/"){this._path="/"+this._path}if(!l.test(decodeURIComponent(this._domain.toLowerCase()))){i.error("Invalid characters found in domain name: %s",this._domain);throw new URIError("Domain contained invalid characters.")}}g(n.prototype,{constructor:n,getProtocol:function(){return this._protocol},setProtocol:function(o){this._protocol=o;return this},getDomain:function(){return this._domain},setDomain:function(o){this._domain=o;return this},getPort:function(){return this._port},setPort:function(o){this._port=o;return this},getPath:function(){return this._path},setPath:function(o){this._path=o;return this},getSearch:function(){return this._search},setSearch:function(o){this._search=o;return this},getFragment:function(){return this._fragment},setFragment:function(o){this._fragment=o;return this},getParsedSearch:function(){return h.decode(this._search)},getParsedFragment:function(){return h.decode(this._fragment)},isFacebookURL:function(){return m.test(this._domain)},toString:function(){return this._protocol+"://"+this._domain+(/http80|https443/.test(this._protocol+this._port)?"":":"+this._port)+this._path+(this._search?"?"+this._search:"")+(this._fragment?"#"+this._fragment:"")},valueOf:function(){return this.toString()}});g(n,{getCurrent:function(){return new n(location.href)},getReferrer:function(){return document.referrer?new n(document.referrer):null}});e.exports=n});__d("ApiClient",["copyProperties","flattenObject","sprintf","CORSRequest","FlashRequest","JSONPRequest","Log","UrlMap","URL","ApiClientConfig"],function(a,b,c,d,e,f){var g=b("copyProperties"),h=b("flattenObject"),i=b("sprintf"),j=b("CORSRequest"),k=b("FlashRequest"),l=b("JSONPRequest"),m=b("Log"),n=b("UrlMap"),o=b("URL"),p=c("ApiClientConfig"),q,r,s,t,u={get:true,post:true,"delete":true,put:true},v={fql_query:true,fql_multiquery:true,friends_get:true,notifications_get:true,stream_get:true,users_getinfo:true};function w(aa,ba,ca,da){if(!ca.access_token){ca.access_token=q}ca.pretty=0;if(t){g(ca,t)}ca=h(ca);if(!da){m.warn("No callback passed to the ApiClient for %s",aa);da=function(){}}var ea={jsonp:l,cors:j,flash:k},fa;if(ca.transport){fa=[ca.transport];delete ca.transport}else{fa=["jsonp","cors","flash"]}var ga=function(ka){if(r&&ka&&typeof ka=="object"){if("error" in ka||"error_code" in ka){if(ka.error_code=="190"||ka.error=="invalid_token"||(ka.error.type=="OAuthException"&&ka.error.code==190)){r()}}}da(ka)};for(var ha=0;ha<fa.length;ha++){var ia=ea[fa[ha]],ja=g({},ca);if(ia.execute(aa,ba,ja,ga)){return}}da({error:{type:"no-transport",message:"Could not find a usable transport for request"}})}function x(aa){if(typeof aa!="string"){throw new Error("Missing url argument")}var ba={};ES5(Array.prototype.slice.call(arguments,1),"forEach",true,function(ga){ba[typeof ga]=ga});var ca=new o(aa),da=(ba.string||"get").toLowerCase(),ea=g(ba.object||{},ca.getParsedSearch()),fa=ba["function"];if(!(da in u)){throw new Error(i("Invalid method passed to ApiClient: %s",da))}ea.method=da;ca=n.resolve("graph")+ca.getPath();w(ca,da=="get"?"get":"post",ea,fa)}function y(aa,ba){var ca=aa.method.toLowerCase().replace(".","_");aa.format="json-strings";aa.api_key=s;var da=ca in v?"api_read":"api",ea=n.resolve(da)+"/restserver.php";w(ea,"get",aa,ba)}var z={setAccessToken:function(aa,ba){q=aa;r=ba},setClientID:function(aa){s=aa},setDefaultParams:function(aa){t=aa},rest:y,graph:x};k.setSwfUrl(p.FlashRequest.swfUrl);e.exports=z});__d("legacy:fb.api",["ApiClient","FB","GlobalCallback","SDKConfig"],function(a,b,c,d){var e=c("SDKConfig"),f=b("ApiClient"),g=b("FB"),h=b("GlobalCallback");f.setDefaultParams({sdk:"joey"});h.setPrefix("FB._callbacks");function i(){var j=g.getAccessToken(),k=function(){if(j==g.getAccessToken()){g.getLoginStatus(null,true)}};f.setClientID(g._apiKey);f.setAccessToken(j,k);if(typeof arguments[0]==="string"){f.graph.apply(f,arguments)}else{f.rest.apply(f,arguments)}}if(e.migrate){g.provide("",{api:i},true)}},3);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];ES5(FB.Array,"forEach",true,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(),c=this.subscribers()[b];if(c){ES5(c,"forEach",true,function(d){if(d){d.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);__d("legacy:fb.arbiter",["FB"],function(a,b,c,d){var e=b("FB");e.provide("Arbiter",{BEHAVIOR_EVENT:"e",BEHAVIOR_PERSISTENT:"p",BEHAVIOR_STATE:"s",inform:function(f,g,h,i,j){e.XD.sendToFacebook("facebook",{method:f,params:ES5("JSON","stringify",false,g||{}),behavior:j||e.Arbiter.BEHAVIOR_PERSISTENT,relation:h})}})},3);__d("DOMEventListener",[],function(a,b,c,d,e,f){var g,h;if(window.addEventListener){g=function(j,k,l){j.addEventListener(k,l,false)};h=function(j,k,l){j.removeEventListener(k,l,false)}}else{if(window.attachEvent){g=function(j,k,l){j.attachEvent("on"+k,l)};h=function(j,k,l){j.detachEvent("on"+k,l)}}}var i={add:function(j,k,l){g(j,k,l);return{remove:function(){h(j,k,l);j=null}}},remove:h};e.exports=i});__d("XDM",["Flash","DOMEventListener","Log","guid","copyProperties"],function(a,b,c,d,e,f){var g=b("Flash"),h=b("DOMEventListener"),i=b("Log"),j=b("guid"),k=b("copyProperties"),l={},m={transports:[]};function n(p){var q={},r=p.length,s=m.transports;while(r--){q[p[r]]=1}r=s.length;while(r--){var t=s[r],u=l[t];if(!q[t]&&u.isAvailable()){return t}}}var o={register:function(p,q){i.debug("Registering %s as XDM provider",p);m.transports.push(p);l[p]=q},create:function(p){if(!p.whenReady&&!p.onMessage){i.error("An instance without whenReady or onMessage makes no sense");throw new Error("An instance without whenReady or onMessage makes no sense")}if(!p.channel){i.warn("Missing channel name, selecting at random");p.channel=j()}if(!p.whenReady){p.whenReady=bagofholding}if(!p.onMessage){p.onMessage=bagofholding}var q=p.transport||n(p.blacklist||[]),r=l[q];if(r&&r.isAvailable()){i.debug("%s is available",q);r.init(p);return q}}};o.register("fragment",(function(){var p=false,q,r=location.protocol+"//"+location.host;function s(t){var u=document.createElement("iframe");u.src="javascript:false";var v=h.add(u,"load",function(){v.remove();setTimeout(function(){u.parentNode.removeChild(u)},5000)});q.appendChild(u);u.src=t}return{isAvailable:function(){return true},init:function(t){i.debug("init fragment");var u={send:function(v,w,x,y){i.debug("sending to: %s (%s)",w+t.channelPath,y);s(w+t.channelPath+v+"&xd_rel=parent.parent&relation=parent.parent&xd_origin="+encodeURIComponent(r))}};if(p){t.whenReady(u);return}q=t.root;p=true;t.whenReady(u)}}})());o.register("flash",(function(){var p=false,q,r={},s=false;return{isAvailable:function(){return g.isAvailable()},init:function(t){i.debug("init flash: "+t.channel);var u={send:function(x,y,z,aa){i.debug("sending to: %s (%s)",y,aa);q.postMessage(x,y,aa)}};if(p){t.whenReady(u);return}var v=t.root.appendChild(document.createElement("div")),w=j();r[w]=function(){i.info("xdm.swf called the callback");delete r[w];w=j();r[w]=function(x,y){x=decodeURIComponent(x);i.debug("received message %s from %s",x,y);t.onMessage(x,y)};q.init(t.channel,"FB_XDM_CALLBACKS."+w);t.whenReady(u)};window.FB_XDM_CALLBACKS=r;q=g.embed(t.flashUrl,v,null,{protocol:location.protocol.replace(":",""),host:location.host,callback:"FB_XDM_CALLBACKS."+w,log:s});p=true}}})());o.register("postmessage",(function(){var p=false;return{isAvailable:function(){return !!window.postMessage},init:function(q){i.debug("init postMessage: "+q.channel);var r="_FB_"+q.channel,s={send:function(t,u,v,w){if(window===v){i.error("Invalid windowref, equal to window (self)");throw new Error()}i.debug("sending to: %s (%s)",u,w);v.postMessage("_FB_"+w+t,u)}};if(p){q.whenReady(s);return}h.add(window,"message",function(event){var t=event.data,u=event.origin||"native";if(typeof t!="string"){i.warn("Received message of type %s from %s, expected a string",typeof t,u);return}i.debug("received message %s from %s",t,u);if(u!="native"){if(t.substring(0,r.length)==r){t=t.substring(r.length)}else{return}}q.onMessage(t,u)});q.whenReady(s);p=true}}})());e.exports=o});__d("resolveWindow",[],function(a,b,c,d,e,f){function g(h){var i=window,j=h.split(".");try{for(var l=0;l<j.length;l++){var m=j[l],n=/^frames\[['"]?([a-zA-Z0-9\-_]+)['"]?\]$/.exec(m);if(n){i=i.frames[n[1]]}else{if(m==="opener"||m==="parent"||m==="top"){i=i[m]}else{return null}}}}catch(k){return null}return i}e.exports=g});__d("SDK_XD",["XDM","Log","QueryString","Queue","resolveWindow","guid","XDConfig"],function(a,b,c,d,e,f){var g=c("XDConfig"),h=b("XDM"),i=b("Log"),j=b("QueryString"),k=b("Queue"),l=b("resolveWindow"),m=b("guid"),n=new k(),o=new k(),p=new k(),q,r,s=m(),t=m(),u=location.protocol+"//"+location.host,v,w=false,x={};function y(ea){i.info("Remote XD can talk to facebook.com (%s)",ea);if(ea=="canvas"){FB._inCanvas=true}else{FB.Canvas._isTabIframe=true}}function z(ea,fa){if(!fa){i.error("No senderOrigin");throw new Error()}var ga=/^https?/.exec(fa)[0];switch(ea.xd_action){case"proxy_ready":var ha,ia;if(ga=="https"){ha=p;ia=r}else{ha=o;ia=q}if(ea.registered){y(ea.registered);n=ha.merge(n)}i.info("Proxy ready, starting queue %s containing %s messages",ga+"ProxyQueue",ha.getLength());ha.start(function(ka){v.send(j.encode(ka),fa,ia.contentWindow,t+"_"+ga)});break;case"plugin_ready":i.info("Plugin %s ready, protocol: %s",ea.name,ga);x[ea.name]={protocol:ga};if(k.exists(ea.name)){var ja=k.get(ea.name);i.debug("Enqueuing %s messages for %s in %s",ja.getLength(),ea.name,ga+"ProxyQueue");(ga=="https"?p:o).merge(ja)}break}if(ea.data){aa(ea.data,fa)}}function aa(ea,fa){if(typeof ea=="string"){if(ea.substring(0,1)=="{"){try{ea=ES5("JSON","parse",false,ea)}catch(ga){i.warn("Failed to decode %s as JSON",ea);return}}else{ea=j.decode(ea)}}if(!fa){if(ea.xd_sig==s){fa=ea.xd_origin}}if(ea.xd_action){z(ea,fa);return}if(ea.access_token){FB._https=/^https/.test(u)}if(ea.cb){var ha=FB.XD._callbacks[ea.cb];if(!FB.XD._forever[ea.cb]){delete FB.XD._callbacks[ea.cb]}if(ha){ha(ea)}}}var ba=function(){var ea=document.createElement("form"),fa=ea.appendChild(document.createElement("input")),ga;fa.name=m();ga=fa!==ea.elements[fa.name];ea=fa=null;ba=function(){return ga};return ga};function ca(ea){var fa=ba()?document.createElement('<iframe name="'+ea.name+'"/>'):document.createElement("IFRAME");fa.name=fa.id=ea.name;fa.src="javascript:false";ea.root.appendChild(fa);fa.src=ea.url;return fa}var da={_callbacks:{},_forever:{},_channel:t,_origin:u,onMessage:aa,recv:aa,init:function(ea){if(w){return}var fa=ea?/\/\/.*?(\/[^#]*)/.exec(ea)[1]:location.pathname+location.search;fa+=(~ES5(fa,"indexOf",true,"?")?"&":"?")+"fb_xd_fragment#xd_sig="+s+"&";var ga=FB.Content.appendHidden(document.createElement("div")),ha=h.create({root:ga,channel:t,channelPath:"/"+g.XdUrl+"#",flashUrl:g.Flash.path,whenReady:function(ma){v=ma},onMessage:aa}),ia={channel:t,origin:location.protocol+"//"+location.host,channel_path:fa,transport:ha},ja=g.XdUrl+"#"+j.encode(ia),ka=g.useCdn?FB._domain.staticfb:"http://www.facebook.com/",la=g.useCdn?FB._domain.https_staticfb:"https://www.facebook.com/";if(!FB.onlyUseHttps()){q=ca({url:ka+ja,name:"fb_xdm_frame_http",root:ga})}r=ca({url:la+ja,name:"fb_xdm_frame_https",root:ga});w=true},sendToFacebook:function(ea,fa){if(ea=="facebook"){fa.relation="parent.parent";n.enqueue(fa)}else{fa.relation='parent.frames["'+ea+'"]';var ga=x[ea];if(ga){i.debug("Enqueuing message for plugin %s in %s",ea,ga.protocol+"ProxyQueue");(ga.protocol=="https"?p:o).enqueue(fa)}else{i.debug("Buffering message for plugin %s",ea);k.get(ea).enqueue(fa)}}},handler:function(ea,fa,ga,ha){ha=ha||m();if(ga){FB.XD._forever[ha]=true}FB.XD._callbacks[ha]=ea;var ia=location.protocol=="https:"?FB._domain.https_staticfb:FB._domain.staticfb,ja=g.useCdn?ia:location.protocol+"//www.facebook.com/";return ja+g.XdUrl+"#"+j.encode({cb:ha,origin:u+"/"+t,domain:location.hostname,relation:fa||"opener"})}};(function(){var ea=location.href.match(/[?&]fb_xd_fragment#(.*)$/);if(ea){document.documentElement.style.display="none";var fa=j.decode(ea[1]),ga=l(fa.xd_rel);i.debug("Passing fragment based message: %s",ea[1]);ga.FB.XD.onMessage(fa);document.open();document.close()}})();e.exports=da});__d("legacy:fb.xd",["FB","SDK_XD"],function(a,b,c,d){var e=b("FB"),f=b("SDK_XD");e.provide("XD",f)},3);FB.provide("Canvas",{_timer:null,_lastSize:{},_isTabIframe:!!~ES5(window.name,"indexOf",true,"app_runner_"),_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=ES5(function(k){if(k.state=="opened"){FB.Canvas.hideFlashElement(k.elem)}else{FB.Canvas.showFlashElement(k.elem)}},"bind",true,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(!FB._initialized&&arguments.callee.caller!=FB.setAutoGrow){FB.log("FB.init is required for setSize to take effect")}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){if(!FB._initialized){FB.log("FB.init is required for scrollTo to take effect")}FB.Arbiter.inform("scrollTo",{frame:window.name||"iframe_canvas",x:a,y:b})},setAutoGrow:function(a,b){if(!FB._initialized){FB.log("FB.init is required for setAutoGrow to take effect")}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 FB.Canvas._isTabIframe},setDoneLoading:function(a){FB.Canvas._passAppTtiMessage(a,"RecordIframeAppTti")},stopTimer:function(a){FB.Canvas._passAppTtiMessage(a,"StopIframeAppTtiTimer")},setUrlHandler:function(a){if(!FB._initialized){FB.log("FB.init is required for setUrlHandler to take effect")}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{ES5(FB.Array.toArray(a.childNodes),"forEach",true,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",{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 ES5(c,"indexOf",true," "+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){b=b.replace(/-(\w)/g,function(e,f){return f.toUpperCase()});c=a.currentStyle[b]}else{b=b.replace(/[A-Z]/g,function(e){return"-"+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;ES5(b,"forEach",true,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\uFF3Ds]*$"))}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("",{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 ES5(e,"bind",true,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(ES5("JSON","stringify",false,b)!=ES5("JSON","stringify",false,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,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=ES5(FB.Dialog._stack,"filter",true,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";ES5(["vert_left","vert_right","horiz_top","horiz_bottom","top_left","top_right","bottom_left","bottom_right"],"forEach",true,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")}}},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")}}},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="scope" in a?a.scope:FB._scope;if(c){var d=c.split(/\s|,/g);for(var e=0;e<d.length;e++){var f=ES5(d[e],"trim",true);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"){FB.copy(a.params,{display:"iframe",channel:FB.UIServer._xdChannelHandler(a.id,"parent.parent")},true)}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"){FB.copy(g.params,{channel_url:FB.UIServer._xdChannelHandler(e,"parent.parent")},true)}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)){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(",");var l;if(a.post){l=window.open("about:blank",a.id,k);if(l){FB.UIServer.setLoadedNode(a,l,"popup");FB.Content.submitToTarget({url:a.url,target:a.id,params:a.params})}}else{l=window.open(a.url,a.id,k);if(l){FB.UIServer.setLoadedNode(a,l,"popup")}}if(!l){return}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),"native")});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+"]");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"&&c.type!="native"){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&&ES5("JSON","parse",false,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(ES5("JSON","stringify",false,{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)}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(c==="logout"||c==="login_status"){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}var i={authResponse:FB._authResponse,status:FB._userStatus};a&&a(i)}},parseSignedRequest:function(a){if(!a){return null}var b=a.split(".",2),c=b[1],d=FB.Auth.base64URLDecode(c);return ES5("JSON","parse",false,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=ES5(d,"indexOf",true,a.charAt(m));j=ES5(d,"indexOf",true,a.charAt(m+1));k=ES5(d,"indexOf",true,a.charAt(m+2));l=ES5(d,"indexOf",true,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,"logout");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,"login_status"),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}ES5(a.data,"forEach",true,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=ES5(a,"map",true,function(d){return ES5(d,"trim",true)});var b=true,c=false;ES5(a,"forEach",true,function(d){b=b&&FB.Frictionless._allowedRecipients[d];c=true},false);return b&&c}});__d("Upsell",["URL"],function(a,b,c,d,e,f){var g=b("URL"),h=false,i={init:function(j){if(h){return}h=true;var k,l;try{k=g.getReferrer()}catch(m){j.Insights.impression({lid:113,name:"url_parse_error",payload:{url:document.referrer}});return}try{l=g.getCurrent()}catch(n){j.Insights.impression({lid:113,name:"url_parse_error",payload:{url:location.href}});return}if(k&&k.isFacebookURL()&&l.getParsedSearch().fb_upsell){j.getLoginStatus(function(o){if(o.status=="not_authorized"){j.ui({display:"iframe",method:"permissions.oauth",auth_referral:true})}})}}};e.exports=i});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(ES5(FB.Canvas.Prefetcher._appIdsBlacklist,"indexOf",true,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){ES5(FB.Array,"forEach",true,a,function(c,d){ES5(FB.Array.toArray(window.document.getElementsByTagName(d)),"forEach",true,function(e){if(e[c]){FB.Canvas.Prefetcher._links.push(e[c])}})})}var b=ES5("JSON","stringify",false,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.Dom.ready(function(){FB.require("DOMWrapper").setRoot(FB.Content.appendHidden(document.createElement("div")))});FB.provide("",{initSitevars:{},init:function(a){if(FB._initialized){FB.log("FB.init has already been called - this could indicate a problem")}a=FB.copy(a||{},{logging:true,status:true});FB._userID=0;if(!a.logging&&ES5(window.location.toString(),"indexOf",true,"fb_debug=1")<0){FB._logging=false}if("appId" in a||"apiKey" in a){FB._apiKey=a.appId||a.apiKey}if("scope" in a){FB._scope=a.scope}if(!FB._initialized){FB.XD.init(a.channelUrl?FB.URI.resolve(a.channelUrl):null);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.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._initialized){FB.require("Upsell").init(FB)}if(FB.Canvas&&FB._inCanvas){FB.Canvas._setHideFlashCallback(a.hideFlashCallback);FB.Canvas.init();if(FB.Canvas.Prefetcher){FB.Canvas.Prefetcher._maybeSample()}}if(FB.XFBML&&a.xfbml){if(FB.XFBML.IframeWidget){FB.Event.subscribe("xfbml.parse",function(){FB.XFBML.IframeWidget.batchWidgetPipeRequests()})}window.setTimeout(function(){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)}FB._initialized=true}});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:670,height:340},url:"sharer.php",transform:function(a){if(!a.params.u){a.params.u=window.location.toString()}a.params.display="popup";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.XFBML._getDomElements(a,b,c),e=FB.Dom.getByClass(b+"-"+c,a,"div");d=FB.Array.toArray(d);e=FB.Array.toArray(e);e=ES5(e,"filter",true,function(f){return !f.hasChildNodes()||(f.childNodes.length===1&&f.childNodes[0].nodeType===3)});return FB.Array.merge(d,e)},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()){ES5(FB.XFBML._tagInfos,"forEach",true,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}})}ES5(FB.XFBML._tagInfos,"forEach",true,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&&ES5(["true","1","yes","on"],"indexOf",true,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||FB._iframeLoginButton||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:"privacy-selector",className:"FB.XFBML.PrivacySelector"},{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",ES5(this,"bind",true,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 ("+ES5(this.where.value,"map",true,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 ES5(a.split(","),"map",true,function(b){return ES5(b,"trim",true)})},_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)}}ES5(dependencies,"forEach",true,function(item){item.monitor("value",function(){var done=false;if(FB.Data._getValue(item)!==undefined){count--;done=true}if(count===0){var value=callback(ES5(dependencies,"map",true,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=ES5("JSON","stringify",false,e.queries);FB.api("/fql","GET",e,function(f){if(f.error){ES5(a,"forEach",true,function(g){g.error(new Error(f.error.message))})}else{ES5(f.data,"forEach",true,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(ES5(g,"filter",true,function(h){return h[c]==d}))})},timer:-1,queue:[]});window.setTimeout(function(){var a=/(connect.facebook.net|facebook.com\/assets.php).*?#(.*)/;ES5(FB.Array.toArray(document.getElementsByTagName("script")),"forEach",true,function(b){if(b.src){var c=a.exec(b.src);if(c){var d=FB.QS.decode(c[2]);ES5(FB.Array,"forEach",true,d,function(e,f){if(e=="0"){d[f]=0}});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(ES5("JSON","parse",false,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=ES5("JSON","stringify",false,a.params.order_info);return a}var b=FB.XD.handler(function(c){a.cb(c.response?ES5("JSON","parse",false,c.response):null)},"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<2200000000||(a>=100000000000000&&a<=100099999989999)||(a>=89000000000000&&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()&&ES5("JSON","parse",false,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=ES5("JSON","stringify",false,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(ES5(this,"bind",true,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",ES5(this,"bind",true,function(){if(this.getParamsCb){var b=frames[this.cachedCall.frameName]||FB.UIServer.getLoadedNode(this.cachedCall);b.postMessage(ES5("JSON","stringify",false,{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(ES5(c,"indexOf",true,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){FB.XD.sendToFacebook(this.getIframeName(),{method:event,params:ES5("JSON","stringify",false,a||{}),behavior:b||FB.Arbiter.BEHAVIOR_PERSISTENT})},_arbiterInform:function(event,a,b){var c='parent.frames["'+this.getIframeNode().name+'"]';FB.Arbiter.inform(event,a,c,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;this._iframeName=this._iframeName||FB.guid();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",ES5(this.fire,"bind",true,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:ES5(this.fire,"bind",true,this,"iframe.onload")});this._resizeFlow(b);this.loaded=false;this.subscribe("iframe.onload",ES5(function(){this.loaded=true},"bind",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=ES5(function(){this._postRequest();this.unsubscribe("iframe.onload",b)},"bind",true,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",ES5(this._handleResizeMsg,"bind",true,this));this.subscribe("xd.resize",ES5(this._bubbleResizeEvent,"bind",true,this));this.subscribe("xd.resize.iframe",ES5(this._resizeIframe,"bind",true,this));this.subscribe("xd.resize.flow",ES5(this._resizeFlow,"bind",true,this));this.subscribe("xd.resize.flow",ES5(this._bubbleResizeEvent,"bind",true,this));if(FB.getLoginStatus){this.subscribe("xd.refreshLoginStatus",ES5(FB.getLoginStatus,"bind",true,FB,function(){},true));this.subscribe("xd.logout",ES5(FB.logout,"bind",true,FB,function(){}))}if(this._refreshOnAuthChange){this._setupAuthRefresh()}if(this._visibleAfter=="load"){this.subscribe("iframe.onload",ES5(this._makeVisible,"bind",true,this))}this.subscribe("xd.verify",ES5(function(a){this.arbiterInform("xd/verify",a.token)},"bind",true,this));this.oneTimeSetup()},_makeVisible:function(){this._removeLoader();FB.Dom.removeCss(this.dom,"fb_hide_iframes");this.fire("render")},_setupAuthRefresh:function(){FB.getLoginStatus(ES5(function(a){var b=a.status;FB.Event.subscribe("auth.statusChange",ES5(function(c){if(!this.isValid()){return}if(b=="unknown"||c.status=="unknown"){this.process(true)}b=c.status},"bind",true,this))},"bind",true,this))},_handleResizeMsg:function(a){if(!this.isValid()){return}this._resizeIframe(a);this._resizeFlow(a);this.getIframeNode().style.border="none";this._makeVisible()},_bubbleResizeEvent:function(a){var b={height:a.height,width:a.width,pluginID:this.getAttribute("plugin-id")};FB.Event.fire("xfbml.resize",b)},_resizeIframe:function(a){var b=this.getIframeNode();a.height&&(b.style.height=a.height+"px");a.width&&(b.style.width=a.width+"px");this._updateIframeZIndex()},_resizeFlow:function(a){var b=this.dom.getElementsByTagName("span")[0];a.height&&(b.style.height=a.height+"px");a.width&&(b.style.width=a.width+"px");this._updateIframeZIndex()},_updateIframeZIndex:function(){var a=this.dom.getElementsByTagName("span")[0],b=this.getIframeNode(),c=b.style.height===a.style.height&&b.style.width===a.style.width,d=c?"removeCss":"addCss";FB.Dom[d](b,"fb_iframe_widget_lift")},_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:ES5("JSON","stringify",false,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=ES5(this.dom.innerHTML,"trim",true)}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=ES5(this.onClick,"bind",true,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"},ES5(this,"bind",true,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"),max_rows:this.getAttribute("max-rows"),action:this.getAttribute("action"),tense:this.getAttribute("tense","past"),width:this._getPxAttribute("width",200),ref:this.getAttribute("ref"),size:this.getAttribute("size","small"),one_click:this._getBoolAttribute("one-click",false),extended_social_context:this.getAttribute("extended_social_context",false),registration_url:this.getAttribute("registration-url"),login_text:this.dom.innerHTML};if(!this._extraParams.show_faces){this._attr.width=this.dom.parentNode.offsetWidth}var a=this.getAttribute("on-login");if(a){FB.Event.subscribe("auth.statusChange",ES5(function(c){FB.Helper.invokeHandler(a,this,[c])},"bind",true,this))}this.clear();for(var b in this._extraParams){this._attr[b]=this._extraParams[b]}return true},setExtraParams:function(a){this._extraParams=a},oneTimeSetup:function(){var a=FB._userStatus;FB.Event.subscribe("auth.statusChange",ES5(function(b){if(a=="connected"||b.status=="connected"){this.process(true)}a=b.status},"bind",true,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"},ES5(this,"bind",true,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=ES5(document.URL,"indexOf",true,"#");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(ES5(document.URL,"indexOf",true,"?")+1)).fb_comment_id;if(c&&ES5(c,"indexOf",true,"#")>0){c=c.substring(0,ES5(c,"indexOf",true,"#"))}}if(c){a.fb_comment_id=c;this.subscribe("render",ES5(function(){if(!window.location.hash){window.location.hash=this.getIframeNode().id}},"bind",true,this))}}this._attr=a;return true},oneTimeSetup:function(){this.subscribe("xd.addComment",ES5(this._handleCommentMsg,"bind",true,this));this.subscribe("xd.commentCreated",ES5(this._handleCommentCreatedMsg,"bind",true,this));this.subscribe("xd.commentRemoved",ES5(this._handleCommentRemovedMsg,"bind",true,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(ES5(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")},"bind",true,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(ES5(function(){if(!h){h=new Date().getTime()}var k=1;if(c!=0){k=Math.min((new Date().getTime()-h)/c,1)}ES5(FB.Array,"forEach",true,b,ES5(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="";ES5(FB.Array,"forEach",true,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)},"bind",true,this));if(k==1){clearInterval(j);if(d){d(a)}}},"bind",true,this),e)},_parseCSS:function(a){var b=[];ES5(a.split(" "),"forEach",true,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=FB.getDomain(location.protocol=="https:"?"https_www":"www")+"impression.php/"+c+"/",e=new Image(1,1),f=[];if(!a.api_key&&FB._apiKey){a.api_key=FB._apiKey}a=FB.JSON.flatten(a);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(ES5(this,"bind",true,function(a){FB.Event.monitor("auth.statusChange",ES5(this,"bind",true,function(){if(this.isValid()&&FB._userStatus=="connected"){this._uid=FB.Helper.getLoggedInUser();FB.api({method:"Connect.shouldShowConnectBar"},ES5(this,"bind",true,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],ES5(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)}},"bind",true,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;ES5(FB.Array.toArray(b.getElementsByTagName("a")),"forEach",true,function(g){g.onclick=ES5(d._clickHandler,"bind",true,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},ES5(this,"bind",true,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",ES5(this._onAuthPrompt,"bind",true,this));this.subscribe("xd.edgeCreated",ES5(this._onEdgeCreate,"bind",true,this));this.subscribe("xd.edgeRemoved",ES5(this._onEdgeRemove,"bind",true,this));this.subscribe("xd.presentEdgeCommentDialog",ES5(this._handleEdgeCommentDialogPresentation,"bind",true,this));this.subscribe("xd.dismissEdgeCommentDialog",ES5(this._handleEdgeCommentDialogDismissal,"bind",true,this));this.subscribe("xd.hideEdgeCommentDialog",ES5(this._handleEdgeCommentDialogHide,"bind",true,this));this.subscribe("xd.showEdgeCommentDialog",ES5(this._handleEdgeCommentDialogShow,"bind",true,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",ES5(this._onMessageSent,"bind",true,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",ES5(this._onLiked,"bind",true,this));this.subscribe("xd.likeboxUnliked",ES5(this._onUnliked,"bind",true,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(){var a=FB._iframeLoginButton?"login_button":"login";return{name:a,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",ES5(this.process,"bind",true,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(ES5(this._authCallback,"bind",true,this),{perms:this._attr.perms,scope:this._attr.scope})}else{FB.logout(ES5(this._authCallback,"bind",true,this))}}else{switch(this._attr.status){case"unknown":FB.ui({method:"auth.logintoFacebook"},ES5(function(a){ES5(FB.getLoginStatus(this._saveStatus(this._authCallback,true),true),"bind",true,this)},"bind",true,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(ES5(this._authCallback,"bind",true,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 ES5(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=ES5(this,"bind",true,a,this);return a(c)}},"bind",true,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",ES5(this,"bind",true,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(ES5(this,"bind",true,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.PrivacySelector","XFBML.IframeWidget",null,{getUrlBits:function(){return{name:"privacy_selector",params:this._attr}},setupAndValidate:function(){this._attr={channel:this.getChannelUrl(),api_key:FB._apiKey,font:this.getAttribute("font")};this._showLoader=false;return true},getSize:function(){return{width:99,height:22}}});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=ES5(this,"bind",true,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",ES5(this,"bind",true,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",ES5(this._onInitialVote,"bind",true,this));this.subscribe("xd.vote",ES5(this._onChangedVote,"bind",true,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",ES5(function(){var j=this.dom.children[0];j.className="fbpluginrecommendationsbar"+this._attr.side},"bind",true,this));var e=ES5(function(){FB.Event.unlisten(window,"scroll",e);FB.Event.unlisten(document.documentElement,"click",e);FB.Event.unlisten(document.documentElement,"mousemove",e);window.setTimeout(ES5(this.arbiterInform,"bind",true,this,"platform/plugins/recommendations_bar/action",null,FB.Arbiter.BEHAVIOR_STATE),this._attr.read_time*1000);return true},"bind",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=ES5(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},"bind",true,this);FB.Event.subscribe("xfbml.recommendationsbar.read",f)}else{var g=a(500,ES5(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},"bind",true,this));FB.Event.listen(window,"scroll",g);FB.Event.listen(window,"resize",g);g()}this.visible=false;var h=a(500,ES5(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},"bind",true,this));FB.Event.listen(window,"scroll",h);FB.Event.listen(window,"resize",h);h();this.focused=true;var i=ES5(function(){this.focused=!this.focused;return true},"bind",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",ES5(function(){this.animate=true},"bind",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}}});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",ES5(this,"bind",true,function(a){var b=ES5("JSON","parse",false,a.value),c=ES5(function(e){this.arbiterInform("Registration.Validation",{errors:e,id:a.id})},"bind",true,this),d=FB.Helper.executeFunctionByName(this._attr.onvalidate,b,c);if(d){c(d)}}))}this.subscribe("xd.authLogin",ES5(this._onAuthLogin,"bind",true,this));this.subscribe("xd.authLogout",ES5(this._onAuthLogout,"bind",true,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=ES5("JSON","parse",false,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>=10000000?Math.round(b/1000000)+"M":(b>=10000?Math.round(b/1000)+"K":b)}}}else{this._count.wait(ES5(this._renderButton,"bind",true,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"),object_id:this.getAttribute("object_id")};this.subscribe("xd.social_context_stats",ES5(this._bubbleSocialContextStats,"bind",true,this));return true},_bubbleSocialContextStats:function(a){var b={pluginID:this.getAttribute("plugin-id"),socialContextPageIDs:ES5("JSON","parse",false,a.social_context_page_ids)};FB.Event.fire("xfbml.social_context_stats",b)},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);__d("UrlMapConfig",[],{www:"www.facebook.com",m:"m.facebook.com",connect:"connect.facebook.net",api_https:"api.facebook.com",api_read_https:"api-read.facebook.com",graph_https:"graph.facebook.com",fbcdn_http:"static.ak.fbcdn.net",fbcdn_https:"s-static.ak.fbcdn.net",cdn_http:"static.ak.facebook.com",cdn_https:"s-static.ak.facebook.com"});__d("ApiClientConfig",[],{FlashRequest:{swfUrl:"https://s-static.ak.fbcdn.net/rsrc.php/v1/y5/r/SrnvQJBTxo-.swf"}});__d("SDKConfig",[],{migrate:1});__d("XDConfig",[],{XdUrl:"connect/xd_arbiter.php?version=6",Flash:{path:"https://s-static.ak.fbcdn.net/rsrc.php/v1/ys/r/WON-TVLCpDP.swf"},useCdn:true})}).call(FB)}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/ym/r/WT2HOUZkT6k.swf"},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._iframeLoginButton=false;FB.provide("TemplateData",{_enabled:0},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:absolute}\n.fb_iframe_widget_lift{z-index:1}\n.fb_iframe_widget span{position:relative;display:inline-block;vertical-align:text-bottom;text-align:justify}\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"])}(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src="https://apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();FB.init({status:true,cookie:true,xfbml:true});var Analytics=function(a){this.init(a)};Analytics.prototype={defaults:{virtualPages:[]},options:null,init:function(a){this.options=jQuery.extend({},this.defaults,a);this.setupVirtualPages(this.options.virtualPages)},setupVirtualPages:function(a){for(var b in a){jQuery(a[b].selector).bind("click",{page:a[b].page},jQuery.proxy(function(c){_gaq.push(["_trackPageview",c.data.page])},this))}}};
