if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var o=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.1",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){a.detach().trigger("closed.bs.alert").remove()}var o=t(this),s=o.attr("data-target");s||(s=o.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var a=t(s);e&&e.preventDefault(),a.length||(a=o.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var o=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.button"),s="object"==typeof e&&e;o||n.data("bs.button",o=new i(this,s)),"toggle"==e?o.toggle():e&&o.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",s=n.data();e+="Text",null==s.resetText&&n.data("resetText",n[o]()),setTimeout(t.proxy(function(){n[o](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.carousel"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),a="string"==typeof e?e:s.slide;o||n.data("bs.carousel",o=new i(this,s)),"number"==typeof e?o.to(e):a?o[a]():s.interval&&o.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i="prev"==t?-1:1,n=this.getItemIndex(e),o=(n+i)%this.$items.length;return this.$items.eq(o)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,n){var o=this.$element.find(".item.active"),s=n||this.getItemForDirection(e,o),a=this.interval,r="next"==e?"left":"right",l="next"==e?"first":"last",c=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[l]()}if(s.hasClass("active"))return this.sliding=!1;var h=s[0],d=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var p=t(this.$indicators.children()[this.getItemIndex(s)]);p&&p.addClass("active")}var u=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,o.addClass(r),s.addClass(r),o.one("bsTransitionEnd",function(){s.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger(u)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(o.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(u)),a&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var o=function(i){var n,o=t(this),s=t(o.attr("data-target")||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var a=t.extend({},s.data(),o.data()),r=o.attr("data-slide-to");r&&(a.interval=!1),e.call(s,a),r&&s.data("bs.carousel").to(r),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),o=i.data("bs.collapse"),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!o&&s.toggle&&"show"==e&&(s.toggle=!1),o||i.data("bs.collapse",o=new n(this,s)),"string"==typeof e&&o[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t(this.options.trigger).filter('[href="#'+e.id+'"], [data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.1",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},n.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"),e&&e.transitioning))){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){o&&o.length&&(i.call(o,"hide"),e||o.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[a](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(n.TRANSITION_DURATION):o.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var o=t(n);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var o=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var o=t(this);o.attr("data-target")||n.preventDefault();var s=e(o),a=s.data("bs.collapse"),r=a?"toggle":t.extend({},o.data(),{trigger:this});i.call(s,r)})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(o).remove(),t(s).each(function(){var n=t(this),o=i(n),s={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",s)),e.isDefaultPrevented()||(n.attr("aria-expanded","false"),o.removeClass("open").trigger("hidden.bs.dropdown",s)))}))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new a(this)),"string"==typeof e&&n[e].call(i)})}var o=".dropdown-backdrop",s='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.1",a.prototype.toggle=function(n){var o=t(this);if(!o.is(".disabled, :disabled")){var s=i(o),a=s.hasClass("open");if(e(),!a){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(''),i.btn=t(["<"+o.parentTag+' aria-haspopup="true" tabindex="0" class="'+a+"_btn "+a+'_collapsed">',''+o.label+"",'','','','',"",""].join("")),t(r).append(i.btn),t(o.prependTo).prepend(r),r.append(i.mobileNav);var l=i.mobileNav.find("li");t(l).each(function(){var e=t(this),n={};if(n.children=e.children("ul").attr("role","menu"),e.data("menu",n),n.children.length>0){var s=e.contents(),r=!1;nodes=[],t(s).each(function(){return t(this).is("ul")?!1:(nodes.push(this),void(t(this).is("a")&&(r=!0)))});var l=t("<"+o.parentTag+' role="menuitem" aria-haspopup="true" tabindex="-1" class="'+a+'_item"/>');if(o.allowParentLinks&&!o.nestedParentLinks&&r)t(nodes).wrapAll('').parent();else{var c=t(nodes).wrapAll(l).parent();c.addClass(a+"_row")}e.addClass(a+"_collapsed"),e.addClass(a+"_parent");var h=t(''+o.closedSymbol+"");o.allowParentLinks&&!o.nestedParentLinks&&r&&(h=h.wrap(l).parent()),t(nodes).last().after(h)}else 0===e.children().length&&e.addClass(a+"_txtnode");e.children("a").attr("role","menuitem").click(function(e){o.closeOnClick&&!t(e.target).parent().closest("li").hasClass(a+"_parent")&&t(i.btn).click()}),o.closeOnClick&&o.allowParentLinks&&(e.children("a").children("a").click(function(e){t(i.btn).click()}),e.find("."+a+"_parent-link a:not(."+a+"_item)").click(function(e){t(i.btn).click()}))}),t(l).each(function(){var e=t(this).data("menu");o.showChildren||i._visibilityToggle(e.children,null,!1,null,!0)}),i._visibilityToggle(i.mobileNav,null,!1,"init",!0),i.mobileNav.attr("role","menu"),t(e).mousedown(function(){i._outlines(!1)}),t(e).keyup(function(){i._outlines(!0)}),t(i.btn).click(function(t){t.preventDefault(),i._menuToggle()}),i.mobileNav.on("click","."+a+"_item",function(e){e.preventDefault(),i._itemClick(t(this))}),t(i.btn).keydown(function(t){var e=t||event;13==e.keyCode&&(t.preventDefault(),i._menuToggle())}),i.mobileNav.on("keydown","."+a+"_item",function(e){var n=e||event;13==n.keyCode&&(e.preventDefault(),i._itemClick(t(e.target)))}),o.allowParentLinks&&o.nestedParentLinks&&t("."+a+"_item a").click(function(t){t.stopImmediatePropagation()})},n.prototype._menuToggle=function(t){var e=this,i=e.btn,n=e.mobileNav;i.hasClass(a+"_collapsed")?(i.removeClass(a+"_collapsed"),i.addClass(a+"_open")):(i.removeClass(a+"_open"),i.addClass(a+"_collapsed")),i.addClass(a+"_animating"),e._visibilityToggle(n,i.parent(),!0,i)},n.prototype._itemClick=function(t){var e=this,i=e.settings,n=t.data("menu");n||(n={},n.arrow=t.children("."+a+"_arrow"),n.ul=t.next("ul"),n.parent=t.parent(),n.parent.hasClass(a+"_parent-link")&&(n.parent=t.parent().parent(),n.ul=t.parent().next("ul")),t.data("menu",n)),n.parent.hasClass(a+"_collapsed")?(n.arrow.html(i.openedSymbol),n.parent.removeClass(a+"_collapsed"),n.parent.addClass(a+"_open"),n.parent.addClass(a+"_animating"),e._visibilityToggle(n.ul,n.parent,!0,t)):(n.arrow.html(i.closedSymbol),n.parent.addClass(a+"_collapsed"),n.parent.removeClass(a+"_open"),n.parent.addClass(a+"_animating"),e._visibilityToggle(n.ul,n.parent,!0,t))},n.prototype._visibilityToggle=function(e,i,n,o,s){var r=this,l=r.settings,c=r._getActionItems(e),h=0;n&&(h=l.duration),e.hasClass(a+"_hidden")?(e.removeClass(a+"_hidden"),e.slideDown(h,l.easingOpen,function(){t(o).removeClass(a+"_animating"),t(i).removeClass(a+"_animating"),s||l.open(o)}),e.attr("aria-hidden","false"),c.attr("tabindex","0"),r._setVisAttr(e,!1)):(e.addClass(a+"_hidden"),e.slideUp(h,this.settings.easingClose,function(){e.attr("aria-hidden","true"),c.attr("tabindex","-1"),r._setVisAttr(e,!0),e.hide(),t(o).removeClass(a+"_animating"),t(i).removeClass(a+"_animating"),s?"init"==o&&l.init():l.close(o)}))},n.prototype._setVisAttr=function(e,i){var n=this,o=e.children("li").children("ul").not("."+a+"_hidden");o.each(i?function(){var e=t(this);e.attr("aria-hidden","true");var o=n._getActionItems(e);o.attr("tabindex","-1"),n._setVisAttr(e,i)}:function(){var e=t(this);e.attr("aria-hidden","false");var o=n._getActionItems(e);o.attr("tabindex","0"),n._setVisAttr(e,i)})},n.prototype._getActionItems=function(t){var e=t.data("menu");if(!e){e={};var i=t.children("li"),n=i.find("a");e.links=n.add(i.find("."+a+"_item")),t.data("menu",e)}return e.links},n.prototype._outlines=function(e){e?t("."+a+"_item, ."+a+"_btn").css("outline",""):t("."+a+"_item, ."+a+"_btn").css("outline","none")},n.prototype.toggle=function(){var t=this;t._menuToggle()},n.prototype.open=function(){var t=this;t.btn.hasClass(a+"_collapsed")&&t._menuToggle()},n.prototype.close=function(){var t=this;t.btn.hasClass(a+"_open")&&t._menuToggle()},t.fn[s]=function(e){var i=arguments;if(void 0===e||"object"==typeof e)return this.each(function(){t.data(this,"plugin_"+s)||t.data(this,"plugin_"+s,new n(this,e))});if("string"==typeof e&&"_"!==e[0]&&"init"!==e){var o;return this.each(function(){var a=t.data(this,"plugin_"+s);a instanceof n&&"function"==typeof a[e]&&(o=a[e].apply(a,Array.prototype.slice.call(i,1)))}),void 0!==o?o:this}}}(jQuery,document,window),function(t){var e=0;t.fn.mobileMenu=function(n){function o(t){return t.is("ul, ol")}function s(){return t(window).width()0:(e++,i.attr("id","mm"+e),t("#mobileMenu_mm"+e).length>0)}function r(t){null!==t.val()&&(document.location.href=t.val())}function l(e){e.css("display","none"),t("#mobileMenu_"+e.attr("id")).show()}function c(e){e.css("display",""),t("#mobileMenu_"+e.attr("id")).hide()}function h(e){if(o(e)){var n='
",e.parent().append(n),t("#mobileMenu_"+e.attr("id")).change(function(){r(t(this))}),l(e)}else alert("mobileMenu will only work with UL or OL elements!")}function d(t){s()&&!a(t)?h(t):s()&&a(t)?l(t):!s()&&a(t)&&c(t)}var p={switchWidth:768,topOptionText:"Select a page",indentString:"-"};return this.each(function(){n&&t.extend(p,n);var e=t(this);t(window).resize(function(){d(e)}),d(e)})}}(jQuery),jQuery(document).ready(function(){jQuery("#top-menu ul.menu").mobileMenu({switchWidth:600}),jQuery("#top-menu div.menu ul").mobileMenu({switchWidth:600})}),function(t){var e=function(e,i){var n=t.extend({},t.fn.nivoSlider.defaults,i),o={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},s=t(e);s.data("nivo:vars",o).addClass("nivoSlider");var a=s.children();a.each(function(){var e=t(this),i="";e.is("img")||(e.is("a")&&(e.addClass("nivo-imageLink"),i=e),e=e.find("img:first"));var n=0===n?e.attr("width"):e.width(),s=0===s?e.attr("height"):e.height();""!==i&&i.css("display","none"),e.css("display","none"),o.totalSlides++}),n.randomStart&&(n.startSlide=Math.floor(Math.random()*o.totalSlides)),n.startSlide>0&&(n.startSlide>=o.totalSlides&&(n.startSlide=o.totalSlides-1),o.currentSlide=n.startSlide),o.currentImage=t(a[o.currentSlide]).is("img")?t(a[o.currentSlide]):t(a[o.currentSlide]).find("img:first"),t(a[o.currentSlide]).is("a")&&t(a[o.currentSlide]).css("display","block");var r=t("").addClass("nivo-main-image");r.attr("src",o.currentImage.attr("src")).show(),s.append(r),t(window).resize(function(){s.children("img").width(s.width()),r.attr("src",o.currentImage.attr("src")),r.stop().height("auto"),t(".nivo-slice").remove(),t(".nivo-box").remove()}),s.append(t('
'));var l=function(e){var i=t(".nivo-caption",s);if(""!=o.currentImage.attr("title")&&void 0!=o.currentImage.attr("title")){var n=o.currentImage.attr("title");"#"==n.substr(0,1)&&(n=t(n).html()),"block"==i.css("display")?setTimeout(function(){i.html(n)},e.animSpeed):(i.html(n),i.stop().fadeIn(e.animSpeed))}else i.stop().fadeOut(e.animSpeed)};l(n);var c=0;if(!n.manualAdvance&&a.length>1&&(c=setInterval(function(){f(s,a,n,!1)},n.pauseTime)),n.directionNav&&(s.append('"),t(s).on("click","a.nivo-prevNav",function(){return o.running?!1:(clearInterval(c),c="",o.currentSlide-=2,void f(s,a,n,"prev"))}),t(s).on("click","a.nivo-nextNav",function(){return o.running?!1:(clearInterval(c),c="",void f(s,a,n,"next"))})),n.controlNav){o.controlNavEl=t('
'),s.after(o.controlNavEl);for(var h=0;h')}else o.controlNavEl.append(''+(h+1)+"");t("a:eq("+o.currentSlide+")",o.controlNavEl).addClass("active"),t("a",o.controlNavEl).bind("click",function(){return o.running?!1:t(this).hasClass("active")?!1:(clearInterval(c),c="",r.attr("src",o.currentImage.attr("src")),o.currentSlide=t(this).attr("rel")-1,void f(s,a,n,"control"))})}n.pauseOnHover&&s.hover(function(){o.paused=!0,clearInterval(c),c=""},function(){o.paused=!1,""!==c||n.manualAdvance||(c=setInterval(function(){f(s,a,n,!1)},n.pauseTime))}),s.bind("nivo:animFinished",function(){r.attr("src",o.currentImage.attr("src")),o.running=!1,t(a).each(function(){t(this).is("a")&&t(this).css("display","none")}),t(a[o.currentSlide]).is("a")&&t(a[o.currentSlide]).css("display","block"),""!==c||o.paused||n.manualAdvance||(c=setInterval(function(){f(s,a,n,!1)},n.pauseTime)),n.afterChange.call(this)});var p=function(e,i,n){t(n.currentImage).parent().is("a")&&t(n.currentImage).parent().css("display","block"),t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show();for(var o=t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().is("a")?t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").parent().height():t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height(),s=0;s').css({left:a*s+"px",width:e.width()-a*s+"px",height:o+"px",opacity:"0",overflow:"hidden"}):t('
').css({left:a*s+"px",width:a+"px",height:o+"px",opacity:"0",overflow:"hidden"}))}t(".nivo-slice",e).height(o),r.stop().animate({height:t(n.currentImage).height()},i.animSpeed)},u=function(e,i,n){t(n.currentImage).parent().is("a")&&t(n.currentImage).parent().css("display","block"),t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show();for(var o=Math.round(e.width()/i.boxCols),s=Math.round(t('img[src="'+n.currentImage.attr("src")+'"]',e).not(".nivo-main-image,.nivo-control img").height()/i.boxRows),a=0;a').css({opacity:0,left:o*l+"px",top:s*a+"px",width:e.width()-o*l+"px"})),t('.nivo-box[name="'+l+'"]',e).height(t('.nivo-box[name="'+l+'"] img',e).height()+"px")):(e.append(t('
').css({opacity:0,left:o*l+"px",top:s*a+"px",width:o+"px"})),t('.nivo-box[name="'+l+'"]',e).height(t('.nivo-box[name="'+l+'"] img',e).height()+"px"));r.stop().animate({height:t(n.currentImage).height()},i.animSpeed)},f=function(e,i,n,o){var s=e.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1&&n.lastSlide.call(this),(!s||s.stop)&&!o)return!1;n.beforeChange.call(this),o?("prev"===o&&r.attr("src",s.currentImage.attr("src")),"next"===o&&r.attr("src",s.currentImage.attr("src"))):r.attr("src",s.currentImage.attr("src")),s.currentSlide++,s.currentSlide===s.totalSlides&&(s.currentSlide=0,n.slideshowEnd.call(this)),s.currentSlide<0&&(s.currentSlide=s.totalSlides-1),s.currentImage=t(i[s.currentSlide]).is("img")?t(i[s.currentSlide]):t(i[s.currentSlide]).find("img:first"),n.controlNav&&(t("a",s.controlNavEl).removeClass("active"),t("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")),l(n),t(".nivo-slice",e).remove(),t(".nivo-box",e).remove();var a=n.effect,c="";"random"===n.effect&&(c=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"),a=c[Math.floor(Math.random()*(c.length+1))],void 0===a&&(a="fade")),-1!==n.effect.indexOf(",")&&(c=n.effect.split(","),a=c[Math.floor(Math.random()*c.length)],void 0===a&&(a="fade")),s.currentImage.attr("data-transition")&&(a=s.currentImage.attr("data-transition")),s.running=!0;var h=0,d=0,f="",g="",v="",b="";if("sliceDown"===a||"sliceDownRight"===a||"sliceDownLeft"===a)p(e,n,s),h=0,d=0,f=t(".nivo-slice",e),"sliceDownLeft"===a&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);i.css({top:"0px"}),d===n.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+h):setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed)},100+h),h+=50,d++});else if("sliceUp"===a||"sliceUpRight"===a||"sliceUpLeft"===a)p(e,n,s),h=0,d=0,f=t(".nivo-slice",e),"sliceUpLeft"===a&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);i.css({bottom:"0px"}),d===n.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+h):setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed)},100+h),h+=50,d++});else if("sliceUpDown"===a||"sliceUpDownRight"===a||"sliceUpDownLeft"===a){p(e,n,s),h=0,d=0;var y=0;f=t(".nivo-slice",e),"sliceUpDownLeft"===a&&(f=t(".nivo-slice",e)._reverse()),f.each(function(){var i=t(this);0===d?(i.css("top","0px"),d++):(i.css("bottom","0px"),d=0),y===n.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+h):setTimeout(function(){i.animate({opacity:"1.0"},n.animSpeed)},100+h),h+=50,y++})}else if("fold"===a)p(e,n,s),h=0,d=0,t(".nivo-slice",e).each(function(){var i=t(this),o=i.width();i.css({top:"0px",width:"0px"}),d===n.slices-1?setTimeout(function(){i.animate({width:o,opacity:"1.0"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+h):setTimeout(function(){i.animate({width:o,opacity:"1.0"},n.animSpeed)},100+h),h+=50,d++});else if("fade"===a)p(e,n,s),g=t(".nivo-slice:first",e),g.css({width:e.width()+"px"}),g.animate({opacity:"1.0"},2*n.animSpeed,"",function(){e.trigger("nivo:animFinished")});else if("slideInRight"===a)p(e,n,s),g=t(".nivo-slice:first",e),g.css({width:"0px",opacity:"1"}),g.animate({width:e.width()+"px"},2*n.animSpeed,"",function(){e.trigger("nivo:animFinished")});else if("slideInLeft"===a)p(e,n,s),g=t(".nivo-slice:first",e),g.css({width:"0px",opacity:"1",left:"",right:"0px"}),g.animate({width:e.width()+"px"},2*n.animSpeed,"",function(){g.css({left:"0px",right:""}),e.trigger("nivo:animFinished")});else if("boxRandom"===a)u(e,n,s),v=n.boxCols*n.boxRows,d=0,h=0,b=m(t(".nivo-box",e)),b.each(function(){var i=t(this);d===v-1?setTimeout(function(){i.animate({opacity:"1"},n.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+h):setTimeout(function(){i.animate({opacity:"1"},n.animSpeed)},100+h),h+=20,d++});else if("boxRain"===a||"boxRainReverse"===a||"boxRainGrow"===a||"boxRainGrowReverse"===a){u(e,n,s),v=n.boxCols*n.boxRows,d=0,h=0;var w=0,x=0,T=[];T[w]=[],b=t(".nivo-box",e),("boxRainReverse"===a||"boxRainGrowReverse"===a)&&(b=t(".nivo-box",e)._reverse()),b.each(function(){T[w][x]=t(this),x++,x===n.boxCols&&(w++,x=0,T[w]=[])});for(var C=0;C<2*n.boxCols;C++){for(var S=C,k=0;k=0&&S").prependTo("body"),this.$slider=t("").prependTo(this.$mirror),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){s.naturalHeight&&s.naturalWidth||(s.naturalHeight=this.naturalHeight||this.height||1,s.naturalWidth=this.naturalWidth||this.width||1),s.aspectRatio=s.naturalWidth/s.naturalHeight,o.isSetup||o.setup(),o.sliders.push(s),o.isFresh=!1,o.requestRender()}),this.$slider[0].src=this.imageSrc,void((this.naturalHeight&&this.naturalWidth||this.$slider[0].complete)&&this.$slider.trigger("load")))}function s(n){return this.each(function(){var s=t(this),a="object"==typeof n&&n;this==e||this==i||s.is("body")?o.configure(a):s.data("px.parallax")||(a=t.extend({},s.data(),a),s.data("px.parallax",new o(this,a))),"string"==typeof n&&o[n]()})}!function(){for(var t=0,i=["ms","moz","webkit","o"],n=0;n=this.boxWidth){this.imageWidth=s*this.aspectRatio|0,this.imageHeight=s,this.offsetBaseTop=a;var r=this.imageWidth-this.boxWidth;this.offsetLeft="left"==this.positionX?0:"right"==this.positionX?-r:isNaN(this.positionX)?-r/2|0:Math.max(this.positionX,-r)}else{this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0;var r=this.imageHeight-s;this.offsetBaseTop="top"==this.positionY?a:"bottom"==this.positionY?a-r:isNaN(this.positionY)?a-r/2|0:a+Math.max(this.positionY,-r)}},render:function(){var t=o.scrollTop,e=o.scrollLeft,i=this.overScrollFix?o.overScroll:0,n=t+o.winHeight;this.visibility=this.boxOffsetBottom>t&&this.boxOffsetTop