!function(e,t){function i(t,i){return t=t?' id="'+A+t+'"':"",i=i?' style="'+i+'"':"",e("")}function n(e,t){return t="x"===t?g.width():g.height(),"string"==typeof e?Math.round(e.match(/%/)?t/100*parseInt(e,10):parseInt(e,10)):e}function o(t){return t=e.isFunction(t)?t.call(M):t,P.photo||t.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function h(){for(var t in P)e.isFunction(P[t])&&"on"!==t.substring(0,2)&&(P[t]=P[t].call(M));P.rel=P.rel||M.rel||"nofollow",P.href=P.href||e(M).attr("href"),P.title=P.title||M.title,P.legenda=P.legenda||e(M).attr("data-legenda"),P.linkTitulo=P.linkTitulo||e(M).attr("data-linkTitulo")}function l(t){if(M=t,P=e.extend({},e(M).data(j)),h(),"nofollow"!==P.rel?(w=e("."+U).filter(function(){var t=e(this).data(j).rel||this.rel;return t===P.rel}),O=w.index(M),-1===O&&(w=w.add(M),O=w.length-1)):(w=e(M),O=0),!z){z=B=!0,D=M;try{D.blur()}catch(i){}e.event.trigger(E),P.onOpen&&P.onOpen.call(M),s.css({opacity:+P.opacity,cursor:P.overlayClose?"pointer":"auto"}).show(),P.w=n(P.initialWidth,"x"),P.h=n(P.initialHeight,"y"),F.position(0),$&&g.bind("resize."+J+" scroll."+J,function(){s.css({width:g.width(),height:g.height(),top:g.scrollTop(),left:g.scrollLeft()})}).trigger("scroll."+J)}T.add(L).add(W).add(k).add(x).hide(),T.add(L).add(W).add(k).add(b).hide(),H.html(P.close).show(),F.slideshow(),F.load()}var s,r,d,a,c,u,p,f,w,g,m,y,v,x,b,C,T,k,W,L,H,I,S,_,K,M,D,O,P,z,B,F,R={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,photo:!1,href:!1,title:!1,legenda:!1,linkTitulo:!1,rel:!1,opacity:.7,preloading:!0,current:"Imagem {current} de {total}",previous:"",next:"",close:"(X) fechar",open:!1,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0},j="colorbox",A="cbox",E=A+"_open",q=A+"_load",G=A+"_complete",N=A+"_cleanup",Q=A+"_closed",X=e.browser.msie&&!e.support.opacity,$=X&&e.browser.version<7,J=A+"_IE6",U=A+"Element";F=e.fn[j]=e[j]=function(t,i){var n=this;return!n[0]&&n.selector?n:(t=t||{},i&&(t.onComplete=i),n[0]&&void 0!==n.selector||(n=e(""),t.open=!0),n.each(function(){e(this).data(j,e.extend({},e(this).data(j)||R,t)).addClass(U)}),t.open&&l(n[0]),n)},F.init=function(){g=e(t),r=i().attr({id:j,"class":X?A+"IE":""}),s=i("Overlay",$?"position:absolute":"").hide(),d=i("Wrapper"),a=i("Content").append(m=i("LoadedContent","width:0; height:0"),v=i("LoadingOverlay").add(i("LoadingGraphic")),x=i("Title"),b=i("Legenda"),C=i("LinkTitulo"),T=i("Current"),W=i("Next"),L=i("Previous"),k=i("Slideshow"),H=i("Close")),d.append(i().append(i("TopLeft"),c=i("TopCenter"),i("TopRight")),i().append(u=i("MiddleLeft"),a,p=i("MiddleRight")),i().append(i("BottomLeft"),f=i("BottomCenter"),i("BottomRight"))).children().children().css({"float":"left"}),y=i(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),e("body").prepend(s,r.append(d,y)),a.children().hover(function(){e(this).addClass("hover")},function(){e(this).removeClass("hover")}).addClass("hover"),I=c.height()+f.height()+a.outerHeight(!0)-a.height(),S=u.width()+p.width()+a.outerWidth(!0)-a.width(),_=m.outerHeight(!0),K=m.outerWidth(!0),r.css({"padding-bottom":I,"padding-right":S}).hide(),W.click(F.next),L.click(F.prev),H.click(F.close),a.children().removeClass("hover"),e("."+U).live("click",function(e){return 0!==e.button&&"undefined"!=typeof e.button||e.ctrlKey||e.shiftKey||e.altKey?!0:(l(this),!1)}),s.click(function(){P.overlayClose&&F.close()}),e(document).bind("keydown",function(e){z&&P.escKey&&27===e.keyCode&&(e.preventDefault(),F.close()),z&&P.arrowKey&&!B&&w[1]&&(37===e.keyCode&&(O||P.loop)?(e.preventDefault(),L.click()):39===e.keyCode&&(O").children();P.h=t.height(),t.replaceWith(t.children())}m.css({height:P.h}),F.position("none"===P.transition?0:P.speed)}},F.prep=function(t){function n(){return P.w=P.w||m.width(),P.w=P.mw&&P.mw").attr({src:P.href,name:(new Date).getTime()}).appendTo(m),m.show(),x.show().html(P.title),b.show().html(P.legenda),C.show().html(P.linkTitulo),C.click(function(){F.close,location.href="http://orcamento.anportas.com.br/"}),a>1&&(T.html(P.current.replace(/\{current\}/,O+1).replace(/\{total\}/,a)).show(),W[c||a-1>O?"show":"hide"]().html(P.next),L[c||O?"show":"hide"]().html(P.previous),i=O?w[O-1]:w[a-1],h=a-1>O?w[O+1]:w[0],P.slideshow&&(k.show(),O===a-1&&!c&&r.is("."+A+"Slideshow_on")&&k.click()),P.preloading&&(l=e(h).data(j).href||h.href,n=e(i).data(j).href||i.href,o(l)&&(e("")[0].src=l),o(n)&&(e("")[0].src=n))),v.hide(),"fade"===P.transition?r.fadeTo(d,1,function(){t()}):t(),g.bind("resize."+A,function(){F.position(0)}),e.event.trigger(G),P.onComplete&&P.onComplete.call(M))})}if(z){var s,d="none"===P.transition?0:P.speed;g.unbind("resize."+A),m.remove(),m=i("LoadedContent").html(t),m.hide().appendTo(y.show()).css({width:n(),overflow:P.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(a),y.hide(),e("#"+A+"Photo").css({cssFloat:"none"}),$&&e("select").not(r.find("select")).filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one(N,function(){this.style.visibility="inherit"}),"fade"===P.transition?r.fadeTo(d,0,function(){l(0)}):l(d)}},F.load=function(){var t,l,s,r=F.prep;B=!0,M=w[O],P=e.extend({},e(M).data(j)),h(),e.event.trigger(q),P.onLoad&&P.onLoad.call(M),P.h=P.height?n(P.height,"y")-_-I:P.innerHeight&&n(P.innerHeight,"y"),P.w=P.width?n(P.width,"x")-K-S:P.innerWidth&&n(P.innerWidth,"x"),P.mw=P.w,P.mh=P.h,P.maxWidth&&(P.mw=n(P.maxWidth,"x")-K-S,P.mw=P.w&&P.wP.mw&&(t=(l.width-P.mw)/l.width,s()),P.mh&&l.height>P.mh&&(t=(l.height-P.mh)/l.height,s())),P.h&&(l.style.marginTop=Math.max(P.h-l.height,0)/2+"px"),setTimeout(function(){r(l)},1),w[1]&&(O