function PB_OpdrukMethode(arrKleuren, bandjeType, lZwart) { var opdrukID, prijscat; bandjeType *= 1; // stoffen -> altijd 'Inweving' (ook als het onbedrukt is) if( bandjeType == 3 ) opdrukID = 5; // onbedrukt else if( arrKleuren.length == 0 ) opdrukID = 1; // zeefdruk kleur gebruikt? else if( $.inArray("917B4C", arrKleuren) > -1 || $.inArray("84888B", arrKleuren) > -1 || $.inArray("FFFFFF", arrKleuren) > -1 ) { opdrukID = 7; } else switch( bandjeType ) { case 2: opdrukID = 7; break; // vinyl case 4: opdrukID = 7; break; // holografisch case 1: // tyvek // op een zwart bandje drukken? if( lZwart ) { opdrukID = 7; } else if( arrKleuren.length == 1 && arrKleuren[0] == "000000" ) { opdrukID = 2; } else { opdrukID = 4; } }; // Zeefdruk en meer dan 1 kleur: Zeefdruk 2 kleuren if( opdrukID == 7 && arrKleuren.length > 1 ) opdrukID = 15; switch( opdrukID ) { case 1: prijscat = "Onbedrukt"; ontwerp_1 = ""; break;case 2: prijscat = "Zwarte druk"; ontwerp_1 = "Front"; break;case 4: prijscat = "Kleurendruk"; ontwerp_1 = "Front"; break;case 5: prijscat = "Inweving"; ontwerp_1 = "Front"; break;case 6: prijscat = "(Bar)code"; ontwerp_1 = "Front"; break;case 7: prijscat = "Zeefdruk"; ontwerp_1 = "Front"; break;case 8: prijscat = "Graveren"; ontwerp_1 = "Front"; break;case 9: prijscat = "Printen"; ontwerp_1 = "Front"; break;case 10: prijscat = "Graveren & Printen"; ontwerp_1 = "Front"; break;case 11: prijscat = "Satijn geprint"; ontwerp_1 = "Front"; break;case 12: prijscat = "Budget"; ontwerp_1 = ""; break;case 13: prijscat = "Metallic Goud Print"; ontwerp_1 = "Front"; break;case 14: prijscat = "Metallic Zilver Print"; ontwerp_1 = "Front"; break;case 15: prijscat = "Zeefdruk (2 kleuren)"; ontwerp_1 = "Front"; break;case 16: prijscat = "Printen (2 kleuren)"; ontwerp_1 = "Front"; break;case 17: prijscat = "Reliëf"; ontwerp_1 = "Front"; break;case 18: prijscat = "Polyester geprint"; ontwerp_1 = "Front"; break;case 19: prijscat = "Direct Print"; ontwerp_1 = "Front"; break; }; return { opdruk: prijscat, opdrukID: opdrukID ,ontwerp_1: ontwerp_1 }; } function getPos(pb_id) { switch( pb_id ) { case 1: pos = { holderWidth: 962, holderHeight: 74, areaLeft: 106, areaTop: 6, areaWidth: 756, areaHeight: 60, template: "Tyvek_19" }; break; case 2: pos = { holderWidth: 962, holderHeight: 96, areaLeft: 106, areaTop: 6, areaWidth: 756, areaHeight: 82, template: "Tyvek_25" }; break; case 3: pos = { holderWidth: 962, holderHeight: 120, areaLeft: 75, areaTop: 63, areaWidth: 382, areaHeight: 49, template: "Vinyl_Smal" }; break; case 4: pos = { holderWidth: 962, holderHeight: 127, areaLeft: 60, areaTop: 33, areaWidth: 230, areaHeight: 85, template: "Vinyl_Breed" }; break; case 5: pos = { holderWidth: 1323, holderHeight: 57, areaLeft: 1, areaTop: 1, areaWidth: 1319, areaHeight: 53, template: "Stoffen_15x350" }; break; case 6: pos = { holderWidth: 1323, holderHeight: 76, areaLeft: 1, areaTop: 1, areaWidth: 1319, areaHeight: 72, template: "Stoffen_20x350" }; break; case 7: pos = { holderWidth: 962, holderHeight: 120, areaLeft: 75, areaTop: 63, areaWidth: 382, areaHeight: 49, template: "Holografisch_Smal" }; break; case 8: pos = { holderWidth: 962, holderHeight: 127, areaLeft: 60, areaTop: 33, areaWidth: 230, areaHeight: 85, template: "Holografisch_Breed" }; break; case 9: pos = { holderWidth: 962, holderHeight: 74, areaLeft: 106, areaTop: 6, areaWidth: 756, areaHeight: 60, template: "Tyvek_19UV" }; break; case 10: pos = { holderWidth: 1512, holderHeight: 57, areaLeft: 1, areaTop: 1, areaWidth: 1508, areaHeight: 53, template: "Stoffen_15x400" }; break; case 11: pos = { holderWidth: 1512, holderHeight: 76, areaLeft: 1, areaTop: 1, areaWidth: 1508, areaHeight: 72, template: "Stoffen_20x400" }; break; case 12: pos = { holderWidth: 962, holderHeight: 74, areaLeft: 106, areaTop: 6, areaWidth: 756, areaHeight: 60, template: "Tyvek_budget" }; break; case 13: pos = { holderWidth: 0, holderHeight: 0, areaLeft: 0, areaTop: 0, areaWidth: 0, areaHeight: 0, template: "Siliconen_Kinder" }; break; case 14: pos = { holderWidth: 0, holderHeight: 0, areaLeft: 0, areaTop: 0, areaWidth: 0, areaHeight: 0, template: "Siliconen_Volwassen" }; break; case 16: pos = { holderWidth: 962, holderHeight: 96, areaLeft: 106, areaTop: 6, areaWidth: 756, areaHeight: 82, template: "Tyvek_25_Controlestrook" }; break; case 17: pos = { holderWidth: 962, holderHeight: 74, areaLeft: 106, areaTop: 6, areaWidth: 756, areaHeight: 60, template: "Tyvek_19_Afvalvrij" }; break; } return pos; } function pb_apiGenSRC(pb, ratio, imgBG, lOnlyParam, lTemplate, site) { if( !site ) site = "MX"; return apiGen_SRC( { template : pb.template + (!pb.delLogo && (pb.pb_ID == 1 || pb.pb_ID == 2 || pb.pb_ID == 9) ? "_" + site : ""), addTemplate: lTemplate, ratio: ratio, imgBG: imgBG, design: pb.ontwerp[0].design, withURL: !lOnlyParam }); }