// colorbox v1.3.17.1 - 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 bc(b){if(!t){o=b,_(a.extend(j,a.data(o,e))),x=a(o),p=0,j.rel!=="nofollow"&&(x=a("."+x).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=z(j.initialwidth,"x"),j.h=z(j.initialheight,"y"),w.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),ba(g,j.onopen),i.add(c).hide(),h.html(j.close).show()}w.load(!0)}}function bb(){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(x)}),g=b.open,a.isfunction(g)&&(g=g.call(f)),g&&bc(f[0]);return f},w.init=function(){y=a(c),q=y().attr({id:e,"class":m?f+(n?"ie6":"ie"):""}),p=y("overlay",n?"position:absolute":"").hide(),r=y("wrapper"),s=y("content").append(z=y("loadedcontent","width:0; height:0; overflow:hidden"),b=y("loadingoverlay").add(y("loadinggraphic")),c=y("title"),d=y("current"),f=y("next"),g=y("previous"),e=y("slideshow").bind(g,bb),h=y("close")),r.append(y().append(y("topleft"),t=y("topcenter"),y("topright")),y(!1,"clear:left").append(u=y("middleleft"),s,v=y("middleright")),y(!1,"clear:left").append(y("bottomleft"),w=y("bottomcenter"),y("bottomright"))).children().children().css({"float":"left"}),a=y(!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(){w.next()}),g.click(function(){w.prev()}),h.click(function(){w.close()}),i=f.add(g).add(d).add(e),s.children().removeclass("hover"),p.click(function(){j.overlayclose&&w.close()}),a(b).bind("keydown."+f,function(a){var b=a.keycode;r&&j.esckey&&b===27&&(a.preventdefault(),w.close()),r&&j.arrowkey&&x[1]&&(b===37?(a.preventdefault(),g.click()):b===39&&(a.preventdefault(),f.click()))})},w.remove=function(){q.add(p).remove(),a("."+x).removedata(e).removeclass(x)},w.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=0,f=0;q.hide(),j.fixed&&!n?q.css({position:"fixed"}):(e=y.scrolltop(),f=y.scrollleft(),q.css({position:"absolute"})),j.right!==!1?f+=math.max(y.width()-j.w-n-l-z(j.right,"x"),0):j.left!==!1?f+=z(j.left,"x"):f+=math.max(y.width()-j.w-n-l,0)/2,j.bottom!==!1?e+=math.max(b.documentelement.clientheight-j.h-m-k-z(j.bottom,"y"),0):j.top!==!1?e+=z(j.top,"y"):e+=math.max(b.documentelement.clientheight-j.h-m-k,0)/2,q.show(),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)}})},w.resize=function(a){if(r){a=a||{},a.width&&(j.w=z(a.width,"x")-n-l),a.innerwidth&&(j.w=z(a.innerwidth,"x")),z.css({width:j.w}),a.height&&(j.h=z(a.height,"y")-m-k),a.innerheight&&(j.h=z(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}),w.position(j.transition==="none"?0:j.speed)}},w.prep=function(b){function h(b){w.position(b,function(){function o(){m&&q[0].style.removeattribute("filter")}var b,d,g,h,j=x.length,k,n;!r||(n=function(){cleartimeout(v),b.hide(),ba(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),$(d)&&(a("")[0].src=d))):i.hide(),j.iframe?(k=a("