// colorbox v1.3.16 - a full featured, light-weight, customizable lightbox based on jquery 1.3+ // copyright (c) 2011 jack moore - jack@colorpowered.com // licensed under the mit license: http://www.opensource.org/licenses/mit-license.php (function(a,b,c){function ba(b){if(!t){o=b,z(a.extend(j,a.data(o,e))),x=a(o),p=0,j.rel!=="nofollow"&&(x=a("."+v).filter(function(){var b=a.data(this,e).rel||this.rel;return b===j.rel}),p=x.index(o),p===-1&&(x=x.add(o),p=x.length-1));if(!r){r=s=!0,q.show();if(j.returnfocus)try{o.blur(),a(o).one(k,function(){try{this.focus()}catch(a){}})}catch(c){}p.css({opacity:+j.opacity,cursor:j.overlayclose?"pointer":"auto"}).show(),j.w=x(j.initialwidth,"x"),j.h=x(j.initialheight,"y"),u.position(0),n&&y.bind("resize."+o+" scroll."+o,function(){p.css({width:y.width(),height:y.height(),top:y.scrolltop(),left:y.scrollleft()})}).trigger("resize."+o),$(g,j.onopen),i.add(c).hide(),h.html(j.close).show()}u.load(!0)}}function _(){var a,b=f+"slideshow_",c="click."+f,d,e,g;j.slideshow&&x[1]&&(d=function(){e.text(j.slideshowstop).unbind(c).bind(i,function(){if(p"),b.open=!0;f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b)),a(this).addclass(v)}),g=b.open,a.isfunction(g)&&(g=g.call(f)),g&&ba(f[0]);return f},u.init=function(){y=a(c),q=w().attr({id:e,"class":m?f+(n?"ie6":"ie"):""}),p=w("overlay",n?"position:absolute":"").hide(),r=w("wrapper"),s=w("content").append(z=w("loadedcontent","width:0; height:0; overflow:hidden"),b=w("loadingoverlay").add(w("loadinggraphic")),c=w("title"),d=w("current"),f=w("next"),g=w("previous"),e=w("slideshow").bind(g,_),h=w("close")),r.append(w().append(w("topleft"),t=w("topcenter"),w("topright")),w(!1,"clear:left").append(u=w("middleleft"),s,v=w("middleright")),w(!1,"clear:left").append(w("bottomleft"),w=w("bottomcenter"),w("bottomright"))).children().children().css({"float":"left"}),a=w(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(p,q.append(r,a)),s.children().hover(function(){a(this).addclass("hover")},function(){a(this).removeclass("hover")}).addclass("hover"),k=t.height()+w.height()+s.outerheight(!0)-s.height(),l=u.width()+v.width()+s.outerwidth(!0)-s.width(),m=z.outerheight(!0),n=z.outerwidth(!0),q.css({"padding-bottom":k,"padding-right":l}).hide(),f.click(function(){u.next()}),g.click(function(){u.prev()}),h.click(function(){u.close()}),i=f.add(g).add(d).add(e),s.children().removeclass("hover"),a("."+v).live("click",function(a){a.button!==0&&typeof a.button!="undefined"||a.ctrlkey||a.shiftkey||a.altkey||(a.preventdefault(),ba(this))}),p.click(function(){j.overlayclose&&u.close()}),a(b).bind("keydown."+f,function(a){var b=a.keycode;r&&j.esckey&&b===27&&(a.preventdefault(),u.close()),r&&j.arrowkey&&x[1]&&(b===37?(a.preventdefault(),g.click()):b===39&&(a.preventdefault(),f.click()))})},u.remove=function(){q.add(p).remove(),a("."+v).die("click").removedata(e).removeclass(v)},u.position=function(a,c){function g(a){t[0].style.width=w[0].style.width=s[0].style.width=a.style.width,b[0].style.height=b[1].style.height=s[0].style.height=u[0].style.height=v[0].style.height=a.style.height}var d,e=math.max(b.documentelement.clientheight-j.h-m-k,0)/2+y.scrolltop(),f=math.max(y.width()-j.w-n-l,0)/2+y.scrollleft();d=q.width()===j.w+n&&q.height()===j.h+m?0:a,r[0].style.width=r[0].style.height="9999px",q.dequeue().animate({width:j.w+n,height:j.h+m,top:e,left:f},{duration:d,complete:function(){g(this),s=!1,r[0].style.width=j.w+n+l+"px",r[0].style.height=j.h+m+k+"px",c&&c()},step:function(){g(this)}})},u.resize=function(a){if(r){a=a||{},a.width&&(j.w=x(a.width,"x")-n-l),a.innerwidth&&(j.w=x(a.innerwidth,"x")),z.css({width:j.w}),a.height&&(j.h=x(a.height,"y")-m-k),a.innerheight&&(j.h=x(a.innerheight,"y"));if(!a.innerheight&&!a.height){var b=z.wrapinner("
").children();j.h=b.height(),b.replacewith(b.children())}z.css({height:j.h}),u.position(j.transition==="none"?0:j.speed)}},u.prep=function(b){function h(b){u.position(b,function(){var b,d,g,h,j=x.length,k,n;!r||(n=function(){b.hide(),$(i,j.oncomplete)},m&&q&&z.fadein(100),c.html(j.title).add(z).show(),j>1?(typeof j.current=="string"&&d.html(j.current.replace(/\{current\}/,p+1).replace(/\{total\}/,j)).show(),f[j.loop||p")[0].src=h),y(d)&&(a("")[0].src=d))):i.hide(),j.iframe?(k=a("