(function(F,D){var Z={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,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,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},R="colorbox",G="cbox",B=G+"_open",I=G+"_load",A=G+"_complete",X=G+"_cleanup",Q=G+"_closed",k=G+"_purge",o=G+"_loaded",T=F.browser.msie&&!F.support.opacity,x=T&&F.browser.version<7,r=G+"_IE6",i,Aa,d,w,u,n,m,Ab,z,g,O,a,Y,h,v,f,S,l,e,H,s,c,N,C,M,b,P,E,J,L=false,W,p=G+"Element";function K(Ad,Ac){Ad=Ad?' id="'+G+Ad+'"':"";Ac=Ac?' style="'+Ac+'"':"";return F("<div"+Ad+Ac+"/>")}function y(Ac,Ad){Ad=Ad==="x"?g.width():g.height();return(typeof Ac==="string")?Math.round((Ac.match(/%/)?(Ad/100)*parseInt(Ac,10):parseInt(Ac,10))):Ac}function t(Ac,Ad){Ac=F.isFunction(Ac)?Ac.call(Ad):Ac;return P.photo||Ac.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function q(Ac){for(var Ad in Ac){if(F.isFunction(Ac[Ad])&&Ad.substring(0,2)!=="on"){Ac[Ad]=Ac[Ad].call(C)}}Ac.rel=Ac.rel||C.rel||"nofollow";Ac.href=Ac.href||F(C).attr("href");Ac.title=Ac.title||C.title;return Ac}function U(Ac,Ad){if(Ad){Ad.call(C)}F.event.trigger(Ac)}function V(){var Af,Ae=G+"Slideshow_",Ad,Ag,Ac;if(P.slideshow&&z[1]){Ad=function(){f.text(P.slideshowStop).bind(A,function(){Af=setTimeout(W.next,P.slideshowSpeed)}).bind(I,function(){clearTimeout(Af)}).one("click",function(){Ag()});Aa.removeClass(Ae+"off").addClass(Ae+"on")};Ag=function(){clearTimeout(Af);f.text(P.slideshowStart).unbind(A+" "+I).one("click",function(){Ad();Af=setTimeout(W.next,P.slideshowSpeed)});Aa.removeClass(Ae+"on").addClass(Ae+"off")};f.bind(Q,function(){f.unbind();clearTimeout(Af);Aa.removeClass(Ae+"off "+Ae+"on")});if(P.slideshowAuto){Ad()}else{Ag()}}}function j(Ac){if(!L){C=Ac;P=q(F.extend({},F.data(C,R)));z=F(C);b=0;if(P.rel!=="nofollow"){z=F("."+p).filter(function(){var Ae=F.data(this,R).rel||this.rel;return(Ae===P.rel)});b=z.index(C);if(b===-1){z=z.add(C);b=z.length-1}}if(!E){E=J=true;Aa.show();M=C;try{M.blur()}catch(Ad){}i.css({"opacity":+P.opacity,"cursor":P.overlayClose?"pointer":"auto"}).show();P.w=y(P.initialWidth,"x");P.h=y(P.initialHeight,"y");W.position(0);if(x){g.bind("resize."+r+" scroll."+r,function(){i.css({width:g.width(),height:g.height(),top:g.scrollTop(),left:g.scrollLeft()})}).trigger("scroll."+r)}U(B,P.onOpen);v.add(l).add(S).add(f).add(h).hide();e.html(P.close).show()}W.load(true)}}W=F.fn[R]=F[R]=function(Ad,Af){var Ae=this,Ac;if(!Ae[0]&&Ae.selector){return Ae}Ad=Ad||{};if(Af){Ad.onComplete=Af}if(!Ae[0]||Ae.selector===undefined){Ae=F("<a/>");Ad.open=true}Ae.each(function(){F.data(this,R,F.extend({},F.data(this,R)||Z,Ad));F(this).addClass(p)});Ac=Ad.open;if(F.isFunction(Ac)){Ac=Ac.call(Ae)}if(Ac){j(Ae[0])}return Ae};W.init=function(){g=F(D);Aa=K().attr({id:R,"class":T?G+"IE":""});i=K("Overlay",x?"position:absolute":"").hide();d=K("Wrapper");w=K("Content").append(O=K("LoadedContent","width:0; height:0; overflow:hidden"),Y=K("LoadingOverlay").add(K("LoadingGraphic")),h=K("Title"),v=K("Current"),S=K("Next"),l=K("Previous"),f=K("Slideshow").bind(B,V),e=K("Close"));d.append(K().append(K("TopLeft"),u=K("TopCenter"),K("TopRight")),K(false,"clear:left").append(n=K("MiddleLeft"),w,m=K("MiddleRight")),K(false,"clear:left").append(K("BottomLeft"),Ab=K("BottomCenter"),K("BottomRight"))).children().children().css({"float":"left"});a=K(false,"position:absolute; width:9999px; visibility:hidden; display:none");F("body").prepend(i,Aa.append(d,a));w.children().hover(function(){F(this).addClass("hover")},function(){F(this).removeClass("hover")}).addClass("hover");H=u.height()+Ab.height()+w.outerHeight(true)-w.height();s=n.width()+m.width()+w.outerWidth(true)-w.width();c=O.outerHeight(true);N=O.outerWidth(true);Aa.css({"padding-bottom":H,"padding-right":s}).hide();S.click(W.next);l.click(W.prev);e.click(W.close);w.children().removeClass("hover");F("."+p).live("click",function(Ac){if(!((Ac.button!==0&&typeof Ac.button!=="undefined")||Ac.ctrlKey||Ac.shiftKey||Ac.altKey)){Ac.preventDefault();j(this)}});i.click(function(){if(P.overlayClose){W.close()}});F(document).bind("keydown",function(Ac){if(E&&P.escKey&&Ac.keyCode===27){Ac.preventDefault();W.close()}if(E&&P.arrowKey&&!J&&z[1]){if(Ac.keyCode===37&&(b||P.loop)){Ac.preventDefault();l.click()}else{if(Ac.keyCode===39&&(b<z.length-1||P.loop)){Ac.preventDefault();S.click()}}}})};W.remove=function(){Aa.add(i).remove();F("."+p).die("click").removeData(R).removeClass(p)};W.position=function(Af,Ah){var Ag,Ad=Math.max(document.documentElement.clientHeight-P.h-c-H,0)/2+g.scrollTop(),Ae=Math.max(g.width()-P.w-N-s,0)/2+g.scrollLeft();Ag=(Aa.width()===P.w+N&&Aa.height()===P.h+c)?0:Af;d[0].style.width=d[0].style.height="9999px";function Ac(Ai){u[0].style.width=Ab[0].style.width=w[0].style.width=Ai.style.width;Y[0].style.height=Y[1].style.height=w[0].style.height=n[0].style.height=m[0].style.height=Ai.style.height}Aa.dequeue().animate({width:P.w+N,height:P.h+c,top:Ad,left:Ae},{duration:Ag,complete:function(){Ac(this);J=false;d[0].style.width=(P.w+N+s)+"px";d[0].style.height=(P.h+c+H)+"px";if(Ah){Ah()}},step:function(){Ac(this)}})};W.resize=function(Ac){if(E){Ac=Ac||{};if(Ac.width){P.w=y(Ac.width,"x")-N-s}if(Ac.innerWidth){P.w=y(Ac.innerWidth,"x")}O.css({width:P.w});if(Ac.height){P.h=y(Ac.height,"y")-c-H}if(Ac.innerHeight){P.h=y(Ac.innerHeight,"y")}if(!Ac.innerHeight&&!Ac.height){var Ad=O.wrapInner("<div style='overflow:auto'></div>").children();P.h=Ad.height();Ad.replaceWith(Ad.children())}O.css({height:P.h});W.position(P.transition==="none"?0:P.speed)}};W.prep=function(Af){if(!E){return}var Ac,Ad=P.transition==="none"?0:P.speed;g.unbind("resize."+G);O.remove();O=K("LoadedContent").html(Af);function Ae(){P.w=P.w||O.width();P.w=P.mw&&P.mw<P.w?P.mw:P.w;return P.w}function Ah(){P.h=P.h||O.height();P.h=P.mh&&P.mh<P.h?P.mh:P.h;return P.h}O.hide().appendTo(a.show()).css({width:Ae(),overflow:P.scrolling?"auto":"hidden"}).css({height:Ah()}).prependTo(w);a.hide();F("#"+G+"Photo").css({cssFloat:"none",marginLeft:"auto",marginRight:"auto"});if(x){F("select").not(Aa.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({"visibility":"hidden"}).one(X,function(){this.style.visibility="inherit"})}function Ag(Aj){var Ai,Ao,An,Al,Ak=z.length,Am=P.loop;W.position(Aj,function(){function Ap(){if(T){Aa[0].style.filter=false}}if(!E){return}if(T){if(Ac){O.fadeIn(100)}}O.show();U(o);h.show().html(P.title);if(Ak>1){v.html(P.current.replace(/\{current\}/,b+1).replace(/\{total\}/,Ak)).show();S[(Am||b<Ak-1)?"show":"hide"]().html(P.next);l[(Am||b)?"show":"hide"]().html(P.previous);Ai=b?z[b-1]:z[Ak-1];An=b<Ak-1?z[b+1]:z[0];if(P.slideshow){f.show();if(b===Ak-1&&!Am&&Aa.is("."+G+"Slideshow_on")){f.click()}}if(P.preloading){Al=F.data(An,R).href||An.href;Ao=F.data(Ai,R).href||Ai.href;if(t(Al,An)){F("<img/>")[0].src=Al}if(t(Ao,Ai)){F("<img/>")[0].src=Ao}}}Y.hide();if(P.transition==="fade"){Aa.fadeTo(Ad,1,function(){Ap()})}else{Ap()}g.bind("resize."+G,function(){W.position(0)});U(A,P.onComplete)})}if(P.transition==="fade"){Aa.fadeTo(Ad,0,function(){Ag(0)})}else{Ag(Ad)}};W.load=function(Af){var Ag,Ae,Ad,Ac=W.prep;J=true;C=z[b];if(!Af){P=q(F.extend({},F.data(C,R)))}U(k);U(I,P.onLoad);P.h=P.height?y(P.height,"y")-c-H:P.innerHeight&&y(P.innerHeight,"y");P.w=P.width?y(P.width,"x")-N-s:P.innerWidth&&y(P.innerWidth,"x");P.mw=P.w;P.mh=P.h;if(P.maxWidth){P.mw=y(P.maxWidth,"x")-N-s;P.mw=P.w&&P.w<P.mw?P.w:P.mw}if(P.maxHeight){P.mh=y(P.maxHeight,"y")-c-H;P.mh=P.h&&P.h<P.mh?P.h:P.mh}Ag=P.href;Y.show();if(P.inline){K().hide().insertBefore(F(Ag)[0]).one(k,function(){F(this).replaceWith(O.children())});Ac(F(Ag))}else{if(P.iframe){Aa.one(o,function(){var Ah=F("<iframe name='"+new Date().getTime()+"' frameborder=0"+(P.scrolling?"":" scrolling='no'")+(T?" allowtransparency='true'":"")+" style='width:100%; height:100%; border:0; display:block;'/>");Ah[0].src=P.href;Ah.appendTo(O).one(k,function(){Ah[0].src="about:blank"})});Ac(" ")}else{if(P.html){Ac(P.html)}else{if(t(Ag,C)){Ae=new Image();Ae.onload=function(){var Ah;Ae.onload=null;Ae.id=G+"Photo";F(Ae).css({border:"none",display:"block",cssFloat:"left"});if(P.scalePhotos){Ad=function(){Ae.height-=Ae.height*Ah;Ae.width-=Ae.width*Ah};if(P.mw&&Ae.width>P.mw){Ah=(Ae.width-P.mw)/Ae.width;Ad()}if(P.mh&&Ae.height>P.mh){Ah=(Ae.height-P.mh)/Ae.height;Ad()}}if(P.h){Ae.style.marginTop=Math.max(P.h-Ae.height,0)/2+"px"}if(z[1]&&(b<z.length-1||P.loop)){F(Ae).css({cursor:"pointer"}).click(W.next)}if(T){Ae.style.msInterpolationMode="bicubic"}setTimeout(function(){Ac(Ae)},1)};setTimeout(function(){Ae.src=Ag},1)}else{K().appendTo(a).load(Ag,function(Aj,Ah,Ai){Ac(Ah==="error"?"Request unsuccessful: "+Ai.statusText:this)})}}}}};W.next=function(){if(!J){b=b<z.length-1?b+1:0;W.load()}};W.prev=function(){if(!J){b=b?b-1:z.length-1;W.load()}};W.close=function(){if(E&&!L){L=true;E=false;U(X,P.onCleanup);g.unbind("."+G+" ."+r);i.fadeTo("fast",0);Aa.stop().fadeTo("fast",0,function(){U(k);O.remove();Aa.add(i).css({"opacity":1,cursor:"auto"}).hide();try{M.focus()}catch(Ac){}setTimeout(function(){L=false;U(Q,P.onClosed)},1)})}};W.element=function(){return F(C)};W.settings=Z;F(W.init)}(jQuery,this));(function(A){jQuery.fn.pngFix=function(B){B=jQuery.extend({blankgif:"img/blank.gif"},B);var C=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1);var D=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1);if(jQuery.browser.msie&&(C||D)){jQuery(this).find("img[src$=-32.png]").each(function(){jQuery(this).attr("width",jQuery(this).width());jQuery(this).attr("height",jQuery(this).height());var K="";var F="";var G=(jQuery(this).attr("id"))?'id="'+jQuery(this).attr("id")+'" ':"";var H=(jQuery(this).attr("class"))?'class="'+jQuery(this).attr("class")+'" ':"";var M=(jQuery(this).attr("title"))?'title="'+jQuery(this).attr("title")+'" ':"";var E=(jQuery(this).attr("alt"))?'alt="'+jQuery(this).attr("alt")+'" ':"";var J=(jQuery(this).attr("align"))?"float:"+jQuery(this).attr("align")+";":"";var L=(jQuery(this).parent().attr("href"))?"cursor:hand;":"";if(this.style.border){K+="border:"+this.style.border+";";this.style.border=""}if(this.style.padding){K+="padding:"+this.style.padding+";";this.style.padding=""}if(this.style.margin){K+="margin:"+this.style.margin+";";this.style.margin=""}var I=(this.style.cssText);F+="<span "+G+H+M+E;F+='style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+J+L;F+="width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+"px;";F+="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+jQuery(this).attr("src")+"', sizingMethod='crop');";F+=I+'"></span>';if(K!=""){F='<span style="position:relative;display:inline-block;'+K+L+"width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+'px;">'+F+"</span>"}jQuery(this).hide();jQuery(this).after(F)});jQuery(this).find("*").each(function(){var F=jQuery(this).css("background-image");if(F.indexOf("-32.png")!=-1){var E=F.split('url("')[1].split('")')[0];jQuery(this).css("background-image","none");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+E+"',sizingMethod='crop')"}});jQuery(this).find("input[src$=-32.png]").each(function(){var E=jQuery(this).attr("src");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+E+"', sizingMethod='crop');";jQuery(this).attr("src",B.blankgif)})}return jQuery}})(jQuery);$(document).ready(function(){$(".colorBox").colorbox({iframe:true,innerWidth:840,innerHeight:600});$(".morelink").click(function(){$(this).next().slideToggle(300);$(this).prev().slideToggle(300)})});
