text: var TemplateHelper={Init:function(){var t=this;this.EventManager.registerEvent("displayMovement"),this.Component.Init(t),jQuery(window).bind("resize scroll",function(){t.EventManager.triggerEvent("displayMovement")}),jQuery(window).bind("resize",function(){t.EventManager.triggerEvent("displayResize")})}};TemplateHelper.ThirdParty={libraries:{owlCarousel:{path:"assets/scripts/owl-carousel/owl.carousel.js",alias:"owlCarousel",loaded:0},knob:{path:"assets/scripts/jquery-knob.js",alias:"knob",loaded:0},googleMapExternal:{type:"googleMaps",alias:"googleMapExternal",loaded:0},googleMap:{path:"assets/scripts/jquery.gmap.min.js",alias:"googleMap",loaded:0},chosen:{path:"assets/scripts/chosen/chosen.jquery.min.js",alias:"chosen",loaded:0},touchSwipe:{path:"assets/scripts/jquery.touchSwipe.min.js",alias:"touchSwipe",loaded:0}},markAsLoaded:function(t){this.libraries[t].loaded=1},loadLibrary:function(t,e,i){var n=this;jQuery.getScript(this.libraries[t].path).done(function(){n.markAsLoaded(t),e[i].call(e,{})})}},TemplateHelper.EventManager={eventList:{},init:function(){},registerEvent:function(t){"undefined"==typeof this.eventList[t]&&(this.eventList[t]=[])},unRegisterEvent:function(t){"undefined"!=typeof this.eventList[t]&&delete this.eventList[t]},triggerEvent:function(t,e){if(e="undefined"!=typeof e?e:{},"undefined"!=typeof this.eventList[t]){var i=this.eventList[t];for(var n in i){var a=i[n],s=a.method;a.object[s].call(a.object,e)}}},listenEvent:function(t,e,i){"undefined"==typeof this.eventList[t]&&this.registerEvent(t),this.eventList[t][this.eventList[t].length]={object:e,method:i}}},TemplateHelper.Component={activeComponents:{},templateHelperInstance:{},Init:function(t){this.templateHelperInstance=t;var e=this;jQuery.each(this.templateHelperInstance.Components,function(t,i){jQuery(i.containerIdentifier).each(function(){e.Factory(jQuery(this),t)})})},Factory:function(t,e){"undefined"==typeof this.activeComponents[e]&&(this.activeComponents[e]=[]);var i=this,n={};if(n=jQuery.extend(1,{},this.templateHelperInstance.Components[e]),"undefined"!=typeof n.dependencies){var a=n.dependencies.length;jQuery.each(n.dependencies,function(s,r){var o=i.templateHelperInstance.ThirdParty.libraries[r];0==o.loaded?"undefined"==typeof o.type?jQuery.getScript(o.path).done(function(){i.templateHelperInstance.ThirdParty.markAsLoaded(r),a--,0==a&&i._factoryInitComponent(t,e,n)}):"googleMaps"===o.type&&jQuery.getScript("http://www.google.com/jsapi",function(){google.load("maps","3",{other_params:"sensor=false",callback:function(){i.templateHelperInstance.ThirdParty.markAsLoaded(r),i._factoryInitComponent(t,e,n)}})}):(a--,0==a&&i._factoryInitComponent(t,e,n))})}else this._factoryInitComponent(t,e,n)},_factoryInitComponent:function(t,e,i){i.Init(t,this.templateHelperInstance),this.activeComponents[e][this.activeComponents[e].length]=i}},TemplateHelper.Components={Slider:{templateHelperInstance:{},alias:"component_slider",containerObject:{},containerIdentifier:".component-slider",Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this._init()},_init:function(){var t=this;this.handleDisplay(),jQuery('link[rel="stylesheet/less"]').length>0&&setTimeout(function(){t.handleDisplay()},100),this.templateHelperInstance.EventManager.listenEvent("displayResize",this,"handleDisplay")},handleDisplay:function(){var t=jQuery(window).height();this.containerObject.next().hasClass("component-navigation")&&(t-=this.containerObject.next().height()),this.containerObject.find(".carousel-inner > .item").css("height",t)}},Menu:{templateHelperInstance:{},alias:"component_menu",containerObject:{},containerIdentifier:".component-navigation",Init:function(t,e){var i=this;this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.containerObject.attr("data-initial-height",this.containerObject.height()),this.containerObject.find("li a").click(function(t){var e=jQuery(jQuery(this).attr("href"));if(e.length>0){t.preventDefault();var n=e.offset().top;i.containerObject.height()<n&&(n-=i.containerObject.height()+10),jQuery("html, body").animate({scrollTop:n},1e3)}}),this.handleDisplay(),this.templateHelperInstance.EventManager.listenEvent("displayMovement",this,"handleDisplay")},handleDisplay:function(){var t=this.containerObject.offset().top,e="undefined"!==this.containerObject.attr("data-initial-height")?parseInt(this.containerObject.attr("data-initial-height")):this.containerObject.height();if(this.containerObject.hasClass("fixed")&&(t=parseInt(this.containerObject.attr("data-initial-top-position")),0>t&&(this.containerObject.removeClass("fixed"),t=this.containerObject.offset().top,this.containerObject.attr("data-initial-top-position",t),this.containerObject.addClass("fixed"))),jQuery(document).scrollTop()>t+e){if(this.containerObject.hasClass("fixed"))return;this.containerObject.attr("data-initial-top-position",t),this.containerObject.addClass("fixed"),this.containerObject.prev().hasClass("component-primary-line-separator")&&(this.containerObject.prev().addClass("fixed"),this.containerObject.addClass("with-top-separator")),jQuery("body").css("padding-top",parseFloat(jQuery("body").css("padding-top"))+e)}else this.containerObject.prev().hasClass("component-primary-line-separator")&&(this.containerObject.prev().removeClass("fixed"),this.containerObject.removeClass("with-top-separator")),this.containerObject.removeClass("fixed"),jQuery("body").css("padding-top",0)}},SeparatorMilestone:{templateHelperInstance:{},alias:"component-milestone-counters-1",containerObject:{},containerIdentifier:".milestone",containerServedClass:"served",displayedNumberIdentifier:"p.number > span",Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.handleDisplay(),this.templateHelperInstance.EventManager.listenEvent("displayMovement",this,"handleDisplay")},handleDisplay:function(){if(!this.containerObject.hasClass(this.containerServedClass)){var t=jQuery(window).scrollTop()+window.innerHeight;if(t>=this.containerObject.offset().top&&t<=this.containerObject.offset().top+window.innerHeight){var e=this;this.containerObject.addClass(this.containerServedClass),this.containerObject.find(this.displayedNumberIdentifier).each(function(){var t=jQuery(this),e=parseInt(jQuery(this).text(),10);jQuery({until:0}).animate({until:e},{duration:2e3,step:function(){t.text(Math.ceil(this.until))}})})}}}},SeparatorProgress:{templateHelperInstance:{},alias:"component_separator_progress",containerObject:{},containerIdentifier:".component-separator-progress",dependencies:[TemplateHelper.ThirdParty.libraries.knob.alias],Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.containerObject.find(".progress-bar-round[data-progress]").each(function(){jQuery(this).append('<input type="text" data-skin="tron" value="'+jQuery(this).attr("data-progress")+'"/>'),jQuery(this).find('input[value="'+jQuery(this).attr("data-progress")+'"]').knob({readOnly:!0,fgColor:"#FFFFFF",bgColor:"transparent",lineCap:"rounded",thickness:.1,width:100,height:100})})}},ProgressBar:{templateHelperInstance:{},alias:"separator-progress",containerObject:{},containerIdentifier:".progress-bar",containerServedClass:"served",from:0,Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.from=parseInt(this.containerObject.attr("aria-valuenow"),10),this.containerObject.attr("aria-valuenow",0),this.containerObject.css("width",0),this.handleDisplay(),this.templateHelperInstance.EventManager.listenEvent("displayMovement",this,"handleDisplay")},handleDisplay:function(){if(!this.containerObject.hasClass(this.containerServedClass)){var t=jQuery(window).scrollTop()+window.innerHeight;if(t>=this.containerObject.offset().top&&t<=this.containerObject.offset().top+window.innerHeight){this.containerObject.addClass(this.containerServedClass);var e=this.containerObject,i=this.from;jQuery({until:0}).animate({until:i},{duration:1e3,step:function(){e.attr("aria-valuenow",Math.ceil(this.until)),e.css("width",Math.ceil(this.until)+"%")}})}}}},SeparatorQuotation:{templateHelperInstance:{},alias:"component_separator_quotation",containerObject:{},containerIdentifier:".component-separator-quotation",quotationListObject:{},quotationListIdentifier:" ul > li",quotationDisplayEffect:"slideInLeft",quotationHideEffect:"slideOutRight",Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.quotationListObject=this.containerObject.find(this.quotationListIdentifier),this.quotationListObject.not(":first").hide(),this.quotationListObject.eq(0).addClass("current");var i=this;setInterval(function(){i.displayNextQuotation()},6e3)},displayNextQuotation:function(){var t=this,e=this.quotationListObject.length,i=this.quotationListObject.filter(".current").index(),n=i+1;n+1>e&&(n=0),this.quotationListObject.eq(i).removeClass("current animated "+this.quotationDisplayEffect).addClass("animated "+this.quotationHideEffect),setTimeout(function(){t.quotationListObject.eq(i).hide(),t.quotationListObject.eq(n).removeClass("animated "+t.quotationHideEffect).show().addClass("animated current "+t.quotationDisplayEffect)},500)}},SeparatorNotification:{templateHelperInstance:{},alias:"component_separator_notification",containerObject:{},containerIdentifier:".component-separator-notification",notificationListObject:{},notificationListIdentifier:" ul > li",notificationDisplayEffect:"slideInLeft",notificationHideEffect:"slideOutRight",Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.notificationListObject=this.containerObject.find(this.notificationListIdentifier),this.notificationListObject.not(":first").hide(),this.notificationListObject.eq(0).addClass("current");var i=this;setInterval(function(){i.displayNextNotification()},6e3)},displayNextNotification:function(){var t=this,e=this.notificationListObject.length,i=this.notificationListObject.filter(".current").index(),n=i+1;n+1>e&&(n=0),this.notificationListObject.eq(i).removeClass("current animated "+this.notificationDisplayEffect).addClass("animated "+this.notificationHideEffect),setTimeout(function(){t.notificationListObject.eq(i).hide(),t.notificationListObject.eq(n).removeClass("animated "+t.notificationHideEffect).show().addClass("animated current "+t.notificationDisplayEffect)},500)}},FeaturedWorks:{templateHelperInstance:{},alias:"component_featured_works",containerObject:{},containerIdentifier:".component-featured-works",carouselTargetIdentifier:"[data-featured-works-carousel]",carouselItemsAttribute:"data-featured-works-carousel",dependencies:[TemplateHelper.ThirdParty.libraries.owlCarousel.alias],Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this);var i=this;this.containerObject.find(this.carouselTargetIdentifier).each(function(){jQuery(this).owlCarousel({items:parseInt(jQuery(this).attr(i.carouselItemsAttribute)),itemsDesktop:[1199,3],itemsDesktopSmall:[979,3]})})}},EasyFilter:{templateHelperInstance:{},alias:"component_easy_filter",containerObject:{},containerIdentifier:"[data-component-easy-filter]",containerFilterIdentifierAttribute:"data-component-easy-filter",containerFilterTargetIdentifierAttribute:"data-component-easy-filtered",showEffect:["slideInRight","slideInLeft"],hideEffect:["slideOutRight","slideOutLeft"],showEffectStringList:"slideInRight slideInLeft",hideEffectStringList:"slideOutRight slideOutLeft",filterAttribute:"data-filter",filterIdentifier:"[data-filter]",filteredAttribute:"data-filtered",filteredIdentifier:"[data-filtered]",filterObject:{},filteredObject:{},Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this._setupFilterAndFiltered(),this._setFilter()},_setupFilterAndFiltered:function(){this.filterAttribute="undefined"!=typeof this.containerObject.attr(this.containerFilterIdentifierAttribute)?this.containerObject.attr(this.containerFilterIdentifierAttribute):this.filterAttribute,this.filteredAttribute="undefined"!=typeof this.containerObject.attr(this.containerFilterTargetIdentifierAttribute)?this.containerObject.attr(this.containerFilterTargetIdentifierAttribute):this.filteredAttribute,this.filterIdentifier="["+this.filterAttribute+"]",this.filteredIdentifier="["+this.filteredAttribute+"]",this.filterObject=this.containerObject.find(this.filterIdentifier),this.filteredObject=this.containerObject.find(this.filteredIdentifier)},_setFilter:function(){var t=this;this.filterObject.bind("click."+this.alias+" touchstart."+this.alias,function(e){if(e.preventDefault(),"*"==jQuery(this).attr(t.filterAttribute))t.showListObject(t.filteredObject);else{var i="["+t.filteredAttribute+'="'+jQuery(this).attr(t.filterAttribute)+'"]',n=t.filteredObject.not(i);t.hideListObject(n),setTimeout(function(){n.hide(),t.showListObject(t.filteredObject.filter(i))},200)}})},ClearAnimations:function(t){t.removeClass("animated "+this.showEffectStringList+" "+this.hideEffectStringList)},hideListObject:function(t){var e=this;this.ClearAnimations(t),t.each(function(){var t=e.hideEffect instanceof Array?e.hideEffect[Math.floor(Math.random()*e.hideEffect.length)]:e.hideEffect;jQuery(this).show(),jQuery(this).addClass("animated "+t)})},showListObject:function(t){var e=this;this.ClearAnimations(t),t.each(function(){var t=e.showEffect instanceof Array?e.showEffect[Math.floor(Math.random()*e.showEffect.length)]:e.showEffect;jQuery(this).show(),jQuery(this).addClass("animated "+t)})}},ContactEmailAndMap:{templateHelperInstance:{},alias:"component_contact",containerObject:{},containerIdentifier:".component-contact",mapContainerIdentifierAttribute:"data-component-map-target",mapContainerIdentifier:"",mapContainerObject:{},dependencies:[TemplateHelper.ThirdParty.libraries.googleMapExternal.alias],mapConfiguration:{zoom:15,markers:[{latitude:0,longitude:0,html:"",popup:!1,flat:!0,icon:{iconsize:[32,37],iconanchor:[15,30],shadowsize:[32,37],shadowanchor:null}}],panControl:!1,zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!0,scrollwheel:!1,styles:[{stylers:[{gamma:1.58}]}],onComplete:function(){"undefined"!=typeof objectInstance&&objectInstance._onCompleteHandler()}},mapConfigurationLatitudeAttribute:"data-component-map-configuration-latitude",mapConfigurationLongitudeAttribute:"data-component-map-configuration-longitude",Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.mapContainerIdentifier=this.containerObject.attr(this.mapContainerIdentifierAttribute),this.mapContainerObject=this.containerObject.find(this.mapContainerIdentifier),this.mapConfiguration.markers[0].latitude=parseFloat(this.containerObject.attr(this.mapConfigurationLatitudeAttribute)),this.mapConfiguration.markers[0].longitude=parseFloat(this.containerObject.attr(this.mapConfigurationLongitudeAttribute)),this.templateHelperInstance.ThirdParty.loadLibrary(TemplateHelper.ThirdParty.libraries.googleMap.alias,this,"_onjQueryMapSupportInclude")},_onjQueryMapSupportInclude:function(){this._setMapType(),this._setMap()},_setMapType:function(){this.mapConfiguration.maptype=google.maps.MapTypeId.ROADMAP},_setMap:function(){var t=this;this.mapContainerObject.gMap(this.mapConfiguration)},_onCompleteHandler:function(){var t=this,e=this.mapContainerObject.data("gmap").gmap;window.onresize=function(){google.maps.event.trigger(e,"resize"),t.gMap("fixAfterResize")}}},DropDownSelect:{templateHelperInstance:{},alias:"component_drop_down_select",containerObject:{},containerIdentifier:".component-drop-down-select",labelText:"Label",labelIdentifier:function(t){return"undefined"==typeof t.attr("id")?null:jQuery('label[for="'+t.attr("id")+'"]')},labelObject:{},placeholderAttribute:"data-component-placeholder",placeholderText:"Select ...",selectOptions:{},dropDownContainerObject:{},Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this._settings(),this._displayDropDown(),this._setInteraction()},_settings:function(){var t=this;t.selectOptions={},"undefined"!=typeof this.containerObject.attr(this.placeholderAttribute)&&(this.placeholderText=this.containerObject.attr(this.placeholderAttribute)),this.labelObject=this.labelIdentifier(this.containerObject),this.labelObject.length>0&&null!==this.labelObject&&(this.labelText=this.labelObject.html()),this.containerObject.find("> option").each(function(){t.selectOptions[jQuery(this).val()]=jQuery(this).text()})},_displayDropDown:function(){this.containerObject.after(this._getDropDownHTML()),this.containerObject.hide(),this.labelObject.hide(),this.dropDownContainerObject=this.containerObject.next()},_setInteraction:function(){var t=this;this.dropDownContainerObject.find("ul > li > a").bind("click touchstart",function(e){e.preventDefault();var i=jQuery(this).attr("href").slice(1),n=jQuery(this).text();t.dropDownContainerObject.find("span.label-text").html(n),t.containerObject.val(i)})},_getDropDownHTML:function(){var t=this,e='<div class="dropdown"><span>'+this.labelText+'</span><a data-toggle="dropdown" href="#"><span class="label-text">'+this.placeholderText+'</span><span class="fa fa-angle-down"></span></a><ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">';return jQuery.each(this.selectOptions,function(t,i){e+='<li><a href="#'+t+'">'+i+"</a></li>"}),e+="</ul></div>"}},Chosen:{templateHelperInstance:{},alias:"component_chosen_select",containerObject:{},containerIdentifier:".chosen-select",dependencies:[TemplateHelper.ThirdParty.libraries.chosen.alias],Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.containerObject.chosen({})}},ElegantHeight:{templateHelperInstance:{},alias:"component_elegant_height",containerObject:{},containerIdentifier:"[data-elegant-height]",targetAttributeIdentifier:"data-elegant-height",targetObjectList:{},Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.targetObjectList=this.containerObject.find(this.containerObject.attr(this.targetAttributeIdentifier)),this.ArrangeTargetObjectList();var i=this;this.targetObjectList.find("img").load(function(){i.ArrangeTargetObjectList()}),this.templateHelperInstance.EventManager.listenEvent("displayResize",this,"ArrangeTargetObjectList")},ArrangeTargetObjectList:function(){this.targetObjectList.css("height","auto");var t=Math.ceil(parseFloat(this.targetObjectList.eq(0).css("height")));this.targetObjectList.each(function(){t=parseFloat(jQuery(this).css("height"))>t?Math.ceil(parseFloat(jQuery(this).css("height"))):t}),this.targetObjectList.css("height",t)}},PortfolioGallery:{templateHelperInstance:{},alias:"component_container_slider",containerObject:{},containerIdentifier:".component-container-slider",listViewElementsIdentifier:"> .list-view-image > li",listViewObjectList:{},listViewImagesObjectList:{},listViewActiveElementClass:"active-image-item",imageViewContainerIdentifier:"[data-container-slider-image-container]",imageViewContainerObject:{},imageViewElementsIdentifier:"[data-container-slider-image-target]",imageViewObjectList:{},imageViewSwitcherNextIdentifier:"[data-container-slider-switch-next]",imageViewSwitcherNextObject:{},imageViewSwitcherPreviousIdentifier:"[data-container-slider-switch-previous]",imageViewSwitcherPreviousObject:{},Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.listViewObjectList=this.containerObject.find(this.listViewElementsIdentifier),this.imageViewContainerObject=this.containerObject.find(this.imageViewContainerIdentifier),this.imageViewObjectList=this.imageViewContainerObject.find(this.imageViewElementsIdentifier),this.imageViewSwitcherNextObject=this.containerObject.find(this.imageViewSwitcherNextIdentifier),this.imageViewSwitcherPreviousObject=this.containerObject.find(this.imageViewSwitcherPreviousIdentifier),this._bindListViewActions(),this._assignImagesObjectListAndHandleSize(),this.ArrangeImageViewObject(),this.templateHelperInstance.EventManager.listenEvent("displayResize",this,"ArrangeImageViewObject"),this._displayImageAtPath(this.imageViewObjectList.eq(0).attr("src")),this.templateHelperInstance.ThirdParty.loadLibrary(TemplateHelper.ThirdParty.libraries.touchSwipe.alias,this,"_onTouchSwipeSupport")},_bindListViewActions:function(){var t=this;this.listViewObjectList.find("> a").bind("click touchstart",function(e){e.stopImmediatePropagation(),e.preventDefault(),t._displayImageAtPath(jQuery(this).attr("href"))}),this.imageViewSwitcherNextObject.bind("click touchstart",function(e){e.stopImmediatePropagation(),e.preventDefault(),t._displayNextImage()}),this.imageViewSwitcherPreviousObject.bind("click touchstart",function(e){e.stopImmediatePropagation(),e.preventDefault(),t._displayPreviousImage()})},_displayNextImage:function(){var t=this.listViewObjectList.filter("."+this.listViewActiveElementClass);this._displayImageAtPath(0!==t.next().length?t.next().find("> a").attr("href"):this.listViewObjectList.eq(0).find("> a").attr("href"))},_displayPreviousImage:function(){var t=this.listViewObjectList.filter("."+this.listViewActiveElementClass);this._displayImageAtPath(0!==t.prev().length?t.prev().find("> a").attr("href"):this.listViewObjectList.eq(this.listViewObjectList.length-1).find("> a").attr("href"))},_displayImageAtPath:function(t){this.listViewObjectList.removeClass(this.listViewActiveElementClass),this.listViewObjectList.find('> a[href="'+t+'"]').parent().addClass(this.listViewActiveElementClass);var e=this.imageViewObjectList.filter('[src="'+t+'"]');return this.imageViewContainerObject.css("transform","translateX("+e.index()*-e.width()+"px)"),!0},ArrangeImageViewObject:function(){var t=this.imageViewObjectList.filter(":visible").eq(0).width();this.imageViewContainerObject.css("width","100%"),this.imageViewObjectList.css("width","100%"),this.imageViewContainerObject.css("width",t*(this.imageViewObjectList.length+1)),this.imageViewObjectList.css("width",t)},_assignImagesObjectListAndHandleSize:function(){this.listViewImagesObjectList=this.listViewObjectList.find("img"),this.ArrangeImageObjectList();var t=this;this.listViewImagesObjectList.load(function(){t.ArrangeImageObjectList()}),this.templateHelperInstance.EventManager.listenEvent("displayResize",this,"ArrangeImageObjectList")},ArrangeImageObjectList:function(){this.listViewImagesObjectList.css("height","auto");var t=Math.ceil(parseFloat(this.listViewImagesObjectList.eq(0).css("height")));this.listViewImagesObjectList.each(function(){t=parseFloat(jQuery(this).css("height"))>t?Math.ceil(parseFloat(jQuery(this).css("height"))):t}),this.listViewImagesObjectList.css("height",t)},_onTouchSwipeSupport:function(){var t=this;this.imageViewObjectList.swipe({swipeStatus:function(e,i,n,a,s,r){t.imageViewContainerObject.hasClass("touch-active")||t.imageViewContainerObject.addClass("touch-active"),"end"==i||"cancel"==i?(t.imageViewContainerObject.removeClass("touch-active"),jQuery(this).width()/4<a||a>100?"right"==n?t._displayPreviousImage():"left"==n&&t._displayNextImage():t.imageViewContainerObject.css("transform","translateX("+jQuery(this).index()*-jQuery(this).width()+"px)")):"move"==i&&t.imageViewContainerObject.css("transform","translateX("+(jQuery(this).index()*-jQuery(this).width()-a*("right"==n?-1:1))+"px)")},threshold:0,maxTimeThreshold:2500,fingers:1,allowPageScroll:"vertical"})}},EasyMath:{templateHelperInstance:{},alias:"component_easy_math",containerObject:{},containerIdentifier:"[data-component-easy-math]",containerDisplayTargetAttributeIdentifier:"data-component-easy-math",displayTargetIdentifier:"",displayTargetObject:{},operationTargetOperationAttribute:"data-component-easy-math-action",operationTargetIdentifier:"[data-component-easy-math-action]",operationTargetObjectList:{},containerMinimumValueAttribute:"data-component-easy-math-min-value",minimumValue:0,Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.displayTargetIdentifier=this.containerObject.attr(this.containerDisplayTargetAttributeIdentifier),this.displayTargetObject=this.containerObject.find(this.displayTargetIdentifier),this.operationTargetObjectList=this.containerObject.find(this.operationTargetIdentifier),this.minimumValue="undefined"!=typeof this.containerObject.attr(this.containerMinimumValueAttribute)?parseFloat(this.containerObject.attr(this.containerMinimumValueAttribute)):this.minimumValue;var i=this;this.operationTargetObjectList.bind("click touchstart",function(t){t.stopImmediatePropagation(),t.preventDefault(),i.UpdateWithCalculation(jQuery(this).attr(i.operationTargetOperationAttribute))})},UpdateWithCalculation:function(calculation){var currentValue=this.displayTargetObject.is(":input")?this.displayTargetObject.val():this.displayTargetObject.html();currentValue=parseFloat(currentValue);var result=eval(currentValue+calculation);result<this.minimumValue&&(result=this.minimumValue),this.displayTargetObject.is(":input")?this.displayTargetObject.val(result):this.displayTargetObject.html(result)}},LabelActiveClass:{templateHelperInstance:{},alias:"component_label_active_class",containerObject:{},containerIdentifier:"[data-label-active-class]",containerActiveClassAttribute:"data-label-active-class",activeClass:"",correspondingInputObject:{},Init:function(t,e){if(this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.activeClass=this.containerObject.attr(this.containerActiveClassAttribute),"undefined"!=typeof this.containerObject.attr("for")){var i=jQuery("#"+this.containerObject.attr("for"));if(i.length>0){this.correspondingInputObject=i,this._checkCorrespondingInputObject();var n=this;this.correspondingInputObject.bind(this.alias,function(){n._checkCorrespondingInputObject()}),this.correspondingInputObject.bind("change",function(){jQuery('input[name="'+n.correspondingInputObject.attr("name")+'"]').trigger(n.alias)})}}},_checkCorrespondingInputObject:function(){this.correspondingInputObject.is(":checked")?this.containerObject.addClass(this.activeClass):this.containerObject.removeClass(this.activeClass)}},ProportionalSchema:{templateHelperInstance:{},alias:"component_proportional_schema",containerObject:{},containerIdentifier:"[data-component-proportional-schema]",schemaGroupIdentifier:"[data-proportional-schema-group]",schemaGroupListObject:{},schemaElementIdentifier:"[data-proportional-schema-element]",schemaElementPercentAttribute:"data-proportional-schema-element",schemaElementListObject:{},Init:function(t,e){this.containerObject=t,this.templateHelperInstance=e,this.containerObject.data(this.alias,this),this.schemaGroupListObject=this.containerObject.find(this.schemaGroupIdentifier),this.schemaElementListObject=this.containerObject.find(this.schemaElementIdentifier);var i=this;this.containerObject.find("img").load(function(){i.Arrange()}),this.templateHelperInstance.EventManager.listenEvent("displayResize",this,"Arrange"),i.Arrange()},Arrange:function(){this._reset(),this._arrangeGroupObjectOnHeight(this._getGroupMaxHeight())},_arrangeGroupObjectOnHeight:function(t){var e=this;this.schemaGroupListObject.each(function(){e._arrangeGroupOnHeight(jQuery(this),t)})},_arrangeGroupOnHeight:function(t,e){var i=this;t.find(this.schemaElementIdentifier).each(function(){var t=parseFloat(jQuery(this).attr(i.schemaElementPercentAttribute));jQuery(this).css("height",e*t/100)})},_getGroupMaxHeight:function(){var t=0;return this.schemaGroupListObject.each(function(){t=jQuery(this).height()>t?jQuery(this).height():t}),console.log(t),t},_reset:function(){this.schemaElementListObject.css("height","")}}},jQuery(document).ready(function(){TemplateHelper.Init()});