").append(_.parseHTML(t)).find(r):t)}).complete(i&&function(t,e){a.each(i,o||[t.responseText,e,t])}),this},_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){_.fn[e]=function(t){return this.on(e,t)}}),_.each(["get","post"],function(t,n){_[n]=function(t,i,r,o){return _.isFunction(i)&&(o=o||r,r=i,i=e),_.ajax({url:t,type:n,dataType:o,data:i,success:r})}}),_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fe,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(de[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ke,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":t.String,"text html":!0,"text json":_.parseJSON,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ne(Ne(t,_.ajaxSettings),e):Ne(_.ajaxSettings,t)},ajaxPrefilter:Se(Te),ajaxTransport:Se(Ce),ajax:function(t,n){"object"==typeof t&&(n=t,t=e),n=n||{};var i,r,o,s,a,l,c,u,p=_.ajaxSetup({},n),h=p.context||p,d=p.context&&(h.nodeType||h.jquery)?_(h):_.event,f=_.Deferred(),g=_.Callbacks("once memory"),m=p.statusCode||{},v={},y={},b=0,x="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!u)for(u={};e=_e.exec(s);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else E.always(t[E.status]);return this},abort:function(t){var e=t||x;return c&&c.abort(e),T(0,e),this}};if(f.promise(E).complete=g.add,E.success=E.done,E.error=E.fail,p.url=((t||p.url||fe)+"").replace(ve,"").replace(we,de[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=_.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&&(i=xe.exec(p.url.toLowerCase()),p.crossDomain=!(!i||i[1]===de[1]&&i[2]===de[2]&&(i[3]||("http:"===i[1]?80:443))==(de[3]||("http:"===de[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=_.param(p.data,p.traditional)),Ae(Te,p,n,E),2===b)return E;for(r in(l=p.global)&&0==_.active++&&_.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!be.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(me.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=ye.test(o)?o.replace(ye,"$1_="+ge++):o+(me.test(o)?"&":"?")+"_="+ge++)),p.ifModified&&(_.lastModified[o]&&E.setRequestHeader("If-Modified-Since",_.lastModified[o]),_.etag[o]&&E.setRequestHeader("If-None-Match",_.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&E.setRequestHeader("Content-Type",p.contentType),E.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+ke+"; q=0.01":""):p.accepts["*"]),p.headers)E.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(!1===p.beforeSend.call(h,E,p)||2===b))return E.abort();for(r in x="abort",{success:1,error:1,complete:1})E[r](p[r]);if(c=Ae(Ce,p,n,E)){E.readyState=1,l&&d.trigger("ajaxSend",[E,p]),p.async&&p.timeout>0&&(a=setTimeout(function(){E.abort("timeout")},p.timeout));try{b=1,c.send(v,T)}catch(t){if(!(2>b))throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,n,i,r){var u,v,y,w,x,T=n;2!==b&&(b=2,a&&clearTimeout(a),c=e,s=r||"",E.readyState=t>0?4:0,i&&(w=function(t,n,i){var r,o,s,a,l=t.contents,c=t.dataTypes,u=t.responseFields;for(a in u)a in i&&(n[u[a]]=i[a]);for(;"*"===c[0];)c.shift(),o===e&&(o=t.mimeType||n.getResponseHeader("Content-Type"));if(o)for(a in l)if(l[a]&&l[a].test(o)){c.unshift(a);break}if(c[0]in i)s=c[0];else{for(a in i){if(!c[0]||t.converters[a+" "+c[0]]){s=a;break}r||(r=a)}s=s||r}return s?(s!==c[0]&&c.unshift(s),i[s]):e}(p,E,i)),t>=200&&300>t||304===t?(p.ifModified&&((x=E.getResponseHeader("Last-Modified"))&&(_.lastModified[o]=x),(x=E.getResponseHeader("etag"))&&(_.etag[o]=x)),204===t?(u=!0,T="nocontent"):304===t?(u=!0,T="notmodified"):(T=(u=function(t,e){var n,i,r,o,s={},a=0,l=t.dataTypes.slice(),c=l[0];if(t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l[1])for(r in t.converters)s[r.toLowerCase()]=t.converters[r];for(;i=l[++a];)if("*"!==i){if("*"!==c&&c!==i){if(!(r=s[c+" "+i]||s["* "+i]))for(n in s)if((o=n.split(" "))[1]===i&&(r=s[c+" "+o[0]]||s["* "+o[0]])){!0===r?r=s[n]:!0!==s[n]&&(i=o[0],l.splice(a--,0,i));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+c+" to "+i}}}c=i}return{state:"success",data:e}}(p,w)).state,v=u.data,u=!(y=u.error))):(y=T,(t||!T)&&(T="error",0>t&&(t=0))),E.status=t,E.statusText=(n||T)+"",u?f.resolveWith(h,[v,T,E]):f.rejectWith(h,[E,T,y]),E.statusCode(m),m=e,l&&d.trigger(u?"ajaxSuccess":"ajaxError",[E,p,u?v:y]),g.fireWith(h,[E,T]),l&&(d.trigger("ajaxComplete",[E,p]),--_.active||_.event.trigger("ajaxStop")))}return E},getScript:function(t,n){return _.get(t,e,n,"script")},getJSON:function(t,e,n){return _.get(t,e,n,"json")}}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),_.ajaxTransport("script",function(t){if(t.crossDomain){var n,i=o.head||_("head")[0]||o.documentElement;return{send:function(e,r){(n=o.createElement("script")).async=!0,t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,e||r(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(e,!0)}}}});var Ie=[],De=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ie.pop()||_.expando+"_"+ge++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",function(n,i,r){var o,s,a,l=!1!==n.jsonp&&(De.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&De.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=_.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(De,"$1"+o):!1!==n.jsonp&&(n.url+=(me.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return a||_.error(o+" was not called"),a[0]},n.dataTypes[0]="json",s=t[o],t[o]=function(){a=arguments},r.always(function(){t[o]=s,n[o]&&(n.jsonpCallback=i.jsonpCallback,Ie.push(o)),a&&_.isFunction(s)&&s(a[0]),a=s=e}),"script"):e});var je,Oe,Pe=0,He=t.ActiveXObject&&function(){var t;for(t in je)je[t](e,!0)};function Re(){try{return new t.XMLHttpRequest}catch(t){}}_.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&Re()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:Re,Oe=_.ajaxSettings.xhr(),_.support.cors=!!Oe&&"withCredentials"in Oe,(Oe=_.support.ajax=!!Oe)&&_.ajaxTransport(function(n){var i;if(!n.crossDomain||_.support.cors)return{send:function(r,o){var s,a,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");try{for(a in r)l.setRequestHeader(a,r[a])}catch(t){}l.send(n.hasContent&&n.data||null),i=function(t,r){var a,c,u,p;try{if(i&&(r||4===l.readyState))if(i=e,s&&(l.onreadystatechange=_.noop,He&&delete je[s]),r)4!==l.readyState&&l.abort();else{p={},a=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{u=l.statusText}catch(t){u=""}a||!n.isLocal||n.crossDomain?1223===a&&(a=204):a=p.text?200:404}}catch(t){r||o(-1,t)}p&&o(a,u,p,c)},n.async?4===l.readyState?setTimeout(i):(s=++Pe,He&&(je||(je={},_(t).unload(He)),je[s]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(e,!0)}}});var Le,$e,Fe=/^(?:toggle|show|hide)$/,Me=RegExp("^(?:([+-])=|)("+b+")([a-z%]*)$","i"),Be=/queueHooks$/,ze=[function(t,e,n){var i,r,o,s,a,l,c,u,p,h=this,d=t.style,f={},g=[],m=t.nodeType&&te(t);for(r in n.queue||(null==(u=_._queueHooks(t,"fx")).unqueued&&(u.unqueued=0,p=u.empty.fire,u.empty.fire=function(){u.unqueued||p()}),u.unqueued++,h.always(function(){h.always(function(){u.unqueued--,_.queue(t,"fx").length||u.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===_.css(t,"display")&&"none"===_.css(t,"float")&&(_.support.inlineBlockNeedsLayout&&"inline"!==oe(t.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",_.support.shrinkWrapBlocks||h.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),e)if(s=e[r],Fe.exec(s)){if(delete e[r],l=l||"toggle"===s,s===(m?"hide":"show"))continue;g.push(r)}if(o=g.length){"hidden"in(a=_._data(t,"fxshow")||_._data(t,"fxshow",{}))&&(m=a.hidden),l&&(a.hidden=!m),m?_(t).show():h.done(function(){_(t).hide()}),h.done(function(){var e;for(e in _._removeData(t,"fxshow"),f)_.style(t,e,f[e])});for(r=0;o>r;r++)i=g[r],c=h.createTween(i,m?a[i]:0),f[i]=a[i]||_.style(t,i),i in a||(a[i]=c.start,m&&(c.end=c.start,c.start="width"===i||"height"===i?1:0))}}],We={"*":[function(t,e){var n,i,r=this.createTween(t,e),o=Me.exec(e),s=r.cur(),a=+s||0,l=1,c=20;if(o){if(n=+o[2],"px"!==(i=o[3]||(_.cssNumber[t]?"":"px"))&&a){a=_.css(r.elem,t,!0)||n||1;do{a/=l=l||".5",_.style(r.elem,t,a+i)}while(l!==(l=r.cur()/s)&&1!==l&&--c)}r.unit=i,r.start=a,r.end=o[1]?a+(o[1]+1)*n:n}return r}]};function qe(){return setTimeout(function(){Le=e}),Le=_.now()}function Ue(t,e,n){var i,r,o=0,s=ze.length,a=_.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Le||qe(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,s=c.tweens.length;s>o;o++)c.tweens[o].run(i);return a.notifyWith(t,[c,i,n]),1>i&&s?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Le||qe(),duration:n.duration,tweens:[],createTween:function(e,n){var i=_.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,r,o,s;for(r in t)if(i=_.camelCase(r),o=e[i],n=t[r],_.isArray(n)&&(o=n[1],n=t[r]=n[0]),r!==i&&(t[i]=n,delete t[r]),(s=_.cssHooks[i])&&"expand"in s)for(r in n=s.expand(n),delete t[i],n)r in t||(t[r]=n[r],e[r]=o);else e[i]=o}(u,c.opts.specialEasing);s>o;o++)if(i=ze[o].call(c,t,u,c.opts))return i;return function(t,e){_.each(e,function(e,n){for(var i=(We[e]||[]).concat(We["*"]),r=0,o=i.length;o>r;r++)if(i[r].call(t,e,n))return})}(c,u),_.isFunction(c.opts.start)&&c.opts.start.call(t,c),_.fx.timer(_.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function Ge(t,e,n,i,r){return new Ge.prototype.init(t,e,n,i,r)}function Ve(t,e){var n,i={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)i["margin"+(n=Xt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function Ke(t){return _.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}_.Animation=_.extend(Ue,{tweener:function(t,e){_.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;r>i;i++)n=t[i],We[n]=We[n]||[],We[n].unshift(e)},prefilter:function(t,e){e?ze.unshift(t):ze.push(t)}}),_.Tween=Ge,Ge.prototype={constructor:Ge,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var t=Ge.propHooks[this.prop];return t&&t.get?t.get(this):Ge.propHooks._default.get(this)},run:function(t){var e,n=Ge.propHooks[this.prop];return this.pos=e=this.options.duration?_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ge.propHooks._default.set(this),this}},Ge.prototype.init.prototype=Ge.prototype,Ge.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[_.cssProps[t.prop]]||_.cssHooks[t.prop])?_.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Ge.propHooks.scrollTop=Ge.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.each(["toggle","show","hide"],function(t,e){var n=_.fn[e];_.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(Ve(e,!0),t,i,r)}}),_.fn.extend({fadeTo:function(t,e,n,i){return this.filter(te).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=_.isEmptyObject(t),o=_.speed(e,n,i),s=function(){var e=Ue(this,_.extend({},t),o);s.finish=function(){e.stop(!0)},(r||_._data(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,n,i){var r=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=n,n=t,t=e),n&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",o=_.timers,s=_._data(this);if(n)s[n]&&s[n].stop&&r(s[n]);else for(n in s)s[n]&&s[n].stop&&Be.test(n)&&r(s[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(i),e=!1,o.splice(n,1));(e||!i)&&_.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=_._data(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=_.timers,s=i?i.length:0;for(n.finish=!0,_.queue(this,t,[]),r&&r.cur&&r.cur.finish&&r.cur.finish.call(this),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),_.each({slideDown:Ve("show"),slideUp:Ve("hide"),slideToggle:Ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){_.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),_.speed=function(t,e,n){var i=t&&"object"==typeof t?_.extend({},t):{complete:n||!n&&e||_.isFunction(t)&&t,duration:t,easing:n&&e||e&&!_.isFunction(e)&&e};return i.duration=_.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in _.fx.speeds?_.fx.speeds[i.duration]:_.fx.speeds._default,(null==i.queue||!0===i.queue)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){_.isFunction(i.old)&&i.old.call(this),i.queue&&_.dequeue(this,i.queue)},i},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},_.timers=[],_.fx=Ge.prototype.init,_.fx.tick=function(){var t,n=_.timers,i=0;for(Le=_.now();n.length>i;i++)(t=n[i])()||n[i]!==t||n.splice(i--,1);n.length||_.fx.stop(),Le=e},_.fx.timer=function(t){t()&&_.timers.push(t)&&_.fx.start()},_.fx.interval=13,_.fx.start=function(){$e||($e=setInterval(_.fx.tick,_.fx.interval))},_.fx.stop=function(){clearInterval($e),$e=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fx.step={},_.expr&&_.expr.filters&&(_.expr.filters.animated=function(t){return _.grep(_.timers,function(e){return t===e.elem}).length}),_.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){_.offset.setOffset(this,t,e)});var n,i,o={top:0,left:0},s=this[0],a=s&&s.ownerDocument;return a?(n=a.documentElement,_.contains(n,s)?(typeof s.getBoundingClientRect!==r&&(o=s.getBoundingClientRect()),i=Ke(a),{top:o.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o):void 0},_.offset={setOffset:function(t,e,n){var i=_.css(t,"position");"static"===i&&(t.style.position="relative");var r,o,s=_(t),a=s.offset(),l=_.css(t,"top"),c=_.css(t,"left"),u={},p={};("absolute"===i||"fixed"===i)&&_.inArray("auto",[l,c])>-1?(r=(p=s.position()).top,o=p.left):(r=parseFloat(l)||0,o=parseFloat(c)||0),_.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+o),"using"in e?e.using.call(t,u):s.css(u)}},_.fn.extend({position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===_.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),_.nodeName(t[0],"html")||(n=t.offset()),n.top+=_.css(t[0],"borderTopWidth",!0),n.left+=_.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-_.css(i,"marginTop",!0),left:e.left-n.left-_.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||o.documentElement;t&&!_.nodeName(t,"html")&&"static"===_.css(t,"position");)t=t.offsetParent;return t||o.documentElement})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i=/Y/.test(n);_.fn[t]=function(r){return _.access(this,function(t,r,o){var s=Ke(t);return o===e?s?n in s?s[n]:s.document.documentElement[r]:t[r]:(s?s.scrollTo(i?_(s).scrollLeft():o,i?o:_(s).scrollTop()):t[r]=o,e)},t,r,arguments.length,null)}}),_.each({Height:"height",Width:"width"},function(t,n){_.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,r){_.fn[r]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return _.access(this,function(n,i,r){var o;return _.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):r===e?_.css(n,i,a):_.style(n,i,r,a)},n,s?r:e,s,null)}})}),t.jQuery=t.$=_,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return _})}(window),function(t){function e(){var t=location.href;return hashtag=-1!==t.indexOf("#prettyPhoto")&&decodeURI(t.substring(t.indexOf("#prettyPhoto")+1,t.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function n(t,e){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^]*)").exec(e);return null==n?"":n[1]}t.prettyPhoto={version:"3.1.6"},t.fn.prettyPhoto=function(i){function r(){t(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(w/2-h.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:h.contentHeight,width:h.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:x/2-h.containerWidth/2<0?0:x/2-h.containerWidth/2,width:h.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(h.height).width(h.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==l(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(h.resized?t("a.pp_expand,a.pp_contract").show():t("a.pp_expand").hide()),!settings.autoplay_slideshow||y||d||t.prettyPhoto.startSlideshow(),settings.changepicturecallback(),d=!0}),isSet&&settings.overlay_gallery&&"image"==l(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((h.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage
x||m>w)&&doresize&&settings.allow_resize&&!b){for(resized=!0,fitting=!1;!fitting;)v>x?(imageWidth=x-200,imageHeight=e/t*imageWidth):m>w?(imageHeight=w-200,imageWidth=t/e*imageHeight):fitting=!0,m=imageHeight,v=imageWidth;(v>x||m>w)&&s(v,m),a(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(m),containerWidth:Math.floor(v)+2*settings.horizontal_padding,contentHeight:Math.floor(f),contentWidth:Math.floor(g),resized:resized}}function a(e,n){e=parseFloat(e),n=parseFloat(n),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(e),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(e).appendTo(t("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(e),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(t("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),f=n+detailsHeight,g=e,m=f+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),v=e}function l(t){return t.match(/youtube\.com\/watch/i)||t.match(/youtu\.be/i)?"youtube":t.match(/vimeo\.com/i)?"vimeo":t.match(/\b.mov\b/i)?"quicktime":t.match(/\b.swf\b/i)?"flash":t.match(/\biframe=true\b/i)?"iframe":t.match(/\bajax=true\b/i)?"ajax":t.match(/\bcustom=true\b/i)?"custom":"#"==t.substr(0,1)?"inline":"image"}function c(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=u(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=w/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>w)return;$pp_pic_holder.css({top:projectedTop,left:x/2+scroll_pos.scrollLeft-contentwidth/2})}}function u(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function p(){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),t("body").append(settings.markup),$pp_pic_holder=t(".pp_pic_holder"),$ppt=t(".ppt"),$pp_overlay=t("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0,toInject="";for(var e=0;e
";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=t(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return t.prettyPhoto.changeGalleryPage("next"),t.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return t.prettyPhoto.changeGalleryPage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(e){t(this).find("a").click(function(){return t.prettyPhoto.changePage(e),t.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:t(document).height(),width:t(window).width()}).bind("click",function(){settings.modal||t.prettyPhoto.close()}),t("a.pp_close").bind("click",function(){return t.prettyPhoto.close(),!1}),settings.allow_expand&&t("a.pp_expand").bind("click",function(){return t(this).hasClass("pp_expand")?(t(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(t(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),o(function(){t.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return t.prettyPhoto.changePage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return t.prettyPhoto.changePage("next"),t.prettyPhoto.stopSlideshow(),!1}),c()}i=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:' \t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t
Expand \t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
next \t\t\t\t\t\t\t\t\t\t\t
previous \t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t
Previous \t\t\t\t\t\t\t\t\t\t\t\t
0/0
\t\t\t\t\t\t\t\t\t\t\t\t
Next \t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
{pp_social}
\t\t\t\t\t\t\t\t\t\t\t
Close \t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t\t',gallery_markup:' \t\t\t\t\t\t\t\t
Previous \t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
Next \t\t\t\t\t\t\t
',image_markup:'
',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'{content}
',custom_markup:"",social_tools:'