var vlp=(function(c,a,b,e){var f={"mod-hero":"hero","mod-incentives":"incentives","mod-awards":"awards","mod-modelizer":"modelizer","mod-accordion":"accordion","mod-copy-src-swap":"sourceSwap","mod-copy-carousel-src-swap":"carouselSourceSwap","mod-banner-media-copy-src-swap":"carouselSourceSwap","mod-media-copy-src-swap":"carouselSourceSwap","mod-copy-double-src-swap":"optionsSourceSwap","mod-gallery-slider":"gallerySlider","mod-interior-360":"gallery360","mod-exterior-360":"gallery360","mod-three-col":"threeColumn"};function d(){if(screen.availWidth==768&&screen.availHeight==1004){c("li.block").on("mouseenter",function(){c(this).find(".hover_text").show()})}c("#awards,#offers-slideshow").data("hover","0");c("#awards,#offers-slideshow").mouseenter(function(){c(this).data("hover",1)}).mouseleave(function(){c(this).data("hover",0)});c("#awards,#offers-slideshow").mouseenter(function(){c(this).data("hover",1)}).mouseleave(function(){c(this).data("hover",0)});c(".model-items").find("li").each(function(){console.log(c(this).length);var w=c(this),r=w.find("a").attr("data-model"),x={};x.year=cllc.context.get("year");x.vehicle=cllc.context.get("vehicle");x.trim=r;var v=Vehicles.getAvailableDrives(x);var t="";for(var s=0;sMSRP* STARTING AT '+Vehicles.getMSRP(x)+"";var q=c("div.info[data-model="+r+"]").find(c(".lease-info .msrp_drive[data-drive="+u+"]"));q.find(".msrp").html(t)}});if(c.deparam){var i=c.deparam.fragment(b.location.hash);if(i.deeplink){setTimeout(function(){c("#"+i.deeplink).scrollTo({speed:"slow",afterScroll:function(){c(b).trigger("scrollto.complete")}})},1000)}}var n=c("div.module").not('[data-component=""]'),m=null,k=null;c.each(n,function(r,q){m=c(q);k=m.data("component");if(typeof k!=="undefined"){m[f[k]]()}});var h=c(".model-items");var j=h.find("li.selected");var g=j.find("a:first").attr("data-model");var o=j.find("a:first").attr("data-drivetype");h.on("click","li",function(){var r=c(this).data("category")||"";if(r&&r==="Limited"){c(".cur-vehicle .model_top").css("visibility","hidden");c(".cur-vehicle .model_top").attr("src","");b.category="limited"}else{c(".cur-vehicle .model_top").css("visibility","visible");b.category="standard"}var q=c(this).find("a:first").attr("data-model");var s=c(this).find("a:first").attr("data-drivetype");if(s=="4x4"||s=="none"){l(q)}/ * hover mod-modelizer triggering close clicked */;c(".hover_text .close:visible").trigger("click")});if(o=="4x4"){l(g);p(g)}function l(r){var s=c(".module.mod-modelizer").attr("id");var q=c("#"+s).find(".info[data-model="+r+"]");c(".drive-toggle",q).hide();p(r)}function p(q){h.find("li").each(function(){var r=c(this).find("a[data-model="+q+"]").parent("li:first").find(".msrp");(r.find("span").size()==1)?r.find("span").show():r.find("span").eq(0).show()})}}return{init:d}})(jQuery,document,window);$(function(){$("#packageSelector").change(function(){$(".package_details").removeClass("active");$("#"+$(this).val()).addClass("active");var a=$(this).val();DATALAYER.linkTrack(true,{lid:"package-"+a,lpos:"content"})})});