$.fn.extend({actual:function(a,k){var b,c,g,f,e,j,d,h;if(!this[a]){throw'$.actual => The jQuery method "'+a+'" you called does not exist'}g=$.extend({absolute:false,clone:false},k);c=this;d=g.clone===true?function(){c=c.filter(":first").clone().css({position:"absolute",top:-1000}).appendTo("body")}:function(){b=c.parents().andSelf().filter(":hidden");f=g.absolute===true?{position:"absolute",visibility:"hidden",display:"block"}:{visibility:"hidden",display:"block"};e=[];b.each(function(){var m={},l;for(l in f){m[l]=this.style[l];this.style[l]=f[l]}e.push(m)})};h=g.clone===true?function(){c.remove()}:function(){b.each(function(m){var n=e[m],l;for(l in f){this.style[l]=n[l]}})};d();j=c[a]();h();return j}});(function(a){a.address=(function(){var d=function(an){a(a.address).trigger(a.extend(a.Event(an),(function(){var ar={},aq=a.address.parameterNames();for(var ap=0,ao=aq.length;ap<ao;ap++){ar[aq[ap]]=a.address.parameter(aq[ap])}return{value:a.address.value(),path:a.address.path(),pathNames:a.address.pathNames(),parameterNames:aq,parameters:ar,queryString:a.address.queryString()}}).call(a.address)))},k=function(ap,ao,an){a().bind.apply(a(a.address),Array.prototype.slice.call(arguments));return a.address},Q=function(){return(ae.pushState&&H.state!==L)},K=function(){return("/"+aa.pathname.replace(new RegExp(H.state),"")+aa.search+(W()?"#"+W():"")).replace(S,"/")},W=function(){var an=aa.href.indexOf("#");return an!=-1?G(aa.href.substr(an+1),af):""},C=function(){return Q()?K():W()},b=function(){try{return top.document!==L?top:window}catch(an){return window}},m=function(){return"javascript"},al=function(an){an=an.toString();return(H.strict&&an.substr(0,1)!="/"?"/":"")+an},G=function(an,ao){if(H.crawlable&&ao){return(an!==""?"!":"")+an}return an.replace(/^\!/,"")},V=function(an,ao){return parseInt(an.css(ao),10)},l=function(ar){var ao,aq;for(var ap=0,an=ar.childNodes.length;ap<an;ap++){try{if("src" in ar.childNodes[ap]&&ar.childNodes[ap].src){ao=String(ar.childNodes[ap].src)}}catch(at){}aq=l(ar.childNodes[ap]);if(aq){ao=aq}}return ao},ad=function(){if(!v){var ao=C(),an=Y!=ao;if(an){if(h&&s<7){aa.reload()}else{if(h&&s<8&&H.history){o(I,50)}Y=ao;ab(af)}}}},ab=function(an){d(J);d(an?g:ak);o(z,10)},z=function(){if(H.tracker!=="null"&&H.tracker!==null){var an=a.isFunction(H.tracker)?H.tracker:T[H.tracker],ao=(aa.pathname+aa.search+(a.address&&!Q()?a.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,"");if(a.isFunction(an)){an(ao)}else{if(a.isFunction(T.urchinTracker)){T.urchinTracker(ao)}else{if(T.pageTracker!==L&&a.isFunction(T.pageTracker._trackPageview)){T.pageTracker._trackPageview(ao)}else{if(T._gaq!==L&&a.isFunction(T._gaq.push)){T._gaq.push(["_trackPageview",decodeURI(ao)])}}}}}},I=function(){var an=m()+":"+af+";document.open();document.writeln('<html><head><title>"+ai.title.replace("'","\\'")+"</title><script>var "+B+' = "'+encodeURIComponent(C())+(ai.domain!=aa.hostname?'";document.domain="'+ai.domain:"")+"\";<\/script></head></html>');document.close();";if(s<7){e.src=an}else{e.contentWindow.location.replace(an)}},ag=function(){if(j&&c!=-1){var ao,an=j.substr(c+1).split("&");for(i=0;i<an.length;i++){ao=an[i].split("=");if(/^(autoUpdate|crawlable|history|strict|wrap)$/.test(ao[0])){H[ao[0]]=(isNaN(ao[1])?/^(true|yes)$/i.test(ao[1]):(parseInt(ao[1],10)!==0))}if(/^(state|tracker)$/.test(ao[0])){H[ao[0]]=ao[1]}}j=null}Y=C()},U=function(){if(!Z){Z=F;ag();var ap=function(){y.call(this);t.call(this)},ao=a("body").ajaxComplete(ap);ap();if(H.wrap){var aq=a("body > *").wrapAll('<div style="padding:'+(V(ao,"marginTop")+V(ao,"paddingTop"))+"px "+(V(ao,"marginRight")+V(ao,"paddingRight"))+"px "+(V(ao,"marginBottom")+V(ao,"paddingBottom"))+"px "+(V(ao,"marginLeft")+V(ao,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+B+'" style="height:100%;overflow:auto;position:relative;'+(u&&!window.statusbar.visible?"resize:both;":"")+'" />');a("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"});if(u){a('<style type="text/css" />').appendTo("head").text("#"+B+"::-webkit-resizer { background-color: #fff; }")}}if(h&&s<8){var an=ai.getElementsByTagName("frameset")[0];e=ai.createElement((an?"":"i")+"frame");if(an){an.insertAdjacentElement("beforeEnd",e);an[an.cols?"cols":"rows"]+=",0";e.noResize=F;e.frameBorder=e.frameSpacing=0}else{e.style.display="none";e.style.width=e.style.height=0;e.tabIndex=-1;ai.body.insertAdjacentElement("afterBegin",e)}o(function(){a(e).bind("load",function(){var ar=e.contentWindow;Y=ar[B]!==L?ar[B]:"";if(Y!=C()){ab(af);aa.hash=G(Y,F)}});if(e.contentWindow[B]===L){I()}},50)}o(function(){d("init");ab(af)},1);if(!Q()){if((h&&s>7)||(!h&&("on"+X) in T)){if(T.addEventListener){T.addEventListener(X,ad,af)}else{if(T.attachEvent){T.attachEvent("on"+X,ad)}}}else{w(ad,50)}}}},y=function(){var aq,at=a("a"),ar=at.size(),ao=1,an=-1,ap=function(){if(++an!=ar){aq=a(at.get(an));if(aq.is('[rel*="address:"]')){aq.address()}o(ap,ao)}};o(ap,ao)},r=function(){if(Y!=C()){Y=C();ab(af)}},q=function(){if(T.removeEventListener){T.removeEventListener(X,ad,af)}else{if(T.detachEvent){T.detachEvent("on"+X,ad)}}},t=function(){if(H.crawlable){var ao=aa.pathname.replace(/\/$/,""),an="_escaped_fragment_";if(a("body").html().indexOf(an)!=-1){a('a[href]:not([href^=http]), a[href*="'+document.domain+'"]').each(function(){var ap=a(this).attr("href").replace(/^http:/,"").replace(new RegExp(ao+"/?$"),"");if(ap===""||ap.indexOf(an)!=-1){a(this).attr("href","#"+ap.replace(new RegExp("/(.*)\\?"+an+"=(.*)$"),"!$2"))}})}}},L,B="jQueryAddress",ac="string",X="hashchange",n="init",J="change",g="internalChange",ak="externalChange",F=true,af=false,H={autoUpdate:F,crawlable:af,history:F,strict:F,wrap:af},E=a.browser,s=parseFloat(a.browser.version),ah=E.mozilla,h=E.msie,P=E.opera,u=E.webkit||E.safari,aj=af,T=b(),ai=T.document,ae=T.history,aa=T.location,w=setInterval,o=setTimeout,S=/\/{2,9}/g,am=navigator.userAgent,e,N,j=l(document),c=j?j.indexOf("?"):-1,M=ai.title,v=af,Z=af,R=F,O=F,A=af,D={},Y=C();if(h){s=parseFloat(am.substr(am.indexOf("MSIE")+4));if(ai.documentMode&&ai.documentMode!=s){s=ai.documentMode!=8?7:8}var x=ai.onpropertychange;ai.onpropertychange=function(){if(x){x.call(ai)}if(ai.title!=M&&ai.title.indexOf("#"+C())!=-1){ai.title=M}}}aj=(ah&&s>=1)||(h&&s>=6)||(P&&s>=9.5)||(u&&s>=523);if(aj){if(P){history.navigationMode="compatible"}if(document.readyState=="complete"){var f=setInterval(function(){if(a.address){U();clearInterval(f)}},50)}else{ag();a(U)}a(window).bind("popstate",r).bind("unload",q)}else{if(!aj&&W()!==""){aa.replace(aa.href.substr(0,aa.href.indexOf("#")))}else{z()}}return{bind:function(ao,ap,an){return k(ao,ap,an)},init:function(an){return k(n,an)},change:function(an){return k(J,an)},internalChange:function(an){return k(g,an)},externalChange:function(an){return k(ak,an)},baseURL:function(){var an=aa.href;if(an.indexOf("#")!=-1){an=an.substr(0,an.indexOf("#"))}if(/\/$/.test(an)){an=an.substr(0,an.length-1)}return an},autoUpdate:function(an){if(an!==L){H.autoUpdate=an;return this}return H.autoUpdate},crawlable:function(an){if(an!==L){H.crawlable=an;return this}return H.crawlable},history:function(an){if(an!==L){H.history=an;return this}return H.history},state:function(an){if(an!==L){H.state=an;var ao=K();if(H.state!==L){if(ae.pushState){if(ao.substr(0,3)=="/#/"){aa.replace(H.state.replace(/^\/$/,"")+ao.substr(2))}}else{if(ao!="/"&&ao.replace(/^\/#/,"")!=W()){o(function(){aa.replace(H.state.replace(/^\/$/,"")+"/#"+ao)},1)}}}return this}return H.state},strict:function(an){if(an!==L){H.strict=an;return this}return H.strict},tracker:function(an){if(an!==L){H.tracker=an;return this}return H.tracker},wrap:function(an){if(an!==L){H.wrap=an;return this}return H.wrap},update:function(){A=F;this.value(Y);A=af;return this},title:function(an){if(an!==L){o(function(){M=ai.title=an;if(O&&e&&e.contentWindow&&e.contentWindow.document){e.contentWindow.document.title=an;O=af}if(!R&&ah){aa.replace(aa.href.indexOf("#")!=-1?aa.href:aa.href+"#")}R=af},50);return this}return ai.title},value:function(an){if(an!==L){an=al(an);if(an=="/"){an=""}if(Y==an&&!A){return}R=F;Y=an;if(H.autoUpdate||A){ab(F);if(Q()){ae[H.history?"pushState":"replaceState"]({},"",H.state.replace(/\/$/,"")+(Y===""?"/":Y))}else{v=F;if(u){if(H.history){aa.hash="#"+G(Y,F)}else{aa.replace("#"+G(Y,F))}}else{if(Y!=C()){if(H.history){aa.hash="#"+G(Y,F)}else{aa.replace("#"+G(Y,F))}}}if((h&&s<8)&&H.history){o(I,50)}if(u){o(function(){v=af},1)}else{v=af}}}return this}if(!aj){return null}return al(Y)},path:function(ao){if(ao!==L){var an=this.queryString(),ap=this.hash();this.value(ao+(an?"?"+an:"")+(ap?"#"+ap:""));return this}return al(Y).split("#")[0].split("?")[0]},pathNames:function(){var ao=this.path(),an=ao.replace(S,"/").split("/");if(ao.substr(0,1)=="/"||ao.length===0){an.splice(0,1)}if(ao.substr(ao.length-1,1)=="/"){an.splice(an.length-1,1)}return an},queryString:function(ao){if(ao!==L){var ap=this.hash();this.value(this.path()+(ao?"?"+ao:"")+(ap?"#"+ap:""));return this}var an=Y.split("?");return an.slice(1,an.length).join("?").split("#")[0]},parameter:function(ao,ax,aq){var av,at;if(ax!==L){var aw=this.parameterNames();at=[];ax=ax?ax.toString():"";for(av=0;av<aw.length;av++){var ar=aw[av],ay=this.parameter(ar);if(typeof ay==ac){ay=[ay]}if(ar==ao){ay=(ax===null||ax==="")?[]:(aq?ay.concat([ax]):[ax])}for(var au=0;au<ay.length;au++){at.push(ar+"="+ay[au])}}if(a.inArray(ao,aw)==-1&&ax!==null&&ax!==""){at.push(ao+"="+ax)}this.queryString(at.join("&"));return this}ax=this.queryString();if(ax){var an=[];at=ax.split("&");for(av=0;av<at.length;av++){var ap=at[av].split("=");if(ap[0]==ao){an.push(ap.slice(1).join("="))}}if(an.length!==0){return an.length!=1?an:an[0]}}},parameterNames:function(){var an=this.queryString(),aq=[];if(an&&an.indexOf("=")!=-1){var ar=an.split("&");for(var ap=0;ap<ar.length;ap++){var ao=ar[ap].split("=")[0];if(a.inArray(ao,aq)==-1){aq.push(ao)}}}return aq},hash:function(ao){if(ao!==L){this.value(Y.split("#")[0]+(ao?"#"+ao:""));return this}var an=Y.split("#");return an.slice(1,an.length).join("#")}}})();a.fn.address=function(b){if(!a(this).attr("address")){var c=function(f){if(f.shiftKey||f.ctrlKey||f.metaKey){return true}if(a(this).is("a")){var d=b?b.call(this):/address:/.test(a(this).attr("rel"))?a(this).attr("rel").split("address:")[1].split(" ")[0]:a.address.state()!==undefined&&a.address.state()!="/"?a(this).attr("href").replace(new RegExp("^(.*"+a.address.state()+"|\\.)"),""):a(this).attr("href").replace(/^(#\!?|\.)/,"");a.address.value(d);f.preventDefault()}};a(this).click(c).live("click",c).live("submit",function(g){if(a(this).is("form")){var f=a(this).attr("action"),d=b?b.call(this):(f.indexOf("?")!=-1?f.replace(/&$/,""):f+"?")+a(this).serialize();a.address.value(d);g.preventDefault()}}).attr("address",true)}return this}})(jQuery);(function(a){a.cookie=function(e,f,c){if(arguments.length>1&&String(f)!=="[object Object]"){c=jQuery.extend({},c);if(f===null||f===undefined){c.expires=-1}if(typeof c.expires==="number"){var h=c.expires,d=c.expires=new Date();d.setDate(d.getDate()+h)}f=String(f);return(document.cookie=[encodeURIComponent(e),"=",c.raw?f:encodeURIComponent(f),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join(""))}c=f||{};var b,g=c.raw?function(j){return j}:decodeURIComponent;return(b=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?g(b[1]):null}})(jQuery);(function(g){function b(){this.regional=[];this.regional[""]={labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,timeSeparator:":",isRTL:false};this._defaults={until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:false,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1};g.extend(this._defaults,this.regional[""]);this._serverSyncs=[]}var k="countdown";var c=0;var h=1;var d=2;var a=3;var l=4;var j=5;var f=6;g.extend(b.prototype,{markerClassName:"hasCountdown",_timer:setInterval(function(){g.countdown._updateTargets()},980),_timerTargets:[],setDefaults:function(m){this._resetExtraLabels(this._defaults,m);e(this._defaults,m||{})},UTCDate:function(o,t,r,u,v,n,q,m){if(typeof t=="object"&&t.constructor==Date){m=t.getMilliseconds();q=t.getSeconds();n=t.getMinutes();v=t.getHours();u=t.getDate();r=t.getMonth();t=t.getFullYear()}var s=new Date();s.setUTCFullYear(t);s.setUTCDate(1);s.setUTCMonth(r||0);s.setUTCDate(u||1);s.setUTCHours(v||0);s.setUTCMinutes((n||0)-(Math.abs(o)<30?o*60:o));s.setUTCSeconds(q||0);s.setUTCMilliseconds(m||0);return s},periodsToSeconds:function(m){return m[0]*31557600+m[1]*2629800+m[2]*604800+m[3]*86400+m[4]*3600+m[5]*60+m[6]},_settingsCountdown:function(o,m){if(!m){return g.countdown._defaults}var n=g.data(o,k);return(m=="all"?n.options:n.options[m])},_attachCountdown:function(q,n){var m=g(q);if(m.hasClass(this.markerClassName)){return}m.addClass(this.markerClassName);var o={options:g.extend({},n),_periods:[0,0,0,0,0,0,0]};g.data(q,k,o);this._changeCountdown(q)},_addTarget:function(m){if(!this._hasTarget(m)){this._timerTargets.push(m)}},_hasTarget:function(m){return(g.inArray(m,this._timerTargets)>-1)},_removeTarget:function(m){this._timerTargets=g.map(this._timerTargets,function(n){return(n==m?null:n)})},_updateTargets:function(){for(var m=this._timerTargets.length-1;m>=0;m--){this._updateCountdown(this._timerTargets[m])}},_updateCountdown:function(t,r){var o=g(t);r=r||g.data(t,k);if(!r){return}o.html(this._generateHTML(r));o[(this._get(r,"isRTL")?"add":"remove")+"Class"]("countdown_rtl");var q=this._get(r,"onTick");if(q){var u=r._hold!="lap"?r._periods:this._calculatePeriods(r,r._show,this._get(r,"significant"),new Date());var m=this._get(r,"tickInterval");if(m==1||this.periodsToSeconds(u)%m==0){q.apply(t,[u])}}var v=r._hold!="pause"&&(r._since?r._now.getTime()<r._since.getTime():r._now.getTime()>=r._until.getTime());if(v&&!r._expiring){r._expiring=true;if(this._hasTarget(t)||this._get(r,"alwaysExpire")){this._removeTarget(t);var n=this._get(r,"onExpiry");if(n){n.apply(t,[])}var x=this._get(r,"expiryText");if(x){var s=this._get(r,"layout");r.options.layout=x;this._updateCountdown(t,r);r.options.layout=s}var w=this._get(r,"expiryUrl");if(w){window.location=w}}r._expiring=false}else{if(r._hold=="pause"){this._removeTarget(t)}}g.data(t,k,r)},_changeCountdown:function(s,o,r){o=o||{};if(typeof o=="string"){var n=o;o={};o[n]=r}var q=g.data(s,k);if(q){this._resetExtraLabels(q.options,o);e(q.options,o);this._adjustSettings(s,q);g.data(s,k,q);var m=new Date();if((q._since&&q._since<m)||(q._until&&q._until>m)){this._addTarget(s)}this._updateCountdown(s,q)}},_resetExtraLabels:function(q,m){var o=false;for(var r in m){if(r!="whichLabels"&&r.match(/[Ll]abels/)){o=true;break}}if(o){for(var r in q){if(r.match(/[Ll]abels[0-9]/)){q[r]=null}}}},_adjustSettings:function(t,r){var n;var u=this._get(r,"serverSync");var q=0;var v=null;for(var o=0;o<this._serverSyncs.length;o++){if(this._serverSyncs[o][0]==u){v=this._serverSyncs[o][1];break}}if(v!=null){q=(u?v:0);n=new Date()}else{var m=(u?u.apply(t,[]):null);n=new Date();q=(m?n.getTime()-m.getTime():0);this._serverSyncs.push([u,q])}var s=this._get(r,"timezone");s=(s==null?-n.getTimezoneOffset():s);r._since=this._get(r,"since");if(r._since!=null){r._since=this.UTCDate(s,this._determineTime(r._since,null));if(r._since&&q){r._since.setMilliseconds(r._since.getMilliseconds()+q)}}r._until=this.UTCDate(s,this._determineTime(this._get(r,"until"),n));if(q){r._until.setMilliseconds(r._until.getMilliseconds()+q)}r._show=this._determineShow(r)},_destroyCountdown:function(n){var m=g(n);if(!m.hasClass(this.markerClassName)){return}this._removeTarget(n);m.removeClass(this.markerClassName).empty();g.removeData(n,k)},_pauseCountdown:function(m){this._hold(m,"pause")},_lapCountdown:function(m){this._hold(m,"lap")},_resumeCountdown:function(m){this._hold(m,null)},_hold:function(q,o){var n=g.data(q,k);if(n){if(n._hold=="pause"&&!o){n._periods=n._savePeriods;var m=(n._since?"-":"+");n[n._since?"_since":"_until"]=this._determineTime(m+n._periods[0]+"y"+m+n._periods[1]+"o"+m+n._periods[2]+"w"+m+n._periods[3]+"d"+m+n._periods[4]+"h"+m+n._periods[5]+"m"+m+n._periods[6]+"s");this._addTarget(q)}n._hold=o;n._savePeriods=(o=="pause"?n._periods:null);g.data(q,k,n);this._updateCountdown(q,n)}},_getTimesCountdown:function(n){var m=g.data(n,k);return(!m?null:(!m._hold?m._periods:this._calculatePeriods(m,m._show,this._get(m,"significant"),new Date())))},_get:function(n,m){return(n.options[m]!=null?n.options[m]:g.countdown._defaults[m])},_determineTime:function(q,m){var o=function(t){var s=new Date();s.setTime(s.getTime()+t*1000);return s};var n=function(w){w=w.toLowerCase();var t=new Date();var A=t.getFullYear();var y=t.getMonth();var B=t.getDate();var v=t.getHours();var u=t.getMinutes();var s=t.getSeconds();var z=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g;var x=z.exec(w);while(x){switch(x[2]||"s"){case"s":s+=parseInt(x[1],10);break;case"m":u+=parseInt(x[1],10);break;case"h":v+=parseInt(x[1],10);break;case"d":B+=parseInt(x[1],10);break;case"w":B+=parseInt(x[1],10)*7;break;case"o":y+=parseInt(x[1],10);B=Math.min(B,g.countdown._getDaysInMonth(A,y));break;case"y":A+=parseInt(x[1],10);B=Math.min(B,g.countdown._getDaysInMonth(A,y));break}x=z.exec(w)}return new Date(A,y,B,v,u,s,0)};var r=(q==null?m:(typeof q=="string"?n(q):(typeof q=="number"?o(q):q)));if(r){r.setMilliseconds(0)}return r},_getDaysInMonth:function(m,n){return 32-new Date(m,n,32).getDate()},_normalLabels:function(m){return m},_generateHTML:function(r){var C=this._get(r,"significant");r._periods=(r._hold?r._periods:this._calculatePeriods(r,r._show,C,new Date()));var x=false;var n=0;var q=C;var z=g.extend({},r._show);for(var w=c;w<=f;w++){x|=(r._show[w]=="?"&&r._periods[w]>0);z[w]=(r._show[w]=="?"&&!x?null:r._show[w]);n+=(z[w]?1:0);q-=(r._periods[w]>0?1:0)}var y=[false,false,false,false,false,false,false];for(var w=f;w>=c;w--){if(r._show[w]){if(r._periods[w]){y[w]=true}else{y[w]=q>0;q--}}}var v=this._get(r,"compact");var t=this._get(r,"layout");var s=(v?this._get(r,"compactLabels"):this._get(r,"labels"));var m=this._get(r,"whichLabels")||this._normalLabels;var B=this._get(r,"timeSeparator");var A=this._get(r,"description")||"";var u=function(E){var D=g.countdown._get(r,"compactLabels"+m(r._periods[E]));return(z[E]?r._periods[E]+(D?D[E]:s[E])+" ":"")};var o=function(E){var D=g.countdown._get(r,"labels"+m(r._periods[E]));return((!C&&z[E])||(C&&y[E])?'<span class="countdown_section"><span class="countdown_amount">'+r._periods[E]+"</span><br/>"+(D?D[E]:s[E])+"</span>":"")};return(t?this._buildLayout(r,z,t,v,C,y):((v?'<span class="countdown_row countdown_amount'+(r._hold?" countdown_holding":"")+'">'+u(c)+u(h)+u(d)+u(a)+(z[l]?this._minDigits(r._periods[l],2):"")+(z[j]?(z[l]?B:"")+this._minDigits(r._periods[j],2):"")+(z[f]?(z[l]||z[j]?B:"")+this._minDigits(r._periods[f],2):""):'<span class="countdown_row countdown_show'+(C||n)+(r._hold?" countdown_holding":"")+'">'+o(c)+o(h)+o(d)+o(a)+o(l)+o(j)+o(f))+"</span>"+(A?'<span class="countdown_row countdown_descr">'+A+"</span>":"")))},_buildLayout:function(s,z,u,w,A,y){var t=this._get(s,(w?"compactLabels":"labels"));var n=this._get(s,"whichLabels")||this._normalLabels;var m=function(C){return(g.countdown._get(s,(w?"compactLabels":"labels")+n(s._periods[C]))||t)[C]};var x=function(D,C){return Math.floor(D/C)%10};var o={desc:this._get(s,"description"),sep:this._get(s,"timeSeparator"),yl:m(c),yn:s._periods[c],ynn:this._minDigits(s._periods[c],2),ynnn:this._minDigits(s._periods[c],3),y1:x(s._periods[c],1),y10:x(s._periods[c],10),y100:x(s._periods[c],100),y1000:x(s._periods[c],1000),ol:m(h),on:s._periods[h],onn:this._minDigits(s._periods[h],2),onnn:this._minDigits(s._periods[h],3),o1:x(s._periods[h],1),o10:x(s._periods[h],10),o100:x(s._periods[h],100),o1000:x(s._periods[h],1000),wl:m(d),wn:s._periods[d],wnn:this._minDigits(s._periods[d],2),wnnn:this._minDigits(s._periods[d],3),w1:x(s._periods[d],1),w10:x(s._periods[d],10),w100:x(s._periods[d],100),w1000:x(s._periods[d],1000),dl:m(a),dn:s._periods[a],dnn:this._minDigits(s._periods[a],2),dnnn:this._minDigits(s._periods[a],3),d1:x(s._periods[a],1),d10:x(s._periods[a],10),d100:x(s._periods[a],100),d1000:x(s._periods[a],1000),hl:m(l),hn:s._periods[l],hnn:this._minDigits(s._periods[l],2),hnnn:this._minDigits(s._periods[l],3),h1:x(s._periods[l],1),h10:x(s._periods[l],10),h100:x(s._periods[l],100),h1000:x(s._periods[l],1000),ml:m(j),mn:s._periods[j],mnn:this._minDigits(s._periods[j],2),mnnn:this._minDigits(s._periods[j],3),m1:x(s._periods[j],1),m10:x(s._periods[j],10),m100:x(s._periods[j],100),m1000:x(s._periods[j],1000),sl:m(f),sn:s._periods[f],snn:this._minDigits(s._periods[f],2),snnn:this._minDigits(s._periods[f],3),s1:x(s._periods[f],1),s10:x(s._periods[f],10),s100:x(s._periods[f],100),s1000:x(s._periods[f],1000)};var r=u;for(var q=c;q<=f;q++){var v="yowdhms".charAt(q);var B=new RegExp("\\{"+v+"<\\}(.*)\\{"+v+">\\}","g");r=r.replace(B,((!A&&z[q])||(A&&y[q])?"$1":""))}g.each(o,function(E,C){var D=new RegExp("\\{"+E+"\\}","g");r=r.replace(D,C)});return r},_minDigits:function(n,m){n=""+n;if(n.length>=m){return n}n="0000000000"+n;return n.substr(n.length-m)},_determineShow:function(n){var o=this._get(n,"format");var m=[];m[c]=(o.match("y")?"?":(o.match("Y")?"!":null));m[h]=(o.match("o")?"?":(o.match("O")?"!":null));m[d]=(o.match("w")?"?":(o.match("W")?"!":null));m[a]=(o.match("d")?"?":(o.match("D")?"!":null));m[l]=(o.match("h")?"?":(o.match("H")?"!":null));m[j]=(o.match("m")?"?":(o.match("M")?"!":null));m[f]=(o.match("s")?"?":(o.match("S")?"!":null));return m},_calculatePeriods:function(q,E,u,n){q._now=n;q._now.setMilliseconds(0);var s=new Date(q._now.getTime());if(q._since){if(n.getTime()<q._since.getTime()){q._now=n=s}else{n=q._since}}else{s.setTime(q._until.getTime());if(n.getTime()>q._until.getTime()){q._now=n=s}}var m=[0,0,0,0,0,0,0];if(E[c]||E[h]){var z=g.countdown._getDaysInMonth(n.getFullYear(),n.getMonth());var A=g.countdown._getDaysInMonth(s.getFullYear(),s.getMonth());var t=(s.getDate()==n.getDate()||(s.getDate()>=Math.min(z,A)&&n.getDate()>=Math.min(z,A)));var D=function(G){return(G.getHours()*60+G.getMinutes())*60+G.getSeconds()};var v=Math.max(0,(s.getFullYear()-n.getFullYear())*12+s.getMonth()-n.getMonth()+((s.getDate()<n.getDate()&&!t)||(t&&D(s)<D(n))?-1:0));m[c]=(E[c]?Math.floor(v/12):0);m[h]=(E[h]?v-m[c]*12:0);n=new Date(n.getTime());var F=(n.getDate()==z);var r=g.countdown._getDaysInMonth(n.getFullYear()+m[c],n.getMonth()+m[h]);if(n.getDate()>r){n.setDate(r)}n.setFullYear(n.getFullYear()+m[c]);n.setMonth(n.getMonth()+m[h]);if(F){n.setDate(r)}}var y=Math.floor((s.getTime()-n.getTime())/1000);var o=function(H,G){m[H]=(E[H]?Math.floor(y/G):0);y-=m[H]*G};o(d,604800);o(a,86400);o(l,3600);o(j,60);o(f,1);if(y>0&&!q._since){var w=[1,12,4.3482,7,24,60,60];var x=f;var B=1;for(var C=f;C>=c;C--){if(E[C]){if(m[x]>=B){m[x]=0;y=1}if(y>0){m[C]++;y=0;x=C;B=1}}B*=w[C]}}if(u){for(var C=c;C<=f;C++){if(u&&m[C]){u--}else{if(!u){m[C]=0}}}}return m}});function e(o,n){g.extend(o,n);for(var m in n){if(n[m]==null){o[m]=null}}return o}g.fn.countdown=function(n){var m=Array.prototype.slice.call(arguments,1);if(n=="getTimes"||n=="settings"){return g.countdown["_"+n+"Countdown"].apply(g.countdown,[this[0]].concat(m))}return this.each(function(){if(typeof n=="string"){g.countdown["_"+n+"Countdown"].apply(g.countdown,[this].concat(m))}else{g.countdown._attachCountdown(this,n)}})};g.countdown=new b()})(jQuery);(function(a){var b=0;a.fn.divgrow=function(c){var c=a.extend({},{initialHeight:100,expandedHeight:200,moreText:"Show More",lessText:"Show Less",speed:1000},c);return this.each(function(){b++;obj=a(this);var d=c.expandedHeight+15;obj.css("height",c.initialHeight).css("overflow","hidden");obj.addClass("divgrow-wrapper");obj.after('<div class="textFade"></div><a href="#" class="expand divgrow-showmore divgrow-obj-'+b+'"></a>');a("a.divgrow-showmore").html(c.moreText);a(".divgrow-obj-"+b).toggle(function(){a(this).prevAll(".divgrow-wrapper:first").animate({height:d+"px"},c.speed,function(){a(this).nextAll("div.textFade:first").fadeOut();a(this).nextAll("a.divgrow-showmore:first").html(c.lessText);a(this).nextAll("a.divgrow-showmore:first").removeClass("expand");a(this).nextAll("a.divgrow-showmore:first").addClass("collapse")})},function(){a(this).prevAll("div.textFade:first").fadeIn();a(this).prevAll(".divgrow-wrapper:first").stop(true,false).animate({height:c.initialHeight},c.speed,function(){a(this).nextAll("a.divgrow-showmore:first").stop(true,false).html(c.moreText);a(this).nextAll("a.divgrow-showmore:first").removeClass("collapse");a(this).nextAll("a.divgrow-showmore:first").addClass("expand")})})})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(a){a.fn.easyAccordion=function(b){var c={slideNum:true,autoStart:false,slideInterval:3000};this.each(function(){var h=a.extend(c,b);a(this).find("dl").addClass("easy-accordion");a.fn.setVariables=function(){dlWidth=a(this).width();dlHeight=a(this).height();dtWidth=a(this).find("dt").outerHeight();if(a.browser.msie){dtWidth=$(this).find("dt").outerWidth()}dtHeight=dlHeight-(a(this).find("dt").outerWidth()-a(this).find("dt").width());slideTotal=a(this).find("dt").size();ddWidth=dlWidth-(dtWidth*slideTotal)-(a(this).find("dd").outerWidth(true)-a(this).find("dd").width());ddHeight=dlHeight-(a(this).find("dd").outerHeight(true)-a(this).find("dd").height())};a(this).setVariables();if(a.browser.safari){var g=(dlHeight-dtWidth)/2;var d=-g}if(a.browser.opera){var g=(dlHeight-dtWidth)/2;var d=-g}if(a.browser.mozilla){var g=dlHeight-20;var d=-20}if(a.browser.msie){var g=0;var d=0}var l=1;a(this).find("dt").each(function(){a(this).css({width:dtHeight,top:g,"margin-left":d});if(h.slideNum==true){a('<span class="slide-number">'+0+l+"</span>").appendTo(this);if(a.browser.msie){var o=parseInt(a(this).find(".slide-number").css("left"))-14;a(this).find(".slide-number").css({left:o});if(a.browser.version==6||a.browser.version==7){a(this).find(".slide-number").css({bottom:"auto"})}if(a.browser.version==8){var f=a(this).find(".slide-number").css("bottom");var n=parseInt(f)+parseInt(a(this).css("padding-top"))-12;a(this).find(".slide-number").css({bottom:n})}}else{var f=a(this).find(".slide-number").css("bottom");var n=parseInt(f)+parseInt(a(this).css("padding-top"));a(this).find(".slide-number").css({bottom:n})}}l=l+1});if(a(this).find(".active").size()){a(this).find(".active").next("dd").addClass("active")}else{a(this).find("dt:first").addClass("active").next("dd").addClass("active")}a(this).find("dt:first").css({left:"0"}).next().css({left:dtWidth});a(this).find("dd").css({width:ddWidth,height:ddHeight});a.fn.findActiveSlide=function(){var f=1;this.find("dt").each(function(){if(a(this).hasClass("active")){activeID=f}else{if(a(this).hasClass("no-more-active")){noMoreActiveID=f}}f=f+1})};a.fn.calculateSlidePos=function(){var f=2;a(this).find("dt").not(":first").each(function(){var o=dtWidth*activeID;if(f<=activeID){var q=dtWidth*(f-1);a(this).animate({left:q});if(f<activeID){a(this).next().css({left:q+dtWidth})}else{a(this).next().animate({left:o})}}else{var r=dlWidth-(dtWidth*(slideTotal-f+1));a(this).animate({left:r});var n=r+dtWidth;a(this).next().animate({left:n})}f=f+1});setTimeout(function(){a(".easy-accordion").find("dd").not(".active").each(function(){a(this).css({display:"none"})})},400)};a.fn.activateSlide=function(){this.parent("dl").setVariables();this.parent("dl").find("dd").css({display:"block"});this.parent("dl").find("dd.plus").removeClass("plus");this.parent("dl").find(".no-more-active").removeClass("no-more-active");this.parent("dl").find(".active").removeClass("active").addClass("no-more-active");this.addClass("active").next().addClass("active");this.parent("dl").findActiveSlide();if(activeID<noMoreActiveID){this.parent("dl").find("dd.no-more-active").addClass("plus")}this.parent("dl").calculateSlidePos()};a.fn.rotateSlides=function(f,r){var o=a(this);r.value=setTimeout(function(){o.rotateSlides(f,r)},f);a(this).findActiveSlide();var s=a(this).find("dt").size();var q=activeID;var n=q+1;if(n>s){n=1}a(this).find("dt:eq("+(n-1)+")").activateSlide()};function j(){this.value=null}var m=new j();a(this).findActiveSlide();a(this).calculateSlidePos();if(h.autoStart==true){var k=a(this);var e=parseInt(h.slideInterval);m.value=setTimeout(function(){k.rotateSlides(e,m)},e)}a(this).find("dt").not("active").click(function(){a(this).activateSlide();clearTimeout(m.value)});if(!(a.browser.msie&&a.browser.version==6)){a("dt").hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")})}})}})(jQuery);(function(D){var N,V,S,O,d,n,L,C,Q,B,E=0,J={},k=[],e=0,I={},A=[],f=null,q=new Image(),j=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,l=/[^\.]\.(swf)\s*$/i,r,P=1,h=0,v="",b,c,R=false,u=D.extend(D("<div/>")[0],{prop:0}),U=D.browser.msie&&D.browser.version<7&&!window.XMLHttpRequest,t=function(){V.hide();q.onerror=q.onload=null;if(f){f.abort()}N.empty()},z=function(){if(false===J.onError(k,E,J)){V.hide();R=false;return}J.titleShow=false;J.width="auto";J.height="auto";N.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');o()},y=function(){var ab=k[E],Y,aa,ad,ac,X,Z;t();J=D.extend({},D.fn.fancybox.defaults,(typeof D(ab).data("fancybox")=="undefined"?J:D(ab).data("fancybox")));Z=J.onStart(k,E,J);if(Z===false){R=false;return}else{if(typeof Z=="object"){J=D.extend(J,Z)}}ad=J.title||(ab.nodeName?D(ab).attr("title"):ab.title)||"";if(ab.nodeName&&!J.orig){J.orig=D(ab).children("img:first").length?D(ab).children("img:first"):D(ab)}if(ad===""&&J.orig&&J.titleFromAlt){ad=J.orig.attr("alt")}Y=J.href||(ab.nodeName?D(ab).attr("href"):ab.href)||null;if((/^(?:javascript)/i).test(Y)||Y=="#"){Y=null}if(J.type){aa=J.type;if(!Y){Y=J.content}}else{if(J.content){aa="html"}else{if(Y){if(Y.match(j)){aa="image"}else{if(Y.match(l)){aa="swf"}else{if(D(ab).hasClass("iframe")){aa="iframe"}else{if(Y.indexOf("#")===0){aa="inline"}else{aa="ajax"}}}}}}}if(!aa){z();return}if(aa=="inline"){ab=Y.substr(Y.indexOf("#"));aa=D(ab).length>0?"inline":"ajax"}J.type=aa;J.href=Y;J.title=ad;if(J.autoDimensions){if(J.type=="html"||J.type=="inline"||J.type=="ajax"){J.width="auto";J.height="auto"}else{J.autoDimensions=false}}if(J.modal){J.overlayShow=true;J.hideOnOverlayClick=false;J.hideOnContentClick=false;J.enableEscapeButton=false;J.showCloseButton=false}J.padding=parseInt(J.padding,10);J.margin=parseInt(J.margin,10);N.css("padding",(J.padding+J.margin));D(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){D(this).replaceWith(n.children())});switch(aa){case"html":N.html(J.content);o();break;case"inline":if(D(ab).parent().is("#fancybox-content")===true){R=false;return}D('<div class="fancybox-inline-tmp" />').hide().insertBefore(D(ab)).bind("fancybox-cleanup",function(){D(this).replaceWith(n.children())}).bind("fancybox-cancel",function(){D(this).replaceWith(N.children())});D(ab).appendTo(N);o();break;case"image":R=false;D.fancybox.showActivity();q=new Image();q.onerror=function(){z()};q.onload=function(){R=true;q.onerror=q.onload=null;H()};q.src=Y;break;case"swf":J.scrolling="no";ac='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+J.width+'" height="'+J.height+'"><param name="movie" value="'+Y+'"></param>';X="";D.each(J.swf,function(ae,af){ac+='<param name="'+ae+'" value="'+af+'"></param>';X+=" "+ae+'="'+af+'"'});ac+='<embed src="'+Y+'" type="application/x-shockwave-flash" width="'+J.width+'" height="'+J.height+'"'+X+"></embed></object>";N.html(ac);o();break;case"ajax":R=false;D.fancybox.showActivity();J.ajax.win=J.ajax.success;f=D.ajax(D.extend({},J.ajax,{url:Y,data:J.ajax.data||{},error:function(ae,ag,af){if(ae.status>0){z()}},success:function(af,ah,ae){var ag=typeof ae=="object"?ae:f;if(ag.status==200){if(typeof J.ajax.win=="function"){Z=J.ajax.win(Y,af,ah,ae);if(Z===false){V.hide();return}else{if(typeof Z=="string"||typeof Z=="object"){af=Z}}}N.html(af);o()}}}));break;case"iframe":G();break}},o=function(){var X=J.width,Y=J.height;if(X.toString().indexOf("%")>-1){X=parseInt((D(window).width()-(J.margin*2))*parseFloat(X)/100,10)+"px"}else{X=X=="auto"?"auto":X+"px"}if(Y.toString().indexOf("%")>-1){Y=parseInt((D(window).height()-(J.margin*2))*parseFloat(Y)/100,10)+"px"}else{Y=Y=="auto"?"auto":Y+"px"}N.wrapInner('<div style="width:'+X+";height:"+Y+";overflow: "+(J.scrolling=="auto"?"auto":(J.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');J.width=N.width();J.height=N.height();G()},H=function(){J.width=q.width;J.height=q.height;D("<img />").attr({id:"fancybox-img",src:q.src,alt:J.title}).appendTo(N);G()},G=function(){var Y,X;V.hide();if(O.is(":visible")&&false===I.onCleanup(A,e,I)){D.event.trigger("fancybox-cancel");R=false;return}R=true;D(n.add(S)).unbind();D(window).unbind("resize.fb scroll.fb");D(document).unbind("keydown.fb");if(O.is(":visible")&&I.titlePosition!=="outside"){O.css("height",O.height())}A=k;e=E;I=J;if(I.overlayShow){S.css({"background-color":I.overlayColor,opacity:I.overlayOpacity,cursor:I.hideOnOverlayClick?"pointer":"auto",height:D(document).height()});if(!S.is(":visible")){if(U){D("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}S.show()}}else{S.hide()}c=T();m();if(O.is(":visible")){D(L.add(Q).add(B)).hide();Y=O.position(),b={top:Y.top,left:Y.left,width:O.width(),height:O.height()};X=(b.width==c.width&&b.height==c.height);n.fadeTo(I.changeFade,0.3,function(){var Z=function(){n.html(N.contents()).fadeTo(I.changeFade,1,x)};D.event.trigger("fancybox-change");n.empty().removeAttr("filter").css({"border-width":I.padding,width:c.width-I.padding*2,height:J.autoDimensions?"auto":c.height-h-I.padding*2});if(X){Z()}else{u.prop=0;D(u).animate({prop:1},{duration:I.changeSpeed,easing:I.easingChange,step:W,complete:Z})}});return}O.removeAttr("style");n.css("border-width",I.padding);if(I.transitionIn=="elastic"){b=K();n.html(N.contents());O.show();if(I.opacity){c.opacity=0}u.prop=0;D(u).animate({prop:1},{duration:I.speedIn,easing:I.easingIn,step:W,complete:x});return}if(I.titlePosition=="inside"&&h>0){C.show()}n.css({width:c.width-I.padding*2,height:J.autoDimensions?"auto":c.height-h-I.padding*2}).html(N.contents());O.css(c).fadeIn(I.transitionIn=="none"?0:I.speedIn,x)},F=function(X){if(X&&X.length){if(I.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+X+'</td><td id="fancybox-title-float-right"></td></tr></table>'}return'<div id="fancybox-title-'+I.titlePosition+'">'+X+"</div>"}return false},m=function(){v=I.title||"";h=0;C.empty().removeAttr("style").removeClass();if(I.titleShow===false){C.hide();return}v=D.isFunction(I.titleFormat)?I.titleFormat(v,A,e,I):F(v);if(!v||v===""){C.hide();return}C.addClass("fancybox-title-"+I.titlePosition).html(v).appendTo("body").show();switch(I.titlePosition){case"inside":C.css({width:c.width-(I.padding*2),marginLeft:I.padding,marginRight:I.padding});h=C.outerHeight(true);C.appendTo(d);c.height+=h;break;case"over":C.css({marginLeft:I.padding,width:c.width-(I.padding*2),bottom:I.padding}).appendTo(d);break;case"float":C.css("left",parseInt((C.width()-c.width-40)/2,10)*-1).appendTo(O);break;default:C.css({width:c.width-(I.padding*2),paddingLeft:I.padding,paddingRight:I.padding}).appendTo(O);break}C.hide()},g=function(){if(I.enableEscapeButton||I.enableKeyboardNav){D(document).bind("keydown.fb",function(X){if(X.keyCode==27&&I.enableEscapeButton){X.preventDefault();D.fancybox.close()}else{if((X.keyCode==37||X.keyCode==39)&&I.enableKeyboardNav&&X.target.tagName!=="INPUT"&&X.target.tagName!=="TEXTAREA"&&X.target.tagName!=="SELECT"){X.preventDefault();D.fancybox[X.keyCode==37?"prev":"next"]()}}})}if(!I.showNavArrows){Q.hide();B.hide();return}if((I.cyclic&&A.length>1)||e!==0){Q.show()}if((I.cyclic&&A.length>1)||e!=(A.length-1)){B.show()}},x=function(){if(!D.support.opacity){n.get(0).style.removeAttribute("filter");O.get(0).style.removeAttribute("filter")}if(J.autoDimensions){n.css("height","auto")}O.css("height","auto");if(v&&v.length){C.show()}if(I.showCloseButton){L.show()}g();if(I.hideOnContentClick){n.bind("click",D.fancybox.close)}if(I.hideOnOverlayClick){S.bind("click",D.fancybox.close)}D(window).bind("resize.fb",D.fancybox.resize);if(I.centerOnScroll){D(window).bind("scroll.fb",D.fancybox.center)}if(I.type=="iframe"){D('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(D.browser.msie?'allowtransparency="true""':"")+' scrolling="'+J.scrolling+'" src="'+I.href+'"></iframe>').appendTo(n)}O.show();R=false;D.fancybox.center();I.onComplete(A,e,I);M()},M=function(){var X,Y;if((A.length-1)>e){X=A[e+1].href;if(typeof X!=="undefined"&&X.match(j)){Y=new Image();Y.src=X}}if(e>0){X=A[e-1].href;if(typeof X!=="undefined"&&X.match(j)){Y=new Image();Y.src=X}}},W=function(Y){var X={width:parseInt(b.width+(c.width-b.width)*Y,10),height:parseInt(b.height+(c.height-b.height)*Y,10),top:parseInt(b.top+(c.top-b.top)*Y,10),left:parseInt(b.left+(c.left-b.left)*Y,10)};if(typeof c.opacity!=="undefined"){X.opacity=Y<0.5?0.5:Y}O.css(X);n.css({width:X.width-I.padding*2,height:X.height-(h*Y)-I.padding*2})},w=function(){return[D(window).width()-(I.margin*2),D(window).height()-(I.margin*2),D(document).scrollLeft()+I.margin,D(document).scrollTop()+I.margin]},T=function(){var X=w(),ab={},Y=I.autoScale,Z=I.padding*2,aa;if(I.width.toString().indexOf("%")>-1){ab.width=parseInt((X[0]*parseFloat(I.width))/100,10)}else{ab.width=I.width+Z}if(I.height.toString().indexOf("%")>-1){ab.height=parseInt((X[1]*parseFloat(I.height))/100,10)}else{ab.height=I.height+Z}if(Y&&(ab.width>X[0]||ab.height>X[1])){if(J.type=="image"||J.type=="swf"){aa=(I.width)/(I.height);if((ab.width)>X[0]){ab.width=X[0];ab.height=parseInt(((ab.width-Z)/aa)+Z,10)}if((ab.height)>X[1]){ab.height=X[1];ab.width=parseInt(((ab.height-Z)*aa)+Z,10)}}else{ab.width=Math.min(ab.width,X[0]);ab.height=Math.min(ab.height,X[1])}}ab.top=parseInt(Math.max(X[3]-20,X[3]+((X[1]-ab.height-40)*0.5)),10);ab.left=parseInt(Math.max(X[2]-20,X[2]+((X[0]-ab.width-40)*0.5)),10);return ab},s=function(X){var Y=X.offset();Y.top+=parseInt(X.css("paddingTop"),10)||0;Y.left+=parseInt(X.css("paddingLeft"),10)||0;Y.top+=parseInt(X.css("border-top-width"),10)||0;Y.left+=parseInt(X.css("border-left-width"),10)||0;Y.width=X.width();Y.height=X.height();return Y},K=function(){var aa=J.orig?D(J.orig):false,Z={},Y,X;if(aa&&aa.length){Y=s(aa);Z={width:Y.width+(I.padding*2),height:Y.height+(I.padding*2),top:Y.top-I.padding-20,left:Y.left-I.padding-20}}else{X=w();Z={width:I.padding*2,height:I.padding*2,top:parseInt(X[3]+X[1]*0.5,10),left:parseInt(X[2]+X[0]*0.5,10)}}return Z},a=function(){if(!V.is(":visible")){clearInterval(r);return}D("div",V).css("top",(P*-40)+"px");P=(P+1)%12};D.fn.fancybox=function(X){if(!D(this).length){return this}D(this).data("fancybox",D.extend({},X,(D.metadata?D(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(Z){Z.preventDefault();if(R){return}R=true;D(this).blur();k=[];E=0;var Y=D(this).attr("rel")||"";if(!Y||Y==""||Y==="nofollow"){k.push(this)}else{k=D("a[rel="+Y+"], area[rel="+Y+"]");E=k.index(this)}y();return});return this};D.fancybox=function(aa){var Z;if(R){return}R=true;Z=typeof arguments[1]!=="undefined"?arguments[1]:{};k=[];E=parseInt(Z.index,10)||0;if(D.isArray(aa)){for(var Y=0,X=aa.length;Y<X;Y++){if(typeof aa[Y]=="object"){D(aa[Y]).data("fancybox",D.extend({},Z,aa[Y]))}else{aa[Y]=D({}).data("fancybox",D.extend({content:aa[Y]},Z))}}k=jQuery.merge(k,aa)}else{if(typeof aa=="object"){D(aa).data("fancybox",D.extend({},Z,aa))}else{aa=D({}).data("fancybox",D.extend({content:aa},Z))}k.push(aa)}if(E>k.length||E<0){E=0}y()};D.fancybox.showActivity=function(){clearInterval(r);V.show();r=setInterval(a,66)};D.fancybox.hideActivity=function(){V.hide()};D.fancybox.next=function(){return D.fancybox.pos(e+1)};D.fancybox.prev=function(){return D.fancybox.pos(e-1)};D.fancybox.pos=function(X){if(R){return}X=parseInt(X);k=A;if(X>-1&&X<A.length){E=X;y()}else{if(I.cyclic&&A.length>1){E=X>=A.length?0:A.length-1;y()}}return};D.fancybox.cancel=function(){if(R){return}R=true;D.event.trigger("fancybox-cancel");t();J.onCancel(k,E,J);R=false};D.fancybox.close=function(){if(R||O.is(":hidden")){return}R=true;if(I&&false===I.onCleanup(A,e,I)){R=false;return}t();D(L.add(Q).add(B)).hide();D(n.add(S)).unbind();D(window).unbind("resize.fb scroll.fb");D(document).unbind("keydown.fb");n.find("iframe").attr("src",U&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(I.titlePosition!=="inside"){C.empty()}O.stop();function X(){S.fadeOut("fast");C.empty().hide();O.hide();D.event.trigger("fancybox-cleanup");n.empty();I.onClosed(A,e,I);A=J=[];e=E=0;I=J={};R=false}if(I.transitionOut=="elastic"){b=K();var Y=O.position();c={top:Y.top,left:Y.left,width:O.width(),height:O.height()};if(I.opacity){c.opacity=1}C.empty().hide();u.prop=1;D(u).animate({prop:0},{duration:I.speedOut,easing:I.easingOut,step:W,complete:X})}else{O.fadeOut(I.transitionOut=="none"?0:I.speedOut,X)}};D.fancybox.resize=function(){if(S.is(":visible")){S.css("height",D(document).height())}D.fancybox.center(true)};D.fancybox.center=function(){var X,Y;if(R){return}Y=arguments[0]===true?1:0;X=w();if(!Y&&(O.width()>X[0]||O.height()>X[1])){return}O.stop().animate({top:parseInt(Math.max(X[3]-20,X[3]+((X[1]-n.height()-40)*0.5)-I.padding)),left:parseInt(Math.max(X[2]-20,X[2]+((X[0]-n.width()-40)*0.5)-I.padding))},typeof arguments[0]=="number"?arguments[0]:200)};D.fancybox.init=function(){if(D("#fancybox-wrap").length){return}D("body").append(N=D('<div id="fancybox-tmp"></div>'),V=D('<div id="fancybox-loading"><div></div></div>'),S=D('<div id="fancybox-overlay"></div>'),O=D('<div id="fancybox-wrap"></div>'));d=D('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(O);d.append(n=D('<div id="fancybox-content"></div>'),L=D('<a id="fancybox-close"></a>'),C=D('<div id="fancybox-title"></div>'),Q=D('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),B=D('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));L.click(D.fancybox.close);V.click(D.fancybox.cancel);Q.click(function(X){X.preventDefault();D.fancybox.prev()});B.click(function(X){X.preventDefault();D.fancybox.next()});if(D.fn.mousewheel){O.bind("mousewheel.fb",function(X,Y){if(R){X.preventDefault()}else{if(D(X.target).get(0).clientHeight==0||D(X.target).get(0).scrollHeight===D(X.target).get(0).clientHeight){X.preventDefault();D.fancybox[Y>0?"prev":"next"]()}}})}if(!D.support.opacity){O.addClass("fancybox-ie")}if(U){V.addClass("fancybox-ie6");O.addClass("fancybox-ie6");D('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(d)}};D.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};D(document).ready(function(){D.fancybox.init()})})(jQuery);(function(a){a.fn.featureList=function(c){var d=a(this);var b=a(c.output);new jQuery.featureList(d,b,c);return this};a.featureList=function(f,d,e){function b(j){if(typeof j=="undefined"){j=g+1;j=j>=c?0:j}f.removeClass("current").filter(":eq("+j+")").addClass("current");d.stop(true,true).filter(":visible").fadeOut();d.filter(":eq("+j+")").fadeIn(function(){g=j})}var e=e||{};var c=f.length;var g=e.start_item||0;e.pause_on_hover=e.pause_on_hover||true;e.transition_interval=e.transition_interval||5000;d.hide().eq(g).show();f.eq(g).addClass("current");f.click(function(){if(a(this).hasClass("current")){return false}b(f.index(this))});if(e.transition_interval>0){var h=setInterval(function(){b()},e.transition_interval);if(e.pause_on_hover){f.mouseenter(function(){clearInterval(h)}).mouseleave(function(){clearInterval(h);h=setInterval(function(){b()},e.transition_interval)})}}}})(jQuery);(function(b){b.jnotify=function(l,q,n){return new c(l,q,n)};b.jnotify.version="1.1.00";var k,d=[],e=0,h=false,j=false,g,f,a={type:"",delay:2000,sticky:false,closeLabel:"&times;",showClose:true,fadeSpeed:1000,slideSpeed:250,classContainer:"jnotify-container",classNotification:"jnotify-notification",classBackground:"jnotify-background",classClose:"jnotify-close",classMessage:"jnotify-message",init:null,create:null,beforeRemove:null,remove:null,transition:null};b.jnotify.setup=function(l){a=b.extend({},a,l)};b.jnotify.play=function(n,o){if(h&&(n!==true)||(d.length==0)){return}h=true;var m=d.shift();f=m;var l=(arguments.length>=2)?parseInt(o,10):m.options.delay;g=setTimeout(function(){g=0;m.remove(function(){if(d.length==0){h=false}else{if(!j){b.jnotify.play(true)}}})},l)};b.jnotify.pause=function(){clearTimeout(g);if(g){d.unshift(f)}j=h=true};b.jnotify.resume=function(){j=false;b.jnotify.play(true,0)};function c(r,o){var n=this,l=typeof o;if(l=="number"){o=b.extend({},a,{delay:o})}else{if(l=="boolean"){o=b.extend({},a,{sticky:true})}else{if(l=="string"){o=b.extend({},a,{type:o,delay:((arguments.length>2)&&(typeof arguments[2]=="number"))?arguments[2]:a.delay,sticky:((arguments.length>2)&&(typeof arguments[2]=="boolean"))?arguments[2]:a.sticky})}else{o=b.extend({},a,o)}}}this.options=o;if(!k){k=b('<div class="'+a.classContainer+'" />').appendTo("body");if(b.isFunction(o.init)){o.init.apply(n,[k])}}function q(u){var t='<div class="'+o.classNotification+(o.type.length?(" "+o.classNotification+"-"+o.type):"")+'"><div class="'+o.classBackground+'"></div>'+(o.sticky&&o.showClose?('<a class="'+o.classClose+'">'+o.closeLabel+"</a>"):"")+'<div class="'+o.classMessage+'"><div>'+u+"</div></div></div>";e++;var s=b(t);if(o.sticky){s.find("a."+o.classClose).bind("click.jnotify",function(){n.remove()})}if(b.isFunction(o.create)){o.create.apply(n,[s])}return s.appendTo(k)}this.remove=function(w){var s=m.find("."+o.classMessage),u=s.parent();var t=e--;if(b.isFunction(o.beforeRemove)){o.beforeRemove.apply(n,[s])}function v(){u.remove();if(b.isFunction(w)){w.apply(n,[s])}if(b.isFunction(o.remove)){o.remove.apply(n,[s])}}if(b.isFunction(o.transition)){o.transition.apply(n,[u,s,t,v,o])}else{s.fadeTo(o.fadeSpeed,0.01,function(){if(t<=1){v()}else{u.slideUp(o.slideSpeed,v)}});if(e<=0){u.fadeOut(o.fadeSpeed)}}};var m=q(r);if(!o.sticky){d.push(this);b.jnotify.play()}return this}})(jQuery);(function(){if(window.__twitterIntentHandler){return}var e=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/,g="scrollbars=yes,resizable=yes,toolbar=no,location=yes",f=550,b=420,d=screen.height,c=screen.width;function a(n){n=n||window.event;var l=n.target||n.srcElement,h,k,j;while(l&&l.nodeName.toLowerCase()!=="a"){l=l.parentNode}if(l&&l.nodeName.toLowerCase()==="a"&&l.href){h=l.href.match(e);if(h){k=Math.round((c/2)-(f/2));j=0;if(d>b){j=Math.round((d/2)-(b/2))}window.open(l.href,"intent",g+",width="+f+",height="+b+",left="+k+",top="+j);n.returnValue=false;n.preventDefault&&n.preventDefault()}}}if(document.addEventListener){document.addEventListener("click",a,false)}else{if(document.attachEvent){document.attachEvent("onclick",a)}}window.__twitterIntentHandler=true}());(function(){if(window.__JTA_I18N){return}JTA_I18N=function(){var b={};function a(c,g){this.getLocale=function(){return c};this.get=function(h,j){return f(h,1,j)};this._=this.get;this.nget=function(j,h,k,l){return k===1?f(j,1,l):f(h,k,l)};this.__=this.nget;function f(h,j,l){var k=d(h);if(j!==1&&typeof k==="object"){k=e(h,k,j)}if(k&&l){for(p in l){k=k.replace(p,d(l[p]))}}return k}function d(h){return g?(g[h]||h):h}function e(r,h,n){for(pat in h){var s=/(\d+)\s*-\s*(\d+)/,l=s.exec(pat);if(l){var o=l[1];var q=l[2];if(n>=o&&n<=q){return h[pat]}}s=/([<>]=?)\s*(\d+)/;l=s.exec(pat);if(l){var m=l[1];var k=l[2];if(m===">"&&n>k){return h[pat]}else{if(m===">="&&n>=k){return h[pat]}else{if(m==="<"&&n<k){return h[pat]}else{if(m==="<="&&n<=k){return h[pat]}}}}}s=/\s*,\s*/;l=pat.split(s);if(l){for(var j=0;j<l.length;j++){if(n===~~l[j]){return h[pat]}}}}return r}}return{addResourceBundle:function(e,c,d){if(!b[e]){b[e]={}}b[e][c]=d},getResourceBundle:function(d,c){return new a(c,b[d]?b[d][c]:null)}}}();window.__JTA_I18N=true}());JTA_I18N.addResourceBundle("jTweetsAnywhere","en",{"$$monthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});(function(a){a.fn.jTweetsAnywhere=function(c){var b=a.extend({username:"tbillenstein",list:null,searchParams:null,count:0,tweetProfileImagePresent:null,tweetFilter:defaultTweetFilter,showTweetFeed:true,showFollowButton:false,showConnectButton:false,showLoginInfo:false,showTweetBox:false,locale:"en",tweetDataProvider:defaultTweetDataProvider,rateLimitDataProvider:defaultRateLimitDataProvider,mainDecorator:defaultMainDecorator,tweetFeedDecorator:defaultTweetFeedDecorator,tweetDecorator:defaultTweetDecorator,tweetProfileImageDecorator:defaultTweetProfileImageDecorator,tweetBodyDecorator:defaultTweetBodyDecorator,tweetUsernameDecorator:defaultTweetUsernameDecorator,tweetTextDecorator:defaultTweetTextDecorator,tweetAttributesDecorator:defaultTweetAttributesDecorator,tweetTwitterBirdDecorator:defaultTweetTwitterBirdDecorator,tweetTimestampDecorator:defaultTweetTimestampDecorator,tweetSourceDecorator:defaultTweetSourceDecorator,tweetGeoLocationDecorator:defaultTweetGeoLocationDecorator,tweetInReplyToDecorator:defaultTweetInReplyToDecorator,tweetRetweeterDecorator:defaultTweetRetweeterDecorator,tweetActionsDecorator:defaultTweetActionsDecorator,tweetActionReplyDecorator:defaultTweetActionReplyDecorator,tweetActionRetweetDecorator:defaultTweetActionRetweetDecorator,tweetActionFavoriteDecorator:defaultTweetActionFavoriteDecorator,tweetFeedControlsDecorator:defaultTweetFeedControlsDecorator,tweetFeedControlsMoreBtnDecorator:defaultTweetFeedControlsMoreBtnDecorator,tweetFeedControlsPrevBtnDecorator:defaultTweetFeedControlsPrevBtnDecorator,tweetFeedControlsNextBtnDecorator:defaultTweetFeedControlsNextBtnDecorator,tweetFeedAutorefreshTriggerDecorator:defaultTweetFeedAutorefreshTriggerDecorator,tweetFeedAutorefreshTriggerContentDecorator:defaultTweetFeedAutorefreshTriggerContentDecorator,connectButtonDecorator:defaultConnectButtonDecorator,loginInfoDecorator:defaultLoginInfoDecorator,loginInfoContentDecorator:defaultLoginInfoContentDecorator,followButtonDecorator:defaultFollowButtonDecorator,tweetBoxDecorator:defaultTweetBoxDecorator,linkDecorator:defaultLinkDecorator,usernameDecorator:defaultUsernameDecorator,hashtagDecorator:defaultHashtagDecorator,loadingDecorator:defaultLoadingDecorator,errorDecorator:defaultErrorDecorator,noDataDecorator:defaultNoDataDecorator,tweetTimestampFormatter:defaultTweetTimestampFormatter,tweetTimestampTooltipFormatter:defaultTweetTimestampTooltipFormatter,tweetVisualizer:defaultTweetVisualizer,loadingIndicatorVisualizer:defaultLoadingIndicatorVisualizer,autorefreshTriggerVisualizer:defaultAutorefreshTriggerVisualizer,onDataRequestHandler:defaultOnDataRequestHandler,onRateLimitDataHandler:defaultOnRateLimitDataHandler,onOptionsInitializingHandler:defaultOnOptionsInitializingHandler,_tweetFeedConfig:{autoConformToTwitterStyleguide:false,showTwitterBird:true,showTimestamp:{refreshInterval:0},showSource:false,showGeoLocation:true,showInReplyTo:true,showActionReply:false,showActionRetweet:false,showActionFavorite:false,showProfileImages:null,showUserScreenNames:null,showUserFullNames:false,expandHovercards:false,includeRetweets:true,paging:{mode:"none",_limit:0,_offset:0},autorefresh:{mode:"none",interval:60,duration:3600,max:-1,_startTime:null,_triggerElement:null},_pageParam:0,_maxId:null,_recLevel:0,_noData:false,_clearBeforePopulate:false},_tweetBoxConfig:{counter:true,width:515,height:65,label:null,defaultContent:"",onTweet:function(d,e){}},_connectButtonConfig:{size:"medium"},_baseSelector:null,_baseElement:null,_tweetFeedElement:null,_tweetFeedControlsElement:null,_followButtonElement:null,_loginInfoElement:null,_connectButtonElement:null,_tweetBoxElement:null,_loadingIndicatorElement:null,_noDataElement:null,_tweetsCache:[],_autorefreshTweetsCache:[],_stats:{dataRequestCount:0,rateLimitPreventionCount:0,rateLimit:{remaining_hits:150,hourly_limit:150}},_resourceBundle:null},c);b._baseSelector=this.selector;b.onOptionsInitializingHandler(b);setupOptions(b);if(!b.mainDecorator){return}a.ajaxSetup({cache:true});return this.each(function(){b._baseElement=a(this);b._tweetFeedElement=b.tweetFeedDecorator?a(b.tweetFeedDecorator(b)):null;b._tweetFeedControlsElement=b.tweetFeedControlsDecorator?a(b.tweetFeedControlsDecorator(b)):null;b._followButtonElement=b.followButtonDecorator?a(b.followButtonDecorator(b)):null;b._tweetBoxElement=b.tweetBoxDecorator?a(b.tweetBoxDecorator(b)):null;b._connectButtonElement=b.connectButtonDecorator?a(b.connectButtonDecorator(b)):null;b._loginInfoElement=b.loginInfoDecorator?a(b.loginInfoDecorator(b)):null;b.mainDecorator(b);populateTweetFeed(b);populateAnywhereControls(b);bindEventHandlers(b);setupAutorefresh(b)})};defaultMainDecorator=function(b){if(b._tweetFeedElement){b._baseElement.append(b._tweetFeedElement)}if(b._tweetFeedControlsElement){b._baseElement.append(b._tweetFeedControlsElement)}if(b._connectButtonElement){b._baseElement.append(b._connectButtonElement)}if(b._loginInfoElement){b._baseElement.append(b._loginInfoElement)}if(b._followButtonElement){b._baseElement.append(b._followButtonElement)}if(b._tweetBoxElement){b._baseElement.append(b._tweetBoxElement)}};defaultTweetFeedControlsDecorator=function(b){var c="";if(b._tweetFeedConfig.paging.mode=="prev-next"){if(b.tweetFeedControlsPrevBtnDecorator){c+=b.tweetFeedControlsPrevBtnDecorator(b)}if(b.tweetFeedControlsNextBtnDecorator){c+=b.tweetFeedControlsNextBtnDecorator(b)}}else{if(b._tweetFeedConfig.paging.mode=="endless-scroll"){}else{if(b.tweetFeedControlsMoreBtnDecorator){c+=b.tweetFeedControlsMoreBtnDecorator(b)}}}return'<div class="jta-tweet-list-controls">'+c+"</div>"};defaultTweetFeedControlsMoreBtnDecorator=function(b){return'<span class="jta-tweet-list-controls-button jta-tweet-list-controls-button-more">'+b._resourceBundle._("More")+"</span>"};defaultTweetFeedControlsPrevBtnDecorator=function(b){return'<span class="jta-tweet-list-controls-button jta-tweet-list-controls-button-prev">'+b._resourceBundle._("Prev")+"</span>"};defaultTweetFeedControlsNextBtnDecorator=function(b){return'<span class="jta-tweet-list-controls-button jta-tweet-list-controls-button-next">'+b._resourceBundle._("Next")+"</span>"};defaultTweetFeedAutorefreshTriggerDecorator=function(d,b){var c="";if(b.tweetFeedAutorefreshTriggerContentDecorator){c=b.tweetFeedAutorefreshTriggerContentDecorator(d,b)}return'<li class="jta-tweet-list-autorefresh-trigger">'+c+"</li>"};defaultTweetFeedAutorefreshTriggerContentDecorator=function(d,b){var c=b._resourceBundle.__("%count% new tweet","%count% new tweets",d,{"%count%":d});return'<span class="jta-tweet-list-autorefresh-trigger-content">'+c+"</span>"};defaultTweetFeedDecorator=function(b){return'<ul class="jta-tweet-list"></ul>'};defaultTweetDecorator=function(d,b){var c="";if(b._tweetFeedConfig.showProfileImages){c+=b.tweetProfileImageDecorator(d,b)}if(b.tweetBodyDecorator){c+=b.tweetBodyDecorator(d,b)}c+='<div class="jta-clear">&nbsp;</div>';return'<li class="jta-tweet-list-item">'+c+"</li>"};defaultTweetProfileImageDecorator=function(g,c){var f=g.retweeted_status||g;var e=getScreenName(g);var b=f.user?f.user.profile_image_url:false||f.profile_image_url;var d='<a class="jta-tweet-profile-image-link" href="http://twitter.com/'+e+'" target="_blank"><img src="'+b+'" alt="'+e+'"'+(isAnywherePresent()?"":(' title="'+e+'"'))+"/></a>";return'<div class="jta-tweet-profile-image">'+d+"</div>"};defaultTweetBodyDecorator=function(d,b){var c="";if(b.tweetTextDecorator){c+=b.tweetTextDecorator(d,b)}if(b.tweetAttributesDecorator){c+=b.tweetAttributesDecorator(d,b)}if(b.tweetActionsDecorator){c+=b.tweetActionsDecorator(d,b)}return'<div class="jta-tweet-body '+(b._tweetFeedConfig.showProfileImages?"jta-tweet-body-list-profile-image-present":"")+'">'+c+"</div>"};defaultTweetTextDecorator=function(d,b){var c=d.text;if(d.retweeted_status&&(b._tweetFeedConfig.showUserScreenNames||b._tweetFeedConfig.showUserScreenNames==null||b._tweetFeedConfig.showUserFullNames||b._tweetFeedConfig.showUserFullNames==null)){c=d.retweeted_status.text}if(b.linkDecorator){c=b.linkDecorator(c,b)}if(b.usernameDecorator){c=b.usernameDecorator(c,b)}if(b.hashtagDecorator){c=b.hashtagDecorator(c,b)}if(b._tweetFeedConfig.showUserScreenNames||b._tweetFeedConfig.showUserFullNames||d.retweeted_status&&(b._tweetFeedConfig.showUserScreenNames==null||b._tweetFeedConfig.showUserFullNames==null)){c=b.tweetUsernameDecorator(d,b)+" "+c}return'<span class="jta-tweet-text">'+c+"</span>"};defaultTweetUsernameDecorator=function(h,d){var f=getScreenName(h);var g=getFullName(h);var b=null;if(f&&(d._tweetFeedConfig.showUserScreenNames||(d._tweetFeedConfig.showUserScreenNames==null&&h.retweeted_status))){b='<span class="jta-tweet-user-screen-name"><a class="jta-tweet-user-screen-name-link" href="http://twitter.com/'+f+'" target="_blank">'+f+"</a></span>"}var c=null;if(g&&(d._tweetFeedConfig.showUserFullNames||(d._tweetFeedConfig.showUserFullNames==null&&h.retweeted_status))){c='<span class="jta-tweet-user-full-name">'+(b?" ":"")+'<a class="jta-tweet-user-full-name-link" href="http://twitter.com/'+f+'" name="'+f+'" target="_blank">'+g+"</a></span>"}var e="";if(b){e+=b}if(c){if(b){e+=" "}e+=c}if(b||c){e='<span class="jta-tweet-user-name">'+(h.retweeted_status?"RT ":"")+e+"</span>"}return e};defaultTweetAttributesDecorator=function(d,b){var c="";if(b.tweetTwitterBirdDecorator||b.tweetTimestampDecorator||b.tweetSourceDecorator||b.tweetGeoLocationDecorator||b.tweetInReplyToDecorator||(d.retweeted_status&&b.tweetRetweeterDecorator)){c+='<span class="jta-tweet-attributes">';if(b.tweetTwitterBirdDecorator){c+=b.tweetTwitterBirdDecorator(d,b)}if(b.tweetTimestampDecorator){c+=b.tweetTimestampDecorator(d,b)}if(b.tweetSourceDecorator){c+=b.tweetSourceDecorator(d,b)}if(b.tweetGeoLocationDecorator){c+=b.tweetGeoLocationDecorator(d,b)}if(b.tweetInReplyToDecorator){c+=b.tweetInReplyToDecorator(d,b)}if(d.retweeted_status&&b.tweetRetweeterDecorator){c+=b.tweetRetweeterDecorator(d,b)}c+="</span>"}return c};defaultTweetTimestampDecorator=function(h,c){var b=h.retweeted_status||h;var g=formatDate(b.created_at);var e=c.tweetTimestampFormatter(g,c);var f=c.tweetTimestampTooltipFormatter(g);var d='<span class="jta-tweet-timestamp"><a class="jta-tweet-timestamp-link" data-timestamp="'+g+'" href="http://twitter.com/'+getScreenName(h)+"/status/"+b.id+'" target="_blank" title="'+f+'">'+e+"</a></span>";return d};defaultTweetTwitterBirdDecorator=function(g,b){var d=getScreenName(g);var f="https://twitter.com/intent/user?screen_name="+d;var e=d+" "+b._resourceBundle._("on Twitter");var c='<span class="jta-tweet-twitter-bird"><a href="'+f+'" target="_blank" title="'+e+'"><span class="jta-tweet-twitter-bird-icon">&nbsp;</span></a></span>';return c};defaultTweetTimestampTooltipFormatter=function(b){var c=new Date(b);return c.toLocaleString()};defaultTweetTimestampFormatter=function(c,f){var e=new Date();var j=parseInt((e.getTime()-Date.parse(c))/1000);var h="";if(j<60){h+=f._resourceBundle.__("%secs% second ago","%secs% seconds ago",j,{"%secs%":j})}else{if(j<3600){var g=parseInt((j+30)/60);h+=f._resourceBundle.__("%mins% minute ago","%mins% minutes ago",g,{"%mins%":g})}else{if(j<86400){var g=parseInt((j+1800)/3600);h+=f._resourceBundle.__("%hours% hour ago","%hours% hours ago",g,{"%hours%":g})}else{var k=new Date(c);var b=f._resourceBundle._("$$monthNames");h+=b[k.getMonth()]+" "+k.getDate();if(k.getFullYear()<e.getFullYear()){h+=", "+k.getFullYear()}var g=parseInt((j+43200)/86400);h+=" ("+f._resourceBundle.__("%days% day ago","%days% days ago",g,{"%days%":g})+")"}}}return h};defaultTweetSourceDecorator=function(f,c){var b=f.retweeted_status||f;var e=b.source.replace(/\&lt\;/gi,"<").replace(/\&gt\;/gi,">").replace(/\&quot\;/gi,'"');var d='<span class="jta-tweet-source"> '+c._resourceBundle._("via")+' <span class="jta-tweet-source-link">'+e+"</span></span>";return d};defaultTweetGeoLocationDecorator=function(h,d){var e="";var c=h.retweeted_status||h;var g=null;if(c.geo&&c.geo.coordinates){g=c.geo.coordinates.join()}else{if(c.place&&c.place.full_name){g=c.place.full_name}}if(g){var b=d._resourceBundle._("here");if(c.place&&c.place.full_name){b=c.place.full_name}var f="http://maps.google.com/maps?q="+g;e='<span class="jta-tweet-location"> '+d._resourceBundle._("from")+' <a class="jta-tweet-location-link" href="'+f+'" target="_blank">'+b+"</a></span>"}return e};defaultTweetInReplyToDecorator=function(g,c){var b=g.retweeted_status||g;var e="";if(b.in_reply_to_status_id&&b.in_reply_to_screen_name){var f="http://twitter.com/"+b.in_reply_to_screen_name+"/status/"+b.in_reply_to_status_id;var d=c._resourceBundle._("in reply to")+" "+b.in_reply_to_screen_name;e='<span class="jta-tweet-inreplyto"> <a class="jta-tweet-inreplyto-link" href="'+f+'" target="_blank">'+d+"</a></span>"}return e};defaultTweetRetweeterDecorator=function(h,b){var d="";if(h.retweeted_status){var c=getUserScreenName(h);var g=(h.retweeted_status.retweet_count||0)-1;var f='<a class="jta-tweet-retweeter-link" href="http://twitter.com/'+c+'" target="_blank">'+c+"</a>";var e=b._resourceBundle.__(" and %rtc% other"," and %rtc% others",g,{"%rtc%":g});d='<br/><span class="jta-tweet-retweeter">'+b._resourceBundle._("Retweeted by")+" "+f+(g>0?e:"")+"</span>"}return d};defaultTweetActionsDecorator=function(d,b){var c="";if(b.tweetActionReplyDecorator||b.tweetActionRetweetDecorator||b.tweetActionFavoriteDecorator){c+='<span class="jta-tweet-actions">';if(b.tweetActionReplyDecorator){c+=b.tweetActionReplyDecorator(d,b)}if(b.tweetActionRetweetDecorator){c+=b.tweetActionRetweetDecorator(d,b)}if(b.tweetActionFavoriteDecorator){c+=b.tweetActionFavoriteDecorator(d,b)}c+="</span>"}return c};defaultTweetActionReplyDecorator=function(f,b){var e="https://twitter.com/intent/tweet?in_reply_to="+f.id;var d=b._resourceBundle._("Reply");var c='<span class="jta-tweet-action-reply"><a href="'+e+'">'+d+"</a></span>";return c};defaultTweetActionRetweetDecorator=function(f,b){var e="https://twitter.com/intent/retweet?tweet_id="+f.id;var d=b._resourceBundle._("Retweet");var c='<span class="jta-tweet-action-retweet"><a href="'+e+'">'+d+"</a></span>";return c};defaultTweetActionFavoriteDecorator=function(f,b){var e="https://twitter.com/intent/favorite?tweet_id="+f.id;var d=b._resourceBundle._("Favorite");var c='<span class="jta-tweet-action-favorite"><a href="'+e+'">'+d+"</a></span>";return c};defaultConnectButtonDecorator=function(b){return'<div class="jta-connect-button"></div>'};defaultLoginInfoDecorator=function(b){return'<div class="jta-login-info"></div>'};defaultLoginInfoContentDecorator=function(d,c){var f="";if(c.isConnected()){var e=c.currentUser.data("screen_name");var b=c.currentUser.data("profile_image_url");f='<div class="jta-login-info-profile-image"><a href="http://twitter.com/'+e+'" target="_blank"><img src="'+b+'" alt="'+e+'" title="'+e+'"/></a></div><div class="jta-login-info-block"><div class="jta-login-info-screen-name"><a href="http://twitter.com/'+e+'" target="_blank">'+e+'</a></div><div class="jta-login-info-sign-out">'+d._resourceBundle._("Sign out")+'</div></div><div class="jta-clear">&nbsp;</div>'}return f};defaultFollowButtonDecorator=function(b){return'<div class="jta-follow-button"></div>'};defaultTweetBoxDecorator=function(b){return'<div class="jta-tweet-box"></div>'};defaultLinkDecorator=function(c,b){return c.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'<a href="$1" class="jta-tweet-a jta-tweet-link" target="_blank" rel="nofollow">$1</a>')};defaultUsernameDecorator=function(c,b){return isAnywherePresent()?c:c.replace(/\B@(\w+)/gi,'@<a href="http://twitter.com/$1" class="jta-tweet-a twitter-anywhere-user" target="_blank" rel="nofollow">$1</a>')};defaultHashtagDecorator=function(c,b){return c.replace(/#([a-zA-Z0-9_]+)/gi,'<a href="http://search.twitter.com/search?q=%23$1" class="jta-tweet-a jta-tweet-hashtag" title="#$1" target="_blank" rel="nofollow">#$1</a>')};defaultLoadingDecorator=function(b){return'<li class="jta-loading">'+b._resourceBundle._("loading")+" ...</li>"};defaultErrorDecorator=function(b,c){return'<li class="jta-error">'+c._resourceBundle._("ERROR")+": "+b+"</li>"};defaultNoDataDecorator=function(b){return'<li class="jta-nodata">'+b._resourceBundle._("No more data")+"</li>"};defaultTweetFilter=function(c,b){return true};defaultTweetVisualizer=function(d,e,b,c){d[b](e)};defaultLoadingIndicatorVisualizer=function(d,b,c,e){defaultVisualizer(d,b,"append","fadeIn",600,"fadeOut",200,e)};defaultAutorefreshTriggerVisualizer=function(c,d,b,e){defaultVisualizer(c,d,"prepend","slideDown",600,"fadeOut",200,e)};defaultVisualizer=function(b,f,g,j,c,e,k,h){var d=function(){if(h){h()}};if(b){f.hide();b[g](f);f[j](c,d)}else{f[e](k,function(){f.remove();d()})}};defaultOnDataRequestHandler=function(c,b){return true};defaultOnRateLimitDataHandler=function(c,b){};defaultOnOptionsInitializingHandler=function(b){};updateLoginInfoElement=function(c,b){if(c._loginInfoElement&&c.loginInfoContentDecorator){c._loginInfoElement.children().remove();c._loginInfoElement.append(c.loginInfoContentDecorator(c,b));a(c._baseSelector+" .jta-login-info-sign-out").bind("click",function(){twttr.anywhere.signOut()})}};getFeedUrl=function(d,c){var b=("https:"==document.location.protocol?"https:":"http:");if(d.searchParams){b+="//search.twitter.com/search.json?"+((d.searchParams instanceof Array)?d.searchParams.join("&"):d.searchParams)+"&rpp=100"}else{if(d.list){if("favorites"==d.list){b+="//api.twitter.com/1/favorites/"+d.username+".json?count=20"}else{b+="//api.twitter.com/1/"+d.username+"/lists/"+d.list+"/statuses.json?per_page=20"}}else{b+="//api.twitter.com/1/statuses/user_timeline.json?screen_name="+d.username+"&count=20";if(d._tweetFeedConfig.includeRetweets){b+="&include_rts=true"}}}if(c){b+=(d._tweetFeedConfig._maxId?"&max_id="+d._tweetFeedConfig._maxId:"")+"&page="+d._tweetFeedConfig._pageParam}b+="&callback=?";return b};isAnywherePresent=function(){return(typeof(twttr)!="undefined"&&typeof(twttr.anywhere)!="undefined")};clearTweetFeed=function(b){if(b._tweetFeedElement){b._tweetFeedElement.empty()}};setupOptions=function(b){b._resourceBundle=JTA_I18N.getResourceBundle("jTweetsAnywhere",b.locale);b._tweetBoxConfig.label=b._resourceBundle._("What's happening?");if(typeof(b.username)!="string"){if(!b.searchParams){b.searchParams=["q=from:"+b.username.join(" OR from:")]}b.username=b.username[0]}if(typeof(b.showTweetFeed)=="object"){a.extend(true,b._tweetFeedConfig,b.showTweetFeed)}if(typeof(b.showTweetBox)=="object"){a.extend(true,b._tweetBoxConfig,b.showTweetBox);b.showTweetBox=true}if(typeof(b.showConnectButton)=="object"){b._connectButtonConfig=b.showConnectButton;b.showConnectButton=true}if(b._tweetFeedConfig.showProfileImages==null){b._tweetFeedConfig.showProfileImages=b.tweetProfileImagePresent}if(b._tweetFeedConfig.showProfileImages==null){b._tweetFeedConfig.showProfileImages=(b.list||b.searchParams)&&b.tweetProfileImageDecorator}if(b._tweetFeedConfig.autoConformToTwitterStyleguide){b._tweetFeedConfig.showUserFullNames=null;b._tweetFeedConfig.showTwitterBird=true;b._tweetFeedConfig.showActionReply=true;b._tweetFeedConfig.showActionRetweet=true;b._tweetFeedConfig.showActionFavorite=true}if(b._tweetFeedConfig.showUserScreenNames==null){if(b.list||b.searchParams){b._tweetFeedConfig.showUserScreenNames=true}if(!b.tweetUsernameDecorator){b._tweetFeedConfig.showUserScreenNames=false}}if(b._tweetFeedConfig.showUserFullNames==null){if(b.list||b.searchParams){b._tweetFeedConfig.showUserFullNames=true}if(!b.tweetUsernameDecorator){b._tweetFeedConfig.showUserFullNames=false}}b.count=validateRange(b.count,0,b.searchParams?100:20);b._tweetFeedConfig.autorefresh.interval=Math.max(30,b._tweetFeedConfig.autorefresh.interval);if(b._tweetFeedConfig.autorefresh.max<=0){b._tweetFeedConfig.autorefresh.max=-1}b._tweetFeedConfig.paging._offset=0;b._tweetFeedConfig.paging._limit=b.count;if(b.count==0||!b.showTweetFeed){b.tweetFeedDecorator=null;b.tweetFeedControlsDecorator=null}if(b._tweetFeedConfig.paging.mode=="none"){b.tweetFeedControlsDecorator=null}if(!b.showFollowButton){b.followButtonDecorator=null}if(!b.showTweetBox){b.tweetBoxDecorator=null}if(!b.showConnectButton){b.connectButtonDecorator=null}if(!b.showLoginInfo){b.loginInfoDecorator=null}if(!b._tweetFeedConfig.showTwitterBird){b.tweetTwitterBirdDecorator=null}if(!b._tweetFeedConfig.showTimestamp){b.tweetTimestampDecorator=null}if(!b._tweetFeedConfig.showSource){b.tweetSourceDecorator=null}if(!b._tweetFeedConfig.showGeoLocation){b.tweetGeoLocationDecorator=null}if(!b._tweetFeedConfig.showInReplyTo){b.tweetInReplyToDecorator=null}if(!b._tweetFeedConfig.showActionReply){b.tweetActionReplyDecorator=null}if(!b._tweetFeedConfig.showActionRetweet){b.tweetActionRetweetDecorator=null}if(!b._tweetFeedConfig.showActionFavorite){b.tweetActionFavoriteDecorator=null}};setupAutorefresh=function(b){b._tweetFeedConfig.autorefresh._startTime=new Date().getTime();startAutorefresh(b);startTimestampRefresh(b)};populateTweetFeed=function(b){if(b.tweetDecorator&&b._tweetFeedElement){getPagedTweets(b,function(d,c){if(c._tweetFeedConfig._clearBeforePopulate){clearTweetFeed(c)}hideLoadingIndicator(c,function(){a.each(d,function(e,f){c.tweetVisualizer(c._tweetFeedElement,a(c.tweetDecorator(f,c)),"append",c)});if(c._tweetFeedConfig._noData&&c.noDataDecorator&&!c._tweetFeedConfig._noDataElement){c._tweetFeedConfig._noDataElement=a(c.noDataDecorator(c));c._tweetFeedElement.append(c._tweetFeedConfig._noDataElement)}if(c._tweetFeedConfig._clearBeforePopulate){c._tweetFeedElement.scrollTop(0)}addHovercards(c)})})}};populateTweetFeed2=function(b){if(b._tweetFeedElement&&b._autorefreshTweetsCache.length>0){if(b._tweetFeedConfig.autorefresh.mode=="trigger-insert"){if(b._tweetFeedConfig.autorefresh._triggerElement){if(b.tweetFeedAutorefreshTriggerContentDecorator){b._tweetFeedConfig.autorefresh._triggerElement.html(b.tweetFeedAutorefreshTriggerContentDecorator(b._autorefreshTweetsCache.length,b))}}else{if(b.tweetFeedAutorefreshTriggerDecorator){b._tweetFeedConfig.autorefresh._triggerElement=a(b.tweetFeedAutorefreshTriggerDecorator(b._autorefreshTweetsCache.length,b));b._tweetFeedConfig.autorefresh._triggerElement.bind("click",function(){b.autorefreshTriggerVisualizer(null,b._tweetFeedConfig.autorefresh._triggerElement,b,function(){insertTriggerTweets(b)});b._tweetFeedConfig.autorefresh._triggerElement=null});b.autorefreshTriggerVisualizer(b._tweetFeedElement,b._tweetFeedConfig.autorefresh._triggerElement,b)}}}else{insertTriggerTweets(b)}}};insertTriggerTweets=function(b){if(b.tweetDecorator&&b._autorefreshTweetsCache.length>0){while(b._autorefreshTweetsCache.length>0){var c=b._autorefreshTweetsCache.pop();b._tweetsCache.unshift(c);b._tweetFeedConfig.paging._offset++;b.tweetVisualizer(b._tweetFeedElement,a(b.tweetDecorator(c,b)),"prepend",b)}addHovercards(b)}};addHovercards=function(b){if(isAnywherePresent()){twttr.anywhere(function(c){c(b._baseSelector+" .jta-tweet-list").hovercards({expanded:b._tweetFeedConfig.expandHovercards});c(b._baseSelector+" .jta-tweet-profile-image img").hovercards({expanded:b._tweetFeedConfig.expandHovercards,username:function(d){return d.alt}});c(b._baseSelector+" .jta-tweet-retweeter-link").hovercards({expanded:b._tweetFeedConfig.expandHovercards,username:function(d){return d.text}});c(b._baseSelector+" .jta-tweet-user-screen-name-link").hovercards({expanded:b._tweetFeedConfig.expandHovercards,username:function(d){return d.text}});c(b._baseSelector+" .jta-tweet-user-full-name-link").hovercards({expanded:b._tweetFeedConfig.expandHovercards,username:function(d){return d.name}})})}};populateAnywhereControls=function(b){if(isAnywherePresent()){twttr.anywhere(function(c){if(b.tweetBoxDecorator){c(b._baseSelector+" .jta-tweet-box").tweetBox(b._tweetBoxConfig)}if(b.followButtonDecorator){c(b._baseSelector+" .jta-follow-button").followButton(b.username)}if(b.connectButtonDecorator){var d=a.extend({authComplete:function(e){updateLoginInfoElement(b,c)},signOut:function(){updateLoginInfoElement(b,c)}},b._connectButtonConfig);c(b._baseSelector+" .jta-connect-button").connectButton(d);updateLoginInfoElement(b,c)}})}};bindEventHandlers=function(b){if(b.tweetFeedControlsDecorator){if(b._tweetFeedConfig.paging.mode=="prev-next"){a(b._baseSelector+" .jta-tweet-list-controls-button-prev").bind("click",function(){if(!isLoading(b)&&b._tweetFeedConfig.paging._offset>0){prevPage(b,true)}});a(b._baseSelector+" .jta-tweet-list-controls-button-next").bind("click",function(){if(!isLoading(b)){nextPage(b,true)}})}else{if(b._tweetFeedConfig.paging.mode=="endless-scroll"){b._tweetFeedElement.bind("scroll",function(){if(!isLoading(b)&&(a(this)[0].scrollHeight-a(this).scrollTop()==a(this).outerHeight())){nextPage(b,false)}})}else{a(b._baseSelector+" .jta-tweet-list-controls-button-more").bind("click",function(){if(!isLoading(b)){nextPage(b,false)}})}}}};nextPage=function(c,b){doPage(c,b,Math.min(c._tweetFeedConfig.paging._offset+c._tweetFeedConfig.paging._limit,c._tweetsCache.length))};prevPage=function(c,b){doPage(c,b,Math.max(0,c._tweetFeedConfig.paging._offset-c._tweetFeedConfig.paging._limit))};doPage=function(c,b,d){c._tweetFeedConfig.paging._offset=d;c._tweetFeedConfig._clearBeforePopulate=b;populateTweetFeed(c)};startAutorefresh=function(b){if(b._tweetFeedConfig.autorefresh.mode!="none"&&b._tweetFeedConfig.paging.mode!="prev-next"&&b._tweetFeedConfig.autorefresh.duration!=0&&(b._tweetFeedConfig.autorefresh.duration<0||(new Date().getTime()-b._tweetFeedConfig.autorefresh._startTime)<=b._tweetFeedConfig.autorefresh.duration*1000)){window.setTimeout(function(){processAutorefresh(b)},b._tweetFeedConfig.autorefresh.interval*1000)}};stopAutorefresh=function(b){b._tweetFeedConfig.autorefresh.duration=0};processAutorefresh=function(b){if(b._tweetFeedConfig.autorefresh.duration!=0){getRateLimitedData(b,true,getFeedUrl(b,false),function(d,c){var e=(d.results||d).slice(0);e.reverse();a.each(e,function(f,g){if(g.id_str){g.id=g.id_str}if(g.in_reply_to_status_id_str){g.in_reply_to_status_id=g.in_reply_to_status_id_str}if(!isTweetInAutorefreshCache(g,c)&&!isTweetInCache(g,c)){if(c.tweetFilter(g,c)){c._autorefreshTweetsCache.unshift(g);if(c._tweetFeedConfig.autorefresh.max>0){while(c._autorefreshTweetsCache.length>c._tweetFeedConfig.autorefresh.max){c._autorefreshTweetsCache.pop()}}}}});populateTweetFeed2(c)});startAutorefresh(b)}};startTimestampRefresh=function(b){if(b.tweetTimestampDecorator&&typeof(b._tweetFeedConfig.showTimestamp)=="object"&&b._tweetFeedConfig.showTimestamp.refreshInterval>0){window.setTimeout(function(){processTimestampRefresh(b)},b._tweetFeedConfig.showTimestamp.refreshInterval*1000)}};processTimestampRefresh=function(b){a.each(b._tweetFeedElement.find(".jta-tweet-timestamp-link"),function(c,e){var d=a(e).attr("data-timestamp");a(e).html(b.tweetTimestampFormatter(d,b))});startTimestampRefresh(b)};isTweetInCache=function(e,c){var b=c._tweetsCache.length;for(var d=0;d<b;d++){if(e.id==c._tweetsCache[d].id){return true}}return false};isTweetInAutorefreshCache=function(e,c){var b=c._autorefreshTweetsCache.length;for(var d=0;d<b;d++){if(e.id==c._autorefreshTweetsCache[d].id){return true}}return false};showLoadingIndicator=function(b){if(b._tweetFeedElement&&b.loadingDecorator&&!b._loadingIndicatorElement){b._loadingIndicatorElement=a(b.loadingDecorator(b));b.loadingIndicatorVisualizer(b._tweetFeedElement,b._loadingIndicatorElement,b,null);b._tweetFeedElement.scrollTop(1000000)}};hideLoadingIndicator=function(b,c){if(b._loadingIndicatorElement){b.loadingIndicatorVisualizer(null,b._loadingIndicatorElement,b,c);b._loadingIndicatorElement=null}else{if(c){c()}}};isLoading=function(b){return b._loadingIndicatorElement!=null};formatDate=function(b){return b.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3")};getUserScreenName=function(c){var b=c.user?c.user.screen_name:false||c.from_user;return b};getScreenName=function(d){var c=d.retweeted_status||d;var b=c.user?c.user.screen_name:false||c.from_user;return b};getFullName=function(d){var b=d.retweeted_status||d;var c=b.user?b.user.name:undefined;return c};validateRange=function(c,d,b){if(c<d){c=d}if(c>b){c=b}return c};showError=function(c,b){if(c.errorDecorator&&c._tweetFeedElement){c._tweetFeedElement.append(c.errorDecorator(b,c))}};getPagedTweets=function(b,c){b._tweetFeedConfig._recLevel=0;getRecPagedTweets(b,b._tweetFeedConfig.paging._offset,b._tweetFeedConfig.paging._limit,c)};getRecPagedTweets=function(c,f,b,g){++c._tweetFeedConfig._recLevel;if(f+b<=c._tweetsCache.length||c._tweetFeedConfig._recLevel>3||c._tweetFeedConfig._noData){if(f+b>c._tweetsCache.length){b=Math.max(0,c._tweetsCache.length-f)}var e=[];for(var d=0;d<b;d++){e[d]=c._tweetsCache[f+d]}g(e,c)}else{++c._tweetFeedConfig._pageParam;getRateLimitedData(c,false,getFeedUrl(c,true),function(j,h){var k=j.results||j;if(k.length==0){h._tweetFeedConfig._noData=true}else{a.each(k,function(l,m){if(m.id_str){m.id=m.id_str}if(m.in_reply_to_status_id_str){m.in_reply_to_status_id=m.in_reply_to_status_id_str}if(!h._tweetFeedConfig._maxId){h._tweetFeedConfig._maxId=m.id}if(h.tweetFilter(m,h)){h._tweetsCache.push(m)}})}getRecPagedTweets(h,f,b,g)})}};getRateLimitedData=function(c,d,b,e){getRateLimit(c,function(f){if(f&&f.remaining_hits<=0){c._stats.rateLimitPreventionCount++;hideLoadingIndicator(c,null);return}getData(c,d,b,e)})};getData=function(c,d,b,e){c._stats.dataRequestCount++;if(!c.onDataRequestHandler(c._stats,c)){hideLoadingIndicator(c,null);return}if(!d){showLoadingIndicator(c)}c.tweetDataProvider(b,function(f){if(f.error){showError(c,f.error)}else{e(f,c)}})};getRateLimit=function(b,c){b.rateLimitDataProvider(function(d){b._stats.rateLimit=d;b.onRateLimitDataHandler(b._stats,b);c(d)})};defaultTweetDataProvider=function(b,c){a.getJSON(b,c)};defaultRateLimitDataProvider=function(b){a.getJSON("http://api.twitter.com/1/account/rate_limit_status.json?callback=?",b)}})(jQuery);(function(a){a.fn.placeHolder=function(c){var b=this;var d={text:"Placeholder",placeholder:"#999",active:"#000"};return this.each(function(){if(c){a.extend(d,c)}b.val(d.text);b.css("color",d.placeholder);b.focus(function(){if(b.val()==d.text){b.css("color",d.active);b.val("")}});b.focusout(function(){a("#search_box img").css("display","none");if(b.val()==""||b.val()==d.text){b.val(d.text);b.css("color",d.placeholder)}})})}})(jQuery);(function(b){b.tools=b.tools||{version:"@VERSION"};b.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:"> *",items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",size:1,speed:400,vertical:false,touch:true,wheelSpeed:0}};function d(j,g){var f=parseInt(j.css(g),10);if(f){return f}var h=j[0].currentStyle;return h&&h.width&&parseInt(h.width,10)}function e(f,h){var g=b(h);return g.length<2?g:f.parent().find(h)}var c;function a(s,q){var t=this,g=s.add(t),f=s.children(),n=0,j=q.vertical;if(!c){c=t}if(f.length>1){f=b(q.items,s)}if(q.size>1){q.circular=false}b.extend(t,{getConf:function(){return q},getIndex:function(){return n},getSize:function(){return t.getItems().size()},getNaviButtons:function(){return h.add(l)},getRoot:function(){return s},getItemWrap:function(){return f},getItems:function(){return f.find(q.item).not("."+q.clonedClass)},move:function(v,u){return t.seekTo(n+v,u)},next:function(u){return t.move(q.size,u)},prev:function(u){return t.move(-q.size,u)},begin:function(u){return t.seekTo(0,u)},end:function(u){return t.seekTo(t.getSize()-1,u)},focus:function(){c=t;return t},addItem:function(u){u=b(u);if(!q.circular){f.append(u);l.removeClass("disabled")}else{f.children().last().before(u);f.children().first().replaceWith(u.clone().addClass(q.clonedClass))}g.trigger("onAddItem",[u]);return t},seekTo:function(u,z,w){if(!u.jquery){u*=1}if(q.circular&&u===0&&n==-1&&z!==0){return t}if(!q.circular&&u<0||u>t.getSize()||u<-1){return t}var x=u;if(u.jquery){u=t.getItems().index(u)}else{x=t.getItems().eq(u)}var y=b.Event("onBeforeSeek");if(!w){g.trigger(y,[u,z]);if(y.isDefaultPrevented()||!x.length){return t}}var v=j?{top:-x.position().top}:{left:-x.position().left};n=u;c=t;if(z===undefined){z=q.speed}f.animate(v,z,q.easing,w||function(){g.trigger("onSeek",[u])});return t}});b.each(["onBeforeSeek","onSeek","onAddItem"],function(v,u){if(b.isFunction(q[u])){b(t).bind(u,q[u])}t[u]=function(w){if(w){b(t).bind(u,w)}return t}});if(q.circular){var o=t.getItems().slice(-1).clone().prependTo(f),m=t.getItems().eq(1).clone().appendTo(f);o.add(m).addClass(q.clonedClass);t.onBeforeSeek(function(w,u,v){if(w.isDefaultPrevented()){return}if(u==-1){t.seekTo(o,v,function(){t.end(0)});return w.preventDefault()}else{if(u==t.getSize()){t.seekTo(m,v,function(){t.begin(0)})}}});var r=s.parents().add(s).filter(function(){if(b(this).css("display")==="none"){return true}});if(r.length){r.show();t.seekTo(0,0,function(){});r.hide()}else{t.seekTo(0,0,function(){})}}var h=e(s,q.prev).click(function(u){u.stopPropagation();t.prev()}),l=e(s,q.next).click(function(u){u.stopPropagation();t.next()});if(!q.circular){t.onBeforeSeek(function(v,u){setTimeout(function(){if(!v.isDefaultPrevented()){h.toggleClass(q.disabledClass,u<=0);l.toggleClass(q.disabledClass,u>=t.getSize()-1)}},1)});if(!q.initialIndex){h.addClass(q.disabledClass)}}if(t.getSize()<2){h.add(l).addClass(q.disabledClass)}if(q.mousewheel&&b.fn.mousewheel){s.mousewheel(function(u,v){if(q.mousewheel){t.move(v<0?1:-1,q.wheelSpeed||50);return false}})}if(q.touch){var k={};f[0].ontouchstart=function(v){var u=v.touches[0];k.x=u.clientX;k.y=u.clientY};f[0].ontouchmove=function(x){if(x.touches.length==1&&!f.is(":animated")){var w=x.touches[0],v=k.x-w.clientX,u=k.y-w.clientY;t[j&&u>0||!j&&v>0?"next":"prev"]();x.preventDefault()}}}if(q.keyboard){b(document).bind("keydown.scrollable",function(u){if(!q.keyboard||u.altKey||u.ctrlKey||u.metaKey||b(u.target).is(":input")){return}if(q.keyboard!="static"&&c!=t){return}var v=u.keyCode;if(j&&(v==38||v==40)){t.move(v==38?-1:1);return u.preventDefault()}if(!j&&(v==37||v==39)){t.move(v==37?-1:1);return u.preventDefault()}})}if(q.initialIndex){t.seekTo(q.initialIndex,0,function(){})}}b.fn.scrollable=function(f){var g=this.data("scrollable");if(g){return g}f=b.extend({},b.tools.scrollable.conf,f);this.each(function(){g=new a(b(this),f);b(this).data("scrollable",g)});return f.api?g:this}})(jQuery);(function(e){var b={},l,n,q,k=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(r){r=e.extend({},e.tooltip.defaults,r);h(r);return this.each(function(){e.data(this,"tooltip",r);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(m).mouseout(f).click(f)},fixPNG:k?function(){return this.each(function(){var r=e(this).css("backgroundImage");if(r.match(/^url\(["']?(.*\.png)["']?\)$/i)){r=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+r+"')"}).each(function(){var s=e(this).css("position");if(s!="absolute"&&s!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:k?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(r){if(b.parent){return}b.parent=e('<div id="'+r.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h3",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(r){return e.data(r,"tooltip")}function g(r){if(c(this).delay){q=setTimeout(o,c(this).delay)}else{o()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(r)}function m(){if(e.tooltip.blocked||this==l||(!this.tooltipText&&!c(this).bodyHandler)){return}l=this;n=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var u=c(this).bodyHandler.call(this);if(u.nodeType||u.jquery){b.body.empty().append(u)}else{b.body.html(u)}b.body.show()}else{if(c(this).showBody){var t=n.split(c(this).showBody);b.title.html(t.shift()).show();b.body.empty();for(var s=0,r;(r=t[s]);s++){if(s>0){b.body.append("<br/>")}b.body.append(r)}b.body.hideWhenEmpty()}else{b.title.html(n).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function o(){q=null;if((!k||!e.fn.bgiframe)&&c(l).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(l).fade,l.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(l).fade,l.tOpacity):b.parent.fadeIn(c(l).fade)}}else{b.parent.show()}d()}function d(u){if(e.tooltip.blocked){return}if(u&&u.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(l==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var x=b.parent[0].offsetLeft;var w=b.parent[0].offsetTop;if(u){x=u.pageX+c(l).left;w=u.pageY+c(l).top;var s="auto";if(c(l).positionLeft){s=e(window).width()-x;x="auto"}b.parent.css({left:x,right:s,top:w})}var r=j(),t=b.parent[0];if(r.x+r.cx<t.offsetLeft+t.offsetWidth){x-=t.offsetWidth+20+c(l).left;b.parent.css({left:x+"px"}).addClass("viewport-right")}if(r.y+r.cy<t.offsetTop+t.offsetHeight){w-=t.offsetHeight+20+c(l).top;b.parent.css({top:w+"px"}).addClass("viewport-bottom")}}function j(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(t){if(e.tooltip.blocked){return}if(q){clearTimeout(q)}l=null;var s=c(this);function r(){b.parent.removeClass(s.extraClass).hide().css("opacity","")}if((!k||!e.fn.bgiframe)&&s.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(s.fade,0,r)}else{b.parent.stop().fadeOut(s.fade,r)}}else{r()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);var ticketline={notifyError:function(a,b){var b=(b!="undefined")?b:false;$.jnotify(a,{type:"error",sticky:b})},notifyWarning:function(a,b){var b=(b!="undefined")?b:false;$.jnotify(a,{type:"warning",sticky:b})},notifyNotice:function(a,b){var b=(b!="undefined")?b:false;$.jnotify(a,{type:"notice",sticky:b,delay:1500})},checkCookie:function(){$.cookie("tlCookieTest","1");if($.cookie("tlCookieTest")){$.cookie("tlCookieTest",null)}else{var a="<h3>Please note: you must have cookies enabled to order tickets via this website</h3>";ticketline.notifyError(a,true)}}};$(function(){$("#searchMain input[type=text]").focus(function(a){$(this).val("")});$("#container").delegate(".itemClickable","click",function(a){window.location=$(this).find("a").attr("href")});$(".toolTip").tooltip({track:true,delay:0,showURL:false,showBody:" - ",fade:250,top:-12});$(".accordionContainer").easyAccordion({autoStart:true,slideNum:false,slideInterval:6000});$.featureList($("#tabs li a"),$("#output li"),{start_item:0,transition_interval:6000});$(".scrollable").each(function(a){nestedCount=$(this).find(".galleryGroup").size();if(nestedCount>1){$(this).scrollable()}else{$(this).find(".browse").addClass("disabled")}});if(navigator.platform=="iPad"||navigator.platform=="iPhone"||navigator.platform=="iPod"){$("#topLink").css("position","absolute");$("#reportBugLink").css("position","absolute")}$(".openNewWindow").click(function(a){window.open(this.href,"_blank","top=0, left=0, width=650, height=550, scrollbars=yes");return false;a.preventDefault()})});$(window).load(function(){ticketline.checkCookie()});function switchSigninFields(a){selectedUserType=$("ul#chooseUserType li > input:checked").val();if(selectedUserType=="existing_user"){$("#chooseUserType .newUser").removeClass("selected");$("#chooseUserType .existingUser").addClass("selected");if(a){$("#newUserFields, #emailAddressAgain").slideUp();$("#existingUserFields").slideDown()}else{$("#newUserFields, #emailAddressAgain").hide();$("#existingUserFields").show()}}else{if(selectedUserType=="new_user"){$("#chooseUserType .existingUser").removeClass("selected");$("#chooseUserType .newUser").addClass("selected");if(a){$("#newUserFields, #emailAddressAgain").slideDown();$("#existingUserFields").slideUp()}else{$("#existingUserFields").hide();$("#newUserFields, #emailAddressAgain").show()}}}};
