(function(b){function m(c,d){var e=b(d);return 2>e.length?e:c.parent().find(d)}function g(f,d){var e=this,g=f.add(e),n=f.children(),E=0,y=d.vertical;c||(c=e);1<n.length&&(n=b(d.items,f));b.extend(e,{getConf:function(){return d},getIndex:function(){return E},getSize:function(){return e.getItems().size()},getNaviButtons:function(){return i.add(z)},getRoot:function(){return f},getItemWrap:function(){return n},getItems:function(){return n.children(d.item).not("."+d.clonedClass)},move:function(b,d){return e.seekTo(E+
b,d)},next:function(b){return e.move(1,b)},prev:function(b){return e.move(-1,b)},begin:function(b){return e.seekTo(0,b)},end:function(b){return e.seekTo(e.getSize()-1,b)},focus:function(){return c=e},addItem:function(c){c=b(c);d.circular?(n.children("."+d.clonedClass+":last").before(c),n.children("."+d.clonedClass+":first").replaceWith(c.clone().addClass(d.clonedClass))):n.append(c);g.trigger("onAddItem",[c]);return e},seekTo:function(o,f,i){o.jquery||(o*=1);if(d.circular&&0===o&&-1==E&&0!==f||!d.circular&&
0>o||o>e.getSize()||-1>o)return e;var m=o;o.jquery?o=e.getItems().index(o):m=e.getItems().eq(o);var t=b.Event("onBeforeSeek");if(!i&&(g.trigger(t,[o,f]),t.isDefaultPrevented()||!m.length))return e;m=y?{top:-m.position().top}:{left:-m.position().left};E=o;c=e;if(void 0===f)f=d.speed;n.animate(m,f,d.easing,i||function(){g.trigger("onSeek",[o])});return e}});b.each(["onBeforeSeek","onSeek","onAddItem"],function(c,f){b.isFunction(d[f])&&b(e).bind(f,d[f]);e[f]=function(d){d&&b(e).bind(f,d);return e}});
if(d.circular){var H=e.getItems().slice(-1).clone().prependTo(n),t=e.getItems().eq(1).clone().appendTo(n);H.add(t).addClass(d.clonedClass);e.onBeforeSeek(function(b,d,c){if(!b.isDefaultPrevented()){if(-1==d)return e.seekTo(H,c,function(){e.end(0)}),b.preventDefault();d==e.getSize()&&e.seekTo(t,c,function(){e.begin(0)})}});e.seekTo(0,0,function(){})}var i=m(f,d.prev).click(function(){e.prev()}),z=m(f,d.next).click(function(){e.next()});!d.circular&&1<e.getSize()&&(e.onBeforeSeek(function(b,c){setTimeout(function(){b.isDefaultPrevented()||
(i.toggleClass(d.disabledClass,0>=c),z.toggleClass(d.disabledClass,c>=e.getSize()-1))},1)}),d.initialIndex||i.addClass(d.disabledClass));d.mousewheel&&b.fn.mousewheel&&f.mousewheel(function(b,c){if(d.mousewheel)return e.move(0>c?1:-1,d.wheelSpeed||50),!1});if(d.touch){var I,F;n[0].ontouchstart=function(b){b=b.touches[0];I=b.clientX;F=b.clientY};n[0].ontouchmove=function(b){if(1==b.touches.length&&!n.is(":animated")){var c=b.touches[0],d=I-c.clientX,c=F-c.clientY;e[y&&0<c||!y&&0<d?"next":"prev"]();
b.preventDefault()}}}d.keyboard&&b(document).bind("keydown.scrollable",function(f){if(d.keyboard&&!f.altKey&&!f.ctrlKey&&!b(f.target).is(":input")&&!("static"!=d.keyboard&&c!=e)){var i=f.keyCode;if(y&&(38==i||40==i))return e.move(38==i?-1:1),f.preventDefault();if(!y&&(37==i||39==i))return e.move(37==i?-1:1),f.preventDefault()}});d.initialIndex&&e.seekTo(d.initialIndex,0,function(){})}b.tools=b.tools||{version:"1.2.5"};b.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",
disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",speed:400,vertical:!1,touch:!0,wheelSpeed:0}};var c;b.fn.scrollable=function(c){var d=this.data("scrollable");if(d)return d;c=b.extend({},b.tools.scrollable.conf,c);this.each(function(){d=new g(b(this),c);b(this).data("scrollable",d)});return c.api?d:this}})(jQuery);
jQuery(document).ready(function(){$("#contactform").submit(function(){var b=$(this).attr("action");$("#message").slideUp(750,function(){$("#message").hide();$("#submit").after('<img src="./img/form/ajax-loader.gif" class="loader" />').attr("disabled","disabled");$.post(b,{name:$("#name").val(),email:$("#email").val(),subject:$("#subject").val(),comments:$("#comments").val(),verify:$("#verify").val()},function(b){document.getElementById("message").innerHTML=b;$("#message").slideDown("slow");$("#contactform img.loader").fadeOut("slow",
function(){$(this).remove()});$("#contactform #submit").attr("disabled","");null!=b.match("success")&&$("#contactform").slideUp("slow")})});return!1})});
(function(b){b.fn.tipsy=function(m){m=b.extend({},b.fn.tipsy.defaults,m);return this.each(function(){var g=b.fn.tipsy.elementOptions(this,m);b(this).hover(function(){b.data(this,"cancel.tipsy",!0);var c=b.data(this,"active.tipsy");c||(c=b('<div class="tipsy"><div class="tipsy-inner"/></div>'),c.css({position:"absolute",zIndex:1E5}),b.data(this,"active.tipsy",c));if(b(this).attr("title")||"string"!=typeof b(this).attr("original-title"))b(this).attr("original-title",b(this).attr("title")||"").removeAttr("title");
var f;"string"==typeof g.title?f=b(this).attr("title"==g.title?"original-title":g.title):"function"==typeof g.title&&(f=g.title.call(this));c.find(".tipsy-inner")[g.html?"html":"text"](f||g.fallback);f=b.extend({},b(this).offset(),{width:this.offsetWidth,height:this.offsetHeight});c.get(0).className="tipsy";c.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);var d=c[0].offsetWidth,e=c[0].offsetHeight;switch(("function"==typeof g.gravity?g.gravity.call(this):
g.gravity).charAt(0)){case "n":c.css({top:f.top+f.height,left:f.left+f.width/2-d/2}).addClass("tipsy-north");break;case "s":c.css({top:f.top-e,left:f.left+f.width/2-d/2}).addClass("tipsy-south");break;case "e":c.css({top:f.top+f.height/2-e/2,left:f.left-d}).addClass("tipsy-east");break;case "w":c.css({top:f.top+f.height/2-e/2,left:f.left+f.width}).addClass("tipsy-west")}g.fade?c.css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:0.8}):c.css({visibility:"visible"})},function(){b.data(this,
"cancel.tipsy",!1);var c=this;setTimeout(function(){if(!b.data(this,"cancel.tipsy")){var f=b.data(c,"active.tipsy");g.fade?f.stop().fadeOut(function(){b(this).remove()}):f.remove()}},100)})})};b.fn.tipsy.elementOptions=function(m,g){return b.metadata?b.extend({},g,b(m).metadata()):g};b.fn.tipsy.defaults={fade:!1,fallback:"",gravity:"n",html:!1,title:"title"};b.fn.tipsy.autoNS=function(){return b(this).offset().top>b(document).scrollTop()+b(window).height()/2?"s":"n"};b.fn.tipsy.autoWE=function(){return b(this).offset().left>
b(document).scrollLeft()+b(window).width()/2?"e":"w"}})(jQuery);
(function(b,m,g){function c(a,c,d){a=m.createElement(a);return c&&(a.id=i+c),d&&(a.style.cssText=d),b(a)}function f(a){var b=q.length,a=(u+a)%b;return 0>a?b+a:a}function d(a,b){return Math.round((/%/.test(a)?("x"===b?j.width():j.height())/100:1)*parseInt(a,10))}function e(b){return a.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(b)}function ca(){var c;a=b.extend({},b.data(p,t));for(c in a)b.isFunction(a[c])&&"on"!==c.slice(0,2)&&(a[c]=a[c].call(p));a.rel=a.rel||p.rel||"nofollow";a.href=a.href||
b(p).attr("href");a.title=a.title||p.title;"string"==typeof a.href&&(a.href=b.trim(a.href))}function n(a,c){b.event.trigger(a);c&&c.call(p)}function E(){var b,c=i+"Slideshow_",d="click."+i,f,e;a.slideshow&&q[1]?(f=function(){J.text(a.slideshowStop).unbind(d).bind(o,function(){if(u<q.length-1||a.loop)b=setTimeout(h.next,a.slideshowSpeed)}).bind(F,function(){clearTimeout(b)}).one(d+" "+Q,e);l.removeClass(c+"off").addClass(c+"on");b=setTimeout(h.next,a.slideshowSpeed)},e=function(){clearTimeout(b);J.text(a.slideshowStart).unbind([o,
F,Q,d].join(" ")).one(d,function(){h.next();f()});l.removeClass(c+"on").addClass(c+"off")},a.slideshowAuto?f():e()):l.removeClass(c+"off "+c+"on")}function y(c){if(!S){p=c;ca();q=b(p);u=0;"nofollow"!==a.rel&&(q=b("."+z).filter(function(){return(b.data(this,t).rel||this.rel)===a.rel}),u=q.index(p),-1===u&&(q=q.add(p),u=q.length-1));if(!w){w=K=!0;l.show();if(a.returnFocus)try{p.blur(),b(p).one(da,function(){try{this.focus()}catch(a){}})}catch(f){}A.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":
"auto"}).show();a.w=d(a.initialWidth,"x");a.h=d(a.initialHeight,"y");h.position();L&&j.bind("resize."+T+" scroll."+T,function(){A.css({width:j.width(),height:j.height(),top:j.scrollTop(),left:j.scrollLeft()})}).trigger("resize."+T);n(I,a.onOpen);U.add(V).hide();W.html(a.close).show()}h.load(!0)}}var H={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,
fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.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:void 0},t="colorbox",i="cbox",z=i+"Element",I=i+"_open",
F=i+"_load",o=i+"_complete",Q=i+"_cleanup",da=i+"_closed",R=i+"_purge",G=b.browser.msie&&!b.support.opacity,L=G&&7>b.browser.version,T=i+"_IE6",A,l,D,s,X,Y,Z,aa,q,j,r,M,N,V,ba,J,O,P,W,U,a,B,C,v,x,p,u,k,w,K,S,ea,h;h=b.fn[t]=b[t]=function(a,c){var d=this;a=a||{};h.init();if(!d[0]){if(d.selector)return d;d=b("<a/>");a.open=!0}return c&&(a.onComplete=c),d.each(function(){b.data(this,t,b.extend({},b.data(this,t)||H,a));b(this).addClass(z)}),(b.isFunction(a.open)&&a.open.call(d)||a.open)&&y(d[0]),d};h.init=
function(){l||(b("body")[0]?(j=b(g),l=c("div").attr({id:t,"class":G?i+(L?"IE6":"IE"):""}),A=c("div","Overlay",L?"position:absolute":"").hide(),D=c("div","Wrapper"),s=c("div","Content").append(r=c("div","LoadedContent","width:0; height:0; overflow:hidden"),N=c("div","LoadingOverlay").add(c("div","LoadingGraphic")),V=c("div","Title"),ba=c("div","Current"),O=c("div","Next"),P=c("div","Previous"),J=c("div","Slideshow").bind(I,E),W=c("div","Close")),D.append(c("div").append(c("div","TopLeft"),X=c("div",
"TopCenter"),c("div","TopRight")),c("div",!1,"clear:left").append(Y=c("div","MiddleLeft"),s,Z=c("div","MiddleRight")),c("div",!1,"clear:left").append(c("div","BottomLeft"),aa=c("div","BottomCenter"),c("div","BottomRight"))).find("div div").css({"float":"left"}),M=c("div",!1,"position:absolute; width:9999px; visibility:hidden; display:none"),b("body").prepend(A,l.append(D,M)),B=X.height()+aa.height()+s.outerHeight(!0)-s.height(),C=Y.width()+Z.width()+s.outerWidth(!0)-s.width(),v=r.outerHeight(!0),
x=r.outerWidth(!0),l.css({"padding-bottom":B,"padding-right":C}).hide(),O.click(function(){h.next()}),P.click(function(){h.prev()}),W.click(function(){h.close()}),U=O.add(P).add(ba).add(J),A.click(function(){a.overlayClose&&h.close()}),b(m).bind("keydown."+i,function(b){var c=b.keyCode;w&&a.escKey&&27===c&&(b.preventDefault(),h.close());w&&a.arrowKey&&q[1]&&(37===c?(b.preventDefault(),P.click()):39===c&&(b.preventDefault(),O.click()))})):b(h.init))};h.remove=function(){l.add(A).remove();l=null;b("."+
z).removeData(t).removeClass(z)};h.position=function(b,c){function f(a){X[0].style.width=aa[0].style.width=s[0].style.width=a.style.width;N[0].style.height=N[1].style.height=s[0].style.height=Y[0].style.height=Z[0].style.height=a.style.height}var e=0,k=0,g=l.offset();j.unbind("resize."+i);l.css({top:-99999,left:-99999});a.fixed&&!L?l.css({position:"fixed"}):(e=j.scrollTop(),k=j.scrollLeft(),l.css({position:"absolute"}));!1!==a.right?k+=Math.max(j.width()-a.w-x-C-d(a.right,"x"),0):!1!==a.left?k+=d(a.left,
"x"):k+=Math.round(Math.max(j.width()-a.w-x-C,0)/2);!1!==a.bottom?e+=Math.max(j.height()-a.h-v-B-d(a.bottom,"y"),0):!1!==a.top?e+=d(a.top,"y"):e+=Math.round(Math.max(j.height()-a.h-v-B,0)/2);l.css({top:g.top,left:g.left});b=l.width()===a.w+x&&l.height()===a.h+v?0:b||0;D[0].style.width=D[0].style.height="9999px";l.dequeue().animate({width:a.w+x,height:a.h+v,top:e,left:k},{duration:b,complete:function(){f(this);K=!1;D[0].style.width=a.w+x+C+"px";D[0].style.height=a.h+v+B+"px";c&&c();setTimeout(function(){j.bind("resize."+
i,h.position)},1)},step:function(){f(this)}})};h.resize=function(b){w&&(b=b||{},b.width&&(a.w=d(b.width,"x")-x-C),b.innerWidth&&(a.w=d(b.innerWidth,"x")),r.css({width:a.w}),b.height&&(a.h=d(b.height,"y")-v-B),b.innerHeight&&(a.h=d(b.innerHeight,"y")),!b.innerHeight&&!b.height&&(r.css({height:"auto"}),a.h=r.height()),r.css({height:a.h}),h.position("none"===a.transition?0:a.speed))};h.prep=function(d){if(w){var g,m="none"===a.transition?0:a.speed;r.remove();r=c("div","LoadedContent").append(d);r.hide().appendTo(M.show()).css({width:(a.w=
a.w||r.width(),a.w=a.mw&&a.mw<a.w?a.mw:a.w,a.w),overflow:a.scrolling?"auto":"hidden"}).css({height:(a.h=a.h||r.height(),a.h=a.mh&&a.mh<a.h?a.mh:a.h,a.h)}).prependTo(s);M.hide();b(k).css({"float":"none"});L&&b("select").not(l.find("select")).filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one(Q,function(){this.style.visibility="inherit"});g=function(){function d(){G&&l[0].style.removeAttribute("filter")}var h,g;h=q.length;var j,p,s,v;if(w){p=function(){clearTimeout(ea);
N.hide();n(o,a.onComplete)};G&&k&&r.fadeIn(100);V.html(a.title).add(r).show();if(1<h){if("string"==typeof a.current&&ba.html(a.current.replace("{current}",u+1).replace("{total}",h)).show(),O[a.loop||u<h-1?"show":"hide"]().html(a.next),P[a.loop||u?"show":"hide"]().html(a.previous),a.slideshow&&J.show(),a.preloading)for(h=[f(-1),f(1)];g=q[h.pop()];)s=b.data(g,t).href||g.href,b.isFunction(s)&&(s=s.call(g)),e(s)&&(v=new Image,v.src=s)}else U.hide();a.iframe?(j=c("iframe")[0],"frameBorder"in j&&(j.frameBorder=
0),"allowTransparency"in j&&(j.allowTransparency="true"),j.name=i+ +new Date,a.fastIframe?p():b(j).one("load",p),j.src=a.href,a.scrolling||(j.scrolling="no"),b(j).addClass(i+"Iframe").appendTo(r).one(R,function(){j.src="//about:blank"})):p();"fade"===a.transition?l.fadeTo(m,1,d):d()}};"fade"===a.transition?l.fadeTo(m,0,function(){h.position(0,g)}):h.position(m,g)}};h.load=function(f){var g,j,l=h.prep;K=!0;k=!1;p=q[u];f||ca();n(R);n(F,a.onLoad);a.h=a.height?d(a.height,"y")-v-B:a.innerHeight&&d(a.innerHeight,
"y");a.w=a.width?d(a.width,"x")-x-C:a.innerWidth&&d(a.innerWidth,"x");a.mw=a.w;a.mh=a.h;a.maxWidth&&(a.mw=d(a.maxWidth,"x")-x-C,a.mw=a.w&&a.w<a.mw?a.w:a.mw);a.maxHeight&&(a.mh=d(a.maxHeight,"y")-v-B,a.mh=a.h&&a.h<a.mh?a.h:a.mh);g=a.href;ea=setTimeout(function(){N.show()},100);a.inline?(c("div").hide().insertBefore(b(g)[0]).one(R,function(){b(this).replaceWith(r.children())}),l(b(g))):a.iframe?l(" "):a.html?l(a.html):e(g)?(b(k=new Image).addClass(i+"Photo").error(function(){a.title=!1;l(c("div","Error").text("This image could not be loaded"))}).load(function(){var b;
k.onload=null;a.scalePhotos&&(j=function(){k.height-=k.height*b;k.width-=k.width*b},a.mw&&k.width>a.mw&&(b=(k.width-a.mw)/k.width,j()),a.mh&&k.height>a.mh&&(b=(k.height-a.mh)/k.height,j()));a.h&&(k.style.marginTop=Math.max(a.h-k.height,0)/2+"px");q[1]&&(u<q.length-1||a.loop)&&(k.style.cursor="pointer",k.onclick=function(){h.next()});G&&(k.style.msInterpolationMode="bicubic");setTimeout(function(){l(k)},1)}),setTimeout(function(){k.src=g},1)):g&&M.load(g,a.data,function(a,d,e){l("error"===d?c("div",
"Error").text("Request unsuccessful: "+e.statusText):b(this).contents())})};h.next=function(){!K&&q[1]&&(u<q.length-1||a.loop)&&(u=f(1),h.load())};h.prev=function(){!K&&q[1]&&(u||a.loop)&&(u=f(-1),h.load())};h.close=function(){w&&!S&&(S=!0,w=!1,n(Q,a.onCleanup),j.unbind("."+i+" ."+T),A.fadeTo(200,0),l.stop().fadeTo(300,0,function(){l.add(A).css({opacity:1,cursor:"auto"}).hide();n(R);r.remove();setTimeout(function(){S=!1;n(da,a.onClosed)},1)}))};h.element=function(){return b(p)};h.settings=H;b("."+
z,m).live("click",function(a){1<a.which||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),y(this))});h.init()})(jQuery,document,this);jQuery(document).ready(function(b){b(".tooltip").tipsy({fade:!0});b(".tooltip.north").tipsy({fade:!0,gravity:"s"});b(".tooltip.east").tipsy({fade:!0,gravity:"w"});b(".tooltip.west").tipsy({fade:!0,gravity:"e"})});

