function ChangeImages(n,t,i){var r=t.split("#"),u=i.split("#");$(".imgPoint").removeAttr("style");$("#"+r[1]).attr("src",r[0]);$("#"+u[1]).attr("src",u[0]);n.style.border="1px solid green"}function ChangeImage(n,t){var i=t.split("#");$(".imgPoint").removeAttr("style");$("#"+i[1]).attr("src",i[0]);n.style.border="1px solid green"}function DisplayMainMatchPreferences(n,t,i,r){return $("."+t).hide(),$("#"+i).show(),$("#"+r).show(),$(".tabUl li a").removeClass("active"),n.className="active",!1}function ChangeProductImages(n,t,i,r,u,f){$("."+f).removeAttr("style");$("#"+r).attr("src",t);$("#"+u).text(i);n.style.border="1px solid green"}function ShowHideSizeInfo(n,t){var i=$("#"+t);i.hasClass("hidesize")?(i.removeClass("hidesize"),i.addClass("showsize"),n.text="- Size Info"):(i.removeClass("showsize"),i.addClass("hidesize"),n.text="+ Size Info")}function ShowHideSpecs(n,t){var r=t.text.substr(2),u="#"+n,i=$(u);i.hasClass("hideSpecs")?(i.removeClass("hideSpecs"),i.addClass("showSpecs"),t.text="- "+r):(i.removeClass("showSpecs"),i.addClass("hideSpecs"),t.text="+ "+r)}var userCountry="",currentId="@Model.Content.Id";$(document).ready(function(){$(window).scroll(function(){$(this).scrollTop()>100?$(".scrollToTop").fadeIn():$(".scrollToTop").fadeOut()});$(".scrollToTop").click(function(){return $("html, body").animate({scrollTop:0},800),!1});$('a[data-fancybox="gallery"]').append('<div class="overlay"><\/div>');(currentId=="1096"||currentId=="1093"||currentId=="1102")&&$.getJSON("//ipapi.co/json/",function(n){userCountry=n.country_name;console.log(userCountry);userCountry=="Pakistan"&&$(".hideShowDownloadLink").hide()})});lozad(".lozad",{load:function(n){n.src=n.dataset.src;n.onload=function(){n.classList.add("lazyfade")}}}).observe();$(document).ready(function(){$('.vert-nav a[href^="#"]').on("click",function(n){n.preventDefault();var t=this.hash,i=$(t);$("html, body").stop().animate({scrollTop:i.offset().top},900,"swing",function(){window.location.hash=t})})});$(".dropdown-menu").click(function(){$(this).parent().hasClass(".nav-link")||$("html").toggleClass("show")});$(function(){document.getElementById("navlinks").style.padding=$("#navmessage").hasClass("warningMessage")?"0rem 0rem 0rem":"3rem 0rem 0rem"});window.onscroll=function(){window.scrollTop>50||document.documentElement.scrollTop>50?(document.getElementById("navbar").style.padding="15px 0px 0px",document.getElementById("headlogo").style.width="300px",document.getElementById("navlinks").style.padding=$("#navmessage").hasClass("warningMessage")?"0rem 0rem 0rem":".5rem 0rem 0rem",(window.scrollTop>200||document.documentElement.scrollTop>200)&&(document.getElementById("header").style.margin="0 0 20px")):(document.getElementById("navbar").style.padding="40px 0px 0px",document.getElementById("headlogo").style.width="430px",document.getElementById("navlinks").style.padding=$("#navmessage").hasClass("warningMessage")?"0rem 0rem 0rem":"3rem 0rem 0rem");$(window).scroll(function(){var n=$(window).scrollTop();n>250?$(".warningMessage").fadeOut():$(".warningMessage").fadeIn()})},function(){function si(){n.keyboardSupport&&c("keydown",at)}function d(){var i,o,a,l;if(!k&&document.body){k=!0;var t=document.body,e=document.documentElement,f=window.innerHeight,v=t.scrollHeight;r=document.compatMode.indexOf("CSS")>=0?e:t;u=t;si();top!=self?s=!0:di&&v>f&&(t.offsetHeight<=f||e.offsetHeight<=f)&&(i=document.createElement("div"),i.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+r.scrollHeight+"px",document.body.appendChild(i),h=function(){o||(o=setTimeout(function(){st||(i.style.height="0",i.style.height=r.scrollHeight+"px",o=null)},500))},setTimeout(h,10),c("resize",h),a={attributes:!0,childList:!0,characterData:!1},p=new pi(h),p.observe(t,a),r.offsetHeight<=f&&(l=document.createElement("div"),l.style.clear="both",t.appendChild(l)));n.fixedBackground||st||(t.style.backgroundAttachment="scroll",e.style.backgroundAttachment="scroll")}}function hi(){p&&p.disconnect();l(b,lt);l("mousedown",vt);l("keydown",at);l("resize",h);l("load",d)}function ct(t,i,r){var s,f,u,h,c,e;(ai(i,r),n.accelerationMax!=1&&(s=Date.now(),f=s-nt,f<n.accelerationDelta&&(u=(1+50/f)/2,u>1&&(u=Math.min(u,n.accelerationMax),i*=u,r*=u)),nt=Date.now()),o.push({x:i,y:r,lastX:i<0?.99:-.99,lastY:r<0?.99:-.99,start:Date.now()}),g)||(h=ni(),c=t===h||t===document.body,t.$scrollBehavior==null&&li(t)&&(t.$scrollBehavior=t.style.scrollBehavior,t.style.scrollBehavior="auto"),e=function(){for(var a,v,w=Date.now(),s=0,h=0,f=0;f<o.length;f++){var u=o[f],y=w-u.start,p=y>=n.animationTime,l=p?1:y/n.animationTime;n.pulseAlgorithm&&(l=wi(l));a=u.x*l-u.lastX>>0;v=u.y*l-u.lastY>>0;s+=a;h+=v;u.lastX+=a;u.lastY+=v;p&&(o.splice(f,1),f--)}c?window.scrollBy(s,h):(s&&(t.scrollLeft+=s),h&&(t.scrollTop+=h));i||r||(o=[]);o.length?gt(e,t,1e3/n.frameRate+1):(g=!1,t.$scrollBehavior!=null&&(t.style.scrollBehavior=t.$scrollBehavior,t.$scrollBehavior=null))},gt(e,t,0),g=!0)}function lt(t){var e,r,i,o;if((k||d(),e=t.target,t.defaultPrevented||t.ctrlKey)||f(u,"embed")||f(e,"embed")&&/\.pdf/i.test(e.src)||f(u,"object")||e.shadowRoot)return!0;if(r=-t.wheelDeltaX||t.deltaX||0,i=-t.wheelDeltaY||t.deltaY||0,ei&&(t.wheelDeltaX&&a(t.wheelDeltaX,120)&&(r=-120*(t.wheelDeltaX/Math.abs(t.wheelDeltaX))),t.wheelDeltaY&&a(t.wheelDeltaY,120)&&(i=-120*(t.wheelDeltaY/Math.abs(t.wheelDeltaY)))),r||i||(i=-t.wheelDelta||0),t.deltaMode===1&&(r*=40,i*=40),o=wt(e),!o)return s&&et?(Object.defineProperty(t,"target",{value:window.frameElement}),parent.wheel(t)):!0;if(vi(i))return!0;Math.abs(r)>1.2&&(r*=n.stepSize/120);Math.abs(i)>1.2&&(i*=n.stepSize/120);ct(o,r,i);t.preventDefault();pt()}function at(i){var r=i.target,w=i.ctrlKey||i.altKey||i.metaKey||i.shiftKey&&i.keyCode!==t.spacebar,v,c,h,p,a;if((document.body.contains(u)||(u=document.activeElement),v=/^(textarea|select|embed|object)$/i,c=/^(button|submit|radio|checkbox|file|color|image)$/i,i.defaultPrevented||v.test(r.nodeName)||f(r,"input")&&!c.test(r.type)||f(u,"video")||yi(i)||r.isContentEditable||w)||(f(r,"button")||f(r,"input")&&c.test(r.type))&&i.keyCode===t.spacebar||f(r,"input")&&r.type=="radio"&&oi[i.keyCode])return!0;var y,l=0,o=0,e=wt(u);if(!e)return s&&et?parent.keydown(i):!0;h=e.clientHeight;e==document.body&&(h=window.innerHeight);switch(i.keyCode){case t.up:o=-n.arrowScroll;break;case t.down:o=n.arrowScroll;break;case t.spacebar:y=i.shiftKey?1:-1;o=-y*h*.9;break;case t.pageup:o=-h*.9;break;case t.pagedown:o=h*.9;break;case t.home:e==document.body&&document.scrollingElement&&(e=document.scrollingElement);o=-e.scrollTop;break;case t.end:p=e.scrollHeight-e.scrollTop;a=p-h;o=a>0?a+10:0;break;case t.left:l=-n.arrowScroll;break;case t.right:l=n.arrowScroll;break;default:return!0}ct(e,l,o);i.preventDefault();pt()}function vt(n){u=n.target}function pt(){clearTimeout(yt);yt=setInterval(function(){it=rt=w={}},1e3)}function ut(n,t,i){for(var u=i?it:rt,r=n.length;r--;)u[tt(n[r])]=t;return t}function ci(n,t){return(t?it:rt)[tt(n)]}function wt(n){var t=[],e=document.body,o=r.scrollHeight,i,u,f;do{if(i=ci(n,!1),i)return ut(t,i);if(t.push(n),o===n.scrollHeight){if(u=kt(r)&&kt(e),f=u||dt(r),s&&bt(r)||!s&&f)return ut(t,ni())}else if(bt(n)&&dt(n))return ut(t,n)}while(n=n.parentElement)}function bt(n){return n.clientHeight+10<n.scrollHeight}function kt(n){var t=getComputedStyle(n,"").getPropertyValue("overflow-y");return t!=="hidden"}function dt(n){var t=getComputedStyle(n,"").getPropertyValue("overflow-y");return t==="scroll"||t==="auto"}function li(n){var t=tt(n),i;return w[t]==null&&(i=getComputedStyle(n,"")["scroll-behavior"],w[t]="smooth"==i),w[t]}function c(n,t,i){window.addEventListener(n,t,i||!1)}function l(n,t,i){window.removeEventListener(n,t,i||!1)}function f(n,t){return n&&(n.nodeName||"").toLowerCase()===t.toLowerCase()}function ai(n,t){n=n>0?1:-1;t=t>0?1:-1;(y.x!==n||y.y!==t)&&(y.x=n,y.y=t,o=[],nt=0)}function vi(n){if(n){i.length||(i=[n,n,n]);n=Math.abs(n);i.push(n);i.shift();clearTimeout(ht);ht=setTimeout(function(){try{localStorage.SS_deltaBuffer=i.join(",")}catch(n){}},1e3);var t=n>120&&ft(n);return!ft(120)&&!ft(100)&&!t}}function a(n,t){return Math.floor(n/t)==n/t}function ft(n){return a(i[0],n)&&a(i[1],n)&&a(i[2],n)}function yi(n){var t=n.target,i=!1;if(document.URL.indexOf("www.youtube.com/watch")!=-1)do if(i=t.classList&&t.classList.contains("html5-video-controls"),i)break;while(t=t.parentNode);return i}function ti(t){var i,r,u;return t=t*n.pulseScale,t<1?i=t-(1-Math.exp(-t)):(r=Math.exp(-1),t-=1,u=1-Math.exp(-t),i=r+u*(1-r)),i*n.pulseNormalize}function wi(t){return t>=1?1:t<=0?0:(n.pulseNormalize==1&&(n.pulseNormalize/=ti(1)),ti(t))}function v(t){for(var i in t)ot.hasOwnProperty(i)&&(n[i]=t[i])}var ot={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,fixedBackground:!0,excluded:""},n=ot,st=!1,s=!1,y={x:0,y:0},k=!1,r=document.documentElement,u,p,h,i=[],ht,ei=/^Mac/.test(navigator.platform),t={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},oi={37:1,38:1,39:1,40:1},o=[],g=!1,nt=Date.now(),tt=function(){var n=0;return function(t){return t.uniqueID||(t.uniqueID=n++)}}(),it={},rt={},yt,w={},fi,b;if(window.localStorage&&localStorage.SS_deltaBuffer)try{i=localStorage.SS_deltaBuffer.split(",")}catch(nr){}var gt=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n,t,i){window.setTimeout(n,i||1e3/60)}}(),pi=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,ni=function(){var n=document.scrollingElement;return function(){var t,i,r;return n||(t=document.createElement("div"),t.style.cssText="height:10000px;width:1px;",document.body.appendChild(t),i=document.body.scrollTop,r=document.documentElement.scrollTop,window.scrollBy(0,3),n=document.body.scrollTop!=i?document.body:document.documentElement,window.scrollBy(0,-3),document.body.removeChild(t)),n}}();var e=window.navigator.userAgent,ii=/Edge/.test(e),et=/chrome/i.test(e)&&!ii,ri=/safari/i.test(e)&&!ii,bi=/mobile/i.test(e),ki=/Windows NT 6.1/i.test(e)&&/rv:11/i.test(e),di=ri&&(/Version\/8/i.test(e)||/Version\/9/i.test(e)),gi=(et||ri||ki)&&!bi,ui=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ui=!0}}))}catch(nr){}fi=ui?{passive:!1}:!1;b="onwheel"in document.createElement("div")?"wheel":"mousewheel";b&&gi&&(c(b,lt,fi),c("mousedown",vt),c("load",d));v.destroy=hi;window.SmoothScrollOptions&&v(window.SmoothScrollOptions);typeof define=="function"&&define.amd?define(function(){return v}):"object"==typeof exports?module.exports=v:window.SmoothScroll=v}(),function(n){n.fn.appear=function(t,i){var r=n.extend({data:undefined,one:!0,accX:0,accY:0},i);return this.each(function(){var i=n(this);if(i.appeared=!1,!t){i.trigger("appear",r.data);return}var u=n(window),f=function(){if(!i.is(":visible")){i.appeared=!1;return}var n=u.scrollLeft(),t=u.scrollTop(),f=i.offset(),e=f.left,o=f.top,s=r.accX,h=r.accY,c=i.height(),l=u.height(),a=i.width(),v=u.width();o+c+h>=t&&o<=t+l+h&&e+a+s>=n&&e<=n+v+s?i.appeared||i.trigger("appear",r.data):i.appeared=!1},e=function(){if(i.appeared=!0,r.one){u.unbind("scroll",f);var e=n.inArray(f,n.fn.appear.checks);e>=0&&n.fn.appear.checks.splice(e,1)}t.apply(this,arguments)};if(r.one)i.one("appear",r.data,e);else i.bind("appear",r.data,e);u.scroll(f);n.fn.appear.checks.push(f);f()})};n.extend(n.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=n.fn.appear.checks.length;if(t>0)while(t--)n.fn.appear.checks[t]()},run:function(){n.fn.appear.timeout&&clearTimeout(n.fn.appear.timeout);n.fn.appear.timeout=setTimeout(n.fn.appear.checkAll,20)}});n.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,i){var r=n.fn[i];r&&(n.fn[i]=function(){var t=r.apply(this,arguments);return n.fn.appear.run(),t})})}(jQuery),function(n){n.fn.textfill=function(t){function r(){i.debug&&typeof console!="undefined"&&typeof console.debug!="undefined"&&console.debug.apply(console,arguments)}function u(n,t,i,u,f,e){function o(n,t){var i=" / ";return n>t?i=" > ":n==t&&(i=" = "),i}r("[TextFill] "+n+" { font-size: "+t.css("font-size")+",Height: "+t.height()+"px "+o(t.height(),i)+i+"px,Width: "+t.width()+o(t.width(),u)+u+",minFontPixels: "+f+"px, maxFontPixels: "+e+"px }")}function f(n,t,i,r,f,e,o,s){var h,c;for(u(n,t,f,e,o,s);o<Math.floor(s)-1;){if(h=Math.floor((o+s)/2),t.css("font-size",h),c=i.call(t),c<=r){if(o=h,c==r)break}else s=h;u(n,t,f,e,o,s)}return t.css("font-size",s),i.call(t)<=r&&(o=s,u(n+"* ",t,f,e,o,s)),o}var i=n.extend({debug:!1,maxFontPixels:40,minFontPixels:4,innerTag:"span",widthOnly:!1,success:null,fail:null,complete:null,explicitWidth:null,explicitHeight:null,changeLineHeight:!1,truncateOnFail:!1,allowOverflow:!1},t);return r("[TextFill] Start Debug"),this.each(function(){var t=n(i.innerTag+":first",this),o,h;if(r("[TextFill] Inner text: "+t.text()),r("[TextFill] All options: ",i),r("[TextFill] Maximum sizes: { Height: "+u+"px, Width: "+e+"px }"),!t.is(":visible")){i.fail&&i.fail(this);r("[TextFill] Failure { Current Width: "+t.width()+", Maximum Width: "+e+", Current Height: "+t.height()+", Maximum Height: "+u+" }");return}var u=i.explicitHeight||n(this).height(),e=i.explicitWidth||n(this).width(),s=t.css("font-size"),c=parseFloat(t.css("line-height"))/parseFloat(s),l=i.minFontPixels,a=i.maxFontPixels<=0?u:i.maxFontPixels,v=undefined;i.widthOnly?t.css("white-space","nowrap"):v=f("Height",t,n.fn.height,u,u,e,l,a);o=undefined;o=f("Width",t,n.fn.width,e,u,e,l,a);i.widthOnly?(t.css({"font-size":o}),i.changeLineHeight&&t.parent().css("line-height",c*o+"px")):(h=Math.min(v,o),t.css("font-size",h),i.changeLineHeight&&t.parent().css("line-height",c*h+"px"));r("[TextFill] Finished { Old font-size: "+s+", New font-size: "+t.css("font-size")+" }");t.width()>e&&!i.allowOverflow||t.height()>u&&!i.widthOnly&&!i.allowOverflow?(t.css("font-size",s),i.fail&&i.fail(this),r("[TextFill] Failure { Current Width: "+t.width()+", Maximum Width: "+e+", Current Height: "+t.height()+", Maximum Height: "+u+" }")):i.success&&i.success(this)}),i.complete&&i.complete(this),r("[TextFill] End Debug"),this}}(function(){return typeof module!="undefined"&&module.exports?require("jquery"):window.jQuery}())