(function(c,H,P){function e(b,d){var f=H.createElement("div");f.id=b?l+b:false;f.style.cssText=d||false;return c(f)}function s(b,d){d=d==="x"?r.width():r.height();return typeof b==="string"?Math.round(/%/.test(b)?d/100*parseInt(b,10):parseInt(b,10)):b}function W(b){return a.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(b)}function ha(b){for(var d in b)if(c.isFunction(b[d])&&d.substring(0,2)!=="on")b[d]=b[d].call(q);b.rel=b.rel||q.rel||"nofollow";b.href=c.trim(b.href||c(q).attr("href"));
b.title=b.title||q.title}function B(b,d){d&&d.call(q);c.event.trigger(b)}function ma(){var b,d=l+"Slideshow_",f="click."+l,j,o;if(a.slideshow&&k[1]){j=function(){I.text(a.slideshowStop).unbind(f).bind(X,function(){if(h<k.length-1||a.loop)b=setTimeout(g.next,a.slideshowSpeed)}).bind(Y,function(){clearTimeout(b)}).one(f+" "+Q,o);m.removeClass(d+"off").addClass(d+"on");b=setTimeout(g.next,a.slideshowSpeed)};o=function(){clearTimeout(b);I.text(a.slideshowStart).unbind([X,Y,Q,f].join(" ")).one(f,j);m.removeClass(d+
"on").addClass(d+"off")};a.slideshowAuto?j():o()}}function ia(b){if(!R){q=b;ha(c.extend(a,c.data(q,t)));k=c(q);h=0;if(a.rel!=="nofollow"){k=c("."+J).filter(function(){return(c.data(this,t).rel||this.rel)===a.rel});h=k.index(q);if(h===-1){k=k.add(q);h=k.length-1}}if(!v){v=G=true;m.show();if(a.returnFocus)try{q.blur();c(q).one(ja,function(){try{this.focus()}catch(f){}})}catch(d){}x.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":"auto"}).show();a.w=s(a.initialWidth,"x");a.h=s(a.initialHeight,
"y");g.position(0);S&&r.bind("resize."+T+" scroll."+T,function(){x.css({width:r.width(),height:r.height(),top:r.scrollTop(),left:r.scrollLeft()})}).trigger("resize."+T);B(ka,a.onOpen);Z.add(aa).hide();ba.html(a.close).show()}g.load(true)}}var la={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,
href:false,title:false,rel:false,opacity:0.8,preloading:true,current:"{current} de {total}",previous:"<a class='imageButton prevBtn'></a>",next:"<a class='imageButton nextBtn'></a>",close:"<a class='imageButton closeBtn'></a>",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},
t="colorbox",l="cbox",ka=l+"_open",Y=l+"_load",X=l+"_complete",Q=l+"_cleanup",ja=l+"_closed",U=l+"_purge",K=c.browser.msie&&!c.support.opacity,S=K&&c.browser.version<7,T=l+"_IE6",x,m,C,u,ca,da,ea,fa,k,r,p,L,M,aa,ga,I,N,O,ba,Z,a={},D,E,y,z,q,h,i,v,G,R=false,g,J=l+"Element";g=c.fn[t]=c[t]=function(b,d){var f=this,j;if(!f[0]&&f.selector)return f;b=b||{};if(d)b.onComplete=d;if(!f[0]||f.selector===undefined){f=c("<a/>");b.open=true}f.each(function(){c.data(this,t,c.extend({},c.data(this,t)||la,b));c(this).addClass(J)});
j=b.open;if(c.isFunction(j))j=j.call(f);j&&ia(f[0]);return f};g.init=function(){r=c(P);m=e().attr({id:t,"class":K?l+(S?"IE6":"IE"):""});x=e("Overlay",S?"position:absolute":"").hide();C=e("Wrapper");u=e("Content").append(aa=e("Title"),p=e("LoadedContent","width:0; height:0; overflow:hidden"),M=e("LoadingOverlay").add(e("LoadingGraphic")),ga=e("Current"),N=e("Next"),O=e("Previous"),I=e("Slideshow").bind(ka,ma),ba=e("Close"));C.append(e().append(e("TopLeft"),ca=e("TopCenter"),e("TopRight")),e(false,
"clear:left").append(da=e("MiddleLeft"),u,ea=e("MiddleRight")),e(false,"clear:left").append(e("BottomLeft"),fa=e("BottomCenter"),e("BottomRight"))).children().children().css({"float":"left"});L=e(false,"position:absolute; width:9999px; visibility:hidden; display:none");c("body").prepend(x,m.append(C,L));u.children().hover(function(){c(this).addClass("hover")},function(){c(this).removeClass("hover")}).addClass("hover");D=ca.height()+fa.height()+u.outerHeight(true)-u.height();E=da.width()+ea.width()+
u.outerWidth(true)-u.width();y=p.outerHeight(true);z=p.outerWidth(true);m.css({"padding-bottom":D,"padding-right":E}).hide();N.click(function(){g.next()});O.click(function(){g.prev()});ba.click(function(){g.close()});Z=N.add(O).add(ga).add(I);u.children().removeClass("hover");c("."+J).live("click",function(b){if(!(b.button!==0&&typeof b.button!=="undefined"||b.ctrlKey||b.shiftKey||b.altKey)){b.preventDefault();ia(this)}});x.click(function(){a.overlayClose&&g.close()});c(H).bind("keydown",function(b){if(v&&
a.escKey&&b.keyCode===27){b.preventDefault();g.close()}if(v&&a.arrowKey&&!G&&k[1])if(b.keyCode===37&&(h||a.loop)){b.preventDefault();O.click()}else if(b.keyCode===39&&(h<k.length-1||a.loop)){b.preventDefault();N.click()}})};g.remove=function(){m.add(x).remove();c("."+J).die("click").removeData(t).removeClass(J)};g.position=function(b,d){function f(w){ca[0].style.width=fa[0].style.width=u[0].style.width=w.style.width;M[0].style.height=M[1].style.height=u[0].style.height=da[0].style.height=ea[0].style.height=
w.style.height}var j,o=Math.max(H.documentElement.clientHeight-a.h-y-D,0)/2+r.scrollTop(),n=Math.max(r.width()-a.w-z-E,0)/2+r.scrollLeft();j=m.width()===a.w+z&&m.height()===a.h+y?0:b;C[0].style.width=C[0].style.height="9999px";m.dequeue().animate({width:a.w+z,height:a.h+y,top:o,left:n},{duration:j,complete:function(){f(this);G=false;C[0].style.width=a.w+z+E+"px";C[0].style.height=a.h+y+D+"px";d&&d()},step:function(){f(this)}})};g.resize=function(b){if(v){b=b||{};if(b.width)a.w=s(b.width,"x")-z-E;
if(b.innerWidth)a.w=s(b.innerWidth,"x");p.css({width:a.w});if(b.height)a.h=s(b.height,"y")-y-D;if(b.innerHeight)a.h=s(b.innerHeight,"y");if(!b.innerHeight&&!b.height){b=p.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}p.css({height:a.h});g.position(a.transition==="none"?0:a.speed)}};g.prep=function(b){function d(j){g.position(j,function(){var o,n,w,F;n=k.length;var A,V;if(v){V=function(){M.hide();B(X,a.onComplete)};K&&i&&p.fadeIn(100);aa.html(a.title).add(p).show();
if(n>1){typeof a.current==="string"&&ga.html(a.current.replace(/\{current\}/,h+1).replace(/\{total\}/,n)).show();N[a.loop||h<n-1?"show":"hide"]().html(a.next);O[a.loop||h?"show":"hide"]().html(a.previous);o=h?k[h-1]:k[n-1];w=h<n-1?k[h+1]:k[0];a.slideshow&&I.show();if(a.preloading){F=c.data(w,t).href||w.href;n=c.data(o,t).href||o.href;F=c.isFunction(F)?F.call(w):F;n=c.isFunction(n)?n.call(o):n;if(W(F))c("<img/>")[0].src=F;if(W(n))c("<img/>")[0].src=n}}else Z.hide();if(a.iframe){A=c("<iframe frameborder=0/>").addClass(l+
"Iframe")[0];a.fastIframe?V():c(A).load(V);A.name=l+ +new Date;A.src=a.href;if(!a.scrolling)A.scrolling="no";if(K)A.allowTransparency="true";c(A).appendTo(p).one(U,function(){A.src="//about:blank"})}else V();if(a.transition==="fade")m.fadeTo(f,1,function(){m[0].style.filter=""});else m[0].style.filter="";r.bind("resize."+l,function(){g.position(0)})}})}if(v){var f=a.transition==="none"?0:a.speed;r.unbind("resize."+l);p.remove();p=e("LoadedContent").html(b);p.hide().appendTo(L.show()).css({width:function(){a.w=
a.w||p.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?"auto":"hidden"}).css({height:function(){a.h=a.h||p.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(u);L.hide();c(i).css({"float":"none"});S&&c("select").not(m.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(Q,function(){this.style.visibility="inherit"});a.transition==="fade"?m.fadeTo(f,0,function(){d(0)}):d(f)}};g.load=function(b){var d,f,j=g.prep;
G=true;i=false;q=k[h];b||ha(c.extend(a,c.data(q,t)));B(U);B(Y,a.onLoad);a.h=a.height?s(a.height,"y")-y-D:a.innerHeight&&s(a.innerHeight,"y");a.w=a.width?s(a.width,"x")-z-E:a.innerWidth&&s(a.innerWidth,"x");a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=s(a.maxWidth,"x")-z-E;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=s(a.maxHeight,"y")-y-D;a.mh=a.h&&a.h<a.mh?a.h:a.mh}d=a.href;M.show();if(a.inline){e().hide().insertBefore(c(d)[0]).one(U,function(){c(this).replaceWith(p.children())});j(c(d))}else if(a.iframe)j(" ");
else if(a.html)j(a.html);else if(W(d)){c(i=new Image).addClass(l+"Photo").error(function(){a.title=false;j(e("Error").text("This image could not be loaded"))}).load(function(){var o;i.onload=null;if(a.scalePhotos){f=function(){i.height-=i.height*o;i.width-=i.width*o};if(a.mw&&i.width>a.mw){o=(i.width-a.mw)/i.width;f()}if(a.mh&&i.height>a.mh){o=(i.height-a.mh)/i.height;f()}}if(a.h)i.style.marginTop=Math.max(a.h-i.height,0)/2+"px";if(k[1]&&(h<k.length-1||a.loop)){i.style.cursor="pointer";i.onclick=
function(){g.next()}}if(K)i.style.msInterpolationMode="bicubic";setTimeout(function(){j(i)},1)});setTimeout(function(){i.src=d},1)}else d&&L.load(d,function(o,n,w){j(n==="error"?e("Error").text("Request unsuccessful: "+w.statusText):c(this).contents())})};g.next=function(){if(!G){h=h<k.length-1?h+1:0;g.load()}};g.prev=function(){if(!G){h=h?h-1:k.length-1;g.load()}};g.close=function(){if(v&&!R){R=true;v=false;B(Q,a.onCleanup);r.unbind("."+l+" ."+T);x.fadeTo(200,0);m.stop().fadeTo(300,0,function(){m.add(x).css({opacity:1,
cursor:"auto"}).hide();B(U);p.remove();setTimeout(function(){R=false;B(ja,a.onClosed)},1)})}};g.element=function(){return c(q)};g.settings=la;c(g.init)})(jQuery,document,this);var currentData;
function zoomImage(c,H){currentData=c instanceof String?eval(c):c;for(var P="",e=0;e<currentData.length;e++)P+='<a href="'+currentData[e].full+'" rel="photos" title="'+currentData[e].title+'">img'+e+"</a>";$(".colorboxImgs").html(P);$(".colorboxImgs a[rel='photos']").colorbox();$(".colorboxImgs a").eq(H).click()};

