(function(){fabric.Object.prototype.originX=fabric.Object.prototype.originY='center';var canvas=this.__canvas=new fabric.Canvas('c',{hoverCursor:'pointer',selection:false,perPixelTargetFind:true,targetFindTolerance:5,backgroundColor:null,});var mapImgUrl="/images/carframe.jpg" fabric.Image.fromURL(mapImgUrl,function(currentImg){currentImg.set({scaleX:(canvas.width/815),scaleY:(canvas.height/606),top:0,left:0,originX:'left',originY:'top',opacity:1,width:815,height:606});canvas.setBackgroundImage(currentImg,canvas.renderAll.bind(canvas));});function AddRightLabelText(cityStar,cityName,gap,textColor,url){if($(window).width()>=768){cityStar.on('mousedown',function(){if(typeof cityText!=='undefined'){canvas.remove(cityText);} cityText=new fabric.Text(cityName,{top:cityStar.top+2,left:cityStar.left+gap,fill:textColor,fontSize:18,fontWeight:'bold',fontStyle:'italic',fontFamily:'Roboto',selectable:false});canvas.add(cityText).renderAll();});cityStar.on('mouseover',function(){if(typeof cityText!=='undefined'){canvas.remove(cityText);} cityText=new fabric.Text(cityName,{top:cityStar.top+2,left:cityStar.left+gap,fill:textColor,fontSize:18,fontWeight:'bold',fontStyle:'italic',fontFamily:'Roboto',selectable:false});canvas.add(cityText).renderAll();});}else{cityText=new fabric.Text(cityName,{top:cityStar.top+2,left:cityStar.left+gap,fill:textColor,fontSize:18,fontWeight:'bold',fontStyle:'italic',fontFamily:'Roboto',selectable:false});canvas.add(cityText).renderAll();} canvas.add(cityStar).renderAll();} function AddLeftLabelText(cityStar,cityName,gap,textColor,url){if($(window).width()>=768){cityStar.on('mousedown',function(){if(typeof cityText!=='undefined'){canvas.remove(cityText);} cityText=new fabric.Text(cityName,{top:cityStar.top+2,left:cityStar.left-gap,fill:textColor,fontSize:18,fontWeight:'bold',fontStyle:'italic',fontFamily:'Roboto',selectable:false});canvas.add(cityText).renderAll();});cityStar.on('mouseover',function(){if(typeof cityText!=='undefined'){canvas.remove(cityText);} cityText=new fabric.Text(cityName,{top:cityStar.top+2,left:cityStar.left-gap,fill:textColor,fontSize:18,fontWeight:'bold',fontStyle:'italic',fontFamily:'Roboto',selectable:false});canvas.add(cityText).renderAll();});}else{cityText=new fabric.Text(cityName,{top:cityStar.top+2,left:cityStar.left-gap,fill:textColor,fontSize:18,fontWeight:'bold',fontStyle:'italic',fontFamily:'Roboto',selectable:false});canvas.add(cityText).renderAll();} canvas.add(cityStar).renderAll();} fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"ACOUSTIC, THERMAL, AND ELECTRICAL INSULATION",243,"#0b2441","/");},{left:200,top:20,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:90});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"THERMAL MANAGEMENT",130,"#0b2441","/");},{left:160,top:60,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:90});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"WINDOW SEAL ASSIST",113,"#0b2441","/");},{left:370,top:100,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"SUNGLASS HOLDER INSERTS",140,"#0b2441","/");},{left:500,top:100,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:180});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"HOOD SHIELDS",82,"#0b2441","/");},{left:270,top:180,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"TAIL LAMP SEALS",95,"#0b2441","/");},{left:750,top:145,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"UNDER DASH NOISE CONTROL",144,"#0b2441","/");},{left:370,top:225,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"CUP HOLDER INSERTS",112,"#0b2441","/");},{left:500,top:210,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:180});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"HVAC SEALS",72,"#0b2441","/");},{left:300,top:265,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"CONSOLE BIN MATS",102,"#0b2441","/");},{left:500,top:265,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:180});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"HEADLIGHT SEALS",98,"#0b2441","/");},{left:85,top:310,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:180});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"UNDER BODY HEAT SHIELDS",135,"#0b2441","/");},{left:615,top:320,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"BINDING TAPE",80,"#0b2441","/");},{left:55,top:375,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:180});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"FENDER TRIM TAPE",102,"#0b2441","/");},{left:510,top:365,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddLeftLabelText(star,"BATTERY SHIELDING",110,"#0b2441","/");},{left:215,top:405,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"ACRYLIC FOAM TAPE FASTENERS, PROTECTIVE FILMS",245,"#0b2441","/");},{left:340,top:455,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:180});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"BATTERY CELL SEPARATORS",140,"#0b2441","/");},{left:205,top:430,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:180});fabric.Image.fromURL('/images/arrow-icon.svg',function(star){AddRightLabelText(star,"BUZZ, SQUEAK, AND RATTLE",140,"#0b2441","/");},{left:400,top:565,selectable:false,hasControls:false,hasRotatingPoint:false,lockMovementX:true,lockMovementY:true,width:24,height:24,angle:270});var factor=$('#car-graphic').innerWidth()/canvas.width;if(factor<1){$('.car-canvas-wrapper').css("transform","scale("+factor+")");$('.graphic-canvas').height($('.car-canvas-wrapper').height()*factor);} $(window).on('resize',function(){var factor=$('#car-graphic').innerWidth()/canvas.width;if(factor<1){$('.car-canvas-wrapper').css("transform","scale("+factor+")");$('.graphic-canvas').height($('.car-canvas-wrapper').height()*factor);} else{$('.car-canvas-wrapper').css("transform","scale("+1+")");$('.graphic-canvas').height='auto';}});})();;; function initVideoLazy(){var vidDefer=document.getElementsByTagName('iframe');for(var i=0;ie.width||e[c].i.naturalHeight>e.height?e.style.backgroundSize="contain":e.style.backgroundSize="auto"):void setTimeout(t,100)}()):e.style.backgroundSize=s["object-fit"].replace("none","auto").replace("fill","100% 100%")}}function r(t){var r={get:function(){return t[c].s},set:function(r){return delete t[c].i,e(t,r),r}};Object.defineProperty(t,"src",r),Object.defineProperty(t,"currentSrc",{get:r.get})}function i(){u||(HTMLImageElement.prototype.getAttribute=function(t){return!this[c]||"src"!==t&&"srcset"!==t?f.call(this,t):this[c][t+"Attr"]},HTMLImageElement.prototype.setAttribute=function(t,e){!this[c]||"src"!==t&&"srcset"!==t?g.call(this,t,e):this["src"===t?"src":t+"Attr"]=String(e)})}function s(t,r){var i=!A&&!t;if(r=r||{},t=t||"img",u&&!r.skipTest)return!1;"string"==typeof t?t=document.querySelectorAll("img"):t.length||(t=[t]);for(var n=0;nf&&(f=0),a||9>f&&l?i():j(i,f))}},B=function(a){var b,c,d=99,f=function(){b=null,a()},g=function(){var a=e.now()-c;d>a?j(g,d-a):(l||f)(f)};return function(){c=e.now(),b||(b=j(g,d))}},C=function(){var f,k,l,n,o,x,C,E,F,G,H,I,J,K,L,M=/^img$/i,N=/^iframe$/i,O="onscroll" in a&&!/glebot/.test(navigator.userAgent),P=0,Q=0,R=0,S=-1,T=function(a){R--,a&&a.target&&t(a.target,T),(!a||0>R||!a.target)&&(R=0)},U=function(a,c){var e,f=a,g="hidden"==w(b.body,"visibility")||"hidden"!=w(a,"visibility");for(F-=c,I+=c,G-=c,H+=c;g&&(f=f.offsetParent)&&f!=b.body&&f!=d;)g=(w(f,"opacity")||1)>0,g&&"visible"!=w(f,"overflow")&&(e=f.getBoundingClientRect(),g=H>e.left&&Ge.top-1&&FR&&(a=f.length)){e=0,S++,null==K&&("expand" in c||(c.expand=d.clientHeight>500&&d.clientWidth>500?500:370),J=c.expand,K=J*c.expFactor),K>Q&&1>R&&S>2&&o>2&&!b.hidden?(Q=K,S=0):Q=o>1&&S>1&&6>R?J:P;for(;a>e;e++)if(f[e]&&!f[e]._lazyRace)if(O)if((p=f[e][h]("data-expand"))&&(m=1*p)||(m=Q),q!==m&&(C=innerWidth+m*L,E=innerHeight+m,n=-1*m,q=m),g=f[e].getBoundingClientRect(),(I=g.bottom)>=n&&(F=g.top)<=E&&(H=g.right)>=n*L&&(G=g.left)<=C&&(I||H||G||F)&&(l&&3>R&&!p&&(3>o||4>S)||U(f[e],m))){if(ba(f[e]),j=!0,R>9)break}else!j&&l&&!i&&4>R&&4>S&&o>2&&(k[0]||c.preloadAfterLoad)&&(k[0]||!p&&(I||H||G||F||"auto"!=f[e][h](c.sizesAttr)))&&(i=k[0]||f[e]);else ba(f[e]);i&&!j&&ba(i)}},W=A(V),X=function(a){r(a.target,c.loadedClass),s(a.target,c.loadingClass),t(a.target,Z)},Y=z(X),Z=function(a){Y({target:a.target})},$=function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.src=b}},_=function(a){var b,d,e=a[h](c.srcsetAttr);(b=c.customMedia[a[h]("data-media")||a[h]("media")])&&a.setAttribute("media",b),e&&a.setAttribute("srcset",e),b&&(d=a.parentNode,d.insertBefore(a.cloneNode(),a),d.removeChild(a))},aa=z(function(a,b,d,e,f){var g,i,k,l,o,q;(o=u(a,"lazybeforeunveil",b)).defaultPrevented||(e&&(d?r(a,c.autosizesClass):a.setAttribute("sizes",e)),i=a[h](c.srcsetAttr),g=a[h](c.srcAttr),f&&(k=a.parentNode,l=k&&m.test(k.nodeName||"")),q=b.firesLoad||"src" in a&&(i||g||l),o={target:a},q&&(t(a,T,!0),clearTimeout(n),n=j(T,2500),r(a,c.loadingClass),t(a,Z,!0)),l&&p.call(k.getElementsByTagName("source"),_),i?a.setAttribute("srcset",i):g&&!l&&(N.test(a.nodeName)?$(a,g):a.src=g),(i||l)&&v(a,{src:g})),a._lazyRace&&delete a._lazyRace,s(a,c.lazyClass),y(function(){(!q||a.complete&&a.naturalWidth>1)&&(q?T(o):R--,X(o))},!0)}),ba=function(a){var b,d=M.test(a.nodeName),e=d&&(a[h](c.sizesAttr)||a[h]("sizes")),f="auto"==e;(!f&&l||!d||!a.src&&!a.srcset||a.complete||q(a,c.errorClass))&&(b=u(a,"lazyunveilread").detail,f&&D.updateElem(a,!0,a.offsetWidth),a._lazyRace=!0,R++,aa(a,b,f,e,d))},ca=function(){if(!l){if(e.now()-x<999)return void j(ca,999);var a=B(function(){c.loadMode=3,W()});l=!0,c.loadMode=3,W(),i("scroll",function(){3==c.loadMode&&(c.loadMode=2),a()},!0)}};return{_:function(){x=e.now(),f=b.getElementsByClassName(c.lazyClass),k=b.getElementsByClassName(c.lazyClass+" "+c.preloadClass),L=c.hFac,i("scroll",W,!0),i("resize",W,!0),a.MutationObserver?new MutationObserver(W).observe(d,{childList:!0,subtree:!0,attributes:!0}):(d[g]("DOMNodeInserted",W,!0),d[g]("DOMAttrModified",W,!0),setInterval(W,999)),i("hashchange",W,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(a){b[g](a,W,!0)}),/d$|^c/.test(b.readyState)?ca():(i("load",ca),b[g]("DOMContentLoaded",W),j(ca,2e4)),f.length?(V(),y._lsFlush()):W()},checkElems:W,unveil:ba}}(),D=function(){var a,d=z(function(a,b,c,d){var e,f,g;if(a._lazysizesWidth=d,d+="px",a.setAttribute("sizes",d),m.test(b.nodeName||""))for(e=b.getElementsByTagName("source"),f=0,g=e.length;g>f;f++)e[f].setAttribute("sizes",d);c.detail.dataAttr||v(a,c.detail)}),e=function(a,b,c){var e,f=a.parentNode;f&&(c=x(a,f,c),e=u(a,"lazybeforesizes",{width:c,dataAttr:!!b}),e.defaultPrevented||(c=e.detail.width,c&&c!==a._lazysizesWidth&&d(a,f,e,c)))},f=function(){var b,c=a.length;if(c)for(b=0;c>b;b++)e(a[b])},g=B(f);return{_:function(){a=b.getElementsByClassName(c.autosizesClass),i("resize",g)},checkElems:g,updateElem:e}}(),E=function(){E.i||(E.i=!0,D._(),C._())};return function(){var b,d={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2};c=a.lazySizesConfig||a.lazysizesConfig||{};for(b in d)b in c||(c[b]=d[b]);a.lazySizesConfig=c,j(function(){c.init&&E()})}(),{cfg:c,autoSizer:D,loader:C,init:E,uP:v,aC:r,rC:s,hC:q,fire:u,gW:x,rAF:y}}});var initBackgroundImgLazy=function(){var imgDefer=$('.lazy-background');for(var i=0;i li');$(navLinks).show();$('.priority-nav-overflow').empty();var availableWidth=$('nav').innerWidth()-($('.navbar-brand').outerWidth(true)+$('.navbar-toggler').outerWidth(true));$('.priority-nav-overflow').css('max-width',availableWidth);for(var i=0;i200){var markup=$(navLinks[i])[0].outerHTML;$('.priority-nav-overflow').append(markup);$(navLinks[i]).hide();availableWidth-=200;}}} var jbcGrowShrinkLogo=function(){if(document.body.scrollTop>35||document.documentElement.scrollTop>35){$(".utility").addClass("grow");$(".nav-logo").addClass("shrink");$(".note-strip").css("margin-top","-"+$(".note-strip").outerHeight()+"px");}else{$(".nav-logo").removeClass("shrink");$(".utility").removeClass("grow");$(".note-strip").css("margin-top",0);}} $(function(){if($(window).outerWidth()<992){jbcPriorityNav();} if($('.note-strip').length>0){var margintopmain=$('.note-strip').outerHeight()+83;$('#main-content').css("margin-top",margintopmain+"px");} $(window).on('resize',function(){if($(window).outerWidth()<992){jbcPriorityNav();} else{$('.priority-nav-list > li').show();}});window.onscroll=function(){jbcGrowShrinkLogo();};$('.menu-link').click(function(e){e.preventDefault();$('body').toggleClass('open');$(this).toggleClass("on");});$('.search-icon-display').click(function(){$('.utility').addClass("open");$('.search-button-wrapper').addClass("open");$('.search-icon-close').show();$('.search-icon-display').hide();});$('.search-icon-close').click(function(){$('.utility').removeClass("open");$('.search-button-wrapper').removeClass("open");$('.search-icon-close').hide();$('.search-icon-display').show();});initBackgroundImgLazy();AOS.init({disable:'phone'});});;; var jbcCookieBanner=(function($){var banner={};var bannerCookieName='jbcBanner';function setCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires='expires='+d.toUTCString();document.cookie=cname+'='+cvalue+';'+expires+';path=/';} banner.acknowledge=function(){setCookie(bannerCookieName,'1',1000);};return banner;})(jQuery);$(function(){if($('.jbc-banner-acknowledge').length>0){$('.jbc-banner-acknowledge').click(function(){jbcCookieBanner.acknowledge();$('.jbc-cookie-banner').remove();});}});;;