$(document).ready(function(){$("#basicuse").jflickrfeed({limit:14,qstrings:{id:"37304598@N02"},itemTemplate:'<li><a href="{{image_b}}"><img src="{{image_s}}" alt="{{title}}" /><\/a><\/li>'});$("#cbox").jflickrfeed({limit:14,qstrings:{id:"37304598@N02"},itemTemplate:'<li><a rel="colorbox" href="{{image}}" title="{{title}}"><img src="{{image_s}}" alt="{{title}}" /><\/a><\/li>'},function(){$("#cbox a").colorbox()});$("#cycle").jflickrfeed({limit:14,qstrings:{id:"37304598@N02"},itemTemplate:'<li><img src="{{image}}" alt="{{title}}" /><div>{{title}}<\/div><\/li>'},function(){$("#cycle div").hide();$("#cycle").cycle({timeout:5e3});$("#cycle li").hover(function(){$(this).children("div").show()},function(){$(this).children("div").hide()})});$("#nocallback").jflickrfeed({limit:4,qstrings:{id:"37304598@N02"},useTemplate:!1,itemCallback:function(n){$(this).append("<li><img src='"+n.image_m+"' alt=''/><\/li>")}})}),function(n){function u(i){n.fn.cycle.debug&&t(i)}function t(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function h(r,u,f){var e,o;if(r.cycleStop==undefined&&(r.cycleStop=0),(u===undefined||u===null)&&(u={}),u.constructor==String){switch(u){case"destroy":case"stop":return(e=n(r).data("cycle.opts"),!e)?!1:(r.cycleStop++,r.cycleTimeout&&clearTimeout(r.cycleTimeout),r.cycleTimeout=0,n(r).removeData("cycle.opts"),u=="destroy"&&c(e),!1);case"toggle":return r.cyclePause=r.cyclePause===1?0:1,!1;case"pause":return r.cyclePause=1,!1;case"resume":if(r.cyclePause=0,f===!0){if(u=n(r).data("cycle.opts"),!u)return t("options not found, can not resume"),!1;r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0);i(u.elements,u,1,1)}return!1;case"prev":case"next":return(e=n(r).data("cycle.opts"),!e)?(t('options not found, "prev/next" ignored'),!1):(n.fn.cycle[u](e),!1);default:u={fx:u}}return u}return u.constructor==Number?(o=u,u=n(r).data("cycle.opts"),!u)?(t("options not found, can not advance slide"),!1):o<0||o>=u.elements.length?(t("invalid slide index: "+o),!1):(u.nextSlide=o,r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0),typeof f=="string"&&(u.oneTimeFx=f),i(u.elements,u,1,o>=u.currSlide),!1):u}function f(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function c(t){t.next&&n(t.next).unbind(t.prevNextEvent);t.prev&&n(t.prev).unbind(t.prevNextEvent);(t.pager||t.pagerAnchorBuilder)&&n.each(t.pagerAnchors||[],function(){this.unbind().remove()});t.pagerAnchors=null;t.destroy&&t.destroy(t)}function l(u,e,s,h,c){var l=n.extend({},n.fn.cycle.defaults,h||{},n.metadata?u.metadata():n.meta?u.data():{}),ot,nt,p,st,k,d,tt,ft,et,b;if(l.autostop&&(l.countdown=l.autostopCount||s.length),ot=u[0],u.data("cycle.opts",l),l.$cont=u,l.stopCount=ot.cycleStop,l.elements=s,l.before=l.before?[l.before]:[],l.after=l.after?[l.after]:[],l.after.unshift(function(){l.busy=0}),!n.support.opacity&&l.cleartype&&l.after.push(function(){f(this,l)}),l.continuous&&l.after.push(function(){i(s,l,0,!l.rev)}),a(l),n.support.opacity||!l.cleartype||l.cleartypeNoBg||o(e),u.css("position")=="static"&&u.css("position","relative"),l.width&&u.width(l.width),l.height&&l.height!="auto"&&u.height(l.height),l.startingSlide&&(l.startingSlide=parseInt(l.startingSlide)),l.random){for(l.randomMap=[],nt=0;nt<s.length;nt++)l.randomMap.push(nt);l.randomMap.sort(function(){return Math.random()-.5});l.randomIndex=1;l.startingSlide=l.randomMap[1]}else l.startingSlide>=s.length&&(l.startingSlide=0);if(l.currSlide=l.startingSlide||0,p=l.startingSlide,e.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i=p?t>=p?s.length-(t-p):p-t:s.length-t;n(this).css("z-index",i)}),n(s[p]).css("opacity",1).show(),f(s[p],l),l.fit&&l.width&&e.width(l.width),l.fit&&l.height&&l.height!="auto"&&e.height(l.height),st=l.containerResize&&!u.innerHeight(),st){for(k=0,d=0,tt=0;tt<s.length;tt++){var g=n(s[tt]),it=g[0],rt=g.outerWidth(),ut=g.outerHeight();rt||(rt=it.offsetWidth||it.width||g.attr("width"));ut||(ut=it.offsetHeight||it.height||g.attr("height"));k=rt>k?rt:k;d=ut>d?ut:d}k>0&&d>0&&u.css({width:k+"px",height:d+"px"})}if((l.pause&&u.hover(function(){this.cyclePause++},function(){this.cyclePause--}),v(l)===!1)||(ft=!1,h.requeueAttempts=h.requeueAttempts||0,e.each(function(){var i=n(this);if(this.cycleH=l.fit&&l.height?l.height:i.height()||this.offsetHeight||this.height||i.attr("height")||0,this.cycleW=l.fit&&l.width?l.width:i.width()||this.offsetWidth||this.width||i.attr("width")||0,i.is("img")){var r=n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,u=n.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,f=n.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,e=this.cycleH==0&&this.cycleW==0&&!this.complete;if(r||u||f||e){if(c.s&&l.requeueOnImageNotLoaded&&++h.requeueAttempts<100)return t(h.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(c.s,c.c).cycle(h)},l.requeueTimeout),ft=!0,!1;t("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),ft))return!1;if(l.cssBefore=l.cssBefore||{},l.animIn=l.animIn||{},l.animOut=l.animOut||{},e.not(":eq("+p+")").css(l.cssBefore),l.cssFirst&&n(e[p]).css(l.cssFirst),l.timeout)for(l.timeout=parseInt(l.timeout),l.speed.constructor==String&&(l.speed=n.fx.speeds[l.speed]||parseInt(l.speed)),l.sync||(l.speed=l.speed/2);l.timeout-l.speed<250;)l.timeout+=l.speed;if(l.easing&&(l.easeIn=l.easeOut=l.easing),l.speedIn||(l.speedIn=l.speed),l.speedOut||(l.speedOut=l.speed),l.slideCount=s.length,l.currSlide=l.lastSlide=p,l.random?(++l.randomIndex==s.length&&(l.randomIndex=0),l.nextSlide=l.randomMap[l.randomIndex]):l.nextSlide=l.startingSlide>=s.length-1?0:l.startingSlide+1,!l.multiFx)if(et=n.fn.cycle.transitions[l.fx],n.isFunction(et))et(u,e,l);else if(l.fx!="custom"&&!l.multiFx)return t("unknown transition: "+l.fx,"; slideshow terminating"),!1;return b=e[p],l.before.length&&l.before[0].apply(b,[b,b,l,!0]),l.after.length>1&&l.after[1].apply(b,[b,b,l,!0]),l.next&&n(l.next).bind(l.prevNextEvent,function(){return r(l,l.rev?-1:1)}),l.prev&&n(l.prev).bind(l.prevNextEvent,function(){return r(l,l.rev?1:-1)}),(l.pager||l.pagerAnchorBuilder)&&w(s,l),y(l,s),l}function a(t){t.original={before:[],after:[]};t.original.cssBefore=n.extend({},t.cssBefore);t.original.cssAfter=n.extend({},t.cssAfter);t.original.animIn=n.extend({},t.animIn);t.original.animOut=n.extend({},t.animOut);n.each(t.before,function(){t.original.before.push(this)});n.each(t.after,function(){t.original.after.push(this)})}function v(i){var r,f,e=n.fn.cycle.transitions,o,s,h;if(i.fx.indexOf(",")>0){for(i.multiFx=!0,i.fxs=i.fx.replace(/\s*/g,"").split(","),r=0;r<i.fxs.length;r++)o=i.fxs[r],f=e[o],f&&e.hasOwnProperty(o)&&n.isFunction(f)||(t("discarding unknown transition: ",o),i.fxs.splice(r,1),r--);if(!i.fxs.length)return t("No valid transitions named; slideshow terminating."),!1}else if(i.fx=="all"){i.multiFx=!0;i.fxs=[];for(p in e)f=e[p],e.hasOwnProperty(p)&&n.isFunction(f)&&i.fxs.push(p)}if(i.multiFx&&i.randomizeEffects){for(s=Math.floor(Math.random()*20)+30,r=0;r<s;r++)h=Math.floor(Math.random()*i.fxs.length),i.fxs.push(i.fxs.splice(h,1)[0]);u("randomized fx sequence: ",i.fxs)}return!0}function y(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||o(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&$slides.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function i(t,r,u,f){var c,a,v,l;if(u&&r.busy&&r.manualTrump&&(n(t).stop(!0,!0),r.busy=!1),!r.busy){var h=r.$cont[0],s=t[r.currSlide],o=t[r.nextSlide];if(h.cycleStop==r.stopCount&&(h.cycleTimeout!==0||u)){if(!u&&!h.cyclePause&&(r.autostop&&--r.countdown<=0||r.nowrap&&!r.random&&r.nextSlide<r.currSlide)){r.end&&r.end(r);return}(u||!h.cyclePause)&&r.nextSlide!=r.currSlide&&(c=r.fx,s.cycleH=s.cycleH||n(s).height(),s.cycleW=s.cycleW||n(s).width(),o.cycleH=o.cycleH||n(o).height(),o.cycleW=o.cycleW||n(o).width(),r.multiFx&&((r.lastFx==undefined||++r.lastFx>=r.fxs.length)&&(r.lastFx=0),c=r.fxs[r.lastFx],r.currFx=c),r.oneTimeFx&&(c=r.oneTimeFx,r.oneTimeFx=null),n.fn.cycle.resetState(r,c),r.before.length&&n.each(r.before,function(n,t){h.cycleStop==r.stopCount&&t.apply(o,[s,o,r,f])}),a=function(){n.each(r.after,function(n,t){h.cycleStop==r.stopCount&&t.apply(o,[s,o,r,f])})},r.busy=1,r.fxFn?r.fxFn(s,o,r,a,f):n.isFunction(n.fn.cycle[r.fx])?n.fn.cycle[r.fx](s,o,r,a):n.fn.cycle.custom(s,o,r,a,u&&r.fastOnEvent),r.lastSlide=r.currSlide,r.random?(r.currSlide=r.nextSlide,++r.randomIndex==t.length&&(r.randomIndex=0),r.nextSlide=r.randomMap[r.randomIndex]):(v=r.nextSlide+1==t.length,r.nextSlide=v?0:r.nextSlide+1,r.currSlide=v?t.length-1:r.nextSlide-1),r.pager&&r.updateActivePagerLink(r.pager,r.currSlide,r.activePagerClass));l=0;r.timeout&&!r.continuous?l=e(s,o,r,f):r.continuous&&h.cyclePause&&(l=10);l>0&&(h.cycleTimeout=setTimeout(function(){i(t,r,0,!r.rev)},l))}}}function e(n,t,i,r){if(i.timeoutFn){for(var f=i.timeoutFn(n,t,i,r);f-i.speed<250;)f+=i.speed;if(u("calculated timeout: "+f+"; speed: "+i.speed),f!==!1)return f}return i.timeout}function r(t,r){var u=t.elements,f=t.$cont[0],e=f.cycleTimeout;if(e&&(clearTimeout(e),f.cycleTimeout=0),t.random&&r<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=u.length-2:t.randomIndex==-1&&(t.randomIndex=u.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+r,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=u.length-1}else if(t.nextSlide>=u.length){if(t.nowrap)return!1;t.nextSlide=0}return n.isFunction(t.prevNextClick)&&t.prevNextClick(r>0,t.nextSlide,u[t.nextSlide]),i(u,t,1,r>=0),!1}function w(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)});i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function o(t){function i(n){return n=parseInt(n).toString(16),n.length<2?"0"+n:n}function r(t){for(var r,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(r=n.css(t,"background-color"),r.indexOf("rgb")>=0)return u=r.match(/\d+/g),"#"+i(u[0])+i(u[1])+i(u[2]);if(r&&r!="transparent")return r}return"#ffffff"}t.each(function(){n(this).css("background-color",r(this))})}var s="2.80";n.support==undefined&&(n.support={opacity:!n.browser.msie});n.fn.cycle=function(r,f){var o={s:this.selector,c:this.context};return this.length===0&&r!="stop"?!n.isReady&&o.s?(t("DOM not ready, queuing slideshow"),n(function(){n(o.s,o.c).cycle(r,f)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var a=h(this,r,f),s,c;if(a!==!1){a.updateActivePagerLink=a.updateActivePagerLink||n.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var y=n(this),p=a.slideExpr?n(a.slideExpr,this):y.children(),v=p.get();if(v.length<2){t("terminating; too few slides: "+v.length);return}(s=l(y,p,v,a,o),s!==!1)&&(c=s.continuous?10:e(s.currSlide,s.nextSlide,s,!s.rev),c&&(c+=s.delay||0,c<10&&(c=10),u("first timeout: "+c),this.cycleTimeout=setTimeout(function(){i(v,s,0,!s.rev)},c)))}})};n.fn.cycle.resetState=function(t,i){i=i||t.fx;t.before=[];t.after=[];t.cssBefore=n.extend({},t.original.cssBefore);t.cssAfter=n.extend({},t.original.cssAfter);t.animIn=n.extend({},t.original.animIn);t.animOut=n.extend({},t.original.animOut);t.fxFn=null;n.each(t.original.before,function(){t.before.push(this)});n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)};n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).find("a").removeClass(r).filter("a:eq("+i+")").addClass(r)})};n.fn.cycle.next=function(n){r(n,n.rev?-1:1)};n.fn.cycle.prev=function(n){r(n,n.rev?1:-1)};n.fn.cycle.createPagerAnchor=function(t,r,u,f,e){var s,o,h;(s=n.isFunction(e.pagerAnchorBuilder)?e.pagerAnchorBuilder(t,r):'<a href="#">'+(t+1)+"<\/a>",s)&&(o=n(s),o.parents("body").length===0&&(h=[],u.length>1?(u.each(function(){var t=o.clone(!0);n(this).append(t);h.push(t[0])}),o=n(h)):o.appendTo(u)),e.pagerAnchors=e.pagerAnchors||[],e.pagerAnchors.push(o),o.bind(e.pagerEvent,function(r){r.preventDefault();e.nextSlide=t;var u=e.$cont[0],o=u.cycleTimeout;o&&(clearTimeout(o),u.cycleTimeout=0);n.isFunction(e.pagerClick)&&e.pagerClick(e.nextSlide,f[e.nextSlide]);i(f,e,1,e.currSlide<t)}),/^click/.test(e.pagerEvent)||e.allowPagerClickBubble||o.bind("click.cycle",function(){return!1}),e.pauseOnPagerHover&&o.hover(function(){e.$cont[0].cyclePause++},function(){e.$cont[0].cyclePause--}))};n.fn.cycle.hopsFromLast=function(n,t){var i=n.lastSlide,r=n.currSlide;return t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r};n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide();r.cssBefore.opacity=1;r.cssBefore.display="block";u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW);f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH);r.cssAfter=r.cssAfter||{};r.cssAfter.display="none";n(t).css("zIndex",r.slideCount+(e===!0?1:0));n(i).css("zIndex",r.slideCount+(e===!0?0:1))};n.fn.cycle.custom=function(t,i,r,u,f){var s=n(t),h=n(i),c=r.speedIn,e=r.speedOut,l=r.easeIn,a=r.easeOut,o;h.css(r.cssBefore);f&&(c=typeof f=="number"?e=f:e=1,l=a=null);o=function(){h.animate(r.animIn,c,l,u)};s.animate(r.animOut,e,a,function(){r.cssAfter&&s.css(r.cssAfter);r.sync||o()});r.sync&&o()};n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0);r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.cssBefore.opacity=0});r.animIn={opacity:1};r.animOut={opacity:0};r.cssBefore={top:0,left:0}}};n.fn.cycle.ver=function(){return s};n.fn.cycle.defaults={fx:"fade",timeout:4e3,timeoutFn:null,continuous:0,speed:1e3,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click.cycle",pager:null,pagerClick:null,pagerEvent:"click.cycle",allowPagerClickBubble:!1,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:!0,requeueOnImageNotLoaded:!0,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null}}(jQuery),function(n){n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show();n(t).hide();u()}};n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore={top:u,left:0};r.cssFirst={top:0};r.animIn={top:0};r.animOut={top:-u}};n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst={top:0};r.cssBefore={top:-u,left:0};r.animIn={top:0};r.animOut={top:u}};n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst={left:0};r.cssBefore={left:u,top:0};r.animIn={left:0};r.animOut={left:0-u}};n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst={left:0};r.cssBefore={left:-u,top:0};r.animIn={left:0};r.animOut={left:u}};n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width();r.before.push(function(t,i,r,u){n.fn.cycle.commonReset(t,i,r);r.cssBefore.left=u?i.cycleW-1:1-i.cycleW;r.animOut.left=u?-t.cycleW:t.cycleW});r.cssFirst={left:0};r.cssBefore={top:0};r.animIn={left:0};r.animOut={top:0}};n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden");r.before.push(function(t,i,r,u){n.fn.cycle.commonReset(t,i,r);r.cssBefore.top=u?1-i.cycleH:i.cycleH-1;r.animOut.top=u?t.cycleH:-t.cycleH});r.cssFirst={top:0};r.cssBefore={left:0};r.animIn={top:0};r.animOut={left:0}};n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW});r.cssBefore={left:0,top:0,width:0};r.animIn={width:"show"};r.animOut={width:0}};n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH});r.cssBefore={left:0,top:0,height:0};r.animIn={height:"show"};r.animOut={height:0}};n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e=f?n(t):n(i),o;n(i).css(r.cssBefore);o=r.slideCount;e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var i,s,c,l=n.fn.cycle.hopsFromLast(r,f),h=0;h<l;h++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,s=r.els.length;i<s;i++)n(r.els[i]).css("z-index",s-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide();u&&u()})})};r.cssBefore={display:"block",opacity:1,top:0,left:0}};n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=i.cycleH;r.animIn.height=i.cycleH});r.cssFirst={top:0};r.cssBefore={left:0,height:0};r.animIn={top:0};r.animOut={height:0}};n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssFirst={top:0};r.cssBefore={left:0,top:0,height:0};r.animOut={height:0}};n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=i.cycleW;r.animIn.width=i.cycleW});r.cssBefore={top:0,width:0};r.animIn={left:0};r.animOut={width:0}};n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});r.cssBefore={top:0,left:0,width:0};r.animIn={left:0};r.animOut={width:0}};n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0);r.cssBefore.top=i.cycleH/2;r.cssBefore.left=i.cycleW/2;r.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH};r.animOut={width:0,height:0,top:t.cycleH/2,left:t.cycleW/2}});r.cssFirst={top:0,left:0};r.cssBefore={width:0,height:0}};n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1);r.cssBefore.left=i.cycleW/2;r.cssBefore.top=i.cycleH/2;r.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH}});r.cssBefore={width:0,height:0};r.animOut={opacity:0}};n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});r.cssBefore={left:u,top:0};r.animIn={left:0};r.animOut={left:u}};n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore={top:u,left:0};r.animIn={top:0};r.animOut={top:u}};n.fn.cycle.transitions.blindZ=function(t,i,r){var u=t.css("overflow","hidden").height(),f=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore={top:u,left:f};r.animIn={top:0,left:0};r.animOut={top:u,left:f}};n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=this.cycleW/2;r.animIn={left:0,width:this.cycleW};r.animOut={left:0}});r.cssBefore={width:0,top:0}};n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=this.cycleH/2;r.animIn={top:0,height:this.cycleH};r.animOut={top:0}});r.cssBefore={height:0,left:0}};n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0);r.cssBefore.left=i.cycleW/2;r.animIn={left:0,width:this.cycleW};r.animOut={left:t.cycleW/2,width:0}});r.cssBefore={top:0,width:0}};n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0);r.cssBefore.top=i.cycleH/2;r.animIn={top:0,height:i.cycleH};r.animOut={top:t.cycleH/2,height:0}});r.cssBefore={left:0,height:0}};n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);u=="right"?r.cssBefore.left=-f:u=="up"?r.cssBefore.top=e:u=="down"?r.cssBefore.top=-e:r.cssBefore.left=f});r.animIn={left:0,top:0};r.animOut={opacity:1};r.cssBefore={top:0,left:0}};n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);u=="right"?r.animOut.left=f:u=="up"?r.animOut.top=-e:u=="down"?r.animOut.top=e:r.animOut.left=-f});r.animIn={left:0,top:0};r.animOut={opacity:1};r.cssBefore={top:0,left:0}};n.fn.cycle.transitions.toss=function(t,i,r){var u=t.css("overflow","visible").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);r.animOut.left||r.animOut.top?r.animOut.opacity=0:r.animOut={left:u*2,top:-f/2,opacity:0}});r.cssBefore={left:0,top:0};r.animIn={left:0}};n.fn.cycle.transitions.wipe=function(t,i,r){var u=t.css("overflow","hidden").width(),f=t.height(),e,s,h;r.cssBefore=r.cssBefore||{};r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+f+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+u+"px "+f+"px "+u+"px)":/t2b/.test(r.clip)?e="rect(0px "+u+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+f+"px "+u+"px "+f+"px 0px)":/zoom/.test(r.clip)&&(s=parseInt(f/2),h=parseInt(u/2),e="rect("+s+"px "+h+"px "+s+"px "+h+"px)"));r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),c=parseInt(o[0]),l=parseInt(o[1]),a=parseInt(o[2]),v=parseInt(o[3]);r.before.push(function(t,i,r){var s,h,e,o;t!=i&&(s=n(t),h=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13)-1,function y(){var n=c?c-parseInt(e*(c/o)):0,t=v?v-parseInt(e*(v/o)):0,i=a<f?a+parseInt(e*((f-a)/o||1)):f,r=l<u?l+parseInt(e*((u-l)/o||1)):u;h.css({clip:"rect("+n+"px "+r+"px "+i+"px "+t+"px)"});e++<=o?setTimeout(y,13):s.css("display","none")}())});r.cssBefore={display:"block",opacity:1,top:0,left:0};r.animIn={left:0};r.animOut={left:0}}}(jQuery),function(n,t,i){function o(i,r,u){var f=t.createElement(i);return r&&(f.id=e+r),u&&(f.style.cssText=u),n(f)}function ai(){return i.innerHeight?i.innerHeight:n(i).height()}function kt(t,i){i!==Object(i)&&(i={});this.cache={};this.el=t;this.value=function(t){var r;return this.cache[t]===undefined&&(r=n(this.el).attr("data-cbox-"+t),r!==undefined?this.cache[t]=r:i[t]!==undefined?this.cache[t]=i[t]:ni[t]!==undefined&&(this.cache[t]=ni[t])),this.cache[t]};this.get=function(t){var i=this.value(t);return n.isFunction(i)?i.call(this.el,this):i}}function dt(n){var i=c.length,t=(v+n)%i;return t<0?i+t:t}function a(n,t){return Math.round((/%/.test(n)?(t==="x"?g.width():ai())/100:1)*parseInt(n,10))}function pi(n,t){return n.get("photo")||n.get("photoRegex").test(t)}function wi(n,t){return n.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(n.get("photoRegex"),n.get("retinaSuffix")):t}function bi(n){"contains"in u[0]&&!u[0].contains(n.target)&&n.target!==d[0]&&(n.stopPropagation(),u.focus())}function at(n){at.str!==n&&(u.add(d).removeClass(at.str).addClass(n),at.str=n)}function gi(t){v=0;t&&t!==!1&&t!=="nofollow"?(c=n("."+ft).filter(function(){var i=n.data(this,y),r=new kt(this,i);return r.get("rel")===t}),v=c.index(r.el),v===-1&&(c=c.add(r.el),v=c.length-1)):c=n(r.el)}function ut(i){n(t).trigger(i);w.triggerHandler(i)}function gt(i){var e,f;if(!lt){if(e=n(i).data(y),r=new kt(i,e),gi(r.get("rel")),!it){it=ct=!0;at(r.get("className"));u.css({visibility:"hidden",display:"block",opacity:""});l=o(h,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");p.css({width:"",height:""}).append(l);b=ri.height()+ei.height()+p.outerHeight(!0)-p.height();k=ui.width()+fi.width()+p.outerWidth(!0)-p.width();nt=l.outerHeight(!0);tt=l.outerWidth(!0);var c=a(r.get("initialWidth"),"x"),v=a(r.get("initialHeight"),"y"),g=r.get("maxWidth"),rt=r.get("maxHeight");if(r.w=Math.max((g!==!1?Math.min(c,a(g,"x")):c)-tt-k,0),r.h=Math.max((rt!==!1?Math.min(v,a(rt,"y")):v)-nt-b,0),l.css({width:"",height:r.h}),s.position(),ut(di),r.get("onOpen"),hi.add(oi).hide(),u.focus(),r.get("trapFocus")&&t.addEventListener){t.addEventListener("focus",bi,!0);w.one(ii,function(){t.removeEventListener("focus",bi,!0)})}if(r.get("returnFocus"))w.one(ii,function(){n(r.el).focus()})}f=parseFloat(r.get("opacity"));d.css({opacity:f===f?f:"",cursor:r.get("overlayClose")?"pointer":"",visibility:"visible"}).show();r.get("closeButton")?bt.html(r.get("close")).appendTo(p):bt.appendTo("<div/>");ir()}}function ki(){u||(li=!1,g=n(i),u=o(h).attr({id:y,"class":n.support.opacity===!1?e+"IE":"",role:"dialog",tabindex:"-1"}).hide(),d=o(h,"Overlay").hide(),wt=n([o(h,"LoadingOverlay")[0],o(h,"LoadingGraphic")[0]]),rt=o(h,"Wrapper"),p=o(h,"Content").append(oi=o(h,"Title"),si=o(h,"Current"),ht=n('<button type="button"/>').attr({id:e+"Previous"}),st=n('<button type="button"/>').attr({id:e+"Next"}),et=o("button","Slideshow"),wt),bt=n('<button type="button"/>').attr({id:e+"Close"}),rt.append(o(h).append(o(h,"TopLeft"),ri=o(h,"TopCenter"),o(h,"TopRight")),o(h,!1,"clear:left").append(ui=o(h,"MiddleLeft"),p,fi=o(h,"MiddleRight")),o(h,!1,"clear:left").append(o(h,"BottomLeft"),ei=o(h,"BottomCenter"),o(h,"BottomRight"))).find("div div").css({float:"left"}),ot=o(h,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),hi=st.add(ht).add(si).add(et));t.body&&!u.parent().length&&n(t.body).append(d,u.append(rt,ot))}function tr(){function i(n){n.which>1||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),gt(this))}if(u){if(!li)if(li=!0,st.click(function(){s.next()}),ht.click(function(){s.prev()}),bt.click(function(){s.close()}),d.click(function(){r.get("overlayClose")&&s.close()}),n(t).bind("keydown."+e,function(n){var t=n.keyCode;it&&r.get("escKey")&&t===27&&(n.preventDefault(),s.close());it&&r.get("arrowKey")&&c[1]&&!n.altKey&&(t===37?(n.preventDefault(),ht.click()):t===39&&(n.preventDefault(),st.click()))}),n.isFunction(n.fn.on))n(t).on("click."+e,"."+ft,i);else n("."+ft).live("click."+e,i);return!0}return!1}function ir(){var t,y,u=s.prep,p,d=++ci,l;if(ct=!0,f=!1,ut(pt),ut(vt),r.get("onLoad"),r.h=r.get("height")?a(r.get("height"),"y")-nt-b:r.get("innerHeight")&&a(r.get("innerHeight"),"y"),r.w=r.get("width")?a(r.get("width"),"x")-tt-k:r.get("innerWidth")&&a(r.get("innerWidth"),"x"),r.mw=r.w,r.mh=r.h,r.get("maxWidth")&&(r.mw=a(r.get("maxWidth"),"x")-tt-k,r.mw=r.w&&r.w<r.mw?r.w:r.mw),r.get("maxHeight")&&(r.mh=a(r.get("maxHeight"),"y")-nt-b,r.mh=r.h&&r.h<r.mh?r.h:r.mh),t=r.get("href"),vi=setTimeout(function(){wt.show()},100),r.get("inline")){l=n(t);p=n("<div>").hide().insertBefore(l);w.one(pt,function(){p.replaceWith(l)});u(l)}else if(r.get("iframe"))u(" ");else if(r.get("html"))u(r.get("html"));else if(pi(r,t)){t=wi(r,t);f=r.get("createImg");n(f).addClass(e+"Photo").bind("error."+e,function(){u(o(h,"Error").html(r.get("imgError")))}).one("load",function(){d===ci&&setTimeout(function(){var t;r.get("retinaImage")&&i.devicePixelRatio>1&&(f.height=f.height/i.devicePixelRatio,f.width=f.width/i.devicePixelRatio);r.get("scalePhotos")&&(y=function(){f.height-=f.height*t;f.width-=f.width*t},r.mw&&f.width>r.mw&&(t=(f.width-r.mw)/f.width,y()),r.mh&&f.height>r.mh&&(t=(f.height-r.mh)/f.height,y()));r.h&&(f.style.marginTop=Math.max(r.mh-f.height,0)/2+"px");c[1]&&(r.get("loop")||c[v+1])&&(f.style.cursor="pointer",n(f).bind("click."+e,function(){s.next()}));f.style.width=f.width+"px";f.style.height=f.height+"px";u(f)},1)});f.src=t}else t&&ot.load(t,r.get("data"),function(t,i){d===ci&&u(i==="error"?o(h,"Error").html(r.get("xhrError")):n(this).contents())})}var ni={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return n(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,i=n(this).data("cbox-img-attrs");return typeof i=="object"&&n.each(i,function(n,i){t[n]=i}),t},createIframe:function(){var i=t.createElement("iframe"),r=n(this).data("cbox-iframe-attrs");return typeof r=="object"&&n.each(r,function(n,t){i[n]=t}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},y="colorbox",e="cbox",ft=e+"Element",di=e+"_open",vt=e+"_load",yt=e+"_complete",ti=e+"_cleanup",ii=e+"_closed",pt=e+"_purge",d,u,rt,p,ri,ui,fi,ei,c,g,l,ot,wt,oi,si,et,st,ht,bt,hi,w=n("<a/>"),r,b,k,nt,tt,v,f,it,ct,lt,vi,s,h="div",ci=0,yi={},li,nr=function(){function t(){clearTimeout(l)}function o(){(r.get("loop")||c[v+1])&&(t(),l=setTimeout(s.next,r.get("slideshowSpeed")))}function a(){et.html(r.get("slideshowStop")).unbind(i).one(i,y);w.bind(yt,o).bind(vt,t);u.removeClass(n+"off").addClass(n+"on")}function y(){t();w.unbind(yt,o).unbind(vt,t);et.html(r.get("slideshowStart")).unbind(i).one(i,function(){s.next();a()});u.removeClass(n+"on").addClass(n+"off")}function h(){f=!1;et.hide();t();w.unbind(yt,o).unbind(vt,t);u.removeClass(n+"off "+n+"on")}var f,n=e+"Slideshow_",i="click."+e,l;return function(){if(f)r.get("slideshow")||(w.unbind(ti,h),h());else if(r.get("slideshow")&&c[1]){f=!0;w.one(ti,h);r.get("slideshowAuto")?a():y();et.show()}}}();n[y]||(n(ki),s=n.fn[y]=n[y]=function(t,i){var u,r=this;return(t=t||{},n.isFunction(r)&&(r=n("<a/>"),t.open=!0),!r[0])?r:(ki(),tr()&&(i&&(t.onComplete=i),r.each(function(){var i=n.data(this,y)||{};n.data(this,y,n.extend(i,t))}).addClass(ft),u=new kt(r[0],t),u.get("open")&&gt(r[0])),r)},s.position=function(t,i){function w(){ri[0].style.width=ei[0].style.width=p[0].style.width=parseInt(u[0].style.width,10)-k+"px";p[0].style.height=ui[0].style.height=fi[0].style.height=parseInt(u[0].style.height,10)-b+"px"}var f,h=0,c=0,o=u.offset(),l,v,y;g.unbind("resize."+e);u.css({top:-9e4,left:-9e4});l=g.scrollTop();v=g.scrollLeft();r.get("fixed")?(o.top-=l,o.left-=v,u.css({position:"fixed"})):(h=l,c=v,u.css({position:"absolute"}));c+=r.get("right")!==!1?Math.max(g.width()-r.w-tt-k-a(r.get("right"),"x"),0):r.get("left")!==!1?a(r.get("left"),"x"):Math.round(Math.max(g.width()-r.w-tt-k,0)/2);h+=r.get("bottom")!==!1?Math.max(ai()-r.h-nt-b-a(r.get("bottom"),"y"),0):r.get("top")!==!1?a(r.get("top"),"y"):Math.round(Math.max(ai()-r.h-nt-b,0)/2);u.css({top:o.top,left:o.left,visibility:"visible"});rt[0].style.width=rt[0].style.height="9999px";f={width:r.w+tt+k,height:r.h+nt+b,top:h,left:c};t&&(y=0,n.each(f,function(n){if(f[n]!==yi[n]){y=t;return}}),t=y);yi=f;t||u.css(f);u.dequeue().animate(f,{duration:t||0,complete:function(){w();ct=!1;rt[0].style.width=r.w+tt+k+"px";rt[0].style.height=r.h+nt+b+"px";r.get("reposition")&&setTimeout(function(){g.bind("resize."+e,s.position)},1);n.isFunction(i)&&i()},step:w})},s.resize=function(n){var t;it&&(n=n||{},n.width&&(r.w=a(n.width,"x")-tt-k),n.innerWidth&&(r.w=a(n.innerWidth,"x")),l.css({width:r.w}),n.height&&(r.h=a(n.height,"y")-nt-b),n.innerHeight&&(r.h=a(n.innerHeight,"y")),n.innerHeight||n.height||(t=l.scrollTop(),l.css({height:"auto"}),r.h=l.height()),l.css({height:r.h}),t&&l.scrollTop(t),s.position(r.get("transition")==="none"?0:r.get("speed")))},s.prep=function(i){function k(){return r.w=r.w||l.width(),r.w=r.mw&&r.mw<r.w?r.mw:r.w,r.w}function d(){return r.h=r.h||l.height(),r.h=r.mh&&r.mh<r.h?r.mh:r.h,r.h}if(it){var a,b=r.get("transition")==="none"?0:r.get("speed");l.remove();l=o(h,"LoadedContent").append(i);l.hide().appendTo(ot.show()).css({width:k(),overflow:r.get("scrolling")?"auto":"hidden"}).css({height:d()}).prependTo(p);ot.hide();n(f).css({float:"none"});at(r.get("className"));a=function(){function s(){n.support.opacity===!1&&u[0].style.removeAttribute("filter")}var f=c.length,i,o;if(it){if(o=function(){clearTimeout(vi);wt.hide();ut(yt);r.get("onComplete")},oi.html(r.get("title")).show(),l.show(),f>1?(typeof r.get("current")=="string"&&si.html(r.get("current").replace("{current}",v+1).replace("{total}",f)).show(),st[r.get("loop")||v<f-1?"show":"hide"]().html(r.get("next")),ht[r.get("loop")||v?"show":"hide"]().html(r.get("previous")),nr(),r.get("preloading")&&n.each([dt(-1),dt(1)],function(){var u,f=c[this],r=new kt(f,n.data(f,y)),i=r.get("href");i&&pi(r,i)&&(i=wi(r,i),u=t.createElement("img"),u.src=i)})):hi.hide(),r.get("iframe")){i=r.get("createIframe");r.get("scrolling")||(i.scrolling="no");n(i).attr({src:r.get("href"),"class":e+"Iframe"}).one("load",o).appendTo(l);w.one(pt,function(){i.src="//about:blank"});r.get("fastIframe")&&n(i).trigger("load")}else o();r.get("transition")==="fade"?u.fadeTo(b,1,s):s()}};r.get("transition")==="fade"?u.fadeTo(b,0,function(){s.position(0,a)}):s.position(b,a)}},s.next=function(){!ct&&c[1]&&(r.get("loop")||c[v+1])&&(v=dt(1),gt(c[v]))},s.prev=function(){!ct&&c[1]&&(r.get("loop")||v)&&(v=dt(-1),gt(c[v]))},s.close=function(){it&&!lt&&(lt=!0,it=!1,ut(ti),r.get("onCleanup"),g.unbind("."+e),d.fadeTo(r.get("fadeOut")||0,0),u.stop().fadeTo(r.get("fadeOut")||0,0,function(){u.hide();d.hide();ut(pt);l.remove();setTimeout(function(){lt=!1;ut(ii);r.get("onClosed")},1)}))},s.remove=function(){u&&(u.stop(),n[y].close(),u.stop(!1,!0).remove(),d.remove(),lt=!1,u=null,n("."+ft).removeData(y).removeClass(ft),n(t).unbind("click."+e).unbind("keydown."+e))},s.element=function(){return n(r.el)},s.settings=ni)}(jQuery,document,window),function(n){n.fn.jflickrfeed=function(t,i){var r,u,f;t=n.extend(!0,{flickrbase:"http://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",limit:20,qstrings:{lang:"en-us",format:"json",jsoncallback:"?"},cleanDescription:!0,useTemplate:!0,itemTemplate:"",itemCallback:function(){}},t);r=t.flickrbase+t.feedapi+"?";u=!0;for(f in t.qstrings)u||(r+="&"),r+=f+"="+t.qstrings[f],u=!1;return n(this).each(function(){var f=n(this),u=this;n.getJSON(r,function(r){n.each(r.items,function(n,i){var e,o,r,s,h;if(n<t.limit){if(t.cleanDescription&&(e=/<p>(.*?)<\/p>/g,o=i.description,e.test(o)&&(i.description=o.match(e)[2],i.description!=undefined&&(i.description=i.description.replace("<p>","").replace("<\/p>","")))),i.image_s=i.media.m.replace("_m","_s"),i.image_t=i.media.m.replace("_m","_t"),i.image_m=i.media.m.replace("_m","_m"),i.image=i.media.m.replace("_m",""),i.image_b=i.media.m.replace("_m","_b"),delete i.media,t.useTemplate){r=t.itemTemplate;for(s in i)h=new RegExp("{{"+s+"}}","g"),r=r.replace(h,i[s]);f.append(r)}t.itemCallback.call(u,i)}});n.isFunction(i)&&i.call(u,r)})})}}(jQuery)