There are no results for your search. Reset Filters
';
}
if (QueryString.Product_page || QueryString.category || QueryString.manufacturer) {
$("#SaleContainer").addClass("pagey");
$("#showDB").css("display", "block");
var activeCat= QueryString.category;
getActive(activeCat);
}
var t = $(".pagination_filter #category").html(),
s = $(".pagination_filter #manufacturer").html();
$("#catFilters").append(t), $("#brandFilters").append(s);
var a = "",
r = "&",
i = "=";
$("#brandFilterWrapper select").change(function () {
var curUrl = QueryString.category;
if(curUrl===undefined){curUrl=''}
var t = $(this).attr("name"),
s = $(this).val(),
l = "category="+curUrl+"&manufacturer="+s;
url = location.protocol + "//" + location.host + location.pathname;
window.location = url + "?" + l;
});
if ($("#yw1").length) {
rr = $("#yw1").html();
$("#yw1").css("display", "none");
pagerCon = rr.replace(/href="\//g, 'data-ajax="false" href="/');
$(".noajax").html(pagerCon);
}
var now = new Date();
$(function () {
$(".afgLightBox").fancybox({
maxWidth: 800,
maxHeight: 300,
fitToView: false,
width: '90%',
height: '90%',
autoSize: false,
closeClick: false,
openEffect: 'none',
closeEffect: 'none',
afterLoad: function (current) {
$("#afgModal #yw0").attr("action", "/item_" + current.element[0].getAttribute("data-id") + "_pla.html");
}
});
$(".showMoreCat").click(function () {
$(this).parent().parent().toggleClass("on");
});
$("#pairedOfferMobile").click(function () {
$(this).parent().parent().toggleClass("on");
});
$(".sorttrigger").click(function () {
$(this).parent().toggleClass("closed");
});
var e = "all";
if (window.location.hash) {
var s = window.location.hash,
r = new RegExp(/#\w+(-\d+)/g),
l = r.exec(s),
i = String(l);
e = i.replace("#", ".")
}
function scrollIf(e) {
if (e !== '.mix') {
$("html, body").animate({
scrollTop: $("#Container").offset().top
}, 0);
}
}
$('#Container').mixItUp({
load: {
sort: 'popularity:desc',
filter: e
},
animation: {
enable: false
},
callbacks: {
onMixFail: function () {
scrollIf();
}, onMixEnd: function (state) {
scrollIf(state.activeFilter);
}
}
});
var fetItem = document.getElementsByClassName("saleItem");
var startafg = 0;
var year = getCookie("car_afg_year"), make = getCookie("car_afg_make"), model = getCookie("car_afg_model"), displayMake = make.replace(/\+/g, " "), displayModel = model.replace(/\+/g, " ").replace(/%26/g, "and");
if (year !== "" && make !== "" && model !== "") {
startafg = 1;
}
for (var i = fetItem.length - 1; i >= 0; i--) {
thisItem = fetItem[i];
stockLevel = $(thisItem).find(".stockCount").text();
if (stockLevel < 3 && stockLevel > 0) {
$(thisItem).find(".limitedQuantity").css("display", "block");
}
price = $(thisItem).attr("data-price");
msrp = $(thisItem).attr("data-msrp");
discount = Math.round((msrp - price) / msrp * 100);
$(thisItem).find(".discountOff").text(discount + "% OFF");
$(thisItem).attr("data-discount", discount);
pID = $(thisItem).attr("data-id");
pType = $(thisItem).attr("data-type");
bag = $(thisItem).find(".addtoBag");
if (pType == 9 || pType == 10) {
if (startafg == 1) {
var afgGet = '/item_' + pID + '_pla.html?afg%5Byear%5D=' + year + '&afg%5Bmake%5D=' + make + '&afg%5Bmodel%5D=' + model + '';
bag.attr("href", afgGet);
bag.html("See if it Fits »");
} else {
bag.addClass("afgLightBox");
bag.attr("href", "#afgModal");
bag.html("See if it Fits »");
}
}
stars = $(thisItem).find(".stars span");
for (var e = stars.length - 1; e >= 0; e--) {
thisStar = stars[e];
num = $(thisStar).attr("data-star");
score = $(thisStar).parent().attr("score");
var diff = num - score;
score >= num ? $(thisStar).addClass("fa-star") : diff > 0 && 1 > diff ? $(thisStar).addClass("fa-star-half-o") : score <= num && $(thisStar).addClass("fa-star-o")
}
}
if ($(".ui-mobile-viewport").length) {
$(".yiiPager a").each(function () {
$(this).attr("data-ajax", "false");
});
}
$(".mix").hover(function () {
$(this).addClass("on");
}, function () {
$(this).removeClass("on");
});
k = document.getElementById("filters"),
w = document.body.getBoundingClientRect(),
p = k.getBoundingClientRect(),
q = p.top - w.top;
var r = k.clientHeight;
k.parentNode.style.height = r + 'px';
var u = k.clientWidth;
k.style.width = u + 'px';
document.getScroll = function () {
if (void 0 != window.pageYOffset)
return [pageXOffset, pageYOffset];
var t, e, a = document,
s = a.documentElement,
r = a.body;
return t = s.scrollLeft || r.scrollLeft || 0, e = s.scrollTop || r.scrollTop || 0
};
var b = 0,
u = 5;
$(document).scroll(function () {
var e = document.getScroll(),
a = e[1];
if (a > q) {
$("body").addClass("onFixed");}else {$("body").removeClass("onFixed");}
Math.abs(b - a) <= u || (a > b ? $("body").removeClass("productFixed") : e[1] > q ? $("body").addClass("productFixed") : e[1] < q && $("body").removeClass("productFixed"), b = a)
});
$("#showDB").click(function () {
$("#SaleContainer").removeClass("pagey");
$(this).css("display", "none");
});
});
})(jQuery);
Find out if it fits your vehicle