(function(c){function n(f,m){m=m==="x"?document.documentElement.clientWidth:document.documentElement.clientHeight;return typeof f==="string"?Math.round(f.match(/%/)?m/100*parseInt(f,10):parseInt(f,10)):f}function y(f){return b.photo||f.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function G(){for(var f in b)if(typeof b[f]==="function")b[f]=b[f].call(t)}var j="colorbox",e="hover",g=true,h=false,a,k=!c.support.opacity,o=k&&!window.XMLHttpRequest,J="click.colorbox",K="cbox_open",P="cbox_load",
T="cbox_complete",U="cbox_cleanup",ea="cbox_closed",V="resize.cbox_resize",A,r,C,v,W,X,Y,Z,q,x,u,Q,R,fa,aa,D,L,M,S,H,I,E,F,t,s,b,N,O,ba,ca={transition:"elastic",speed:350,width:h,height:h,innerWidth:h,innerHeight:h,initialWidth:"400",initialHeight:"400",maxWidth:h,maxHeight:h,scalePhotos:g,scrolling:g,inline:h,html:h,iframe:h,photo:h,href:h,title:h,rel:h,opacity:0.9,preloading:g,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:h,overlayClose:g,slideshow:h,slideshowAuto:g,
slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",preloadIMG:g};a=c.fn.colorbox=function(f,m){this.length?this.each(function(){var i=c(this).data(j)?c.extend({},c(this).data(j),f):c.extend({},ca,f);c(this).data(j,i).addClass("cboxelement")}):c(this).data(j,c.extend({},ca,f));c(this).unbind(J).bind(J,function(i){t=this;b=c(t).data(j);G();ba=m||h;var p=b.rel||t.rel;if(p&&p!=="nofollow"){q=c(".cboxelement").filter(function(){var l=c(this).data(j).rel||this.rel;return l===
p});s=q.index(t);if(s<0){q=q.add(t);s=q.length-1}}else{q=c(t);s=0}if(!N){O=N=g;c().bind("keydown.cbox_close",function(l){if(l.keyCode===27){l.preventDefault();a.close()}}).bind("keydown.cbox_arrows",function(l){if(l.keyCode===37){l.preventDefault();M.click()}else if(l.keyCode===39){l.preventDefault();L.click()}});b.overlayClose&&A.css({cursor:"pointer"}).one("click",a.close);t.blur();c.event.trigger(K);S.html(b.close);A.css({opacity:b.opacity}).show();b.w=n(b.initialWidth,"x");b.h=n(b.initialHeight,
"y");a.position(0);o&&x.bind("resize.cboxie6 scroll.cboxie6",function(){A.css({width:x.width(),height:x.height(),top:x.scrollTop(),left:x.scrollLeft()})}).trigger("scroll.cboxie6")}a.slideshow();a.load();i.preventDefault()});f&&f.open&&c(this).triggerHandler(J);return this};a.init=function(){function f(m){return c('<div id="cbox'+m+'"/>')}x=c(window);r=c('<div id="colorbox"/>');A=f("Overlay").hide();C=f("Wrapper");v=f("Content").append(u=f("LoadedContent").css({width:0,height:0}),Q=f("LoadingOverlay"),
R=f("LoadingGraphic"),fa=f("Title"),aa=f("Current"),D=f("Slideshow"),L=f("Next"),M=f("Previous"),S=f("Close"));C.append(c("<div/>").append(f("TopLeft"),W=f("TopCenter"),f("TopRight")),c("<div/>").append(X=f("MiddleLeft"),v,Y=f("MiddleRight")),c("<div/>").append(f("BottomLeft"),Z=f("BottomCenter"),f("BottomRight"))).children().children().css({"float":"left"});c("body").prepend(A,r.append(C));if(k){r.addClass("cboxIE");o&&A.css("position","absolute")}v.children().addClass(e).mouseover(function(){c(this).addClass(e)}).mouseout(function(){c(this).removeClass(e)}).hide();
H=W.height()+Z.height()+v.outerHeight(g)-v.height();I=X.width()+Y.width()+v.outerWidth(g)-v.width();E=u.outerHeight(g);F=u.outerWidth(g);r.css({"padding-bottom":H,"padding-right":I}).hide();L.click(a.next);M.click(a.prev);S.click(a.close);v.children().removeClass(e)};a.position=function(f,m){function i(w){W[0].style.width=Z[0].style.width=v[0].style.width=w.style.width;R[0].style.height=Q[0].style.height=v[0].style.height=X[0].style.height=Y[0].style.height=w.style.height}var p=document.documentElement.clientHeight;
p=Math.max(p-b.h-E-H,0)/2+x.scrollTop();var l=Math.max(document.documentElement.clientWidth-b.w-F-I,0)/2+x.scrollLeft();f=r.width()===b.w+F&&r.height()===b.h+E?0:f;C[0].style.width=C[0].style.height="9999px";r.dequeue().animate({width:b.w+F,height:b.h+E,top:p,left:l},{duration:f,complete:function(){i(this);O=h;C[0].style.width=b.w+F+I+"px";C[0].style.height=b.h+E+H+"px";m&&m()},step:function(){i(this)}})};a.resize=function(f){function m(){b.w=b.w||u.width();return b.w}function i(){b.h=b.h||u.height();
return b.h}function p(B){a.position(B,function(){if(N){if(k){w&&u.fadeIn(100);r[0].style.removeAttribute("filter")}v.children().show();if(b.iframe)u.append("<iframe id='cboxIframe'"+(b.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+(b.href||t.href)+"' />");Q.hide();R.hide();D.hide();if(q.length>1){aa.html(b.current.replace(/\{current\}/,s+1).replace(/\{total\}/,q.length));L.html(b.next);M.html(b.previous);b.slideshow&&D.show()}else{aa.hide();L.hide();
M.hide()}fa.html(b.title||t.title);c.event.trigger(T);ba&&ba.call(t);b.transition==="fade"&&r.fadeTo(z,1,function(){k&&r[0].style.removeAttribute("filter")});x.bind(V,function(){a.position(0)})}})}if(N){var l,w,z=b.transition==="none"?0:b.speed;x.unbind(V);if(f){u.remove();u=c('<div id="cboxLoadedContent"/>').html(f);u.hide().appendTo(A).css({width:m(),overflow:b.scrolling?"auto":"hidden"}).css({height:i()}).prependTo(v);c("#cboxPhoto").css({cssFloat:"none"});o&&c("select:not(#colorbox select)").filter(function(){return this.style.visibility!==
"hidden"}).css({visibility:"hidden"}).one(U,function(){this.style.visibility="inherit"});b.transition==="fade"&&r.fadeTo(z,0,function(){p(0)})||p(z);if(b.preloading&&q.length>1){f=s>0?q[s-1]:q[q.length-1];l=s<q.length-1?q[s+1]:q[0];l=c(l).data(j).href||l.href;f=c(f).data(j).href||f.href;y(l)&&c("<img />").attr("src",l);y(f)&&c("<img />").attr("src",f)}}else f=setTimeout(function(){var B=u.wrapInner("<div style='overflow:auto'></div>").children();b.h=B.height();u.css({height:b.h});B.replaceWith(B.children());
a.position(z)},1)}};a.load=function(){function f(w){function z(){var ga=new Image;da-=1;if(da>=0&&b.preloadIMG){ga.onload=z;ga.src=ha[da].src}else l(B)}var B=c(w),ha=B.find("img"),da=ha.length;z()}var m,i,p,l=a.resize;O=g;t=q[s];b=c(t).data(j);G();c.event.trigger(P);b.h=b.height?n(b.height,"y")-E-H:b.innerHeight?n(b.innerHeight,"y"):h;b.w=b.width?n(b.width,"x")-F-I:b.innerWidth?n(b.innerWidth,"x"):h;b.mw=b.w;b.mh=b.h;if(b.maxWidth){b.mw=n(b.maxWidth,"x")-F-I;b.mw=b.w&&b.w<b.mw?b.w:b.mw}if(b.maxHeight){b.mh=
n(b.maxHeight,"y")-E-H;b.mh=b.h&&b.h<b.mh?b.h:b.mh}m=b.href||c(t).attr("href");Q.show();R.show();S.show();if(b.inline){c('<div id="cboxInlineTemp" />').hide().insertBefore(c(m)[0]).bind(P+" "+U,function(){c(this).replaceWith(u.children())});l(c(m))}else if(b.iframe)l(" ");else if(b.html)f(b.html);else if(y(m)){i=new Image;i.onload=function(){var w;i.onload=null;i.id="cboxPhoto";c(i).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(b.scalePhotos){p=function(){i.height-=i.height*
w;i.width-=i.width*w};if(b.mw&&i.width>b.mw){w=(i.width-b.mw)/i.width;p()}if(b.mh&&i.height>b.mh){w=(i.height-b.mh)/i.height;p()}}if(b.h)i.style.marginTop=Math.max(b.h-i.height,0)/2+"px";l(i);q.length>1&&c(i).css({cursor:"pointer"}).click(a.next);if(k)i.style.msInterpolationMode="bicubic"};i.src=m}else c("<div />").load(m,function(w,z){z==="success"?f(this):l(c("<p>Request unsuccessful.</p>"))})};a.next=function(){if(!O){s=s<q.length-1?s+1:0;a.load()}};a.prev=function(){if(!O){s=s>0?s-1:q.length-
1;a.load()}};a.slideshow=function(){function f(){D.text(b.slideshowStop).bind(T,function(){i=setTimeout(a.next,b.slideshowSpeed)}).bind(P,function(){clearTimeout(i)}).one("click",function(){m();c(this).removeClass(e)});r.removeClass(p+"off").addClass(p+"on")}var m,i,p="cboxSlideshow_";D.bind(ea,function(){D.unbind();clearTimeout(i);r.removeClass(p+"off "+p+"on")});m=function(){clearTimeout(i);D.text(b.slideshowStart).unbind(T+" "+P).one("click",function(){f();i=setTimeout(a.next,b.slideshowSpeed);
c(this).removeClass(e)});r.removeClass(p+"on").addClass(p+"off")};if(b.slideshow&&q.length>1)b.slideshowAuto?f():m()};a.close=function(){c.event.trigger(U);N=h;c().unbind("keydown.cbox_close keydown.cbox_arrows");x.unbind(V+" resize.cboxie6 scroll.cboxie6");A.css({cursor:"auto"}).fadeOut("fast");r.stop(g,h).fadeOut("fast",function(){u.remove();r.css({opacity:1});v.children().hide();c.event.trigger(ea)})};a.element=function(){return c(t)};a.settings=ca;c(a.init)})(jQuery);(function(c){function n(j,e,g,h){if(!e.busy){var a=j[0].parentNode,k=j[e.currSlide],o=j[e.nextSlide];if(!(a.cycleTimeout===0&&!g)){if(g||!a.cyclePause){e.before.length&&c.each(e.before,function(J,K){K.apply(o,[k,o,e,h])});g=function(){c.browser.msie&&this.style.removeAttribute("filter");c.each(e.after,function(J,K){K.apply(o,[k,o,e,h])})};if(e.nextSlide!=e.currSlide){e.busy=1;c.fn.cycle.custom(k,o,e,g)}g=e.nextSlide+1==j.length;e.nextSlide=g?0:e.nextSlide+1;e.currSlide=g?j.length-1:e.nextSlide-1}if(e.timeout)a.cycleTimeout=
setTimeout(function(){n(j,e,0,!e.rev)},e.timeout)}}}function y(j,e,g){var h=j[0].parentNode,a=h.cycleTimeout;if(a){clearTimeout(a);h.cycleTimeout=0}e.nextSlide=e.currSlide+g;if(e.nextSlide<0)e.nextSlide=j.length-1;else if(e.nextSlide>=j.length)e.nextSlide=0;n(j,e,1,g>=0);return false}var G="Lite-1.0";c.fn.cycle=function(j){return this.each(function(){j=j||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var e=c(this),g=j.slideExpr?c(j.slideExpr,this):e.children(),
h=g.get();if(h.length<2)window.console&&window.console.log&&window.console.log("terminating; too few slides: "+h.length);else{var a=c.extend({},c.fn.cycle.defaults,j||{},c.metadata?e.metadata():c.meta?e.data():{});a.before=a.before?[a.before]:[];a.after=a.after?[a.after]:[];a.after.unshift(function(){a.busy=0});var k=this.className;a.width=parseInt((k.match(/w:(\d+)/)||[])[1])||a.width;a.height=parseInt((k.match(/h:(\d+)/)||[])[1])||a.height;a.timeout=parseInt((k.match(/t:(\d+)/)||[])[1])||a.timeout;
e.css("position")=="static"&&e.css("position","relative");a.width&&e.width(a.width);a.height&&a.height!="auto"&&e.height(a.height);k=0;g.css({position:"absolute",top:0,left:0}).hide().each(function(o){c(this).css("z-index",h.length-o)});c(h[k]).css("opacity",1).show();c.browser.msie&&h[k].style.removeAttribute("filter");a.fit&&a.width&&g.width(a.width);a.fit&&a.height&&a.height!="auto"&&g.height(a.height);a.pause&&e.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});c.fn.cycle.transitions.fade(e,
g,a);g.each(function(){var o=c(this);this.cycleH=a.fit&&a.height?a.height:o.height();this.cycleW=a.fit&&a.width?a.width:o.width()});g.not(":eq("+k+")").css({opacity:0});a.cssFirst&&c(g[k]).css(a.cssFirst);if(a.timeout){if(a.speed.constructor==String)a.speed={slow:600,fast:200}[a.speed]||400;for(a.sync||(a.speed/=2);a.timeout-a.speed<250;)a.timeout+=a.speed}a.speedIn=a.speed;a.speedOut=a.speed;a.slideCount=h.length;a.currSlide=k;a.nextSlide=1;e=g[k];a.before.length&&a.before[0].apply(e,[e,e,a,true]);
a.after.length>1&&a.after[1].apply(e,[e,e,a,true]);if(a.click&&!a.next)a.next=a.click;a.next&&c(a.next).bind("click",function(){return y(h,a,a.rev?-1:1)});a.prev&&c(a.prev).bind("click",function(){return y(h,a,a.rev?1:-1)});if(a.timeout)this.cycleTimeout=setTimeout(function(){n(h,a,0,!a.rev)},a.timeout+(a.delay||0))}})};c.fn.cycle.custom=function(j,e,g,h){var a=c(j),k=c(e);k.css({opacity:0});function o(){k.animate({opacity:1},g.speedIn,g.easeIn,h)}a.animate({opacity:0},g.speedOut,g.easeOut,function(){a.css({display:"none"});
g.sync||o()});g.sync&&o()};c.fn.cycle.transitions={fade:function(j,e,g){e.not(":eq(0)").css("opacity",0);g.before.push(function(){c(this).show()})}};c.fn.cycle.ver=function(){return G};c.fn.cycle.defaults={timeout:0,speed:500,next:"#next",prev:"#prev",before:null,after:null,height:"auto",sync:1,fit:0,pause:1,delay:0,slideExpr:null}})(jQuery);

