/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 * Thanks to: Seamus Leahy for adding deltaX and deltaY
 *
 * Version: 3.0.4
 *
 * Requires: 1.2.2+
 */
(function(a){function c(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=true,g=0,h=0;b=a.event.fix(c);b.type="mousewheel";if(b.wheelDelta){e=b.wheelDelta/120}if(b.detail){e=-b.detail/3}h=e;if(c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS){h=0;g=-1*e}if(c.wheelDeltaY!==undefined){h=c.wheelDeltaY/120}if(c.wheelDeltaX!==undefined){g=-1*c.wheelDeltaX/120}d.unshift(b,e,g,h);return a.event.handle.apply(this,d)}var b=["DOMMouseScroll","mousewheel"];a.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var a=b.length;a;){this.addEventListener(b[--a],c,false)}}else{this.onmousewheel=c}},teardown:function(){if(this.removeEventListener){for(var a=b.length;a;){this.removeEventListener(b[--a],c,false)}}else{this.onmousewheel=null}}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);

/*!
 * jScrollPane - v2.0.0beta11 - 2011-07-04
 * http://jscrollpane.kelvinluck.com/
 *
 * Copyright (c) 2010 Kelvin Luck
 * Dual licensed under the MIT and GPL licenses.
 */
(function(a,b,c){a.fn.jScrollPane=function(b){function d(b,d){function bC(){var a=bo(),c=bn();b.removeClass("jspScrollable").unbind(".jsp");b.replaceWith(R.append(g.children()));R.scrollTop(a);R.scrollLeft(c)}function bB(){var a,b,c,d,e,g=false;j.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(f){var h=f.originalEvent.touches[0];a=bn();b=bo();c=h.pageX;d=h.pageY;e=false;g=true}).bind("touchmove.jsp",function(h){if(!g){return}var i=h.originalEvent.touches[0],j=v,k=s;f.scrollTo(a+c-i.pageX,b+d-i.pageY);e=e||Math.abs(c-i.pageX)>5||Math.abs(d-i.pageY)>5;return j==v&&k==s}).bind("touchend.jsp",function(a){g=false}).bind("click.jsp-touchclick",function(a){if(e){e=false;return false}})}function bA(){bz();a("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var a=this.href.split("#"),b;if(a.length>1){b=a[1];if(b.length>0&&g.find("#"+b).length>0){bm("#"+b,true);return false}}})}function bz(){a("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function by(){if(location.hash&&location.hash.length>1){var b,c,d=escape(location.hash);try{b=a(d)}catch(e){return}if(b.length&&g.find(d)){if(j.scrollTop()===0){c=setInterval(function(){if(j.scrollTop()>0){bm(d,true);a(document).scrollTop(j.position().top);clearInterval(c)}},50)}else{bm(d,true);a(document).scrollTop(j.position().top)}}}}function bx(){b.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function bw(){function k(){var a=v,b=s;switch(c){case 40:f.scrollByY(e.keyboardSpeed,false);break;case 38:f.scrollByY(-e.keyboardSpeed,false);break;case 34:case 32:f.scrollByY(i*e.scrollPagePercent,false);break;case 33:f.scrollByY(-i*e.scrollPagePercent,false);break;case 39:f.scrollByX(e.keyboardSpeed,false);break;case 37:f.scrollByX(-e.keyboardSpeed,false);break}d=a!=v||b!=s;return d}var c,d,h=[];p&&h.push(D[0]);o&&h.push(w[0]);g.focus(function(){b.focus()});b.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(b){if(b.target!==this&&!(h.length&&a(b.target).closest(h).length)){return}var e=v,f=s;switch(b.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:c=b.keyCode;k();break;case 35:bk(l-i);c=null;break;case 36:bk(0);c=null;break}d=b.keyCode==c&&e!=v||f!=s;return!d}).bind("keypress.jsp",function(a){if(a.keyCode==c){k()}return!d});if(e.hideFocus){b.css("outline","none");if("hideFocus"in j[0]){b.attr("hideFocus",true)}}else{b.css("outline","");if("hideFocus"in j[0]){b.attr("hideFocus",false)}}}function bv(){g.find(":input,a").unbind("focus.jsp")}function bu(){g.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(a){bm(a.target,false)})}function bt(){return false}function bs(){j.unbind(S)}function br(){j.unbind(S).bind(S,function(a,b,c,d){var g=v,h=s;f.scrollBy(c*e.mouseWheelSpeed,-d*e.mouseWheelSpeed,false);return g==v&&h==s})}function bq(){var a=k-h;return a>20&&a-bn()<10}function bp(){var a=l-i;return a>20&&a-bo()<10}function bo(){return-g.position().top}function bn(){return-g.position().left}function bm(b,c,d){var f,g,k,l=0,m=0,n,o,p,q,r,s;try{f=a(b)}catch(t){return}g=f.outerHeight();k=f.outerWidth();j.scrollTop(0);j.scrollLeft(0);while(!f.is(".jspPane")){l+=f.position().top;m+=f.position().left;f=f.offsetParent();if(/^body|html$/i.test(f[0].nodeName)){return}}n=bo();p=n+i;if(l<n||c){r=l-e.verticalGutter}else if(l+g>p){r=l-i+g+e.verticalGutter}if(r){bk(r,d)}o=bn();q=o+h;if(m<o||c){s=m-e.horizontalGutter}else if(m+k>q){s=m-h+k+e.horizontalGutter}if(s){bl(s,d)}}function bl(a,b){var c=a/(k-h);bg(c*u,b)}function bk(a,b){var c=a/(l-i);be(c*r,b)}function bj(a,b){if(e.showArrows){H[a?"addClass":"removeClass"]("jspDisabled");I[b?"addClass":"removeClass"]("jspDisabled")}}function bi(a,b){if(e.showArrows){B[a?"addClass":"removeClass"]("jspDisabled");C[b?"addClass":"removeClass"]("jspDisabled")}}function bh(a){if(a===c){a=t.position().left}j.scrollTop(0);v=a;var d=v===0,e=v==u,f=a/u,i=-f*(k-h);if(O!=d||Q!=e){O=d;Q=e;b.trigger("jsp-arrow-change",[N,P,O,Q])}bj(d,e);g.css("left",i);b.trigger("jsp-scroll-x",[-i,d,e]).trigger("scroll")}function bg(a,b){if(!p){return}if(a<0){a=0}else if(a>u){a=u}if(b===c){b=e.animateScroll}if(b){f.animate(t,"left",a,bh)}else{t.css("left",a);bh(a)}}function bf(a){if(a===c){a=q.position().top}j.scrollTop(0);s=a;var d=s===0,e=s==r,f=a/r,h=-f*(l-i);if(N!=d||P!=e){N=d;P=e;b.trigger("jsp-arrow-change",[N,P,O,Q])}bi(d,e);g.css("top",h);b.trigger("jsp-scroll-y",[-h,d,e]).trigger("scroll")}function be(a,b){if(!o){return}if(a<0){a=0}else if(a>r){a=r}if(b===c){b=e.animateScroll}if(b){f.animate(q,"top",a,bf)}else{q.css("top",a);bf(a)}}function bd(){a("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(q){q.removeClass("jspActive")}if(t){t.removeClass("jspActive")}}function bc(){if(E){E.unbind("mousedown.jsp")}if(x){x.unbind("mousedown.jsp")}}function bb(){bc();if(o){x.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d=a(this),g=d.offset(),h=b.pageY-g.top-s,j,k=true,m=function(){var a=d.offset(),c=b.pageY-a.top-A/2,g=i*e.scrollPagePercent,o=r*g/(l-i);if(h<0){if(s-o>c){f.scrollByY(-g)}else{be(c)}}else if(h>0){if(s+o<c){f.scrollByY(g)}else{be(c)}}else{n();return}j=setTimeout(m,k?e.initialDelay:e.trackClickRepeatFreq);k=false},n=function(){j&&clearTimeout(j);j=null;a(document).unbind("mouseup.jsp",n)};m();a(document).bind("mouseup.jsp",n);return false}})}if(p){E.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d=a(this),g=d.offset(),i=b.pageX-g.left-v,j,l=true,m=function(){var a=d.offset(),c=b.pageX-a.left-G/2,g=h*e.scrollPagePercent,o=u*g/(k-h);if(i<0){if(v-o>c){f.scrollByX(-g)}else{bg(c)}}else if(i>0){if(v+o<c){f.scrollByX(g)}else{bg(c)}}else{n();return}j=setTimeout(m,l?e.initialDelay:e.trackClickRepeatFreq);l=false},n=function(){j&&clearTimeout(j);j=null;a(document).unbind("mouseup.jsp",n)};m();a(document).bind("mouseup.jsp",n);return false}})}}function ba(b,c,d,g){d=a(d).addClass("jspActive");var h,i,j=true,k=function(){if(b!==0){f.scrollByX(b*e.arrowButtonSpeed)}if(c!==0){f.scrollByY(c*e.arrowButtonSpeed)}i=setTimeout(k,j?e.initialDelay:e.arrowRepeatFreq);j=false};k();h=g?"mouseout.jsp":"mouseup.jsp";g=g||a("html");g.bind(h,function(){d.removeClass("jspActive");i&&clearTimeout(i);i=null;g.unbind(h)})}function _(a,b,c){return function(){ba(a,b,this,c);this.blur();return false}}function Z(a,b,c,d){var e="before",f="after",g;if(b=="os"){b=/Mac/.test(navigator.platform)?"after":"split"}if(b==e){f=b}else if(b==f){e=b;g=c;c=d;d=g}a[e](c)[f](d)}function Y(){if(p&&o){var b=E.outerHeight(),c=x.outerWidth();z-=b;a(D).find(">.jspCap:visible,>.jspArrow").each(function(){F+=a(this).outerWidth()});F-=c;i-=c;h-=b;E.parent().append(a('<div class="jspCorner" />').css("width",b+"px"));V();X()}if(p){g.width(j.outerWidth()-L+"px")}l=g.outerHeight();n=l/i;if(p){G=Math.ceil(1/m*F);if(G>e.horizontalDragMaxWidth){G=e.horizontalDragMaxWidth}else if(G<e.horizontalDragMinWidth){G=e.horizontalDragMinWidth}t.width(G+"px");u=F-G;bh(v)}if(o){A=Math.ceil(1/n*z);if(A>e.verticalDragMaxHeight){A=e.verticalDragMaxHeight}else if(A<e.verticalDragMinHeight){A=e.verticalDragMinHeight}q.height(A+"px");r=z-A;bf(s)}}function X(){j.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){F-=a(this).outerWidth()});E.width(F+"px");v=0}function W(){if(p){j.append(a('<div class="jspHorizontalBar" />').append(a('<div class="jspCap jspCapLeft" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragLeft" />'),a('<div class="jspDragRight" />'))),a('<div class="jspCap jspCapRight" />')));D=j.find(">.jspHorizontalBar");E=D.find(">.jspTrack");t=E.find(">.jspDrag");if(e.showArrows){H=a('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",_(-1,0)).bind("click.jsp",bt);I=a('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",_(1,0)).bind("click.jsp",bt);if(e.arrowScrollOnHover){H.bind("mouseover.jsp",_(-1,0,H));I.bind("mouseover.jsp",_(1,0,I))}Z(E,e.horizontalArrowPositions,H,I)}t.hover(function(){t.addClass("jspHover")},function(){t.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",bt);t.addClass("jspActive");var c=b.pageX-t.position().left;a("html").bind("mousemove.jsp",function(a){bg(a.pageX-c,false)}).bind("mouseup.jsp mouseleave.jsp",bd);return false});F=j.innerWidth();X()}}function V(){x.height(z+"px");s=0;y=e.verticalGutter+x.outerWidth();g.width(h-y-L);try{if(w.position().left===0){g.css("margin-left",y+"px")}}catch(a){}}function U(){if(o){j.append(a('<div class="jspVerticalBar" />').append(a('<div class="jspCap jspCapTop" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragTop" />'),a('<div class="jspDragBottom" />'))),a('<div class="jspCap jspCapBottom" />')));w=j.find(">.jspVerticalBar");x=w.find(">.jspTrack");q=x.find(">.jspDrag");if(e.showArrows){B=a('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",_(0,-1)).bind("click.jsp",bt);C=a('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",_(0,1)).bind("click.jsp",bt);if(e.arrowScrollOnHover){B.bind("mouseover.jsp",_(0,-1,B));C.bind("mouseover.jsp",_(0,1,C))}Z(x,e.verticalArrowPositions,B,C)}z=i;j.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){z-=a(this).outerHeight()});q.hover(function(){q.addClass("jspHover")},function(){q.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",bt);q.addClass("jspActive");var c=b.pageY-q.position().top;a("html").bind("mousemove.jsp",function(a){be(a.pageY-c,false)}).bind("mouseup.jsp mouseleave.jsp",bd);return false});V()}}function T(d){var f,q,r,t,u,w,x=false,y=false;e=d;if(g===c){u=b.scrollTop();w=b.scrollLeft();b.css({overflow:"hidden",padding:0});h=b.innerWidth()+L;i=b.innerHeight();b.width(h);g=a('<div class="jspPane" />').css("padding",K).append(b.children());j=a('<div class="jspContainer" />').css({width:h+"px",height:i+"px"}).append(g).appendTo(b)}else{b.css("width","");x=e.stickToBottom&&bp();y=e.stickToRight&&bq();t=b.innerWidth()+L!=h||b.outerHeight()!=i;if(t){h=b.innerWidth()+L;i=b.innerHeight();j.css({width:h+"px",height:i+"px"})}if(!t&&M==k&&g.outerHeight()==l){b.width(h);return}M=k;g.css("width","");b.width(h);j.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}g.css("overflow","auto");if(d.contentWidth){k=d.contentWidth}else{k=g[0].scrollWidth}l=g[0].scrollHeight;g.css("overflow","");m=k/h;n=l/i;o=n>1;p=m>1;if(!(p||o)){b.removeClass("jspScrollable");g.css({top:0,width:j.width()-L});bs();bv();bx();bc();bz()}else{b.addClass("jspScrollable");f=e.maintainPosition&&(s||v);if(f){q=bn();r=bo()}U();W();Y();if(f){bl(y?k-h:q,false);bk(x?l-i:r,false)}bu();br();bB();if(e.enableKeyboardNavigation){bw()}if(e.clickOnTrack){bb()}by();if(e.hijackInternalLinks){bA()}}if(e.autoReinitialise&&!J){J=setInterval(function(){T(e)},e.autoReinitialiseDelay)}else if(!e.autoReinitialise&&J){clearInterval(J)}u&&b.scrollTop(0)&&bk(u,false);w&&b.scrollLeft(0)&&bl(w,false);b.trigger("jsp-initialised",[p||o])}var e,f=this,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N=true,O=true,P=false,Q=false,R=b.clone(false,false).empty(),S=a.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";K=b.css("paddingTop")+" "+b.css("paddingRight")+" "+b.css("paddingBottom")+" "+b.css("paddingLeft");L=(parseInt(b.css("paddingLeft"),10)||0)+(parseInt(b.css("paddingRight"),10)||0);a.extend(f,{reinitialise:function(b){b=a.extend({},e,b);T(b)},scrollToElement:function(a,b,c){bm(a,b,c)},scrollTo:function(a,b,c){bl(a,c);bk(b,c)},scrollToX:function(a,b){bl(a,b)},scrollToY:function(a,b){bk(a,b)},scrollToPercentX:function(a,b){bl(a*(k-h),b)},scrollToPercentY:function(a,b){bk(a*(l-i),b)},scrollBy:function(a,b,c){f.scrollByX(a,c);f.scrollByY(b,c)},scrollByX:function(a,b){var c=bn()+Math[a<0?"floor":"ceil"](a),d=c/(k-h);bg(d*u,b)},scrollByY:function(a,b){var c=bo()+Math[a<0?"floor":"ceil"](a),d=c/(l-i);be(d*r,b)},positionDragX:function(a,b){bg(a,b)},positionDragY:function(a,b){be(a,b)},animate:function(a,b,c,d){var f={};f[b]=c;a.animate(f,{duration:e.animateDuration,easing:e.animateEase,queue:false,step:d})},getContentPositionX:function(){return bn()},getContentPositionY:function(){return bo()},getContentWidth:function(){return k},getContentHeight:function(){return l},getPercentScrolledX:function(){return bn()/(k-h)},getPercentScrolledY:function(){return bo()/(l-i)},getIsScrollableH:function(){return p},getIsScrollableV:function(){return o},getContentPane:function(){return g},scrollToBottom:function(a){be(r,a)},hijackInternalLinks:function(){bA()},destroy:function(){bC()}});T(d)}b=a.extend({},a.fn.jScrollPane.defaults,b);a.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){b[this]=b[this]||b.speed});return this.each(function(){var c=a(this),e=c.data("jsp");if(e){e.reinitialise(b)}else{e=new d(c,b);c.data("jsp",e)}})};a.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:true,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}})(jQuery,this);

//jquery.contentcarousel.js
(function(a){var b={navigate:function(b,c,d,e,f){var g=e.scroll,h=1,i=0;if(f.expanded){g=1;h=3;i=f.idxClicked}if(b===1){d.find("div.burger_item:lt("+g+")").each(function(b){a(this).clone(true).css("left",(f.totalItems-i+b)*f.itemW*h+"px").appendTo(d)})}else{var j=d.children().eq(0);d.find("div.burger_item:gt("+(f.totalItems-1-g)+")").each(function(b){a(this).clone(true).css("left",-(g-b+i)*f.itemW*h+"px").insertBefore(j)})}d.find("div.burger_item").each(function(c){var d=a(this);d.stop().animate({left:b===1?"-="+f.itemW*h*g+"px":"+="+f.itemW*h*g+"px"},e.sliderSpeed,e.sliderEasing,function(){if(b===1&&d.position().left<-i*f.itemW*h||b===-1&&d.position().left>(f.totalItems-1-i)*f.itemW*h){d.remove()}f.isAnimating=false})})},openItem:function(a,c,d,e){e.idxClicked=c.index();e.winpos=b.getWinPos(c.position().left,e);a.find("div.burger_item").not(c).hide();c.find("div.burger_list").css("left",e.itemW+"px").stop().animate({width:e.itemW*2+"px",left:e.itemW+"px"},d.itemSpeed,d.itemEasing).end().stop().animate({left:"0px"},d.itemSpeed,d.itemEasing,function(){e.isAnimating=false;e.expanded=true;b.openItems(a,c,d,e)})},openItems:function(c,d,e,f){var g=d.index();c.find("div.burger_item").each(function(c){var d=a(this),e=d.index();if(e!==g){d.css("left",-(g-e)*f.itemW*3+"px").show().find("div.burger_list").css({left:f.itemW+"px",width:f.itemW*2+"px"});b.toggleMore(d,false)}})},toggleMore:function(a,b){b?a.find("a.ca-more").show():a.find("a.ca-more").hide()},closeItems:function(c,d,e,f){var g=d.index();d.find("div.burger_list").stop().animate({width:"0px"},e.itemSpeed,e.itemEasing).end().stop().animate({left:f.itemW*(f.winpos-1)+"px"},e.itemSpeed,e.itemEasing,function(){f.isAnimating=false;f.expanded=false});b.toggleMore(d,true);c.find("div.burger_item").each(function(c){var d=a(this),e=d.index();if(e!==g){d.find("div.burger_list").css({width:"0px"}).end().css("left",(f.winpos-1-(g-e))*f.itemW+"px").show();b.toggleMore(d,true)}})},getWinPos:function(a,b){switch(a){case 0:return 1;break;case b.itemW:return 2;break;case b.itemW*2:return 3;break}}},c={init:function(c){if(this.length){var d={sliderSpeed:500,sliderEasing:"easeOutExpo",itemSpeed:500,itemEasing:"easeOutExpo",scroll:6};return this.each(function(){if(c){a.extend(d,c)}var e=a(this),f=e.find("div.burger_list"),g=f.children("div.burger_item"),h={};h.itemW=g.width();h.totalItems=g.length;if(h.totalItems>3)e.prepend('<div class="burger_nav"><span class="burger_nav-prev">Previous</span><span class="burger_nav-next">Next</span></div>');var i=e.find("span.burger_nav-prev"),j=e.find("span.burger_nav-next");f.css("overflow","hidden");g.each(function(b){a(this).css({position:"absolute",left:b*h.itemW+"px"})});e.find("a.ca-more").live("click.contentcarousel",function(c){if(h.isAnimating)return false;h.isAnimating=true;a(this).hide();var e=a(this).closest("div.burger_item");b.openItem(f,e,d,h);return false});e.find("a.ca-close").live("click.contentcarousel",function(c){if(h.isAnimating)return false;h.isAnimating=true;var e=a(this).closest("div.burger_item");b.closeItems(f,e,d,h);return false});i.bind("click.contentcarousel",function(a){if(h.isAnimating)return false;h.isAnimating=true;b.navigate(-1,e,f,d,h)});j.bind("click.contentcarousel",function(a){if(h.isAnimating)return false;h.isAnimating=true;b.navigate(1,e,f,d,h)});e.bind("mousewheel.contentcarousel",function(a,c){if(c>0){if(h.isAnimating)return false;h.isAnimating=true;b.navigate(-1,e,f,d,h)}else{if(h.isAnimating)return false;h.isAnimating=true;b.navigate(1,e,f,d,h)}return false})})}}};a.fn.contentcarousel=function(b){if(c[b]){return c[b].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof b==="object"||!b){return c.init.apply(this,arguments)}else{a.error("Method "+b+" does not exist on jQuery.contentcarousel")}}})(jQuery);

/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
*  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
*  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
*  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
*  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;if(!g)g=e*.3*1.5;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);if(b<1)return-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;if((b/=e/2)<1)return d/2*b*b*(((f*=1.525)+1)*b-f)+c;return d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){if((b/=e)<1/2.75){return d*7.5625*b*b+c}else if(b<2/2.75){return d*(7.5625*(b-=1.5/2.75)*b+.75)+c}else if(b<2.5/2.75){return d*(7.5625*(b-=2.25/2.75)*b+.9375)+c}else{return d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}},easeInOutBounce:function(a,b,c,d,e){if(b<e/2)return jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c;return jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}});

/*
 * FancyBox - jQuery Plugin
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 *
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 *
 * Version: 1.3.4 (11/11/2010)
 * Requires: jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);


/*
 GNU Affero General Public License version 3 {@link http://www.gnu.org/licenses/agpl-3.0.html}
*/
(function(b){if(b.ScrollTo)window.console.warn("$.ScrollTo has already been defined...");else{b.ScrollTo={config:{duration:400,easing:"swing",callback:undefined,durationMode:"each"},configure:function(c){b.extend(b.ScrollTo.config,c||{});return this},scroll:function(c,d){var f=b.ScrollTo,a=c.pop(),e=a.$container,g=a.$target;a=b("<span/>").css({position:"absolute",top:"0px",left:"0px"});var h=e.css("position");e.css("position","relative");a.appendTo(e);var i=a.offset().top;g=g.offset().top-i;a.remove();
e.css("position",h);e.animate({scrollTop:g+"px"},d.duration,d.easing,function(j){if(c.length===0)typeof d.callback==="function"&&d.callback.apply(this,[j]);else f.scroll(c,d);return true});return true},fn:function(c){var d=b.ScrollTo,f=b(this);if(f.length===0)return this;var a=f.parent(),e=[];for(config=b.extend({},d.config,c);a.length===1&&!a.is("body")&&a.get(0)!==document;){c=a.get(0);if(a.css("overflow-y")!=="visible"&&c.scrollHeight!==c.clientHeight){e.push({$container:a,$target:f});f=a}a=a.parent()}e.push({$container:b(b.browser.msie?
"html":"body"),$target:f});if(config.durationMode==="all")config.duration/=e.length;d.scroll(e,config);return this},construct:function(c){var d=b.ScrollTo;b.fn.ScrollTo=d.fn;d.config=b.extend(d.config,c);return this}};b.ScrollTo.construct()}})(jQuery);


/* QTIP */
(function(d,H,L){function O(){O.history=O.history||[];O.history.push(arguments);if("object"===typeof console){var d=console[console.warn?"warn":"log"],a=Array.prototype.slice.call(arguments);typeof arguments[0]==="string"&&(a[0]="qTip2: "+a[0]);d.apply?d.apply(console,a):d(a)}}function R(c){var a;if(!c||"object"!==typeof c)return i;if("object"!==typeof c.metadata)c.metadata={type:c.metadata};if("content"in c){if("object"!==typeof c.content||c.content.jquery)c.content={text:c.content};a=c.content.text||
i;if(!d.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"===typeof a&&!a.jquery))c.content.text=i;if("title"in c.content){if("object"!==typeof c.content.title)c.content.title={text:c.content.title};a=c.content.title.text||i;if(!d.isFunction(a)&&(!a&&!a.attr||a.length<1||"object"===typeof a&&!a.jquery))c.content.title.text=i}}if("position"in c&&"object"!==typeof c.position)c.position={my:c.position,at:c.position};if("show"in c&&"object"!==typeof c.show)c.show=c.show.jquery?{target:c.show}:{event:c.show};
if("hide"in c&&"object"!==typeof c.hide)c.hide=c.hide.jquery?{target:c.hide}:{event:c.hide};if("style"in c&&"object"!==typeof c.style)c.style={classes:c.style};d.each(u,function(){this.sanitize&&this.sanitize(c)});return c}function Y(c,a,f,h){function y(b){for(var d=0,e,c=a,b=b.split(".");c=c[b[d++]];)d<b.length&&(e=c);return[e||a,b.pop()]}function j(){var b=a.style.widget;g.toggleClass(U,b).toggleClass(W,!b);r.content.toggleClass(U+"-content",b);r.titlebar&&r.titlebar.toggleClass(U+"-header",b);
r.button&&r.button.toggleClass(C+"-icon",!b)}function E(b){if(r.title)r.titlebar.remove(),r.titlebar=r.title=r.button=l,b!==i&&e.reposition()}function k(){var b=a.content.title.button,c=typeof b==="string"?b:"Close tooltip";r.button&&r.button.remove();r.button=b.jquery?b:d("<a />",{"class":"ui-state-default "+(a.style.widget?"":C+"-icon"),title:c,"aria-label":c}).prepend(d("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));r.button.appendTo(r.titlebar).attr("role","button").click(function(b){g.hasClass(J)||
e.hide(b);return i});e.redraw()}function s(){var b=P+"-title";r.titlebar&&E();r.titlebar=d("<div />",{"class":C+"-titlebar "+(a.style.widget?"ui-widget-header":"")}).append(r.title=d("<div />",{id:b,"class":C+"-title","aria-atomic":v})).insertBefore(r.content).delegate(".ui-state-default","mousedown keydown mouseup keyup mouseout",function(b){d(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}).delegate(".ui-state-default","mouseover mouseout",function(b){d(this).toggleClass("ui-state-hover",
b.type==="mouseover")});a.content.title.button?k():e.rendered&&e.redraw()}function q(b,a){var w=r.title;if(!e.rendered||!b)return i;d.isFunction(b)&&(b=b.call(c,z.event,e));if(b===i)return E(i);else b.jquery&&b.length>0?w.empty().append(b.css({display:"block"})):w.html(b);e.redraw();a!==i&&e.rendered&&g.is(":visible")&&e.reposition(z.event)}function m(b,a){function w(b){function c(g){g&&(delete w[g.src],clearTimeout(e.timers.img[g.src]),d(g).unbind(n));d.isEmptyObject(w)&&(e.redraw(),a!==i&&e.reposition(z.event),
b())}var g,w={};if((g=x.find("img:not([height]):not([width])")).length===0)return c();g.each(function(b,a){if(w[a.src]===L){var g=0;(function Z(){if(a.height||a.width||g>3)return c(a);g+=1;e.timers.img[a.src]=setTimeout(Z,700)})();d(a).bind("error"+n+" load"+n,function(){c(this)});w[a.src]=a}})}var x=r.content;if(!e.rendered||!b)return i;d.isFunction(b)&&(b=b.call(c,z.event,e)||"");b.jquery&&b.length>0?x.empty().append(b.css({display:"block"})):x.html(b);e.rendered<0?g.queue("fx",w):(t=0,w(d.noop));
return e}function D(){var b,I,w,p,G;function h(d){if(g.hasClass(J))return i;b.trigger("qtip-"+f+"-inactive");clearTimeout(e.timers.show);clearTimeout(e.timers.hide);var c=function(){e.toggle(v,d)};a.show.delay>0?e.timers.show=setTimeout(c,a.show.delay):c()}function k(c){if(g.hasClass(J)||x||t)return i;var w=d(c.relatedTarget||c.target),I=w.closest(Q)[0]===g[0],w=w[0]===b[0];clearTimeout(e.timers.show);clearTimeout(e.timers.hide);if(q.target==="mouse"&&I||a.hide.fixed&&/mouse(out|leave|move)/.test(c.type)&&
(I||w))try{c.preventDefault(),c.stopImmediatePropagation()}catch(p){}else a.hide.delay>0?e.timers.hide=setTimeout(function(){e.hide(c)},a.hide.delay):e.hide(c)}function j(b){if(g.hasClass(J))return i;clearTimeout(e.timers.inactive);e.timers.inactive=setTimeout(function(){e.hide(b)},a.hide.inactive)}function s(b){g.is(":visible")&&e.reposition(b)}var q=a.position;b=a.show.target;I=a.hide.target;w=d(q.viewport);p=d(document);G=d(H);var m=d.trim(""+a.show.event).split(" "),u=d.trim(""+a.hide.event).split(" "),
y=d.browser.msie&&parseInt(d.browser.version,10)===6;g.bind("mouseenter"+n+" mouseleave"+n,function(b){var a=b.type==="mouseenter";a&&e.focus(b);g.toggleClass($,a)});a.hide.fixed&&(I=I.add(g),g.bind("mouseover"+n,function(){g.hasClass(J)||clearTimeout(e.timers.hide)}));/mouse(out|leave)/i.test(a.hide.event)?a.hide.leave==="window"&&G.bind("mouseout"+n,function(b){/select|option/.test(b.target)&&!b.relatedTarget&&e.hide(b)}):/mouse(over|enter)/i.test(a.show.event)&&I.bind("mouseleave"+n,function(){clearTimeout(e.timers.show)});
(""+a.hide.event).indexOf("unfocus")>-1&&p.bind("mousedown"+n,function(b){var a=d(b.target);!g.hasClass(J)&&g.is(":visible");a[0]!==g[0]&&a.parents(Q).length===0&&a.add(c).length>1&&!a.is(":disabled")&&e.hide(b)});"number"===typeof a.hide.inactive&&(b.bind("qtip-"+f+"-inactive",j),d.each(F.inactiveEvents,function(b,a){I.add(r.tooltip).bind(a+n+"-inactive",j)}));d.each(u,function(a,c){var e=d.inArray(c,m),w=d(I);e>-1&&w.add(b).length===w.length||c==="unfocus"?(b.bind(c+n,function(b){g.is(":visible")?
k(b):h(b)}),delete m[e]):I.bind(c+n,k)});d.each(m,function(a,c){b.bind(c+n,h)});"number"===typeof a.hide.distance&&b.add(g).bind("mousemove"+n,function(b){var c=z.origin||{},d=a.hide.distance,g=Math.abs;(g(b.pageX-c.pageX)>=d||g(b.pageY-c.pageY)>=d)&&e.hide(b)});q.target==="mouse"&&(b.bind("mousemove"+n,function(b){K={pageX:b.pageX,pageY:b.pageY,type:"mousemove"}}),q.adjust.mouse&&(a.hide.event&&g.bind("mouseleave"+n,function(a){(a.relatedTarget||a.target)!==b[0]&&e.hide(a)}),p.bind("mousemove"+n,
function(b){!g.hasClass(J)&&g.is(":visible")&&e.reposition(b||K)})));if(q.adjust.resize||w.length)(d.event.special.resize?w:G).bind("resize"+n,s);(w.length||y&&g.css("position")==="fixed")&&w.bind("scroll"+n,s)}function X(){var b=[a.show.target[0],a.hide.target[0],e.rendered&&r.tooltip[0],a.position.container[0],a.position.viewport[0],H,document];e.rendered?d([]).pushStack(d.grep(b,function(b){return typeof b==="object"})).unbind(n):a.show.target.unbind(n+"-create")}var e=this,B=document.body,P=C+
"-"+f,x=0,t=0,g=d(),n=".qtip-"+f,r,z;e.id=f;e.rendered=i;e.elements=r={target:c};e.timers={img:{}};e.options=a;e.checks={};e.plugins={};e.cache=z={event:{},target:d(),disabled:i,attr:h};e.checks.builtin={"^id$":function(b,a,c){b=c===v?F.nextid:c;a=C+"-"+b;if(b!==i&&b.length>0&&!d("#"+a).length)g[0].id=a,r.content[0].id=a+"-content",r.title[0].id=a+"-title"},"^content.text$":function(b,a,c){m(c)},"^content.title.text$":function(b,a,c){if(!c)return E();!r.title&&c&&s();q(c)},"^content.title.button$":function(b,
a,c){b=r.button;a=r.title;e.rendered&&(c?(a||s(),k()):b.remove())},"^position.(my|at)$":function(b,a,c){"string"===typeof c&&(b[a]=new u.Corner(c))},"^position.container$":function(b,a,c){e.rendered&&g.appendTo(c)},"^show.ready$":function(){e.rendered?e.toggle(v):e.render(1)},"^style.classes$":function(b,a,c){g.attr("class",C+" qtip ui-helper-reset "+c)},"^style.widget|content.title":j,"^events.(render|show|move|hide|focus|blur)$":function(b,a,c){g[(d.isFunction(c)?"":"un")+"bind"]("tooltip"+a,c)},
"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var b=a.position;g.attr("tracking",b.target==="mouse"&&b.adjust.mouse);X();D()}};d.extend(e,{render:function(b){if(e.rendered)return e;var f=a.content.text,w=a.content.title.text,p=a.position,G=d.Event("tooltiprender");d.attr(c[0],"aria-describedby",P);g=r.tooltip=d("<div/>",{id:P,"class":C+" qtip ui-helper-reset "+W+" "+a.style.classes+" "+C+"-pos-"+a.position.my.abbreviation(),width:a.style.width||"",
height:a.style.height||"",tracking:p.target==="mouse"&&p.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":i,"aria-describedby":P+"-content","aria-hidden":v}).toggleClass(J,z.disabled).data("qtip",e).appendTo(a.position.container).append(r.content=d("<div />",{"class":C+"-content",id:P+"-content","aria-atomic":v}));e.rendered=-1;x=t=1;w&&(s(),d.isFunction(w)||q(w,i));d.isFunction(f)||m(f,i);e.rendered=v;j();d.each(a.events,function(b,a){d.isFunction(a)&&g.bind(b==="toggle"?"tooltipshow tooltiphide":
"tooltip"+b,a)});d.each(u,function(){this.initialize==="render"&&this(e)});D();g.queue("fx",function(c){G.originalEvent=z.event;g.trigger(G,[e]);x=t=0;e.redraw();(a.show.ready||b)&&e.toggle(v,z.event);c()});return e},get:function(b){switch(b.toLowerCase()){case "dimensions":b={height:g.outerHeight(),width:g.outerWidth()};break;case "offset":b=u.offset(g,a.position.container);break;default:b=y(b.toLowerCase()),b=b[0][b[1]],b=b.precedance?b.string():b}return b},set:function(b,c){var w=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,
p=/^content\.(title|attr)|style/i,f=i,n=i,h=e.checks,r;"string"===typeof b?(r=b,b={},b[r]=c):b=d.extend(v,{},b);d.each(b,function(a,c){var g=y(a.toLowerCase()),e;e=g[0][g[1]];g[0][g[1]]="object"===typeof c&&c.nodeType?d(c):c;b[a]=[g[0],g[1],c,e];f=w.test(a)||f;n=p.test(a)||n});R(a);x=t=1;d.each(b,function(b,a){var c,d,g;for(c in h)for(d in h[c])if(g=RegExp(d,"i").exec(b))a.push(g),h[c][d].apply(e,a)});x=t=0;g.is(":visible")&&e.rendered&&(f&&e.reposition(a.position.target==="mouse"?l:z.event),n&&e.redraw());
return e},toggle:function(b,c){function x(){b?(d.browser.msie&&g[0].style.removeAttribute("filter"),g.css("overflow",""),"string"===typeof n.autofocus&&d(n.autofocus,g).focus(),j=d.Event("tooltipvisible"),j.originalEvent=c?z.event:l,g.trigger(j,[e])):g.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!e.rendered)if(b)e.render(1);else return e;var p=b?"show":"hide",n=a[p],h=g.is(":visible"),t=!c||a[p].target.length<2||z.target[0]===c.target,r=a.position,k=a.content,j;(typeof b).search("boolean|number")&&
(b=!h);if(!g.is(":animated")&&h===b&&t)return e;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(z.event.type)&&c.target===a.show.target[0]&&g.has(c.relatedTarget).length)return e;z.event=d.extend({},c)}j=d.Event("tooltip"+p);j.originalEvent=c?z.event:l;g.trigger(j,[e,90]);if(j.isDefaultPrevented())return e;d.attr(g[0],"aria-hidden",!b);b?(z.origin=d.extend({},K),e.focus(c),d.isFunction(k.text)&&m(k.text,i),d.isFunction(k.title.text)&&q(k.title.text,i),!S&&r.target==="mouse"&&r.adjust.mouse&&
(d(document).bind("mousemove.qtip",function(b){K={pageX:b.pageX,pageY:b.pageY,type:"mousemove"}}),S=v),e.reposition(c),(j.solo=!!n.solo)&&d(Q,n.solo).not(g).qtip("hide",j)):(clearTimeout(e.timers.show),delete z.origin,S&&!d(Q+'[tracking="true"]:visible',n.solo).not(g).length&&(d(document).unbind("mousemove.qtip"),S=i),e.blur(c));t&&g.stop(0,1);n.effect===i?(g[p](),x.call(g)):d.isFunction(n.effect)?(n.effect.call(g,e),g.queue("fx",function(b){x();b()})):g.fadeTo(90,b?1:0,x);b&&n.target.trigger("qtip-"+
f+"-inactive");return e},show:function(b){return e.toggle(v,b)},hide:function(b){return e.toggle(i,b)},focus:function(b){if(!e.rendered)return e;var a=d(Q),c=parseInt(g[0].style.zIndex,10),x=F.zindex+a.length,b=d.extend({},b),f;if(!g.hasClass(T)&&(f=d.Event("tooltipfocus"),f.originalEvent=b,g.trigger(f,[e,x]),!f.isDefaultPrevented()))c!==x&&(a.each(function(){this.style.zIndex>c&&(this.style.zIndex-=1)}),a.filter("."+T).qtip("blur",b)),g.addClass(T)[0].style.zIndex=x;return e},blur:function(b){var b=
d.extend({},b),a;g.removeClass(T);a=d.Event("tooltipblur");a.originalEvent=b;g.trigger(a,[e]);return e},reposition:function(b,c){if(!e.rendered||x)return e;x=1;var f=a.position.target,n=a.position,h=n.my,t=n.at,r=n.adjust,j=r.method.split(" "),k=g.outerWidth(),q=g.outerHeight(),s=0,m=0,v=d.Event("tooltipmove"),y=g.css("position")==="fixed",A=n.viewport,o={left:0,top:0},E=i,l=e.plugins.tip,D={horizontal:j[0],vertical:j[1]=j[1]||j[0],enabled:A.jquery&&f[0]!==H&&f[0]!==B&&r.method!=="none",left:function(b){var a=
D.horizontal==="shift",c=A.offset.left+A.scrollLeft,d=h.x==="left"?k:h.x==="right"?-k:-k/2,g=t.x==="left"?s:t.x==="right"?-s:-s/2,e=l&&l.size?l.size.width||0:0,f=l&&l.corner&&l.corner.precedance==="x"&&!a?e:0,x=c-b+f,n=b+k-A.width-c+f,g=d-(h.precedance==="x"||h.x===h.y?g:0),f=h.x==="center";if(a)f=l&&l.corner&&l.corner.precedance==="y"?e:0,g=(h.x==="left"?1:-1)*d-f,o.left+=x>0?x:n>0?-n:0,o.left=Math.max(A.offset.left+(f&&l.corner.x==="center"?l.offset:0),b-g,Math.min(Math.max(A.offset.left+A.width,
b+g),o.left));else{if(x>0&&(h.x!=="left"||n>0))o.left-=g;else if(n>0&&(h.x!=="right"||x>0))o.left-=f?-g:g;o.left!==b&&f&&(o.left-=r.x);if(o.left<c&&-o.left>n)o.left=b}return o.left-b},top:function(b){var a=D.vertical==="shift",c=A.offset.top+A.scrollTop,d=h.y==="top"?q:h.y==="bottom"?-q:-q/2,g=t.y==="top"?m:t.y==="bottom"?-m:-m/2,e=l&&l.size?l.size.height||0:0,f=l&&l.corner&&l.corner.precedance==="y"&&!a?e:0,x=c-b+f,c=b+q-A.height-c+f,g=d-(h.precedance==="y"||h.x===h.y?g:0),f=h.y==="center";if(a)f=
l&&l.corner&&l.corner.precedance==="x"?e:0,g=(h.y==="top"?1:-1)*d-f,o.top+=x>0?x:c>0?-c:0,o.top=Math.max(A.offset.top+(f&&l.corner.x==="center"?l.offset:0),b-g,Math.min(Math.max(A.offset.top+A.height,b+g),o.top));else{if(x>0&&(h.y!=="top"||c>0))o.top-=g;else if(c>0&&(h.y!=="bottom"||x>0))o.top-=f?-g:g;o.top!==b&&f&&(o.top-=r.y);if(o.top<0&&-o.top>c)o.top=b}return o.top-b}};if(d.isArray(f)&&f.length===2)t={x:"left",y:"top"},o={left:f[0],top:f[1]};else if(f==="mouse"&&(b&&b.pageX||z.event.pageX))t=
{x:"left",y:"top"},b=(b&&(b.type==="resize"||b.type==="scroll")?z.event:b&&b.pageX&&b.type==="mousemove"?b:K&&K.pageX&&(r.mouse||!b||!b.pageX)?{pageX:K.pageX,pageY:K.pageY}:!r.mouse&&z.origin&&z.origin.pageX?z.origin:b)||b||z.event||K||{},o={top:b.pageY,left:b.pageX};else{f==="event"?f=b&&b.target&&b.type!=="scroll"&&b.type!=="resize"?z.target=d(b.target):z.target:z.target=d(f);f=d(f).eq(0);if(f.length===0)return e;else f[0]===document||f[0]===H?(s=u.iOS?H.innerWidth:f.width(),m=u.iOS?H.innerHeight:
f.height(),f[0]===H&&(o={top:!y||u.iOS?(A||f).scrollTop():0,left:!y||u.iOS?(A||f).scrollLeft():0})):f.is("area")&&u.imagemap?o=u.imagemap(f,t,D.enabled?j:i):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&u.svg?o=u.svg(f,t):(s=f.outerWidth(),m=f.outerHeight(),o=u.offset(f,n.container));if(o.offset)s=o.width,m=o.height,E=o.flipoffset,o=o.offset;if(u.iOS<4.1&&u.iOS>3.1||u.iOS==4.3||!u.iOS&&y)j=d(H),o.left-=j.scrollLeft(),o.top-=j.scrollTop();o.left+=t.x==="right"?s:t.x==="center"?s/2:0;o.top+=t.y===
"bottom"?m:t.y==="center"?m/2:0}o.left+=r.x+(h.x==="right"?-k:h.x==="center"?-k/2:0);o.top+=r.y+(h.y==="bottom"?-q:h.y==="center"?-q/2:0);D.enabled?(A={elem:A,height:A[(A[0]===H?"h":"outerH")+"eight"](),width:A[(A[0]===H?"w":"outerW")+"idth"](),scrollLeft:y?0:A.scrollLeft(),scrollTop:y?0:A.scrollTop(),offset:A.offset()||{left:0,top:0}},o.adjusted={left:D.horizontal!=="none"?D.left(o.left):0,top:D.vertical!=="none"?D.top(o.top):0},o.adjusted.left+o.adjusted.top&&g.attr("class",function(b,a){return a.replace(/ui-tooltip-pos-\w+/i,
C+"-pos-"+h.abbreviation())}),E&&o.adjusted.left&&(o.left+=E.left),E&&o.adjusted.top&&(o.top+=E.top)):o.adjusted={left:0,top:0};v.originalEvent=d.extend({},b);g.trigger(v,[e,o,A.elem||A]);if(v.isDefaultPrevented())return e;delete o.adjusted;c===i||isNaN(o.left)||isNaN(o.top)||f==="mouse"||!d.isFunction(n.effect)?g.css(o):d.isFunction(n.effect)&&(n.effect.call(g,e,d.extend({},o)),g.queue(function(b){d(this).css({opacity:"",height:""});d.browser.msie&&this.style.removeAttribute("filter");b()}));x=0;
return e},redraw:function(){if(e.rendered<1||t)return e;var b=a.position.container,c,d,f;t=1;a.style.height&&g.css("height",a.style.height);a.style.width?g.css("width",a.style.width):(g.css("width","").addClass(N),c=g.width()+1,d=g.css("max-width")||"",f=g.css("min-width")||"",b=(d+f).indexOf("%")>-1?b.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,f=(f.indexOf("%")>-1?b:1)*parseInt(f,10)||0,c=d+f?Math.min(Math.max(c,f),d):c,g.css("width",Math.round(c)).removeClass(N));t=0;return e},disable:function(b){"boolean"!==
typeof b&&(b=!(g.hasClass(J)||z.disabled));e.rendered?(g.toggleClass(J,b),d.attr(g[0],"aria-disabled",b)):z.disabled=!!b;return e},enable:function(){return e.disable(i)},destroy:function(){var b=c[0],x=d.attr(b,M),h=c.data("qtip");e.rendered&&(g.remove(),d.each(e.plugins,function(){this.destroy&&this.destroy()}));clearTimeout(e.timers.show);clearTimeout(e.timers.hide);X();if(!h||e===h)d.removeData(b,"qtip"),a.suppress&&x&&(d.attr(b,"title",x),c.removeAttr(M)),c.removeAttr("aria-describedby");c.unbind(".qtip-"+
f);delete V[e.id];return c}})}function aa(c,a){var f,h,y,j,E,k=d(this),s=d(document.body),q=this===document?s:k;h=k.metadata?k.metadata(a.metadata):l;j=a.metadata.type==="html5"&&h?h[a.metadata.name]:l;var m=k.data(a.metadata.name||"qtipopts");try{m=typeof m==="string"?(new Function("return "+m))():m}catch(D){O("Unable to parse HTML5 attribute data: "+m)}j=d.extend(v,{},F.defaults,a,typeof m==="object"?R(m):l,R(j||h));h=j.position;j.id=c;if("boolean"===typeof j.content.text)if(y=k.attr(j.content.attr),
j.content.attr!==i&&y)j.content.text=y;else return O("Unable to locate content for tooltip! Aborting render of tooltip on element: ",k),i;if(h.container===i)h.container=s;if(h.target===i)h.target=q;if(j.show.target===i)j.show.target=q;if(j.show.solo===v)j.show.solo=s;if(j.hide.target===i)j.hide.target=q;if(j.position.viewport===v)j.position.viewport=h.container;h.at=new u.Corner(h.at);h.my=new u.Corner(h.my);if(d.data(this,"qtip"))if(j.overwrite)k.qtip("destroy");else if(j.overwrite===i)return i;
j.suppress&&(E=d.attr(this,"title"))&&d(this).removeAttr("title").attr(M,E);f=new Y(k,j,c,!!y);d.data(this,"qtip",f);k.bind("remove.qtip-"+c,function(){f.destroy()});return f}function ba(c,a,d){var h=Math.ceil(a/2),i=Math.ceil(d/2),a={bottomright:[[0,0],[a,d],[a,0]],bottomleft:[[0,0],[a,0],[0,d]],topright:[[0,d],[a,0],[a,d]],topleft:[[0,0],[0,d],[a,d]],topcenter:[[0,d],[h,0],[a,d]],bottomcenter:[[0,0],[a,0],[h,d]],rightcenter:[[0,0],[a,i],[0,d]],leftcenter:[[a,0],[a,d],[0,i]]};a.lefttop=a.bottomright;
a.righttop=a.bottomleft;a.leftbottom=a.topright;a.rightbottom=a.topleft;return a[c.string()]}function ca(c){var a,f,h;function y(e,t,g){if(q.tip){var e=d.extend({},k.corner),t=g.adjusted,n=c.options.position.adjust.method.split(" "),r=n[0],n=n[1]||n[0],j=i,b=i,m=0,l=0,p,y={},u;if(k.corner.fixed!==v){if(r==="shift"&&e.precedance==="x"&&t.left&&e.y!=="center")e.precedance=e.precedance==="x"?"y":"x";else if(r==="flip"&&t.left)e.x=e.x==="center"?t.left>0?"left":"right":e.x==="left"?"right":"left";if(n===
"shift"&&e.precedance==="y"&&t.top&&e.x!=="center")e.precedance=e.precedance==="y"?"x":"y";else if(n==="flip"&&t.top)e.y=e.y==="center"?t.top>0?"top":"bottom":e.y==="top"?"bottom":"top";e.string()!==a&&(f!==t.top||h!==t.left)&&k.update(e,i)}p=k.position(e,t);if(p.right!==L)p.left=-p.right;if(p.bottom!==L)p.top=-p.bottom;p.user=Math.max(0,s.offset);if(j=r==="shift"&&!!t.left)if(e.x==="center")y["margin-left"]=m=p["margin-left"]-t.left;else{u=p.right!==L?[t.left,-p.left]:[-t.left,p.left];if((m=Math.max(u[0],
u[1]))>u[0])g.left-=t.left,j=i;y[p.right!==L?"right":"left"]=m}if(b=n==="shift"&&!!t.top)if(e.y==="center")y["margin-top"]=l=p["margin-top"]-t.top;else{u=p.bottom!==L?[t.top,-p.top]:[-t.top,p.top];if((l=Math.max(u[0],u[1]))>u[0])g.top-=t.top,b=i;y[p.bottom!==L?"bottom":"top"]=l}q.tip.css(y).toggle(!(m&&l||e.x==="center"&&l||e.y==="center"&&m));g.left-=p.left.charAt?p.user:r!=="shift"||b||!j&&!b?p.left:0;g.top-=p.top.charAt?p.user:n!=="shift"||j||!j&&!b?p.top:0;h=t.left;f=t.top;a=e.string()}}function j(a,
c,d){var c=!c?a[a.precedance]:c,e=m.hasClass(N),a=q.titlebar&&a.y==="top"?q.titlebar:q.content,c="border-"+c+"-width";m.addClass(N);a=parseInt(a.css(c),10);a=(d?a||parseInt(m.css(c),10):a)||0;m.toggleClass(N,e);return a}function E(a){var c=a.precedance==="y",d=D[c?"width":"height"],e=D[c?"height":"width"],f=a.string().indexOf("center")>-1,h=d*(f?0.5:1),b=Math.pow,a=Math.round,i=Math.sqrt(b(h,2)+b(e,2)),h=[B/h*i,B/e*i];h[2]=Math.sqrt(b(h[0],2)-b(B,2));h[3]=Math.sqrt(b(h[1],2)-b(B,2));f=(i+h[2]+h[3]+
(f?0:h[0]))/i;d=[a(f*e),a(f*d)];return{height:d[c?0:1],width:d[c?1:0]}}var k=this,s=c.options.style.tip,q=c.elements,m=q.tooltip;f=0;h=0;a="";var D={width:s.width,height:s.height},C,e,B=s.border||0,F=!!(d("<canvas />")[0]||{}).getContext;k.corner=l;k.mimic=l;k.border=B;k.offset=s.offset;k.size=D;c.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){k.init()||k.destroy();c.reposition()},"^style.tip.(height|width)$":function(){D={width:s.width,height:s.height};k.create();k.update();
c.reposition()},"^content.title.text|style.(classes|widget)$":function(){q.tip&&k.update()}};d.extend(k,{init:function(){var a=k.detectCorner()&&(F||d.browser.msie);a&&(k.create(),k.update(),m.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",y));return a},detectCorner:function(){var a=s.corner,d=c.options.position,e=d.at,d=d.my.string?d.my.string():d.my;if(a===i||d===i&&e===i)return i;else if(a===v)k.corner=new u.Corner(d);else if(!a.string)k.corner=new u.Corner(a),k.corner.fixed=v;return k.corner.string()!==
"centercenter"},detectColours:function(){var a,f,g=q.tip.css({backgroundColor:"",border:""});a=k.corner;var h=a[a.precedance],i="border-"+h+"-color";f="border"+h.charAt(0)+h.substr(1)+"Color";var h=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,j=d(document.body).css("color"),b=c.elements.content.css("color"),l=q.titlebar&&(a.y==="top"||a.y==="center"&&g.position().top+D.height/2+s.offset<q.titlebar.outerHeight(1))?q.titlebar:q.content;m.addClass(N);C=a=g.css("background-color");e=f=g[0].style[f]||g.css(i)||
m.css(i);if(!a||h.test(a))C=l.css("background-color")||"transparent",h.test(C)&&(C=m.css("background-color")||a);if(!f||h.test(f)||f===j)if(e=l.css(i)||"transparent",h.test(e)||e===b)e=f;d("*",g).add(g).css("background-color","transparent").css("border","");m.removeClass(N)},create:function(){var a=D.width,c=D.height;q.tip&&q.tip.remove();q.tip=d("<div />",{"class":"ui-tooltip-tip"}).css({width:a,height:c}).prependTo(m);F?d("<canvas />").appendTo(q.tip)[0].getContext("2d").save():q.tip.html('<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape><vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>')},
update:function(a,c){var g=q.tip,f=g.children(),h=D.width,m=D.height,b=s.mimic,y=Math.round,w,p,G;if(!a)a=k.corner;b===i?b=a:(b=new u.Corner(b),b.precedance=a.precedance,b.x==="inherit"?b.x=a.x:b.y==="inherit"?b.y=a.y:b.x===b.y&&(b[a.precedance]=a[a.precedance]));w=b.precedance;k.detectColours();e!=="transparent"&&e!=="#123456"?(B=j(a,l,v),s.border===0&&B>0&&(C=e),k.border=B=s.border!==v?s.border:B):k.border=B=0;p=ba(b,h,m);k.size=G=E(a);g.css(G);g=a.precedance==="y"?[y(b.x==="left"?B:b.x==="right"?
G.width-h-B:(G.width-h)/2),y(b.y==="top"?G.height-m:0)]:[y(b.x==="left"?G.width-h:0),y(b.y==="top"?B:b.y==="bottom"?G.height-m-B:(G.height-m)/2)];F?(f.attr(G),f=f[0].getContext("2d"),f.restore(),f.save(),f.clearRect(0,0,3E3,3E3),f.translate(g[0],g[1]),f.beginPath(),f.moveTo(p[0][0],p[0][1]),f.lineTo(p[1][0],p[1][1]),f.lineTo(p[2][0],p[2][1]),f.closePath(),f.fillStyle=C,f.strokeStyle=e,f.lineWidth=B*2,f.lineJoin="miter",f.miterLimit=100,B&&f.stroke(),f.fill()):(p="m"+p[0][0]+","+p[0][1]+" l"+p[1][0]+
","+p[1][1]+" "+p[2][0]+","+p[2][1]+" xe",g[2]=B&&/^(r|b)/i.test(a.string())?parseFloat(d.browser.version,10)===8?2:1:0,f.css({antialias:""+(b.string().indexOf("center")>-1),left:g[0]-g[2]*Number(w==="x"),top:g[1]-g[2]*Number(w==="y"),width:h+B,height:m+B}).each(function(a){var b=d(this);b[b.prop?"prop":"attr"]({coordsize:h+B+" "+(m+B),path:p,fillcolor:C,filled:!!a,stroked:!a}).css({display:B||a?"block":"none"});!a&&b.html()===""&&b.html('<vml:stroke weight="'+B*2+'px" color="'+e+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />')}));
c!==i&&k.position(a)},position:function(a){var c=q.tip,e={},f=Math.max(0,s.offset),h,l,b;if(s.corner===i||!c)return i;a=a||k.corner;h=a.precedance;l=E(a);b=[a.x,a.y];h==="x"&&b.reverse();d.each(b,function(b,c){var i,k;if(c==="center")i=h==="y"?"left":"top",e[i]="50%",e["margin-"+i]=-Math.round(l[h==="y"?"width":"height"]/2)+f;else{i=j(a,c,v);k=d.browser.mozilla;var s=a.y+(k?"":"-")+a.x;k=(k?"-moz-":d.browser.webkit?"-webkit-":"")+(k?"border-radius-"+s:"border-"+s+"-radius");k=parseInt((q.titlebar&&
a.y==="top"?q.titlebar:q.content).css(k),10)||parseInt(m.css(k),10)||0;e[c]=b?B?j(a,c):0:f+(k>i?k:0)}});e[a[h]]-=l[h==="x"?"width":"height"];c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(e);return e},destroy:function(){q.tip&&q.tip.remove();m.unbind(".qtip-tip")}});k.init()}var v=true,i=false,l=null,F,u,K,V={},C="ui-tooltip",U="ui-widget",J="ui-state-disabled",Q="div.qtip."+C,W=C+"-default",T=C+"-focus",$=C+"-hover",N=C+"-fluid",M="oldtitle",S;F=d.fn.qtip=function(c,a,f){var h=(""+c).toLowerCase(),
y=l,j=h==="disable"?[v]:d.makeArray(arguments).slice(1),u=j[j.length-1],k=this[0]?d.data(this[0],"qtip"):l;if(!arguments.length&&k||h==="api")return k;else if("string"===typeof c)return this.each(function(){var c=d.data(this,"qtip");if(!c)return v;if(u&&u.timeStamp)c.cache.event=u;if((h==="option"||h==="options")&&a)if(d.isPlainObject(a)||f!==L)c.set(a,f);else return y=c.get(a),i;else c[h]&&c[h].apply(c[h],j)}),y!==l?y:this;else if("object"===typeof c||!arguments.length)return k=R(d.extend(v,{},c)),
F.bind.call(this,k,u)};F.bind=function(c,a){return this.each(function(f){var h,l,j,E;function k(a){function c(){m.render(typeof a==="object"||s.show.ready);j.add(E).unbind(q)}if(m.cache.disabled)return i;m.cache.event=d.extend({},a);m.cache.target=a?d(a.target):[L];s.show.delay>0?(clearTimeout(m.timers.show),m.timers.show=setTimeout(c,s.show.delay),h!==l&&E.bind(l,function(){clearTimeout(m.timers.show)})):c()}var s,q,m,f=d.isArray(c.id)?c.id[f]:c.id,f=!f||f===i||f.length<1||V[f]?F.nextid++:V[f]=f;
q=".qtip-"+f+"-create";m=aa.call(this,f,c);if(m===i)return v;s=m.options;d.each(u,function(){this.initialize==="initialize"&&this(m)});j=s.show.target;E=s.hide.target;h=d.trim(""+s.show.event).replace(/ /g,q+" ")+q;l=d.trim(""+s.hide.event).replace(/ /g,q+" ")+q;/mouse(over|enter)/i.test(h)&&!/mouse(out|leave)/i.test(l)&&(l+=" mouseleave"+q);j.bind("mousemove"+q,function(a){K={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}});j.bind(h,k);(s.show.ready||s.prerender)&&k(a)})};u=F.plugins={Corner:function(c){c=
(""+c).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(c.match(/left|right/i)||c.match(/center/)||["inherit"])[0].toLowerCase();this.y=(c.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=c.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var a=this.x.substr(0,1),c=this.y.substr(0,1);return a===c?a:a==="c"||a!=="c"&&c!=="c"?c+a:a+c}},offset:function(c,
a){var d=c.offset(),h=a,i=0,j=document.body,l;if(h){do if(h.css("position")!=="static"&&(l=h[0]===j?{left:parseInt(h.css("left"),10)||0,top:parseInt(h.css("top"),10)||0}:h.position(),d.left-=l.left+(parseInt(h.css("borderLeftWidth"),10)||0)+(parseInt(h.css("marginLeft"),10)||0),d.top-=l.top+(parseInt(h.css("borderTopWidth"),10)||0),l=h.css("overflow"),(l==="scroll"||l==="auto")&&i++),h[0]===j)break;while(h=h.offsetParent());a[0]!==j&&i&&(d.left+=1*a.scrollLeft(),d.top+=1*a.scrollTop())}return d},
iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||i,fn:{attr:function(c,a){if(this.length){var f=this[0],h=d.data(f,"qtip");if(c==="title"&&h&&"object"===typeof h&&h.options.suppress)return arguments.length<2?d.attr(f,M):(h&&h.options.content.attr==="title"&&h.cache.attr&&h.set("content.text",a),this.attr(M,a))}return d.fn.attr_replacedByqTip.apply(this,arguments)},clone:function(c){d([]);
var a=d.fn.clone_replacedByqTip.apply(this,arguments);c||a.filter("["+M+"]").attr("title",function(){return d.attr(this,M)}).removeAttr(M);return a},remove:d.ui?l:function(c,a){d(this).each(function(){a||(!c||d.filter(c,[this]).length)&&d("*",this).add(this).each(function(){d(this).triggerHandler("remove")})})}}};d.each(u.fn,function(c,a){if(!a||d.fn[c+"_replacedByqTip"])return v;var f=d.fn[c+"_replacedByqTip"]=d.fn[c];d.fn[c]=function(){return a.apply(this,arguments)||f.apply(this,arguments)}});
F.version="nightly";F.nextid=0;F.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");F.zindex=15E3;F.defaults={prerender:i,id:i,overwrite:v,suppress:v,content:{text:v,attr:"title",title:{text:i,button:i}},position:{my:"top left",at:"bottom right",target:i,container:i,viewport:i,adjust:{x:0,y:0,mouse:v,resize:v,method:"flip flip"},effect:function(c,a){d(this).animate(a,{duration:200,queue:i})}},show:{target:i,event:"mouseenter",effect:v,delay:90,solo:i,ready:i,
autofocus:i},hide:{target:i,event:"mouseleave",effect:v,delay:0,fixed:i,inactive:i,leave:"window",distance:i},style:{classes:"",widget:i,width:i,height:i},events:{render:l,move:l,show:l,hide:l,toggle:l,visible:l,focus:l,blur:l}};u.tip=function(c){var a=c.plugins.tip;return"object"===typeof a?a:c.plugins.tip=new ca(c)};u.tip.initialize="render";u.tip.sanitize=function(c){var a=c.style;if(a&&"tip"in a){a=c.style.tip;if(typeof a!=="object")c.style.tip={corner:a};if(!/string|boolean/i.test(typeof a.corner))a.corner=
v;typeof a.width!=="number"&&delete a.width;typeof a.height!=="number"&&delete a.height;typeof a.border!=="number"&&a.border!==v&&delete a.border;typeof a.offset!=="number"&&delete a.offset}};d.extend(v,F.defaults,{style:{tip:{corner:v,mimic:i,width:6,height:6,border:v,offset:0}}});u.svg=function(c){var a=d(document),f=c[0],c={width:0,height:0,offset:{top:1E10,left:1E10}},h,i,j;if(f.getBBox&&f.parentNode){h=f.getBBox();i=f.getScreenCTM();f=f.farthestViewportElement||f;if(!f.createSVGPoint)return c;
f=f.createSVGPoint();f.x=h.x;f.y=h.y;j=f.matrixTransform(i);c.offset.left=j.x;c.offset.top=j.y;f.x+=h.width;f.y+=h.height;j=f.matrixTransform(i);c.width=j.x-c.offset.left;c.height=j.y-c.offset.top;c.offset.left+=a.scrollLeft();c.offset.top+=a.scrollTop()}return c}})(jQuery,window);

/*
 * jQuery Backstretch
 * Version 1.2.2 - heavily modified
 * http://srobbin.com/jquery-plugins/jquery-backstretch/
 *
 * Add a dynamically-resized background image to the page
 *
 * Copyright (c) 2011 Scott Robbin (srobbin.com)
 * Dual licensed under the MIT and GPL licenses.
 */
(function(a){a.backstretch=function(l,d,m){function n(c){try{var b=e,j=o.width(),f=o.height()-b.offsetY,h,i,g={left:0,top:b.offsetY};if(b.resize){h=Math.max(e.minWidth,j);i=h/k;if(i>=f){if(b.centeredX)g.left=-((h-j)/2);if(b.centeredY)g.top=-((i-f)/2)+b.offsetY}else if(i=f,h=i*k,b.centeredX)g.left=-((h-j)/2);g.left+="px";a("#backstretch img:last").css(g).width(h).height(i)}else g.left=(j-b.width)/2+"px",a("#backstretch img:last").css(g)}catch(d){}typeof c=="function"&&c()}var p={position:"absolute",
centeredX:true,centeredY:true,minWidth:500,minHeight:620,offsetY:0,speed:0,resize:true},c=a("#backstretch"),e=c.data("settings")||p;c.data("settings");var o="onorientationchange"in window?a(document):a(window),k;d&&typeof d=="object"&&a.extend(e,d);a(document).ready(function(){if(l){var d;c.length==0?c=a("<div />").attr("id","backstretch").css({left:0,top:0,position:e.position,overflow:"hidden",zIndex:-999999,margin:0,padding:0,height:"100%",width:"100%"}):c.find("img").addClass("deleteable");d=a("<img />").css({position:"absolute",
display:"none",margin:0,padding:0,border:"none",zIndex:-999999}).bind("load",function(b){var d=a(this),f;d.css({width:"auto",height:"auto"});f=this.width||a(b.target).width();b=this.height||a(b.target).height();e.width=f;e.height=b;k=f/b;n(function(){d.fadeIn(e.speed,function(){c.find(".deleteable").remove();typeof m=="function"&&m()})})}).bind("error",function(){c.find(".deleteable").remove()}).appendTo(c);a("body #backstretch").length==0&&a("body").append(c);c.data("settings",e);d.attr("src",l);
a(window).resize(n)}});return this}})(jQuery);
