ahmedhamdy

',d=k.lazyLoad?a("
",{class:"owl-video-tn "+j,srcType:c}):a("
",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("
",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a(''),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('
').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1, animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('
'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("
").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('
'),LoadingMore=!0;var t=e.data("loadmore");AjaxRequest({url:HomeURL+"/AjaxCenter/Loadmore_two/"+t+"/",dataType:"json",success:function(t){$(".-newsLoaded").remove(),3==LoadedCounter?(e.attr("data-autoloaded",!1),e.data("autoloaded",!1),$('.PostsScrollLoader[data-more-click="'+e.data("uniqid")+'"]').show()):5==LoadedCounter&&(LoadedCounter=1,e.attr("data-autoloaded",!0),e.data("autoloaded",!0),$('[data-more-click="'+e.data("uniqid")+'"]').hide()),$('[data-more-click="'+e.data("uniqid")+'"]').removeClass("isloader"),LoadingMore=!1,e.append(t.output),e.data("loadmore",t.arguments),null!=t.end&&1==t.end&&(e.attr("data-autoloaded",!1),e.data("autoloaded",!1),e.attr("data-finish",!0),$('[data-more-click="'+e.data("uniqid")+'"]').hide())}})}$(window).scroll(ScrollListener),$("body").on("click","[data-more-click]",(function(e){e.preventDefault();var t=$('.-ScrollerCenter[data-uniqid="'+$(this).data("more-click")+'"]');0==LoadingMore&&0==t.data("finish")&&(LoadedCounter=LoadedCounter<3?4:LoadedCounter+1,$(this).addClass("isloader"),MoreAjax(t))}));var TabIsClick=!1,Timeout=!1;$("body").on("click","[data-tabs]",(function(){var e,t,a,o,s;e=$(this),tabType=e.data("tabs"),a=e.data("type"),o=e.data("cats"),s=e.data("number"),$(this).data("uniq"),t=$(".post-model-"+a),e.addClass("active").siblings().removeClass("active");var r=HomeURL+"/AjaxCenter/RelatedPosts/";t.addClass("-loading"),TabIsClick=!0,clearTimeout(Timeout),Timeout=setTimeout((function(){AjaxRequest({url:r,dataType:"json",type:"POST",data:{tabs:tabType,type:a,cats:o,number:s},success:function(e){$(t).html(e.output),$(t).removeClass("-loading")}})}),150)}));TabIsClick=!1,Timeout=!1;$("body").on("click","[data-hometab]",(function(){var e,t;e=$(this),tabType=e.data("hometab"),NowUniq=$(this).data("uniq"),term=e.data("term"),t=$('.-ScrollerCenter[data-uniqid="'+NowUniq+'"]'),$(t).html('

'),e.addClass("active").siblings().removeClass("active");var a=HomeURL+"/AjaxCenter/singletabs/";tabType!=TabIsClick&&(t.addClass("-loading"),TabIsClick=!0,clearTimeout(Timeout),Timeout=setTimeout((function(){AjaxRequest({url:a,dataType:"json",type:"POST",data:{hometab:tabType,term:term},success:function(e){tabType=TabIsClick,$(t).html(e.output),$(t).removeClass("-loading")}})}),150))})),$(window).on("scroll",(function(){$(window).scrollTop()>=$("header").outerHeight()?($(".btn-phone").addClass("show"),$(".btn-whatsapp").addClass("show")):($(".btn-phone").removeClass("show"),$(".btn-whatsapp").removeClass("show"))})),$("body").on("click",".menu_bar .fa-bars",(function(e){$(".menu-nav").addClass("open"),$(".menu_bar").addClass("icon"),$(".search_header form").removeClass("active"),$("#openSEarch").removeClass("close")})),$("body").on("click",".menu_bar .fa-xmark",(function(e){$(".menu-nav").removeClass("open"),$(".menu_bar").removeClass("icon")})),function(e,t){"use strict";var a=function(e){this.elem=e};a.init=function(){var e,o=t.querySelectorAll("[data-sharer]"),s=o.length;for(e=0;e0?"?":"";for(a=0;a i").each((function(t,a){$(a).is(e.target)||0!==$(a).has(e.target).length||$(a).nextAll().hasClass("active")&&($(a).parent().is(e.target)||0!==$(a).parent().has(e.target).length)||$(a).removeClass("active")}))})),$("body").on("mouseover",".RatingReview > i",(function(e){$(this).prevAll().addClass("active"),$(this).addClass("active")})),$("body").on("click",".RatingReview:not(.justView) > i",(function(){var e=$(this);if($(".RatingReview > i").removeClass("fixedactive active"),e.prevAll().addClass("fixedactive"),e.addClass("fixedactive"),null!=e.closest(".RatingReview").data("save-id")){var t=e.closest(".RatingReview").data("save-id"),a=e.closest(".RatingReview").data("save-type"),o=e.data("rate"),s=$('.-rating-value[data-post-id="'+t+'"]'),r=$.cookie("RateV1-"+a+"-"+t);AjaxRequest({url:HomeURL+"/AjaxCenter/RateAjax/",dataType:"json",type:"POST",data:{id:t,Type:a,LastValueRate:r,RateValue:o},success:function(e){s.html(e.TotalValue),$(".-single-bottom-list-Rate").length>0&&$(".-single-bottom-list-Rate").show(),$(".Rate-New-Mixers").length>0&&$(".Rate-New-Mixers").show(),$('.-Js-Rate-AverageItems[data-post-id="'+t+'"]').length>0&&null!=e.output&&$('.-Js-Rate-AverageItems[data-post-id="'+t+'"]').html(e.output),$('.-rating-suptitle[data-post-id="'+t+'"]').length>0&&null!=e.RateUserCount_v1&&$('.-rating-suptitle[data-post-id="'+t+'"] em').html(e.RateUserCount_v1),$('.-YC-Review-Change[data-review-change="'+t+'"]').length>0&&$('.-YC-Review-Change[data-review-change="'+t+'"] > i').each((function(t,a){$(a).data("rate")<=e.TotalValue?$(a).addClass("fixedactive"):$(a).removeClass("fixedactive")}))}}),$.cookie("RateV1-"+a+"-"+t,o)}else $(this).closest(".RateComment").find(".product-item-info-stats-ratings > p > .-rating-value").text($(this).data("rate")+".0"),$(this).closest(".RateComment").find("input").val($(this).data("rate"))})),$("body").on("click",".closepopup",(function(){$(".popup-call").remove()})),$("body").on("click",".popup-call",(function(){$(".popup-call").remove()})),$("body").on("click",".box-block",(function(e){e.stopPropagation()})),$(window).on("scroll",(function(){$(window).scrollTop()>=800?$(".popup-call").addClass("show"):$(".popup-call").removeClass("show")})),$("body").on("click",".CommentsList>.CommentsList__Title",(function(){$(this).toggleClass("clickcomment"),$(".CommentsListInner").toggleClass("openComment")}));TabIsClick=!1,Timeout=!1;function __loc(e){return e}function SubmitComment(e,t=!1){if(0!=t&&13==t.keyCode||0==t){$(e).find(".alerts").html(""),$(e).find(".necessary").removeClass("necessary");var a=$(e).serialize(),o=$(e).serializeArray(),s={};$.each(o,(function(e,t){s[t.name]=t.value})),$(e).find(".alerts").html("");var r=!0;return null==s.user_name||null!=s.user_name&&""==s.user_name?0==Currentuser_Logged?(r=!1,$(e).find('.-comments-form-inputs-area[data-comment-field="user_name"]').addClass("necessary")):(a+="&user_name="+Currentuser_display_name,s.user_name=Currentuser_display_name):$(e).find('.-comments-form-inputs-area[data-comment-field="user_name"]').removeClass("necessary"),null==s.email||null!=s.email&&""==s.email?0==Currentuser_Logged?(r=!1,$(e).find('.-comments-form-inputs-area[data-comment-field="email"]').addClass("necessary")):(a+="&email="+Currentuser_email,s.email=Currentuser_email):$(e).find('.-comments-form-inputs-area[data-comment-field="email"]').removeClass("necessary"),null==s.comment||null!=s.comment&&""==s.comment?(r=!1,$(e).find('.-comments-form-inputs-area[data-comment-field="comment"]').addClass("necessary")):$(e).find('.-comments-form-inputs-area[data-comment-field="comment"]').removeClass("necessary"),(null==$(e).data("id")||null!=$(e).data("id")&&""==$(e).data("id"))&&(r=!1),""==$(e).find(".RateValue").val()&&0==$(e).attr("data-parent")&&(r=!1,$(e).find(".RateComment").addClass("necessary")),0==r?$(e).find(".alerts").append('
'+__loc("يرجي ملأ الحقول المطلوبة (*)")+"
"):(a+="&postID="+$(e).data("id"),null!=$(e).data("parent")&&""!=$(e).data("parent")&&(a+="&parent="+$(e).data("parent")),$(".NoComments").remove(),$(e).addClass("loading"),$(e).append('
'),AjaxRequest({url:HomeURL+"/AjaxCenter/AddComment/",type:"POST",data:a,dataType:"json",success:function(t){null==t.error&&($(e).removeClass("loading"),$(e).find(".loader").remove(),$(e).trigger("reset"),"0"==$(e).attr("data-parent")?$(".CommentsListInner").prepend(t.output):$("#comment-"+$(e).attr("data-parent")).after('
    '+t.output+"
"))}}),Currentuser_Logged),!1}}function ReplyComment(e){var t=$(e).data("replay-arguments");t=atob(t),t=jQuery.parseJSON(t),$("form.CommentsFormInner").attr("data-parent",$(e).data("comment")),$(".ReplyCommentPreview").remove(),$("form.CommentsFormInner").prepend('

'+__loc("رد علي")+" "+t.UserName+"

"+t.Comment_content+"

"),$("form.CommentsFormInner > textarea").focus();setTimeout((function(){var e=$(".ReplyCommentPreview").offset().top;$("body,html").animate({scrollTop:e},500)}),100)}$("body").on("click","[data-cityaction]",(function(){var e;e=$(this),term=e.data("cityid"),e.addClass("active").siblings().removeClass("active");var t=HomeURL+"/AjaxCenter/citytabs/";clearTimeout(Timeout),Timeout=setTimeout((function(){AjaxRequest({url:t,dataType:"json",type:"POST",data:{citytabs:term},success:function(e){$(".post-model-").html(e.output)}})}),150)})),$("body").on("click",".search_header",(function(){$(".search_box").slideToggle(200),$("root").toggleClass("expand")})),$("body").on("click",".close_search",(function(){$(".search_box").slideUp(200),$("root").removeClass("expand")})),$(".header-menu > li > a ").addClass("activable"),$(".header-menu > li > a ").addClass("hoverable"),$("body").on("click",".RatingReview:not(.justView) > i",(function(){var e=$(this);if($(".RatingReview > i").removeClass("fixedactive active"),e.prevAll().addClass("fixedactive"),e.addClass("fixedactive"),null!=e.closest(".RatingReview").data("save-id")){var t=e.closest(".RatingReview").data("save-id"),a=e.closest(".RatingReview").data("save-type"),o=e.data("rate"),s=$('.-rating-value[data-post-id="'+t+'"]'),r=$.cookie("RateV1-"+a+"-"+t);AjaxRequest({url:HomeURL+"/AjaxCenter/RateAjax/",dataType:"json",type:"POST",data:{id:t,Type:a,LastValueRate:r,RateValue:o},success:function(e){s.html(e.TotalValue),$(".-single-bottom-list-Rate").length>0&&$(".-single-bottom-list-Rate").show(),$(".Rate-New-Mixers").length>0&&$(".Rate-New-Mixers").show(),$('.-Js-Rate-AverageItems[data-post-id="'+t+'"]').length>0&&null!=e.output&&$('.-Js-Rate-AverageItems[data-post-id="'+t+'"]').html(e.output),$('.-rating-suptitle[data-post-id="'+t+'"]').length>0&&null!=e.RateUserCount_v1&&$('.-rating-suptitle[data-post-id="'+t+'"] em').html(e.RateUserCount_v1),$('.-YC-Review-Change[data-review-change="'+t+'"]').length>0&&$('.-YC-Review-Change[data-review-change="'+t+'"] > i').each((function(t,a){$(a).data("rate")<=e.TotalValue?$(a).addClass("fixedactive"):$(a).removeClass("fixedactive")}))}}),$.cookie("RateV1-"+a+"-"+t,o)}else $(this).closest(".RateComment").find(".product-item-info-stats-ratings > p > .-rating-value").text($(this).data("rate")+".0"),$(this).closest(".RateComment").find("input").val($(this).data("rate"))}));var aa=0;function PopoverActions(e){OvelayPopover(e.data("popover-context"),e)}function OvelayPopover(e,t=!1){var a=UniqID(),o=$.base64.atob(e,!0);if(o=jQuery.parseJSON(o),0===$(".Context--overlays").length){var s="";s+='
',s+='
',s+='
',s+='
',s+='
',s+='
',s+='
',s+="",s+='',s+="
",s+='
',s+='
',s+="
",s+="
",s+="
",s+="
",s+="
",s+="
",$("body").append(s)}AjaxRequest({url:HomeURL+"/AjaxCenter/PopoverActions/",dataType:"json",type:"POST",data:{Arguments:e},success:function(e){null!=e.output&&($(".Context--overlays .OverParent-Innet--Context").html(e.output),$(".Context--overlays").removeClass("loading-popover-for--"+o.ActionBlade),1===document.querySelectorAll(".inner--Context---overlays #example3").length&&openPopup())}})}function PopoverTools(e){var t=e.data("tool-type");if("Closse--Popover"==t)e.closest(".Context--overlays").remove();else if("Maximize--Popover"==t){var a=$("body").outerWidth()-80;e.closest(".Context--overlays").addClass("showis--fullwidh").css({"--sv-widht":a+"px"}),e.css({"pointer-events":"none",opacity:"0.7"}),e.next().css({"pointer-events":"auto",opacity:"1"})}else"Minimize--Popover"==t&&(e.closest(".Context--overlays").removeClass("showis--fullwidh"),e.css({"pointer-events":"none",opacity:"0.7"}),e.prev().css({"pointer-events":"auto",opacity:"1"}))}$(document).mouseup((function(e){var t=$(".Parent-Boxed--Context---overlays").last();t.is(e.target)||0!==t.has(e.target).length||0!==$("iti.iti--container").length||0!=ISMobile||0!==$(".clr-open").length||t.closest(".Context--overlays").remove()})),$("body").on("click",'[data-button="Popover--Action"],[data-button="popover--tool"]',(function(e){e.preventDefault();var t=$(this);"Popover--Action"==t.data("button")&&PopoverActions($(this)),"popover--tool"==t.data("button")&&PopoverTools($(this))})),page=1,count=1,$(".loadmore").on("click",(function(){var e=$(this),t=($(this).parent().parent().find("[data-loadmore-args]"),$(this).data("type"));e.prepend('
'),e.addClass("isloader"),AjaxRequest({url:HomeURL+"/AjaxCenter/Loadmore/",type:"POST",data:{model:$(this).data("type"),number_posts:$(this).data("number_posts"),block:$(".postmodel-model-"+t).data("loadmore-block"),page:page},success:function(a){e.removeClass("isloader"),e.find(".-yc-inner-mini-loader").remove(),Loadingmore=!1,a.output?($(".loadmore").closest(".container").find(".postmodel-model-"+t).append(a.output),count++,page++):$(".loadmore").hide()}})})),$("body").on("click","[data-trigger-action]",(function(){var e=$(this).data("trigger-action");$('a[data-trigger-url="'+e+'"]').length>0&&(window.location.href=$('a[data-trigger-url="'+e+'"]').attr("href"))}));var btn=$("#button");$(window).scroll((function(){$(window).scrollTop()>300?btn.addClass("show"):btn.removeClass("show")})),btn.on("click",(function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},"300")}));var FixedStaff=function(){var e=$("header");$(".page-concept").length>0&&($(window).scrollTop()>150?e.addClass("fixed"):e.removeClass("fixed"))};$(window).on("scroll",FixedStaff),$(window).on("load",FixedStaff),$(window).ajaxSuccess(FixedStaff);FixedStaff=function(){var e=$("header");$(window).scrollTop()>150?e.addClass("fixed"):e.removeClass("fixed")};if($(window).on("scroll",FixedStaff),$(window).on("load",FixedStaff),$(window).ajaxSuccess(FixedStaff),!ISMobile){var prevScrollpos=window.pageYOffset;window.onscroll=function(){var e=window.pageYOffset,t=$("header"),a=$("body"),o=$(".-single-parent-flexes--content");prevScrollpos>e?o.length>0&&o.offset().top+o.outerHeight()>e&&e>o.offset().top?(t.addClass("hidemenu"),a.addClass("hidemenu")):(t.removeClass("hidemenu"),a.removeClass("hidemenu")):(t.addClass("hidemenu"),a.addClass("hidemenu"));prevScrollpos=e,CounterUP()}}function CounterUP(){$("[counterup]").each((function(e,t){if(null==$(t).data("loded-item")){var a=$(t).offset().top-$(window).height()-100;$(window).scrollTop()>=a&&($({Counter:0}).animate({Counter:$(t).text()},{duration:5e3,easing:"swing",step:function(){if(null!=$(t).data("round")){parseInt(""+100*this.Counter);$(t).text(Math.ceil(this.Counter))}else $(t).text(Math.ceil(this.Counter))}}),$(t).data("loded-item",!0))}}))}function Closse__searching(e){$(".search_header").removeClass("searchopen")}function open__searching(e){if(e&&e.data("searching-argums")){var t="";if(0==$(".search_header").length){var a=e.data("searching-argums"),o=$.base64.atob(a,!0);t+='
',t+='
',t+='
',t+="

"+(o=jQuery.parseJSON(o)).search_title+"

",t+='
',t+='
',t+='",t+='',t+='
',t+='",t+="
",t+="
",t+="
",$("body").append(t),setTimeout((function(){$(".search_header form").on("submit",(function(e){""===$(this).find('input[name="s"]').val().trim()&&e.preventDefault()}))}),100)}$("search_header").show()}}function Closse__VideoPopOver(e){e.closest(".video--popover").remove()}function OpenVideoPopOver(e){var t=e.data("video"),a=$.base64.atob(t,!0);a=jQuery.parseJSON(a),VideoPopover="",VideoPopover+='
',VideoPopover+='
',VideoPopover+='
',VideoPopover+='
',VideoPopover+='
',VideoPopover+=a,VideoPopover+="
",VideoPopover+="
",VideoPopover+="
",$("body").append(VideoPopover)}$("body").on("click","[data-button]",(function(e){e.preventDefault();var t=$(this);"open-searching"==t.data("button")&&open__searching($(this)),"closse--searching"==t.data("button")&&Closse__searching($(this))})),$("body").on("click",'[data-button="open-searching"]',(function(e){$(".search_header").addClass("searchopen")})),$("body").on("click","[data-click-video]",(function(){var e,t;t=(e=$(this)).data("click-video");var a=atob(t);a=jQuery.parseJSON(a),e.parent().html(a)})),$("body").on("click","[data-button]",(function(e){e.preventDefault();var t=$(this);"open-video"==t.data("button")&&OpenVideoPopOver($(this)),"closse--video"==t.data("button")&&Closse__VideoPopOver($(this))})),$('a[target="_blank"]').each((function(){$(this).attr("rel","nofollow noopener noreferrer")}));