function addHoverImages(){var c=$(".product"),b,f,a,e,d;c.hoverIntent(function(){b=$(this);f=$(".product_image",b);a=$(".product_image_2",b);f.fadeOut(300);a.fadeIn(300);if(a.hasClass("loading")){e=f.attr("src");d=e.replace("_1.jpg","_2.jpg");a.attr("src",d).removeClass("loading")}},function(){f.fadeIn(200);a.fadeOut(200)},100)}$(document).ready(function(){var a=$("div#leftNavContDVF div#categoryProductList");if(a.attr("class")){if(a.attr("class").length>0){aCat=a.attr("class").split("_");a.load("/fcp/categoryproductlist/"+aCat[0]+"/"+aCat[1]+"_"+aCat[2]+"?resetFilters=true")}}$(".pagination_view").click(function(){var h=window.location.href;var f="";var d;var e="";var c="";var g="";if(h.indexOf("?")>-1){f=h.split("?")[1].split("&");d="&"}else{d="?"}$.each(f,function(j,k){if(k.indexOf("productsPerPage")>-1){e=k}if(k.indexOf("resultPage")>-1){c="&"+k}});var b=$(this).attr("class").split(" ");$.each(b,function(j,k){if(k.indexOf("productsperpage_")>-1){g=k.split("_")[1]}});h=h.replace(c,"");if(e===""){window.location=h+d+"productsPerPage="+g}else{window.location=h.replace(e,"productsPerPage="+g)}});addHoverImages()});
