function wrap_gravity_selects(){jQuery(".gform_wrapper select:not([multiple])").each(function(){var a=jQuery(this);setTimeout(function(){if(!a.siblings(".chosen-container").length){var b=a.css("width");a.wrap('<div class="gravity-select-parent"></div>'),a.parent().width(b),a.css("cssText","width: 100% !important;"),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo(a.parent(".gravity-select-parent")),calc_select_arrow_dimensions()}},150)})}function calc_select_arrow_dimensions(){jQuery(".avada-select-parent .select-arrow, .gravity-select-parent .select-arrow, .wpcf7-select-parent .select-arrow").filter(":visible").each(function(){jQuery(this).prev().innerHeight()>0&&jQuery(this).css({height:jQuery(this).prev().innerHeight(),width:jQuery(this).prev().innerHeight(),"line-height":jQuery(this).prev().innerHeight()+"px"})})}function recursive_gform_submission_handler(){jQuery(".gform_wrapper").find("form").attr("target")&&jQuery(".gform_wrapper").find("form").attr("target").indexOf("gform_ajax_frame")>-1&&jQuery(".gform_wrapper").find("form").submit(function(a){setTimeout(function(){wrap_gravity_selects(),calc_select_arrow_dimensions(),recursive_gform_submission_handler()},800)})}function avadaAddWoocommerceQuantityBoxes(a){var b=jQuery("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").find(".qty");b&&"date"!=b.prop("type")&&(b.parent().addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />'),jQuery("input.qty:not(.product-quantity input.qty)").each(function(){var a=parseFloat(jQuery(this).attr("min"));a&&a>0&&parseFloat(jQuery(this).val())<a&&jQuery(this).val(a)}),jQuery(".plus, .minus").unbind("click"),jQuery(".plus, .minus").on("click",function(){var a=jQuery(this).parent().find(".qty"),b=parseFloat(a.val()),c=parseFloat(a.attr("max")),d=parseFloat(a.attr("min")),e=a.attr("step");b&&""!==b&&"NaN"!==b||(b=0),(""===c||"NaN"===c)&&(c=""),(""===d||"NaN"===d)&&(d=0),("any"===e||""===e||void 0===e||"NaN"===parseFloat(e))&&(e=1),jQuery(this).is(".plus")?c&&(c==b||b>c)?a.val(c):a.val(b+parseFloat(e)):d&&(d==b||d>b)?a.val(d):b>0&&a.val(b-parseFloat(e)),a.trigger("change")}))}function fusionResizeCrossfadeImages(a){var b=a.height();a.find("img").each(function(){$img_height=jQuery(this).height(),$img_height<b&&jQuery(this).css("margin-top",(b-$img_height)/2+"px")})}function fusion_resize_crossfade_images_container(a){var b=0;a.find("img").each(function(){$img_height=jQuery(this).height(),$img_height>b&&(b=$img_height)}),a.css("height",b)}function fusion_calc_woocommerce_tabs_layout(a){jQuery(a).each(function(){var a=jQuery(this).parent().width(),b=jQuery(this).find("li").length,c=a%b,d=(a-c)/b,e=a-d*(b-1);jQuery(this).css("width",a+"px"),jQuery(this).find("li").css("width",d+"px"),jQuery(this).find("li:last").css("width",e+"px").addClass("no-border-right")})}function _fusionRefreshScroll(){jQuery;_fusionScrollTop=window.pageYOffset,_fusionScrollLeft=window.pageXOffset}function _fusionParallaxAll(){_fusionRefreshScroll();for(var a=0;a<_fusionImageParallaxImages.length;a++)_fusionImageParallaxImages[a].doParallax()}function _fusionRefreshWindow(){_fusionScrollTop=window.pageYOffset,_fusionWindowHeight=jQuery(window).height(),_fusionScrollLeft=window.pageXOffset,_fusionWindowWidth=jQuery(window).width()}function _fbRowGetAllElementsWithAttribute(a){for(var b=[],c=document.getElementsByTagName("*"),d=0,e=c.length;e>d;d++)c[d].getAttribute(a)&&!jQuery(c[d]).parents(".tfs-slider").length&&b.push(c[d]);return b}function _fbRowOnPlayerReady(a){var b=a.target;b.playVideo(),b.isMute&&b.mute();var c=b.getCurrentTime(),d=+new Date/1e3,e=0,f=!0;b.loopInterval=setInterval(function(){"undefined"!=typeof b.loopTimeout&&clearTimeout(b.loopTimeout),c==b.getCurrentTime()?e=c+(+new Date/1e3-d):(e=b.getCurrentTime(),d=+new Date/1e3),c=b.getCurrentTime(),e+(f?.45:.21)>=b.getDuration()&&(b.pauseVideo(),b.seekTo(0),b.playVideo(),f=!1)},150)}function _fbRowOnPlayerStateChange(a){a.data===YT.PlayerState.ENDED?("undefined"!=typeof a.target.loopTimeout&&clearTimeout(a.target.loopTimeout),a.target.seekTo(0)):a.data===YT.PlayerState.PLAYING&&jQuery(a.target.getIframe()).parent().css("visibility","visible")}function resizeVideo(a){var b=a.parent();if(null===b.find("iframe").width())return void setTimeout(function(){resizeVideo(a)},500);var c=a;c.css({width:"auto",height:"auto",left:"auto",top:"auto"}),c.css("position","absolute");var d=(b.find("iframe").width(),b.find("iframe").height(),b.width()),e=b.height(),f=parseInt(b.css("padding-left")),g=parseInt(b.css("padding-right"));jQuery(".width-100").length>=1&&(g>0&&(d+=g),f>0&&(d+=f));var h,i,j,k,l="16:9";if("undefined"!=typeof a.attr("data-video-aspect-ratio")&&-1!==a.attr("data-video-aspect-ratio").indexOf(":")&&(l=a.attr("data-video-aspect-ratio").split(":"),l[0]=parseFloat(l[0]),l[1]=parseFloat(l[1])),i=e,h=l[0]/l[1]*e,j=l[0]/l[1]*e-d,k=d*l[1]/l[0]-e,h>=d&&i>=e?(height=e,width=l[0]/l[1]*e):(width=d,height=d*l[1]/l[0]),jQuery(".width-100").length>=1&&(g>0&&(width+=g),f>0&&(width+=f),height=width*l[1]/l[0]),marginTop=-(height-e)/2,marginLeft=-(width-d)/2,b.find(".fusion-video-cover").length<1){var m=b.find("iframe").parent();m.prepend('<div class="fusion-video-cover">&nbsp;</div>')}b.find(".fusion-video-cover").css({"z-index":0,width:width,height:height,position:"absolute"}),b.find("iframe").parent().css({marginLeft:marginLeft,marginTop:marginTop}),b.find("iframe").css({width:width,height:height,"z-index":-1})}function onYouTubeIframeAPIReady(){for(var a=_fbRowGetAllElementsWithAttribute("data-youtube-video-id"),b=0;b<a.length;b++){for(var c=a[b].getAttribute("data-youtube-video-id"),d="",e=0;e<a[b].childNodes.length;e++)if(/div/i.test(a[b].childNodes[e].tagName)){d=a[b].childNodes[e].getAttribute("id");break}if(""!==d){var f=new YT.Player(d,{height:"auto",width:"auto",videoId:c,playerVars:{autohide:1,autoplay:1,fs:0,showinfo:0,modestBranding:1,start:0,controls:0,rel:0,disablekb:1,iv_load_policy:3,wmode:"transparent"},events:{onReady:_fbRowOnPlayerReady,onStateChange:_fbRowOnPlayerStateChange}});"yes"===a[b].getAttribute("data-mute")?f.isMute=!0:f.isMute=!1,"true"===a[b].getAttribute("data-youtube-video-id")&&f.setPlaybackQuality("hd720"),setTimeout(function(){jQuery("#"+d).css("visibility","visible")},500)}}}function fusion_side_header_scroll(){var a=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)");if(!a){var b=(jQuery(document).height(),jQuery(window).scrollTop()),c=jQuery(window).height(),d=jQuery("body").height(),e=jQuery("#wpadminbar").height(),f=jQuery("#side-header"),g=jQuery(".side-header-wrapper"),h=g.outerHeight(),i=0;if(jQuery("body").hasClass("layout-boxed-mode")&&jQuery("body").hasClass("side-header-right")&&(f=jQuery(".side-header-wrapper"),i=jQuery("#boxed-wrapper").offset().top),Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)"))return void(f.hasClass("fusion-is-sticky")||f.css({bottom:"",position:""}));h+e>c?(f.css("height","auto"),b>$last_window_position?$top?($top=!1,$top_offset=g.offset().top>0?g.offset().top-i:e,f.attr("style","top: "+$top_offset+"px; height: auto;")):!$bottom&&b+c>h+g.offset().top&&d>h+e&&($bottom=!0,f.attr("style","position: fixed; bottom: 0; top: auto; height: auto;")):b<$last_window_position?$bottom?($bottom=!1,$top_offset=g.offset().top>0?g.offset().top-i:e,f.attr("style","top: "+$top_offset+"px; height: auto;")):!$top&&b+e<g.offset().top&&($top=!0,f.attr("style","position: fixed; height: auto;")):($top=$bottom=!1,$top_offset=g.offset().top>0?g.offset().top-i:e,c>$last_window_height&&d>g.offset().top+i+h&&b+c>g.offset().top+h&&($top_offset+=c-$last_window_height),f.attr("style","top:"+$top_offset+"px; height: auto;"))):($top=!0,f.attr("style","position: fixed;")),$last_window_position=b,$last_window_height=c}}function add_styles_for_old_ie_versions(){"10.0"==cssua.ua.ie&&jQuery("head").append('<style type="text/css">.layout-boxed-mode .fusion-footer-parallax { left: auto; right: auto; }.fusion-imageframe,.imageframe-align-center{font-size: 0px; line-height: normal;}.fusion-button.button-pill,.fusion-button.button-pill:hover{filter: none;}.fusion-header-shadow:after, body.side-header-left .header-shadow#side-header:before, body.side-header-right .header-shadow#side-header:before{ display: none }.search input,.searchform input {padding-left:10px;} .avada-select-parent .select-arrow,.select-arrow{height:33px;background-color:'+js_local_vars.form_bg_color+"}.search input{padding-left:5px;}header .tagline{margin-top:3px;}.star-rating span:before {letter-spacing: 0;}.avada-select-parent .select-arrow,.gravity-select-parent .select-arrow,.wpcf7-select-parent .select-arrow,.select-arrow{background: #fff;}.star-rating{width: 5.2em;}.star-rating span:before {letter-spacing: 0.1em;}</style>"),"11.0"==cssua.ua.ie&&jQuery("head").append('<style type="text/css">.layout-boxed-mode .fusion-footer-parallax { left: auto; right: auto; }</style>')}function get_adminbar_height(){var a=0;return jQuery("#wpadminbar").length&&(a=parseInt(jQuery("#wpadminbar").outerHeight())),a}function get_sticky_header_height(){var a=1,b=0,c=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)");return(jQuery(".fusion-header-v4").length||jQuery(".fusion-header-v5").length)&&(a=2),"1"==js_local_vars.header_sticky&&jQuery(".fusion-header-wrapper").length&&(1==a?(b=jQuery(".fusion-header").outerHeight()-1,64>b&&(b=64)):(b=jQuery(".fusion-secondary-main-menu").outerHeight(),"menu_and_logo"==js_local_vars.header_sticky_type2_layout&&(b+=jQuery(".fusion-header").outerHeight())),Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&("1"==js_local_vars.header_sticky_mobile?(jQuery(".fusion-mobile-menu-design-classic").length&&(b=jQuery(".fusion-secondary-main-menu").outerHeight()),jQuery(".fusion-mobile-menu-design-modern").length&&(b=jQuery(".fusion-header").outerHeight())):b=0),"1"!=js_local_vars.header_sticky_tablet&&c&&(b=0)),b}function get_waypoint_top_offset(){var a=0,b=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)");return"1"==js_local_vars.header_sticky&&jQuery(".fusion-header-wrapper").length&&(1==$sticky_header_type?a=jQuery(".fusion-header").outerHeight()-1:(a=jQuery(".fusion-secondary-main-menu").outerHeight(),"menu_and_logo"==js_local_vars.header_sticky_type2_layout&&(a+=jQuery(".fusion-header").outerHeight()-1)),Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&(a="1"==js_local_vars.header_sticky_mobile?jQuery(".fusion-header").outerHeight()-1:0),"1"!=js_local_vars.header_sticky_tablet&&b&&(a=0)),a}function get_waypoint_offset(a){var b=a.data("animationoffset");if(void 0===b&&(b="bottom-in-view"),"top-out-of-view"==b){var c=get_adminbar_height();get_waypoint_top_offset();b=c+get_waypoint_top_offset()}return b}function insertParam(a,b,c,d){if(replaceDuplicates=!0,a.indexOf("#")>0){var e=a.indexOf("#");urlhash=a.substring(a.indexOf("#"),a.length)}else{urlhash="";var e=a.length}sourceUrl=a.substring(0,e);var f=sourceUrl.split("?"),g="";if(f.length>1)for(var h=f[1].split("&"),i=0;i<h.length;i++){var j=h[i].split("=");replaceDuplicates&&j[0]==b||(""===g?g="?"+j[0]+"="+(j[1]?j[1]:""):(g+="&",g+=j[0]+"="+(j[1]?j[1]:"")))}return""===g&&(g="?"),d?g="?"+b+"="+c+(g.length>1?"&"+g.substring(1):""):(""!==g&&"?"!=g&&(g+="&"),g+=b+"="+(c?c:"")),f[0]+g+urlhash}function register_youtube_players(){Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&(window.$youtube_players=[],jQuery(".tfs-slider").each(function(){var a=jQuery(this);a.find("[data-youtube-video-id]").find("iframe").each(function(){var b=jQuery(this);YT_ready(function(){window.$youtube_players[b.attr("id")]=new YT.Player(b.attr("id"),{events:{onReady:onPlayerReady(b.parents("li")),onStateChange:onPlayerStateChange(b.attr("id"),a)}})})})}))}function load_youtube_iframe_api(){if(Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0){var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}}function onYouTubePlayerAPIReady(){YT_ready(!0)}function onPlayerStateChange(a,b){return function(a){a.data==YT.PlayerState.PLAYING&&jQuery(b).flexslider("pause"),a.data==YT.PlayerState.PAUSED&&jQuery(b).flexslider("play"),a.data==YT.PlayerState.BUFFERING&&jQuery(b).flexslider("pause"),a.data==YT.PlayerState.ENDED&&"1"==jQuery(b).data("autoplay")&&jQuery(b).flexslider("play")}}function onPlayerReady(a){return function(b){"yes"==jQuery(a).data("mute")&&b.target.mute()}}function ytVidId(a){var b=/^(?:https?:)?(\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;return a.match(b)?RegExp.$1:!1}function playVideoAndPauseOthers(a){var b=jQuery(a).find("[data-youtube-video-id]").find("iframe"),c=jQuery(a).data("flexslider").slides.eq(jQuery(a).data("flexslider").currentSlide),d=c.find("[data-youtube-video-id]").find("iframe");b.each(function(a){jQuery(this).attr("id")!=d.attr("id")&&window.$youtube_players[jQuery(this).attr("id")].stopVideo()}),d.length&&(!d.parents("li").hasClass("clone")&&d.parents("li").hasClass("flex-active-slide")&&"yes"==d.parents("li").attr("data-autoplay")&&window.$youtube_players[d.attr("id")].playVideo(),"yes"==c.attr("data-mute")&&window.$youtube_players[d.attr("id")].mute()),jQuery(a).find("video").each(function(a){"function"==typeof jQuery(this)[0].pause&&jQuery(this)[0].pause(),!jQuery(this).parents("li").hasClass("clone")&&jQuery(this).parents("li").hasClass("flex-active-slide")&&"yes"==jQuery(this).parents("li").attr("data-autoplay")&&"function"==typeof jQuery(this)[0].play&&jQuery(this)[0].play()})}+function(a){"use strict";function b(c,d){var e=a.proxy(this.process,this);this.$body=a("body"),this.$scrollElement=a(a(c).is("body")?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.2",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b="offset",c=0;a.isWindow(this.$scrollElement[0])||(b="position",c=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var d=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+c,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){d.offsets.push(this[0]),d.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=window.location.href.split("#"),d="/"==c[0].charAt(c[0].length-1)?c[0]:c[0]+"/",e=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"],'+this.selector+'[href="'+d+b+'"]',f=a(e).parents("li").addClass("current-menu-item");f.parent(".sub-menu").length&&(f=f.closest("li.fusion-dropdown-menu").addClass("current-menu-item")),f.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".current-menu-item").removeClass("current-menu-item"),a(this.selector).parentsUntil(this.options.target,".current-menu-parent").removeClass("current-menu-parent")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .fusion-panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)}),jQuery("click.bs.collapse.data-api, [data-toggle=collapse]").each(function(){jQuery(this).attr("data-parent");if(0==jQuery(this).parents(".panel-group").length){var a=Math.floor(10*Math.random()+1),b=jQuery(this).parents(".fusion-panel");jQuery(this).attr("data-parent","accordian-"+a),jQuery(b).wrap('<div class="accordian fusion-accordian fusion-single-accordian"><div class="panel-group" id="accordion-'+a+'"></div></div>')}})}(jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop="",this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show().scrollTop(0),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('<div class="modal-backdrop '+c+'" />').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);f||e.data("bs.modal",f=new b(this,g)),"string"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());c.is("a")&&b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),b.parent(".nav-tabs").length&&b.parents(".fusion-tabs").find(".nav").find('a[href="'+b.find("a").attr("href")+'"]').parent().addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.5",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this).addClass(this.$element.data("class")),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right");
},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.5",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery);var cssua=function(a,b,c){"use strict";var d=" ua-",e=/\s*([\-\w ]+)[\s\/\:]([\d_]+\b(?:[\-\._\/]\w+)*)/,f=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,g=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,h=/\bsilk-accelerated=true\b/,i=/\bfluidapp\b/,j=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,k=/(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/,l=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,m={parse:function(a,b){var c={};if(b&&(c.standalone=b),a=(""+a).toLowerCase(),!a)return c;for(var d,m,n=a.split(/[()]/),o=0,p=n.length;p>o;o++)if(o%2){var q=n[o].split(";");for(d=0,m=q.length;m>d;d++)if(e.exec(q[d])){var r=RegExp.$1.split(" ").join("_"),s=RegExp.$2;(!c[r]||parseFloat(c[r])<parseFloat(s))&&(c[r]=s)}}else{var t=n[o].match(f);if(t)for(d=0,m=t.length;m>d;d++){var u=t[d].split(/[\/\s]+/);u.length&&"mozilla"!==u[0]&&(c[u[0].split(" ").join("_")]=u.slice(1).join("-"))}}if(k.exec(a))c.mobile=RegExp.$1,g.exec(a)&&(delete c[c.mobile],c.blackberry=c.version||RegExp.$3||RegExp.$2||RegExp.$1,RegExp.$1?c.mobile="blackberry":"0.0.1"===c.version&&(c.blackberry="7.1.0.0"));else if(j.exec(a))c.desktop=RegExp.$1;else if(l.exec(a)){c.game=RegExp.$1;var v=c.game.split(" ").join("_");c.version&&!c[v]&&(c[v]=c.version)}return c.intel_mac_os_x?(c.mac_os_x=c.intel_mac_os_x.split("_").join("."),delete c.intel_mac_os_x):c.cpu_iphone_os?(c.ios=c.cpu_iphone_os.split("_").join("."),delete c.cpu_iphone_os):c.cpu_os?(c.ios=c.cpu_os.split("_").join("."),delete c.cpu_os):"iphone"!==c.mobile||c.ios||(c.ios="1"),c.opera&&c.version?(c.opera=c.version,delete c.blackberry):h.exec(a)?c.silk_accelerated=!0:i.exec(a)&&(c.fluidapp=c.version),c.applewebkit?(c.webkit=c.applewebkit,delete c.applewebkit,c.opr&&(c.opera=c.opr,delete c.opr,delete c.chrome),c.safari&&(c.chrome||c.crios||c.opera||c.silk||c.fluidapp||c.phantomjs||c.mobile&&!c.ios?delete c.safari:c.version&&!c.rim_tablet_os?c.safari=c.version:c.safari={419:"2.0.4",417:"2.0.3",416:"2.0.2",412:"2.0",312:"1.3",125:"1.2",85:"1.0"}[parseInt(c.safari,10)]||c.safari)):c.msie||c.trident?(c.opera||(c.ie=c.msie||c.rv),delete c.msie,c.windows_phone_os?(c.windows_phone=c.windows_phone_os,delete c.windows_phone_os):("wpdesktop"===c.mobile||"xblwp7"===c.mobile||"zunewp7"===c.mobile)&&(c.mobile="windows desktop",c.windows_phone=+c.ie<9?"7.0":+c.ie<10?"7.5":"8.0",delete c.windows_nt)):(c.gecko||c.firefox)&&(c.gecko=c.rv),c.rv&&delete c.rv,c.version&&delete c.version,c},format:function(a){function b(a,b){a=a.split(".").join("-");var c=d+a;if("string"==typeof b){b=b.split(" ").join("_").split(".").join("-");for(var e=b.indexOf("-");e>0;)c+=d+a+"-"+b.substring(0,e),e=b.indexOf("-",e+1);c+=d+a+"-"+b}return c}var c="";for(var e in a)e&&a.hasOwnProperty(e)&&(c+=b(e,a[e]));return c},encode:function(a){var b="";for(var c in a)c&&a.hasOwnProperty(c)&&(b&&(b+="&"),b+=encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b}};m.userAgent=m.ua=m.parse(b,c);var n=m.format(m.ua)+" js";return a.className?a.className=a.className.replace(/\bno-js\b/g,"")+n:a.className=n.substr(1),m}(document.documentElement,navigator.userAgent,navigator.standalone);document.createElement("canvas").getContext||!function(){function a(){return this.context_||(this.context_=new j(this))}function b(a,b,c){var d=x.call(arguments,2);return function(){return a.apply(b,d.concat(x.call(arguments)))}}function c(a){var b=a.srcElement;switch(a.propertyName){case"width":b.style.width=b.attributes.width.nodeValue+"px",b.getContext().clearRect();break;case"height":b.style.height=b.attributes.height.nodeValue+"px",b.getContext().clearRect()}}function d(a){var b=a.srcElement;b.firstChild&&(b.firstChild.style.width=b.clientWidth+"px",b.firstChild.style.height=b.clientHeight+"px")}function e(){return[[1,0,0],[0,1,0],[0,0,1]]}function f(a,b){for(var c=e(),d=0;3>d;d++)for(var f=0;3>f;f++){for(var g=0,h=0;3>h;h++)g+=a[d][h]*b[h][f];c[d][f]=g}return c}function g(a,b){b.fillStyle=a.fillStyle,b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,b.lineWidth=a.lineWidth,b.miterLimit=a.miterLimit,b.shadowBlur=a.shadowBlur,b.shadowColor=a.shadowColor,b.shadowOffsetX=a.shadowOffsetX,b.shadowOffsetY=a.shadowOffsetY,b.strokeStyle=a.strokeStyle,b.globalAlpha=a.globalAlpha,b.arcScaleX_=a.arcScaleX_,b.arcScaleY_=a.arcScaleY_,b.lineScale_=a.lineScale_}function h(a){var b,c=1;if(a=String(a),"rgb"==a.substring(0,3)){var d=a.indexOf("(",3),e=a.indexOf(")",d+1),f=a.substring(d+1,e).split(",");b="#";for(var g=0;3>g;g++)b+=z[Number(f[g])];4==f.length&&"a"==a.substr(3,1)&&(c=f[3])}else b=a;return{color:b,alpha:c}}function i(a){switch(a){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function j(a){this.m_=e(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=1*v,this.globalAlpha=1,this.canvas=a;var b=a.ownerDocument.createElement("div");b.style.width=a.clientWidth+"px",b.style.height=a.clientHeight+"px",b.style.overflow="hidden",b.style.position="absolute",a.appendChild(b),this.element_=b,this.arcScaleX_=1,this.arcScaleY_=1,this.lineScale_=1}function k(a,b,c,d){a.currentPath_.push({type:"bezierCurveTo",cp1x:b.x,cp1y:b.y,cp2x:c.x,cp2y:c.y,x:d.x,y:d.y}),a.currentX_=d.x,a.currentY_=d.y}function l(a){for(var b=0;3>b;b++)for(var c=0;2>c;c++)if(!isFinite(a[b][c])||isNaN(a[b][c]))return!1;return!0}function m(a,b,c){if(l(b)&&(a.m_=b,c)){var d=b[0][0]*b[1][1]-b[0][1]*b[1][0];a.lineScale_=u(t(d))}}function n(a){this.type_=a,this.x0_=0,this.y0_=0,this.r0_=0,this.x1_=0,this.y1_=0,this.r1_=0,this.colors_=[]}function o(){}var p=Math,q=p.round,r=p.sin,s=p.cos,t=p.abs,u=p.sqrt,v=10,w=v/2,x=Array.prototype.slice,y={init:function(a){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var c=a||document;c.createElement("canvas"),c.attachEvent("onreadystatechange",b(this.init_,this,c))}},init_:function(a){if(a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML"),a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML"),!a.styleSheets.ex_canvas_)var b=null,c="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}";try{b=a.createStyleSheet(),b.owningElement.id="ex_canvas_",b.cssText=c}catch(d){b=document.styleSheets[document.styleSheets.length-1],b.cssText+="\r\n"+c}for(var e=a.getElementsByTagName("canvas"),f=0;f<e.length;f++)this.initElement(e[f])},initElement:function(b){if(!b.getContext){b.getContext=a,b.innerHTML="",b.attachEvent("onpropertychange",c),b.attachEvent("onresize",d);var e=b.attributes;e.width&&e.width.specified?b.style.width=e.width.nodeValue+"px":b.width=b.clientWidth,e.height&&e.height.specified?b.style.height=e.height.nodeValue+"px":b.height=b.clientHeight}return b}};y.init();for(var z=[],A=0;16>A;A++)for(var B=0;16>B;B++)z[16*A+B]=A.toString(16)+B.toString(16);var C=j.prototype;C.clearRect=function(){this.element_.innerHTML=""},C.beginPath=function(){this.currentPath_=[]},C.moveTo=function(a,b){var c=this.getCoords_(a,b);this.currentPath_.push({type:"moveTo",x:c.x,y:c.y}),this.currentX_=c.x,this.currentY_=c.y},C.lineTo=function(a,b){var c=this.getCoords_(a,b);this.currentPath_.push({type:"lineTo",x:c.x,y:c.y}),this.currentX_=c.x,this.currentY_=c.y},C.bezierCurveTo=function(a,b,c,d,e,f){var g=this.getCoords_(e,f),h=this.getCoords_(a,b),i=this.getCoords_(c,d);k(this,h,i,g)},C.quadraticCurveTo=function(a,b,c,d){var e=this.getCoords_(a,b),f=this.getCoords_(c,d),g={x:this.currentX_+2/3*(e.x-this.currentX_),y:this.currentY_+2/3*(e.y-this.currentY_)},h={x:g.x+(f.x-this.currentX_)/3,y:g.y+(f.y-this.currentY_)/3};k(this,g,h,f)},C.arc=function(a,b,c,d,e,f){c*=v;var g=f?"at":"wa",h=a+s(d)*c-w,i=b+r(d)*c-w,j=a+s(e)*c-w,k=b+r(e)*c-w;h!=j||f||(h+=.125);var l=this.getCoords_(a,b),m=this.getCoords_(h,i),n=this.getCoords_(j,k);this.currentPath_.push({type:g,x:l.x,y:l.y,radius:c,xStart:m.x,yStart:m.y,xEnd:n.x,yEnd:n.y})},C.rect=function(a,b,c,d){this.moveTo(a,b),this.lineTo(a+c,b),this.lineTo(a+c,b+d),this.lineTo(a,b+d),this.closePath()},C.strokeRect=function(a,b,c,d){var e=this.currentPath_;this.beginPath(),this.moveTo(a,b),this.lineTo(a+c,b),this.lineTo(a+c,b+d),this.lineTo(a,b+d),this.closePath(),this.stroke(),this.currentPath_=e},C.fillRect=function(a,b,c,d){var e=this.currentPath_;this.beginPath(),this.moveTo(a,b),this.lineTo(a+c,b),this.lineTo(a+c,b+d),this.lineTo(a,b+d),this.closePath(),this.fill(),this.currentPath_=e},C.createLinearGradient=function(a,b,c,d){var e=new n("gradient");return e.x0_=a,e.y0_=b,e.x1_=c,e.y1_=d,e},C.createRadialGradient=function(a,b,c,d,e,f){var g=new n("gradientradial");return g.x0_=a,g.y0_=b,g.r0_=c,g.x1_=d,g.y1_=e,g.r1_=f,g},C.drawImage=function(a,b){var c,d,e,f,g,h,i,j,k=a.runtimeStyle.width,l=a.runtimeStyle.height;a.runtimeStyle.width="auto",a.runtimeStyle.height="auto";var m=a.width,n=a.height;if(a.runtimeStyle.width=k,a.runtimeStyle.height=l,3==arguments.length)c=arguments[1],d=arguments[2],g=h=0,i=e=m,j=f=n;else if(5==arguments.length)c=arguments[1],d=arguments[2],e=arguments[3],f=arguments[4],g=h=0,i=m,j=n;else{if(9!=arguments.length)throw Error("Invalid number of arguments");g=arguments[1],h=arguments[2],i=arguments[3],j=arguments[4],c=arguments[5],d=arguments[6],e=arguments[7],f=arguments[8]}var o=this.getCoords_(c,d),r=[],s=10,t=10;if(r.push(" <g_vml_:group",' coordsize="',v*s,",",v*t,'"',' coordorigin="0,0"',' style="width:',s,"px;height:",t,"px;position:absolute;"),1!=this.m_[0][0]||this.m_[0][1]){var u=[];u.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",q(o.x/v),",","Dy=",q(o.y/v),"");var w=o,x=this.getCoords_(c+e,d),y=this.getCoords_(c,d+f),z=this.getCoords_(c+e,d+f);w.x=p.max(w.x,x.x,y.x,z.x),w.y=p.max(w.y,x.y,y.y,z.y),r.push("padding:0 ",q(w.x/v),"px ",q(w.y/v),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",u.join(""),", sizingmethod='clip');")}else r.push("top:",q(o.y/v),"px;left:",q(o.x/v),"px;");r.push(' ">','<g_vml_:image src="',a.src,'"',' style="width:',v*e,"px;"," height:",v*f,'px;"',' cropleft="',g/m,'"',' croptop="',h/n,'"',' cropright="',(m-g-i)/m,'"',' cropbottom="',(n-h-j)/n,'"'," />","</g_vml_:group>"),this.element_.insertAdjacentHTML("BeforeEnd",r.join(""))},C.stroke=function(a){var b=[],c=h(a?this.fillStyle:this.strokeStyle),d=c.color,e=c.alpha*this.globalAlpha,f=10,g=10;b.push("<g_vml_:shape",' filled="',!!a,'"',' style="position:absolute;width:',f,"px;height:",g,'px;"',' coordorigin="0 0" coordsize="',v*f," ",v*g,'"',' stroked="',!a,'"',' path="');for(var j={x:null,y:null},k={x:null,y:null},l=0;l<this.currentPath_.length;l++){var m,n=this.currentPath_[l];switch(n.type){case"moveTo":m=n,b.push(" m ",q(n.x),",",q(n.y));break;case"lineTo":b.push(" l ",q(n.x),",",q(n.y));break;case"close":b.push(" x "),n=null;break;case"bezierCurveTo":b.push(" c ",q(n.cp1x),",",q(n.cp1y),",",q(n.cp2x),",",q(n.cp2y),",",q(n.x),",",q(n.y));break;case"at":case"wa":b.push(" ",n.type," ",q(n.x-this.arcScaleX_*n.radius),",",q(n.y-this.arcScaleY_*n.radius)," ",q(n.x+this.arcScaleX_*n.radius),",",q(n.y+this.arcScaleY_*n.radius)," ",q(n.xStart),",",q(n.yStart)," ",q(n.xEnd),",",q(n.yEnd))}n&&((null==j.x||n.x<j.x)&&(j.x=n.x),(null==k.x||n.x>k.x)&&(k.x=n.x),(null==j.y||n.y<j.y)&&(j.y=n.y),(null==k.y||n.y>k.y)&&(k.y=n.y))}if(b.push(' ">'),a)if("object"==typeof this.fillStyle){var o=this.fillStyle,r=0,s={x:0,y:0},t=0,u=1;if("gradient"==o.type_){var w=o.x0_/this.arcScaleX_,x=o.y0_/this.arcScaleY_,y=o.x1_/this.arcScaleX_,z=o.y1_/this.arcScaleY_,A=this.getCoords_(w,x),B=this.getCoords_(y,z),C=B.x-A.x,D=B.y-A.y;r=180*Math.atan2(C,D)/Math.PI,0>r&&(r+=360),1e-6>r&&(r=0)}else{var A=this.getCoords_(o.x0_,o.y0_),E=k.x-j.x,F=k.y-j.y;s={x:(A.x-j.x)/E,y:(A.y-j.y)/F},E/=this.arcScaleX_*v,F/=this.arcScaleY_*v;var G=p.max(E,F);t=2*o.r0_/G,u=2*o.r1_/G-t}var H=o.colors_;H.sort(function(a,b){return a.offset-b.offset});for(var I=H.length,J=H[0].color,K=H[I-1].color,L=H[0].alpha*this.globalAlpha,M=H[I-1].alpha*this.globalAlpha,N=[],l=0;I>l;l++){var O=H[l];N.push(O.offset*u+t+" "+O.color)}b.push('<g_vml_:fill type="',o.type_,'"',' method="none" focus="100%"',' color="',J,'"',' color2="',K,'"',' colors="',N.join(","),'"',' opacity="',M,'"',' g_o_:opacity2="',L,'"',' angle="',r,'"',' focusposition="',s.x,",",s.y,'" />')}else b.push('<g_vml_:fill color="',d,'" opacity="',e,'" />');else{var P=this.lineScale_*this.lineWidth;1>P&&(e*=P),b.push("<g_vml_:stroke",' opacity="',e,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',i(this.lineCap),'"',' weight="',P,'px"',' color="',d,'" />')}b.push("</g_vml_:shape>"),this.element_.insertAdjacentHTML("beforeEnd",b.join(""))},C.fill=function(){this.stroke(!0)},C.closePath=function(){this.currentPath_.push({type:"close"})},C.getCoords_=function(a,b){var c=this.m_;return{x:v*(a*c[0][0]+b*c[1][0]+c[2][0])-w,y:v*(a*c[0][1]+b*c[1][1]+c[2][1])-w}},C.save=function(){var a={};g(this,a),this.aStack_.push(a),this.mStack_.push(this.m_),this.m_=f(e(),this.m_)},C.restore=function(){g(this.aStack_.pop(),this),this.m_=this.mStack_.pop()},C.translate=function(a,b){var c=[[1,0,0],[0,1,0],[a,b,1]];m(this,f(c,this.m_),!1)},C.rotate=function(a){var b=s(a),c=r(a),d=[[b,c,0],[-c,b,0],[0,0,1]];m(this,f(d,this.m_),!1)},C.scale=function(a,b){this.arcScaleX_*=a,this.arcScaleY_*=b;var c=[[a,0,0],[0,b,0],[0,0,1]];m(this,f(c,this.m_),!0)},C.transform=function(a,b,c,d,e,g){var h=[[a,b,0],[c,d,0],[e,g,1]];m(this,f(h,this.m_),!0)},C.setTransform=function(a,b,c,d,e,f){var g=[[a,b,0],[c,d,0],[e,f,1]];m(this,g,!0)},C.clip=function(){},C.arcTo=function(){},C.createPattern=function(){return new o},n.prototype.addColorStop=function(a,b){b=h(b),this.colors_.push({offset:a,color:b.color,alpha:b.alpha})},G_vmlCanvasManager=y,CanvasRenderingContext2D=j,CanvasGradient=n,CanvasPattern=o}();var Froogaloop=function(){function a(b){return new a.fn.init(b)}function b(a,b,c){if(!c.contentWindow.postMessage)return!1;var d=c.getAttribute("src").split("?")[0],e=JSON.stringify({method:a,value:b});"//"===d.substr(0,2)&&(d=window.location.protocol+d),c.contentWindow.postMessage(e,d)}function c(a){var b,c;try{b=JSON.parse(a.data),c=b.event||b.method}catch(d){}if("ready"!=c||j||(j=!0),a.origin!=k)return!1;var f=b.value,g=b.data,h=""===h?null:b.player_id,i=e(c,h),l=[];return i?(void 0!==f&&l.push(f),g&&l.push(g),h&&l.push(h),l.length>0?i.apply(null,l):i.call()):!1}function d(a,b,c){c?(i[c]||(i[c]={}),i[c][a]=b):i[a]=b}function e(a,b){return b?i[b][a]:i[a]}function f(a,b){if(b&&i[b]){if(!i[b][a])return!1;i[b][a]=null}else{if(!i[a])return!1;i[a]=null}return!0}function g(a){"//"===a.substr(0,2)&&(a=window.location.protocol+a);for(var b=a.split("/"),c="",d=0,e=b.length;e>d&&3>d;d++)c+=b[d],2>d&&(c+="/");return c}function h(a){return!!(a&&a.constructor&&a.call&&a.apply)}var i={},j=!1,k=(Array.prototype.slice,"");return a.fn=a.prototype={element:null,init:function(a){return"string"==typeof a&&(a=document.getElementById(a)),this.element=a,k=g(this.element.getAttribute("src")),this},api:function(a,c){if(!this.element||!a)return!1;var e=this,f=e.element,g=""!==f.id?f.id:null,i=h(c)?null:c,j=h(c)?c:null;return j&&d(a,j,g),b(a,i,f),e},addEvent:function(a,c){if(!this.element)return!1;var e=this,f=e.element,g=""!==f.id?f.id:null;return d(a,c,g),"ready"!=a?b("addEventListener",a,f):"ready"==a&&j&&c.call(null,g),e},removeEvent:function(a){if(!this.element)return!1;var c=this,d=c.element,e=""!==d.id?d.id:null,g=f(a,e);"ready"!=a&&g&&b("removeEventListener",a,d)}},a.fn.init.prototype=a.fn,window.addEventListener?window.addEventListener("message",c,!1):window.attachEvent("onmessage",c),window.Froogaloop=window.$f=a}();(function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}).call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"===m.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0,d=a.length;d>c;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a){this.src=a,n[a]=this}var j=a.jQuery,k=a.console,l="undefined"!=typeof k,m=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0,b=this.elements.length;b>a;a++){var c=this.elements[a];"IMG"===c.nodeName&&this.addImage(c);var d=c.nodeType;if(d&&(1===d||9===d||11===d))for(var e=c.querySelectorAll("img"),f=0,g=e.length;g>f;f++){var h=e[f];this.addImage(h)}}},g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.check=function(){function a(a,e){return b.options.debug&&l&&k.log("confirm",a,e),b.progress(a),c++,c===d&&b.complete(),!0}var b=this,c=0,d=this.images.length;if(this.hasAnyBroken=!1,!d)return void this.complete();for(var e=0;d>e;e++){var f=this.images[e];f.on("confirm",a),f.check()}},g.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded;var b=this;setTimeout(function(){b.emit("progress",b,a),b.jqDeferred&&b.jqDeferred.notify&&b.jqDeferred.notify(b,a)})},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var b=this;setTimeout(function(){if(b.emit(a,b),b.emit("always",b),b.jqDeferred){var c=b.hasAnyBroken?"reject":"resolve";b.jqDeferred[c](b)}})},j&&(j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))}),h.prototype=new b,h.prototype.check=function(){var a=n[this.img.src]||new i(this.img.src);if(a.isConfirmed)return void this.confirm(a.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var b=this;a.on("confirm",function(a,c){return b.confirm(a.isLoaded,c),!0}),a.check()},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("confirm",this,b)};var n={};return i.prototype=new b,i.prototype.check=function(){if(!this.isChecked){var a=new Image;c.bind(a,"load",this),c.bind(a,"error",this),a.src=this.src,this.isChecked=!0}},i.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},i.prototype.onload=function(a){this.confirm(!0,"onload"),this.unbindProxyEvents(a)},i.prototype.onerror=function(a){this.confirm(!1,"onerror"),this.unbindProxyEvents(a)},i.prototype.confirm=function(a,b){this.isConfirmed=!0,this.isLoaded=a,this.emit("confirm",this,b)},i.prototype.unbindProxyEvents=function(a){c.unbind(a.target,"load",this),c.unbind(a.target,"error",this)},g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(c){b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("jquery")):a.jQueryBridget=b(a,a.jQuery)}(window,function(a,b){"use strict";function c(c,f,h){function i(a,b,d){var e,f="$()."+c+'("'+b+'")';return a.each(function(a,i){var j=h.data(i,c);if(!j)return void g(c+" not initialized. Cannot call methods, i.e. "+f);var k=j[b];if(!k||"_"==b.charAt(0))return void g(f+" is not a valid method");var l=k.apply(j,d);e=void 0===e?l:e}),void 0!==e?e:a}function j(a,b){a.each(function(a,d){var e=h.data(d,c);e?(e.option(b),e._init()):(e=new f(d,b),h.data(d,c,e))})}h=h||b||a.jQuery,h&&(f.prototype.option||(f.prototype.option=function(a){h.isPlainObject(a)&&(this.options=h.extend(!0,this.options,a))}),h.fn[c]=function(a){if("string"==typeof a){var b=e.call(arguments,1);return i(this,a,b)}return j(this,a),this},d(h))}function d(a){!a||a&&a.bridget||(a.bridget=c)}var e=Array.prototype.slice,f=a.console,g="undefined"==typeof f?function(){}:function(a){f.error(a)};return d(b||a.jQuery),c}),function(a,b){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",b):"object"==typeof module&&module.exports?module.exports=b():a.EvEmitter=b()}(this,function(){function a(){}var b=a.prototype;return b.on=function(a,b){if(a&&b){var c=this._events=this._events||{},d=c[a]=c[a]||[];return-1==d.indexOf(b)&&d.push(b),this}},b.once=function(a,b){if(a&&b){this.on(a,b);var c=this._onceEvents=this._onceEvents||{},d=c[a]=c[a]||{};return d[b]=!0,this}},b.off=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=c.indexOf(b);return-1!=d&&c.splice(d,1),this}},b.emitEvent=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=0,e=c[d];b=b||[];for(var f=this._onceEvents&&this._onceEvents[a];e;){var g=f&&f[e];g&&(this.off(a,e),delete f[e]),e.apply(this,b),d+=g?0:1,e=c[d]}return this}},a}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return b()}):"object"==typeof module&&module.exports?module.exports=b():a.getSize=b()}(window,function(){"use strict";function a(a){var b=parseFloat(a),c=-1==a.indexOf("%")&&!isNaN(b);return c&&b}function b(){}function c(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0;j>b;b++){var c=i[b];a[c]=0}return a}function d(a){var b=getComputedStyle(a);return b||h("Style returned "+b+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),b}function e(){if(!k){k=!0;var b=document.createElement("div");b.style.width="200px",b.style.padding="1px 2px 3px 4px",b.style.borderStyle="solid",b.style.borderWidth="1px 2px 3px 4px",b.style.boxSizing="border-box";var c=document.body||document.documentElement;c.appendChild(b);var e=d(b);f.isBoxSizeOuter=g=200==a(e.width),c.removeChild(b)}}function f(b){if(e(),"string"==typeof b&&(b=document.querySelector(b)),b&&"object"==typeof b&&b.nodeType){var f=d(b);if("none"==f.display)return c();var h={};h.width=b.offsetWidth,h.height=b.offsetHeight;for(var k=h.isBorderBox="border-box"==f.boxSizing,l=0;j>l;l++){var m=i[l],n=f[m],o=parseFloat(n);h[m]=isNaN(o)?0:o}var p=h.paddingLeft+h.paddingRight,q=h.paddingTop+h.paddingBottom,r=h.marginLeft+h.marginRight,s=h.marginTop+h.marginBottom,t=h.borderLeftWidth+h.borderRightWidth,u=h.borderTopWidth+h.borderBottomWidth,v=k&&g,w=a(f.width);w!==!1&&(h.width=w+(v?0:p+t));var x=a(f.height);return x!==!1&&(h.height=x+(v?0:q+u)),h.innerWidth=h.width-(p+t),h.innerHeight=h.height-(q+u),h.outerWidth=h.width+r,h.outerHeight=h.height+s,h}}var g,h="undefined"==typeof console?b:function(a){},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],j=i.length,k=!1;return f}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",b):"object"==typeof module&&module.exports?module.exports=b():a.matchesSelector=b()}(window,function(){"use strict";var a=function(){var a=Element.prototype;if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0;c<b.length;c++){var d=b[c],e=d+"MatchesSelector";if(a[e])return e;
}}();return function(b,c){return b[a](c)}}),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.matchesSelector)}(window,function(a,b){var c={};c.extend=function(a,b){for(var c in b)a[c]=b[c];return a},c.modulo=function(a,b){return(a%b+b)%b},c.makeArray=function(a){var b=[];if(Array.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b},c.removeFrom=function(a,b){var c=a.indexOf(b);-1!=c&&a.splice(c,1)},c.getParent=function(a,c){for(;a!=document.body;)if(a=a.parentNode,b(a,c))return a},c.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},c.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},c.filterFindElements=function(a,d){a=c.makeArray(a);var e=[];return a.forEach(function(a){if(a instanceof HTMLElement){if(!d)return void e.push(a);b(a,d)&&e.push(a);for(var c=a.querySelectorAll(d),f=0;f<c.length;f++)e.push(c[f])}}),e},c.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},c.docReady=function(a){"complete"==document.readyState?a():document.addEventListener("DOMContentLoaded",a)},c.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var d=a.console;return c.htmlInit=function(b,e){c.docReady(function(){var f=c.toDashed(e),g="data-"+f,h=document.querySelectorAll("["+g+"]"),i=document.querySelectorAll(".js-"+f),j=c.makeArray(h).concat(c.makeArray(i)),k=g+"-options",l=a.jQuery;j.forEach(function(a){var c,f=a.getAttribute(g)||a.getAttribute(k);try{c=f&&JSON.parse(f)}catch(h){return void(d&&d.error("Error parsing "+g+" on "+a.className+": "+h))}var i=new b(a,c);l&&l.data(a,e,i)})})},c}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],b):"object"==typeof module&&module.exports?module.exports=b(require("ev-emitter"),require("get-size")):(a.Outlayer={},a.Outlayer.Item=b(a.EvEmitter,a.getSize))}(window,function(a,b){"use strict";function c(a){for(var b in a)return!1;return b=null,!0}function d(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function e(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var f=document.documentElement.style,g="string"==typeof f.transition?"transition":"WebkitTransition",h="string"==typeof f.transform?"transform":"WebkitTransform",i={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[g],j={transform:h,transition:g,transitionDuration:g+"Duration",transitionProperty:g+"Property",transitionDelay:g+"Delay"},k=d.prototype=Object.create(a.prototype);k.constructor=d,k._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},k.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},k.getSize=function(){this.size=b(this.element)},k.css=function(a){var b=this.element.style;for(var c in a){var d=j[c]||c;b[d]=a[c]}},k.getPosition=function(){var a=getComputedStyle(this.element),b=this.layout._getOption("originLeft"),c=this.layout._getOption("originTop"),d=a[b?"left":"right"],e=a[c?"top":"bottom"],f=this.layout.size,g=-1!=d.indexOf("%")?parseFloat(d)/100*f.width:parseInt(d,10),h=-1!=e.indexOf("%")?parseFloat(e)/100*f.height:parseInt(e,10);g=isNaN(g)?0:g,h=isNaN(h)?0:h,g-=b?f.paddingLeft:f.paddingRight,h-=c?f.paddingTop:f.paddingBottom,this.position.x=g,this.position.y=h},k.layoutPosition=function(){var a=this.layout.size,b={},c=this.layout._getOption("originLeft"),d=this.layout._getOption("originTop"),e=c?"paddingLeft":"paddingRight",f=c?"left":"right",g=c?"right":"left",h=this.position.x+a[e];b[f]=this.getXValue(h),b[g]="";var i=d?"paddingTop":"paddingBottom",j=d?"top":"bottom",k=d?"bottom":"top",l=this.position.y+a[i];b[j]=this.getYValue(l),b[k]="",this.css(b),this.emitEvent("layout",[this])},k.getXValue=function(a){var b=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!b?a/this.layout.size.width*100+"%":a+"px"},k.getYValue=function(a){var b=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&b?a/this.layout.size.height*100+"%":a+"px"},k._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},k.getTranslate=function(a,b){var c=this.layout._getOption("originLeft"),d=this.layout._getOption("originTop");return a=c?a:-a,b=d?b:-b,"translate3d("+a+"px, "+b+"px, 0)"},k.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},k.moveTo=k._transitionTo,k.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},k._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},k.transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var l="opacity,"+e(h);k.enableTransition=function(){if(!this.isTransitioning){var a=this.layout.options.transitionDuration;a="number"==typeof a?a+"ms":a,this.css({transitionProperty:l,transitionDuration:a,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(i,this,!1)}},k.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},k.onotransitionend=function(a){this.ontransitionend(a)};var m={"-webkit-transform":"transform"};k.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,d=m[a.propertyName]||a.propertyName;if(delete b.ingProperties[d],c(b.ingProperties)&&this.disableTransition(),d in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[d]),d in b.onEnd){var e=b.onEnd[d];e.call(this),delete b.onEnd[d]}this.emitEvent("transitionEnd",[this])}},k.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(i,this,!1),this.isTransitioning=!1},k._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var n={transitionProperty:"",transitionDuration:"",transitionDelay:""};return k.removeTransitionStyles=function(){this.css(n)},k.stagger=function(a){a=isNaN(a)?0:a,this.staggerDelay=a+"ms"},k.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},k.remove=function(){return g&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},k.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},k.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},k.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},k.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},k.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},k.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.EvEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e){"use strict";function f(a,b){var c=d.getQueryElement(a);if(!c)return void(i&&i.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,j&&(this.$element=j(this.element)),this.options=d.extend({},this.constructor.defaults),this.option(b);var e=++l;this.element.outlayerGUID=e,m[e]=this,this._create();var f=this._getOption("initLayout");f&&this.layout()}function g(a){function b(){a.apply(this,arguments)}return b.prototype=Object.create(a.prototype),b.prototype.constructor=b,b}function h(a){if("number"==typeof a)return a;var b=a.match(/(^\d*\.?\d*)(\w*)/),c=b&&b[1],d=b&&b[2];if(!c.length)return 0;c=parseFloat(c);var e=o[d]||1;return c*e}var i=a.console,j=a.jQuery,k=function(){},l=0,m={};f.namespace="outlayer",f.Item=e,f.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var n=f.prototype;d.extend(n,b.prototype),n.option=function(a){d.extend(this.options,a)},n._getOption=function(a){var b=this.constructor.compatOptions[a];return b&&void 0!==this.options[b]?this.options[b]:this.options[a]},f.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},n._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),d.extend(this.element.style,this.options.containerStyle);var a=this._getOption("resize");a&&this.bindResize()},n.reloadItems=function(){this.items=this._itemize(this.element.children)},n._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0;e<b.length;e++){var f=b[e],g=new c(f,this);d.push(g)}return d},n._filterFindItemElements=function(a){return d.filterFindElements(a,this.options.itemSelector)},n.getItemElements=function(){return this.items.map(function(a){return a.element})},n.layout=function(){this._resetLayout(),this._manageStamps();var a=this._getOption("layoutInstant"),b=void 0!==a?a:!this._isLayoutInited;this.layoutItems(this.items,b),this._isLayoutInited=!0},n._init=n.layout,n._resetLayout=function(){this.getSize()},n.getSize=function(){this.size=c(this.element)},n._getMeasurement=function(a,b){var d,e=this.options[a];e?("string"==typeof e?d=this.element.querySelector(e):e instanceof HTMLElement&&(d=e),this[a]=d?c(d)[b]:e):this[a]=0},n.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},n._getItemsForLayout=function(a){return a.filter(function(a){return!a.isIgnored})},n._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){var c=[];a.forEach(function(a){var d=this._getItemLayoutPosition(a);d.item=a,d.isInstant=b||a.isLayoutInstant,c.push(d)},this),this._processLayoutQueue(c)}},n._getItemLayoutPosition=function(){return{x:0,y:0}},n._processLayoutQueue=function(a){this.updateStagger(),a.forEach(function(a,b){this._positionItem(a.item,a.x,a.y,a.isInstant,b)},this)},n.updateStagger=function(){var a=this.options.stagger;return null===a||void 0===a?void(this.stagger=0):(this.stagger=h(a),this.stagger)},n._positionItem=function(a,b,c,d,e){d?a.goTo(b,c):(a.stagger(e*this.stagger),a.moveTo(b,c))},n._postLayout=function(){this.resizeContainer()},n.resizeContainer=function(){var a=this._getOption("resizeContainer");if(a){var b=this._getContainerSize();b&&(this._setContainerMeasure(b.width,!0),this._setContainerMeasure(b.height,!1))}},n._getContainerSize=k,n._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},n._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g==f&&c()}var e=this,f=b.length;if(!b||!f)return void c();var g=0;b.forEach(function(b){b.once(a,d)})},n.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),j)if(this.$element=this.$element||j(this.element),b){var e=j.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},n.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},n.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},n.stamp=function(a){a=this._find(a),a&&(this.stamps=this.stamps.concat(a),a.forEach(this.ignore,this))},n.unstamp=function(a){a=this._find(a),a&&a.forEach(function(a){d.removeFrom(this.stamps,a),this.unignore(a)},this)},n._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=d.makeArray(a)):void 0},n._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},n._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},n._manageStamp=k,n._getElementOffset=function(a){var b=a.getBoundingClientRect(),d=this._boundingRect,e=c(a),f={left:b.left-d.left-e.marginLeft,top:b.top-d.top-e.marginTop,right:d.right-b.right-e.marginRight,bottom:d.bottom-b.bottom-e.marginBottom};return f},n.handleEvent=d.handleEvent,n.bindResize=function(){a.addEventListener("resize",this),this.isResizeBound=!0},n.unbindResize=function(){a.removeEventListener("resize",this),this.isResizeBound=!1},n.onresize=function(){this.resize()},d.debounceMethod(f,"onresize",100),n.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},n.needsResizeLayout=function(){var a=c(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},n.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},n.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},n.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},n.reveal=function(a){if(this._emitCompleteOnItems("reveal",a),a&&a.length){var b=this.updateStagger();a.forEach(function(a,c){a.stagger(c*b),a.reveal()})}},n.hide=function(a){if(this._emitCompleteOnItems("hide",a),a&&a.length){var b=this.updateStagger();a.forEach(function(a,c){a.stagger(c*b),a.hide()})}},n.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},n.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},n.getItem=function(a){for(var b=0;b<this.items.length;b++){var c=this.items[b];if(c.element==a)return c}},n.getItems=function(a){a=d.makeArray(a);var b=[];return a.forEach(function(a){var c=this.getItem(a);c&&b.push(c)},this),b},n.remove=function(a){var b=this.getItems(a);this._emitCompleteOnItems("remove",b),b&&b.length&&b.forEach(function(a){a.remove(),d.removeFrom(this.items,a)},this)},n.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="",this.items.forEach(function(a){a.destroy()}),this.unbindResize();var b=this.element.outlayerGUID;delete m[b],delete this.element.outlayerGUID,j&&j.removeData(this.element,this.constructor.namespace)},f.data=function(a){a=d.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&m[b]},f.create=function(a,b){var c=g(f);return c.defaults=d.extend({},f.defaults),d.extend(c.defaults,b),c.compatOptions=d.extend({},f.compatOptions),c.namespace=a,c.data=f.data,c.Item=g(e),d.htmlInit(c,a),j&&j.bridget&&j.bridget(a,c),c};var o={ms:1,s:1e3};return f.Item=e,f}),function(a,b){"function"==typeof define&&define.amd?define("isotope/item",["outlayer/outlayer"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window,function(a){"use strict";function b(){a.Item.apply(this,arguments)}var c=b.prototype=Object.create(a.Item.prototype),d=c._create;c._create=function(){this.id=this.layout.itemGUID++,d.call(this),this.sortData={}},c.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var e=c.destroy;return c.destroy=function(){e.apply(this,arguments),this.css({display:""})},b}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof module&&module.exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window,function(a,b){"use strict";function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}var d=c.prototype,e=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return e.forEach(function(a){d[a]=function(){return b.prototype[a].apply(this.isotope,arguments)}}),d.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!=this.isotope.size.innerHeight},d._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},d.getColumnWidth=function(){this.getSegmentSize("column","Width")},d.getRowHeight=function(){this.getSegmentSize("row","Height")},d.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},d.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},d.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},d.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function e(){c.apply(this,arguments)}return e.prototype=Object.create(d),e.prototype.constructor=e,b&&(e.options=b),e.prototype.namespace=a,c.modes[a]=e,e},c}),function(a,b){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer"),require("get-size")):a.Masonry=b(a.Outlayer,a.getSize)}(window,function(a,b){var c=a.create("masonry");return c.compatOptions.fitWidth="isFitWidth",c.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var a=0;a<this.cols;a++)this.colYs.push(0);this.maxY=0},c.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},c.prototype.getContainerWidth=function(){var a=this._getOption("fitWidth"),c=a?this.element.parentNode:this.element,d=b(c);this.containerWidth=d&&d.innerWidth},c.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,c=b&&1>b?"round":"ceil",d=Math[c](a.size.outerWidth/this.columnWidth);d=Math.min(d,this.cols);for(var e=this._getColGroup(d),f=Math.min.apply(Math,e),g=e.indexOf(f),h={x:this.columnWidth*g,y:f},i=f+a.size.outerHeight,j=this.cols+1-e.length,k=0;j>k;k++)this.colYs[g+k]=i;return h},c.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},c.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this._getOption("originLeft"),f=e?d.left:d.right,g=f+c.outerWidth,h=Math.floor(f/this.columnWidth);h=Math.max(0,h);var i=Math.floor(g/this.columnWidth);i-=g%this.columnWidth?0:1,i=Math.min(this.cols-1,i);for(var j=this._getOption("originTop"),k=(j?d.top:d.bottom)+c.outerHeight,l=h;i>=l;l++)this.colYs[l]=Math.max(k,this.colYs[l])},c.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this._getOption("fitWidth")&&(a.width=this._getContainerFitWidth()),a},c.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},c.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!=this.containerWidth},c}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-modes/masonry",["../layout-mode","masonry/masonry"],b):"object"==typeof module&&module.exports?module.exports=b(require("../layout-mode"),require("masonry-layout")):b(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,b){"use strict";var c=a.create("masonry"),d=c.prototype,e={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var f in b.prototype)e[f]||(d[f]=b.prototype[f]);var g=d.measureColumns;d.measureColumns=function(){this.items=this.isotope.filteredItems,g.call(this)};var h=d._getOption;return d._getOption=function(a){return"fitWidth"==a?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:h.apply(this.isotope,arguments)},c}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows"),c=b.prototype;return c._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},c._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},c._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"function"==typeof define&&define.amd?define("isotope/layout-modes/vertical",["../layout-mode"],b):"object"==typeof module&&module.exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0}),c=b.prototype;return c._resetLayout=function(){this.y=0},c._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},c._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","./item","./layout-mode","./layout-modes/masonry","./layout-modes/fit-rows","./layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof module&&module.exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0;e<a.length;e++){var f=a[e],g=c.sortData[f],h=d.sortData[f];if(g>h||h>g){var i=void 0!==b[f]?b[f]:b,j=i?1:-1;return(g>h?1:-1)*j}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});k.Item=f,k.LayoutMode=g;var l=k.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},l.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},l._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0;c<a.length;c++){var d=a[c];d.id=this.itemGUID++}return this._updateItemsSortData(a),a},l._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},l.arrange=function(a){this.option(a),this._getIsInstant();var b=this._filter(this.items);this.filteredItems=b.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[b]):this._hideReveal(b),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(a){this.reveal(a.needReveal),this.hide(a.needHide)},l._getIsInstant=function(){var a=this._getOption("layoutInstant"),b=void 0!==a?a:!this._isLayoutInited;return this._isInstant=b,b},l._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},l._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getFilterTest(b),g=0;g<a.length;g++){var h=a[g];if(!h.isIgnored){var i=f(h);i&&c.push(h),i&&h.isHidden?d.push(h):i||h.isHidden||e.push(h)}}return{matches:c,needReveal:d,needHide:e}},l._getFilterTest=function(a){return i&&this.options.isJQueryFiltering?function(b){return i(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return d(b.element,a)}},l.updateSortData=function(a){var b;a?(a=e.makeArray(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},l._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=m(c)}},l._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.updateSortData()}};var m=function(){function a(a){if("string"!=typeof a)return a;var c=j(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),h=k.sortDataParsers[c[1]];return a=h?function(a){return a&&h(g(a))}:function(a){return a&&g(a)}}function b(a,b){return a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&c.textContent}}return a}();k.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},l._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=h(b,this.options.sortAscending);this.filteredItems.sort(c),a!=this.sortHistory[0]&&this.sortHistory.unshift(a)}},l._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},l._resetLayout=function(){b.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},l._manageStamp=function(a){this._mode()._manageStamp(a)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},l.prepended=function(a){var b=this._itemize(a);if(b.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(b);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=b.concat(this.items)}},l._filterRevealAdded=function(a){var b=this._filter(a);return this.hide(b.needHide),this.reveal(b.matches),this.layoutItems(b.matches,!0),b.matches},l.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b).matches;for(c=0;e>c;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;e>c;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var n=l.remove;return l.remove=function(a){a=e.makeArray(a);var b=this.getItems(a);n.call(this,a);for(var c=b&&b.length,d=0;c&&c>d;d++){var f=b[d];e.removeFrom(this.filteredItems,f)}},l.shuffle=function(){for(var a=0;a<this.items.length;a++){var b=this.items[a];b.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(a,b){var c=this.options.transitionDuration;this.options.transitionDuration=0;var d=a.apply(this,b);return this.options.transitionDuration=c,d},l.getFilteredItemElements=function(){return this.filteredItems.map(function(a){return a.element})},k}),function(a){a.fn.appear=function(b,c){var d=a.extend({data:void 0,one:!0,accX:0,accY:0},c);return this.each(function(){var c=a(this);if(c.appeared=!1,!b)return void c.trigger("appear",d.data);var e=a(window),f=function(){if(!c.is(":visible"))return void(c.appeared=!1);var a=e.scrollLeft(),b=e.scrollTop(),f=c.offset(),g=f.left,h=f.top,i=d.accX,j=d.accY,k=c.height(),l=e.height(),m=c.width(),n=e.width();h+k+j>=b&&b+l+j>=h&&g+m+i>=a&&a+n+i>=g?c.appeared||c.trigger("appear",d.data):c.appeared=!1},g=function(){if(c.appeared=!0,d.one){e.unbind("scroll",f);var g=a.inArray(f,a.fn.appear.checks);g>=0&&a.fn.appear.checks.splice(g,1)}b.apply(this,arguments)};d.one?c.one("appear",d.data,g):c.bind("appear",d.data,g),e.scroll(f),a.fn.appear.checks.push(f),f()})},a.extend(a.fn.appear,{checks:[],timeout:null,checkAll:function(){var b=a.fn.appear.checks.length;if(b>0)for(;b--;)a.fn.appear.checks[b]()},run:function(){a.fn.appear.timeout&&clearTimeout(a.fn.appear.timeout),a.fn.appear.timeout=setTimeout(a.fn.appear.checkAll,20)}}),a.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(b,c){var d=a.fn[c];d&&(a.fn[c]=function(){var b=d.apply(this,arguments);return a.fn.appear.run(),b})})}(jQuery),function(a){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(b){return!b||void 0!==b.allowPageScroll||void 0===b.swipe&&void 0===b.swipeStatus||(b.allowPageScroll=j),void 0!==b.click&&void 0===b.tap&&(b.tap=b.click),b||(b={}),b=a.extend({},a.fn.swipe.defaults,b),this.each(function(){var d=a(this),e=d.data(B);e||(e=new c(this,b),d.data(B,e))})}function c(b,c){function C(b){if(!(ja()||a(b.target).closest(c.excludedElements,Sa).length>0)){var d,e=b.originalEvent?b.originalEvent:b,f=y?e.touches[0]:e;return Ta=u,y?Ua=e.touches.length:b.preventDefault(),Ja=0,Ka=null,Qa=null,La=0,Ma=0,Na=0,Oa=1,Pa=0,Va=oa(),Ra=ra(),ha(),!y||Ua===c.fingers||c.fingers===s||R()?(la(0,f),Wa=Aa(),2==Ua&&(la(1,e.touches[1]),Ma=Na=ua(Va[0].start,Va[1].start)),
(c.swipeStatus||c.pinchStatus)&&(d=J(e,Ta))):d=!1,d===!1?(Ta=x,J(e,Ta),d):(c.hold&&(ab=setTimeout(a.proxy(function(){Sa.trigger("hold",[e.target]),c.hold&&(d=c.hold.call(Sa,e,e.target))},this),c.longTapThreshold)),ka(!0),null)}}function D(a){var b=a.originalEvent?a.originalEvent:a;if(Ta!==w&&Ta!==x&&!ia()){var d,e=y?b.touches[0]:b,f=ma(e);if(Xa=Aa(),y&&(Ua=b.touches.length),c.hold&&clearTimeout(ab),Ta=v,2==Ua&&(0==Ma?(la(1,b.touches[1]),Ma=Na=ua(Va[0].start,Va[1].start)):(ma(b.touches[1]),Na=ua(Va[0].end,Va[1].end),Qa=wa(Va[0].end,Va[1].end)),Oa=va(Ma,Na),Pa=Math.abs(Ma-Na)),Ua===c.fingers||c.fingers===s||!y||R()){if(Ka=za(f.start,f.end),P(a,Ka),Ja=xa(f.start,f.end),La=ta(),pa(Ka,Ja),(c.swipeStatus||c.pinchStatus)&&(d=J(b,Ta)),!c.triggerOnTouchEnd||c.triggerOnTouchLeave){var g=!0;if(c.triggerOnTouchLeave){var h=Ba(this);g=Ca(f.end,h)}!c.triggerOnTouchEnd&&g?Ta=I(v):c.triggerOnTouchLeave&&!g&&(Ta=I(w)),(Ta==x||Ta==w)&&J(b,Ta)}}else Ta=x,J(b,Ta);d===!1&&(Ta=x,J(b,Ta))}}function E(a){var b=a.originalEvent;return y&&b.touches.length>0?(ga(),!0):(ia()&&(Ua=Za),Xa=Aa(),La=ta(),M()||!L()?(Ta=x,J(b,Ta)):c.triggerOnTouchEnd||0==c.triggerOnTouchEnd&&Ta===v?(a.preventDefault(),Ta=w,J(b,Ta)):!c.triggerOnTouchEnd&&Y()?(Ta=w,K(b,Ta,n)):Ta===v&&(Ta=x,J(b,Ta)),ka(!1),null)}function F(){Ua=0,Xa=0,Wa=0,Ma=0,Na=0,Oa=1,ha(),ka(!1)}function G(a){var b=a.originalEvent;c.triggerOnTouchLeave&&(Ta=I(w),J(b,Ta))}function H(){Sa.unbind(Ea,C),Sa.unbind(Ia,F),Sa.unbind(Fa,D),Sa.unbind(Ga,E),Ha&&Sa.unbind(Ha,G),ka(!1)}function I(a){var b=a,d=O(),e=L(),f=M();return!d||f?b=x:!e||a!=v||c.triggerOnTouchEnd&&!c.triggerOnTouchLeave?!e&&a==w&&c.triggerOnTouchLeave&&(b=x):b=w,b}function J(a,b){var c=void 0;return V()||U()?c=K(a,b,l):(S()||R())&&c!==!1&&(c=K(a,b,m)),ea()&&c!==!1?c=K(a,b,o):fa()&&c!==!1?c=K(a,b,p):da()&&c!==!1&&(c=K(a,b,n)),b===x&&F(a),b===w&&(y?0==a.touches.length&&F(a):F(a)),c}function K(b,j,k){var q=void 0;if(k==l){if(Sa.trigger("swipeStatus",[j,Ka||null,Ja||0,La||0,Ua,Va]),c.swipeStatus&&(q=c.swipeStatus.call(Sa,b,j,Ka||null,Ja||0,La||0,Ua,Va),q===!1))return!1;if(j==w&&T()){if(Sa.trigger("swipe",[Ka,Ja,La,Ua,Va]),c.swipe&&(q=c.swipe.call(Sa,b,Ka,Ja,La,Ua,Va),q===!1))return!1;switch(Ka){case d:Sa.trigger("swipeLeft",[Ka,Ja,La,Ua,Va]),c.swipeLeft&&(q=c.swipeLeft.call(Sa,b,Ka,Ja,La,Ua,Va));break;case e:Sa.trigger("swipeRight",[Ka,Ja,La,Ua,Va]),c.swipeRight&&(q=c.swipeRight.call(Sa,b,Ka,Ja,La,Ua,Va));break;case f:Sa.trigger("swipeUp",[Ka,Ja,La,Ua,Va]),c.swipeUp&&(q=c.swipeUp.call(Sa,b,Ka,Ja,La,Ua,Va));break;case g:Sa.trigger("swipeDown",[Ka,Ja,La,Ua,Va]),c.swipeDown&&(q=c.swipeDown.call(Sa,b,Ka,Ja,La,Ua,Va))}}}if(k==m){if(Sa.trigger("pinchStatus",[j,Qa||null,Pa||0,La||0,Ua,Oa,Va]),c.pinchStatus&&(q=c.pinchStatus.call(Sa,b,j,Qa||null,Pa||0,La||0,Ua,Oa,Va),q===!1))return!1;if(j==w&&Q())switch(Qa){case h:Sa.trigger("pinchIn",[Qa||null,Pa||0,La||0,Ua,Oa,Va]),c.pinchIn&&(q=c.pinchIn.call(Sa,b,Qa||null,Pa||0,La||0,Ua,Oa,Va));break;case i:Sa.trigger("pinchOut",[Qa||null,Pa||0,La||0,Ua,Oa,Va]),c.pinchOut&&(q=c.pinchOut.call(Sa,b,Qa||null,Pa||0,La||0,Ua,Oa,Va))}}return k==n?(j===x||j===w)&&(clearTimeout(_a),clearTimeout(ab),Z()&&!aa()?($a=Aa(),_a=setTimeout(a.proxy(function(){$a=null,Sa.trigger("tap",[b.target]),c.tap&&(q=c.tap.call(Sa,b,b.target))},this),c.doubleTapThreshold)):($a=null,Sa.trigger("tap",[b.target]),c.tap&&(q=c.tap.call(Sa,b,b.target)))):k==o?(j===x||j===w)&&(clearTimeout(_a),$a=null,Sa.trigger("doubletap",[b.target]),c.doubleTap&&(q=c.doubleTap.call(Sa,b,b.target))):k==p&&(j===x||j===w)&&(clearTimeout(_a),$a=null,Sa.trigger("longtap",[b.target]),c.longTap&&(q=c.longTap.call(Sa,b,b.target))),q}function L(){var a=!0;return null!==c.threshold&&(a=Ja>=c.threshold),a}function M(){var a=!1;return null!==c.cancelThreshold&&null!==Ka&&(a=qa(Ka)-Ja>=c.cancelThreshold),a}function N(){return null!==c.pinchThreshold?Pa>=c.pinchThreshold:!0}function O(){var a;return a=c.maxTimeThreshold&&La>=c.maxTimeThreshold?!1:!0}function P(a,b){if(c.allowPageScroll===j||R())a.preventDefault();else{var h=c.allowPageScroll===k;switch(b){case d:(c.swipeLeft&&h||!h&&c.allowPageScroll!=q)&&a.preventDefault();break;case e:(c.swipeRight&&h||!h&&c.allowPageScroll!=q)&&a.preventDefault();break;case f:(c.swipeUp&&h||!h&&c.allowPageScroll!=r)&&a.preventDefault();break;case g:(c.swipeDown&&h||!h&&c.allowPageScroll!=r)&&a.preventDefault()}}}function Q(){var a=W(),b=X(),c=N();return a&&b&&c}function R(){return!!(c.pinchStatus||c.pinchIn||c.pinchOut)}function S(){return!(!Q()||!R())}function T(){var a=O(),b=L(),c=W(),d=X(),e=M(),f=!e&&d&&c&&b&&a;return f}function U(){return!!(c.swipe||c.swipeStatus||c.swipeLeft||c.swipeRight||c.swipeUp||c.swipeDown)}function V(){return!(!T()||!U())}function W(){return Ua===c.fingers||c.fingers===s||!y}function X(){return 0!==Va[0].end.x}function Y(){return!!c.tap}function Z(){return!!c.doubleTap}function $(){return!!c.longTap}function _(){if(null==$a)return!1;var a=Aa();return Z()&&a-$a<=c.doubleTapThreshold}function aa(){return _()}function ba(){return(1===Ua||!y)&&(isNaN(Ja)||Ja<c.threshold)}function ca(){return La>c.longTapThreshold&&t>Ja}function da(){return!(!ba()||!Y())}function ea(){return!(!_()||!Z())}function fa(){return!(!ca()||!$())}function ga(){Ya=Aa(),Za=event.touches.length+1}function ha(){Ya=0,Za=0}function ia(){var a=!1;if(Ya){var b=Aa()-Ya;b<=c.fingerReleaseThreshold&&(a=!0)}return a}function ja(){return!(Sa.data(B+"_intouch")!==!0)}function ka(a){a===!0?(Sa.bind(Fa,D),Sa.bind(Ga,E),Ha&&Sa.bind(Ha,G)):(Sa.unbind(Fa,D,!1),Sa.unbind(Ga,E,!1),Ha&&Sa.unbind(Ha,G,!1)),Sa.data(B+"_intouch",a===!0)}function la(a,b){var c=void 0!==b.identifier?b.identifier:0;return Va[a].identifier=c,Va[a].start.x=Va[a].end.x=b.pageX||b.clientX,Va[a].start.y=Va[a].end.y=b.pageY||b.clientY,Va[a]}function ma(a){var b=void 0!==a.identifier?a.identifier:0,c=na(b);return c.end.x=a.pageX||a.clientX,c.end.y=a.pageY||a.clientY,c}function na(a){for(var b=0;b<Va.length;b++)if(Va[b].identifier==a)return Va[b]}function oa(){for(var a=[],b=0;5>=b;b++)a.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return a}function pa(a,b){b=Math.max(b,qa(a)),Ra[a].distance=b}function qa(a){return Ra[a]?Ra[a].distance:void 0}function ra(){var a={};return a[d]=sa(d),a[e]=sa(e),a[f]=sa(f),a[g]=sa(g),a}function sa(a){return{direction:a,distance:0}}function ta(){return Xa-Wa}function ua(a,b){var c=Math.abs(a.x-b.x),d=Math.abs(a.y-b.y);return Math.round(Math.sqrt(c*c+d*d))}function va(a,b){var c=b/a*1;return c.toFixed(2)}function wa(){return 1>Oa?i:h}function xa(a,b){return Math.round(Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)))}function ya(a,b){var c=a.x-b.x,d=b.y-a.y,e=Math.atan2(d,c),f=Math.round(180*e/Math.PI);return 0>f&&(f=360-Math.abs(f)),f}function za(a,b){var c=ya(a,b);return 45>=c&&c>=0?d:360>=c&&c>=315?d:c>=135&&225>=c?e:c>45&&135>c?g:f}function Aa(){var a=new Date;return a.getTime()}function Ba(b){b=a(b);var c=b.offset(),d={left:c.left,right:c.left+b.outerWidth(),top:c.top,bottom:c.top+b.outerHeight()};return d}function Ca(a,b){return a.x>b.left&&a.x<b.right&&a.y>b.top&&a.y<b.bottom}var Da=y||A||!c.fallbackToMouseEvents,Ea=Da?A?z?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Fa=Da?A?z?"MSPointerMove":"pointermove":"touchmove":"mousemove",Ga=Da?A?z?"MSPointerUp":"pointerup":"touchend":"mouseup",Ha=Da?null:"mouseleave",Ia=A?z?"MSPointerCancel":"pointercancel":"touchcancel",Ja=0,Ka=null,La=0,Ma=0,Na=0,Oa=1,Pa=0,Qa=0,Ra=null,Sa=a(b),Ta="start",Ua=0,Va=null,Wa=0,Xa=0,Ya=0,Za=0,$a=0,_a=null,ab=null;try{Sa.bind(Ea,C),Sa.bind(Ia,F)}catch(bb){a.error("events not supported "+Ea+","+Ia+" on jQuery.swipe")}this.enable=function(){return Sa.bind(Ea,C),Sa.bind(Ia,F),Sa},this.disable=function(){return H(),Sa},this.destroy=function(){return H(),Sa.data(B,null),Sa},this.option=function(b,d){if(void 0!==c[b]){if(void 0===d)return c[b];c[b]=d}else a.error("Option "+b+" does not exist on jQuery.swipe.options");return null}}var d="left",e="right",f="up",g="down",h="in",i="out",j="none",k="auto",l="swipe",m="pinch",n="tap",o="doubletap",p="longtap",q="horizontal",r="vertical",s="all",t=10,u="start",v="move",w="end",x="cancel",y="ontouchstart"in window,z=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,A=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,B="TouchSwipe",C={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};a.fn.swipe=function(c){var d=a(this),e=d.data(B);if(e&&"string"==typeof c){if(e[c])return e[c].apply(this,Array.prototype.slice.call(arguments,1));a.error("Method "+c+" does not exist on jQuery.swipe")}else if(!(e||"object"!=typeof c&&c))return b.apply(this,arguments);return d},a.fn.swipe.defaults=C,a.fn.swipe.phases={PHASE_START:u,PHASE_MOVE:v,PHASE_END:w,PHASE_CANCEL:x},a.fn.swipe.directions={LEFT:d,RIGHT:e,UP:f,DOWN:g,IN:h,OUT:i},a.fn.swipe.pageScroll={NONE:j,HORIZONTAL:q,VERTICAL:r,AUTO:k},a.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:s}}),function($){function sc_setScroll(a,b,c){return"transition"==c.transition&&"swing"==b&&(b="ease"),{anims:[],duration:a,orgDuration:a,easing:b,startTime:getTime()}}function sc_startScroll(a,b){for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e&&e[0][b.transition](e[1],a.duration,a.easing,e[2])}}function sc_stopScroll(a,b){is_boolean(b)||(b=!0),is_object(a.pre)&&sc_stopScroll(a.pre,b);for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e[0].stop(!0),b&&(e[0].css(e[1]),is_function(e[2])&&e[2]())}is_object(a.post)&&sc_stopScroll(a.post,b)}function sc_afterScroll(a,b,c){switch(b&&b.remove(),c.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":a.css("opacity",1),a.css("filter","")}}function sc_fireCallbacks(a,b,c,d,e){if(b[c]&&b[c].call(a,d),e[c].length)for(var f=0,g=e[c].length;g>f;f++)e[c][f].call(a,d);return[]}function sc_fireQueue(a,b,c){return b.length&&(a.trigger(cf_e(b[0][0],c),b[0][1]),b.shift()),b}function sc_hideHiddenItems(a){a.each(function(){var a=$(this);a.data("_cfs_isHidden",a.is(":hidden")).hide()})}function sc_showHiddenItems(a){a&&a.each(function(){var a=$(this);a.data("_cfs_isHidden")||a.show()})}function sc_clearTimers(a){return a.auto&&clearTimeout(a.auto),a.progress&&clearInterval(a.progress),a}function sc_mapCallbackArguments(a,b,c,d,e,f,g){return{width:g.width,height:g.height,items:{old:a,skipped:b,visible:c},scroll:{items:d,direction:e,duration:f}}}function sc_getDuration(a,b,c,d){var e=a.duration;return"none"==a.fx?0:("auto"==e?e=b.scroll.duration/b.scroll.items*c:10>e&&(e=d/e),1>e?0:("fade"==a.fx&&(e/=2),Math.round(e)))}function nv_showNavi(a,b,c){var d=is_number(a.items.minimum)?a.items.minimum:a.items.visible+1;if("show"==b||"hide"==b)var e=b;else if(d>b){debug(c,"Not enough items ("+b+" total, "+d+" needed): Hiding navigation.");var e="hide"}else var e="show";var f="show"==e?"removeClass":"addClass",g=cf_c("hidden",c);a.auto.button&&a.auto.button[e]()[f](g),a.prev.button&&a.prev.button[e]()[f](g),a.next.button&&a.next.button[e]()[f](g),a.pagination.container&&a.pagination.container[e]()[f](g)}function nv_enableNavi(a,b,c){if(!a.circular&&!a.infinite){var d="removeClass"==b||"addClass"==b?b:!1,e=cf_c("disabled",c);if(a.auto.button&&d&&a.auto.button[d](e),a.prev.button){var f=d||0==b?"addClass":"removeClass";a.prev.button[f](e)}if(a.next.button){var f=d||b==a.items.visible?"addClass":"removeClass";a.next.button[f](e)}}}function go_getObject(a,b){return is_function(b)?b=b.call(a):is_undefined(b)&&(b={}),b}function go_getItemsObject(a,b){return b=go_getObject(a,b),is_number(b)?b={visible:b}:"variable"==b?b={visible:b,width:b,height:b}:is_object(b)||(b={}),b}function go_getScrollObject(a,b){return b=go_getObject(a,b),is_number(b)?b=50>=b?{items:b}:{duration:b}:is_string(b)?b={easing:b}:is_object(b)||(b={}),b}function go_getNaviObject(a,b){if(b=go_getObject(a,b),is_string(b)){var c=cf_getKeyCode(b);b=-1==c?$(b):c}return b}function go_getAutoObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_boolean(b)?b={play:b}:is_number(b)&&(b={timeoutDuration:b}),b.progress&&(is_string(b.progress)||is_jquery(b.progress))&&(b.progress={bar:b.progress}),b}function go_complementAutoObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_boolean(b.play)||(b.play=!0),is_number(b.delay)||(b.delay=0),is_undefined(b.pauseOnEvent)&&(b.pauseOnEvent=!0),is_boolean(b.pauseOnResize)||(b.pauseOnResize=!0),is_number(b.timeoutDuration)||(b.timeoutDuration=b.duration<10?2500:5*b.duration),b.progress&&(is_function(b.progress.bar)&&(b.progress.bar=b.progress.bar.call(a)),is_string(b.progress.bar)&&(b.progress.bar=$(b.progress.bar)),b.progress.bar?(is_function(b.progress.updater)||(b.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(b.progress.interval)||(b.progress.interval=50)):b.progress=!1),b}function go_getPrevNextObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_number(b)&&(b={key:b}),b}function go_complementPrevNextObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_string(b.key)&&(b.key=cf_getKeyCode(b.key)),b}function go_getPaginationObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={container:b}:is_boolean(b)&&(b={keys:b}),b}function go_complementPaginationObject(a,b){return is_function(b.container)&&(b.container=b.container.call(a)),is_string(b.container)&&(b.container=$(b.container)),is_number(b.items)||(b.items=!1),is_boolean(b.keys)||(b.keys=!1),is_function(b.anchorBuilder)||is_false(b.anchorBuilder)||(b.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(b.deviation)||(b.deviation=0),b}function go_getSwipeObject(a,b){return is_function(b)&&(b=b.call(a)),is_undefined(b)&&(b={onTouch:!1}),is_true(b)?b={onTouch:b}:is_number(b)&&(b={items:b}),b}function go_complementSwipeObject(a,b){return is_boolean(b.onTouch)||(b.onTouch=!0),is_boolean(b.onMouse)||(b.onMouse=!1),is_object(b.options)||(b.options={}),is_boolean(b.options.triggerOnTouchEnd)||(b.options.triggerOnTouchEnd=!1),b}function go_getMousewheelObject(a,b){return is_function(b)&&(b=b.call(a)),is_true(b)?b={}:is_number(b)?b={items:b}:is_undefined(b)&&(b=!1),b}function go_complementMousewheelObject(a,b){return b}function gn_getItemIndex(a,b,c,d,e){if(is_string(a)&&(a=$(a,e)),is_object(a)&&(a=$(a,e)),is_jquery(a)?(a=e.children().index(a),is_boolean(c)||(c=!1)):is_boolean(c)||(c=!0),is_number(a)||(a=0),is_number(b)||(b=0),c&&(a+=d.first),a+=b,d.total>0){for(;a>=d.total;)a-=d.total;for(;0>a;)a+=d.total}return a}function gn_getVisibleItemsPrev(a,b,c){for(var d=0,e=0,f=c;f>=0;f--){var g=a.eq(f);if(d+=g.is(":visible")?g[b.d.outerWidth](!0):0,d>b.maxDimension)return e;0==f&&(f=a.length),e++}}function gn_getVisibleItemsPrevFilter(a,b,c){return gn_getItemsPrevFilter(a,b.items.filter,b.items.visibleConf.org,c)}function gn_getScrollItemsPrevFilter(a,b,c,d){return gn_getItemsPrevFilter(a,b.items.filter,d,c)}function gn_getItemsPrevFilter(a,b,c,d){for(var e=0,f=0,g=d,h=a.length;g>=0;g--){if(f++,f==h)return f;var i=a.eq(g);if(i.is(b)&&(e++,e==c))return f;0==g&&(g=h)}}function gn_getVisibleOrg(a,b){return b.items.visibleConf.org||a.children().slice(0,b.items.visible).filter(b.items.filter).length}function gn_getVisibleItemsNext(a,b,c){for(var d=0,e=0,f=c,g=a.length-1;g>=f;f++){var h=a.eq(f);if(d+=h.is(":visible")?h[b.d.outerWidth](!0):0,d>b.maxDimension)return e;if(e++,e==g+1)return e;f==g&&(f=-1)}}function gn_getVisibleItemsNextTestCircular(a,b,c,d){var e=gn_getVisibleItemsNext(a,b,c);return b.circular||c+e>d&&(e=d-c),e}function gn_getVisibleItemsNextFilter(a,b,c){return gn_getItemsNextFilter(a,b.items.filter,b.items.visibleConf.org,c,b.circular)}function gn_getScrollItemsNextFilter(a,b,c,d){return gn_getItemsNextFilter(a,b.items.filter,d+1,c,b.circular)-1}function gn_getItemsNextFilter(a,b,c,d,e){for(var f=0,g=0,h=d,i=a.length-1;i>=h;h++){if(g++,g>=i)return g;var j=a.eq(h);if(j.is(b)&&(f++,f==c))return g;h==i&&(h=-1)}}function gi_getCurrentItems(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsPrev(a,b,c){return a.slice(c,b.items.visibleConf.old+c)}function gi_getNewItemsPrev(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsNext(a,b){return a.slice(0,b.items.visibleConf.old)}function gi_getNewItemsNext(a,b,c){return a.slice(c,b.items.visible+c)}function sz_storeMargin(a,b,c){b.usePadding&&(is_string(c)||(c="_cfs_origCssMargin"),a.each(function(){var a=$(this),d=parseInt(a.css(b.d.marginRight),10);is_number(d)||(d=0),a.data(c,d)}))}function sz_resetMargin(a,b,c){if(b.usePadding){var d=is_boolean(c)?c:!1;is_number(c)||(c=0),sz_storeMargin(a,b,"_cfs_tempCssMargin"),a.each(function(){var a=$(this);a.css(b.d.marginRight,d?a.data("_cfs_tempCssMargin"):c+a.data("_cfs_origCssMargin"))})}}function sz_storeOrigCss(a){a.each(function(){var a=$(this);a.data("_cfs_origCss",a.attr("style")||"")})}function sz_restoreOrigCss(a){a.each(function(){var a=$(this);a.attr("style",a.data("_cfs_origCss")||"")})}function sz_setResponsiveSizes(a,b){var c=(a.items.visible,a.items[a.d.width]),d=a[a.d.height],e=is_percentage(d);b.each(function(){var b=$(this),f=c-ms_getPaddingBorderMargin(b,a,"Width");b[a.d.width](f),e&&b[a.d.height](ms_getPercentage(f,d))})}function sz_setSizes(a,b){var c=a.parent(),d=a.children(),e=gi_getCurrentItems(d,b),f=cf_mapWrapperSizes(ms_getSizes(e,b,!0),b,!1);if(c.css(f),b.usePadding){var g=b.padding,h=g[b.d[1]];b.align&&0>h&&(h=0);var i=e.last();i.css(b.d.marginRight,i.data("_cfs_origCssMargin")+h),a.css(b.d.top,g[b.d[0]]),a.css(b.d.left,g[b.d[3]])}return a.css(b.d.width,f[b.d.width]+2*ms_getTotalSize(d,b,"width")),a.css(b.d.height,ms_getLargestSize(d,b,"height")),b.centerVertically&&a.css("line-height",f.height+"px"),f}function ms_getSizes(a,b,c){return[ms_getTotalSize(a,b,"width",c),ms_getLargestSize(a,b,"height",c)]}function ms_getLargestSize(a,b,c,d){return is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d?b[b.d[c]]:is_number(b.items[b.d[c]])?b.items[b.d[c]]:(c=c.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",ms_getTrueLargestSize(a,b,c))}function ms_getTrueLargestSize(a,b,c){for(var d=0,e=0,f=a.length;f>e;e++){var g=a.eq(e).find(".fusion-carousel-item-wrapper"),h=g.is(":visible")?g[b.d[c]](!0):0;h>d&&(d=h)}return d}function ms_getTotalSize(a,b,c,d){if(is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d)return b[b.d[c]];if(is_number(b.items[b.d[c]]))return b.items[b.d[c]]*a.length;for(var e=c.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",f=0,g=0,h=a.length;h>g;g++){var i=a.eq(g);f+=i.is(":visible")?i[b.d[e]](!0):0}return f}function ms_getParentSize(a,b,c){var d=a.is(":visible");d&&a.hide();var e=a.parent()[b.d[c]]();return d&&a.show(),e}function ms_getMaxDimension(a,b){return is_number(a[a.d.width])?a[a.d.width]:b}function ms_hasVariableSizes(a,b,c){for(var d=!1,e=!1,f=0,g=a.length;g>f;f++){var h=a.eq(f),i=h.is(":visible")?h[b.d[c]](!0):0;d===!1?d=i:d!=i&&(e=!0),0==d&&(e=!0)}return e}function ms_getPaddingBorderMargin(a,b,c){return a[b.d["outer"+c]](!0)-a[b.d[c.toLowerCase()]]()}function ms_getPercentage(a,b){if(is_percentage(b)){if(b=parseInt(b.slice(0,-1),10),!is_number(b))return a;a*=b/100}return a}function cf_e(a,b,c,d,e){return is_boolean(c)||(c=!0),is_boolean(d)||(d=!0),is_boolean(e)||(e=!1),c&&(a=b.events.prefix+a),d&&(a=a+"."+b.events.namespace),d&&e&&(a+=b.serialNumber),a}function cf_c(a,b){return is_string(b.classnames[a])?b.classnames[a]:a}function cf_mapWrapperSizes(a,b,c){is_boolean(c)||(c=!0);var d=b.usePadding&&c?b.padding:[0,0,0,0],e={};return e[b.d.width]=a[0]+d[1]+d[3],e[b.d.height]=a[1]+d[0]+d[2],e}function cf_sortParams(a,b){for(var c=[],d=0,e=a.length;e>d;d++)for(var f=0,g=b.length;g>f;f++)if(b[f].indexOf(typeof a[d])>-1&&is_undefined(c[f])){c[f]=a[d];break}return c}function cf_getPadding(a){if(is_undefined(a))return[0,0,0,0];if(is_number(a))return[a,a,a,a];if(is_string(a)&&(a=a.split("px").join("").split("em").join("").split(" ")),!is_array(a))return[0,0,0,0];for(var b=0;4>b;b++)a[b]=parseInt(a[b],10);switch(a.length){case 0:return[0,0,0,0];case 1:return[a[0],a[0],a[0],a[0]];case 2:return[a[0],a[1],a[0],a[1]];case 3:return[a[0],a[1],a[2],a[1]];default:return[a[0],a[1],a[2],a[3]]}}function cf_getAlignPadding(a,b){var c=is_number(b[b.d.width])?Math.ceil(b[b.d.width]-ms_getTotalSize(a,b,"width")):0;switch(b.align){case"left":return[0,c];case"right":return[c,0];case"center":default:return[Math.ceil(c/2),Math.floor(c/2)]}}function cf_getDimensions(a){for(var b=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],c=b[0].length,d="right"==a.direction||"left"==a.direction?0:1,e={},f=0;c>f;f++)e[b[0][f]]=b[d][f];return e}function cf_getAdjust(a,b,c,d){var e=a;if(is_function(c))e=c.call(d,e);else if(is_string(c)){var f=c.split("+"),g=c.split("-");if(g.length>f.length)var h=!0,i=g[0],j=g[1];else var h=!1,i=f[0],j=f[1];switch(i){case"even":e=a%2==1?a-1:a;break;case"odd":e=a%2==0?a-1:a;break;default:e=a}j=parseInt(j,10),is_number(j)&&(h&&(j=-j),e+=j)}return(!is_number(e)||1>e)&&(e=1),e}function cf_getItemsAdjust(a,b,c,d){return cf_getItemAdjustMinMax(cf_getAdjust(a,b,c,d),b.items.visibleConf)}function cf_getItemAdjustMinMax(a,b){return is_number(b.min)&&a<b.min&&(a=b.min),is_number(b.max)&&a>b.max&&(a=b.max),1>a&&(a=1),a}function cf_getSynchArr(a){is_array(a)||(a=[[a]]),is_array(a[0])||(a=[a]);for(var b=0,c=a.length;c>b;b++)is_string(a[b][0])&&(a[b][0]=$(a[b][0])),is_boolean(a[b][1])||(a[b][1]=!0),is_boolean(a[b][2])||(a[b][2]=!0),is_number(a[b][3])||(a[b][3]=0);return a}function cf_getKeyCode(a){return"right"==a?39:"left"==a?37:"up"==a?38:"down"==a?40:-1}function cf_setCookie(a,b,c){if(a){var d=b.triggerHandler(cf_e("currentPosition",c));$.fn.carouFredSel.cookie.set(a,d)}}function cf_getCookie(a){var b=$.fn.carouFredSel.cookie.get(a);return""==b?0:b}function in_mapCss(a,b){for(var c={},d=0,e=b.length;e>d;d++)c[b[d]]=a.css(b[d]);return c}function in_complementItems(a,b,c,d){return is_object(a.visibleConf)||(a.visibleConf={}),is_object(a.sizesConf)||(a.sizesConf={}),0==a.start&&is_number(d)&&(a.start=d),is_object(a.visible)?(a.visibleConf.min=a.visible.min,a.visibleConf.max=a.visible.max,a.visible=!1):is_string(a.visible)?("variable"==a.visible?a.visibleConf.variable=!0:a.visibleConf.adjust=a.visible,a.visible=!1):is_function(a.visible)&&(a.visibleConf.adjust=a.visible,a.visible=!1),is_string(a.filter)||(a.filter=c.filter(":hidden").length>0?":visible":"*"),a[b.d.width]||(b.responsive?(debug(!0,"Set a "+b.d.width+" for the items!"),a[b.d.width]=ms_getTrueLargestSize(c,b,"outerWidth")):a[b.d.width]=ms_hasVariableSizes(c,b,"outerWidth")?"variable":c[b.d.outerWidth](!0)),a[b.d.height]||(a[b.d.height]=ms_hasVariableSizes(c,b,"outerHeight")?"variable":c[b.d.outerHeight](!0)),a.sizesConf.width=a.width,a.sizesConf.height=a.height,a}function in_complementVisibleItems(a,b){return"variable"==a.items[a.d.width]&&(a.items.visibleConf.variable=!0),a.items.visibleConf.variable||(is_number(a[a.d.width])?a.items.visible=Math.floor(a[a.d.width]/a.items[a.d.width]):(a.items.visible=Math.floor(b/a.items[a.d.width]),a[a.d.width]=a.items.visible*a.items[a.d.width],a.items.visibleConf.adjust||(a.align=!1)),("Infinity"==a.items.visible||a.items.visible<1)&&(debug(!0,'Not a valid number of visible items: Set to "variable".'),a.items.visibleConf.variable=!0)),a}function in_complementPrimarySize(a,b,c){return"auto"==a&&(a=ms_getTrueLargestSize(c,b,"outerWidth")),a}function in_complementSecondarySize(a,b,c){return"auto"==a&&(a=ms_getTrueLargestSize(c,b,"outerHeight")),a||(a=b.items[b.d.height]),a}function in_getAlignPadding(a,b){var c=cf_getAlignPadding(gi_getCurrentItems(b,a),a);return a.padding[a.d[1]]=c[1],a.padding[a.d[3]]=c[0],a}function in_getResponsiveValues(a,b,c){var d=cf_getItemAdjustMinMax(Math.ceil(a[a.d.width]/a.items[a.d.width]),a.items.visibleConf);d>b.length&&(d=b.length);var e=Math.floor(a[a.d.width]/d);return a.items.visible=d,a.items[a.d.width]=e,a[a.d.width]=d*e,a}function bt_pauseOnHoverConfig(a){if(is_string(a))var b=a.indexOf("immediate")>-1?!0:!1,c=a.indexOf("resume")>-1?!0:!1;else var b=c=!1;return[b,c]}function bt_mousesheelNumber(a){return is_number(a)?a:null}function is_null(a){return null===a}function is_undefined(a){return is_null(a)||"undefined"==typeof a||""===a||"undefined"===a}function is_array(a){return a instanceof Array}function is_jquery(a){return a instanceof jQuery}function is_object(a){return(a instanceof Object||"object"==typeof a)&&!is_null(a)&&!is_jquery(a)&&!is_array(a)&&!is_function(a)}function is_number(a){return(a instanceof Number||"number"==typeof a)&&!isNaN(a)}function is_string(a){return(a instanceof String||"string"==typeof a)&&!is_undefined(a)&&!is_true(a)&&!is_false(a)}function is_function(a){return a instanceof Function||"function"==typeof a}function is_boolean(a){return a instanceof Boolean||"boolean"==typeof a||is_true(a)||is_false(a)}function is_true(a){return a===!0||"true"===a}function is_false(a){return a===!1||"false"===a}function is_percentage(a){return is_string(a)&&"%"==a.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(a,b){debug(!0,a+" is DEPRECATED, support for it will be removed. Use "+b+" instead.")}function debug(a,b){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(a)){var c=" ("+a.selector+")";a=a.debug}else var c="";if(!a)return!1;b=is_string(b)?"carouFredSel"+c+": "+b:["carouFredSel"+c+":",b],window.console.log(b)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if(0==this.length)return debug(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data("_cfs_isCarousel")&&(starting_position=$cfs.triggerHandler("_cfs_triggerEvent","currentPosition"),$cfs.trigger("_cfs_triggerEvent",["destroy",!0]));var FN={};FN._init=function(a,b,c){a=go_getObject($tt0,a),a.items=go_getItemsObject($tt0,a.items),a.scroll=go_getScrollObject($tt0,a.scroll),a.auto=go_getAutoObject($tt0,a.auto),a.prev=go_getPrevNextObject($tt0,a.prev),a.next=go_getPrevNextObject($tt0,a.next),a.pagination=go_getPaginationObject($tt0,a.pagination),a.swipe=go_getSwipeObject($tt0,a.swipe),a.mousewheel=go_getMousewheelObject($tt0,a.mousewheel),b&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,a)),opts=$.extend(!0,{},$.fn.carouFredSel.defaults,a),opts.d=cf_getDimensions(opts),crsl.direction="up"==opts.direction||"left"==opts.direction?"next":"prev";var d=$cfs.children(),e=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)&&(opts.cookie="caroufredsel_cookie_"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,e),opts.items=in_complementItems(opts.items,opts,d,c),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,d),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,d),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]="100%")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(e,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):(opts.items.visible||(opts=in_complementVisibleItems(opts,e)),opts[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&"*"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]="variable"),is_undefined(opts.align)&&(opts.align=is_number(opts[opts.d.width])?"center":!1),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(d,opts,0))),"*"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(d,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,d,e);else switch(opts.padding=cf_getPadding(opts.padding),"top"==opts.align?opts.align="left":"bottom"==opts.align&&(opts.align="right"),opts.align){case"center":case"left":case"right":"variable"!=opts[opts.d.width]&&(opts=in_getAlignPadding(opts,d),opts.usePadding=!0);break;default:opts.align=!1,opts.usePadding=0==opts.padding[0]&&0==opts.padding[1]&&0==opts.padding[2]&&0==opts.padding[3]?!1:!0}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||"*"!=opts.items.filter?"visible":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated("auto.onPauseStart","auto.onTimeoutStart")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated("auto.onPausePause","auto.onTimeoutPause")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated("auto.onPauseEnd","auto.onTimeoutEnd")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated("auto.pauseDuration","auto.timeoutDuration"))},FN._build=function(){$cfs.data("_cfs_isCarousel",!0);var a=$cfs.children(),b=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),c="relative";switch(b.position){case"absolute":case"fixed":c=b.position}"parent"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(b),$wrp.css({overflow:"hidden",position:c}),sz_storeOrigCss($cfs),$cfs.data("_cfs_origCssZindex",b.zIndex),$cfs.css({textAlign:"left","float":"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(a,opts),sz_storeOrigCss(a),opts.responsive&&sz_setResponsiveSizes(opts,a)},FN._bind_events=function(){FN._unbind_events(),$cfs.bind(cf_e("stop",conf),function(a,b){return a.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c("stopped",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e("pause",conf),b)),!0}),$cfs.bind(cf_e("finish",conf),function(a){return a.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e("pause",conf),function(a,b,c){if(a.stopPropagation(),tmrs=sc_clearTimers(tmrs),b&&crsl.isScrolling){scrl.isStopped=!0;var d=getTime()-scrl.startTime;scrl.duration-=d,scrl.pre&&(scrl.pre.duration-=d),scrl.post&&(scrl.post.duration-=d),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||c&&(tmrs.timePassed+=getTime()-tmrs.startTime),
crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c("paused",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause){var e=opts.auto.timeoutDuration-tmrs.timePassed,f=100-Math.ceil(100*e/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,f,e)}return!0}),$cfs.bind(cf_e("play",conf),function(a,b,c,d){a.stopPropagation(),tmrs=sc_clearTimers(tmrs);var e=[b,c,d],f=["string","number","boolean"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],"prev"!=b&&"next"!=b&&(b=crsl.direction),is_number(c)||(c=0),is_boolean(d)||(d=!1),d&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return a.stopImmediatePropagation(),debug(conf,"Carousel stopped: Not scrolling.");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c("stopped",conf)),opts.auto.button.removeClass(cf_c("paused",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var h=opts.auto.timeoutDuration+c;return dur2=h-tmrs.timePassed,perc=100-Math.ceil(100*dur2/h),opts.auto.progress&&(tmrs.progress=setInterval(function(){var a=getTime()-tmrs.startTime+tmrs.timePassed,b=Math.ceil(100*a/h);opts.auto.progress.updater.call(opts.auto.progress.bar[0],b)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e("play",conf),b):$cfs.trigger(cf_e(b,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e("resume",conf),function(a){return a.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e("play",conf)),!0}),$cfs.bind(cf_e("prev",conf)+" "+cf_e("next",conf),function(a,b,c,d,e){if(a.stopPropagation(),crsl.isStopped||$cfs.is(":hidden"))return a.stopImmediatePropagation(),debug(conf,"Carousel stopped or hidden: Not scrolling.");var f=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(f>itms.total)return a.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+f+" needed): Not scrolling.");var g=[b,c,d,e],h=["object","number/string","function","boolean"],i=cf_sortParams(g,h);b=i[0],c=i[1],d=i[2],e=i[3];var j=a.type.slice(conf.events.prefix.length);if(is_object(b)||(b={}),is_function(d)&&(b.onAfter=d),is_boolean(e)&&(b.queue=e),b=$.extend(!0,{},opts[j],b),b.conditions&&!b.conditions.call($tt0,j))return a.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(c)){if("*"!=opts.items.filter)c="visible";else for(var k=[c,b.items,opts[j].items],i=0,l=k.length;l>i;i++)if(is_number(k[i])||"page"==k[i]||"visible"==k[i]){c=k[i];break}switch(c){case"page":return a.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(j+"Page",conf),[b,d]);case"visible":opts.items.visibleConf.variable||"*"!=opts.items.filter||(c=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e("resume",conf)),$cfs.trigger(cf_e("queue",conf),[j,[b,c,d]]),a.stopImmediatePropagation(),debug(conf,"Carousel resumed scrolling.");if(b.duration>0&&crsl.isScrolling)return b.queue&&("last"==b.queue&&(queu=[]),("first"!=b.queue||0==queu.length)&&$cfs.trigger(cf_e("queue",conf),[j,[b,c,d]])),a.stopImmediatePropagation(),debug(conf,"Carousel currently scrolling.");if(tmrs.timePassed=0,$cfs.trigger(cf_e("slide_"+j,conf),[b,c]),opts.synchronise)for(var m=opts.synchronise,n=[b,c],o=0,l=m.length;l>o;o++){var p=j;m[o][2]||(p="prev"==p?"next":"prev"),m[o][1]||(n[0]=m[o][0].triggerHandler("_cfs_triggerEvent",["configuration",p])),n[1]=c+m[o][3],m[o][0].trigger("_cfs_triggerEvent",["slide_"+p,n])}return!0}),$cfs.bind(cf_e("slide_prev",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e("next",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if(opts.items.visibleConf.variable)c=gn_getVisibleItemsPrev(d,opts,itms.total-1);else if("*"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsPrevFilter(d,opts,itms.total-1,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}if(opts.circular||itms.total-c<itms.first&&(c=itms.total-itms.first),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){var f=cf_getItemsAdjust(gn_getVisibleItemsNext(d,opts,itms.total-c),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible+c<=f&&c<itms.total&&(c++,f=cf_getItemsAdjust(gn_getVisibleItemsNext(d,opts,itms.total-c),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=f}else if("*"!=opts.items.filter){var f=gn_getVisibleItemsNextFilter(d,opts,itms.total-c);opts.items.visible=cf_getItemsAdjust(f,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+c+" items backward."),itms.first+=c;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&b.onEnd&&b.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-c,itms.total).prependTo($cfs),itms.total<opts.items.visible+c&&$cfs.children().slice(0,opts.items.visible+c-itms.total).clone(!0).appendTo($cfs);var d=$cfs.children(),g=gi_getOldItemsPrev(d,opts,c),h=gi_getNewItemsPrev(d,opts),i=d.eq(c-1),j=g.last(),k=h.last();sz_resetMargin(d,opts);var l=0,m=0;if(opts.align){var n=cf_getAlignPadding(h,opts);l=n[0],m=n[1]}var o=0>l?opts.padding[opts.d[3]]:0,p=!1,q=$();if(opts.items.visible<c&&(q=d.slice(opts.items.visibleConf.old,c),"directscroll"==b.fx)){var r=opts.items[opts.d.width];p=q,i=k,sc_hideHiddenItems(p),opts.items[opts.d.width]="variable"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,"width"),u=cf_mapWrapperSizes(ms_getSizes(h,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B={},C={},D=sc_getDuration(b,opts,c,t);switch(b.fx){case"cover":case"cover-fade":v=ms_getTotalSize(d.slice(0,opts.items.visible),opts,"width")}p&&(opts.items[opts.d.width]=r),sz_resetMargin(d,opts,!0),m>=0&&sz_resetMargin(j,opts,opts.padding[opts.d[1]]),l>=0&&sz_resetMargin(i,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=m,opts.padding[opts.d[3]]=l),B[opts.d.left]=-(t-o),C[opts.d.left]=-(v-o),x[opts.d.left]=u[opts.d.width];var E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){},L=function(){},M=function(){},N=function(){},O=function(){};switch(b.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":s=$cfs.clone(!0).appendTo($wrp)}switch(b.fx){case"crossfade":case"uncover":case"uncover-fade":s.children().slice(0,c).remove(),s.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":s.children().slice(opts.items.visible).remove(),s.css(C)}if($cfs.css(B),scrl=sc_setScroll(D,b.easing,conf),w[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,opts.centerVertically&&(w["line-height"]=u.height+"px"),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(E=function(){$wrp.css(u)},F=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){switch(k.not(i).length&&(y[opts.d.marginRight]=i.data("_cfs_origCssMargin"),0>l?i.css(y):(K=function(){i.css(y)},L=function(){scrl.anims.push([i,y])})),b.fx){case"cover":case"cover-fade":s.children().eq(c-1).css(y)}k.not(j).length&&(z[opts.d.marginRight]=j.data("_cfs_origCssMargin"),G=function(){j.css(z)},H=function(){scrl.anims.push([j,z])}),m>=0&&(A[opts.d.marginRight]=k.data("_cfs_origCssMargin")+opts.padding[opts.d[1]],I=function(){k.css(A)},J=function(){scrl.anims.push([k,A])})}O=function(){$cfs.css(w)};var P=opts.items.visible+c-itms.total;N=function(){if(P>0&&($cfs.children().slice(itms.total).remove(),g=$($cfs.children().slice(itms.total-(opts.items.visible-P)).get().concat($cfs.children().slice(0,P).get()))),sc_showHiddenItems(p),opts.usePadding){var a=$cfs.children().eq(opts.items.visible+c-1);a.css(opts.d.marginRight,a.data("_cfs_origCssMargin"))}};var Q=sc_mapCallbackArguments(g,q,h,c,"prev",D,u);switch(M=function(){sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,"onAfter",Q,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,"onBefore",Q,clbk),b.fx){case"none":$cfs.css(w),E(),G(),I(),K(),O(),N(),M();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){E(),G(),I(),K(),O(),N(),scrl=sc_setScroll(D,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},M]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},M]),F(),G(),I(),K(),O(),N();break;case"cover":scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case"uncover":scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;default:scrl.anims.push([$cfs,w,function(){N(),M()}]),F(),H(),J(),L()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,u]),!0}),$cfs.bind(cf_e("slide_next",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e("prev",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if("*"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsNextFilter(d,opts,0,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}var f=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable)var g=gn_getVisibleItemsNext(d,opts,c),e=gn_getVisibleItemsPrev(d,opts,f-1);else var g=opts.items.visible,e=opts.items.visible;c+g>f&&(c=f-e)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(var g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-c>=g&&c<itms.total;)c++,g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=g}else if("*"!=opts.items.filter){var g=gn_getVisibleItemsNextFilter(d,opts,c);opts.items.visible=cf_getItemsAdjust(g,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+c+" items forward."),itms.first-=c;itms.first<0;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&b.onEnd&&b.onEnd.call($tt0,"next"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.total<opts.items.visible+c&&$cfs.children().slice(0,opts.items.visible+c-itms.total).clone(!0).appendTo($cfs);var d=$cfs.children(),h=gi_getOldItemsNext(d,opts),i=gi_getNewItemsNext(d,opts,c),j=d.eq(c-1),k=h.last(),l=i.last();sz_resetMargin(d,opts);var m=0,n=0;if(opts.align){var o=cf_getAlignPadding(i,opts);m=o[0],n=o[1]}var p=!1,q=$();if(opts.items.visibleConf.old<c&&(q=d.slice(opts.items.visibleConf.old,c),"directscroll"==b.fx)){var r=opts.items[opts.d.width];p=q,j=k,sc_hideHiddenItems(p),opts.items[opts.d.width]="variable"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,"width"),u=cf_mapWrapperSizes(ms_getSizes(i,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B=sc_getDuration(b,opts,c,t);switch(b.fx){case"uncover":case"uncover-fade":v=ms_getTotalSize(d.slice(0,opts.items.visibleConf.old),opts,"width")}p&&(opts.items[opts.d.width]=r),opts.align&&opts.padding[opts.d[1]]<0&&(opts.padding[opts.d[1]]=0),sz_resetMargin(d,opts,!0),sz_resetMargin(k,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=n,opts.padding[opts.d[3]]=m),A[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var C=function(){},D=function(){},E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){};switch(b.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":s=$cfs.clone(!0).appendTo($wrp),s.children().slice(opts.items.visibleConf.old).remove()}switch(b.fx){case"crossfade":case"cover":case"cover-fade":$cfs.css("zIndex",1),s.css("zIndex",0)}if(scrl=sc_setScroll(B,b.easing,conf),w[opts.d.left]=-t,opts.centerVertically&&(w["line-height"]=u.height+"px"),x[opts.d.left]=-v,0>m&&(w[opts.d.left]+=m),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(C=function(){$wrp.css(u)},D=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){var L=l.data("_cfs_origCssMargin");n>=0&&(L+=opts.padding[opts.d[1]]),l.css(opts.d.marginRight,L),j.not(k).length&&(z[opts.d.marginRight]=k.data("_cfs_origCssMargin")),E=function(){k.css(z)},F=function(){scrl.anims.push([k,z])};var M=j.data("_cfs_origCssMargin");m>0&&(M+=opts.padding[opts.d[3]]),y[opts.d.marginRight]=M,G=function(){j.css(y)},H=function(){scrl.anims.push([j,y])}}K=function(){$cfs.css(A)};var N=opts.items.visible+c-itms.total;J=function(){N>0&&$cfs.children().slice(itms.total).remove();var a=$cfs.children().slice(0,c).appendTo($cfs).last();if(N>0&&(i=gi_getCurrentItems(d,opts)),sc_showHiddenItems(p),opts.usePadding){if(itms.total<opts.items.visible+c){var b=$cfs.children().eq(opts.items.visible-1);b.css(opts.d.marginRight,b.data("_cfs_origCssMargin")+opts.padding[opts.d[1]])}a.css(opts.d.marginRight,a.data("_cfs_origCssMargin"))}};var O=sc_mapCallbackArguments(h,q,i,c,"next",B,u);switch(I=function(){$cfs.css("zIndex",$cfs.data("_cfs_origCssZindex")),sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,"onAfter",O,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,"onBefore",O,clbk),b.fx){case"none":$cfs.css(w),C(),E(),G(),K(),J(),I();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){C(),E(),G(),K(),J(),scrl=sc_setScroll(B,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},I]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},I]),D(),E(),G(),K(),J();break;case"cover":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([$cfs,A,I]),D(),E(),G(),J();break;case"cover-fade":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,A,I]),D(),E(),G(),J();break;case"uncover":scrl.anims.push([s,x,I]),D(),E(),G(),K(),J();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,I]),D(),E(),G(),K(),J();break;default:scrl.anims.push([$cfs,w,function(){K(),J(),I()}]),D(),F(),H()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,u]),!0}),$cfs.bind(cf_e("slideTo",conf),function(a,b,c,d,e,f,g){a.stopPropagation();var h=[b,c,d,e,f,g],i=["string/number/object","number","boolean","object","string","function"],j=cf_sortParams(h,i);return e=j[3],f=j[4],g=j[5],b=gn_getItemIndex(j[0],j[1],j[2],itms,$cfs),0==b?!1:(is_object(e)||(e=!1),"prev"!=f&&"next"!=f&&(f=opts.circular?b<=itms.total/2?"next":"prev":0==itms.first||itms.first>b?"next":"prev"),"prev"==f&&(b=itms.total-b),$cfs.trigger(cf_e(f,conf),[e,b,g]),!0)}),$cfs.bind(cf_e("prevPage",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[d-1,b,"prev",c])}),$cfs.bind(cf_e("nextPage",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[d+1,b,"next",c])}),$cfs.bind(cf_e("slideToPage",conf),function(a,b,c,d,e){a.stopPropagation(),is_number(b)||(b=$cfs.triggerHandler(cf_e("currentPage",conf)));var f=opts.pagination.items||opts.items.visible,g=Math.ceil(itms.total/f)-1;return 0>b&&(b=g),b>g&&(b=0),$cfs.triggerHandler(cf_e("slideTo",conf),[b*f,0,!0,c,d,e])}),$cfs.bind(cf_e("jumpToStart",conf),function(a,b){if(a.stopPropagation(),b=b?gn_getItemIndex(b,0,!0,itms,$cfs):0,b+=itms.first,0!=b){if(itms.total>0)for(;b>itms.total;)b-=itms.total;$cfs.prepend($cfs.children().slice(b,itms.total))}return!0}),$cfs.bind(cf_e("synchronise",conf),function(a,b){if(a.stopPropagation(),b)b=cf_getSynchArr(b);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");b=opts.synchronise}for(var c=$cfs.triggerHandler(cf_e("currentPosition",conf)),d=!0,e=0,f=b.length;f>e;e++)b[e][0].triggerHandler(cf_e("slideTo",conf),[c,b[e][3],!0])||(d=!1);return d}),$cfs.bind(cf_e("queue",conf),function(a,b,c){return a.stopPropagation(),is_function(b)?b.call($tt0,queu):is_array(b)?queu=b:is_undefined(b)||queu.push([b,c]),queu}),$cfs.bind(cf_e("insertItem",conf),function(a,b,c,d,e){a.stopPropagation();var f=[b,c,d,e],g=["string/object","string/number/object","boolean","number"],h=cf_sortParams(f,g);if(b=h[0],c=h[1],d=h[2],e=h[3],is_object(b)&&!is_jquery(b)?b=$(b):is_string(b)&&(b=$(b)),!is_jquery(b)||0==b.length)return debug(conf,"Not a valid object.");is_undefined(c)&&(c="end"),sz_storeMargin(b,opts),sz_storeOrigCss(b);var i=c,j="before";"end"==c?d?(0==itms.first?(c=itms.total-1,j="after"):(c=itms.first,itms.first+=b.length),0>c&&(c=0)):(c=itms.total-1,j="after"):c=gn_getItemIndex(c,e,d,itms,$cfs);var k=$cfs.children().eq(c);return k.length?k[j](b):(debug(conf,"Correct insert-position not found! Appending item to the end."),$cfs.append(b)),"end"==i||d||c<itms.first&&(itms.first+=b.length),itms.total=$cfs.children().length,itms.first>=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e("updateSizes",conf)),$cfs.trigger(cf_e("linkAnchors",conf)),!0}),$cfs.bind(cf_e("removeItem",conf),function(a,b,c,d){a.stopPropagation();var e=[b,c,d],f=["string/number/object","boolean","number"],g=cf_sortParams(e,f);b=g[0],c=g[1],d=g[2];if(b instanceof $&&b.length>1)return h=$(),b.each(function(a,b){var e=$cfs.trigger(cf_e("removeItem",conf),[$(this),c,d]);e&&(h=h.add(e))}),h;if(is_undefined(b)||"end"==b)h=$cfs.children().last();else{b=gn_getItemIndex(b,d,c,itms,$cfs);var h=$cfs.children().eq(b);h.length&&b<itms.first&&(itms.first-=h.length)}return h&&h.length&&(h.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e("updateSizes",conf))),h}),$cfs.bind(cf_e("onBefore",conf)+" "+cf_e("onAfter",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length);return is_array(b)&&(clbk[c]=b),is_function(b)&&clbk[c].push(b),clbk[c]}),$cfs.bind(cf_e("currentPosition",conf),function(a,b){if(a.stopPropagation(),0==itms.first)var c=0;else var c=itms.total-itms.first;return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e("currentPage",conf),function(a,b){a.stopPropagation();var c,d=opts.pagination.items||opts.items.visible,e=Math.ceil(itms.total/d-1);return c=0==itms.first?0:itms.first<itms.total%d?0:itms.first!=d||opts.circular?Math.round((itms.total-itms.first)/d):e,0>c&&(c=0),c>e&&(c=e),is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e("currentVisible",conf),function(a,b){a.stopPropagation();var c=gi_getCurrentItems($cfs.children(),opts);return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e("slice",conf),function(a,b,c,d){if(a.stopPropagation(),0==itms.total)return!1;var e=[b,c,d],f=["number","number","function"],g=cf_sortParams(e,f);if(b=is_number(g[0])?g[0]:0,c=is_number(g[1])?g[1]:itms.total,d=g[2],b+=itms.first,c+=itms.first,items.total>0){for(;b>itms.total;)b-=itms.total;for(;c>itms.total;)c-=itms.total;for(;0>b;)b+=itms.total;for(;0>c;)c+=itms.total}var h,i=$cfs.children();return h=c>b?i.slice(b,c):$(i.slice(b,itms.total).get().concat(i.slice(0,c).get())),is_function(d)&&d.call($tt0,h),h}),$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length),d=crsl[c];return is_function(b)&&b.call($tt0,d),d}),$cfs.bind(cf_e("configuration",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),b!==!1?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval("opts."+a);is_undefined(val)&&(val=""),b.call($tt0,val)}else{if(is_undefined(b))return eval("opts."+a);"boolean"!=typeof c&&(c=!0),eval("opts_orig."+a+" = b"),c!==!1?reInit=!0:eval("opts."+a+" = b")}if(reInit){sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e("updatePageStatus",conf),[!0,sz])}return opts}),$cfs.bind(cf_e("linkAnchors",conf),function(a,b,c){return a.stopPropagation(),is_undefined(b)?b=$("body"):is_string(b)&&(b=$(b)),is_jquery(b)&&0!=b.length?(is_string(c)||(c="a.caroufredsel"),b.find(c).each(function(){var a=this.hash||"";a.length>0&&-1!=$cfs.children().index($(a))&&$(this).unbind("click").click(function(b){b.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),a)})}),!0):debug(conf,"Not a valid object.")}),$cfs.bind(cf_e("updatePageStatus",conf),function(a,b,c){if(a.stopPropagation(),opts.pagination.container){var d=opts.pagination.items||opts.items.visible,e=Math.ceil(itms.total/d);b&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var a=0;e>a;a++){var b=$cfs.children().eq(gn_getItemIndex(a*d,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(b[0],a+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(a){$(this).bind(opts.pagination.event,function(b){b.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[a*d,-opts.pagination.deviation,!0,opts.pagination])})})}));var f=$cfs.triggerHandler(cf_e("currentPage",conf))+opts.pagination.deviation;return f>=e&&(f=0),0>f&&(f=e-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c("selected",conf)).eq(f).addClass(cf_c("selected",conf))}),!0}}),$cfs.bind(cf_e("updateSizes",conf),function(a){var b=opts.items.visible,c=$cfs.children(),d=ms_getParentSize($wrp,opts,"width");if(itms.total=c.length,crsl.primarySizePercentage?(opts.maxDimension=d,opts[opts.d.width]=ms_getPercentage(d,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,d),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,opts=in_getResponsiveValues(opts,c,d),b=opts.items.visible,sz_setResponsiveSizes(opts,c)):opts.items.visibleConf.variable?b=gn_getVisibleItemsNext(c,opts,0):"*"!=opts.items.filter&&(b=gn_getVisibleItemsNextFilter(c,opts,0)),!opts.circular&&0!=itms.first&&b>itms.first){if(opts.items.visibleConf.variable)var e=gn_getVisibleItemsPrev(c,opts,itms.first)-itms.first;else if("*"!=opts.items.filter)var e=gn_getVisibleItemsPrevFilter(c,opts,itms.first)-itms.first;else var e=opts.items.visible-itms.first;debug(conf,"Preventing non-circular: sliding "+e+" items backward."),$cfs.trigger(cf_e("prev",conf),e)}opts.items.visible=cf_getItemsAdjust(b,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,c);var f=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,f]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),f}),$cfs.bind(cf_e("destroy",conf),function(a,b){return a.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),b&&$cfs.trigger(cf_e("jumpToStart",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),"parent"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e("debug",conf),function(a){return debug(conf,"Carousel width: "+opts.width),debug(conf,"Carousel height: "+opts.height),debug(conf,"Item widths: "+opts.items.width),debug(conf,"Item heights: "+opts.items.height),debug(conf,"Number of items visible: "+opts.items.visible),opts.auto.play&&debug(conf,"Number of items scrolled automatically: "+opts.auto.items),opts.prev.button&&debug(conf,"Number of items scrolled backward: "+opts.prev.items),opts.next.button&&debug(conf,"Number of items scrolled forward: "+opts.next.items),conf.debug}),$cfs.bind("_cfs_triggerEvent",function(a,b,c){return a.stopPropagation(),$cfs.triggerHandler(cf_e(b,conf),c)})},FN._unbind_events=function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},FN._bind_buttons=function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(a){a.preventDefault();var b=!1,c=null;crsl.isPaused?b="play":opts.auto.pauseOnEvent&&(b="pause",c=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),b&&$cfs.trigger(cf_e(b,conf),c)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e("prev",conf))}),opts.prev.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e("next",conf))}),opts.next.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.pagination.container&&opts.pagination.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if((opts.prev.key||opts.next.key)&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(a){var b=a.keyCode;b==opts.next.key&&(a.preventDefault(),$cfs.trigger(cf_e("next",conf))),b==opts.prev.key&&(a.preventDefault(),$cfs.trigger(cf_e("prev",conf)))}),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(a){var b=a.keyCode;b>=49&&58>b&&(b=(b-49)*opts.items.visible,b<=itms.total&&(a.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[b,0,!0,opts.pagination])))}),$.fn.swipe){var b="ontouchstart"in window;if(b&&opts.swipe.onTouch||!b&&opts.swipe.onMouse){var c=$.extend(!0,{},opts.prev,opts.swipe),d=$.extend(!0,{},opts.next,opts.swipe),e=function(){$cfs.trigger(cf_e("prev",conf),[c])},f=function(){$cfs.trigger(cf_e("next",conf),[d])};switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=f,opts.swipe.options.swipeDown=e;break;default:opts.swipe.options.swipeLeft=f,opts.swipe.options.swipeRight=e}crsl.swipe&&$cfs.swipe("destroy"),$wrp.swipe(opts.swipe.options),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var g=$.extend(!0,{},opts.prev,opts.mousewheel),h=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),function(a,b){a.preventDefault(),b>0?$cfs.trigger(cf_e("prev",conf),[g]):$cfs.trigger(cf_e("next",conf),[h])}),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e("play",conf),opts.auto.delay),crsl.upDateOnWindowResize){var i=function(a){$cfs.trigger(cf_e("finish",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e("play",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e("updateSizes",conf))},j=$(window),k=null;if($.debounce&&"debounce"==conf.onWindowResize)k=$.debounce(200,i);else if($.throttle&&"throttle"==conf.onWindowResize)k=$.throttle(300,i);else{var l=0,m=0;k=function(){var a=j.width(),b=j.height();(a!=l||b!=m)&&(i(),l=a,m=b)}}j.bind(cf_e("resize",conf,!1,!0,!0),k)}},FN._unbind_buttons=function(){var a=(cf_e("",conf),cf_e("",conf,!1));ns3=cf_e("",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(a),opts.auto.button&&opts.auto.button.unbind(a),opts.prev.button&&opts.prev.button.unbind(a),opts.next.button&&opts.next.button.unbind(a),opts.pagination.container&&(opts.pagination.container.unbind(a),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe("destroy"),$wrp.css("cursor","default"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,"hide",conf),nv_enableNavi(opts,"removeClass",conf)},is_boolean(configs)&&(configs={debug:configs});var crsl={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp="parent"==conf.wrapper?$cfs.parent():$cfs.wrap("<"+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?"transition":"animate",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start))var start_arr=opts.items.start;else{var start_arr=[];0!=opts.items.start&&start_arr.push(opts.items.start)}if(opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),start_arr.length>0)for(var a=0,l=start_arr.length;l>a;a++){var s=start_arr[a];if(0!=s){if(s===!0){if(s=window.location.hash,s.length<1)continue}else"random"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e("slideTo",conf),[s,0,!0,{fx:"none"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e("updatePageStatus",conf),[!0,siz]),$cfs.trigger(cf_e("linkAnchors",conf)),conf.debug&&$cfs.trigger(cf_e("debug",conf)),$cfs},$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,centerVertically:!1,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,event:"click",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:"throttle",events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(a){return'<a href="#"><span>'+a+"</span></a>"},$.fn.carouFredSel.progressbarUpdater=function(a){$(this).css("width",a+"%")},$.fn.carouFredSel.cookie={get:function(a){a+="=";for(var b=document.cookie.split(";"),c=0,d=b.length;d>c;c++){for(var e=b[c];" "==e.charAt(0);)e=e.slice(1);if(0==e.indexOf(a))return e.slice(a.length)}return 0},set:function(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toGMTString()}document.cookie=a+"="+b+d+"; path=/"},remove:function(a){$.fn.carouFredSel.cookie.set(a,"",-1)}},$.extend($.easing,{quadratic:function(a){var b=a*a;return a*(-b*a+4*b-6*a+4)},cubic:function(a){return a*(4*a*a-9*a+6)},elastic:function(a){var b=a*a;return a*(33*b*b-106*b*a+126*b-67*a+15)}}))}(jQuery),function(a){function b(a,b){
return a.toFixed(b.decimals)}a.fn.countTo=function(b){return b=b||{},a(this).each(function(){function c(){k+=g,j++,d(k),"function"==typeof e.onUpdate&&e.onUpdate.call(h,k),j>=f&&(i.removeData("countTo"),clearInterval(l.interval),k=e.to,"function"==typeof e.onComplete&&e.onComplete.call(h,k))}function d(a){var b=e.formatter.call(h,a,e);i.text(b)}var e=a.extend({},a.fn.countTo.defaults,{from:a(this).data("from"),to:a(this).data("to"),speed:a(this).data("speed"),refreshInterval:a(this).data("refresh-interval"),decimals:a(this).data("decimals")},b),f=Math.ceil(e.speed/e.refreshInterval),g=(e.to-e.from)/f,h=this,i=a(this),j=0,k=e.from,l=i.data("countTo")||{};i.data("countTo",l),l.interval&&clearInterval(l.interval),l.interval=setInterval(c,e.refreshInterval),d(k)})},a.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:b,onUpdate:null,onComplete:null}}(jQuery),function(a){a.fn.countDown=function(b){return config={},a.extend(config,b),diffSecs=this.setCountDown(config),config.onComplete&&a.data(a(this)[0],"callback",config.onComplete),config.omitWeeks&&a.data(a(this)[0],"omitWeeks",config.omitWeeks),a("#"+a(this).attr("id")+" .fusion-digit").html('<div class="top"></div><div class="bottom"></div>'),a(this).doCountDown(a(this).attr("id"),diffSecs,500),this},a.fn.stopCountDown=function(){clearTimeout(a.data(this[0],"timer"))},a.fn.startCountDown=function(){this.doCountDown(a(this).attr("id"),a.data(this[0],"diffSecs"),500)},a.fn.setCountDown=function(b){var c=new Date;b.targetDate?c=new Date(b.targetDate.month+"/"+b.targetDate.day+"/"+b.targetDate.year+" "+b.targetDate.hour+":"+b.targetDate.min+":"+b.targetDate.sec+(b.targetDate.utc?" UTC":"")):b.targetOffset&&(c.setFullYear(b.targetOffset.year+c.getFullYear()),c.setMonth(b.targetOffset.month+c.getMonth()),c.setDate(b.targetOffset.day+c.getDate()),c.setHours(b.targetOffset.hour+c.getHours()),c.setMinutes(b.targetOffset.min+c.getMinutes()),c.setSeconds(b.targetOffset.sec+c.getSeconds()));var d=new Date;if(b.gmtOffset){var e=60*b.gmtOffset*6e4,f=6e4*d.getTimezoneOffset();d=new Date(d.getTime()+e+f)}return diffSecs=Math.floor((c.valueOf()-d.valueOf())/1e3),a.data(this[0],"diffSecs",diffSecs),diffSecs},a.fn.doCountDown=function(b,c,d){$this=a("#"+b),0>=c&&(c=0,$this.data("timer")&&clearTimeout($this.data("timer"))),secs=c%60,mins=Math.floor(c/60)%60,hours=Math.floor(c/60/60)%24,1==$this.data("omitWeeks")?(days=Math.floor(c/60/60/24),weeks=Math.floor(c/60/60/24/7)):(days=Math.floor(c/60/60/24)%7,weeks=Math.floor(c/60/60/24/7)),days>99&&$this.find(".fusion-dash-days").find(".fusion-first-digit").css("display","inline-block"),$this.dashChangeTo(b,"fusion-dash-seconds",secs,d?d:800),$this.dashChangeTo(b,"fusion-dash-minutes",mins,d?d:1200),$this.dashChangeTo(b,"fusion-dash-hours",hours,d?d:1200),$this.dashChangeTo(b,"fusion-dash-days",days,d?d:1200),$this.dashChangeTo(b,"fusion-dash-weeks",weeks,d?d:1200),a.data($this[0],"diffSecs",c),c>0?(e=$this,t=setTimeout(function(){e.doCountDown(b,c-1)},1e3),a.data(e[0],"timer",t)):(cb=a.data($this[0],"callback"))&&a.data($this[0],"callback")()},a.fn.dashChangeTo=function(b,c,d,e){$this=a("#"+b);for(var f=$this.find("."+c+" .fusion-digit").length-1;f>=0;f--){var g=d%10;d=(d-g)/10,$this.digitChangeTo("#"+$this.attr("id")+" ."+c+" .fusion-digit:eq("+f+")",g,e)}},a.fn.digitChangeTo=function(b,c,d){var e=a(b+" div.top"),f=a(b+" div.bottom");d||(d=800),e.html()!=c+""&&e.not(":animated").length&&(e.css({display:"none"}),e.html(c?c:"0").fadeOut(d,function(){f.html(e.html()),f.css({display:"block",height:"auto"}),e.css({display:"none"})}))}}(jQuery),function(a,b){"use strict";function c(b){a.fn.cycle.debug&&d(b)}function d(){window.console&&console.log}function e(b,c,d){var e=a(b).data("cycle.opts");if(e){var f=!!b.cyclePause;f&&e.paused?e.paused(b,e,c,d):!f&&e.resumed&&e.resumed(b,e,c,d)}}function f(c,f,g){function i(b,c,e){if(!b&&c===!0){var f=a(e).data("cycle.opts");if(!f)return d("options not found, can not resume"),!1;e.cycleTimeout&&(clearTimeout(e.cycleTimeout),e.cycleTimeout=0),m(f.elements,f,1,!f.backwards)}}if(c.cycleStop===b&&(c.cycleStop=0),(f===b||null===f)&&(f={}),f.constructor==String){switch(f){case"destroy":case"stop":var j=a(c).data("cycle.opts");return j?(c.cycleStop++,c.cycleTimeout&&clearTimeout(c.cycleTimeout),c.cycleTimeout=0,j.elements&&a(j.elements).stop(),a(c).removeData("cycle.opts"),"destroy"==f&&h(c,j),!1):!1;case"toggle":return c.cyclePause=1===c.cyclePause?0:1,i(c.cyclePause,g,c),e(c),!1;case"pause":return c.cyclePause=1,e(c),!1;case"resume":return c.cyclePause=0,i(!1,g,c),e(c),!1;case"prev":case"next":return(j=a(c).data("cycle.opts"))?("string"==typeof g&&(j.oneTimeFx=g),a.fn.cycle[f](j),!1):(d('options not found, "prev/next" ignored'),!1);default:f={fx:f}}return f}if(f.constructor==Number){var k=f;return(f=a(c).data("cycle.opts"))?0>k||k>=f.elements.length?(d("invalid slide index: "+k),!1):(f.nextSlide=k,c.cycleTimeout&&(clearTimeout(c.cycleTimeout),c.cycleTimeout=0),"string"==typeof g&&(f.oneTimeFx=g),m(f.elements,f,1,k>=f.currSlide),!1):(d("options not found, can not advance slide"),!1)}return f}function g(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(d){}}function h(b,c){c.next&&a(c.next).unbind(c.prevNextEvent),c.prev&&a(c.prev).unbind(c.prevNextEvent),(c.pager||c.pagerAnchorBuilder)&&a.each(c.pagerAnchors||[],function(){this.unbind().remove()}),c.pagerAnchors=null,a(b).unbind("mouseenter.cycle mouseleave.cycle"),c.destroy&&c.destroy(c)}function i(c,f,h,i,n){var r,s=a.extend({},a.fn.cycle.defaults,i||{},a.metadata?c.metadata():a.meta?c.data():{}),t=a.isFunction(c.data)?c.data(s.metaAttr):null;t&&(s=a.extend(s,t)),s.autostop&&(s.countdown=s.autostopCount||h.length);var u=c[0];if(c.data("cycle.opts",s),s.$cont=c,s.stopCount=u.cycleStop,s.elements=h,s.before=s.before?[s.before]:[],s.after=s.after?[s.after]:[],!a.support.opacity&&s.cleartype&&s.after.push(function(){g(this,s)}),s.continuous&&s.after.push(function(){m(h,s,0,!s.backwards)}),j(s),a.support.opacity||!s.cleartype||s.cleartypeNoBg||q(f),"static"==c.css("position")&&c.css("position","relative"),s.width&&c.width(s.width),s.height&&"auto"!=s.height&&c.height(s.height),s.startingSlide!==b?(s.startingSlide=parseInt(s.startingSlide,10),s.startingSlide>=h.length||s.startSlide<0?s.startingSlide=0:r=!0):s.backwards?s.startingSlide=h.length-1:s.startingSlide=0,s.random){s.randomMap=[];for(var v=0;v<h.length;v++)s.randomMap.push(v);if(s.randomMap.sort(function(a,b){return Math.random()-.5}),r)for(var w=0;w<h.length;w++)s.startingSlide==s.randomMap[w]&&(s.randomIndex=w);else s.randomIndex=1,s.startingSlide=s.randomMap[1]}else s.startingSlide>=h.length&&(s.startingSlide=0);s.currSlide=s.startingSlide||0;var x=s.startingSlide;f.css({position:"absolute",top:0,left:0}).hide().each(function(b){var c;c=s.backwards?x?x>=b?h.length+(b-x):x-b:h.length-b:x?b>=x?h.length-(b-x):x-b:h.length-b,a(this).css("z-index",c)}),a(h[x]).css("opacity",1).show(),g(h[x],s),s.fit&&(s.aspect?f.each(function(){var b=a(this),c=s.aspect===!0?b.width()/b.height():s.aspect;s.width&&b.width()!=s.width&&(b.width(s.width),b.height(s.width/c)),s.height&&b.height()<s.height&&(b.height(s.height),b.width(s.height*c))}):(s.width&&f.width(s.width),s.height&&"auto"!=s.height&&f.height(s.height))),!s.center||s.fit&&!s.aspect||f.each(function(){var b=a(this);b.css({"margin-left":s.width?(s.width-b.width())/2+"px":0,"margin-top":s.height?(s.height-b.height())/2+"px":0})}),!s.center||s.fit||s.slideResize||f.each(function(){var b=a(this);b.css({"margin-left":s.width?(s.width-b.width())/2+"px":0,"margin-top":s.height?(s.height-b.height())/2+"px":0})});var y=(s.containerResize||s.containerResizeHeight)&&c.innerHeight()<1;if(y){for(var z=0,A=0,B=0;B<h.length;B++){var C=a(h[B]),D=C[0],E=C.outerWidth(),F=C.outerHeight();E||(E=D.offsetWidth||D.width||C.attr("width")),F||(F=D.offsetHeight||D.height||C.attr("height")),z=E>z?E:z,A=F>A?F:A}s.containerResize&&z>0&&A>0&&c.animate({width:z+"px",height:A+"px"}),s.containerResizeHeight&&A>0&&c.animate({height:A+"px"})}var G=!1;if(s.pause&&c.bind("mouseenter.cycle",function(){G=!0,this.cyclePause++,e(u,!0)}).bind("mouseleave.cycle",function(){G&&this.cyclePause--,e(u,!0)}),k(s)===!1)return!1;var H=!1;if(i.requeueAttempts=i.requeueAttempts||0,f.each(function(){var b=a(this);if(this.cycleH=s.fit&&s.height?s.height:b.height()||this.offsetHeight||this.height||b.attr("height")||0,this.cycleW=s.fit&&s.width?s.width:b.width()||this.offsetWidth||this.width||b.attr("width")||0,b.is("img")){var c=0===this.cycleH&&0===this.cycleW&&!this.complete;if(c){if(n.s&&s.requeueOnImageNotLoaded&&++i.requeueAttempts<100)return d(i.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){a(n.s,n.c).cycle(i)},s.requeueTimeout),H=!0,!1;d("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),H)return!1;if(s.cssBefore=s.cssBefore||{},s.cssAfter=s.cssAfter||{},s.cssFirst=s.cssFirst||{},s.animIn=s.animIn||{},s.animOut=s.animOut||{},f.not(":eq("+x+")").css(s.cssBefore),a(f[x]).css(s.cssFirst),s.timeout){s.timeout=parseInt(s.timeout,10),s.speed.constructor==String&&(s.speed=a.fx.speeds[s.speed]||parseInt(s.speed,10)),s.sync||(s.speed=s.speed/2);for(var I="none"==s.fx?0:"shuffle"==s.fx?500:250;s.timeout-s.speed<I;)s.timeout+=s.speed}if(s.easing&&(s.easeIn=s.easeOut=s.easing),s.speedIn||(s.speedIn=s.speed),s.speedOut||(s.speedOut=s.speed),s.slideCount=h.length,s.currSlide=s.lastSlide=x,s.random?(++s.randomIndex==h.length&&(s.randomIndex=0),s.nextSlide=s.randomMap[s.randomIndex]):s.backwards?s.nextSlide=0===s.startingSlide?h.length-1:s.startingSlide-1:s.nextSlide=s.startingSlide>=h.length-1?0:s.startingSlide+1,!s.multiFx){var J=a.fn.cycle.transitions[s.fx];if(a.isFunction(J))J(c,f,s);else if("custom"!=s.fx&&!s.multiFx)return d("unknown transition: "+s.fx,"; slideshow terminating"),!1}var K=f[x];return s.skipInitializationCallbacks||(s.before.length&&s.before[0].apply(K,[K,K,s,!0]),s.after.length&&s.after[0].apply(K,[K,K,s,!0])),s.next&&a(s.next).bind(s.prevNextEvent,function(){return o(s,1)}),s.prev&&a(s.prev).bind(s.prevNextEvent,function(){return o(s,0)}),(s.pager||s.pagerAnchorBuilder)&&p(h,s),l(s,h),s}function j(b){b.original={before:[],after:[]},b.original.cssBefore=a.extend({},b.cssBefore),b.original.cssAfter=a.extend({},b.cssAfter),b.original.animIn=a.extend({},b.animIn),b.original.animOut=a.extend({},b.animOut),a.each(b.before,function(){b.original.before.push(this)}),a.each(b.after,function(){b.original.after.push(this)})}function k(b){var e,f,g=a.fn.cycle.transitions;if(b.fx.indexOf(",")>0){for(b.multiFx=!0,b.fxs=b.fx.replace(/\s*/g,"").split(","),e=0;e<b.fxs.length;e++){var h=b.fxs[e];f=g[h],f&&g.hasOwnProperty(h)&&a.isFunction(f)||(d("discarding unknown transition: ",h),b.fxs.splice(e,1),e--)}if(!b.fxs.length)return d("No valid transitions named; slideshow terminating."),!1}else if("all"==b.fx){b.multiFx=!0,b.fxs=[];for(var i in g)g.hasOwnProperty(i)&&(f=g[i],g.hasOwnProperty(i)&&a.isFunction(f)&&b.fxs.push(i))}if(b.multiFx&&b.randomizeEffects){var j=Math.floor(20*Math.random())+30;for(e=0;j>e;e++){var k=Math.floor(Math.random()*b.fxs.length);b.fxs.push(b.fxs.splice(k,1)[0])}c("randomized fx sequence: ",b.fxs)}return!0}function l(b,c){b.addSlide=function(d,e){var f=a(d),g=f[0];b.autostopCount||b.countdown++,c[e?"unshift":"push"](g),b.els&&b.els[e?"unshift":"push"](g),b.slideCount=c.length,b.random&&(b.randomMap.push(b.slideCount-1),b.randomMap.sort(function(a,b){return Math.random()-.5})),f.css("position","absolute"),f[e?"prependTo":"appendTo"](b.$cont),e&&(b.currSlide++,b.nextSlide++),a.support.opacity||!b.cleartype||b.cleartypeNoBg||q(f),b.fit&&b.width&&f.width(b.width),b.fit&&b.height&&"auto"!=b.height&&f.height(b.height),g.cycleH=b.fit&&b.height?b.height:f.height(),g.cycleW=b.fit&&b.width?b.width:f.width(),f.css(b.cssBefore),(b.pager||b.pagerAnchorBuilder)&&a.fn.cycle.createPagerAnchor(c.length-1,g,a(b.pager),c,b),a.isFunction(b.onAddSlide)?b.onAddSlide(f):f.hide()}}function m(d,e,f,g){function h(){var a=0;e.timeout;e.timeout&&!e.continuous?(a=n(d[e.currSlide],d[e.nextSlide],e,g),"shuffle"==e.fx&&(a-=e.speedOut)):e.continuous&&i.cyclePause&&(a=10),a>0&&(i.cycleTimeout=setTimeout(function(){m(d,e,0,!e.backwards)},a))}var i=e.$cont[0],j=d[e.currSlide],k=d[e.nextSlide];if(f&&e.busy&&e.manualTrump&&(c("manualTrump in go(), stopping active transition"),a(d).stop(!0,!0),e.busy=0,clearTimeout(i.cycleTimeout)),e.busy)return void c("transition active, ignoring new tx request");if(i.cycleStop==e.stopCount&&(0!==i.cycleTimeout||f)){if(!f&&!i.cyclePause&&!e.bounce&&(e.autostop&&--e.countdown<=0||e.nowrap&&!e.random&&e.nextSlide<e.currSlide))return void(e.end&&e.end(e));var l=!1;if(!f&&i.cyclePause||e.nextSlide==e.currSlide)h();else{l=!0;var o=e.fx;j.cycleH=j.cycleH||a(j).height(),j.cycleW=j.cycleW||a(j).width(),k.cycleH=k.cycleH||a(k).height(),k.cycleW=k.cycleW||a(k).width(),e.multiFx&&(g&&(e.lastFx===b||++e.lastFx>=e.fxs.length)?e.lastFx=0:!g&&(e.lastFx===b||--e.lastFx<0)&&(e.lastFx=e.fxs.length-1),o=e.fxs[e.lastFx]),e.oneTimeFx&&(o=e.oneTimeFx,e.oneTimeFx=null),a.fn.cycle.resetState(e,o),e.before.length&&a.each(e.before,function(a,b){i.cycleStop==e.stopCount&&b.apply(k,[j,k,e,g])});var p=function(){e.busy=0,a.each(e.after,function(a,b){i.cycleStop==e.stopCount&&b.apply(k,[j,k,e,g])}),i.cycleStop||h()};c("tx firing("+o+"); currSlide: "+e.currSlide+"; nextSlide: "+e.nextSlide),e.busy=1,e.fxFn?e.fxFn(j,k,e,p,g,f&&e.fastOnEvent):a.isFunction(a.fn.cycle[e.fx])?a.fn.cycle[e.fx](j,k,e,p,g,f&&e.fastOnEvent):a.fn.cycle.custom(j,k,e,p,g,f&&e.fastOnEvent)}if(l||e.nextSlide==e.currSlide){var q;e.lastSlide=e.currSlide,e.random?(e.currSlide=e.nextSlide,++e.randomIndex==d.length&&(e.randomIndex=0,e.randomMap.sort(function(a,b){return Math.random()-.5})),e.nextSlide=e.randomMap[e.randomIndex],e.nextSlide==e.currSlide&&(e.nextSlide=e.currSlide==e.slideCount-1?0:e.currSlide+1)):e.backwards?(q=e.nextSlide-1<0,q&&e.bounce?(e.backwards=!e.backwards,e.nextSlide=1,e.currSlide=0):(e.nextSlide=q?d.length-1:e.nextSlide-1,e.currSlide=q?0:e.nextSlide+1)):(q=e.nextSlide+1==d.length,q&&e.bounce?(e.backwards=!e.backwards,e.nextSlide=d.length-2,e.currSlide=d.length-1):(e.nextSlide=q?0:e.nextSlide+1,e.currSlide=q?d.length-1:e.nextSlide-1))}l&&e.pager&&e.updateActivePagerLink(e.pager,e.currSlide,e.activePagerClass)}}function n(a,b,d,e){if(d.timeoutFn){for(var f=d.timeoutFn.call(a,a,b,d,e);"none"!=d.fx&&f-d.speed<250;)f+=d.speed;if(c("calculated timeout: "+f+"; speed: "+d.speed),f!==!1)return f}return d.timeout}function o(b,c){var d=c?1:-1,e=b.elements,f=b.$cont[0],g=f.cycleTimeout;if(g&&(clearTimeout(g),f.cycleTimeout=0),b.random&&0>d)b.randomIndex--,-2==--b.randomIndex?b.randomIndex=e.length-2:-1==b.randomIndex&&(b.randomIndex=e.length-1),b.nextSlide=b.randomMap[b.randomIndex];else if(b.random)b.nextSlide=b.randomMap[b.randomIndex];else if(b.nextSlide=b.currSlide+d,b.nextSlide<0){if(b.nowrap)return!1;b.nextSlide=e.length-1}else if(b.nextSlide>=e.length){if(b.nowrap)return!1;b.nextSlide=0}var h=b.onPrevNextEvent||b.prevNextClick;return a.isFunction(h)&&h(d>0,b.nextSlide,e[b.nextSlide]),m(e,b,1,c),!1}function p(b,c){var d=a(c.pager);a.each(b,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,b,c)}),c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function q(b){function d(a){return a=parseInt(a,10).toString(16),a.length<2?"0"+a:a}function e(b){for(;b&&"html"!=b.nodeName.toLowerCase();b=b.parentNode){var c=a.css(b,"background-color");if(c&&c.indexOf("rgb")>=0){var e=c.match(/\d+/g);return"#"+d(e[0])+d(e[1])+d(e[2])}if(c&&"transparent"!=c)return c}return"#ffffff"}c("applying clearType background-color hack"),b.each(function(){a(this).css("background-color",e(this))})}var r="3.0.3";a.expr[":"].paused=function(a){return a.cyclePause},a.fn.cycle=function(b,e){var g={s:this.selector,c:this.context};return 0===this.length&&"stop"!=b?!a.isReady&&g.s?(d("DOM not ready, queuing slideshow"),a(function(){a(g.s,g.c).cycle(b,e)}),this):(d("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=f(this,b,e);if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||a.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var j=a(this),k=h.slideExpr?a(h.slideExpr,this):j.children(),l=k.get();if(l.length<2)return void d("terminating; too few slides: "+l.length);var o=i(j,k,l,h,g);if(o!==!1){var p=o.continuous?10:n(l[o.currSlide],l[o.nextSlide],o,!o.backwards);p&&(p+=o.delay||0,10>p&&(p=10),c("first timeout: "+p),this.cycleTimeout=setTimeout(function(){m(l,o,0,!h.backwards)},p))}}})},a.fn.cycle.resetState=function(b,c){c=c||b.fx,b.before=[],b.after=[],b.cssBefore=a.extend({},b.original.cssBefore),b.cssAfter=a.extend({},b.original.cssAfter),b.animIn=a.extend({},b.original.animIn),b.animOut=a.extend({},b.original.animOut),b.fxFn=null,a.each(b.original.before,function(){b.before.push(this)}),a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];a.isFunction(d)&&d(b.$cont,a(b.elements),b)},a.fn.cycle.updateActivePagerLink=function(b,c,d){a(b).each(function(){a(this).children().removeClass(d).eq(c).addClass(d)})},a.fn.cycle.next=function(a){o(a,1)},a.fn.cycle.prev=function(a){o(a,0)},a.fn.cycle.createPagerAnchor=function(b,d,f,g,h){var i;if(a.isFunction(h.pagerAnchorBuilder)?(i=h.pagerAnchorBuilder(b,d),c("pagerAnchorBuilder("+b+", el) returned: "+i)):i='<a href="#"></a>',i){var j=a(i);if(0===j.parents("body").length){var k=[];f.length>1?(f.each(function(){var b=j.clone(!0);a(this).append(b),k.push(b[0])}),j=a(k)):j.appendTo(f)}h.pagerAnchors=h.pagerAnchors||[],h.pagerAnchors.push(j);var l=function(c){c.preventDefault(),h.nextSlide=b;var d=h.$cont[0],e=d.cycleTimeout;e&&(clearTimeout(e),d.cycleTimeout=0);var f=h.onPagerEvent||h.pagerClick;a.isFunction(f)&&f(h.nextSlide,g[h.nextSlide]),m(g,h,1,h.currSlide<b)};/mouseenter|mouseover/i.test(h.pagerEvent)?j.hover(l,function(){}):j.bind(h.pagerEvent,l),/^click/.test(h.pagerEvent)||h.allowPagerClickBubble||j.bind("click.cycle",function(){return!1});var n=h.$cont[0],o=!1;h.pauseOnPagerHover&&j.hover(function(){o=!0,n.cyclePause++,e(n,!0,!0)},function(){o&&n.cyclePause--,e(n,!0,!0)})}},a.fn.cycle.hopsFromLast=function(a,b){var c,d=a.lastSlide,e=a.currSlide;return c=b?e>d?e-d:a.slideCount-d:d>e?d-e:d+a.slideCount-e},a.fn.cycle.commonReset=function(b,c,d,e,f,g){a(d.elements).not(b).hide(),"undefined"==typeof d.cssBefore.opacity&&(d.cssBefore.opacity=1),d.cssBefore.display="block",d.slideResize&&e!==!1&&c.cycleW>0&&(d.cssBefore.width=c.cycleW),d.slideResize&&f!==!1&&c.cycleH>0&&(d.cssBefore.height=c.cycleH),d.cssAfter=d.cssAfter||{},d.cssAfter.display="none",a(b).css("zIndex",d.slideCount+(g===!0?1:0)),a(c).css("zIndex",d.slideCount+(g===!0?0:1))},a.fn.cycle.custom=function(b,c,d,e,f,g){var h=a(b),i=a(c),j=d.speedIn,k=d.speedOut,l=d.easeIn,m=d.easeOut,n=d.animInDelay,o=d.animOutDelay;i.css(d.cssBefore),g&&(j=k="number"==typeof g?g:1,l=m=null);var p=function(){i.delay(n).animate(d.animIn,j,l,function(){e()})};h.delay(o).animate(d.animOut,k,m,function(){h.css(d.cssAfter),d.sync||p()}),d.sync&&p()},a.fn.cycle.transitions={fade:function(b,c,d){c.not(":eq("+d.currSlide+")").css("opacity",0),d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.cssBefore.opacity=0}),d.animIn={opacity:1},d.animOut={opacity:0},d.cssBefore={top:0,left:0}}},a.fn.cycle.ver=function(){return r},a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!a.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:b,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(a){"use strict";a.fn.cycle.transitions.none=function(b,c,d){d.fxFn=function(b,c,d,e){a(c).show(),a(b).hide(),e()}},a.fn.cycle.transitions.fadeout=function(b,c,d){c.not(":eq("+d.currSlide+")").css({display:"block",opacity:1}),d.before.push(function(b,c,d,e,f,g){a(b).css("zIndex",d.slideCount+(g!==!0?1:0)),a(c).css("zIndex",d.slideCount+(g!==!0?0:1))}),d.animIn.opacity=1,d.animOut.opacity=0,d.cssBefore.opacity=1,d.cssBefore.display="block",d.cssAfter.zIndex=0},a.fn.cycle.transitions.scrollUp=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.height();d.cssBefore.top=e,d.cssBefore.left=0,d.cssFirst.top=0,d.animIn.top=0,d.animOut.top=-e},a.fn.cycle.transitions.scrollDown=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.height();d.cssFirst.top=0,d.cssBefore.top=-e,d.cssBefore.left=0,d.animIn.top=0,d.animOut.top=e},a.fn.cycle.transitions.scrollLeft=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst.left=0,d.cssBefore.left=e,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=0-e},a.fn.cycle.transitions.scrollRight=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst.left=0,d.cssBefore.left=-e,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=e},a.fn.cycle.transitions.scrollHorz=function(b,c,d){b.css("overflow","hidden").width(),d.before.push(function(b,c,d,e){d.rev&&(e=!e),a.fn.cycle.commonReset(b,c,d),d.cssBefore.left=e?c.cycleW-1:1-c.cycleW,d.animOut.left=e?-b.cycleW:b.cycleW}),d.cssFirst.left=0,d.cssBefore.top=0,d.animIn.left=0,d.animOut.top=0},a.fn.cycle.transitions.scrollVert=function(b,c,d){b.css("overflow","hidden"),d.before.push(function(b,c,d,e){d.rev&&(e=!e),a.fn.cycle.commonReset(b,c,d),d.cssBefore.top=e?1-c.cycleH:c.cycleH-1,d.animOut.top=e?b.cycleH:-b.cycleH}),d.cssFirst.top=0,d.cssBefore.left=0,d.animIn.top=0,d.animOut.left=0},a.fn.cycle.transitions.slideX=function(b,c,d){d.before.push(function(b,c,d){a(d.elements).not(b).hide(),a.fn.cycle.commonReset(b,c,d,!1,!0),d.animIn.width=c.cycleW}),d.cssBefore.left=0,d.cssBefore.top=0,d.cssBefore.width=0,d.animIn.width="show",d.animOut.width=0},a.fn.cycle.transitions.slideY=function(b,c,d){d.before.push(function(b,c,d){a(d.elements).not(b).hide(),a.fn.cycle.commonReset(b,c,d,!0,!1),d.animIn.height=c.cycleH}),d.cssBefore.left=0,d.cssBefore.top=0,d.cssBefore.height=0,d.animIn.height="show",d.animOut.height=0},a.fn.cycle.transitions.shuffle=function(b,c,d){var e,f=b.css("overflow","visible").width();for(c.css({left:0,top:0}),d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!0,!0)}),d.speedAdjusted||(d.speed=d.speed/2,d.speedAdjusted=!0),d.random=0,d.shuffle=d.shuffle||{left:-f,top:15},d.els=[],e=0;e<c.length;e++)d.els.push(c[e]);for(e=0;e<d.currSlide;e++)d.els.push(d.els.shift());d.fxFn=function(b,c,d,e,f){d.rev&&(f=!f);var g=a(f?b:c);a(c).css(d.cssBefore);var h=d.slideCount;g.animate(d.shuffle,d.speedIn,d.easeIn,function(){for(var c=a.fn.cycle.hopsFromLast(d,f),i=0;c>i;i++)f?d.els.push(d.els.shift()):d.els.unshift(d.els.pop());if(f)for(var j=0,k=d.els.length;k>j;j++)a(d.els[j]).css("z-index",k-j+h);else{var l=a(b).css("z-index");g.css("z-index",parseInt(l,10)+1+h)}g.animate({left:0,top:0},d.speedOut,d.easeOut,function(){a(f?this:b).hide(),e&&e()})})},a.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0})},a.fn.cycle.transitions.turnUp=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1),d.cssBefore.top=c.cycleH,d.animIn.height=c.cycleH,d.animOut.width=c.cycleW}),d.cssFirst.top=0,d.cssBefore.left=0,d.cssBefore.height=0,d.animIn.top=0,d.animOut.height=0},a.fn.cycle.transitions.turnDown=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1),d.animIn.height=c.cycleH,d.animOut.top=b.cycleH}),d.cssFirst.top=0,d.cssBefore.left=0,d.cssBefore.top=0,d.cssBefore.height=0,d.animOut.height=0},a.fn.cycle.transitions.turnLeft=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0),d.cssBefore.left=c.cycleW,d.animIn.width=c.cycleW}),d.cssBefore.top=0,d.cssBefore.width=0,d.animIn.left=0,d.animOut.width=0},a.fn.cycle.transitions.turnRight=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0),d.animIn.width=c.cycleW,d.animOut.left=b.cycleW}),a.extend(d.cssBefore,{top:0,left:0,width:0}),d.animIn.left=0,d.animOut.width=0},a.fn.cycle.transitions.zoom=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!1,!0),d.cssBefore.top=c.cycleH/2,d.cssBefore.left=c.cycleW/2,a.extend(d.animIn,{top:0,left:0,width:c.cycleW,height:c.cycleH}),a.extend(d.animOut,{width:0,height:0,top:b.cycleH/2,left:b.cycleW/2})}),d.cssFirst.top=0,d.cssFirst.left=0,d.cssBefore.width=0,d.cssBefore.height=0},a.fn.cycle.transitions.fadeZoom=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!1),d.cssBefore.left=c.cycleW/2,d.cssBefore.top=c.cycleH/2,a.extend(d.animIn,{top:0,left:0,width:c.cycleW,height:c.cycleH})}),d.cssBefore.width=0,d.cssBefore.height=0,d.animOut.opacity=0},a.fn.cycle.transitions.blindX=function(b,c,d){var e=b.css("overflow","hidden").width();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.animIn.width=c.cycleW,d.animOut.left=b.cycleW}),d.cssBefore.left=e,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=e},a.fn.cycle.transitions.blindY=function(b,c,d){var e=b.css("overflow","hidden").height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.animIn.height=c.cycleH,d.animOut.top=b.cycleH}),d.cssBefore.top=e,d.cssBefore.left=0,d.animIn.top=0,d.animOut.top=e},a.fn.cycle.transitions.blindZ=function(b,c,d){var e=b.css("overflow","hidden").height(),f=b.width();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.animIn.height=c.cycleH,d.animOut.top=b.cycleH}),d.cssBefore.top=e,d.cssBefore.left=f,d.animIn.top=0,d.animIn.left=0,d.animOut.top=e,d.animOut.left=f},a.fn.cycle.transitions.growX=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0),d.cssBefore.left=this.cycleW/2,d.animIn.left=0,d.animIn.width=this.cycleW,d.animOut.left=0}),d.cssBefore.top=0,d.cssBefore.width=0},a.fn.cycle.transitions.growY=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1),d.cssBefore.top=this.cycleH/2,d.animIn.top=0,d.animIn.height=this.cycleH,d.animOut.top=0}),d.cssBefore.height=0,d.cssBefore.left=0},a.fn.cycle.transitions.curtainX=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0,!0),d.cssBefore.left=c.cycleW/2,d.animIn.left=0,d.animIn.width=this.cycleW,d.animOut.left=b.cycleW/2,d.animOut.width=0}),d.cssBefore.top=0,d.cssBefore.width=0},a.fn.cycle.transitions.curtainY=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1,!0),d.cssBefore.top=c.cycleH/2,d.animIn.top=0,d.animIn.height=c.cycleH,d.animOut.top=b.cycleH/2,d.animOut.height=0}),d.cssBefore.height=0,d.cssBefore.left=0},a.fn.cycle.transitions.cover=function(b,c,d){var e=d.direction||"left",f=b.css("overflow","hidden").width(),g=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.cssAfter.display="","right"==e?d.cssBefore.left=-f:"up"==e?d.cssBefore.top=g:"down"==e?d.cssBefore.top=-g:d.cssBefore.left=f}),d.animIn.left=0,d.animIn.top=0,d.cssBefore.top=0,d.cssBefore.left=0},a.fn.cycle.transitions.uncover=function(b,c,d){var e=d.direction||"left",f=b.css("overflow","hidden").width(),g=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!0,!0),"right"==e?d.animOut.left=f:"up"==e?d.animOut.top=-g:"down"==e?d.animOut.top=g:d.animOut.left=-f}),d.animIn.left=0,d.animIn.top=0,d.cssBefore.top=0,d.cssBefore.left=0},a.fn.cycle.transitions.toss=function(b,c,d){var e=b.css("overflow","visible").width(),f=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!0,!0),d.animOut.left||d.animOut.top?d.animOut.opacity=0:a.extend(d.animOut,{left:2*e,top:-f/2,opacity:0})}),d.cssBefore.left=0,d.cssBefore.top=0,d.animIn.left=0},a.fn.cycle.transitions.wipe=function(b,c,d){var e=b.css("overflow","hidden").width(),f=b.height();d.cssBefore=d.cssBefore||{};var g;if(d.clip)if(/l2r/.test(d.clip))g="rect(0px 0px "+f+"px 0px)";else if(/r2l/.test(d.clip))g="rect(0px "+e+"px "+f+"px "+e+"px)";else if(/t2b/.test(d.clip))g="rect(0px "+e+"px 0px 0px)";else if(/b2t/.test(d.clip))g="rect("+f+"px "+e+"px "+f+"px 0px)";else if(/zoom/.test(d.clip)){var h=parseInt(f/2,10),i=parseInt(e/2,10);g="rect("+h+"px "+i+"px "+h+"px "+i+"px)"}d.cssBefore.clip=d.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var j=d.cssBefore.clip.match(/(\d+)/g),k=parseInt(j[0],10),l=parseInt(j[1],10),m=parseInt(j[2],10),n=parseInt(j[3],10);d.before.push(function(b,c,d){if(b!=c){var g=a(b),h=a(c);a.fn.cycle.commonReset(b,c,d,!0,!0,!1),d.cssAfter.display="block";var i=1,j=parseInt(d.speedIn/13,10)-1;!function o(){var a=k?k-parseInt(i*(k/j),10):0,b=n?n-parseInt(i*(n/j),10):0,c=f>m?m+parseInt(i*((f-m)/j||1),10):f,d=e>l?l+parseInt(i*((e-l)/j||1),10):e;h.css({clip:"rect("+a+"px "+d+"px "+c+"px "+b+"px)"}),i++<=j?setTimeout(o,13):g.css("display","none")}()}}),a.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0}),d.animIn={left:0},d.animOut={left:0}}}(jQuery),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){return(b/=e/2)<1?d/2*b*b+c:-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){return(b/=e/2)<1?d/2*b*b*b+c: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){return(b/=e/2)<1?d/2*b*b*b*b+c:-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){return(b/=e/2)<1?d/2*b*b*b*b*b+c: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 0==b?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){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c: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){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),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,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),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,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=e*(.3*1.5)),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return 1>b?-.5*(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*(2*Math.PI)/g))+c: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){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*(b*b*(((f*=1.525)+1)*b-f))+c: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){return(b/=e)<1/2.75?d*(7.5625*b*b)+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}),function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.trackWidth||b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(a,b){},onStep:function(a,b,c){},onStop:function(a,b){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));"string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?e.easing=jQuery.easing[e.easing]:e.easing=d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}}),function(a,b,c){var d,e=b.event;e.special.smartresize={setup:function(){b(this).bind("resize",e.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",e.special.smartresize.handler)},handler:function(a,b){var c=this,e=arguments;a.type="smartresize",d&&clearTimeout(d),d=setTimeout(function(){jQuery.event.handle.apply(c,e)},"execAsap"===b?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Slideshow=function(a,c){this.$el=b(c),this.$list=this.$el.find("ul.ei-slider-large"),this.$imgItems=this.$list.children("li"),this.itemsCount=this.$imgItems.length,this.$images=this.$imgItems.find("img:first"),this.$sliderthumbs=this.$el.find("ul.ei-slider-thumbs").hide(),this.$sliderElems=this.$sliderthumbs.children("li"),this.$sliderElem=this.$sliderthumbs.children("li.ei-slider-element"),this.$thumbs=this.$sliderElems.not(".ei-slider-element"),this._init(a)},b.Slideshow.defaults={animation:"sides",autoplay:!1,slideshow_interval:3e3,speed:800,easing:"",titlesFactor:.6,titlespeed:800,titleeasing:"",thumbMaxWidth:150},b.Slideshow.prototype={_init:function(a){this.options=b.extend(!0,{},b.Slideshow.defaults,a),this.$imgItems.css("opacity",0),this.$imgItems.find("div.ei-title > *").css("opacity",0),this.current=0;var c=this;this.$loading=b('<div class="ei-slider-loading">Loading</div>').prependTo(c.$el),b.when(this._preloadImages()).done(function(){c.$loading.hide(),c._setImagesSize(),c._initThumbs(),c.$imgItems.eq(c.current).css({opacity:1,"z-index":10}).show().find("div.ei-title > *").css("opacity",1),c.options.autoplay&&c._startSlideshow(),c._initEvents()})},_preloadImages:function(){var a=this,c=0;return b.Deferred(function(d){a.$images.each(function(e){b("<img/>").load(function(){++c===a.itemsCount&&d.resolve()}).attr("src",b(this).attr("src"))})}).promise()},_setImagesSize:function(){this.elWidth=this.$el.width();var a=this;this.$images.each(function(c){var d=b(this);imgDim=a._getImageDim(d.attr("src")),d.css({width:imgDim.width,height:imgDim.height,marginLeft:imgDim.left,marginTop:imgDim.top})})},_getImageDim:function(a){var b=new Image;b.src=a;var c,d,e=this.elWidth,f=this.$el.height(),g=f/e,h=b.width,i=b.height,j=i/h;return g>j?(d=f,c=f/j):(d=e*j,c=e),{width:c,height:d,left:(e-c)/2,top:(f-d)/2}},_initThumbs:function(){this.$sliderElems.css({"max-width":this.options.thumbMaxWidth+"px",width:100/this.itemsCount+"%"}),this.$sliderthumbs.css("max-width",this.options.thumbMaxWidth*this.itemsCount+"px").show()},_startSlideshow:function(){var a=this;this.slideshow=setTimeout(function(){var b;b=a.current===a.itemsCount-1?0:a.current+1,a._slideTo(b),a.options.autoplay&&a._startSlideshow()},this.options.slideshow_interval)},_slideTo:function(a){if(a===this.current||this.isAnimating)return!1;this.isAnimating=!0;var c=this.$imgItems.eq(this.current),d=this.$imgItems.eq(a),e=this,f={zIndex:10},g={opacity:1};"sides"===this.options.animation&&(f.left=a>this.current?-1*this.elWidth:this.elWidth,g.left=0),d.find("div.ei-title > h2").css("margin-right","50px").stop().delay(this.options.speed*this.options.titlesFactor).animate({marginRight:"0px",opacity:1},this.options.titlespeed,this.options.titleeasing).end().find("div.ei-title > h3").css("margin-right","-50px").stop().delay(this.options.speed*this.options.titlesFactor).animate({marginRight:"0px",opacity:1},this.options.titlespeed,this.options.titleeasing),b.when(c.css("z-index",1).find("div.ei-title > *").stop().fadeOut(this.options.speed/2,function(){b(this).show().css("opacity",0)}),d.css(f).stop().animate(g,this.options.speed,this.options.easing),this.$sliderElem.stop().animate({left:this.$thumbs.eq(a).position().left},this.options.speed)).done(function(){c.css("opacity",0).find("div.ei-title > *").css("opacity",0),e.current=a,e.isAnimating=!1})},_initEvents:function(){var c=this;b(a).on("smartresize.eislideshow",function(a){c._setImagesSize(),c.$sliderElem.css("left",c.$thumbs.eq(c.current).position().left)}),this.$thumbs.on("click.eislideshow",function(a){c.options.autoplay&&(clearTimeout(c.slideshow),c.options.autoplay=!1);var d=b(this),e=d.index()-1;return c._slideTo(e),!1})}};var f=function(a){this.console};b.fn.eislideshow=function(a){if("string"==typeof a){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=b.data(this,"eislideshow");return d?b.isFunction(d[a])&&"_"!==a.charAt(0)?void d[a].apply(d,c):void f("no such method '"+a+"' for eislideshow instance"):void f("cannot call methods on eislideshow prior to initialization; attempted to call method '"+a+"'")})}else this.each(function(){var c=b.data(this,"eislideshow");c||b.data(this,"eislideshow",new b.Slideshow(a,this))});return this}}(window,jQuery),function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var d=document.head||document.getElementsByTagName("head")[0],e=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",f=document.createElement("div");f.innerHTML='<p>x</p><style id="fit-vids-style">'+e+"</style>",d.appendChild(f.childNodes[1])}return b&&a.extend(c,b),this.each(function(){var b=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];c.customSelector&&b.push(c.customSelector);var d=".fitvidsignore";c.ignore&&(d=d+", "+c.ignore);var e=a(this).find(b.join(","));e=e.not("object object"),e=e.not(d),e.each(function(){var b=a(this);if(!(b.parents(d).length>0||"embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){b.css("height")||b.css("width")||!isNaN(b.attr("height"))&&!isNaN(b.attr("width"))||(b.attr("height",9),b.attr("width",16));var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),e=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),f=c/e;if(!b.attr("name")){var g="fitvid"+a.fn.fitVids._count;b.attr("name",g),a.fn.fitVids._count++}b.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*f+"%"),b.removeAttr("height").removeAttr("width")}})})},a.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(b){function c(){var a=document.getElementsByTagName("script"),b=a[a.length-1].src.split("?")[0];return b.split("/").length>0?b.split("/").slice(0,-1).join("/")+"/":""}function d(a,b,c){for(var d=0;d<b.length;d++)c(a,b[d])}var e=!1,f=!1,g=5e3,h=2e3,i=0,j=b,k=c(),l=["ms","moz","webkit","o"],m=window.requestAnimationFrame||!1,n=window.cancelAnimationFrame||!1;if(!m)for(var o in l){var p=l[o];m||(m=window[p+"RequestAnimationFrame"]),n||(n=window[p+"CancelAnimationFrame"]||window[p+"CancelRequestAnimationFrame"])}var q=window.MutationObserver||window.WebKitMutationObserver||!1,r={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:!1,cursordragontouch:!1,oneaxismousemode:"auto"},s=!1,t=function(){function a(){var a=["-moz-grab","-webkit-grab","grab"];(c.ischrome&&!c.ischrome22||c.isie)&&(a=[]);for(var d=0;d<a.length;d++){var e=a[d];if(b.style.cursor=e,b.style.cursor==e)return e}return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}if(s)return s;var b=document.createElement("DIV"),c={};c.haspointerlock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,c.isopera="opera"in window,c.isopera12=c.isopera&&"getUserMedia"in navigator,c.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini),c.isie="all"in document&&"attachEvent"in b&&!c.isopera,c.isieold=c.isie&&!("msInterpolationMode"in b.style),c.isie7=c.isie&&!c.isieold&&(!("documentMode"in document)||7==document.documentMode),c.isie8=c.isie&&"documentMode"in document&&8==document.documentMode,c.isie9=c.isie&&"performance"in window&&document.documentMode>=9,c.isie10=c.isie&&"performance"in window&&document.documentMode>=10,c.isie9mobile=/iemobile.9/i.test(navigator.userAgent),c.isie9mobile&&(c.isie9=!1),c.isie7mobile=!c.isie9mobile&&c.isie7&&/iemobile/i.test(navigator.userAgent),c.ismozilla="MozAppearance"in b.style,c.iswebkit="WebkitAppearance"in b.style,c.ischrome="chrome"in window,c.ischrome22=c.ischrome&&c.haspointerlock,c.ischrome26=c.ischrome&&"transition"in b.style,c.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window,c.hasmstouch=window.navigator.msPointerEnabled||!1,c.ismac=/^mac$/i.test(navigator.platform),c.isios=c.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),c.isios4=c.isios&&!("seal"in Object),c.isandroid=/android/i.test(navigator.userAgent),c.trstyle=!1,c.hastransform=!1,c.hastranslate3d=!1,c.transitionstyle=!1,c.hastransition=!1,c.transitionend=!1;for(var d=["transform","msTransform","webkitTransform","MozTransform","OTransform"],e=0;e<d.length;e++)if("undefined"!=typeof b.style[d[e]]){c.trstyle=d[e];break}c.hastransform=0!=c.trstyle,c.hastransform&&(b.style[c.trstyle]="translate3d(1px,2px,3px)",c.hastranslate3d=/translate3d/.test(b.style[c.trstyle])),c.transitionstyle=!1,c.prefixstyle="",c.transitionend=!1;for(var d=["transition","webkitTransition","MozTransition","OTransition","OTransition","msTransition","KhtmlTransition"],f=["","-webkit-","-moz-","-o-","-o","-ms-","-khtml-"],g=["transitionend","webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd","msTransitionEnd","KhtmlTransitionEnd"],e=0;e<d.length;e++)if(d[e]in b.style){c.transitionstyle=d[e],c.prefixstyle=f[e],c.transitionend=g[e];break}return c.ischrome26&&(c.prefixstyle=f[1]),c.hastransition=c.transitionstyle,c.cursorgrabvalue=a(),c.hasmousecapture="setCapture"in b,c.hasMutationObserver=q!==!1,b=null,s=c,c},u=function(a,b){function c(){var a=s.doc.css(w.trstyle);return a&&"matrix"==a.substr(0,6)?a.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function d(){var a=s.win;if("zIndex"in a)return a.zIndex();for(;a.length>0;){if(9==a[0].nodeType)return!1;var b=a.css("zIndex");if(!isNaN(b)&&0!=b)return parseInt(b);a=a.parent()}return!1}function l(a,b,c){var d=a.css(b),e=parseFloat(d);if(isNaN(e)){e=x[d]||0;var f=3==e?c?s.win.outerHeight()-s.win.innerHeight():s.win.outerWidth()-s.win.innerWidth():1;return s.isie8&&e&&(e+=1),f?e:0}return e}function o(a,b,c,d){s._bind(a,b,function(d){var d=d?d:window.event,e={original:d,target:d.target||d.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==d.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return d.preventDefault?d.preventDefault():d.returnValue=!1,!1},stopImmediatePropagation:function(){d.stopImmediatePropagation?d.stopImmediatePropagation():d.cancelBubble=!0}};return"mousewheel"==b?(e.deltaY=-1/40*d.wheelDelta,d.wheelDeltaX&&(e.deltaX=-1/40*d.wheelDeltaX)):e.deltaY=d.detail,c.call(a,e)},d)}function p(a,b,c){var d,e;if(0==a.deltaMode?(d=-Math.floor(a.deltaX*(s.opt.mousescrollstep/54)),e=-Math.floor(a.deltaY*(s.opt.mousescrollstep/54))):1==a.deltaMode&&(d=-Math.floor(a.deltaX*s.opt.mousescrollstep),e=-Math.floor(a.deltaY*s.opt.mousescrollstep)),b&&s.opt.oneaxismousemode&&0==d&&e&&(d=e,e=0),d&&(s.scrollmom&&s.scrollmom.stop(),s.lastdeltax+=d,s.debounced("mousewheelx",function(){var a=s.lastdeltax;s.lastdeltax=0,s.rail.drag||s.doScrollLeftBy(a)},120)),e){if(s.opt.nativeparentscrolling&&c&&!s.ispage&&!s.zoomactive)if(0>e){if(s.getScrollTop()>=s.page.maxh)return!0}else if(s.getScrollTop()<=0)return!0;s.scrollmom&&s.scrollmom.stop(),s.lastdeltay+=e,s.debounced("mousewheely",function(){var a=s.lastdeltay;s.lastdeltay=0,s.rail.drag||s.doScrollBy(a)},120)}return a.stopImmediatePropagation(),a.preventDefault()}var s=this;if(this.version="3.5.0 BETA5",this.name="nicescroll",this.me=b,this.opt={doc:j("body"),win:!1},j.extend(this.opt,r),this.opt.snapbackspeed=80,a)for(var u in s.opt)"undefined"!=typeof a[u]&&(s.opt[u]=a[u]);this.doc=s.opt.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/BODY|HTML/.test(s.opt.win?s.opt.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=s.opt.win!==!1,this.win=s.opt.win||(this.ispage?j(window):this.doc),this.docscroll=this.ispage&&!this.haswrapper?j(window):this.win,this.body=j("body"),this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=s.opt.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,this.checkrtlmode=!1,this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1;do this.id="ascrail"+h++;while(document.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.overflowx=s.opt.overflowx,this.overflowy=s.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=t();var w=j.extend({},this.detected);this.canhwscroll=w.hastransform&&s.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&s.haswrapper,this.istouchcapable=!1,w.cantouch&&w.ischrome&&!w.isios&&!w.isandroid&&(this.istouchcapable=!0,w.cantouch=!1),w.cantouch&&w.ismozilla&&!w.isios&&!w.isandroid&&(this.istouchcapable=!0,w.cantouch=!1),s.opt.enablemouselockapi||(w.hasmousecapture=!1,w.haspointerlock=!1),this.delayed=function(a,b,c,d){var e=s.delaylist[a],f=(new Date).getTime();return!d&&e&&e.tt?!1:(e&&e.tt&&clearTimeout(e.tt),void(e&&e.last+c>f&&!e.tt?s.delaylist[a]={last:f+c,tt:setTimeout(function(){s.delaylist[a].tt=0,b.call()},c)}:e&&e.tt||(s.delaylist[a]={last:f,tt:0},setTimeout(function(){b.call()},0))))},this.debounced=function(a,b,c){var d=s.delaylist[a];(new Date).getTime();s.delaylist[a]=b,d||setTimeout(function(){var b=s.delaylist[a];s.delaylist[a]=!1,b.call()},c)},this.synched=function(a,b){function c(){s.onsync||(m(function(){s.onsync=!1;for(a in s.synclist){var b=s.synclist[a];b&&b.call(s),s.synclist[a]=!1}}),s.onsync=!0)}return s.synclist[a]=b,c(),a},this.unsynched=function(a){s.synclist[a]&&(s.synclist[a]=!1)},this.css=function(a,b){for(var c in b)s.saved.css.push([a,c,a.css(c)]),a.css(c,b[c])},this.scrollTop=function(a){return"undefined"==typeof a?s.getScrollTop():s.setScrollTop(a)},this.scrollLeft=function(a){return"undefined"==typeof a?s.getScrollLeft():s.setScrollLeft(a)},BezierClass=function(a,b,c,d,e,f,g){this.st=a,this.ed=b,this.spd=c,this.p1=d||0,this.p2=e||1,this.p3=f||0,this.p4=g||1,this.ts=(new Date).getTime(),this.df=this.ed-this.st},BezierClass.prototype={B2:function(a){return 3*a*a*(1-a)},B3:function(a){return 3*a*(1-a)*(1-a)},B4:function(a){return(1-a)*(1-a)*(1-a)},getNow:function(){var a=(new Date).getTime(),b=1-(a-this.ts)/this.spd,c=this.B2(b)+this.B3(b)+this.B4(b);return 0>b?this.ed:this.st+Math.round(this.df*c)},update:function(a,b){return this.st=this.getNow(),this.ed=a,this.spd=b,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll?(this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},w.hastranslate3d&&w.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(a){if(!a){var b=c();if(b)return 16==b.length?-b[13]:-b[5];if(s.timerscroll&&s.timerscroll.bz)return s.timerscroll.bz.getNow()}return s.doc.translate.y},this.getScrollLeft=function(a){if(!a){var b=c();if(b)return 16==b.length?-b[12]:-b[4];if(s.timerscroll&&s.timerscroll.bh)return s.timerscroll.bh.getNow()}return s.doc.translate.x},document.createEvent?this.notifyScrollEvent=function(a){var b=document.createEvent("UIEvents");b.initUIEvent("scroll",!1,!0,window,1),a.dispatchEvent(b)}:document.fireEvent?this.notifyScrollEvent=function(a){var b=document.createEventObject();a.fireEvent("onscroll"),b.cancelBubble=!0}:this.notifyScrollEvent=function(a,b){},w.hastranslate3d&&s.opt.enabletranslate3d?(this.setScrollTop=function(a,b){s.doc.translate.y=a,s.doc.translate.ty=-1*a+"px",s.doc.css(w.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0px)"),b||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(a,b){s.doc.translate.x=a,s.doc.translate.tx=-1*a+"px",s.doc.css(w.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0px)"),b||s.notifyScrollEvent(s.win[0])}):(this.setScrollTop=function(a,b){s.doc.translate.y=a,s.doc.translate.ty=-1*a+"px",s.doc.css(w.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),b||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(a,b){s.doc.translate.x=a,s.doc.translate.tx=-1*a+"px",s.doc.css(w.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),b||s.notifyScrollEvent(s.win[0])})):(this.getScrollTop=function(){return s.docscroll.scrollTop()},this.setScrollTop=function(a){return s.docscroll.scrollTop(a)},this.getScrollLeft=function(){return s.docscroll.scrollLeft()},this.setScrollLeft=function(a){return s.docscroll.scrollLeft(a)}),this.getTarget=function(a){return a?a.target?a.target:a.srcElement?a.srcElement:!1:!1},this.hasParent=function(a,b){if(!a)return!1;for(var c=a.target||a.srcElement||a||!1;c&&c.id!=b;)c=c.parentNode||!1;return c!==!1};var x={thin:1,medium:3,thick:5};this.getOffset=function(){if(s.isfixed)return{top:parseFloat(s.win.css("top")),left:parseFloat(s.win.css("left"))};if(!s.viewport)return s.win.offset();var a=s.win.offset(),b=s.viewport.offset();return{top:a.top-b.top+s.viewport.scrollTop(),left:a.left-b.left+s.viewport.scrollLeft()}},this.updateScrollBar=function(a){if(s.ishwscroll)s.rail.css({height:s.win.innerHeight()}),s.railh&&s.railh.css({width:s.win.innerWidth()});else{var b=s.getOffset(),c={top:b.top,left:b.left};c.top+=l(s.win,"border-top-width",!0);(s.win.outerWidth()-s.win.innerWidth())/2;c.left+=s.rail.align?s.win.outerWidth()-l(s.win,"border-right-width")-s.rail.width:l(s.win,"border-left-width");var d=s.opt.railoffset;if(d&&(d.top&&(c.top+=d.top),s.rail.align&&d.left&&(c.left+=d.left)),s.locked||s.rail.css({top:c.top,left:c.left,height:a?a.h:s.win.innerHeight()}),s.zoom&&s.zoom.css({top:c.top+1,left:1==s.rail.align?c.left-20:c.left+s.rail.width+4}),s.railh&&!s.locked){var c={top:b.top,left:b.left},e=s.railh.align?c.top+l(s.win,"border-top-width",!0)+s.win.innerHeight()-s.railh.height:c.top+l(s.win,"border-top-width",!0),f=c.left+l(s.win,"border-left-width");s.railh.css({top:e,left:f,width:s.railh.width})}}},this.doRailClick=function(a,b,c){var d,e,f,g;s.locked||(s.cancelEvent(a),b?(d=c?s.doScrollLeft:s.doScrollTop,f=c?(a.pageX-s.railh.offset().left-s.cursorwidth/2)*s.scrollratio.x:(a.pageY-s.rail.offset().top-s.cursorheight/2)*s.scrollratio.y,d(f)):(d=c?s.doScrollLeftBy:s.doScrollBy,f=c?s.scroll.x:s.scroll.y,g=c?a.pageX-s.railh.offset().left:a.pageY-s.rail.offset().top,e=c?s.view.w:s.view.h,d(f>=g?e:-e)))},s.hasanimationframe=m,s.hascancelanimationframe=n,s.hasanimationframe?s.hascancelanimationframe||(n=function(){s.cancelAnimationFrame=!0}):(m=function(a){return setTimeout(a,15-Math.floor(+new Date/1e3)%16)},n=clearInterval),this.init=function(){function a(b){if(s.selectiondrag){if(b){var c=s.win.outerHeight(),d=b.pageY-s.selectiondrag.top;d>0&&c>d&&(d=0),d>=c&&(d-=c),s.selectiondrag.df=d}if(0!=s.selectiondrag.df){var e=2*-Math.floor(s.selectiondrag.df/6);s.doScrollBy(e),s.debounced("doselectionscroll",function(){a()},50)}}}function b(a){s.iframexd=!1;try{var b="contentDocument"in this?this.contentDocument:this.contentWindow.document;b.domain}catch(a){s.iframexd=!0,b=!1}if(s.iframexd)return"console"in window,!0;if(s.forcescreen=!0,s.isiframe&&(s.iframe={doc:j(b),html:s.doc.contents().find("html")[0],body:s.doc.contents().find("body")[0]},s.getContentSize=function(){return{w:Math.max(s.iframe.html.scrollWidth,s.iframe.body.scrollWidth),h:Math.max(s.iframe.html.scrollHeight,s.iframe.body.scrollHeight)}},s.docscroll=j(s.iframe.body)),!w.isios&&s.opt.iframeautoresize&&!s.isiframe){s.win.scrollTop(0),s.doc.height("");var c=Math.max(b.getElementsByTagName("html")[0].scrollHeight,b.body.scrollHeight);s.doc.height(c)}s.lazyResize(30),w.isie7&&s.css(j(s.iframe.html),{"overflow-y":"hidden"}),s.css(j(s.iframe.body),{"overflow-y":"hidden"}),w.isios&&s.haswrapper&&s.css(j(b.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?s.bind(this.contentWindow,"scroll",s.onscroll):s.bind(b,"scroll",s.onscroll),s.opt.enablemousewheel&&s.bind(b,"mousewheel",s.onmousewheel),s.opt.enablekeyboard&&s.bind(b,w.isopera?"keypress":"keydown",s.onkeypress),(w.cantouch||s.opt.touchbehavior)&&(s.bind(b,"mousedown",s.ontouchstart),s.bind(b,"mousemove",function(a){s.ontouchmove(a,!0)}),s.opt.grabcursorenabled&&w.cursorgrabvalue&&s.css(j(b.body),{cursor:w.cursorgrabvalue})),s.bind(b,"mouseup",s.ontouchend),s.zoom&&(s.opt.dblclickzoom&&s.bind(b,"dblclick",s.doZoom),s.ongesturezoom&&s.bind(b,"gestureend",s.ongesturezoom))}if(s.saved.css=[],w.isie7mobile)return!0;if(w.isoperamini)return!0;if(w.hasmstouch&&s.css(s.ispage?j("html"):s.win,{"-ms-touch-action":"none"}),s.zindex="auto",s.ispage||"auto"!=s.opt.zindex?s.zindex=s.opt.zindex:s.zindex=d()||"auto",s.ispage||"auto"==s.zindex||s.zindex>i&&(i=s.zindex),s.isie&&0==s.zindex&&"auto"==s.opt.zindex&&(s.zindex="auto"),!s.ispage||!w.cantouch&&!w.isieold&&!w.isie9mobile){var c=s.docscroll;s.ispage&&(c=s.haswrapper?s.win:s.doc),w.isie9mobile||s.css(c,{"overflow-y":"hidden"}),s.ispage&&w.isie7&&("BODY"==s.doc[0].nodeName?s.css(j("html"),{"overflow-y":"hidden"}):"HTML"==s.doc[0].nodeName&&s.css(j("body"),{"overflow-y":"hidden"})),!w.isios||s.ispage||s.haswrapper||s.css(j("body"),{"-webkit-overflow-scrolling":"touch"});var h=j(document.createElement("div"));h.css({position:"relative",top:0,"float":"right",width:s.opt.cursorwidth,height:"0px","background-color":s.opt.cursorcolor,border:s.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":s.opt.cursorborderradius,"-moz-border-radius":s.opt.cursorborderradius,"border-radius":s.opt.cursorborderradius}),h.hborder=parseFloat(h.outerHeight()-h.innerHeight()),s.cursor=h;var l=j(document.createElement("div"));l.attr("id",s.id),l.addClass("nicescroll-rails");var m,n,o=["left","right"];for(var p in o)n=o[p],m=s.opt.railpadding[n],m?l.css("padding-"+n,m+"px"):s.opt.railpadding[n]=0;l.append(h),l.width=Math.max(parseFloat(s.opt.cursorwidth),h.outerWidth())+s.opt.railpadding.left+s.opt.railpadding.right,l.css({width:l.width+"px",zIndex:s.zindex,background:s.opt.background,cursor:"default"}),l.visibility=!0,l.scrollable=!0,l.align="left"==s.opt.railalign?0:1,s.rail=l,s.rail.drag=!1;var r=!1;if(!s.opt.boxzoom||s.ispage||w.isieold||(r=document.createElement("div"),s.bind(r,"click",s.doZoom),s.zoom=j(r),s.zoom.css({cursor:"pointer","z-index":s.zindex,backgroundImage:"url("+k+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),s.opt.dblclickzoom&&s.bind(s.win,"dblclick",s.doZoom),w.cantouch&&s.opt.gesturezoom&&(s.ongesturezoom=function(a){return a.scale>1.5&&s.doZoomIn(a),a.scale<.8&&s.doZoomOut(a),s.cancelEvent(a)},s.bind(s.win,"gestureend",s.ongesturezoom))),s.railh=!1,s.opt.horizrailenabled){s.css(c,{"overflow-x":"hidden"});var h=j(document.createElement("div"));h.css({position:"relative",top:0,height:s.opt.cursorwidth,width:"0px","background-color":s.opt.cursorcolor,border:s.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":s.opt.cursorborderradius,"-moz-border-radius":s.opt.cursorborderradius,"border-radius":s.opt.cursorborderradius}),h.wborder=parseFloat(h.outerWidth()-h.innerWidth()),s.cursorh=h;var t=j(document.createElement("div"));t.attr("id",s.id+"-hr"),t.addClass("nicescroll-rails"),t.height=Math.max(parseFloat(s.opt.cursorwidth),h.outerHeight()),t.css({height:t.height+"px",zIndex:s.zindex,background:s.opt.background}),t.append(h),t.visibility=!0,t.scrollable=!0,t.align="top"==s.opt.railvalign?0:1,s.railh=t,s.railh.drag=!1}if(s.ispage)l.css({position:"fixed",top:"0px",height:"100%"}),l.align?l.css({right:"0px"}):l.css({left:"0px"}),s.body.append(l),s.railh&&(t.css({position:"fixed",left:"0px",width:"100%"}),t.align?t.css({bottom:"0px"}):t.css({top:"0px"}),s.body.append(t));else{if(s.ishwscroll){"static"==s.win.css("position")&&s.css(s.win,{position:"relative"});var u="HTML"==s.win[0].nodeName?s.body:s.win;s.zoom&&(s.zoom.css({position:"absolute",top:1,right:0,"margin-right":l.width+4}),u.append(s.zoom)),l.css({position:"absolute",top:0}),l.align?l.css({right:0}):l.css({left:0}),u.append(l),t&&(t.css({position:"absolute",left:0,bottom:0}),t.align?t.css({bottom:0}):t.css({top:0}),u.append(t))}else{s.isfixed="fixed"==s.win.css("position");var x=s.isfixed?"fixed":"absolute";s.isfixed||(s.viewport=s.getViewport(s.win[0])),s.viewport&&(s.body=s.viewport,0==/relative|absolute/.test(s.viewport.css("position"))&&s.css(s.viewport,{position:"relative"})),l.css({position:x}),s.zoom&&s.zoom.css({position:x}),s.updateScrollBar(),s.body.append(l),s.zoom&&s.body.append(s.zoom),s.railh&&(t.css({position:x}),s.body.append(t))}w.isios&&s.css(s.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),w.isie&&s.opt.disableoutline&&s.win.attr("hideFocus","true"),w.iswebkit&&s.opt.disableoutline&&s.win.css({outline:"none"})}if(s.opt.autohidemode===!1?(s.autohidedom=!1,s.rail.css({opacity:s.opt.cursoropacitymax}),s.railh&&s.railh.css({opacity:s.opt.cursoropacitymax})):s.opt.autohidemode===!0?(s.autohidedom=j().add(s.rail),w.isie8&&(s.autohidedom=s.autohidedom.add(s.cursor)),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh)),s.railh&&w.isie8&&(s.autohidedom=s.autohidedom.add(s.cursorh))):"scroll"==s.opt.autohidemode?(s.autohidedom=j().add(s.rail),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh))):"cursor"==s.opt.autohidemode?(s.autohidedom=j().add(s.cursor),
s.railh&&(s.autohidedom=s.autohidedom.add(s.cursorh))):"hidden"==s.opt.autohidemode&&(s.autohidedom=!1,s.hide(),s.locked=!1),w.isie9mobile){s.scrollmom=new v(s),s.onmangotouch=function(a){var b=s.getScrollTop(),c=s.getScrollLeft();if(b==s.scrollmom.lastscrolly&&c==s.scrollmom.lastscrollx)return!0;var d=b-s.mangotouch.sy,e=c-s.mangotouch.sx,f=Math.round(Math.sqrt(Math.pow(e,2)+Math.pow(d,2)));if(0!=f){var g=0>d?-1:1,h=0>e?-1:1,i=+new Date;if(s.mangotouch.lazy&&clearTimeout(s.mangotouch.lazy),i-s.mangotouch.tm>80||s.mangotouch.dry!=g||s.mangotouch.drx!=h)s.scrollmom.stop(),s.scrollmom.reset(c,b),s.mangotouch.sy=b,s.mangotouch.ly=b,s.mangotouch.sx=c,s.mangotouch.lx=c,s.mangotouch.dry=g,s.mangotouch.drx=h,s.mangotouch.tm=i;else{s.scrollmom.stop(),s.scrollmom.update(s.mangotouch.sx-e,s.mangotouch.sy-d);i-s.mangotouch.tm;s.mangotouch.tm=i;var j=Math.max(Math.abs(s.mangotouch.ly-b),Math.abs(s.mangotouch.lx-c));s.mangotouch.ly=b,s.mangotouch.lx=c,j>2&&(s.mangotouch.lazy=setTimeout(function(){s.mangotouch.lazy=!1,s.mangotouch.dry=0,s.mangotouch.drx=0,s.mangotouch.tm=0,s.scrollmom.doMomentum(30)},100))}}};var y=s.getScrollTop(),z=s.getScrollLeft();s.mangotouch={sy:y,ly:y,dry:0,sx:z,lx:z,drx:0,lazy:!1,tm:0},s.bind(s.docscroll,"scroll",s.onmangotouch)}else{if(w.cantouch||s.istouchcapable||s.opt.touchbehavior||w.hasmstouch){s.scrollmom=new v(s),s.ontouchstart=function(a){if(a.pointerType&&2!=a.pointerType)return!1;if(!s.locked){if(w.hasmstouch)for(var b=a.target?a.target:!1;b;){var c=j(b).getNiceScroll();if(c.length>0&&c[0].me==s.me)break;if(c.length>0)return!1;if("DIV"==b.nodeName&&b.id==s.id)break;b=b.parentNode?b.parentNode:!1}s.cancelScroll();var b=s.getTarget(a);if(b){var d=/INPUT/i.test(b.nodeName)&&/range/i.test(b.type);if(d)return s.stopPropagation(a)}if(!("clientX"in a)&&"changedTouches"in a&&(a.clientX=a.changedTouches[0].clientX,a.clientY=a.changedTouches[0].clientY),s.forcescreen){var e=a,a={original:a.original?a.original:a};a.clientX=e.screenX,a.clientY=e.screenY}if(s.rail.drag={x:a.clientX,y:a.clientY,sx:s.scroll.x,sy:s.scroll.y,st:s.getScrollTop(),sl:s.getScrollLeft(),pt:2,dl:!1},s.ispage||!s.opt.directionlockdeadzone)s.rail.drag.dl="f";else{var f={w:j(window).width(),h:j(window).height()},g={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},h=Math.max(0,g.h-f.h),i=Math.max(0,g.w-f.w);!s.rail.scrollable&&s.railh.scrollable?s.rail.drag.ck=h>0?"v":!1:s.rail.scrollable&&!s.railh.scrollable?s.rail.drag.ck=i>0?"h":!1:s.rail.drag.ck=!1,s.rail.drag.ck||(s.rail.drag.dl="f")}if(s.opt.touchbehavior&&s.isiframe&&w.isie){var k=s.win.position();s.rail.drag.x+=k.left,s.rail.drag.y+=k.top}if(s.hasmoving=!1,s.lastmouseup=!1,s.scrollmom.reset(a.clientX,a.clientY),!w.cantouch&&!this.istouchcapable&&!w.hasmstouch){var l=b?/INPUT|SELECT|TEXTAREA/i.test(b.nodeName):!1;if(!l)return!s.ispage&&w.hasmousecapture&&b.setCapture(),s.opt.touchbehavior?s.cancelEvent(a):s.stopPropagation(a);/SUBMIT|CANCEL|BUTTON/i.test(j(b).attr("type"))&&(pc={tg:b,click:!1},s.preventclick=pc)}}},s.ontouchend=function(a){return a.pointerType&&2!=a.pointerType?!1:s.rail.drag&&2==s.rail.drag.pt&&(s.scrollmom.doMomentum(),s.rail.drag=!1,s.hasmoving&&(s.hasmoving=!1,s.lastmouseup=!0,s.hideCursor(),w.hasmousecapture&&document.releaseCapture(),!w.cantouch))?s.cancelEvent(a):void 0};var A=s.opt.touchbehavior&&s.isiframe&&!w.hasmousecapture;s.ontouchmove=function(a,b){if(a.pointerType&&2!=a.pointerType)return!1;if(s.rail.drag&&2==s.rail.drag.pt){if(w.cantouch&&"undefined"==typeof a.original)return!0;s.hasmoving=!0,s.preventclick&&!s.preventclick.click&&(s.preventclick.click=s.preventclick.tg.onclick||!1,s.preventclick.tg.onclick=s.onpreventclick);var c=j.extend({original:a},a);if(a=c,"changedTouches"in a&&(a.clientX=a.changedTouches[0].clientX,a.clientY=a.changedTouches[0].clientY),s.forcescreen){var d=a,a={original:a.original?a.original:a};a.clientX=d.screenX,a.clientY=d.screenY}var e=ofy=0;if(A&&!b){var f=s.win.position();e=-f.left,ofy=-f.top}var g=a.clientY+ofy,h=g-s.rail.drag.y,i=a.clientX+e,k=i-s.rail.drag.x,l=s.rail.drag.st-h;if(s.ishwscroll&&s.opt.bouncescroll?0>l?l=Math.round(l/2):l>s.page.maxh&&(l=s.page.maxh+Math.round((l-s.page.maxh)/2)):(0>l&&(l=0,g=0),l>s.page.maxh&&(l=s.page.maxh,g=0)),s.railh&&s.railh.scrollable){var m=s.rail.drag.sl-k;s.ishwscroll&&s.opt.bouncescroll?0>m?m=Math.round(m/2):m>s.page.maxw&&(m=s.page.maxw+Math.round((m-s.page.maxw)/2)):(0>m&&(m=0,i=0),m>s.page.maxw&&(m=s.page.maxw,i=0))}var n=!1;if(s.rail.drag.dl)n=!0,"v"==s.rail.drag.dl?m=s.rail.drag.sl:"h"==s.rail.drag.dl&&(l=s.rail.drag.st);else{var o=Math.abs(h),p=Math.abs(k),q=s.opt.directionlockdeadzone;if("v"==s.rail.drag.ck){if(o>q&&.3*o>=p)return s.rail.drag=!1,!0;p>q&&(s.rail.drag.dl="f",j("body").scrollTop(j("body").scrollTop()))}else if("h"==s.rail.drag.ck){if(p>q&&.3*p>=o)return s.rail.drag=!1,!0;o>q&&(s.rail.drag.dl="f",j("body").scrollLeft(j("body").scrollLeft()))}}if(s.synched("touchmove",function(){s.rail.drag&&2==s.rail.drag.pt&&(s.prepareTransition&&s.prepareTransition(0),s.rail.scrollable&&s.setScrollTop(l),s.scrollmom.update(i,g),s.railh&&s.railh.scrollable?(s.setScrollLeft(m),s.showCursor(l,m)):s.showCursor(l),w.isie10&&document.selection.clear())}),w.ischrome&&s.istouchcapable&&(n=!1),n)return s.cancelEvent(a)}}}s.onmousedown=function(a,b){if(!s.rail.drag||1==s.rail.drag.pt){if(s.locked)return s.cancelEvent(a);s.cancelScroll(),s.rail.drag={x:a.clientX,y:a.clientY,sx:s.scroll.x,sy:s.scroll.y,pt:1,hr:!!b};var c=s.getTarget(a);return!s.ispage&&w.hasmousecapture&&c.setCapture(),s.isiframe&&!w.hasmousecapture&&(s.saved.csspointerevents=s.doc.css("pointer-events"),s.css(s.doc,{"pointer-events":"none"})),s.cancelEvent(a)}},s.onmouseup=function(a){if(s.rail.drag){if(w.hasmousecapture&&document.releaseCapture(),s.isiframe&&!w.hasmousecapture&&s.doc.css("pointer-events",s.saved.csspointerevents),1!=s.rail.drag.pt)return;return s.rail.drag=!1,s.cancelEvent(a)}},s.onmousemove=function(a){if(s.rail.drag){if(1!=s.rail.drag.pt)return;if(w.ischrome&&0==a.which)return s.onmouseup(a);if(s.cursorfreezed=!0,s.rail.drag.hr){s.scroll.x=s.rail.drag.sx+(a.clientX-s.rail.drag.x),s.scroll.x<0&&(s.scroll.x=0);var b=s.scrollvaluemaxw;s.scroll.x>b&&(s.scroll.x=b)}else{s.scroll.y=s.rail.drag.sy+(a.clientY-s.rail.drag.y),s.scroll.y<0&&(s.scroll.y=0);var c=s.scrollvaluemax;s.scroll.y>c&&(s.scroll.y=c)}return s.synched("mousemove",function(){s.rail.drag&&1==s.rail.drag.pt&&(s.showCursor(),s.rail.drag.hr?s.doScrollLeft(Math.round(s.scroll.x*s.scrollratio.x),s.opt.cursordragspeed):s.doScrollTop(Math.round(s.scroll.y*s.scrollratio.y),s.opt.cursordragspeed))}),s.cancelEvent(a)}},w.cantouch||s.opt.touchbehavior?(s.onpreventclick=function(a){return s.preventclick?(s.preventclick.tg.onclick=s.preventclick.click,s.preventclick=!1,s.cancelEvent(a)):void 0},s.bind(s.win,"mousedown",s.ontouchstart),s.onclick=w.isios?!1:function(a){return s.lastmouseup?(s.lastmouseup=!1,s.cancelEvent(a)):!0},s.opt.grabcursorenabled&&w.cursorgrabvalue&&(s.css(s.ispage?s.doc:s.win,{cursor:w.cursorgrabvalue}),s.css(s.rail,{cursor:w.cursorgrabvalue}))):("getSelection"in document?s.hasTextSelected=function(){return document.getSelection().rangeCount>0}:"selection"in document?s.hasTextSelected=function(){return"None"!=document.selection.type}:s.hasTextSelected=function(){return!1},s.onselectionstart=function(a){s.ispage||(s.selectiondrag=s.win.offset())},s.onselectionend=function(a){s.selectiondrag=!1},s.onselectiondrag=function(b){s.selectiondrag&&s.hasTextSelected()&&s.debounced("selectionscroll",function(){a(b)},250)}),w.hasmstouch&&(s.css(s.rail,{"-ms-touch-action":"none"}),s.css(s.cursor,{"-ms-touch-action":"none"}),s.bind(s.win,"MSPointerDown",s.ontouchstart),s.bind(document,"MSPointerUp",s.ontouchend),s.bind(document,"MSPointerMove",s.ontouchmove),s.bind(s.cursor,"MSGestureHold",function(a){a.preventDefault()}),s.bind(s.cursor,"contextmenu",function(a){a.preventDefault()})),this.istouchcapable&&(s.bind(s.win,"touchstart",s.ontouchstart),s.bind(document,"touchend",s.ontouchend),s.bind(document,"touchcancel",s.ontouchend),s.bind(document,"touchmove",s.ontouchmove)),s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.railh&&(s.bind(s.cursorh,"mousedown",function(a){s.onmousedown(a,!0)}),s.bind(s.cursorh,"mouseup",function(a){return s.rail.drag&&2==s.rail.drag.pt?void 0:(s.rail.drag=!1,s.hasmoving=!1,s.hideCursor(),w.hasmousecapture&&document.releaseCapture(),s.cancelEvent(a))})),(s.opt.cursordragontouch||!w.cantouch&&!s.opt.touchbehavior)&&(s.rail.css({cursor:"default"}),s.railh&&s.railh.css({cursor:"default"}),s.jqbind(s.rail,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.rail,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),s.opt.sensitiverail&&(s.bind(s.rail,"click",function(a){s.doRailClick(a,!1,!1)}),s.bind(s.rail,"dblclick",function(a){s.doRailClick(a,!0,!1)}),s.bind(s.cursor,"click",function(a){s.cancelEvent(a)}),s.bind(s.cursor,"dblclick",function(a){s.cancelEvent(a)})),s.railh&&(s.jqbind(s.railh,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.railh,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),s.opt.sensitiverail&&(s.bind(s.railh,"click",function(a){s.doRailClick(a,!1,!0)}),s.bind(s.railh,"dblclick",function(a){s.doRailClick(a,!0,!0)}),s.bind(s.cursorh,"click",function(a){s.cancelEvent(a)}),s.bind(s.cursorh,"dblclick",function(a){s.cancelEvent(a)})))),w.cantouch||s.opt.touchbehavior?(s.bind(w.hasmousecapture?s.win:document,"mouseup",s.ontouchend),s.bind(document,"mousemove",s.ontouchmove),s.onclick&&s.bind(document,"click",s.onclick),s.opt.cursordragontouch&&(s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mousemove",s.onmousemove),s.cursorh&&s.bind(s.cursorh,"mousedown",s.onmousedown),s.cursorh&&s.bind(s.cursorh,"mousemove",s.onmousemove))):(s.bind(w.hasmousecapture?s.win:document,"mouseup",s.onmouseup),s.bind(document,"mousemove",s.onmousemove),s.onclick&&s.bind(document,"click",s.onclick),!s.ispage&&s.opt.enablescrollonselection&&(s.bind(s.win[0],"mousedown",s.onselectionstart),s.bind(document,"mouseup",s.onselectionend),s.bind(s.cursor,"mouseup",s.onselectionend),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onselectionend),s.bind(document,"mousemove",s.onselectiondrag)),s.zoom&&(s.jqbind(s.zoom,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.zoom,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}))),s.opt.enablemousewheel&&(s.isiframe||s.bind(w.isie&&s.ispage?document:s.win,"mousewheel",s.onmousewheel),s.bind(s.rail,"mousewheel",s.onmousewheel),s.railh&&s.bind(s.railh,"mousewheel",s.onmousewheelhr)),s.ispage||w.cantouch||/HTML|BODY/.test(s.win[0].nodeName)||(s.win.attr("tabindex")||s.win.attr({tabindex:g++}),s.jqbind(s.win,"focus",function(a){e=s.getTarget(a).id||!0,s.hasfocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.jqbind(s.win,"blur",function(a){e=!1,s.hasfocus=!1}),s.jqbind(s.win,"mouseenter",function(a){f=s.getTarget(a).id||!0,s.hasmousefocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.jqbind(s.win,"mouseleave",function(){f=!1,s.hasmousefocus=!1}))}if(s.onkeypress=function(a){if(s.locked&&0==s.page.maxh)return!0;a=a?a:window.e;var b=s.getTarget(a);if(b&&/INPUT|TEXTAREA|SELECT|OPTION/.test(b.nodeName)){var c=b.getAttribute("type")||b.type||!1;if(!c||!/submit|button|cancel/i.tp)return!0}if(s.hasfocus||s.hasmousefocus&&!e||s.ispage&&!e&&!f){var d=a.keyCode;if(s.locked&&27!=d)return s.cancelEvent(a);var g=a.ctrlKey||!1,h=a.shiftKey||!1,i=!1;switch(d){case 38:case 63233:s.doScrollBy(72),i=!0;break;case 40:case 63235:s.doScrollBy(-72),i=!0;break;case 37:case 63232:s.railh&&(g?s.doScrollLeft(0):s.doScrollLeftBy(72),i=!0);break;case 39:case 63234:s.railh&&(g?s.doScrollLeft(s.page.maxw):s.doScrollLeftBy(-72),i=!0);break;case 33:case 63276:s.doScrollBy(s.view.h),i=!0;break;case 34:case 63277:s.doScrollBy(-s.view.h),i=!0;break;case 36:case 63273:s.railh&&g?s.doScrollPos(0,0):s.doScrollTo(0),i=!0;break;case 35:case 63275:s.railh&&g?s.doScrollPos(s.page.maxw,s.page.maxh):s.doScrollTo(s.page.maxh),i=!0;break;case 32:s.opt.spacebarenabled&&(h?s.doScrollBy(s.view.h):s.doScrollBy(-s.view.h),i=!0);break;case 27:s.zoomactive&&(s.doZoom(),i=!0)}if(i)return s.cancelEvent(a)}},s.opt.enablekeyboard&&s.bind(document,w.isopera&&!w.isopera12?"keypress":"keydown",s.onkeypress),s.bind(window,"resize",s.lazyResize),s.bind(window,"orientationchange",s.lazyResize),s.bind(window,"load",s.lazyResize),w.ischrome&&!s.ispage&&!s.haswrapper){var B=s.win.attr("style"),C=parseFloat(s.win.css("width"))+1;s.win.css("width",C),s.synched("chromefix",function(){s.win.attr("style",B)})}s.onAttributeChange=function(a){s.lazyResize(250)},s.ispage||s.haswrapper||(q!==!1?(s.observer=new q(function(a){a.forEach(s.onAttributeChange)}),s.observer.observe(s.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),s.observerremover=new q(function(a){a.forEach(function(a){if(a.removedNodes.length>0)for(var b in a.removedNodes)if(a.removedNodes[b]==s.win[0])return s.remove()})}),s.observerremover.observe(s.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(s.bind(s.win,w.isie&&!w.isie9?"propertychange":"DOMAttrModified",s.onAttributeChange),w.isie9&&s.win[0].attachEvent("onpropertychange",s.onAttributeChange),s.bind(s.win,"DOMNodeRemoved",function(a){a.target==s.win[0]&&s.remove()}))),!s.ispage&&s.opt.boxzoom&&s.bind(window,"resize",s.resizeZoom),s.istextarea&&s.bind(s.win,"mouseup",s.lazyResize),s.checkrtlmode=!0,s.lazyResize(30)}"IFRAME"==this.doc[0].nodeName&&(this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){b.call(s.doc[0],!1)},500),s.bind(this.doc,"load",b))},this.showCursor=function(a,b){s.cursortimeout&&(clearTimeout(s.cursortimeout),s.cursortimeout=0),s.rail&&(s.autohidedom&&(s.autohidedom.stop().css({opacity:s.opt.cursoropacitymax}),s.cursoractive=!0),s.rail.drag&&1==s.rail.drag.pt||("undefined"!=typeof a&&a!==!1&&(s.scroll.y=Math.round(1*a/s.scrollratio.y)),"undefined"!=typeof b&&(s.scroll.x=Math.round(1*b/s.scrollratio.x))),s.cursor.css({height:s.cursorheight,top:s.scroll.y}),s.cursorh&&(!s.rail.align&&s.rail.visibility?s.cursorh.css({width:s.cursorwidth,left:s.scroll.x+s.rail.width}):s.cursorh.css({width:s.cursorwidth,left:s.scroll.x}),s.cursoractive=!0),s.zoom&&s.zoom.stop().css({opacity:s.opt.cursoropacitymax}))},this.hideCursor=function(a){s.cursortimeout||s.rail&&s.autohidedom&&(s.cursortimeout=setTimeout(function(){s.rail.active&&s.showonmouseevent||(s.autohidedom.stop().animate({opacity:s.opt.cursoropacitymin}),s.zoom&&s.zoom.stop().animate({opacity:s.opt.cursoropacitymin}),s.cursoractive=!1),s.cursortimeout=0},a||s.opt.hidecursordelay))},this.noticeCursor=function(a,b,c){s.showCursor(b,c),s.rail.active||s.hideCursor(a)},this.getContentSize=s.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:s.haswrapper?function(){return{w:s.doc.outerWidth()+parseInt(s.win.css("paddingLeft"))+parseInt(s.win.css("paddingRight")),h:s.doc.outerHeight()+parseInt(s.win.css("paddingTop"))+parseInt(s.win.css("paddingBottom"))}}:function(){return{w:s.docscroll[0].scrollWidth,h:s.docscroll[0].scrollHeight}},this.onResize=function(a,b){if(!s.win)return!1;if(!s.haswrapper&&!s.ispage){if("none"==s.win.css("display"))return s.visibility&&s.hideRail().hideRailHr(),!1;s.hidden||s.visibility||s.showRail().showRailHr()}var c=s.page.maxh,d=s.page.maxw,e={h:s.view.h,w:s.view.w};if(s.view={w:s.ispage?s.win.width():parseInt(s.win[0].clientWidth),h:s.ispage?s.win.height():parseInt(s.win[0].clientHeight)},s.page=b?b:s.getContentSize(),s.page.maxh=Math.max(0,s.page.h-s.view.h),s.page.maxw=Math.max(0,s.page.w-s.view.w),s.page.maxh==c&&s.page.maxw==d&&s.view.w==e.w){if(s.ispage)return s;var f=s.win.offset();if(s.lastposition){var g=s.lastposition;if(g.top==f.top&&g.left==f.left)return s}s.lastposition=f}if(0==s.page.maxh?(s.hideRail(),s.scrollvaluemax=0,s.scroll.y=0,s.scrollratio.y=0,s.cursorheight=0,s.setScrollTop(0),s.rail.scrollable=!1):s.rail.scrollable=!0,0==s.page.maxw?(s.hideRailHr(),s.scrollvaluemaxw=0,s.scroll.x=0,s.scrollratio.x=0,s.cursorwidth=0,s.setScrollLeft(0),s.railh.scrollable=!1):s.railh.scrollable=!0,s.locked=0==s.page.maxh&&0==s.page.maxw,s.locked)return s.ispage||s.updateScrollBar(s.view),!1;s.hidden||s.visibility?s.hidden||s.railh.visibility||s.showRailHr():s.showRail().showRailHr(),s.istextarea&&s.win.css("resize")&&"none"!=s.win.css("resize")&&(s.view.h-=20),s.cursorheight=Math.min(s.view.h,Math.round(s.view.h*(s.view.h/s.page.h))),s.cursorheight=s.opt.cursorfixedheight?s.opt.cursorfixedheight:Math.max(s.opt.cursorminheight,s.cursorheight),s.cursorwidth=Math.min(s.view.w,Math.round(s.view.w*(s.view.w/s.page.w))),s.cursorwidth=s.opt.cursorfixedheight?s.opt.cursorfixedheight:Math.max(s.opt.cursorminheight,s.cursorwidth),s.scrollvaluemax=s.view.h-s.cursorheight-s.cursor.hborder,s.railh&&(s.railh.width=s.page.maxh>0?s.view.w-s.rail.width:s.view.w,s.scrollvaluemaxw=s.railh.width-s.cursorwidth-s.cursorh.wborder),s.checkrtlmode&&s.railh&&(s.checkrtlmode=!1,s.opt.rtlmode&&0==s.scroll.x&&s.setScrollLeft(s.page.maxw)),s.ispage||s.updateScrollBar(s.view),s.scrollratio={x:s.page.maxw/s.scrollvaluemaxw,y:s.page.maxh/s.scrollvaluemax};var h=s.getScrollTop();return h>s.page.maxh?s.doScrollTop(s.page.maxh):(s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.scroll.x=Math.round(s.getScrollLeft()*(1/s.scrollratio.x)),s.cursoractive&&s.noticeCursor()),s.scroll.y&&0==s.getScrollTop()&&s.doScrollTo(Math.floor(s.scroll.y*s.scrollratio.y)),s},this.resize=s.onResize,this.lazyResize=function(a){return a=isNaN(a)?30:a,s.delayed("resize",s.resize,a),s},this._bind=function(a,b,c,d){s.events.push({e:a,n:b,f:c,b:d,q:!1}),a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c},this.jqbind=function(a,b,c){s.events.push({e:a,n:b,f:c,q:!0}),j(a).bind(b,c)},this.bind=function(a,b,c,d){var e="jquery"in a?a[0]:a;if(void 0==e&&(e=a),"mousewheel"==b)if("onwheel"in s.win)s._bind(e,"wheel",c,d||!1);else{var f="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll";o(e,f,c,d||!1),"DOMMouseScroll"==f&&o(e,"MozMousePixelScroll",c,d||!1)}else if(e.addEventListener){if(w.cantouch&&/mouseup|mousedown|mousemove/.test(b)){var g="mousedown"==b?"touchstart":"mouseup"==b?"touchend":"touchmove";s._bind(e,g,function(a){if(a.touches){if(a.touches.length<2){var b=a.touches.length?a.touches[0]:a;b.original=a,c.call(this,b)}}else if(a.changedTouches){var b=a.changedTouches[0];b.original=a,c.call(this,b)}},d||!1)}s._bind(e,b,c,d||!1),w.cantouch&&"mouseup"==b&&s._bind(e,"touchcancel",c,d||!1)}else s._bind(e,b,function(a){return a=a||window.event||!1,a&&a.srcElement&&(a.target=a.srcElement),"pageY"in a||(a.pageX=a.clientX+document.documentElement.scrollLeft,a.pageY=a.clientY+document.documentElement.scrollTop),c.call(e,a)===!1||d===!1?s.cancelEvent(a):!0})},this._unbind=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent?a.detachEvent("on"+b,c):a["on"+b]=!1},this.unbindAll=function(){for(var a=0;a<s.events.length;a++){var b=s.events[a];b.q?b.e.unbind(b.n,b.f):s._unbind(b.e,b.n,b.f,b.b)}},this.cancelEvent=function(a){var a=a.original?a.original:a?a:window.event||!1;return a?(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.preventManipulation&&a.preventManipulation(),a.cancelBubble=!0,a.cancel=!0,a.returnValue=!1,!1):!1},this.stopPropagation=function(a){var a=a.original?a.original:a?a:window.event||!1;return a?a.stopPropagation?a.stopPropagation():(a.cancelBubble&&(a.cancelBubble=!0),!1):!1},this.showRail=function(){return 0==s.page.maxh||!s.ispage&&"none"==s.win.css("display")||(s.visibility=!0,s.rail.visibility=!0,s.rail.css("display","block")),s},this.showRailHr=function(){return s.railh?(0==s.page.maxw||!s.ispage&&"none"==s.win.css("display")||(s.railh.visibility=!0,s.railh.css("display","block")),s):s},this.hideRail=function(){return s.visibility=!1,s.rail.visibility=!1,s.rail.css("display","none"),s},this.hideRailHr=function(){return s.railh?(s.railh.visibility=!1,s.railh.css("display","none"),s):s},this.show=function(){return s.hidden=!1,s.locked=!1,s.showRail().showRailHr()},this.hide=function(){return s.hidden=!0,s.locked=!0,s.hideRail().hideRailHr()},this.toggle=function(){return s.hidden?s.show():s.hide()},this.remove=function(){s.stop(),s.cursortimeout&&clearTimeout(s.cursortimeout),s.doZoomOut(),s.unbindAll(),w.isie9&&s.win[0].detachEvent("onpropertychange",s.onAttributeChange),s.observer!==!1&&s.observer.disconnect(),s.observerremover!==!1&&s.observerremover.disconnect(),s.events=null,s.cursor&&s.cursor.remove(),s.cursorh&&s.cursorh.remove(),s.rail&&s.rail.remove(),s.railh&&s.railh.remove(),s.zoom&&s.zoom.remove();for(var a=0;a<s.saved.css.length;a++){var b=s.saved.css[a];b[0].css(b[1],"undefined"==typeof b[2]?"":b[2])}s.saved=!1,s.me.data("__nicescroll","");var c=j.nicescroll;c.each(function(a){if(this&&this.id===s.id){delete c[a];for(var b=++a;b<c.length;b++,a++)c[a]=c[b];c.length--,c.length&&delete c[c.length]}});for(var d in s)s[d]=null,delete s[d];s=null},this.scrollstart=function(a){return this.onscrollstart=a,s},this.scrollend=function(a){return this.onscrollend=a,s},this.scrollcancel=function(a){return this.onscrollcancel=a,s},this.zoomin=function(a){return this.onzoomin=a,s},this.zoomout=function(a){return this.onzoomout=a,s},this.isScrollable=function(a){var b=a.target?a.target:a;if("OPTION"==b.nodeName)return!0;for(;b&&1==b.nodeType&&!/BODY|HTML/.test(b.nodeName);){var c=j(b),d=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(d))return b.clientHeight!=b.scrollHeight;b=b.parentNode?b.parentNode:!1}return!1},this.getViewport=function(a){for(var b=a&&a.parentNode?a.parentNode:!1;b&&1==b.nodeType&&!/BODY|HTML/.test(b.nodeName);){var c=j(b),d=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(d)&&b.clientHeight!=b.scrollHeight)return c;if(c.getNiceScroll().length>0)return c;b=b.parentNode?b.parentNode:!1}return!1},this.onmousewheel=function(a){if(s.locked)return s.debounced("checkunlock",s.resize,250),!0;if(s.rail.drag)return s.cancelEvent(a);if("auto"==s.opt.oneaxismousemode&&0!=a.deltaX&&(s.opt.oneaxismousemode=!1),s.opt.oneaxismousemode&&0==a.deltaX&&!s.rail.scrollable)return s.railh&&s.railh.scrollable?s.onmousewheelhr(a):!0;var b=+new Date,c=!1;if(s.opt.preservenativescrolling&&s.checkarea+600<b&&(s.nativescrollingarea=s.isScrollable(a),c=!0),s.checkarea=b,s.nativescrollingarea)return!0;var d=p(a,!1,c);return d&&(s.checkarea=0),d},this.onmousewheelhr=function(a){if(s.locked||!s.railh.scrollable)return!0;if(s.rail.drag)return s.cancelEvent(a);var b=+new Date,c=!1;return s.opt.preservenativescrolling&&s.checkarea+600<b&&(s.nativescrollingarea=s.isScrollable(a),c=!0),s.checkarea=b,s.nativescrollingarea?!0:s.locked?s.cancelEvent(a):p(a,!0,c)},this.stop=function(){return s.cancelScroll(),s.scrollmon&&s.scrollmon.stop(),s.cursorfreezed=!1,s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.noticeCursor(),s},this.getTransitionSpeed=function(a){var b=Math.round(10*s.opt.scrollspeed),c=Math.min(b,Math.round(a/20*s.opt.scrollspeed));return c>20?c:0},s.opt.smoothscroll?s.ishwscroll&&w.hastransition&&s.opt.usetransition?(this.prepareTransition=function(a,b){var c=b?a>20?a:0:s.getTransitionSpeed(a),d=c?w.prefixstyle+"transform "+c+"ms ease-out":"";return s.lasttransitionstyle&&s.lasttransitionstyle==d||(s.lasttransitionstyle=d,s.doc.css(w.transitionstyle,d)),c},this.doScrollLeft=function(a,b){var c=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(a,c,b)},this.doScrollTop=function(a,b){var c=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(c,a,b)},this.doScrollPos=function(a,b,c){var d=s.getScrollTop(),e=s.getScrollLeft();return((s.newscrolly-d)*(b-d)<0||(s.newscrollx-e)*(a-e)<0)&&s.cancelScroll(),0==s.opt.bouncescroll&&(0>b?b=0:b>s.page.maxh&&(b=s.page.maxh),0>a?a=0:a>s.page.maxw&&(a=s.page.maxw)),s.scrollrunning&&a==s.newscrollx&&b==s.newscrolly?!1:(s.newscrolly=b,s.newscrollx=a,s.newscrollspeed=c||!1,s.timer?!1:void(s.timer=setTimeout(function(){var c=s.getScrollTop(),d=s.getScrollLeft(),e={};e.x=a-d,e.y=b-c,e.px=d,e.py=c;var f=Math.round(Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))),g=s.newscrollspeed&&s.newscrollspeed>1?s.newscrollspeed:s.getTransitionSpeed(f);if(s.newscrollspeed&&s.newscrollspeed<=1&&(g*=s.newscrollspeed),s.prepareTransition(g,!0),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),g>0){if(!s.scrollrunning&&s.onscrollstart){var h={type:"scrollstart",current:{x:d,y:c},request:{x:a,y:b},end:{x:s.newscrollx,y:s.newscrolly},speed:g};s.onscrollstart.call(s,h)}w.transitionend?s.scrollendtrapped||(s.scrollendtrapped=!0,s.bind(s.doc,w.transitionend,s.onScrollEnd,!1)):(s.scrollendtrapped&&clearTimeout(s.scrollendtrapped),s.scrollendtrapped=setTimeout(s.onScrollEnd,g));var i=c,j=d;s.timerscroll={bz:new BezierClass(i,s.newscrolly,g,0,0,.58,1),bh:new BezierClass(j,s.newscrollx,g,0,0,.58,1)},s.cursorfreezed||(s.timerscroll.tm=setInterval(function(){s.showCursor(s.getScrollTop(),s.getScrollLeft())},60))}s.synched("doScroll-set",function(){s.timer=0,s.scrollendtrapped&&(s.scrollrunning=!0),s.setScrollTop(s.newscrolly),s.setScrollLeft(s.newscrollx),s.scrollendtrapped||s.onScrollEnd()})},50)))},this.cancelScroll=function(){if(!s.scrollendtrapped)return!0;var a=s.getScrollTop(),b=s.getScrollLeft();return s.scrollrunning=!1,w.transitionend||clearTimeout(w.transitionend),s.scrollendtrapped=!1,s._unbind(s.doc,w.transitionend,s.onScrollEnd),s.prepareTransition(0),s.setScrollTop(a),s.railh&&s.setScrollLeft(b),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),s.timerscroll=!1,s.cursorfreezed=!1,s.showCursor(a,b),s},this.onScrollEnd=function(){s.scrollendtrapped&&s._unbind(s.doc,w.transitionend,s.onScrollEnd),s.scrollendtrapped=!1,s.prepareTransition(0),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),s.timerscroll=!1;var a=s.getScrollTop(),b=s.getScrollLeft();if(s.setScrollTop(a),s.railh&&s.setScrollLeft(b),s.noticeCursor(!1,a,b),s.cursorfreezed=!1,0>a?a=0:a>s.page.maxh&&(a=s.page.maxh),0>b?b=0:b>s.page.maxw&&(b=s.page.maxw),a!=s.newscrolly||b!=s.newscrollx)return s.doScrollPos(b,a,s.opt.snapbackspeed);if(s.onscrollend&&s.scrollrunning){var c={type:"scrollend",current:{x:b,y:a},end:{x:s.newscrollx,y:s.newscrolly}};s.onscrollend.call(s,c)}s.scrollrunning=!1}):(this.doScrollLeft=function(a,b){var c=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(a,c,b)},this.doScrollTop=function(a,b){var c=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(c,a,b)},this.doScrollPos=function(a,b,c){function d(){if(s.cancelAnimationFrame)return!0;if(s.scrollrunning=!0,k=1-k)return s.timer=m(d)||1;var a=0,b=sy=s.getScrollTop();if(s.dst.ay){b=s.bzscroll?s.dst.py+s.bzscroll.getNow()*s.dst.ay:s.newscrolly;var c=b-sy;(0>c&&b<s.newscrolly||c>0&&b>s.newscrolly)&&(b=s.newscrolly),s.setScrollTop(b),b==s.newscrolly&&(a=1)}else a=1;var e=sx=s.getScrollLeft();if(s.dst.ax){e=s.bzscroll?s.dst.px+s.bzscroll.getNow()*s.dst.ax:s.newscrollx;var c=e-sx;(0>c&&e<s.newscrollx||c>0&&e>s.newscrollx)&&(e=s.newscrollx),s.setScrollLeft(e),e==s.newscrollx&&(a+=1)}else a+=1;if(2==a){if(s.timer=0,s.cursorfreezed=!1,s.bzscroll=!1,s.scrollrunning=!1,0>b?b=0:b>s.page.maxh&&(b=s.page.maxh),0>e?e=0:e>s.page.maxw&&(e=s.page.maxw),e!=s.newscrollx||b!=s.newscrolly)s.doScrollPos(e,b);else if(s.onscrollend){var f={type:"scrollend",current:{x:sx,y:sy},end:{x:s.newscrollx,y:s.newscrolly}};s.onscrollend.call(s,f)}}else s.timer=m(d)||1}var b="undefined"==typeof b||b===!1?s.getScrollTop(!0):b;if(s.timer&&s.newscrolly==b&&s.newscrollx==a)return!0;s.timer&&n(s.timer),s.timer=0;var e=s.getScrollTop(),f=s.getScrollLeft();((s.newscrolly-e)*(b-e)<0||(s.newscrollx-f)*(a-f)<0)&&s.cancelScroll(),s.newscrolly=b,s.newscrollx=a,s.bouncescroll&&s.rail.visibility||(s.newscrolly<0?s.newscrolly=0:s.newscrolly>s.page.maxh&&(s.newscrolly=s.page.maxh)),s.bouncescroll&&s.railh.visibility||(s.newscrollx<0?s.newscrollx=0:s.newscrollx>s.page.maxw&&(s.newscrollx=s.page.maxw)),s.dst={},s.dst.x=a-f,s.dst.y=b-e,s.dst.px=f,s.dst.py=e;var g=Math.round(Math.sqrt(Math.pow(s.dst.x,2)+Math.pow(s.dst.y,2)));s.dst.ax=s.dst.x/g,s.dst.ay=s.dst.y/g;var h=0,i=g;0==s.dst.x?(h=e,i=b,s.dst.ay=1,s.dst.py=0):0==s.dst.y&&(h=f,i=a,s.dst.ax=1,s.dst.px=0);var j=s.getTransitionSpeed(g);if(c&&1>=c&&(j*=c),j>0?s.bzscroll=s.bzscroll?s.bzscroll.update(i,j):new BezierClass(h,i,j,0,1,0,1):s.bzscroll=!1,!s.timer){(e==s.page.maxh&&b>=s.page.maxh||f==s.page.maxw&&a>=s.page.maxw)&&s.checkContentSize();var k=1;if(s.cancelAnimationFrame=!1,s.timer=1,s.onscrollstart&&!s.scrollrunning){var l={type:"scrollstart",current:{x:f,y:e},request:{x:a,y:b},end:{x:s.newscrollx,y:s.newscrolly},speed:j};s.onscrollstart.call(s,l)}d(),(e==s.page.maxh&&b>=e||f==s.page.maxw&&a>=f)&&s.checkContentSize(),s.noticeCursor()}},this.cancelScroll=function(){return s.timer&&n(s.timer),s.timer=0,s.bzscroll=!1,s.scrollrunning=!1,s}):(this.doScrollLeft=function(a,b){var c=s.getScrollTop();s.doScrollPos(a,c,b)},this.doScrollTop=function(a,b){var c=s.getScrollLeft();s.doScrollPos(c,a,b)},this.doScrollPos=function(a,b,c){var d=a>s.page.maxw?s.page.maxw:a;0>d&&(d=0);var e=b>s.page.maxh?s.page.maxh:b;0>e&&(e=0),s.synched("scroll",function(){s.setScrollTop(e),s.setScrollLeft(d)})},this.cancelScroll=function(){}),this.doScrollBy=function(a,b){var c=0;if(b)c=Math.floor((s.scroll.y-a)*s.scrollratio.y);else{var d=s.timer?s.newscrolly:s.getScrollTop(!0);c=d-a}if(s.bouncescroll){var e=Math.round(s.view.h/2);-e>c?c=-e:c>s.page.maxh+e&&(c=s.page.maxh+e)}return s.cursorfreezed=!1,py=s.getScrollTop(!0),0>c&&py<=0?s.noticeCursor():c>s.page.maxh&&py>=s.page.maxh?(s.checkContentSize(),s.noticeCursor()):void s.doScrollTop(c)},this.doScrollLeftBy=function(a,b){var c=0;if(b)c=Math.floor((s.scroll.x-a)*s.scrollratio.x);else{var d=s.timer?s.newscrollx:s.getScrollLeft(!0);c=d-a}if(s.bouncescroll){var e=Math.round(s.view.w/2);-e>c?c=-e:c>s.page.maxw+e&&(c=s.page.maxw+e)}return s.cursorfreezed=!1,px=s.getScrollLeft(!0),0>c&&px<=0?s.noticeCursor():c>s.page.maxw&&px>=s.page.maxw?s.noticeCursor():void s.doScrollLeft(c)},this.doScrollTo=function(a,b){var c=b?Math.round(a*s.scrollratio.y):a;0>c?c=0:c>s.page.maxh&&(c=s.page.maxh),s.cursorfreezed=!1,s.doScrollTop(a)},this.checkContentSize=function(){var a=s.getContentSize();(a.h!=s.page.h||a.w!=s.page.w)&&s.resize(!1,a)},s.onscroll=function(a){s.rail.drag||s.cursorfreezed||s.synched("scroll",function(){s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.railh&&(s.scroll.x=Math.round(s.getScrollLeft()*(1/s.scrollratio.x))),s.noticeCursor()})},s.bind(s.docscroll,"scroll",s.onscroll),this.doZoomIn=function(a){if(!s.zoomactive){s.zoomactive=!0,s.zoomrestore={style:{}};var b=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],c=s.win[0].style;for(var d in b){var e=b[d];s.zoomrestore.style[e]="undefined"!=typeof c[e]?c[e]:""}s.zoomrestore.style.width=s.win.css("width"),s.zoomrestore.style.height=s.win.css("height"),s.zoomrestore.padding={w:s.win.outerWidth()-s.win.width(),h:s.win.outerHeight()-s.win.height()},w.isios4&&(s.zoomrestore.scrollTop=j(window).scrollTop(),j(window).scrollTop(0)),s.win.css({position:w.isios4?"absolute":"fixed",top:0,left:0,"z-index":i+100,margin:"0px"});var f=s.win.css("backgroundColor");return(""==f||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(f))&&s.win.css("backgroundColor","#fff"),s.rail.css({"z-index":i+101}),s.zoom.css({"z-index":i+102}),s.zoom.css("backgroundPosition","0px -18px"),s.resizeZoom(),
s.onzoomin&&s.onzoomin.call(s),s.cancelEvent(a)}},this.doZoomOut=function(a){return s.zoomactive?(s.zoomactive=!1,s.win.css("margin",""),s.win.css(s.zoomrestore.style),w.isios4&&j(window).scrollTop(s.zoomrestore.scrollTop),s.rail.css({"z-index":s.zindex}),s.zoom.css({"z-index":s.zindex}),s.zoomrestore=!1,s.zoom.css("backgroundPosition","0px 0px"),s.onResize(),s.onzoomout&&s.onzoomout.call(s),s.cancelEvent(a)):void 0},this.doZoom=function(a){return s.zoomactive?s.doZoomOut(a):s.doZoomIn(a)},this.resizeZoom=function(){if(s.zoomactive){var a=s.getScrollTop();s.win.css({width:j(window).width()-s.zoomrestore.padding.w+"px",height:j(window).height()-s.zoomrestore.padding.h+"px"}),s.onResize(),s.setScrollTop(Math.min(s.page.maxh,a))}},this.init(),j.nicescroll.push(this)},v=function(a){var b=this;this.nc=a,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.time=function(){return+new Date},this.reset=function(a,c){b.stop();var d=b.time();b.steptime=0,b.lasttime=d,b.speedx=0,b.speedy=0,b.lastx=a,b.lasty=c,b.lastscrollx=-1,b.lastscrolly=-1},this.update=function(a,c){var d=b.time();b.steptime=d-b.lasttime,b.lasttime=d;var e=c-b.lasty,f=a-b.lastx,g=b.nc.getScrollTop(),h=b.nc.getScrollLeft(),i=g+e,j=h+f;b.snapx=0>j||j>b.nc.page.maxw,b.snapy=0>i||i>b.nc.page.maxh,b.speedx=f,b.speedy=e,b.lastx=a,b.lasty=c},this.stop=function(){b.nc.unsynched("domomentum2d"),b.timer&&clearTimeout(b.timer),b.timer=0,b.lastscrollx=-1,b.lastscrolly=-1},this.doSnapy=function(a,c){var d=!1;0>c?(c=0,d=!0):c>b.nc.page.maxh&&(c=b.nc.page.maxh,d=!0),0>a?(a=0,d=!0):a>b.nc.page.maxw&&(a=b.nc.page.maxw,d=!0),d&&b.nc.doScrollPos(a,c,b.nc.opt.snapbackspeed)},this.doMomentum=function(a){var c=b.time(),d=a?c+a:b.lasttime,e=b.nc.getScrollLeft(),f=b.nc.getScrollTop(),g=b.nc.page.maxh,h=b.nc.page.maxw;b.speedx=h>0?Math.min(60,b.speedx):0,b.speedy=g>0?Math.min(60,b.speedy):0;var i=d&&60>=c-d;(0>f||f>g||0>e||e>h)&&(i=!1);var j=b.speedy&&i?b.speedy:!1,k=b.speedx&&i?b.speedx:!1;if(j||k){var l=Math.max(16,b.steptime);if(l>50){var m=l/50;b.speedx*=m,b.speedy*=m,l=50}b.demulxy=0,b.lastscrollx=b.nc.getScrollLeft(),b.chkx=b.lastscrollx,b.lastscrolly=b.nc.getScrollTop(),b.chky=b.lastscrolly;var n=b.lastscrollx,o=b.lastscrolly,p=function(){var a=b.time()-c>600?.04:.02;b.speedx&&(n=Math.floor(b.lastscrollx-b.speedx*(1-b.demulxy)),b.lastscrollx=n,(0>n||n>h)&&(a=.1)),b.speedy&&(o=Math.floor(b.lastscrolly-b.speedy*(1-b.demulxy)),b.lastscrolly=o,(0>o||o>g)&&(a=.1)),b.demulxy=Math.min(1,b.demulxy+a),b.nc.synched("domomentum2d",function(){if(b.speedx){var a=b.nc.getScrollLeft();a!=b.chkx&&b.stop(),b.chkx=n,b.nc.setScrollLeft(n)}if(b.speedy){var c=b.nc.getScrollTop();c!=b.chky&&b.stop(),b.chky=o,b.nc.setScrollTop(o)}b.timer||(b.nc.hideCursor(),b.doSnapy(n,o))}),b.demulxy<1?b.timer=setTimeout(p,l):(b.stop(),b.nc.hideCursor(),b.doSnapy(n,o))};p()}else b.doSnapy(b.nc.getScrollLeft(),b.nc.getScrollTop())}},w=b.fn.scrollTop;b.cssHooks.pageYOffset={get:function(a,b,c){var d=j.data(a,"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollTop():w.call(a)},set:function(a,b){var c=j.data(a,"__nicescroll")||!1;return c&&c.ishwscroll?c.setScrollTop(parseInt(b)):w.call(a,b),this}},b.fn.scrollTop=function(a){if("undefined"==typeof a){var b=this[0]?j.data(this[0],"__nicescroll")||!1:!1;return b&&b.ishwscroll?b.getScrollTop():w.call(this)}return this.each(function(){var b=j.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollTop(parseInt(a)):w.call(j(this),a)})};var x=b.fn.scrollLeft;j.cssHooks.pageXOffset={get:function(a,b,c){var d=j.data(a,"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollLeft():x.call(a)},set:function(a,b){var c=j.data(a,"__nicescroll")||!1;return c&&c.ishwscroll?c.setScrollLeft(parseInt(b)):x.call(a,b),this}},b.fn.scrollLeft=function(a){if("undefined"==typeof a){var b=this[0]?j.data(this[0],"__nicescroll")||!1:!1;return b&&b.ishwscroll?b.getScrollLeft():x.call(this)}return this.each(function(){var b=j.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollLeft(parseInt(a)):x.call(j(this),a)})};var y=function(b){var c=this;if(this.length=0,this.name="nicescrollarray",this.each=function(a){for(var b=0,d=0;b<c.length;b++)a.call(c[b],d++);return c},this.push=function(a){c[c.length]=a,c.length++},this.eq=function(a){return c[a]},b)for(a=0;a<b.length;a++){var d=j.data(b[a],"__nicescroll")||!1;d&&(this[this.length]=d,this.length++)}return this};d(y.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(a,b){a[b]=function(){var a=arguments;return this.each(function(){this[b].apply(this,a)})}}),b.fn.getNiceScroll=function(a){if("undefined"==typeof a)return new y(this);var b=this[a]&&j.data(this[a],"__nicescroll")||!1;return b},b.extend(b.expr[":"],{nicescroll:function(a){return j.data(a,"__nicescroll")?!0:!1}}),j.fn.niceScroll=function(a,b){"undefined"==typeof b&&("object"!=typeof a||"jquery"in a||(b=a,a=!1));var c=new y;"undefined"==typeof b&&(b={}),a&&(b.doc=j(a),b.win=j(this));var d=!("doc"in b);return d||"win"in b||(b.win=j(this)),this.each(function(){var a=j(this).data("__nicescroll")||!1;a||(b.doc=d?j(this):b.doc,a=new u(b,j(this)),j(this).data("__nicescroll",a)),c.push(a)}),1==c.length?c[0]:c},window.NiceScroll={getjQuery:function(){return b}},j.nicescroll||(j.nicescroll=new y,j.nicescroll.options=r)}(jQuery),function(a){a.flexslider=function(b,c){var d=a(b);d.vars=a.extend({},a.flexslider.defaults,c);var e,f=d.vars.namespace,g=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,h=("ontouchstart"in window||g||window.DocumentTouch&&document instanceof DocumentTouch)&&d.vars.touch,i="click touchend MSPointerUp",j="",k="vertical"===d.vars.direction,l=d.vars.reverse,m=d.vars.itemWidth>0,n="fade"===d.vars.animation,o=""!==d.vars.asNavFor,p={},q=!0;a.data(b,"flexslider",d),p={init:function(){d.animating=!1,d.currentSlide=parseInt(d.vars.startAt?d.vars.startAt:0,10),isNaN(d.currentSlide)&&(d.currentSlide=0),d.animatingTo=d.currentSlide,d.atEnd=0===d.currentSlide||d.currentSlide===d.last,d.containerSelector=d.vars.selector.substr(0,d.vars.selector.search(" ")),d.slides=a(d.vars.selector,d),d.container=a(d.containerSelector,d),d.count=d.slides.length,d.syncExists=a(d.vars.sync).length>0,"slide"===d.vars.animation&&(d.vars.animation="swing"),d.prop=k?"top":"marginLeft",d.args={},d.manualPause=!1,d.stopped=!1,d.started=!1,d.startTimeout=null,d.transitions=!d.vars.video&&!n&&d.vars.useCSS&&function(){var a=document.createElement("div"),b=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var c in b)if(void 0!==a.style[b[c]])return d.pfx=b[c].replace("Perspective","").toLowerCase(),d.prop="-"+d.pfx+"-transform",!0;return!1}(),d.ensureAnimationEnd="",""!==d.vars.controlsContainer&&(d.controlsContainer=a(d.vars.controlsContainer).length>0&&a(d.vars.controlsContainer)),""!==d.vars.manualControls&&(d.manualControls=a(d.vars.manualControls).length>0&&a(d.vars.manualControls)),d.vars.randomize&&(d.slides.sort(function(){return Math.round(Math.random())-.5}),d.container.empty().append(d.slides)),d.doMath(),d.setup("init"),d.vars.controlNav&&p.controlNav.setup(),d.vars.directionNav&&p.directionNav.setup(),d.vars.keyboard&&(1===a(d.containerSelector).length||d.vars.multipleKeyboard)&&a(document).bind("keyup",function(a){var b=a.keyCode;if(!d.animating&&(39===b||37===b)){var c=39===b?d.getTarget("next"):37===b?d.getTarget("prev"):!1;d.flexAnimate(c,d.vars.pauseOnAction)}}),d.vars.mousewheel&&d.bind("mousewheel",function(a,b,c,e){a.preventDefault();var f=0>b?d.getTarget("next"):d.getTarget("prev");d.flexAnimate(f,d.vars.pauseOnAction)}),d.vars.pausePlay&&p.pausePlay.setup(),d.vars.slideshow&&d.vars.pauseInvisible&&p.pauseInvisible.init(),d.vars.slideshow&&(d.vars.pauseOnHover&&d.hover(function(){d.manualPlay||d.manualPause||d.pause()},function(){d.manualPause||d.manualPlay||d.stopped||d.play()}),d.vars.pauseInvisible&&p.pauseInvisible.isHidden()||(d.vars.initDelay>0?d.startTimeout=setTimeout(d.play,d.vars.initDelay):d.play())),o&&p.asNav.setup(),h&&d.vars.touch&&p.touch(),(!n||n&&d.vars.smoothHeight)&&a(window).bind("resize orientationchange focus",p.resize),d.find("img").attr("draggable","false"),setTimeout(function(){d.vars.start(d)},200)},asNav:{setup:function(){d.asNav=!0,d.animatingTo=Math.floor(d.currentSlide/d.move),d.currentItem=d.currentSlide,d.slides.removeClass(f+"active-slide").eq(d.currentItem).addClass(f+"active-slide"),g?(b._slider=d,d.slides.each(function(){var b=this;b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",function(a){a.preventDefault(),a.currentTarget._gesture&&a.currentTarget._gesture.addPointer(a.pointerId)},!1),b.addEventListener("MSGestureTap",function(b){b.preventDefault();var c=a(this),e=c.index();a(d.vars.asNavFor).data("flexslider").animating||c.hasClass("active")||(d.direction=d.currentItem<e?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction,!1,!0,!0))})})):d.slides.on(i,function(b){b.preventDefault();var c=a(this),e=c.index(),g=c.offset().left-a(d).scrollLeft();0>=g&&c.hasClass(f+"active-slide")?d.flexAnimate(d.getTarget("prev"),!0):a(d.vars.asNavFor).data("flexslider").animating||c.hasClass(f+"active-slide")||(d.direction=d.currentItem<e?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){d.manualControls?p.controlNav.setupManual():p.controlNav.setupPaging()},setupPaging:function(){var b,c,e="thumbnails"===d.vars.controlNav?"control-thumbs":"control-paging",g=1;if(d.controlNavScaffold=a('<ol class="'+f+"control-nav "+f+e+'"></ol>'),d.pagingCount>1)for(var h=0;h<d.pagingCount;h++){if(c=d.slides.eq(h),b="thumbnails"===d.vars.controlNav?'<img src="'+c.attr("data-thumb")+'"/>':"<a>"+g+"</a>","thumbnails"===d.vars.controlNav&&!0===d.vars.thumbCaptions){var k=c.attr("data-thumbcaption");""!=k&&void 0!=k&&(b+='<span class="'+f+'caption">'+k+"</span>")}d.controlNavScaffold.append("<li>"+b+"</li>"),g++}d.controlsContainer?a(d.controlsContainer).append(d.controlNavScaffold):d.append(d.controlNavScaffold),p.controlNav.set(),p.controlNav.active(),d.controlNavScaffold.delegate("a, img",i,function(b){if(b.preventDefault(),""===j||j===b.type){var c=a(this),e=d.controlNav.index(c);c.hasClass(f+"active")||(d.direction=e>d.currentSlide?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction))}""===j&&(j=b.type),p.setToClearWatchedEvent()})},setupManual:function(){d.controlNav=d.manualControls,p.controlNav.active(),d.controlNav.bind(i,function(b){if(b.preventDefault(),""===j||j===b.type){var c=a(this),e=d.controlNav.index(c);c.hasClass(f+"active")||(e>d.currentSlide?d.direction="next":d.direction="prev",d.flexAnimate(e,d.vars.pauseOnAction))}""===j&&(j=b.type),p.setToClearWatchedEvent()})},set:function(){var b="thumbnails"===d.vars.controlNav?"img":"a";d.controlNav=a("."+f+"control-nav li "+b,d.controlsContainer?d.controlsContainer:d)},active:function(){d.controlNav.removeClass(f+"active").eq(d.animatingTo).addClass(f+"active")},update:function(b,c){d.pagingCount>1&&"add"===b?d.controlNavScaffold.append(a("<li><a>"+d.count+"</a></li>")):1===d.pagingCount?d.controlNavScaffold.find("li").remove():d.controlNav.eq(c).closest("li").remove(),p.controlNav.set(),d.pagingCount>1&&d.pagingCount!==d.controlNav.length?d.update(c,b):p.controlNav.active()}},directionNav:{setup:function(){var b=a('<ul class="'+f+'direction-nav"><li><a class="'+f+'prev" href="#">'+d.vars.prevText+'</a></li><li><a class="'+f+'next" href="#">'+d.vars.nextText+"</a></li></ul>");d.controlsContainer?(a(d.controlsContainer).append(b),d.directionNav=a("."+f+"direction-nav li a",d.controlsContainer)):(d.append(b),d.directionNav=a("."+f+"direction-nav li a",d)),p.directionNav.update(),d.directionNav.bind(i,function(b){b.preventDefault();var c;(""===j||j===b.type)&&(c=a(this).hasClass(f+"next")?d.getTarget("next"):d.getTarget("prev"),d.flexAnimate(c,d.vars.pauseOnAction)),""===j&&(j=b.type),p.setToClearWatchedEvent()})},update:function(){var a=f+"disabled";1===d.pagingCount?d.directionNav.addClass(a).attr("tabindex","-1"):d.vars.animationLoop?d.directionNav.removeClass(a).removeAttr("tabindex"):0===d.animatingTo?d.directionNav.removeClass(a).filter("."+f+"prev").addClass(a).attr("tabindex","-1"):d.animatingTo===d.last?d.directionNav.removeClass(a).filter("."+f+"next").addClass(a).attr("tabindex","-1"):d.directionNav.removeClass(a).removeAttr("tabindex")}},pausePlay:{setup:function(){var b=a('<div class="'+f+'pauseplay"><a></a></div>');d.controlsContainer?(d.controlsContainer.append(b),d.pausePlay=a("."+f+"pauseplay a",d.controlsContainer)):(d.append(b),d.pausePlay=a("."+f+"pauseplay a",d)),p.pausePlay.update(d.vars.slideshow?f+"pause":f+"play"),d.pausePlay.bind(i,function(b){b.preventDefault(),(""===j||j===b.type)&&(a(this).hasClass(f+"pause")?(d.manualPause=!0,d.manualPlay=!1,d.pause()):(d.manualPause=!1,d.manualPlay=!0,d.play())),""===j&&(j=b.type),p.setToClearWatchedEvent()})},update:function(a){"play"===a?d.pausePlay.removeClass(f+"pause").addClass(f+"play").html(d.vars.playText):d.pausePlay.removeClass(f+"play").addClass(f+"pause").html(d.vars.pauseText)}},touch:function(){function a(a){d.animating?a.preventDefault():(window.navigator.msPointerEnabled||1===a.touches.length)&&(d.pause(),q=k?d.h:d.w,s=Number(new Date),u=a.touches[0].pageX,v=a.touches[0].pageY,p=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*q:(d.currentSlide+d.cloneOffset)*q,j=k?v:u,o=k?u:v,b.addEventListener("touchmove",c,!1),b.addEventListener("touchend",e,!1))}function c(a){u=a.touches[0].pageX,v=a.touches[0].pageY,r=k?j-v:j-u,t=k?Math.abs(r)<Math.abs(u-o):Math.abs(r)<Math.abs(v-o);var b=500;(!t||Number(new Date)-s>b)&&(a.preventDefault(),!n&&d.transitions&&(d.vars.animationLoop||(r/=0===d.currentSlide&&0>r||d.currentSlide===d.last&&r>0?Math.abs(r)/q+2:1),d.setProps(p+r,"setTouch")))}function e(a){if(b.removeEventListener("touchmove",c,!1),d.animatingTo===d.currentSlide&&!t&&null!==r){var f=l?-r:r,g=f>0?d.getTarget("next"):d.getTarget("prev");d.canAdvance(g)&&(Number(new Date)-s<550&&Math.abs(f)>50||Math.abs(f)>q/2)?d.flexAnimate(g,d.vars.pauseOnAction):n||d.flexAnimate(d.currentSlide,d.vars.pauseOnAction,!0)}b.removeEventListener("touchend",e,!1),j=null,o=null,r=null,p=null}function f(a){a.stopPropagation(),d.animating?a.preventDefault():(d.pause(),b._gesture.addPointer(a.pointerId),w=0,q=k?d.h:d.w,s=Number(new Date),p=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*q:(d.currentSlide+d.cloneOffset)*q)}function h(a){a.stopPropagation();var c=a.target._slider;if(c){var d=-a.translationX,e=-a.translationY;return w+=k?e:d,r=w,t=k?Math.abs(w)<Math.abs(-d):Math.abs(w)<Math.abs(-e),a.detail===a.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){b._gesture.stop()}):void((!t||Number(new Date)-s>500)&&(a.preventDefault(),!n&&c.transitions&&(c.vars.animationLoop||(r=w/(0===c.currentSlide&&0>w||c.currentSlide===c.last&&w>0?Math.abs(w)/q+2:1)),c.setProps(p+r,"setTouch"))))}}function i(a){a.stopPropagation();var b=a.target._slider;if(b){if(b.animatingTo===b.currentSlide&&!t&&null!==r){var c=l?-r:r,d=c>0?b.getTarget("next"):b.getTarget("prev");b.canAdvance(d)&&(Number(new Date)-s<550&&Math.abs(c)>50||Math.abs(c)>q/2)?b.flexAnimate(d,b.vars.pauseOnAction):n||b.flexAnimate(b.currentSlide,b.vars.pauseOnAction,!0)}j=null,o=null,r=null,p=null,w=0}}var j,o,p,q,r,s,t=!1,u=0,v=0,w=0;g?(b.style.msTouchAction="pan-y",b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",f,!1),b._slider=d,b.addEventListener("MSGestureChange",h,!1),b.addEventListener("MSGestureEnd",i,!1)):b.addEventListener("touchstart",a,!1)},resize:function(){!d.animating&&d.is(":visible")&&(m||d.doMath(),n?p.smoothHeight():m?(d.slides.width(d.computedW),d.update(d.pagingCount),d.setProps()):k?(d.viewport.height(d.h),d.setProps(d.h,"setTotal")):(d.vars.smoothHeight&&p.smoothHeight(),d.newSlides.width(d.computedW),d.setProps(d.computedW,"setTotal")))},smoothHeight:function(a){if(!k||n){var b=n?d:d.viewport;a?b.animate({height:d.slides.eq(d.animatingTo).height()},a):b.height(d.slides.eq(d.animatingTo).height())}},sync:function(b){var c=a(d.vars.sync).data("flexslider"),e=d.animatingTo;switch(b){case"animate":c.flexAnimate(e,d.vars.pauseOnAction,!1,!0);break;case"play":c.playing||c.asNav||c.play();break;case"pause":c.pause()}},uniqueID:function(b){return b.find("[id]").each(function(){var b=a(this);b.attr("id",b.attr("id")+"_clone")}),b},pauseInvisible:{visProp:null,init:function(){var a=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var b=0;b<a.length;b++)a[b]+"Hidden"in document&&(p.pauseInvisible.visProp=a[b]+"Hidden");if(p.pauseInvisible.visProp){var c=p.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(c,function(){p.pauseInvisible.isHidden()?d.startTimeout?clearTimeout(d.startTimeout):d.pause():d.started?d.play():d.vars.initDelay>0?setTimeout(d.play,d.vars.initDelay):d.play()})}},isHidden:function(){return document[p.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(e),e=setTimeout(function(){j=""},3e3)}},d.flexAnimate=function(b,c,e,g,i){if(d.vars.animationLoop||b===d.currentSlide||(d.direction=b>d.currentSlide?"next":"prev"),o&&1===d.pagingCount&&(d.direction=d.currentItem<b?"next":"prev"),!d.animating&&(d.canAdvance(b,i)||e)&&d.is(":visible")){if(o&&g){var j=a(d.vars.asNavFor).data("flexslider");if(d.atEnd=0===b||b===d.count-1,j.flexAnimate(b,!0,!1,!0,i),d.direction=d.currentItem<b?"next":"prev",j.direction=d.direction,Math.ceil((b+1)/d.visible)-1===d.currentSlide||0===b)return d.currentItem=b,d.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide"),!1;d.currentItem=b,d.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide"),b=Math.floor(b/d.visible)}if(d.animating=!0,d.animatingTo=b,c&&d.pause(),d.vars.before(d),d.syncExists&&!i&&p.sync("animate"),d.vars.controlNav&&p.controlNav.active(),m||d.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide"),d.atEnd=0===b||b===d.last,d.vars.directionNav&&p.directionNav.update(),b===d.last&&(d.vars.end(d),d.vars.animationLoop||d.pause()),n)h?(d.slides.eq(d.currentSlide).css({opacity:0,zIndex:1}),d.slides.eq(b).css({opacity:1,zIndex:2}),d.wrapup(t)):(d.slides.eq(d.currentSlide).css({zIndex:1}).animate({opacity:0},d.vars.animationSpeed,d.vars.easing),d.slides.eq(b).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing,d.wrapup));else{var q,r,s,t=k?d.slides.filter(":first").height():d.computedW;m?(q=d.vars.itemMargin,s=(d.itemW+q)*d.move*d.animatingTo,r=s>d.limit&&1!==d.visible?d.limit:s):r=0===d.currentSlide&&b===d.count-1&&d.vars.animationLoop&&"next"!==d.direction?l?(d.count+d.cloneOffset)*t:0:d.currentSlide===d.last&&0===b&&d.vars.animationLoop&&"prev"!==d.direction?l?0:(d.count+1)*t:l?(d.count-1-b+d.cloneOffset)*t:(b+d.cloneOffset)*t,d.setProps(r,"",d.vars.animationSpeed),d.transitions?(d.vars.animationLoop&&d.atEnd||(d.animating=!1,d.currentSlide=d.animatingTo),d.container.unbind("webkitTransitionEnd transitionend"),d.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(d.ensureAnimationEnd),d.wrapup(t)}),clearTimeout(d.ensureAnimationEnd),d.ensureAnimationEnd=setTimeout(function(){d.wrapup(t)},d.vars.animationSpeed+100)):d.container.animate(d.args,d.vars.animationSpeed,d.vars.easing,function(){d.wrapup(t)})}d.vars.smoothHeight&&p.smoothHeight(d.vars.animationSpeed)}},d.wrapup=function(a){n||m||(0===d.currentSlide&&d.animatingTo===d.last&&d.vars.animationLoop?d.setProps(a,"jumpEnd"):d.currentSlide===d.last&&0===d.animatingTo&&d.vars.animationLoop&&d.setProps(a,"jumpStart")),d.animating=!1,d.currentSlide=d.animatingTo,d.vars.after(d)},d.animateSlides=function(){!d.animating&&q&&d.flexAnimate(d.getTarget("next"))},d.pause=function(){clearInterval(d.animatedSlides),d.animatedSlides=null,d.playing=!1,d.vars.pausePlay&&p.pausePlay.update("play"),d.syncExists&&p.sync("pause")},d.play=function(){d.playing&&clearInterval(d.animatedSlides),d.animatedSlides=d.animatedSlides||setInterval(d.animateSlides,d.vars.slideshowSpeed),d.started=d.playing=!0,d.vars.pausePlay&&p.pausePlay.update("pause"),d.syncExists&&p.sync("play")},d.stop=function(){d.pause(),d.stopped=!0},d.canAdvance=function(a,b){var c=o?d.pagingCount-1:d.last;return b?!0:o&&d.currentItem===d.count-1&&0===a&&"prev"===d.direction?!0:o&&0===d.currentItem&&a===d.pagingCount-1&&"next"!==d.direction?!1:a!==d.currentSlide||o?d.vars.animationLoop?!0:d.atEnd&&0===d.currentSlide&&a===c&&"next"!==d.direction?!1:d.atEnd&&d.currentSlide===c&&0===a&&"next"===d.direction?!1:!0:!1},d.getTarget=function(a){return d.direction=a,"next"===a?d.currentSlide===d.last?0:d.currentSlide+1:0===d.currentSlide?d.last:d.currentSlide-1},d.setProps=function(a,b,c){var e=function(){var c=a?a:(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo,e=function(){if(m)return"setTouch"===b?a:l&&d.animatingTo===d.last?0:l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:d.animatingTo===d.last?d.limit:c;switch(b){case"setTotal":return l?(d.count-1-d.currentSlide+d.cloneOffset)*a:(d.currentSlide+d.cloneOffset)*a;case"setTouch":return l?a:a;case"jumpEnd":return l?a:d.count*a;case"jumpStart":return l?d.count*a:a;default:return a}}();return-1*e+"px"}();d.transitions&&(e=k?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",c=void 0!==c?c/1e3+"s":"0s",d.container.css("-"+d.pfx+"-transition-duration",c),d.container.css("transition-duration",c)),d.args[d.prop]=e,(d.transitions||void 0===c)&&d.container.css(d.args),d.container.css("transform",e)},d.setup=function(b){if(n)d.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===b&&(h?d.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+d.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(d.currentSlide).css({opacity:1,zIndex:2}):d.slides.css({opacity:0,display:"block",zIndex:1}).eq(d.currentSlide).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing)),d.vars.smoothHeight&&p.smoothHeight();else{var c,e;"init"===b&&(d.viewport=a('<div class="'+f+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(d).append(d.container),d.cloneCount=0,d.cloneOffset=0,l&&(e=a.makeArray(d.slides).reverse(),d.slides=a(e),d.container.empty().append(d.slides))),d.vars.animationLoop&&!m&&(d.cloneCount=2,d.cloneOffset=1,"init"!==b&&d.container.find(".clone").remove(),p.uniqueID(d.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(d.container),p.uniqueID(d.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(d.container)),d.newSlides=a(d.vars.selector,d),c=l?d.count-1-d.currentSlide+d.cloneOffset:d.currentSlide+d.cloneOffset,k&&!m?(d.container.height(200*(d.count+d.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){d.newSlides.css({display:"block"}),d.doMath(),d.viewport.height(d.h),d.setProps(c*d.h,"init")},"init"===b?100:0)):(d.container.width(200*(d.count+d.cloneCount)+"%"),d.setProps(c*d.computedW,"init"),setTimeout(function(){d.doMath(),d.newSlides.css({width:d.computedW,"float":"left",display:"block"}),d.vars.smoothHeight&&p.smoothHeight()},"init"===b?100:0))}m||d.slides.removeClass(f+"active-slide").eq(d.currentSlide).addClass(f+"active-slide"),d.vars.init(d)},d.doMath=function(){var a=d.slides.first(),b=d.vars.itemMargin,c=d.vars.minItems,e=d.vars.maxItems;d.w=void 0===d.viewport?d.width():d.viewport.width(),d.h=a.height(),d.boxPadding=a.outerWidth()-a.width(),m?(d.itemT=d.vars.itemWidth+b,d.minW=c?c*d.itemT:d.w,d.maxW=e?e*d.itemT-b:d.w,d.itemW=d.minW>d.w?(d.w-b*(c-1))/c:d.maxW<d.w?(d.w-b*(e-1))/e:d.vars.itemWidth>d.w?d.w:d.vars.itemWidth,d.visible=Math.floor(d.w/(d.itemW+b)),d.move=d.vars.move>0&&d.vars.move<d.visible?d.vars.move:d.visible,d.pagingCount=Math.ceil((d.count-d.visible)/d.move+1),d.last=d.pagingCount-1,d.limit=1===d.pagingCount?0:d.vars.itemWidth>d.w?d.itemW*(d.count-1)+b*(d.count-1):(d.itemW+b)*d.count-d.w-b):(d.itemW=d.w,d.pagingCount=d.count,d.last=d.count-1),d.computedW=d.itemW-d.boxPadding},d.update=function(a,b){d.doMath(),m||(a<d.currentSlide?d.currentSlide+=1:a<=d.currentSlide&&0!==a&&(d.currentSlide-=1),d.animatingTo=d.currentSlide),d.vars.controlNav&&!d.manualControls&&("add"===b&&!m||d.pagingCount>d.controlNav.length?p.controlNav.update("add"):("remove"===b&&!m||d.pagingCount<d.controlNav.length)&&(m&&d.currentSlide>d.last&&(d.currentSlide-=1,d.animatingTo-=1),p.controlNav.update("remove",d.last))),d.vars.directionNav&&p.directionNav.update()},d.addSlide=function(b,c){var e=a(b);d.count+=1,d.last=d.count-1,k&&l?void 0!==c?d.slides.eq(d.count-c).after(e):d.container.prepend(e):void 0!==c?d.slides.eq(c).before(e):d.container.append(e),d.update(c,"add"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.added(d)},d.removeSlide=function(b){var c=isNaN(b)?d.slides.index(a(b)):b;d.count-=1,d.last=d.count-1,isNaN(b)?a(b,d.slides).remove():k&&l?d.slides.eq(d.last).remove():d.slides.eq(b).remove(),d.doMath(),d.update(c,"remove"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.removed(d)},d.destroy=function(){var b="."+d.vars.namespace;d.vars.controlNav&&d.controlNav.closest(b+"control-nav").remove(),d.vars.directionNav&&d.directionNav.closest(b+"direction-nav").remove(),d.vars.pausePlay&&d.pausePlay.closest(b+"pauseplay").remove(),d.find(".clone").remove(),d.unbind(d.vars.eventNamespace),"fade"!=d.vars.animation&&d.container.unwrap(),d.container.removeAttr("style"),d.container.unbind(d.vars.eventNamespace),d.slides.removeAttr("style"),d.slides.filter(b+"active-slide").removeClass(d.vars.namespace+"active-slide"),d.slides.unbind(d.vars.eventNamespace),a(document).unbind(d.vars.eventNamespace+"-"+d.id),a(window).unbind(d.vars.eventNamespace+"-"+d.id),d.stop(),d.removeData("flexslider")},p.init()},a(window).blur(function(a){focused=!1}).focus(function(a){focused=!0}),a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"&#xf104;",nextText:"&#xf105;",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},a.fn.flexslider=function(b){if(void 0===b&&(b={}),"object"==typeof b)return this.each(function(){var c=a(this),d=b.selector?b.selector:".slides > li",e=c.find(d);1===e.length&&b.allowOneSlide===!0||0===e.length?(e.fadeIn(400),b.start&&b.start(c)):void 0===c.data("flexslider")&&new a.flexslider(this,b)});var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"stop":c.stop();break;case"next":c.flexAnimate(c.getTarget("next"),!0);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),!0);break;case"destroy":c.destroy();break;default:"number"==typeof b&&c.flexAnimate(b,!0)}}}(jQuery),function(a,b,c,d){"use strict";function e(b,c){this.element=b,this.settings=a.extend({},g,c),this._defaults=g,this._name=f,this.geocoder=new google.maps.Geocoder,this.next_address=0,this.infowindow=new google.maps.InfoWindow,this.markers=[],this.query_sent=!1,this.last_cache_index="none",this.bounds=new google.maps.LatLngBounds,this.init()}var f="fusion_maps",g={addresses:{},address_pin:!0,animations:!0,delay:10,infobox_background_color:!1,infobox_styling:"default",infobox_text_color:!1,map_style:"default",map_type:"roadmap",marker_icon:!1,overlay_color:!1,overlay_color_hsl:{},pan_control:!0,show_address:!0,scale_control:!0,scrollwheel:!0,zoom:9,zoom_control:!0};a.extend(e.prototype,{init:function(){var b,d,e={zoom:this.settings.zoom,mapTypeId:this.settings.map_type,scrollwheel:this.settings.scrollwheel,scaleControl:this.settings.scale_control,panControl:this.settings.pan_control,zoomControl:this.settings.zoom_control},f=a(c).width()>640?!0:!1,g=this;this.settings.scrollwheel||(e.draggable=f),this.settings.address_pin||(this.settings.addresses=[this.settings.addresses[0]]),jQuery.each(this.settings.addresses,function(a){0==this.cache&&(g.last_cache_index=a)}),this.settings.addresses[0].coordinates&&(b=new google.maps.LatLng(this.settings.addresses[0].latitude,this.settings.addresses[0].longitude),e.center=b),this.map=new google.maps.Map(this.element,e),this.settings.overlay_color&&"custom"==this.settings.map_style&&(d=[{stylers:[{hue:this.settings.overlay_color},{lightness:2*this.settings.overlay_color_hsl.lum-100},{saturation:2*this.settings.overlay_color_hsl.sat-100}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road",elementType:"labels"}],this.map.setOptions({styles:d}));var h=google.maps.event.addListener(this.map,"bounds_changed",function(){var a=new google.maps.LatLng(g.settings.addresses[0].latitude,g.settings.addresses[0].longitude);g.map.setZoom(g.settings.zoom),g.map.setCenter(a),google.maps.event.removeListener(h)});this.next_geocode_request()},geocode_address:function(a,b){var c,d,e,f,g,h=this,i=!0;"object"==typeof a&&0==a.cache?(i=!1,a.coordinates===!0?(c=new google.maps.LatLng(a.latitude,a.longitude),d={latLng:c}):d={address:a.address},this.geocoder.geocode(d,function(d,e){var f,g,j;if(e==google.maps.GeocoderStatus.OK?(a.coordinates===!0?(j=c,f=jQuery.trim(a.latitude),g=jQuery.trim(a.longitude)):(j=d[0].geometry.location,f=j.lat(),g=j.lng()),h.settings.addresses[b].latitude=f,h.settings.addresses[b].longitude=g,a.coordinates===!0&&""===a.infobox_content&&(a.geocoded_address=d[0].formatted_address),1!=h.next_address||a.coordinates||h.map.setCenter(j),h.settings.address_pin&&h.create_marker(a,f,g),0==h.next_address&&h.map.setCenter(j)):e==google.maps.GeocoderStatus.OVER_QUERY_LIMIT&&(h.next_address--,h.settings.delay++),0==i&&0==h.query_sent&&h.last_cache_index==b){var k={action:"fusion_cache_map",addresses:h.settings.addresses,security:js_local_vars.admin_ajax_nonce};jQuery.post(js_local_vars.admin_ajax,k),h.query_sent=!0}h.next_geocode_request()})):"object"==typeof a&&1==a.cache&&(e=jQuery.trim(a.latitude),f=jQuery.trim(a.longitude),g=new google.maps.LatLng(e,f),a.coordinates===!0&&""===a.infobox_content&&(a.geocoded_address=a.geocoded_address),h.settings.address_pin&&h.create_marker(a,e,f),0==h.next_address&&h.map.setCenter(g),h.next_geocode_request())},create_marker:function(a,b,c,d){var e,f,g={position:new google.maps.LatLng(b,c),map:this.map};this.bounds.extend(g.position),a.infobox_content?e=a.infobox_content:(e=a.address,a.coordinates===!0&&a.geocoded_address&&(e=a.geocoded_address)),this.settings.animations&&(g.animation=google.maps.Animation.DROP),"custom"==this.settings.map_style&&"theme"==this.settings.marker_icon?g.icon=new google.maps.MarkerImage(a.marker,null,null,null,new google.maps.Size(37,55)):"custom"==this.settings.map_style&&a.marker&&(g.icon=a.marker),f=new google.maps.Marker(g),this.markers.push(f),this.create_infowindow(e,f),this.next_address>=this.settings.addresses.length&&this.map.fitBounds(this.bounds)},create_infowindow:function(a,b){var d,e,f,g=this;"custom"==this.settings.infobox_styling&&"custom"==this.settings.map_style?(e=c.createElement("div"),f={content:e,disableAutoPan:!0,
maxWidth:150,pixelOffset:new google.maps.Size(-125,10),zIndex:null,boxStyle:{background:"none",opacity:1,width:"250px"},closeBoxMargin:"2px 2px 2px 2px",closeBoxURL:"//www.google.com/intl/en_us/mapfiles/close.gif",infoBoxClearance:new google.maps.Size(1,1)},e.className="fusion-info-box",e.style.cssText="background-color:"+this.settings.infobox_background_color+";color:"+this.settings.infobox_text_color+";",e.innerHTML=a,d=new InfoBox(f),d.open(this.map,b),this.settings.show_address||d.close(this.map,b),google.maps.event.addListener(b,"click",function(){var a=d.getMap();null===a||"undefined"==typeof a?d.open(g.map,this):d.close(g.map,this)})):(d=new google.maps.InfoWindow({disableAutoPan:!0,content:a}),this.settings.show_address&&(d.show=!0,d.open(this.map,b)),google.maps.event.addListener(b,"click",function(){var a=d.getMap();null===a||"undefined"==typeof a?d.open(g.map,this):d.close(g.map,this)}))},next_geocode_request:function(){var a=this;a.next_address<a.settings.addresses.length&&setTimeout(function(){a.geocode_address(a.settings.addresses[a.next_address],a.next_address),a.next_address++},a.settings.delay)}}),a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))}),this}}(jQuery,window,document),function(a){a.fn.hoverFlow=function(b,c,d,e,f){if(-1==a.inArray(b,["mouseover","mouseenter","mouseout","mouseleave"]))return this;var g="object"==typeof d?d:{complete:f||!f&&e||a.isFunction(d)&&d,duration:d,easing:f&&e||e&&!a.isFunction(e)&&e};g.queue=!1;var h=g.complete;return g.complete=function(){a(this).dequeue(),a.isFunction(h)&&h.call(this)},this.each(function(){var d=a(this);"mouseover"==b||"mouseenter"==b?d.data("jQuery.hoverFlow",!0):d.removeData("jQuery.hoverFlow"),d.queue(function(){var a="mouseover"==b||"mouseenter"==b?void 0!==d.data("jQuery.hoverFlow"):void 0===d.data("jQuery.hoverFlow");a?d.animate(c,g):d.queue([])})})}}(jQuery),function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:7,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.abs(h-f)+Math.abs(i-g)<e.sensitivity?(a(c).off("mousemove.hoverIntent",j),c.hoverIntent_s=1,e.over.apply(c,[b])):(h=f,i=g,c.hoverIntent_t=setTimeout(function(){k(b,c)},e.interval),void 0)},l=function(a,b){return b.hoverIntent_t=clearTimeout(b.hoverIntent_t),b.hoverIntent_s=0,e.out.apply(b,[a])},m=function(b){var c=jQuery.extend({},b),d=this;d.hoverIntent_t&&(d.hoverIntent_t=clearTimeout(d.hoverIntent_t)),"mouseenter"==b.type?(h=c.pageX,i=c.pageY,a(d).on("mousemove.hoverIntent",j),1!=d.hoverIntent_s&&(d.hoverIntent_t=setTimeout(function(){k(c,d)},e.interval))):(a(d).off("mousemove.hoverIntent",j),1==d.hoverIntent_s&&(d.hoverIntent_t=setTimeout(function(){l(c,d)},e.timeout)))};return this.on({"mouseenter.hoverIntent":m,"mouseleave.hoverIntent":m},e.selector)}}(jQuery),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a,b){"use strict";a.infinitescroll=function(b,c,d){this.element=a(d),this._create(b,c)||(this.failed=!0)},a.infinitescroll.defaults={loading:{finished:b,finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2LRwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSHMzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2GiqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",msg:null,msgText:"<em>Loading the next set of posts...</em>",selector:null,speed:"fast",start:b},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,isBeyondMaxPage:!1,currPage:1},debug:!1,behavior:b,binder:a(window),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:b,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:b,path:b,prefill:!1,maxPage:b},a.infinitescroll.prototype={_binding:function(a){var c=this,d=c.options;return d.v="2.0b2.120520",d.behavior&&this["_binding_"+d.behavior]!==b?void this["_binding_"+d.behavior].call(this):"bind"!==a&&"unbind"!==a?(this._debug("Binding value  "+a+" not valid"),!1):("unbind"===a?this.options.binder.unbind("smartscroll.infscr."+c.options.infid):this.options.binder[a]("smartscroll.infscr."+c.options.infid,function(){c.scroll()}),void this._debug("Binding",a))},_create:function(c,d){var e=a.extend(!0,{},a.infinitescroll.defaults,c);this.options=e;var f=a(window),g=this;if(!g._validate(c))return!1;var h=a(e.nextSelector).attr("href");if(!h)return this._debug("Navigation selector not found"),!1;e.path=e.path||this._determinepath(h),e.contentSelector=e.contentSelector||this.element,e.loading.selector=e.loading.selector||e.contentSelector,e.loading.msg=e.loading.msg||a('<div id="infscr-loading"><img alt="Loading..." src="'+e.loading.img+'" /><div>'+e.loading.msgText+"</div></div>"),(new Image).src=e.loading.img,e.pixelsFromNavToBottom===b&&(e.pixelsFromNavToBottom=a(document).height()-a(e.navSelector).offset().top,this._debug("pixelsFromNavToBottom: "+e.pixelsFromNavToBottom));var i=this;return e.loading.start=e.loading.start||function(){a(e.navSelector).hide(),e.loading.msg.insertAfter(e.loading.selector).show(e.loading.speed,a.proxy(function(){this.beginAjax(e)},i))},e.loading.finished=e.loading.finished||function(){e.state.isBeyondMaxPage||e.loading.msg.fadeOut(e.loading.speed)},e.callback=function(c,g,h){e.behavior&&c["_callback_"+e.behavior]!==b&&c["_callback_"+e.behavior].call(a(e.contentSelector)[0],g,h),d&&d.call(a(e.contentSelector)[0],g,e,h),e.prefill&&f.bind("resize.infinite-scroll",c._prefill)},c.debug&&(!Function.prototype.bind||"object"!=typeof console&&"function"!=typeof console||"object"!=typeof console.log||["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.call(console[a],console)},Function.prototype.bind)),this._setup(),e.prefill&&this._prefill(),!0},_prefill:function(){function b(){return a(c.options.contentSelector).height()<=d.height()}var c=this,d=a(window);this._prefill=function(){b()&&c.scroll(),d.bind("resize.infinite-scroll",function(){b()&&(d.unbind("resize.infinite-scroll"),c.scroll())})},this._prefill()},_debug:function(){!0===this.options.debug&&("undefined"!=typeof console&&"function"==typeof console.log?1===Array.prototype.slice.call(arguments).length&&"string"==typeof Array.prototype.slice.call(arguments)[0]:Function.prototype.bind||"undefined"==typeof console||"object"!=typeof console.log||Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments)))},_determinepath:function(a){var c=this.options;if(c.behavior&&this["_determinepath_"+c.behavior]!==b)return this["_determinepath_"+c.behavior].call(this,a);if(c.pathParse)return this._debug("pathParse manual"),c.pathParse(a,this.options.state.currPage+1);if(a.match(/^(.*2?)\b2\b(.*?$)/))a=a.match(/^(.*2?)\b2\b(.*?$)/).slice(1);else if(a.match(/^(.*?)\b2\b(.*?$)/))a=a.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(a.match(/^(.*?)2(.*?$)/)){if(a.match(/^(.*?page=)2(\/.*|$)/))return a=a.match(/^(.*?page=)2(\/.*|$)/).slice(1);a=a.match(/^(.*?)2(.*?$)/).slice(1)}else{if(a.match(/^(.*?page=)1(\/.*|$)/))return a=a.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."),c.state.isInvalidPage=!0}return this._debug("determinePath",a),a},_error:function(a){var c=this.options;return c.behavior&&this["_error_"+c.behavior]!==b?void this["_error_"+c.behavior].call(this,a):("destroy"!==a&&"end"!==a&&(a="unknown"),this._debug("Error",a),("end"===a||c.state.isBeyondMaxPage)&&this._showdonemsg(),c.state.isDone=!0,c.state.currPage=1,c.state.isPaused=!1,c.state.isBeyondMaxPage=!1,void this._binding("unbind"))},_loadcallback:function(c,d,e){var f,g=this.options,h=this.options.callback,i=g.state.isDone?"done":g.appendCallback?"append":"no-append";if(g.behavior&&this["_loadcallback_"+g.behavior]!==b)return void this["_loadcallback_"+g.behavior].call(this,c,d,e);switch(i){case"done":return this._showdonemsg(),!1;case"no-append":if("html"===g.dataType&&(d="<div>"+d+"</div>",d=a(d).find(g.itemSelector)),0===d.length)return this._error("end");break;case"append":var j=c.children();if(0===j.length)return this._error("end");for(f=document.createDocumentFragment();c[0].firstChild;)f.appendChild(c[0].firstChild);this._debug("contentSelector",a(g.contentSelector)[0]),a(g.contentSelector)[0].appendChild(f),d=j.get()}if(g.loading.finished.call(a(g.contentSelector)[0],g),g.animate){var k=a(window).scrollTop()+a(g.loading.msg).height()+g.extraScrollPx+"px";a("html,body").animate({scrollTop:k},800,function(){g.state.isDuringAjax=!1})}g.animate||(g.state.isDuringAjax=!1),h(this,d,e),g.prefill&&this._prefill()},_nearbottom:function(){var c=this.options,d=0+a(document).height()-c.binder.scrollTop()-a(window).height();return c.behavior&&this["_nearbottom_"+c.behavior]!==b?this["_nearbottom_"+c.behavior].call(this):(this._debug("math:",d,c.pixelsFromNavToBottom),d-c.bufferPx<c.pixelsFromNavToBottom)},_pausing:function(a){var c=this.options;if(c.behavior&&this["_pausing_"+c.behavior]!==b)return void this["_pausing_"+c.behavior].call(this,a);switch("pause"!==a&&"resume"!==a&&null!==a&&this._debug("Invalid argument. Toggling pause value instead"),a=!a||"pause"!==a&&"resume"!==a?"toggle":a){case"pause":c.state.isPaused=!0;break;case"resume":c.state.isPaused=!1;break;case"toggle":c.state.isPaused=!c.state.isPaused}return this._debug("Paused",c.state.isPaused),!1},_setup:function(){var a=this.options;return a.behavior&&this["_setup_"+a.behavior]!==b?void this["_setup_"+a.behavior].call(this):(this._binding("bind"),!1)},_showdonemsg:function(){var c=this.options;return c.behavior&&this["_showdonemsg_"+c.behavior]!==b?void this["_showdonemsg_"+c.behavior].call(this):(c.loading.msg.find(".fusion-loading-spinner").hide().parent().find(".fusion-loading-msg").html(c.loading.finishedMsg).animate({opacity:1},2e3,function(){a(this).parent().fadeOut(c.loading.speed),a(".fusion-load-more-button").fadeOut(c.loading.speed)}),void c.errorCallback.call(a(c.contentSelector)[0],"done"))},_validate:function(b){for(var c in b)if(c.indexOf&&c.indexOf("Selector")>-1&&0===a(b[c]).length)return this._debug("Your "+c+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this.options.loading.finished(),this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(c){var d,e,f,g,h=this,i=c.path;if(c.state.currPage++,c.maxPage!==b&&c.state.currPage>c.maxPage)return c.state.isBeyondMaxPage=!0,void this.destroy();switch(d=a(a(c.contentSelector).is("table, tbody")?"<tbody/>":"<div/>"),e="function"==typeof i?i(c.state.currPage):i.join(c.state.currPage),h._debug("heading into ajax",e),f="html"===c.dataType||"json"===c.dataType?c.dataType:"html+callback",c.appendCallback&&"html"===c.dataType&&(f+="+callback"),f){case"html+callback":h._debug("Using HTML via .load() method"),d.load(e+" "+c.itemSelector,b,function(a){h._loadcallback(d,a,e)});break;case"html":h._debug("Using "+f.toUpperCase()+" via $.ajax() method"),a.ajax({url:e,dataType:c.dataType,complete:function(a,b){g="undefined"!=typeof a.isResolved?a.isResolved():"success"===b||"notmodified"===b,g?h._loadcallback(d,a.responseText,e):h._error("end")}});break;case"json":h._debug("Using "+f.toUpperCase()+" via $.ajax() method"),a.ajax({dataType:"json",type:"GET",url:e,success:function(a,f,i){if(g="undefined"!=typeof i.isResolved?i.isResolved():"success"===f||"notmodified"===f,c.appendCallback)if(c.template!==b){var j=c.template(a);d.append(j),g?h._loadcallback(d,j):h._error("end")}else h._debug("template must be defined."),h._error("end");else g?h._loadcallback(d,a,e):h._error("end")},error:function(){h._debug("JSON ajax request failed."),h._error("end")}})}},retrieve:function(c){c=c||null;var d=this,e=d.options;return e.behavior&&this["retrieve_"+e.behavior]!==b?void this["retrieve_"+e.behavior].call(this,c):e.state.isDestroyed?(this._debug("Instance is destroyed"),!1):(e.state.isDuringAjax=!0,void e.loading.start.call(a(e.contentSelector)[0],e))},scroll:function(){var a=this.options,c=a.state;return a.behavior&&this["scroll_"+a.behavior]!==b?void this["scroll_"+a.behavior].call(this):void(c.isDuringAjax||c.isInvalidPage||c.isDone||c.isDestroyed||c.isPaused||this._nearbottom()&&this.retrieve())},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))}},a.fn.infinitescroll=function(b,c){var d=typeof b;switch(d){case"string":var e=Array.prototype.slice.call(arguments,1);this.each(function(){var c=a.data(this,"infinitescroll");return c&&a.isFunction(c[b])&&"_"!==b.charAt(0)?void c[b].apply(c,e):!1});break;case"object":this.each(function(){var d=a.data(this,"infinitescroll");d?d.update(b):(d=new a.infinitescroll(b,c,this),d.failed||a.data(this,"infinitescroll",d))})}return this};var c,d=a.event;d.special.smartscroll={setup:function(){a(this).bind("scroll",d.special.smartscroll.handler)},teardown:function(){a(this).unbind("scroll",d.special.smartscroll.handler)},handler:function(b,d){var e=this,f=arguments;b.type="smartscroll",c&&clearTimeout(c),c=setTimeout(function(){a(e).trigger("smartscroll",f)},"execAsap"===d?0:100)}},a.fn.smartscroll=function(a){return a?this.bind("smartscroll",a):this.trigger("smartscroll",["execAsap"])}}),function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function e(a,b){var d=this,e=c(d);if(d.value==e.attr("placeholder")&&e.hasClass("placeholder"))if(e.data("placeholder-password")){if(e=e.hide().next().show().attr("id",e.removeAttr("id").data("placeholder-id")),a===!0)return e[0].value=b;e.focus()}else d.value="",e.removeClass("placeholder"),d==g()&&d.select()}function f(){var a,b=this,f=c(b),g=this.id;if(""==b.value){if("password"==b.type){if(!f.data("placeholder-textinput")){try{a=f.clone().attr({type:"text"})}catch(h){a=c("<input>").attr(c.extend(d(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",e),f.data({"placeholder-textinput":a,"placeholder-id":g}).before(a)}f=f.removeAttr("id").hide().prev().attr("id",g).show()}f.addClass("placeholder"),f[0].value=f.attr("placeholder")}else f.removeClass("placeholder")}function g(){try{return b.activeElement}catch(a){}}var h,i,j="placeholder"in b.createElement("input"),k="placeholder"in b.createElement("textarea"),l=c.fn,m=c.valHooks,n=c.propHooks;j&&k?(i=l.placeholder=function(){return this},i.input=i.textarea=!0):(i=l.placeholder=function(){var a=this;return a.filter((j?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},i.input=j,i.textarea=k,h={get:function(a){var b=c(a),d=b.data("placeholder-password");return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),h=d.data("placeholder-password");return h?h[0].value=b:d.data("placeholder-enabled")?(""==b?(a.value=b,a!=g()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b,d):a.value=b}},j||(m.input=h,n.value=h),k||(m.textarea=h,n.value=h),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery),function(a){a.fn.UItoTop=function(b){var c={text:"",min:200,inDelay:600,outDelay:400,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:1200,easingType:"linear"},d=a.extend(c,b),e="#"+d.containerID,f="#"+d.containerHoverID;a("body").append('<div class="to-top-container"><a href="#" id="'+d.containerID+'"><span class="screen-reader-text">'+toTopscreenReaderText.label+"</span>"+d.text+"</a></div>"),a(e).hide().on("click.UItoTop",function(){return a("html, body").animate({scrollTop:0},d.scrollSpeed,d.easingType),a("#"+d.containerHoverID,this).stop().animate({opacity:0},d.inDelay,d.easingType),!1}).prepend('<span id="'+d.containerHoverID+'"></span>').hover(function(){a(f,this).stop().animate({opacity:1},600,"linear")},function(){a(f,this).stop().animate({opacity:0},700,"linear")}),a(window).scroll(function(){var b=a(window).scrollTop();"undefined"==typeof document.body.style.maxHeight&&a(e).css({position:"absolute",top:b+a(window).height()-50}),b>d.min?a(e).fadeIn(d.inDelay):a(e).fadeOut(d.Outdelay)})}}(jQuery),function(){var a=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1},b=[].slice;!function(a,b){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(c){return b(c,a)}):b(a.jQuery,a)}(this,function(c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;return e=c(d),l=a.call(d,"ontouchstart")>=0,h={horizontal:{},vertical:{}},i=1,k={},j="waypoints-context-id",o="resize.waypoints",p="scroll.waypoints",q=1,r="waypoints-waypoint-ids",s="waypoint",t="waypoints",f=function(){function a(a){var b=this;this.$element=a,this.element=a[0],this.didResize=!1,this.didScroll=!1,this.id="context"+i++,this.oldScroll={x:a.scrollLeft(),y:a.scrollTop()},this.waypoints={horizontal:{},vertical:{}},a.data(j,this.id),k[this.id]=this,a.bind(p,function(){var a;return b.didScroll||l?void 0:(b.didScroll=!0,a=function(){return b.doScroll(),b.didScroll=!1},d.setTimeout(a,c[t].settings.scrollThrottle))}),a.bind(o,function(){var a;return b.didResize?void 0:(b.didResize=!0,a=function(){return c[t]("refresh"),b.didResize=!1},d.setTimeout(a,c[t].settings.resizeThrottle))})}return a.prototype.doScroll=function(){var a,b=this;return a={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!l||a.vertical.oldScroll&&a.vertical.newScroll||c[t]("refresh"),c.each(a,function(a,d){var e,f,g;return g=[],f=d.newScroll>d.oldScroll,e=f?d.forward:d.backward,c.each(b.waypoints[a],function(a,b){var c,e;return d.oldScroll<(c=b.offset)&&c<=d.newScroll?g.push(b):d.newScroll<(e=b.offset)&&e<=d.oldScroll?g.push(b):void 0}),g.sort(function(a,b){return a.offset-b.offset}),f||g.reverse(),c.each(g,function(a,b){return b.options.continuous||a===g.length-1?b.trigger([e]):void 0})}),this.oldScroll={x:a.horizontal.newScroll,y:a.vertical.newScroll}},a.prototype.refresh=function(){var a,b,d,e=this;return d=c.isWindow(this.element),b=this.$element.offset(),this.doScroll(),a={horizontal:{contextOffset:d?0:b.left,contextScroll:d?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:d?0:b.top,contextScroll:d?0:this.oldScroll.y,contextDimension:d?c[t]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},c.each(a,function(a,b){return c.each(e.waypoints[a],function(a,d){var e,f,g,h,i;return e=d.options.offset,g=d.offset,f=c.isWindow(d.element)?0:d.$element.offset()[b.offsetProp],c.isFunction(e)?e=e.apply(d.element):"string"==typeof e&&(e=parseFloat(e),d.options.offset.indexOf("%")>-1&&(e=Math.ceil(b.contextDimension*e/100))),d.offset=f-b.contextOffset+b.contextScroll-e,d.options.onlyOnScroll&&null!=g||!d.enabled?void 0:null!==g&&g<(h=b.oldScroll)&&h<=d.offset?d.trigger([b.backward]):null!==g&&g>(i=b.oldScroll)&&i>=d.offset?d.trigger([b.forward]):null===g&&b.oldScroll>=d.offset?d.trigger([b.forward]):void 0})})},a.prototype.checkEmpty=function(){return c.isEmptyObject(this.waypoints.horizontal)&&c.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([o,p].join(" ")),delete k[this.id]):void 0},a}(),g=function(){function a(a,b,d){var e,f;d=c.extend({},c.fn[s].defaults,d),"bottom-in-view"===d.offset&&(d.offset=function(){var a;return a=c[t]("viewportHeight"),c.isWindow(b.element)||(a=b.$element.height()),a-c(this).outerHeight()}),this.$element=a,this.element=a[0],this.axis=d.horizontal?"horizontal":"vertical",this.callback=d.handler,this.context=b,this.enabled=d.enabled,this.id="waypoints"+q++,this.offset=null,this.options=d,b.waypoints[this.axis][this.id]=this,h[this.axis][this.id]=this,e=null!=(f=a.data(r))?f:[],e.push(this.id),a.data(r,e)}return a.prototype.trigger=function(a){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,a),this.options.triggerOnce?this.destroy():void 0):void 0},a.prototype.disable=function(){return this.enabled=!1},a.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},a.prototype.destroy=function(){return delete h[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},a.getWaypointsByElement=function(a){var b,d;return(d=c(a).data(r))?(b=c.extend({},h.horizontal,h.vertical),c.map(d,function(a){return b[a]})):[]},a}(),n={init:function(a,b){var d;return null==b&&(b={}),null==(d=b.handler)&&(b.handler=a),this.each(function(){var a,d,e,h;return a=c(this),e=null!=(h=b.context)?h:c.fn[s].defaults.context,c.isWindow(e)||(e=a.closest(e)),
e=c(e),d=k[e.data(j)],d||(d=new f(e)),new g(a,d,b)}),c[t]("refresh"),this},disable:function(){return n._invoke(this,"disable")},enable:function(){return n._invoke(this,"enable")},destroy:function(){return n._invoke(this,"destroy")},prev:function(a,b){return n._traverse.call(this,a,b,function(a,b,c){return b>0?a.push(c[b-1]):void 0})},next:function(a,b){return n._traverse.call(this,a,b,function(a,b,c){return b<c.length-1?a.push(c[b+1]):void 0})},_traverse:function(a,b,e){var f,g;return null==a&&(a="vertical"),null==b&&(b=d),g=m.aggregate(b),f=[],this.each(function(){var b;return b=c.inArray(this,g[a]),e(f,b,g[a])}),this.pushStack(f)},_invoke:function(a,b){return a.each(function(){var a;return a=g.getWaypointsByElement(this),c.each(a,function(a,c){return c[b](),!0})}),this}},c.fn[s]=function(){var a,d;return d=arguments[0],a=2<=arguments.length?b.call(arguments,1):[],n[d]?n[d].apply(this,a):c.isFunction(d)?n.init.apply(this,arguments):c.isPlainObject(d)?n.init.apply(this,[null,d]):d?c.error("The "+d+" method does not exist in jQuery Waypoints."):c.error("jQuery Waypoints needs a callback function or handler option.")},c.fn[s].defaults={context:d,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},m={refresh:function(){return c.each(k,function(a,b){return b.refresh()})},viewportHeight:function(){var a;return null!=(a=d.innerHeight)?a:e.height()},aggregate:function(a){var b,d,e;return b=h,a&&(b=null!=(e=k[c(a).data(j)])?e.waypoints:void 0),b?(d={horizontal:[],vertical:[]},c.each(d,function(a,e){return c.each(b[a],function(a,b){return e.push(b)}),e.sort(function(a,b){return a.offset-b.offset}),d[a]=c.map(e,function(a){return a.element}),d[a]=c.unique(d[a])}),d):[]},above:function(a){return null==a&&(a=d),m._filter(a,"vertical",function(a,b){return b.offset<=a.oldScroll.y})},below:function(a){return null==a&&(a=d),m._filter(a,"vertical",function(a,b){return b.offset>a.oldScroll.y})},left:function(a){return null==a&&(a=d),m._filter(a,"horizontal",function(a,b){return b.offset<=a.oldScroll.x})},right:function(a){return null==a&&(a=d),m._filter(a,"horizontal",function(a,b){return b.offset>a.oldScroll.x})},enable:function(){return m._invoke("enable")},disable:function(){return m._invoke("disable")},destroy:function(){return m._invoke("destroy")},extendFn:function(a,b){return n[a]=b},_invoke:function(a){var b;return b=c.extend({},h.vertical,h.horizontal),c.each(b,function(b,c){return c[a](),!0})},_filter:function(a,b,d){var e,f;return(e=k[c(a).data(j)])?(f=[],c.each(e.waypoints[b],function(a,b){return d(e,b)?f.push(b):void 0}),f.sort(function(a,b){return a.offset-b.offset}),c.map(f,function(a){return a.element})):[]}},c[t]=function(){var a,c;return c=arguments[0],a=2<=arguments.length?b.call(arguments,1):[],m[c]?m[c].apply(null,a):m.aggregate.call(null,c)},c[t].settings={resizeThrottle:100,scrollThrottle:30},e.load(function(){return c[t]("refresh")})})}.call(this),function(a,b,c){function d(a,b){return typeof a===b}function e(){var a,b,c,e,f,g,h;for(var i in u)if(u.hasOwnProperty(i)){if(a=[],b=u[i],b.name&&(a.push(b.name.toLowerCase()),b.options&&b.options.aliases&&b.options.aliases.length))for(c=0;c<b.options.aliases.length;c++)a.push(b.options.aliases[c].toLowerCase());for(e=d(b.fn,"function")?b.fn():b.fn,f=0;f<a.length;f++)g=a[f],h=g.split("."),1===h.length?w[h[0]]=e:(!w[h[0]]||w[h[0]]instanceof Boolean||(w[h[0]]=new Boolean(w[h[0]])),w[h[0]][h[1]]=e),t.push((e?"":"no-")+h.join("-"))}}function f(a){var b=y.className,c=w._config.classPrefix||"";if(z&&(b=b.baseVal),w._config.enableJSClass){var d=new RegExp("(^|\\s)"+c+"no-js(\\s|$)");b=b.replace(d,"$1"+c+"js$2")}w._config.enableClasses&&(b+=" "+c+a.join(" "+c),z?y.className.baseVal=b:y.className=b)}function g(a,b){if("object"==typeof a)for(var c in a)C(a,c)&&g(c,a[c]);else{a=a.toLowerCase();var d=a.split("."),e=w[d[0]];if(2==d.length&&(e=e[d[1]]),"undefined"!=typeof e)return w;b="function"==typeof b?b():b,1==d.length?w[d[0]]=b:(!w[d[0]]||w[d[0]]instanceof Boolean||(w[d[0]]=new Boolean(w[d[0]])),w[d[0]][d[1]]=b),f([(b&&0!=b?"":"no-")+d.join("-")]),w._trigger(a,b)}return w}function h(){return"function"!=typeof b.createElement?b.createElement(arguments[0]):z?b.createElementNS.call(b,"http://www.w3.org/2000/svg",arguments[0]):b.createElement.apply(b,arguments)}function i(a){return a.replace(/([a-z])-([a-z])/g,function(a,b,c){return b+c.toUpperCase()}).replace(/^-/,"")}function j(a,b){return!!~(""+a).indexOf(b)}function k(){var a=b.body;return a||(a=h(z?"svg":"body"),a.fake=!0),a}function l(a,c,d,e){var f,g,i,j,l="modernizr",m=h("div"),n=k();if(parseInt(d,10))for(;d--;)i=h("div"),i.id=e?e[d]:l+(d+1),m.appendChild(i);return f=h("style"),f.type="text/css",f.id="s"+l,(n.fake?n:m).appendChild(f),n.appendChild(m),f.styleSheet?f.styleSheet.cssText=a:f.appendChild(b.createTextNode(a)),m.id=l,n.fake&&(n.style.background="",n.style.overflow="hidden",j=y.style.overflow,y.style.overflow="hidden",y.appendChild(n)),g=c(m,a),n.fake?(n.parentNode.removeChild(n),y.style.overflow=j,y.offsetHeight):m.parentNode.removeChild(m),!!g}function m(a,b){return function(){return a.apply(b,arguments)}}function n(a,b,c){var e;for(var f in a)if(a[f]in b)return c===!1?a[f]:(e=b[a[f]],d(e,"function")?m(e,c||b):e);return!1}function o(a){return a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(b,d){var e=b.length;if("CSS"in a&&"supports"in a.CSS){for(;e--;)if(a.CSS.supports(o(b[e]),d))return!0;return!1}if("CSSSupportsRule"in a){for(var f=[];e--;)f.push("("+o(b[e])+":"+d+")");return f=f.join(" or "),l("@supports ("+f+") { #modernizr { position: absolute; } }",function(a){return"absolute"==getComputedStyle(a,null).position})}return c}function q(a,b,e,f){function g(){l&&(delete S.style,delete S.modElem)}if(f=d(f,"undefined")?!1:f,!d(e,"undefined")){var k=p(a,e);if(!d(k,"undefined"))return k}for(var l,m,n,o,q,r=["modernizr","tspan"];!S.style;)l=!0,S.modElem=h(r.shift()),S.style=S.modElem.style;for(n=a.length,m=0;n>m;m++)if(o=a[m],q=S.style[o],j(o,"-")&&(o=i(o)),S.style[o]!==c){if(f||d(e,"undefined"))return g(),"pfx"==b?o:!0;try{S.style[o]=e}catch(s){}if(S.style[o]!=q)return g(),"pfx"==b?o:!0}return g(),!1}function r(a,b,c,e,f){var g=a.charAt(0).toUpperCase()+a.slice(1),h=(a+" "+P.join(g+" ")+g).split(" ");return d(b,"string")||d(b,"undefined")?q(h,b,e,f):(h=(a+" "+B.join(g+" ")+g).split(" "),n(h,b,c))}function s(a,b,d){return r(a,c,c,b,d)}var t=[],u=[],v={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(a,b){var c=this;setTimeout(function(){b(c[a])},0)},addTest:function(a,b,c){u.push({name:a,fn:b,options:c})},addAsyncTest:function(a){u.push({name:null,fn:a})}},w=function(){};w.prototype=v,w=new w,w.addTest("applicationcache","applicationCache"in a),w.addTest("geolocation","geolocation"in navigator),w.addTest("history",function(){var b=navigator.userAgent;return-1===b.indexOf("Android 2.")&&-1===b.indexOf("Android 4.0")||-1===b.indexOf("Mobile Safari")||-1!==b.indexOf("Chrome")||-1!==b.indexOf("Windows Phone")?a.history&&"pushState"in a.history:!1}),w.addTest("postmessage","postMessage"in a),w.addTest("websockets","WebSocket"in a&&2===a.WebSocket.CLOSING),w.addTest("localstorage",function(){var a="modernizr";try{return localStorage.setItem(a,a),localStorage.removeItem(a),!0}catch(b){return!1}}),w.addTest("sessionstorage",function(){var a="modernizr";try{return sessionStorage.setItem(a,a),sessionStorage.removeItem(a),!0}catch(b){return!1}}),w.addTest("websqldatabase","openDatabase"in a),w.addTest("webworkers","Worker"in a);var x=v._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];v._prefixes=x;var y=b.documentElement,z="svg"===y.nodeName.toLowerCase(),A="Moz O ms Webkit",B=v._config.usePrefixes?A.toLowerCase().split(" "):[];v._domPrefixes=B;var C;!function(){var a={}.hasOwnProperty;C=d(a,"undefined")||d(a.call,"undefined")?function(a,b){return b in a&&d(a.constructor.prototype[b],"undefined")}:function(b,c){return a.call(b,c)}}(),v._l={},v.on=function(a,b){this._l[a]||(this._l[a]=[]),this._l[a].push(b),w.hasOwnProperty(a)&&setTimeout(function(){w._trigger(a,w[a])},0)},v._trigger=function(a,b){if(this._l[a]){var c=this._l[a];setTimeout(function(){var a,d;for(a=0;a<c.length;a++)(d=c[a])(b)},0),delete this._l[a]}},w._q.push(function(){v.addTest=g});var D=function(){function a(a,b){var e;return a?(b&&"string"!=typeof b||(b=h(b||"div")),a="on"+a,e=a in b,!e&&d&&(b.setAttribute||(b=h("div")),b.setAttribute(a,""),e="function"==typeof b[a],b[a]!==c&&(b[a]=c),b.removeAttribute(a)),e):!1}var d=!("onblur"in b.documentElement);return a}();v.hasEvent=D,w.addTest("hashchange",function(){return D("hashchange",a)===!1?!1:b.documentMode===c||b.documentMode>7}),w.addTest("audio",function(){var a=h("audio"),b=!1;try{(b=!!a.canPlayType)&&(b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),b.mp3=a.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),b.opus=a.canPlayType('audio/ogg; codecs="opus"')||a.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),b.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),b.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(c){}return b}),w.addTest("canvas",function(){var a=h("canvas");return!(!a.getContext||!a.getContext("2d"))}),w.addTest("canvastext",function(){return w.canvas===!1?!1:"function"==typeof h("canvas").getContext("2d").fillText}),w.addTest("video",function(){var a=h("video"),b=!1;try{(b=!!a.canPlayType)&&(b=new Boolean(b),b.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),b.vp9=a.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),b.hls=a.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(c){}return b}),w.addTest("webgl",function(){var b=h("canvas"),c="probablySupportsContext"in b?"probablySupportsContext":"supportsContext";return c in b?b[c]("webgl")||b[c]("experimental-webgl"):"WebGLRenderingContext"in a}),w.addTest("cssgradients",function(){for(var a,b="background-image:",c="gradient(linear,left top,right bottom,from(#9f9),to(white));",d="",e=0,f=x.length-1;f>e;e++)a=0===e?"to ":"",d+=b+x[e]+"linear-gradient("+a+"left top, #9f9, white);";w._config.usePrefixes&&(d+=b+"-webkit-"+c);var g=h("a"),i=g.style;return i.cssText=d,(""+i.backgroundImage).indexOf("gradient")>-1}),w.addTest("multiplebgs",function(){var a=h("a").style;return a.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(a.background)}),w.addTest("opacity",function(){var a=h("a").style;return a.cssText=x.join("opacity:.55;"),/^0.55$/.test(a.opacity)}),w.addTest("rgba",function(){var a=h("a").style;return a.cssText="background-color:rgba(150,255,150,.5)",(""+a.backgroundColor).indexOf("rgba")>-1}),w.addTest("inlinesvg",function(){var a=h("div");return a.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&a.firstChild&&a.firstChild.namespaceURI)});var E=h("input"),F="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),G={};w.input=function(b){for(var c=0,d=b.length;d>c;c++)G[b[c]]=!!(b[c]in E);return G.list&&(G.list=!(!h("datalist")||!a.HTMLDataListElement)),G}(F);var H="search tel url email datetime date month week time datetime-local number range color".split(" "),I={};w.inputtypes=function(a){for(var d,e,f,g=a.length,h="1)",i=0;g>i;i++)E.setAttribute("type",d=a[i]),f="text"!==E.type&&"style"in E,f&&(E.value=h,E.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(d)&&E.style.WebkitAppearance!==c?(y.appendChild(E),e=b.defaultView,f=e.getComputedStyle&&"textfield"!==e.getComputedStyle(E,null).WebkitAppearance&&0!==E.offsetHeight,y.removeChild(E)):/^(search|tel)$/.test(d)||(f=/^(url|email)$/.test(d)?E.checkValidity&&E.checkValidity()===!1:E.value!=h)),I[a[i]]=!!f;return I}(H),w.addTest("hsla",function(){var a=h("a").style;return a.cssText="background-color:hsla(120,40%,100%,.5)",j(a.backgroundColor,"rgba")||j(a.backgroundColor,"hsla")});var J="CSS"in a&&"supports"in a.CSS,K="supportsCSS"in a;w.addTest("supports",J||K);var L={}.toString;w.addTest("svgclippaths",function(){return!!b.createElementNS&&/SVGClipPath/.test(L.call(b.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),w.addTest("smil",function(){return!!b.createElementNS&&/SVGAnimate/.test(L.call(b.createElementNS("http://www.w3.org/2000/svg","animate")))});var M=function(){var b=a.matchMedia||a.msMatchMedia;return b?function(a){var c=b(a);return c&&c.matches||!1}:function(b){var c=!1;return l("@media "+b+" { #modernizr { position: absolute; } }",function(b){c="absolute"==(a.getComputedStyle?a.getComputedStyle(b,null):b.currentStyle).position}),c}}();v.mq=M;var N=v.testStyles=l;w.addTest("touchevents",function(){var c;if("ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch)c=!0;else{var d=["@media (",x.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");N(d,function(a){c=9===a.offsetTop})}return c});var O=function(){var a=navigator.userAgent,b=a.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),c=a.match(/w(eb)?osbrowser/gi),d=a.match(/windows phone/gi)&&a.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,e=533>b&&a.match(/android/gi);return c||e||d}();O?w.addTest("fontface",!1):N('@font-face {font-family:"font";src:url("https://")}',function(a,c){var d=b.getElementById("smodernizr"),e=d.sheet||d.styleSheet,f=e?e.cssRules&&e.cssRules[0]?e.cssRules[0].cssText:e.cssText||"":"",g=/src/i.test(f)&&0===f.indexOf(c.split(" ")[0]);w.addTest("fontface",g)}),N('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(a){w.addTest("generatedcontent",a.offsetHeight>=7)});var P=v._config.usePrefixes?A.split(" "):[];v._cssomPrefixes=P;var Q=function(b){var d,e=x.length,f=a.CSSRule;if("undefined"==typeof f)return c;if(!b)return!1;if(b=b.replace(/^@/,""),d=b.replace(/-/g,"_").toUpperCase()+"_RULE",d in f)return"@"+b;for(var g=0;e>g;g++){var h=x[g],i=h.toUpperCase()+"_"+d;if(i in f)return"@-"+h.toLowerCase()+"-"+b}return!1};v.atRule=Q;var R={elem:h("modernizr")};w._q.push(function(){delete R.elem});var S={style:R.elem.style};w._q.unshift(function(){delete S.style});var T=v.testProp=function(a,b,d){return q([a],c,b,d)};w.addTest("textshadow",T("textShadow","1px 1px")),v.testAllProps=r;var U,V=v.prefixed=function(a,b,c){return 0===a.indexOf("@")?Q(a):(-1!=a.indexOf("-")&&(a=i(a)),b?r(a,b,c):r(a,"pfx"))};try{U=V("indexedDB",a)}catch(W){}w.addTest("indexeddb",!!U),U&&w.addTest("indexeddb.deletedatabase","deleteDatabase"in U),v.testAllProps=s,w.addTest("cssanimations",s("animationName","a",!0)),w.addTest("backgroundsize",s("backgroundSize","100%",!0)),w.addTest("borderimage",s("borderImage","url() 1",!0)),w.addTest("borderradius",s("borderRadius","0px",!0)),w.addTest("boxshadow",s("boxShadow","1px 1px",!0)),w.addTest("flexbox",s("flexBasis","1px",!0)),w.addTest("cssreflections",s("boxReflect","above",!0)),w.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&s("transform","scale(1)",!0)}),w.addTest("csstransforms3d",function(){var a=!!s("perspective","1px",!0),b=w._config.usePrefixes;if(a&&(!b||"webkitPerspective"in y.style)){var c,d="#modernizr{width:0;height:0}";w.supports?c="@supports (perspective: 1px)":(c="@media (transform-3d)",b&&(c+=",(-webkit-transform-3d)")),c+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",N(d+c,function(b){a=7===b.offsetWidth&&18===b.offsetHeight})}return a}),w.addTest("csstransitions",s("transition","all",!0)),e(),f(t),delete v.addTest,delete v.addAsyncTest;for(var X=0;X<w._q.length;X++)w._q[X]();a.Modernizr=w}(window,document),function(a,b,c){for(var d,e=0,f=function(a){d&&(b.requestAnimationFrame(f,a),jQuery.fx.tick())},g=["ms","moz","webkit","o"],h=0,i=g.length;i>h&&!b.requestAnimationFrame;++h)b.requestAnimationFrame=b[g[h]+"RequestAnimationFrame"],b.cancelAnimationFrame=b[g[h]+"CancelAnimationFrame"]||b[g[h]+"CancelRequestAnimationFrame"];b.requestAnimationFrame||(b.requestAnimationFrame=function(a,c){var d=(new Date).getTime(),f=d-e,g=Math.max(0,16-f),h=b.setTimeout(function(){a(d+g)},g);return e=d+g,h}),b.cancelAnimationFrame||(b.cancelAnimationFrame=function(a){clearTimeout(a)}),jQuery.fx.timer=function(a){a()&&jQuery.timers.push(a)&&!d&&(d=!0,f(a.elem))},jQuery.fx.stop=function(){d=!1}}(jQuery,this),function(a){function b(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=0,g=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),g=e,void 0!==c.axis&&c.axis===c.HORIZONTAL_AXIS&&(g=0,f=-1*e),void 0!==c.wheelDeltaY&&(g=c.wheelDeltaY/120),void 0!==c.wheelDeltaX&&(f=-1*c.wheelDeltaX/120),d.unshift(b,e,f,g),(a.event.dispatch||a.event.handle).apply(this,d)}var c=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var d=c.length;d;)a.event.fixHooks[c[--d]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],b,!1);else this.onmousewheel=b},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],b,!1);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),function($,window,undefined){function getPixel(a,b){return parseInt(a.css(b),10)||0}function within(a,b,c){return b>a?b:a>c?c:a}function getViewport(){var a=window,b="inner";return"innerWidth"in window||(b="client",a=document.documentElement||document.body),{width:a[b+"Width"],height:a[b+"Height"]}}function removeHash(){history&&history.pushState&&history.pushState("",document.title,window.location.pathname+window.location.search)}function doAjax(a,b){var a="http://ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A");$.ajax({url:a,dataType:"jsonp"}),iLCallback=function(a){b.call(this,a)}}function findImageInElement(a){var b=$("*",a),c=new Array;return b.each(function(){var a="",b=this;if("none"!=$(b).css("background-image")?a=$(b).css("background-image"):"undefined"!=typeof $(b).attr("src")&&"img"==b.nodeName.toLowerCase()&&(a=$(b).attr("src")),-1==a.indexOf("gradient")){a=a.replace(/url\(\"/g,""),a=a.replace(/url\(/g,""),a=a.replace(/\"\)/g,""),a=a.replace(/\)/g,"");for(var d=a.split(","),e=0;e<d.length;e++)if(d[e].length>0&&-1==$.inArray(d[e],c)){var f="";browser.msie&&browser.version<9&&(f="?"+floor(3e3*random())),c.push(d[e]+f)}}}),c}function getExtension(a){var b=a?a.split(".").pop().toLowerCase():"",c=-1!==b.indexOf("?")?"?"+b.split("?").pop():"";return b.replace(c,"")}function getTypeByExtension(a){var b,c=getExtension(a);return b=-1!==extensions.image.indexOf(c)?"image":-1!==extensions.flash.indexOf(c)?"flash":-1!==extensions.video.indexOf(c)?"video":"iframe"}function percentToValue(a,b){return parseInt(b/100*a)}function parseURI(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function absolutizeURI(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=parseURI(b||""),a=parseURI(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null}function version_compare(a,b,c){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var d=0,e=0,f=0,g={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},h=function(a){return a=(""+a).replace(/[_\-+]/g,"."),a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),a.length?a.split("."):[-8]},i=function(a){return a?isNaN(a)?g[a]||-7:parseInt(a,10):0};for(a=h(a),b=h(b),e=max(a.length,b.length),d=0;e>d;d++)if(a[d]!=b[d]){if(a[d]=i(a[d]),b[d]=i(b[d]),a[d]<b[d]){f=-1;break}if(a[d]>b[d]){f=1;break}}if(!c)return f;switch(c){case">":case"gt":return f>0;case">=":case"ge":return f>=0;case"<=":case"le":return 0>=f;case"==":case"=":case"eq":return 0===f;case"<>":case"!=":case"ne":return 0!==f;case"":case"<":case"lt":return 0>f;default:return null}}function getScrollXY(){var a=0,b=0;return"number"==typeof window.pageYOffset?(b=window.pageYOffset,a=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(b=document.body.scrollTop,a=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft),{x:a,y:b}}function AC_QuickTimeVersion(){return gQTGeneratorVersion}function _QTComplain(a,b){b=b.replace("%%",a),alert(b)}function _QTAddAttribute(a,b,c){var d;return d=gTagAttrs[a+b],null==d&&(d=gTagAttrs[b]),null!=d?(0==b.indexOf(a)&&null==c&&(c=b.substring(a.length)),null==c&&(c=b),c+'="'+d+'" '):""}function _QTAddObjectAttr(a,b){return 0==a.indexOf("emb#")?"":(0==a.indexOf("obj#")&&null==b&&(b=a.substring(4)),_QTAddAttribute("obj#",a,b))}function _QTAddEmbedAttr(a,b){return 0==a.indexOf("obj#")?"":(0==a.indexOf("emb#")&&null==b&&(b=a.substring(4)),_QTAddAttribute("emb#",a,b))}function _QTAddObjectParam(a,b){var c,d="",e=b?" />":">";return-1==a.indexOf("emb#")&&(c=gTagAttrs["obj#"+a],null==c&&(c=gTagAttrs[a]),0==a.indexOf("obj#")&&(a=a.substring(4)),null!=c&&(d='  <param name="'+a+'" value="'+c+'"'+e+"\n")),d}function _QTDeleteTagAttrs(){for(var a=0;a<arguments.length;a++){var b=arguments[a];delete gTagAttrs[b],delete gTagAttrs["emb#"+b],delete gTagAttrs["obj#"+b]}}function _QTGenerate(a,b,c){if(4>c.length||0!=c.length%2)return _QTComplain(a,gArgCountErr),"";gTagAttrs=[],gTagAttrs.src=c[0],gTagAttrs.width=c[1],gTagAttrs.height=c[2],gTagAttrs.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",gTagAttrs.pluginspage="http://www.apple.com/quicktime/download/",a=c[3],(null==a||""==a)&&(a="6,0,2,0"),gTagAttrs.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+a;for(var d,e=4;e<c.length;e+=2)d=c[e].toLowerCase(),a=c[e+1],"name"==d||"id"==d?gTagAttrs.name=a:gTagAttrs[d]=a;c="<object "+_QTAddObjectAttr("classid")+_QTAddObjectAttr("width")+_QTAddObjectAttr("height")+_QTAddObjectAttr("codebase")+_QTAddObjectAttr("name","id")+_QTAddObjectAttr("tabindex")+_QTAddObjectAttr("hspace")+_QTAddObjectAttr("vspace")+_QTAddObjectAttr("border")+_QTAddObjectAttr("align")+_QTAddObjectAttr("class")+_QTAddObjectAttr("title")+_QTAddObjectAttr("accesskey")+_QTAddObjectAttr("noexternaldata")+">\n"+_QTAddObjectParam("src",b),e="  <embed "+_QTAddEmbedAttr("src")+_QTAddEmbedAttr("width")+_QTAddEmbedAttr("height")+_QTAddEmbedAttr("pluginspage")+_QTAddEmbedAttr("name")+_QTAddEmbedAttr("align")+_QTAddEmbedAttr("tabindex"),_QTDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(d in gTagAttrs)a=gTagAttrs[d],null!=a&&(e+=_QTAddEmbedAttr(d),c+=_QTAddObjectParam(d,b));return c+e+"> </embed>\n</object>"}function QT_GenerateOBJECTText(){return _QTGenerate("QT_GenerateOBJECTText",!1,arguments)}var extensions={flash:["swf"],image:["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe"],iframe:["asp","aspx","cgi","cfm","htm","html","jsp","php","pl","php3","php4","php5","phtml","rb","rhtml","shtml","txt"],video:["avi","mov","mpg","mpeg","movie","mp4","webm","ogv","ogg","3gp","m4v"]},$win=$(window),$doc=$(document),browser,transform,gpuAcceleration,fullScreenApi="",supportTouch=!!("ontouchstart"in window)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),clickEvent=supportTouch?"itap":"click",globalClickEvent=supportTouch?"itap":"click",touchStartEvent=supportTouch?"touchstart.iLightBox":"mousedown.iLightBox",touchStopEvent=supportTouch?"touchend.iLightBox":"mouseup.iLightBox",touchMoveEvent=supportTouch?"touchmove.iLightBox":"mousemove.iLightBox",abs=Math.abs,sqrt=Math.sqrt,round=Math.round,max=Math.max,min=Math.min,floor=Math.floor,random=Math.random,pluginspages={quicktime:"http://www.apple.com/quicktime/download",flash:"http://www.adobe.com/go/getflash"},iLightBox=function(a,b,c,d){var e=this;if(e.options=b,e.selector=a.selector||a,e.context=a.context,e.instant=d,c.length<1?e.attachItems():e.items=c,e.vars={total:e.items.length,start:0,current:null,next:null,prev:null,BODY:$("body"),loadRequests:0,overlay:$('<div class="ilightbox-overlay"></div>'),loader:$('<div class="ilightbox-loader"><div></div></div>'),toolbar:$('<div class="ilightbox-toolbar"></div>'),innerToolbar:$('<div class="ilightbox-inner-toolbar"></div>'),title:$('<div class="ilightbox-title"></div>'),closeButton:$('<a class="ilightbox-close" title="'+e.options.text.close+'"></a>'),fullScreenButton:$('<a class="ilightbox-fullscreen" title="'+e.options.text.enterFullscreen+'"></a>'),innerPlayButton:$('<a class="ilightbox-play" title="'+e.options.text.slideShow+'"></a>'),innerNextButton:$('<a class="ilightbox-next-button" title="'+e.options.text.next+'"></a>'),innerPrevButton:$('<a class="ilightbox-prev-button" title="'+e.options.text.previous+'"></a>'),holder:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+'" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+' ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:$('<div class="ilightbox-holder'+(supportTouch?" supportTouch":"")+' ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:$('<a class="ilightbox-button ilightbox-next-button" ondragstart="return false;" title="'+e.options.text.next+'"><span></span></a>'),prevButton:$('<a class="ilightbox-button ilightbox-prev-button" ondragstart="return false;" title="'+e.options.text.previous+'"><span></span></a>'),thumbnails:$('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},e.vars.hideableElements=e.vars.nextButton.add(e.vars.prevButton),e.normalizeItems(),e.availPlugins(),e.options.startFrom=e.options.startFrom>0&&e.options.startFrom>=e.vars.total?e.vars.total-1:e.options.startFrom,e.options.startFrom=e.options.randomStart?floor(random()*e.vars.total):e.options.startFrom,e.vars.start=e.options.startFrom,d?e.instantCall():e.patchItemsEvents(),e.options.linkId&&(e.hashChangeHandler(),$win.iLightBoxHashChange(function(){e.hashChangeHandler()})),supportTouch){var f=/(click|mouseenter|mouseleave|mouseover|mouseout)/gi,g="itap";e.options.caption.show=e.options.caption.show.replace(f,g),e.options.caption.hide=e.options.caption.hide.replace(f,g),e.options.social.show=e.options.social.show.replace(f,g),e.options.social.hide=e.options.social.hide.replace(f,g)}e.options.controls.arrows&&$.extend(e.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};iLightBox.prototype={showLoader:function(){var a=this;a.vars.loadRequests+=1,"horizontal"==a.options.path.toLowerCase()?a.vars.loader.stop().animate({top:"-30px"},a.options.show.speed,"easeOutCirc"):a.vars.loader.stop().animate({left:"-30px"},a.options.show.speed,"easeOutCirc")},hideLoader:function(){var a=this;a.vars.loadRequests-=1,a.vars.loadRequests=a.vars.loadRequests<0?0:a.vars.loadRequests,"horizontal"==a.options.path.toLowerCase()?a.vars.loadRequests<=0&&a.vars.loader.stop().animate({top:"-192px"},a.options.show.speed,"easeInCirc"):a.vars.loadRequests<=0&&a.vars.loader.stop().animate({left:"-192px"},a.options.show.speed,"easeInCirc")},createUI:function(){var a=this;a.ui={currentElement:a.vars.holder,nextElement:a.vars.nextPhoto,prevElement:a.vars.prevPhoto,currentItem:a.vars.current,nextItem:a.vars.next,prevItem:a.vars.prev,hide:function(){a.closeAction()},refresh:function(){arguments.length>0?a.repositionPhoto(!0):a.repositionPhoto()},fullscreen:function(){a.fullScreenAction()}}},attachItems:function(){var iL=this,itemsObject=new Array,items=new Array;$(iL.selector,iL.context).each(function(){var t=$(this),URL=t.attr(iL.options.attr)||null,options=t.data("options")&&eval("({"+t.data("options")+"})")||{},caption=t.data("caption"),title=t.data("title"),type=t.data("type")||getTypeByExtension(URL);items.push({URL:URL,caption:caption,title:title,type:type,options:options}),iL.instant||itemsObject.push(t)}),iL.items=items,iL.itemsObject=itemsObject,iL.vars&&(iL.vars.total=items.length)},normalizeItems:function(){var a=this,b=new Array;$.each(a.items,function(c,d){"string"==typeof d&&(d={url:d});var e=d.url||d.URL||null,f=d.options||{},g=d.caption||null,h=d.title||null,i=d.type?d.type.toLowerCase():getTypeByExtension(e),j="object"!=typeof e?getExtension(e):"";f.thumbnail=f.thumbnail||("image"==i?e:null),f.videoType=f.videoType||null,f.skin=f.skin||a.options.skin,f.width=f.width||null,f.height=f.height||null,f.mousewheel="undefined"!=typeof f.mousewheel?f.mousewheel:!0,f.swipe="undefined"!=typeof f.swipe?f.swipe:!0,f.social="undefined"!=typeof f.social?f.social:a.options.social.buttons&&$.extend({},{},a.options.social.buttons),"video"==i&&(f.html5video="undefined"!=typeof f.html5video?f.html5video:{},f.html5video.webm=f.html5video.webm||f.html5video.WEBM||null,f.html5video.controls="undefined"!=typeof f.html5video.controls?f.html5video.controls:"controls",f.html5video.preload=f.html5video.preload||"metadata",f.html5video.autoplay="undefined"!=typeof f.html5video.autoplay?f.html5video.autoplay:!1),f.width&&f.height||("video"==i?(f.width=js_local_vars.lightbox_video_width,f.height=js_local_vars.lightbox_video_height):"iframe"==i?(f.width=js_local_vars.lightbox_video_width,f.height=js_local_vars.lightbox_video_height):"flash"==i&&(f.width=js_local_vars.lightbox_video_width,f.height=js_local_vars.lightbox_video_height)),delete d.url,d.index=c,d.URL=e,d.caption=g,d.title=h,d.type=i,d.options=f,d.ext=j,b.push(d)}),a.items=b},instantCall:function(){var a=this,b=a.vars.start;a.vars.current=b,a.vars.next=a.items[b+1]?b+1:null,a.vars.prev=a.items[b-1]?b-1:null,a.addContents(),a.patchEvents()},addContents:function(){var a=this,b=a.vars,c=a.options,d=getViewport(),e=c.path.toLowerCase(),f=b.total>0&&a.items.filter(function(a,b,d){return-1===["image","flash","video"].indexOf(a.type)&&"undefined"==typeof a.recognized&&(c.smartRecognition||a.options.smartRecognition)}),g=f.length>0;c.mobileOptimizer&&!c.innerToolbar&&(b.isMobile=d.width<=b.mobileMaxWidth),b.overlay.addClass(c.skin).hide().css("opacity",c.overlay.opacity),c.linkId&&b.overlay[0].setAttribute("linkid",c.linkId),c.controls.toolbar&&(b.toolbar.addClass(c.skin).append(b.closeButton),c.controls.fullscreen&&b.toolbar.append(b.fullScreenButton),c.controls.slideshow&&b.toolbar.append(b.innerPlayButton),b.total>1&&b.toolbar.append(b.innerPrevButton).append(b.innerNextButton)),b.BODY.addClass("ilightbox-noscroll").append(b.overlay).append(b.loader).append(b.holder).append(b.nextPhoto).append(b.prevPhoto),
c.innerToolbar||b.BODY.append(b.toolbar),c.controls.arrows&&b.BODY.append(b.nextButton).append(b.prevButton),c.controls.thumbnail&&b.total>1&&(b.BODY.append(b.thumbnails),b.thumbnails.addClass(c.skin).addClass("ilightbox-"+e),$("div.ilightbox-thumbnails-grid",b.thumbnails).empty(),b.thumbs=!0);var h="horizontal"==c.path.toLowerCase()?{left:parseInt(d.width/2-b.loader.outerWidth()/2)}:{top:parseInt(d.height/2-b.loader.outerHeight()/2)};b.loader.addClass(c.skin).css(h),b.nextButton.add(b.prevButton).addClass(c.skin),"horizontal"==e&&b.loader.add(b.nextButton).add(b.prevButton).addClass("horizontal"),b.BODY[b.isMobile?"addClass":"removeClass"]("isMobile"),c.infinite||(b.prevButton.add(b.prevButton).add(b.innerPrevButton).add(b.innerNextButton).removeClass("disabled"),b.nextButton.add(b.prevButton).add(b.innerPrevButton).add(b.innerNextButton).removeClass("disabled"),0==b.current&&b.prevButton.add(b.innerPrevButton).addClass("disabled"),b.current>=b.total-1&&b.nextButton.add(b.innerNextButton).addClass("disabled")),c.show.effect?(b.overlay.stop().fadeIn(c.show.speed),b.toolbar.stop().fadeIn(c.show.speed)):(b.overlay.show(),b.toolbar.show());var i=f.length;g?(a.showLoader(),$.each(f,function(d,e){var f=function(d){var e=-1,f=(a.items.filter(function(a,b,c){return a.URL==d.url&&(e=b),a.URL==d.url}),a.items[e]);d&&$.extend(!0,f,{URL:d.source,type:d.type,recognized:!0,options:{html5video:d.html5video,width:"image"==d.type?0:d.width||f.width,height:"image"==d.type?0:d.height||f.height,thumbnail:f.options.thumbnail||d.thumbnail}}),i--,0==i&&(a.hideLoader(),b.dontGenerateThumbs=!1,a.generateThumbnails(),c.show.effect?setTimeout(function(){a.generateBoxes()},c.show.speed):a.generateBoxes())};a.ogpRecognition(this,f)})):c.show.effect?setTimeout(function(){a.generateBoxes()},c.show.speed):a.generateBoxes(),a.createUI(),window.iLightBox={close:function(){a.closeAction()},fullscreen:function(){a.fullScreenAction()},moveNext:function(){a.moveTo("next")},movePrev:function(){a.moveTo("prev")},goTo:function(b){a.goTo(b)},refresh:function(){a.refresh()},reposition:function(){arguments.length>0?a.repositionPhoto(!0):a.repositionPhoto()},setOption:function(b){a.setOption(b)},destroy:function(){a.closeAction(),a.dispatchItemsEvents()}},c.linkId&&(b.hashLock=!0,window.location.hash=c.linkId+"/"+b.current,setTimeout(function(){b.hashLock=!1},55)),c.slideshow.startPaused||(a.resume(),b.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),"function"==typeof a.options.callback.onOpen&&a.options.callback.onOpen.call(a)},loadContent:function(a,b,c){var d,e,f=this;switch(f.createUI(),a.speed=c||f.options.effects.loadedFadeSpeed,"current"==b&&(a.options.mousewheel?f.vars.lockWheel=!1:f.vars.lockWheel=!0,a.options.swipe?f.vars.lockSwipe=!1:f.vars.lockSwipe=!0),b){case"current":d=f.vars.holder,e=f.vars.current;break;case"next":d=f.vars.nextPhoto,e=f.vars.next;break;case"prev":d=f.vars.prevPhoto,e=f.vars.prev}if(d.removeAttr("style class").addClass("ilightbox-holder"+(supportTouch?" supportTouch":"")).addClass(a.options.skin),$("div.ilightbox-inner-toolbar",d).remove(),a.title||f.options.innerToolbar){var g=f.vars.innerToolbar.clone();if(a.title&&f.options.show.title){var h=f.vars.title.clone();h.empty().html(a.title),g.append(h)}f.options.innerToolbar&&g.append(f.vars.total>1?f.vars.toolbar.clone():f.vars.toolbar),d.prepend(g)}f.loadSwitcher(a,d,e,b)},loadSwitcher:function(a,b,c,d){var e=this,g=e.options,h={element:b,position:c};switch(a.type){case"image":"function"==typeof g.callback.onBeforeLoad&&g.callback.onBeforeLoad.call(e,e.ui,c),"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h),e.loadImage(a.URL,function(f){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);var i=f?f.width:400,j=f?f.height:200;b.data({naturalWidth:i,naturalHeight:j}),$("div.ilightbox-container",b).empty().append(f?'<img src="'+a.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+g.errors.loadImage+"</span>"),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h),e.configureHolder(a,d,b)});break;case"video":b.data({naturalWidth:a.options.width,naturalHeight:a.options.height}),e.addContent(b,a),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h),e.configureHolder(a,d,b);break;case"iframe":for(var i=a.URL.substring(a.URL.indexOf("?")+1).split("&"),j={},k=0;k<i.length;++k){var l=i[k].split("=");2==l.length&&("w"==l[0]&&(l[0]="width"),"h"==l[0]&&(l[0]="height"),j[l[0]]=decodeURIComponent(l[1].replace(/\+/g," ")))}e.showLoader(),b.data({naturalWidth:j.width?j.width:a.options.width,naturalHeight:j.height?j.height:a.options.height});var m=e.addContent(b,a);"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h),"function"==typeof g.callback.onBeforeLoad&&g.callback.onBeforeLoad.call(e,e.ui,c),"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h),m.bind("load",function(){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),e.hideLoader(),e.configureHolder(a,d,b),m.unbind("load")});break;case"inline":var m=$(a.URL),n=e.addContent(b,a),o=findImageInElement(b);b.data({naturalWidth:e.items[c].options.width||m.outerWidth(),naturalHeight:e.items[c].options.height||m.outerHeight()}),n.children().eq(0).show(),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h),"function"==typeof g.callback.onBeforeLoad&&g.callback.onBeforeLoad.call(e,e.ui,c),"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h),e.loadImage(o,function(){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),e.configureHolder(a,d,b)});break;case"flash":var m=e.addContent(b,a);b.data({naturalWidth:e.items[c].options.width||m.outerWidth(),naturalHeight:e.items[c].options.height||m.outerHeight()}),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h),e.configureHolder(a,d,b);break;case"ajax":var p=a.options.ajax||{};"function"==typeof g.callback.onBeforeLoad&&g.callback.onBeforeLoad.call(e,e.ui,c),"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h),e.showLoader(),$.ajax({url:a.URL||g.ajaxSetup.url,data:p.data||null,dataType:p.dataType||"html",type:p.type||g.ajaxSetup.type,cache:p.cache||g.ajaxSetup.cache,crossDomain:p.crossDomain||g.ajaxSetup.crossDomain,global:p.global||g.ajaxSetup.global,ifModified:p.ifModified||g.ajaxSetup.ifModified,username:p.username||g.ajaxSetup.username,password:p.password||g.ajaxSetup.password,beforeSend:p.beforeSend||g.ajaxSetup.beforeSend,complete:p.complete||g.ajaxSetup.complete,success:function(f,i,j){e.hideLoader();var k=$(f),l=$("div.ilightbox-container",b),m=e.items[c].options.width||parseInt(k[0].getAttribute("width")),n=e.items[c].options.height||parseInt(k[0].getAttribute("height")),o=k[0].getAttribute("width")&&k[0].getAttribute("height")?{overflow:"hidden"}:{};l.empty().append($('<div class="ilightbox-wrapper"></div>').css(o).html(k)),b.show().data({naturalWidth:m||l.outerWidth(),naturalHeight:n||l.outerHeight()}).hide(),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);var q=findImageInElement(b);e.loadImage(q,function(){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),e.configureHolder(a,d,b)}),g.ajaxSetup.success(f,i,j),"function"==typeof p.success&&p.success(f,i,j)},error:function(i,j,k){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),f,e.hideLoader(),$("div.ilightbox-container",b).empty().append('<span class="ilightbox-alert">'+g.errors.loadContents+"</span>"),e.configureHolder(a,d,b),g.ajaxSetup.error(i,j,k),"function"==typeof p.error&&p.error(i,j,k)}});break;case"html":var m,q=a.URL;if(container=$("div.ilightbox-container",b),q[0].nodeName)m=q.clone();else{var r=$(q);m=r.selector?$("<div>"+r+"</div>"):r}var s=e.items[c].options.width||parseInt(m.attr("width")),t=e.items[c].options.height||parseInt(m.attr("height"));e.addContent(b,a),m.appendTo(document.documentElement).hide(),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);var o=findImageInElement(b);"function"==typeof g.callback.onBeforeLoad&&g.callback.onBeforeLoad.call(e,e.ui,c),"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h),e.loadImage(o,function(){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),b.show().data({naturalWidth:s||container.outerWidth(),naturalHeight:t||container.outerHeight()}).hide(),m.remove(),e.configureHolder(a,d,b)})}},configureHolder:function(a,b,c){var d=this,e=d.vars,f=d.options;if("current"!=b&&("next"==b?c.addClass("ilightbox-next"):c.addClass("ilightbox-prev")),"current"==b)var g=e.current;else if("next"==b)var h=f.styles.nextOpacity,g=e.next;else var h=f.styles.prevOpacity,g=e.prev;var i={element:c,position:g};d.items[g].options.width=d.items[g].options.width||0,d.items[g].options.height=d.items[g].options.height||0,"current"==b?f.show.effect?c.css(transform,gpuAcceleration).fadeIn(a.speed,function(){if(c.css(transform,""),a.caption){d.setCaption(a,c);var b=$("div.ilightbox-caption",c),e=parseInt(b.outerHeight()/c.outerHeight()*100);f.caption.start&50>=e&&b.fadeIn(f.effects.fadeSpeed)}var h=a.options.social;h&&(d.setSocial(h,a.URL,c),f.social.start&&$("div.ilightbox-social",c).fadeIn(f.effects.fadeSpeed)),d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)}):(c.show(),d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)):f.show.effect?c.fadeTo(a.speed,h,function(){"next"==b?e.nextLock=!1:e.prevLock=!1,d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)}):(c.css({opacity:h}).show(),"next"==b?e.nextLock=!1:e.prevLock=!1,d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)),setTimeout(function(){d.repositionPhoto()},0)},generateBoxes:function(){var a=this,b=a.vars,c=a.options;c.infinite&&b.total>=3?(b.current==b.total-1&&(b.next=0),0==b.current&&(b.prev=b.total-1)):c.infinite=!1,a.loadContent(a.items[b.current],"current",c.show.speed),a.items[b.next]&&a.loadContent(a.items[b.next],"next",c.show.speed),a.items[b.prev]&&a.loadContent(a.items[b.prev],"prev",c.show.speed)},generateThumbnails:function(){var a=this,b=a.vars,c=a.options,d=null;if(b.thumbs&&!a.vars.dontGenerateThumbs){var e=b.thumbnails,f=$("div.ilightbox-thumbnails-container",e),g=$("div.ilightbox-thumbnails-grid",f),h=0;g.removeAttr("style").empty(),$.each(a.items,function(i,j){var k=b.current==i?"ilightbox-active":"",l=b.current==i?c.thumbnails.activeOpacity:c.thumbnails.normalOpacity,m=j.options.thumbnail,n=$('<div class="ilightbox-thumbnail"></div>'),o=$('<div class="ilightbox-thumbnail-icon"></div>');n.css({opacity:0}).addClass(k),"video"!=j.type&&"flash"!=j.type||"undefined"!=typeof j.options.icon?j.options.icon&&(o.addClass("ilightbox-thumbnail-"+j.options.icon),n.append(o)):(o.addClass("ilightbox-thumbnail-video"),n.append(o)),m&&a.loadImage(m,function(b){h++,b?n.data({naturalWidth:b.width,naturalHeight:b.height}).append('<img src="'+m+'" border="0" />'):n.data({naturalWidth:c.thumbnails.maxWidth,naturalHeight:c.thumbnails.maxHeight}),clearTimeout(d),d=setTimeout(function(){a.positionThumbnails(e,f,g)},20),setTimeout(function(){n.fadeTo(c.effects.loadedFadeSpeed,l)},20*h)}),g.append(n)}),a.vars.dontGenerateThumbs=!0}},positionThumbnails:function(a,b,c){var d=this,e=d.vars,f=d.options,g=getViewport(),h=f.path.toLowerCase();a||(a=e.thumbnails),b||(b=$("div.ilightbox-thumbnails-container",a)),c||(c=$("div.ilightbox-thumbnails-grid",b));var i=$(".ilightbox-thumbnail",c),j="horizontal"==h?g.width-f.styles.pageOffsetX:i.eq(0).outerWidth()-f.styles.pageOffsetX,k="horizontal"==h?i.eq(0).outerHeight()-f.styles.pageOffsetY:g.height-f.styles.pageOffsetY,l="horizontal"==h?0:j,m="horizontal"==h?k:0,n=$(".ilightbox-active",c),o={};arguments.length<3&&(i.css({opacity:f.thumbnails.normalOpacity}),n.css({opacity:f.thumbnails.activeOpacity})),i.each(function(a){var b=$(this),c=b.data(),e="horizontal"==h?0:f.thumbnails.maxWidth;height="horizontal"==h?f.thumbnails.maxHeight:0,dims=d.getNewDimenstions(e,height,c.naturalWidth,c.naturalHeight,!0),b.css({width:dims.width,height:dims.height}),"horizontal"==h&&b.css({"float":"left"}),"horizontal"==h?l+=b.outerWidth():m+=b.outerHeight()}),o={width:l,height:m},c.css(o),o={};var p=c.offset(),q=n.length?n.offset():{top:parseInt(k/2),left:parseInt(j/2)};p.top=p.top-$doc.scrollTop(),p.left=p.left-$doc.scrollLeft(),q.top=q.top-p.top-$doc.scrollTop(),q.left=q.left-p.left-$doc.scrollLeft(),"horizontal"==h?(o.top=0,o.left=parseInt(j/2-q.left-n.outerWidth()/2)):(o.top=parseInt(k/2-q.top-n.outerHeight()/2),o.left=0),arguments.length<3?c.stop().animate(o,f.effects.repositionSpeed,"easeOutCirc"):c.css(o)},loadImage:function(a,b){$.isArray(a)||(a=[a]);var c=this,d=a.length;d>0?(c.showLoader(),$.each(a,function(e,f){var g=new Image;g.onload=function(){d-=1,0==d&&(c.hideLoader(),b(g))},g.onerror=g.onabort=function(){d-=1,0==d&&(c.hideLoader(),b(!1))},g.src=a[e]})):b(!1)},patchItemsEvents:function(){var a=this,b=a.vars,c=supportTouch?"itap.iL":"click.iL",d=supportTouch?"click.iL":"itap.iL";if(a.context&&a.selector){var e=$(a.selector,a.context);$(a.context).on(c,a.selector,function(){var c=$(this),d=e.index(c);return b.current=d,b.next=a.items[d+1]?d+1:null,b.prev=a.items[d-1]?d-1:null,a.addContents(),a.patchEvents(),!1}).on(d,a.selector,function(){return!1})}else $.each(a.itemsObject,function(e,f){f.on(c,function(){return b.current=e,b.next=a.items[e+1]?e+1:null,b.prev=a.items[e-1]?e-1:null,a.addContents(),a.patchEvents(),!1}).on(d,function(){return!1})})},dispatchItemsEvents:function(){var a=this;a.vars,a.options;a.context&&a.selector?$(a.context).off(".iL",a.selector):$.each(a.itemsObject,function(a,b){b.off(".iL")})},refresh:function(){var a=this;a.dispatchItemsEvents(),a.attachItems(),a.normalizeItems(),a.patchItemsEvents()},patchEvents:function(){function a(a){c.isMobile||(c.mouseID||c.hideableElements.show(),c.mouseID=clearTimeout(c.mouseID),-1===j.indexOf(a.target)&&(c.mouseID=setTimeout(function(){c.hideableElements.hide(),c.mouseID=clearTimeout(c.mouseID)},3e3)))}var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f=$(".ilightbox-holder"),g=fullScreenApi.fullScreenEventName+".iLightBox",h=1e3,i=verticalDistanceThreshold=100,j=[c.nextButton[0],c.prevButton[0],c.nextButton[0].firstChild,c.prevButton[0].firstChild];$win.bind("resize.iLightBox",function(){var a=getViewport();d.mobileOptimizer&&!d.innerToolbar&&(c.isMobile=a.width<=c.mobileMaxWidth),c.BODY[c.isMobile?"addClass":"removeClass"]("isMobile"),b.repositionPhoto(null),supportTouch&&(clearTimeout(c.setTime),c.setTime=setTimeout(function(){var a=getScrollXY().y;window.scrollTo(0,a-30),window.scrollTo(0,a+30),window.scrollTo(0,a)},2e3)),c.thumbs&&b.positionThumbnails()}).bind("keydown.iLightBox",function(a){if(d.controls.keyboard)switch(a.keyCode){case 13:a.shiftKey&&d.keyboard.shift_enter&&b.fullScreenAction();break;case 27:d.keyboard.esc&&b.closeAction();break;case 37:d.keyboard.left&&!c.lockKey&&b.moveTo("prev");break;case 38:d.keyboard.up&&!c.lockKey&&b.moveTo("prev");break;case 39:d.keyboard.right&&!c.lockKey&&b.moveTo("next");break;case 40:d.keyboard.down&&!c.lockKey&&b.moveTo("next")}}),fullScreenApi.supportsFullScreen&&$win.bind(g,function(){b.doFullscreen()});var k=[d.caption.show+".iLightBox",d.caption.hide+".iLightBox",d.social.show+".iLightBox",d.social.hide+".iLightBox"].filter(function(a,b,c){return c.lastIndexOf(a)===b}),l="";$.each(k,function(a,b){0!=a&&(l+=" "),l+=b}),$doc.on(clickEvent,".ilightbox-overlay",function(){d.overlay.blur&&b.closeAction()}).on(clickEvent,".ilightbox-next, .ilightbox-next-button",function(){b.moveTo("next")}).on(clickEvent,".ilightbox-prev, .ilightbox-prev-button",function(){b.moveTo("prev")}).on(clickEvent,".ilightbox-thumbnail",function(){var a=$(this),d=$(".ilightbox-thumbnail",c.thumbnails),e=d.index(a);e!=c.current&&b.goTo(e)}).on(l,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(a){var b=$("div.ilightbox-caption",c.holder),e=$("div.ilightbox-social",c.holder),f=d.effects.fadeSpeed;c.nextLock||c.prevLock?(a.type!=d.caption.show||b.is(":visible")?a.type==d.caption.hide&&b.is(":visible")&&b.fadeOut(f):b.fadeIn(f),a.type!=d.social.show||e.is(":visible")?a.type==d.social.hide&&e.is(":visible")&&e.fadeOut(f):e.fadeIn(f)):(a.type!=d.caption.show||b.is(":visible")?a.type==d.caption.hide&&b.is(":visible")&&b.stop().fadeOut(f):b.stop().fadeIn(f),a.type!=d.social.show||e.is(":visible")?a.type==d.social.hide&&e.is(":visible")&&e.stop().fadeOut(f):e.stop().fadeIn(f))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(a){"mouseenter"==a.type?c.lockWheel=!0:c.lockWheel=!1}).on(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(a){var c=$(this);c.hasClass("ilightbox-fullscreen")?b.fullScreenAction():c.hasClass("ilightbox-play")?(b.resume(),c.addClass("ilightbox-pause").removeClass("ilightbox-play")):c.hasClass("ilightbox-pause")?(b.pause(),c.addClass("ilightbox-play").removeClass("ilightbox-pause")):b.closeAction()}).on(touchMoveEvent,".ilightbox-overlay, .ilightbox-thumbnails-container",function(a){a.preventDefault()}),d.controls.arrows&&!supportTouch&&$doc.on("mousemove.iLightBox",a),d.controls.slideshow&&d.slideshow.pauseOnHover&&$doc.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(a){"mouseenter"==a.type&&c.cycleID?b.pause():"mouseleave"==a.type&&c.isPaused&&b.resume()});var m=$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");d.controls.mousewheel&&m.on("mousewheel.iLightBox",function(a,d){c.lockWheel||(a.preventDefault(),0>d?b.moveTo("next"):d>0&&b.moveTo("prev"))}),d.controls.swipe&&f.on(touchStartEvent,function(a){function g(a){var b=$(this),c=q[a],d=[r.coords[0]-l.coords[0],r.coords[1]-l.coords[1]];b[0].style["horizontal"==e?"left":"top"]=("horizontal"==e?c.left-d[0]:c.top-d[1])+"px"}function j(a){if(r){var b=a.originalEvent.touches?a.originalEvent.touches[0]:a;l={time:(new Date).getTime(),coords:[b.pageX-o,b.pageY-n]},f.each(g),a.preventDefault()}}function k(){f.each(function(){var a=$(this),b=a.data("offset")||{top:a.offset().top-n,left:a.offset().left-o},c=b.top,d=b.left;a.css(transform,gpuAcceleration).stop().animate({top:c,left:d},500,"easeOutCirc",function(){a.css(transform,"")})})}if(!(c.nextLock||c.prevLock||1==c.total||c.lockSwipe)){c.BODY.addClass("ilightbox-closedhand");var l,m=a.originalEvent.touches?a.originalEvent.touches[0]:a,n=$doc.scrollTop(),o=$doc.scrollLeft(),p=[f.eq(0).offset(),f.eq(1).offset(),f.eq(2).offset()],q=[{top:p[0].top-n,left:p[0].left-o},{top:p[1].top-n,left:p[1].left-o},{top:p[2].top-n,left:p[2].left-o}],r={time:(new Date).getTime(),coords:[m.pageX-o,m.pageY-n]};f.bind(touchMoveEvent,j),$doc.one(touchStopEvent,function(a){f.unbind(touchMoveEvent,j),c.BODY.removeClass("ilightbox-closedhand"),r&&l&&("horizontal"==e&&l.time-r.time<h&&abs(r.coords[0]-l.coords[0])>i&&abs(r.coords[1]-l.coords[1])<verticalDistanceThreshold?r.coords[0]>l.coords[0]?c.current!=c.total-1||d.infinite?(c.isSwipe=!0,b.moveTo("next")):k():0!=c.current||d.infinite?(c.isSwipe=!0,b.moveTo("prev")):k():"vertical"==e&&l.time-r.time<h&&abs(r.coords[1]-l.coords[1])>i&&abs(r.coords[0]-l.coords[0])<verticalDistanceThreshold?r.coords[1]>l.coords[1]?c.current!=c.total-1||d.infinite?(c.isSwipe=!0,b.moveTo("next")):k():0!=c.current||d.infinite?(c.isSwipe=!0,b.moveTo("prev")):k():k()),r=l=undefined})}})},goTo:function(a){var b=this,c=b.vars,d=b.options,e=a-c.current;if(d.infinite&&(a==c.total-1&&0==c.current&&(e=-1),c.current==c.total-1&&0==a&&(e=1)),1==e)b.moveTo("next");else if(-1==e)b.moveTo("prev");else{if(c.nextLock||c.prevLock)return!1;"function"==typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui),d.linkId&&(c.hashLock=!0,window.location.hash=d.linkId+"/"+a),b.items[a]&&(b.items[a].options.mousewheel?b.vars.lockWheel=!1:c.lockWheel=!0,b.items[a].options.swipe?c.lockSwipe=!1:c.lockSwipe=!0),$.each([c.holder,c.nextPhoto,c.prevPhoto],function(a,b){b.css(transform,gpuAcceleration).fadeOut(d.effects.loadedFadeSpeed)}),c.current=a,c.next=a+1,c.prev=a-1,b.createUI(),setTimeout(function(){b.generateBoxes()},d.effects.loadedFadeSpeed+50),$(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(a).addClass("ilightbox-active"),b.positionThumbnails(),d.linkId&&setTimeout(function(){c.hashLock=!1},55),d.infinite||(c.nextButton.add(c.prevButton).add(c.innerPrevButton).add(c.innerNextButton).removeClass("disabled"),0==c.current&&c.prevButton.add(c.innerPrevButton).addClass("disabled"),c.current>=c.total-1&&c.nextButton.add(c.innerNextButton).addClass("disabled")),b.resetCycle(),"function"==typeof d.callback.onAfterChange&&d.callback.onAfterChange.call(b,b.ui)}},moveTo:function(a){var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f=getViewport(),g=d.effects.switchSpeed;if(c.nextLock||c.prevLock)return!1;var h="next"==a?c.next:c.prev;if(d.linkId&&(c.hashLock=!0,window.location.hash=d.linkId+"/"+h),"next"==a){if(!b.items[h])return!1;var i=c.nextPhoto,j=c.holder,k=c.prevPhoto,l="ilightbox-prev",m="ilightbox-next"}else if("prev"==a){if(!b.items[h])return!1;var i=c.prevPhoto,j=c.holder,k=c.nextPhoto,l="ilightbox-next",m="ilightbox-prev"}"function"==typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui),"next"==a?c.nextLock=!0:c.prevLock=!0;var n=$("div.ilightbox-caption",j),o=$("div.ilightbox-social",j);if(n.length&&n.stop().fadeOut(g,function(){$(this).remove()}),o.length&&o.stop().fadeOut(g,function(){$(this).remove()}),b.items[h].caption){b.setCaption(b.items[h],i);var p=$("div.ilightbox-caption",i),q=parseInt(p.outerHeight()/i.outerHeight()*100);d.caption.start&&50>=q&&p.fadeIn(g)}var r=b.items[h].options.social;r&&(b.setSocial(r,b.items[h].URL,i),d.social.start&&$("div.ilightbox-social",i).fadeIn(d.effects.fadeSpeed)),$.each([i,j,k],function(a,b){b.removeClass("ilightbox-next ilightbox-prev")});var s=i.data("offset"),t=f.width-d.styles.pageOffsetX,u=f.height-d.styles.pageOffsetY,v=s.newDims.width,w=s.newDims.height,x=s.thumbsOffset,y=s.diff,z=parseInt(u/2-w/2-y.H-x.H/2),A=parseInt(t/2-v/2-y.W-x.W/2);i.css(transform,gpuAcceleration).animate({top:z,left:A,opacity:1},g,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){i.css(transform,"")}),$("div.ilightbox-container",i).animate({width:v,height:w},g,c.isSwipe?"easeOutCirc":"easeInOutCirc");var B=j.data("offset"),C=B.object;y=B.diff,v=B.newDims.width,w=B.newDims.height,v=parseInt(v*d.styles["next"==a?"prevScale":"nextScale"]),w=parseInt(w*d.styles["next"==a?"prevScale":"nextScale"]),z="horizontal"==e?parseInt(u/2-C.offsetY-w/2-y.H-x.H/2):parseInt(u-C.offsetX-y.H-x.H/2),"prev"==a?A="horizontal"==e?parseInt(t-C.offsetX-y.W-x.W/2):parseInt(t/2-v/2-y.W-C.offsetY-x.W/2):(z="horizontal"==e?z:parseInt(C.offsetX-y.H-w-x.H/2),A="horizontal"==e?parseInt(C.offsetX-y.W-v-x.W/2):parseInt(t/2-C.offsetY-v/2-y.W-x.W/2)),$("div.ilightbox-container",j).animate({width:v,height:w},g,c.isSwipe?"easeOutCirc":"easeInOutCirc"),j.addClass(l).css(transform,gpuAcceleration).animate({top:z,left:A,opacity:d.styles.prevOpacity},g,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){j.css(transform,""),$(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(h).addClass("ilightbox-active"),b.positionThumbnails(),b.items[h]&&(b.items[h].options.mousewheel?c.lockWheel=!1:c.lockWheel=!0,b.items[h].options.swipe?c.lockSwipe=!1:c.lockSwipe=!0),c.isSwipe=!1,"next"==a?(c.nextPhoto=k,c.prevPhoto=j,c.holder=i,c.nextPhoto.hide(),c.next=c.next+1,c.prev=c.current,c.current=c.current+1,d.infinite&&(c.current>c.total-1&&(c.current=0),c.current==c.total-1&&(c.next=0),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.next]?b.loadContent(b.items[c.next],"next"):c.nextLock=!1):(c.prevPhoto=k,c.nextPhoto=j,c.holder=i,c.prevPhoto.hide(),c.next=c.current,c.current=c.prev,c.prev=c.current-1,d.infinite&&(c.current==c.total-1&&(c.next=0),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.prev]?b.loadContent(b.items[c.prev],"prev"):c.prevLock=!1),d.linkId&&setTimeout(function(){c.hashLock=!1},55),d.infinite||(c.nextButton.add(c.prevButton).add(c.innerPrevButton).add(c.innerNextButton).removeClass("disabled"),0==c.current&&c.prevButton.add(c.innerPrevButton).addClass("disabled"),c.current>=c.total-1&&c.nextButton.add(c.innerNextButton).addClass("disabled")),b.repositionPhoto(),b.resetCycle(),"function"==typeof d.callback.onAfterChange&&d.callback.onAfterChange.call(b,b.ui)}),z="horizontal"==e?getPixel(k,"top"):"next"==a?parseInt(-(u/2)-k.outerHeight()):parseInt(2*z),A="horizontal"==e?"next"==a?parseInt(-(t/2)-k.outerWidth()):parseInt(2*A):getPixel(k,"left"),k.css(transform,gpuAcceleration).animate({top:z,left:A,opacity:d.styles.nextOpacity},g,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){k.css(transform,"")}).addClass(m)},setCaption:function(a,b){var c=$('<div class="ilightbox-caption"></div>');a.caption&&(c.html(a.caption),$("div.ilightbox-container",b).append(c))},normalizeSocial:function(a,b){var c=this,d=(c.vars,c.options),e=window.location.href;return $.each(a,function(c,f){if(!f)return!0;var g,h,i=c.toLowerCase();switch(i){case"facebook":g="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",h="Share on Facebook";break;case"twitter":g="http://twitter.com/home?status={URL}",h="Share on Twitter";break;case"googleplus":g="https://plus.google.com/share?url={URL}",h="Share on Google+";break;case"delicious":g="http://delicious.com/post?url={URL}",h="Share on Delicious";break;case"digg":g="http://digg.com/submit?phase=2&url={URL}",h="Share on Digg";break;case"reddit":g="http://reddit.com/submit?url={URL}",h="Share on reddit"}a[c]={URL:f.URL&&absolutizeURI(e,f.URL)||d.linkId&&window.location.href||"string"!=typeof b&&e||b&&absolutizeURI(e,b)||e,source:f.source||g||f.URL&&absolutizeURI(e,f.URL)||b&&absolutizeURI(e,b),text:f.text||h||"Share on "+c,width:"undefined"==typeof f.width||isNaN(f.width)?640:parseInt(f.width),height:f.height||360}}),a},setSocial:function(a,b,c){var d=this,e=$('<div class="ilightbox-social"></div>'),f="<ul>";a=d.normalizeSocial(a,b),$.each(a,function(a,b){var c=(a.toLowerCase(),b.source.replace(/\{URL\}/g,encodeURIComponent(b.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")));f+='<li class="'+a+'"><a href="'+c+'" onclick="javascript:window.open(this.href'+(b.width<=0||b.height<=0?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+b.height+",width="+b.width+",left=40,top=40'")+');return false;" title="'+b.text+'" target="_blank"></a></li>'}),f+="</ul>",e.html(f),$("div.ilightbox-container",c).append(e)},fullScreenAction:function(){var a=this;a.vars;fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(document.documentElement):fullScreenApi.requestFullScreen(document.documentElement):a.doFullscreen()},doFullscreen:function(){var a=this,b=a.vars,c=getViewport(),d=a.options;if(d.fullAlone){var e=b.holder,f=a.items[b.current],g=c.width,h=c.height,i=[e,b.nextPhoto,b.prevPhoto,b.nextButton,b.prevButton,b.overlay,b.toolbar,b.thumbnails,b.loader],j=[b.loader,b.thumbnails];if(b.isInFullScreen)b.isInFullScreen=b.lockKey=b.lockWheel=b.lockSwipe=!1,b.overlay.css({opacity:a.options.overlay.opacity}),$.each(j,function(a,b){b.show()}),b.fullScreenButton.attr("title",d.text.enterFullscreen),e.data({naturalWidth:e.data("naturalWidthOld"),naturalHeight:e.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),$.each(i,function(a,b){b.removeClass("ilightbox-fullscreen")}),"function"==typeof d.callback.onExitFullScreen&&d.callback.onExitFullScreen.call(a,a.ui);else{if(b.isInFullScreen=b.lockKey=b.lockWheel=b.lockSwipe=!0,b.overlay.css({opacity:1}),$.each(j,function(a,b){b.hide()}),b.fullScreenButton.attr("title",d.text.exitFullscreen),-1!=d.fullStretchTypes.indexOf(f.type))e.data({naturalWidthOld:e.data("naturalWidth"),naturalHeightOld:e.data("naturalHeight"),naturalWidth:g,naturalHeight:h});else{var c=f.options.fullViewPort||d.fullViewPort||"",k=g,l=h,m=e.data("naturalWidth"),n=e.data("naturalHeight");if("fill"==c.toLowerCase())l=k/m*n,h>l&&(k=h/n*m,l=h);else if("fit"==c.toLowerCase()){var o=a.getNewDimenstions(k,l,m,n,!0);k=o.width,l=o.height}else if("stretch"==c.toLowerCase())k=k,l=l;else{var p=m>k||n>l?!0:!1,o=a.getNewDimenstions(k,l,m,n,p);k=o.width,l=o.height}e.data({naturalWidthOld:e.data("naturalWidth"),naturalHeightOld:e.data("naturalHeight"),naturalWidth:k,naturalHeight:l})}$.each(i,function(a,b){b.addClass("ilightbox-fullscreen")}),"function"==typeof d.callback.onEnterFullScreen&&d.callback.onEnterFullScreen.call(a,a.ui)}}else b.isInFullScreen?b.isInFullScreen=!1:b.isInFullScreen=!0;a.repositionPhoto(!0)},closeAction:function(){var a=this,b=a.vars,c=a.options;$win.unbind(".iLightBox"),$doc.off(".iLightBox"),b.isInFullScreen&&fullScreenApi.cancelFullScreen(document.documentElement),$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),c.hide.effect?b.overlay.stop().fadeOut(c.hide.speed,function(){b.overlay.remove(),b.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(b.overlay.remove(),b.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));var d=[b.toolbar,b.holder,b.nextPhoto,b.prevPhoto,b.nextButton,b.prevButton,b.loader,b.thumbnails];$.each(d,function(a,b){b.removeAttr("style").remove()}),b.dontGenerateThumbs=b.isInFullScreen=!1,window.iLightBox=null,c.linkId&&(b.hashLock=!0,removeHash(),setTimeout(function(){b.hashLock=!1},55)),"function"==typeof c.callback.onHide&&c.callback.onHide.call(a,a.ui)},repositionPhoto:function(){var a=this,b=a.vars,c=a.options,d=c.path.toLowerCase(),e=getViewport(),f=e.width,g=e.height,h=b.isInFullScreen&&c.fullAlone||b.isMobile?0:"horizontal"==d?0:b.thumbnails.outerWidth(),i=b.isMobile?b.toolbar.outerHeight():b.isInFullScreen&&c.fullAlone?0:"horizontal"==d?b.thumbnails.outerHeight():0,j=b.isInFullScreen&&c.fullAlone?f:f-c.styles.pageOffsetX,k=b.isInFullScreen&&c.fullAlone?g:g-c.styles.pageOffsetY,l="horizontal"==d?parseInt(a.items[b.next]||a.items[b.prev]?2*(c.styles.nextOffsetX+c.styles.prevOffsetX):30>=j/10?30:j/10):parseInt(30>=j/10?30:j/10)+h,m="horizontal"==d?parseInt(30>=k/10?30:k/10)+i:parseInt(a.items[b.next]||a.items[b.prev]?2*(c.styles.nextOffsetX+c.styles.prevOffsetX):30>=k/10?30:k/10),n={type:"current",width:j,height:k,item:a.items[b.current],offsetW:l,offsetH:m,thumbsOffsetW:h,thumbsOffsetH:i,animate:arguments.length,holder:b.holder
};a.repositionEl(n),a.items[b.next]&&(n=$.extend(n,{type:"next",item:a.items[b.next],offsetX:c.styles.nextOffsetX,offsetY:c.styles.nextOffsetY,holder:b.nextPhoto}),a.repositionEl(n)),a.items[b.prev]&&(n=$.extend(n,{type:"prev",item:a.items[b.prev],offsetX:c.styles.prevOffsetX,offsetY:c.styles.prevOffsetY,holder:b.prevPhoto}),a.repositionEl(n));var o="horizontal"==d?{left:parseInt(j/2-b.loader.outerWidth()/2)}:{top:parseInt(k/2-b.loader.outerHeight()/2)};b.loader.css(o)},repositionEl:function(a){var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f="current"==a.type&&c.isInFullScreen&&d.fullAlone?a.width:a.width-a.offsetW,g="current"==a.type&&c.isInFullScreen&&d.fullAlone?a.height:a.height-a.offsetH,h=a.item,i=a.item.options,j=a.holder,k=a.offsetX||0,l=a.offsetY||0,m=a.thumbsOffsetW,n=a.thumbsOffsetH;"current"==a.type?("number"==typeof i.width&&i.width&&(f=c.isInFullScreen&&d.fullAlone&&(-1!=d.fullStretchTypes.indexOf(h.type)||i.fullViewPort||d.fullViewPort)?f:i.width>f?f:i.width),"number"==typeof i.height&&i.height&&(g=c.isInFullScreen&&d.fullAlone&&(-1!=d.fullStretchTypes.indexOf(h.type)||i.fullViewPort||d.fullViewPort)?g:i.height>g?g:i.height)):("number"==typeof i.width&&i.width&&(f=i.width>f?f:i.width),"number"==typeof i.height&&i.height&&(g=i.height>g?g:i.height)),g=parseInt(g-$(".ilightbox-inner-toolbar",j).outerHeight());var o="string"==typeof i.width&&-1!=i.width.indexOf("%")?percentToValue(parseInt(i.width.replace("%","")),a.width):j.data("naturalWidth"),p="string"==typeof i.height&&-1!=i.height.indexOf("%")?percentToValue(parseInt(i.height.replace("%","")),a.height):j.data("naturalHeight"),q="string"==typeof i.width&&-1!=i.width.indexOf("%")||"string"==typeof i.height&&-1!=i.height.indexOf("%")?{width:o,height:p}:b.getNewDimenstions(f,g,o,p),r=$.extend({},q,{});"prev"==a.type||"next"==a.type?(o=parseInt(q.width*("next"==a.type?d.styles.nextScale:d.styles.prevScale)),p=parseInt(q.height*("next"==a.type?d.styles.nextScale:d.styles.prevScale))):(o=q.width,p=q.height);var s=parseInt((getPixel(j,"padding-left")+getPixel(j,"padding-right")+getPixel(j,"border-left-width")+getPixel(j,"border-right-width"))/2),t=parseInt((getPixel(j,"padding-top")+getPixel(j,"padding-bottom")+getPixel(j,"border-top-width")+getPixel(j,"border-bottom-width")+$(".ilightbox-inner-toolbar",j).outerHeight())/2);switch(a.type){case"current":var u=parseInt(a.height/2-p/2-t-n/2),v=parseInt(a.width/2-o/2-s-m/2);break;case"next":var u="horizontal"==e?parseInt(a.height/2-l-p/2-t-n/2):parseInt(a.height-k-t-n/2),v="horizontal"==e?parseInt(a.width-k-s-m/2):parseInt(a.width/2-o/2-s-l-m/2);break;case"prev":var u="horizontal"==e?parseInt(a.height/2-l-p/2-t-n/2):parseInt(k-t-p-n/2),v="horizontal"==e?parseInt(k-s-o-m/2):parseInt(a.width/2-l-o/2-s-m/2)}j.data("offset",{top:u,left:v,newDims:r,diff:{W:s,H:t},thumbsOffset:{W:m,H:n},object:a}),a.animate>0&&d.effects.reposition?(j.css(transform,gpuAcceleration).stop().animate({top:u,left:v},d.effects.repositionSpeed,"easeOutCirc",function(){j.css(transform,"")}),$("div.ilightbox-container",j).stop().animate({width:o,height:p},d.effects.repositionSpeed,"easeOutCirc"),$("div.ilightbox-inner-toolbar",j).stop().animate({width:o},d.effects.repositionSpeed,"easeOutCirc",function(){$(this).css("overflow","visible")})):(j.css({top:u,left:v}),$("div.ilightbox-container",j).css({width:o,height:p}),$("div.ilightbox-inner-toolbar",j).css({width:o}))},resume:function(a){var b=this,c=b.vars,d=b.options;!d.slideshow.pauseTime||d.controls.slideshow&&c.total<=1||a<c.isPaused||(c.isPaused=0,c.cycleID&&(c.cycleID=clearTimeout(c.cycleID)),c.cycleID=setTimeout(function(){c.current==c.total-1?b.goTo(0):b.moveTo("next")},d.slideshow.pauseTime))},pause:function(a){var b=this,c=b.vars;b.options;a<c.isPaused||(c.isPaused=a||100,c.cycleID&&(c.cycleID=clearTimeout(c.cycleID)))},resetCycle:function(){var a=this,b=a.vars,c=a.options;c.controls.slideshow&&b.cycleID&&!b.isPaused&&a.resume()},getNewDimenstions:function(a,b,c,d,e){var f=this;a?b?factor=min(a/c,b/d):factor=a/c:factor=b/d,e||(factor>f.options.maxScale?factor=f.options.maxScale:factor<f.options.minScale&&(factor=f.options.minScale));var g=f.options.keepAspectRatio?round(c*factor):a,h=f.options.keepAspectRatio?round(d*factor):b;return{width:g,height:h,ratio:factor}},setOption:function(a){var b=this;b.options=$.extend(!0,b.options,a||{}),b.refresh()},availPlugins:function(){var a=this,b=document.createElement("video");a.plugins={flash:!1,quicktime:parseInt(PluginDetect.getVersion("QuickTime"))>=0?!0:!1,html5H264:!(!b.canPlayType||!b.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!b.canPlayType||!b.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!b.canPlayType||!b.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!b.canPlayType||!b.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(a,b){var c,d=this;switch(b.type){case"video":var e=!1,f=b.videoType,g=b.options.html5video;("video/mp4"==f||"mp4"==b.ext||"m4v"==b.ext||g.h264)&&d.plugins.html5H264?(b.ext="mp4",b.URL=g.h264||b.URL):g.webm&&d.plugins.html5WebM?(b.ext="webm",b.URL=g.webm||b.URL):g.ogg&&d.plugins.html5Vorbis&&(b.ext="ogv",b.URL=g.ogg||b.URL),!d.plugins.html5H264||"video/mp4"!=f&&"mp4"!=b.ext&&"m4v"!=b.ext?!d.plugins.html5WebM||"video/webm"!=f&&"webm"!=b.ext?!d.plugins.html5Vorbis||"video/ogg"!=f&&"ogv"!=b.ext?!d.plugins.html5QuickTime||"video/quicktime"!=f&&"mov"!=b.ext&&"qt"!=b.ext||(e=!0,f="video/quicktime"):(e=!0,f="video/ogg"):(e=!0,f="video/webm"):(e=!0,f="video/mp4"),e?c=$("<video />",{width:"100%",height:"100%",preload:g.preload,autoplay:g.autoplay,poster:g.poster,controls:g.controls}).append($("<source />",{src:b.URL,type:f})):d.plugins.quicktime?(c=$("<object />",{type:"video/quicktime",pluginspage:pluginspages.quicktime}).attr({data:b.URL,width:"100%",height:"100%"}).append($("<param />",{name:"src",value:b.URL})).append($("<param />",{name:"autoplay",value:"false"})).append($("<param />",{name:"loop",value:"false"})).append($("<param />",{name:"scale",value:"tofit"})),browser.msie&&(c=QT_GenerateOBJECTText(b.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):c=$("<span />",{"class":"ilightbox-alert",html:d.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.quicktime).replace("{type}","QuickTime")});break;case"flash":if(d.plugins.flash){var h="",i=0;b.options.flashvars?$.each(b.options.flashvars,function(a,b){0!=i&&(h+="&"),h+=a+"="+encodeURIComponent(b),i++}):h=null,c=$("<embed />").attr({type:"application/x-shockwave-flash",src:b.URL,width:"number"==typeof b.options.width&&b.options.width&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:h,fullscreen:"yes"})}else c=$("<span />",{"class":"ilightbox-alert",html:d.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.flash).replace("{type}","Adobe Flash player")});break;case"iframe":for(var j=b.URL.substring(b.URL.indexOf("?")+1).split("&"),k={},l="?",m=0;m<j.length;++m){var n=j[m].split("=");2==n.length&&(k[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}if(l+=k.autoplay!==undefined?"&autoplay="+k.autoplay:"",l+=k.rel!==undefined?"&rel="+k.rel:"",-1!=b.URL.indexOf("vimeo.com")){var o=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,p=b.URL.match(o);if(p)var q="//player.vimeo.com/video/"+p[3]+"?title=0&amp;byline=0&amp;portrait=0"+l;else var q=b.URL}else{var o=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,p=b.URL.match(o);if(p)var q="//www.youtube.com/embed/"+p[7]+l;else var q=b.URL}c=$("<iframe />").attr({width:"number"==typeof b.options.width&&b.options.width&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.height:"100%",src:q,frameborder:0,hspace:0,vspace:0,scrolling:supportTouch?"auto":"scroll",webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case"inline":c=$('<div class="ilightbox-wrapper"></div>').html($(b.URL).clone(!0));break;case"html":var c,r=b.URL;if(r[0].nodeName)c=$('<div class="ilightbox-wrapper"></div>').html(r);else{var s=$(b.URL),t=s.selector?$("<div>"+s+"</div>"):s;c=$('<div class="ilightbox-wrapper"></div>').html(t)}}return $("div.ilightbox-container",a).empty().html(c),"video"===c[0].tagName.toLowerCase()&&browser.webkit&&setTimeout(function(){var a=c[0].currentSrc+"?"+floor(3e4*random());c[0].currentSrc=a,c[0].src=a}),c},ogpRecognition:function(a,b){var c=this,d=a.URL;c.showLoader(),doAjax(d,function(a){if(c.hideLoader(),a){var d=new Object;if(d.length=!1,d.url=a.url,200==a.status){var e=a.results,f=e.type,g=e.source;d.type=f,d.html5video=e.html5video||{},d.length=!0,e.images&&(d.thumbnail=e.images[0]),g&&(d.source=g.src,d.width=g.width&&parseInt(g.width)||0,d.height=g.height&&parseInt(g.height)||0,d.thumbnail=g.thumbnail,"application/x-shockwave-flash"==g.type?d.type="flash":-1!=g.type.indexOf("video/")?d.type="video":-1!=g.type.indexOf("/html")?d.type="iframe":-1!=g.type.indexOf("image/")&&(d.type="image"))}else if("undefined"!=typeof a.response)throw a.response;b.call(this,d.length?d:!1)}})},hashChangeHandler:function(a){var b=this,c=b.vars,d=b.options,e=a||window.location.href,f=parseURI(e).hash,g=f.split("/"),h=g[1];if(!(c.hashLock||"#"+d.linkId!=g[0]&&f.length>1))if(h){var i=g[1]||0;if(b.items[i]){var j=$(".ilightbox-overlay");j.length&&j.attr("linkid")==d.linkId?b.goTo(i):b.itemsObject[i].trigger(supportTouch?"itap":"click")}else{var j=$(".ilightbox-overlay");j.length&&b.closeAction()}}else{var j=$(".ilightbox-overlay");j.length&&b.closeAction()}}},$.fn.iLightBox=function(){var a=arguments,b=$.isPlainObject(a[0])?a[0]:a[1],c=$.isArray(a[0])||"string"==typeof a[0]?a[0]:a[1];b||(b={});var d=$.extend(!0,{attr:"href",path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5e3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(a,b){},cache:!1,complete:function(a,b){},crossDomain:!1,error:function(a,b,c){},success:function(a,b,c){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},b),e=$.isArray(c)||"string"==typeof c?!0:!1;if(c=$.isArray(c)?c:new Array,"string"==typeof a[0]&&(c[0]=a[0]),version_compare($.fn.jquery,"1.8",">=")){var f=new iLightBox($(this),d,c,e);return{close:function(){f.closeAction()},fullscreen:function(){f.fullScreenAction()},moveNext:function(){f.moveTo("next")},movePrev:function(){f.moveTo("prev")},goTo:function(a){f.goTo(a)},refresh:function(){f.refresh()},reposition:function(){arguments.length>0?f.repositionPhoto(!0):f.repositionPhoto()},setOption:function(a){f.setOption(a)},destroy:function(){f.closeAction(),f.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+"},$.iLightBox=function(){return $.fn.iLightBox(arguments[0],arguments[1])},$.extend($.easing,{easeInCirc:function(a,b,c,d,e){return-d*(sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(sqrt(1-b*b)-1)+c:d/2*(sqrt(1-(b-=2)*b)+1)+c}}),function(){$.each("touchstart touchmove touchend tap taphold swipeleft swiperight scrollstart scrollstop".split(" "),function(a,b){$.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)},$.attrFn&&($.attrFn[b]=!0)});var a={startEvent:"touchstart.iTap",endEvent:"touchend.iTap"};$.event.special.itap={setup:function(){var b,c,d=this,e=$(this);e.bind(a.startEvent,function(f){b=getScrollXY(),e.one(a.endEvent,function(a){c=getScrollXY();var e=a||window.event;a=$.event.fix(e),a.type="itap",b&&c&&b.x==c.x&&b.y==c.y&&($.event.dispatch||$.event.handle).call(d,a),b=c=undefined})})},teardown:function(){$(this).unbind(a.startEvent)}}}(),function(){if(fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},browserPrefixes="webkit moz o ms khtml".split(" "),"undefined"!=typeof document.cancelFullScreen)fullScreenApi.supportsFullScreen=!0;else for(var a=0,b=browserPrefixes.length;b>a;a++)if(fullScreenApi.prefix=browserPrefixes[a],"undefined"!=typeof document[fullScreenApi.prefix+"CancelFullScreen"]){fullScreenApi.supportsFullScreen=!0;break}fullScreenApi.supportsFullScreen&&(fullScreenApi.fullScreenEventName=fullScreenApi.prefix+"fullscreenchange",fullScreenApi.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},fullScreenApi.requestFullScreen=function(a){return""===this.prefix?a.requestFullScreen():a[this.prefix+"RequestFullScreen"]()},fullScreenApi.cancelFullScreen=function(a){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})}(),function(){function a(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}}var b=a(navigator.userAgent);browser={},b.browser&&(browser[b.browser]=!0,browser.version=b.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0)}(),function(){function a(a){for(var d=0,e=b.length;e>d;d++){var f=b[d]?b[d]+a.charAt(0).toUpperCase()+a.slice(1):a;if(c.style[f]!==undefined)return f}}var b=["","webkit","moz","ms","o"],c=document.createElement("div");transform=a("transform")||"",gpuAcceleration=a("perspective")?"translateZ(0) ":""}();var PluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(a,b,c){return function(){a(b,c)}},openTag:"<",isDefined:function(a){return"undefined"!=typeof a},isArray:function(a){return/array/i.test(Object.prototype.toString.call(a))},isFunc:function(a){return"function"==typeof a},isString:function(a){return"string"==typeof a},isNum:function(a){return"number"==typeof a},isStrNum:function(a){return"string"==typeof a&&/\d/.test(a)},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(a,b){var c=this,d=c.isStrNum(a)?(c.isDefined(b)?new RegExp(b):c.getNumRegx).exec(a):null;return d?d[0]:null},compareNums:function(a,b,c){var d,e,f,g=this,h=parseInt;if(g.isStrNum(a)&&g.isStrNum(b)){if(g.isDefined(c)&&c.compareNums)return c.compareNums(a,b);for(d=a.split(g.splitNumRegx),e=b.split(g.splitNumRegx),f=0;f<min(d.length,e.length);f++){if(h(d[f],10)>h(e[f],10))return 1;if(h(d[f],10)<h(e[f],10))return-1}}return 0},formatNum:function(a,b){var c,d,e=this;if(!e.isStrNum(a))return null;for(e.isNum(b)||(b=4),b--,d=a.replace(/\s/g,"").split(e.splitNumRegx).concat(["0","0","0","0"]),c=0;4>c;c++)/^(0+)(.+)$/.test(d[c])&&(d[c]=RegExp.$2),(c>b||!/\d/.test(d[c]))&&(d[c]="0");return d.slice(0,4).join(",")},$$hasMimeType:function(a){return function(b){if(!a.isIE&&b){var c,d,e,f=a.isArray(b)?b:a.isString(b)?[b]:[];for(e=0;e<f.length;e++)if(a.isString(f[e])&&/[^\s]/.test(f[e])&&(c=navigator.mimeTypes[f[e]],d=c?c.enabledPlugin:0,d&&(d.name||d.description)))return c}return null}},findNavPlugin:function(a,b,c){var d,e,f,g=this,h=new RegExp(a,"i"),i=!g.isDefined(b)||b?/\d/:0,j=c?new RegExp(c,"i"):0,k=navigator.plugins,l="";for(d=0;d<k.length;d++)if(f=k[d].description||l,e=k[d].name||l,(h.test(f)&&(!i||i.test(RegExp.leftContext+RegExp.rightContext))||h.test(e)&&(!i||i.test(RegExp.leftContext+RegExp.rightContext)))&&(!j||!j.test(f)&&!j.test(e)))return k[d];return null},getMimeEnabledPlugin:function(a,b,c){var d,e,f,g,h=this,i=new RegExp(b,"i"),j="",k=c?new RegExp(c,"i"):0,l=h.isString(a)?[a]:a;for(g=0;g<l.length;g++)if((d=h.hasMimeType(l[g]))&&(d=d.enabledPlugin)&&(f=d.description||j,e=d.name||j,(i.test(f)||i.test(e))&&(!k||!k.test(f)&&!k.test(e))))return d;return 0},getPluginFileVersion:function(a,b){var c,d,e,f,g=this,h=-1;if(g.OS>2||!a||!a.version||!(c=g.getNum(a.version)))return b;if(!b)return c;for(c=g.formatNum(c),b=g.formatNum(b),d=b.split(g.splitNumRegx),e=c.split(g.splitNumRegx),f=0;f<d.length;f++){if(h>-1&&f>h&&"0"!=d[f])return b;if(e[f]!=d[f]&&(-1==h&&(h=f),"0"!=d[f]))return b}return c},AXO:window.ActiveXObject,getAXO:function(a){var b=null,c=this;try{b=new c.AXO(a)}catch(d){}return b},convertFuncs:function(a){var b,c,d=/^[\$][\$]/;for(b in a)if(d.test(b))try{c=b.slice(2),c.length>0&&!a[c]&&(a[c]=a[b](a),delete a[b])}catch(e){}},initObj:function(a,b,c){var d,e;if(a){if(1==a[b[0]]||c)for(d=0;d<b.length;d+=2)a[b[d]]=b[d+1];for(d in a)e=a[d],e&&1==e[b[0]]&&this.initObj(e,b)}},initScript:function(){var a,b=this,c=navigator,d=document,e=c.userAgent||"",f=c.vendor||"",g=c.platform||"",h=c.product||"";b.initObj(b,["$",b]);for(a in b.Plugins)b.Plugins[a]&&b.initObj(b.Plugins[a],["$",b,"$$",b.Plugins[a]],1);if(b.convertFuncs(b),b.OS=100,g){var i=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(a=i.length-2;a>=0;a-=2)if(i[a]&&new RegExp(i[a],"i").test(g)){b.OS=i[a+1];break}}if(b.head=d.getElementsByTagName("head")[0]||d.getElementsByTagName("body")[0]||d.body||null,b.isIE=new Function("return/*@cc_on!@*/!1")(),b.verIE=b.isIE&&/MSIE\s*(\d+\.?\d*)/i.test(e)?parseFloat(RegExp.$1,10):null,b.verIEfull=null,b.docModeIE=null,b.isIE){var j,k=document.createElement("div");try{k.style.behavior="url(#default#clientcaps)",b.verIEfull=k.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch(l){}j=parseFloat(b.verIEfull||"0",10),b.docModeIE=d.documentMode||(/back/i.test(d.compatMode||"")?5:j)||b.verIE,b.verIE=j||b.docModeIE}if(b.ActiveXEnabled=!1,b.isIE){var a,m=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(a=0;a<m.length;a++)if(b.getAXO(m[a])){b.ActiveXEnabled=!0;break}}b.isGecko=/Gecko/i.test(h)&&/Gecko\s*\/\s*\d/i.test(e),b.verGecko=b.isGecko?b.formatNum(/rv\s*\:\s*([\.\,\d]+)/i.test(e)?RegExp.$1:"0.9"):null,b.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(e),b.verChrome=b.isChrome?b.formatNum(RegExp.$1):null,b.isSafari=(/Apple/i.test(f)||!f&&!b.isChrome)&&/Safari\s*\/\s*(\d[\d\.]*)/i.test(e),b.verSafari=b.isSafari&&/Version\s*\/\s*(\d[\d\.]*)/i.test(e)?b.formatNum(RegExp.$1):null,b.isOpera=/Opera\s*[\/]?\s*(\d+\.?\d*)/i.test(e),b.verOpera=b.isOpera&&(/Version\s*\/\s*(\d+\.?\d*)/i.test(e),!0)?parseFloat(RegExp.$1,10):null,b.addWinEvent("load",b.handler(b.runWLfuncs,b))},init:function(a){var b,a,c=this,d={status:-3,plugin:0};return c.isString(a)?1==a.length?(c.getVersionDelimiter=a,d):(a=a.toLowerCase().replace(/\s/g,""),b=c.Plugins[a],b&&b.getVersion?(d.plugin=b,c.isDefined(b.installed)||(b.installed=null,b.version=null,b.version0=null,b.getVersionDone=null,b.pluginName=a),c.garbage=!1,c.isIE&&!c.ActiveXEnabled&&"java"!==a?(d.status=-2,d):(d.status=1,d)):d):d},fPush:function(a,b){var c=this;c.isArray(b)&&(c.isFunc(a)||c.isArray(a)&&a.length>0&&c.isFunc(a[0]))&&b.push(a)},callArray:function(a){var b,c=this;if(c.isArray(a))for(b=0;b<a.length;b++){if(null===a[b])return;c.call(a[b]),a[b]=null}},call:function(a){var b=this,c=b.isArray(a)?a.length:-1;c>0&&b.isFunc(a[0])?a[0](b,c>1?a[1]:0,c>2?a[2]:0,c>3?a[3]:0):b.isFunc(a)&&a(b)},getVersionDelimiter:",",$$getVersion:function(a){return function(b,c,d){var e,f,g=a.init(b);return g.status<0?null:(e=g.plugin,1!=e.getVersionDone&&(e.getVersion(null,c,d),null===e.getVersionDone&&(e.getVersionDone=1)),a.cleanup(),f=e.version||e.version0,f=f?f.replace(a.splitNumRegx,a.getVersionDelimiter):f)}},cleanup:function(){var a=this;a.garbage&&a.isDefined(window.CollectGarbage)&&window.CollectGarbage()},isActiveXObject:function(a,b){var c=this,d=!1,e='<object width="1" height="1" style="display:none" '+a.getCodeBaseVersion(b)+">"+a.HTML+c.openTag+"/object>";if(!c.head)return d;c.head.insertBefore(document.createElement("object"),c.head.firstChild),c.head.firstChild.outerHTML=e;try{c.head.firstChild.classid=a.classID}catch(f){}try{c.head.firstChild.object&&(d=!0)}catch(f){}try{d&&c.head.firstChild.readyState<4&&(c.garbage=!0)}catch(f){}return c.head.removeChild(c.head.firstChild),d},codebaseSearch:function(a,b){var c=this;if(!c.ActiveXEnabled||!a)return null;a.BIfuncs&&a.BIfuncs.length&&null!==a.BIfuncs[a.BIfuncs.length-1]&&c.callArray(a.BIfuncs);var d,e=a.SEARCH;if(c.isStrNum(b))return e.match&&e.min&&c.compareNums(b,e.min)<=0?!0:e.match&&e.max&&c.compareNums(b,e.max)>=0?!1:(d=c.isActiveXObject(a,b),d&&(!e.min||c.compareNums(b,e.min)>0)&&(e.min=b),d||e.max&&!(c.compareNums(b,e.max)<0)||(e.max=b),d);var f,g,h,i,j,k=[0,0,0,0],l=[].concat(e.digits),m=e.min?1:0,n=function(b,d){var e=[].concat(k);return e[b]=d,c.isActiveXObject(a,e.join(","))};if(e.max){for(i=e.max.split(c.splitNumRegx),f=0;f<i.length;f++)i[f]=parseInt(i[f],10);i[0]<l[0]&&(l[0]=i[0])}if(e.min){for(j=e.min.split(c.splitNumRegx),f=0;f<j.length;f++)j[f]=parseInt(j[f],10);j[0]>k[0]&&(k[0]=j[0])}if(j&&i)for(f=1;f<j.length&&j[f-1]==i[f-1];f++)i[f]<l[f]&&(l[f]=i[f]),j[f]>k[f]&&(k[f]=j[f]);if(e.max)for(f=1;f<l.length;f++)if(i[f]>0&&0==l[f]&&l[f-1]<e.digits[f-1]){l[f-1]+=1;break}for(f=0;f<l.length;f++){for(h={},g=0;20>g&&!(l[f]-k[f]<1)&&(d=round((l[f]+k[f])/2),!h["a"+d]);g++)h["a"+d]=1,n(f,d)?(k[f]=d,m=1):l[f]=d;if(l[f]=k[f],!m&&n(f,k[f])&&(m=1),!m)break}return m?k.join(","):null},addWinEvent:function(a,b){var c,d=this,e=window;d.isFunc(b)&&(e.addEventListener?e.addEventListener(a,b,!1):e.attachEvent?e.attachEvent("on"+a,b):(c=e["on"+a],e["on"+a]=d.winHandler(b,c)))},winHandler:function(a,b){return function(){a(),"function"==typeof b&&b()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(a){a.winLoaded=!0,a.callArray(a.WLfuncs0),a.callArray(a.WLfuncs),a.onDoneEmptyDiv&&a.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(a){return function(b){a.winLoaded?a.call(b):a.fPush(b,a.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var a,b,c,d,e,f=this;if(f.div&&f.div.childNodes)for(a=f.div.childNodes.length-1;a>=0;a--){if(c=f.div.childNodes[a],c&&c.childNodes)for(b=c.childNodes.length-1;b>=0;b--){e=c.childNodes[b];try{c.removeChild(e)}catch(g){}}if(c)try{f.div.removeChild(c)}catch(g){}}if(f.div||(d=document.getElementById(f.divID),d&&(f.div=d)),f.div&&f.div.parentNode){try{f.div.parentNode.removeChild(f.div)}catch(g){}f.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var a,b,c=this;if(c.winLoaded&&(!c.WLfuncs||!c.WLfuncs.length||null===c.WLfuncs[c.WLfuncs.length-1])){for(a in c)if(b=c[a],b&&b.funcs){if(3==b.OTF)return;if(b.funcs.length&&null!==b.funcs[b.funcs.length-1])return}for(a=0;a<c.DONEfuncs.length;a++)c.callArray(c.DONEfuncs);c.emptyDiv()}},getWidth:function(a){if(a){var b=a.scrollWidth||a.offsetWidth,c=this;if(c.isNum(b))return b}return-1},getTagStatus:function(a,b,c,d){var e=this,f=a.span,g=e.getWidth(f),h=c.span,i=e.getWidth(h),j=b.span,k=e.getWidth(j);if(!(f&&h&&j&&e.getDOMobj(a)))return-2;if(k>i||0>g||0>i||0>k||k<=e.pluginSize||e.pluginSize<1)return 0;if(g>=k)return-1;try{if(g==e.pluginSize&&(!e.isIE||4==e.getDOMobj(a).readyState)){if(!a.winLoaded&&e.winLoaded)return 1;if(a.winLoaded&&e.isNum(d)&&(e.isNum(a.count)||(a.count=d),d-a.count>=10))return 1}}catch(l){}return 0},getDOMobj:function(a,b){var c=this,d=a?a.span:0,e=d&&d.firstChild?1:0;try{e&&b&&c.div.focus()}catch(f){}return e?d.firstChild:null},setStyle:function(a,b){var c,d=a.style;if(d&&b)for(c=0;c<b.length;c+=2)try{d[b[c]]=b[c+1]}catch(e){}},insertDivInBody:function(a,b){var c=this,d="pd33993399",e=null,f=b?window.top.document:window.document,g=f.getElementsByTagName("body")[0]||f.body;if(!g)try{f.write('<div id="'+d+'">.'+c.openTag+"/div>"),e=f.getElementById(d)}catch(h){}g=f.getElementsByTagName("body")[0]||f.body,g&&(g.insertBefore(a,g.firstChild),e&&g.removeChild(e))},insertHTML:function(a,b,c,d,e){var f,g,h,i=document,j=this,k=i.createElement("span"),l=["outlineStyle","none","borderStyle","none","padding","0px","margin","0px","visibility","visible"],m="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;";if(j.isDefined(d)||(d=""),j.isString(a)&&/[^\s]/.test(a)){for(a=a.toLowerCase().replace(/\s/g,""),f=j.openTag+a+' width="'+j.pluginSize+'" height="'+j.pluginSize+'" ',f+='style="'+m+'display:inline;" ',g=0;g<b.length;g+=2)/[^\s]/.test(b[g+1])&&(f+=b[g]+'="'+b[g+1]+'" ');for(f+=">",g=0;g<c.length;g+=2)/[^\s]/.test(c[g+1])&&(f+=j.openTag+'param name="'+c[g]+'" value="'+c[g+1]+'" />');f+=d+j.openTag+"/"+a+">"}else f=d;if(j.div||(h=i.getElementById(j.divID),h?j.div=h:(j.div=i.createElement("div"),j.div.id=j.divID),j.setStyle(j.div,l.concat(["width",j.divWidth+"px","height",j.pluginSize+3+"px","fontSize",j.pluginSize+3+"px","lineHeight",j.pluginSize+3+"px","verticalAlign","baseline","display","block"])),h||(j.setStyle(j.div,["position","absolute","right","0px","top","0px"]),j.insertDivInBody(j.div))),j.div&&j.div.parentNode){j.setStyle(k,l.concat(["fontSize",j.pluginSize+3+"px","lineHeight",j.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{k.innerHTML=f}catch(n){}try{j.div.appendChild(k)}catch(n){}return{span:k,winLoaded:j.winLoaded,tagName:a,outerHTML:f}}return{span:null,winLoaded:j.winLoaded,tagName:"",outerHTML:f}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(a){return'codebase="#version='+a+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(a){var b,c=this,d=c.$,e=null,f=null;if(d.isIE){if(d.isStrNum(a)&&(b=a.split(d.splitNumRegx),b.length>3&&parseInt(b[3],10)>0&&(b[3]="9999"),a=b.join(",")),d.isStrNum(a)&&d.verIE>=c.minIEver&&c.canUseIsMin()>0)return c.installed=c.isMin(a),void(c.getVersionDone=0);c.getVersionDone=1,!e&&d.verIE>=c.minIEver&&(e=c.CDBASE2VER(d.codebaseSearch(c))),e||(f=d.getAXO(c.progID),f&&f.QuickTimeVersion&&(e=f.QuickTimeVersion.toString(16),e=parseInt(e.charAt(0),16)+"."+parseInt(e.charAt(1),16)+"."+parseInt(e.charAt(2),16)))}else d.hasMimeType(c.mimeType)&&(f=3!=d.OS?d.findNavPlugin("QuickTime.*Plug-?in",0):null,f&&f.name&&(e=d.getNum(f.name)));c.installed=e?1:f?0:-1,c.version=d.formatNum(e,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(a,b){var c=b.split(a.$.splitNumRegx);return[c[0],c[1].charAt(0),c[1].charAt(1),c[2]].join(",")},null],CDBASE2VER:function(a){var b,c=this,d=c.$,e=c.cdbaseUpper,f=c.cdbaseLower;if(a)for(a=d.formatNum(a),b=0;b<e.length;b++)if(e[b]&&d.compareNums(a,e[b])<0&&f[b]&&d.compareNums(a,f[b])>=0&&c.cdbase2ver[b])return c.cdbase2ver[b](c,a);return a},canUseIsMin:function(){var a,b=this,c=b.$,d=b.canUseIsMin,e=b.cdbaseUpper,f=b.cdbaseLower;if(!d.value)for(d.value=-1,a=0;a<e.length;a++){if(e[a]&&c.codebaseSearch(b,e[a])){d.value=1;break}if(f[a]&&c.codebaseSearch(b,f[a])){d.value=-1;break}}return b.SEARCH.match=1==d.value?1:0,d.value},isMin:function(a){var b=this,c=b.$;return c.codebaseSearch(b,a)?.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var a,b,c,d,e=function(a){if(!a)return null;var b=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(a);return b?b[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},f=this,g=f.$,h=null,i=null,j=null;if(g.isIE){for(a=15;a>2;a--)if(i=g.getAXO(f.progID+"."+a)){j=a.toString();break}if(i||(i=g.getAXO(f.progID)),"6"==j)try{i.AllowScriptAccess="always"}catch(k){return"6,0,21,0"}try{h=e(i.GetVariable("$version"))}catch(k){}!h&&j&&(h=j)}else{if(c=g.hasMimeType(f.mimeType)){b=g.getDOMobj(g.insertHTML("object",["type",f.mimeType],[],"",f));try{h=g.getNum(b.GetVariable("$version"))}catch(k){}}h||(d=c?c.enabledPlugin:null,d&&d.description&&(h=e(d.description)),h&&(h=g.getPluginFileVersion(d,h)))}return f.installed=h?1:-1,f.version=g.formatNum(h),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var a,b=null,c=null,d=this,e=d.$;if(e.isIE){try{c=e.getAXO(d.progID).ShockwaveVersion("")}catch(f){}e.isString(c)&&c.length>0?b=e.getNum(c):e.getAXO(d.progID+".8")?b="8":e.getAXO(d.progID+".7")?b="7":e.getAXO(d.progID+".1")&&(b="6")}else a=e.findNavPlugin("Shockwave\\s*for\\s*Director"),a&&a.description&&e.hasMimeType(d.mimeType)&&(b=e.getNum(a.description)),b&&(b=e.getPluginFileVersion(a,b));d.installed=b?1:-1,d.version=e.formatNum(b)}},zz:0}};PluginDetect.initScript();var gArgCountErr='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',gTagAttrs=null,gQTGeneratorVersion=1;!function(){function a(a){return a=a||location.href,"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var b,c=document,d=$.event.special,e=c.documentMode,f="oniLightBoxHashChange"in window&&(void 0===e||e>7);$.fn.iLightBoxHashChange=function(a){return a?this.bind("iLightBoxHashChange",a):this.trigger("iLightBoxHashChange")},$.fn.iLightBoxHashChange.delay=50,d.iLightBoxHashChange=$.extend(d.iLightBoxHashChange,{setup:function(){return f?!1:void $(b.start)},teardown:function(){return f?!1:void $(b.stop)}}),b=function(){function b(){var c=a(),e=j(g);c!==g?(i(g=c,e),$(window).trigger("iLightBoxHashChange")):e!==g&&(location.href=location.href.replace(/#.*/,"")+e),d=setTimeout(b,$.fn.iLightBoxHashChange.delay)}var d,e={},g=a(),h=function(a){return a},i=h,j=h;return e.start=function(){d||b()},e.stop=function(){d&&clearTimeout(d),d=void 0},browser.msie&&!f&&function(){var d,f;e.start=function(){d||(f=(f=$.fn.iLightBoxHashChange.src)&&f+a(),d=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){f||i(a()),b()}).attr("src",f||"javascript:0").insertAfter("body")[0].contentWindow,c.onpropertychange=function(){try{"title"===event.propertyName&&(d.document.title=c.title)}catch(a){}})},e.stop=h,j=function(){return a(d.location.href)},i=function(a,b){var e=d.document,f=$.fn.iLightBoxHashChange.domain;a!==b&&(e.title=c.title,e.open(),f&&e.write('<script>document.domain="'+f+'"</script>'),e.close(),d.location.hash=a)}}(),e}()}(),Array.prototype.filter||(Array.prototype.filter=function(a){"use strict";
if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments[1],f=0;c>f;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0===e)return-1;var f=+b||0;if(abs(f)===1/0&&(f=0),f>=e)return-1;for(c=max(f>=0?f:e-abs(f),0);e>c;){if(c in d&&d[c]===a)return c;c++}return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*floor(abs(d))));for(var e=d>=0?min(d,c-1):c-abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1})}(jQuery,this);var $avada_lightbox={},$il_instances=[];if($avada_lightbox.initialize_lightbox=function(){1==Number(js_local_vars.status_lightbox)&&($avada_lightbox.set_title_and_caption(),$avada_lightbox.activate_lightbox())},$avada_lightbox.activate_lightbox=function(a){"undefined"==typeof a&&(a=jQuery("body"));var b=[];a.find('[data-rel^="prettyPhoto["], [rel^="prettyPhoto["], [data-rel^="iLightbox["], [rel^="iLightbox["]').each(function(){var a=["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","svg","mp4","ogg","webm"],c=0,d=jQuery(this).attr("href");"undefined"==typeof d&&(d="");for(var e=0;e<a.length;e++)c+=String(d).toLowerCase().indexOf("."+a[e]);var f=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,g=d.match(f);if(g&&(c=1),f=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,g=d.match(f),g&&(c=1),-13==c&&jQuery(this).addClass("fusion-no-lightbox"),!jQuery(this).hasClass("fusion-no-lightbox")){var h=this.getAttribute("data-rel");null!=h&&-1===jQuery.inArray(h,b)&&b.push(h);var i=this.getAttribute("data-rel");null!=i&&(jQuery(this).parents(".gallery").length&&(i=i.replace("postimages",jQuery(this).parents(".gallery").attr("id")),jQuery(this).attr("data-rel",i)),-1===jQuery.inArray(i,b)&&b.push(i))}});var c=1;a.find(".tiled-gallery").each(function(){jQuery(this).find(".tiled-gallery-item > a").each(function(){var a=this.getAttribute("data-rel");null==a&&(a="iLightbox[tiled-gallery-"+c+"]",jQuery(this).attr("data-rel",a)),-1===jQuery.inArray(a,b)&&b.push(a)}),c++}),jQuery.each(b,function(a,b){1==jQuery('[data-rel="'+b+'"], [rel="'+b+'"]').length?$il_instances.push(jQuery('[data-rel="'+b+'"], [rel="'+b+'"]').iLightBox($avada_lightbox.prepare_options(b,!1))):$il_instances.push(jQuery('[data-rel="'+b+'"], [rel="'+b+'"]').iLightBox($avada_lightbox.prepare_options(b)))}),a.find("a[rel='prettyPhoto'], a[data-rel='prettyPhoto'], a[rel='iLightbox'], a[data-rel='iLightbox']").each(function(){$il_instances.push(jQuery(this).iLightBox($avada_lightbox.prepare_options("single")))}),a.find("#lightbox-link, .lightbox-link, .fusion-lightbox-link").each(function(){$il_instances.push(jQuery(this).iLightBox($avada_lightbox.prepare_options("single")))}),Boolean(Number(js_local_vars.lightbox_post_images))&&a.find(".type-post .post-content a, #posts-container .post .post-content a, .fusion-blog-shortcode .post .post-content a").has("img").each(function(){for(var a=["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","svg","mp4","ogg","webm"],b=0,c=0;c<a.length;c++)b+=String(jQuery(this).attr("href")).toLowerCase().indexOf("."+a[c]);-13==b&&jQuery(this).addClass("fusion-no-lightbox"),-1!==String(jQuery(this).attr("rel")).indexOf("prettyPhoto")||-1!==String(jQuery(this).attr("data-rel")).indexOf("prettyPhoto")||-1!==String(jQuery(this).attr("rel")).indexOf("iLightbox")||-1!==String(jQuery(this).attr("data-rel")).indexOf("iLightbox")||jQuery(this).hasClass("fusion-no-lightbox")||(jQuery(this).attr("data-caption",jQuery(this).parent().find("p.wp-caption-text").text()),$il_instances.push(jQuery(this).iLightBox($avada_lightbox.prepare_options("post"))))})},$avada_lightbox.set_title_and_caption=function(){jQuery("a[rel^='prettyPhoto'], a[data-rel^='prettyPhoto']").each(function(a){jQuery(this).attr("data-caption")||(jQuery(this).attr("title")?jQuery(this).attr("data-caption",jQuery(this).attr("title")):jQuery(this).attr("data-caption",jQuery(this).parents(".gallery-item").find(".gallery-caption").text())),jQuery(this).attr("data-title")||jQuery(this).attr("data-title",jQuery(this).find("img").attr("alt"))}),jQuery("a[rel^='iLightbox'], a[data-rel^='iLightbox']").each(function(a){jQuery(this).attr("data-caption")||jQuery(this).attr("data-caption",jQuery(this).parents(".gallery-item").find(".gallery-caption").text())})},$avada_lightbox.prepare_options=function(a,b){"undefined"==typeof b&&(b=Boolean(Number(js_local_vars.lightbox_gallery)));var c={Fast:100,Slow:800,Normal:400},d={1:!1,0:!0},e={skin:js_local_vars.lightbox_skin,smartRecognition:!1,minScale:.075,show:{title:Boolean(Number(js_local_vars.lightbox_title)),speed:c[js_local_vars.lightbox_animation_speed]},path:js_local_vars.lightbox_path,controls:{slideshow:b,arrows:Boolean(Number(js_local_vars.lightbox_arrows))},slideshow:{pauseTime:js_local_vars.lightbox_slideshow_speed,pauseOnHover:!1,startPaused:d[Number(js_local_vars.lightbox_autoplay)]},overlay:{opacity:js_local_vars.lightbox_opacity},caption:{start:Boolean(Number(js_local_vars.lightbox_desc)),show:"",hide:""},isMobile:!0};return Boolean(Number(js_local_vars.lightbox_social))&&(e.social={buttons:{facebook:!0,twitter:!0,googleplus:!0,reddit:!0,digg:!0,delicious:!0}}),Boolean(Number(js_local_vars.lightbox_deeplinking))&&(e.linkId=a),e},$avada_lightbox.refresh_lightbox=function(){$avada_lightbox.set_title_and_caption(),jQuery.each($il_instances,function(a,b){b.hasOwnProperty("refresh")&&b.refresh()})},jQuery(document).ajaxComplete(function(){$avada_lightbox.refresh_lightbox()}),jQuery(window).load(function(){$avada_lightbox.initialize_lightbox()}),jQuery(window).load(function(){1==Number(js_local_vars.avada_styles_dropdowns)&&(jQuery(".woocommerce-billing-fields, .woocommerce-shipping-fields").addClass("avada-select"),jQuery(".woocommerce.widget_product_categories select").length&&jQuery(".woocommerce.widget_product_categories select").wrap('<p class="avada-select-parent"></p>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".cart-collaterals select#calc_shipping_country, .widget_layered_nav select").wrap('<p class="avada-select-parent"></p>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".cart-collaterals select#calc_shipping_state").after('<div class="select-arrow">&#xe61f;</div>'),setTimeout(function(){jQuery("#billing_country_field .chosen-container").length||jQuery("#billing_country_field .select2-container").length||(jQuery("#billing_country_field select.country_select").wrap('<p class="avada-select-parent"></p>').after('<span class="select-arrow">&#xe61f;</span>'),!jQuery("#billing_state_field select.state_select").length||jQuery("#billing_state_field .chosen-container").length||jQuery("#billing_state_field .select2-container").length||jQuery("#billing_state_field").addClass("avada-select-parent").append('<div class="select-arrow">&#xe61f;</div>'),jQuery("#billing_country").change(function(){setTimeout(function(){(jQuery("#billing_state_field input#billing_state").length||jQuery("#billing_state_field").is(":hidden"))&&(jQuery("#billing_state_field .select-arrow").remove(),jQuery("#billing_state_field").removeClass("avada-select-parent")),jQuery("#billing_state_field select.state_select").length&&(jQuery("#billing_state_field").addClass("avada-select-parent"),jQuery("#billing_state_field .select-arrow").length||(jQuery("#billing_state_field").append('<div class="select-arrow">&#xe61f;</div>'),calc_select_arrow_dimensions()))},1)})),jQuery("#shipping_country_field .chosen-container").length||jQuery("#shipping_country_field .select2-container").length||(jQuery("#shipping_country_field select.country_select").wrap('<p class="avada-select-parent"></p>').after('<span class="select-arrow">&#xe61f;</span>'),jQuery("#shipping_state_field select.state_select").length&&jQuery("#shipping_state_field").addClass("avada-select-parent").append('<div class="select-arrow">&#xe61f;</div>'),jQuery("#shipping_country").change(function(){setTimeout(function(){(jQuery("#shipping_state_field input#shipping_state").length||jQuery("#shipping_state_field").is(":hidden"))&&(jQuery("#shipping_state_field .select-arrow").remove(),jQuery("#shipping_state_field").removeClass("avada-select-parent")),jQuery("#shipping_state_field select.state_select").length&&(jQuery("#shipping_state_field").addClass("avada-select-parent"),jQuery("#shipping_state_field .select-arrow").length||(jQuery("#shipping_state_field").append('<div class="select-arrow">&#xe61f;</div>'),calc_select_arrow_dimensions()))},1)}))},1),jQuery("#calc_shipping_country").change(function(){setTimeout(function(){jQuery(".avada-shipping-calculator-form select#calc_shipping_state").length&&!jQuery(".avada-shipping-calculator-form #calc_shipping_state").parent().find(".select-arrow").length&&jQuery(".avada-shipping-calculator-form select#calc_shipping_state").after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".avada-shipping-calculator-form input#calc_shipping_state").length&&jQuery(".avada-shipping-calculator-form #calc_shipping_state").parent().children(".select-arrow").remove(),calc_select_arrow_dimensions()},1)}),jQuery("table.variations select, .variations-table select, .product-addon select").wrap('<div class="avada-select-parent"></div>'),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo("table.variations .avada-select-parent, .variations-table .avada-select-parent, .product-addon .avada-select-parent"),jQuery(".wpcf7-select:not([multiple])").wrap('<div class="wpcf7-select-parent"></div>'),jQuery('<div class="select-arrow">&#xe61f;</div>').appendTo(".wpcf7-select-parent"),wrap_gravity_selects(),jQuery("#bbp_stick_topic_select, #bbp_topic_status_select, #bbp_forum_id, #bbp_destination_topic, #wpfc_sermon_sorting select").wrap('<div class="avada-select-parent"></div>').after('<div class="select-arrow">&#xe61f;</div>'),jQuery(".variations_form select").change(function(){jQuery(".product #slider").length&&jQuery(".product #slider").flexslider(0)}),jQuery(".widget_categories select, .widget_archive select ").css("width","100%"),jQuery(".widget_categories select, .widget_archive select ").wrap('<div class="avada-select-parent"></div>').after('<div class="select-arrow">&#xe61f;</div>')),calc_select_arrow_dimensions(),setTimeout(function(){calc_select_arrow_dimensions()},100)}),jQuery(document).bind("gform_post_conditional_logic",function(){var a=jQuery(".gform_wrapper select");jQuery(a).each(function(){jQuery(this).hasClass("chzn-done")&&jQuery(this).parent().hasClass("gravity-select-parent")&&(jQuery(this).parent().find(".select-arrow").remove(),jQuery(this).unwrap('<div class="gravity-select-parent"></div>'))})}),recursive_gform_submission_handler(),jQuery(document).ready(function(){function a(){jQuery("html").niceScroll({background:"#555",scrollspeed:60,mousescrollstep:40,cursorwidth:9,cursorborder:"0px",cursorcolor:"#303030",cursorborderradius:8,preservenativescrolling:!0,cursoropacitymax:1,cursoropacitymin:1,autohidemode:!1,zindex:999999,horizrailenabled:!1}),jQuery("html").getNiceScroll().length?jQuery("html").addClass("no-overflow-y"):jQuery("html").removeClass("no-overflow-y")}var b=js_local_vars.smooth_scrolling;setTimeout(function(){1==b&&!Modernizr.mq("screen and (max-width: "+(800+parseInt(js_local_vars.side_header_width))+"px)")&&jQuery("body").outerHeight(!0)>jQuery(window).height()&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?a():jQuery("html").removeClass("no-overflow-y")},50),jQuery(window).resize(function(){var b=js_local_vars.smooth_scrolling;1==b&&!Modernizr.mq("screen and (max-width: "+(800+parseInt(js_local_vars.side_header_width))+"px)")&&jQuery("body").outerHeight(!0)>jQuery(window).height()&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?a():(jQuery("html").getNiceScroll().remove(),jQuery("html").removeClass("no-overflow-y"),jQuery("html").css("overflow-y","auto"),jQuery("#ascrail2000").css("opacity","1"))})}),jQuery(window).load(function(){jQuery(".bbp-template-notice").each(function(){jQuery(this).hasClass("info")?jQuery(this).attr("class","fusion-alert alert notice alert-dismissable alert-info alert-shadow"):jQuery(this).attr("class","fusion-alert alert notice alert-dismissable alert-warning alert-shadow"),jQuery(this).children("tt").contents().unwrap(),jQuery(this).children("p").contents().unwrap(),jQuery(this).prepend('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-lg fa-cog"></i></span>'),jQuery(this).children(".close").click(function(a){a.preventDefault(),jQuery(this).parent().slideUp()})}),jQuery(".bbp-login-form").each(function(){jQuery(this).children("tt").contents().unwrap()})}),jQuery(document).ready(function(){jQuery.trim(jQuery(".tribe-events-nav-previous").html()).length||jQuery.trim(jQuery(".tribe-events-nav-next").html()).length||jQuery(".tribe-events-sub-nav").parent().hide(),jQuery(".fusion-tribe-has-featured-image").each(function(){var a=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",a)}),jQuery(window).on("resize",function(){jQuery(".fusion-tribe-has-featured-image").each(function(){jQuery(this).find(".tribe-events-event-image").css("height","auto");var a=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",a)})})}),jQuery(window).load(function(){jQuery(".fusion-events-shortcode").each(function(){jQuery(this).find(".fusion-events-meta").equalHeights()}),jQuery(window).on("resize",function(){jQuery(".fusion-events-shortcode").each(function(){jQuery(this).find(".fusion-events-meta").equalHeights()})})}),jQuery(document).ajaxComplete(function(a,b,c){jQuery(".fusion-tribe-has-featured-image").each(function(){var a=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",a)}),jQuery(this).find(".post").each(function(){jQuery(this).find(".fusion-post-slideshow").flexslider(),jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()});var d=jQuery("#tribe-events .fusion-blog-layout-grid"),e=d.find(".post");d.css("height",d.height()),e.hide(),imagesLoaded(e,function(){d.css("height",""),e.fadeIn(),d.isotope(),jQuery(window).trigger("resize"),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})}),jQuery(window).load(function(){jQuery(".variations_form").find(".variations .single_variation_wrap .woocommerce-variation-description").remove(),jQuery(window).resize(function(){jQuery(".crossfade-images").each(function(){fusion_resize_crossfade_images_container(jQuery(this)),fusionResizeCrossfadeImages(jQuery(this))})}),jQuery(".crossfade-images").each(function(){fusion_resize_crossfade_images_container(jQuery(this)),fusionResizeCrossfadeImages(jQuery(this))}),jQuery(".product-images").each(function(){!jQuery(this).find("img").length&&jQuery(this).find(".onsale").length&&jQuery(this).css("min-height","45px")}),jQuery(".woocommerce .images #carousel a").click(function(a){a.preventDefault()}),jQuery(".variations_form").on("change",".variations select",function(a){jQuery(this).parents(".variations_form");setTimeout(function(){var a=jQuery(".images").find("#slider img:eq(0)"),b=a.parent(),c=a.attr("src"),d=jQuery(".images").find("#carousel img:eq(0)");b&&b.attr("href")&&(c=b.attr("href")),a.parent().attr("href",c),a.removeAttr("sizes"),a.removeAttr("srcset"),$avada_lightbox.refresh_lightbox(),d.attr("src",c),d.removeAttr("sizes"),d.removeAttr("srcset");var e=jQuery(".images #slider").data("flexslider");e&&e.resize();var e=jQuery(".images #carousel").data("flexslider");e&&e.resize()},1),setTimeout(function(){$avada_lightbox.refresh_lightbox();var a=jQuery(".images #slider").data("flexslider");a&&a.resize()},500),setTimeout(function(){$avada_lightbox.refresh_lightbox()},1500)})}),jQuery(document).ready(function(){avadaAddWoocommerceQuantityBoxes(),jQuery(".fusion-update-cart").on("click",function(a){a.preventDefault(),jQuery(".cart .actions > .button").trigger("click")}),jQuery(".fusion-apply-coupon").on("click",function(a){a.preventDefault(),jQuery(".cart .actions .coupon #coupon_code").val(jQuery("#avada_coupon_code").val()),jQuery(".cart .actions .coupon .button").trigger("click")}),jQuery(".product-type-variable .variations_form > .single_variation_wrap .woocommerce-variation-price").remove(),jQuery(".product-type-variable .variations_form > .single_variation_wrap .woocommerce-variation-availability").remove(),jQuery("body").on("click",".add_to_cart_button",function(a){var b=jQuery(this);b.closest(".product, li").find(".cart-loading").find("i").removeClass("fusion-icon-check-square-o").addClass("fusion-icon-spinner"),b.closest(".product, li").find(".cart-loading").fadeIn(),setTimeout(function(){b.closest(".product, li").find(".cart-loading").find("i").hide().removeClass("fusion-icon-spinner").addClass("fusion-icon-check-square-o").fadeIn(),jQuery(b).parents(".fusion-clean-product-image-wrapper, li").addClass("fusion-item-in-cart")},2e3)}),jQuery("li").mouseenter(function(){jQuery(this).find(".cart-loading").find("i").hasClass("fusion-icon-check-square-o")&&jQuery(this).find(".cart-loading").fadeIn()}).mouseleave(function(){jQuery(this).find(".cart-loading").find("i").hasClass("fusion-icon-check-square-o")&&jQuery(this).find(".cart-loading").fadeOut()}),jQuery(".catalog-ordering .orderby .current-li a").html(jQuery(".catalog-ordering .orderby ul li.current a").html()),jQuery(".catalog-ordering .sort-count .current-li a").html(jQuery(".catalog-ordering .sort-count ul li.current a").html()),jQuery(".woocommerce .shop_table .variation dd").after("<br />"),jQuery(".woocommerce .avada-myaccount-data th.order-actions").text(js_local_vars.order_actions),jQuery("body.rtl .avada-myaccount-data .my_account_orders .order-status").each(function(){jQuery(this).css("text-align","right")}),jQuery(".woocommerce input").each(function(){if(!jQuery(this).has("#coupon_code")){var a=jQuery(this).attr("id");jQuery(this).attr("placeholder",jQuery(this).parent().find("label[for="+a+"]").text())}}),jQuery(".woocommerce #reviews #comments .comment_container .comment-text").length&&jQuery(".woocommerce #reviews #comments .comment_container").append('<div class="clear"></div>');for(var a=js_local_vars.title_style_type.split(" "),b="",c="",d="title-heading-left",e=0;e<a.length;e++)b+=" sep-"+a[e];b.indexOf("underline")>-1&&(c=b),jQuery("body").hasClass("rtl")&&(d="title-heading-right"),jQuery(".woocommerce.single-product .related.products > h2").each(function(){jQuery(this).replaceWith(function(){return'<div class="fusion-title title'+b+'"><h3 class="'+d+'">'+jQuery(this).html()+'</h3><div class="title-sep-container"><div class="title-sep'+b+' "></div></div></div>'})}),jQuery(".woocommerce.single-product .upsells.products > h2").each(function(){jQuery(this).replaceWith(function(){return'<div class="fusion-title title'+b+'"><h3 class="'+d+'">'+jQuery(this).html()+'</h3><div class="title-sep-container"><div class="title-sep'+b+' "></div></div></div>'})}),jQuery(".woocommerce-tabs #comments > h2").each(function(){jQuery(this).replaceWith(function(){return"<h3>"+jQuery(this).html()+"</h3>"})}),"block"==jQuery("body .sidebar").css("display")&&fusion_calc_woocommerce_tabs_layout(".woocommerce-tabs .tabs-horizontal"),jQuery(".sidebar .products,.fusion-footer-widget-area .products,#slidingbar-area .products").each(function(){jQuery(this).removeClass("products-4"),jQuery(this).removeClass("products-3"),jQuery(this).removeClass("products-2"),jQuery(this).addClass("products-1")}),jQuery(".products-6 li, .products-5 li, .products-4 li, .products-3 li, .products-3 li").removeClass("last"),jQuery(".subcategory-products").each(function(){jQuery(this).addClass("products-"+js_local_vars.woocommerce_shop_page_columns)}),jQuery(".woocommerce-tabs ul.tabs li a").unbind("click"),jQuery("body").on("click",".woocommerce-tabs > ul.tabs li a",function(){var a=jQuery(this),b=a.closest(".woocommerce-tabs");return jQuery("ul.tabs li",b).removeClass("active"),jQuery("> div.panel",b).hide(),jQuery("div"+a.attr("href"),b).show(),a.parent().addClass("active"),!1}),jQuery(".woocommerce-checkout-nav a,.continue-checkout").on("click",function(a){var b=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,c=jQuery(".fusion-header-wrapper").find("div"),d=0;if(c.each(function(){"fixed"==jQuery(this).css("position")&&(d=jQuery(this).height())}),a.preventDefault(),jQuery(".avada-checkout-error").parent().remove(),jQuery(".woocommerce .avada-checkout").find(".woocommerce-invalid").is(":visible"))jQuery(".woocommerce .avada-checkout .woocommerce-checkout").prepend('<ul class="woocommerce-error"><li class="avada-checkout-error">'+js_local_vars.woocommerce_checkout_error+"</li><ul>"),jQuery("html, body").animate({scrollTop:jQuery(".woocommerce-error").offset().top-b-d},500);else{var e=jQuery(this).attr("data-name"),f=e;if(f="order_review"==e?"#"+e:"."+e,jQuery("form.checkout .col-1, form.checkout .col-2, form.checkout #order_review_heading, form.checkout #order_review").hide(),jQuery("form.checkout").find(f).fadeIn(),"order_review"==f&&jQuery("form.checkout").find("#order_review_heading ").fadeIn(),jQuery(".woocommerce-checkout-nav li").removeClass("is-active"),jQuery(".woocommerce-checkout-nav").find("[data-name="+e+"]").parent().addClass("is-active"),jQuery(this).hasClass("continue-checkout")&&jQuery(window).scrollTop()>0){if(jQuery(".woo-tabs-horizontal").length)var g=jQuery(".woocommerce-checkout-nav");else var g=jQuery(".woocommerce-content-box.avada-checkout");jQuery("html, body").animate({scrollTop:g.offset().top-b-d},500)}}calc_select_arrow_dimensions()}),jQuery("body").on("click","input[name=ship_to_different_address]",function(){jQuery(this).is(":checked")&&setTimeout(function(){calc_select_arrow_dimensions()},1)}),jQuery(".avada_myaccount_user").length&&jQuery(".woocommerce-error").length&&!jQuery(".avada-myaccount-nav.avada-woocommerce-pre26").find(".active").children().hasClass("address")&&(jQuery(".avada-myaccount-nav.avada-woocommerce-pre26").find(".is-active").removeClass("is-active"),jQuery(".avada-myaccount-nav.avada-woocommerce-pre26").find(".account").parent().addClass("is-active"));var f=jQuery(".avada-myaccount-nav.avada-woocommerce-pre26").find(".is-active a");f.hasClass("address")?jQuery(".avada-myaccount-data .edit_address_heading").fadeIn():jQuery(".avada-myaccount-data h2:nth-of-type(1)").fadeIn(),f.hasClass("downloads")?jQuery(".avada-myaccount-data .digital-downloads").fadeIn():f.hasClass("orders")?jQuery(".avada-myaccount-data .my_account_orders").fadeIn():f.hasClass("address")?jQuery(".avada-myaccount-data .myaccount_address, .avada-myaccount-data .address").fadeIn():f&&(jQuery(".avada-myaccount-data .edit-account-form, .avada-myaccount-data .edit-account-heading").fadeIn(),jQuery(".avada-myaccount-data h2:nth-of-type(1)").hide()),jQuery(".avada-myaccount-nav.avada-woocommerce-pre26 a").on("click",function(a){a.preventDefault(),jQuery(".avada-myaccount-data h2, .avada-myaccount-data .digital-downloads, .avada-myaccount-data .my_account_orders, .avada-myaccount-data .myaccount_address, .avada-myaccount-data .address, .avada-myaccount-data .edit-account-heading, .avada-myaccount-data .edit-account-form").hide(),jQuery(this).hasClass("downloads")?jQuery(".avada-myaccount-data h2:nth-of-type(1), .avada-myaccount-data .digital-downloads").fadeIn():jQuery(this).hasClass("orders")?(jQuery(this).parents(".avada-myaccount-nav").find(".downloads").length?heading=jQuery(".avada-myaccount-data h2:nth-of-type(2)"):heading=jQuery(".avada-myaccount-data h2:nth-of-type(1)"),heading.fadeIn(),jQuery(".avada-myaccount-data .my_account_orders").fadeIn()):jQuery(this).hasClass("address")?(jQuery(this).parents(".avada-myaccount-nav").find(".downloads").length&&jQuery(this).parents(".avada-myaccount-nav").find(".orders").length?heading=jQuery(".avada-myaccount-data h2:nth-of-type(3)"):jQuery(this).parents(".avada-myaccount-nav").find(".downloads").length||jQuery(this).parents(".avada-myaccount-nav").find(".orders").length?heading=jQuery(".avada-myaccount-data h2:nth-of-type(2)"):heading=jQuery(".avada-myaccount-data h2:nth-of-type(1)"),heading.fadeIn(),jQuery(".avada-myaccount-data .myaccount_address, .avada-myaccount-data .address").fadeIn()):jQuery(this).hasClass("account")&&jQuery(".avada-myaccount-data .edit-account-heading, .avada-myaccount-data .edit-account-form").fadeIn(),jQuery(".avada-myaccount-nav li").removeClass("is-active"),jQuery(this).parent().addClass("is-active")})}),jQuery(document).ajaxComplete(function(){avadaAddWoocommerceQuantityBoxes(),jQuery(".fusion-update-cart").unbind("click"),jQuery(".fusion-update-cart").on("click",function(a){a.preventDefault(),jQuery(".cart .actions > .button").trigger("click")})}),function(a){!function(){if(!a.requestAnimationFrame){a.webkitRequestAnimationFrame&&(a.requestAnimationFrame=a.webkitRequestAnimationFrame,a.cancelAnimationFrame=a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame);var b=0;a.requestAnimationFrame=function(c){var d=(new Date).getTime(),e=Math.max(0,16-(d-b)),f=a.setTimeout(function(){c(d+e)},e);return b=d+e,f},a.cancelAnimationFrame=function(a){clearTimeout(a)}}}(),"function"==typeof define&&define(function(){return a.requestAnimationFrame})}(window),"undefined"==typeof _fusionImageParallaxImages)var _fusionImageParallaxImages=[],_fusionScrollTop,_fusionWindowHeight,_fusionScrollLeft,_fusionWindowWidth;!function(a,b,c,d){function e(b,c){this.element=b,this.settings=a.extend({},g,c);var d=this.settings.align.split(" ");this.settings.xpos=d[0],2==d.length?this.settings.ypos=d[1]:this.settings.ypos="center",this._defaults=g,this._name=f,this.init()}var f="fusionImageParallax",g={direction:"up",mobileenabled:!1,mobiledevice:!1,width:"",height:"",align:"center",opacity:"1",velocity:".3",image:"",target:"",repeat:!1,loopScroll:"",loopScrollTime:"2",removeOrig:!1,complete:function(){}};a.extend(e.prototype,{init:function(){""===this.settings.target&&(this.settings.target=a(this.element)),""===this.settings.image&&"undefined"!=typeof a(this.element).css("backgroundImage")&&""!==a(this.element).css("backgroundImage")&&(this.settings.image=a(this.element).css("backgroundImage").replace(/url\(|\)|"|'/g,"")),_fusionImageParallaxImages.push(this),this.setup(),this.settings.complete(),this.containerWidth=0,this.containerHeight=0},setup:function(){this.settings.removeOrig!==!1&&a(this.element).remove(),this.resizeParallaxBackground()},doParallax:function(){var a=this.settings.target.find(".parallax-inner");if(this.settings.mobiledevice&&!this.settings.mobileenabled)return void a.css({width:"100%",top:"0",left:"0",right:"0",height:"auto","min-height":a.parent().outerHeight()+"px"});if(this.isInView()){a.css({minHeight:"150px"});var b=this.settings.target.width()+parseInt(this.settings.target.css("paddingRight"))+parseInt(this.settings.target.css("paddingLeft")),c=this.settings.target.height()+parseInt(this.settings.target.css("paddingTop"))+parseInt(this.settings.target.css("paddingBottom"));if(0===this.containerWidth||0===this.containerHeight||b===this.containerWidth&&c===this.containerHeight||this.resizeParallaxBackground(),this.containerWidth=b,this.containerHeight=c,"undefined"!=typeof a&&0!==a.length){var d=(_fusionScrollTop-this.scrollTopMin)/(this.scrollTopMax-this.scrollTopMin),e=this.moveMax*d;"down"===this.settings.direction&&(e*=1.25),("left"==this.settings.direction||"up"==this.settings.direction)&&(e*=-1);var f="translate3d(",g="px, -2px, 0px)",h="translate3d(0px, ",i="px, 0px)";"undefined"!=typeof _fusionParallaxIE9&&(f="translate(",g="px, 0px)",h="translate(0px, ",i="px)"),"no-repeat"==a.css("background-repeat")&&("down"==this.settings.direction&&0>e?e=0:"up"==this.settings.direction&&e>0?e=0:"right"==this.settings.direction&&0>e?e=0:"left"==this.settings.direction&&e>0&&(e=0)),"fixed"===this.settings.direction||("left"===this.settings.direction||"right"===this.settings.direction?a.css({webkitTransform:f+e+g,mozTransform:f+e+g,msTransform:f+e+g,oTransform:f+e+g,transform:f+e+g}):a.css({webkitTransform:h+e+i,mozTransform:h+e+i,msTransform:h+e+i,oTransform:h+e+i,transform:h+e+i}))}}},isInView:function(){var a=this.settings.target;if("undefined"!=typeof a&&0!==a.length){var b=a.offset().top,c=a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom"));return _fusionScrollTop>b+c||b>_fusionScrollTop+_fusionWindowHeight?!1:!0}},resizeParallaxBackground:function(){var a=this.settings.target;if("undefined"!=typeof a&&0!==a.length){var c="true"===this.settings.repeat||this.settings.repeat===!0||1===this.settings.repeat;if("none"===this.settings.direction){var d=a.width()+parseInt(a.css("paddingRight"))+parseInt(a.css("paddingLeft")),e=a.offset().left;"center"===this.settings.align?e="50% 50%":"left"===this.settings.align?e="0% 50%":"right"===this.settings.align?e="100% 50%":"top"===this.settings.align?e="50% 0%":"bottom"===this.settings.align&&(e="50% 100%"),a.css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundSize:"cover",backgroundAttachment:"scroll",backgroundPosition:e,backgroundRepeat:"no-repeat"}),""!==this.settings.image&&"none"!==this.settings.image&&a.css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")"})}else if("fixed"===this.settings.direction)a.css({backgroundAttachment:"fixed",backgroundRepeat:"repeat"}),""!==this.settings.image&&"none"!==this.settings.image&&a.attr("style","background-image: url("+this.settings.image+") !important;"+a.attr("style"));else if("left"===this.settings.direction||"right"===this.settings.direction){var d=a.width()+parseInt(a.css("paddingRight"))+parseInt(a.css("paddingLeft")),f=a.height()+4+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom")),g=d;d+=400*Math.abs(parseFloat(this.settings.velocity));var h=0;"right"===this.settings.direction&&(h-=d-g),a.find(".parallax-inner").length<1&&a.prepend('<div class="parallax-inner"></div>'),a.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"}).attr("style",a.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:d,height:f,position:"absolute",zIndex:-1,top:0,left:h,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:c?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:c?"repeat":"no-repeat",backgroundSize:c?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&a.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")",filter:jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":"","-ms-filter":jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":""});var i=0;a.offset().top>_fusionWindowHeight&&(i=a.offset().top-_fusionWindowHeight);var j=a.offset().top+a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom"));this.moveMax=d-g,this.scrollTopMin=i,this.scrollTopMax=j}else{var k=900,k=jQuery(b).height(),d=a.width()+parseInt(a.css("paddingRight"))+parseInt(a.css("paddingLeft")),f=a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom")),l=f;f+=k*Math.abs(parseFloat(this.settings.velocity));var m=0;"down"===this.settings.direction&&(m-=f-l),a.find(".parallax-inner").length<1&&a.prepend('<div class="parallax-inner"></div>'),a.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"
}).attr("style",a.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:d,height:f,position:"absolute",zIndex:-1,top:m,left:0,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:c?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:c?"repeat":"no-repeat",backgroundSize:c?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&a.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")",filter:jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":"","-ms-filter":jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":""});var i=0;a.offset().top>_fusionWindowHeight&&(i=a.offset().top-_fusionWindowHeight);var j=a.offset().top+a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom"));this.moveMax=f-l,this.scrollTopMin=i,this.scrollTopMax=j}}},isMobile:function(){return jQuery(b).width()<=800||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)")||b.screen.width<=1e3&&b.devicePixelRatio>1}}),a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))}),this}}(jQuery,window,document),jQuery(document).ready(function(a){"use strict";function b(){_fusionRefreshScroll();for(var a=0;a<_fusionImageParallaxImages.length;a++)_fusionImageParallaxImages[a].doParallax();requestAnimationFrame(b)}a(window).on("scroll touchmove touchstart touchend gesturechange",function(a){requestAnimationFrame(_fusionParallaxAll)}),(Modernizr.touch&&jQuery(window).width()<=1024||window.screen.width<=1281&&window.devicePixelRatio>1)&&requestAnimationFrame(b),a(window).on("resize",function(){setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1)}),setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1),setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},100)}),jQuery(window).load(function(){setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1),setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1e3)}),jQuery(document).ready(function(a){"use strict";function b(){return Modernizr.touch&&jQuery(window).width()<=1e3||window.screen.width<=1281&&window.devicePixelRatio>1}b()&&a(".fusion-bg-parallax.video > div").remove(),a(".fusion-bg-parallax").next().addClass("bg-parallax-parent"),a(".fusion-bg-parallax").attr("style","").css("display","none"),a(".fusion-bg-parallax").each(function(){a(this).fusionImageParallax({image:a(this).data("bg-image"),direction:a(this).data("direction"),mobileenabled:a(this).data("mobile-enabled"),mobiledevice:b(),opacity:a(this).data("opacity"),width:a(this).data("bg-width"),height:a(this).data("bg-height"),velocity:a(this).data("velocity"),align:a(this).data("bg-align"),repeat:a(this).data("bg-repeat"),target:a(this).next(),complete:function(){}})}),jQuery(".ua-ie-8").length||a(".fusion-parallax-fixed").each(function(){a(this).css({filter:"","-ms-filter":""})})});var $youtubeBGVideos={};jQuery(document).ready(function(a){function b(a){var b=document.getElementById(a).parentElement,c=$f(a);"yes"==jQuery(b).data("mute")&&c.api("setVolume","0"),"no"==jQuery(b).data("mute")&&c.api("setVolume","1"),c.addEvent("playProgress",function(a,c){jQuery(b).css("visibility","visible")})}if(!a("body").hasClass("vc_editor")){a(".bg-parallax.video, .fusion-bg-parallax.video").each(function(){a(this).prependTo(a(this).next().addClass("video")),a(this).css({opacity:Math.abs(parseFloat(a(this).attr("data-opacity"))/100)})});var c=a("[data-youtube-video-id], [data-vimeo-video-id]").parent();c.css("overflow","hidden"),a("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var b=a(this);setTimeout(function(){resizeVideo(b)},100)}),a("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var b=a(this);setTimeout(function(){resizeVideo(b)},1e3)}),a(window).resize(function(){a("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var b=a(this);setTimeout(function(){resizeVideo(b)},2)})});var d=a("[data-vimeo-video-id]");if(d.length>0){var e="http:";"true"==js_local_vars.is_ssl&&(e="https:"),a.getScript(e+"//a.vimeocdn.com/js/froogaloop2.min.js?97273-1352487961").done(function(a,c){for(var d,e=document.querySelectorAll("iframe"),f=0,g=e.length;g>f;f++)d=e[f],jQuery("html").hasClass("ua-ie-11")&&jQuery(d).parent().css("visibility","visible"),$f(d).addEvent("ready",b)})}}}),jQuery(window).load(function(){jQuery("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var a=jQuery(this);setTimeout(function(){resizeVideo(a)},500)})}),jQuery(document).ready(function(){"use strict";function a(a){"Top"==js_local_vars.header_position&&(jQuery(a).mouseenter(function(a){jQuery(this).find("> div").length&&jQuery(this).find("> div").offset().left<0&&jQuery(this).find("> div").css({left:"0",right:"auto"}),jQuery(this).find("> div").length&&jQuery(this).find("> div").offset().left+jQuery(this).find("> div").width()>jQuery(window).width()&&jQuery(this).find("> div").css({left:"auto",right:"0"})}),jQuery(window).on("resize",function(){jQuery(a).find("> div").each(function(){var a=jQuery(this),b=a.outerWidth(),c=a.offset().left,d=c+b,e=a.parent().offset().left,f=jQuery(window).width();jQuery("body.rtl").length?c==e&&d>f||e>c&&d+b>f?a.css({left:"auto",right:"0"}):a.css({left:"0",right:"auto"}):e>c&&0>c||c==e&&0>c-b?a.css({left:"0",right:"auto"}):a.css({left:"auto",right:"0"})})}))}function b(){jQuery("body").bind("touchmove",function(a){jQuery(a.target).parents(".fusion-flyout-menu").length||a.preventDefault()});var a=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,b=jQuery(".fusion-header-v6-content").height()+a;jQuery(".fusion-header-v6").hasClass("fusion-flyout-menu-active")&&(jQuery(".fusion-header-v6 .fusion-flyout-menu").css({height:"calc(100% - "+b+"px)","margin-top":b}),jQuery(".fusion-header-v6 .fusion-flyout-menu .fusion-menu").height()>jQuery(".fusion-header-v6 .fusion-flyout-menu").height()&&jQuery(".fusion-header-v6 .fusion-flyout-menu").css("display","block")),"0"==js_local_vars.header_sticky&&(jQuery(".fusion-header-v6 .fusion-header").css({position:"fixed",width:"100%","max-width":"100%",top:a,"z-index":"210"}),jQuery(".fusion-header-sticky-height").css({display:"block",height:jQuery(".fusion-header-v6 .fusion-header").height()}))}function c(){setTimeout(function(){jQuery(".fusion-header-v6 .fusion-flyout-menu").css("display",""),"0"==js_local_vars.header_sticky&&(jQuery(".fusion-header-v6 .fusion-header").attr("style",""),jQuery(".fusion-header-sticky-height").attr("style","")),jQuery("body").unbind("touchmove")},250)}jQuery.fn.fusion_position_menu_dropdown=function(a){return"Top"===js_local_vars.header_position&&!jQuery("body.rtl").length||"Left"===js_local_vars.header_position?jQuery(this).children(".sub-menu").each(function(){jQuery(this).removeAttr("style"),jQuery(this).show(),jQuery(this).removeData("shifted");var a=jQuery(this);if(a.length){var b,c,d=a.offset(),e=d.left,f=d.top,g=a.height(),h=a.outerWidth(),i=f+g,j=e+h,k=jQuery(window).height(),l=jQuery(window).width();if(b=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,jQuery("#side-header").length)var m=jQuery("#side-header").offset().top-b;j>l?(a.parent().parent(".sub-menu").parent().parent(".sub-menu").length?a.css({left:"0",top:a.parent().parent(".sub-menu").height()}):a.parent().parent(".sub-menu").length?a.css({left:-1*h}):a.css("left",-1*h+a.parent().width()),a.data("shifted",1)):a.parent().parent(".sub-menu").length&&a.parent().parent(".sub-menu").data("shifted")&&(a.css("left",-1*h),a.data("shifted",1)),"Top"!==js_local_vars.header_position&&i>m+k&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()&&(c=k>g?-1*(i-m-k+20):-1*(f-b),a.css("top",c))}}):jQuery(this).children(".sub-menu").each(function(){jQuery(this).removeAttr("style"),jQuery(this).removeData("shifted");var a=jQuery(this);if(a.length){var b=a.offset(),c=b.left,d=b.top,e=a.height(),f=a.outerWidth(),g=d+e,h=jQuery(window).height();if(jQuery("#wpadminbar").length)var i=jQuery("#wpadminbar").height();else var i=0;if(jQuery("#side-header").length)var j=jQuery("#side-header").offset().top-i;if(0>c?(a.parent().parent(".sub-menu").parent().parent(".sub-menu").length?"Right"==js_local_vars.header_position?a.css({left:"0",top:a.parent().parent(".sub-menu").height()}):a.css({right:"0",top:a.parent().parent(".sub-menu").height()}):a.parent().parent(".sub-menu").length?a.css({right:-1*f}):a.css("right",-1*f+a.parent().width()),a.data("shifted",1)):a.parent().parent(".sub-menu").length&&a.parent().parent(".sub-menu").data("shifted")&&a.css("right",-1*f),"Top"!=js_local_vars.header_position&&g>j+h&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(h>e)var k=-1*(g-j-h+20);else var k=-1*(d-i);a.css("top",k)}}})},jQuery.fn.walk_through_menu_items=function(){jQuery(this).fusion_position_menu_dropdown(),jQuery(this).find(".sub-menu").length&&jQuery(this).find(".sub-menu li").walk_through_menu_items()},jQuery.fn.position_cart_dropdown=function(){"Top"!=js_local_vars.header_position&&jQuery(this).each(function(){jQuery(this).css("top","");var a=jQuery(this),b=a.offset().top,c=a.height(),d=b+c,e=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,f=jQuery("#side-header").offset().top-e,g=jQuery(window).height();if(d>f+g&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(g>c)var h=-1*(d-f-g+20);else var h=-1*(b-e);a.css("top",h)}})},jQuery.fn.position_menu_search_form=function(){"Top"!=js_local_vars.header_position&&jQuery(this).each(function(){jQuery(this).css("top","");var a=jQuery(this),b=a.offset().top,c=a.outerHeight(),d=b+c,e=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,f=jQuery("#side-header").offset().top-e,g=jQuery(window).height();if(d>f+g&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){var h=-1*(d-f-g+20);a.css("top",h)}})},jQuery.fn.fusion_position_megamenu=function(a){if(jQuery(".side-header-left").length)return this.each(function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.find(".fusion-megamenu-wrapper");if(b.length){b.removeAttr("style");var c=jQuery("#side-header").outerWidth()-1,d=b.offset().top,e=b.height(),f=d+e,g=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,h=jQuery("#side-header").offset().top-g,i=jQuery(window).height();if(jQuery("body.rtl").length?b.css({left:c,right:"auto"}):b.css("left",c),f>h+i&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(i>e)var j=-1*(f-h-i+20);else var j=-1*(d-g);b.css("top",j)}}})});if(jQuery(".side-header-right").length)return this.each(function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.find(".fusion-megamenu-wrapper");if(b.length){b.removeAttr("style");var c=-1*b.outerWidth(),d=b.offset().top,e=b.height(),f=d+e,g=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,h=jQuery("#side-header").offset().top-g,i=jQuery(window).height();if(jQuery("body.rtl").length?b.css({left:c,right:"auto"}):b.css("left",c),f>h+i&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(i>e)var j=-1*(f-h-i+20);else var j=-1*(d-g);b.css("top",j)}}})});var b="";if(b=jQuery(".fusion-header-v4").length?jQuery(this).parent(".fusion-main-menu").parent():jQuery(this).parent(".fusion-main-menu"),jQuery(this).parent(".fusion-main-menu").length){var c=b,d=c.offset(),e=c.width(),f=d.left,g=f+e;return jQuery("body.rtl").length?this.each(function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.offset(),c=b.left+a.outerWidth(),d=a.find(".fusion-megamenu-wrapper"),e=d.outerWidth(),h=0;if(d.length){d.removeAttr("style");var i;i=jQuery(".fusion-secondary-main-menu").length?jQuery(".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row"):jQuery(".fusion-header-wrapper .fusion-row"),d.hasClass("col-span-12")&&i.width()<d.data("maxwidth")?d.css("width",i.width()):d.removeAttr("style"),f>c-e&&(h=-1*(e-(c-f)),("left"==js_local_vars.logo_alignment.toLowerCase()||"center"==js_local_vars.logo_alignment.toLowerCase()&&!jQuery(".header-v5").length||jQuery(this).parents(".sticky-header").length)&&c-h>g&&(h=-1*(g-c)),d.css("right",h))}})}):this.each(function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.offset(),c=a.find(".fusion-megamenu-wrapper"),d=c.outerWidth(),e=0;if(c.length){c.removeAttr("style");var h;h=jQuery(".fusion-secondary-main-menu").length?jQuery(".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row"):jQuery(".fusion-header-wrapper .fusion-row"),c.hasClass("col-span-12")&&h.width()<c.data("maxwidth")?c.css("width",h.width()):c.removeAttr("style"),d=c.outerWidth(),b.left+d>g&&(e=-1*(b.left-(g-d)),"right"==js_local_vars.logo_alignment.toLowerCase()&&b.left+e<f&&(e=-1*(b.left-f)),c.css("left",e))}})})}},jQuery.fn.calc_megamenu_responsive_column_widths=function(a){jQuery(this).find(".fusion-megamenu-menu").each(function(){var a=jQuery(this).find(".fusion-megamenu-holder"),b=a.data("width"),c=jQuery(".fusion-secondary-main-menu").length?jQuery(".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row"):jQuery(".fusion-header-wrapper .fusion-row"),d=c.width();if("Top"!=js_local_vars.header_position){var e=jQuery("#main").css("padding-left").replace("px","");d=jQuery(window).width()-e-jQuery("#side-header").outerWidth()}b>d?(a.css("width",d),a.parents(".fusion-megamenu-wrapper").hasClass("fusion-megamenu-fullwidth")||a.find(".fusion-megamenu-submenu").each(function(){var a=jQuery(this),c=a.data("width")*d/b;a.css("width",c)})):(a.css("width",b),a.parents(".fusion-megamenu-wrapper").hasClass("fusion-megamenu-fullwidth")||a.find(".fusion-megamenu-submenu").each(function(){jQuery(this).css("width",jQuery(this).data("width"))}))})},jQuery.fn.position_last_top_menu_item=function(a){if(jQuery(this).children("ul").length||jQuery(this).children("div").length){var b,c=jQuery(this),d=c.position().left,e=(c.outerWidth(),jQuery(".fusion-secondary-header .fusion-row")),f=e.position().left,g=e.outerWidth();c.children("ul").length?b=c.children("ul"):c.children("div").length&&(b=c.children("div")),jQuery("body.rtl").length?b.position().left<d&&(b.css("left","-1px").css("right","auto"),b.find(".sub-menu").each(function(){jQuery(this).css("left","100px").css("right","auto")})):d+b.outerWidth()>f+g&&(b.css("right","-1px").css("left","auto"),b.find(".sub-menu").each(function(){jQuery(this).css("right","100px").css("left","auto")}))}},jQuery(".fusion-main-menu > ul > li:last-child").addClass("fusion-last-menu-item"),cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)&&jQuery(".fusion-header-shadow").removeClass("fusion-header-shadow"),jQuery.fn.fusion_position_menu_dropdown&&(jQuery(".fusion-dropdown-menu, .fusion-dropdown-menu li").mouseenter(function(){jQuery(this).fusion_position_menu_dropdown()}),jQuery(".fusion-dropdown-menu > ul > li").each(function(){jQuery(this).walk_through_menu_items()}),jQuery(window).on("resize",function(){jQuery(".fusion-dropdown-menu > ul > li").each(function(){jQuery(this).walk_through_menu_items()})})),jQuery(".fusion-dropdown-menu ").mouseenter(function(){jQuery(this).css("overflow","visible")}),jQuery(".fusion-dropdown-menu").mouseleave(function(){jQuery(this).css("overflow","")}),jQuery(document).click(function(){jQuery(".fusion-main-menu-search .fusion-custom-menu-item-contents").hide(),jQuery(".fusion-main-menu-search").removeClass("fusion-main-menu-search-open"),jQuery(".fusion-main-menu-search").find("style").remove()}),jQuery(".fusion-main-menu-search").click(function(a){a.stopPropagation()}),jQuery(".fusion-main-menu-search .fusion-main-menu-icon").click(function(a){a.stopPropagation(),"block"==jQuery(this).parent().find(".fusion-custom-menu-item-contents").css("display")?(jQuery(this).parent().find(".fusion-custom-menu-item-contents").hide(),jQuery(this).parent().removeClass("fusion-main-menu-search-open"),jQuery(this).parent().find("style").remove()):(jQuery(this).parent().find(".fusion-custom-menu-item-contents").removeAttr("style"),jQuery(this).parent().find(".fusion-custom-menu-item-contents").show(),jQuery(this).parent().addClass("fusion-main-menu-search-open"),jQuery(this).parent().append("<style>.fusion-main-menu{overflow:visible!important;</style>"),jQuery(this).parent().find(".fusion-custom-menu-item-contents .s").focus(),"Top"==js_local_vars.header_position&&(!jQuery("body.rtl").length&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").offset().left<0&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"0",right:"auto"}),jQuery("body.rtl").length&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").offset().left+jQuery(this).parent().find(".fusion-custom-menu-item-contents").width()>jQuery(window).width()&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"auto",right:"0"})))}),jQuery.fn.fusion_position_megamenu&&(jQuery(".fusion-main-menu > ul").fusion_position_megamenu(),jQuery(".fusion-main-menu .fusion-megamenu-menu").mouseenter(function(){jQuery(this).parent().fusion_position_megamenu()}),jQuery(window).resize(function(){jQuery(".fusion-main-menu > ul").fusion_position_megamenu()})),jQuery.fn.calc_megamenu_responsive_column_widths&&(jQuery(".fusion-main-menu > ul").calc_megamenu_responsive_column_widths(),jQuery(window).resize(function(){jQuery(".fusion-main-menu > ul").calc_megamenu_responsive_column_widths()})),jQuery(".fusion-header-wrapper .fusion-secondary-menu > ul > li:last-child").position_last_top_menu_item(),a(".fusion-main-menu .fusion-main-menu-cart"),a(".fusion-secondary-menu .fusion-menu-login-box"),jQuery(".fusion-megamenu-menu").mouseenter(function(){jQuery(this).find(".shortcode-map").length&&jQuery(this).find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()})});var d=!1;jQuery(".fusion-megamenu-menu").mouseover(function(){jQuery(this).find(".fusion-megamenu-widgets-container iframe").each(function(){d||jQuery(this).attr("src",jQuery(this).attr("src")),d=!0})}),jQuery(".fusion-megamenu-wrapper iframe").mouseover(function(){jQuery(this).parents(".fusion-megamenu-widgets-container").css("display","block"),jQuery(this).parents(".fusion-megamenu-wrapper").css({opacity:"1",visibility:"visible"})}),jQuery(".fusion-megamenu-wrapper iframe").mouseout(function(){jQuery(this).parents(".fusion-megamenu-widgets-container").css("display",""),jQuery(this).parents(".fusion-megamenu-wrapper").css({opacity:"",visibility:""})}),jQuery(".fusion-navbar-nav .cart").find(".cart-contents").position_cart_dropdown(),jQuery(window).on("resize",function(){jQuery(".fusion-navbar-nav .cart").find(".cart-contents").position_cart_dropdown()}),jQuery(".fusion-navbar-nav .search-link").click(function(){setTimeout(function(){jQuery(".fusion-navbar-nav .search-link").parent().find(".main-nav-search-form").position_menu_search_form()},5)}),jQuery(window).on("resize",function(){jQuery(".fusion-navbar-nav .main-nav-search").find(".main-nav-search-form").position_menu_search_form()}),jQuery(".fusion-header-v6").length||(jQuery(".fusion-main-menu").mouseover(function(){jQuery(this).css("overflow","visible")}),jQuery(".fusion-main-menu").mouseout(function(){jQuery(this).css("overflow","")})),jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").each(function(){var a=jQuery(this),b="",c=jQuery(this).parent().find(".fusion-main-menu, .fusion-secondary-menu").not(".fusion-sticky-menu");c.length&&("classic"==js_local_vars.mobile_menu_design&&(a.append('<div class="fusion-mobile-selector"><span>'+js_local_vars.dropdown_goto+"</span></div>"),jQuery(this).find(".fusion-mobile-selector").append('<div class="fusion-selector-down"></div>')),jQuery(a).append(jQuery(c).find("> ul").clone()),b=jQuery(a).find("> ul"),b.find(".fusion-caret, .fusion-menu-login-box .fusion-custom-menu-item-contents, .fusion-menu-cart .fusion-custom-menu-item-contents, .fusion-main-menu-search, li> a > span > .button-icon-divider-left, li > a > span > .button-icon-divider-right").remove(),"classic"==js_local_vars.mobile_menu_design?b.find(".fusion-menu-cart > a").html(js_local_vars.mobile_nav_cart):b.find(".fusion-main-menu-cart").remove(),b.find("li").each(function(){jQuery(this).find("> a > .menu-text").removeAttr("class").addClass("menu-text");var a="fusion-mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).attr("id")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}),jQuery(this).find(".fusion-mobile-selector").click(function(){b.hasClass("mobile-menu-expanded")?b.removeClass("mobile-menu-expanded"):b.addClass("mobile-menu-expanded"),b.slideToggle(200,"easeOutQuad")}))}),jQuery(".fusion-mobile-sticky-nav-holder").each(function(){var a=jQuery(this),b="",c=jQuery(this).parent().find(".fusion-sticky-menu");"classic"==js_local_vars.mobile_menu_design&&(a.append('<div class="fusion-mobile-selector"><span>'+js_local_vars.dropdown_goto+"</span></div>"),jQuery(this).find(".fusion-mobile-selector").append('<div class="fusion-selector-down"></div>')),jQuery(a).append(jQuery(c).find("> ul").clone()),b=jQuery(a).find("> ul"),b.find(".fusion-menu-cart, .fusion-menu-login-box, .fusion-main-menu-search").remove(),b.find("li").each(function(){var a="fusion-mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).attr("id")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}),jQuery(this).find(".fusion-mobile-selector").click(function(){b.hasClass("mobile-menu-expanded")?b.removeClass("mobile-menu-expanded"):b.addClass("mobile-menu-expanded"),b.slideToggle(200,"easeOutQuad")})}),jQuery(".fusion-mobile-nav-holder > ul > li").each(function(){jQuery(this).find(".fusion-megamenu-widgets-container").remove(),jQuery(this).find(".fusion-megamenu-holder > ul").each(function(){jQuery(this).attr("class","sub-menu"),jQuery(this).attr("style",""),jQuery(this).find("> li").each(function(){var a="fusion-mobile-nav-item";if((jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("fusion-mobile-current-nav-item"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),!jQuery(this).find(".fusion-megamenu-title a, > a").length&&(jQuery(this).find(".fusion-megamenu-title").each(function(){jQuery(this).children("a").length||jQuery(this).append('<a href="#">'+jQuery(this).text()+"</a>")}),!jQuery(this).find(".fusion-megamenu-title").length)){var b=jQuery(this);jQuery(this).find(".sub-menu").each(function(){b.after(jQuery(this))}),jQuery(this).remove()}jQuery(this).prepend(jQuery(this).find(".fusion-megamenu-title a, > a")),jQuery(this).find(".fusion-megamenu-title").remove()}),jQuery(this).closest(".fusion-mobile-nav-item").append(jQuery(this))}),jQuery(this).find(".fusion-megamenu-wrapper, .caret, .fusion-megamenu-bullet").remove()}),jQuery(".fusion-mobile-menu-icons .fusion-icon-bars").click(function(a){a.preventDefault();var b;b=jQuery(".fusion-header-v4").length>=1||jQuery(".fusion-header-v5").length>=1?".fusion-secondary-main-menu":jQuery("#side-header").length>=1?"#side-header":".fusion-header",jQuery(".fusion-is-sticky").length>=1&&jQuery(".fusion-mobile-sticky-nav-holder").length>=1?jQuery(b).find(".fusion-mobile-sticky-nav-holder").slideToggle(200,"easeOutQuad"):jQuery(b).find(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").slideToggle(200,"easeOutQuad")}),jQuery(".fusion-mobile-menu-icons .fusion-icon-search").click(function(a){a.preventDefault(),jQuery(".fusion-secondary-main-menu .fusion-secondary-menu-search, .side-header-wrapper .fusion-secondary-menu-search").slideToggle(200,"easeOutQuad")}),jQuery('.fusion-mobile-nav-holder .fusion-mobile-nav-item a:not([href="#"])').click(function(){var a=jQuery(this.hash);a.length&&""!==this.hash.slice(1)&&(jQuery(this).parents(".fusion-mobile-menu-design-classic").length?jQuery(this).parents(".fusion-menu, .menu").hide().removeClass("mobile-menu-expanded"):jQuery(this).parents(".fusion-mobile-nav-holder").hide())}),1==js_local_vars.submenu_slideout&&(jQuery(".fusion-mobile-nav-holder > ul li").each(function(){var a="fusion-mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("fusion-mobile-current-nav-item"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).find(" > ul").length&&(jQuery(this).prepend('<span href="#" aria-haspopup="true" class="fusion-open-submenu"></span>'),jQuery(this).find(" > ul").hide())}),jQuery(".fusion-mobile-nav-holder .fusion-open-submenu").click(function(a){a.stopPropagation(),jQuery(this).parent().children(".sub-menu").slideToggle(200,"easeOutQuad")})),jQuery(".fusion-flyout-menu-icons .fusion-flyout-menu-toggle").on("click",function(){var a=jQuery(this).parents(".fusion-header-v6");a.hasClass("fusion-flyout-active")?(a.hasClass("fusion-flyout-search-active")?(a.addClass("fusion-flyout-menu-active"),b()):(a.removeClass("fusion-flyout-active"),a.removeClass("fusion-flyout-menu-active"),c()),a.removeClass("fusion-flyout-search-active")):(a.addClass("fusion-flyout-active"),a.addClass("fusion-flyout-menu-active"),b())}),jQuery(".fusion-flyout-menu-icons .fusion-flyout-search-toggle").on("click",function(){var a=jQuery(this).parents(".fusion-header-v6");a.hasClass("fusion-flyout-active")?(a.hasClass("fusion-flyout-menu-active")?(a.addClass("fusion-flyout-search-active"),Modernizr.mq("only screen and (min-width:"+parseInt(js_local_vars.side_header_break_point)+"px)")&&a.find(".fusion-flyout-search .s").focus()):(a.removeClass("fusion-flyout-active"),a.removeClass("fusion-flyout-search-active"),c()),a.removeClass("fusion-flyout-menu-active")):(a.addClass("fusion-flyout-active"),a.addClass("fusion-flyout-search-active"),Modernizr.mq("only screen and (min-width:"+parseInt(js_local_vars.side_header_break_point)+"px)")&&a.find(".fusion-flyout-search .s").focus(),b())})}),jQuery(window).load(function(){function a(){var a=0;Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?(jQuery(".fusion-secondary-menu > ul").children("li").each(function(){a+=jQuery(this).outerWidth(!0)+2}),a>jQuery(window).width()&&jQuery(window).width()>318?l||(jQuery(".fusion-secondary-menu > ul").append('<div class="fusion-mobile-menu-sep"></div>'),jQuery(".fusion-secondary-menu > ul").css("position","relative"),jQuery(".fusion-mobile-menu-sep").css({position:"absolute",top:jQuery(".fusion-secondary-menu > ul > li").height()-1+"px",width:"100%","border-bottom-width":"1px","border-bottom-style":"solid"}),l=!0):(jQuery(".fusion-secondary-menu > ul").css("position",""),jQuery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),l=!1)):(jQuery(".fusion-secondary-menu > ul").css("position",""),jQuery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),l=!1)}if("1"==js_local_vars.header_sticky&&(jQuery(".fusion-header-wrapper").length>=1||jQuery("#side-header").length>=1)){var b=300;"0"==js_local_vars.sticky_header_shrinkage&&(b=0);var c=jQuery(".fusion-header").parent();window.$header_parent_height=c.outerHeight(),window.$header_height=jQuery(".fusion-header").outerHeight();var d=parseInt(js_local_vars.nav_height),e=parseInt(js_local_vars.nav_highlight_border);window.$scrolled_header_height=65;var f=jQuery(".fusion-logo img:visible").length?jQuery(".fusion-logo img:visible"):"",g=!1;window.$sticky_trigger=jQuery(".fusion-header"),window.$sticky_trigger_position=window.$sticky_trigger.length?Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height-window.$woo_store_notice:0,window.$wp_adminbar_height=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,window.$woo_store_notice=jQuery(".demo_store").length?jQuery(".demo_store").outerHeight():0,window.$sticky_header_type=1,window.$logo_height,window.$main_menu_height,window.$slider_offset=0,window.$site_width=jQuery("#wrapper").outerWidth(),window.$media_query_test_1=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),window.$media_query_test_2=Modernizr.mq("screen and (max-width: "+js_local_vars.side_header_break_point+"px)"),window.$media_query_test_3=Modernizr.mq("screen and (max-width: "+js_local_vars.side_header_break_point+"px)"),window.$media_query_test_4=Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)");var h=jQuery(".fusion-standard-logo").height()+parseInt(jQuery(".fusion-logo").data("margin-top"))+parseInt(jQuery(".fusion-logo").data("margin-bottom"));if(window.$initial_desktop_header_height=Math.max(window.$header_height,Math.max(d+e,h)+parseInt(jQuery(".fusion-header").find(".fusion-row").css("padding-top"))+parseInt(jQuery(".fusion-header").find(".fusion-row").css("padding-bottom"))),window.$initial_sticky_header_shrinkage=js_local_vars.sticky_header_shrinkage,window.$sticky_can_be_shrinked=!0,"0"==js_local_vars.sticky_header_shrinkage&&(b=0,window.$scrolled_header_height=window.$header_height),f)if(f.hasClass("fusion-logo-2x")){var i=new Image;i.src=f.attr("src"),window.original_logo_height=parseInt(f.height())+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom)}else{var i=new Image;i.src=f.attr("src"),window.original_logo_height=parseInt(i.naturalHeight)+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom),i.onload=function(){window.original_logo_height=parseInt(this.height)+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom)}}(jQuery(".fusion-header-v4").length>=1||jQuery(".fusion-header-v5").length>=1)&&(window.$sticky_header_type=2,"menu_and_logo"==js_local_vars.header_sticky_type2_layout||Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&"modern"==js_local_vars.mobile_menu_design?window.$sticky_trigger=jQuery(".fusion-sticky-header-wrapper"):window.$sticky_trigger=jQuery(".fusion-secondary-main-menu"),window.$sticky_trigger_position=Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height-window.$woo_store_notice),1==window.$sticky_header_type&&(Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?window.$scrolled_header_height=window.$header_height:window.$original_sticky_trigger_height=jQuery(window.$sticky_trigger).outerHeight()),2==window.$sticky_header_type&&("classic"==js_local_vars.mobile_menu_design&&jQuery(c).height(window.$header_parent_height),Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?window.$scrolled_header_height=window.$header_parent_height:jQuery(c).height(window.$header_parent_height)),
jQuery("#side-header").length>=1&&(window.$sticky_header_type=3),jQuery(document).height()-(window.$initial_desktop_header_height-window.$scrolled_header_height)<jQuery(window).height()&&1==js_local_vars.sticky_header_shrinkage?(window.$sticky_can_be_shrinked=!1,jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")):window.$sticky_can_be_shrinked=!0;var j=jQuery(window).width(),k=jQuery(window).height();jQuery(window).resize(function(){if(window.$media_query_test_1=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),window.$media_query_test_2=Modernizr.mq("screen and (max-width: "+js_local_vars.side_header_break_point+"px)"),window.$media_query_test_3=Modernizr.mq("screen and (max-width: "+js_local_vars.side_header_break_point+"px)"),window.$media_query_test_4=Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)"),"1"!=js_local_vars.header_sticky_tablet&&window.$media_query_test_1?(jQuery(".fusion-header-wrapper, .fusion-header-sticky-height, .fusion-header, .fusion-logo, .fusion-header-wrapper .fusion-main-menu > li a, .fusion-header-wrapper .fusion-secondary-main-menu").attr("style",""),jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")):"1"==js_local_vars.header_sticky_tablet&&window.$media_query_test_1&&(b=0),"1"!=js_local_vars.header_sticky_mobile&&window.$media_query_test_2?(jQuery(".fusion-header-wrapper, .fusion-header-sticky-height, .fusion-header, .fusion-logo, .fusion-header-wrapper .fusion-main-menu > li a, .fusion-header-wrapper .fusion-secondary-main-menu").attr("style",""),jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")):"1"==js_local_vars.header_sticky_mobile&&window.$media_query_test_2&&(b=0),jQuery(window).width()!=j||jQuery(window).height()!=k){var a=parseInt(js_local_vars.nav_height),d=parseInt(js_local_vars.nav_highlight_border);if(jQuery("#wpadminbar").length?window.$wp_adminbar_height=jQuery("#wpadminbar").height():window.$wp_adminbar_height=0,window.$woo_store_notice=jQuery(".demo_store").length?jQuery(".demo_store").outerHeight():0,jQuery(".fusion-is-sticky").length){var e=jQuery(".fusion-header");2==window.$sticky_header_type&&(e="menu_only"!=js_local_vars.header_sticky_type2_layout||"classic"!=js_local_vars.mobile_menu_design&&window.$media_query_test_4?jQuery(".fusion-sticky-header-wrapper"):jQuery(".fusion-secondary-main-menu")),jQuery("#wpadminbar").length&&(jQuery(".fusion-header, .fusion-sticky-header-wrapper, .fusion-secondary-main-menu").css("top",""),jQuery(e).css("top",window.$wp_adminbar_height+window.$woo_store_notice)),"boxed"===js_local_vars.layout_mode&&jQuery(e).css("max-width",jQuery("#wrapper").outerWidth()+"px")}if(1==window.$sticky_header_type){if(js_local_vars.sticky_header_shrinkage=window.$initial_sticky_header_shrinkage,jQuery(".fusion-secondary-header").length?window.$sticky_trigger_position=Math.round(jQuery(".fusion-secondary-header").offset().top)-window.$wp_adminbar_height-window.$woo_store_notice+jQuery(".fusion-secondary-header").outerHeight():window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height-window.$woo_store_notice,!Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")){var g=jQuery(".fusion-logo img:visible").outerHeight()+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom);$main_menu_width=0,jQuery(".fusion-main-menu > ul > li").each(function(){$main_menu_width+=jQuery(this).outerWidth()}),jQuery(".fusion-header-v6").length&&($main_menu_width=0),jQuery(".fusion-is-sticky").length?($main_menu_width>jQuery(".fusion-header .fusion-row").width()-jQuery(".fusion-logo img:visible").outerWidth()?(window.$header_height=jQuery(".fusion-main-menu").outerHeight()+g,(jQuery(".fusion-header-v2").length||jQuery(".fusion-header-v3").length)&&(window.$header_height+=1)):"0"==js_local_vars.sticky_header_shrinkage?(window.original_logo_height>a+d?window.$header_height=window.original_logo_height:window.$header_height=a+d,window.$header_height+=parseInt(js_local_vars.header_padding_top)+parseInt(js_local_vars.header_padding_bottom),(jQuery(".fusion-header-v2").length||jQuery(".fusion-header-v3").length)&&(window.$header_height+=1)):window.$header_height=65,window.$scrolled_header_height=window.$header_height,jQuery(".fusion-header-sticky-height").css("height",window.$header_height),jQuery(".fusion-header").css("height",window.$header_height)):($main_menu_width>jQuery(".fusion-header .fusion-row").width()-jQuery(".fusion-logo img:visible").outerWidth()?(window.$header_height=jQuery(".fusion-main-menu").outerHeight()+g,js_local_vars.sticky_header_shrinkage="0"):window.original_logo_height>a+d?window.$header_height=window.original_logo_height:window.$header_height=a+d,window.$header_height+=parseInt(js_local_vars.header_padding_top)+parseInt(js_local_vars.header_padding_bottom),(jQuery(".fusion-header-v2").length||jQuery(".fusion-header-v3").length)&&(window.$header_height+=1),window.$scrolled_header_height=65,"0"==js_local_vars.sticky_header_shrinkage&&(window.$scrolled_header_height=window.$header_height),jQuery(".fusion-header-sticky-height").css("height",window.$header_height),jQuery(".fusion-header").css("height",window.$header_height))}Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&(jQuery(".fusion-header").css("height",""),window.$header_height=jQuery(".fusion-header").outerHeight(),window.$scrolled_header_height=window.$header_height,jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height))}if(2==window.$sticky_header_type&&("modern"==js_local_vars.mobile_menu_design&&(!Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&jQuery(".fusion-is-sticky").length&&"menu_only"==js_local_vars.header_sticky_type2_layout?window.$header_parent_height=jQuery(".fusion-header").parent().outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight():window.$header_parent_height=jQuery(".fusion-header").parent().outerHeight(),window.$scrolled_header_height=window.header_parent_height,Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")||(window.$header_parent_height=jQuery(".fusion-header").outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight(),window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height-window.$woo_store_notice+jQuery(".fusion-header").outerHeight(),jQuery(c).height(window.$header_parent_height),jQuery(".fusion-header-sticky-height").css("height","")),Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&(jQuery(".fusion-secondary-header").length?window.$sticky_trigger_position=Math.round(jQuery(".fusion-secondary-header").offset().top)-window.$wp_adminbar_height-window.$woo_store_notice+jQuery(".fusion-secondary-header").outerHeight():window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height-window.$woo_store_notice,jQuery(c).height(""),jQuery(".fusion-header-sticky-height").css("height",jQuery(".fusion-sticky-header-wrapper").outerHeight()).hide())),"classic"==js_local_vars.mobile_menu_design&&(window.$header_parent_height=jQuery(".fusion-header").outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight(),window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height-window.$woo_store_notice+jQuery(".fusion-header").outerHeight(),jQuery(c).height(window.$header_parent_height))),3==window.$sticky_header_type){Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)")||(jQuery("#side-header-sticky").css({height:"",top:""}),jQuery("#side-header").hasClass("fusion-is-sticky")&&(jQuery("#side-header").css({top:""}),jQuery("#side-header").removeClass("fusion-is-sticky")))}if(jQuery(document).height()-(window.$initial_desktop_header_height-window.$scrolled_header_height)<jQuery(window).height()&&1==js_local_vars.sticky_header_shrinkage)window.$sticky_can_be_shrinked=!1,jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky"),jQuery(".fusion-header-sticky-height").hide(),jQuery(".fusion-header").css("height",""),jQuery(".fusion-logo").css({"margin-top":"","margin-bottom":""}),jQuery(".fusion-main-menu > ul > li > a").css({height:"","line-height":""}),jQuery(".fusion-logo img").css("height","");else if(window.$sticky_can_be_shrinked=!0,jQuery(".fusion-is-sticky").length>=1&&1==window.$sticky_header_type&&!Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&(Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height).show():window.$header_height==window.$initial_desktop_header_height?(jQuery(window.$sticky_trigger).stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").show(),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}})):jQuery(".fusion-header-sticky-height").show(),"1"==js_local_vars.sticky_header_shrinkage&&window.$header_height==window.$initial_desktop_header_height)){if(f){var h=f.height();if(h<window.$scrolled_header_height-10)var i=(window.$scrolled_header_height-h)/2;else{h=window.$scrolled_header_height-10;var i=5}f.stop(!0,!0).animate({height:h},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("display","")},step:function(){jQuery(this).css("display","")}})}jQuery(".fusion-logo").stop(!0,!0).animate({"margin-top":i,"margin-bottom":i},{queue:!1,duration:b,easing:"easeOutCubic"}),jQuery(".fusion-header-v6").length||jQuery(".fusion-main-menu > ul > li > a").stop(!0,!0).animate({height:window.$scrolled_header_height-d,"line-height":window.$scrolled_header_height-d},{queue:!1,duration:b,easing:"easeOutCubic"})}j=jQuery(window).width(),k=jQuery(window).height()}}),jQuery(window).scroll(function(){if(window.$sticky_can_be_shrinked){if("1"!=js_local_vars.header_sticky_tablet&&window.$media_query_test_1)return;if("1"==js_local_vars.header_sticky_tablet&&window.$media_query_test_1&&(b=0),"1"!=js_local_vars.header_sticky_mobile&&window.$media_query_test_2)return;if("1"==js_local_vars.header_sticky_mobile&&window.$media_query_test_2&&(b=0),3==window.$sticky_header_type&&"1"!=js_local_vars.header_sticky_mobile)return;if(3==window.$sticky_header_type&&"1"==js_local_vars.header_sticky_mobile&&!window.$media_query_test_3)return;if(0==jQuery(".fusion-is-sticky").length&&jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder > ul").is(":visible")&&(window.$sticky_trigger_position=Math.round(jQuery(".fusion-header, .fusion-sticky-header-wrapper").find(".fusion-mobile-nav-holder:visible").offset().top)-window.$wp_adminbar_height-window.$woo_store_notice+jQuery(".fusion-header, .fusion-sticky-header-wrapper").find(".fusion-mobile-nav-holder:visible").height()),3==window.$sticky_header_type||0!=jQuery(".fusion-is-sticky").length||jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder > ul").is(":visible")||(window.$sticky_trigger=jQuery(".fusion-header"),window.$sticky_trigger_position=Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height-window.$woo_store_notice,2==window.$sticky_header_type&&("menu_and_logo"==js_local_vars.header_sticky_type2_layout||window.$media_query_test_4&&"modern"==js_local_vars.mobile_menu_design?window.$sticky_trigger=jQuery(".fusion-sticky-header-wrapper"):window.$sticky_trigger=jQuery(".fusion-secondary-main-menu"),window.$sticky_trigger_position=Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height-window.$woo_store_notice),"modern"!=js_local_vars.mobile_menu_design||2!=window.$sticky_header_type||!window.$media_query_test_4&&"menu_and_logo"!=js_local_vars.header_sticky_type2_layout||(window.$header_height=jQuery(window.$sticky_trigger).outerHeight(),window.$scrolled_header_height=window.$header_height,jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height).show())),jQuery(window).scrollTop()>window.$sticky_trigger_position){if(0==g){var a=0,c=jQuery(".demo_store").length?jQuery(".demo_store").outerHeight():0;if(jQuery("#wpadminbar").length&&(a=jQuery("#wpadminbar").height()),jQuery(".fusion-header-wrapper").addClass("fusion-is-sticky"),jQuery(window.$sticky_trigger).css("top",a+c),f=jQuery(".fusion-logo img:visible"),"modern"==js_local_vars.mobile_menu_design?(jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder").hide(),jQuery(".fusion-secondary-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents").hide()):jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder > ul").hide(),"modern"==js_local_vars.mobile_menu_design&&jQuery(".fusion-is-sticky").length>=1&&jQuery(".fusion-mobile-sticky-nav-holder").length>=1&&jQuery(".fusion-mobile-nav-holder").is(":visible")&&jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").hide(),"boxed"==js_local_vars.layout_mode&&jQuery(window.$sticky_trigger).css("max-width",jQuery("#wrapper").outerWidth()),1==window.$sticky_header_type&&(Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height).show():window.$header_height==window.$initial_desktop_header_height?(jQuery(window.$sticky_trigger).stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").show(),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}})):jQuery(".fusion-header-sticky-height").show(),setTimeout(function(){jQuery(".fusion-header").addClass("fusion-sticky-shadow")},150),"1"==js_local_vars.sticky_header_shrinkage&&window.$header_height==window.$initial_desktop_header_height)){if(jQuery(window.$sticky_trigger).find(".fusion-row").stop(!0,!0).animate({"padding-top":0,"padding-bottom":0},{queue:!1,duration:b,easing:"easeOutCubic"}),f){var h=f.height();if(f.attr("data-logo-height",f.height()),f.attr("data-logo-width",f.width()),h<window.$scrolled_header_height-10)var i=(window.$scrolled_header_height-h)/2;else{h=window.$scrolled_header_height-10;var i=5}f.stop(!0,!0).animate({height:h},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("display","")},step:function(){jQuery(this).css("display","")}})}jQuery(".fusion-logo").stop(!0,!0).animate({"margin-top":i,"margin-bottom":i},{queue:!1,duration:b,easing:"easeOutCubic"}),jQuery(".fusion-header-v6").length||jQuery(".fusion-main-menu > ul > li > a").stop(!0,!0).animate({height:window.$scrolled_header_height-e,"line-height":window.$scrolled_header_height-e},{queue:!1,duration:b,easing:"easeOutCubic"})}2==window.$sticky_header_type&&("menu_and_logo"==js_local_vars.header_sticky_type2_layout&&(jQuery(window.$sticky_trigger).css("height",""),window.$header_height=jQuery(window.$sticky_trigger).outerHeight(),window.$scrolled_header_height=window.$header_height,jQuery(window.$sticky_trigger).css("height",window.$scrolled_header_height),jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height)),jQuery(".fusion-header-sticky-height").show()),3==window.$sticky_header_type&&Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)")&&(jQuery("#side-header-sticky").css({height:jQuery("#side-header").outerHeight()}),jQuery("#side-header").css({position:"fixed",top:a+c}).addClass("fusion-is-sticky")),g=!0}}else jQuery(window).scrollTop()<=window.$sticky_trigger_position&&(jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky"),jQuery(".fusion-header").removeClass("fusion-sticky-shadow"),f=jQuery(".fusion-logo img:visible"),"modern"==js_local_vars.mobile_menu_design&&0==jQuery(".fusion-is-sticky").length&&jQuery(".fusion-mobile-sticky-nav-holder").length>=1&&jQuery(".fusion-mobile-nav-holder").is(":visible")&&jQuery(".fusion-mobile-sticky-nav-holder").hide(),1==window.$sticky_header_type&&(Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?jQuery(".fusion-header-sticky-height").hide().css("height",window.$header_height+e):(1==window.$sticky_header_type&&65==window.$header_height&&(window.$header_height=window.$initial_desktop_header_height),window.$header_height==window.$initial_desktop_header_height&&(jQuery(window.$sticky_trigger).stop(!0,!0).animate({height:window.$header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")},step:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")},step:function(){jQuery(this).css("overflow","visible")}})),jQuery(".fusion-header-sticky-height").hide()),"1"==js_local_vars.sticky_header_shrinkage&&window.$header_height==window.$initial_desktop_header_height&&(jQuery(window.$sticky_trigger).find(".fusion-row").stop(!0,!0).animate({"padding-top":js_local_vars.header_padding_top,"padding-bottom":js_local_vars.header_padding_bottom},{queue:!1,duration:b,easing:"easeOutCubic"}),f&&f.stop(!0,!0).animate({height:f.data("logo-height")},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("display",""),jQuery(".fusion-sticky-logo-1x, .fusion-sticky-logo-2x").css("height","")}}),jQuery(".fusion-logo").stop(!0,!0).animate({"margin-top":jQuery(".fusion-logo").data("margin-top"),"margin-bottom":jQuery(".fusion-logo").data("margin-bottom")},{queue:!1,duration:b,easing:"easeOutCubic"}),jQuery(".fusion-header-v6").length||jQuery(".fusion-main-menu > ul > li > a").stop(!0,!0).animate({height:d,"line-height":d},{queue:!1,duration:b,easing:"easeOutCubic"}))),2==window.$sticky_header_type&&(jQuery(".fusion-header-sticky-height").hide(),"menu_and_logo"==js_local_vars.header_sticky_type2_layout&&(jQuery(window.$sticky_trigger).css("height",""),window.$header_height=jQuery(window.$sticky_trigger).outerHeight(),window.$scrolled_header_height=window.$header_height,jQuery(window.$sticky_trigger).css("height",window.$scrolled_header_height),jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height))),3==window.$sticky_header_type&&Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)")&&(jQuery("#side-header-sticky").css({height:""}),jQuery("#side-header").css({position:""}).removeClass("fusion-is-sticky")),g=!1)}}),jQuery(window).trigger("scroll")}var l=!1;a(),jQuery(window).on("resize",function(){a()})}),jQuery(document).ajaxComplete(function(){if(jQuery(window).trigger("scroll"),jQuery(".fusion-is-sticky").length>=1&&window.$sticky_trigger&&3!=window.$sticky_header_type){var a=jQuery(window.$sticky_trigger),b=parseInt(js_local_vars.nav_highlight_border),c=a.height()-b;2==window.$sticky_header_type&&(a=jQuery(".fusion-secondary-main-menu"),c=a.find(".fusion-main-menu > ul > li > a").height()),jQuery(".fusion-main-menu > ul > li > a").css({height:c+"px","line-height":c+"px"})}});var generate_carousel=function(){jQuery().carouFredSel&&jQuery(".fusion-carousel").each(function(){var a=jQuery(this).attr("data-imagesize")?jQuery(this).data("imagesize"):"fixed",b=jQuery(this).attr("data-metacontent")&&"yes"==jQuery(this).data("metacontent")?!1:!0,c=jQuery(this).attr("data-autoplay")&&"yes"==jQuery(this).data("autoplay")?!0:!1,d=jQuery(this).parents(".related-posts").length?js_local_vars.related_posts_speed:js_local_vars.carousel_speed,e=jQuery(this).attr("data-scrollfx")?jQuery(this).data("scrollfx"):"scroll",f=jQuery(this).attr("data-scrollitems")?jQuery(this).data("scrollitems"):null,g=jQuery(this).attr("data-touchscroll")&&"yes"==jQuery(this).data("touchscroll")?!0:!1,h=g?" fusion-carousel-swipe":"",i=jQuery(this).attr("data-columns")?jQuery(this).data("columns"):6,j=jQuery(this).attr("data-itemmargin")?parseInt(jQuery(this).data("itemmargin")):44,k=jQuery(this).attr("data-itemwidth")?parseInt(jQuery(this).data("itemwidth"))+j:180+j,l=jQuery(this).width(),m=jQuery(this).parent().hasClass("fusion-image-carousel")&&"fixed"==a?"115px":"variable";Math.floor(l/k);jQuery(this).find(".fusion-carousel-positioner").css("margin-left","-"+j+"px"),jQuery(this).find(".fusion-carousel-item").css("margin-left",j+"px"),jQuery(this).find(".fusion-nav-prev").css("margin-left",j+"px"),jQuery(this).find("ul").carouFredSel({circular:!0,infinite:!0,responsive:!0,centerVertically:b,height:m,width:"100%",auto:{play:c,timeoutDuration:parseInt(d)},items:{height:m,width:k,visible:{min:1,max:i}},scroll:{pauseOnHover:!0,items:f,fx:e},swipe:{onTouch:g,onMouse:g,options:{excludedElements:"button, input, select, textarea, a, .noSwipe"}},prev:jQuery(this).find(".fusion-nav-prev"),next:jQuery(this).find(".fusion-nav-next"),onCreate:function(c){jQuery(this).find(".fusion-carousel-item-wrapper").css("visibility","visible"),jQuery(this).parents(".fusion-carousel").find(".fusion-carousel-nav").css("visibility","visible"),jQuery(this).parents(".fusion-woo-featured-products-slider").length&&jQuery(this).parent().css("overflow",""),b&&jQuery(this).css("line-height",jQuery(this).parent().height()+"px"),jQuery(this).css("top","auto"),jQuery(this).parents(".fusion-carousel").find(".fusion-nav-next").each(function(){jQuery(this).css("left",jQuery(this).parents(".fusion-carousel").find(".fusion-carousel-wrapper").width()-jQuery(this).width())}),"fixed"==a&&jQuery(this).find(".fusion-placeholder-image").each(function(){jQuery(this).css("height",jQuery(this).parents(".fusion-carousel-item").siblings().first().find("img").height())}),jQuery(window).trigger("resize")},currentVisible:function(a){return a}},{wrapper:{classname:"fusion-carousel-wrapper"+h}})})},fusion_reanimate_slider=function(a){var b=a.find(".slide-content");jQuery(b).each(function(){jQuery(this).stop(!0,!0),jQuery(this).css("opacity","0"),jQuery(this).css("margin-top","50px"),jQuery(this).animate({opacity:"1","margin-top":"0"},1e3)})},fusion_calculate_responsive_type_values=function(a,b,c,d){var e=a||1,f=b||1.5,g=parseInt(jQuery("body").css("font-size")),h=g*f,i=c||0===c?c:800,j=function(){if(jQuery(window).width()>=i)if(js_local_vars.site_width.indexOf("px"))var a=parseInt(js_local_vars.site_width);else var a=1100;else var a=i;var b=jQuery(window).width()/a,c=1-(1-b)*e;jQuery(window).width()<=a?jQuery(d).each(function(){jQuery(this).data("fontsize")*c>h?jQuery(this).css({"font-size":Math.round(jQuery(this).data("fontsize")*c*1e3)/1e3,"line-height":Math.round(jQuery(this).data("lineheight")*c*1e3)/1e3+"px"}):jQuery(this).data("fontsize")>h&&jQuery(this).css({"font-size":h,"line-height":Math.round(jQuery(this).data("lineheight")*h/jQuery(this).data("fontsize")*1e3)/1e3+"px"})}):jQuery(d).each(function(){jQuery(this).data("inline-fontsize")?jQuery(this).css("font-size",jQuery(this).data("fontsize")):jQuery(this).css("font-size",""),jQuery(this).data("inline-lineheight")?jQuery(this).css("line-height",jQuery(this).data("lineheight")+"px"):jQuery(this).css("line-height","")})};j(),jQuery(window).on("resize orientationchange",j)};$top=$bottom=!1,$last_window_position=0,$last_window_height=jQuery(window).height(),function(a){"use strict";a(".tfs-slider").each(function(){var b=this;a(b).parents(".post-content").length>=1&&(a(b).data("parallax",0),a(b).data("full_screen",0)),cssua.ua.tablet_pc&&a(b).data("parallax",0),cssua.ua.mobile&&a(b).data("parallax",0)}),a.fn.init_waypoint=function(){a().waypoint&&(a(".fusion-counter-box").not(".fusion-modal .fusion-counter-box").each(function(){var b=get_waypoint_offset(a(this));a(this).waypoint(function(){a(this).find(".display-counter").each(function(){a(this).fusion_box_counting()})},{triggerOnce:!0,offset:b})}),a(".counter-circle-wrapper").not(".fusion-accordian .counter-circle-wrapper, .fusion-tabs .counter-circle-wrapper, .fusion-modal .counter-circle-wrapper").each(function(){var b=get_waypoint_offset(a(this));a(this).waypoint(function(){a(this).fusion_recalc_circles(!0),a(this).fusion_draw_circles()},{triggerOnce:!0,offset:b})}),a(".counter-circle-wrapper").not(".fusion-modal .counter-circle-wrapper").each(function(){var b=get_waypoint_offset(a(this));if("top-out-of-view"==b){var c=get_adminbar_height();get_waypoint_top_offset();b=c+get_waypoint_top_offset()}a(this).waypoint(function(){var b=a(this);a(window).on("resize",function(){b.fusion_redraw_circles()})},{triggerOnce:!0,offset:b})}),a(".fusion-progressbar").not(".fusion-modal .fusion-progressbar").each(function(){var b=get_waypoint_offset(a(this));a(this).waypoint(function(){a(this).fusion_draw_progress()},{triggerOnce:!0,offset:b})}),a(".fusion-content-boxes").each(function(){var b=get_waypoint_offset(a(this));a(this).waypoint(function(){var b=0;a(this).find(".content-box-column").each(function(){var c=this;setTimeout(function(){a(c).find(".fusion-animated").css("visibility","visible");var b=a(c).find(".fusion-animated").data("animationtype"),d=a(c).find(".fusion-animated").data("animationduration");a(c).find(".fusion-animated").addClass(b),d&&(a(c).find(".fusion-animated").css("-moz-animation-duration",d+"s"),a(c).find(".fusion-animated").css("-webkit-animation-duration",d+"s"),a(c).find(".fusion-animated").css("-ms-animation-duration",d+"s"),a(c).find(".fusion-animated").css("-o-animation-duration",d+"s"),a(c).find(".fusion-animated").css("animation-duration",d+"s")),(a(c).parents(".fusion-content-boxes").hasClass("content-boxes-timeline-horizontal")||a(c).parents(".fusion-content-boxes").hasClass("content-boxes-timeline-vertical"))&&a(c).addClass("fusion-appear")},b),b+=parseInt(a(this).parents(".fusion-content-boxes").attr("data-animation-delay"))})},{triggerOnce:!0,offset:b})}),a(".fusion-animated").each(function(){var b=get_waypoint_offset(a(this));if("top-out-of-view"==b){var c=get_adminbar_height(),d=get_sticky_header_height();b=c+d}a(this).waypoint(function(){if(!a(this).parents(".fusion-delayed-animation").length){a(this).css("visibility","visible");var b=a(this).data("animationtype"),c=a(this).data("animationduration");if(a(this).addClass(b),c){a(this).css("-moz-animation-duration",c+"s"),a(this).css("-webkit-animation-duration",c+"s"),a(this).css("-ms-animation-duration",c+"s"),a(this).css("-o-animation-duration",c+"s"),a(this).css("animation-duration",c+"s");var d=a(this);setTimeout(function(){d.removeClass(b)},1e3*c)}}},{triggerOnce:!0,offset:b})}))},a.fn.fusion_recalculate_carousel=function(){a(this).not(".fusion-woo-featured-products-slider").each(function(){var b=a(this),c=a(this).data("imagesize");setTimeout(function(){if(b.find(".fusion-nav-next").each(function(){a(this).css("left",b.find(".fusion-carousel-wrapper").width()-a(this).width())}),"fixed"==c){var d=b.find(".fusion-carousel-item").map(function(){return a(this).find("img").height()}).get(),e=Math.max.apply(null,d);b.find(".fusion-placeholder-image").each(function(){a(this).css("height",e)}),a(b).parents(".fusion-image-carousel").length>=1&&b.find(".fusion-image-wrapper").each(function(){a(this).css("height",e),a(this).css("width","100%"),a(this).find("> a").css("line-height",e-2+"px")})}},5)})},a.fn.fusion_box_counting=function(){var b=a(this).data("value"),c=a(this).data("direction"),d=a(this).data("delimiter"),e=0,f=b,g=js_local_vars.counter_box_speed,h=Math.round(js_local_vars.counter_box_speed/100);d||(d=""),"down"==c&&(e=b,f=0),a(this).countTo({from:e,to:f,refreshInterval:h,speed:g,formatter:function(a,b){return a=a.toFixed(b.decimals),a=a.replace(/\B(?=(\d{3})+(?!\d))/g,d),"-0"==a&&(a=0),a}})},a.fn.fusion_draw_circles=function(){var b=a(this),c=b.children(".counter-circle").attr("data-countdown"),d=b.children(".counter-circle").attr("data-filledcolor"),e=b.children(".counter-circle").attr("data-unfilledcolor"),f=b.children(".counter-circle").attr("data-scale"),g=b.children(".counter-circle").attr("data-size"),h=b.children(".counter-circle").attr("data-speed"),i=b.children(".counter-circle").attr("data-strokesize"),j=b.children(".counter-circle").attr("data-percent");f&&(f=a("body").css("color")),c?(b.children(".counter-circle").attr("data-percent",100),b.children(".counter-circle").easyPieChart({barColor:d,trackColor:e,scaleColor:f,scaleLength:5,lineCap:"round",lineWidth:i,size:g,rotate:0,animate:{duration:h,enabled:!0}}),b.children(".counter-circle").data("easyPieChart").enableAnimation(),b.children(".counter-circle").data("easyPieChart").update(j)):b.children(".counter-circle").easyPieChart({barColor:d,trackColor:e,scaleColor:f,scaleLength:5,lineCap:"round",lineWidth:i,size:g,rotate:0,animate:{duration:h,enabled:!0}})},a.fn.fusion_recalc_circles=function(b){var c=a(this);if(!c.is(":hidden")){c.attr("data-currentsize",c.width()),c.removeAttr("style"),c.children().removeAttr("style");var d=(c.data("currentsize"),c.data("originalsize")),e=c.parent().width();e<c.data("currentsize")?(c.css({width:e,height:e,"line-height":e+"px"}),c.find(".fusion-counter-circle").each(function(){a(this).css({width:e,height:e,"line-height":e+"px","font-size":50*e/220}),a(this).data("size",e),a(this).data("strokesize",e/220*11),b||a(this).data("animate",!1),a(this).attr("data-size",e),a(this).attr("data-strokesize",e/220*11)})):(c.css({width:d,height:d,"line-height":d+"px"}),c.find(".fusion-counter-circle").each(function(){a(this).css({width:d,height:d,"line-height":d+"px","font-size":50*d/220}),a(this).data("size",d),a(this).data("strokesize",d/220*11),b||a(this).data("animate",!1),a(this).attr("data-size",d),a(this).attr("data-strokesize",d/220*11)}))}},a.fn.fusion_redraw_circles=function(){var b=a(this);b.is(":hidden")||(b.fusion_recalc_circles(!1),b.find("canvas").remove(),b.find(".counter-circle").removeData("easyPieChart"),b.fusion_draw_circles())},a.fn.fusion_draw_progress=function(){var b=a(this);a("html").hasClass("lt-ie9")?(b.css("visibility","visible"),b.each(function(){var a=b.find(".progress").attr("aria-valuenow");b.find(".progress").css("width","0%"),b.find(".progress").animate({width:a+"%"},"slow")})):b.find(".progress").css("width",function(){return a(this).attr("aria-valuenow")+"%"})},a.fn.fusion_calc_flip_boxes_height=function(){var b,c,d=a(this),e=0;d.find(".flip-box-front").css("min-height",""),d.find(".flip-box-back").css("min-height",""),d.find(".flip-box-front-inner").css("margin-top",""),d.find(".flip-box-back-inner").css("margin-top",""),d.css("min-height",""),setTimeout(function(){d.find(".flip-box-front").outerHeight()>d.find(".flip-box-back").outerHeight()?(c=d.find(".flip-box-front").height(),b=cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)?d.find(".flip-box-front").height():d.find(".flip-box-front").outerHeight(),e=(c-d.find(".flip-box-back-inner").outerHeight())/2,d.find(".flip-box-back").css("min-height",b),d.css("min-height",b),d.find(".flip-box-back-inner").css("margin-top",e)):(c=d.find(".flip-box-back").height(),b=cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)?d.find(".flip-box-back").height():d.find(".flip-box-back").outerHeight(),e=(c-d.find(".flip-box-front-inner").outerHeight())/2,d.find(".flip-box-front").css("min-height",b),d.css("min-height",b),d.find(".flip-box-front-inner").css("margin-top",e)),
cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)&&d.find(".flip-box-back").css("height","100%")},100)},a.fn.fusion_scroller=function(b){var c=a.extend({type:"opacity",offset:0,end_offset:""},b),d=a(this);d.each(function(){var b,d,e,f=this;a(window).on("scroll",function(){b=a(f).offset().top,a("body").hasClass("admin-bar")&&(b=a(f).offset().top-a("#wpadminbar").outerHeight()),c.offset>0&&(b=a(f).offset().top-c.offset),d=a(f).outerHeight(),e=b+d,c.end_offset&&(e=a(c.end_offset).offset().top);var g=a(this).scrollTop();if(g>=b&&e>=g){var h=e-g,i=h/d*100;if("opacity"==c.type){var j=i/100*1;a(f).css({opacity:j})}else if("blur"==c.type){var i=100-i,k="blur("+i/100*50+"px)";a(f).css({"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k})}else if("fading_blur"==c.type){var j=i/100*1,i=100-i,k="blur("+i/100*50+"px)";a(f).css({"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k,opacity:j})}}if(b>g)if("opacity"==c.type)a(f).css({opacity:1});else if("blur"==c.type){var k="blur(0px)";a(f).css({"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k})}else if("fading_blur"==c.type){var k="blur(0px)";a(f).css({opacity:1,"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k})}})})},a.fn.fusion_switch_tab_on_link_click=function(b){if(b)var c=b;else var c="#_"==document.location.hash.substring(0,2)?document.location.hash.replace("#_","#"):document.location.hash;var d="#_"==c.substring(0,2)?c.split("#_")[1]:c.split("#")[1];c&&a(this).find('.nav-tabs li a[href="'+c+'"]').length&&(a(this).find(".nav-tabs li").removeClass("active"),a(this).find('.nav-tabs li a[href="'+c+'"]').parent().addClass("active"),a(this).find(".tab-content .tab-pane").removeClass("in").removeClass("active"),a(this).find('.tab-content .tab-pane[id="'+d+'"]').addClass("in").addClass("active")),c&&a(this).find('.nav-tabs li a[id="'+d+'"]').length&&(a(this).find(".nav-tabs li").removeClass("active"),a(this).find('.nav-tabs li a[id="'+d+'"]').parent().addClass("active"),a(this).find(".tab-content .tab-pane").removeClass("in").removeClass("active"),a(this).find('.tab-content .tab-pane[id="'+a(this).find('.nav-tabs li a[id="'+d+'"]').attr("href").split("#")[1]+'"]').addClass("in").addClass("active"))},a.fn.equalHeights=function(b,c){if(Modernizr.mq("only screen and (min-width: "+js_local_vars.content_break_point+"px)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")){var d=b?b:0;return this.each(function(){a(this).css("min-height","0"),a(this).css("height","auto"),a(this).find(".fusion-column-table").css("height","auto"),a(this).outerHeight()>d&&(d=a(this).outerHeight())}),c&&d>c&&(d=c),this.each(function(){var b=d;"0"==b&&a(this).attr("data-empty-column","true"),a(this).children(".fusion-column-table").length&&(b=d-(a(this).outerHeight()-a(this).height())),a(this).css("min-height",b),a(this).find(".fusion-column-table").height(b)})}return this.each(function(){a(this).css("min-height",""),a(this).find(".fusion-column-table").css("height","")})},a.fn.fusion_set_bg_img_dims=function(){a(this).each(function(){if(('<div class="fusion-clearfix"></div>'==a.trim(a(this).html())||'<div class="fusion-column-table" style="height: 0px;"><div class="fusion-column-tablecell"><div class="fusion-clearfix"></div></div></div>'==a.trim(a(this).html()))&&a(this).data("bg-url")){var b=new Image;b.src=a(this).data("bg-url");var c=parseInt(b.naturalHeight),d=parseInt(b.naturalWidth);b.onload=function(){c=parseInt(this.height),d=parseInt(this.width)},a(this).attr("data-bg-height",c),a(this).attr("data-bg-width",d)}})},a.fn.fusion_calculate_empty_column_height=function(){a(this).each(function(){if((a(this).parents(".fusion-equal-height-columns").length&&(Modernizr.mq("only screen and (max-width: "+js_local_vars.content_break_point+"px)")||1==a(this).data("empty-column"))||!a(this).parents(".fusion-equal-height-columns").length)&&'<div class="fusion-clearfix"></div>'==a.trim(a(this).html())){var b=a(this).data("bg-height"),c=a(this).data("bg-width"),d=a(this).outerWidth(),e=d/c,f=b*e;a(this).height(f)}})},a.fn.reinitialize_google_map=function(){var b=a(this).data("plugin_fusion_maps");if(b){var c=b.map,d=c.getCenter(),e=b.markers;if(google.maps.event.trigger(c,"resize"),c.setCenter(d),e)for(var f=0;f<e.length;f++)google.maps.event.trigger(e[f],"click"),google.maps.event.trigger(e[f],"click")}},a.fn.fusion_filters_initialization=function(b){if(a(this).length){a(this).fadeIn();var c=a(this).find(".fusion-filter"),d=a(this).find(".fusion-active"),e=d.children("a"),f=e.attr("data-filter").substr(1);c&&c.each(function(){var c=a(this),e=c.children("a").data("filter");b&&(f.length&&b.hide(),b.each(function(){var b=a(this),f=b.find(".fusion-rollover-gallery").data("rel");b.hasClass(e.substr(1))&&c.hasClass("fusion-hidden")&&c.removeClass("fusion-hidden"),d.length&&b.hasClass(d)&&(b.show(),b.find(".fusion-rollover-gallery").attr("data-rel",f.replace("gallery",d)))}))}),f.length&&(a(instance.elements).isotope({filter:"."+d}),$il_instances.push(a('[data-rel="iLightbox['+d+']"], [rel="iLightbox['+d+']"]').iLightBox($avada_lightbox.prepare_options("iLightbox["+d+"]"))),$avada_lightbox.refresh_lightbox(),e.data("lightbox","created"))}},a.fn.fusion_footer_parallax=function(){var b=a(this);setTimeout(function(){var c="fixed"==b.css("position")?a("#wrapper").outerHeight():a("#wrapper").outerHeight()-b.outerHeight();if(b.outerHeight()<a(window).height()&&c>a(window).height()&&("Top"==js_local_vars.header_position||"Top"!=js_local_vars.header_position&&a(window).height()>a(".side-header-wrapper").height())&&Modernizr.mq("only screen and (min-width:"+parseInt(js_local_vars.side_header_break_point)+"px)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)")){if(b.css({position:"",margin:"",padding:""}),a("#main").css("margin-bottom",b.outerHeight()),a(".tfs-slider").length>=1&&1==a(".tfs-slider").data("parallax")&&b.hasClass("fusion-footer-parallax")){var d=a(".tfs-slider").parents("#sliders-container").outerHeight(),e=b.outerHeight();d>e?a("#main").css("min-height",d+100):e>d&&a("#main").css("min-height",e+100)}}else b.css({position:"static",margin:"0",padding:"0"}),a("#main").css("margin-bottom","")},1)},a.fn.fusion_countdown=function(){var b=a(this),c=b.data("timer").split("-"),d=b.data("gmt-offset"),e=b.data("omit-weeks");b.countDown({gmtOffset:d,omitWeeks:e,targetDate:{year:c[0],month:c[1],day:c[2],hour:c[3],min:c[4],sec:c[5]}}),b.css("visibility","visible")},a.fn.fusion_deactivate_mobile_image_hovers=function(){1!=js_local_vars.disable_mobile_image_hovers&&(Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)")?a(this).removeClass("fusion-image-hovers"):a(this).addClass("fusion-image-hovers"))},a.fn.fusion_responsive_title_shortcode=function(){a(this).each(function(){var b=a(this),c=b.find("h1, h2, h3, h4, h5, h6"),d=c.data("min-width")?c.data("min-width"):c.outerWidth(),e=b.parent(),f=b.parents(".slide-content").length?e.width():e.outerWidth();0==d&&0==f?b.removeClass("fusion-border-below-title"):d+100>=f?(b.addClass("fusion-border-below-title"),c.data("min-width",d)):b.removeClass("fusion-border-below-title")})},a.fn.fusion_scroll_to_anchor_target=function(){var b=a(this).attr("href"),c=b.substr(b.indexOf("#")).slice(1),d=a("#"+c);if(d.length&&""!==c){var e=get_adminbar_height(),f=get_sticky_header_height(),g=a(document).scrollTop(),h=d.offset().top-e-f,i=Math.abs(g-h)/2;if(g>h)var j=g-i;else var j=g+i;return a("html, body").animate({scrollTop:j},{duration:400,easing:"easeInExpo",complete:function(){e=get_adminbar_height(),f=get_sticky_header_height(),h=d.offset().top-e-f,a("html, body").animate({scrollTop:h},450,"easeOutExpo")}}),d.hasClass("tab-link")&&a(".fusion-tabs").fusion_switch_tab_on_link_click(),!1}}}(jQuery),jQuery(window).load(function(){function a(a,b,c,d){var e=jQuery(this).height();jQuery(this).parent().children().removeClass("active-testimonial"),jQuery(this).addClass("active-testimonial"),jQuery(this).parent().animate({height:e},500)}if("0"==js_local_vars.is_responsive){var b=["col-sm-0","col-sm-1","col-sm-2","col-sm-3","col-sm-4","col-sm-5","col-sm-6","col-sm-7","col-sm-8","col-sm-9","col-sm-10","col-sm-11","col-sm-12"];jQuery(".col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12").each(function(){for(var a=0;a<b.length;a++)-1!==jQuery(this).attr("class").indexOf(b[a])&&jQuery(this).addClass("col-xs-"+a)})}if(setTimeout(function(){jQuery(window).init_waypoint(),jQuery.waypoints("viewportHeight")},300),jQuery(".fusion-modal .fusion-counter-box").each(function(){jQuery(this).appear(function(){jQuery(this).find(".display-counter").each(function(){jQuery(this).fusion_box_counting()})})}),jQuery(".fusion-accordian .counter-circle-wrapper, .fusion-tabs .counter-circle-wrapper, .fusion-modal .counter-circle-wrapper").each(function(){jQuery(this).appear(function(){jQuery(this).fusion_draw_circles()})}),jQuery(".fusion-modal .fusion-progressbar").each(function(){jQuery(this).appear(function(){jQuery(this).fusion_draw_progress()})}),jQuery(".flip-box-inner-wrapper").each(function(){jQuery(this).fusion_calc_flip_boxes_height()}),jQuery(window).resize(function(){jQuery(".flip-box-inner-wrapper").each(function(){jQuery(this).fusion_calc_flip_boxes_height()})}),jQuery().cycle){var c={fx:"fade",before:a,containerResize:0,containerResizeHeight:1,height:"auto",width:"100%",fit:1,speed:500,delay:0};js_local_vars.testimonials_speed&&(c.timeout=parseInt(js_local_vars.testimonials_speed)),c.pager=".testimonial-pagination",jQuery(".fusion-testimonials .reviews").each(function(){1==jQuery(this).children().length&&jQuery(this).children().fadeIn(),c.pager="#"+jQuery(this).parent().find(".testimonial-pagination").attr("id"),c.random=jQuery(this).parent().data("random"),jQuery(this).cycle(c)}),jQuery(window).resize(function(){jQuery(".fusion-testimonials .reviews").each(function(){jQuery(this).css("height",jQuery(this).children(".active-testimonial").height())})})}if(jQuery(document).on("click",".fusion-accordian .panel-title a",function(a){a.preventDefault();var b=jQuery(this),c=jQuery(jQuery(this).data("target")).find(".panel-body");b.hasClass("active")?b.parents(".fusion-accordian ").find(".panel-title a").removeClass("active"):(b.parents(".fusion-accordian ").find(".panel-title a").removeClass("active"),b.addClass("active"),setTimeout(function(){c.find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),c.find(".fusion-carousel").length&&generate_carousel(),c.find(".fusion-portfolio").each(function(){jQuery(this).find(".fusion-portfolio-wrapper").isotope()}),c.find(".flexslider, .rev_slider_wrapper, .ls-container").length&&jQuery(window).trigger("resize"),c.find(".flip-box-inner-wrapper").each(function(){jQuery(this).fusion_calc_flip_boxes_height()}),c.find(".fusion-blog-shortcode").each(function(){var a=2;for(i=1;i<7;i++)jQuery(this).find(".fusion-blog-layout-grid").hasClass("fusion-blog-layout-grid-"+i)&&(a=i);var b=Math.floor(100/a*100)/100+"%";jQuery(this).find(".fusion-blog-layout-grid").find(".fusion-post-grid").css("width",b),jQuery(this).find(".fusion-blog-layout-grid").isotope(),calc_select_arrow_dimensions()})},350))}),jQuery(".fusion-modal").each(function(){jQuery("#wrapper").append(jQuery(this))}),jQuery(".fusion-modal").bind("hidden.bs.modal",function(){jQuery("html").css("overflow","")}),jQuery(".fusion-modal").bind("show.bs.modal",function(){var a=jQuery("#slidingbar");jQuery("html").css("overflow","visible");var b=jQuery(this);setTimeout(function(){if(b.find(".fusion-youtube").find("iframe").each(function(a){if(1==jQuery(this).parents(".fusion-video").data("autoplay")){jQuery(this).parents(".fusion-video").data("autoplay","false");var b="playVideo";this.contentWindow.postMessage('{"event":"command","func":"'+b+'","args":""}',"*")}}),b.find(".fusion-vimeo").find("iframe").each(function(a){1==jQuery(this).parents(".fusion-video").data("autoplay")&&(jQuery(this).parents(".fusion-video").data("autoplay","false"),$f(jQuery(this)[0]).api("play"))}),b.find(".flexslider, .rev_slider_wrapper, .ls-container").length&&jQuery(window).trigger("resize"),b.find(".flip-box-inner-wrapper").each(function(){jQuery(this).fusion_calc_flip_boxes_height()}),b.find(".fusion-carousel").length&&generate_carousel(),b.find(".fusion-blog-shortcode").each(function(){var a=2;for(i=1;i<7;i++)jQuery(this).find(".fusion-blog-layout-grid").hasClass("fusion-blog-layout-grid-"+i)&&(a=i);var b=Math.floor(100/a*100)/100+"%";jQuery(this).find(".fusion-blog-layout-grid").find(".fusion-post-grid").css("width",b),jQuery(this).find(".fusion-blog-layout-grid").isotope(),calc_select_arrow_dimensions()}),b.find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),b.find(".fusion-portfolio").each(function(){jQuery(this).find(".fusion-portfolio-wrapper").isotope()}),a.find(".fusion-testimonials").length){var c=a.find(".fusion-testimonials .reviews").children(".active-testimonial");a.find(".fusion-testimonials .reviews").height(c.height())}calc_select_arrow_dimensions()},350)}),1==jQuery("#sliders-container .tfs-slider").data("parallax")&&jQuery(".fusion-modal").css("top",jQuery(".header-wrapper").height()),jQuery(".fusion-modal").each(function(){jQuery(this).on("hide.bs.modal",function(){jQuery(this).find("iframe").each(function(a){var b="pauseVideo";this.contentWindow.postMessage('{"event":"command","func":"'+b+'","args":""}',"*")}),jQuery(this).find(".fusion-vimeo iframe").each(function(a){$f(this).api("pause")})})}),jQuery("[data-toggle=modal]").on("click",function(a){a.preventDefault()}),jQuery(".fusion-modal-text-link").click(function(a){a.preventDefault()}),(cssua.ua.mobile||cssua.ua.tablet_pc)&&jQuery(".fusion-popover, .fusion-tooltip").each(function(){jQuery(this).attr("data-trigger","click"),jQuery(this).data("trigger","click")}),jQuery('[data-toggle~="popover"]').popover({container:"body"}),jQuery(".vertical-tabs").length&&jQuery(".vertical-tabs .tab-content .tab-pane").each(function(){if(jQuery(this).parents(".vertical-tabs").hasClass("clean")?jQuery(this).css("min-height",jQuery(".vertical-tabs .nav-tabs").outerHeight()-10):jQuery(this).css("min-height",jQuery(".vertical-tabs .nav-tabs").outerHeight()),jQuery(this).find(".video-shortcode").length){var a=parseInt(jQuery(this).find(".fusion-video").css("max-width").replace("px",""));jQuery(this).css({"float":"none","max-width":a+60})}}),jQuery(window).on("resize",function(){jQuery(".vertical-tabs").length&&jQuery(".vertical-tabs .tab-content .tab-pane").css("min-height",jQuery(".vertical-tabs .nav-tabs").outerHeight())}),jQuery('[data-toggle="tooltip"]').each(function(){jQuery(this).parents(".fusion-header-wrapper").length?$container=".fusion-header-wrapper":jQuery(this).parents("#side-header").length?$container="#side-header":$container="body",jQuery(this).tooltip({container:$container})}),jQuery(".fusion-tooltip").hover(function(){var a=jQuery(this).attr("title");jQuery(this).attr("data-title",a),jQuery(this).attr("title","")}),jQuery(".fusion-tooltip").click(function(){var a=jQuery(this).attr("data-title");jQuery(this).attr("title",a),jQuery(this).blur()}),jQuery(".tribe_events_filters_close_filters, .tribe_events_filters_show_filters").on("click",function(){var a=jQuery(this);setTimeout(function(){jQuery(a).parents("#tribe-events-content-wrapper").find(".fusion-blog-layout-grid").isotope()})}),generate_carousel(),jQuery(".content-boxes-icon-boxed").each(function(){jQuery(this).find(".content-box-column .content-wrapper-boxed").equalHeights(),jQuery(this).find(".content-box-column .content-wrapper-boxed").css("overflow","visible")}),jQuery(window).on("resize",function(){jQuery(".content-boxes-icon-boxed").each(function(){jQuery(this).find(".content-box-column .content-wrapper-boxed").equalHeights(),jQuery(this).find(".content-box-column .content-wrapper-boxed").css("overflow","visible")})}),jQuery(".content-boxes-clean-vertical").each(function(){jQuery(this).find(".content-box-column .col").equalHeights(),jQuery(this).find(".content-box-column .col").css("overflow","visible")}),jQuery(window).on("resize",function(){jQuery(".content-boxes-clean-vertical").each(function(){jQuery(this).find(".content-box-column .col").equalHeights(),jQuery(this).find(".content-box-column .col").css("overflow","visible")})}),jQuery(".content-boxes-clean-horizontal").each(function(){jQuery(this).find(".content-box-column .col").equalHeights(),jQuery(this).find(".content-box-column .col").css("overflow","visible")}),jQuery(window).on("resize",function(){jQuery(".content-boxes-clean-horizontal").each(function(){jQuery(this).find(".content-box-column .col").equalHeights(),jQuery(this).find(".content-box-column .col").css("overflow","visible")})}),jQuery(".double-sidebars.woocommerce .social-share > li").equalHeights(),jQuery(".fusion-fullwidth.fusion-equal-height-columns").each(function(){jQuery(this).find(".fusion-layout-column .fusion-column-wrapper").not(function(a,b){return jQuery(b).parents(".fusion-column-wrapper").length?1:0}).equalHeights()}),jQuery(".fusion-layout-column .fusion-column-wrapper").fusion_set_bg_img_dims(),jQuery(".fusion-layout-column .fusion-column-wrapper").fusion_calculate_empty_column_height(),jQuery(window).on("resize",function(){jQuery(".fusion-fullwidth.fusion-equal-height-columns").each(function(){jQuery(this).find(".fusion-layout-column .fusion-column-wrapper").not(function(a,b){return jQuery(b).parents(".fusion-column-wrapper").length?1:0}).equalHeights()}),jQuery(".fusion-layout-column .fusion-column-wrapper").fusion_calculate_empty_column_height()}),cssua.ua.ios){var d=parseInt(cssua.ua.ios);7==d&&jQuery(".button-icon-divider-left, .button-icon-divider-right").each(function(){var a=jQuery(this).parent().outerHeight();jQuery(this).css("height",a)})}}),jQuery(document).ajaxComplete(function(){jQuery(".wpcf7-response-output").each(function(){jQuery(this).hasClass("wpcf7-validation-errors")&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert"),jQuery("body").hasClass("rtl")?jQuery(this).append('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-exclamation-triangle"></i></span>'):jQuery(this).prepend('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-exclamation-triangle"></i></span>')),jQuery(this).hasClass("wpcf7-mail-sent-ok")&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert"),jQuery("body").hasClass("rtl")?jQuery(this).append('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-check-circle"></i></span>'):jQuery(this).prepend('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-check-circle"></i></span>'))}),jQuery(".wpcf7-response-output.fusion-alert .close").click(function(a){a.preventDefault(),jQuery(this).parent().slideUp()})}),jQuery(document).ready(function(a){function b(a){return null!==a.match(/\.(jpeg|jpg|gif|png)$/)}if(add_styles_for_old_ie_versions(),jQuery("body").fusion_deactivate_mobile_image_hovers(),jQuery(window).on("resize",function(){jQuery("body").fusion_deactivate_mobile_image_hovers()}),jQuery(".fusion-countdown-counter-wrapper").each(function(){$countdown_id=jQuery(this).attr("id"),jQuery("#"+$countdown_id).fusion_countdown()}),jQuery(window).on("scroll",fusion_side_header_scroll),jQuery(window).on("resize",fusion_side_header_scroll),jQuery("h1, h2, h3, h4, h5, h6").each(function(){jQuery(this).prop("style")["font-size"]&&jQuery(this).attr("data-inline-fontsize",!0),jQuery(this).prop("style")["font-size"]&&jQuery(this).attr("data-inline-lineheight",!0),jQuery(this).attr("data-fontsize",parseInt(jQuery(this).css("font-size"))),jQuery(this).attr("data-lineheight",parseInt(jQuery(this).css("line-height")))}),1==js_local_vars.typography_responsive&&fusion_calculate_responsive_type_values(js_local_vars.typography_sensitivity,js_local_vars.typography_factor,800,"h1, h2, h3, h4, h5, h6"),jQuery(".tfs-slider").each(function(){fusion_calculate_responsive_type_values(jQuery(this).data("typo_sensitivity"),jQuery(this).data("typo_factor"),800,".tfs-slider h2, .tfs-slider h3")}),jQuery(window).on("resize",function(){jQuery(".fusion-carousel").fusion_recalculate_carousel()}),jQuery(".fusion-video").each(function(){jQuery(this).parents(".fusion-modal").length||1!=jQuery(this).data("autoplay")||jQuery(this).find("iframe").each(function(a){jQuery(this).attr("src",jQuery(this).attr("src").replace("autoplay=0","autoplay=1"))})}),jQuery(".fusion-footer-parallax").fusion_footer_parallax(),jQuery(window).on("resize",function(){jQuery(".fusion-footer-parallax").fusion_footer_parallax()}),jQuery(".fusion-footer .fusion-footer-widget-area .fusion-column").each(function(){jQuery(this).is(":empty")&&jQuery(this).css("margin-bottom","0")}),"1"!=js_local_vars.disable_mobile_animate_css&&cssua.ua.mobile?jQuery("body").addClass("dont-animate"):jQuery("body").addClass("do-animate"),jQuery(".comment-respond .comment-reply-title").length&&!jQuery(".comment-respond .comment-reply-title").parents(".woocommerce-tabs").length){for(var c=js_local_vars.title_style_type.split(" "),d="",e="",f=0;f<c.length;f++)d+=" sep-"+c[f];d.indexOf("underline")>-1&&(e=d),jQuery("body").hasClass("rtl")?jQuery(".comment-respond .comment-reply-title").addClass("title-heading-right"):jQuery(".comment-respond .comment-reply-title").addClass("title-heading-left"),$styles=' style="margin-top:'+js_local_vars.title_margin_top+";margin-bottom:"+js_local_vars.title_margin_bottom+';"',jQuery(".comment-respond .comment-reply-title").wrap('<div class="fusion-title title fusion-title-size-three'+d+'"'+$styles+"></div>"),-1==d.indexOf("underline")&&jQuery(".comment-respond .comment-reply-title").parent().append('<div class="title-sep-container"><div class="title-sep'+d+' "></div></div>')}if(jQuery("#sidebar-2").length>=1){var g=jQuery("#sidebar").css("float");jQuery("body").addClass("sidebar-position-"+g)}jQuery(".fusion-flip-box").mouseover(function(){jQuery(this).addClass("hover")}),jQuery(".fusion-flip-box").mouseout(function(){jQuery(this).removeClass("hover")}),jQuery(".fusion-accordian .panel-title a").click(function(a){a.preventDefault()}),jQuery(".my-show").click(function(){jQuery(".my-hidden").css("visibility","visible")}),jQuery(".demo_store").length&&(jQuery("#wrapper").css("margin-top",jQuery(".demo_store").outerHeight()),jQuery("#slidingbar-area").outerHeight()>0&&jQuery(".header-wrapper").css("margin-top","0"),jQuery(".sticky-header").length&&jQuery(".sticky-header").css("margin-top",jQuery(".demo_store").outerHeight()));var h=0;jQuery("#slidingbar-area.open_onload").length&&(jQuery("#slidingbar").slideDown(240,"easeOutQuad"),jQuery(".sb-toggle").addClass("open"),h=1,jQuery("#slidingbar .shortcode-map").length&&jQuery("#slidingbar").find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),jQuery("#slidingbar-area").removeClass("open_onload")),jQuery(".sb-toggle").click(function(){var a=jQuery(this).parents("#slidingbar-area").children("#slidingbar");if(0===h){if(a.slideDown(240,"easeOutQuad"),jQuery(".sb-toggle").addClass("open"),h=1,a.find(".shortcode-map").length&&a.find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),a.find(".fusion-carousel").length&&generate_carousel(),jQuery("#slidingbar").find(".fusion-carousel").fusion_recalculate_carousel(),a.find(".fusion-testimonials").length){var b=a.find(".fusion-testimonials .reviews").children(".active-testimonial");a.find(".fusion-testimonials .reviews").height(b.height())}}else 1==h&&(a.slideUp(240,"easeOutQuad"),jQuery(".sb-toggle").removeClass("open"),h=0)}),jQuery(".fusion-social-links-footer").find(".fusion-social-networks").children().length||(jQuery(".fusion-social-links-footer").hide(),jQuery(".fusion-footer-copyright-area .fusion-copyright-notice").css("padding-bottom","0")),jQuery().UItoTop&&(cssua.ua.mobile&&"1"==js_local_vars.status_totop_mobile?jQuery().UItoTop({easingType:"easeOutQuart"}):cssua.ua.mobile||jQuery().UItoTop({easingType:"easeOutQuart"})),jQuery(window).on("resize",function(){jQuery(".demo_store").length&&(jQuery("#wrapper").css("margin-top",jQuery(".demo_store").outerHeight()),jQuery(".sticky-header").length&&jQuery(".sticky-header").css("margin-top",jQuery(".demo_store").outerHeight())),jQuery(".sticky-header").length&&(jQuery(window).width()<765?jQuery("body.admin-bar #header-sticky.sticky-header").css("top","46px"):jQuery("body.admin-bar #header-sticky.sticky-header").css("top","32px"))}),"classic"==js_local_vars.mobile_menu_design&&(jQuery(".sh-mobile-nav-holder").append('<div class="mobile-selector"><span>'+js_local_vars.dropdown_goto+"</span></div>"),jQuery(".sh-mobile-nav-holder .mobile-selector").append('<div class="selector-down"></div>')),jQuery(".sh-mobile-nav-holder").append(jQuery(".nav-holder .fusion-navbar-nav").clone()),jQuery(".sh-mobile-nav-holder .fusion-navbar-nav").attr("id","mobile-nav"),jQuery(".sh-mobile-nav-holder ul#mobile-nav").removeClass("fusion-navbar-nav"),jQuery(".sh-mobile-nav-holder ul#mobile-nav").children(".cart").remove(),jQuery(".sh-mobile-nav-holder ul#mobile-nav .mobile-nav-item").children(".login-box").remove(),jQuery(".sh-mobile-nav-holder ul#mobile-nav li").children("#main-nav-search-link").each(function(){jQuery(this).parents("li").remove()}),jQuery(".sh-mobile-nav-holder ul#mobile-nav").find("li").each(function(){var a="mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(a+=" mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).attr("id")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}),jQuery(".sh-mobile-nav-holder .mobile-selector").click(function(){jQuery(".sh-mobile-nav-holder #mobile-nav").hasClass("mobile-menu-expanded")?jQuery(".sh-mobile-nav-holder #mobile-nav").removeClass("mobile-menu-expanded"):jQuery(".sh-mobile-nav-holder #mobile-nav").addClass("mobile-menu-expanded"),jQuery(".sh-mobile-nav-holder #mobile-nav").slideToggle(200,"easeOutQuad")}),1==js_local_vars.submenu_slideout&&(jQuery(".header-wrapper .mobile-topnav-holder .mobile-topnav li, .header-wrapper .mobile-nav-holder .navigation li, .sticky-header .mobile-nav-holder .navigation li, .sh-mobile-nav-holder .navigation li").each(function(){var a="mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("mobile-current-nav-item"))&&(a+=" mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).find(" > ul").length&&(jQuery(this).prepend('<span href="#" aria-haspopup="true" class="open-submenu"></span>'),jQuery(this).find(" > ul").hide())}),jQuery(".header-wrapper .mobile-topnav-holder .open-submenu, .header-wrapper .mobile-nav-holder .open-submenu, .sticky-header .mobile-nav-holder .open-submenu, .sh-mobile-nav-holder .open-submenu").click(function(a){a.stopPropagation(),jQuery(this).parent().children(".sub-menu").slideToggle(200,"easeOutQuad")}));var i=get_adminbar_height(),j=get_sticky_header_height();jQuery(window).on("resize scroll",function(){i=get_adminbar_height(),j=get_sticky_header_height()}),jQuery("body").scrollspy({target:".fusion-menu",offset:parseInt(i+j+1)}),jQuery(window).load(function(){i=get_adminbar_height(),j=get_sticky_header_height(),jQuery("body").data()["bs.scrollspy"].options.offset=parseInt(i+j+1)}),jQuery('.fusion-menu a:not([href="#"], .fusion-megamenu-widgets-container a, .search-link), .fusion-mobile-nav-item a:not([href="#"], .search-link), .fusion-button:not([href="#"], input, button), .fusion-one-page-text-link:not([href="#"])').click(function(a){if(this.hash){var b=window.location.href.split("#"),c=("/"==b[0].charAt(b[0].length-1)?b[0]:b[0]+"/",jQuery(this).attr("href")),d=c.split("#"),e="undefined"!=typeof d[1]?d[1]:null,f=d[0],g=f.substring(f.length-1,f.length);"/"!=g&&(f+="/"),a.preventDefault(),location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||"#"==c.charAt(0)?jQuery(this).fusion_scroll_to_anchor_target():window.location=f+"#_"+e}}),jQuery(".side-nav-left .side-nav li").each(function(){jQuery(this).find("> .children").length&&(jQuery(".rtl").length?jQuery(this).find("> a").prepend('<span class="arrow"></span>'):jQuery(this).find("> a").append('<span class="arrow"></span>'))}),jQuery(".side-nav-right .side-nav li").each(function(){jQuery(this).find("> .children").length&&(jQuery("body.rtl").length?jQuery(this).find("> a").append('<span class="arrow"></span>'):jQuery(this).find("> a").prepend('<span class="arrow"></span>'))}),jQuery(".side-nav .current_page_item").each(function(){jQuery(this).find(".children").length&&jQuery(this).find(".children").show("slow")}),jQuery(".side-nav .current_page_item").each(function(){jQuery(this).parent().hasClass("side-nav")&&jQuery(this).find("ul").show("slow"),jQuery(this).parent().hasClass("children")&&jQuery(this).parents("ul").show("slow")}),("ontouchstart"in document.documentElement||navigator.msMaxTouchPoints)&&(jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").on("click",function(a){var b=jQuery(this);return b.hasClass("hover")?(b.removeClass("hover"),!0):(b.addClass("hover"),jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").not(this).removeClass("hover"),!1)}),jQuery(".sub-menu li, .fusion-mobile-nav-item li").not("li.menu-item-has-children").on("click",function(a){var b=jQuery(this).find("a").attr("href");return"_blank"!=jQuery(this).find("a").attr("target")&&(window.location=b),!0})),jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .side-nav li.page_item_has_children > a").each(function(){jQuery(this).attr("aria-haspopup","true")}),jQuery(".megaResponsive").length>=1&&jQuery(".mobile-nav-holder.main-menu").addClass("set-invisible"),""!==js_local_vars.language_flag&&jQuery(".search-field, .searchform").each(function(){jQuery(this).find('input[name="lang"]').length||jQuery(this).parents(".searchform").find('input[name="lang"]').length||jQuery(this).append('<input type="hidden" name="lang" value="'+js_local_vars.language_flag+'"/>')}),jQuery('<div class="fusion-slider-loading"></div>').insertAfter(".wpcf7 .ajax-loader"),jQuery(".wpcf7 img.ajax-loader").remove(),jQuery(".wpcf7-form .wpcf7-submit").on("click",function(){jQuery(this).parents(".wpcf7-form").find(".fusion-slider-loading").show()}),jQuery(document).ajaxComplete(function(a,b,c){jQuery(".wpcf7-form").find(".fusion-slider-loading").filter(":visible").length&&jQuery(".wpcf7-form").find(".fusion-slider-loading").hide()}),jQuery("#wrapper .fusion-sharing-box").each(function(){jQuery('meta[property="og:title"]').length||(jQuery("head title").after('<meta property="og:title" content="'+jQuery(this).data("title")+'"/>'),jQuery("head title").after('<meta property="og:description" content="'+jQuery(this).data("description")+'"/>'),jQuery("head title").after('<meta property="og:type" content="article"/>'),jQuery("head title").after('<meta property="og:url" content="'+jQuery(this).data("link")+'"/>'),
jQuery("head title").after('<meta property="og:image" content="'+jQuery(this).data("image")+'"/>'))}),jQuery(".fusion-title").fusion_responsive_title_shortcode(),jQuery(window).on("resize",function(){jQuery(".fusion-title").fusion_responsive_title_shortcode()}),"Top"==js_local_vars.header_position&&jQuery(window).on("resize",function(){jQuery(".main-nav-search").each(function(){if(jQuery(this).hasClass("search-box-open")){var a=jQuery(this).find(".main-nav-search-form"),b=a.outerWidth(),c=a.offset().left,d=c+b,e=a.parent().offset().left,f=jQuery(window).width();jQuery("body.rtl").length?c==e&&d>f||e>c&&d+b>f?a.css({left:"auto",right:"0"}):a.css({left:"0",right:"auto"}):e>c&&0>c||c==e&&0>c-b?a.css({left:"0",right:"auto"}):a.css({left:"auto",right:"0"})}})}),jQuery(".fusion-tabs").fusion_switch_tab_on_link_click(),jQuery(".nav-tabs li").click(function(a){var b=jQuery(this),c=b.find("a").attr("href");b.attr("id");if(b.parents(".fusion-tabs").find(".nav li").removeClass("active"),b.parents(".fusion-tabs").find(c).find(".fusion-woo-slider").length){var d=0;b.parents(".fusion-tabs").hasClass("horizontal-tabs")&&(d=b.parents(".fusion-tabs").find(".nav").height()),b.parents(".fusion-tabs").height(b.parents(".fusion-tabs").find(".tab-content").outerHeight(!0)+d)}setTimeout(function(){b.parents(".fusion-tabs").find(c).find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),b.parents(".fusion-tabs").find(c).find(".fusion-carousel").length&&generate_carousel(),b.parents(".fusion-tabs").find(c).find(".fusion-portfolio").each(function(){var a=jQuery(this).find(".fusion-portfolio-wrapper"),b=a.attr("id");b&&(a=jQuery("#"+b)),a.isotope()}),jQuery(window).trigger("resize"),b.parents(".fusion-tabs").find(c).find(".flip-box-inner-wrapper").each(function(){jQuery(this).fusion_calc_flip_boxes_height()}),b.parents(".fusion-tabs").find(c).find(".fusion-woo-slider").length&&b.parents(".fusion-tabs").css("height",""),jQuery(".crossfade-images").each(function(){fusion_resize_crossfade_images_container(jQuery(this)),fusionResizeCrossfadeImages(jQuery(this))}),b.parents(".fusion-tabs").find(c).find(".fusion-blog-shortcode").each(function(){var a=2;for(f=1;7>f;f++)jQuery(this).find(".fusion-blog-layout-grid").hasClass("fusion-blog-layout-grid-"+f)&&(a=f);var b=Math.floor(100/a*100)/100+"%";jQuery(this).find(".fusion-blog-layout-grid").find(".fusion-post-grid").css("width",b),jQuery(this).find(".fusion-blog-layout-grid").isotope(),calc_select_arrow_dimensions()}),calc_select_arrow_dimensions()},350),a.preventDefault()}),jQuery(".tabs-widget .tabset li a").click(function(a){a.preventDefault()}),jQuery(".tabs-widget").each(function(){jQuery(this).find(".tabset li:first").addClass("active").show(),jQuery(this).find(".tab_content:first").show()}),jQuery(".tabs-widget .tabset li").click(function(a){var b=jQuery(this).find("a").attr("href");jQuery(this).parent().find(" > li").removeClass("active"),jQuery(this).addClass("active"),jQuery(this).parents(".tabs-widget").find(".tab_content").hide(),jQuery(this).parents(".tabs-widget").find(b).fadeIn()}),jQuery(".tooltip-shortcode, .fusion-secondary-header .fusion-social-networks li, .fusion-author-social .fusion-social-networks li, .fusion-footer-copyright-area .fusion-social-networks li, .fusion-footer-widget-area .fusion-social-networks li, .sidebar .fusion-social-networks li, .social_links_shortcode li, .share-box li, .social-icon, .social li").mouseenter(function(a){jQuery(this).find(".popup").hoverFlow(a.type,{opacity:"show"})}),jQuery(".tooltip-shortcode, .fusion-secondary-header .fusion-social-networks li, .fusion-author-social .fusion-social-networks li, .fusion-footer-copyright-area .fusion-social-networks li, .fusion-footer-widget-area .fusion-social-networks li, .sidebar .fusion-social-networks li, .social_links_shortcode li, .share-box li, .social-icon, .social li").mouseleave(function(a){jQuery(this).find(".popup").hoverFlow(a.type,{opacity:"hide"})}),jQuery(window).on("resize",function(){jQuery(".fusion-portfolio .fusion-portfolio-wrapper").each(function(){"fixed"==jQuery(this).data("picturesize")&&jQuery(this).find(".fusion-placeholder-image").each(function(){jQuery(this).css({height:jQuery(this).parents(".fusion-portfolio-post").siblings().find("img").first().height(),width:jQuery(this).parents(".fusion-portfolio-post").siblings().find("img").first().width()})})})}),jQuery(".fusion-portfolio .fusion-filters a").click(function(a){a.preventDefault();var b=jQuery(this).data("filter"),c=[],d=jQuery(this).parents(".fusion-portfolio").data("id");d||(d=""),jQuery(this).parents(".fusion-portfolio").find(".fusion-portfolio-wrapper").isotope({filter:b}),jQuery(this).parents(".fusion-filters").find(".fusion-filter").removeClass("fusion-active"),jQuery(this).parent().addClass("fusion-active"),jQuery(this).parents(".fusion-portfolio").find(".fusion-portfolio-wrapper").find(".fusion-portfolio-post").each(function(){var a="";if("individual"==js_local_vars.lightbox_behavior&&jQuery(this).find(".fusion-rollover-gallery").length&&(a=jQuery(this).find(".fusion-rollover-gallery").data("id")),b.length>1)var e=b.substr(1),f="iLightbox["+e+a+d+"]";else var e="fusion-portfolio-post",f="iLightbox[gallery"+a+d+"]";(jQuery(this).hasClass(e)||1==b.length)&&(b.length>1&&-1===jQuery.inArray(e+a+d,c)?c.push(e+a+d):1===b.length&&-1===jQuery.inArray(a+d,c)&&c.push("gallery"+a+d),jQuery(this).find(".fusion-rollover-gallery").attr("data-rel",f),jQuery(this).find(".fusion-portfolio-gallery-hidden a").attr("data-rel",f))}),"created"!=jQuery(this).data("lightbox")&&(jQuery.each(c,function(a,b){$il_instances.push(jQuery('[data-rel="iLightbox['+b+']"], [rel="iLightbox['+b+']"]').iLightBox($avada_lightbox.prepare_options("iLightbox["+b+"]")))}),jQuery(this).data("lightbox","created")),$avada_lightbox.refresh_lightbox()}),jQuery(".fusion-faqs, .fusion-faq-shortcode").each(function(){var a=jQuery(this),b=a.find(".fusion-filters");if(jQuery(".fusion-faqs-wrapper").fadeIn(),b.length){b.fadeIn();var c=b.find(".fusion-filter"),d=b.find(".fusion-active").children("a"),e=d.attr("data-filter").substr(1),f=jQuery(this).find(".fusion-faqs-wrapper .fusion-faq-post");c&&c.each(function(){var a=jQuery(this),b=a.children("a").data("filter");f&&(e.length&&f.hide(),f.each(function(){var c=jQuery(this);c.hasClass(b.substr(1))&&a.hasClass("fusion-hidden")&&a.removeClass("fusion-hidden"),e.length&&c.hasClass(e)&&c.show()}))})}a.find(".fusion-filters a").click(function(b){b.preventDefault();var c=jQuery(this).attr("data-filter");a.find(".fusion-faqs-wrapper .fusion-faq-post").fadeOut(),setTimeout(function(){a.find(".fusion-faqs-wrapper .fusion-faq-post"+c).fadeIn()},400),jQuery(this).parents(".fusion-filters").find(".fusion-filter").removeClass("fusion-active"),jQuery(this).parent().addClass("fusion-active")})}),jQuery(".fusion-alert .close").click(function(a){a.preventDefault(),jQuery(this).parent().slideUp()}),jQuery("input, textarea").placeholder(),Modernizr.mq("only screen and (max-width: 479px)")&&(jQuery(".overlay-full.layout-text-left .slide-excerpt p").each(function(){var a=jQuery(this).html(),b=a.split(/[\s\.\?]+/),c=10,d=b.length,e="";if(d>c+1){for(var f=0;c>f;f++)e+=b[f]+" ";jQuery(this).html(e)}}),jQuery(".fusion-portfolio .fusion-rollover-gallery").each(function(){var a=jQuery(this).attr("href");b(a)===!0&&jQuery(this).parents(".fusion-image-wrapper").find("> img").attr("src",a).attr("width","").attr("height",""),jQuery(this).parents(".fusion-portfolio-post").css("width","auto"),jQuery(this).parents(".fusion-portfolio-post").css("height","auto"),jQuery(this).parents(".fusion-portfolio-one:not(.fusion-portfolio-one-text)").find(".fusion-portfolio-post").css("margin","0")}),jQuery(".fusion-portfolio").length&&jQuery(".fusion-portfolio-wrapper").isotope()),Modernizr.mq("only screen and (max-width: "+js_local_vars.content_break_point+"px)")&&jQuery(".tabs-vertical").addClass("tabs-horizontal").removeClass("tabs-vertical"),jQuery(window).on("resize",function(){Modernizr.mq("only screen and (max-width: "+js_local_vars.content_break_point+"px)")?(jQuery(".tabs-vertical").addClass("tabs-original-vertical"),jQuery(".tabs-vertical").addClass("tabs-horizontal").removeClass("tabs-vertical")):jQuery(".tabs-original-vertical").removeClass("tabs-horizontal").addClass("tabs-vertical")}),jQuery(".textarea-comment").each(function(){jQuery(this).css("max-width",jQuery("#content").width())}),jQuery(window).on("resize",function(){jQuery(".textarea-comment").each(function(){jQuery(this).css("max-width",jQuery("#content").width())})}),Modernizr.mq("only screen and (max-width: "+js_local_vars.content_break_point+"px)")&&jQuery(".fullwidth-faded").each(function(){var a=jQuery(this).css("background-image");jQuery(this).parent().css("background-image",a),jQuery(this).remove()}),jQuery(".gform_wrapper").each(function(){jQuery(this).removeClass("gf_browser_ie")}),jQuery(".link-area-box").on("click",function(){jQuery(this).data("link")&&("_blank"==jQuery(this).data("link-target")?(window.open(jQuery(this).data("link"),"_blank"),jQuery(this).find(".heading-link").removeAttr("href"),jQuery(this).find(".fusion-read-more").removeAttr("href")):window.location=jQuery(this).data("link"),jQuery(this).find(".heading-link").attr("target",""),jQuery(this).find(".fusion-read-more").attr("target",""))}),jQuery(".link-type-button").each(function(){if(jQuery(this).parents(".content-boxes-clean-vertical").length>=1){var a=jQuery(".fusion-read-more-button").outerHeight();jQuery(this).find(".fusion-read-more-button").css("top",a/2)}}),jQuery(".link-area-link-icon .fusion-read-more-button, .link-area-link-icon .fusion-read-more, .link-area-link-icon .heading").mouseenter(function(){jQuery(this).parents(".link-area-link-icon").addClass("link-area-link-icon-hover")}),jQuery(".link-area-link-icon .fusion-read-more-button, .link-area-link-icon .fusion-read-more, .link-area-link-icon .heading").mouseleave(function(){jQuery(this).parents(".link-area-link-icon").removeClass("link-area-link-icon-hover")}),jQuery(".link-area-box").mouseenter(function(){jQuery(this).addClass("link-area-box-hover")}),jQuery(".link-area-box").mouseleave(function(){jQuery(this).removeClass("link-area-box-hover")})}),jQuery(window).load(function(){void 0===cssua.ua.mobile&&("1"==js_local_vars.page_title_fading&&("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position?jQuery(".fusion-page-title-wrapper").fusion_scroller({type:"opacity",end_offset:".fusion-page-title-captions > h1"}):jQuery(".fusion-page-title-wrapper").fusion_scroller({type:"opacity",offset:100})),jQuery(".fullwidth-faded").fusion_scroller({type:"fading_blur"}))});var YT_ready=function(){var a=[],b=!1;return function(c,d){if(c===!0)for(b=!0;a.length;)a.shift()();else"function"==typeof c&&(b?c():a[d?"unshift":"push"](c))}}();jQuery(document).ready(function(){jQuery(".fusion-fullwidth.video-background").each(function(){jQuery(this).find("> div").attr("data-youtube-video-id")&&(window.yt_vid_exists=!0)});var a=jQuery("iframe");jQuery.each(a,function(a,b){var c=jQuery(this).attr("src");if(c){if(Number(js_local_vars.status_vimeo)&&c.indexOf("vimeo")>=1){jQuery(this).attr("id","player_"+(a+1));var d=insertParam(c,"api","1",!1),e=insertParam(d,"player_id","player_"+(a+1),!1),f=insertParam(e,"wmode","opaque",!1);jQuery(this).attr("src",f)}if(Number(js_local_vars.status_yt)&&ytVidId(c)){jQuery(this).attr("id","player_"+(a+1));var d=insertParam(c,"enablejsapi","1",!1),e=insertParam(d,"wmode","opaque",!1);jQuery(this).attr("src",e),window.yt_vid_exists=!0}}}),jQuery(".full-video, .video-shortcode, .wooslider .slide-content, .fusion-recent-works-carousel .fusion-video").not("#bbpress-forums .full-video, #bbpress-forums .video-shortcode, #bbpress-forums .wooslider .slide-content, #bbpress-forums .fusion-recent-works-carousel .fusion-video").fitVids(),jQuery("#bbpress-forums").fitVids(),register_youtube_players(),load_youtube_iframe_api()}),jQuery(window).load(function(){jQuery(".fusion-youtube-flash-fix").remove()});var orig_logo_height=jQuery(".header-wrapper").find(".logo").height(),orig_logo_container_margin_top=String(jQuery(".header-wrapper").find(".logo").data("margin-top")),orig_logo_container_margin_bottom=String(jQuery(".header-wrapper").find(".logo").data("margin-bottom")),orig_menu_height=jQuery(".header-wrapper .fusion-navbar-nav > li > a").outerHeight();if(jQuery("#wrapper").length>=1)var wrapper_position=jQuery("#wrapper").position().left;else var wrapper_position;var is_parallax_tfs_slider=!1;if(orig_logo_container_margin_top||(orig_logo_container_margin_top="0px"),orig_logo_container_margin_bottom||(orig_logo_container_margin_bottom="0px"),jQuery(window).load(function(){function a(a){var b=$f(a),c=jQuery("#"+a).parents("li");b.addEvent("play",function(b){jQuery("#"+a).parents("li").parent().parent().flexslider("pause")}),b.addEvent("pause",function(b){"yes"==jQuery(c).attr("data-loop")?jQuery("#"+a).parents("li").parent().parent().flexslider("pause"):jQuery("#"+a).parents("li").parent().parent().flexslider("play")})}var b=jQuery(".fusion-header-wrapper").height();if(jQuery(".sidebar").is(":visible")&&jQuery(".post-content .fusion-portfolio").each(function(){var a=jQuery(this).data("columns");jQuery(this).addClass("fusion-portfolio-"+a+"-sidebar")}),jQuery().isotope&&jQuery(".fusion-portfolio .fusion-portfolio-wrapper").length&&jQuery(".fusion-portfolio .fusion-portfolio-wrapper").each(function(){jQuery(this).next(".fusion-load-more-button").fadeIn(),"fixed"==jQuery(this).data("picturesize")?jQuery(this).find(".fusion-placeholder-image").each(function(){jQuery(this).css({height:jQuery(this).parents(".fusion-portfolio-post").siblings().find("img").first().height(),width:jQuery(this).parents(".fusion-portfolio-post").siblings().find("img").first().width()})}):jQuery(this).find(".fusion-placeholder-image").each(function(){jQuery(this).css({width:jQuery(this).parents(".fusion-portfolio-post").siblings().first().find("img").width()})});var a="",b=jQuery(this).parents(".fusion-portfolio").find(".fusion-filters");if(b.length){var c=b.find(".fusion-filter"),d=b.find(".fusion-active"),e=d.children("a"),f=e.attr("data-filter").substr(1),g=jQuery(this).find(".fusion-portfolio-post"),h=[];c&&c.each(function(){var a=jQuery(this),b=a.children("a").data("filter");g&&(f.length&&g.hide(),jQuery(".fusion-filters").show(),g.each(function(){var c=jQuery(this),d=c.find(".fusion-rollover-gallery").data("rel");if(c.hasClass(b.substr(1))&&a.hasClass("fusion-hidden")&&a.removeClass("fusion-hidden"),f.length&&c.hasClass(f)&&(c.show(),d)){var e=d.replace("gallery",f);c.find(".fusion-rollover-gallery").attr("data-rel",e),-1===jQuery.inArray(e,h)&&h.push(e)}}))}),f.length&&(a="."+f,jQuery.each(h,function(a,b){$il_instances.push(jQuery('[data-rel="'+b+'"], [rel="'+b+'"]').iLightBox($avada_lightbox.prepare_options(b)))}),$avada_lightbox.refresh_lightbox(),e.data("lightbox","created"))}jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")});var i=jQuery(this),j=i.attr("id");j&&(i=jQuery("#"+j)),setTimeout(function(){i.parent().hasClass("fusion-portfolio-one")?(window.$portfolio_isotope=i,window.$portfolio_isotope.isotope({itemSelector:".fusion-portfolio-post",layoutMode:"vertical",transformsEnabled:!1,isOriginLeft:jQuery(".rtl").length?!1:!0,filter:a})):(window.$portfolio_isotope=i,window.$portfolio_isotope.isotope({itemSelector:".fusion-portfolio-post",resizable:!0,layoutMode:js_local_vars.isotope_type,transformsEnabled:!1,isOriginLeft:jQuery(".rtl").length?!1:!0,filter:a}))},1);var k=jQuery(this).find(".fusion-portfolio-post .fusion-placeholder-image");k.each(function(){jQuery(this).parents(".fusion-portfolio-content-wrapper, .fusion-image-wrapper").animate({opacity:1})});var l=jQuery(this).find(".fusion-portfolio-post .fusion-video");l.each(function(){jQuery(this).animate({opacity:1}),jQuery(this).parents(".fusion-portfolio-content-wrapper").animate({opacity:1})}),l.fitVids(),window.$portfolio_images_index=0,jQuery(this).imagesLoaded().progress(function(a,b){jQuery(b.img).parents(".fusion-portfolio-content-wrapper").length>=1?jQuery(b.img,k).parents(".fusion-portfolio-content-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}):jQuery(b.img,k).parents(".fusion-image-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}),window.$portfolio_images_index++}),setTimeout(function(){jQuery(window).trigger("resize")},250)}),jQuery().flexslider){if(Number(js_local_vars.status_vimeo)){jQuery(".flexslider").find("iframe");jQuery(".flexslider").find("iframe").each(function(){var b=jQuery(this).attr("id");b&&$f(b).addEvent("ready",a)})}jQuery(".tfs-slider").each(function(){var a=this,c=jQuery(a).find("li").get(0);if(jQuery(a).parents(".post-content").length>=1&&(jQuery(a).data("parallax",0),jQuery(a).data("full_screen",0)),cssua.ua.tablet_pc&&jQuery(a).data("parallax",0),(cssua.ua.mobile||Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)"))&&jQuery(a).data("parallax",0),d=0,jQuery("#wpadminbar").length>=1)var d=jQuery("#wpadminbar").height();if(jQuery(a).parents("#sliders-container").length>=1&&1===jQuery(a).data("parallax")&&jQuery(".fusion-header").addClass("fusion-header-backface"),1==jQuery(a).data("full_screen")){var e=jQuery(window).height();if(jQuery(a).parents("#sliders-container").next().hasClass("fusion-header-wrapper")&&(e+=b-d),0===jQuery(a).data("parallax")&&(e=1==js_local_vars.header_transparency||"above"==js_local_vars.slider_position?jQuery(window).height()-d:jQuery(window).height()-(b+d)),Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)"))if("below"==js_local_vars.slider_position)var e=jQuery(window).height()-(b+d);else var e=jQuery(window).height()-d;jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*e,d="-"+(c-jQuery(a).width())/2+"px",f=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length&&(f=jQuery(a).width()),f>c?(c="100%",d=0,$position="static"):$position="absolute",jQuery(this).width(c),jQuery(this).css({left:d,position:$position})})}else{var f=jQuery(a).data("slider_width");if(-1!=f.indexOf("%")){f=jQuery(c).find(".background-image").data("imgwidth"),f||cssua.ua.mobile||(f=jQuery(c).find("video").width()),f||(f=940),jQuery(a).data("first_slide_width",f),f<jQuery(a).data("slider_width")&&(f=jQuery(a).data("slider_width"))}else f=parseInt(jQuery(a).data("slider_width"));var e=parseInt(jQuery(a).data("slider_height")),g=e/f;.5>g&&(g=.5);var h=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(h=jQuery(a).width());var e=g*h;e>parseInt(jQuery(a).data("slider_height"))&&(e=parseInt(jQuery(a).data("slider_height"))),200>e&&(e=200)}if(1==jQuery(a).data("full_screen")&&(jQuery(a).css("max-width","100%"),jQuery(a).find(".slides, .background").css("width","100%")),"Left"!=js_local_vars.header_position&&"Right"!=js_local_vars.header_position||jQuery(a).hasClass("fixed-width-slider")||1!=jQuery(a).data("parallax")||(jQuery(a).css("max-width",jQuery("#wrapper").width()),jQuery("body").hasClass("side-header-left")?jQuery(a).css("left",jQuery("#side-header").width()+1):jQuery("body").hasClass("side-header-right")&&jQuery(a).css("right",jQuery("#side-header").width()+1)),jQuery(a).parents(".fusion-slider-container").css("height",e),jQuery(a).css("height",e),jQuery(a).find(".background, .mobile_video_image").css("height",e),jQuery(".layout-boxed-mode").length>=1){var i=jQuery(".layout-boxed-mode #wrapper").width();jQuery(a).css("width",i),jQuery(a).css("margin-left","auto"),jQuery(a).css("margin-right","auto"),1!=jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")||(jQuery(a).css("left","50%"),"Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position?(i=jQuery(".layout-boxed-mode #wrapper").width()-jQuery(".layout-boxed-mode #side-header").width(),"Right"==js_local_vars.header_position&&(i=jQuery(".layout-boxed-mode #wrapper").width()+jQuery(".layout-boxed-mode #side-header").width()),jQuery(a).css("margin-left","-"+Math.floor(i/2)+"px")):jQuery(a).css("margin-left","-"+i/2+"px")),jQuery(a).find(".slides, .background").css("width","100%")}if(cssua.ua.mobile&&(jQuery(a).find(".fusion-button").each(function(){jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}),jQuery(a).find("li").each(function(){jQuery(this).attr("data-autoplay","no"),jQuery(this).data("autoplay","no")})),jQuery(a).find("a.button").each(function(){jQuery(this).data("old",jQuery(this).attr("class"))}),Modernizr.mq("only screen and (max-width: "+js_local_vars.content_break_point+"px)")?jQuery(a).find(".fusion-button").each(function(){jQuery(this).data("old",jQuery(this).attr("class")),jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}):jQuery(a).find("a.button").each(function(){jQuery(this).attr("class",jQuery(this).data("old"))}),1==jQuery(a).data("parallax")){if(Modernizr.mq("only screen and (min-width: "+js_local_vars.side_header_break_point+"px)")&&0==js_local_vars.header_transparency&&"below"==js_local_vars.slider_position){var j=jQuery(a).find(".slide-content-container");jQuery(j).each(function(){jQuery(this).css("padding-top",b+"px")})}jQuery(window).scroll(function(){jQuery(window).scrollTop()>=jQuery(a).parents("#sliders-container").position().top+jQuery(a).parents("#sliders-container").height()?jQuery(a).css("display","none"):jQuery(a).css("display","block")})}var k=jQuery(window).width(),l=jQuery(window).height();jQuery(window).on("resize",function(){if(jQuery(window).width()!=k||jQuery(window).height()!=l){var b=jQuery(".fusion-header-wrapper").height(),c=0;if(jQuery("#wpadminbar").length>=1)var c=jQuery("#wpadminbar").height();if(1==jQuery(a).data("full_screen")){var d=jQuery(window).height();if(Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&jQuery("#side-header").length)var b=jQuery("#side-header").outerHeight();if(1==js_local_vars.header_transparency)if(Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&"above"!=js_local_vars.slider_position)var d=jQuery(window).height()-(b+c);else var d=jQuery(window).height()-c;else if("above"!=js_local_vars.slider_position)var d=jQuery(window).height()-(b+c);else var d=jQuery(window).height()-c;var e=Math.max.apply(null,jQuery(a).find(".slide-content").map(function(){return jQuery(this).outerHeight()}).get());e+=40,e>d&&(d=e),setTimeout(function(){jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*d,e="-"+(c-jQuery(a).width())/2+"px",f=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length&&(f=jQuery(a).width()),f>c?(c="100%",e=0,$position="static"):$position="absolute",jQuery(this).width(c),jQuery(this).css({left:e,position:$position})})},100)}else{var f=jQuery(a).data("slider_width");if(-1!=f.indexOf("%")){f=jQuery(a).data("first_slide_width"),f<jQuery(a).data("slider_width")&&(f=jQuery(a).data("slider_width"));var g=!0}else f=parseInt(jQuery(a).data("slider_width"));var d=parseInt(jQuery(a).data("slider_height")),h=d/f;.5>h&&(h=.5);var i=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(i=jQuery(a).width());var d=h*i;d>parseInt(jQuery(a).data("slider_height"))&&(d=parseInt(jQuery(a).data("slider_height"))),200>d&&(d=200),jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*d;f>c&&!jQuery(a).hasClass("full-width-slider")&&(c=f);var e="-"+(c-jQuery(a).width())/2+"px",h=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(h=jQuery(a).width()),h>c&&g===!0&&1!=jQuery(a).data("full_screen")&&(c="100%",e=0),jQuery(this).width(c),jQuery(this).css("left",e)})}if(Modernizr.mq("only screen and (max-width: "+js_local_vars.content_break_point+"px)")?jQuery(a).find(".fusion-button").each(function(){jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}):jQuery(a).find(".fusion-button").each(function(){jQuery(this).attr("class",jQuery(this).data("old"))}),1==jQuery(a).data("full_screen")&&"fade"==jQuery(a).data("animation")&&(jQuery(a).css("max-width","100%"),jQuery(a).find(".slides, .background").css("width","100%")),"Left"!=js_local_vars.header_position&&"Right"!=js_local_vars.header_position||jQuery(a).hasClass("fixed-width-slider")||1!=jQuery(a).data("parallax")||(jQuery(a).css("max-width",jQuery("#wrapper").width()),jQuery("body").hasClass("side-header-left")?jQuery(a).css("left",jQuery("#side-header").width()+1):jQuery("body").hasClass("side-header-right")&&jQuery(a).css("right",jQuery("#side-header").width()+1)),jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).parents(".fusion-slider-container").css("max-height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d),jQuery(".layout-boxed-mode").length>=1&&0===jQuery(a).parents(".post-content").length){var j=jQuery(".layout-boxed-mode #wrapper").width();jQuery(a).css("width",j),jQuery(a).css("margin-left","auto"),jQuery(a).css("margin-right","auto"),1!=jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")||(jQuery(a).css("left","50%"),"Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position?(j=jQuery(".layout-boxed-mode #wrapper").width()-jQuery(".layout-boxed-mode #side-header").width(),"Right"==js_local_vars.header_position&&(j=jQuery(".layout-boxed-mode #wrapper").width()+jQuery(".layout-boxed-mode #side-header").width()),jQuery(a).css("margin-left","-"+Math.floor(j/2)+"px")):jQuery(a).css("margin-left","-"+j/2+"px")),"slide"!=jQuery(a).data("animation")&&jQuery(a).find(".slides").css("width","100%"),jQuery(a).find(".background").css("width","100%")}if(1!==jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")){if(1==jQuery(a).data("parallax")&&Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&(jQuery(a).css("position","relative"),jQuery(a).css("left","0"),jQuery(a).css("margin-left","0"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")&&jQuery(".fusion-header-wrapper").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height","auto"),jQuery(a).parents(".fusion-slider-container").css("margin-top",""),jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-o-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("transform","translate(0, 0)"),jQuery(a).find(".flex-control-nav").css("bottom",0),0==js_local_vars.header_transparency&&"below"==js_local_vars.slider_position)){var m=jQuery(a).find(".slide-content-container");jQuery(m).each(function(){jQuery(this).css("padding-top","")})}}else{if(jQuery(a).css("position","fixed"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")){jQuery(".fusion-header-wrapper").css("position","relative");var n="translate(0, "+b/2+"px)";"below"==js_local_vars.slider_position&&jQuery(a).parents(".fusion-slider-container").css("margin-top","-"+b+"px")}else var n="translate(0, 0)";if(jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform",n),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform",n),jQuery(a).find(".flex-direction-nav li a").css("-o-transform",n),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform",n),jQuery(a).find(".flex-direction-nav li a").css("transform",n),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height",b),jQuery(a).hasClass("fixed-width-slider")){if("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position){if(jQuery(a).parents("#sliders-container").length)var o=jQuery("#sliders-container");else var o=jQuery("#main");if(o.width()<parseFloat(jQuery(a).parent().css("max-width"))?jQuery(a).css("max-width",o.width()):jQuery(a).css("max-width",jQuery(a).parent().css("max-width")),o.width()<parseFloat(jQuery(a).parent().css("max-width"))?jQuery(a).css("max-width",o.width()):jQuery(a).css("max-width",jQuery(a).parent().css("max-width")),"Left"==js_local_vars.header_position)var p="-"+(jQuery(a).width()-jQuery("#side-header").width())/2+"px";else var p="-"+(jQuery(a).width()+jQuery("#side-header").width())/2+"px";-1*p>jQuery(a).width()&&(p=-1*jQuery(a).width())}else var p="-"+jQuery(a).width()/2+"px";jQuery(a).css("left","50%"),jQuery(a).css("margin-left",p)}if(jQuery(a).find(".flex-control-nav").css("bottom",b/2),0==js_local_vars.header_transparency&&"below"==js_local_vars.slider_position){var m=jQuery(a).find(".slide-content-container");jQuery(m).each(function(){jQuery(this).css("padding-top",b+"px")})}}Modernizr.mq("only screen and (max-width: 640px)")?(jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d)):Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?(jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d)):(jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d));var m=jQuery(a).find(".slide-content-container");if(jQuery(a).parents(".post-content").length>=1&&(jQuery(a).parents(".fusion-slider-container").css("height","auto"),jQuery(a).css("height","auto"),jQuery(a).parents(".fusion-slider-container").css("max-height","none"),jQuery(a).find(".mobile_video_image").each(function(){var b=jQuery(".mobile_video_image").css("background-image").replace("url(","").replace(")","");if(b){var c=new Image;c.name=b,c.src=b,c.onload=function(){var b=this.height/this.width,c=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(c=jQuery(a).width());var e=b*c;d>e&&(jQuery(a).find(".mobile_video_image").css("height",e),jQuery(a).css("height",e))}}})),("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position)&&jQuery(a).parents("#sliders-container").length>=1){var m=jQuery(a).parents("#sliders-container").find(".slide-content-container");jQuery(m).each(function(){Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")?(jQuery(this).find(".slide-content").css("margin-left",""),jQuery(this).find(".slide-content").css("margin-right","")):jQuery(this).hasClass("slide-content-right")?jQuery(this).find(".slide-content").css("margin-right","100px"):jQuery(this).hasClass("slide-content-left")&&jQuery(this).find(".slide-content").css("margin-left","100px")})}Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&jQuery(".fusion-header-wrapper").css("height",""),k=jQuery(window).width(),l=jQuery(window).height()}}),jQuery(a).parents(".post-content").length>=1&&(jQuery(a).css("max-width","100%"),
"slide"!=jQuery(a).data("animation")&&jQuery(a).find(".slides").css("max-width","100%")),jQuery(a).find("video").each(function(){"function"==typeof jQuery(this)[0].pause&&jQuery(this)[0].pause()}),jQuery(a).flexslider({animation:jQuery(a).data("animation"),slideshow:jQuery(a).data("autoplay"),slideshowSpeed:jQuery(a).data("slideshow_speed"),animationSpeed:jQuery(a).data("animation_speed"),controlNav:Boolean(Number(jQuery(a).data("pagination_circles"))),directionNav:Boolean(Number(jQuery(a).data("nav_arrows"))),animationLoop:Boolean(Number(jQuery(a).data("loop"))),smoothHeight:!0,pauseOnHover:!1,useCSS:!0,video:!0,touch:!0,prevText:"&#xe61e;",nextText:"&#xe620;",start:function(d){if(jQuery(a).parent().find(".fusion-slider-loading").remove(),e=0,jQuery("#wpadminbar").length>=1)var e=jQuery("#wpadminbar").height();jQuery(d.slides.eq(d.currentSlide)).find(".slide-content-container").show(),jQuery(d.slides.eq(d.currentSlide)).find(".fusion-title").fusion_responsive_title_shortcode();var f=Math.max.apply(null,jQuery(a).find(".slide-content").map(function(){return jQuery(this).outerHeight()}).get());if(f+=40,1==jQuery(a).data("full_screen")){var g=jQuery(window).height();if(jQuery(a).parents("#sliders-container").next().hasClass("fusion-header-wrapper")&&(g+=b-e),0===jQuery(a).data("parallax")&&(g=1==js_local_vars.header_transparency||"above"==js_local_vars.slider_position?jQuery(window).height()-e:jQuery(window).height()-(b+e)),Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)"))if("below"==js_local_vars.slider_position)if(jQuery("#side-header").length)var h=jQuery("#side-header").outerHeight(),g=jQuery(window).height()-(h+e);else var g=jQuery(window).height()-(b+e);else var g=jQuery(window).height()-e;f>g&&(g=f),jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*g,d="-"+(c-jQuery(a).width())/2+"px",e=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(e=jQuery(a).width()),e>c&&(c="100%",d=0),jQuery(this).width(c),jQuery(this).css("left",d)})}else{var i=jQuery(a).data("slider_width");if(-1!=i.indexOf("%")){i=jQuery(c).find(".background-image").data("imgwidth"),i||cssua.ua.mobile||(i=jQuery(c).find("video").width()),i||(i=940),jQuery(a).data("first_slide_width",i),i<jQuery(a).data("slider_width")&&(i=jQuery(a).data("slider_width"));var j=!0}else i=parseInt(jQuery(a).data("slider_width"));var g=parseInt(jQuery(a).data("slider_height")),k=g/i;.5>k&&(k=.5);var l=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(l=jQuery(a).width());var g=k*l;g>parseInt(jQuery(a).data("slider_height"))&&(g=parseInt(jQuery(a).data("slider_height"))),200>g&&(g=200),f>g&&(g=f),jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*g;i>c&&!jQuery(a).hasClass("full-width-slider")&&(c=i);var d="-"+(c-jQuery(a).width())/2+"px",e=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(e=jQuery(a).width()),e>c&&j===!0&&1!=jQuery(a).data("full_screen")&&(c="100%",d=0),jQuery(this).width(c),jQuery(this).css("left",d)})}if(jQuery(a).parents(".fusion-slider-container").css("max-height",g),jQuery(a).parents(".fusion-slider-container").css("height",g),jQuery(a).css("height",g),jQuery(a).find(".background, .mobile_video_image").css("height",g),1!==jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")){if(1==jQuery(a).data("parallax")&&Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")&&(jQuery(a).css("position","relative"),jQuery(a).css("left","0"),jQuery(a).css("margin-left","0"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")&&jQuery(".fusion-header-wrapper").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height","auto"),jQuery(a).parents(".fusion-slider-container").css("margin-top",""),jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-o-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("transform","translate(0, 0)"),jQuery(a).find(".flex-control-nav").css("bottom",0),0==js_local_vars.header_transparency&&"below"==js_local_vars.slider_position)){var m=jQuery(a).find(".slide-content-container");jQuery(m).each(function(){jQuery(this).css("padding-top","")})}}else{if(jQuery(a).css("position","fixed"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")){jQuery(".fusion-header-wrapper").css("position","relative");var n="translate(0, "+b/2+"px)";"below"==js_local_vars.slider_position&&jQuery(a).parents(".fusion-slider-container").css("margin-top","-"+b+"px")}else var n="translate(0, 0)";if(jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform",n),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform",n),jQuery(a).find(".flex-direction-nav li a").css("-o-transform",n),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform",n),jQuery(a).find(".flex-direction-nav li a").css("transform",n),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height",b),1==jQuery(a).data("full_screen")?jQuery(d).find(".flex-control-nav").css("bottom",b/2):jQuery(d).find(".flex-control-nav").css("bottom",0),jQuery(a).hasClass("fixed-width-slider")){if("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position){if(jQuery(a).parents("#sliders-container").length)var o=jQuery("#sliders-container");else var o=jQuery("#main");if(o.width()<parseFloat(jQuery(a).parent().css("max-width"))?jQuery(a).css("max-width",o.width()):jQuery(a).css("max-width",jQuery(a).parent().css("max-width")),"Left"==js_local_vars.header_position)var p="-"+(jQuery(a).width()-jQuery("#side-header").width())/2+"px";else var p="-"+(jQuery(a).width()+jQuery("#side-header").width())/2+"px";-1*p>jQuery(a).width()&&(p=-1*jQuery(a).width())}else var p="-"+jQuery(a).width()/2+"px";jQuery(a).css("left","50%"),jQuery(a).css("margin-left",p)}if(0==js_local_vars.header_transparency&&"below"==js_local_vars.slider_position){var m=jQuery(a).find(".slide-content-container");jQuery(m).each(function(){jQuery(this).css("padding-top",b+"px")})}}var m=jQuery(a).find(".slide-content-container");if(jQuery(d.slides.eq(d.currentSlide)).find("video").each(function(){"yes"==jQuery(this).parents("li").attr("data-autoplay")&&"function"==typeof jQuery(this)[0].play&&jQuery(this)[0].play()}),("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position)&&jQuery(a).parents("#sliders-container").length>=1){var m=jQuery(a).parents("#sliders-container").find(".slide-content-container");jQuery(m).each(function(){Modernizr.mq("only screen and (max-width: "+js_local_vars.side_header_break_point+"px)")||(jQuery(this).hasClass("slide-content-right")?jQuery(this).find(".slide-content").css("margin-right","100px"):jQuery(this).hasClass("slide-content-left")&&jQuery(this).find(".slide-content").css("margin-left","100px"))})}fusion_reanimate_slider(m),"undefined"!=typeof d.slides&&0!==d.slides.eq(d.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)&&($f(d.slides.eq(d.currentSlide).find("iframe")[0]).api("pause"),"yes"==jQuery(d.slides.eq(d.currentSlide)).data("autoplay")&&$f(d.slides.eq(d.currentSlide).find("iframe")[0]).api("play"),"yes"==jQuery(d.slides.eq(d.currentSlide)).data("mute")&&$f(d.slides.eq(d.currentSlide).find("iframe")[0]).api("setVolume",0)),playVideoAndPauseOthers(d)),jQuery(a).find(".overlay-link").hide(),jQuery(d.slides.eq(d.currentSlide)).find(".overlay-link").show(),jQuery(a).find("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var a=jQuery(this);setTimeout(function(){resizeVideo(a)},500)}),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(b){jQuery(a).find(".slide-content-container").hide(),0!==b.slides.eq(b.currentSlide).find("iframe").length&&Number(js_local_vars.status_vimeo)&&(jQuery(a).find("iframe").each(function(){$f(jQuery(this)[0]).api("pause")}),"yes"==jQuery(b.slides.eq(b.currentSlide)).data("autoplay")&&$f(b.slides.eq(b.currentSlide).find("iframe")[0]).api("play"),"yes"==jQuery(b.slides.eq(b.currentSlide)).data("mute")&&$f(b.slides.eq(b.currentSlide).find("iframe")[0]).api("setVolume",0)),playVideoAndPauseOthers(b)},after:function(b){jQuery(b.slides.eq(b.currentSlide)).find(".slide-content-container").show(),jQuery(b.slides.eq(b.currentSlide)).find(".fusion-title").fusion_responsive_title_shortcode();var c=jQuery(a).find(".slide-content-container");fusion_reanimate_slider(c),0!==b.slides.eq(b.currentSlide).find("iframe").length&&Number(js_local_vars.status_vimeo)&&(jQuery(a).find("iframe").each(function(){$f(jQuery(this)[0]).api("pause")}),"yes"==jQuery(b.slides.eq(b.currentSlide)).data("autoplay")&&$f(b.slides.eq(b.currentSlide).find("iframe")[0]).api("play"),"yes"==jQuery(b.slides.eq(b.currentSlide)).data("mute")&&$f(b.slides.eq(b.currentSlide).find("iframe")[0]).api("setVolume",0)),jQuery(a).find(".overlay-link").hide(),jQuery(b.slides.eq(b.currentSlide)).find(".overlay-link").show(),jQuery(b.slides.eq(b.currentSlide)).find("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){resizeVideo(jQuery(this))}),playVideoAndPauseOthers(b),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}})}),"false"===js_local_vars.page_smoothHeight?page_smoothHeight=!1:page_smoothHeight=!0,jQuery(".fusion-blog-layout-grid .flexslider").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:Number(js_local_vars.slideshow_speed),video:!0,smoothHeight:page_smoothHeight,pauseOnHover:!1,useCSS:!1,prevText:"&#xf104;",nextText:"&#xf105;",start:function(a){jQuery(a).removeClass("fusion-flexslider-loading"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)&&$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})}),playVideoAndPauseOthers(a))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),"false"===js_local_vars.flex_smoothHeight?flex_smoothHeight=!1:flex_smoothHeight=!0,jQuery(".fusion-flexslider").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!0,smoothHeight:flex_smoothHeight,pauseOnHover:!1,useCSS:!1,prevText:"&#xf104;",nextText:"&#xf105;",start:function(a){a.removeClass("fusion-flexslider-loading"),jQuery(window).trigger("resize"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)&&$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})}),playVideoAndPauseOthers(a))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),jQuery(".flexslider:not(.tfs-slider)").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!0,smoothHeight:flex_smoothHeight,pauseOnHover:!1,useCSS:!1,prevText:"&#xf104;",nextText:"&#xf105;",start:function(a){a.removeClass("fusion-flexslider-loading"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)&&$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})}),playVideoAndPauseOthers(a))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),jQuery(".flex-next, .flex-prev").click(function(){})}jQuery().isotope&&jQuery(".fusion-blog-layout-grid").each(function(){$grid_container=jQuery(this);var a=2;for(i=1;i<7;i++)jQuery(this).hasClass("fusion-blog-layout-grid-"+i)&&(a=i);var b=Math.floor(100/a*100)/100+"%";if($grid_container.find(".fusion-post-grid").css("width",b),$grid_container.isotope({layoutMode:"masonry",itemSelector:".fusion-post-grid",transformsEnabled:!1,isOriginLeft:jQuery("body.rtl").length?!1:!0,resizable:!0}),($grid_container.hasClass("fusion-blog-layout-grid-4")||$grid_container.hasClass("fusion-blog-layout-grid-5")||$grid_container.hasClass("fusion-blog-layout-grid-6"))&&Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")){var b=Math.floor(100/3*100)/100+"%";$grid_container.find(".fusion-post-grid").css("width",b),$grid_container.isotope({layoutMode:"masonry",itemSelector:".fusion-post-grid",transformsEnabled:!1,isOriginLeft:jQuery("body.rtl").length?!1:!0,resizable:!0})}setTimeout(function(){jQuery(window).trigger("resize"),$grid_container.isotope()},250)}),Boolean(Number(js_local_vars.avada_rev_styles))&&jQuery(".rev_slider_wrapper").each(function(){var a=jQuery(this);if(a.length>=1&&-1==a.attr("class").indexOf("tp-shadow")&&(jQuery('<div class="shadow-left">').appendTo(this),jQuery('<div class="shadow-right">').appendTo(this),a.addClass("avada-skin-rev")),!(jQuery(this).find(".tp-leftarrow").hasClass("preview1")||jQuery(this).find(".tp-leftarrow").hasClass("preview2")||jQuery(this).find(".tp-leftarrow").hasClass("preview3")||jQuery(this).find(".tp-leftarrow").hasClass("preview4"))){if(jQuery(this).addClass("avada-skin-rev-nav"),a.find(".tp-leftarrow").height()>a.height()/4&&a.find(".tp-leftarrow").height()<a.height()){var b=a.attr("id"),c=a.height()/4;a.children(".avada-rev-arrows").length?(a.children(".avada-rev-arrows").empty(),a.children(".avada-rev-arrows").append('<style type="text/css">#'+b+" .tp-leftarrow, #"+b+" .tp-rightarrow{margin-top:-"+c/2+"px !important;width:"+c+"px !important;height:"+c+"px !important;}#"+b+" .tp-leftarrow:before, #"+b+" .tp-rightarrow:before{line-height:"+c+"px;font-size:"+c/2+"px;}</style>")):a.prepend('<div class="avada-rev-arrows"><style type="text/css">#'+b+" .tp-leftarrow, #"+b+" .tp-rightarrow{margin-top:-"+c/2+"px !important;width:"+c+"px !important;height:"+c+"px !important;}#"+b+" .tp-leftarrow:before, #"+b+" .tp-rightarrow:before{line-height:"+c+"px;font-size:"+c/2+"px;}</style></div>")}jQuery(window).on("resize",function(){if(a.find(".tp-leftarrow").height()>a.height()/4&&a.find(".tp-leftarrow").height()<a.height()){var b=a.attr("id"),c=a.height()/4;a.children(".avada-rev-arrows").length?(a.children(".avada-rev-arrows").empty(),a.children(".avada-rev-arrows").append('<style type="text/css">#'+b+" .tp-leftarrow, #"+b+" .tp-rightarrow{margin-top:-"+c/2+"px !important;width:"+c+"px !important;height:"+c+"px !important;}#"+b+" .tp-leftarrow:before, #"+b+" .tp-rightarrow:before{line-height:"+c+"px;font-size:"+c/2+"px;}</style>")):a.prepend('<div class="avada-rev-arrows"><style type="text/css">#'+b+" .tp-leftarrow, #"+b+" .tp-rightarrow{margin-top:-"+c/2+"px !important;width:"+c+"px !important;height:"+c+"px !important;}#"+b+" .tp-leftarrow:before, #"+b+" .tp-rightarrow:before{line-height:"+c+"px;font-size:"+c/2+"px;}</style></div>")}else a.children(".avada-rev-arrows").remove()})}})}),jQuery(document).ready(function(){if(jQuery().flexslider&&jQuery(".woocommerce .images #carousel").length>=1){jQuery("body.woocommerce .sidebar").is(":visible")?wooThumbWidth=100:wooThumbWidth=118,"undefined"!=typeof jQuery(".woocommerce .images #carousel").data("flexslider")&&(jQuery(".woocommerce .images #carousel").flexslider("destroy"),jQuery(".woocommerce .images #slider").flexslider("destroy")),jQuery(".woocommerce .images #carousel").flexslider({animation:"slide",controlNav:!1,directionNav:!1,animationLoop:!1,slideshow:!1,itemWidth:wooThumbWidth,itemMargin:9,touch:!1,useCSS:!1,asNavFor:".woocommerce .images #slider",smoothHeight:!1,prevText:"&#xf104;",nextText:"&#xf105;",start:function(a){jQuery(a).removeClass("fusion-flexslider-loading")}}),jQuery(".woocommerce .images #slider").flexslider({animation:"slide",controlNav:!1,animationLoop:!1,slideshow:!1,smoothHeight:!0,touch:!0,useCSS:!1,sync:".woocommerce .images #carousel",prevText:"&#xf104;",nextText:"&#xf105;",start:function(a){jQuery(a).removeClass("fusion-flexslider-loading")}})}jQuery().flexslider&&jQuery(".flexslider-attachments").length>=1&&("undefined"!=typeof jQuery(".flexslider-attachments").data("flexslider")&&jQuery(".flexslider-attachments").flexslider("destroy"),jQuery(".flexslider-attachments").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!1,smoothHeight:!1,pauseOnHover:!1,useCSS:!1,prevText:"&#xf104;",nextText:"&#xf105;",controlNav:"thumbnails",start:function(a){jQuery(a).find(".fusion-slider-loading").remove(),a.removeClass("fusion-flexslider-loading")}}))}),jQuery(window).load(function(){if("Click"==js_local_vars.sidenav_behavior?jQuery(".side-nav li a").on("click",function(a){return jQuery(this).parent(".page_item_has_children").length&&(jQuery(this).parent().find("> .children").length&&!jQuery(this).parent().find("> .children").is(":visible")?jQuery(this).parent().find("> .children").stop(!0,!0).slideDown("slow"):jQuery(this).parent().find("> .children").stop(!0,!0).slideUp("slow")),jQuery(this).parent(".page_item_has_children.current_page_item").length?!1:void 0}):jQuery(".side-nav li").hoverIntent({over:function(){jQuery(this).find("> .children").length&&jQuery(this).find("> .children").stop(!0,!0).slideDown("slow")},out:function(){0===jQuery(this).find(".current_page_item").length&&jQuery(this).hasClass("current_page_item")===!1&&jQuery(this).find(".children").stop(!0,!0).slideUp("slow")},timeout:500}),jQuery().eislideshow){var a={autoplay:Boolean(Number(js_local_vars.tfes_autoplay))};js_local_vars.tfes_animation&&(a.animation=js_local_vars.tfes_animation),js_local_vars.tfes_interval&&(a.slideshow_interval=js_local_vars.tfes_interval),js_local_vars.tfes_speed&&(a.speed=js_local_vars.tfes_speed),js_local_vars.tfes_width&&(a.thumbMaxWidth=js_local_vars.tfes_width),jQuery("#ei-slider").eislideshow(a)}var b=jQuery(".fusion-blog-layout-timeline").find(".fusion-timeline-date").last().text(),c=!0;jQuery(".fusion-blog-layout-timeline").find(".fusion-timeline-date").click(function(){jQuery(this).next(".fusion-collapse-month").slideToggle()}),jQuery(".fusion-timeline-icon").find(".fusion-icon-bubbles").click(function(){c?(jQuery(this).parent().next(".fusion-blog-layout-timeline").find(".fusion-collapse-month").slideUp(),c=!1):(jQuery(this).parent().next(".fusion-blog-layout-timeline").find(".fusion-collapse-month").slideDown(),c=!0)}),jQuery(".fusion-posts-container-infinite").each(function(){var a=jQuery(this),d=jQuery(this).find(".post");jQuery(this).find(".fusion-blog-layout-timeline").length&&(a=jQuery(this).find(".fusion-blog-layout-timeline")),$parent_wrapper_classes="",a.parents(".fusion-blog-shortcode").length&&($parent_wrapper_classes="."+a.parents(".fusion-blog-shortcode").attr("class").replace(/\ /g,".")+" "),jQuery(a).infinitescroll({navSelector:$parent_wrapper_classes+"div.pagination",nextSelector:$parent_wrapper_classes+"a.pagination-next",itemSelector:$parent_wrapper_classes+"div.pagination .current, "+$parent_wrapper_classes+"div.post:not( .fusion-archive-description ), "+$parent_wrapper_classes+".fusion-collapse-month, "+$parent_wrapper_classes+".fusion-timeline-date",loading:{finishedMsg:js_local_vars.infinite_finished_msg,msg:jQuery('<div class="fusion-loading-container fusion-clearfix"><div class="fusion-loading-spinner"><div class="fusion-spinner-1"></div><div class="fusion-spinner-2"></div><div class="fusion-spinner-3"></div></div><div class="fusion-loading-msg">'+js_local_vars.infinite_blog_text+"</div>")},errorCallback:function(){jQuery(a).hasClass("isotope")&&jQuery(a).isotope()}},function(e){if(jQuery(a).hasClass("fusion-blog-layout-timeline")&&(jQuery(e).first(".fusion-timeline-date").text()==b&&jQuery(e).first(".fusion-timeline-date").remove(),b=jQuery(a).find(".fusion-timeline-date").last().text(),jQuery(a).find(".fusion-timeline-date").each(function(){jQuery(this).next(".fusion-collapse-month").append(jQuery(this).nextUntil(".fusion-timeline-date",".fusion-post-timeline"))}),c||setTimeout(function(){jQuery(a).find(".fusion-collapse-month").hide()},200),setTimeout(function(){jQuery(a).find(".fusion-collapse-month").each(function(){jQuery(this).children().length||jQuery(this).remove()})},10),jQuery(a).find(".fusion-timeline-date").unbind("click"),jQuery(a).find(".fusion-timeline-date").click(function(){jQuery(this).next(".fusion-collapse-month").slideToggle()})),jQuery(a).hasClass("fusion-blog-layout-grid")&&jQuery().isotope){jQuery(e).hide();var f=2;for(i=1;i<7;i++)jQuery(a).hasClass("fusion-blog-layout-grid-"+i)&&(f=i);var g=Math.floor(100/f*100)/100+"%";jQuery(a).find(".post").css("width",g),imagesLoaded(e,function(){jQuery(e).fadeIn(),jQuery(a).hasClass("isotope")&&(jQuery(a).isotope("appended",jQuery(e)),jQuery(a).isotope()),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})}jQuery(a).find(".flexslider").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!0,pauseOnHover:!1,useCSS:!1,prevText:"&#xf104;",nextText:"&#xf105;",start:function(a){a.removeClass("fusion-flexslider-loading"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)&&$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})}))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0&&YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),jQuery(e).each(function(){jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),$fusion_posts_container=a,jQuery(a).hasClass("fusion-blog-layout-timeline")&&($fusion_posts_container=jQuery(a).parents(".fusion-posts-container-infinite")),$current_page=$fusion_posts_container.find(".current").html(),$fusion_posts_container.find(".current").remove(),$fusion_posts_container.data("pages")==$current_page&&($fusion_posts_container.parent().find(".fusion-loading-container").hide(),$fusion_posts_container.parent().find(".fusion-load-more-button").hide()),"individual"!=js_local_vars.lightbox_behavior&&d.find(".fusion-post-slideshow").length||($avada_lightbox.activate_lightbox(jQuery(e)),d=a.find(".post")),$avada_lightbox.refresh_lightbox()}),(jQuery(a).hasClass("fusion-blog-archive")&&"load_more_button"==js_local_vars.blog_pagination_type||jQuery(a).hasClass("fusion-posts-container-load-more")||jQuery(a).hasClass("fusion-blog-layout-timeline")&&jQuery(a).parent().hasClass("fusion-posts-container-load-more"))&&(jQuery(a).infinitescroll("unbind"),jQuery(a).hasClass("fusion-blog-archive")?$load_more_button=jQuery(a).parent().find(".fusion-load-more-button"):$load_more_button=jQuery(a).parents(".fusion-blog-archive").find(".fusion-load-more-button"),$load_more_button.on("click",function(b){b.preventDefault(),jQuery(a).infinitescroll("retrieve"),jQuery(a).hasClass("fusion-blog-layout-grid")&&jQuery(a).isotope()})),$fusion_posts_container=a,jQuery(a).hasClass("fusion-blog-layout-timeline")&&jQuery(a).parents(".fusion-blog-layout-timeline-wrapper").length&&($fusion_posts_container=jQuery(a).parents(".fusion-posts-container-infinite")),"1"==$fusion_posts_container.data("pages")&&($fusion_posts_container.parent().find(".fusion-loading-container").hide(),$fusion_posts_container.parent().find(".fusion-load-more-button").hide())}),("Infinite Scroll"==js_local_vars.portfolio_pagination_type||"load_more_button"==js_local_vars.portfolio_pagination_type)&&($infinte_scroll_container=jQuery(".fusion-portfolio:not(.fusion-recent-works) .fusion-portfolio-wrapper"),$infinte_scroll_container.infinitescroll({navSelector:".pagination",nextSelector:".pagination-next",itemSelector:"div.pagination .current, .fusion-portfolio-post",loading:{finishedMsg:js_local_vars.infinite_finished_msg,msg:jQuery('<div class="fusion-loading-container fusion-clearfix"><div class="fusion-loading-spinner"><div class="fusion-spinner-1"></div><div class="fusion-spinner-2"></div><div class="fusion-spinner-3"></div></div><div class="fusion-loading-msg">'+js_local_vars.infinite_blog_text+"</div>")},errorCallback:function(){jQuery(".fusion-portfolio .fusion-portfolio-wrapper").isotope()}},function(a){if(jQuery().isotope){var b=jQuery(".fusion-filters").find(".fusion-filter"),a=jQuery(a);a.hide(),imagesLoaded(a,function(){var c=jQuery(a).find(".fusion-placeholder-image");c.parents(".fusion-portfolio-content-wrapper, .fusion-image-wrapper").animate({opacity:1});var d=jQuery(a).find(".fusion-video");if(d.each(function(){jQuery(this).animate({opacity:1}),jQuery(this).parents(".fusion-portfolio-content-wrapper").animate({opacity:1})}),d.fitVids(),window.$portfolio_images_index=0,jQuery(a).imagesLoaded().progress(function(a,b){jQuery(b.img).parents(".fusion-portfolio-content-wrapper").length>=1?jQuery(b.img,c).parents(".fusion-portfolio-content-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}):jQuery(b.img,c).parents(".fusion-image-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}),window.$portfolio_images_index++}),b&&b.each(function(){var b=jQuery(this),c=b.children("a").data("filter");a&&a.each(function(){
if($post=jQuery(this),$post.hasClass(c.substr(1))&&b.hasClass("fusion-hidden"))if(Modernizr.mq("only screen and (max-width: "+js_local_vars.content_break_point+"px)"))b.fadeIn(400,function(){b.removeClass("fusion-hidden")});else{var a=b.css("width"),d=b.css("margin-right");b.css("width",0),b.css("margin-right",0),b.removeClass("fusion-hidden"),b.animate({width:a,"margin-right":d},400,function(){b.removeAttr("style")})}})}),jQuery(".fusion-filters").length){var e=jQuery(".fusion-portfolio .fusion-filters").find(".fusion-filter.fusion-active a"),f=e.attr("data-filter").substr(1);f.length?(a.each(function(){var a=jQuery(this),b=a.find(".fusion-rollover-gallery").data("rel");a.hasClass(f)&&(a.fadeIn(),b&&a.find(".fusion-rollover-gallery").attr("data-rel",b.replace("gallery",f)))}),"created"!=e.data("lightbox")&&($il_instances.push(jQuery('[data-rel^="iLightbox['+f+']"]').iLightBox($avada_lightbox.prepare_options("iLightbox["+f+"]"))),e.data("lightbox","created")),$avada_lightbox.refresh_lightbox()):a.fadeIn()}else a.fadeIn();$infinte_scroll_container.isotope("appended",a),a.each(function(){jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")}),$current_page=$infinte_scroll_container.find(".current").html(),$infinte_scroll_container.find(".current").remove(),$infinte_scroll_container.data("pages")==$current_page&&($infinte_scroll_container.parent().find(".fusion-loading-container").hide(),$infinte_scroll_container.parent().find(".fusion-load-more-button").hide())})}}),"1"==$infinte_scroll_container.data("pages")&&($infinte_scroll_container.parent().find(".fusion-loading-container").hide(),$infinte_scroll_container.parent().find(".fusion-load-more-button").hide()),"load_more_button"==js_local_vars.portfolio_pagination_type&&($infinte_scroll_container.infinitescroll("unbind"),jQuery(".fusion-portfolio").find(".fusion-load-more-button").on("click",function(a){a.preventDefault(),$infinte_scroll_container.infinitescroll("retrieve"),$infinte_scroll_container.isotope()})))}),location.hash&&"#_"===location.hash.substring(0,2)){var $hash=location.hash.substring(2);jQuery(".fusion-page-load-link").attr("href","#"+$hash),jQuery(window).load(function(){jQuery(".fusion-blog-shortcode").length?setTimeout(function(){jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()},300):jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()})}