(function($){function sc_setScroll(t,o,n){return"transition"==n.transition&&"swing"==o&&(o="ease"),{anims:[],duration:t,orgDuration:t,easing:o,startTime:getTime()}}function sc_startScroll(t,o){for(var n=0,r=t.anims.length;r>n;n++){var u=t.anims[n];u&&u[0][o.transition](u[1],t.duration,t.easing,u[2])}}function sc_stopScroll(t,o){is_boolean(o)||(o=!0),is_object(t.pre)&&sc_stopScroll(t.pre,o);for(var n=0,r=t.anims.length;r>n;n++){var u=t.anims[n];u[0].stop(!0),o&&(u[0].css(u[1]),is_function(u[2])&&u[2]())}is_object(t.post)&&sc_stopScroll(t.post,o)}function sc_afterScroll(t,o,n){switch(o&&o.remove(),n.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":t.css("opacity",1),t.css("filter","")}}function sc_fireCallbacks(t,o,n,r,u){if(o[n]&&o[n].call(t,r),u[n].length)for(var p=0,d=u[n].length;d>p;p++)u[n][p].call(t,r);return[]}function sc_fireQueue(t,o,n){return o.length&&(t.trigger(cf_e(o[0][0],n),o[0][1]),o.shift()),o}function sc_hideHiddenItems(t){t.each((function(){var t=$(this);t.data("_cfs_isHidden",t.is(":hidden")).hide()}))}function sc_showHiddenItems(t){t&&t.each((function(){var t=$(this);t.data("_cfs_isHidden")||t.show()}))}function sc_clearTimers(t){return t.auto&&clearTimeout(t.auto),t.progress&&clearInterval(t.progress),t}function sc_mapCallbackArguments(t,o,n,r,u,p,d){return{width:d.width,height:d.height,items:{old:t,skipped:o,visible:n},scroll:{items:r,direction:u,duration:p}}}function sc_getDuration(t,o,n,r){var u=t.duration;return"none"==t.fx?0:("auto"==u?u=o.scroll.duration/o.scroll.items*n:10>u&&(u=r/u),1>u?0:("fade"==t.fx&&(u/=2),Math.round(u)))}function nv_showNavi(t,o,n){var r=is_number(t.items.minimum)?t.items.minimum:t.items.visible+1;if("show"==o||"hide"==o)var u=o;else if(r>o){debug(n,"Not enough items ("+o+" total, "+r+" needed): Hiding navigation.");u="hide"}else u="show";var p="show"==u?"removeClass":"addClass",d=cf_c("hidden",n);t.auto.button&&t.auto.button[u]()[p](d),t.prev.button&&t.prev.button[u]()[p](d),t.next.button&&t.next.button[u]()[p](d),t.pagination.container&&t.pagination.container[u]()[p](d)}function nv_enableNavi(t,o,n){if(!t.circular&&!t.infinite){var r=("removeClass"==o||"addClass"==o)&&o,u=cf_c("disabled",n);if(t.auto.button&&r&&t.auto.button[r](u),t.prev.button){var p=r||0==o?"addClass":"removeClass";t.prev.button[p](u)}if(t.next.button){p=r||o==t.items.visible?"addClass":"removeClass";t.next.button[p](u)}}}function go_getObject(t,o){return is_function(o)?o=o.call(t):is_undefined(o)&&(o={}),o}function go_getItemsObject(t,o){return is_number(o=go_getObject(t,o))?o={visible:o}:"variable"==o?o={visible:o,width:o,height:o}:is_object(o)||(o={}),o}function go_getScrollObject(t,o){return is_number(o=go_getObject(t,o))?o=50>=o?{items:o}:{duration:o}:is_string(o)?o={easing:o}:is_object(o)||(o={}),o}function go_getNaviObject(t,o){if(is_string(o=go_getObject(t,o))){var n=cf_getKeyCode(o);o=-1==n?$(o):n}return o}function go_getAutoObject(t,o){return is_jquery(o=go_getNaviObject(t,o))?o={button:o}:is_boolean(o)?o={play:o}:is_number(o)&&(o={timeoutDuration:o}),o.progress&&(is_string(o.progress)||is_jquery(o.progress))&&(o.progress={bar:o.progress}),o}function go_complementAutoObject(t,o){return is_function(o.button)&&(o.button=o.button.call(t)),is_string(o.button)&&(o.button=$(o.button)),is_boolean(o.play)||(o.play=!0),is_number(o.delay)||(o.delay=0),is_undefined(o.pauseOnEvent)&&(o.pauseOnEvent=!0),is_boolean(o.pauseOnResize)||(o.pauseOnResize=!0),is_number(o.timeoutDuration)||(o.timeoutDuration=10>o.duration?2500:5*o.duration),o.progress&&(is_function(o.progress.bar)&&(o.progress.bar=o.progress.bar.call(t)),is_string(o.progress.bar)&&(o.progress.bar=$(o.progress.bar)),o.progress.bar?(is_function(o.progress.updater)||(o.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(o.progress.interval)||(o.progress.interval=50)):o.progress=!1),o}function go_getPrevNextObject(t,o){return is_jquery(o=go_getNaviObject(t,o))?o={button:o}:is_number(o)&&(o={key:o}),o}function go_complementPrevNextObject(t,o){return is_function(o.button)&&(o.button=o.button.call(t)),is_string(o.button)&&(o.button=$(o.button)),is_string(o.key)&&(o.key=cf_getKeyCode(o.key)),o}function go_getPaginationObject(t,o){return is_jquery(o=go_getNaviObject(t,o))?o={container:o}:is_boolean(o)&&(o={keys:o}),o}function go_complementPaginationObject(t,o){return is_function(o.container)&&(o.container=o.container.call(t)),is_string(o.container)&&(o.container=$(o.container)),is_number(o.items)||(o.items=!1),is_boolean(o.keys)||(o.keys=!1),is_function(o.anchorBuilder)||is_false(o.anchorBuilder)||(o.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(o.deviation)||(o.deviation=0),o}function go_getSwipeObject(t,o){return is_function(o)&&(o=o.call(t)),is_undefined(o)&&(o={onTouch:!1}),is_true(o)?o={onTouch:o}:is_number(o)&&(o={items:o}),o}function go_complementSwipeObject(t,o){return is_boolean(o.onTouch)||(o.onTouch=!0),is_boolean(o.onMouse)||(o.onMouse=!1),is_object(o.options)||(o.options={}),is_boolean(o.options.triggerOnTouchEnd)||(o.options.triggerOnTouchEnd=!1),o}function go_getMousewheelObject(t,o){return is_function(o)&&(o=o.call(t)),is_true(o)?o={}:is_number(o)?o={items:o}:is_undefined(o)&&(o=!1),o}function go_complementMousewheelObject(t,o){return o}function gn_getItemIndex(t,o,n,r,u){if(is_string(t)&&(t=$(t,u)),is_object(t)&&(t=$(t,u)),is_jquery(t)?(t=u.children().index(t),is_boolean(n)||(n=!1)):is_boolean(n)||(n=!0),is_number(t)||(t=0),is_number(o)||(o=0),n&&(t+=r.first),t+=o,r.total>0){for(;t>=r.total;)t-=r.total;for(;0>t;)t+=r.total}return t}function gn_getVisibleItemsPrev(t,o,n){for(var r=0,u=0,p=n;p>=0;p--){var d=t.eq(p);if((r+=d.is(":visible")?d[o.d.outerWidth](!0):0)>o.maxDimension)return u;0==p&&(p=t.length),u++}}function gn_getVisibleItemsPrevFilter(t,o,n){return gn_getItemsPrevFilter(t,o.items.filter,o.items.visibleConf.org,n)}function gn_getScrollItemsPrevFilter(t,o,n,r){return gn_getItemsPrevFilter(t,o.items.filter,r,n)}function gn_getItemsPrevFilter(t,o,n,r){for(var u=0,p=0,d=r,g=t.length;d>=0;d--){if(++p==g)return p;if(t.eq(d).is(o)&&++u==n)return p;0==d&&(d=g)}}function gn_getVisibleOrg(t,o){return o.items.visibleConf.org||t.children().slice(0,o.items.visible).filter(o.items.filter).length}function gn_getVisibleItemsNext(t,o,n){for(var r=0,u=0,p=n,d=t.length-1;d>=p;p++){var g=t.eq(p);if((r+=g.is(":visible")?g[o.d.outerWidth](!0):0)>o.maxDimension)return u;if(++u==d+1)return u;p==d&&(p=-1)}}function gn_getVisibleItemsNextTestCircular(t,o,n,r){var u=gn_getVisibleItemsNext(t,o,n);return o.circular||n+u>r&&(u=r-n),u}function gn_getVisibleItemsNextFilter(t,o,n){return gn_getItemsNextFilter(t,o.items.filter,o.items.visibleConf.org,n,o.circular)}function gn_getScrollItemsNextFilter(t,o,n,r){return gn_getItemsNextFilter(t,o.items.filter,r+1,n,o.circular)-1}function gn_getItemsNextFilter(t,o,n,r){for(var u=0,p=0,d=r,g=t.length-1;g>=d;d++){if(++p>=g)return p;if(t.eq(d).is(o)&&++u==n)return p;d==g&&(d=-1)}}function gi_getCurrentItems(t,o){return t.slice(0,o.items.visible)}function gi_getOldItemsPrev(t,o,n){return t.slice(n,o.items.visibleConf.old+n)}function gi_getNewItemsPrev(t,o){return t.slice(0,o.items.visible)}function gi_getOldItemsNext(t,o){return t.slice(0,o.items.visibleConf.old)}function gi_getNewItemsNext(t,o,n){return t.slice(n,o.items.visible+n)}function sz_storeMargin(t,o,n){o.usePadding&&(is_string(n)||(n="_cfs_origCssMargin"),t.each((function(){var t=$(this),r=parseInt(t.css(o.d.marginRight),10);is_number(r)||(r=0),t.data(n,r)})))}function sz_resetMargin(t,o,n){if(o.usePadding){var r=!!is_boolean(n)&&n;is_number(n)||(n=0),sz_storeMargin(t,o,"_cfs_tempCssMargin"),t.each((function(){var t=$(this);t.css(o.d.marginRight,r?t.data("_cfs_tempCssMargin"):n+t.data("_cfs_origCssMargin"))}))}}function sz_storeOrigCss(t){t.each((function(){var t=$(this);t.data("_cfs_origCss",t.attr("style")||"")}))}function sz_restoreOrigCss(t){t.each((function(){var t=$(this);t.attr("style",t.data("_cfs_origCss")||"")}))}function sz_setResponsiveSizes(t,o){var n=(t.items.visible,t.items[t.d.width]),r=t[t.d.height],u=is_percentage(r);o.each((function(){var o=$(this),p=n-ms_getPaddingBorderMargin(o,t,"Width");o[t.d.width](p),u&&o[t.d.height](ms_getPercentage(p,r))}))}function sz_setSizes(t,o){var n=t.parent(),r=t.children(),u=gi_getCurrentItems(r,o),p=cf_mapWrapperSizes(ms_getSizes(u,o,!0),o,!1);if(n.css(p),o.usePadding){var d=o.padding,g=d[o.d[1]];o.align&&0>g&&(g=0);var m=u.last();m.css(o.d.marginRight,m.data("_cfs_origCssMargin")+g),t.css(o.d.top,d[o.d[0]]),t.css(o.d.left,d[o.d[3]])}return t.css(o.d.width,p[o.d.width]+2*ms_getTotalSize(r,o,"width")),t.css(o.d.height,ms_getLargestSize(r,o,"height")),p}function ms_getSizes(t,o,n){return[ms_getTotalSize(t,o,"width",n),ms_getLargestSize(t,o,"height",n)]}function ms_getLargestSize(t,o,n,r){return is_boolean(r)||(r=!1),is_number(o[o.d[n]])&&r?o[o.d[n]]:is_number(o.items[o.d[n]])?o.items[o.d[n]]:ms_getTrueLargestSize(t,o,n=n.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight")}function ms_getTrueLargestSize(t,o,n){for(var r=0,u=0,p=t.length;p>u;u++){var d=t.eq(u),g=d.is(":visible")?d[o.d[n]](!0):0;g>r&&(r=g)}return r}function ms_getTotalSize(t,o,n,r){if(is_boolean(r)||(r=!1),is_number(o[o.d[n]])&&r)return o[o.d[n]];if(is_number(o.items[o.d[n]]))return o.items[o.d[n]]*t.length;for(var u=n.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",p=0,d=0,g=t.length;g>d;d++){var m=t.eq(d);p+=m.is(":visible")?m[o.d[u]](!0):0}return p}function ms_getParentSize(t,o,n){var r=t.is(":visible");r&&t.hide();var u=t.parent()[o.d[n]]();return r&&t.show(),u}function ms_getMaxDimension(t,o){return is_number(t[t.d.width])?t[t.d.width]:o}function ms_hasVariableSizes(t,o,n){for(var r=!1,u=!1,p=0,d=t.length;d>p;p++){var g=t.eq(p),m=g.is(":visible")?g[o.d[n]](!0):0;!1===r?r=m:r!=m&&(u=!0),0==r&&(u=!0)}return u}function ms_getPaddingBorderMargin(t,o,n){return t[o.d["outer"+n]](!0)-t[o.d[n.toLowerCase()]]()}function ms_getPercentage(t,o){if(is_percentage(o)){if(!is_number(o=parseInt(o.slice(0,-1),10)))return t;t*=o/100}return t}function cf_e(t,o,n,r,u){return is_boolean(n)||(n=!0),is_boolean(r)||(r=!0),is_boolean(u)||(u=!1),n&&(t=o.events.prefix+t),r&&(t=t+"."+o.events.namespace),r&&u&&(t+=o.serialNumber),t}function cf_c(t,o){return is_string(o.classnames[t])?o.classnames[t]:t}function cf_mapWrapperSizes(t,o,n){is_boolean(n)||(n=!0);var r=o.usePadding&&n?o.padding:[0,0,0,0],u={};return u[o.d.width]=t[0]+r[1]+r[3],u[o.d.height]=t[1]+r[0]+r[2],u}function cf_sortParams(t,o){for(var n=[],r=0,u=t.length;u>r;r++)for(var p=0,d=o.length;d>p;p++)if(o[p].indexOf(typeof t[r])>-1&&is_undefined(n[p])){n[p]=t[r];break}return n}function cf_getPadding(t){if(is_undefined(t))return[0,0,0,0];if(is_number(t))return[t,t,t,t];if(is_string(t)&&(t=t.split("px").join("").split("em").join("").split(" ")),!is_array(t))return[0,0,0,0];for(var o=0;4>o;o++)t[o]=parseInt(t[o],10);switch(t.length){case 0:return[0,0,0,0];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[t[0],t[1],t[0],t[1]];case 3:return[t[0],t[1],t[2],t[1]];default:return[t[0],t[1],t[2],t[3]]}}function cf_getAlignPadding(t,o){var n=is_number(o[o.d.width])?Math.ceil(o[o.d.width]-ms_getTotalSize(t,o,"width")):0;switch(o.align){case"left":return[0,n];case"right":return[n,0];case"center":default:return[Math.ceil(n/2),Math.floor(n/2)]}}function cf_getDimensions(t){for(var o=[["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]],n=o[0].length,r="right"==t.direction||"left"==t.direction?0:1,u={},p=0;n>p;p++)u[o[0][p]]=o[r][p];return u}function cf_getAdjust(t,o,n,r){var u=t;if(is_function(n))u=n.call(r,u);else if(is_string(n)){var p=n.split("+"),d=n.split("-");if(d.length>p.length)var g=!0,m=d[0],_=d[1];else g=!1,m=p[0],_=p[1];switch(m){case"even":u=1==t%2?t-1:t;break;case"odd":u=0==t%2?t-1:t;break;default:u=t}is_number(_=parseInt(_,10))&&(g&&(_=-_),u+=_)}return(!is_number(u)||1>u)&&(u=1),u}function cf_getItemsAdjust(t,o,n,r){return cf_getItemAdjustMinMax(cf_getAdjust(t,o,n,r),o.items.visibleConf)}function cf_getItemAdjustMinMax(t,o){return is_number(o.min)&&o.min>t&&(t=o.min),is_number(o.max)&&t>o.max&&(t=o.max),1>t&&(t=1),t}function cf_getSynchArr(t){is_array(t)||(t=[[t]]),is_array(t[0])||(t=[t]);for(var o=0,n=t.length;n>o;o++)is_string(t[o][0])&&(t[o][0]=$(t[o][0])),is_boolean(t[o][1])||(t[o][1]=!0),is_boolean(t[o][2])||(t[o][2]=!0),is_number(t[o][3])||(t[o][3]=0);return t}function cf_getKeyCode(t){return"right"==t?39:"left"==t?37:"up"==t?38:"down"==t?40:-1}function cf_setCookie(t,o,n){if(t){var r=o.triggerHandler(cf_e("currentPosition",n));$.fn.carouFredSel.cookie.set(t,r)}}function cf_getCookie(t){var o=$.fn.carouFredSel.cookie.get(t);return""==o?0:o}function in_mapCss(t,o){for(var n={},r=0,u=o.length;u>r;r++)n[o[r]]=t.css(o[r]);return n}function in_complementItems(t,o,n,r){return is_object(t.visibleConf)||(t.visibleConf={}),is_object(t.sizesConf)||(t.sizesConf={}),0==t.start&&is_number(r)&&(t.start=r),is_object(t.visible)?(t.visibleConf.min=t.visible.min,t.visibleConf.max=t.visible.max,t.visible=!1):is_string(t.visible)?("variable"==t.visible?t.visibleConf.variable=!0:t.visibleConf.adjust=t.visible,t.visible=!1):is_function(t.visible)&&(t.visibleConf.adjust=t.visible,t.visible=!1),is_string(t.filter)||(t.filter=n.filter(":hidden").length>0?":visible":"*"),t[o.d.width]||(o.responsive?(debug(!0,"Set a "+o.d.width+" for the items!"),t[o.d.width]=ms_getTrueLargestSize(n,o,"outerWidth")):t[o.d.width]=ms_hasVariableSizes(n,o,"outerWidth")?"variable":n[o.d.outerWidth](!0)),t[o.d.height]||(t[o.d.height]=ms_hasVariableSizes(n,o,"outerHeight")?"variable":n[o.d.outerHeight](!0)),t.sizesConf.width=t.width,t.sizesConf.height=t.height,t}function in_complementVisibleItems(t,o){return"variable"==t.items[t.d.width]&&(t.items.visibleConf.variable=!0),t.items.visibleConf.variable||(is_number(t[t.d.width])?t.items.visible=Math.floor(t[t.d.width]/t.items[t.d.width]):(t.items.visible=Math.floor(o/t.items[t.d.width]),t[t.d.width]=t.items.visible*t.items[t.d.width],t.items.visibleConf.adjust||(t.align=!1)),("Infinity"==t.items.visible||1>t.items.visible)&&(debug(!0,'Not a valid number of visible items: Set to "variable".'),t.items.visibleConf.variable=!0)),t}function in_complementPrimarySize(t,o,n){return"auto"==t&&(t=ms_getTrueLargestSize(n,o,"outerWidth")),t}function in_complementSecondarySize(t,o,n){return"auto"==t&&(t=ms_getTrueLargestSize(n,o,"outerHeight")),t||(t=o.items[o.d.height]),t}function in_getAlignPadding(t,o){var n=cf_getAlignPadding(gi_getCurrentItems(o,t),t);return t.padding[t.d[1]]=n[1],t.padding[t.d[3]]=n[0],t}function in_getResponsiveValues(t,o){var n=cf_getItemAdjustMinMax(Math.ceil(t[t.d.width]/t.items[t.d.width]),t.items.visibleConf);n>o.length&&(n=o.length);var r=Math.floor(t[t.d.width]/n);return t.items.visible=n,t.items[t.d.width]=r,t[t.d.width]=n*r,t}function bt_pauseOnHoverConfig(t){if(is_string(t))var o=t.indexOf("immediate")>-1,n=t.indexOf("resume")>-1;else o=n=!1;return[o,n]}function bt_mousesheelNumber(t){return is_number(t)?t:null}function is_null(t){return null===t}function is_undefined(t){return is_null(t)||void 0===t||""===t||"undefined"===t}function is_array(t){return t instanceof Array}function is_jquery(t){return t instanceof jQuery}function is_object(t){return(t instanceof Object||"object"==typeof t)&&!is_null(t)&&!is_jquery(t)&&!is_array(t)&&!is_function(t)}function is_number(t){return(t instanceof Number||"number"==typeof t)&&!isNaN(t)}function is_string(t){return(t instanceof String||"string"==typeof t)&&!is_undefined(t)&&!is_true(t)&&!is_false(t)}function is_function(t){return t instanceof Function||"function"==typeof t}function is_boolean(t){return t instanceof Boolean||"boolean"==typeof t||is_true(t)||is_false(t)}function is_true(t){return!0===t||"true"===t}function is_false(t){return!1===t||"false"===t}function is_percentage(t){return is_string(t)&&"%"==t.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(t,o){debug(!0,t+" is DEPRECATED, support for it will be removed. Use "+o+" instead.")}function debug(t,o){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(t)){var n=" ("+t.selector+")";t=t.debug}else n="";if(!t)return!1;o=is_string(o)?"carouFredSel"+n+": "+o:["carouFredSel"+n+":",o],window.console.log(o)}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={_init:function(t,o,n){(t=go_getObject($tt0,t)).items=go_getItemsObject($tt0,t.items),t.scroll=go_getScrollObject($tt0,t.scroll),t.auto=go_getAutoObject($tt0,t.auto),t.prev=go_getPrevNextObject($tt0,t.prev),t.next=go_getPrevNextObject($tt0,t.next),t.pagination=go_getPaginationObject($tt0,t.pagination),t.swipe=go_getSwipeObject($tt0,t.swipe),t.mousewheel=go_getMousewheelObject($tt0,t.mousewheel),o&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,t)),(opts=$.extend(!0,{},$.fn.carouFredSel.defaults,t)).d=cf_getDimensions(opts),crsl.direction="up"==opts.direction||"left"==opts.direction?"next":"prev";var r=$cfs.children(),u=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)&&(opts.cookie="caroufredsel_cookie_"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,u),opts.items=in_complementItems(opts.items,opts,r,n),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,r),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,r),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(u,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,u)),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"),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(r,opts,0))),"*"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(r,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,r,u);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,r)).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]}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"))},_build:function(){$cfs.data("_cfs_isCarousel",!0);var t=$cfs.children(),o=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),n="relative";switch(o.position){case"absolute":case"fixed":n=o.position}"parent"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(o),$wrp.css({overflow:"hidden",position:n}),sz_storeOrigCss($cfs),$cfs.data("_cfs_origCssZindex",o.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(t,opts),sz_storeOrigCss(t),opts.responsive&&sz_setResponsiveSizes(opts,t)},_bind_events:function(){FN._unbind_events(),$cfs.bind(cf_e("stop",conf),(function(t,o){return t.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),o)),!0})),$cfs.bind(cf_e("finish",conf),(function(t){return t.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0})),$cfs.bind(cf_e("pause",conf),(function(t,o,n){if(t.stopPropagation(),tmrs=sc_clearTimers(tmrs),o&&crsl.isScrolling){scrl.isStopped=!0;var r=getTime()-scrl.startTime;scrl.duration-=r,scrl.pre&&(scrl.pre.duration-=r),scrl.post&&(scrl.post.duration-=r),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||n&&(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 u=opts.auto.timeoutDuration-tmrs.timePassed,p=100-Math.ceil(100*u/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,p,u)}return!0})),$cfs.bind(cf_e("play",conf),(function(t,o,n,r){t.stopPropagation(),tmrs=sc_clearTimers(tmrs);var u=cf_sortParams([o,n,r],["string","number","boolean"]);if(o=u[0],n=u[1],r=u[2],"prev"!=o&&"next"!=o&&(o=crsl.direction),is_number(n)||(n=0),is_boolean(r)||(r=!1),r&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return t.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 p=opts.auto.timeoutDuration+n;return dur2=p-tmrs.timePassed,perc=100-Math.ceil(100*dur2/p),opts.auto.progress&&(tmrs.progress=setInterval((function(){var t=getTime()-tmrs.startTime+tmrs.timePassed,o=Math.ceil(100*t/p);opts.auto.progress.updater.call(opts.auto.progress.bar[0],o)}),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),o):$cfs.trigger(cf_e(o,conf),opts.auto)}),dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0})),$cfs.bind(cf_e("resume",conf),(function(t){return t.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(t,o,n,r,u){if(t.stopPropagation(),crsl.isStopped||$cfs.is(":hidden"))return t.stopImmediatePropagation(),debug(conf,"Carousel stopped or hidden: Not scrolling.");var p=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(p>itms.total)return t.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+p+" needed): Not scrolling.");o=(m=cf_sortParams([o,n,r,u],["object","number/string","function","boolean"]))[0],n=m[1],r=m[2],u=m[3];var d=t.type.slice(conf.events.prefix.length);if(is_object(o)||(o={}),is_function(r)&&(o.onAfter=r),is_boolean(u)&&(o.queue=u),(o=$.extend(!0,{},opts[d],o)).conditions&&!o.conditions.call($tt0,d))return t.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(n)){if("*"!=opts.items.filter)n="visible";else for(var g=[n,o.items,opts[d].items],m=0,_=g.length;_>m;m++)if(is_number(g[m])||"page"==g[m]||"visible"==g[m]){n=g[m];break}switch(n){case"page":return t.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(d+"Page",conf),[o,r]);case"visible":opts.items.visibleConf.variable||"*"!=opts.items.filter||(n=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e("resume",conf)),$cfs.trigger(cf_e("queue",conf),[d,[o,n,r]]),t.stopImmediatePropagation(),debug(conf,"Carousel resumed scrolling.");if(o.duration>0&&crsl.isScrolling)return o.queue&&("last"==o.queue&&(queu=[]),("first"!=o.queue||0==queu.length)&&$cfs.trigger(cf_e("queue",conf),[d,[o,n,r]])),t.stopImmediatePropagation(),debug(conf,"Carousel currently scrolling.");if(tmrs.timePassed=0,$cfs.trigger(cf_e("slide_"+d,conf),[o,n]),opts.synchronise){var v=opts.synchronise,h=[o,n],w=0;for(_=v.length;_>w;w++){var P=d;v[w][2]||(P="prev"==P?"next":"prev"),v[w][1]||(h[0]=v[w][0].triggerHandler("_cfs_triggerEvent",["configuration",P])),h[1]=n+v[w][3],v[w][0].trigger("_cfs_triggerEvent",["slide_"+P,h])}}return!0})),$cfs.bind(cf_e("slide_prev",conf),(function(t,o,n){t.stopPropagation();var r=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e("next",conf),itms.total-1),t.stopImmediatePropagation();if(sz_resetMargin(r,opts),!is_number(n)){if(opts.items.visibleConf.variable)n=gn_getVisibleItemsPrev(r,opts,itms.total-1);else if("*"!=opts.items.filter){var u=is_number(o.items)?o.items:gn_getVisibleOrg($cfs,opts);n=gn_getScrollItemsPrevFilter(r,opts,itms.total-1,u)}else n=opts.items.visible;n=cf_getAdjust(n,opts,o.items,$tt0)}if(opts.circular||itms.total-n<itms.first&&(n=itms.total-itms.first),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable)(p=cf_getItemsAdjust(gn_getVisibleItemsNext(r,opts,itms.total-n),opts,opts.items.visibleConf.adjust,$tt0))>=opts.items.visible+n&&itms.total>n&&(n++,p=cf_getItemsAdjust(gn_getVisibleItemsNext(r,opts,itms.total-n),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=p;else if("*"!=opts.items.filter){var p=gn_getVisibleItemsNextFilter(r,opts,itms.total-n);opts.items.visible=cf_getItemsAdjust(p,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(r,opts,!0),0==n)return t.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+n+" items backward."),itms.first+=n;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&o.onEnd&&o.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-n,itms.total).prependTo($cfs),itms.total<opts.items.visible+n&&$cfs.children().slice(0,opts.items.visible+n-itms.total).clone(!0).appendTo($cfs);var d=gi_getOldItemsPrev(r=$cfs.children(),opts,n),g=gi_getNewItemsPrev(r,opts),m=r.eq(n-1),_=d.last(),v=g.last();sz_resetMargin(r,opts);var h=0,w=0;if(opts.align){var P=cf_getAlignPadding(g,opts);h=P[0],w=P[1]}var x=0>h?opts.padding[opts.d[3]]:0,S=!1,y=$();if(n>opts.items.visible&&(y=r.slice(opts.items.visibleConf.old,n),"directscroll"==o.fx)){var z=opts.items[opts.d.width];m=v,sc_hideHiddenItems(S=y),opts.items[opts.d.width]="variable"}var j=!1,k=ms_getTotalSize(r.slice(0,n),opts,"width"),N=cf_mapWrapperSizes(ms_getSizes(g,opts,!0),opts,!opts.usePadding),O=0,T={},M={},A={},q={},V={},R={},W={},B=sc_getDuration(o,opts,n,k);switch(o.fx){case"cover":case"cover-fade":O=ms_getTotalSize(r.slice(0,opts.items.visible),opts,"width")}S&&(opts.items[opts.d.width]=z),sz_resetMargin(r,opts,!0),w>=0&&sz_resetMargin(_,opts,opts.padding[opts.d[1]]),h>=0&&sz_resetMargin(m,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=w,opts.padding[opts.d[3]]=h),R[opts.d.left]=-(k-x),W[opts.d.left]=-(O-x),M[opts.d.left]=N[opts.d.width];var Q,U,Z,E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){},L=function(){};switch(o.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":j=$cfs.clone(!0).appendTo($wrp)}switch(o.fx){case"crossfade":case"uncover":case"uncover-fade":j.children().slice(0,n).remove(),j.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":j.children().slice(opts.items.visible).remove(),j.css(W)}if($cfs.css(R),scrl=sc_setScroll(B,o.easing,conf),T[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(E=function(){$wrp.css(N)},F=function(){scrl.anims.push([$wrp,N])}),opts.usePadding){switch(v.not(m).length&&(A[opts.d.marginRight]=m.data("_cfs_origCssMargin"),0>h?m.css(A):(K=function(){m.css(A)},L=function(){scrl.anims.push([m,A])})),o.fx){case"cover":case"cover-fade":j.children().eq(n-1).css(A)}v.not(_).length&&(q[opts.d.marginRight]=_.data("_cfs_origCssMargin"),G=function(){_.css(q)},H=function(){scrl.anims.push([_,q])}),w>=0&&(V[opts.d.marginRight]=v.data("_cfs_origCssMargin")+opts.padding[opts.d[1]],I=function(){v.css(V)},J=function(){scrl.anims.push([v,V])})}Z=function(){$cfs.css(T)};var X=opts.items.visible+n-itms.total;U=function(){if(X>0&&($cfs.children().slice(itms.total).remove(),d=$($cfs.children().slice(itms.total-(opts.items.visible-X)).get().concat($cfs.children().slice(0,X).get()))),sc_showHiddenItems(S),opts.usePadding){var t=$cfs.children().eq(opts.items.visible+n-1);t.css(opts.d.marginRight,t.data("_cfs_origCssMargin"))}};var Y=sc_mapCallbackArguments(d,y,g,n,"prev",B,N);switch(Q=function(){sc_afterScroll($cfs,j,o),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,o,"onAfter",Y,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,o,"onBefore",Y,clbk),o.fx){case"none":$cfs.css(T),E(),G(),I(),K(),Z(),U(),Q();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){E(),G(),I(),K(),Z(),U(),(scrl=sc_setScroll(B,o.easing,conf)).anims.push([$cfs,{opacity:1},Q]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([j,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},Q]),F(),G(),I(),K(),Z(),U();break;case"cover":scrl.anims.push([j,T,function(){G(),I(),K(),Z(),U(),Q()}]),F();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([j,T,function(){G(),I(),K(),Z(),U(),Q()}]),F();break;case"uncover":scrl.anims.push([j,M,Q]),F(),G(),I(),K(),Z(),U();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([j,M,Q]),F(),G(),I(),K(),Z(),U();break;default:scrl.anims.push([$cfs,T,function(){U(),Q()}]),F(),H(),J(),L()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,N]),!0})),$cfs.bind(cf_e("slide_next",conf),(function(t,o,n){t.stopPropagation();var r=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e("prev",conf),itms.total-1),t.stopImmediatePropagation();if(sz_resetMargin(r,opts),!is_number(n)){if("*"!=opts.items.filter){var u=is_number(o.items)?o.items:gn_getVisibleOrg($cfs,opts);n=gn_getScrollItemsNextFilter(r,opts,0,u)}else n=opts.items.visible;n=cf_getAdjust(n,opts,o.items,$tt0)}var p=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable){var d=gn_getVisibleItemsNext(r,opts,n);u=gn_getVisibleItemsPrev(r,opts,p-1)}else d=opts.items.visible,u=opts.items.visible;n+d>p&&(n=p-u)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(d=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(r,opts,n,p),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-n>=d&&itms.total>n;)n++,d=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(r,opts,n,p),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=d}else if("*"!=opts.items.filter){d=gn_getVisibleItemsNextFilter(r,opts,n);opts.items.visible=cf_getItemsAdjust(d,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(r,opts,!0),0==n)return t.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+n+" items forward."),itms.first-=n;0>itms.first;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&o.onEnd&&o.onEnd.call($tt0,"next"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.total<opts.items.visible+n&&$cfs.children().slice(0,opts.items.visible+n-itms.total).clone(!0).appendTo($cfs);var g=gi_getOldItemsNext(r=$cfs.children(),opts),m=gi_getNewItemsNext(r,opts,n),_=r.eq(n-1),v=g.last(),h=m.last();sz_resetMargin(r,opts);var w=0,P=0;if(opts.align){var x=cf_getAlignPadding(m,opts);w=x[0],P=x[1]}var S=!1,y=$();if(n>opts.items.visibleConf.old&&(y=r.slice(opts.items.visibleConf.old,n),"directscroll"==o.fx)){var z=opts.items[opts.d.width];_=v,sc_hideHiddenItems(S=y),opts.items[opts.d.width]="variable"}var j=!1,k=ms_getTotalSize(r.slice(0,n),opts,"width"),N=cf_mapWrapperSizes(ms_getSizes(m,opts,!0),opts,!opts.usePadding),O=0,T={},M={},A={},q={},V={},R=sc_getDuration(o,opts,n,k);switch(o.fx){case"uncover":case"uncover-fade":O=ms_getTotalSize(r.slice(0,opts.items.visibleConf.old),opts,"width")}S&&(opts.items[opts.d.width]=z),opts.align&&0>opts.padding[opts.d[1]]&&(opts.padding[opts.d[1]]=0),sz_resetMargin(r,opts,!0),sz_resetMargin(v,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=P,opts.padding[opts.d[3]]=w),V[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var W,B,Q,C=function(){},D=function(){},E=function(){},F=function(){},G=function(){},H=function(){};switch(o.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":(j=$cfs.clone(!0).appendTo($wrp)).children().slice(opts.items.visibleConf.old).remove()}switch(o.fx){case"crossfade":case"cover":case"cover-fade":$cfs.css("zIndex",1),j.css("zIndex",0)}if(scrl=sc_setScroll(R,o.easing,conf),T[opts.d.left]=-k,M[opts.d.left]=-O,0>w&&(T[opts.d.left]+=w),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(C=function(){$wrp.css(N)},D=function(){scrl.anims.push([$wrp,N])}),opts.usePadding){var U=h.data("_cfs_origCssMargin");P>=0&&(U+=opts.padding[opts.d[1]]),h.css(opts.d.marginRight,U),_.not(v).length&&(q[opts.d.marginRight]=v.data("_cfs_origCssMargin")),E=function(){v.css(q)},F=function(){scrl.anims.push([v,q])};var Z=_.data("_cfs_origCssMargin");w>0&&(Z+=opts.padding[opts.d[3]]),A[opts.d.marginRight]=Z,G=function(){_.css(A)},H=function(){scrl.anims.push([_,A])}}Q=function(){$cfs.css(V)};var X=opts.items.visible+n-itms.total;B=function(){X>0&&$cfs.children().slice(itms.total).remove();var t=$cfs.children().slice(0,n).appendTo($cfs).last();if(X>0&&(m=gi_getCurrentItems(r,opts)),sc_showHiddenItems(S),opts.usePadding){if(itms.total<opts.items.visible+n){var o=$cfs.children().eq(opts.items.visible-1);o.css(opts.d.marginRight,o.data("_cfs_origCssMargin")+opts.padding[opts.d[1]])}t.css(opts.d.marginRight,t.data("_cfs_origCssMargin"))}};var Y=sc_mapCallbackArguments(g,y,m,n,"next",R,N);switch(W=function(){$cfs.css("zIndex",$cfs.data("_cfs_origCssZindex")),sc_afterScroll($cfs,j,o),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,o,"onAfter",Y,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,o,"onBefore",Y,clbk),o.fx){case"none":$cfs.css(T),C(),E(),G(),Q(),B(),W();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){C(),E(),G(),Q(),B(),(scrl=sc_setScroll(R,o.easing,conf)).anims.push([$cfs,{opacity:1},W]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([j,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},W]),D(),E(),G(),Q(),B();break;case"cover":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([$cfs,V,W]),D(),E(),G(),B();break;case"cover-fade":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([j,{opacity:0}]),scrl.anims.push([$cfs,V,W]),D(),E(),G(),B();break;case"uncover":scrl.anims.push([j,M,W]),D(),E(),G(),Q(),B();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([j,M,W]),D(),E(),G(),Q(),B();break;default:scrl.anims.push([$cfs,T,function(){Q(),B(),W()}]),D(),F(),H()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,N]),!0})),$cfs.bind(cf_e("slideTo",conf),(function(t,o,n,r,u,p,d){t.stopPropagation();var g=cf_sortParams([o,n,r,u,p,d],["string/number/object","number","boolean","object","string","function"]);return u=g[3],p=g[4],d=g[5],0!=(o=gn_getItemIndex(g[0],g[1],g[2],itms,$cfs))&&(is_object(u)||(u=!1),"prev"!=p&&"next"!=p&&(p=opts.circular?itms.total/2>=o?"next":"prev":0==itms.first||itms.first>o?"next":"prev"),"prev"==p&&(o=itms.total-o),$cfs.trigger(cf_e(p,conf),[u,o,d]),!0)})),$cfs.bind(cf_e("prevPage",conf),(function(t,o,n){t.stopPropagation();var r=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[r-1,o,"prev",n])})),$cfs.bind(cf_e("nextPage",conf),(function(t,o,n){t.stopPropagation();var r=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[r+1,o,"next",n])})),$cfs.bind(cf_e("slideToPage",conf),(function(t,o,n,r,u){t.stopPropagation(),is_number(o)||(o=$cfs.triggerHandler(cf_e("currentPage",conf)));var p=opts.pagination.items||opts.items.visible,d=Math.ceil(itms.total/p)-1;return 0>o&&(o=d),o>d&&(o=0),$cfs.triggerHandler(cf_e("slideTo",conf),[o*p,0,!0,n,r,u])})),$cfs.bind(cf_e("jumpToStart",conf),(function(t,o){if(t.stopPropagation(),o=o?gn_getItemIndex(o,0,!0,itms,$cfs):0,0!=(o+=itms.first)){if(itms.total>0)for(;o>itms.total;)o-=itms.total;$cfs.prepend($cfs.children().slice(o,itms.total))}return!0})),$cfs.bind(cf_e("synchronise",conf),(function(t,o){if(t.stopPropagation(),o)o=cf_getSynchArr(o);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");o=opts.synchronise}for(var n=$cfs.triggerHandler(cf_e("currentPosition",conf)),r=!0,u=0,p=o.length;p>u;u++)o[u][0].triggerHandler(cf_e("slideTo",conf),[n,o[u][3],!0])||(r=!1);return r})),$cfs.bind(cf_e("queue",conf),(function(t,o,n){return t.stopPropagation(),is_function(o)?o.call($tt0,queu):is_array(o)?queu=o:is_undefined(o)||queu.push([o,n]),queu})),$cfs.bind(cf_e("insertItem",conf),(function(t,o,n,r,u){t.stopPropagation();var p=cf_sortParams([o,n,r,u],["string/object","string/number/object","boolean","number"]);if(o=p[0],n=p[1],r=p[2],u=p[3],(is_object(o)&&!is_jquery(o)||is_string(o))&&(o=$(o)),!is_jquery(o)||0==o.length)return debug(conf,"Not a valid object.");is_undefined(n)&&(n="end"),sz_storeMargin(o,opts),sz_storeOrigCss(o);var d=n,g="before";"end"==n?r?(0==itms.first?(n=itms.total-1,g="after"):(n=itms.first,itms.first+=o.length),0>n&&(n=0)):(n=itms.total-1,g="after"):n=gn_getItemIndex(n,u,r,itms,$cfs);var m=$cfs.children().eq(n);return m.length?m[g](o):(debug(conf,"Correct insert-position not found! Appending item to the end."),$cfs.append(o)),"end"==d||r||itms.first>n&&(itms.first+=o.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(t,o,n,r){t.stopPropagation();var u=cf_sortParams([o,n,r],["string/number/object","boolean","number"]);if(o=u[0],n=u[1],r=u[2],o instanceof $&&o.length>1)return p=$(),o.each((function(){var t=$cfs.trigger(cf_e("removeItem",conf),[$(this),n,r]);t&&(p=p.add(t))})),p;if(is_undefined(o)||"end"==o)p=$cfs.children().last();else{o=gn_getItemIndex(o,r,n,itms,$cfs);var p=$cfs.children().eq(o);p.length&&itms.first>o&&(itms.first-=p.length)}return p&&p.length&&(p.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e("updateSizes",conf))),p})),$cfs.bind(cf_e("onBefore",conf)+" "+cf_e("onAfter",conf),(function(t,o){t.stopPropagation();var n=t.type.slice(conf.events.prefix.length);return is_array(o)&&(clbk[n]=o),is_function(o)&&clbk[n].push(o),clbk[n]})),$cfs.bind(cf_e("currentPosition",conf),(function(t,o){if(t.stopPropagation(),0==itms.first)var n=0;else n=itms.total-itms.first;return is_function(o)&&o.call($tt0,n),n})),$cfs.bind(cf_e("currentPage",conf),(function(t,o){t.stopPropagation();var n,r=opts.pagination.items||opts.items.visible,u=Math.ceil(itms.total/r-1);return 0>(n=0==itms.first||itms.first<itms.total%r?0:itms.first!=r||opts.circular?Math.round((itms.total-itms.first)/r):u)&&(n=0),n>u&&(n=u),is_function(o)&&o.call($tt0,n),n})),$cfs.bind(cf_e("currentVisible",conf),(function(t,o){t.stopPropagation();var n=gi_getCurrentItems($cfs.children(),opts);return is_function(o)&&o.call($tt0,n),n})),$cfs.bind(cf_e("slice",conf),(function(t,o,n,r){if(t.stopPropagation(),0==itms.total)return!1;var u=cf_sortParams([o,n,r],["number","number","function"]);if(o=is_number(u[0])?u[0]:0,n=is_number(u[1])?u[1]:itms.total,r=u[2],o+=itms.first,n+=itms.first,items.total>0){for(;o>itms.total;)o-=itms.total;for(;n>itms.total;)n-=itms.total;for(;0>o;)o+=itms.total;for(;0>n;)n+=itms.total}var p,d=$cfs.children();return p=n>o?d.slice(o,n):$(d.slice(o,itms.total).get().concat(d.slice(0,n).get())),is_function(r)&&r.call($tt0,p),p})),$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),(function(t,o){t.stopPropagation();var n=t.type.slice(conf.events.prefix.length),r=crsl[n];return is_function(o)&&o.call($tt0,r),r})),$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),!1!==b?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"),!1!==c?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(t,o,n){return t.stopPropagation(),is_undefined(o)?o=$("body"):is_string(o)&&(o=$(o)),is_jquery(o)&&0!=o.length?(is_string(n)||(n="a.caroufredsel"),o.find(n).each((function(){var t=this.hash||"";t.length>0&&-1!=$cfs.children().index($(t))&&$(this).unbind("click").click((function(o){o.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),t)}))})),!0):debug(conf,"Not a valid object.")})),$cfs.bind(cf_e("updatePageStatus",conf),(function(t,o){if(t.stopPropagation(),opts.pagination.container){var n=opts.pagination.items||opts.items.visible,r=Math.ceil(itms.total/n);o&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each((function(){for(var t=0;r>t;t++){var o=$cfs.children().eq(gn_getItemIndex(t*n,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(o[0],t+1))}}))),opts.pagination.container.each((function(){$(this).children().unbind(opts.pagination.event).each((function(t){$(this).bind(opts.pagination.event,(function(o){o.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[t*n,-opts.pagination.deviation,!0,opts.pagination])}))}))})));var u=$cfs.triggerHandler(cf_e("currentPage",conf))+opts.pagination.deviation;return u>=r&&(u=0),0>u&&(u=r-1),opts.pagination.container.each((function(){$(this).children().removeClass(cf_c("selected",conf)).eq(u).addClass(cf_c("selected",conf))})),!0}})),$cfs.bind(cf_e("updateSizes",conf),(function(){var t=opts.items.visible,o=$cfs.children(),n=ms_getParentSize($wrp,opts,"width");if(itms.total=o.length,crsl.primarySizePercentage?(opts.maxDimension=n,opts[opts.d.width]=ms_getPercentage(n,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,n),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,t=(opts=in_getResponsiveValues(opts,o,n)).items.visible,sz_setResponsiveSizes(opts,o)):opts.items.visibleConf.variable?t=gn_getVisibleItemsNext(o,opts,0):"*"!=opts.items.filter&&(t=gn_getVisibleItemsNextFilter(o,opts,0)),!opts.circular&&0!=itms.first&&t>itms.first){if(opts.items.visibleConf.variable)var r=gn_getVisibleItemsPrev(o,opts,itms.first)-itms.first;else if("*"!=opts.items.filter)r=gn_getVisibleItemsPrevFilter(o,opts,itms.first)-itms.first;else r=opts.items.visible-itms.first;debug(conf,"Preventing non-circular: sliding "+r+" items backward."),$cfs.trigger(cf_e("prev",conf),r)}opts.items.visible=cf_getItemsAdjust(t,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,o);var u=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,u]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),u})),$cfs.bind(cf_e("destroy",conf),(function(t,o){return t.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),o&&$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(){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(t,o,n){return t.stopPropagation(),$cfs.triggerHandler(cf_e(o,conf),n)}))},_unbind_events:function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},_bind_buttons:function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var t=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e("mouseenter",conf,!1),(function(){$cfs.trigger(cf_e("pause",conf),t)})).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(t){t.preventDefault();var o=!1,n=null;crsl.isPaused?o="play":opts.auto.pauseOnEvent&&(o="pause",n=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),o&&$cfs.trigger(cf_e(o,conf),n)})),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),(function(t){t.preventDefault(),$cfs.trigger(cf_e("prev",conf))})),opts.prev.pauseOnHover)){t=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e("mouseenter",conf,!1),(function(){$cfs.trigger(cf_e("pause",conf),t)})).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(t){t.preventDefault(),$cfs.trigger(cf_e("next",conf))})),opts.next.pauseOnHover)){t=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e("mouseenter",conf,!1),(function(){$cfs.trigger(cf_e("pause",conf),t)})).bind(cf_e("mouseleave",conf,!1),(function(){$cfs.trigger(cf_e("resume",conf))}))}if(opts.pagination.container&&opts.pagination.pauseOnHover){t=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e("mouseenter",conf,!1),(function(){$cfs.trigger(cf_e("pause",conf),t)})).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(t){var o=t.keyCode;o==opts.next.key&&(t.preventDefault(),$cfs.trigger(cf_e("next",conf))),o==opts.prev.key&&(t.preventDefault(),$cfs.trigger(cf_e("prev",conf)))})),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),(function(t){var o=t.keyCode;o>=49&&58>o&&(o=(o-49)*opts.items.visible,itms.total>=o&&(t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[o,0,!0,opts.pagination])))})),$.fn.swipe){var o="ontouchstart"in window;if(o&&opts.swipe.onTouch||!o&&opts.swipe.onMouse){var n=$.extend(!0,{},opts.prev,opts.swipe),r=$.extend(!0,{},opts.next,opts.swipe),e=function(){$cfs.trigger(cf_e("prev",conf),[n])},f=function(){$cfs.trigger(cf_e("next",conf),[r])};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),$wrp.css("cursor","move"),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var u=$.extend(!0,{},opts.prev,opts.mousewheel),p=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),(function(t,o){t.preventDefault(),o>0?$cfs.trigger(cf_e("prev",conf),[u]):$cfs.trigger(cf_e("next",conf),[p])})),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e("play",conf),opts.auto.delay),crsl.upDateOnWindowResize){var i=function(){$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))},d=$(window),g=null;if($.debounce&&"debounce"==conf.onWindowResize)g=$.debounce(200,i);else if($.throttle&&"throttle"==conf.onWindowResize)g=$.throttle(300,i);else{var m=0,_=0;g=function(){var t=d.width(),o=d.height();(t!=m||o!=_)&&(i(),m=t,_=o)}}d.bind(cf_e("resize",conf,!1,!0,!0),g)}},_unbind_buttons:function(){var t=(cf_e("",conf),cf_e("",conf,!1));ns3=cf_e("",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(t),opts.auto.button&&opts.auto.button.unbind(t),opts.prev.button&&opts.prev.button.unbind(t),opts.next.button&&opts.next.button.unbind(t),opts.pagination.container&&(opts.pagination.container.unbind(t),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(!0===s){if(s=window.location.hash,1>s.length)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,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(t){return'<a href="#"><span>'+t+"</span></a>"},$.fn.carouFredSel.progressbarUpdater=function(t){$(this).css("width",t+"%")},$.fn.carouFredSel.cookie={get:function(t){t+="=";for(var o=document.cookie.split(";"),n=0,r=o.length;r>n;n++){for(var u=o[n];" "==u.charAt(0);)u=u.slice(1);if(0==u.indexOf(t))return u.slice(t.length)}return 0},set:function(t,o,n){var r="";if(n){var u=new Date;u.setTime(u.getTime()+864e5*n),r="; expires="+u.toGMTString()}document.cookie=t+"="+o+r+"; path=/"},remove:function(t){$.fn.carouFredSel.cookie.set(t,"",-1)}},$.extend($.easing,{quadratic:function(t){var o=t*t;return t*(-o*t+4*o-6*t+4)},cubic:function(t){return t*(4*t*t-9*t+6)},elastic:function(t){var o=t*t;return t*(33*o*o-106*o*t+126*o-67*t+15)}}))})(jQuery);
function SetZoomImagePos(t,e){var i=0,o=$(window).height()-20,n=$(window).width()-20;e>n||t>o?(e*=i=o/t>n/e?n/e:o/t,t*=i,$(".ZoomContainer .ZoomImageContainer .ZoomImage img").css({width:e,height:t})):$(".ZoomContainer .ZoomImageContainer .ZoomImage img").removeAttr("style");var a=-1*Math.floor((t+10)/2),r=-1*Math.floor((e+10)/2);$(".ZoomContainer .ZoomImageContainer").css({"margin-top":a,"margin-left":r})}function FixArticleImages(t){$(t).each((function(){this.complete?($(this).parent().parent().find(".loadingFrame").hide(),$(this).parent().find(".hoverFrame").show(),$(this).css({visibility:"visible"}),$(this).parent().css({visibility:"visible"})):$(this).bind("load",(function(){$(this).parent().parent().find(".loadingFrame").hide(),$(this).parent().find(".hoverFrame").show(),$(this).css({visibility:"visible"}),$(this).parent().css({visibility:"visible"})}))}))}$(document).ready((function(){FixArticleImages(".news-thumb"),$(".dotify").each((function(){$(this).attr("data-text",$(this).html())})),$(".dotify").dotdotdot(),$(".dotify").css({visibility:"visible"}),$(".article-thumb").on("error",(function(){var t;t=-1!=$(this).attr("src").indexOf("?")?$(this).attr("src").replace($(this).attr("src").substring(0,$(this).attr("src").indexOf("?")),"/Images/default-thumbs/news.jpg"):"/Images/default-thumbs/news.jpg",$(this).attr("src",t)})),$(".ZoomContainer .ZoomImage img").on("error",(function(){var t;t=-1!=$(this).attr("src").indexOf("?")?$(this).attr("src").replace($(this).attr("src").substring(0,$(this).attr("src").indexOf("?")),"/Images/default-thumbs/news.jpg"):"/Images/default-thumbs/news.jpg",$(this).attr("src",t)})),$(".BaseTemplate .others-articles .prevArticleText").css("opacity","0"),$(".BaseTemplate .others-articles .nextArticleText").css("opacity","0"),$("html.no-touch .BaseTemplate .others-articles .prevArticle").hover((function(){$(this).parent().find(".prevArticleText").css("opacity","1")}),(function(){$(this).parent().find(".prevArticleText").css("opacity","0")})),$("html.no-touch .BaseTemplate .others-articles .nextArticle").hover((function(){$(this).parent().find(".nextArticleText").css("opacity","1")}),(function(){$(this).parent().find(".nextArticleText").css("opacity","0")})),$(".ZoomContainer").on("click",(function(t){$(t.target).closest(".ZoomImage").length||$(".ZoomContainer .ZoomImageContainerClose").click()}))})),$(window).resize((function(){$(".ZoomContainer .ZoomImageContainer .ZoomImage img").each((function(){this.complete&&SetZoomImagePos($(this)[0].naturalHeight,$(this)[0].naturalWidth)}))})),$(window).load((function(){$(".ZoomContainer .ZoomImageContainer .ZoomImage img")[0].complete?$(".ZoomContainer .ZoomImageContainer .ZoomImage img").each((function(){this.complete&&SetZoomImagePos($(this)[0].naturalHeight,$(this)[0].naturalWidth)})):$(".ZoomContainer .ZoomImageContainer .ZoomImage img").load((function(){SetZoomImagePos($(this)[0].naturalHeight,$(this)[0].naturalWidth)})),$(".article-image.NewsArticleThumb .big-frame").on("click touchstart",(function(){return $(".ZoomContainer").show(),setTimeout((function(){$(".ZoomContainer").addClass("open")}),100),!1})),$(".ZoomContainer .ZoomImageContainerClose").on("click touchstart",(function(){return $(".ZoomContainer").removeClass("open"),setTimeout((function(){$(".ZoomContainer").hide()}),500),!1})),$(".news-item .textContainer").each((function(){var t=$(this).parent().find(".smallFrame").width();$(this).css("width",t)})),$("#NwCarousel").carouFredSel({auto:!1,width:"100%",onWindowResize:"debounce",prev:{button:"#prev",key:"left"},next:{button:"#next",key:"right"},scroll:{duration:500,items:1,easing:"swing",pauseOnHover:!0,fx:"directscroll"},swipe:!0}),$(".caroufredsel_wrapper .NwCarouselItem").length||($(".Interested").remove(),$("#NwSlideshow").remove(),$(".mainContent .page-wrapper .divider").last().remove())}));