function TS_VCSC_IsTouchDevice(){return!!("ontouchstart"in window)||!!("onmsgesturechange"in window)}function TS_VCSC_SimulateTouchEvents(t,e){var a=jQuery;return!!a(t)[0]&&(window.__touchTypes||(window.__touchTypes={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},window.__touchInputs={INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,input:1,textarea:1,select:1,option:1}),a(t).bind("touchstart touchmove touchend",function(t){var i=t.target===this;if(!e||i){var r=!i&&t.target.__ajqmeclk,s=t.originalEvent;if(!0!==r&&s.touches&&!(s.touches.length>1)&&window.__touchTypes[s.type]){var n=!i&&"boolean"!=typeof r&&a(t.target).data("events");if(!(r=!i&&(t.target.__ajqmeclk=!!n&&(n.click||n.mousedown||n.mouseup||n.mousemove)))&&!window.__touchInputs[t.target.tagName]){var o=s.changedTouches[0],l=document.createEvent("MouseEvent");l.initMouseEvent(window.__touchTypes[s.type],!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(l),s.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault()}}}}),!0)}function TS_VCSC_GetClosestEvenNumber(t){return t%2==0?t:t+1}function TS_VCSC_MultiKeyReplace(t,e,a){return a.replace(new RegExp("("+("string"==typeof t?t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&"):t.map(function(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}).join("|"))+")","g"),"string"==typeof e?e:"string"==typeof t?e[0]:function(a){return e[t.indexOf(a)]})}function TS_VCSC_isPortrait(){return window.innerHeight>window.innerWidth}function TS_VCSC_isLandscape(){return 90===window.orientation||-90===window.orientation||270===window.orientation}function TS_VCSC_UpdateVariablesOffsets(){TS_VCSC_OffsetScrollTop=window.pageYOffset,TS_VCSC_OffsetScrollLeft=window.pageXOffset}function TS_VCSC_UpdateVariablesWindow(){TS_VCSC_WindowHeight=window.innerHeight,TS_VCSC_WindowWidth=window.innerWidth}function TS_VCSC_StyleSupport(t){var e,a,i=t.charAt(0).toUpperCase()+t.slice(1),r=["Moz","Webkit","O","ms"],s=document.createElement("div");if(t in s.style)a=t;else for(var n=0;n<r.length;n++)if((e=r[n]+i)in s.style){a=e;break}return s=null,jQuery.support[t]=a,a}function TS_VCSC_GetBackgroundImagePosition(t){var e=jQuery(t).css("background-position");if("string"==typeof e)a=e.split(" ");else var a=[jQuery(t).css("background-position-x"),jQuery(t).css("background-position-y")];return{x:parseFloat(a[0]),xUnit:a[0].replace(/[0-9-.]/g,""),y:parseFloat(a[1]),yUnit:a[1].replace(/[0-9-.]/g,"")}}function TS_VCSC_DocumentVisibility(){TS_VCSC_WindowAPI_Visible=!document[TS_VCSC_WindowAPI_Hidden]}function TS_VCSC_GetBasicRoman(t){for(var e="",a=0,i=0;i<roman.length&&0!=t;i++)for(;t>=decimal[i];)t-=decimal[i],e+=roman[i],"M"==roman[i]&&a++;return{numThousands:a,romanNumeral:e}}function TS_VCSC_DecimalToRoman(t){if(t<=0||t>3888888)return t;var e=TS_VCSC_GetBasicRoman(t);if(e.numThousands>4){for(var a="",i=0;i<e.numThousands;i++)a+="M";var r="<span style='border-top:1px solid #000'>"+TS_VCSC_GetBasicRoman(e.numThousands).romanNumeral+"</span>";romanNumeral=e.romanNumeral.replace(a,r)}else romanNumeral=e.romanNumeral;return romanNumeral}function TS_VCSC_CodeToCharacter(t){for(var e="";t>=0;)e=String.fromCharCode(t%26+97)+e,t=Math.floor(t/26)-1;return e}function TS_VCSC_DeviceType_Offsets(t){var e=t.split(";"),a={},i="",r="";return jQuery.each(e,function(t,e){""!=e&&void 0!=e&&"undefined"!=e&&(e=e.split(":"),i=e[0],r=e[1],r=r.replace(/[^\d]/g,""),a[i]=parseFloat(r))}),a}function TS_VCSC_ParallaxImages(){TS_VCSC_UpdateVariablesOffsets();for(var t=0;t<TS_VCSC_ScrollParallaxImages.length;t++)TS_VCSC_ScrollParallaxImages[t].executeParallax()}function TS_VCSC_ParallaxTouchDevices(){TS_VCSC_UpdateVariablesOffsets();for(var t=0;t<TS_VCSC_ScrollParallaxImages.length;t++)TS_VCSC_ScrollParallaxImages[t].executeParallax();window.requestAnimationFrame(TS_VCSC_ParallaxTouchDevices)}"ontouchstart"in document.documentElement||(document.documentElement.className+=" no-touch"),jQuery.exists=function(t){return jQuery(t).length>0},jQuery.fn.reverse=[].reverse;var TS_VCSC_WindowAPI_Hidden,TS_VCSC_WindowAPI_State,TS_VCSC_WindowAPI_Change,TS_VCSC_ActiveBrowserTab=!0,TS_VCSC_MobileDevice=!1,TS_VCSC_DeviceDesktop=!0,TS_VCSC_DeviceTablet=!1,TS_VCSC_DevicePhone=!1,TS_VCSC_DeviceOrientation="landscape",TS_VCSC_Amaran_Overlay="",TS_VCSC_AdminBarOffset=0,TS_VCSC_ScrollParallaxImages=[],TS_VCSC_OffsetScrollTop=0,TS_VCSC_OffsetScrollLeft=0,TS_VCSC_WindowHeight=0,TS_VCSC_WindowWidth=0,TS_VCSC_Supports3D=function(){if(document.body&&void 0!==document.body.style.perspective)return!0;var t=document.createElement("div"),e=t.style,a=["Webkit","Moz","O","Ms","ms"],i=a.length;if(void 0!==t.style.perspective)return!0;for(;--i>-1;)if(void 0!==e[a[i]+"Perspective"])return!0;return!1}(),TS_VCSC_WindowAPI_Visible=!0;void 0!==document.hidden?(TS_VCSC_WindowAPI_Hidden="hidden",TS_VCSC_WindowAPI_Change="visibilitychange",TS_VCSC_WindowAPI_State="visibilityState"):void 0!==document.mozHidden?(TS_VCSC_WindowAPI_Hidden="mozHidden",TS_VCSC_WindowAPI_Change="mozvisibilitychange",TS_VCSC_WindowAPI_State="mozVisibilityState"):void 0!==document.msHidden?(TS_VCSC_WindowAPI_Hidden="msHidden",TS_VCSC_WindowAPI_Change="msvisibilitychange",TS_VCSC_WindowAPI_State="msVisibilityState"):void 0!==document.webkitHidden?(TS_VCSC_WindowAPI_Hidden="webkitHidden",TS_VCSC_WindowAPI_Change="webkitvisibilitychange",TS_VCSC_WindowAPI_State="webkitVisibilityState"):(TS_VCSC_WindowAPI_Hidden="hidden",TS_VCSC_WindowAPI_Change="visibilitychange",TS_VCSC_WindowAPI_State="visibilityState"),function(t){var e=/iPhone/i,a=/iPod/i,i=/iPad/i,r=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,s=/Android/i,n=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,o=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,l=/IEMobile/i,d=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,c=/BlackBerry/i,u=/BB10/i,h=/Opera Mini/i,p=/(CriOS|Chrome)(?=.*\bMobile\b)/i,f=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,m=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),g=function(t,e){return t.test(e)},y=function(t){var y=t||navigator.userAgent,v=y.split("[FBAN");if(void 0!==v[1]&&(y=v[0]),void 0!==(v=y.split("Twitter"))[1]&&(y=v[0]),this.apple={phone:g(e,y),ipod:g(a,y),tablet:!g(e,y)&&g(i,y),device:g(e,y)||g(a,y)||g(i,y)},this.amazon={phone:g(n,y),tablet:!g(n,y)&&g(o,y),device:g(n,y)||g(o,y)},this.android={phone:g(n,y)||g(r,y),tablet:!g(n,y)&&!g(r,y)&&(g(o,y)||g(s,y)),device:g(n,y)||g(o,y)||g(r,y)||g(s,y)},this.windows={phone:g(l,y),tablet:g(d,y),device:g(l,y)||g(d,y)},this.other={blackberry:g(c,y),blackberry10:g(u,y),opera:g(h,y),firefox:g(f,y),chrome:g(p,y),device:g(c,y)||g(u,y)||g(h,y)||g(f,y)||g(p,y)},this.seven_inch=g(m,y),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},v=function(){var t=new y;return t.Class=y,t};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=y:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=v():"function"==typeof define&&define.amd?define("TS_VCSC_isMobile",[],t.TS_VCSC_isMobile=v()):t.TS_VCSC_isMobile=v(),TS_VCSC_isMobile.apple.phone||TS_VCSC_isMobile.apple.ipod||TS_VCSC_isMobile.android.phone||TS_VCSC_isMobile.windows.phone?(TS_VCSC_MobileDevice=!0,TS_VCSC_DeviceDesktop=!1,TS_VCSC_DeviceTablet=!1,TS_VCSC_DevicePhone=!0):TS_VCSC_isMobile.apple.tablet||TS_VCSC_isMobile.android.tablet||TS_VCSC_isMobile.windows.tablet||TS_VCSC_isMobile.seven_inch?(TS_VCSC_MobileDevice=!0,TS_VCSC_DeviceDesktop=!1,TS_VCSC_DeviceTablet=!0,TS_VCSC_DevicePhone=!1):(TS_VCSC_MobileDevice=!1,TS_VCSC_DeviceDesktop=!0,TS_VCSC_DeviceTablet=!1,TS_VCSC_DevicePhone=!1)}(this),function(t){t.fn.hasAttr=function(t){if(this.attr)e=this.attr(t);else var e=this.getAttribute(t);return void 0!==e&&!1!==e&&null!==e},t.fn.TS_VCSC_SortSelectBox=function(e,a){"text"===e?"asc"===a?t(this).html(t(this).children("option").sort(function(e,a){return t(e).text().toLowerCase()<t(a).text().toLowerCase()?-1:1})):"desc"===a&&t(this).html(t(this).children("option").sort(function(e,a){return t(a).text().toLowerCase()<t(e).text().toLowerCase()?-1:1})):"asc"===a?t(this).html(t(this).children("option").sort(function(a,i){return t(a).attr(e).toLowerCase()<t(i).attr(e).toLowerCase()?-1:1})):"desc"===a&&t(this).html(t(this).children("option").sort(function(a,i){return t(i).attr(e).toLowerCase()<t(a).attr(e).toLowerCase()?-1:1}))},t.fn.TS_VCSC_GetWidthInPercent=function(){var e=parseFloat(t(this).css("width"))/parseFloat(t(this).parent().css("width"));return Math.round(100*e)},t.fn.alterClass=function(e,a){if(-1===e.indexOf("*"))return this.removeClass(e),a?this.addClass(a):this;var i=new RegExp("\\s"+e.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return this.each(function(e,a){for(var r=" "+a.className+" ";i.test(r);)r=r.replace(i," ");a.className=t.trim(r)}),a?this.addClass(a):this},t.fn.moveTo=function(e){return this.each(function(){var a=t(this).clone();t(a).appendTo(e),t(this).remove()})},t.fn.unwrapUntil=function(){var e=arguments[0],a=typeof arguments[0];return"number"===a?t.each(this,function(){for(var a=t(this),i=0;i<e;i++)a.unwrap()}):"string"===a?t.each(this,function(){var a=t(this);if(a.closest(e).length>0)for(;0===a.parent(e).length;)a.unwrap()}):"object"===a&&t.each(this,function(){var a=t(this);if(a.closest(e).length>0)for(;a.parent()[0]!==e[0];)a.unwrap()}),this},t.fn.hasDataSet=function(e){return void 0!==t(this).data(e)};t.fn.translate3d=function(e,a,i,r){var s=t.speed(a,i,r);return s.easing=s.easing||"ease",e=t.extend({x:0,y:0,z:0},e),this.each(function(){var a=t(this);a.css({transitionDuration:s.duration+"ms",transitionTimingFunction:s.easing,transform:"translate3d("+e.x+"px, "+e.y+"px, "+e.z+"px)"}),setTimeout(function(){a.css({transitionDuration:"0s",transitionTimingFunction:"ease"}),s.complete()},s.duration+0)})}}(jQuery),function(t){"$:nomunge";t.fn.cond=function(){for(var e,a,i,r=arguments,s=0;!e&&s<r.length;)e=r[s++],a=r[s++],e=t.isFunction(e)?e.call(this):e,i=a?e?a.call(this,e):void 0:e;return void 0!==i?i:this}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.fn.addBack=t.fn.addBack||t.fn.andSelf,t.fn.extend({actual:function(e,a){if(!this[e])throw'$.actual => The jQuery method "'+e+'" you called does not exist';var i,r,s=t.extend({absolute:!1,clone:!1,includeMargin:!1},a),n=this.eq(0);if(!0===s.clone)i=function(){n=n.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},r=function(){n.remove()};else{var o,l=[],d="";i=function(){o=n.parents().addBack().filter(":hidden"),d+="visibility: hidden !important; display: block !important; ",!0===s.absolute&&(d+="position: absolute !important; "),o.each(function(){var e=t(this),a=e.attr("style");l.push(a),e.attr("style",a?a+";"+d:d)})},r=function(){o.each(function(e){var a=t(this),i=l[e];void 0===i?a.removeAttr("style"):a.attr("style",i)})}}i();var c=/(outer)/.test(e)?n[e](s.includeMargin):n[e]();return r(),c}})});var TS_VCSC_Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e="";if(""==t||void 0==t)return e;var a,i,r,s,n,o,l,d=0;for(t=TS_VCSC_Base64._utf8_encode(t);d<t.length;)s=(a=t.charCodeAt(d++))>>2,n=(3&a)<<4|(i=t.charCodeAt(d++))>>4,o=(15&i)<<2|(r=t.charCodeAt(d++))>>6,l=63&r,isNaN(i)?o=l=64:isNaN(r)&&(l=64),e=e+this._keyStr.charAt(s)+this._keyStr.charAt(n)+this._keyStr.charAt(o)+this._keyStr.charAt(l);return e},decode:function(t){var e="";if(""==t||void 0==t)return e;var a,i,r,s,n,o,l=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<t.length;)a=this._keyStr.indexOf(t.charAt(l++))<<2|(s=this._keyStr.indexOf(t.charAt(l++)))>>4,i=(15&s)<<4|(n=this._keyStr.indexOf(t.charAt(l++)))>>2,r=(3&n)<<6|(o=this._keyStr.indexOf(t.charAt(l++))),e+=String.fromCharCode(a),64!=n&&(e+=String.fromCharCode(i)),64!=o&&(e+=String.fromCharCode(r));return e=TS_VCSC_Base64._utf8_decode(e)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",a=0;a<t.length;a++){var i=t.charCodeAt(a);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e},_utf8_decode:function(t){for(var e="",a=0,i=c1=c2=0;a<t.length;)(i=t.charCodeAt(a))<128?(e+=String.fromCharCode(i),a++):i>191&&i<224?(c2=t.charCodeAt(a+1),e+=String.fromCharCode((31&i)<<6|63&c2),a+=2):(c2=t.charCodeAt(a+1),c3=t.charCodeAt(a+2),e+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),a+=3);return e}};!function(t){t.fn.picstrips=function(e){var a=t.extend({splits:8,hgutter:"10px",vgutter:"60px",bgcolor:"#fff"},e);return this.each(function(){function e(){var e=i(r,null);t(r).show(),e=i(r,e)}function i(e,i){var r=t(e).height(),s=t(e).width(),n=parseInt(a.hgutter,10),o=(s-n*a.splits)/a.splits,l="position: relative; float:left; margin-right: "+a.hgutter+"; background-image: url("+e.src+"); width: "+o+"px; height: "+r+"px; background-size: auto "+r+"px; ",d="position: absolute; left: 0px; width: "+o+"px; height: "+a.vgutter+"; background-color: "+a.bgcolor+"; top: ",c="position: relative; float:left; background-image: url("+e.src+"); width: "+o+"px; height: "+r+"px; background-size: auto "+r+"px; ";i&&i.remove();var u=t("[id^=molbars_]").length+1;(i=t('<div id="molbars_'+u+'" class="molbars"></div>')).insertAfter(t(e));for(var h=0,p=0;p<a.splits;p++){var f=p%2!=0?"0px":r-parseInt(a.vgutter,10)+"px";l+=" background-position: -"+h+"px 100%;",c+=" background-position: -"+h+"px 100%;",p===a.splits-1?t('<div style="'+c+'"><span style="'+d+f+'"></span></div>').appendTo(i):t('<div style="'+l+'"><span style="'+d+f+'"></span></div>').appendTo(i),h+=o+n}return t(e).hide(),i}var r=this;if(this.complete&&this.width+this.height!==0)e();else{var s=new Image;s.src=this.src,t(s).on("load",function(){e()})}})}}(jQuery);var roman=new Array;roman=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"];var decimal=new Array;decimal=[1e3,900,500,400,100,90,50,40,10,9,5,4,1],function(t){t.fn.drags=function(e){var a=null;return(""===(e=t.extend({handle:"",cursor:"move",draggableClass:"draggable",activeHandleClass:"active-handle"},e)).handle?this:this.find(e.handle)).css("cursor",e.cursor).on("mousedown",function(i){""===e.handle?(a=t(this)).addClass(e.draggableClass):(a=t(this).parent()).addClass(e.draggableClass).find(e.handle).addClass(e.activeHandleClass);var r=a.outerHeight(),s=a.outerWidth(),n=a.offset().top+r-i.pageY,o=a.offset().left+s-i.pageX;t(document).on("mousemove",function(t){a.offset({top:t.pageY+n-r,left:t.pageX+o-s})}).on("mouseup",function(){t(this).off("mousemove"),null!==a&&(a.removeClass(e.draggableClass),a=null)}),i.preventDefault()}).on("mouseup",function(){""===e.handle?a.removeClass(e.draggableClass):a.removeClass(e.draggableClass).find(e.handle).removeClass(e.activeHandleClass),a=null}),this}}(jQuery),function(t){t.fn.hasHorizontalScrollBar=function(){return!!this.get(0)&&this.get(0).scrollWidth>this.innerWidth()},t.fn.hasVerticalScrollBar=function(){return!!this.get(0)&&this.get(0).scrollHeight>this.innerHeight()}}(jQuery),function(t){function e(){if("function"!=typeof Event||window.MooTools){var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}else window.dispatchEvent(new Event("resize"))}function r(){jQuery(".ts-video-container").each(function(){var t=jQuery(this),e=t.find("iframe");t.width();e.attr("width","100%").css({width:"100%"})})}function s(){jQuery(".ts-background").each(function(){if("false"==jQuery(this).attr("data-inline")){var e=jQuery(this),a="true"==jQuery(this).attr("data-vc-full-width"),i=(jQuery(window).width(),jQuery(this).attr("data-svgshape"),parseInt(jQuery(this).attr("data-random")),jQuery(this).attr("data-type")),r=jQuery(this).attr("data-height"),s=jQuery(this).attr("data-screen"),n=parseInt(jQuery(this).attr("data-offset"));if(jQuery(this).hasClass("ts-background-blur"))o=parseInt(jQuery(this).attr("data-blur"));else var o=0;if(void 0===jQuery(this).attr("data-break-parents")||1==a)return;var l=parseInt(jQuery(this).attr("data-break-parents"));if(isNaN(l)||0==l&&"video"!=i&&"parallax"!=i)return;"movement"==i?($horizontalAdjust=parseInt(jQuery(this).attr("data-movex")),$verticalAdjust=parseInt(jQuery(this).attr("data-movey"))):($horizontalAdjust=0,$verticalAdjust=0);var d=jQuery(this).parent(),c=d.find(".ts-rowcenter-container-enabled");r>0&&c.css("min-height","0px");for(var u=c.outerHeight(!0),h=d,p=0;p<l&&!h.is("html");p++)"none"!=(h=h.parent()).css("max-width")&&parseInt(h.css("max-width").replace("px","").replace("%","").replace("em",""));h.width(),parseInt(h.css("paddingLeft")),parseInt(h.css("paddingRight")),parseInt(h.css("marginLeft")),parseInt(h.css("marginRight"));var f=d.offset().left-h.offset().left+0;if((f=-Math.ceil(f))>0&&(f=0),r>0&&jQuery(this).css("min-height","0px"),$heightMin=jQuery(this).parent().outerHeight(),$heightBrowser=t(window).height()-n,$widthMin=h.outerWidth(),$heightMin>parseInt(r))$heightMin;else parseInt(r);if("true"==s&&($heightMin=$heightBrowser),jQuery(this).addClass("fullwidth"),jQuery(this).css({position:"absolute",width:$widthMin+o+"px","min-width":$widthMin+o+"px",left:parseInt(f)-o+"px"}),r>0&&jQuery(this).css({"min-height":$heightMin+"px"}),o>0&&jQuery(this).css({clip:"rect("+o+"px, "+($widthMin+o)+"px, "+$heightMin+"px, "+o+"px)"}),r>0&&jQuery(this).attr("data-set-height",$heightMin),jQuery(this).attr("data-set-width",$widthMin+o),jQuery(this).attr("data-set-ratio",($widthMin+o)/$heightMin),"true"==s?(d.addClass("fullwidth"),r>0&&(d.css("min-height",parseInt($heightMin)+"px"),u>$heightMin?c.css("min-height",parseInt(u)+"px"):c.css("min-height",parseInt($heightMin)+"px"))):(d.addClass("fullwidth"),r>0&&(d.css("min-height",parseInt(r)+"px"),u>$heightMin?c.css("min-height",parseInt(u)+"px"):c.css("min-height",parseInt($heightMin)+"px"))),"video"==i){var m=$widthMin+o,g=$heightMin;$widthMin,$heightMin;jQuery(this).find(".ts-background-video-holder").width(m),jQuery(this).find(".ts-background-video-holder").height(g),jQuery(this).find(".ts-background-video-holder").find(".wallpaper-container").width(m).height(g),jQuery(this).find(".ts-background-video-holder").find("video").width(m)}if("movement"==i){var y=jQuery(this).width()/jQuery(this).height(),v=$widthMin+2*$horizontalAdjust*y,w=-1*parseInt(jQuery(this).css("left"));jQuery(this).width(v).css("left","-"+(w+$horizontalAdjust)+"px").css("max-width",v+"px")}"parallax"==i&&"false"==e.attr("data-completed")&&e.attr("data-completed","true")}})}function n(){jQuery(".ts-image-full-frame").each(function(){if("false"==jQuery(this).attr("data-inline")){jQuery(window).width();var t="true"==jQuery(this).attr("data-svgshape"),e=parseInt(jQuery(this).attr("data-random"));if(jQuery(this).hasClass("ts-background-blur"))var a=parseInt(jQuery(this).attr("data-blur")),i=1;else var a=0,i=0;if(void 0===jQuery(this).attr("data-break-parents"))return;var r=parseInt(jQuery(this).attr("data-break-parents"));if(isNaN(r)||0==r)return;jQuery(this).hasClass("ts-image-full-movement")?($horizontalAdjust=parseInt(jQuery(this).attr("data-movex")),$verticalAdjust=parseInt(jQuery(this).attr("data-movey")),jQuery(this).find("img.ts-imagefull").width("100%")):($horizontalAdjust=0,$verticalAdjust=0);for(var s=jQuery(this).parent(),n=s,o=0;o<r&&!n.is("html");o++)"none"!=(n=n.parent()).css("max-width")&&parseInt(n.css("max-width").replace("px","").replace("%","").replace("em",""));n.width(),parseInt(n.css("paddingLeft")),parseInt(n.css("paddingRight")),parseInt(n.css("marginLeft")),parseInt(n.css("marginRight"));var l=s.offset().left-n.offset().left+0-parseInt(s.css("marginLeft"))-parseInt(s.css("paddingLeft"));if((l=-Math.ceil(l))>0&&(l=0),$heightMin=jQuery(this).find("img.ts-imagefull").height(),$widthMin=n.outerWidth(),$heightMin>parseInt(0))$heightMin;else parseInt(0);if(jQuery(this).addClass("fullwidth"),jQuery(this).css({"min-height":$heightMin+"px",width:$widthMin+a+"px","min-width":$widthMin+a+"px",left:parseInt(l)-a+"px"}),a>0&&jQuery(this).css({clip:"rect("+a+"px, "+($widthMin+a)+"px, "+$heightMin+"px, "+a+"px)"}),jQuery(this).hasClass("ts-image-full-movement")){var d=jQuery(this).find("img.ts-imagefull").width(),c=jQuery(this).find("img.ts-imagefull").height(),u=d/c,h=$widthMin+2*$horizontalAdjust*u;jQuery(this).find("img.ts-imagefull").width(h).css("left","-"+$horizontalAdjust+"px").css("max-width",h+"px"),$horizontalAdjust=jQuery(this).find("img.ts-imagefull").height()-c,jQuery(this).find("img.ts-imagefull").css("top","-"+$horizontalAdjust/2+"px")}t&&(jQuery("#ts-background-separator-top-"+e).css({position:"absolute",width:$widthMin+a+"px","min-width":$widthMin+a+"px",left:parseInt(l)-a+"px","margin-top":-1-a-i+"px"}),jQuery("#ts-background-separator-bottom-"+e).css({position:"absolute",width:$widthMin+a+"px","min-width":$widthMin+a+"px",left:parseInt(l)-a+"px","margin-bottom":-1-a-i+"px"}))}})}function o(){jQuery(".ts-slideshow-full-frame").each(function(){if("false"==jQuery(this).attr("data-inline")){jQuery(window).width();var t=parseInt(jQuery(this).attr("data-height")),e=(jQuery(this).attr("data-dynamic"),"true"==jQuery(this).attr("data-svgshape")),a=parseInt(jQuery(this).attr("data-random"));if(jQuery(this).hasClass("ts-background-blur"))var i=parseInt(jQuery(this).attr("data-blur")),r=1;else var i=0,r=0;if(void 0===jQuery(this).attr("data-break-parents"))return;var s=parseInt(jQuery(this).attr("data-break-parents"));if(isNaN(s)||0==s)return;$horizontalAdjust=0,$verticalAdjust=0;for(var n=jQuery(this).parent(),o=n,l=0;l<s&&!o.is("html");l++)"none"!=(o=o.parent()).css("max-width")&&parseInt(o.css("max-width").replace("px","").replace("%","").replace("em",""));o.width(),parseInt(o.css("paddingLeft")),parseInt(o.css("paddingRight")),parseInt(o.css("marginLeft")),parseInt(o.css("marginRight"));var d=n.offset().left-o.offset().left+0-parseInt(n.css("marginLeft"))-parseInt(n.css("paddingLeft"));(d=-Math.ceil(d))>0&&(d=0),$widthMin=o.outerWidth(),jQuery(this).addClass("fullwidth"),jQuery(this).css({"max-height":t+"px",width:$widthMin+i+"px","min-width":$widthMin+i+"px",left:parseInt(d)-i+"px"}),i>0&&jQuery(this).css({clip:"rect("+i+"px, "+($widthMin+i)+"px, "+$heightMin+"px, "+i+"px)"}),e&&(jQuery("#ts-background-separator-top-"+a).css({position:"absolute",width:$widthMin+i+"px","min-width":$widthMin+i+"px",left:"0px","margin-top":-1-i-r+"px"}),jQuery("#ts-background-separator-bottom-"+a).css({position:"absolute",width:$widthMin+i+"px","min-width":$widthMin+i+"px",left:"0px","margin-bottom":-1-i-r+"px"}))}})}function l(){jQuery(".ts-iframe-full-frame").each(function(){if("false"==jQuery(this).attr("data-inline")){jQuery(window).width();var t=2*parseInt(jQuery(this).attr("data-border"));if(void 0===jQuery(this).attr("data-break-parents"))return;var e=parseInt(jQuery(this).attr("data-break-parents"));if(isNaN(e)||0==e)return;for(var a=jQuery(this).parent(),i=a,r=0;r<e&&!i.is("html");r++)"none"!=(i=i.parent()).css("max-width")&&parseInt(i.css("max-width").replace("px","").replace("%","").replace("em",""));i.width(),parseInt(i.css("paddingLeft")),parseInt(i.css("paddingRight")),parseInt(i.css("marginLeft")),parseInt(i.css("marginRight"));var s=a.offset().left-i.offset().left+0-parseInt(a.css("marginLeft"))-parseInt(a.css("paddingLeft"));if((s=-Math.ceil(s))>0&&(s=0),$heightMin=0,$widthMin=i.outerWidth(),$heightMin>parseInt(0))$heightMin;else parseInt(0);jQuery(this).addClass("fullwidth"),jQuery(this).css({"min-height":$heightMin+"px",width:$widthMin-t+"px","min-width":$widthMin-t+"px",left:parseInt(s)+"px"})}})}function d(){jQuery(".ts-other-full-frame").each(function(){if("false"==jQuery(this).attr("data-inline")){jQuery(window).width();if(void 0===jQuery(this).attr("data-break-parents"))return;var t=parseInt(jQuery(this).attr("data-break-parents"));if(isNaN(t)||0==t)return;for(var e=jQuery(this).parent(),a=e,i=0;i<t&&!a.is("html");i++)"none"!=(a=a.parent()).css("max-width")&&parseInt(a.css("max-width").replace("px","").replace("%","").replace("em",""));a.width(),parseInt(a.css("paddingLeft")),parseInt(a.css("paddingRight")),parseInt(a.css("marginLeft")),parseInt(a.css("marginRight"));var r=e.offset().left-a.offset().left+0-parseInt(e.css("marginLeft"))-parseInt(e.css("paddingLeft"));if((r=-Math.ceil(r))>0&&(r=0),$heightMin=0,$widthMin=a.outerWidth(),$heightMin>parseInt(0))$heightMin;else parseInt(0);jQuery(this).addClass("fullwidth"),jQuery(this).css({"min-height":$heightMin+"px",width:$widthMin+"px","min-width":$widthMin+"px",left:parseInt(r)+"px"})}})}function c(){jQuery(".ts-lightbox-nacho-full-frame").each(function(){if("false"==jQuery(this).attr("data-inline")){jQuery(window).width();if(void 0===jQuery(this).attr("data-break-parents"))return;var t=parseInt(jQuery(this).attr("data-break-parents"));if(isNaN(t)||0==t)return;for(var e=jQuery(this).parent(),a=e,i=0;i<t&&!a.is("html");i++)"none"!=(a=a.parent()).css("max-width")&&parseInt(a.css("max-width").replace("px","").replace("%","").replace("em",""));a.width(),parseInt(a.css("paddingLeft")),parseInt(a.css("paddingRight")),parseInt(a.css("marginLeft")),parseInt(a.css("marginRight"));var r=e.offset().left-a.offset().left+0-parseInt(e.css("marginLeft"))-parseInt(e.css("paddingLeft"));if((r=-Math.ceil(r))>0&&(r=0),$heightMin=0,$widthMin=a.outerWidth(),$heightMin>parseInt(0))$heightMin;else parseInt(0);jQuery(this).addClass("fullwidth"),jQuery(this).css({"min-height":$heightMin+"px",width:$widthMin+"px","min-width":$widthMin+"px",left:parseInt(r)+"px"})}})}jQuery(document).ready(function(){function t(t){t.attr("data-scroll-target"),parseInt(t.attr("data-scroll-distance")),parseInt(t.attr("data-scroll-speed")),t.attr("data-scroll-effect");var e=t.attr("data-scroll-totopin"),a=t.attr("data-scroll-totopout");"true"==t.attr("data-scroll-visible")||(t.show(),t.attr("data-scroll-visible","true"),t.removeClass(a),""!=e&&(t.addClass(e),setTimeout(function(){t.removeClass(e)},2e3)))}jQuery("body").attr("data-multibackground-mousewheeloverridespeed","true"),document.addEventListener(TS_VCSC_WindowAPI_Change,TS_VCSC_DocumentVisibility,!1),jQuery(window).on("debouncedresize",function(t){!function(t){t?(window.matchMedia("(orientation: portrait)").matches&&(TS_VCSC_DeviceOrientation="portrait"),window.matchMedia("(orientation: landscape)").matches&&(TS_VCSC_DeviceOrientation="landscape")):TS_VCSC_DeviceOrientation="landscape"}(TS_VCSC_MobileDevice)}),TS_VCSC_AdminBarOffset=void 0!=jQuery("html").css("boxSizing")&&"border-box"==jQuery("html").css("boxSizing")&&jQuery("#wpadminbar").length>0?parseInt(jQuery("html").css("marginTop").replace("px","")):0,window.onfocus=function(){TS_VCSC_ActiveBrowserTab=!0},window.onblur=function(){TS_VCSC_ActiveBrowserTab=!1},jQuery(".ts-preloader-animation-main").length>0&&jQuery(".ts-preloader-animation-main").find("span").each(function(){jQuery(this).empty()}),s(),jQuery(".ts-button-page-navigator").length>0&&jQuery("body").on("click",".ts-button-page-navigator",function(t){t.preventDefault();var e=jQuery(this).attr("data-scroll-target"),a=parseInt(jQuery(this).attr("data-scroll-speed"));if(0==TS_VCSC_MobileDevice)i=parseInt(jQuery(this).attr("data-scroll-offsetdesktop"));else if(TS_VCSC_DeviceTablet)i=parseInt(jQuery(this).attr("data-scroll-offsettablet"));else if(TS_VCSC_DevicePhone)i=parseInt(jQuery(this).attr("data-scroll-offsetmobile"));else var i=0;var r=jQuery(this).attr("data-scroll-effect"),s="true"==jQuery(this).attr("data-scroll-hashtag");jQuery(this).hasClass("ts-figure-navigation-button")?($scroll_parent=jQuery(this).parent().parent(),$scroll_trigger=$scroll_parent.attr("data-trigger"),"hover"==$scroll_trigger?($scroll_parent.trigger("mouseleave touchend"),$scroll_adjust=$scroll_parent.height()-140):$scroll_adjust=0):($scroll_trigger="",$scroll_adjust=0),jQuery("html, body").stop().animate({scrollTop:jQuery("#"+e).offset().top-i-TS_VCSC_AdminBarOffset-$scroll_adjust},a,r,function(){s&&(window.location.hash=e)})}),jQuery(".ts-gototop-page-navigator").length>0&&(jQuery("html").addClass("ts-gototop-page-html"),jQuery("body").addClass("ts-gototop-page-body")),jQuery(".ts-gototop-page-navigator").each(function(){jQuery(this).prependTo(document.body);var e=jQuery(this),a=(e.attr("data-scroll-target"),parseInt(e.attr("data-scroll-distance"))),i=parseInt(e.attr("data-scroll-speed")),r=e.attr("data-scroll-effect"),s=e.attr("data-scroll-totopin");e.attr("data-scroll-totopout"),e.attr("data-scroll-visible");a>0?jQuery(document).scrollTop()>a&&t(e):(e.show(),e.attr("data-scroll-visible","true"),""!=s&&(e.removeClass(s).addClass(s),setTimeout(function(){e.removeClass(s)},2e3))),e.on("click",function(t){if(t.preventDefault(),t.stopPropagation(),"true"==e.attr("data-tooltipset"))try{e.tooltipstercustom("destroy").attr("data-tooltipset","false")}catch(t){}jQuery("html, body").stop().animate({scrollTop:0},i,r,function(){})}),e.find("a").on("click",function(t){t.preventDefault()})}),jQuery(".ts-gototop-page-navigator.ts-gototop-page-distance").length>0&&jQuery(document).on("scroll",function(){clearTimeout(jQuery.data(this,"scrollCheck")),jQuery.data(this,"scrollCheck",setTimeout(function(){jQuery(".ts-gototop-page-navigator.ts-gototop-page-distance").each(function(){var e=parseInt(jQuery(this).attr("data-scroll-distance"));jQuery(document).scrollTop()>e?t(jQuery(this)):function(t){t.attr("data-scroll-target"),parseInt(t.attr("data-scroll-distance")),parseInt(t.attr("data-scroll-speed")),t.attr("data-scroll-effect");var e=t.attr("data-scroll-totopin"),a=t.attr("data-scroll-totopout");"true"==t.attr("data-scroll-visible")&&(t.removeClass(e),""!=a?(t.addClass(a),setTimeout(function(){t.removeClass(a),t.hide(),t.attr("data-scroll-visible","false")},2e3)):(t.hide(),t.attr("data-scroll-visible","false")))}(jQuery(this))})},350))})}),jQuery(document).ready(function(){function t(){jQuery(".ts-figure-navigation-container").each(function(){var t=jQuery(this),e="true"==jQuery(this).attr("data-frontend"),a=jQuery(this).width(),i=parseInt(jQuery(this).attr("data-minwidth")),r="true"==jQuery(this).attr("data-widthfull"),s=jQuery(this).find(".ts-figure-navigation-item").length,n=i*s,o=jQuery(this).attr("data-pagecontent"),l="true"==jQuery(this).attr("data-nofigure"),d=0,c=0,u=(jQuery(this).find(".ts-figure-navigation-item").length,0),h=0,p=100,f={},m=0,g=0,y=0,v=0,w=0;if(0==e)if(n>a&&!1===r){for(j=0;j<s;j++)if((s-j)*i<=a){p=100/(s-j),jQuery(this).find(".ts-figure-navigation-item").css("width",p+"%").attr("data-width",p);break}}else a<i||!0===r?(p=100,jQuery(this).find(".ts-figure-navigation-item").css("width","100%").attr("data-width","100")):(p=100/s,jQuery(this).find(".ts-figure-navigation-item").css("width",p+"%").attr("data-width",p));else p=100,jQuery(this).find(".ts-figure-navigation-item").css("width","100%").attr("data-width","100");if(jQuery(this).find(".ts-figure-navigation-item").each(function(t){var e=jQuery(this);if(jQuery(this).hasClass("ts-figure-navigation-hover")){e.attr("data-frontend"),e.attr("data-group");var a=e.find(".ts-figure-navigation-title"),i=e.find(".ts-figure-navigation-image"),r=e.find(".ts-figure-navigation-handle"),s=e.find(".ts-figure-navigation-content"),n=e.find(".ts-figure-navigation-button");l?e.css("height","80px"):e.css("height","110px"),s.css("height","100%");var f=a.outerHeight(!0)+i.outerHeight(!0)+r.outerHeight(!0)+s.outerHeight(!0)+n.outerHeight(!0);e.css("height",f+"px");var m=e.find(".ts-figure-navigation-image").height();s.css("height",s.height()+"px"),e.find(".ts-figure-navigation-figure").css({height:m+"px"}),e.find(".ts-figure-navigation-content").stop(!0).animate({opacity:1},500)}"cover"==o&&(u*p>=100&&(u=0,++h>c&&(c=h)),u>d&&(d=u),e.css({left:u*p+"%",top:h*e.height()+h*e.find(".ts-figure-navigation-handle").height()+"px"}).attr("data-absolute-height",e.height()+e.find(".ts-figure-navigation-handle").height()).attr("data-absolute-row",h).attr("data-absolute-column",u).attr("data-absolute-movetip","-"+e.find(".ts-figure-navigation-handle").height()),u++)}),"cover"==o){for(var j=0,Q=h+1;j<Q;j++)f["row"+j]=0;jQuery(this).find(".ts-figure-navigation-item").each(function(t){g=parseInt(jQuery(this).attr("data-absolute-height")),y=parseInt(jQuery(this).attr("data-absolute-row")),v=parseInt(jQuery(this).attr("data-absolute-column")),g>f["row"+y]&&(f["row"+y]=g),jQuery(this).hasClass("ts-has-tooltipster-tooltip")&&(jQuery(this).attr("data-tooltipster-offsety",jQuery(this).attr("data-tooltipster-movetip")),w=parseInt(jQuery(this).attr("data-tooltipster-movetip"))+parseInt(jQuery(this).attr("data-absolute-movetip")),h>0&&0==d&&jQuery(this).attr("data-tooltipster-offsety",w))});for(var j=0,Q=h+1;j<Q;j++)m+=f["row"+j];t.height(m+"px")}})}function e(){jQuery(".ts-horizontal-steps").each(function(){var t=jQuery(this),e="true"==t.attr("data-frontend"),a=(t.attr("data-layoutrtl"),t.width()),i=parseInt(t.attr("data-lastwidth")),r=0,s=0,n=parseInt(t.attr("data-stepinner")),o=parseInt(t.attr("data-minwidth")),l=parseInt(t.attr("data-maxwidth")),d=parseInt(t.attr("data-iconsize")),c="true"==t.attr("data-iconlimit"),u=parseInt(t.attr("data-iconmax")),h=t.find(".ts-horizontal-steps-item").length,p=o*h,f=t.find(".ts-horizontal-steps-item"),m=t.find(".ts-horizontal-step-icon"),g=0,y=0,v=0,w=0,j=[],Q=[],b=!1;if(1==e);else if(a!=i){if(t.attr("data-lastwidth",a),f.css("height","auto"),p>a){for(var C=0;C<h;C++)if((h-C)*o<=a){r=100/(h-C),(g=Math.floor(a/100*r))>l&&(g=l),s=g/100*n,$height_icon=s*d/100>u&&c?u:s*d/100,$margin_image=(s-$height_icon)/2,t.find(".ts-horizontal-steps-item").css("width",g+"px").attr("data-width",g),t.find(".ts-horizontal-steps-item").find(".ts-horizontal-step-icon").css("width",s+"px").css("height",s+"px"),t.find(".ts-horizontal-steps-item").find(".ts-horizontal-step-icon i").css("line-height",s+"px").css("font-size",$height_icon+"px"),t.find(".ts-horizontal-steps-item").find(".ts-horizontal-step-icon img").css("height",$height_icon+"px").css("width",$height_icon+"px").css("margin-top",$margin_image+"px");break}}else a<o?(g=a,s=a/100*n,$height_icon=s*d/100>u&&c?u:s*d/100,$margin_image=(s-$height_icon)/2,f.css("width","100%").attr("data-width","100"),m.css("width",s+"px").css("height",s+"px"),m.find("i").css("line-height",s+"px").css("font-size",$height_icon+"px"),m.find("img").css("height",$height_icon+"px").css("width",$height_icon+"px").css("margin-top",$margin_image+"px")):(r=100/h,(g=Math.floor(a/100*r))>l&&(g=l),s=g/100*n,$height_icon=g>u&&c?u:s*d/100,$margin_image=(s-$height_icon)/2,f.css("width",g+"px").attr("data-width",g),m.css("width",s+"px").css("height",s+"px"),m.find("i").css("line-height",s+"px").css("font-size",$height_icon+"px"),m.find("img").css("height",$height_icon+"px").css("width",$height_icon+"px").css("margin-top",$margin_image+"px"));setTimeout(function(){f.each(function(t,e){(y+=jQuery(this).width())>a?(j.push(t),y=jQuery(this).width()):Q.push(t)}),f.first().addClass("ts-horizontal-steps-first"),jQuery.each(j,function(t,e){f.eq(e-1).addClass("ts-horizontal-steps-break").addClass("ts-horizontal-steps-arrow")}),jQuery.each(Q,function(t,e){f.eq(e-1).removeClass("ts-horizontal-steps-break").removeClass("ts-horizontal-steps-arrow")}),f.last().addClass("ts-horizontal-steps-break").addClass("ts-horizontal-steps-last"),t.find(".ts-horizontal-steps-break").length==h?(b=!0,f.css("height","auto").addClass("ts-horizontal-steps-full")):(b=!1,f.removeClass("ts-horizontal-steps-full"),jQuery.each(j,function(t,e){v=0,f.slice(w,e).each(function(){jQuery(this).height()>v&&(v=jQuery(this).height())}),f.slice(w,e).css("height",v+"px"),w=e}))},500)}})}function i(){jQuery(".ts-process-line-container").each(function(){var t=jQuery(this),e=t.attr("data-style"),a=t.attr("data-alignment"),i=t.width(),r=parseInt(t.attr("data-switchat")),s=t.attr("data-switchto");if("alternate"==a){if("style3"==e)n=t.find("ul.ts-timeline-3");else if("style4"==e)n=t.find(".ts-timeline-4");else var n=null;i<=r?"style3"==e?n.removeClass("ts-timeline-3-align-alternate").addClass("ts-timeline-3-align-"+s):"style4"==e&&n.removeClass("ts-timeline-4-align-alternate").addClass("ts-timeline-4-align-"+s):"style3"==e?n.removeClass("ts-timeline-3-align-"+s).addClass("ts-timeline-3-align-alternate"):"style4"==e&&n.removeClass("ts-timeline-4-align-"+s).addClass("ts-timeline-4-align-alternate")}})}function u(t,e,a,i,r,s,n,o,l,d,c){setTimeout(function(){var r=new CountItUp(t.attr("id"),e,a>1e4?a-100:a,0,i/1e3,{useEasing:!0,useGrouping:!0,separator:s,decimal:".",prefix:n,suffix:(l?"+":"")+o});r.start(function(){a>1e4&&r.update(a),d.addClass(c),setTimeout(function(){d.removeClass(c)},2e3)})},r)}function h(t,e,a,i,r,s){var n=e.attr("data-lazy-src");""!=n&&void 0!=n&&"undefined"!=n&&(s=n),r?e.attr("src",s.replace("autoplay=0","autoplay=1")):e.attr("src",s),t.css({opacity:0,visibility:"hidden"}),e.css({width:"100%",visibility:"visible",opacity:1}),setTimeout(function(){i.remove(),t.off().remove(),a.removeClass("ts-video-overlay-true"),e.removeAttr("data-lazy-src")},1e3)}function p(t,e,a,i,r,s,n,o,l,d,c,u){try{if(null!=jQuery("#"+a).contents().find("body")){var h=jQuery(document).scrollTop(),f=(jQuery("#"+a).contents().find("body"),t.outerHeight(!0)),m=Math.max(document.getElementById(a).contentWindow.document.body.offsetHeight,document.getElementById(a).contentWindow.document.documentElement.offsetHeight,l)+o;if(m!=f){t.attr("data-height-last",f).attr("data-height-scroll",h).css("height","auto"),e.css("height","100%").attr("height","100%"),m=Math.max(/clientHeight/i.test(r)?document.getElementById(a).contentWindow.document.body.clientHeight:0,/scrollHeight/i.test(r)?document.getElementById(a).contentWindow.document.body.scrollHeight:0,/offsetHeight/i.test(r)?document.getElementById(a).contentWindow.document.body.offsetHeight:0,/clientHeight/i.test(r)?document.getElementById(a).contentWindow.document.documentElement.clientHeight:0,/scrollHeight/i.test(r)?document.getElementById(a).contentWindow.document.documentElement.scrollHeight:0,/offsetHeight/i.test(r)?document.getElementById(a).contentWindow.document.documentElement.offsetHeight:0,l)+o,t.css("height",m+"px").attr("data-height-current",m),e.css("height",m+"px").attr("height",m);var g=f-m}"watcher"==s?function(t,e,a,i,r,s,n,o,l,d,c,u){d=setInterval(function(){clearInterval(d),p(t,e,a,i,r,s,n,o,l,d=null,c,u)},n)}(t,e,a,i,r,s,n,o,l,d,c,u):u&&jQuery(document).scrollTop(h-g)}else setTimeout(function(){p(t,e,a,i,r,s,n,o,l,d,c,u)},250)}catch(t){console&&console.log&&(console.log("The iFrame auto-height routine can only be used for pages that come from the same domain as the main page. The following error has been encountered:"),console.log(t))}}void 0!==jQuery.fn.waypoint?jQuery(".ts-has-viewport-animation").each(function(){var t=jQuery(this),e=jQuery(window).width(),a=parseInt(t.attr("data-viewport-limit")),i="true"==t.attr("data-viewport-use");if(e<a||!i)return!1;var r=parseInt(t.attr("data-viewport-delay")),s=parseInt(t.attr("data-viewport-opacity")),n=t.attr("data-viewport-offset"),o=t.attr("data-viewport-class");t.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0});t.waypoint({handler:function(e){setTimeout(function(){t.css({opacity:s,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*s+')"',filter:"alpha(opacity="+100*s+")","-moz-opacity":s,"-khtml-opacity":s}),t.addClass(o),setTimeout(function(){t.removeClass(o),t.removeClass("ts-has-viewport-animation").addClass("ts-has-viewport-processed");try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},2e3)},r)},offset:n,triggerOnce:!0})}):jQuery(".ts-has-viewport-animation").each(function(){var t=jQuery(this);t.removeClass("ts-has-viewport-animation").addClass("ts-has-viewport-processed"),t.css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1})}),jQuery(window).on("debouncedresize",function(r){jQuery(".ts-vcsc-font-icon-advanced").each(function(){var t=jQuery(this),e=t.attr("data-implement"),a=parseInt(t.attr("data-height-always")),i=t.attr("data-height-unit"),r=t.attr("data-type"),s=1024;if("devices"==e)TS_VCSC_MobileDevice?TS_VCSC_DeviceTablet&&"portrait"==TS_VCSC_DeviceOrientation?a=parseInt(t.attr("data-tablet-portrait")):TS_VCSC_DeviceTablet&&"landscape"==TS_VCSC_DeviceOrientation?a=parseInt(t.attr("data-tablet-landscape")):TS_VCSC_DevicePhone&&"portrait"==TS_VCSC_DeviceOrientation?a=parseInt(t.attr("data-mobile-portrait")):TS_VCSC_DevicePhone&&"landscape"==TS_VCSC_DeviceOrientation&&(a=parseInt(t.attr("data-mobile-landscape"))):a=parseInt(t.attr("data-desktop"));else if("screens"==e){s=jQuery(window).outerWidth();var n=[],o=[],l=null;n.push(parseInt(t.attr("data-height-extralarge"))),n.push(parseInt(t.attr("data-height-large"))),n.push(parseInt(t.attr("data-height-medium"))),n.push(parseInt(t.attr("data-height-small"))),n.push(parseInt(t.attr("data-height-extrasmall"))),o.push(parseInt(t.attr("data-screen-extralarge"))),o.push(parseInt(t.attr("data-screen-large"))),o.push(parseInt(t.attr("data-screen-medium"))),o.push(parseInt(t.attr("data-screen-small"))),o.push(parseInt(t.attr("data-screen-extrasmall"))),jQuery.each(o,function(){this<=s&&(null==l||s-this<s-l)&&(l=this)}),a=n[l=jQuery.inArray(parseInt(l),o)]}else"always"==e&&(a=a);"icon"==r?t.find(".ts-font-icon").css({"font-size":a+i,height:"auto"}):t.find(".ts-font-icon").css({width:a+i,height:"auto"})}),jQuery(".ts-spacer-advanced").each(function(){var t=jQuery(this),e=t.attr("data-implement"),a=parseInt(t.attr("data-height-always")),i="true"==t.attr("data-screen-check"),r="true"==t.attr("data-screen-invert"),s=parseInt(t.attr("data-screen-width"));if("devices"==e)TS_VCSC_MobileDevice?TS_VCSC_DeviceTablet&&"portrait"==TS_VCSC_DeviceOrientation?a=parseInt(t.attr("data-tablet-portrait")):TS_VCSC_DeviceTablet&&"landscape"==TS_VCSC_DeviceOrientation?a=parseInt(t.attr("data-tablet-landscape")):TS_VCSC_DevicePhone&&"portrait"==TS_VCSC_DeviceOrientation?a=parseInt(t.attr("data-mobile-portrait")):TS_VCSC_DevicePhone&&"landscape"==TS_VCSC_DeviceOrientation&&(a=parseInt(t.attr("data-mobile-landscape"))):a=parseInt(t.attr("data-desktop"));else if("screens"==e){s=r?jQuery(window).outerWidth():t.outerWidth();var n=[],o=[],l=null;n.push(parseInt(t.attr("data-height-extralarge"))),n.push(parseInt(t.attr("data-height-large"))),n.push(parseInt(t.attr("data-height-medium"))),n.push(parseInt(t.attr("data-height-small"))),n.push(parseInt(t.attr("data-height-extrasmall"))),o.push(parseInt(t.attr("data-screen-extralarge"))),o.push(parseInt(t.attr("data-screen-large"))),o.push(parseInt(t.attr("data-screen-medium"))),o.push(parseInt(t.attr("data-screen-small"))),o.push(parseInt(t.attr("data-screen-extrasmall"))),jQuery.each(o,function(){this<=s&&(null==l||s-this<s-l)&&(l=this)}),a=n[l=jQuery.inArray(parseInt(l),o)]}else"always"==e&&(a=a);t.css({height:a+"px","min-height":a+"px","line-height":a+"px"}),"always"==e&&i&&(jQuery(window).width()>=s?t.show():t.hide())}),jQuery(".ts-flex-button").each(function(){var t=jQuery(this);if(t.hasClass("ts-flex-button-icon-left")||t.hasClass("ts-flex-button-icon-right")){t.attr("data-iconhover");var e=t.width(),a=t.find(".ts-flex-button-icon"),i=t.find(".ts-flex-button-title"),r=i.css("marginLeft").replace("px","").replace("%","").replace("em",""),s=i.css("marginRight").replace("px","").replace("%","").replace("em",""),n=e-a.outerWidth(!0)-r-s;i.width(n+"px")}}),jQuery(".ts-icon-dual-button").each(function(){var t=jQuery(this),e=parseInt(t.attr("data-stack")),a=t.width(),i=t.find(".ts-dual-buttons-wrapper"),r=[],s=0,n=i.find(".ts-dual-buttons-link-left"),o=i.find(".ts-dual-buttons-link-right");a<=e?i.addClass("ts-dual-buttons-stack"):i.removeClass("ts-dual-buttons-stack"),n.css("height","auto"),o.css("height","auto"),r.push(n.outerHeight(!0)),r.push(o.outerHeight(!0)),s=Math.max.apply(Math,r),n.css("height",s+"px"),o.css("height",s+"px")}),jQuery(".ts-divider-lines, .ts-divider-icons, .ts-divider-images").each(function(){var t=jQuery(this),e=t.parent(),a=parseInt(e.attr("data-margin-top")),i=parseInt(e.attr("data-margin-bottom")),r=(parseInt(e.attr("data-border-width")),(a+i+t.find(".ts-divider-text").outerHeight(!0))/2);e.css({"margin-top":r+"px","margin-bottom":r+"px"})}),jQuery(".ts-skillset-raphael-container").each(function(){var t=jQuery(this).find("svg");0!=t.length&&(t.children().off().unbind(),t.off().remove());var e=jQuery(this).find(".ts-skillset-raphael-chart"),i=e.attr("data-raphael"),r=e.parent().width(),s=r/2,n="true"==e.attr("data-randomstart");if("true"==e.attr("data-circlecustom"))o=e.attr("data-circlecolor");else var o="none";var l=e.attr("data-textcolor"),d=e.attr("data-textdefault"),c=parseInt(e.attr("data-textsize")),u=parseInt(e.attr("data-maxstroke")),h=parseInt(e.attr("data-spacestroke")),p=d,f=Raphael(i,r,r);f.customAttributes.arc=function(t,e,i){var r=3.6*t,o=360==r?359.99:r;if(n)var l=240,d=91;else var l=0,d=0;return random=Math.floor(Math.random()*(l-d+1)+d),a=(random-o)*Math.PI/180,b=random*Math.PI/180,sx=s+i*Math.cos(b),sy=s-i*Math.sin(b),x=s+i*Math.cos(a),y=s-i*Math.sin(a),path=[["M",sx,sy],["A",i,i,0,+(o>180),1,x,y]],{path:path,stroke:e}},f.circle(s,s,70).attr({stroke:"none",fill:o});var m=f.text(s,s,p).attr({font:c+"px Verdana",fill:l}).toFront(),g=jQuery(this).find(".ts-skillset-raphael-arch").length;if(h>0)v=(g+1)*h+10;else var v=g+5;var w=Math.floor((r-140)/2),j=Math.floor((w-v)/g);j>u&&(j=u);var Q=j+h,C=70-j/2;jQuery(this).find(".ts-skillset-raphael-arch").each(function(t){var e=jQuery(this),a=e.find(".color").val(),i=e.find(".percent").val(),r=e.find(".name").val(),s={"stroke-width":j};C+=Q,f.path().attr(s).attr({arc:[i,a,C]}).mouseover(function(){this.animate({"stroke-width":j+20,opacity:.9},800,"elastic"),"VML"!=Raphael.type&&this.toFront(),m.stop().animate({opacity:0},250,">",function(){this.attr({text:r+"\n"+i+"%"}).animate({opacity:1},250,"<")})}).mouseout(function(){this.stop().animate({"stroke-width":j,opacity:1},1e3,"elastic"),m.stop().animate({opacity:0},250,">",function(){m.attr({text:p}).animate({opacity:1},250,"<")})})})}),t(),e(),i(),jQuery(".ts-creativelink-wrapper").each(function(){var t=jQuery(this),e=t.attr("data-effect"),a=t.width();if("effect-19"==e){var i=t.find("nav").find("a"),r=i.find("span");i.width("auto");var s=i.outerWidth(!0);if(s>a)n=a;else var n=s;n%2!=0&&(n+=1),i.css({width:n+"px"}),r.css({"-webkit-transform-origin":"50% 50% -"+n/2+"px","-moz-transform-origin":"50% 50% -"+n/2+"px","transform-origin":"50% 50% -"+n/2+"px"})}})});var f=0;jQuery(document).on("mouseenter touchstart",".ts-figure-navigation-item-hover",function(){var t=jQuery(this),e=t.attr("data-frontend"),a=t.attr("data-group"),i=t.find(".ts-figure-navigation-title"),r=t.find(".ts-figure-navigation-image"),s=t.find(".ts-figure-navigation-handle"),n=t.find(".ts-figure-navigation-content"),o=t.find(".ts-figure-navigation-button"),l="true"==t.parent().attr("data-multiple"),d="true"==t.parent().attr("data-global");t.parent().attr("data-nofigure");if("false"==e){0==l&&0==d?jQuery(".ts-figure-navigation-hover.ts-figure-navigation-group"+a).trigger("mouseleave"):0==l&&1==d&&jQuery(".ts-figure-navigation-hover").trigger("mouseleave").trigger("click");var c=i.outerHeight(!0)+r.outerHeight(!0)+s.outerHeight(!0)+n.outerHeight(!0)+o.outerHeight(!0);t.css("height",c+"px");var u=t.find(".ts-figure-navigation-image").height();n.css("height",n.height()+"px"),t.find(".ts-figure-navigation-figure").css({height:u+"px"}),t.addClass("ts-figure-navigation-hover"),n.css({opacity:1,display:"block"})}}),jQuery(document).on("mouseleave touchend",".ts-figure-navigation-item-hover",function(){var t=jQuery(this),e=t.attr("data-frontend"),a=(t.attr("data-group"),"true"==jQuery(this).parent().attr("data-nofigure"));"false"==e&&(t.removeClass("ts-figure-navigation-hover"),t.find(".ts-figure-navigation-content").css({opacity:0}),t.find(".ts-figure-navigation-figure").css({height:"0px"}),a?t.css("height","80px"):t.css("height","110px"),t.find(".ts-figure-navigation-content").css({height:"auto",display:"none"}))}),jQuery(document).on("click",".ts-figure-navigation-item-click",function(t){if(jQuery(t.target).hasClass("ts-figure-navigation-button"))return!0;t.preventDefault();var e=jQuery(this),a=(e.attr("data-frontend"),e.attr("data-group")),i=e.find(".ts-figure-navigation-title"),r=e.find(".ts-figure-navigation-image"),s=e.find(".ts-figure-navigation-handle"),n=e.find(".ts-figure-navigation-content"),o=e.find(".ts-figure-navigation-button"),l="true"==e.parent().attr("data-multiple"),d="true"==e.parent().attr("data-global"),c="true"==e.parent().attr("data-nofigure");if(e.hasClass("ts-figure-navigation-hover")&&!jQuery(t.target).hasClass("ts-figure-navigation-button"))e.removeClass("ts-figure-navigation-hover"),n.css({opacity:0}),e.find(".ts-figure-navigation-figure").css({height:"0px"}),c?e.css("height","80px"):e.css("height","110px"),n.css({height:"auto",display:"none"});else{0==l&&0==d?jQuery(".ts-figure-navigation-hover.ts-figure-navigation-group"+a).trigger("click"):0==l&&1==d&&jQuery(".ts-figure-navigation-hover").trigger("mouseleave").trigger("click");var u=i.outerHeight(!0)+r.outerHeight(!0)+s.outerHeight(!0)+n.outerHeight(!0)+o.outerHeight(!0);e.css("height",u+"px");var h=e.find(".ts-figure-navigation-image").height();n.css("height",n.height()+"px"),e.find(".ts-figure-navigation-figure").css({height:h+"px"}),e.addClass("ts-figure-navigation-hover"),n.css({opacity:1,display:"block"})}}),jQuery(".ts-figure-navigation-container").each(function(){f++;jQuery(this).find(".ts-figure-navigation-item").length;var t=jQuery(this).attr("data-numbering"),e=parseInt(jQuery(this).attr("data-start")),a=jQuery(this).attr("data-trigger"),i=parseInt(jQuery(this).attr("data-spacing")),r="true"==jQuery(this).attr("data-multiple"),s="true"==jQuery(this).attr("data-global"),n="true"==jQuery(this).attr("data-nofigure"),o=0+e-1;jQuery(this).find(".ts-figure-navigation-item").length;jQuery(this).find(".ts-figure-navigation-item").each(function(e){jQuery(this).addClass("ts-figure-navigation-group"+f).addClass("ts-figure-navigation-item-"+a).attr("data-group",f).attr("data-multiple",r).attr("data-global",s),jQuery(this).find(".ts-figure-navigation-inner").css({"margin-left":i/2+"px","margin-right":i/2+"px"}),jQuery(this).find(".ts-figure-navigation-handle-text").length>0&&(o++,"number"==t?$running=o:"roman"==t?$running=TS_VCSC_DecimalToRoman(o):"letter"==t&&($running=TS_VCSC_CodeToCharacter(o-1).toUpperCase()),jQuery(this).find(".ts-figure-navigation-handle-text").empty().html($running)),n?jQuery(this).css("height","80px"):jQuery(this).css("height","110px")})}),t(),e(),jQuery(".ts-horizontal-steps-viewport").each(function(){var t=jQuery(this),e=(t.attr("data-layoutrtl"),t.attr("data-animation")),a=parseInt(t.attr("data-delay")),i=parseInt(t.attr("data-break")),r=(t.attr("data-frontend"),"true"==t.attr("data-mobile")),s=t.height(),n=jQuery(window).height(),o=0;if(o=s<n/2?"bottom-in-view":s<=n?100-s/n+"%":"25%",0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&1==r)if(void 0!==jQuery.fn.waypoint){var l=0,d=t.find("li").length,c=a+d*i-i+2e3,u=null;t.find("li").css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0}),t.waypoint({handler:function(r){t.find("li").addClass("ts-horizontal-steps-animating"),setTimeout(function(){t.find("li").each(function(){var t=jQuery(this);setTimeout(function(){t.addClass(e).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),null!=u&&u.removeClass("ts-horizontal-steps-animating"),u=t},l),l+=i}).promise().done(function(){try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}})},a),setTimeout(function(){u=null,t.find("li").removeClass(e).removeClass("ts-horizontal-steps-animating"),t.addClass("ts-horizontal-steps-instant").removeClass("ts-horizontal-steps-viewport")},c)},offset:o,triggerOnce:!0})}else t.addClass("ts-horizontal-steps-instant").removeClass("ts-horizontal-steps-viewport");else t.addClass("ts-horizontal-steps-instant").removeClass("ts-horizontal-steps-viewport")}),i(),jQuery(".ts-process-line-viewport").each(function(){var t=jQuery(this),e=t.attr("data-animation-trigger"),a=t.attr("data-animation-type1"),i=t.attr("data-animation-type2"),r=t.attr("data-animation-type3"),s=t.attr("data-animation-type4"),n=parseInt(t.attr("data-animation-delay")),o=parseInt(t.attr("data-animation-wait")),l=t.attr("data-animation-offset"),d=(t.attr("data-animation-frontend"),"true"==t.attr("data-animation-mobile")),c=t.attr("data-style"),u=t.attr("data-alignment");if("style1"==c)var h=t.find(".ts-timeline-1-item"),p=null;else if("style2"==c)var h=t.find(".ts-timeline-2-item"),p=t.find("ul.ts-timeline-2");else if("style3"==c)var h=t.find(".ts-timeline-3-item"),p=t.find(".ts-timeline-3");else if("style4"==c)var h=t.find(".ts-timeline-4-item"),p=t.find(".ts-timeline-4");else var h=null,p=null;if(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&1==d)if(void 0!==jQuery.fn.waypoint){if(h.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0}),null!=p&&p.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0}),"item-in-view"==e){var f=h.length;h.each(function(e,n){var o=jQuery(this);jQuery(n).waypoint({handler:function(n){var l=e+1,d=!1,h="";o.addClass("ts-process-line-item-animating"),null!=p&&1==l&&p.css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),d=l%2==0,"style1"==c||"style2"==c?h=a:"style3"!=c&&"style4"!=c||("left"==u||"right"==u?h=i:"alternate"==u&&(h=d?s:r)),o.addClass(h).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),setTimeout(function(){o.removeClass("ts-process-line-item-animating"),o.removeClass(a).removeClass(i).removeClass(r).removeClass(s).removeClass("ts-process-line-item-animating"),0==--f&&t.addClass("ts-process-line-instant").removeClass("ts-process-line-viewport")},2e3);try{o.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},offset:l,triggerOnce:!0})})}else if("container-in-view"==e){var m=0,g=h.length,y=n+g*o-o+2e3,v=null;t.waypoint({handler:function(e){h.addClass("ts-process-line-item-animating"),null!=p&&p.css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),setTimeout(function(){h.each(function(t){var e=t+1,n=jQuery(this),l=!1,d="";l=e%2==0,"style1"==c||"style2"==c?d=a:"style3"!=c&&"style4"!=c||("left"==u||"right"==u?d=i:"alternate"==u&&(d=l?s:r)),setTimeout(function(){n.addClass(d).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),null!=v&&v.removeClass("ts-process-line-item-animating"),v=n},m),m+=o}).promise().done(function(){try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}})},n),setTimeout(function(){v=null,h.removeClass(a).removeClass(i).removeClass(r).removeClass(s).removeClass("ts-process-line-item-animating"),t.addClass("ts-process-line-instant").removeClass("ts-process-line-viewport")},y)},offset:l,triggerOnce:!0})}}else t.addClass("ts-process-line-instant").removeClass("ts-process-line-viewport");else t.addClass("ts-process-line-instant").removeClass("ts-process-line-viewport")}),jQuery(".ts-process-icon-viewport").each(function(){var t=jQuery(this),e=(t.attr("data-animation-trigger"),t.attr("data-animation-type")),a=parseInt(t.attr("data-animation-delay")),i=t.attr("data-animation-offset"),r=(t.attr("data-animation-frontend"),"true"==t.attr("data-animation-mobile"));(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&1==r)&&void 0!==jQuery.fn.waypoint?(t.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0}),t.waypoint({handler:function(i){setTimeout(function(){t.addClass("ts-process-icon-item-animating"),t.addClass(e).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),setTimeout(function(){t.removeClass("ts-process-icon-item-animating"),t.removeClass(e).removeClass("ts-process-icon-item-animating")},2e3);try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},a)},offset:i,triggerOnce:!0})):t.addClass("ts-process-icon-instant").removeClass("ts-process-icon-viewport")}),jQuery(".ts-icon-info-box-viewport").each(function(){var t=jQuery(this),e="true"==t.attr("data-viewport-frontend"),a=t.attr("data-viewport-class"),i=t.attr("data-viewport-offset"),r=parseInt(t.attr("data-viewport-delay")),s=parseInt(t.attr("data-viewport-opacity")),n=parseInt(t.attr("data-viewport-limit")),o=jQuery(document).width();if(void 0!==jQuery.fn.waypoint&&o>n&&!e){t.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0});t.waypoint({handler:function(e){setTimeout(function(){t.css({opacity:s,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*s+')"',filter:"alpha(opacity="+100*s+")","-moz-opacity":s,"-khtml-opacity":s}),t.addClass(a),setTimeout(function(){t.removeAttr("data-viewport-class"),t.removeClass(a),t.removeClass("ts-icon-info-box-viewport");try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},2e3)},r)},offset:i,triggerOnce:!0})}else t.css({opacity:s,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*s+')"',filter:"alpha(opacity="+100*s+")","-moz-opacity":s,"-khtml-opacity":s})}),jQuery(".ts-teaser-container").each(function(){var t=jQuery(this),e=t.find(".ts-teaser-text");t.attr("data-height-type");"true"==e.attr("data-scroll-nice")&&jQuery.isFunction(jQuery.fn.perfectScrollbar)&&(e.perfectScrollbar({minScrollbarLength:40,scrollXMarginOffset:20,scrollYMarginOffset:20}),e.attr("data-scroll-init","true"))}),jQuery(window).on("debouncedresize",function(t){jQuery.isFunction(jQuery.fn.perfectScrollbar)&&jQuery(".ts-teaser-text").each(function(){if("true"==jQuery(this).attr("data-scroll-init"))try{jQuery(this).perfectScrollbar("update")}catch(t){}})}),jQuery(".ts-advanced-textblock-container").each(function(){var t=jQuery(this),e=t.find(".ts-advanced-textblock-content");t.attr("data-height-type");"true"==e.attr("data-scroll-nice")&&jQuery.isFunction(jQuery.fn.perfectScrollbar)&&(e.perfectScrollbar({minScrollbarLength:40,scrollXMarginOffset:20,scrollYMarginOffset:20}),e.attr("data-scroll-init","true"))}),jQuery(window).on("debouncedresize",function(t){jQuery.isFunction(jQuery.fn.perfectScrollbar)&&jQuery(".ts-advanced-textblock-content").each(function(){if("true"==jQuery(this).attr("data-scroll-init"))try{jQuery(this).perfectScrollbar("update")}catch(t){}})}),jQuery(".ts-advanced-textblock-viewport").each(function(){var t=jQuery(this),e=t.attr("data-viewport-class"),a=t.attr("data-viewport-offset"),i=parseInt(t.attr("data-viewport-delay")),r=parseInt(t.attr("data-viewport-opacity")),s="true"==t.attr("data-viewport-mobile"),n="true"==t.attr("data-shadow-active"),o=t.attr("data-shadow-class");if(void 0!==jQuery.fn.waypoint){if(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&1==s){t.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0});t.waypoint({handler:function(a){setTimeout(function(){t.css({opacity:r,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*r+')"',filter:"alpha(opacity="+100*r+")","-moz-opacity":r,"-khtml-opacity":r}),n&&t.removeClass(o),t.addClass(e),setTimeout(function(){t.removeAttr("data-viewport-class"),t.removeClass(e),t.removeClass("ts-advanced-textblock-viewport"),n&&t.addClass(o);try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},2e3)},i)},offset:a,triggerOnce:!0})}}else t.css({opacity:r,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*r+')"',filter:"alpha(opacity="+100*r+")","-moz-opacity":r,"-khtml-opacity":r})}),void 0!==jQuery.fn.waypoint?jQuery(".ts-textillate").each(function(){var t="false"!=jQuery(this).attr("data-mobile");if(!1===TS_VCSC_MobileDevice||!0===t){var e=jQuery(this);e.waypoint({handler:function(t){var a=e.attr("data-in-effect"),i=e.attr("data-in-sync"),r=e.attr("data-in-shuffle"),s=e.attr("data-in-reverse"),n=e.attr("data-out-effect"),o=e.attr("data-out-sync"),l=e.attr("data-out-shuffle"),d=e.attr("data-in-reverse"),c=e.attr("data-loop"),u=e.attr("data-pause"),h=parseInt(e.attr("data-delay"));e.textillate({selector:".texts",loop:"true"==c,minDisplayTime:u,initialDelay:h,autoStart:!0,inEffects:[a],outEffects:[n],in:{effect:a,delayScale:1.5,delay:50,sync:"true"==i,shuffle:"true"==r,reverse:"true"==s,callback:function(){}},out:{effect:n,delayScale:1.5,delay:50,sync:"true"==o,shuffle:"true"==l,reverse:"true"==d,callback:function(){}},callback:function(){}});try{e.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},offset:"bottom-in-view",triggerOnce:!0})}}):jQuery(".ts-textillate").each(function(){var t="false"!=jQuery(this).attr("data-mobile");if(!1===TS_VCSC_MobileDevice||!0===t){var e=jQuery(this).attr("data-in-effect"),a=jQuery(this).attr("data-in-sync"),i=jQuery(this).attr("data-in-shuffle"),r=jQuery(this).attr("data-in-reverse"),s=jQuery(this).attr("data-out-effect"),n=jQuery(this).attr("data-out-sync"),o=jQuery(this).attr("data-out-shuffle"),l=jQuery(this).attr("data-in-reverse"),d=jQuery(this).attr("data-loop"),c=parseInt(jQuery(this).attr("data-delay"));jQuery(this).textillate({selector:".texts",loop:"true"==d,minDisplayTime:3e3,initialDelay:c,autoStart:!0,inEffects:[e],outEffects:[s],in:{effect:e,delayScale:1.5,delay:50,sync:"true"==a,shuffle:"true"==i,reverse:"true"==r,callback:function(){}},out:{effect:s,delayScale:1.5,delay:50,sync:"true"==n,shuffle:"true"==o,reverse:"true"==l,callback:function(){}},callback:function(){}})}}),jQuery(".ts-title-typed-container").each(function(){var t=jQuery(this),e="true"==t.attr("data-viewport"),a="true"==t.attr("data-frontend"),i="true"==t.attr("data-mobile"),r=t.find(".ts-title-typed-mobile"),s=t.find(".ts-title-typed-holder"),n=t.find(".ts-title-typed-string"),o=t.attr("data-pretext"),l=t.attr("data-posttext"),d="true"==t.attr("data-usehtml"),c=parseInt(t.attr("data-showbreaks")),u="";if(0==c)u=" ";else for(var h=0,p=c;h<p;h++)u+="<br/>";var f=t.attr("data-strings"),m=f=f.replace(/&/g,"&amp;");t.attr("data-title");if(d){g=f.split("|");f=f.replace(/\|/g,", "),m=m.replace(/\|/g,u)}else{var g=f.split(",");f=f.replace(/\,/g,", "),m=m.replace(/\,/g,u)}var y=[],v=["|comma|","{comma}","/comma/"],w=[",",",",","];jQuery.each(g,function(t,e){y.push(TS_VCSC_MultiKeyReplace(v,w,e))}),f=TS_VCSC_MultiKeyReplace(v,w,f),m=TS_VCSC_MultiKeyReplace(v,w,m);var j=parseInt(t.attr("data-startdelay")),Q=parseInt(t.attr("data-typespeed")),b=parseInt(t.attr("data-backdelay")),C=parseInt(t.attr("data-backspeed")),I="true"==t.attr("data-loop");if(I)x="false"!=t.attr("data-loopcount")&&parseInt(t.attr("data-loopcount"));else var x=0;var S=0,_="true"==t.attr("data-showcursor"),T=parseInt(t.attr("data-showdelay")),k=t.attr("data-cursorcolor"),M="true"==t.attr("data-removecursor"),$="true"==t.attr("data-showall");if(1==a)n.text(o+f+l);else if(1==TS_VCSC_MobileDevice&&0==i)s.remove(),r.show();else if(1==e)t.waypoint({handler:function(e){n.TS_VCSC_Typed({strings:y,contentType:"html",typeSpeed:Q,backSpeed:C,startDelay:j,backDelay:b,loop:I,loopCount:x,showCursor:_,cursorColor:k,cursorChar:"|",attr:null,callback:function(){S++,I?I&&0!=x&&(M&&S==x&&t.find(".typed-cursor").remove(),$&&S==x&&setTimeout(function(){n.fadeOut(500,function(){n.empty().html(m).fadeIn(500)})},T)):(M&&t.find(".typed-cursor").remove(),$&&setTimeout(function(){n.fadeOut(500,function(){n.empty().html(m).fadeIn(500)})},T))},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}});try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},offset:"bottom-in-view",triggerOnce:!0});else n.TS_VCSC_Typed({strings:y,contentType:"html",typeSpeed:Q,backSpeed:C,startDelay:j,backDelay:b,loop:I,loopCount:x,showCursor:_,cursorColor:k,attr:null,callback:function(){S++,I?I&&0!=x&&(M&&S==x&&t.find(".typed-cursor").remove(),$&&S==x&&setTimeout(function(){n.fadeOut(500,function(){n.empty().html(m).fadeIn(500)})},T)):(M&&t.find(".typed-cursor").remove(),$&&setTimeout(function(){n.fadeOut(500,function(){n.empty().html(m).fadeIn(500)})},T))},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}})}),jQuery(".ts-title-ticker-container").each(function(){var t=jQuery(this),e=t.find(".ts-title-ticker-holder"),a=t.find(".ts-title-ticker-animated"),i=(t.find(".ts-title-ticker-pretext"),t.find(".ts-title-ticker-posttext"),t.find(".ts-title-ticker-list").find("li")),r=t.find(".ts-title-ticker-mobile"),s=i.length,n=t.attr("data-direction"),o="true"==t.attr("data-mobile-allow"),l="true"==t.attr("data-controls"),d="true"==t.attr("data-reverse"),c="true"==t.attr("data-viewport"),u=(t.attr("data-frontend"),"true"==t.attr("data-showall")),h=parseInt(t.attr("data-items")),p=parseInt(t.attr("data-delay")),f=parseInt(t.attr("data-speed")),m=parseInt(t.attr("data-break")),g=t.attr("data-alignment"),y="true"==t.attr("data-pretext"),v="true"==t.attr("data-posttext"),w="true"==t.attr("data-hover"),j=t.find(".ts-title-ticker-controls"),Q=t.attr("data-position");if("left"==Q||"right"==Q)b="inline-block";else var b="block";var C=t.find(".ts-title-ticker-prev"),I=t.find(".ts-title-ticker-next"),x=t.find(".ts-title-ticker-pause"),S=t.find(".ts-title-ticker-play");if(1==TS_VCSC_MobileDevice&&0==o)e.hide(),r.show();else{if(1==c)t.waypoint({handler:function(e){setTimeout(function(){a.TS_VCSC_vTicker({speed:f,pause:m,showItems:u?s:h,mousePause:w,height:0,animate:!0,margin:0,padding:0,startPaused:!1,controls:l,controlsPosition:Q,preText:y,postText:v,direction:n,alignment:g,reverseList:d}),j&&j.css("display",b)},p);try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},offset:"bottom-in-view",triggerOnce:!0});else setTimeout(function(){a.TS_VCSC_vTicker({speed:f,pause:m,showItems:u?s:h,mousePause:w,height:0,animate:!0,margin:0,padding:0,startPaused:!1,controls:l,controlsPosition:Q,preText:y,postText:v,direction:n,alignment:g,reverseList:d}),j&&j.css("display",b)},p);j&&(I.on("mousedown touchstart",function(){event.preventDefault(),a.TS_VCSC_vTicker("next",{speed:250,animate:!0})}).on("mouseenter touchstart",function(){a.TS_VCSC_vTicker("pause",!0)}).on("mouseleave touchend",function(){"false"==x.attr("data-active")&&a.TS_VCSC_vTicker("pause",!1)}),C.on("mousedown touchstart",function(){event.preventDefault(),a.TS_VCSC_vTicker("prev",{speed:250,animate:!0})}).on("mouseenter touchstart",function(){a.TS_VCSC_vTicker("pause",!0)}).on("mouseleave touchend",function(){"false"==x.attr("data-active")&&a.TS_VCSC_vTicker("pause",!1)}),x.on("mousedown touchstart",function(){event.preventDefault(),a.TS_VCSC_vTicker("pause",!0),x.css("display","none").attr("data-active","true"),S.css("display","inline-block").attr("data-active","false")}),S.on("mousedown touchstart",function(){event.preventDefault(),a.TS_VCSC_vTicker("pause",!1),S.css("display","none").attr("data-active","true"),x.css("display","inline-block").attr("data-active","false")}))}}),jQuery(window).on("debouncedresize",function(t){jQuery(".ts-title-ticker-container").each(function(){var t=jQuery(this),e="true"==t.attr("data-mobile-allow"),a=t.find(".ts-title-ticker-controls"),i=t.find(".ts-title-ticker-animated"),r="true"==i.attr("data-ticker-initialized"),s="true"==t.attr("data-controls"),n=t.attr("data-position"),o=parseInt(t.attr("data-switchmedium")),l=parseInt(t.attr("data-switchsmall")),d=t.width();(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&0==e)&&(t.removeClass("ts-title-ticker-medium").removeClass("ts-title-ticker-small"),a.removeClass("ts-title-ticker-controls-"+n),r&&i.TS_VCSC_vTicker("pause",!0),d>=l&&d<o?(t.addClass("ts-title-ticker-medium"),s&&a.addClass("ts-title-ticker-controls-bottom")):d<l?(t.addClass("ts-title-ticker-small"),s&&a.addClass("ts-title-ticker-controls-bottom")):(t.removeClass("ts-title-ticker-medium").removeClass("ts-title-ticker-small"),s&&a.addClass("ts-title-ticker-controls-"+n)),r&&i.TS_VCSC_vTicker("pause",!1))})}),jQuery(".ts-title-morphed-container").each(function(){var t=jQuery(this),e=t.attr("data-routine"),a="true"==t.attr("data-viewport"),i="true"==t.attr("data-effect"),r=t.attr("data-animation-1"),s=t.attr("data-animation-2"),n=parseInt(t.attr("data-wait")),o=parseInt(t.attr("data-speed")),l=parseInt(t.attr("data-loops")),d=parseInt(t.attr("data-switch-trigger")),c=t.attr("data-switch-title");t.find(".ts-title-morphed-string").TS_VCSC_Morphist({viewport:a,wait:n,animateDual:"morphext"!=e,animateIn:r,animateOut:s,speed:o,loops:l,widthEffect:i,switchTrigger:d,switchTitle:c,complete:function(){}})}),jQuery(".ts-splitflap-wrapper").each(function(){var t=jQuery(this),e="true"==t.attr("data-frontend"),a="true"==t.attr("data-mobile"),i="true"==t.attr("data-restart"),r=t.attr("data-chars"),s=t.attr("data-text"),n=t.attr("data-start"),o="true"==t.attr("data-equalize"),l="true"==t.attr("data-dotted"),d=parseInt(t.attr("data-speed")),c=(t.attr("data-size"),t.attr("data-image")),u=t.attr("data-wrapper"),h=parseInt(t.attr("data-height")),p=parseInt(t.attr("data-width")),f=parseInt(t.attr("data-spacing")),m="true"==t.attr("data-viewport"),g=parseInt(t.attr("data-delay"));if(0==e)if(1==TS_VCSC_MobileDevice&&0==a)t.wrapInner("<"+u+' class="ts-splitflap-mobile"></'+u+">");else if(1==m)t.waypoint({handler:function(e){t.TS_VCSC_SplitFlap({autoplay:!0,text:s,textInit:n,textFill:" ",textEqual:o,textDots:l,delay:g,restart:i,image:c,charWidth:p,charHeight:h,charSpacing:f,charsMap:r,padDir:"left",padChar:" ",speed:d,speedVariation:2});try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},offset:"bottom-in-view",triggerOnce:!0});else t.TS_VCSC_SplitFlap({autoplay:!0,text:s,textInit:n,textFill:" ",textEqual:o,textDots:l,delay:g,restart:i,image:c,charWidth:p,charHeight:h,charSpacing:f,charsMap:r,padDir:"left",padChar:" ",speed:d,speedVariation:2})}),void 0!==jQuery.fn.waypoint&&jQuery(".ts-list-item-viewport").each(function(){var t=jQuery(this);t.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0});t.waypoint({handler:function(e){var a=t.attr("data-viewport"),i=parseInt(t.attr("data-delay"));setTimeout(function(){t.css({opacity:t.attr("data-opacity"),"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*t.attr("data-opacity")+')"',filter:"alpha(opacity="+100*t.attr("data-opacity")+")","-moz-opacity":t.attr("data-opacity"),"-khtml-opacity":t.attr("data-opacity")}),t.addClass(a),setTimeout(function(){t.removeAttr("data-viewport"),t.removeClass(a),t.removeClass("ts-list-item-viewport");try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},2e3)},i)},offset:"bottom-in-view",triggerOnce:!0})}),jQuery(document).on("mouseover mouseenter touchstart",".ts-list-item",function(){var t=jQuery(this),e=t.find("i"),a=t.attr("data-animation");""==a||e.hasClass(a)||e.addClass("ts-hover-css-triggered").addClass(a)}),jQuery(document).on("mouseout mouseleave touchend",".ts-list-item",function(){var t=jQuery(this),e=t.find("i"),a=t.attr("data-animation");""!=a&&e.removeClass("ts-hover-css-triggered").removeClass(a)}),jQuery(".ts-image-full-frame").each(function(){$image=jQuery(this),$image.hasClass("ts-image-full-movement")&&($allowX="true"==$image.attr("data-allowx"),$allowY="true"==$image.attr("data-allowy"),$moveX=parseInt($image.attr("data-movex")),$moveY=parseInt($image.attr("data-movey")),jQuery(this).find("img").attr("data-parallaxify-range-x",$moveX),jQuery(this).find("img").attr("data-parallaxify-range-y",$moveY),$image.parallaxify({horizontalParallax:$allowX,verticalParallax:$allowY,parallaxBackgrounds:!1,parallaxElements:!0,positionProperty:"transform",responsive:!1,useMouseMove:!0,useGyroscope:!0,alphaFilter:.9,motionType:"natural",mouseMotionType:"gaussian",inputPriority:"mouse",motionAngleX:80,motionAngleY:80,adjustBasePosition:!0,alphaPosition:.05}))}),0==TS_VCSC_MobileDevice&&jQuery(".ts-image-full-frame").each(function(){var t=jQuery(this).attr("data-marginleft"),e=jQuery(this).attr("data-marginright"),a=jQuery(this).attr("data-index");jQuery(this).css({"margin-left":parseInt(t)+"px","margin-right":parseInt(e)+"px","z-index":parseInt(a)})}),jQuery(".ts-slideshow-full-frame").each(function(){var t=jQuery(this),e=jQuery(this).find(".ts-background-slideshow-holder"),a=jQuery(this).find(".ts-background-slideshow-wrapper"),i=jQuery(this).attr("data-mobile"),r=jQuery(this).attr("data-halign"),s=jQuery(this).attr("data-valign"),n=parseInt(jQuery(this).attr("data-height")),o=[];e.each(function(){var t={};t.src=jQuery(this).attr("data-image"),t.width=parseInt(jQuery(this).attr("data-width")),t.height=parseInt(jQuery(this).attr("data-height")),t.ratio=jQuery(this).attr("data-ratio"),t.cover=!0,t.align=r,t.valign=s,jQuery(this).remove(),o.push(t)});var l="true"==jQuery(this).attr("data-inline"),d="true"==jQuery(this).attr("data-dynamic"),c="true"==jQuery(this).attr("data-autoplay"),u="true"==jQuery(this).attr("data-controls");1==TS_VCSC_MobileDevice&&"show"==i&&(d=!0,c=!1);var h=jQuery(this).attr("data-transition"),p=jQuery(this).attr("data-animation"),f="true"==jQuery(this).attr("data-bar"),m=parseInt(jQuery(this).attr("data-delay")),g=parseInt(jQuery(this).attr("data-switch")),y="true"==jQuery(this).attr("data-shuffle"),v=t.width();if(u)var w=jQuery(this).find(".nav-arrow-prev"),j=jQuery(this).find(".nav-arrow-next");else t.find(".nav-arrows").remove();if(c)var Q=jQuery(this).find(".nav-auto-play"),b=jQuery(this).find(".nav-auto-pause");else t.find(".nav-auto").remove();0==TS_VCSC_MobileDevice&&0==l&&!jQuery("body").hasClass("ts-body-background-image")||1==TS_VCSC_MobileDevice&&"show"==i?a.vegas({slides:o,preload:!1,preloadImage:!0,preloadVideo:!1,timer:f,overlay:!1,autoplay:c,delay:m,shuffle:y,cover:!0,color:null,align:r,valign:s,transition:h,transitionDuration:g,animation:"null"==p?null:p,animationDuration:"auto",init:function(e){u&&(w.on("click",function(){a.vegas("previous")}),j.on("click",function(){a.vegas("next")})),c&&(Q.on("click",function(){a.vegas("play"),t.attr("data-playing","true"),Q.hide(),b.show()}),b.on("click",function(){a.vegas("pause"),t.attr("data-playing","false"),b.hide(),Q.show()})),t.attr("data-initialized","true"),d?(v=t.width(),n=v/parseFloat(a.vegas("options","slides")[0].ratio),t.css({height:n+"px","max-height":n+"px"}).attr("data-height",n)):t.css({height:n+"px","max-height":n+"px"}).attr("data-height",n)},play:function(t,e){},walk:function(e,a){d&&(v=t.width(),n=v/a.ratio,t.css({height:n+"px","max-height":n+"px"}).attr("data-height",n))}}):1!=TS_VCSC_MobileDevice||"first"!=i&&"random"!=i?(1==TS_VCSC_MobileDevice&&"none"==i||0==l)&&t.remove():(a.remove(),t.find(".nav-arrows").remove(),t.find(".nav-auto").remove(),t.addClass("ts-image-full-frame").removeClass("ts-slideshow-full-frame").find("img.ts-imagefull").show(),t.parent().addClass("ts-image-full-container").removeClass("ts-slideshow-full-container"))}),jQuery(window).on("debouncedresize",function(t){jQuery(".ts-slideshow-full-frame").each(function(){var t=jQuery(this),e=jQuery(this).find(".ts-background-slideshow-wrapper"),a="true"==jQuery(this).attr("data-dynamic"),i="true"==jQuery(this).attr("data-inline"),r=jQuery(this).attr("data-mobile");if((0==TS_VCSC_MobileDevice&&0==i&&!jQuery("body").hasClass("ts-body-background-image")||1==TS_VCSC_MobileDevice&&"show"==r)&&"true"==t.attr("data-initialized")&&a){var s=t.width()/parseFloat(e.vegas("options","slides")[0].ratio);t.css({height:s+"px","max-height":s+"px"}).attr("data-height",s)}}),o()}),n(),o(),jQuery(".ts-icon-counter").each(function(){var t=jQuery(this),e=t.find(".ts-counter-value"),a="true"==e.attr("data-viewport"),i=e.attr("data-offset"),r=parseInt(e.attr("data-delay")),s=parseInt(e.attr("data-start")),n=parseInt(e.attr("data-end")),o=parseInt(e.attr("data-speed")),l=e.attr("data-before"),d=e.attr("data-after"),c="true"==e.attr("data-repeat"),h=(e.attr("data-format"),"true"==e.attr("data-plus")),p=e.attr("data-seperator"),f=e.attr("data-animation"),m=jQuery(this).find(".ts-font-icon");0==a?u(e,s,n,o,r,p,l,d,h,m,f):t.bind("inview",function(a,g,y,v){g?(t.addClass("ts-icon-counter-visible"),"top"==v?"top"==i&&(u(e,s,n,o,r,p,l,d,h,m,f),0==c&&t.unbind("inview")):"bottom"==v?"bottom"==i&&(u(e,s,n,o,r,p,l,d,h,m,f),0==c&&t.unbind("inview")):"full"==i&&(u(e,s,n,o,r,p,l,d,h,m,f),0==c&&t.unbind("inview"))):t.removeClass("ts-icon-counter-visible")})}),jQuery(".ts-circliful-counter").each(function(){var t=jQuery(this);t.TS_VCSC_Circliful({responsive:"true"==t.attr("data-responsive"),maxsize:parseInt(t.attr("data-maxsize")),dimensions:parseInt(t.attr("data-dimensions"))})}),jQuery(".ts-video-overlay-wrapper").each(function(){var t=jQuery(this),e="true"==t.attr("data-autoplay"),a=t.find(".ts-video-overlay"),i=t.find("iframe"),r=i.attr("src"),s=t.attr("data-trigger"),n=t.find(".ts-video-overlay-handle");"click"==s?a.on("click",function(){h(a,i,t,n,e,r)}):"hover"==s&&a.on("mouseenter touchstart",function(){h(a,i,t,n,e,r)})}),jQuery(".ts-qrcode-parent").each(function(){var t=jQuery(this).attr("data-render"),e=jQuery(this).attr("data-responsive"),a=jQuery(this).attr("data-size"),i=jQuery(this).attr("data-min"),r=jQuery(this).attr("data-max"),s=jQuery(this).attr("data-qrcode"),n=jQuery(this).attr("data-color");if("true"==e){var o=jQuery(this).width()*a/100;a=o<i?i:o>r?r:o}else a=a;jQuery(this).qrcode({render:t,size:a,width:a,height:a,fill:n,fontcolor:n,text:s})}),jQuery(window).on("debouncedresize",function(t){jQuery(".ts-qrcode-parent.responsive").each(function(){jQuery(this).empty();var t=jQuery(this).attr("data-render"),e=jQuery(this).attr("data-responsive"),a=jQuery(this).attr("data-size"),i=jQuery(this).attr("data-min"),r=jQuery(this).attr("data-max"),s=jQuery(this).attr("data-qrcode"),n=jQuery(this).attr("data-color");if("true"==e){var o=jQuery(this).width()*a/100;a=o<i?i:o>r?r:o}else a=a;jQuery(this).qrcode({render:t,size:a,width:a,height:a,fill:n,fontcolor:n,text:s})})}),jQuery(document).on("click","a.ts-to-top",function(){return jQuery("html, body").animate({scrollTop:0},500),!1}),jQuery(".ts-teampage-member-skills").find(".ts-skillbars-style1-value").css("width","0%").css("opacity","0"),jQuery(".ts-teampage-member-skills").find(".ts-skillbars-style1-tooltip").css("opacity","0"),jQuery(".ts-teampage-member-skills").each(function(){jQuery(this).bind("inview",function(t,e,a,i){if(e){jQuery(this);"top"==i||"bottom"==i||jQuery(this).find(".ts-skillbars-style1-value").each(function(){var t=0,e=jQuery(this),a=e.attr("data-level"),i=e.width();if(e.css("opacity","1"),e.find(".ts-skillbars-style1-tooltip").css("opacity","1"),0==i){a=a.substring(0,a.length-1);var r=function(){if(t>=a||t>=100)return jQuery(this).unbind("inview"),!1;(t+=1)>a?t=a:t>100&&(t=100),e.css("width",t+"%"),setTimeout(r,2)};r()}else jQuery(this).unbind("inview")})}else jQuery(this)})}),jQuery(".ts-teammate-member-skills").find(".ts-skillbars-style1-value").css("width","0%").css("opacity","0"),jQuery(".ts-teammate-member-skills").find(".ts-skillbars-style1-tooltip").css("opacity","0"),jQuery(".ts-teammate-member-skills").each(function(){jQuery(this).bind("inview",function(t,e,a,i){if(e){jQuery(this);"top"==i||"bottom"==i||jQuery(this).find(".ts-skillbars-style1-value").each(function(){var t=0,e=jQuery(this),a=e.attr("data-level"),i=e.width();if(e.css("opacity","1"),e.find(".ts-skillbars-style1-tooltip").css("opacity","1"),0==i){a=a.substring(0,a.length-1);var r=function(){if(t>=a||t>=100)return jQuery(this).unbind("inview"),!1;(t+=1)>a?t=a:t>100&&(t=100),e.css("width",t+"%"),setTimeout(r,2)};r()}else jQuery(this).unbind("inview")})}else jQuery(this)})}),jQuery(".ts-post-skills").find(".ts-skillbars-style1-value").css("width","0%").css("opacity","0"),jQuery(".ts-post-skills").find(".ts-skillbars-style2-skillbar").css("width","0%").css("opacity","0"),jQuery(".ts-post-skills").find(".ts-skillbars-style3-countbar").css("width","0%").css("opacity","0"),jQuery(".ts-post-skills").find(".ts-skillbars-style1-tooltip").css("opacity","0"),jQuery(".ts-post-skills").find(".ts-skillbars-style2-tooltip").css("opacity","0"),jQuery(".ts-post-skills").find(".ts-skillbars-style3-tooltip").css("opacity","0"),jQuery(".ts-skillbars-style2-wrapper").each(function(){$full_width=jQuery(this).width(),$title_width=jQuery(this).find(".ts-skillbars-style2-title").width(),jQuery(this).find(".ts-skillbars-style2-area").css("margin-left",$title_width+"px").width($full_width-$title_width)}),jQuery(window).on("debouncedresize",function(t){jQuery(".ts-skillbars-style2-wrapper").each(function(){$full_width=jQuery(this).width(),$title_width=jQuery(this).find(".ts-skillbars-style2-title").width(),jQuery(this).find(".ts-skillbars-style2-area").css("margin-left",$title_width+"px").width($full_width-$title_width)})}),jQuery(".ts-post-skills").each(function(){jQuery(this).bind("inview",function(t,e,a,i){if(e){jQuery(this);"top"==i||"bottom"==i||(jQuery(this).find(".ts-skillbars-style1-value").each(function(){var t=0,e=jQuery(this),a=parseInt(e.attr("data-level")),i=e.width();if(e.css("opacity","1"),e.find(".ts-skillbars-style1-tooltip").css("opacity","1"),0==i){var r=function(){if(t>=a||t>=100)return jQuery(this).unbind("inview"),!1;(t+=1)>a?t=a:t>100&&(t=100),e.css("width",t+"%"),setTimeout(r,2)};r()}else jQuery(this).unbind("inview")}),jQuery(this).find(".ts-skillbars-style2-skillbar").each(function(){var t=0,e=jQuery(this),a=parseInt(e.attr("data-level")),i=e.width();if(e.css("opacity","1"),e.find(".ts-skillbars-style2-tooltip").css("opacity","1"),0==i){var r=function(){if(t>=a||t>=100)return jQuery(this).unbind("inview"),!1;(t+=1)>a?t=a:t>100&&(t=100),e.css("width",t+"%"),setTimeout(r,2)};r()}else jQuery(this).unbind("inview")}),jQuery(this).find(".ts-skillbars-style3-countbar").each(function(){var t=0,e=jQuery(this),a=parseInt(e.attr("data-level")),i=e.width();if(e.css("opacity","0.75"),e.find(".ts-skillbars-style3-tooltip").css("opacity","1"),0==i){var r=function(){if(t>=a||t>=100)return jQuery(this).unbind("inview"),!1;(t+=1)>a?t=a:t>100&&(t=100),e.css("width",t+"%"),setTimeout(r,2)};r()}else jQuery(this).unbind("inview")}))}else jQuery(this)})}),jQuery(".ts-animation-container-enabled").each(function(){0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&"true"==jQuery(this).attr("data-mobile")?jQuery(this).css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0}):jQuery(this).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1})}),void 0!==jQuery.fn.waypoint?jQuery(".ts-animation-container-viewport").each(function(){var t=jQuery(this).attr("data-offset"),e=jQuery(this);e.waypoint({handler:function(t){if(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&"true"==jQuery(this).attr("data-mobile")){var a=e.attr("data-animation"),i=parseInt(e.attr("data-delay")),r=parseInt(e.attr("data-duration")),s=parseInt(e.attr("data-repeat")),n=e.attr("data-infinite"),o=e.attr("data-once");setTimeout(function(){if(e.addClass(a).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),"false"==n)setTimeout(function(){if("true"==o){e.removeAttr("data-viewport"),e.removeClass(a),e.removeClass("ts-animation-frame").removeClass("ts-animation-container-viewport");try{e.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}}else e.removeClass(a)},r*s);else{try{e.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}}},i)}},offset:t,triggerOnce:!1})}):(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&"true"==jQuery(this).attr("data-mobile"))&&jQuery(".ts-animation-container-viewport").each(function(){jQuery(this).addClass("ts-animation-container-instant").removeClass("ts-animation-container-viewport")}),jQuery(".ts-animation-container-instant").each(function(){if(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&"true"==jQuery(this).attr("data-mobile")){var t=jQuery(this),e=t.attr("data-animation"),a=parseInt(t.attr("data-delay")),i=parseInt(t.attr("data-duration")),r=parseInt(t.attr("data-repeat")),s=t.attr("data-infinite");setTimeout(function(){t.addClass(e).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1}),"false"==s&&setTimeout(function(){t.removeAttr("data-viewport"),t.removeClass(e),t.removeClass("ts-animation-frame").removeClass("ts-animation-container-viewport")},i*r)},a)}}),jQuery(window).on("debouncedresize",function(t){jQuery(".ts-rating-stars-frame").each(function(){if("true"==jQuery(this).attr("data-auto")){var t=Math.floor(jQuery(this).width());if(0!=jQuery(this).find(".ts-rating-caption").length)var e=jQuery(this).find(".ts-rating-caption").outerWidth(!0),a=jQuery(this).find(".ts-rating-caption").find(".label").outerHeight(!0);else var e=0,a=0;var i=Math.floor(jQuery(this).outerWidth(!0)-e),r=(parseInt(jQuery(this).attr("data-rating")),parseInt(jQuery(this).attr("data-width"))),s=parseInt(jQuery(this).attr("data-size"));if(r<i){if(i-r>25)n=0;else n=25;i=r}else var n=25;if(0==e)if(r<t)o=s;else o=Math.floor((i-n)/5);else var o=Math.floor((i-n)/5);jQuery(this).find(".ts-star-rating").css({"font-size":o+"px","line-height":(o>a?o+5:a+5)+"px"}).attr("data-width",i).attr("data-caption",e),jQuery(this).find(".ts-star-rating-rtl").css({"font-size":o+"px","line-height":(o>a?o+5:a+5)+"px"}).attr("data-width",i).attr("data-caption",e)}})}),jQuery(".ts-font-icon-generator").css({opacity:jQuery(this).attr("data-opacity"),"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*jQuery(this).attr("data-opacity")+')"',filter:"alpha(opacity="+100*jQuery(this).attr("data-opacity")+")","-moz-opacity":jQuery(this).attr("data-opacity"),"-khtml-opacity":jQuery(this).attr("data-opacity")}),jQuery(document).on("mouseenter",".ts-font-icon-generator",function(){"true"==jQuery(this).attr("data-hover")&&jQuery(this).css({color:jQuery(this).attr("data-hovercolor"),background:jQuery(this).attr("data-hoverbackground"),opacity:jQuery(this).attr("data-hoveropacity"),"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*jQuery(this).attr("data-hoveropacity")+')"',filter:"alpha(opacity="+100*jQuery(this).attr("data-hoveropacity")+")","-moz-opacity":jQuery(this).attr("data-hoveropacity"),"-khtml-opacity":jQuery(this).attr("data-hoveropacity")})}),jQuery(document).on("mouseleave",".ts-font-icon-generator",function(){"true"==jQuery(this).attr("data-hover")&&jQuery(this).css({color:jQuery(this).attr("data-color"),background:jQuery(this).attr("data-background"),opacity:jQuery(this).attr("data-opacity"),"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*jQuery(this).attr("data-opacity")+')"',filter:"alpha(opacity="+100*jQuery(this).attr("data-opacity")+")","-moz-opacity":jQuery(this).attr("data-opacity"),"-khtml-opacity":jQuery(this).attr("data-opacity")})}),void 0!==jQuery.fn.waypoint?jQuery(".ts-font-icon-generator-viewport").each(function(){var t=jQuery(this);t.css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0});t.waypoint({handler:function(e){var a=t.attr("data-viewport"),i=parseInt(t.attr("data-delay"));setTimeout(function(){t.addClass(a).css({opacity:t.attr("data-opacity"),"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*t.attr("data-opacity")+')"',filter:"alpha(opacity="+100*t.attr("data-opacity")+")","-moz-opacity":t.attr("data-opacity"),"-khtml-opacity":t.attr("data-opacity")}),setTimeout(function(){t.removeAttr("data-viewport"),t.removeClass(a),t.removeClass("ts-font-icon-generator-viewport");try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},2e3)},i)},offset:"bottom-in-view",triggerOnce:!0})}):jQuery(".ts-font-icon-generator-viewport").each(function(){jQuery(this).css({opacity:1,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"',filter:"alpha(opacity=100)","-moz-opacity":1,"-khtml-opacity":1})}),jQuery(".ts-imagehover").each(function(){var t=jQuery(this),e=t.attr("data-closer");"ts-trigger-click"==t.attr("data-trigger")&&t.on("click",function(t){jQuery(this).hasClass("active")||(jQuery(this).toggleClass("active"),jQuery(this).find(".mask").show(),0!=jQuery(this).find(".badonkatrunc-wrapper").length&&jQuery(this).find(".badonkatrunc-wrapper").parent().badonkatrunc("refresh"))}),0!=e.length&&jQuery("body").on("click","#"+e,function(e){jQuery("#"+jQuery(this).attr("data-mask")).toggleClass("active"),t.find(".mask").hide()})}),jQuery(".ts-posts-timeline-view").each(function(){var t=jQuery(this),e=t.parent(),a=t.attr("data-lazy"),i=t.attr("data-ajax"),r=t.attr("data-order"),s=t.attr("data-sort"),n=parseInt(t.attr("data-column")),o=(t.attr("data-type"),i),l=i,d=t.attr("data-trigger"),c=(t.find(".ts-isotope-posts-grid-controls"),t.find(".ts-timeline-controls-asc")),u=t.find(".ts-timeline-controls-desc"),h=t.find("ul.ts-timeline-list"),p=t.find("ul.ts-timeline-list").attr("id"),f=t.find("li.ts-timeline-list-item"),m=t.find("li.ts-timeline-break"),g=(f.find(".ts-timeline-date"),parseInt(f.length)),y=0,v="",w=t.find(".ts-timeline-load-more"),j=parseInt(t.attr("data-break")),Q=t.find(".ts-timeline-spine").attr("id"),b=t.attr("data-layout"),C=t.attr("data-layout");if("desc"==r)I=!1;else var I=!0;c.on("click",function(){jQuery(this).hasClass("active")||(jQuery(this).toggleClass("active"),u.toggleClass("active"),I=!I,m.each(function(){jQuery(this).attr("data-date",jQuery(this).attr("data-start"))}),x())}),u.on("click",function(){jQuery(this).hasClass("active")||(jQuery(this).toggleClass("active"),c.toggleClass("active"),I=!I,m.each(function(){jQuery(this).attr("data-date",jQuery(this).attr("data-end"))}),S())}),"postDate"==s?sortAttribute="data-date":"postModified"==s?sortAttribute="data-modified":"postName"==s?sortAttribute="data-title":"postAuthor"==s?sortAttribute="data-author":"postComments"==s?sortAttribute="data-comments":"postID"==s?sortAttribute="data-id":"postRating"==s?sortAttribute="data-rating":"postPrice"==s&&(sortAttribute="data-price"),jQuery("ul#"+p+">li").tsort({order:r,attr:sortAttribute}),f.each(function(){y++,jQuery(this).addClass("ts-timeline-order-"+r).attr("data-order",r).attr("data-number",y)}),"true"==a?(t.find("li.ts-timeline-list-item:lt("+o+")").addClass("ts-timeline-visible").attr("data-visible","true").fadeIn(),t.find('li[data-visible*="false"]').removeClass("ts-timeline-visible").hide(),w.on("click",function(){_()})):f.fadeIn().attr("data-visible","true").addClass("ts-timeline-visible"),"true"==a&&"scroll"==d&&w.bind("inview",function(t,e,a,i){e?(w.addClass("ts-loadmore-visible"),_()):w.removeClass("ts-loadmore-visible")});var x=function(){t.alterClass("ts-timeline-*","ts-timeline-asc"),f.alterClass("ts-timeline-order-*","ts-timeline-order-asc").attr("data-order","asc"),setTimeout(function(){k()},100)},S=function(){t.alterClass("ts-timeline-*","ts-timeline-desc"),f.alterClass("ts-timeline-order-*","ts-timeline-order-desc").attr("data-order","desc"),setTimeout(function(){k()},100)},_=function(){h=t.find("ul.ts-timeline-list"),show=0,f.each(function(){"true"==jQuery(this).attr("data-visible")&&show++}),show=parseInt(show)+parseInt(l),g>=parseInt(show)?(visible=0,(f=t.find("li.ts-timeline-list-item")).each(function(){visible++,visible<=parseInt(show)&&jQuery(this).attr("data-visible","true").addClass("ts-timeline-visible").fadeIn()}),t.find('li[data-visible*="false"]').removeClass("ts-timeline-visible").hide()):(f.fadeIn().addClass("ts-timeline-visible").attr("data-visible","true"),w.hide()),setTimeout(function(){h.isotope("reloadItems"),k(),h.isotope("reLayout")},750)},T=function(e){("spineTimeline"==b||"straightDown"==b)&&"postDate"==s?(m.addClass("ts-timeline-visible"),t.find('li[data-visible*="false"]').removeClass("ts-timeline-visible").hide()):m.removeClass("ts-timeline-visible").hide(),h.isotope({itemSelector:".ts-timeline-list-item.ts-timeline-visible",animationEngine:"best-available",itemPositionDataEnabled:!1,transformsEnabled:!0,resizesContainer:!0,sortAscending:e,getSortData:{postDate:function(t){return parseInt(t.attr("data-date"))},postModified:function(t){return parseInt(t.attr("data-modified"))},postName:function(t){return t.attr("data-title")},postAuthor:function(t){return t.attr("data-author")},postComments:function(t){return parseInt(t.attr("data-comments"))},postID:function(t){return parseInt(t.attr("data-id"))},postPrice:function(t){return parseInt(t.attr("data-price"))},postRatings:function(t){return parseInt(t.attr("data-rating"))}},sortBy:s,layoutMode:C,filter:v,spineTimeline:{gutterWidth:20,columnPadding:50,spineHolder:Q},onLayout:function(t,e){}},function(t){setTimeout(function(){"spineTimeline"==b?jQuery("#"+Q).height(h.height()):jQuery("span",jQuery("#"+Q)).remove()},750)})},k=function(){t.width(e.width()),h.width(e.width()),"spineTimeline"==b?("postDate"==s?m.addClass("ts-timeline-visible").show():m.removeClass("ts-timeline-visible").hide(),t.removeClass("ts-postsgrid").addClass("ts-timeline"),jQuery("#"+Q).show(),t.outerWidth()<=j?(C="masonry",b="spineTimeline",f.each(function(){jQuery(this).width("100%").removeClass("ts-timeline-layout-straightDown").removeClass("colA").removeClass("colB").removeClass("ts-timeline-layout-spine").addClass("ts-timeline-layout-masonry")}),jQuery("span",jQuery("#"+Q)).remove()):(C="spineTimeline",b="spineTimeline",f.each(function(){jQuery(this).width("50%").removeClass("ts-timeline-layout-straightDown").removeClass("ts-timeline-layout-masonry").addClass("ts-timeline-layout-spine")}))):("straightDown"==b?(t.removeClass("ts-postsgrid").addClass("ts-timeline"),jQuery("#"+Q).hide(),"postDate"==s?(m.addClass("ts-timeline-visible").show(),t.find('li[data-visible*="false"]').removeClass("ts-timeline-visible").hide()):m.removeClass("ts-timeline-visible").hide()):(t.removeClass("ts-timeline").addClass("ts-postsgrid"),jQuery("#"+Q).hide(),m.removeClass("ts-timeline-visible").hide()),f.each(function(){"straightDown"==b?(C="masonry",b="straightDown",jQuery(this).width("100%").addClass("ts-timeline-layout-straightDown").removeClass("colA").removeClass("colB").removeClass("ts-timeline-layout-spine").addClass("ts-timeline-layout-masonry")):jQuery(this).css("width",n).removeClass("ts-timeline-layout-straightDown")})),h.attr("data-layout",C),jQuery("#"+Q).alterClass("ts-posts-spine-layout-*","ts-posts-spine-layout-"+C),setTimeout(function(){h.hasClass("isotope")&&h.isotope("reloadItems"),T(I),h.hasClass("isotope")&&h.isotope("reLayout"),"spineTimeline"==b&&jQuery("#"+Q).height(h.height())},750)};jQuery(window).on("debouncedresize",function(t){k()}),t.find(".ts-isotope-posts-sort").change(function(){return s=jQuery(this).attr("data-sort"),k(I),!1}),t.find(".ts-isotope-posts-layout").change(function(){return t.width("100%"),b=jQuery(this).attr("data-layout"),C=jQuery(this).attr("data-layout"),T(I),k(),"spineTimeline"!=b&&"straightDown"!=b||setTimeout(function(){k()},100),!1}),t.find(".ts-isotope-posts-filter").change(function(){var e=t.find(".ts-isotope-posts-filter").length-1,a=0,i=jQuery(this).attr("data-type"),r=jQuery(this).attr("data-key"),s=t.find(".ts-isotope-posts-filter-all"),n=[];return"all"==i?(t.find(".ts-isotope-posts-filter").each(function(){jQuery(this).attr("data-key")==r&&"single"==jQuery(this).attr("data-type")&&jQuery(this).prop("checked",!1)}),n=jQuery(this).attr("data-filter")):(t.find(".ts-isotope-posts-filter").each(function(){jQuery(this).attr("data-key")==r&&"all"==jQuery(this).attr("data-type")&&jQuery(this).prop("checked",!1),jQuery(this).attr("data-key")==r&&jQuery(this).is(":checked")&&(a++,n.push(jQuery(this).attr("data-filter")))}),0==a?s.prop("checked",!0):a==e&&(s.prop("checked",!0),t.find(".ts-isotope-posts-filter").each(function(){jQuery(this).attr("data-key")==r&&"single"==jQuery(this).attr("data-type")&&jQuery(this).prop("checked",!1)})),n=n.join(", ")),v=n,h.isotope({filter:v}),!1})}),jQuery(".ts-newsticker-oneliner").each(function(){var t=jQuery(this).attr("id"),e=jQuery(this).hasClass("ts-newsticker-fixed"),a=jQuery(this).attr("data-parent"),i=jQuery(this).attr("data-header"),r=jQuery(this).attr("data-direction"),s=jQuery(this).attr("data-ticker"),n=parseInt(jQuery(this).attr("data-break")),o=jQuery(this).attr("data-navigation"),l=jQuery(this).attr("data-controls"),d=jQuery(this).attr("data-auto"),c=parseInt(jQuery(this).attr("data-speed")),u=jQuery(this).attr("data-hover"),h=jQuery(this).attr("data-next"),p=jQuery(this).attr("data-prev"),f=jQuery(this).attr("data-stop"),m=jQuery(this).attr("data-play");jQuery(this).find(".newsticker").newsTicker({row_height:44,max_rows:1,speed:500,duration:c,direction:r,autostart:"true"==d,pauseOnHover:"true"==u,nextButton:jQuery("#"+h),prevButton:jQuery("#"+p),stopButton:jQuery("#"+f),startButton:jQuery("#"+m)});jQuery("#"+f).on("click",function(t){jQuery("#"+f).hide(),jQuery("#"+m).show()}),jQuery("#"+m).on("click",function(t){jQuery("#"+m).hide(),jQuery("#"+f).show()}),jQuery(window).on("debouncedresize",function(r){if("true"==o)d=jQuery("#"+l).width()+10;else var d=0;1==e?jQuery("#"+t).width()<n?(jQuery("#"+t).addClass("breakline"),jQuery("#"+s).css("width","100%")):(jQuery("#"+t).removeClass("breakline"),setTimeout(function(){var e=jQuery("#"+i).width(),a=jQuery("#"+t).width()-d-e-10;jQuery("#"+s).css("width",a+"px")},500)):jQuery("#"+a).width()<n?(jQuery("#"+t).addClass("breakline"),jQuery("#"+s).css("width","100%")):(jQuery("#"+t).removeClass("breakline"),setTimeout(function(){var t=jQuery("#"+i).width(),e=jQuery("#"+a).width()-d-t-10;jQuery("#"+s).css("width",e+"px")},500))})}),jQuery(".ts_html5_video_hide").each(function(){1==TS_VCSC_MobileDevice&&"true"==jQuery(this).attr("data-show")&&jQuery(this).attr("data-show","false")}),jQuery("body").on("click",".ts_html5_video_remove",function(t){t.preventDefault();var e=jQuery(this).attr("data-player");jQuery("#"+e).remove(),jQuery(this).off().remove()}),jQuery("body").on("click",".ts_html5_video_hide",function(t){t.preventDefault();var e=jQuery(this).attr("data-player"),a=jQuery(this).attr("data-position"),i=jQuery(this).attr("data-width");jQuery(this).hasClass("active")?(jQuery(this).removeClass("active").addClass("inactive"),"topleft"==a||"bottomleft"==a?(jQuery("#"+e).animate({left:0},250,function(){}),jQuery(this).animate({left:parseInt(i)+2},250,function(){})):"topright"!=a&&"bottomright"!=a||(jQuery("#"+e).animate({right:0},250,function(){}),jQuery(this).animate({right:parseInt(i)+2},250,function(){}))):(jQuery(this).removeClass("inactive").addClass("active"),"topleft"==a||"bottomleft"==a?(jQuery("#"+e).animate({left:-(parseInt(i)+2)},250,function(){}),jQuery(this).animate({left:0},250,function(){})):"topright"!=a&&"bottomright"!=a||(jQuery("#"+e).animate({right:-(parseInt(i)+2)},250,function(){}),jQuery(this).animate({right:0},250,function(){})),jQuery("#"+e).find("iframe").contents().find(".pppause").click())}),jQuery(".ts_html5_audio_hide").each(function(){1==TS_VCSC_MobileDevice&&"true"==jQuery(this).attr("data-show")&&jQuery(this).attr("data-show","false")}),jQuery("body").on("click",".ts_html5_audio_remove",function(t){t.preventDefault();var e=jQuery(this).attr("data-player"),a=jQuery(this).attr("data-info"),i=jQuery(this).attr("data-controls");jQuery("#"+e).remove(),jQuery("#"+a).off(),jQuery(this).off(),jQuery("#"+i).remove()}),jQuery("body").on("click",".ts_html5_audio_hide",function(t){t.preventDefault();var e=jQuery(this).attr("data-controls"),a=jQuery(this).attr("data-player"),i=jQuery(this).attr("data-position"),r=jQuery(this).attr("data-width"),s=jQuery(this).attr("data-info");jQuery(this).hasClass("active")?(jQuery(this).removeClass("active").addClass("inactive"),"topleft"==i||"bottomleft"==i?(jQuery("#"+a).animate({left:0},250,function(){}),jQuery("#"+s).show(),jQuery("#"+e).animate({left:parseInt(r)+2},250,function(){})):"topright"!=i&&"bottomright"!=i||(jQuery("#"+a).animate({right:0},250,function(){}),jQuery("#"+s).show(),jQuery("#"+e).animate({right:parseInt(r)+2},250,function(){}))):(jQuery(this).removeClass("inactive").addClass("active"),"topleft"==i||"bottomleft"==i?(jQuery("#"+a).animate({left:-(parseInt(r)+2)},250,function(){}),jQuery("#"+s).hide(),jQuery("#"+e).animate({left:0},250,function(){})):"topright"!=i&&"bottomright"!=i||(jQuery("#"+a).animate({right:-(parseInt(r)+2)},250,function(){}),jQuery("#"+s).hide(),jQuery("#"+e).animate({right:0},250,function(){})))}),jQuery(".ts-ipresenter-container").each(function(){var t=jQuery(this),e=t.find(".ts-ipresenter-main"),a="true"==t.attr("data-autoheight"),i="true"==t.attr("data-fixedheight"),r="true"==t.attr("data-allow3d"),s=parseInt(t.attr("data-setheight")),n=parseInt(t.attr("data-animationspeed")),o="true"==t.attr("data-randomstart"),l="true"==t.attr("data-zoomeffect"),d="true"==t.attr("data-autoplay"),c="true"==t.attr("data-viewport"),u="true"==t.attr("data-mobile");1==TS_VCSC_MobileDevice&&0==u&&(d=!1);var h="true"==t.attr("data-replay"),p="true"==t.attr("data-pauseonhover"),f=parseInt(t.attr("data-pausetime")),m=t.attr("data-timer"),g=t.attr("data-timerposition"),y=parseInt(t.attr("data-timerdiameter")),v=t.attr("data-timerbackground"),w=t.attr("data-timercolor"),j=parseInt(t.attr("data-timeropacity"))/100,Q="true"==t.attr("data-directionnav"),b="true"==t.attr("data-controlnav"),C="true"==t.attr("data-controlnavthumbs"),I="true"==t.attr("data-controlnavtooltip"),x="true"==t.attr("data-keyboardnav"),S="true"==t.attr("data-touchnav");e.TS_VCSC_iPresenter({autoHeight:a,fixedHeight:i,height:s,easing:"ease-in-out",animSpeed:n,itemsOpacity:.4,nextLabel:"Next",previousLabel:"Previous",playLabel:"Play",pauseLabel:"Pause",randomStart:o,startStep:1,allow3D:r,zoomEffect:l,autoPlay:d,playViewport:c,replay:h,pauseOnHover:p,pauseTime:f,timer:m,timerPosition:g,timerDiameter:y,timerBg:v,timerColor:w,timerOpacity:j,timerPadding:4,timerStroke:4,timerBarStroke:1,timerBarStrokeColor:v,timerBarStrokeStyle:"solid",timerBarStrokeRadius:4,directionNav:Q,directionNavHoverOpacity:.6,controlNav:b,controlNavNextPrev:!1,controlNavHoverOpacity:.6,controlNavThumbs:C,controlNavTooltip:I,keyboardNav:x,touchNav:S,onPlay:function(){},onPause:function(){},onAfterLoad:function(){},onBeforeChange:function(){},onAfterChange:function(){},onSlideshowEnd:function(){},onLastStep:function(){}})}),jQuery(".ts-iframe-container-auto").each(function(){var t=jQuery(this),e=t.attr("data-height-type"),a=t.attr("data-height-adjust"),i=parseInt(t.attr("data-height-interval")),r=parseInt(t.attr("data-height-offset")),s=parseInt(t.attr("data-height-minimum")),n=t.attr("data-height-overflow"),o=t.attr("data-height-measure"),l="true"==t.attr("data-height-position"),d=t.find("iframe"),c=d.attr("id");d.on("load",function(u){p(t,d,c,e,o,a,i,r,s,null,n,l),"resize"==a&&jQuery(window).on("debouncedresize",t,function(u){setTimeout(function(){p(t,d,c,e,o,a,i,r,s,null,n,l)},250)})})}),s(),n(),o(),l(),c(),d(),jQuery(".ts-video-container").length>0&&setTimeout(function(){r()},2500)}),jQuery(window).on("load",function(){function a(){jQuery(".flip-container-frame.auto").each(function(){jQuery(this).attr("data-trigger");var t=0;t+=parseInt(jQuery(this).find(".flip-container-flipper-front").find(".ts-flip-content").css("padding-top"));var e=t+=parseInt(jQuery(this).find(".flip-container-flipper-front").find(".ts-flip-content").css("padding-bottom"));jQuery(this).find(".flip-container-flipper-front").find(".ts-flip-content").children().each(function(t,a){e+=jQuery(a).outerHeight(!0)});var a=0;a+=parseInt(jQuery(this).find(".flip-container-flipper-back").find(".ts-flip-content").css("padding-top"));var i=a+=parseInt(jQuery(this).find(".flip-container-flipper-back").find(".ts-flip-content").css("padding-bottom"));jQuery(this).find(".flip-container-flipper-back").find(".ts-flip-content").children().each(function(t,e){i+=jQuery(e).outerHeight(!0)});var r=e>i?e:i;jQuery(this).css("height",r+"px"),jQuery(this).find(".flip-container-flipper-front").css("height",r+"px"),jQuery(this).find(".flip-container-flipper-back").css("height",r+"px")}),jQuery(".ts-flip-cube.auto").each(function(){jQuery(this).addClass("ts-flip-notransform").addClass("ts-flip-noperspective");jQuery(this).attr("data-trigger");var t=0;t+=parseInt(jQuery(this).find(".ts-front").find(".ts-flip-content").css("padding-top"));var e=t+=parseInt(jQuery(this).find(".ts-front").find(".ts-flip-content").css("padding-bottom")),a=jQuery(this).find(".ts-front").outerHeight()-jQuery(this).find(".ts-front").innerHeight();jQuery(this).find(".ts-front").find(".ts-flip-content").children().length;jQuery(this).find(".ts-front").find(".ts-flip-content").children().each(function(t,a){e+=jQuery(a).outerHeight(!0)});var i=0;i+=parseInt(jQuery(this).find(".ts-back").find(".ts-flip-content").css("padding-top"));var r=i+=parseInt(jQuery(this).find(".ts-back").find(".ts-flip-content").css("padding-bottom")),s=jQuery(this).find(".ts-back").outerHeight()-jQuery(this).find(".ts-back").innerHeight();jQuery(this).find(".ts-back").find(".ts-flip-content").children().length;jQuery(this).find(".ts-back").find(".ts-flip-content").children().each(function(t,e){r+=jQuery(e).outerHeight(!0)});var n=e>r?e:r,o=a>s?a:s;jQuery(this).css("height",n+o+"px"),jQuery(this).find(".ts-front").find(".ts-flip-content").css("height",n+"px"),jQuery(this).find(".ts-back").find(".ts-flip-content").css("height",n+"px"),jQuery(this).removeClass("ts-flip-notransform").removeClass("ts-flip-noperspective")}),jQuery(".ts-flip-cube.fixed").each(function(){jQuery(this).addClass("ts-flip-notransform").addClass("ts-flip-noperspective");var t=jQuery(this).attr("data-fixedtype"),e=jQuery(this).attr("data-fixedheight"),a=0,i=jQuery(this).find(".ts-front").outerHeight()-jQuery(this).find(".ts-front").innerHeight();jQuery(this).find(".ts-front").find(".ts-flip-content > *").length;jQuery(this).find(".ts-front").find(".ts-flip-content > *").each(function(t,e){a+=jQuery(e).outerHeight(!0)});var r=0,s=jQuery(this).find(".ts-back").outerHeight()-jQuery(this).find(".ts-back").innerHeight();jQuery(this).find(".ts-back").find(".ts-flip-content > *").length;jQuery(this).find(".ts-back").find(".ts-flip-content > *").each(function(t,e){r+=jQuery(e).outerHeight(!0)});var n=a>r?a:r,o=i>s?i:s;if("maximum"==t){l=n+o>e?e:n+o;jQuery(this).css("height",l+"px"),jQuery(this).find(".ts-front").find(".ts-flip-content").css("height",l-o+"px"),jQuery(this).find(".ts-back").find(".ts-flip-content").css("height",l-o+"px")}else if("minimum"==t){var l=n+o<e?e:n+o;jQuery(this).css("height",l+"px"),jQuery(this).find(".ts-front").find(".ts-flip-content").css("height",l-o+"px"),jQuery(this).find(".ts-back").find(".ts-flip-content").css("height",l-o+"px")}jQuery(this).removeClass("ts-flip-notransform").removeClass("ts-flip-noperspective")})}function u(t,e){for(var a=t.length;t[--a]>e;);return++a}function h(t,e){var a=t.width(),i=e.split(",");if(i.length>0){for(var r in i.sort(function(t,e){return t-e}))var s=u(i,a);return 0==s?1:s}return 1}function p(t,e,a){var i=t.width(),r=1,s=e.split(",");if(s.length>0)for(var n in s.sort(function(t,e){return t-e}))r=u(s,i);else r=1;return r>a?0==a?1:a:0==r?1:r}jQuery(".ts-projekktor-wrapper").each(function(){function e(){""!=C&&"logocontrol"==b&&(A=a.find(".pplogoimage").width()),M<=320+A?(a.find(".ppprev").hide(),a.find(".ppnext").hide(),a.find(".pptimeleft").hide()):(a.find(".ppprev").hide(),a.find(".ppnext").hide(),a.find(".pptimeleft").show())}var a=jQuery(this),i=a.parent(),r=a.attr("data-videoid"),s=(a.attr("data-videotheme"),a.attr("data-videoholder"),a.attr("data-videoposter")),n=a.attr("data-videoposterfit"),o=a.attr("data-videotitle"),l=a.attr("data-videoobjectfit"),d=a.attr("data-videoshare"),c=a.attr("data-videofallback"),u=a.attr("data-videoautoplay"),h=a.attr("data-videoautostop"),p=a.attr("data-videomobile"),f=a.attr("data-videorepeat"),m=a.attr("data-videofullscreen"),g=a.attr("data-videolightbox"),y=parseInt(a.attr("data-videovolume"))/100,v=(a.attr("data-videoscreensize"),a.attr("data-videomp4")),w=a.attr("data-videowebm"),j=a.attr("data-videoogg");if(""!=v&&""!=w&&""!=j)Q=[{0:{src:v,type:"video/mp4"},1:{src:j,type:"video/ogg"},2:{src:w,type:"video/webm"}}];else if(""!=v&&""!=w&&""==j)Q=[{0:{src:v,type:"video/mp4"},1:{src:w,type:"video/webm"}}];else if(""!=v&&""==w&&""!=j)Q=[{0:{src:v,type:"video/mp4"},1:{src:j,type:"video/ogg"}}];else if(""!=v&&""==w&&""==j)Q=[{0:{src:v,type:"video/mp4"}}];else var Q=[{}];var b=a.attr("data-logoshow"),C=a.attr("data-logoimage"),I=a.attr("data-logoheight"),x=parseInt(a.attr("data-logoopacity"))/100,S=a.attr("data-logoposition"),_=a.attr("data-logourl"),T=a.attr("data-logotitle"),k=a.attr("data-logotarget"),c=a.attr("data-videofallback"),M=i.width(),$=i.height(),D="false",V=(!navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/MSIE/),"false"),z=0,A=0,H=y,P=document.referrer;1==TS_VCSC_MobileDevice&&("false"==p&&(u="false"),y=1),projekktor("#"+r,{id:"'"+r+"'",platforms:["browser","android","ios","native","flash","vlc"],cookieExpiry:1,controls:!0,autoplay:!1,loop:"true"==f,title:o,volume:1,fixedVolume:!1,playerFlashMP4:c,playerFlashMP3:c,width:M,height:$,poster:s,iframe:!0,directEmbed:!0,enableFullscreen:"true"==m,forceFullViewport:!1,thereCanBeOnlyOne:!1,imageScaling:n,videoScaling:l,playlist:Q,playbackQuality:"SD",playbackQualities:[{key:"SD",minHeight:0,minWidth:0},{key:"HQ",minHeight:0,minWidth:0}],ratio:16/9,addplugins:[],plugin_logo:{image:C,logoClick:{callback:"openUrl",value:{url:_,target:k,pause:!0}}},plugin_share:{fadedelay:2e3,embed:{code:"",buttonText:"",headlineText:"",closeText:"",descText:""},links:{twitter:{buttonText:'<div class="Share_Twitter"></div>',text:o,code:"http://twitter.com/share?url="+P+"&text="+o},facebook:{buttonText:'<div class="Share_Facebook"></div>',text:o,code:"http://www.facebook.com/sharer.php?u="+P+"&t="+o},google:{buttonText:'<div class="Share_Google"></div>',text:o,code:"https://plus.google.com/share?url="+P},stumbleupon:{buttonText:'<div class="Share_StumbleUpon"></div>',text:o,code:"http://www.stumbleupon.com/submit?url="+P}}},plugin_postertitle:{html:o,autoHide:5,showOnMouseover:!1,showOnIdle:!0,showOnStarting:!0,showOnPaused:!0},plugin_controlbar:{showCuePoints:!1,logo:{src:C,title:T,callback:function(t,e){""!=_&&(t.setPause(),window.open(_,k))}}}},function(i){jQuery("#"+r).attr("data-player",i.getId()),jQuery("#"+r).removeClass("ts-projekktor-processing"),i.setVolume(y),1==TS_VCSC_MobileDevice&&(a.find(".ppcontrols").addClass("ppmobile"),a.find(".ppstart").addClass("ppmobile")),C&&(a.find("img.pplogo").addClass(S),"true"==d&&"bottomright"==S&&a.find("img.pplogo").addClass("shareactive"),""!=_&&a.find("img.pplogo").addClass("linked").attr("title",T),a.find("img.pplogo").css("max-height",I+"px"),a.find(".pplogo").css({"-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity="+100*x+")",filter:"alpha(opacity="+100*x+")",zoom:"1","-khtml-opacity":x,"-moz-opacity":x,opacity:x}),a.find(".pplogo").find("img").addClass("pplogoimage"),""==_&&a.find(".pplogo").find("img").css("cursor","default")),i.addListener("fullscreen",function(e){e?(z=a.offset(),z=z.top,V="true",jQuery("body, html").addClass("ts-composer-extensions-noscroll")):(V="false",0!=jQuery(".kraut-lb-main").length&&"none"==jQuery(".kraut-lb-main").css("display")?jQuery("body, html").removeClass("ts-composer-extensions-noscroll"):0==t(".kraut-lb-main").length&&jQuery("body, html").removeClass("ts-composer-extensions-noscroll"),jQuery("body, html").animate({scrollTop:z-100},250))}),i.addListener("state",function(t){if("PLAYING"==t&&(H=i.getVolume(),i.setVolume(1),i.setVolume(H),1==TS_VCSC_MobileDevice&&a.find(".ppcontrols").removeClass("ppmobile"),"true"==h)){i.getId();jQuery(".ts_html5_media_frame_insert").each(function(){if(jQuery(this).contents().find(".projekktor").hasClass("ppstateplaying")){var t=jQuery(this).contents().find(".projekktor");t.attr("data-player")!==r&&(t.find(".pppause").click(),t.find(".ppcontrols").removeClass("active").addClass("inactive"))}})}"COMPLETED"==t&&("true"==f&&i.setPlayPause(),setTimeout(function(){i.setVolume(y)},250))}),i.addListener("displayReady",function(t){}),i.addListener("plugin_controlbarShow",function(t){e(),H=i.getVolume(),i.setVolume(1),i.setVolume(H)}),jQuery(window).on("debouncedresize",function(a){e(),"true"==u&&"false"==D&&("true"==g?"block"==t(".kraut-lb-main").css("display")&&(D="true",i.setPlayPause()):(D="true",i.setPlayPause()))})})}),jQuery(".ts_html5_audio_hide").each(function(){"false"==jQuery(this).attr("data-show")&&jQuery(this).click()}),jQuery(".ts_html5_video_hide").each(function(){"false"==jQuery(this).attr("data-show")&&jQuery(this).click()}),jQuery(".ts-imagehover-truncate").each(function(){var t=jQuery(this),e=t.find(".maskcontent");jQuery(window).on("debouncedresize",function(a){e.css("height","auto");var i=t.find(".mask").height(),r=t.find(".ts-image-hover-title").outerHeight(!0),s=t.find(".ts-image-hover-button").outerHeight(!0);if(""!=e)var n=parseInt(e.css("paddingTop").replace("px",""))+parseInt(e.css("paddingBottom").replace("px","")),o=parseInt(e.css("marginTop").replace("px",""))+parseInt(e.css("marginBottom").replace("px",""));else var n=0,o=0;var l=i-r-s-n-o;0!=e.find(".badonkatrunc-wrapper").length&&e.badonkatrunc("destroy"),e.css("height",l+"px"),e.badonkatrunc({automaticSizeTracking:!1,fitDirection:"vertical",minimumFontSize:1,fontSizeSynced:!0,letterSpacingSynced:!0,truncate:!0,truncateOnlyWholeWords:!0}),setTimeout(function(){e.badonkatrunc("refresh"),e.height(e.find(".badonkatrunc-wrapper").outerHeight(!0))},100)})}),jQuery(".ts-logohover-truncate").each(function(){var t=jQuery(this),e=t.find(".logotitle");jQuery(window).on("debouncedresize",function(a){if(0!=e.length){e.css("height","auto");var i=t.find(".mask").height()-t.find(".maskcontent").outerHeight(!0)-(parseInt(e.css("paddingTop").replace("px",""))+parseInt(e.css("paddingBottom").replace("px","")))-(parseInt(e.css("marginTop").replace("px",""))+parseInt(e.css("marginBottom").replace("px","")));0!=e.find(".badonkatrunc-wrapper").length&&e.badonkatrunc("destroy"),e.css("height",i+"px"),e.badonkatrunc({automaticSizeTracking:!1,fitDirection:"horizontal",minimumFontSize:.75,maximumFontSize:1.75,fontSizeSynced:!0,letterSpacingSynced:!0,truncate:!0,truncateOnlyWholeWords:!1}),setTimeout(function(){e.badonkatrunc("refresh"),e.height("auto")},100)}})}),jQuery(window).on("debouncedresize",function(t){s(),n(),o(),l(),c(),d(),s(),n(),o(),l(),c(),d()}),void 0!==jQuery.fn.waypoint&&jQuery(".ts-dual-buttons-container-viewport, .ts-dual-buttons-link-viewport, .ts-dual-buttons-separator-viewport").each(function(){jQuery(this).css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0});var t=jQuery(this);t.waypoint({handler:function(e){t.attr("data-type");var a=t.attr("data-animation"),i=parseInt(t.attr("data-delay"));setTimeout(function(){t.css({opacity:t.attr("data-opacity"),"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*t.attr("data-opacity")+')"',filter:"alpha(opacity="+100*t.attr("data-opacity")+")","-moz-opacity":t.attr("data-opacity"),"-khtml-opacity":t.attr("data-opacity")}),t.addClass(a),setTimeout(function(){t.removeClass(a),t.removeClass("ts-dual-buttons-link-viewport");try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},2e3)},i)},offset:"bottom-in-view",triggerOnce:!0})}),void 0!==jQuery.fn.waypoint&&jQuery(".ts-vcsc-font-icon-viewport").each(function(){jQuery(this).css({opacity:0,"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"',filter:"alpha(opacity=0)","-moz-opacity":0,"-khtml-opacity":0});var t=jQuery(this);t.waypoint({handler:function(e){jQuery(this);var a=t.attr("data-type"),i=t.attr("data-viewport"),r=parseInt(t.attr("data-delay")),s=t.attr("data-animation"),n=t.attr("data-animation");setTimeout(function(){t.css({opacity:t.attr("data-opacity"),"-ms-filter":'"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*t.attr("data-opacity")+')"',filter:"alpha(opacity="+100*t.attr("data-opacity")+")","-moz-opacity":t.attr("data-opacity"),"-khtml-opacity":t.attr("data-opacity")}),"icon"==a?t.find("i").addClass(i).removeClass(s).removeClass(n):"image"==a&&t.find("img").addClass(i).removeClass(s).removeClass(n),setTimeout(function(){t.removeAttr("data-viewport"),"icon"==a?t.find("i").removeClass(i).addClass(n):"image"==a&&t.find("img").removeClass(i).addClass(n),t.removeClass("ts-vcsc-font-icon-viewport");try{t.waypoint("destroy")}catch(t){}try{$this.destroy()}catch(t){}},2e3)},r)},offset:"bottom-in-view",triggerOnce:!0})}),jQuery(document).on("mouseover mouseenter touchstart",".ts-vcsc-font-icon",function(){var t=jQuery(this);if(t.hasAttr("data-type")){var e=t.attr("data-type");t.hasClass("ts-has-tooltipster-tooltip");if("icon"==e)a=t.find("i");else if("image"==e)var a=t.find("img");var i=t.attr("data-animation"),r=t.attr("data-active");""==i||a.hasClass(i)||a.addClass("ts-hover-css-triggered").removeClass(r).addClass(i)}}),jQuery(document).on("mouseout mouseleave touchend",".ts-vcsc-font-icon",function(){var t=jQuery(this);if(t.hasAttr("data-type")){var e=t.attr("data-type");t.hasClass("ts-has-tooltipster-tooltip");if("icon"==e)a=t.find("i");else if("image"==e)var a=t.find("img");var i=t.attr("data-animation"),r=t.attr("data-active");""!=i&&a.removeClass("ts-hover-css-triggered").removeClass(i).addClass(r)}}),a(),jQuery(window).on("debouncedresize",function(t){jQuery(".flip-container-frame.auto").each(function(){jQuery(this).height("100%"),jQuery(this).find(".flip-container-flipper-front").css("height","100%"),jQuery(this).find(".flip-container-flipper-back").css("height","100%")}),jQuery(".ts-flip-cube.auto").each(function(){jQuery(this).find(".ts-front").find(".ts-flip-content").css("height","100%"),jQuery(this).find(".ts-back").find(".ts-flip-content").css("height","100%"),jQuery(this).height("100%")}),a()}),TS_VCSC_Supports3D?(jQuery(".flip-container-frame").on("click mouseenter mouseleave touchstart touchend tap",function(t){var e=jQuery(this),a=e.attr("data-trigger");TS_VCSC_MobileDevice&&(a="click");var i=e.find(".ts-font-icon"),r=e.find(".ts-font-icon").attr("data-animation"),s=e.find(".flip-container-main").attr("data-speed");if("hover"==a)"mouseenter"===t.type||"touchstart"===t.type?i.removeClass(r):"mouseleave"!==t.type&&"touchend"!==t.type||window.setTimeout(function(){i.addClass(r)},parseInt(s));else if("click"==a){if(jQuery(t.target).is("a"))return;"click"!==t.type&&"tap"!==t.type||(e.hasClass("flip-container-frame-triggered")?(e.removeClass("flip-container-frame-triggered"),window.setTimeout(function(){i.addClass(r)},parseInt(s))):(i.removeClass(r),e.addClass("flip-container-frame-triggered")))}}),jQuery(".ts-flip-cube").on("click mouseenter mouseleave touchstart touchend tap",function(t){var e=jQuery(this),a=e.attr("data-trigger");if(TS_VCSC_MobileDevice&&(a="click"),"click"==a){if(jQuery(t.target).is("a"))return;"click"!==t.type&&"tap"!==t.type||(e.hasClass("ts-flip-cube-triggered")?e.removeClass("ts-flip-cube-triggered"):e.addClass("ts-flip-cube-triggered"))}})):(jQuery(".flip-container-frame").on("click mouseenter mouseleave touchstart touchend tap",function(t){var e=jQuery(this),a=e.attr("data-trigger");TS_VCSC_MobileDevice&&(a="click");var i=e.find(".ts-font-icon"),r=e.find(".ts-font-icon").attr("data-animation"),s=e.find(".flip-container-main").attr("data-speed"),n=e.find(".flip-container-flipper-front"),o=e.find(".flip-container-flipper-back");if("hover"==a)"mouseenter"===t.type||"touchstart"===t.type?(i.removeClass(r),n.fadeOut(s),o.fadeIn(s)):"mouseleave"!==t.type&&"touchend"!==t.type||(window.setTimeout(function(){i.addClass(r)},parseInt(s)),o.fadeOut(s),n.fadeIn(s));else if("click"==a){if(jQuery(t.target).is("a"))return;"click"!==t.type&&"touchstart"!==t.type||(e.hasClass("flip-container-frame-triggered")?(e.removeClass("flip-container-frame-triggered"),window.setTimeout(function(){i.addClass(r)},parseInt(s)),o.fadeOut(s),n.fadeIn(s)):(i.removeClass(r),n.fadeOut(s),o.fadeIn(s),e.addClass("flip-container-frame-triggered")))}}),jQuery(".ts-flip-cube").on("click mouseenter mouseleave touchstart touchend tap",function(t){var e=jQuery(this),a=e.attr("data-trigger");if(TS_VCSC_MobileDevice&&(a="click"),"click"==a){if(jQuery(t.target).is("a"))return;"click"!==t.type&&"tap"!==t.type||(e.hasClass("ts-flip-cube-triggered")?e.removeClass("ts-flip-cube-triggered"):e.addClass("ts-flip-cube-triggered"))}})),jQuery(".ts-owlslider-parent").each(function(){function t(){if(1==c&&1==u){e(),jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","0%"),S=!1,isRunning=!1;_=(new Date).setTime((new Date).getTime()+0);var t=(T=(new Date).setTime((new Date).getTime()+1e3*D))-_;q=setInterval(function(){if(!1===S){M>0&&(t=(T+=M)-(_+=M),M=0);var e=T-new Date,i=new Date-_,r=parseInt(e/864e5),s=parseInt((e-864e5*r)/36e5),n=parseInt((e-864e5*r-36e5*s)/6e4),l=(parseInt((e-864e5*r-6e4*n-36e5*s)/1e3),i>0?i/t*k:0);jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width",l+"%").attr("data-progress",l)}l>=100&&(a(),jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","100%"),jQuery("#ts-owlslider-controls-next-"+o).click())},k),K[X]=q,X++}}function e(){if(1==d){var t=jQuery("#"+n).find(".owl-stage").find(".active").length,e=jQuery("#"+n).find(".owl-stage .owl-item.active").first().height();if(1==t)i=e;else{var a=Math.max.apply(null,jQuery("#"+n).find(".owl-stage").find(".active").map(function(){return jQuery(this).height()}).get());if(a>e)i=a;else var i=e}jQuery("#"+n).find(".owl-stage-outer").height(i+5)}}function a(){if(null!=q){for(i=0;i<K.length;i++)void 0!=K[i]&&"undefined"!=K[i]&&clearInterval(K[i]);K=[],q=null}}if(jQuery(this).hasClass("ts-vcsc-anyslider"))r=!0;else var r=!1;if(jQuery(this).hasClass("ts-lightbox-gallery-slider"))s=!0;else var s=!1;var n=jQuery(this).attr("id"),o=jQuery(this).attr("data-id"),l=jQuery("#ts-owlslider-controls-"+o),d="true"==jQuery(this).attr("data-height"),c="true"==jQuery(this).attr("data-play"),u=jQuery(this).attr("data-bar"),h=parseInt(jQuery(this).attr("data-speed"));1==c&&("false"==u?(u=!1,c=!0):(u=!0,c=!0));var p="true"==jQuery(this).attr("data-hover"),f="true"==jQuery(this).attr("data-navigation"),m="true"==jQuery(this).attr("data-dots"),g="true"==jQuery(this).attr("data-hashlinks");if(g){var y=jQuery(this).attr("data-hashname");""==y?g=!1:jQuery(this).children().each(function(t){jQuery(this).attr("data-hash",y+t)})}var v="true"==jQuery(this).attr("data-loop"),w="true"==jQuery(this).attr("data-center"),j="true"==jQuery(this).attr("data-rtl"),Q="true"==jQuery(this).attr("data-mobile");if(0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&1==Q)var b=jQuery(this).attr("data-animationin"),C=jQuery(this).attr("data-animationout");else var b="",C="";jQuery(this).attr("data-color");var I=jQuery(this).attr("data-items");if(r)x=parseInt(jQuery(this).attr("data-margin"));else if(s)x=parseInt(jQuery(this).attr("data-margin"));else var x=10;var S,_,T,k,M,$=jQuery(this).parent(),D=parseInt(h)/1e3,V=!1,z=0;$total_pages=0,$isLastItem=!1,$isFirstItem=!0,$isFirstPage=!0,$isLastPage=!1;$current=$before=$after=$change=null;var A=c,H="true"==jQuery(this).attr("data-breakpointscustom"),P=jQuery(this).attr("data-breakpointitems");if(""!=P&&void 0!=P&&1==H?8!=(P=P.split(",")).length&&(H=!1):H=!1,H)var F=1==parseInt(I)?1:parseInt(I)>P[0]?P[0]:parseInt(I),O=1==parseInt(I)?1:parseInt(I)>P[1]?P[1]:parseInt(I),L=1==parseInt(I)?1:parseInt(I)>P[2]?P[2]:parseInt(I),W=1==parseInt(I)?1:parseInt(I)>P[3]?P[3]:parseInt(I),E=1==parseInt(I)?1:parseInt(I)>P[4]?P[4]:parseInt(I),N=1==parseInt(I)?1:parseInt(I)>P[5]?P[5]:parseInt(I),B=1==parseInt(I)?1:parseInt(I)>P[6]?P[6]:parseInt(I),R=1==parseInt(I)?1:parseInt(I)>P[7]?P[7]:parseInt(I);else var F=1,O=1==parseInt(I)?1:parseInt(I)>2?2:parseInt(I),L=1==parseInt(I)?1:parseInt(I)>3?3:parseInt(I),W=1==parseInt(I)?1:parseInt(I)>4?4:parseInt(I),E=1==parseInt(I)?1:parseInt(I)>5?5:parseInt(I),N=1==parseInt(I)?1:parseInt(I)>6?6:parseInt(I),B=1==parseInt(I)?1:parseInt(I)>7?7:parseInt(I),R=1==parseInt(I)?1:parseInt(I)>8?8:parseInt(I);"rtl"==jQuery("body").css("direction")&&0==j&&jQuery(this).css("direction","ltr");var q=null,X=0,K=[],U=jQuery(this).owlCarousel2({animateOut:C,animateIn:b,margin:x,smartSpeed:450,autoHeight:d,responsive:{0:{items:F},360:{items:O},720:{items:L},960:{items:W},1280:{items:E},1440:{items:N},1600:{items:B},1920:{items:R}},responsiveClass:!0,responsiveBaseElement:$,responsiveRefreshRate:250,items:parseInt(I),loop:v,center:w,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,stagePadding:0,startPosition:0,URLhashListener:g,rtl:j,nav:!1,navRewind:!0,navText:["<",">"],dots:m,dotsEach:!1,buttons:!1,autoplay:0==u&&c,autoplayTimeout:parseInt(h),autoplayHoverPause:p,onInitialized:function(a){z=a.item.count,$total_pages=a.page.count,_=(new Date).setTime((new Date).getTime()+0),T=(new Date).setTime((new Date).getTime()+1e3*D),k=100,jQuery("#ts-owlslider-progressbar-"+o).detach().prependTo(jQuery("#"+n)),l.length>0&&l.detach().prependTo(jQuery("#"+n)),m?jQuery("#"+n).find(".owl-dots").show():jQuery("#"+n).find(".owl-dots").hide(),window.setTimeout(function(){t(),jQuery(window).trigger("debouncedresize")},250),window.setTimeout(function(){U.trigger("refresh.owl.carousel"),e()},500)},onDrag:function(t){0==V&&(S=!0)},onDragged:function(e){0==V&&(S=!1,jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","0%"),t())}});1==c&&($play_start=jQuery("#ts-owlslider-controls-play-"+o),$play_start.on("click",function(t){if(jQuery(this).hasClass("active")){e=new Date;S=!0,A=!1,V=!0,M=0,jQuery(this).attr("data-mouseenterTime",e.getTime()),0==u&&U.trigger("stop.owl.autoplay"),jQuery(this).removeClass("active"),jQuery(this).find("span").alterClass("ts-ecommerce-*","ts-ecommerce-play")}else{var e=new Date;S=!1,A=!0,V=!1,M=e.getTime()-jQuery(this).attr("data-mouseenterTime"),1==u?jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","0%"):U.trigger("play.owl.autoplay"),jQuery(this).addClass("active"),jQuery(this).find("span").alterClass("ts-ecommerce-*","ts-ecommerce-pause");var a=0,i=jQuery("#"+n).find(".owl-stage").children(".owl-item").length;jQuery("#"+n).find(".owl-stage").children(".owl-item").each(function(){++a==i&&jQuery(this).hasClass("active")&&($isLastItem=!0,$isFirstItem=!1)}),(1==$isLastItem&&0==v&&0==u||jQuery("#"+n).find(".owl-stage .owl-item:last-child").hasClass("active")&&0==v&&0==u)&&U.trigger("to.owl.carousel",[0,0])}})),1!=f&&1!=c||($play_prev=jQuery("#ts-owlslider-controls-prev-"+o),$play_next=jQuery("#ts-owlslider-controls-next-"+o),$play_refresh=jQuery("#ts-owlslider-controls-refresh-"+o),$play_prev.on("click",function(t){1==c&&0==u&&U.trigger("stop.owl.autoplay"),1==u&&(S=!0,jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","100%"),a()),jQuery("#ts-owlslider-controls-play-"+o).addClass("active").find("span").alterClass("ts-ecommerce-*","ts-ecommerce-pause"),1==$isFirstItem&&0==v?1==w?U.trigger("to.owl.carousel",[z-1,0]):U.trigger("to.owl.carousel",[$total_pages-1,0]):U.trigger("prev.owl.carousel")}),$play_next.on("click",function(t){1==c&&0==u&&U.trigger("stop.owl.autoplay"),1==u&&(S=!0,jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","100%"),a()),jQuery("#ts-owlslider-controls-play-"+o).addClass("active").find("span").alterClass("ts-ecommerce-*","ts-ecommerce-pause"),1==$isLastItem&&0==v?U.trigger("to.owl.carousel",[0,0]):U.trigger("next.owl.carousel")}),$play_refresh.on("click",function(t){var e=document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)})),U.find(".owl-stage-outer").on("mouseenter mouseleave",function(t){if(1==c&&1==u&&1==p)if(0==V){var e=new Date;"mouseenter"===t.type||"touchstart"===t.type?(S=!0,M=0,jQuery(this).attr("data-mouseenterTime",e.getTime()),A=!1):"mouseleave"!==t.type&&"touchend"!==t.type||(S=!1,M=e.getTime()-jQuery(this).attr("data-mouseenterTime"),A=!0)}else S=!0,M=0,A=!1;else 1==c&&0==u&&1==p&&1==V&&(S=!0,M=0,A=!1)}),U.on("change.owl.carousel",function(t){if(t.namespace&&"position"==t.property.name){var e=t.relatedTarget;$current=t.item.index+1,z=t.item.count,$before=e.relative(e.normalize(e.current(),!1))+1,$after=e.relative(e.normalize(t.property.value,!1))+1,$change=!0,1==c&&1==u&&1==p||1==c&&1==u&&0==p?(1==u&&(jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","100%"),a()),0==A&&1==c&&0==V&&(A=!0),0==A&&1==c&&0==V&&(A=!0)):1==c&&0==u&&1==p&&(0==A&&1==c&&0==V&&(A=!0),0==A&&1==c&&0==V&&(A=!0))}}),U.on("changed.owl.carousel",function(t){t.namespace&&t.property.name}),U.on("resized.owl.carousel",function(t){window.setTimeout(function(){r&&(jQuery(window).trigger("debouncedresize"),e())},500)}),U.on("translated.owl.carousel",function(a){if(z=a.item.count,$total_pages=a.page.count,0==a.item.index?($isFirstItem=!0,$isFirstPage=!0):($isFirstItem=!1,0==a.page.index?$isFirstPage=!0:$isFirstPage=!1),0==v&&1==w||1==v&&1==w?a.item.index==z-1?($isLastItem=!0,$isLastPage=!0):($isLastItem=!1,a.page.index==$total_pages-1?$isLastPage=!0:$isLastPage=!1):(0==v&&0==w||1==v&&0==w)&&(a.page.index==a.page.count-1?($isLastItem=!0,$isLastPage=!0):($isLastItem=!1,a.page.index==$total_pages-1?$isLastPage=!0:$isLastPage=!1)),1==c&&1==u&&1==p)jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","0%"),M=0,window.setTimeout(function(){t()},0);else if(1==c&&1==u&&0==p)jQuery("#ts-owlslider-progressbar-"+o).children(".ts-owlslider-progressbar").css("width","0%"),M=0,window.setTimeout(function(){t()},0);else if(1==c&&0==u&&1==p){M=0,1==V&&0==u&&U.trigger("stop.owl.autoplay");jQuery("#"+n).find(".owl-stage").children(".owl-item").length;1==$isLastItem&&0==v&&0==V&&1==c&&window.setTimeout(function(){jQuery("#ts-owlslider-controls-next-"+o).click()},parseInt(h))}else if(1==c&&0==u&&0==p){jQuery("#"+n).find(".owl-stage").children(".owl-item").length;1==$isLastItem&&0==v&&0==V&&1==c&&window.setTimeout(function(){jQuery("#ts-owlslider-controls-next-"+o).click()},parseInt(h))}e()})}),jQuery(".ts-flexslider-container").each(function(){if(!jQuery(this).hasClass("ts-timeline-css-flexslider-container")){var t=jQuery(this),e=t.attr("data-id"),a="true"==t.attr("data-combo"),i=t.attr("data-main"),r=t.attr("data-thumbs"),s=jQuery("#"+i).attr("data-breaks"),n=jQuery("#"+r).attr("data-breaks"),o="true"==t.attr("data-frontend"),l=t.width(),d=t.attr("data-animation"),c="true"==t.attr("data-navigation"),u="true"==t.attr("data-scrollthumbs"),f="true"==t.attr("data-scrollsingle"),m="",g=0,y="true"==t.attr("data-rtl"),v="true"==t.attr("data-play"),w=v,j=parseInt(t.attr("data-speed")),Q="true"==t.attr("data-bar"),b="true"==t.attr("data-hover"),C=0,I=parseInt(t.attr("data-margin")),x=parseInt(t.attr("data-images"));if("fade"==d&&0==a&&(x=1),1==x&&0==a&&(I=0),t.hasClass("ts-anyslider-flexslider-container"))var S=".slides > div",_=!0;else var S=".slides > li",_=!1;var T,k,M,$,D,V,z,A,H,P="",F="",O=parseInt(j)/1e3,L=!1;if("rtl"==jQuery("body").css("direction")&&0==$page_rtl&&jQuery(this).css("direction","ltr"),jQuery("#"+i).find(".slides").on("mouseenter mouseleave",function(t){if(1==v&&1==Q&&1==b)if(0==L){var e=new Date;"mouseenter"===t.type||"touchstart"===t.type?($=!0,H=0,jQuery(this).attr("data-mouseenterTime",e.getTime()),w=!1):"mouseleave"!==t.type&&"touchend"!==t.type||($=!1,H=e.getTime()-jQuery(this).attr("data-mouseenterTime"),w=!0)}else $=!0,H=0,w=!1;else 1==v&&0==Q&&1==b&&1==L&&($=!0,H=0,w=!1)}),1==v){var W=jQuery("#ts-flexslider-controls-play-"+e);W.on("click",function(t){if(jQuery(this).hasClass("active")){a=new Date;$=!0,w=!1,L=!0,H=0,jQuery(this).attr("data-mouseenterTime",a.getTime()),0==Q&&P.stop(),jQuery(this).removeClass("active"),jQuery(this).find("span").alterClass("ts-ecommerce-*","ts-ecommerce-play"),1==v&&1==Q&&(jQuery("#ts-flexslider-progressbar-container-"+e).children(".ts-flexslider-progressbar").css("width","0%"),clearInterval(D),E(v,Q,e,V,z,O,D,A,$,w,H,k))}else{var a=new Date;$=!1,w=!0,L=!1,H=0,1==Q?jQuery("#ts-flexslider-progressbar-container-"+e).children(".ts-flexslider-progressbar").css("width","0%"):P.play(),jQuery(this).addClass("active"),jQuery(this).find("span").alterClass("ts-ecommerce-*","ts-ecommerce-pause"),1==v&&1==Q&&(clearInterval(D),E(v,Q,e,V,z,O,D,A,$,w,H,k))}})}o||1!=a||jQuery("#"+r).TS_VCSC_FlexSlider({animation:"slide",direction:"horizontal",controlNav:c,animationLoop:!0,reverse:!1,smoothHeight:!1,slideshow:!1,pauseOnAction:!1,pauseOnHover:!0,itemWidth:l/h(t,n)-I,itemMargin:I,startAt:0,minItems:h(t,n),maxItems:h(t,n),move:0,asNavFor:"#"+i,prevText:"",nextText:"",rtl:y,mousewheel:u,start:function(e){F=e,e.slides.removeClass("current");for(var a=0,i=h(t,n),s=0;s<i;s++)e.slides.eq(s).addClass("current"),e.slides.eq(s).height()>a&&(a=e.slides.eq(s).height());jQuery("#"+r).stop().animate({height:a},250)},before:function(e){var a=0,s=h(t,n);e.slides.removeClass("current");for(var o=0;o<s;o++)e.slides.eq(o+e.animatingTo*s).addClass("current"),e.slides.eq(o+e.animatingTo*s).height()>a&&(a=e.slides.eq(o+e.animatingTo*s).height());a!=jQuery("#"+i).height()&&jQuery("#"+r).stop().animate({height:a},300)},after:function(t){},end:function(t){},added:function(t){},removed:function(t){}});jQuery("#"+i).TS_VCSC_FlexSlider({animation:d,direction:"horizontal",selector:S,controlNav:1!=a&&c,animationLoop:1!=a,smoothHeight:!1,reverse:!1,slideshow:(1!=v||1!=Q)&&v,slideshowSpeed:j,animationSpeed:600,pauseOnAction:!1,pauseOnHover:(1!=v||1!=Q)&&b,pausePlay:!0,pauseText:"",playText:"",initDelay:0,itemWidth:1==a?0:l/p(t,s,x)-I,itemMargin:I,minItems:1==a?1:p(t,s,x),maxItems:1==a?0:p(t,s,x),move:1,startAt:0,prevText:"",nextText:"",sync:1==o||0==a?"":"#"+r,rtl:y,mousewheel:1!=a&&f,start:function(a){P=a,$isPlaying=a.playing,k=a.find(".flex-next"),M=a.find(".flex-prev"),jQuery("#ts-flexslider-controls-"+e).show(),v&&Q&&(V=(new Date).setTime((new Date).getTime()+0),z=(new Date).setTime((new Date).getTime()+1e3*O),E(v,Q,e,V,z,O,D,A=100,$=!1,w,H,k)),a.slides.removeClass("current"),c&&(m=P.find(".flex-control-paging"),g=m.height()+10),_&&1==p(t,s,x)&&a.slides.each(function(){y?jQuery(this).css("margin","0 "+I+"px 0 0"):jQuery(this).css("margin","0 0 0 "+I+"px")});for(var r=0,n=0;n<p(t,s,x);n++)a.slides.eq(n).addClass("current"),a.slides.eq(n).height()>r&&(r=a.slides.eq(n).height());jQuery("#"+i).stop().animate({height:r+g},250)},before:function(a){$isPlaying=a.playing,v&&Q&&(clearInterval(D),window.setTimeout(function(){E(v,Q,e,V,z,O,D,A,$,w,H,k)},600));var r=0;a.slides.removeClass("current");for(var n=0;n<p(t,s,x);n++)a.slides.eq(n+a.animatingTo).addClass("current"),a.slides.eq(n+a.animatingTo).height()>r&&(r=a.slides.eq(n+a.animatingTo).height());(r+=g)!=jQuery("#"+i).height()&&jQuery("#"+i).stop().animate({height:r},300)},after:function(t){$isPlaying=t.playing,C=t.currentSlide,T=t.count,0==w&&1==v&&0==L&&(w=!0),C==T-1?v&&w&&setTimeout(function(){jQuery("#"+i).data("flexslider").flexAnimate(0,!0),1==a&&jQuery("#"+r).data("flexslider").flexAnimate(0,!0),0==Q&&(P.stop(),P.play())},j):v&&w&&0==Q&&(P.stop(),P.play())},end:function(t){}}),jQuery(window).on("debouncedresize",function(e){if(l=t.width(),!o){if(1==a){var d=h(t,n),c=l/d-I;""!=F&&(F.vars.minItems=d,F.vars.maxItems=d,F.vars.itemWidth=c,F.setup())}else if(0==a){var d=p(t,s,x),c=l/d-I;""!=P&&(P.vars.minItems=d,P.vars.maxItems=d,P.vars.itemWidth=c)}""!=P&&P.setup(),setTimeout(function(){jQuery("#"+i).data("flexslider").flexAnimate(0,!0)},600),setTimeout(function(){var e=0;if(C=0,""!=P){P.slides.removeClass("current");for(l=0;l<p(t,s,x);l++)P.slides.eq(l+C).addClass("current"),P.slides.eq(l+C).height()>e&&(e=P.slides.eq(l+C).height());(e+=g)!=jQuery("#"+i).height()&&jQuery("#"+i).stop().animate({height:e},300),P.update()}if(1==a&&""!=F){e=0,F.slides.removeClass("current");for(var o=h(t,n),l=0;l<o;l++)F.slides.eq(l).addClass("current"),F.slides.eq(l).height()>e&&(e=F.slides.eq(l).height());e!=jQuery("#"+r).height()&&jQuery("#"+r).stop().animate({height:e},300),F.update(),jQuery("#"+r).find(".flex-control-nav").find("li:first").find("a").click()}else jQuery("#"+i).find(".flex-control-nav").find("li:first").find("a").click()},600)}});var E=function(){if(1==v&&1==Q){jQuery("#ts-flexslider-progressbar-container-"+e).children(".ts-flexslider-progressbar").css("width","0%"),isRunning=!1;V=(new Date).setTime((new Date).getTime()+0);var t=(z=(new Date).setTime((new Date).getTime()+1e3*O))-V;D=setInterval(function(){if(!1===$&&w){H>0&&(t=(z+=H)-(V+=H),H=0);var a=z-new Date,i=new Date-V,r=parseInt(a/864e5),s=parseInt((a-864e5*r)/36e5),n=parseInt((a-864e5*r-36e5*s)/6e4),o=(parseInt((a-864e5*r-6e4*n-36e5*s)/1e3),i>0?i/t*A:0);jQuery("#ts-flexslider-progressbar-container-"+e).children(".ts-flexslider-progressbar").css("width",o+"%").attr("data-progress",o)}o>=100&&(clearInterval(D),jQuery("#ts-flexslider-progressbar-container-"+e).children(".ts-flexslider-progressbar").css("width","100%"),k.click())},A)}};jQuery("#"+i).find(".kraut-lightbox-media").each(function(){jQuery(this).on("click",function(){Q&&v&&0==L?($=!0,w=!1,L=!0,jQuery("#ts-flexslider-progressbar-container-"+e).children(".ts-flexslider-progressbar").css("width","0%"),H=0,clearInterval(D),W.click()):0==Q&&v&&(P.stop(),W.click())})})}}),jQuery(".ts-slickslider-general-container").each(function(){var t=jQuery(this);if("true"==t.attr("data-frontendedit"))return!1;var e=t.attr("data-thumbnails"),a=(t.attr("data-identifier"),t.find(".ts-slickslider-general-slider")),i=parseInt(a.attr("data-spacing"))/2;if(t.hasClass("ts-vcsc-anyslider"))r=!0;else var r=!1;if(r&&a.children().each(function(t){jQuery(this).hasClass("ts-slickslider-general-wings")||jQuery(this).hasClass("ts-slickslider-general-autoplay")||jQuery(this).wrap('<div id="" class="ts-slickslider-section" style="margin: 0 '+i+'px;"></div>')}),"thumbsbottom"==e||"thumbstop"==e)var s=a.attr("data-asnavfor"),n=(o=t.find(".ts-slickslider-general-thumbs")).attr("data-asnavfor");else var s=null,o=null,n=null;var l=a.find(".ts-slickslider-section").length-1,d=a.attr("data-singlemode"),c="true"==a.attr("data-rtlmode"),u="true"==a.attr("data-autoplay"),h="true"==a.attr("data-bullets"),p="true"==a.attr("data-infinite"),f=parseInt(a.attr("data-interval")),m="true"==a.attr("data-centermode"),g=(a.attr("data-wingshow"),parseInt(a.attr("data-wingwidth"))),y=(parseInt(a.attr("data-wingminimum")),a.attr("data-scrollitems")),v=parseInt(a.attr("data-maxitems"));"singlenone"!=d&&(v=1);var w=parseInt(a.attr("data-initialitem"));w>l&&(w=l);var j=[],Q=a.attr("data-breakpoints");Q=Q.split(",");var b=[],C=1280,I=1;TS_VCSC_GetClosestEvenNumber(Math.ceil(C/100*g)),a.width();if(jQuery.each(Q,function(t,e){b=Q[t].split("/"),C=parseInt(b[0]),I=parseInt(b[1]),j.push({breakpoint:C,settings:{arrows:!0,centerMode:m,centerPadding:g+"%",slidesToShow:"singlenone"!=d?1:I>v?v:I,slidesToScroll:"single"==y||"singlenone"!=d?1:I>v?v:I}})}),a.on("init",function(t,e){}),a.slick({respondTo:"slider",rows:0,lazyLoad:"ondemand",asNavFor:null!=s?"#"+s:null,autoplay:u,autoplaySpeed:f,pauseOnHover:!0,pauseOnDotsHover:!0,pauseOnFocus:!0,dots:h,arrows:!0,initialSlide:w,fade:"singlefade"==d,centerMode:"visible"!=y&&"singlefade"!=d&&m,centerPadding:g+"%",infinite:p,slidesToShow:v,slidesToScroll:"single"==y||"singlenone"!=d?1:v,speed:500,adaptiveHeight:!0,variableWidth:!1,swipe:!0,swipeToSlide:"single"==y,touchMove:!0,focusOnSelect:null!=o&&""!=o,responsive:j,vertical:!1,verticalSwiping:!1,rtl:c}).promise().done(function(){}),a.on("lazyLoaded",function(t,e,a,i){}),a.on("afterChange",function(t,e,a){}),a.on("reInit",function(t,e){}),a.on("breakpoint",function(t,e,a){}),u){var x=t.find(".ts-slickslider-general-start"),S=t.find(".ts-slickslider-general-pause");x.on("click",function(t){x.hide(),S.show(),a.slick("slickPlay")}),S.on("click",function(t){S.hide(),x.show(),a.slick("slickPause")}),a.find(".ts-slickslider-section a").on("click",function(t){S.hide(),x.show(),a.slick("slickPause")}),a.find(".slick-dots li").on("click",function(t){S.hide(),x.show(),a.slick("slickPause")})}if(""!=o&&null!=o){o.attr("data-singlemode");var _=o.attr("data-thumbposition"),T="true"==o.attr("data-centermode"),k=(o.attr("data-wingshow"),parseInt(o.attr("data-wingwidth"))),M=(parseInt(o.attr("data-wingminimum")),"true"==o.attr("data-bullets")),$="true"==o.attr("data-infinite"),D=parseInt(o.attr("data-maxitems")),V=(parseInt(o.attr("data-spacing")),[]),z=o.attr("data-breakpoints");z=z.split(",");var A=[],H=1280,P=1;TS_VCSC_GetClosestEvenNumber(Math.ceil(H/100*k)),o.width();jQuery.each(z,function(t,e){A=z[t].split("/"),H=parseInt(A[0]),P=parseInt(A[1]),V.push({breakpoint:H,settings:{arrows:!0,centerMode:T,centerPadding:k+"%",slidesToShow:P>D?D:P,slidesToScroll:1}})}),o.on("init",function(t,e){}),o.slick({respondTo:"slider",rows:0,lazyLoad:"ondemand",asNavFor:"#"+n,slidesToShow:D,slidesToScroll:1,initialSlide:w,speed:250,dots:M,centerMode:T,centerPadding:k+"%",focusOnSelect:!0,infinite:$,swipeToSlide:!0,adaptiveHeight:!0,variableWidth:!1,responsive:V,rtl:c,pauseOnHover:!0,pauseOnDotsHover:!0,pauseOnFocus:!0}).promise().done(function(){}),o.on("lazyLoaded",function(t,e,a,i){}),o.on("afterChange",function(t,e,a){}),o.on("reInit",function(t,e){}),o.on("breakpoint",function(t,e,a){}),u&&"thumbsbottom"==_&&o.find(".slick-dots li").on("click",function(t){S.hide(),x.show(),a.slick("slickPause")})}}),jQuery(".ts-slit-slider-wrapper").each(function(){var t=jQuery(this),e=jQuery(this).find(".ts-slit-slider-slides"),a=jQuery(this).find(".ts-slit-slider-loader"),i="true"==t.attr("data-pageheight"),r=parseInt(t.attr("data-minimum"));if(1==TS_VCSC_DeviceDesktop)s=parseInt(t.attr("data-desktop"));else if(1==TS_VCSC_DeviceTablet)s=parseInt(t.attr("data-tablet"));else if(1==TS_VCSC_DevicePhone)var s=parseInt(t.attr("data-mobile"));var n=jQuery(window).height()-s;i&&t.css({height:n>r?n:r});var o="true"==t.attr("data-arrows"),l="true"==t.attr("data-dots"),d="true"==t.attr("data-keys"),c="true"==t.attr("data-touch"),u="true"==t.attr("data-play"),h="true"==t.attr("data-controls"),p=parseInt(t.attr("data-delay")),f="true"==t.attr("data-barprogress"),m="true"==t.attr("data-hover"),g=t.attr("data-barposition"),y=t.attr("data-barcolor"),v=parseInt(t.attr("data-barheight")),w=parseInt(t.attr("data-speed")),j="true"==t.attr("data-nicescroll"),Q=t.attr("data-scrollcolor"),b=t.attr("data-scrollborder"),C=t.find(".ts-slit-slide"),I=C.length,x=t.height(),S=0,_=null,T=null;if(l){var k="";C.each(function(t,e){k+=0==t?'<span class="nav-dot-current"></span>':"<span></span>"}),t.find(".nav-dots").append(k)}C.each(function(t,e){t>0&&jQuery(this).find(".ts-slit-slide-image").removeClass("ts-slit-slide-kenburns-main")});(function(){if(o)var M=t.find(".nav-arrows");if(l)var $=t.find(".nav-dots > span");if(u&&h)var D=t.find(".nav-auto");I<2&&(o&&M.hide(),l&&$.hide(),u&&h&&D.hide());var V=t.TS_VCSC_SlitSlider({speed:w,optOpacity:!0,translateFactor:230,maxAngle:90,maxScale:3,autoPlay:!(I<2)&&u,showProgress:f,progressColor:y,progressHeight:v,progressPosition:g,pauseHover:m,interval:p,keyboard:!(I<2)&&d,niceScroll:j,scrollColor:Q,scrollBorder:b,onBeforeChange:function(t,e){C.find(".ts-slit-slide-image").alterClass("ts-css-animation-*",""),k&&($.removeClass("nav-dot-current"),$.eq(e).addClass("nav-dot-current"))},onAfterChange:function(t,e){"true"==C.eq(e).attr("data-kenburns")&&C.eq(e).find(".ts-slit-slide-image").addClass(C.eq(e).attr("data-effect"))}}),z=function(){if(I>1){if(o&&(M.children(":last").on("click",function(){return V.next(),!1}),M.children(":first").on("click",function(){return V.previous(),!1})),u&&h&&(D.children(":last").on("click",function(){return V.pause(),D.children(":first").show(),D.children(":last").hide(),!1}),D.children(":first").on("click",function(){return V.play(),D.children(":last").show(),D.children(":first").hide(),!1})),k&&$.each(function(t){jQuery(this).on("click",function(e){var a=jQuery(this);return V.isActive()||($.removeClass("nav-dot-current"),a.addClass("nav-dot-current")),V.jump(t+1),!1})}),c&&I>1&&("ontouchstart"in document.documentElement||1==TS_VCSC_MobileDevice))if(1==$TS_VCSC_Hammer_ReleaseNew){l=document.getElementById(t.attr("id"));new Hammer(l,{prevent_default:!0}).on("swipeleft",function(t){return t.preventDefault(),V.next(),!1}).on("swiperight",function(t){return t.preventDefault(),V.previous(),!1})}else{var l;(l=new Hammer(t)).on("swipeleft",function(t){return V.next(),!1}).on("swiperight",function(t){return V.previous(),!1})}jQuery(window).on("debouncedresize",function(e){i&&(n=jQuery(window).height()-s,t.css({height:n>r?n:r}),V.resize()),C.each(function(e,a){x=t.height(),_=jQuery(this).find(".ts-slit-slide-title").actual("outerHeight",{includeMargin:!0}),T=jQuery(this).find(".ts-slit-slide-inner-message").actual("outerHeight",{includeMargin:!0}),$SlitSliderContentHeight=_+T,S=x-_-130,jQuery(this).find(".ts-slit-slide-inner-message").css({"max-height":S+"px"}),x>$SlitSliderContentHeight?jQuery(this).find(".ts-slit-slide-inner-center").addClass("ts-slit-slide-inner-enabled"):jQuery(this).find(".ts-slit-slide-inner-center").removeClass("ts-slit-slide-inner-enabled")})})}setTimeout(function(){a.remove(),e.show(),o&&I>1&&M.show(),u&&h&&I>1&&D.show()},500)};return{init:function(){z()}}})().init()}),jQuery(".ts-vcsc-anygrid-gridalicious").each(function(){var t=jQuery(this),e=jQuery(this).attr("data-content"),a=(parseInt(jQuery(this).attr("data-random")),parseInt(jQuery(this).attr("data-width"))),i=parseInt(jQuery(this).attr("data-gutter")),r="true"==jQuery(this).attr("data-first"),s="true"==jQuery(this).attr("data-animate"),n="true"==jQuery(this).attr("data-simple");jQuery("#"+e).children().each(function(t){jQuery(this).addClass("ts-anygrid-gridalicious-active").attr("data-grid-item",t)}).promise().done(function(){t.TS_VCSC_Gridalicious({selector:".ts-anygrid-gridalicious-active",content:e,width:a,gutter:i,first:r,animate:s,simple:n,animationOptions:{queue:!0,speed:200,duration:300,effect:"fadeInOnAppear",complete:function(){}}})})}),jQuery(".ts-lightbox-freewall-grid-container").each(function(){var e=jQuery(this),a=parseInt(e.attr("data-random")),i=parseInt(e.attr("data-width")),r=parseInt(e.attr("data-gutter")),s="true"==e.attr("data-gridfilter"),n=e.siblings(".ts-lightbox-gallery-freewall-preloader"),o=e.attr("data-gridshowall"),l=e.attr("data-gridtoggle"),d=e.attr("data-gridnogroups"),c=e.attr("data-gridavailable"),u=e.attr("data-gridselected"),h=e.width(),p=e.find(".ts-lightbox-freewall-item"),h=0;0!=n.length?e.hide():e.show();var f=[],m=0;if(p.each(function(){if(""!=jQuery(this).attr("data-groups")){jQuery(this).attr("data-groups").split(",").forEach(function(t){jQuery.inArray(t,f)<0&&f.push(t)})}else jQuery(this).attr("data-groups","NoGroups"),m++}),f.length>0&&s){f.sort();var g=jQuery(this).attr("data-gridtogglestyle"),y=jQuery(this).attr("data-gridshowallstyle"),v=jQuery('<div id="ts-freewall-grid-controls-frame-'+a+'" class="ts-freewall-grid-controls-frame">').insertBefore(jQuery(this)),w=(jQuery('<div id="ts-freewall-grid-controls-toggle-'+a+'" class="ts-freewall-grid-controls-toggle '+g+'" data-filter="ts-freewall-grid-controls-filter-'+a+'" data-showall="ts-freewall-grid-controls-showall-'+a+'" data-random="'+a+'">'+l+"</div>").appendTo(v),jQuery('<div id="ts-freewall-grid-controls-showall-'+a+'" class="ts-freewall-grid-controls-showall '+y+'" data-filter="ts-freewall-grid-controls-filter-'+a+'" data-random="'+a+'">'+o+"</div>").appendTo(v),jQuery('<select id="ts-freewall-grid-controls-filter-'+a+'" class="ts-freewall-grid-controls-filter" data-toggle="ts-freewall-grid-controls-toggle-'+a+'" data-showall="ts-freewall-grid-controls-showall-'+a+'" data-random="'+a+'" multiple="multiple"></select>').appendTo(v));f.forEach(function(t){jQuery('<option value="'+t+'">'+t+"</option>").appendTo(w)}),m>0&&jQuery('<option value="NoGroups">'+d+"</option>").appendTo(w)}var j=new freewall(e);j.reset({selector:".ts-lightbox-freewall-active",draggable:!1,animate:!0,cache:!1,cellW:function(t){return t>i?i:t},cellH:"auto",gutterX:r,gutterY:r,delay:0,rightToLeft:!1,bottomToTop:!1,onResize:function(t){h=t.width(),j.fitWidth()},onComplete:function(t){0!=n.length&&(n.hide(),e.show())}});if(e.find(".ts-lightbox-freewall-item").find("img").on("load",function(t){j.fitWidth(),0!=n.length&&(n.hide(),e.show())}),jQuery(window).on("debouncedresize",function(t){setTimeout(function(){j.fitWidth()},1250)}),f.length>0&&s){var Q=t("#ts-freewall-grid-controls-filter-"+a),b=t("#ts-freewall-grid-controls-toggle-"+a),C=t("#ts-freewall-grid-controls-showall-"+a);Q.multiSelect({selectableHeader:"<div class='ms-header-selectable'>"+c+"</div>",selectionHeader:"<div class='ms-header-selection'>"+u+"</div>",afterSelect:function(t){},afterDeselect:function(t){}}),Q.on("change",function(e){var a=t.trim(Q.val()),i=a.split(","),r=!1;""!=a?p.each(function(){$block=jQuery(this),groups=t.trim($block.attr("data-groups")),r=!1,i.forEach(function(t){(function(t,e){return new RegExp("\\b"+e+"\\b","i").test(t)})(groups,t)&&(r=!0),""==groups&&"NoGroups"==t&&(r=!0)}),r?$block.addClass("ts-lightbox-freewall-active").show().attr("data-showing","true"):$block.removeClass("ts-lightbox-freewall-active").hide().attr("data-showing","false")}).promise().done(function(){j.refresh()}):p.each(function(){$block=jQuery(this),$block.addClass("ts-lightbox-freewall-active").show().attr("data-showing","true")}).promise().done(function(){j.refresh()}),""!=i&&null!=i?C.show():C.hide()});var I=t("#ms-ts-freewall-grid-controls-filter-"+a);I.slideToggle(),C.hide(),b.on("click",function(t){I.slideToggle()}),C.on("click",function(t){Q.multiSelect("deselect_all"),p.addClass("ts-lightbox-freewall-active").show().attr("data-showing","true"),j.refresh()})}}),jQuery(".ts-timeline.ts-timeline-view").each(function(){function t(){show=i.find("li.ts-timeline-list-item.ts-timeline-visible").length+l,m>=show?jQuery(this).closest(".ts-timeline").find("li.ts-timeline-list-item:lt("+show+")").fadeIn().addClass("ts-timeline-visible"):(p.fadeIn().addClass("ts-timeline-visible"),"desc"==n&&y.fadeIn(),Q.hide()),setTimeout(function(){h.isotope("reloadItems"),e(),h.isotope("reLayout")},750)}function e(t){h.isotope({itemSelector:".ts-timeline-list-item.ts-timeline-visible",animationEngine:"best-available",itemPositionDataEnabled:!1,transformsEnabled:!0,resizesContainer:!0,sortAscending:t,getSortData:{eventOrder:function(t){return t.attr("data-order")}},sortBy:"eventOrder",layoutMode:layoutMode,spineTimeline:{gutterWidth:20,columnPadding:50,spineHolder:spineHolder},onLayout:function(t,e){}},function(t){setTimeout(function(){f.each(function(){if(jQuery(this).hasClass("ts-timeline-icon-half")){if(jQuery(this).next().hasClass("ts-timeline-text-wrap-inner")){t=(parseInt(jQuery(this).next().outerHeight(!0))-parseInt(jQuery(this).outerHeight(!0)))/2;jQuery(this).animate({top:t+"px"},500)}}else if(jQuery(this).prev().hasClass("ts-timeline-text-wrap-inner")){var t=(parseInt(jQuery(this).prev().outerHeight(!0))-parseInt(jQuery(this).outerHeight(!0)))/2;jQuery(this).animate({top:t+"px"},500)}}),jQuery("#"+spineHolder).height(h.height())},750)})}function a(){i.each(function(){$this=jQuery(this),$this.width("100%"),h.width("100%"),$this.outerWidth()<=b?(layoutMode="masonry",p.each(function(){jQuery(this).width("100%").removeClass("colA").removeClass("colB").removeClass("ts-timeline-layout-spine").addClass("ts-timeline-layout-masonry"),jQuery(this).hasClass("ts-timeline-full")?(jQuery(this).find(".ts-timeline-full-colA").addClass("no-columns"),jQuery(this).find(".ts-timeline-full-colB").addClass("no-columns")):jQuery(this).hasClass("ts-timeline-break")&&jQuery(this).removeClass("ts-timeline-layout-spine").removeClass("ts-timeline-layout-masonry")}),jQuery("span",jQuery("#"+spineHolder)).remove()):(layoutMode="spineTimeline",p.each(function(){jQuery(this).hasClass("ts-timeline-full")?(jQuery(this).width("100%").removeClass("ts-timeline-layout-masonry").addClass("ts-timeline-layout-spine"),jQuery(this).find(".ts-timeline-full-colA").removeClass("no-columns"),jQuery(this).find(".ts-timeline-full-colB").removeClass("no-columns")):jQuery(this).hasClass("ts-timeline-break")?jQuery(this).removeClass("ts-timeline-layout-spine").removeClass("ts-timeline-layout-masonry"):jQuery(this).width("50%").removeClass("ts-timeline-layout-masonry").addClass("ts-timeline-layout-spine")})),setTimeout(function(){h.hasClass("isotope")&&h.isotope("reloadItems"),e(C),h.isotope("reLayout"),f.each(function(){if(jQuery(this).hasClass("ts-timeline-icon-half")){if(jQuery(this).next().hasClass("ts-timeline-text-wrap-inner")){t=(parseInt(jQuery(this).next().outerHeight(!0))-parseInt(jQuery(this).outerHeight(!0)))/2;jQuery(this).animate({top:t+"px"},500)}}else if(jQuery(this).prev().hasClass("ts-timeline-text-wrap-inner")){var t=(parseInt(jQuery(this).prev().outerHeight(!0))-parseInt(jQuery(this).outerHeight(!0)))/2;jQuery(this).animate({top:t+"px"},500)}}),jQuery("#"+spineHolder).height(h.height())},750)})}var i=jQuery(this),r=i.attr("data-lazy"),s=i.attr("data-count"),n=i.attr("data-order"),o=s,l=s,d=i.attr("data-trigger"),c=i.find(".ts-timeline-css-controls-asc"),u=i.find(".ts-timeline-css-controls-desc"),h=i.find("ul.ts-timeline-list"),p=i.find("li.ts-timeline-list-item"),f=(p.find(".ts-timeline-date"),p.find(".ts-timeline-icon")),m=p.length,g=0,y=i.find(".ts-timeline-footer-wrap"),v=i.find(".ts-timeline-header-wrap"),w=i.find(".ts-timeline-begin-top"),j=i.find(".ts-timeline-begin-bottom"),Q=i.find(".ts-timeline-load-more"),b=parseInt(i.attr("data-break"));spineHolder=i.find(".ts-timeline-spine").attr("id"),layoutMode="spineTimeline","asc"==n?(j.fadeIn(),v.fadeIn()):w.fadeIn();var C=!0;c.on("click",function(){jQuery(this).hasClass("active")||(jQuery(this).toggleClass("active"),u.toggleClass("active"),C=!C,j.fadeIn(),v.fadeIn(),w.hide(),y.hide(),i.alterClass("ts-timeline-*","ts-timeline-asc"),p.alterClass("ts-timeline-order-*","ts-timeline-order-asc").attr("data-order","asc"),e(C))}),u.on("click",function(){jQuery(this).hasClass("active")||(jQuery(this).toggleClass("active"),c.toggleClass("active"),C=!C,j.hide(),v.hide(),w.fadeIn(),y.fadeIn(),i.alterClass("ts-timeline-*","ts-timeline-desc"),p.alterClass("ts-timeline-order-*","ts-timeline-order-desc").attr("data-order","desc"),e(C))}),p.each(function(){g++,jQuery(this).addClass("ts-timeline-order-"+n).attr("data-order",n).attr("data-number",g)}),"true"==r?(i.find("li.ts-timeline-list-item:lt("+o+")").addClass("ts-timeline-visible").fadeIn(),Q.on("click",t)):(p.fadeIn().addClass("ts-timeline-visible"),"desc"==n&&y.fadeIn()),"true"==r&&"scroll"==d&&Q.bind("inview",function(e,a,i,r){a?"top"==r||"bottom"==r||(Q.addClass("ts-loadmore-visible"),t()):Q.removeClass("ts-loadmore-visible")}),e(C),a(),jQuery(window).on("debouncedresize",function(t){a()}),jQuery(this).find(".ts-timeline-gallery-slider").each(function(){function t(){if(1==s&&1==n){i(),jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","0%"),g=!1,isRunning=!1;v=(new Date).setTime((new Date).getTime()+0);var t=(w=(new Date).setTime((new Date).getTime()+1e3*I))-v;y=setInterval(function(){if(!1===g){Q>0&&(t=(w+=Q)-(v+=Q),Q=0);var e=w-new Date,a=new Date-v,i=parseInt(e/864e5),r=parseInt((e-864e5*i)/36e5),s=parseInt((e-864e5*i-36e5*r)/6e4),n=(parseInt((e-864e5*i-6e4*s-36e5*r)/1e3),a>0?a/t*j:0);jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width",n+"%").attr("data-progress",n)}n>=100&&(clearInterval(y),jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","100%"),jQuery("#ts-owlslider-controls-next-"+k).click())},j)}}function i(){if(1==r){var t=jQuery("#"+T).find(".owl-stage").find(".active").length,e=jQuery("#"+T).find(".owl-stage .owl-item.active").first().height();if(1==t)i=e;else{var a=Math.max.apply(null,jQuery("#"+T).find(".owl-stage").find(".active").map(function(){return jQuery(this).height()}).get());if(a>e)i=a;else var i=e}jQuery("#"+T).find(".owl-stage-outer").height(i+5)}}var r=jQuery(this).attr("data-height");r="false"!=r;var s=jQuery(this).attr("data-play");s="false"!=s;var n=jQuery(this).attr("data-bar"),o=jQuery(this).attr("data-speed");1==s&&("false"==n?(n=!1,s=o):(n=!0,s=o));var l=jQuery(this).attr("data-hover");l="false"!=l;var d=jQuery(this).attr("data-navigation");d="false"!=d;var c=jQuery(this).attr("data-loop");c="false"!=c;var u=jQuery(this).attr("data-rtl");u="false"!=u;var p=jQuery(this).attr("data-mobile");if(p="false"!=p,0==TS_VCSC_MobileDevice||1==TS_VCSC_MobileDevice&&1==p)var f=jQuery(this).attr("data-animationin"),m=jQuery(this).attr("data-animationout");else var f="",m="";jQuery(this).attr("data-color");var g,y,v,w,j,Q,b=jQuery(this).attr("data-items"),C=jQuery(this).parent(),I=parseInt(o)/1e3,x=!1,S=0;$isLastItem=!1,$isFirstItem=!0;$current=$before=$after=$change=null;var _=s,T=jQuery(this).attr("id"),k=jQuery(this).attr("data-id"),M=1==parseInt(b)?1:parseInt(b)>2?2:parseInt(b),$=1==parseInt(b)?1:parseInt(b)>3?3:parseInt(b),D=1==parseInt(b)?1:parseInt(b)>4?4:parseInt(b),V=1==parseInt(b)?1:parseInt(b)>5?5:parseInt(b),z=1==parseInt(b)?1:parseInt(b)>6?6:parseInt(b),A=1==parseInt(b)?1:parseInt(b)>7?7:parseInt(b),H=1==parseInt(b)?1:parseInt(b)>8?8:parseInt(b);"rtl"==jQuery("body").css("direction")&&0==u&&jQuery(this).css("direction","ltr");var P=jQuery(this).owlCarousel2({animateOut:m,animateIn:f,margin:10,smartSpeed:450,autoHeight:r,responsive:{0:{items:1},250:{items:M},500:{items:$},750:{items:D},1e3:{items:V},1250:{items:z},1500:{items:A},1750:{items:H}},responsiveClass:!0,responsiveBaseElement:C,responsiveRefreshRate:1e3,items:parseInt(b),loop:c,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,stagePadding:0,startPosition:0,rtl:u,nav:!1,navRewind:!0,navText:["<",">"],dots:!0,dotsEach:!1,buttons:!1,autoplay:0==n&&s,autoplayTimeout:parseInt(o),autoplayHoverPause:l,onInitialized:function(a){S=jQuery("#"+T).find(".owl-item").length-1,v=(new Date).setTime((new Date).getTime()+0),w=(new Date).setTime((new Date).getTime()+1e3*I),j=100,jQuery("#ts-owlslider-progressbar-"+k).prependTo(jQuery("#"+T)),jQuery("#"+T).find(".owl-dots").show(),window.setTimeout(function(){i(),t(),h.isotope("reloadItems"),e(),h.isotope("reLayout")},100)},onDrag:function(t){0==x&&(g=!0)},onDragged:function(e){0==x&&(g=!1,jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","0%"),clearInterval(y),t())}});1==s&&($play_start=jQuery("#ts-owlslider-controls-play-"+k),$play_start.on("click",function(t){if(jQuery(this).hasClass("active")){e=new Date;g=!0,_=!1,x=!0,Q=0,jQuery(this).attr("data-mouseenterTime",e.getTime()),0==n&&P.trigger("stop.owl.autoplay"),jQuery(this).removeClass("active"),jQuery(this).find("span").alterClass("ts-ecommerce-*","ts-ecommerce-play")}else{var e=new Date;g=!1,_=!0,x=!1,Q=e.getTime()-jQuery(this).attr("data-mouseenterTime"),1==n?jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","0%"):P.trigger("play.owl.autoplay"),jQuery(this).addClass("active"),jQuery(this).find("span").alterClass("ts-ecommerce-*","ts-ecommerce-pause");var a=0,i=jQuery("#"+T).find(".owl-stage").children(".owl-item").length;jQuery("#"+T).find(".owl-stage").children(".owl-item").each(function(){++a==i&&jQuery(this).hasClass("active")&&($isLastItem=!0,$isFirstItem=!1)}),(1==$isLastItem&&0==c&&0==n||jQuery("#"+T).find(".owl-stage .owl-item:last-child").hasClass("active")&&0==c&&0==n)&&P.trigger("to.owl.carousel",[0,0])}})),1!=d&&1!=s||($play_prev=jQuery("#ts-owlslider-controls-prev-"+k),$play_next=jQuery("#ts-owlslider-controls-next-"+k),$play_prev.on("click",function(t){if(1==s&&0==n&&P.trigger("stop.owl.autoplay"),1==n&&(g=!0,jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","100%"),clearInterval(y)),0==c){var e=0,a=jQuery("#"+T).find(".owl-stage").children(".owl-item").length;S=a-1,jQuery("#"+T).find(".owl-stage").children(".owl-item").each(function(){1==++e&&jQuery(this).hasClass("active")&&($isLastItem=!1,$isFirstItem=!0)})}jQuery("#ts-owlslider-controls-play-"+k).addClass("active").find("span").alterClass("ts-ecommerce-*","ts-ecommerce-pause"),1==$isFirstItem&&0==c||jQuery("#"+T).find(".owl-stage .owl-item:first-child").hasClass("active")&&0==c?(P.trigger("to.owl.carousel",[S,0]),$isFirstItem=!1):P.trigger("prev.owl.carousel")}),$play_next.on("click",function(t){if(1==s&&0==n&&P.trigger("stop.owl.autoplay"),1==n&&(g=!0,jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","100%"),clearInterval(y)),0==c){var e=0,a=jQuery("#"+T).find(".owl-stage").children(".owl-item").length;jQuery("#"+T).find(".owl-stage").children(".owl-item").each(function(){++e==a&&jQuery(this).hasClass("active")&&($isLastItem=!0,$isFirstItem=!1)})}jQuery("#ts-owlslider-controls-play-"+k).addClass("active").find("span").alterClass("ts-ecommerce-*","ts-ecommerce-pause"),1==$isLastItem&&0==c||jQuery("#"+T).find(".owl-stage .owl-item:last-child").hasClass("active")&&0==c?(P.trigger("to.owl.carousel",[0,0]),$isLastItem=!1):P.trigger("next.owl.carousel")})),P.find(".owl-stage-outer").on("mouseenter mouseleave",function(t){if(1==s&&1==n&&1==l)if(0==x){var e=new Date;"mouseenter"===t.type||"touchstart"===t.type?(g=!0,Q=0,jQuery(this).attr("data-mouseenterTime",e.getTime()),_=!1):"mouseleave"!==t.type&&"touchend"!==t.type||(g=!1,Q=e.getTime()-jQuery(this).attr("data-mouseenterTime"),_=!0)}else g=!0,Q=0,_=!1;else 1==s&&0==n&&1==l&&1==x&&(g=!0,Q=0,_=!1)}),P.on("change.owl.carousel",function(t){if(t.namespace&&"position"==t.property.name){var e=t.relatedTarget;$current=t.item.index+1,S=t.item.count,$before=e.relative(e.normalize(e.current(),!1))+1,$after=e.relative(e.normalize(t.property.value,!1))+1,$change=!0,1==s&&1==n&&1==l||1==s&&1==n&&0==l?(1==n&&(jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","100%"),clearInterval(y)),0==_&&1==s&&0==x&&(_=!0),$after==S||jQuery("#"+T).children(".owl-stage .owl-item:last-child").hasClass("active")?($isLastItem=!0,$isFirstItem=!1):($isLastItem=!1,1==$after?$isFirstItem=!0:$isFirstItem=!1),0==_&&1==s&&0==x&&(_=!0)):1==s&&0==n&&1==l&&(0==_&&1==s&&0==x&&(_=!0),$after==S||jQuery("#"+T).children(".owl-stage .owl-item:last-child").hasClass("active")?($isLastItem=!0,$isFirstItem=!1):($isLastItem=!1,1==$after?$isFirstItem=!0:$isFirstItem=!1),0==_&&1==s&&0==x&&(_=!0))}}),P.on("changed.owl.carousel",function(t){t.namespace&&"position"==t.property.name&&setTimeout(function(){h.isotope("reloadItems"),e(),h.isotope("reLayout")},1e3)}),P.on("translated.owl.carousel",function(e){if(1==s&&1==n&&1==l)jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","0%"),Q=0,window.setTimeout(function(){t()},0);else if(1==s&&1==n&&0==l)jQuery("#ts-owlslider-progressbar-"+k).children(".ts-owlslider-progressbar").css("width","0%"),Q=0,window.setTimeout(function(){t()},0);else if(1==s&&0==n&&1==l){Q=0,1==x&&0==n&&P.trigger("stop.owl.autoplay");var r=0,d=jQuery("#"+T).find(".owl-stage").children(".owl-item").length;jQuery("#"+T).find(".owl-stage").children(".owl-item").each(function(){++r==d&&jQuery(this).hasClass("active")&&($isLastItem=!0,$isFirstItem=!1)}),1==$isLastItem&&0==c&&0==x&&1==s&&window.setTimeout(function(){jQuery("#ts-owlslider-controls-next-"+k).click()},parseInt(o))}else if(1==s&&0==n&&0==l){var r=0,d=jQuery("#"+T).find(".owl-stage").children(".owl-item").length;jQuery("#"+T).find(".owl-stage").children(".owl-item").each(function(){++r==d&&jQuery(this).hasClass("active")&&($isLastItem=!0,$isFirstItem=!1)}),1==$isLastItem&&0==c&&0==x&&1==s&&window.setTimeout(function(){jQuery("#ts-owlslider-controls-next-"+k).click()},parseInt(o))}i(),a()})})}),void 0!==jQuery.fn.waypoint&&jQuery(".ts-viewport-column").each(function(){if(0==TS_VCSC_MobileDevice){var t=(a=jQuery(this)).next(),e=(a.attr("data-scrollup"),a.attr("data-offset"));t.css("opacity",0),t.attr("data-viewport",a.attr("data-viewport")),t.attr("data-speed",a.attr("data-speed")),t.attr("data-scrollup",a.attr("data-scrollup")),t.bind("inview",function(e,a,i,r){a?t.addClass("ts-waypoint-visible"):t.removeClass("ts-waypoint-visible")}),t.waypoint({offset:e,handler:function(){var e=t.attr("data-viewport"),i=t.attr("data-speed"),r=t.attr("data-scrollup"),s=t.width();t.css("-webkit-animation-duration",i+"ms").css("-moz-animation-duration",i+"ms").css("-ms-animation-duration",i+"ms").css("-o-animation-duration",i+"ms").css("animation-duration",i+"ms"),t.addClass(e+" animated"),t.css("opacity",1).css("width",s),setTimeout(function(){if(t.removeClass("animated").removeClass(e),"false"==r){try{t.waypoint("destroy")}catch(t){}try{a.destroy()}catch(t){}}t.css("width",""),t.css("-webkit-animation-duration","").css("-moz-animation-duration","").css("-ms-animation-duration","").css("-o-animation-duration","").css("animation-duration","")},i)}}),a.remove()}else{var a=jQuery(this);(t=a.next()).css("opacity",1)}}),void 0!==jQuery.fn.waypoint&&jQuery(".ts-viewport-row").each(function(){if(0==TS_VCSC_MobileDevice){var t=(a=jQuery(this)).next(),e=(a.attr("data-scrollup"),a.attr("data-offset"));t.css("opacity",0),t.attr("data-viewport",a.attr("data-viewport")),t.attr("data-speed",a.attr("data-speed")),t.attr("data-scrollup",a.attr("data-scrollup")),t.bind("inview",function(e,a,i,r){a?t.addClass("ts-waypoint-visible"):t.removeClass("ts-waypoint-visible")}),t.waypoint({offset:e,handler:function(){if(!t.hasClass("ts-parallax-processing")){var e=t.attr("data-viewport"),i=t.attr("data-speed"),r=t.attr("data-scrollup"),s=t.width();t.css("-webkit-animation-duration",i+"ms").css("-moz-animation-duration",i+"ms").css("-ms-animation-duration",i+"ms").css("-o-animation-duration",i+"ms").css("animation-duration",i+"ms"),t.addClass(e),t.css("opacity",1).css("width",s),setTimeout(function(){if(t.removeClass(e),"false"==r){try{t.waypoint("destroy")}catch(t){}try{a.destroy()}catch(t){}}t.css("width",""),t.css("-webkit-animation-duration","").css("-moz-animation-duration","").css("-ms-animation-duration","").css("-o-animation-duration","").css("animation-duration","")},i)}}}),a.remove()}else{var a=jQuery(this);(t=a.next()).css("opacity",1)}}),setTimeout(function(){e(),jQuery(window).trigger("debouncedresize"),jQuery(window).trigger("debouncedresize.stackslider")},250),setTimeout(function(){jQuery(".ts-figure-navigation-container").each(function(){var t=jQuery(this),e="true"==t.attr("data-openmobile"),a="true"==t.attr("data-frontend");t.attr("data-global");t.find(".ts-figure-navigation-item").each(function(){var t=jQuery(this);if(1==("true"==t.attr("data-active"))&&0==a&&(0==TS_VCSC_MobileDevice||1==e)){t.attr("data-group");var i=t.find(".ts-figure-navigation-title"),r=t.find(".ts-figure-navigation-image"),s=t.find(".ts-figure-navigation-handle"),n=t.find(".ts-figure-navigation-content"),o=t.find(".ts-figure-navigation-button"),l=i.outerHeight(!0)+r.outerHeight(!0)+s.outerHeight(!0)+n.outerHeight(!0)+o.outerHeight(!0);t.css("height",l+"px");var d=t.find(".ts-figure-navigation-image").height();n.css("height",n.height()+"px"),t.find(".ts-figure-navigation-figure").css({height:d+"px"}),t.addClass("ts-figure-navigation-hover"),t.find(".ts-figure-navigation-content").css({display:"block"}).stop(!0).animate({opacity:1},500)}})})},1250),setTimeout(function(){e(),jQuery(window).trigger("debouncedresize"),jQuery(window).trigger("debouncedresize.stackslider"),jQuery(window).trigger("scroll"),jQuery(window).trigger("checkinview")},500),jQuery(".ts-video-container").length>0&&(setTimeout(function(){r()},5e3),setTimeout(function(){r()},1e4))})}(jQuery),function(t){function e(){s&&(n(e),t.fx.tick())}for(var a=0,i=["ms","moz","webkit","o"],r=0;r<i.length&&!window.requestAnimationFrame;++r)window.requestAnimationFrame=window[i[r]+"RequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){return window.setTimeout(function(){t()},1e3/60)});for(var s=!1,n=window.requestAnimationFrame,o=window.cancelAnimationFrame;a<i.length&&!n;a++)n=window[i[a]+"RequestAnimationFrame"],o=o||window[i[a]+"CancelAnimationFrame"]||window[i[a]+"CancelRequestAnimationFrame"];n?(window.requestAnimationFrame=n,window.cancelAnimationFrame=o,t.fx.timer=function(a){a()&&t.timers.push(a)&&!s&&(s=!0,e())},t.fx.stop=function(){s=!1}):(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),r=Math.max(0,16-(i-a)),s=window.setTimeout(function(){t(i+r)},r);return a=i+r,s},window.cancelAnimationFrame=function(t){clearTimeout(t)})}(jQuery),function(t,e){"use strict";var a=function(){var t=function(t){var e,a,i,n={},o={h:s(parseInt(t[1],10)%360,360),s:s(parseInt(t[2],10)%101,100),l:s(parseInt(t[3],10)%101,100),a:parseFloat(t[4])};return 0===o.s?n={r:e=parseInt(Math.round(255*o.l)),g:e,b:e,a:o.a}:(i=2*o.l-(a=o.l<.5?o.l*(1+o.s):o.l+o.s-o.l*o.s),n.r=parseInt((256*r(i,a,o.h+1/3)).toFixed(0),10),n.g=parseInt((256*r(i,a,o.h)).toFixed(0),10),n.b=parseInt((256*r(i,a,o.h-1/3)).toFixed(0),10),n.a=o.a),n},e=function(t){t.r=s(parseInt(t.r,10)%256,256),t.g=s(parseInt(t.g,10)%256,256),t.b=s(parseInt(t.b,10)%256,256);var e,a=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),r=[];if(r.a=t.a,r.l=(a+i)/2,a===i)r.h=0,r.s=0;else{switch(e=a-i,r.s=r.l>.5?e/(2-a-i):e/(a+i),a){case t.r:r.h=(t.g-t.b)/e+(t.g<t.b?6:0);break;case t.g:r.h=(t.b-t.r)/e+2;break;case t.b:r.h=(t.r-t.g)/e+4}r.h/=6}return r.h=parseInt((360*r.h).toFixed(0),10),r.s=parseInt((100*r.s).toFixed(0),10),r.l=parseInt((100*r.l).toFixed(0),10),r},a=function(t){var e={},a={h:s(parseInt(t[1],10)%360,360),s:s(parseInt(t[2],10)%101,100),v:s(parseInt(t[3],10)%101,100)},i=Math.floor(6*a.h),r=6*a.h-i,n=a.v*(1-a.s),o=a.v*(1-r*a.s),l=a.v*(1-(1-r)*a.s);switch(i%6){case 0:e.r=a.v,e.g=l,e.b=n;break;case 1:e.r=o,e.g=a.v,e.b=n;break;case 2:e.r=n,e.g=a.v,e.b=l;break;case 3:e.r=n,e.g=o,e.b=a.v;break;case 4:e.r=l,e.g=n,e.b=a.v;break;case 5:e.r=a.v,e.g=n,e.b=o}return e.r=parseInt(256*e.r,10),e.g=parseInt(256*e.g,10),e.b=parseInt(256*e.b,10),{r:e.r,g:e.g,b:e.b}},i=function(t){t.r=s(parseInt(t.r,10)%256,256),t.g=s(parseInt(t.g,10)%256,256),t.b=s(parseInt(t.b,10)%256,256);var e=Math.max(t.r,t.g,t.b),a=Math.min(t.r,t.g,t.b),i=e-a,r={h:0,s:0===e?0:i/e,v:e};if(e!==a){switch(e){case t.r:r.h=(t.g-t.b)/i+(t.g<t.b?6:0);break;case t.g:r.h=(t.b-t.r)/i+2;break;case t.b:r.h=(t.r-t.g)/i+4}r.h/=6}return r.h=parseInt((360*r.h).toFixed(0),10),r.s=parseInt((100*r.s).toFixed(0),10),r.v=parseInt((100*r.v).toFixed(0),10),r},r=function(t,e,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?t+6*(e-t)*a:a<.5?e:a<2/3?t+(e-t)*(2/3-a)*6:t},s=function(t,e){return t/e},n=function(t){var e,a=null,i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(e in i)t===e&&(a=i[e]);return a};return function(r,s,o){s||(s="rgba"),r=r.toLowerCase(),s=s.toLowerCase();var l,d,c,u,h,p,f,m,g,y,v,w,j,Q=n(r),b=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),1]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d+(?:\.\d+)?|\.\d+)\s*\)/,example:["rgba(123, 234, 45, 1)","rgba(255,234,245, 0.5)"],process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3})%,\s*(\d{1,3})%\)$/,example:["hsl(120, 100%, 25%)","hsl(0, 100%, 50%)"],process:function(e){e[4]=1;var a=t(e);return[a.r,a.g,a.b,a.a]}},{re:/^hsla\((\d{1,3}),\s*(\d{1,3})%,\s*(\d{1,3})%,\s*(\d+(?:\.\d+)?|\.\d+)\s*\)/,example:["hsla(120, 100%, 25%, 1)","hsla(0, 100%, 50%, 0.5)"],process:function(e){var a=t(e);return[a.r,a.g,a.b,a.a]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3})%,\s*(\d{1,3})%\)$/,example:["hsv(120, 100%, 25%)","hsl(0, 100%, 50%)"],process:function(t){var e=a(t);return[e.r,e.g,e.b,1]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1]}}];for(Q?r=Q:3===(r=r.replace(/^\s*#|\s*$/g,"")).length&&(r=r.replace(/(.)/g,"$1$1")),h=0;h<b.length;h+=1)p=b[h].re,f=b[h].process,(m=p.exec(r))&&(l=(g=f(m))[0],d=g[1],c=g[2],u=g[3]);switch(l=l<0||isNaN(l)?0:l>255?255:l,d=d<0||isNaN(d)?0:d>255?255:d,c=c<0||isNaN(c)?0:c>255?255:c,u=u<0||isNaN(u)?0:u>1?1:u,s){case"rgba":o&&(u=(255-(y=Math.min(l,d,c)))/255,l=((l-y)/u).toFixed(0),d=((d-y)/u).toFixed(0),c=((c-y)/u).toFixed(0),u=u.toFixed(4)),j="rgba("+l+","+d+","+c+","+u+")";break;case"rgb":j="rgb("+l+","+d+","+c+")";break;case"hex":j="#"+("0"+l.toString(16)).slice(-2)+("0"+d.toString(16)).slice(-2)+("0"+c.toString(16)).slice(-2);break;case"hsl":j="hsl("+(v=e({r:l,g:d,b:c})).h+","+v.s+"%,"+v.l+"%)";break;case"hsla":j="hsl("+(v=e({r:l,g:d,b:c,a:u})).h+","+v.s+"%,"+v.l+"%,"+v.a+")";break;case"hsv":j="hsv("+(w=i({r:l,g:d,b:c})).h+","+w.s+"%,"+w.v+"%)"}return j}}();t.TS_VCSC_Color2Color=a}(window),function(t,e){"use strict";var a=!1,i=parseFloat,r=Math.min,s=/(-?\d+\.?\d*)$/g,n=/(\d+\.?\d*)$/g,o=[],l=[],d=function(t){return"string"==typeof t},c=function(t,e){for(var a,i=t.length,r=i;r--;)e(t[a=i-r-1],a)},u=Array.prototype.indexOf||function(t){var e=this.length,a=Number(arguments[1])||0;for((a=a<0?Math.ceil(a):Math.floor(a))<0&&(a+=e);a<e;a++)if(a in this&&this[a]===t)return a;return-1};t.tinysort={id:"TinySort",version:"1.5.6",copyright:"Copyright (c) 2008-2013 Ron Valstar",uri:"http://tinysort.sjeiti.com/",licensed:{MIT:"http://www.opensource.org/licenses/mit-license.php",GPL:"http://www.gnu.org/licenses/gpl.html"},plugin:function(){var t=function(t,e){o.push(t),l.push(e)};return t.indexOf=u,t}(),defaults:{order:"asc",attr:null,data:null,useVal:a,place:"start",returns:a,cases:a,forceStrings:a,ignoreDashes:a,sortFunction:null}},t.fn.extend({tinysort:function(){var e,h,p,f,m=[],g=[],y=[],v=[],w=0,j=[],Q=[],b=function(t){c(o,function(e){e.call(e,t)})},C=function(t,e){return"string"==typeof e&&(t.cases||(e=function(t){return t&&t.toLowerCase?t.toLowerCase():t}(e)),e=e.replace(/^\s*(.*?)\s*$/i,"$1")),e},I=function(t,e){var r=0;for(0!==w&&(w=0);0===r&&w<f;){var o=v[w],u=o.oSettings,h=u.ignoreDashes?n:s;if(b(u),u.sortFunction)r=u.sortFunction(t,e);else if("rand"==u.order)r=Math.random()<.5?1:-1;else{var p=a,m=C(u,t.s[w]),g=C(u,e.s[w]);if(!u.forceStrings){var y=d(m)?m&&m.match(h):a,j=d(g)?g&&g.match(h):a;if(y&&j){m.substr(0,m.length-y[0].length)==g.substr(0,g.length-j[0].length)&&(p=!a,m=i(y[0]),g=i(j[0]))}}r=o.iAsc*(m<g?-1:m>g?1:0)}c(l,function(t){r=t.call(t,p,m,g,r)}),0===r&&w++}return r};for(e=0,p=arguments.length;e<p;e++){var x=arguments[e];d(x)?j.push(x)-1>Q.length&&(Q.length=j.length-1):Q.push(x)>j.length&&(j.length=Q.length)}for(j.length>Q.length&&(Q.length=j.length),0===(f=j.length)&&(f=j.length=1,Q.push({})),e=0,p=f;e<p;e++){var S=j[e],_=t.extend({},t.tinysort.defaults,Q[e]),T=!(!S||""===S),k=T&&":"===S[0];v.push({sFind:S,oSettings:_,bFind:T,bAttr:!(null===_.attr||""===_.attr),bData:null!==_.data,bFilter:k,$Filter:k?this.filter(S):this,fnSort:_.sortFunction,iAsc:"asc"==_.order?1:-1})}return this.each(function(e,a){var i,r=t(a),s=r.parent().get(0),n=[];for(h=0;h<f;h++){var o=v[h],l=o.bFind?o.bFilter?o.$Filter.filter(a):r.find(o.sFind):r;n.push(o.bData?l.data(o.oSettings.data):o.bAttr?l.attr(o.oSettings.attr):o.oSettings.useVal?l.val():l.text()),void 0===i&&(i=l)}var d=u.call(y,s);d<0&&(d=y.push(s)-1,g[d]={s:[],n:[]}),i.length>0?g[d].s.push({s:n,e:r,n:e}):g[d].n.push({e:r,n:e})}),c(g,function(t){t.s.sort(I)}),c(g,function(t){var i=t.s,s=t.n,n=i.length,o=s.length,l=n+o,d=[],u=l,h=[0,0];switch(_.place){case"first":c(i,function(t){u=r(u,t.n)});break;case"org":c(i,function(t){d.push(t.n)});break;case"end":u=o;break;default:u=0}for(e=0;e<l;e++){var p=function(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]==e)return!a;return a}(d,e)?!a:e>=u&&e<u+n,f=p?0:1,g=(p?i:s)[h[f]].e;g.parent().append(g),!p&&_.returns||m.push(g.get(0)),h[f]++}}),this.length=0,Array.prototype.push.apply(this,m),this}}),t.fn.TinySort=t.fn.Tinysort=t.fn.tsort=t.fn.tinysort}(jQuery),jQuery,function(t){function e(e,a,i,r){var s=e.text().split(a),n="";s.length&&(t(s).each(function(t,e){n+='<span class="'+i+(t+1)+'">'+e+"</span>"+r}),e.empty().append(n))}var a={init:function(){return this.each(function(){e(t(this),"","char","")})},words:function(){return this.each(function(){e(t(this)," ","word"," ")})},lines:function(){return this.each(function(){var a="eefec303079ad17405c889e092e105b0";e(t(this).children("br").replaceWith(a).end(),a,"line","")})}};t.fn.lettering=function(e){return e&&a[e]?a[e].apply(this,[].slice.call(arguments,1)):"letters"!==e&&e?(t.error("Method "+e+" does not exist on jQuery.lettering"),this):a.init.apply(this,[].slice.call(arguments,0))}}(jQuery),function(t){t.fn.textfill=function(e){function a(){s.debug&&"undefined"!=typeof console&&void 0!==console.debug&&console.debug.apply(console,arguments)}function i(t,e,i,r,s,n){function o(t,e){var a=" / ";return t>e?a=" > ":t==e&&(a=" = "),a}a(t+"font: "+e.css("font-size")+", H: "+e.height()+o(e.height(),i)+i+", W: "+e.width()+o(e.width(),r)+r+", minFontPixels: "+s+", maxFontPixels: "+n)}function r(t,e,a,r,s,n,o,l){for(i(t+": ",e,s,n,o,l);o<l-1;){var d=Math.floor((o+l)/2);if(e.css("font-size",d),a.call(e)<=r){if(o=d,a.call(e)==r)break}else l=d;i(t+": ",e,s,n,o,l)}return e.css("font-size",l),a.call(e)<=r&&i(t+"* ",e,s,n,o=l,l),o}var s=t.extend({debug:!1,maxFontPixels:40,minFontPixels:4,innerTag:"span",widthOnly:!1,success:null,callback:null,fail:null,complete:null,explicitWidth:null,explicitHeight:null},e);return this.each(function(){var e=t(s.innerTag+":visible:first",this),i=s.explicitHeight||t(this).height(),n=s.explicitWidth||t(this).width(),o=e.css("font-size");a("Opts: ",s),a("Vars: maxHeight: "+i+", maxWidth: "+n);var l=s.minFontPixels,d=s.maxFontPixels<=0?i:s.maxFontPixels,c=void 0;s.widthOnly||(c=r("H",e,t.fn.height,i,i,n,l,d));var u=r("W",e,t.fn.width,n,i,n,l,d);s.widthOnly?e.css("font-size",u):e.css("font-size",Math.min(c,u)),a("Final: "+e.css("font-size")),e.width()>n||e.height()>i&&!s.widthOnly?(e.css("font-size",o),s.fail&&s.fail(this)):s.success?s.success(this):s.callback&&(!function(){"undefined"!=typeof console&&void 0!==console.warn&&console.warn.apply(console,arguments)}("callback is deprecated, use success, instead"),s.callback(this))}),s.complete&&s.complete(this),this}}(window.jQuery),function(t){t.fn.fitText=function(e,a){var i=e||1,r=t.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY,lineHeight:!1},a);return this.each(function(){var e=t(this),a=function(){e.css("font-size",Math.max(Math.min(e.width()/(10*i),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize))+"px"),1==r.lineHeight&&e.css("line-height",Math.max(Math.min(e.width()/(10*i),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize))+"px")};a(),t(window).on("resize.fittext orientationchange.fittext",a)})}}(jQuery),function(t){function e(){var e,r=t(),d=0;if(t.each(s,function(t,e){var a=e.data.selector,i=e.$element;r=r.add(a?i.find(a):i)}),e=r.length)for(a=a||function(){var e,a,i={height:o.innerHeight,width:o.innerWidth};return i.height||!(e=n.compatMode)&&t.support.boxModel||(i={height:(a="CSS1Compat"===e?l:n.body).clientHeight,width:a.clientWidth}),i}(),i=i||{top:o.pageYOffset||l.scrollTop||n.body.scrollTop,left:o.pageXOffset||l.scrollLeft||n.body.scrollLeft};d<e;d++)if(t.contains(l,r[d])){var c,u,h,p=t(r[d]),f={height:p.height(),width:p.width()},m=p.offset(),g=p.data("inview");if(!i||!a)return;m.top+f.height>i.top&&m.top<i.top+a.height&&m.left+f.width>i.left&&m.left<i.left+a.width?(h=(c=i.left>m.left?"right":i.left+a.width<m.left+f.width?"left":"both")+"-"+(u=i.top>m.top?"bottom":i.top+a.height<m.top+f.height?"top":"both"),g&&g===h||p.data("inview",h).trigger("inview",[!0,c,u])):g&&p.data("inview",!1).trigger("inview",[!1])}}var a,i,r,s={},n=document,o=window,l=n.documentElement,d=t.expando;t.event.special.inview={add:function(a){s[a.guid+"-"+this[d]]={data:a,$element:t(this)},r||t.isEmptyObject(s)||(r=setInterval(e,1e3/3))},remove:function(e){try{delete s[e.guid+"-"+this[d]]}catch(t){}t.isEmptyObject(s)&&(clearInterval(r),r=null)}},t(o).bind("scroll resize scrollstop",function(){a=i=null}),t(o).bind("checkinview",function(){e()}),!l.addEventListener&&l.attachEvent&&l.attachEvent("onfocusin",function(){i=null})}(jQuery),function(t,e,a,i){function r(e,a){this.element=e,this.settings=t.extend({},n,a),""==this.settings.align&&(this.settings.align="center"),""===this.settings.id&&(this.settings.id=+new Date),this._defaults=n,this._name=s,this.initParallax()}var s="TS_VCSC_ScrollParallax",n={id:"",direction:"up",width:"",height:"",align:"center",momentum:"0.2",image:"",target:"",repeat:!1,ismobile:!1,allowmobile:!1};t.extend(r.prototype,{initParallax:function(){""===this.settings.target&&(this.settings.target=t(this.element)),""===this.settings.image&&void 0!==t(this.element).css("backgroundImage")&&""!==t(this.element).css("backgroundImage")&&(this.settings.image=t(this.element).css("backgroundImage").replace(/url\(|\)|"|'/g,"")),TS_VCSC_ScrollParallaxImages.push(this),this.setupParallax(),this.containerWidth=0,this.containerHeight=0},setupParallax:function(){var t=this.settings.target;void 0!==t&&0!==t.length&&(""!==this.settings.image&&"none"!==this.settings.image&&t.find("#ts-background-parallax-holder-"+this.settings.id).css({backgroundImage:"url("+this.settings.image+")"}),this.resizeParallax())},executeParallax:function(){if((!this.settings.ismobile||this.settings.allowmobile)&&this.visibleParallax()){void 0===this.settings.inner&&(this.settings.inner=this.settings.target[0].querySelectorAll("#ts-background-parallax-holder-"+this.settings.id)[0]);var t=this.settings.inner;this.settings.target;if((void 0===this.settings.executeParallaxClientLastUpdate||+new Date-this.settings.executeParallaxClientLastUpdate>2e3+1e3*Math.random())&&(this.settings.executeParallaxClientLastUpdate=+new Date,this.settings.clientWidthCache=this.settings.target[0].clientWidth,this.settings.clientHeightCache=this.settings.target[0].clientHeight),0===this.containerWidth||0===this.containerHeight||this.settings.clientWidthCache===this.containerWidth&&this.settings.clientHeightCache===this.containerHeight||this.resizeParallax(),this.containerWidth=this.settings.clientWidthCache,this.containerHeight=this.settings.clientHeightCache,void 0!==t&&0!==t.length){var e=(TS_VCSC_OffsetScrollTop-this.scrollTopMin)/(this.scrollTopMax-this.scrollTopMin),a=this.maximumMovement*e;"left"!==this.settings.direction&&"up"!==this.settings.direction||(a*=-1);var i="translate3d(",r="px, 0px, 0px)",s="translate3d(0px, ",n="px, 0px)";TS_VCSC_Supports3D||(i="translate(",r="px, 0px)",s="translate(0px, ",n="px)"),"no-repeat"===t.style.backgroundRepeat&&("down"===this.settings.direction&&a<0&&(a=0),"up"===this.settings.direction&&a>0&&(a=0)),"left"===this.settings.direction||"right"===this.settings.direction?(t.style.transition="transform 1ms linear",t.style.webkitTransform=i+a+r,t.style.transform=i+a+r):(t.style.transition="transform 1ms linear",t.style.webkitTransform=s+a+n,t.style.transform=s+a+n),t.style.transition="transform -1ms linear"}}},visibleParallax:function(){if(void 0===this.settings.offsetLastUpdate||+new Date-this.settings.offsetLastUpdate>4e3+1e3*Math.random()){this.settings.offsetLastUpdate=+new Date;var t=this.settings.target[0];this.settings.offsetTopCache=t.getBoundingClientRect().top+e.pageYOffset,this.settings.parallaxHeightCache=t.clientHeight}var a=this.settings.offsetTopCache;return!(a+this.settings.parallaxHeightCache<TS_VCSC_OffsetScrollTop||TS_VCSC_OffsetScrollTop+TS_VCSC_WindowHeight<a)},dimensionsParallax:function(t,e,a){if(t/e>=a.offsetWidth/a.offsetHeight)i=t*(r=(s=a.offsetHeight)/e);else var i,r=(i=a.offsetWidth)/t,s=e*r;return i+"px "+s+"px"},resizeParallax:function(){var t=this.settings.target;if(void 0!==t&&0!==t.length){var e="true"===this.settings.repeat||!0===this.settings.repeat||1===this.settings.repeat;if("left"===this.settings.direction||"right"===this.settings.direction){var a=t.width()+parseInt(t.css("paddingRight"))+parseInt(t.css("paddingLeft")),i=t.height()+parseInt(t.css("paddingTop"))+parseInt(t.css("paddingBottom")),r=a;a+=400*Math.abs(parseFloat(this.settings.momentum));l="0%";"center"===this.settings.align?l="50%":"bottom"===this.settings.align&&(l="100%");o=0;"right"===this.settings.direction&&(o-=a-r),t.find("#ts-background-parallax-holder-"+this.settings.id).css({width:a,height:i,zIndex:-1,top:0,left:o,backgroundSize:e?"100%":this.dimensionsParallax(this.settings.width,this.settings.height,t[0].querySelectorAll("#ts-background-parallax-holder-"+this.settings.id)[0]),backgroundPosition:e?"0 0 ":"50% "+l,backgroundRepeat:e?"repeat":"no-repeat"});d=0;t.offset().top>TS_VCSC_WindowHeight&&(d=t.offset().top-TS_VCSC_WindowHeight);c=t.offset().top+t.height()+parseInt(t.css("paddingTop"))+parseInt(t.css("paddingBottom"));this.maximumMovement=a-r,this.scrollTopMin=d,this.scrollTopMax=c}else{var s=800;"down"===this.settings.direction&&(s*=1.2);var a=t.width()+parseInt(t.css("paddingRight"))+parseInt(t.css("paddingLeft")),n=i=t.height()+parseInt(t.css("paddingTop"))+parseInt(t.css("paddingBottom"));i+=s*Math.abs(parseFloat(this.settings.momentum));var o="0%";"center"===this.settings.align?o="50%":"right"===this.settings.align&&(o="100%");var l=0;"down"===this.settings.direction&&(l-=i-n),t.find("#ts-background-parallax-holder-"+this.settings.id).css({width:a,height:i,zIndex:-1,top:l,left:0,backgroundSize:e?"100%":this.dimensionsParallax(this.settings.width,this.settings.height,t[0].querySelectorAll("#ts-background-parallax-holder-"+this.settings.id)[0]),backgroundPosition:e?"0":o+" 50%",backgroundRepeat:e?"repeat":"no-repeat"});var d=0;t.offset().top>TS_VCSC_WindowHeight&&(d=t.offset().top-TS_VCSC_WindowHeight);var c=t.offset().top+t.height()+parseInt(t.css("paddingTop"))+parseInt(t.css("paddingBottom"));this.maximumMovement=i-n,this.scrollTopMin=d,this.scrollTopMax=c}"true"!=t.attr("data-completed")||t.hasClass("ts-background-parallax-completed")||setTimeout(function(){t.addClass("ts-background-parallax-completed")},500)}}}),t.fn[s]=function(e){return this.each(function(){t.data(this,"Parallax_"+s)||t.data(this,"Parallax_"+s,new r(this,e))}),this}}(jQuery,window,document),function(t){"use strict";function e(t,e){if(this.createTextRange){var a=this.createTextRange();a.collapse(!0),a.moveStart("character",t),a.moveEnd("character",e-t),a.select()}else this.setSelectionRange&&(this.focus(),this.setSelectionRange(t,e))}function a(t){var e=this.value.length;if(t="start"==t.toLowerCase()?"Start":"End",document.selection){var a,i,r,s=document.selection.createRange();return(a=s.duplicate()).expand("textedit"),a.setEndPoint("EndToEnd",s),i=a.text.length-s.text.length,r=i+s.text.length,"Start"==t?i:r}return void 0!==this["selection"+t]&&(e=this["selection"+t]),e}var i={codes:{188:44,109:45,190:46,191:47,192:96,220:92,222:39,221:93,219:91,173:45,187:61,186:59,189:45,110:46},shifts:{96:"~",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",48:")",45:"_",61:"+",91:"{",93:"}",92:"|",59:":",39:'"',44:"<",46:">",47:"?"}};t.fn.number=function(r,s,n,o){o=void 0===o?",":o,n=void 0===n?".":n,s=void 0===s?0:s;var l="\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4),d=new RegExp("[^"+l+"0-9]","g"),c=new RegExp(l,"g");return!0===r?this.is("input:text")?this.on({"keydown.format":function(r){var l=t(this),u=l.data("numFormat"),h=r.keyCode?r.keyCode:r.which,p="",f=a.apply(this,["start"]),m=a.apply(this,["end"]),g="",y=!1;if(i.codes.hasOwnProperty(h)&&(h=i.codes[h]),!r.shiftKey&&h>=65&&h<=90?h+=32:!r.shiftKey&&h>=69&&h<=105?h-=48:r.shiftKey&&i.shifts.hasOwnProperty(h)&&(p=i.shifts[h]),""==p&&(p=String.fromCharCode(h)),8!==h&&p!=n&&!p.match(/[0-9]/)){var v=!0;if(p.match(/[-]/)&&(u.isNegative||(u.isNegative=!0,v=!1)),v){var w=r.keyCode?r.keyCode:r.which;if(46==w||8==w||9==w||27==w||13==w||(65==w||82==w)&&!0===(r.ctrlKey||r.metaKey)||(86==w||67==w)&&!0===(r.ctrlKey||r.metaKey)||w>=35&&w<=39)return;return r.preventDefault(),!1}}if(0==f&&m==this.value.length||0==l.val()?8===h?(f=m=1,this.value="",u.init=s>0?-1:0,u.c=s>0?-(s+1):0,e.apply(this,[0,0])):p===n?(f=m=1,this.value="0"+n+new Array(s+1).join("0"),u.init=s>0?1:0,u.c=s>0?-(s+1):0):0===this.value.length&&(u.init=s>0?-1:0,u.c=s>0?-s:0):u.c=m-this.value.length,8==h&&f<=1&&u.isNegative)r.preventDefault(),u.isNegative=!1,u.c--,y=this.value.length+u.c;else if(s>0&&p==n&&f==this.value.length-s-1)u.c++,u.init=Math.max(0,u.init),r.preventDefault(),y=this.value.length+u.c;else if(p==n)u.init=Math.max(0,u.init),r.preventDefault();else if(s>0&&8==h&&f==this.value.length-s)r.preventDefault(),u.c--,y=this.value.length+u.c;else if(s>0&&8==h&&f>this.value.length-s){if(""===this.value)return;"0"!=this.value.slice(f-1,f)&&(g=this.value.slice(0,f-1)+"0"+this.value.slice(f),l.val(g.replace(d,"").replace(c,n))),r.preventDefault(),u.c--,y=this.value.length+u.c}else 8==h&&this.value.slice(f-1,f)==o?(r.preventDefault(),u.c--,y=this.value.length+u.c):s>0&&f==m&&this.value.length>s+1&&f>this.value.length-s-1&&isFinite(+p)&&!r.metaKey&&!r.ctrlKey&&!r.altKey&&1===p.length&&(g=m===this.value.length?this.value.slice(0,f-1):this.value.slice(0,f)+this.value.slice(f+1),this.value=g,y=f);!1!==y&&e.apply(this,[y,y]),l.data("numFormat",u)},"keyup.format":function(i){var r,n=t(this),o=n.data("numFormat"),l=i.keyCode?i.keyCode:i.which,d=a.apply(this,["start"]);""===this.value||(l<48||l>57)&&(l<96||l>105)&&8!==l||(n.val(n.val()),s>0&&(o.init<1?(d=this.value.length-s-(o.init<0?1:0),o.c=d-this.value.length,o.init=1,n.data("numFormat",o)):d>this.value.length-s&&8!=l&&(o.c++,n.data("numFormat",o))),n.get(0).value.length?o.isNegative&&(n.get(0).value="-"+this.value):o.isNegative=!1,r=this.value.length+o.c,e.apply(this,[r,r]))},"paste.format":function(e){var a=t(this),i=e.originalEvent,r=null;return window.clipboardData&&window.clipboardData.getData?r=window.clipboardData.getData("Text"):i.clipboardData&&i.clipboardData.getData&&(r=i.clipboardData.getData("text/plain")),a.val(r),e.preventDefault(),!1}}).each(function(){var e=t(this).data("numFormat",{c:-(s+1),decimals:s,thousands_sep:o,dec_point:n,regex_dec_num:d,regex_dec:c,init:!1});""!==this.value&&e.val(e.val())}):this.each(function(){var e=t(this),a=e.text().match(/^-/)?-1:1,i=+e.text().replace(d,"").replace(c,".")*a;e.number(isFinite(i)?+i:0,s,n,o)}):this.text(t.number.apply(window,arguments))};var r=null,s=null;t.isPlainObject(t.valHooks.text)?(t.isFunction(t.valHooks.text.get)&&(r=t.valHooks.text.get),t.isFunction(t.valHooks.text.set)&&(s=t.valHooks.text.set)):t.valHooks.text={},t.valHooks.text.get=function(e){var a,i=t(e).data("numFormat");return i?""===e.value?"":(e.value.match(/^-/)&&(i.isNegative=!0),a=+e.value.replace(i.regex_dec_num,"").replace(i.regex_dec,"."),0!=(a=isFinite(a)?a:0)&&i.isNegative&&(a*=-1),""+a):t.isFunction(r)?r(e):void 0},t.valHooks.text.set=function(e,a){var i=t(e).data("numFormat");return i?e.value=""===a?"":t.number(a,i.decimals,i.dec_point,i.thousands_sep):t.isFunction(s)?s(e,a):void 0},t.number=function(t,e,a,i){i=void 0===i?",":i,a=void 0===a?".":a,e=isFinite(+e)?Math.abs(e):0;var r="\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4),s="\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4);t=(t+"").replace(".",a).replace(new RegExp(s,"g"),"").replace(new RegExp(r,"g"),".").replace(new RegExp("[^0-9+-Ee.]","g"),"");var n=isFinite(+t)?+t:0,o="";return(o=(e?function(t,e){var a=Math.pow(10,e);return""+Math.round(t*a)/a}(n,e):""+Math.round(n)).split("."))[0].length>3&&(o[0]=o[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(o[1]||"").length<e&&(o[1]=o[1]||"",o[1]+=new Array(e-o[1].length+1).join("0")),o.join(a)}}(jQuery),function(t){var e,a,i=t.event;e=i.special.debouncedresize={setup:function(){t(this).on("resize",e.handler)},teardown:function(){t(this).off("resize",e.handler)},handler:function(t,r){var s=this,n=arguments,o=function(){t.type="debouncedresize",i.dispatch.apply(s,n)};a&&clearTimeout(a),r?o():a=setTimeout(o,e.threshold)},threshold:150},t.event.special.debouncedresize.threshold=250}(jQuery);