var warranties = <%= product.finalPrice %>;
var iscategory = "<%= product.category[1].id %>";
if(iscategory == "a58a8268-4946-4121-8912-f53ba8efa0ea" || iscategory == "1c2d2aa8-6eda-4c6e-9b23-a49316b6450e" || iscategory == "6c580278-cdac-4bc1-aed2-4a6f00854706") {
if(warranties < 250) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-a-plan-de-protection-foto-source-3-ans-tous-risques-0$-a-250$-de-valeur-dequipement/29622df0-0a06-0133-f1a8-00163e9110c0?variation=1153078");
$("#warPrice").html("Prix: 60$");
}
else if(warranties < 500) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-b-plan-de-protection-foto-source-3-ans-tous-risques-251$-a-500$-de-valeur-dequipement/b9653f50-0a14-0133-6c6e-00163e9110c0?variation=1153079");
$("#warPrice").html("Prix: 80$");
}
else if(warranties < 750) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-c-plan-de-protection-foto-source-3-ans-tous-risques-501$-a-750$-de-valeur-dequipement/83765190-0a18-0133-f1a9-00163e9110c0?variation=1153080");
$("#warPrice").html("Prix: 150$");
}
else if(warranties < 1000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-d-plan-de-protection-foto-source-3-ans-tous-risques-751$-a-1000$-de-valeur-dequipement/dff7b9a0-0a19-0133-f1aa-00163e9110c0?variation=1153081");
$("#warPrice").html("Prix: 180$");
}
else if(warranties < 1500) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-e-plan-de-protection-foto-source-3-ans-tous-risques-1001$-a-1500$-de-valeur-dequipement/e745f900-0a1a-0133-6c6f-00163e9110c0?variation=1153082");
$("#warPrice").html("Prix: 225$");
}
else if(warranties < 2000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-f-plan-de-protection-foto-source-3-ans-tous-risques-1501$-a-2000$-de-valeur-dequipement/a3cf85e0-0a1b-0133-f1ab-00163e9110c0?variation=1153083");
$("#warPrice").html("Prix: 300$");
}
else if(warranties < 2500) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-g-plan-de-protection-foto-source-3-ans-tous-risques-2001$-a-2500$-de-valeur-dequipement/5ac35c10-0a1c-0133-6c70-00163e9110c0?variation=1153084");
$("#warPrice").html("Prix: 350$");
}
else if(warranties < 3000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-h-plan-de-protection-foto-source-3-ans-tous-risques-2501$-a-3000$-de-valeur-dequipement/f1308360-0a1d-0133-6c71-00163e9110c0?variation=1153085");
$("#warPrice").html("Prix: 400$");
}
else if(warranties < 4000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-i-plan-de-protection-foto-source-3-ans-tous-risques-3001$-a-4000$-de-valeur-dequipement/a653e100-0a1e-0133-f1ac-00163e9110c0?variation=1153086");
$("#warPrice").html("Prix: 450$");
}
else if(warranties < 5000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-j-plan-de-protection-foto-source-3-ans-tous-risques-4001$-a-5000$-de-valeur-dequipement/79dcfe80-0a1f-0133-f1ad-00163e9110c0?variation=1153087");
$("#warPrice").html("Prix: 500$");
}
else if(warranties < 6000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-k-plan-de-protection-foto-source-3-ans-tous-risques-5001$-a-6000$-de-valeur-dequipement/2f73f9c0-0a21-0133-f1af-00163e9110c0?variation=1153091");
$("#warPrice").html("Prix: 625$");
}
else if(warranties < 7000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-l-plan-de-protection-foto-source-3-ans-tous-risques-6001$-a-7000$-de-valeur-dequipement/36bfac50-0a23-0133-f1b0-00163e9110c0?variation=1153092");
$("#warPrice").html("Prix: 750$");
}
else if(warranties < 8000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-m-plan-de-protection-foto-source-3-ans-tous-risques-7001$-a-8000$-de-valeur-dequipement/5236a520-0a28-0133-f1b4-00163e9110c0?variation=1153094");
$("#warPrice").html("Prix: 825$");
}
else if(warranties < 9000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-n-plan-de-protection-foto-source-3-ans-tous-risques-8001$-a-9000$-de-valeur-dequipement/526e93a0-0a2a-0133-6c73-00163e9110c0?variation=1153095");
$("#warPrice").html("Prix: 1 000$");
}
else if(warranties < 10000) {
$("#mackwar").show();
$("#warrantybox").show();
$("#warrantyLinkBox").attr("href", "../foto-source-o-plan-de-protection-foto-source-3-ans-tous-risques-9001$-a-10-000$-de-valeur-dequipement/f97b4800-0a2a-0133-f1b5-00163e9110c0?variation=1153096");
$("#warPrice").html("Prix: 1 200$");
}
else if(warranties > 10000) {
$("#warrantyLinkBox").hide();
}
}