(function(h){h.fn.sudoSlider=function(X){var d=!1,e=!d,f=this,X=h.extend({controlsShow:e,controlsFadeSpeed:400,controlsFade:e,insertAfter:e,firstShow:d,lastShow:d,vertical:d,speed:800,ease:"swing",auto:d,pause:2E3,continuous:d,prevNext:e,numeric:d,numericAttr:'class="controls"',numericText:[],clickableAni:d,history:d,speedhistory:400,autoheight:e,customLink:d,fade:d,crossFade:e,fadespeed:1E3,updateBefore:d,ajax:d,preloadAjax:100,startSlide:d,ajaxLoadFunction:d,beforeAniFunc:d,afterAniFunc:d,uncurrentFunc:d,
currentFunc:d,prevHtml:'<a href="#" class="prevBtn"> previous </a>',nextHtml:'<a href="#" class="nextBtn"> next </a>',loadingText:"Loading Content...",firstHtml:'<a href="#" class="firstBtn"> first </a>',controlsAttr:'id="controls"',lastHtml:'<a href="#" class="lastBtn"> last </a>',autowidth:e,slideCount:1,resumePause:d,moveCount:1},X);return this.each(function(){function ea(c,D){l=0;for(b in J)a[l]=J[b],l++;w=d;E=e;o=c.children("ul");k=o.children("li");i=k.length;if(a[25]&&(o.length==0&&c.append(o=
h("<ul></ul>")),a[25].length>i)){for(b=1;b<=a[25].length-i;b++)o.append("<li><p>"+a[35]+"</p></li>");k=o.children("li");i=k.length}y=g=0;s=i-1;p=e;K=q=Y=d;R=[];w=d;c.css("position")=="static"&&c.css("position","relative");k.css({"float":"left",display:"block"});a[40]=n(a[40]);a[42]--;u=a[40];a[21]||(a[40]+=a[42]);a[40]>i&&(a[40]=i);a[27]=n(a[27])||1;F=a[11]&&(!a[21]||a[40]>1);for(b=0;b<i;b++)a[15][b]=a[15][b]||b+1,a[25][b]=a[25][b]||d;if(F){for(j=a[40];j>=1;j--)o.prepend(k.eq(-a[40]+j-1).clone()).append(k.eq(a[40]-
j).clone());r=o.children("li");if(a[25])for(b=i-a[40];b<i;b++)a[25][b]&&b!=a[27]-1&&z(b,d,0,d)}a[2]=a[2]&&!a[11];o[a[6]?"height":"width"](1E7);r=o.children("li");A=d;if(a[0]){A=h("<span "+a[37]+"></span>");h(c)[a[3]?"after":"before"](A);if(a[13]){fa=A.prepend("<ol "+a[14]+"></ol>").children();l=a[13]=="pages"?u:1;for(b=0;b<i-(a[11]||a[13]=="pages"?1:u)+1;b+=l)R[b]=h("<li rel='"+(b+1)+"'><a href='#'><span>"+a[15][b]+"</span></a></li>").appendTo(fa).click(function(){G(h(this).attr("rel")-1,e);return d})}a[4]&&
(ga=S(a[36],"first"));a[5]&&(ha=S(a[38],"last"));a[12]&&(ia=S(a[34],"next"),ja=S(a[33],"prev"))}if(a[26]===e)for(j=0;j<=s;j++)a[25][j]&&a[27]-1!=j&&z(j,d,0,d);l=[1,7,10,18,23];for(b in l)a[n(l[b])]=sa(a[n(l[b])]);a[20]&&h(a[20]).live("click",function(){if(b=h(this).attr("rel"))b=="stop"?(a[9]=d,clearTimeout(x),L=d):b=="start"?(x=M(a[10]),a[9]=e):b=="block"?p=d:b=="unblock"?p=e:p&&G(b==n(b)?b-1:b,e);return d});Z(r.slice(0,a[40]),e,function(){a[9]&&(x=M(a[10]));D?B(D,d,d,d):a[17]?(h.hashchange?h(window).hashchange(T):
h.address?h.address.change(function(){T()}):h(window).bind("hashchange",T),T()):B(a[27]-1,d,d,d)})}function T(){a:{var c=location.hash.substr(1);for(j in a[15])if(a[15][j]==c)break a;j=c?g:0}E?B(j,d,d,d):j!=g&&G(j,d)}function ka(){if(a[25]&&n(a[26]))for(b in a[25])if(a[25][b]){clearTimeout(U);U=setTimeout(function(){z(b,d,0,d)},n(a[26]));break}}function M(a){L=e;return setTimeout(function(){G("next",d)},a)}function sa(a){return n(a)||a==0?n(a):a=="fast"?200:a=="normal"||a=="medium"?400:a=="slow"?
600:400}function S(a,b){return h(a).prependTo(A).click(function(){G(b,e);return d})}function G(c,b){N=d;if(!w){if(a[9]){var v=a[7];q&&a[22]?v=n(v*0.6):q&&(v=0);b?(clearTimeout(x),L=d,a[41]&&(x=M(v+a[41]))):x=M(a[10]+v)}a[21]?la(c,b):(a[11]?(c=O(c),v=Math.abs(g-c),c<a[40]-u+1&&Math.abs(g-c-i)<v&&(c+=i,v=Math.abs(g-c-i)),c>s-a[40]&&Math.abs(g-c+i)<v&&(c-=i)):c=O(c),B(c,b,e,d))}}function ma(c,d,b){if(b)var b=ia,e=ha,g="next",f="last",i=a[5];else b=ja,e=ga,g="prev",f="first",i=a[4];if(a[0]){if(a[12])b[c?
"fadeIn":"fadeOut"](d);if(i)e[c?"fadeIn":"fadeOut"](d)}if(a[20])h(a[20]).filter(function(){return h(this).attr("rel")==g||h(this).attr("rel")==f})[c?"fadeIn":"fadeOut"](d)}function na(a,b){ma(a,b,d);ma(a<i-u,b,e)}function $(c){c=t(c)+1;if(a[13])for(b in R)oa(R[b],c);a[20]&&oa(h(a[20]),c)}function oa(c,D){c.filter&&(c.filter(".current").removeClass("current").each(function(){h.isFunction(a[31])&&a[31].call(this,h(this).attr("rel"))}),c.filter(function(){l=h(this).attr("rel");if(a[13]=="pages")for(b=
0;b<u;b++){if(l==D-b)return e}else return l==D;return d}).addClass("current").each(function(){h.isFunction(a[32])&&a[32].call(this,D)}))}function Z(a,d,b){var a=a.add(a.find("img")).filter("img"),e=a.length;e||b();a.load(function(){this.naturalHeight&&!this.clientHeight&&h(this).height(this.naturalHeight).width(this.naturalWidth);d?(e--,e==0&&b()):b()}).each(function(){if((this.complete||this.complete===void 0)&&d){var a=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
this.src=a}})}function V(c,b){a[19]&&pa(c,b,e);a[39]&&pa(c,b,d)}function pa(a,b,e){P.ready(function(){qa(a,b,e);Z(k.eq(a),d,function(){qa(a,b,e)})})}function qa(c,b,e){c=t(c);l=k.eq(c)[e?"height":"width"]();P.animate(e?{height:l}:{width:l},{queue:d,duration:b,easing:a[8]})}function aa(){o.css(a[6]?"margin-top":"margin-left",ba(g))}function ba(c){c=r.eq(c+(F?a[40]:0));return c.length?-c.position()[a[6]?"top":"left"]:0}function ta(){g=t(g);a[24]||$(g);aa();p=e;if(a[17]&&Y)window.location.hash=a[15][g];
!q&&N&&C(g,e)}function C(c,b){(b?ca:da)(k.eq(c),t(c)+1);if(F&&(c<a[40]&&(b?ca:da)(r.eq(c<0?c+a[40]:c-a[40]),c+1),c>s-a[40]||c==-a[40]))(b?ca:da)(r.eq(c==-a[40]?-1:a[40]+c-s-1),c+1)}function ca(c,b){h.isFunction(a[30])&&a[30].call(c,b)}function da(c,b){h.isFunction(a[29])&&a[29].call(c,b)}function O(c){return c=="next"?t(g+1+a[42]):c=="prev"?t(g-1-a[42]):c=="first"?0:c=="last"?s:n(c)}function z(c,b,g,f){U&&clearTimeout(U);var m=a[25][c],i=k.eq(c),l=g===e,g=g===e?0:g;q&&!a[22]&&n(a[23]*0.4);var j=d;
h.ajax({url:m,success:function(a,h,m){m.getResponseHeader("Content-Type").substr(0,5)!="image"&&(j=e,i.html(a),ra(c,g,f,b,l,d))},complete:function(){if(!j)image=new Image,i.html("").append(image),image.src=m,ra(c,g,f,b,l,e)}});a[25][c]=d;J.ajax[c]=d}function ra(c,b,g,f,i,l){var j=k.eq(c);F&&(c<a[40]&&r.eq(c<0?c+a[40]:c-a[40]).replaceWith(h(j).clone()),c>s-a[40]&&r.eq(a[40]+c-s-1).replaceWith(h(j).clone()),r=o.children("li"),i===e&&aa());f&&V(c,b);Z(j,e,function(){i===e&&aa();h.isFunction(g)&&g();
ka()});h.isFunction(a[28])&&a[28].call(j,n(c)+1,l);g==2&&(C(c,d),N||(C(c,e),N=e))}function la(c,f,i){if(O(c)!=g&&!w&&p){K=d;a[24]&&$(O(c));var j=!f&&!a[9]&&a[17]?a[23]*(a[18]/a[7]):a[23],m=O(c);a[2]&&na(m,a[1]);if(i)j=W,H&&H--;else if(a[25]){H=0;W=j;for(b=m;b<m+u;b++)a[25][b]&&(z(t(b),d,j,function(){la(c,f,e)}),H++)}else H=d;if(!H)if(p=!f,V(m,a[23]),C(m,d),a[22]){var l=e,i=0;for(b=m;b<m+u;b++)k.eq(t(b)).clone().prependTo(P).css({"z-index":"100000",position:"absolute","list-style":"none",top:a[6]?
i:0,left:a[6]?0:i}).hide().fadeIn(a[23],function(){screen.fontSmoothingEnabled&&this.style.removeAttribute("filter");q=p=e;if(l){B(m,d,d,d);if(a[17]&&f)window.location.hash=a[15][g];C(m,e);l=d}h(this).remove();q=d}),i+=k.eq(b)[a[6]?"outerHeight":"outerWidth"](e)}else{var o=n(j*0.6);k.stop().fadeTo(j-o,0.001,function(){q=p=e;B(m,d,d,d);p=!f;k.fadeTo(o,1,function(){screen.fontSmoothingEnabled&&this.style.removeAttribute("filter");if(a[17]&&f)window.location.hash=a[15][g];p=e;q=d;C(m,e)})})}}}function B(c,
f,h,j){if(p&&!w&&(c!=g||E)&&i>t(c)||j){j||(K=d);p=!f&&!a[9]?e:a[16];Y=f;y=g;g=c;a[24]&&$(g);var m=Math.sqrt(Math.abs(y-g)),k=!h?0:!f&&!a[9]?n(m*a[18]):n(m*a[7]),m=t(g);if(j)k=W,Q&&Q--;else if(a[25]){a[25][m]&&(z(m,e,E||k,2),K=e);if(!q){var j=y>g?g:y,r=y>g?y:g;Q=0;W=k;for(b=j;b<=r;b++)b<=s&&b>=0&&a[25][b]&&(z(b,d,k,function(){B(c,f,h,e)}),Q++)}for(b=m+1;b<=m+u;b++)a[25][b]&&z(b,d,0,d)}Q||(!q&&!K&&(C(m,d),N=e),q||V(g,k),l=ba(g),o.animate(a[6]?{marginTop:l}:{marginLeft:l},{queue:d,duration:k,easing:a[8],
complete:ta}),a[2]&&(k=a[1],!f&&!a[9]&&(k=a[18]/a[7]*a[1]),h||(k=0),q&&(k=n(a[23]*0.6)),na(g,k)),E&&(a[25][m]||ka()),E=d)}}function t(a){return n(a<0?a+i:a>s?a-i:a)}function n(a){return parseInt(a,10)}var E,o,k,r,i,g,y,s,p,Y,q,K,R,fa,w,A,ga,ha,ia,ja,x,I,W,Q,H,L,b,l,j,F,u,N=d,U,P=h(this),J=X,a=[];ea(P,d);f.getOption=function(a){return J[a]};f.setOption=function(a,b){b&&(f.destroy(),J[a]=b,f.init());return f};f.insertSlide=function(c,b,d){if(c){f.destroy();b>i&&(b=i);c="<li>"+c+"</li>";!b||b==0?o.prepend(c):
k.eq(b-1).after(c);(b<=I||!b||b==0)&&I++;if(a[15].length<b)a[15].length=b;a[15].splice(b,0,d||n(b)+1);f.init()}return f};f.removeSlide=function(b){b--;f.destroy();k.eq(b).remove();a[15].splice(b,1);b<I&&I--;f.init();return f};f.goToSlide=function(a){G(a==n(a)?a-1:a,e);return f};f.block=function(){p=d;return f};f.unblock=function(){p=e;return f};f.startAuto=function(){a[9]=e;x=M(a[10]);return f};f.stopAuto=function(){a[9]=d;clearTimeout(x);L=d;return f};f.destroy=function(){I=g;A&&A.remove();w=e;h(a[20]).die("click");
if(F)for(b=1;b<=a[40];b++)r.eq(b-1).add(r.eq(-b)).remove();o.css(a[6]?"margin-top":"margin-left",ba(g));return f};f.init=function(){w&&ea(P,I);return f};f.adjust=function(a){a||(a=0);V(j,a);return f};f.getValue=function(a){return a=="currentSlide"?g+1:a=="totalSlides"?i:a=="clickable"?p:a=="destroyed"?w:a=="autoAnimation"?L:void 0}})}})(jQuery);;
// ColorBox v1.3.17.2 - 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(!U){P=b,_(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1));if(!S){S=T=!0,r.show();if(K.returnFocus)try{P.blur(),a(P).one(l,function(){try{this.focus()}catch(a){}})}catch(c){}q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=Z(K.initialWidth,"x"),K.h=Z(K.initialHeight,"y"),X.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),ba(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()}X.load(!0)}}function bb(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(Q<y.length-1||K.loop)a=setTimeout(X.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(X.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,d),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function ba(b,c){c&&c.call(P),a.event.trigger(b)}function _(b){K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.substring(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function $(a){return K.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(a)}function Z(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function Y(c,d,e){e=b.createElement("div"),c&&(e.id=f+c),e.style.cssText=d||"";return a(e)}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!1,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,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,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:!1},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=a.browser.msie&&!a.support.opacity,o=n&&a.browser.version<7,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X;X=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{};if(!f[0]){if(f.selector)return f;f=a("<a/>"),b.open=!0}c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b)),a(this).addClass(g)}),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&bc(f[0]);return f},X.init=function(){z=a(c),r=Y().attr({id:e,"class":n?f+(o?"IE6":"IE"):""}),q=Y("Overlay",o?"position:absolute":"").hide(),s=Y("Wrapper"),t=Y("Content").append(A=Y("LoadedContent","width:0; height:0; overflow:hidden"),C=Y("LoadingOverlay").add(Y("LoadingGraphic")),D=Y("Title"),E=Y("Current"),G=Y("Next"),H=Y("Previous"),F=Y("Slideshow").bind(h,bb),I=Y("Close")),s.append(Y().append(Y("TopLeft"),u=Y("TopCenter"),Y("TopRight")),Y(!1,"clear:left").append(v=Y("MiddleLeft"),t,w=Y("MiddleRight")),Y(!1,"clear:left").append(Y("BottomLeft"),x=Y("BottomCenter"),Y("BottomRight"))).children().children().css({"float":"left"}),B=Y(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(q,r.append(s,B)),t.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover"),L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}).hide(),G.click(function(){X.next()}),H.click(function(){X.prev()}),I.click(function(){X.close()}),J=G.add(H).add(E).add(F),t.children().removeClass("hover"),q.click(function(){K.overlayClose&&X.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),X.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))})},X.remove=function(){r.add(q).remove(),a("."+g).removeData(e).removeClass(g)},X.position=function(a,c){function g(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,C[0].style.height=C[1].style.height=t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var d=0,e=0;z.unbind("resize."+f),r.hide(),K.fixed&&!o?r.css({position:"fixed"}):(d=z.scrollTop(),e=z.scrollLeft(),r.css({position:"absolute"})),K.right!==!1?e+=Math.max(z.width()-K.w-O-M-Z(K.right,"x"),0):K.left!==!1?e+=Z(K.left,"x"):e+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?d+=Math.max(b.documentElement.clientHeight-K.h-N-L-Z(K.bottom,"y"),0):K.top!==!1?d+=Z(K.top,"y"):d+=Math.round(Math.max(b.documentElement.clientHeight-K.h-N-L,0)/2),r.show(),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:d,left:e},{duration:a,complete:function(){g(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",c&&c(),setTimeout(function(){z.bind("resize."+f,X.position)},1)},step:function(){g(this)}})},X.resize=function(a){if(S){a=a||{},a.width&&(K.w=Z(a.width,"x")-O-M),a.innerWidth&&(K.w=Z(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=Z(a.height,"y")-N-L),a.innerHeight&&(K.h=Z(a.innerHeight,"y"));if(!a.innerHeight&&!a.height){var b=A.wrapInner("<div style='overflow:auto'></div>").children();K.h=b.height(),b.replaceWith(b.children())}A.css({height:K.h}),X.position(K.transition==="none"?0:K.speed)}},X.prep=function(b){function h(){K.h=K.h||A.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h;return K.h}function g(){K.w=K.w||A.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w;return K.w}if(!!S){var c,d=K.transition==="none"?0:K.speed;A.remove(),A=Y("LoadedContent").append(b),A.hide().appendTo(B.show()).css({width:g(),overflow:K.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(t),B.hide(),a(R).css({"float":"none"}),o&&a("select").not(r.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(k,function(){this.style.visibility="inherit"}),c=function(){function o(){n&&r[0].style.removeAttribute("filter")}var b,c,g,h,i=y.length,k,l;!S||(l=function(){clearTimeout(W),C.hide(),ba(j,K.onComplete)},n&&R&&A.fadeIn(100),D.html(K.title).add(A).show(),i>1?(typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",i)).show(),G[K.loop||Q<i-1?"show":"hide"]().html(K.next),H[K.loop||Q?"show":"hide"]().html(K.previous),b=Q?y[Q-1]:y[i-1],g=Q<i-1?y[Q+1]:y[0],K.slideshow&&F.show(),K.preloading&&(h=a.data(g,e).href||g.href,c=a.data(b,e).href||b.href,h=a.isFunction(h)?h.call(g):h,c=a.isFunction(c)?c.call(b):c,$(h)&&(a("<img/>")[0].src=h),$(c)&&(a("<img/>")[0].src=c))):J.hide(),K.iframe?(k=a("<iframe/>").addClass(f+"Iframe")[0],K.fastIframe?l():a(k).one("load",l),k.name=f+ +(new Date),k.src=K.href,K.scrolling||(k.scrolling="no"),n&&(k.frameBorder=0,k.allowTransparency="true"),a(k).appendTo(A).one(m,function(){k.src="//about:blank"})):l(),K.transition==="fade"?r.fadeTo(d,1,o):o())},K.transition==="fade"?r.fadeTo(d,0,function(){X.position(0,c)}):X.position(d,c)}},X.load=function(b){var c,d,e=X.prep;T=!0,R=!1,P=y[Q],b||_(),ba(m),ba(i,K.onLoad),K.h=K.height?Z(K.height,"y")-N-L:K.innerHeight&&Z(K.innerHeight,"y"),K.w=K.width?Z(K.width,"x")-O-M:K.innerWidth&&Z(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=Z(K.maxWidth,"x")-O-M,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=Z(K.maxHeight,"y")-N-L,K.mh=K.h&&K.h<K.mh?K.h:K.mh),c=K.href,W=setTimeout(function(){C.show()},100),K.inline?(Y().hide().insertBefore(a(c)[0]).one(m,function(){a(this).replaceWith(A.children())}),e(a(c))):K.iframe?e(" "):K.html?e(K.html):$(c)?(a(R=new Image).addClass(f+"Photo").error(function(){K.title=!1,e(Y("Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null,K.scalePhotos&&(d=function(){R.height-=R.height*a,R.width-=R.width*a},K.mw&&R.width>K.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(Q<y.length-1||K.loop)&&(R.style.cursor="pointer",R.onclick=function(){X.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Y("Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},X.next=function(){!T&&y[1]&&(Q<y.length-1||K.loop)&&(Q=Q<y.length-1?Q+1:0,X.load())},X.prev=function(){!T&&y[1]&&(Q||K.loop)&&(Q=Q?Q-1:y.length-1,X.load())},X.close=function(){S&&!U&&(U=!0,S=!1,ba(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),ba(m),A.remove(),setTimeout(function(){U=!1,ba(l,K.onClosed)},1)}))},X.element=function(){return a(P)},X.settings=d,V=function(a){a.button!==0&&typeof a.button!="undefined"||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),bc(this))},a.fn.delegate?a(b).delegate("."+g,"click",V):a("."+g).live("click",V),a(X.init)})(jQuery,document,this);;
jQuery(document).ready(function() {
	if (document.getElementById("gallery")) {
		jQuery('#gallery').sudoSlider( {
			continuous: true,
			fadespeed: '1000',
			updateBefore: true,
			numeric: true,
			fade: true,
			beforeAniFunc: function(t) {
				jQuery('#gallery li').width('772px');
			}
		});
		jQuery('.controls').children('li').children('a').children('span').replaceWith('<span>&#8226;</span>');
	}
	if (document.getElementById("praktijk")) {
		jQuery('#praktijk').sudoSlider( {
			prevNext: false,
			pause: '3000',
			fadespeed: '2000',
			preloadAjax: true,
			updateBefore: true,
			clickableAni: true,
			resumePause: 6000,
			fade: true,
			auto: true,
			numeric: true,
			beforeAniFunc: function(t) {
				jQuery('#praktijk li').width('505px');
			}
		});
		jQuery('.controls').children('li').children('a').children('span').replaceWith('<span>&#8226;</span>');
	}
	if (document.getElementById("teamwork")) {
		jQuery('#teamwork').sudoSlider( {
			prevNext: false,
			pause: '3000',
			fadespeed: '2000',
			preloadAjax: true,
			updateBefore: true,
			clickableAni: true,
			resumePause: 6000,
			fade: true,
			auto: true,
			numeric: true,
			beforeAniFunc: function(t) {
				jQuery('#teamwork li').width('336px');
			}
		});
		jQuery('.controls').children('li').children('a').children('span').replaceWith('<span>&#8226;</span>');
	}
	if (document.getElementById("frontpage")) {
		jQuery('#frontpage').sudoSlider( {
			prevNext: false,
			pause: '3000',
			fadespeed: '2000',
			preloadAjax: true,
			updateBefore: true,
			clickableAni: true,
			resumePause: 6000,
			fade: true,
			auto: true,
			numeric: true,
			beforeAniFunc: function(t) {
				jQuery('#frontpage li').width('470px');
			}
		});
		jQuery('.controls').children('li').children('a').children('span').replaceWith('<span>&#8226;</span>');
	}
	jQuery('a.colorbox').colorbox({
		returnFocus: false,
		previous: 'vorige',
		next: 'volgende',
		close: 'sluiten'
	});
	jQuery('.file a').attr({'target': '_blank'});
	jQuery('.row-flyer .button a').attr({'target': '_blank'});
});;
(function ($) {

$(document).ready(function() {

  // Accepts a string; returns the string with regex metacharacters escaped. The returned string
  // can safely be used at any point within a regex to match the provided literal string. Escaped
  // characters are [ ] { } ( ) * + ? - . , \ ^ $ # and whitespace. The character | is excluded
  // in this function as it's used to separate the domains names.
  RegExp.escapeDomains = function(text) {
    return (text) ? text.replace(/[-[\]{}()*+?.,\\^$#\s]/g, "\\$&") : '';
  }

  // Attach onclick event to document only and catch clicks on all elements.
  $(document.body).click(function(event) {
    // Catch the closest surrounding link of a clicked element.
    $(event.target).closest("a,area").each(function() {

      var ga = Drupal.settings.googleanalytics;
      // Expression to check for absolute internal links.
      var isInternal = new RegExp("^(https?):\/\/" + window.location.host, "i");
      // Expression to check for special links like gotwo.module /go/* links.
      var isInternalSpecial = new RegExp("(\/go\/.*)$", "i");
      // Expression to check for download links.
      var isDownload = new RegExp("\\.(" + ga.trackDownloadExtensions + ")$", "i");
      // Expression to check for the sites cross domains.
      var isCrossDomain = new RegExp("^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\/.*(" + RegExp.escapeDomains(ga.trackCrossDomains) + ")", "i");

      // Is the clicked URL internal?
      if (isInternal.test(this.href)) {
        // Is download tracking activated and the file extension configured for download tracking?
        if (ga.trackDownload && isDownload.test(this.href)) {
          // Download link clicked.
          var extension = isDownload.exec(this.href);
          _gaq.push(["_trackEvent", "Downloads", extension[1].toUpperCase(), this.href.replace(isInternal, '')]);
        }
        else if (isInternalSpecial.test(this.href)) {
          // Keep the internal URL for Google Analytics website overlay intact.
          _gaq.push(["_trackPageview", this.href.replace(isInternal, '')]);
        }
      }
      else {
        if (ga.trackMailto && $(this).is("a[href^=mailto:],area[href^=mailto:]")) {
          // Mailto link clicked.
          _gaq.push(["_trackEvent", "Mails", "Click", this.href.substring(7)]);
        }
        else if (ga.trackOutbound && this.href) {
          if (ga.trackDomainMode == 2 && isCrossDomain.test(this.href)) {
            // Top-level cross domain clicked. document.location is handled by _link internally.
            _gaq.push(["_link", this.href]);
          }
          else if (ga.trackOutboundAsPageview) {
            // Track all external links as page views after URL cleanup.
            // Currently required, if click should be tracked as goal.
            _gaq.push(["_trackPageview", '/outbound/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--')]);
          }
          else {
            // External link clicked.
            _gaq.push(["_trackEvent", "Outbound links", "Click", this.href]);
          }
        }
      }
    });
  });
});

})(jQuery);
;

