\/button><\/div><\/div>View details <\/i><\/a><\/div><\/div>'});t=t+"<\/div><\/div>";$("#dvCompareSlider").append(t);$("#dvCompareSlider").trigger("destroy.owl.carousel");$("#dvCompareSlider").owlCarousel({loop:!0,margin:10,responsiveClass:!0,responsive:{0:{items:1,nav:!0},600:{items:3,nav:!1},1e3:{items:4,nav:!0,loop:!1,margin:20}}});n.length<5?$(".owl-nav").css("display","none"):$(".owl-nav").css("display","")}})}function DeleteProductCompare(n){var t={productId:n};addAntiForgeryToken(t);$.ajax({url:"/ProductScoot/DeleteProductFromCompareProductsList",type:"POST",cache:!1,data:t,success:function(t){t.success?($(".compare_"+n).hasClass("add-to-compare-list-button-red-bg")?($(".compare_"+n).removeClass("add-to-compare-list-button-red-bg"),$(".compare_"+n).addClass("add-to-compare-list-button")):$(".compare_"+n).hasClass("add-to-compare-checked")&&($(".compare_"+n).removeClass("add-to-compare-checked"),$(".compare_"+n).addClass("add-to-compare-unchecked")),$(".compare_"+n).attr("onclick","ProductCompareToggle(this,'/en/compareproducts/add/"+n+"',"+n+")"),callCompare()):alert("Something wrong. Please try again.")},error:function(n,t,i){alert(i)}})}function ClearCompareList(){var n={};$.ajax({cache:!1,url:"/ProductScoot/CompareProductsList",data:"",type:"get",success:function(t){addAntiForgeryToken(n);$.ajax({url:"/ProductScoot/CompareProductsListClear",type:"POST",cache:!1,data:n,success:function(n){n.success?($.each(t,function(n,t){$(".compare_"+t.Id).hasClass("add-to-compare-list-button-red-bg")?($(".compare_"+t.Id).removeClass("add-to-compare-list-button-red-bg"),$(".compare_"+t.Id).addClass("add-to-compare-list-button")):$(".compare_"+t.Id).hasClass("add-to-compare-checked")&&($(".compare_"+t.Id).removeClass("add-to-compare-checked"),$(".compare_"+t.Id).addClass("add-to-compare-unchecked"));$(".compare_"+t.Id).attr("onclick","ProductCompareToggle(this,'/en/compareproducts/add/"+t.Id+"',"+t.Id+")")}),callCompare()):alert("Something wrong. Please try again.")},error:function(n,t,i){alert(i)}})}})}function ProductCompareToggle(n,t,i){$(n).hasClass("add-to-compare-unchecked")||$(n).hasClass("add-to-compare-list-button")?ProductDetialAddToCompareButton(n,t):($(n).hasClass("add-to-compare-checked")||$(n).hasClass("add-to-compare-list-button-red-bg"))&&DeleteProductCompare(i)}$(document).ready(function(){!1&&($("#dvCompare").hide(),callCompare());$("#dl-menu").dlmenu({animationClasses:{classin:"dl-animate-in-2",classout:"dl-animate-out-2"}})})