1var GlassMasterOnly; 2var DuplicationOnly; 3var prevfinishing = ""; 4var LinkVinylCDMasterink; 5var lblPrintMergeText; 6var mySwiper; 7var NufacoOptChanged = false; 8 9function CopyList(firstListBox, secondListBox) { 10 if (secondListBox.options.length > 0) 11 for (i = secondListBox.options.length - 1; i >= 0; i--) 12 secondListBox.remove(i); 13 for (var i = 0; i < firstListBox.options.length; i++) { 14 var newOption = document.createElement("option"); 15 newOption.text = firstListBox.options[i].text; 16 newOption.value = firstListBox.options[i].value; 17 secondListBox.options[secondListBox.options.length] = newOption; 18 } 19 secondListBox.selectedIndex = 0; 20} 21 22function AcceptCookies() { 23 //if (!$.cookie("cookiescriptaccept")) { 24 // $("div#cookiescript_accept").trigger("click"); 25 //} 26} 27 28function EnableDisableNufaco(price, xcgRate) { 29 var minVal; 30 minVal = $("#NufacoFreeFrom").val() * xcgRate; 31 minVal = Math.round(minVal) 32 33 $("#LabelfreeFromValue").html(minVal.toString() + " " + $("#HiddenCurrency").val()); 34 35 $("#CheckboxNufaco").prop("disabled", false); 36 $("#LabelNufaco").css("opacity", "1"); 37 //if (price > minVal) { 38 // $("#CheckboxNufaco").prop("disabled", false); 39 // $("#LabelNufaco").css("opacity", "1"); 40 // if (!NufacoOptChanged) $("#CheckboxNufaco").prop("checked", true); 41 //} 42 //else { 43 // $("#CheckboxNufaco").prop("disabled", true); 44 // $("#LabelNufaco").css("opacity", "0.5"); 45 //} 46 47} 48 49function PrintPdf() { 50 GetPrice('PrintQuote'); 51 //if (document.getElementById('ChkVinylDisk').checked) 52 // i_Product = "Vinyl"; 53 //else 54 // i_Product = "Optical"; 55 //var i_currency = document.getElementById("HiddenCurrency").value; 56 //var i_culture = document.getElementById("HiddenCulture").value; 57 //var i_nCopies = document.getElementById('TextBoxQuantity').value; 58 //var i_Price = $("#TextBoxSubTotal").val(); 59 60 //var Parameters = { 61 // content_name: i_Product, value: i_Price, currency: i_currency, culture: i_culture, quantity: i_nCopies 62 //}; 63 //fbq('trackCustom', 'PrintQuote', Parameters); 64 65} 66 67function setPagantis(totalPrice) { 68 var pgt_key = $("#PGT_public_key").val(); 69 var pgt_locale = $("#PGT_Locale").val(); 70 71 $(".customSimulator").html(""); //clean-up the div where the widget is loaded in. This avoids multiple widgeds in the same panel 72 if (pgt_key) { 73 if (totalPrice >= parseInt($("#PGT_MinValue").val()) && totalPrice <= parseInt($("#PGT_MaxValue").val())) { 74 options = { 75 'publicKey': pgt_key, 76 'selector': '.customSimulator', 77 'type': pgSDK.simulator.types.PRODUCT_PAGE, 78 'skin': pgSDK.simulator.skins.BLUE, 79 'itemAmount': totalPrice.toString(), 80 'itemQuantity': '1', 81 'locale': pgt_locale, 82 'country': pgt_locale, 83 } 84 //$("#pagantis").show(); //ensure the parent panel is visible 85 //setTimeout(function () { pgSDK.simulator.init(options)}, 100); 86 pgSDK.simulator.init(options); 87 } 88 //else 89 // $("#pagantis").hide(); //hide pagantis option 90 } 91 92 93} 94 95function GetJobObject() { 96 var i_Mediatype = document.getElementById("DropDownListMedia").value; 97 var i_Finishing = document.getElementById("DropDownListFinishing").value; 98 var i_BurnDisc; 99 if (document.getElementById("DropDownListBurn").selectedIndex == 0) 100 i_BurnDisc = true; 101 else 102 i_BurnDisc = false; 103 var i_Packaging = document.getElementById("DropDownListPackage").value; 104 var i_CoverInlay = document.getElementById("DropDownListInlay").value; 105 var i_booklet = document.getElementById("DropDownListBooklet").value; 106 var i_Priority = document.getElementById("DropDownListProd").value; 107 var i_nCopies = document.getElementById('TextBoxQuantity').value; 108 var i_Option_CellophanWrapping = document.getElementById('chkCellophan').checked; 109 var i_Option_Lamination = document.getElementById('chkLamination').checked; 110 var i_Option_LaminationGlossy = document.getElementById('chkLaminationGlossy').checked; 111 var i_Option_QualityCheck = document.getElementById('chkDesignCheck').checked; 112 var i_Option_CopyProtection = document.getElementById('chkVideoProtect').checked; 113 var i_Opotion_Serialization = document.getElementById('CheckboxPrintMerge').checked; 114 var i_Service_VideoConversion; 115 var i_VinylDisc = document.getElementById("DropDownListVinyl").value; 116 var i_VinylPackage = document.getElementById("DropDownListVinylPackage").value; 117 var i_VinylBooklet = document.getElementById("DropDownListVinylBooklet").value; 118 var i_VinylColor = document.getElementById("DropDownListVinylcolor").value; 119 var i_VinylInnerPackage = document.getElementById("DropDownListVinylPackageInner").value; 120 var i_VinylFinishing = document.getElementById("DropDownListVinylFinishing").value; 121 var i_TestPressing = document.getElementById("CheckboxTestPressing").checked; 122 var i_SIAE = document.getElementById("CheckboxSIAE").checked; 123 var i_Foil = 0; //document.getElementById("DropDownListFoil").value; 124 125 var i_Product; 126 if (document.getElementById('ChkVinylDisk').checked) 127 i_Product = 1; 128 else 129 i_Product = 0; 130 if (document.getElementById('chkVideoConv').checked) 131 i_Service_VideoConversion = 1; 132 else if (document.getElementById('chkVideoAuthoring1').checked) 133 i_Service_VideoConversion = 2; 134 else 135 i_Service_VideoConversion = 0; 136 137 var i_shipOption = document.getElementById("DropDownListCarrier").value; 138 var i_zipCode = "00100"; 139 var i_CountryCode = document.getElementById("DropDownListShip").value; 140 var i_culture = document.getElementById("HiddenCulture").value; 141 var i_currency = document.getElementById("HiddenCurrency").value; 142 143 var i_DesignLevel; 144 if (document.getElementById('CheckboxLayout').checked) 145 i_DesignLevel = 1; 146 else if (document.getElementById('CheckboxDesign').checked) 147 i_DesignLevel = 2; 148 else 149 i_DesignLevel = 0; 150 151 var i_audioLevel; 152 var i_nTracks; 153 if (document.getElementById('CheckboxVolumeLevel').checked) { 154 i_audioLevel = 1; 155 //i_nTracks = 1; 156 i_nTracks = document.getElementById('TextBoxnTracks2').value; 157 } 158 else if (document.getElementById('CheckboxMastering').checked) { 159 i_audioLevel = 2; 160 i_nTracks = document.getElementById('TextBoxnTracks').value; 161 } 162 else { 163 i_audioLevel = 0; 164 i_nTracks = 1; 165 } 166 var i_CDDB = document.getElementById('CheckboxCDDB').checked; 167 var i_BarCode = document.getElementById('ChkBarcode').checked; 168 var i_ISRC = document.getElementById('ChkISRC').checked; 169 var OptionData = { 170 Mediatype: i_Mediatype, Finishing: i_Finishing, BurnDisc: i_BurnDisc, Packaging: i_Packaging, 171 CoverInlay: i_CoverInlay, booklet: i_booklet, Priority: i_Priority, nCopies: i_nCopies, 172 Option_CellophanWrapping: i_Option_CellophanWrapping, 173 Option_Lamination: i_Option_Lamination, 174 Option_LaminationGlossy: i_Option_LaminationGlossy, 175 Option_QualityCheck: i_Option_QualityCheck, 176 Option_CopyProtection: i_Option_CopyProtection, 177 Option_Serialization: i_Opotion_Serialization, 178 Service_VideoConversion: i_Service_VideoConversion, 179 shipOption: i_shipOption, 180 zipCode: i_zipCode, 181 CountryCode: i_CountryCode,
182 Service_DesignLevel: i_DesignLevel, 183 Service_CDDB: i_CDDB, 184 Service_ISRC: i_ISRC, 185 Service_BarCode: i_BarCode, 186 Service_AudioLevel: i_audioLevel, 187 nTracks: i_nTracks, 188 culture: i_culture, 189 currency: i_currency, 190 VinylDisc: i_VinylDisc, 191 VinylPackage: i_VinylPackage, 192 VinylBooklet: i_VinylBooklet, 193 VinylColor: i_VinylColor, 194 VinylInnerPackage: i_VinylInnerPackage, 195 VinylFinishing: i_VinylFinishing, 196 TestPressing: i_TestPressing, 197 Product: i_Product, 198 SIAE: i_SIAE, 199 Foil: i_Foil 200 }; 201 return OptionData; 202} 203 204function GetPrice(customEvent) { 205 VoidPrice(); 206 var retvalue = false; 207 208 209 var OptionData = GetJobObject(); 210 if ($.ajaxq.isRunning("quote")) 211 $.ajaxq.abort("quote"); 212 $.ajaxq("quote",{ 213 type: "POST", 214 url: "/quickquote/service.asmx/GetPrice", 215 data: "{ MyProject: " + JSON.stringify(OptionData) + "}", 216 contentType: "application/json; charset=utf-8", 217 dataType: "json", 218 success: function (data) { 219 var wMsg; 220 var myData = data.d; 221 if (myData.Result) { 222 retvalue = true; 223 $("#TextBoxSubTotal").val(myData.Price); 224 $("#TextBoxSubTotal1").val(myData.Price); 225 $("#TextBoxShip").val(myData.ShippingPrice); 226 $("#TextBoxShip1").val(myData.ShippingPrice); 227 $("#TextBoxTotal").val(myData.TotalPrice); 228 $("#TextBoxTotal1").val(myData.TotalPrice); 229 $("#LabelDescription").html(myData.Description); 230 //$("#LabelDesignPrice").html(myData.GraphicServicePrice); 231 $(".designprice").html(myData.GraphicServicePrice); 232 $(".audioserviceprice").html(myData.AudioServicePrice); 233 $(".videoserviceprice").html(myData.VideoServicePrice); 234 var VAT = parseInt($("#H_VAT").val()); 235 var totWithVAT = myData.PriceNumericWithShipping * (1+ VAT / 100); 236 totWithVAT = totWithVAT.toFixed(2); 237 $("#TextBoxTotalVat").val("⬠" + totWithVAT.toString()); 238 //$("#LabelAudioService").html(myData.AudioServicePrice); 239 //$("#LabelVideoService").html(myData.VideoServicePrice); 240 EnableDisableNufaco(myData.PriceNumeric, myData.xcgRate); 241 if (customEvent) { 242 var i_nCopies = document.getElementById('TextBoxQuantity').value; 243 var i_culture = document.getElementById("HiddenCulture").value; 244 var i_currency = document.getElementById("HiddenCurrency").value; 245 if (document.getElementById('ChkVinylDisk').checked) 246 i_Product = 1; 247 else 248 i_Product = 0; 249 var Parameters = { 250 content_name: i_Product, value: myData.PriceNumeric, currency: i_currency, culture: i_culture, quantity: i_nCopies 251 }; 252 fbq('trackCustom', customEvent, Parameters); 253 } 254 //setPagantis(totWithVAT); 255 } 256 else { 257 //setPagantis(0); 258 } 259 }, 260 error: function (jqXHR, textStatus, errorThrown) { 261 VoidPrice(); 262 //setPagantis(0); 263 } 264 }); 265 return retvalue; 266} 267 268function SendMail() { 269 var s = $("#LabelDescription").html(); 270 s = s.replace(/<ul>/g, ""); 271 s = s.replace(new RegExp("</ul>", 'g'), ""); 272 s = s.replace(/<li>/g, "%0D%0A"); 273 s = s.replace(new RegExp("</li>", 'g'), ""); 274 location.href = "mailto:[email protected]" + "?Subject=Vinyl disc request" + "&Body=" + s; 275} 276 277function VoidPrice() { 278 $("#TextBoxSubTotal").val("---"); 279 $("#TextBoxShip").val("---"); 280 $("#TextBoxTotal").val("---"); 281 $("#TextBoxSubTotal1").val("---"); 282 $("#TextBoxShip1").val("---"); 283 $("#TextBoxTotal1").val("---"); 284 //$("#LabelDesignPrice").html("---"); 285 $(".designprice").html("---"); 286 //$("#LabelAudioService").html("---"); 287 $(".audioserviceprice").html("---"); 288 $("#LabelVideoService").html("---"); 289 $("#TextBoxTotalVat").val("---"); 290} 291 292 293function ShowMedia() { 294 var list = document.getElementById('DropDownListFinishing'); 295 var content = "";
296 var imgpath = GetFinishingImage(list.value); 297 $('#mediaContainer').fadeOut("slow", function () { 298 $('#mediaImage').attr('src', imgpath); 299 $('#mediaContainer').fadeIn(); 300 }); 301} 302 303function ShowPackage() { 304 var list = document.getElementById('DropDownListPackage'); 305 var content = ""; 306 var template = {path:""}; 307 var imgpath = GetPackageImage(list.value, template); 308 var bookletImg = GetBookletImage(list.value); 309 if ((imgpath != $('#packageImage').attr('src')) || (bookletImg != $('#bookletImage').attr('src'))) { 310 $('#packageContainer').fadeOut("slow", function () { 311 $('#packageImage').attr('src', imgpath); 312 if (bookletImg == "") 313 $('#bookletImage').hide(); 314 else { 315 $('#bookletImage').attr('src', bookletImg); 316 $('#bookletImage').show(); 317 } 318 if (template.path == "") 319 $('#divtemplate').hide(); 320 else 321 { 322 $('#divtemplate').show(); 323 document.getElementById('HyperLinkTemplate').setAttribute("href", template.path); 324 } 325 $('#packageContainer').fadeIn(); 326 }); 327 } 328} 329 330 331function GetFinishingImage(idx) { 332 var mediaId = document.getElementById('DropDownListMedia').value; 333 switch (mediaId) { 334 case "0": 335 case "1": 336 case "2": 337 document.getElementById('HyperLinkTemplateMedia').setAttribute("href", "/template/MEDIA120MM.pdf"); 338 break; 339 case "3": 340 case "4": 341 document.getElementById('HyperLinkTemplateMedia').setAttribute("href", "/template/MEDIA80MM.pdf"); 342 break; 343 case "6": 344 document.getElementById('HyperLinkTemplateMedia').setAttribute("href", "/template/MEDIACDCARD.pdf"); 345 break; 346 case "8": 347 document.getElementById('HyperLinkTemplateMedia').setAttribute("href", "/template/MEDIAVINYLCD.pdf"); 348 break; 349 } 350 switch (idx) { 351 case "0": 352 switch (mediaId) { 353 case "0": 354 return "/gfx/media/cd-white.jpg"; 355 case "1": 356 return "/gfx/media/dvd-white.jpg"; 357 case "2": 358 return "/gfx/media/blu-ray.jpg"; 359 case "3": 360 return "/gfx/media/mini-cd.jpg"; 361 case "4": 362 return "/gfx/media/mini-dvd.jpg"; 363 case "6": 364 return "/gfx/media/cd-card.jpg"; 365 case "8": 366 return "/gfx/media/vinile.jpg"; 367 } 368 break; 369 case "1": 370 switch (mediaId) { 371 case "0": 372 return "/gfx/media/cd-inkjetwhite.jpg"; 373 case "1": 374 return "/gfx/media/dvd-inkjetwhite.jpg"; 375 case "3": 376 return "/gfx/media/nmini-cd-color.jpg"; 377 case "4": 378 return "/gfx/media/mini-dvd-color.jpg"; 379 case "6": 380 return "/gfx/media/cd-card-color.jpg"; 381 case "8": 382 return "/gfx/media/vinyl-color.jpg"; 383 } 384 break; 385 case "2": 386 switch (mediaId) { 387 case "0": 388 return "/gfx/media/cd-inkjettextwhite.jpg"; 389 case "1": 390 return "/gfx/media/dvd-inkjettextwhite.jpg"; 391 case "2": 392 return "/gfx/media/bd-thermal-text.jpg"; 393 case "3": 394 return "/gfx/media/mini-cd-text.jpg"; 395 case "4": 396 return "/gfx/media/mini-dvd-text.jpg"; 397 case "6": 398 return "/gfx/media/cd-card-text.jpg"; 399 case "8": 400 return "/gfx/media/vinyl-text.jpg"; 401 } 402 break; 403 case "3": 404 switch (mediaId) { 405 case "0": 406 return "/gfx/media/cd-inkjetsilver.jpg"; 407 case "1": 408 return "/gfx/media/dvd-inkjetsilver.jpg"; 409 } 410 break; 411 case "4": 412 switch (mediaId) { 413 case "0": 414 return "/gfx/media/cd-inkjettextsilver.jpg"; 415 case "1": 416 return "/gfx/media/dvd-inkjettextsilver.jpg"; 417 } 418 break; 419 case "5": 420 switch (mediaId) { 421 case "0": 422 return "/gfx/media/cd-thermal-color.jpg"; 423 case "1": 424 return "/gfx/media/dvd-thermal-color.jpg"; 425 case "2": 426 return "/gfx/media/bd-thermal.jpg"; 427 case "3": 428 return "/gfx/media/nmini-cd-color.jpg"; 429 case "4": 430 return "/gfx/media/mini-dvd-color.jpg"; 431 case "6": 432 return "/gfx/media/cd-card-color.jpg"; 433 case "8": 434 return "/gfx/media/vinyl-color.jpg"; 435 436 } 437 break; 438 case "6": 439 switch (mediaId) { 440 case "0": 441 return "/gfx/media/cd-thermal-black.jpg"; 442 case "1": 443 return "/gfx/media/dvd-thermal-black.jpg"; 444 case "2": 445 return "/gfx/media/bd-thermal-black.jpg"; 446 } 447 break; 448 case "7": 449 switch (mediaId) { 450 case "0": 451 return "/gfx/media/cd-glassmaster.jpg"; 452 case "1": 453 return "/gfx/media/dvd-glassmaster.jpg"; 454 } 455 } 456} 457 458 459function GetInlayImage(idx) { 460 switch (idx) { 461 case "2": 462 case "14": 463 return "/gfx/inserto.jpg"; 464 case "3": 465 case "15": 466 return "/gfx/inserto44.jpg"; 467 case "4": 468 return "/gfx/dvdslimboxwrapper.jpg"; 469 case "5": 470 case "10": 471 return "/gfx/dvdinsert.jpg"; 472 case "6": 473 case "11": 474 return "/gfx/dvdinsert44.jpg"; 475 case "7": 476 return "/gfx/dvdslimboxwrapper_insert.jpg"; 477 case "8": 478 return "/gfx/dvdslimboxwrapper_insert44.jpg"; 479 case "9": 480 return "/gfx/dvdboxwrapper.jpg"; 481 case "12": 482 return "/gfx/dvdboxwrapper_inserto.jpg"; 483 case "13": 484 return "/gfx/dvdboxwrapper_inserto44.jpg"; 485 case "16": 486 case "28": 487 return "/gfx/booklet.jpg"; 488 case "17": 489 case "29": 490 return "/gfx/booklet44.jpg"; 491 case "18": 492 return "/gfx/traycard.jpg"; 493 case "19": 494 return "/gfx/inserto_traycard.jpg"; 495 case "20": 496 return "/gfx/inserto44_traycard.jpg"; 497 case "21": 498 return "/gfx/booklet_traycard.jpg"; 499 case "22": 500 return "/gfx/booklet44_traycard.jpg"; 501 case "23": 502 return "/gfx/bluraywrapper.jpg"; 503 case "24": 504 return "/gfx/blurayinsert.jpg"; 505 case "25": 506 return "/gfx/blurayinsert44.jpg"; 507 case "26": 508 return "/gfx/bluraywrapper_inserto.jpg"; 509 case "27": 510 return "/gfx/bluraywrapper_inserto44.jpg"; 511 case "30": 512 return "/gfx/dvdslimboxwrapperclear.jpg"; 513 case "31": 514 return "/gfx/dvdslimboxwrapper_insertclear.jpg"; 515 case "32": 516 return "/gfx/dvdslimboxwrapper_insert44clear.jpg"; 517 case "33": 518 return "/gfx/dvdboxwrapperclear.jpg"; 519 case "34": 520 return "/gfx/dvdboxwrapper_insertoclear.jpg"; 521 case "35": 522 return "/gfx/dvdboxwrapper_inserto44clear.jpg"; 523 case "36": 524 return "/gfx/traycardclear.jpg"; 525 case "37": 526 return "/gfx/inserto_traycardclear.jpg"; 527 case "38": 528 return "/gfx/inserto44_traycardclear.jpg"; 529 case "39": 530 return "/gfx/booklet_traycardclear.jpg"; 531 case "40": 532 return "/gfx/booklet44_traycardclear.jpg"; 533 534 } 535 536} 537 538 539function GetBookletImage(packageID) { 540 var inlayId = document.getElementById('DropDownListInlay').value; 541 var bookletId = document.getElementById('DropDownListBooklet').value; 542 switch (packageID) { 543 case "5": 544 case "14": 545 switch (bookletId) { 546 case "0": 547 return ""; 548 case "1": 549 return "/gfx/booklet/inserto.png"; 550 case "2": 551 return "/gfx/booklet/inserto44.png"; 552 default: 553 return "/gfx/booklet/booklet44.png"; 554 } 555 case "6": 556 case "7": 557 case "15": 558 case "16": 559 switch (inlayId) { 560 case "0": 561 if (bookletId == "0") 562 return ""; 563 else if (bookletId == "1") 564 return "/gfx/booklet/dvdinsert.png"; 565 else if (bookletId == "2") 566 return "/gfx/booklet/dvdinsert44.png"; 567 else 568 return "/gfx/booklet/dvdbooklet.png"; 569 case "1": 570 if (bookletId == "0") 571 return "/gfx/booklet/dvdslimboxwrapper.png"; 572 else if (bookletId == "1") 573 return "/gfx/booklet/dvdslimboxwrapper_insert.png"; 574 else if (bookletId == "2") 575 return "/gfx/booklet/dvdslimboxwrapper_insert44.png"; 576 else 577 return "/gfx/booklet/dvdslimboxwrapper_booklet.png"; 578 case "2": 579 if (bookletId == "0") 580 return "/gfx/booklet/dvdslimboxwrapper44.png"; 581 else if (bookletId == "1") 582 return "/gfx/booklet/dvdboxwrapper44_inserto.png"; 583 else if (bookletId == "2") 584 return "/gfx/booklet/dvdslimboxwrapper44_insert44.png"; 585 else 586 return "/gfx/booklet/dvdboxwrapper44_booklet.png"; 587 default: 588 return ""; 589 } 590 case "8": 591 case "17": 592 switch (inlayId) { 593 case "0": 594 case "1": 595 case "2": 596 if (bookletId == "0") 597 return ""; 598 else if (bookletId == "1") 599 return "/gfx/booklet/inserto.png"; 600 else if (bookletId == "2") 601 return "/gfx/booklet/inserto44.png"; 602 else 603 return "/gfx/booklet/booklet44.png"; 604 case "3": 605 case "4": 606 if (bookletId == "0") 607 return "/gfx/booklet/traycardclear.png"; 608 else if (bookletId == "1") 609 return "/gfx/booklet/inserto_traycardclear.png"; 610 else if (bookletId == "2") 611 return "/gfx/booklet/inserto44_traycardclear.png"; 612 else 613 return "/gfx/booklet/booklet44_traycardclear.png"; 614 } 615 break; 616 case "9": 617 switch (inlayId) { 618 case "0": 619 if (bookletId == "0") 620 return ""; 621 else if (bookletId == "1") 622 return "/gfx/booklet/blurayinsert.png"; 623 else if (bookletId == "2") 624 return "/gfx/booklet/blurayinsert44.png"; 625 else 626 return "/gfx/booklet/bluray_booklet.png"; 627 case "1": 628 if (bookletId == "0") 629 return "/gfx/booklet/bluraywrapper.png"; 630 else if (bookletId == "1") 631 return "/gfx/booklet/bluraywrapper_inserto.png"; 632 else if (bookletId == "2") 633 return "/gfx/booklet/bluraywrapper_inserto44.png"; 634 else 635 return "/gfx/booklet/bluraywrapper_booklet.png"; 636 default: 637 return ""; 638 } 639 case "12": 640 case "18": 641 case "19": 642 case "20": 643 case "21": 644 case "22": 645 case "26": 646 case "27": 647 switch (bookletId) { 648 case "0": 649 return ""; 650 case "1": 651 return "/gfx/booklet/inserto.png"; 652 case "2": 653 return "/gfx/booklet/inserto44.png"; 654 default: 655 return "/gfx/booklet/booklet44.png"; 656 } 657 case "23": 658 case "24": 659 switch (bookletId) { 660 case "0": 661 return ""; 662 case "1": 663 return "/gfx/booklet/dvdinsert.png"; 664 case "2": 665 return "/gfx/booklet/dvdinsert44.png"; 666 default: 667 return "/gfx/booklet/dvdbooklet.png"; 668 } 669 case "28": 670 //return "/gfx/package/digiflex-open.png"; 671 return "/gfx/template/digiflex.gif"; 672 default: 673 return ""; 674 } 675} 676 677//manca DVDpack 3 ante 678//manca bustina per CD-Card e MiniCD 679 680function GetPackageImage(idx, templatepath) { 681 var mediaId = document.getElementById('DropDownListMedia').value; 682 var inlayId = document.getElementById('DropDownListInlay').value; 683 var bookletId = document.getElementById('DropDownListBooklet').value; 684 switch (idx) { 685 case "0": 686 templatepath.path = ""; 687 return "/gfx/package/on-spindle.jpg" 688 case "1": 689 templatepath = ""; 690 switch (mediaId) { 691 case "0": 692 case "1": 693 case "2": 694 return "/gfx/package/campana.jpg"; 695 case "3": 696 case "4": 697 return "/gfx/package/campana.jpg"; 698 case "6": 699 return "/gfx/package/campana.jpg"; 700 case "8": 701 return "/gfx/package/campana.jpg"; 702 } 703 break; 704 case "2": 705 case "25": 706 templatepath.path = ""; 707 return "/gfx/package/plastic-sleeve.jpg"; 708 case "3": 709 templatepath.path = ""; 710 return "/gfx/package/paper-sleeve.jpg"; 711 case "4": 712 templatepath.path = "/template/cardboard.zip"; 713 return "/gfx/package/bustacartoncino.jpg"; 714 case "5": 715 templatepath.path = "/template/cdslimboxblack.zip"; 716 switch (bookletId) { 717 case "0": 718 return "/gfx/package/cd-slim-box-black.jpg"; 719 default: 720 return "/gfx/package/cd-slim-box-black-bkl.jpg"; 721 } 722 case "6": 723 templatepath.path = "/template/dvdslimboxblack.zip"; 724 switch (inlayId) { 725 case "0": 726 return "/gfx/package/dvd-slim-box-black.jpg"; 727 default: 728 return "/gfx/package/dvd-slim-box-black-cover40.jpg"; 729 } 730 case "7": 731 templatepath.path = "/template/dvdboxblack.zip"; 732 switch (inlayId) { 733 case "0": 734 return "/gfx/package/dvd-box.jpg"; 735 default: 736 return "/gfx/package/dvd-box-cover40.jpg"; 737 } 738 case "8": 739 templatepath.path = "/template/cdjewelblack.zip"; 740 switch (bookletId) { 741
741 case "0": 742 return "/gfx/package/jewel-box-black.jpg"; 743 default: 744 return "/gfx/package/jewel-box-black-bkl.jpg"; 745 } 746 case "9": 747 templatepath.path = "/template/bluraybox.zip"; 748 switch (inlayId) { 749 case "0": 750 if (bookletId=="0") 751 return "/gfx/package/blu-ray.jpg"; 752 else 753 return "/gfx/package/blu-ray-bkl.jpg"; 754 default: 755 return "/gfx/package/blu-ray-cover40.jpg"; 756 } 757 case "10": 758 templatepath.path = "/template/brochure2.zip"; 759 return "/gfx/package/brochure2ante.jpg"; 760 case "11": 761 templatepath.path = "/template/brochure3.zip"; 762 return "/gfx/package/brochure3ante.jpg"; 763 case "12": 764 templatepath.path = "/template/digipack2.zip"; 765 return "/gfx/package/digipack.jpg"; 766 case "14": 767 templatepath.path = "/template/cdslimboxclear.zip"; 768 switch (bookletId) { 769 case "0": 770 return "/gfx/package/cd-slim-box-clear.jpg"; 771 default: 772 return "/gfx/package/cd-slim-box-clear-bkl.jpg"; 773 } 774 case "15": 775 templatepath.path = "/template/dvdslimboxclear.zip"; 776 switch (inlayId) { 777 case "0": 778 if (bookletId == "0") 779 return "/gfx/package/dvd-slim-box-clear.jpg"; 780 else 781 return "/gfx/package/dvd-slim-box-clear-bkl.jpg"; 782 case "1": 783 return "/gfx/package/dvd-slim-box-clear-cover40.jpg"; 784 default: 785 return "/gfx/package/dvd-slim-box-clear-cover44.jpg"; 786 } 787 case "16": 788 templatepath.path = "/template/dvdboxclear.zip"; 789 switch (inlayId) { 790 case "0": 791 if (bookletId == "0") 792 return "/gfx/package/dvd-box-clear.jpg"; 793 else 794 return "/gfx/package/dvd-clear-insert.jpg"; 795 case "1": 796 return "/gfx/package/dvd-box-clear-cover40.jpg"; 797 default: 798 return "/gfx/package/dvd-box-clear-cover44.jpg"; 799 } 800 case "17": 801 templatepath.path = "/template/cdjewelclear.zip"; 802 switch (inlayId) { 803 case "4": 804 if (bookletId == "0") 805 return "/gfx/package/jewel-box-clear-tray44.jpg"; 806 else 807 return "/gfx/package/jewel-box-clear-bkl-tray44.jpg" 808 default: 809 if (bookletId == "0") 810 return "/gfx/package/jewel-box-clear.jpg"; 811 else 812 return "/gfx/package/jewel-box-clear-bkl.jpg" 813 } 814 case "18": 815 templatepath.path = "/template/digifile2.zip"; 816 return "/gfx/package/digifile.jpg"; 817 case "26": 818 templatepath.path = "/template/digisleeve2.zip"; 819 return "/gfx/package/digisleeve.jpg"; 820 case "19": 821 templatepath.path = "/template/digiclick2.zip"; 822 return "/gfx/package/digiclick.jpg"; 823 case "20": 824 templatepath.path = "/template/digifile3.zip"; 825 return "/gfx/package/digifile3ante.jpg"; 826 case "27": 827 templatepath.path = "/template/digisleeve3.zip"; 828 return "/gfx/package/digisleeve6panels.jpg"; 829 case "21": 830 templatepath.path = "/template/digiclick3.zip"; 831 return "/gfx/package/digiclick3ante.jpg"; 832 case "22": 833 templatepath.path = "/template/digipack3.zip"; 834 return "/gfx/package/digipack3ante.jpg"; 835 case "23": 836 templatepath.path = "/template/dvdpack2.zip"; 837 return "/gfx/package/dvdpack.jpg"; 838 case "24": 839 templatepath.path = "/template/dvdpack3.zip"; 840 return "/gfx/package/dvdpack3p.jpg"; 841 case "28": 842 templatepath.path = "/template/digiflex.zip"; 843 switch (inlayId) { 844 case "5": 845 return "/gfx/package/digiflex-strip.jpg"; 846 case "6": 847 return "/gfx/package/digiflex-strip-custom.jpg"; 848 default: 849 return "/gfx/package/digiflex-no-strip.jpg"; 850 } 851 default: 852 } 853} 854 855 856 857function SetPackage() { 858 var packId = document.getElementById('DropDownListPackage').value; 859 var inlayID = document.getElementById('DropDownListInlay').value; 860 $("#HyperLinkBooklet").show(); 861 switch (packId) { 862 case "5": //cdslim-box 863 case "14": //cdslim-box clear 864 case "12": //Digipack 865 case "18": //DGFIle2P 866 case "19": //DGClick2P 867 case "23": //DVDPack2P 868 case "20": //DGFIle3P 869 case "21": //DGClick3P 870 case "22": //Digipack3P 871 case "24": //DVDPack3P 872 case "26": //DGSleeve2P 873 case "27": //DGSleeve3P 874 $("#PanelBooklet").slideDown();
875 $("#PanelInlay").slideUp(); 876 $("#HyperLinkBooklet2").show(); 877 //if (packId != "5" && packId != "14") 878 // $("#PanelFoil").slideDown(); 879 //else 880 // $("#PanelFoil").slideUp(); 881 break; 882 case "6": //DvdSlimBox 883 case "7": //DvdBox 884 case "9": //BluRay 885 $("#PanelInlay").slideDown(); 886 $("#PanelBooklet").slideDown(); 887 $("#HyperLinkBooklet2").hide(); 888 //$("#PanelFoil").slideUp(); 889 CopyList(document.getElementById('H_Inlay_DVDBoxClear'), document.getElementById('DropDownListInlay')); 890 break; 891 case "8": //CDJewelBox 892 $("#PanelInlay").slideDown(); 893 $("#PanelBooklet").slideDown(); 894 $("#HyperLinkBooklet2").hide(); 895 //$("#PanelFoil").slideUp(); 896 CopyList(document.getElementById('H_Inlay_JewelBoxBlack'), document.getElementById('DropDownListInlay')); 897 break; 898 case "15": //DVDSlimBoxClear 899 case "16": //DVDBoxClear 900 $("#PanelInlay").slideDown(); 901 $("#PanelBooklet").slideDown(); 902 $("#HyperLinkBooklet2").hide(); 903 //$("#PanelFoil").slideUp(); 904 CopyList(document.getElementById('H_Inlay_DVDBoxClear'), document.getElementById('DropDownListInlay')); 905 break; 906 case "17": //CDJewelBoxClear 907 $("#PanelInlay").slideDown(); 908 $("#PanelBooklet").slideDown(); 909 $("#HyperLinkBooklet2").hide(); 910 //$("#PanelFoil").slideUp(); 911 CopyList(document.getElementById('H_Inlay_JewelBoxClear'), document.getElementById('DropDownListInlay')); 912 break; 913 case "10": //brochure 2x 914 case "11": //brochure 3x 915 $("#PanelBooklet").slideUp(); 916 $("#PanelInlay").slideUp(); 917 //$("#PanelFoil").slideDown(); 918 break; 919 case "28": //digiflex 920 $("#PanelInlay").slideDown(); 921 $("#PanelBooklet").slideUp(); 922 $("#HyperLinkBooklet2").hide(); 923 $("#HyperLinkBooklet").hide(); 924 CopyList(document.getElementById('H_Inlay_DIGIFLEX'), document.getElementById('DropDownListInlay')); 925 break; 926 default: 927 $("#PanelBooklet").slideUp(); 928 $("#PanelInlay").slideUp(); 929 $("#HyperLinkBooklet2").hide(); 930 //$("#PanelFoil").slideUp(); 931 } 932 document.getElementById('DropDownListInlay').value = inlayID; 933 if (document.getElementById('DropDownListInlay').selectedIndex == -1) 934 document.getElementById('DropDownListInlay').selectedIndex = 0; 935 ShowPackage(); 936} 937 938 939function setOptionsForCD() { 940 var packId = document.getElementById('DropDownListPackage').value; 941 var mediaId = document.getElementById('DropDownListMedia').value; 942 var inlayID = document.getElementById('DropDownListInlay').value 943 var bookletID = document.getElementById('DropDownListBooklet').value 944 945 var cellophan = $("#chkCellophan"); 946 var lamination = $("#chkLamination"); 947 var laminationGlossy = $("#chkLaminationGlossy"); 948 //$("#HyperLink12").hide(); 949 //$("#HyperLink1").show(); 950 951 952 $("#testpressing").hide(); 953 $("#LblPrintMerge").show(); 954 $("#LblPrintSerialVinyl").hide(); 955 956 $("#HyperLink6").attr("href", LinkVinylCDMasterink); 957 958 $("#DropDownListProd").show(); 959 $("#DropDownListProdVinyl").hide(); 960 961 var videoProt = $("#chkVideoProtect"); 962 var GlassMaster = (document.getElementById('DropDownListProd').selectedIndex == 4) || (document.getElementById('DropDownListProd').selectedIndex == 5) || (document.getElementById('DropDownListProd').selectedIndex == 6); 963 $("#HyperLinkPriority").show(); 964 965 //$("#DropDownListProd").prop("disabled", false); 966 //$("#DropDownListProd").css("opacity", "1"); 967 968 //$("#PanelLandrOption").show(); 969 //if (!$("#CheckboxMastering").prop("checked")) 970 // $("#CheckboxLandr").prop("checked", true); 971 //if ($("#CheckboxLandr").prop("checked")) 972 // $("#PanelLandr").show(); 973 974 //$("#PanelPrintMerge").show(); 975 $("#PanelVideoProtection").show(); 976 $("#CDDB").show(); 977 978 if (document.getElementById("DropDownListBurn").selectedIndex == 0) { 979 $("#CheckboxSIAE").prop("disabled", false); 980 $("#LabelSIAE").css("opacity", "1"); 981 } 982 else { 983 $("#CheckboxSIAE").prop("disabled", true); 984 $("#CheckboxSIAE").prop("checked", false); 985 $("#LabelSIAE").css("opacity", "0.5"); 986 } 987 988 989 if ((document.getElementById("DropDownListFinishing").value == 0) || (GlassMaster == true)) { 990 $("#CheckboxPrintMerge").prop("disabled", true); 991 $("#CheckboxPrintMerge").prop("checked", false); 992 $("#LblPrintMerge").css("opacity", "0.5"); 993 994 //$("#divLamination1").removeClass("round"); 995 //$("#divLamination2").removeClass("round"); 996 } 997 else { 998 $("#CheckboxPrintMerge").prop("disabled", false); 999 $("#LblPrintMerge").css("opacity", "1"); 1000 1001 //$("#divLamination1").addClass("round"); 1002 //$("#divLamination2").addClass("round"); 1003 } 1004 1005 switch (packId) { 1006 case "4": //busta cartoncino 1007 cellophan.prop("disabled", false); 1008 $("#lblCellophan").css("opacity", "1"); 1009 lamination.prop("disabled", false); 1010 $("#lblLamination").css("opacity", "1"); 1011 laminationGlossy.prop("disabled", false); 1012 //if (!GlassMaster) 1013 // if (!lamination.prop("checked") && !laminationGlossy.prop("checked")) 1014 // laminationGlossy.prop("checked", true); 1015 $("#lblLaminationGlossy").css("opacity", "1"); 1016 $("#CheckboxLayout").prop("disabled", false); 1017 $("#LabelLayout").css("opacity", "1"); 1018 $("#CheckboxDesign").prop("disabled", false); 1019 $("#LabelDesign").css("opacity", "1"); 1020 break; 1021 case "5": //cdslim-box 1022 case "14": //cdslim-box clear 1023 case "6": //DvdSlimBox 1024 case "7": //DvdBox 1025 case "9": //BluRay 1026 case "8": //CDJewelBox 1027 case "15": //DVDSlimBoxClear 1028 case "16": //DVDBoxClear 1029 case "17": //CDJewelBoxClear 1030 if (GlassMaster == true) { 1031 cellophan.prop("disabled", true); 1032 cellophan.prop("checked", true); 1033 $("#lblCellophan").css("opacity", "0.5"); 1034 } 1035 else { 1036 cellophan.prop("disabled", false); 1037 $("#lblCellophan").css("opacity", "1"); 1038 } 1039 lamination.prop("disabled", true); 1040 lamination.prop("checked", false); 1041 $("#lblLamination").css("opacity", "0.5"); 1042 laminationGlossy.prop("disabled", true); 1043 laminationGlossy.prop("checked", false); 1044 $("#lblLaminationGlossy").css("opacity", "0.5"); 1045 1046 if (inlayID == 0 && bookletID == 0) { 1047 $("#CheckboxLayout").prop("disabled", true); 1048 $("#CheckboxLayout").prop("checked", false); 1049 $("#LabelLayout").css("opacity", "0.5"); 1050 $("#CheckboxDesign").prop("disabled", true); 1051 $("#CheckboxDesign").prop("checked", false); 1052 $("#LabelDesign").css("opacity", "0.5"); 1053 $("#PanelDesignFull").fadeOut(); 1054 $("#PanelDesignEasy").fadeOut(); 1055 } 1056 else { 1057 $("#CheckboxLayout").prop("disabled", false); 1058 $("#LabelLayout").css("opacity", "1"); 1059 $("#CheckboxDesign").prop("disabled", false); 1060 $("#LabelDesign").css("opacity", "1"); 1061 } 1062 1063 break; 1064 case "10": //Cardboard_X2 1065 case "11": //Cardboard_X3 1066 case "12": //Digipack 1067 case "18": //DGFIle2P 1068 case "19": //DGClick2P 1069 case "23": //DVDPack2P 1070 case "20": //DGFIle3P 1071 case "21": //DGClick3P 1072 case "22": //Digipack3P 1073 case "24": //DVDPack3P 1074 case "26": //DGFsleeve2P 1075 case "27": //DGSleeve3P 1076 case "28": //DGFlex 1077 cellophan.prop("disabled", false); 1078 $("#lblCellophan").css("opacity", "1"); 1079 lamination.prop("disabled", false); 1080 $("#lblLamination").css("opacity", "1"); 1081 laminationGlossy.prop("disabled", false); 1082 $("#lblLaminationGlossy").css("opacity", "1"); 1083 //if (!GlassMaster) 1084 // if (!lamination.prop("checked") && !laminationGlossy.prop("checked")) 1085 // laminationGlossy.prop("checked", true); 1086 $("#CheckboxLayout").prop("disabled", false); 1087 $("#LabelLayout").css("opacity", "1"); 1088 $("#CheckboxDesign").prop("disabled", false); 1089 $("#LabelDesign").css("opacity", "1"); 1090 break; 1091 default: 1092 cellophan.prop("disabled", true); 1093 cellophan.prop("checked", false); 1094 $("#lblCellophan").css("opacity", "0.5"); 1095 lamination.prop("disabled", true); 1096 lamination.prop("checked", false); 1097 $("#lblLamination").css("opacity", "0.5"); 1098 laminationGlossy.prop("disabled", true); 1099 laminationGlossy.prop("checked", false); 1100 $("#lblLaminationGlossy").css("opacity", "0.5"); 1101 1102 $("#CheckboxLayout").prop("disabled", true); 1103 $("#CheckboxLayout").prop("checked", false); 1104 $("#LabelLayout").css("opacity", "0.5"); 1105 $("#CheckboxDesign").prop("disabled", true); 1106 $("#CheckboxDesign").prop("checked", false); 1107 $("#PanelDesignFull").fadeOut(); 1108 $("#PanelDesignEasy").fadeOut(); 1109 $("#LabelDesign").css("opacity", "0.5"); 1110 } 1111 if ((mediaId == 1) || (mediaId == 4)) { 1112 if (GlassMaster) { 1113 videoProt.prop("disabled", true); 1114 videoProt.prop("checked", false); 1115 $("#lblVideoProtect").css("opacity", "0.5"); 1116 } 1117 else { 1118 videoProt.prop("disabled", false); 1119 $("#lblVideoProtect").css("opacity", "1"); 1120 } 1121 $(".chkvideo").prop("disabled", false); 1122 $(".lblvideo").css("opacity", "1"); 1123 $(".chkaudio").prop("disabled", true); 1124 $(".chkaudio").prop("checked", false); 1125 $(".lblaudio").css("opacity", "0.5"); 1126 $("#PanelAudioLeveling").fadeOut(); 1127 $("#PanelAudioMastering").fadeOut(); 1128 $("#PanelLandr").fadeOut(); 1129 } 1130 else { 1131 videoProt.prop("disabled", true); 1132 videoProt.prop("checked", false); 1133 $("#lblVideoProtect").css("opacity", "0.5"); 1134 if ((mediaId == 2) || (mediaId == 5)) { 1135 $(".chkvideo").prop("disabled", false); 1136 $(".lblvideo").css("opacity", "1"); 1137 $(".chkaudio").prop("disabled", true); 1138 $(".chkaudio").prop("checked", false); 1139 $(".lblaudio").css("opacity", "0.5"); 1140 $("#PanelAudioLeveling").fadeOut(); 1141 $("#PanelAudioMastering").fadeOut(); 1142 $("#PanelLandr").fadeOut(); 1143 } 1144 else { 1145 $(".chkvideo").prop("disabled", true); 1146 $(".chkvideo").prop("checked", false); 1147 $(".lblvideo").css("opacity", "0.5"); 1148 $("#PanelVideo1").fadeOut(); 1149 $("#PanelVideo2").fadeOut(); 1150 $("#PanelVideo3").fadeOut(); 1151 $(".chkaudio").prop("disabled", false); 1152 $(".lblaudio").css("opacity", "1"); 1153 } 1154 } 1155} 1156 1157function setOptionsForVinyl() { 1158 var packageID = document.getElementById('DropDownListVinylPackage').value; 1159 var innerID = document.getElementById('DropDownListVinylPackageInner').value; 1160 var bookletID = document.getElementById("DropDownListVinylBooklet").value; 1161 var copies = $("#TextBoxQuantity").val(); 1162 1163 $("#LblPrintMerge").hide(); 1164 $("#LblPrintSerialVinyl").show(); 1165 1166 $("#HyperLinkPriority").hide(); 1167 //$("#HyperLink1").hide(); 1168 //$("#HyperLink12").show(); 1169 1170 $("#DropDownListProd").hide(); 1171 $("#DropDownListProdVinyl").show(); 1172 //$("#DropDownListProd").prop("disabled", true); 1173 //$("#DropDownListProd").css("opacity", "0.3"); 1174 $("#testpressing").show(); 1175 if (copies >= 200) { 1176 $("#CheckboxTestPressing").prop("disabled", false); 1177 $("#LabelTP").css("opacity", "1"); 1178 } 1179 else { 1180 $("#CheckboxTestPressing").prop("disabled", true); 1181 $("#LabelTP").css("opacity", "0.5"); 1182 $("#CheckboxTestPressing").prop("checked", false); 1183 } 1184 $("#HyperLink6").attr("href", "../mastering_vinyl.aspx"); 1185 1186 $("#CheckboxSIAE").prop("disabled", false); 1187 $("#LabelSIAE").css("opacity", "1"); 1188 1189 1190 1191 if (innerID == 5 || innerID == 6 || bookletID > 0 || packageID > 0) { 1192 $("#CheckboxLayout").prop("disabled", false); 1193 $("#LabelLayout").css("opacity", "1"); 1194 $("#CheckboxDesign").prop("disabled", false); 1195 $("#LabelDesign").css("opacity", "1"); 1196 } 1197 else { 1198 $("#CheckboxLayout").prop("disabled", true); 1199 $("#LabelLayout").css("opacity", "0.5"); 1200 $("#CheckboxDesign").prop("disabled", true); 1201 $("#LabelDesign").css("opacity", "0.5"); 1202 } 1203 1204 //$("#PanelPrintMerge").hide(); 1205 $("#PanelVideoProtection").hide(); 1206 $("#CDDB").hide(); 1207 1208 //$("#divLamination1").addClass("round"); 1209 //$("#divLamination2").addClass("round"); 1210 1211 if (packageID > 0) { 1212 $("#chkLamination").prop("disabled", false); 1213 $("#lblLamination").css("opacity", "1"); 1214 $("#chkLaminationGlossy").prop("disabled", false); 1215 $("#lblLaminationGlossy").css("opacity", "1"); 1216 if ($("#chkLaminationGlossy").prop("checked") == false && $("#chkLamination").prop("checked") == false) { 1217 $("#chkLaminationGlossy").prop("checked", true); 1218 $("#chkLamination").prop("checked", false); 1219 } 1220 } 1221 else { 1222 $("#chkLamination").prop("disabled", true); 1223 $("#lblLamination").css("opacity", "0.5"); 1224 $("#chkLaminationGlossy").prop("disabled", true); 1225 $("#lblLaminationGlossy").css("opacity", "0.5"); 1226 $("#chkLaminationGlossy").prop("checked", false); 1227 $("#chkLamination").prop("checked", false); 1228 } 1229 1230 1231 $("#chkCellophan").prop("disabled", false); 1232 $("#lblCellophan").css("opacity", "1"); 1233 //$("#chkLamination").prop("disabled", true); 1234 //$("#lblLamination").css("opacity", "0.5"); 1235 //$("#chkLaminationGlossy").prop("disabled", true); 1236 //$("#lblLaminationGlossy").css("opacity", "0.5"); 1237 //$("#CheckboxPrintMerge").prop("disabled", true); 1238 //$("#CheckboxPrintMerge").prop("checked", false); 1239 //$("#LblPrintMerge").css("opacity", "0.5"); 1240 //$("#chkVideoProtect").prop("disabled", true); 1241 //$("#lblVideoProtect").css("opacity", "0.5"); 1242 1243 $("#PanelVideo1").fadeOut(); 1244 $("#PanelVideo2").fadeOut(); 1245 $("#PanelVideo3").fadeOut(); 1246 $("#PanelLandrOption").hide(); 1247 $("#PanelLandr").hide(); 1248 $(".chkaudio").prop("disabled", false); 1249 $(".lblaudio").css("opacity", "1"); 1250 $(".chkvideo").prop("disabled", true); 1251 $(".chkvideo").prop("checked", false); 1252 $(".lblvideo").css("opacity", "0.5"); 1253 $("#CheckboxCDDB").prop("disabled", true); 1254 $("#CheckboxCDDB").prop("checked", false); 1255 $("#LabelCDDB").css("opacity", "0.5"); 1256 1257 //disabilita il mastering digitale per il vinile 1258 //$("#CheckboxVolumeLevel").prop("disabled", true); 1259 //$("#LabelVolume").css("opacity", "0.5"); 1260 //if ($("#CheckboxVolumeLevel").prop("checked")) { 1261 // $("#CheckboxVolumeLevel").prop("checked", false); 1262 // $("#PanelAudioLeveling").fadeOut(); 1263 //} 1264 1265 1266 var mediaId = document.getElementById('DropDownListVinyl').value; 1267 var value = $("#TextBoxQuantity").val(); 1268 1269 1270 1271 //if (mediaId == 3) { 1272 // if (value < 300) { 1273 // $("#TextBoxQuantity").val(300);
1274 // } 1275 //} 1276 //else { 1277 // if (value < 100) 1278 // $("#TextBoxQuantity").val(100); 1279 //} 1280 1281 1282 var isPressing; 1283 if (value > 5000) { 1284 $("#TextBoxQuantity").val(5000); 1285 isPressing = true; 1286 } 1287 else if (value > 50 && value < 100) { 1288 $("#TextBoxQuantity").val(100); 1289 isPressing = true; 1290 } 1291 else if (value <= 50) { 1292 isPressing = false; 1293 } 1294 else if (value >= 100) { 1295 isPressing = true 1296 } 1297 if (isPressing) { 1298 if ($("#DropDownListProdVinyl").prop('selectedIndex') === 1) { 1299 $("#DropDownListProdVinyl").prop('selectedIndex', 0); 1300 rebindDropDownListVinylType(true); 1301 var i_VinylDisc = document.getElementById("DropDownListVinyl").value; 1302 rebindDropDownListVinylColorByDiscType(i_VinylDisc); 1303 SetVinylMedia(); 1304 } 1305 1306 } 1307 else { 1308 if ($("#DropDownListProdVinyl").prop('selectedIndex') === 0) { 1309 $("#DropDownListProdVinyl").prop('selectedIndex', 1); 1310 rebindDropDownListVinylType(false); 1311 var i_VinylDisc = document.getElementById("DropDownListVinyl").value; 1312 rebindDropDownListVinylColorByDiscType(i_VinylDisc); 1313 SetVinylMedia();
1314 } 1315 } 1316} 1317 1318function setOptions() { 1319 if ($("#ChkOpticalMedia").prop("checked")) 1320 setOptionsForCD(); 1321 else if ($("#ChkVinylDisk").prop("checked")) 1322 setOptionsForVinyl(); 1323} 1324 1325 1326 1327function SetMedia() { 1328 var mediaId = document.getElementById('DropDownListMedia').value; 1329 var packageID = document.getElementById('DropDownListPackage').value; 1330 switch (mediaId) { 1331 case "0": 1332 case "1": 1333 CopyList(document.getElementById('H_ListPackageDuplication'), document.getElementById('DropDownListPackage')); 1334 CopyList(document.getElementById('H_Finishing_CDDVD_Duplication'), document.getElementById('DropDownListFinishing')); 1335 break; 1336 case "2": 1337 CopyList(document.getElementById('H_Finishing_BD_Duplication'), document.getElementById('DropDownListFinishing')); 1338 CopyList(document.getElementById('H_ListPackageDuplication'), document.getElementById('DropDownListPackage')); 1339 break; 1340 case "3": 1341 case "4": 1342 CopyList(document.getElementById('H_ListPackageMiniCD'), document.getElementById('DropDownListPackage')); 1343 CopyList(document.getElementById('H_Finishing_VinylMiniCard_Duplication'), document.getElementById('DropDownListFinishing')); 1344 break; 1345 case "6": 1346 CopyList(document.getElementById('H_ListPackageBizCard'), document.getElementById('DropDownListPackage')); 1347 CopyList(document.getElementById('H_Finishing_VinylMiniCard_Duplication'), document.getElementById('DropDownListFinishing')); 1348 break; 1349 case "8": 1350 CopyList(document.getElementById('H_Finishing_VinylMiniCard_Duplication'), document.getElementById('DropDownListFinishing')); 1351 CopyList(document.getElementById('H_ListPackageDuplication'), document.getElementById('DropDownListPackage')); 1352 break; 1353 } 1354 prevfinishing = ""; 1355 ShowMedia(); 1356 document.getElementById('DropDownListPackage').value = packageID 1357 if (document.getElementById('DropDownListPackage').value == "") { 1358 document.getElementById('DropDownListPackage').selectedIndex = 0; 1359 SetPackage(); 1360 } 1361} 1362 1363 1364function ShowVinylMedia() { 1365 var i_discType = document.getElementById('DropDownListVinyl').value; 1366 var i_Color = document.getElementById("DropDownListVinylcolor").value; 1367 var imgpath; 1368 switch (i_discType) { 1369 case "5": 1370 switch (i_Color) { 1371 case "0": 1372 imgpath = "/gfx/Vinyl/new/black12.png"; 1373 break; 1374 case "1": 1375 imgpath = "/gfx/Vinyl/new/white12.png"; 1376 break; 1377 case "2": 1378 imgpath = "/gfx/Vinyl/new/transp_blue12.png"; 1379 break; 1380 case "3": 1381 imgpath = "/gfx/Vinyl/new/purple_haze12.png"; 1382 break; 1383 case "4": 1384 imgpath = "/gfx/Vinyl/new/turquoise12.png"; 1385 break; 1386 case "5": 1387 imgpath = "/gfx/Vinyl/new/red12.png"; 1388 break; 1389 case "6": 1390 imgpath = "/gfx/Vinyl/new/black_delux12.png"; 1391 break; 1392 case "7": 1393 imgpath = "/gfx/Vinyl/new/yellow12.png"; 1394 break; 1395 case "8": 1396 imgpath = "/gfx/Vinyl/new/clear12.png"; 1397 break; 1398 case "9": 1399 imgpath = "/gfx/Vinyl/new/clear_delux12.png"; 1400 break; 1401 case "10": 1402 imgpath = "/gfx/Vinyl/new/transp_red12.png"; 1403 break; 1404 case "11": 1405 imgpath = "/gfx/Vinyl/new/yellow_marble12.png"; 1406 break; 1407 case "12": 1408 imgpath = "/gfx/Vinyl/new/orange12.png"; 1409 break; 1410 case "13": 1411 imgpath = "/gfx/Vinyl/new/transp_orange12.png"; 1412 break; 1413 case "14": 1414 imgpath = "/gfx/Vinyl/new/transp_tourquoise12.png"; 1415 break; 1416 case "15": 1417 imgpath = "/gfx/Vinyl/new/pink12.png"; 1418 break; 1419 case "16": 1420 imgpath = "/gfx/Vinyl/new/transp_green12.png"; 1421 break; 1422 case "17": 1423 imgpath = "/gfx/Vinyl/new/green_marble12.png"; 1424 break; 1425 case "18": 1426 imgpath = "/gfx/Vinyl/new/lime_marble12.png"; 1427 break; 1428 case "19": 1429 imgpath = "/gfx/Vinyl/new/violet_mauve12.png"; 1430 break; 1431 case "23": 1432 imgpath = "/gfx/Vinyl/new/transp_blue12.png"; 1433 break; 1434 case "32": 1435 imgpath = "/gfx/Vinyl/new/softpeach12.png"; 1436 break; 1437 case "33": 1438 imgpath = "/gfx/Vinyl/new/pinkbarbie12.png"; 1439 break; 1440 case "34": 1441 imgpath = "/gfx/Vinyl/new/woodshock12.png"; 1442 break; 1443 case "35": 1444 imgpath = "/gfx/Vinyl/new/bluebzh12.png"; 1445 break; 1446 default: 1447 imgpath = "/gfx/Vinyl/new/black12.png"; 1448 break; 1449 } 1450 break; 1451 case "6": 1452 switch (i_Color) { 1453 case "0": 1454 imgpath = "/gfx/Vinyl/new/black7.png"; 1455 break; 1456 case "1": 1457 imgpath = "/gfx/Vinyl/new/white7.png"; 1458 break; 1459 case "2": 1460 imgpath = "/gfx/Vinyl/new/transp_blue7.png"; 1461 break; 1462 case "3": 1463 imgpath = "/gfx/Vinyl/new/purple_haze7.png"; 1464 break; 1465 case "4": 1466 imgpath = "/gfx/Vinyl/new/turquoise7.png"; 1467 break; 1468 case "5": 1469 imgpath = "/gfx/Vinyl/new/red7.png"; 1470 break; 1471 case "6": 1472 imgpath = "/gfx/Vinyl/new/black_delux7.png"; 1473 break; 1474 case "7": 1475 imgpath = "/gfx/Vinyl/new/yellow7.png"; 1476 break; 1477 case "8": 1478 imgpath = "/gfx/Vinyl/new/clear7.png"; 1479 break; 1480 case "9": 1481 imgpath = "/gfx/Vinyl/new/clear_delux7.png"; 1482 break; 1483 case "10": 1484 imgpath = "/gfx/Vinyl/new/transp_red7.png"; 1485 break; 1486 case "11": 1487 imgpath = "/gfx/Vinyl/new/yellow_marble7.png"; 1488 break; 1489 case "12": 1490 imgpath = "/gfx/Vinyl/new/orange7.png"; 1491 break; 1492 case "13": 1493 imgpath = "/gfx/Vinyl/new/transp_orange7.png"; 1494 break; 1495 case "14": 1496 imgpath = "/gfx/Vinyl/new/transp_tourquoise7.png"; 1497 break; 1498 case "15": 1499 imgpath = "/gfx/Vinyl/new/pink7.png"; 1500 break; 1501 case "16": 1502 imgpath = "/gfx/Vinyl/new/transp_green7.png"; 1503 break; 1504 case "17": 1505 imgpath = "/gfx/Vinyl/new/green_marble7.png"; 1506 break; 1507 case "18": 1508 imgpath = "/gfx/Vinyl/new/lime_marble7.png"; 1509 break; 1510 case "19": 1511 imgpath = "/gfx/Vinyl/new/violet_mauve7.png"; 1512 break; 1513 case "23": 1514 imgpath = "/gfx/Vinyl/new/transp_blue7.png"; 1515 break; 1516 case "32": 1517 imgpath = "/gfx/Vinyl/new/softpeach7.png"; 1518 break; 1519 case "33": 1520 imgpath = "/gfx/Vinyl/new/pinkbarbie7.png"; 1521 break; 1522 case "34": 1523 imgpath = "/gfx/Vinyl/new/woodshock7.png"; 1524 break; 1525 case "35": 1526 imgpath = "/gfx/Vinyl/new/bluebzh7.png"; 1527 break; 1528 default: 1529 imgpath = "/gfx/Vinyl/new/black7.png"; 1530 break; 1531 } 1532 break; 1533 1534 case "1": 1535 case "2": 1536 switch (i_Color) { 1537 case "0": 1538 imgpath = "/gfx/Vinyl/new/black_delux12.png"; 1539 break; 1540 case "1": 1541 imgpath = "/gfx/Vinyl/new/white12.png"; 1542 break; 1543 case "2": 1544 imgpath = "/gfx/Vinyl/new/blue12.png"; 1545 break; 1546 case "3": 1547 imgpath = "/gfx/Vinyl/new/purple12.png"; 1548 break; 1549 case "4": 1550 imgpath = "/gfx/Vinyl/new/turquoise12.png"; 1551 break; 1552 case "5": 1553 imgpath = "/gfx/Vinyl/new/red12.png"; 1554 break; 1555 case "7": 1556 imgpath = "/gfx/Vinyl/new/yellow12.png"; 1557 break; 1558 case "8": 1559 imgpath = "/gfx/Vinyl/new/clear_delux12.png"; 1560 break; 1561 case "10": 1562 imgpath = "/gfx/Vinyl/new/transp_red12.png"; 1563 break; 1564 case "12": 1565 imgpath = "/gfx/Vinyl/new/orange12.png"; 1566 break; 1567 case "13": 1568 imgpath = "/gfx/Vinyl/new/transp_orange12.png"; 1569 break; 1570 case "14": 1571 imgpath = "/gfx/Vinyl/new/transp_tourquoise12.png"; 1572 break; 1573 case "15": 1574 imgpath = "/gfx/Vinyl/new/pink12.png"; 1575 break; 1576 case "16": 1577 imgpath = "/gfx/Vinyl/new/transp_green12.png"; 1578 break; 1579 case "20": 1580 imgpath = "/gfx/Vinyl/new/transp_yellow12.png"; 1581 break; 1582 case "21": 1583 imgpath = "/gfx/Vinyl/new/transp_lime12.png"; 1584 break; 1585 case "22": 1586 imgpath = "/gfx/Vinyl/new/green12.png"; 1587 break; 1588 case "23": 1589 imgpath = "/gfx/Vinyl/new/transp_blue12.png"; 1590 break; 1591 case "24": 1592 imgpath = "/gfx/Vinyl/new/transp_violet12.png"; 1593 break; 1594 case "25": 1595 imgpath = "/gfx/Vinyl/new/gold12.png"; 1596 break; 1597 case "26": 1598 imgpath = "/gfx/Vinyl/new/grey12.png"; 1599 break; 1600 case "27": 1601 imgpath = "/gfx/Vinyl/new/green_neon12.png"; 1602 break; 1603 case "28": 1604 imgpath = "/gfx/Vinyl/new/brown12.png"; 1605 break; 1606 case "29": 1607 imgpath = "/gfx/Vinyl/new/red_rusty12.png"; 1608 break; 1609 case "30": 1610 imgpath = "/gfx/Vinyl/new/cream_white12.png"; 1611 break; 1612 case "31": 1613 imgpath = "/gfx/Vinyl/new/pink_light12.png"; 1614 break; 1615 case "32": 1616 imgpath = "/gfx/Vinyl/new/silver12.png"; 1617 break; 1618 default: 1619 imgpath = "/gfx/Vinyl/new/black12.png"; 1620 break; 1621 } 1622 break; 1623 case "3": 1624 case "4": 1625 switch (i_Color) { 1626 case "0": 1627 imgpath = "/gfx/Vinyl/new/black_delux7.png"; 1628 break; 1629 case "1": 1630 imgpath = "/gfx/Vinyl/new/white7.png"; 1631 break; 1632 case "2": 1633 imgpath = "/gfx/Vinyl/new/blue7.png"; 1634 break; 1635 case "3": 1636 imgpath = "/gfx/Vinyl/new/purple7.png"; 1637 break; 1638 case "4": 1639 imgpath = "/gfx/Vinyl/new/turquoise7.png"; 1640 break; 1641 case "5": 1642 imgpath = "/gfx/Vinyl/new/red7.png"; 1643 break; 1644 case "7": 1645 imgpath = "/gfx/Vinyl/new/yellow7.png"; 1646 break; 1647 case "8": 1648 imgpath = "/gfx/Vinyl/new/clear_delux7.png"; 1649 break; 1650 case "10": 1651 imgpath = "/gfx/Vinyl/new/transp_red7.png"; 1652 break; 1653 case "12": 1654 imgpath = "/gfx/Vinyl/new/orange7.png"; 1655 break; 1656 case "13": 1657 imgpath = "/gfx/Vinyl/new/transp_orange7.png"; 1658 break; 1659 case "14": 1660 imgpath = "/gfx/Vinyl/new/transp_tourquoise7.png"; 1661 break; 1662 case "15": 1663 imgpath = "/gfx/Vinyl/new/pink7.png"; 1664 break; 1665 case "16": 1666 imgpath = "/gfx/Vinyl/new/transp_green7.png"; 1667 break; 1668 case "20": 1669 imgpath = "/gfx/Vinyl/new/transp_yellow7.png"; 1670 break; 1671 case "21": 1672 imgpath = "/gfx/Vinyl/new/transp_lime7.png"; 1673 break; 1674 case "22": 1675 imgpath = "/gfx/Vinyl/new/green7.png"; 1676 break; 1677 case "23": 1678 imgpath = "/gfx/Vinyl/new/transp_blue7.png"; 1679 break; 1680 case "24": 1681 imgpath = "/gfx/Vinyl/new/transp_violet7.png"; 1682 break; 1683 case "25": 1684 imgpath = "/gfx/Vinyl/new/gold7.png"; 1685 break; 1686 case "26": 1687 imgpath = "/gfx/Vinyl/new/grey7.png"; 1688 break; 1689 case "27": 1690 imgpath = "/gfx/Vinyl/new/green_neon7.png"; 1691 break; 1692 case "28": 1693 imgpath = "/gfx/Vinyl/new/brown7.png"; 1694 break; 1695 case "29": 1696 imgpath = "/gfx/Vinyl/new/red_rusty7.png"; 1697 break; 1698 case "30": 1699 imgpath = "/gfx/Vinyl/new/cream_white7.png"; 1700 break; 1701 case "31": 1702 imgpath = "/gfx/Vinyl/new/pink_light7.png"; 1703 break; 1704 case "32": 1705 imgpath = "/gfx/Vinyl/new/silver7.png"; 1706 break; 1707 default: 1708 imgpath = "/gfx/Vinyl/new/black7.png"; 1709 break; 1710 } 1711 break; 1712 } 1713 $('#vinylMediaContainer').fadeOut("slow", function () { 1714 $('#vinylImage').attr('src', imgpath); 1715 $('#vinylMediaContainer').fadeIn(); 1716 });
1717 if (i_discType == "1" || i_discType == "2" || i_discType == "5") 1718 document.getElementById('HyperLinkVinylTemplate').setAttribute("href", "/template/vinile/cdk-lp-label.pdf"); 1719 else 1720 document.getElementById('HyperLinkVinylTemplate').setAttribute("href", "/template/vinile/cdk_L7.pdf"); 1721} 1722 1723//function ShowVinylMedia() { 1724// var mediaId = document.getElementById('DropDownListVinyl').value; 1725// var colorId = document.getElementById('DropDownListVinylcolor').value; 1726// var imgpath; 1727// switch (mediaId) { 1728// case "1": 1729// case "2": 1730// document.getElementById('HyperLinkVinylTemplate').setAttribute("href", "/template/vinile/cdk-lp-label.pdf"); 1731// switch (colorId) { 1732// case "0": 1733// imgpath = "/gfx/Vinyl/12-BLACK.jpg"; 1734// break; 1735// case "1": 1736// imgpath = "/gfx/Vinyl/12-WHITE.jpg"; 1737// break; 1738// case "2": 1739// imgpath = "/gfx/Vinyl/12-BLU.jpg"; 1740// break; 1741// case "3": 1742// imgpath = "/gfx/Vinyl/12-PURPLE.jpg"; 1743// break; 1744// case "4": 1745// imgpath = "/gfx/Vinyl/12-TURQUOISE.jpg"; 1746// break; 1747// case "5": 1748// imgpath = "/gfx/Vinyl/12-RED.jpg"; 1749// break; 1750// case "6": 1751// imgpath = "/gfx/Vinyl/12-SILVER.jpg"; 1752// break; 1753// case "7": 1754// imgpath = "/gfx/Vinyl/12-GOLD.jpg"; 1755// break; 1756// } 1757// break; 1758// case "3": 1759// case "4": 1760// document.getElementById('HyperLinkVinylTemplate').setAttribute("href", "/template/vinile/cdk_L7.pdf"); 1761// switch (colorId) { 1762// case "0": 1763// imgpath = "/gfx/Vinyl/7-BLACK.jpg"; 1764// break; 1765// case "1": 1766// imgpath = "/gfx/Vinyl/7-WHITE.jpg"; 1767// break; 1768// case "2": 1769// imgpath = "/gfx/Vinyl/7-BLU.jpg"; 1770// break; 1771// case "3": 1772// imgpath = "/gfx/Vinyl/7-PURPLE.jpg"; 1773// break; 1774// case "4": 1775// imgpath = "/gfx/Vinyl/7-TURQUOISE.jpg"; 1776// break; 1777// case "5": 1778// imgpath = "/gfx/Vinyl/7-RED.jpg"; 1779// break; 1780// case "6": 1781// imgpath = "/gfx/Vinyl/7-SILVER.jpg"; 1782// break; 1783// case "7": 1784// imgpath = "/gfx/Vinyl/7-GOLD.jpg"; 1785// break; 1786// } break; 1787 1788// } 1789// $('#vinylMediaContainer').fadeOut("slow", function () { 1790// $('#vinylImage').attr('src', imgpath); 1791// $('#vinylMediaContainer').fadeIn(); 1792// }); 1793//} 1794 1795function SetVinylMedia() { 1796 var mediaId = document.getElementById('DropDownListVinyl').value; 1797 var packageID = document.getElementById('DropDownListVinylPackage').value; 1798 var innerID = document.getElementById('DropDownListVinylPackageInner').value; 1799 switch (mediaId) { 1800 case "1": 1801 case "2": 1802 case "5": 1803 CopyList(document.getElementById('H_Vinyl_12_Package'), document.getElementById('DropDownListVinylPackage')); 1804 switch (packageID) { 1805 case "8": 1806 document.getElementById('DropDownListVinylPackage').value = "7"; //jacket no spine 1807 break; 1808 case "10": 1809 document.getElementById('DropDownListVinylPackage').value = "13"; //jacket 1810 break; 1811 case "12": 1812 document.getElementById('DropDownListVinylPackage').value = "11"; //gatefold 1813 break; 1814 default: 1815 document.getElementById('DropDownListVinylPackage').value = packageID; 1816 } 1817 CopyList(document.getElementById('H_Vinyl_12_Inner_Package'), document.getElementById('DropDownListVinylPackageInner')); 1818 switch (innerID) { 1819 case "1": 1820 case "2": 1821 document.getElementById('DropDownListVinylPackageInner').value = "1"; //white 1822 break; 1823 case "3": 1824 case "4": 1825 document.getElementById('DropDownListVinylPackageInner').value = "3"; //black 1826 break; 1827 case "5": 1828 case "6": 1829 document.getElementById('DropDownListVinylPackageInner').value = "5"; //printed 1830 break; 1831 default: 1832 document.getElementById('DropDownListVinylPackageInner').value = innerID; 1833 } 1834 break; 1835 case "3": 1836 case "4": 1837 case "6": 1838 CopyList(document.getElementById('H_Vinyl_7_Package'), document.getElementById('DropDownListVinylPackage')); 1839 switch (packageID) { 1840 case "7": 1841 case "8": 1842 case "9": 1843 case "11": 1844 document.getElementById('DropDownListVinylPackage').value = "8"; //jacket 1845 break; 1846 1847 case "13": 1848 document.getElementById('DropDownListVinylPackage').value = "8"; //gatefold 1849 break; 1850 default: 1851 document.getElementById('DropDownListVinylPackage').value = packageID; 1852 } 1853 CopyList(document.getElementById('H_Vinyl_7_Inner_Package'), document.getElementById('DropDownListVinylPackageInner')); 1854 switch (innerID) { 1855 case "1": 1856 document.getElementById('DropDownListVinylPackageInner').value = "2"; //white 1857 break; 1858 case "3": 1859 document.getElementById('DropDownListVinylPackageInner').value = "4"; //black 1860 break; 1861 case "5": 1862 document.getElementById('DropDownListVinylPackageInner').value = "2"; //printed 1863 break; 1864 default: 1865 document.getElementById('DropDownListVinylPackageInner').value = innerID; 1866 } 1867 break; 1868 } 1869 ShowVinylMedia();
1870 SetVinylPackageImage(); 1871 //ShowMedia(); 1872} 1873 1874function isSpecialPackage(packID) { 1875 switch (packID) { 1876 case "4": 1877 case "10": 1878 case "11": 1879 case "12": 1880 case "13": 1881 case "18": 1882 case "19": 1883 case "20": 1884 case "21": 1885 case "22": 1886 case "23": 1887 case "24": 1888 case "26": 1889 case "27": 1890 case "28": 1891 return true; 1892 default: 1893 return false; 1894 } 1895} 1896 1897function isSimplePackaging(PackageID) { 1898 if (PackageID == 0 || (PackageID == 1) || (PackageID == 2) || (PackageID == 3) || (PackageID == 25)) { 1899 return true; 1900 } 1901 else 1902 return false; 1903} 1904 1905function CheckAllowedPriority(packID) { 1906 var production = document.getElementById('DropDownListProd'); 1907 var copies = $("#TextBoxQuantity").val(); 1908 var allPackaging = document.getElementById("isEconomyAllowedForAllPackaging").value == '1'; 1909 1910 if (isSpecialPackage(packID)) { 1911 if (document.getElementById("isOvernightAllowedForCardboards").value != '1') { 1912 production.options[0].setAttribute("disabled", "disabled"); 1913 if (production.selectedIndex == 0) 1914 production.selectedIndex = 2; 1915 } 1916 if (document.getElementById("isFastAllowedForCardboards").value != '1') { 1917 production.options[1].setAttribute("disabled", "disabled"); 1918 if (production.selectedIndex == 1) 1919 production.selectedIndex = 2; 1920 } 1921 } 1922 1923 1924 if (!isSpecialPackage(packID) || (copies < 100)) { 1925 //production.options[5].setAttribute("disabled", "disabled"); 1926 if (!allPackaging || (copies < 100) || isSimplePackaging(packID)) { 1927 production.options[3].setAttribute("disabled", "disabled"); 1928 if (production.selectedIndex == 3) 1929 production.selectedIndex = 2; 1930 } 1931 //if (production.selectedIndex == 5) 1932 // production.selectedIndex = 4; 1933 } 1934 if (isSimplePackaging(packID)) { 1935 production.options[5].setAttribute("disabled", "disabled"); 1936 production.options[6].setAttribute("disabled", "disabled"); 1937 if ((production.selectedIndex == 5) || (production.selectedIndex == 6)) 1938 production.selectedIndex = 4; 1939 } 1940 1941 1942} 1943 1944 1945 1946 1947function CheckAllowedProcessing(){ 1948 var mediaId = document.getElementById('DropDownListMedia').value; 1949 var packageID = document.getElementById('DropDownListPackage').value; 1950 var finishingID = document.getElementById('DropDownListFinishing').value; 1951 var value = $("#TextBoxQuantity").val(); 1952 var burn = (document.getElementById("DropDownListBurn").selectedIndex == 0) 1953 1954 if ((mediaId > 1) || (packageID == 10) || (packageID == 11) || (packageID == 28) || (!burn)) { 1955 DisableGlassMaster(); 1956 CheckAllowedPriority(packageID); 1957 } 1958 //else if ((packageID == 20) || (packageID == 21) || (packageID == 22) || (packageID == 24) ) { 1959 // DisableDuplication(); 1960 //} 1961 else { 1962 if (value > 1000) { 1963 DisableDuplication(); 1964 CheckAllowedPriority(packageID); 1965 } 1966 else if (value < 300) { 1967 DisableGlassMaster(); 1968 CheckAllowedPriority(packageID); 1969 } 1970 else { 1971 EnableAllProcessing(); 1972 CheckAllowedPriority(packageID); 1973 } 1974 } 1975 1976} 1977 1978function DisableGlassMaster() { 1979 var production = document.getElementById('DropDownListProd'); 1980 //var production1 = document.getElementById('DropDownListProd1'); 1981 1982 production.options[0].removeAttribute("disabled"); 1983 production.options[1].removeAttribute("disabled"); 1984 production.options[2].removeAttribute("disabled"); 1985 production.options[3].removeAttribute("disabled"); 1986 1987 1988 production.options[4].setAttribute("disabled", "disabled"); 1989 production.options[5].setAttribute("disabled", "disabled"); 1990 production.options[6].setAttribute("disabled", "disabled"); 1991 if ((production.selectedIndex == 4) || (production.selectedIndex == 5) || (production.selectedIndex == 6)) { 1992 production.selectedIndex = 3; 1993 } 1994 var value = $("#TextBoxQuantity").val(); 1995 if (value > 1000) { 1996 $("#TextBoxQuantity").val("1000"); 1997 } 1998 1999 GlassMasterOnly = false; 2000 DuplicationOnly = true; 2001 var finishingID = document.getElementById('DropDownListFinishing').value; 2002 if (finishingID == 7) { 2003 if ((prevfinishing < 7) && (prevfinishing != "")) 2004 document.getElementById('DropDownListFinishing').value = prevfinishing; 2005 else 2006 document.getElementById('DropDownListFinishing').value = 5; 2007 ShowMedia();
2008 } 2009 SetShippingDate(production.value); 2010 setOptions(); 2011} 2012 2013 2014 2015function DisableDuplication() { 2016 var production = document.getElementById('DropDownListProd'); 2017 //var production1 = document.getElementById('DropDownListProd1'); 2018 for (i = 0; i < 4; i++) { 2019 production.options[i].setAttribute("disabled", "disabled"); 2020 } 2021 production.options[4].removeAttribute("disabled"); 2022 production.options[5].removeAttribute("disabled"); 2023 production.options[6].removeAttribute("disabled"); 2024 production.selectedIndex = 6; 2025 2026 var value = $("#TextBoxQuantity").val(); 2027 if (value < 300) { 2028 $("#TextBoxQuantity").val("300"); 2029 } 2030 2031 GlassMasterOnly = true; 2032 DuplicationOnly = false; 2033 var finishingID = document.getElementById('DropDownListFinishing').value; 2034 if (finishingID != 7) { 2035 document.getElementById('DropDownListFinishing').value = 7; 2036 prevfinishing = finishingID; 2037 ShowMedia(); 2038 } 2039 2040 SetShippingDate(production.value); 2041 setOptions(); 2042 2043} 2044 2045function EnableAllProcessing() { 2046 var production = document.getElementById('DropDownListProd'); 2047 //var production1 = document.getElementById('DropDownListProd1'); 2048 for (i = 0; i <= 6; i++) { 2049 production.options[i].removeAttribute("disabled"); 2050 //production1.options[i].removeAttribute("disabled"); 2051 } 2052 GlassMasterOnly = false; 2053 DuplicationOnly = false; 2054} 2055 2056 2057$('.swiper-slide select').on('mousedown touchstart MSPointerDown', function (e) { 2058 e.stopPropagation(); 2059}); 2060 2061//$('.swiper-slide').click(function (event) { 2062// event.preventDefault(); 2063// //more functionality here 2064//}); 2065 2066//no postback on enter key 2067 $(':text').bind('keydown', function (e) { 2068 //on keydown for all textboxes 2069 if (e.keyCode == 13) { //if this is enter key 2070 e.preventDefault(); 2071 return false; 2072 } 2073 else 2074 return true; 2075 }); 2076 2077$(document).ready(function () { 2078 2079 LinkVinylCDMasterink = $("#HyperLink6").attr("href"); 2080 $("#TextBoxQuantity").change(function () { QuantityChanged(); }); 2081 $("#TextBoxQuantity").keyup(function () { VoidPrice(); }); 2082 $("#TextBoxnTracks").change(function () { TrackNumberChanged(); }); 2083 $("#TextBoxnTracks").keyup(function () { VoidPrice(); }); 2084 $("#TextBoxnTracks2").change(function () { TrackNumberChanged(); }); 2085 $("#TextBoxnTracks2").keyup(function () { VoidPrice(); }); 2086 mySwiper = new Swiper('.swiper-container', { 2087 //pagination: '.swiper-pagination', 2088 //paginationClickable: true, 2089 //nextButton: '.swiper-button-next', 2090 //prevButton: '.swiper-button-prev', 2091 //scrollbar: '.swiper-scrollbar', 2092 //scrollbarHide: false, 2093 slidesPerView: 'auto', 2094 centeredSlides: false, 2095 calculateHeight: true, 2096 offsetPxAfter: 50, 2097 observer: true, 2098 slidesOffsetAfter: 50, 2099 scrollbar: { 2100 el: '.swiper-scrollbar', 2101 hide: false, 2102 draggable: true 2103 }, 2104 grabCursor: true, 2105 threshold: 10, 2106 on: { 2107 //slideNextTransitionStart: function() { 2108 // if (SwiperEnd) { 2109 // $('.off-canvas-wrap').foundation('offcanvas', 'show', 'move-left'); 2110 // SwiperEnd = false; 2111 // } 2112 //}, 2113 transitionStart: function (a) { 2114 if (mySwiper.isEnd && mySwiper.touches.diff < -150) 2115 $('.off-canvas-wrap').foundation('offcanvas', 'show', 'move-left'); 2116 if ((mySwiper.touches.diff > 0) && $("#off-canvas").hasClass('move-left')) 2117 $('.off-canvas-wrap').foundation('offcanvas', 'hide', 'move-left'); 2118 }, 2119 2120 //reachEnd: function (a) { 2121 // $('.off-canvas-wrap').foundation('offcanvas', 'show', 'move-left'); 2122 //}, 2123 //slidePrevTransitionStart: function () { 2124 // if ($("#off-canvas").hasClass('move-left') && !mySwiper.isEnd ) 2125 // $('.off-canvas-wrap').foundation('offcanvas', 'hide', 'move-left'); 2126 //}, 2127 2128 } 2129 //onResistanceAfter: function (swiper, p) { 2130 // if (p > 100) { 2131 // $('.off-canvas-wrap').foundation('offcanvas', 'show', 'move-left'); 2132 // } 2133 //}, 2134 //onResistanceBefore: function (swiper, p) { 2135 // if (p > 10) { 2136 // if ($("#off-canvas").hasClass('move-left')) 2137 // $('.off-canvas-wrap').foundation('offcanvas', 'hide', 'move-left'); 2138 // } 2139 //}, 2140 2141 //onSlideChangeStart: function (swiper, direction) { 2142 // if (direction == "prev") { 2143 // if ($("#off-canvas").hasClass('move-left')) 2144 // $('.off-canvas-wrap').foundation('offcanvas', 'hide', 'move-left'); 2145 // } 2146 //} 2147 2148 });
2149 ProductChanged(); 2150 2151 rebindDropDownListVinylType(true); //inizializza la lista dei vinili 2152 rebindDropDownListVinylColorByDiscType(document.getElementById("DropDownListVinyl").value); //inizializza la lista dei colori 2153 //SetVinylMedia(); 2154 2155 ShowMedia(); 2156 SetPackage(); 2157 ShowVinylMedia(); 2158 SetVinylPackageImage(); 2159 QuantityChanged(); //invoca anche GetPrice 2160 SetShippingDate(document.getElementById('DropDownListProd').value); 2161 SetDesignPanel(); 2162 2163}); 2164 2165//EVENTI 2166function BurnChanged(obj) { 2167 AcceptCookies(); 2168 CheckAllowedProcessing(); 2169} 2170function QuantityChanged() { 2171 AcceptCookies(); 2172 var value = $("#TextBoxQuantity").val(); 2173 if (value > 5000) 2174 $("#TextBoxQuantity").val(5000); 2175 CheckAllowedProcessing(); 2176 setOptions(); 2177 GetPrice(); 2178} 2179 2180function TrackNumberChanged() { 2181 AcceptCookies(); 2182 GetPrice(); 2183} 2184 2185//function QuantityChanged1() { 2186// $('#TextBoxQuantity').val($('#TextBoxQuantity1').val()); 2187// CheckAllowedProcessing(); 2188// setOptions(); 2189// GetPrice(); 2190//} 2191 2192//function ProductionTypeChanged1() { 2193// document.getElementById('DropDownListProd').value= document.getElementById('DropDownListProd1').value 2194// ProductionTypeChanged() 2195//} 2196 2197 2198 2199function SetShippingDate(prodCode) { 2200 switch (prodCode) { 2201 case "0": 2202 $("#TextBoxProdTime").val($("#HiddenPStandard").val()); 2203 break; 2204 case "1": 2205 $("#TextBoxProdTime").val($("#HiddenPFast").val()); 2206 break; 2207 case "2": 2208 $("#TextBoxProdTime").val($("#HiddenPOvenight").val()); 2209 break; 2210 case "3": 2211 $("#TextBoxProdTime").val($("#HiddenPReplication").val()); 2212 break; 2213 case "4": 2214 $("#TextBoxProdTime").val($("#HiddenPEconomy").val()); 2215 break; 2216 case "5": 2217 $("#TextBoxProdTime").val($("#HiddenPReplicationEconomy").val()); 2218 break; 2219 case "6": 2220 $("#TextBoxProdTime").val($("#HiddenPReplicationEconomy20").val()); 2221 break; 2222 default: 2223 $("#TextBoxProdTime").val("---"); 2224 2225 } 2226} 2227 2228function LaminationMatteChanged() { 2229 var prodID = document.getElementById('DropDownListProd').value; 2230 //if (((prodID != 3) && (prodID != 5) && (prodID != 6)) && !$("#ChkVinylDisk").prop("checked")) { 2231 //if ((prodID != 3) && (prodID != 5) && (prodID != 6)) { 2232 // document.getElementById('chkLaminationGlossy').checked = !document.getElementById('chkLamination').checked; 2233 //} 2234 //else { 2235 // if (document.getElementById('chkLamination').checked) 2236 // document.getElementById('chkLaminationGlossy').checked = false; 2237 //} 2238 if (document.getElementById('chkLamination').checked) 2239 document.getElementById('chkLaminationGlossy').checked = false; 2240 else if ($("#ChkVinylDisk").prop("checked")) 2241 document.getElementById('chkLaminationGlossy').checked = true; 2242 GetPrice(); 2243} 2244 2245function LaminationGlossyChanged() { 2246 var prodID = document.getElementById('DropDownListProd').value; 2247 //if (((prodID != 3) && (prodID != 5) && (prodID != 6)) && !$("#ChkVinylDisk").prop("checked")) { 2248 //if ((prodID != 3) && (prodID != 5) && (prodID != 6)) { 2249 // document.getElementById('chkLamination').checked = !document.getElementById('chkLaminationGlossy').checked; 2250 //} 2251 //else { 2252 // if (document.getElementById('chkLaminationGlossy').checked) 2253 // document.getElementById('chkLamination').checked = false; 2254 //} 2255 if (document.getElementById('chkLaminationGlossy').checked) 2256 document.getElementById('chkLamination').checked = false; 2257 else if ($("#ChkVinylDisk").prop("checked")) 2258 document.getElementById('chkLamination').checked = true; 2259 GetPrice(); 2260} 2261 2262function ProductionTypeChangedVinyl() { 2263 var prodId = $("#DropDownListProdVinyl").prop('selectedIndex'); 2264 var count = $("#TextBoxQuantity").val(); 2265 if (prodId === 0) { 2266 if (count < 100) { 2267 $("#TextBoxQuantity").val(100); 2268 } 2269 rebindDropDownListVinylType(true); 2270 var i_VinylDisc = document.getElementById("DropDownListVinyl").value; 2271 rebindDropDownListVinylColorByDiscType(i_VinylDisc); 2272 SetVinylMedia();
2273 } 2274 else { 2275 if (count > 50) { 2276 $("#TextBoxQuantity").val(1); 2277 2278 } 2279 rebindDropDownListVinylType(false); 2280 var i_VinylDisc = document.getElementById("DropDownListVinyl").value; 2281 rebindDropDownListVinylColorByDiscType(i_VinylDisc); 2282 SetVinylMedia(); 2283 } 2284 setOptions(); 2285} 2286 2287 2288function getVinylColorSourceFromHiddenField(hiddenFieldId) { 2289 var el = document.getElementById(hiddenFieldId); 2290 if (!el || !el.value) return []; 2291 try { 2292 var data = JSON.parse(el.value); 2293 if (!Array.isArray(data)) return []; 2294 return data; 2295 } catch (e) { 2296 return []; 2297 } 2298} 2299 2300function rebindDropDownListVinylType(isPressing) { 2301 var ddl = document.getElementById("DropDownListVinyl"); 2302 var i_VinylDisc = document.getElementById("DropDownListVinyl").value; 2303 ddl.options.length = 0; 2304 2305 if (isPressing) { 2306 ddl.options.add(new Option('12" LP Pressed 140 gr. ', 1)); 2307 ddl.options.add(new Option('12" LP Pressed 180 gr. ', 2)); 2308 ddl.options.add(new Option('7" Pressed ', 3)); 2309 if (i_VinylDisc == 6) 2310 document.getElementById("DropDownListVinyl").value = 3; 2311 else 2312 document.getElementById("DropDownListVinyl").value = 1; 2313 2314 } 2315 else { 2316 ddl.options.add(new Option('12" LP Single cut 2mm. ', 5)); 2317 ddl.options.add(new Option('7" Single cut 2mm. ', 6)); 2318 if (i_VinylDisc == 3 || i_VinylDisc == 4) 2319 document.getElementById("DropDownListVinyl").value = 6; 2320 else 2321 document.getElementById("DropDownListVinyl").value = 5; 2322 } 2323 2324} 2325 2326function rebindDropDownListVinylColorByDiscType(vinyldiscType) { 2327 var ddl = document.getElementById("DropDownListVinylcolor"); 2328 if (!ddl) return; 2329 2330 var selectedValue = ddl.value; 2331 2332 // Queste 4 variabili coincidono con i dictionary server-side 2333 var pressing12 = getVinylColorSourceFromHiddenField("hfVinylColorPressing12"); 2334 var pressing7 = getVinylColorSourceFromHiddenField("hfVinylColorPressing7"); 2335 var cut12 = getVinylColorSourceFromHiddenField("hfVinylColorCut12"); 2336 var cut7 = getVinylColorSourceFromHiddenField("hfVinylColorCut7"); 2337 2338 var source = []; 2339 switch (parseInt(vinyldiscType, 10)) { 2340 case 1: // size12_Standard 2341 case 2: // size12_Heavy 2342 source = pressing12; 2343 break; 2344 case 3: // size7_Standard 2345 case 4: // size7_Heavy 2346 source = pressing7; 2347 break; 2348 case 5: // size12_cuting 2349 source = cut12; 2350 break; 2351 case 6: // size7_cuting 2352 source = cut7; 2353 break; 2354 } 2355 2356 ddl.options.length = 0; 2357 2358 for (var i = 0; i < source.length; i++) { 2359 ddl.options.add(new Option(source[i].Key, source[i].Value)); 2360 } 2361 2362 if (selectedValue && Array.prototype.some.call(ddl.options, function (o) { return o.value === selectedValue; })) { 2363 ddl.value = selectedValue; 2364 } else if (ddl.options.length > 0) { 2365 ddl.selectedIndex = 0; 2366 } 2367} 2368 2369 2370 2371function ProductionTypeChanged() { 2372 AcceptCookies(); 2373 var finishing = document.getElementById('DropDownListFinishing'); 2374 var prodID = document.getElementById('DropDownListProd').value; 2375 if ((prodID == 3) || (prodID == 5) || (prodID == 6)) { 2376 if (finishing.value != 7) { 2377 prevfinishing = finishing.value; 2378 //default to no lamination 2379 //document.getElementById('chkLamination').checked = false; 2380 //document.getElementById('chkLaminationGlossy').checked = false; 2381 } 2382 finishing.value = 7; 2383 ShowMedia(); 2384 } 2385 else if (finishing.value == 7) { 2386 if ((prevfinishing != "") && (prevfinishing != 7)) 2387 finishing.value = prevfinishing; 2388 else 2389 finishing.value = 5; 2390 if (finishing.value == "") 2391 finishing.value = 1; 2392 ShowMedia(); 2393 } 2394 SetShippingDate(prodID); 2395 setOptions(); 2396} 2397 2398 2399function VinylFinishingChanged(obj) { 2400 ShowVinylMedia();
2401} 2402 2403function FinishingChanged(obj) { 2404 AcceptCookies(); 2405 prevfinishing = ""; 2406 var finishing = document.getElementById('DropDownListFinishing'); 2407 if (finishing.value == 7) { 2408 //if ((document.getElementById('DropDownListProd').value != 3) && (document.getElementById('DropDownListProd').value != 5) && (document.getElementById('DropDownListProd').value != 6)) { 2409 // document.getElementById('chkLamination').checked = false; 2410 // document.getElementById('chkLaminationGlossy').checked = false; 2411 //} 2412 document.getElementById('DropDownListProd').value = 6; 2413 if ($('#TextBoxQuantity').val() < 300) { 2414 $('#TextBoxQuantity').val(300); 2415 } 2416 2417 } 2418 else if ((document.getElementById('DropDownListProd').value == 3) || (document.getElementById('DropDownListProd').value == 5) || (document.getElementById('DropDownListProd').value == 6)) { 2419 document.getElementById('DropDownListProd').value = 0; 2420 if ($('#TextBoxQuantity').val() > 1000) { 2421 $('#TextBoxQuantity').val(1000); 2422 } 2423 } 2424 ShowMedia(); 2425 CheckAllowedProcessing(); 2426 SetShippingDate(document.getElementById('DropDownListProd').value); 2427 setOptions(); 2428} 2429 2430function SetVinylPackageImage() { 2431 var packageID = document.getElementById('DropDownListVinylPackage').value; 2432 var innerID = document.getElementById('DropDownListVinylPackageInner').value; 2433 var imgPath; 2434 switch (packageID) { 2435 case "0": 2436 $("#DropDownListVinylPackageInner").prop("disabled", false); 2437 switch (innerID) { 2438 case "1": 2439 case "2": 2440 imgPath = "/gfx/Vinyl/innersleeve-white.jpg"; 2441 break; 2442 case "3": 2443 case "4": 2444 imgPath = "/gfx/Vinyl/inner-sleeve-black.jpg"; 2445 break; 2446 case "5": 2447 case "6": 2448 imgPath = "/gfx/Vinyl/inner-sleeve-printed.jpg"; 2449 break; 2450 } 2451 break; 2452 case "7": 2453 case "9": 2454 case "10": 2455 case "13": 2456 $("#DropDownListVinylPackageInner").prop("disabled", false); 2457 imgPath = "/gfx/Vinyl/cardboard.jpg"; 2458 break; 2459 case "8": 2460 document.getElementById('DropDownListVinylPackageInner').value = "2"; 2461 $("#DropDownListVinylPackageInner").prop("disabled", true); 2462 imgPath = "/gfx/Vinyl/cardboard.jpg"; 2463 break; 2464 case "11": 2465 case "12": 2466 $("#DropDownListVinylPackageInner").prop("disabled", false); 2467 imgPath = "/gfx/Vinyl/gatefold.jpg"; 2468 break; 2469 default: 2470 $("#DropDownListVinylPackageInner").prop("disabled", false); 2471 imgPath = "/gfx/Vinyl/innersleeve-white.jpg"; 2472 } 2473 $('#VinylpackageContainer').fadeOut("slow", function () { 2474 $('#VinylImagePackage').attr('src', imgPath); 2475 $('#VinylpackageContainer').fadeIn(); 2476 }); 2477} 2478 2479function MediaChanged() { 2480 AcceptCookies(); 2481 SetMedia();
2482 CheckAllowedProcessing(); 2483 setOptions(); 2484} 2485 2486function VinylMediaChanged() { 2487 AcceptCookies(); 2488 SetVinylMedia(); 2489 setOptions(); 2490} 2491 2492function VinylColorChanged() { 2493 AcceptCookies(); 2494 ShowVinylMedia(); 2495} 2496 2497function vinylPackageChanged() { 2498 SetVinylPackageImage(); 2499 setOptions(); 2500} 2501 2502function vinylBookletChanged() { 2503 setOptions(); 2504} 2505 2506function InlayChanged(obj) { 2507 AcceptCookies(); 2508 ShowPackage(); 2509 setOptions(); 2510} 2511 2512function PackageChanged() { 2513 AcceptCookies(); 2514 SetPackage(); 2515 CheckAllowedProcessing(); 2516 setOptions(); 2517 2518} 2519 2520function ProductChanged() { 2521 if ($("#ChkOpticalMedia").prop("checked")) { 2522 $("#vinylPanel").fadeOut(400, function () { $("#opticalPanel").fadeIn(); }); 2523 $("#vinylPanelPackage").fadeOut(400, function () { $("#opticalPanelPackage").fadeIn(); }); 2524 $("#LabelInfoVinyl").hide(); 2525 } 2526 else if ($("#ChkVinylDisk").prop("checked")) { 2527 $("#opticalPanel").fadeOut(400, function () { $("#vinylPanel").fadeIn(); }); 2528 $("#opticalPanelPackage").fadeOut(400, function () { $("#vinylPanelPackage").fadeIn(); }); 2529 $("#LabelInfoVinyl").show(); 2530 rebindDropDownListVinylType(true); 2531 var i_VinylDisc = document.getElementById("DropDownListVinyl").value; 2532 rebindDropDownListVinylColorByDiscType(i_VinylDisc); 2533 SetVinylMedia();
2534 } 2535 mySwiper.update(); 2536 setOptions(); 2537} 2538 2539function ShipaddressChanged1() { 2540 AcceptCookies(); 2541 document.getElementById("DropDownListShip").value = document.getElementById("DropDownListShip1").value; 2542 var i_CountryCode = document.getElementById("DropDownListShip").value; 2543 var i_shipOption = document.getElementById("DropDownListCarrier"); 2544 if (i_CountryCode == "IT") { 2545 i_shipOption.options[1].setAttribute("disabled", "disabled"); 2546 if (i_shipOption.value == 3) 2547 i_shipOption.value = 5; 2548 } 2549 else 2550 i_shipOption.options[1].removeAttribute("disabled"); 2551 GetPrice(); 2552} 2553 2554function ShipaddressChanged() { 2555 AcceptCookies(); 2556 document.getElementById("DropDownListShip1").value = document.getElementById("DropDownListShip").value; 2557 GetPrice(); 2558} 2559 2560function ShipModeChanged() { 2561 AcceptCookies(); 2562 GetPrice(); 2563} 2564 2565function SetDesignPanel() { 2566 if ($("#CheckboxDesign").prop("checked")) 2567 $("#PanelDesignFull").show(); 2568 else 2569 $("#PanelDesignFull").hide(); 2570 if ($("#CheckboxLayout").prop("checked")) 2571 $("#PanelDesignEasy").show(); 2572 else 2573 $("#PanelDesignEasy").hide(); 2574} 2575 2576function GraphOptionChanged(control) { 2577 AcceptCookies(); 2578 if (control.id == "CheckboxLayout") { 2579 if (control.checked) { 2580 $("#CheckboxDesign").prop("checked", false); 2581 $("#PanelDesignFull").fadeOut(400, function () { $("#PanelDesignEasy").fadeIn(); }); 2582 } 2583 else 2584 $("#PanelDesignEasy").fadeOut(); 2585 } 2586 else if (control.id == "CheckboxDesign") { 2587 if (control.checked) { 2588 $("#CheckboxLayout").prop("checked", false); 2589 $("#PanelDesignEasy").fadeOut(400, function () { $("#PanelDesignFull").fadeIn(); }); 2590 } 2591 else 2592 $("#PanelDesignFull").fadeOut(); 2593 } 2594 GetPrice(); 2595} 2596 2597function VideoLevelChanged(control) { 2598 AcceptCookies(); 2599 if (control.id == "chkVideoConv") { 2600 if (control.checked) { 2601 $("#chkVideoAuthoring1").prop("checked", false); 2602 $("#chkVideoAuthoring2").prop("checked", false); 2603 if ($("#PanelVideo2").is(':visible')) { 2604 $("#PanelVideo2").fadeOut(400, function () { $("#PanelVideo1").fadeIn(); }); 2605 } 2606 else if ($("#PanelVideo3").is(':visible')) { 2607 $("#PanelVideo3").fadeOut(400, function () { $("#PanelVideo1").fadeIn(); }); 2608 } 2609 else 2610 $("#PanelVideo1").fadeIn(); 2611 } 2612 else 2613 $("#PanelVideo1").fadeOut(); 2614 2615 } 2616 else if (control.id == "chkVideoAuthoring1") { 2617 if (control.checked) { 2618 $("#chkVideoConv").prop("checked", false); 2619 $("#chkVideoAuthoring2").prop("checked", false); 2620 if ($("#PanelVideo1").is(':visible')) { 2621 $("#PanelVideo1").fadeOut(400, function () { $("#PanelVideo2").fadeIn(); }); 2622 } 2623 else if ($("#PanelVideo3").is(':visible')) { 2624 $("#PanelVideo3").fadeOut(400, function () { $("#PanelVideo2").fadeIn(); }); 2625 } 2626 else 2627 $("#PanelVideo2").fadeIn(); 2628 } 2629 else 2630 $("#PanelVideo2").fadeOut(); 2631 } 2632 else if (control.id == "chkVideoAuthoring2") { 2633 if (control.checked) { 2634 $("#chkVideoConv").prop("checked", false); 2635 $("#chkVideoAuthoring1").prop("checked", false); 2636 if ($("#PanelVideo1").is(':visible')) { 2637 $("#PanelVideo1").fadeOut(400, function () { $("#PanelVideo3").fadeIn(); }); 2638 } 2639 else if ($("#PanelVideo2").is(':visible')) { 2640 $("#PanelVideo2").fadeOut(400, function () { $("#PanelVideo3").fadeIn(); }); 2641 } 2642 else 2643 $("#PanelVideo3").fadeIn(); 2644 } 2645 else 2646 $("#PanelVideo3").fadeOut(); 2647 } 2648 GetPrice(); 2649} 2650 2651function DistributionOptionChanged(control) { 2652 AcceptCookies(); 2653 if (control.id == "chkFounding") { 2654 if (control.checked) { 2655 $("#chkFulFillment").prop("checked", false); 2656 $("#chkPreorder").prop("checked", false); 2657 $("#chkDiscOnDemand").prop("checked", false); 2658 if ($("#PanelInfoPreorder").is(':visible')) { 2659 $("#PanelInfoPreorder").fadeOut(400, function () { $("#PanelInfoFounding").fadeIn(); }); 2660 } 2661 else if ($("#PanelInfoFulFillment").is(':visible')) { 2662 $("#PanelInfoFulFillment").fadeOut(400, function () { $("#PanelInfoFounding").fadeIn(); }); 2663 } 2664 else if ($("#PanelInfoDiscOnDemand").is(':visible')) { 2665 $("#PanelInfoDiscOnDemand").fadeOut(400, function () { $("#PanelInfoFounding").fadeIn(); }); 2666 } 2667 else 2668 $("#PanelInfoFounding").fadeIn(); 2669 } 2670 else { 2671 $("#PanelInfoFounding").fadeOut(); 2672 } 2673 } 2674 if (control.id == "chkPreorder") { 2675 if (control.checked) { 2676 $("#chkFounding").prop("checked", false); 2677 $("#chkFulFillment").prop("checked", false); 2678 $("#chkDiscOnDemand").prop("checked", false); 2679 if ($("#PanelInfoFounding").is(':visible')) { 2680 $("#PanelInfoFounding").fadeOut(400, function () { $("#PanelInfoPreorder").fadeIn(); }); 2681 } 2682 else if ($("#PanelInfoFulFillment").is(':visible')) { 2683 $("#PanelInfoFulFillment").fadeOut(400, function () { $("#PanelInfoPreorder").fadeIn(); }); 2684 } 2685 else if ($("#PanelInfoDiscOnDemand").is(':visible')) { 2686 $("#PanelInfoDiscOnDemand").fadeOut(400, function () { $("#PanelInfoPreorder").fadeIn(); }); 2687 } 2688 else 2689 $("#PanelInfoPreorder").fadeIn(); 2690 } 2691 else { 2692 $("#PanelInfoPreorder").fadeOut(); 2693 } 2694 } 2695 if (control.id == "chkFulFillment") { 2696 if (control.checked) { 2697 $("#chkFounding").prop("checked", false); 2698 $("#chkPreorder").prop("checked", false); 2699 $("#chkDiscOnDemand").prop("checked", false); 2700 if ($("#PanelInfoFounding").is(':visible')) { 2701 $("#PanelInfoFounding").fadeOut(400, function () { $("#PanelInfoFulFillment").fadeIn(); }); 2702 } 2703 else if ($("#PanelInfoPreorder").is(':visible')) { 2704 $("#PanelInfoPreorder").fadeOut(400, function () { $("#PanelInfoFulFillment").fadeIn(); }); 2705 } 2706 else if ($("#PanelInfoDiscOnDemand").is(':visible')) { 2707 $("#PanelInfoDiscOnDemand").fadeOut(400, function () { $("#PanelInfoFulFillment").fadeIn(); }); 2708 } 2709 else 2710 $("#PanelInfoFulFillment").fadeIn(); 2711 } 2712 else { 2713 $("#PanelInfoFulFillment").fadeOut(); 2714 } 2715 } 2716 if (control.id == "chkDiscOnDemand") { 2717 if (control.checked) { 2718 $("#chkFounding").prop("checked", false); 2719 $("#chkPreorder").prop("checked", false); 2720 $("#chkFulFillment").prop("checked", false); 2721 if ($("#PanelInfoFounding").is(':visible')) { 2722 $("#PanelInfoFounding").fadeOut(400, function () { $("#PanelInfoDiscOnDemand").fadeIn(); }); 2723 } 2724 else if ($("#PanelInfoPreorder").is(':visible')) { 2725 $("#PanelInfoPreorder").fadeOut(400, function () { $("#PanelInfoDiscOnDemand").fadeIn(); }); 2726 } 2727 else if ($("#PanelInfoFulFillment").is(':visible')) { 2728 $("#PanelInfoFulFillment").fadeOut(400, function () { $("#PanelInfoDiscOnDemand").fadeIn(); }); 2729 } 2730 else 2731 $("#PanelInfoDiscOnDemand").fadeIn(); 2732 } 2733 else { 2734 $("#PanelInfoDiscOnDemand").fadeOut(); 2735 } 2736 } 2737} 2738 2739function AudioOptionChanged(control) { 2740 AcceptCookies(); 2741 if (control.id == "CheckboxVolumeLevel") { 2742 if (control.checked) { 2743 $("#CheckboxMastering").prop("checked", false); 2744 $("#CheckboxLandr").prop("checked", false); 2745 if ($("#PanelAudioMastering").is(':visible')) 2746 $("#PanelAudioMastering").fadeOut(400, function () { $("#PanelAudioLeveling").fadeIn(); }); 2747 else if ($("#PanelLandr").is(':visible')) 2748 $("#PanelLandr").fadeOut(400, function () { $("#PanelAudioLeveling").fadeIn(); }); 2749 else 2750 $("#PanelAudioLeveling").fadeIn(); 2751 } 2752 else { 2753 $("#PanelAudioLeveling").fadeOut(); 2754 //if ($("#ChkOpticalMedia").prop("checked")) $("#PanelLandr").fadeIn(); 2755 } 2756 } 2757 else if (control.id == "CheckboxMastering") { 2758 if (control.checked) { 2759 $("#CheckboxVolumeLevel").prop("checked", false); 2760 $("#CheckboxLandr").prop("checked", false); 2761 if ($("#PanelAudioLeveling").is(':visible')) 2762 $("#PanelAudioLeveling").fadeOut(400, function () { $("#PanelAudioMastering").fadeIn(); }); 2763 else if ($("#PanelLandr").is(':visible')) 2764 $("#PanelLandr").fadeOut(400, function () { $("#PanelAudioMastering").fadeIn(); }); 2765 else 2766 $("#PanelAudioMastering").fadeIn(); 2767 } 2768 else { 2769 $("#PanelAudioMastering").fadeOut(); 2770 //if ($("#ChkOpticalMedia").prop("checked")) $("#PanelLandr").fadeIn(); 2771 } 2772 2773 } 2774 //else if (control.id == "CheckboxLandr") { 2775 // if (control.checked) { 2776 // $("#CheckboxVolumeLevel").prop("checked", false); 2777 // $("#CheckboxMastering").prop("checked", false); 2778 // if ($("#PanelAudioLeveling").is(':visible')) 2779 // $("#PanelAudioLeveling").fadeOut(400, function () { $("#PanelLandr").fadeIn(); }); 2780 // else if ($("#PanelAudioMastering").is(':visible')) 2781 // $("#PanelAudioMastering").fadeOut(400, function () { $("#PanelLandr").fadeIn(); }); 2782 // else 2783 // $("#PanelLandr").fadeIn(); 2784 // } 2785 // else { 2786 // $("#PanelLandr").fadeOut(); 2787 // } 2788 //} 2789 2790 2791 GetPrice(); 2792} 2793 2794function NufacoOpotionChanged() { 2795 NufacoOptChanged = true; 2796 GetPrice(); 2797} 2798 2799function url_redirect(options) { 2800 2801 2802 2803 var $form = $("<form />"); 2804 2805 $form.attr("action", options.url); 2806 $form.attr("method", options.method); 2807 $form.attr("target", "_blank"); 2808 2809 for (var data in options.data) 2810 $form.append('<input type="hidden" name="' + data + '" value="' + options.data[data] + '" />'); 2811 2812 $("body").append($form); 2813 $form.submit(); 2814} 2815 2816 2817 2818 2819$(document).foundation(); 2820$(document).ajaxStart(function () { 2821 $(".ajaxloader").show(); 2822}); 2823$(document).ajaxStop(function () { 2824 $(".ajaxloader").hide(); 2825});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.