')})}var model=JSON.parse('{"IsAuthenticated":false,"SqlData":[{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":154,"Sku":"000314","DisplayOrder":1},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":154,"Sku":"000314","DisplayOrder":5},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":154,"Sku":"000314","DisplayOrder":4},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Sip","SpecificationAttributeOptionId":66,"ProductId":154,"Sku":"000314","DisplayOrder":2},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Sip","SpecificationAttributeOptionId":66,"ProductId":155,"Sku":"000315","DisplayOrder":2},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":155,"Sku":"000315","DisplayOrder":4},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":155,"Sku":"000315","DisplayOrder":1},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":155,"Sku":"000315","DisplayOrder":5},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":156,"Sku":"000319","DisplayOrder":5},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":156,"Sku":"000319","DisplayOrder":1},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":156,"Sku":"000319","DisplayOrder":4},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Sip","SpecificationAttributeOptionId":66,"ProductId":156,"Sku":"000319","DisplayOrder":2},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Sip","SpecificationAttributeOptionId":66,"ProductId":158,"Sku":"000496","DisplayOrder":2},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":158,"Sku":"000496","DisplayOrder":4},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":158,"Sku":"000496","DisplayOrder":1},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":158,"Sku":"000496","DisplayOrder":5},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":164,"Sku":"001034","DisplayOrder":5},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":164,"Sku":"001034","DisplayOrder":1},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":164,"Sku":"001034","DisplayOrder":4},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Sip","SpecificationAttributeOptionId":66,"ProductId":164,"Sku":"001034","DisplayOrder":2},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Stoll","SpecificationAttributeOptionId":68,"ProductId":179,"Sku":"002472","DisplayOrder":2},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":179,"Sku":"002472","DisplayOrder":4},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":179,"Sku":"002472","DisplayOrder":1},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":179,"Sku":"002472","DisplayOrder":5},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Trioliet","SpecificationAttributeOptionId":69,"ProductId":179,"Sku":"002472","DisplayOrder":2},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"OMC","SpecificationAttributeOptionId":70,"ProductId":180,"Sku":"002473","DisplayOrder":2},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Sip","SpecificationAttributeOptionId":66,"ProductId":180,"Sku":"002473","DisplayOrder":2},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":180,"Sku":"002473","DisplayOrder":5},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":180,"Sku":"002473","DisplayOrder":1},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":180,"Sku":"002473","DisplayOrder":4},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":181,"Sku":"002474","DisplayOrder":4},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":181,"Sku":"002474","DisplayOrder":1},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":181,"Sku":"002474","DisplayOrder":5},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Sip","SpecificationAttributeOptionId":66,"ProductId":181,"Sku":"002474","DisplayOrder":2},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"OMC","SpecificationAttributeOptionId":70,"ProductId":181,"Sku":"002474","DisplayOrder":2},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":182,"Sku":"002475","DisplayOrder":5},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":182,"Sku":"002475","DisplayOrder":1},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":182,"Sku":"002475","DisplayOrder":4},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Stoll","SpecificationAttributeOptionId":68,"ProductId":182,"Sku":"002475","DisplayOrder":2},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Trioliet","SpecificationAttributeOptionId":69,"ProductId":182,"Sku":"002475","DisplayOrder":2},{"SpecificationId":3,"SpecificationName":"Härte","SpecificationAttributeOptionName":"40-45 HRc","SpecificationAttributeOptionId":60,"ProductId":189,"Sku":"002307","DisplayOrder":4},{"SpecificationId":6,"SpecificationName":"Gewerbe","SpecificationAttributeOptionName":"Landwirtschaft","SpecificationAttributeOptionId":58,"ProductId":189,"Sku":"002307","DisplayOrder":1},{"SpecificationId":2,"SpecificationName":"Material","SpecificationAttributeOptionName":"Vzmetni material / Federstahl","SpecificationAttributeOptionId":59,"ProductId":189,"Sku":"002307","DisplayOrder":5},{"SpecificationId":4,"SpecificationName":"Hersteller","SpecificationAttributeOptionName":"Vicon","SpecificationAttributeOptionId":72,"ProductId":189,"Sku":"002307","DisplayOrder":2}],"VariantTableModels":[{"ProductId":164,"Sku":"001034","Name":"Meißelmesser","Dimensions":"78 x 30 x 6","Weight":"100 G","Availability":true,"AvailabilityQuantity":114,"DeliveryDate":"21","TehnicnaSkica":"/Slike/Tehnicna_skica/001034_1.jfif","AddToCart":{"ProductId":164,"EnteredQuantity":1,"MinimumQuantityNotification":null,"AllowedQuantities":[],"CustomerEntersPrice":false,"CustomerEnteredPrice":0.0,"CustomerEnteredPriceRange":null,"DisableBuyButton":true,"DisableWishlistButton":true,"IsRental":false,"AvailableForPreOrder":false,"PreOrderAvailabilityStartDateTimeUtc":null,"PreOrderAvailabilityStartDateTimeUserTime":null,"UpdatedShoppingCartItemId":0,"UpdateShoppingCartItemType":null,"CustomProperties":{}},"ProductPrice":{"CurrencyCode":null,"OldPrice":null,"Price":null,"PriceWithDiscount":null,"PriceValue":0.0,"CustomerEntersPrice":false,"CallForPrice":false,"ProductId":164,"HidePrices":true,"IsRental":false,"RentalPrice":null,"DisplayTaxShippingInfo":false,"BasePricePAngV":null,"CustomProperties":{}},"DefaultPictureModel":{"ImageUrl":"https://www.kn-knives.com/images/thumbs/001034_415.jfif","ThumbImageUrl":"https://www.kn-knives.com/images/thumbs/001034_130.jfif","FullSizeImageUrl":"https://www.kn-knives.com/Slike/2D/001034.jfif","Title":"Zeige Details für Meißelmesser","AlternateText":"Bild von Meißelmesser","CustomProperties":{}}},{"ProductId":180,"Sku":"002473","Name":"Silageschneidmesser Ober","Dimensions":"252 x 63 x 3","Weight":"200 G","Availability":true,"AvailabilityQuantity":14,"DeliveryDate":"21","TehnicnaSkica":"/Slike/Tehnicna_skica/002473_1.jfif","AddToCart":{"ProductId":180,"EnteredQuantity":1,"MinimumQuantityNotification":null,"AllowedQuantities":[],"CustomerEntersPrice":false,"CustomerEnteredPrice":0.0,"CustomerEnteredPriceRange":null,"DisableBuyButton":true,"DisableWishlistButton":true,"IsRental":false,"AvailableForPreOrder":false,"PreOrderAvailabilityStartDateTimeUtc":null,"PreOrderAvailabilityStartDateTimeUserTime":null,"UpdatedShoppingCartItemId":0,"UpdateShoppingCartItemType":null,"CustomProperties":{}},"ProductPrice":{"CurrencyCode":null,"OldPrice":null,"Price":null,"PriceWithDiscount":null,"PriceValue":0.0,"CustomerEntersPrice":false,"CallForPrice":false,"ProductId":180,"HidePrices":true,"IsRental":false,"RentalPrice":null,"DisplayTaxShippingInfo":false,"BasePricePAngV":null,"CustomProperties":{}},"DefaultPictureModel":{"ImageUrl":"https://www.kn-knives.com/images/thumbs/002473_415.jfif","ThumbImageUrl":"https://www.kn-knives.com/images/thumbs/002473_130.jfif","FullSizeImageUrl":"https://www.kn-knives.com/Slike/2D/002473.jfif","Title":"Zeige Details für Silageschneidmesser Ober","AlternateText":"Bild von Silageschneidmesser Ober","CustomProperties":{}}},{"ProductId":181,"Sku":"002474","Name":"Silagemesser unten","Dimensions":"252 x 63 x 3","Weight":"200 G","Availability":true,"AvailabilityQuantity":16,"DeliveryDate":"21","TehnicnaSkica":"/Slike/Tehnicna_skica/002474_1.jfif","AddToCart":{"ProductId":181,"EnteredQuantity":1,"MinimumQuantityNotification":null,"AllowedQuantities":[],"CustomerEntersPrice":false,"CustomerEnteredPrice":0.0,"CustomerEnteredPriceRange":null,"DisableBuyButton":true,"DisableWishlistButton":true,"IsRental":false,"AvailableForPreOrder":false,"PreOrderAvailabilityStartDateTimeUtc":null,"PreOrderAvailabilityStartDateTimeUserTime":null,"UpdatedShoppingCartItemId":0,"UpdateShoppingCartItemType":null,"CustomProperties":{}},"ProductPrice":{"CurrencyCode":null,"OldPrice":null,"Price":null,"PriceWithDiscount":null,"PriceValue":0.0,"CustomerEntersPrice":false,"CallForPrice":false,"ProductId":181,"HidePrices":true,"IsRental":false,"RentalPrice":null,"DisplayTaxShippingInfo":false,"BasePricePAngV":null,"CustomProperties":{}},"DefaultPictureModel":{"ImageUrl":"https://www.kn-knives.com/images/thumbs/002474_415.jfif","ThumbImageUrl":"https://www.kn-knives.com/images/thumbs/002474_130.jfif","FullSizeImageUrl":"https://www.kn-knives.com/Slike/2D/002474.jfif","Title":"Zeige Details für Silagemesser unten","AlternateText":"Bild von Silagemesser unten","CustomProperties":{}}},{"ProductId":182,"Sku":"002475","Name":"Mixer-Anhängermesser klein","Dimensions":"233 x 215 x 6","Weight":"0 G","Availability":true,"AvailabilityQuantity":20,"DeliveryDate":"21","TehnicnaSkica":"/Slike/Tehnicna_skica/002475_1.jfif","AddToCart":{"ProductId":182,"EnteredQuantity":1,"MinimumQuantityNotification":null,"AllowedQuantities":[],"CustomerEntersPrice":false,"CustomerEnteredPrice":0.0,"CustomerEnteredPriceRange":null,"DisableBuyButton":true,"DisableWishlistButton":true,"IsRental":false,"AvailableForPreOrder":false,"PreOrderAvailabilityStartDateTimeUtc":null,"PreOrderAvailabilityStartDateTimeUserTime":null,"UpdatedShoppingCartItemId":0,"UpdateShoppingCartItemType":null,"CustomProperties":{}},"ProductPrice":{"CurrencyCode":null,"OldPrice":null,"Price":null,"PriceWithDiscount":null,"PriceValue":0.0,"CustomerEntersPrice":false,"CallForPrice":false,"ProductId":182,"HidePrices":true,"IsRental":false,"RentalPrice":null,"DisplayTaxShippingInfo":false,"BasePricePAngV":null,"CustomProperties":{}},"DefaultPictureModel":{"ImageUrl":"https://www.kn-knives.com/images/thumbs/002475_415.jfif","ThumbImageUrl":"https://www.kn-knives.com/images/thumbs/002475_130.jfif","FullSizeImageUrl":"https://www.kn-knives.com/Slike/2D/002475.jfif","Title":"Zeige Details für Mixer-Anhängermesser klein","AlternateText":"Bild von Mixer-Anhängermesser klein","CustomProperties":{}}}]}'),dynamicVariableForFilter={},industryQuery=JSON.parse('""'),searchQuery=JSON.parse('""');$(document).ready(function(){var n=$("#variantsTable").DataTable({paging:!1,responsive:!0,info:!1,order:[[0,"desc"]],columnDefs:[{responsivePriority:1,targets:[0]}],language:{search:"Išči:",info:"Prikazujem _START_ do _END_ od _TOTAL_ zapisov"},initComplete:function(){$(".variantsTableLoader").hide();$("#variantsTable").show();CheckFor3dModels()}}),t;n.on("responsive-resize responsive-display",function(){setTimeout(function(){CheckFor3dModels()},300)});$.fn.dataTable.ext.search.push(function(t,i,r){var o=n.row(r).node(),u,f,e;console.log(o);for(key in dynamicVariableForFilter)if(dynamicVariableForFilter.hasOwnProperty(key)&&(u=dynamicVariableForFilter[key].replace(/\s\s+/g," "),u!="-1"))if(f=$(o).attr("data-spec"+key),f){if(e=f.split(","),console.log(e),!e.includes(u.toString()))return!1}else return!1;return!0});industryQuery.length>0&&($("#specificationfilter6").val(industryQuery),dynamicVariableForFilter[6]=industryQuery,n.draw(),CheckFor3dModels());searchQuery.length>0&&(t=$("#variantsTable").find("[data-sku$='"+searchQuery+"']"),t.css("background-color","#ecf6fc"));$("select[id^='specificationfilter']").change(function(){var r=$(this),t=$(this).attr("data-specid"),i=this.value;dynamicVariableForFilter[parseInt(t)]=i;n.draw()});$(".tehnicnaskicaData").on("click",function(){});$(document).on("click","body .3dmodelvarianttable",function(){var t=$(this).attr("data-variantid"),n=$("