var productImages = []; // Preloaded image. ID = 1372 productImages[1372] = new Image(); productImages[1372].src="/image/product/medium/loren03rushed_hipster_powder_blue-a-1.jpg"; productImages[1372].alt = "Loren bikini shown in sky blue features exquisite bead detailing"; // Preloaded image. ID = 1373 productImages[1373] = new Image(); productImages[1373].src="/image/product/medium/loren01.jpg"; productImages[1373].alt = "Loren bikini shown in sky blue and apricot"; // Preloaded image. ID = 1374 productImages[1374] = new Image(); productImages[1374].src="/image/product/medium/loren02_rushed_hipster_powder_blue.jpg"; productImages[1374].alt = "Loren bikini shown in sky blue shows the ring pants"; // Preloaded image. ID = 1375 productImages[1375] = new Image(); productImages[1375].src="/image/product/medium/loren09tie_side_pant_apricot.jpg"; productImages[1375].alt = "Loren bikini shown in apricot shows the tie-up pants"; // Preloaded image. ID = 1376 productImages[1376] = new Image(); productImages[1376].src="/image/product/medium/loren08apricot_detail_l.jpg"; productImages[1376].alt = "Loren bikini top shown in apricot"; // Preloaded image. ID = 1377 productImages[1377] = new Image(); productImages[1377].src="/image/product/medium/loren06apricot.jpg"; productImages[1377].alt = "Loren bikini top shown in apricot"; // Preloaded image. ID = 1378 productImages[1378] = new Image(); productImages[1378].src="/image/product/medium/loren05powder_blue.jpg"; productImages[1378].alt = "Loren bikini top shown in sky blue"; // Preloaded image. ID = 1379 productImages[1379] = new Image(); productImages[1379].src="/image/product/medium/loren07tie_side_pant_apricot.jpg"; productImages[1379].alt = "Loren bikini pants shown in apricot with tie-up sides"; // Preloaded image. ID = 1380 productImages[1380] = new Image(); productImages[1380].src="/image/product/medium/loren04rushed_hipster_powder_blue.jpg"; productImages[1380].alt = "Loren bikini pants shown in sky blue with ring sides"; var productData = []; productData[2620] = [{1: 4, 13: 99, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2621] = [{1: 4, 13: 100, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2622] = [{1: 4, 13: 101, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2623] = [{1: 4, 13: 102, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2624] = [{1: 4, 13: 103, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2625] = [{1: 4, 13: 99, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2626] = [{1: 4, 13: 100, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2627] = [{1: 4, 13: 101, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2628] = [{1: 4, 13: 102, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2629] = [{1: 4, 13: 103, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2630] = [{1: 4, 13: 99, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2631] = [{1: 4, 13: 100, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2632] = [{1: 4, 13: 101, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2633] = [{1: 4, 13: 102, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2634] = [{1: 4, 13: 103, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2635] = [{1: 4, 13: 99, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2636] = [{1: 4, 13: 100, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2637] = [{1: 4, 13: 101, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2638] = [{1: 4, 13: 102, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2639] = [{1: 4, 13: 103, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2640] = [{1: 1, 13: 99, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2641] = [{1: 1, 13: 100, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2642] = [{1: 1, 13: 101, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2643] = [{1: 1, 13: 102, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2644] = [{1: 1, 13: 103, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2645] = [{1: 1, 13: 99, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2646] = [{1: 1, 13: 100, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2647] = [{1: 1, 13: 101, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2648] = [{1: 1, 13: 102, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2649] = [{1: 1, 13: 103, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2650] = [{1: 1, 13: 99, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2651] = [{1: 1, 13: 100, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2652] = [{1: 1, 13: 101, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2653] = [{1: 1, 13: 102, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2654] = [{1: 1, 13: 103, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2655] = [{1: 1, 13: 99, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2656] = [{1: 1, 13: 100, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2657] = [{1: 1, 13: 101, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2658] = [{1: 1, 13: 102, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2659] = [{1: 1, 13: 103, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2660] = [{1: 2, 13: 99, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2661] = [{1: 2, 13: 100, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2662] = [{1: 2, 13: 101, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2663] = [{1: 2, 13: 102, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2664] = [{1: 2, 13: 103, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2665] = [{1: 2, 13: 99, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2666] = [{1: 2, 13: 100, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2667] = [{1: 2, 13: 101, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2668] = [{1: 2, 13: 102, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2669] = [{1: 2, 13: 103, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2670] = [{1: 2, 13: 99, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2671] = [{1: 2, 13: 100, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2672] = [{1: 2, 13: 101, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2673] = [{1: 2, 13: 102, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2674] = [{1: 2, 13: 103, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2675] = [{1: 2, 13: 99, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2676] = [{1: 2, 13: 100, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2677] = [{1: 2, 13: 101, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2678] = [{1: 2, 13: 102, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2679] = [{1: 2, 13: 103, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2680] = [{1: 3, 13: 99, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2681] = [{1: 3, 13: 100, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2682] = [{1: 3, 13: 101, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2683] = [{1: 3, 13: 102, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2684] = [{1: 3, 13: 103, 8: 93, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2685] = [{1: 3, 13: 99, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2686] = [{1: 3, 13: 100, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2687] = [{1: 3, 13: 101, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2688] = [{1: 3, 13: 102, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2689] = [{1: 3, 13: 103, 8: 93, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2690] = [{1: 3, 13: 99, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2691] = [{1: 3, 13: 100, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2692] = [{1: 3, 13: 101, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2693] = [{1: 3, 13: 102, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2694] = [{1: 3, 13: 103, 8: 94, 12: 95}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2695] = [{1: 3, 13: 99, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2696] = [{1: 3, 13: 100, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2697] = [{1: 3, 13: 101, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2698] = [{1: 3, 13: 102, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; productData[2699] = [{1: 3, 13: 103, 8: 94, 12: 96}, {"price":'AU$165.00 ($152.82 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$165.00 ($152.82 USD?)', "stock":-1, "imageId":0} ]; var attribSets = [1, 13, 8, 12]; // Find the variant selected. function findVariant() { found = false; // Found flag. variantIndex = 0; // The index of the found variant element. // This just scans for a match and if found it sets the flags and breaks. // If one mismatch is detected it just breaks the loop. for (variant in productData) // Loop through the variant array, called 'productData'. { for (set in attribSets) // Now loop through the sets. { // Get a refference to a attribute set select box. attrib = document.getElementById("attributes"+attribSets[set]); // Check to see if the value of that attribute select box is in the productData attribute array. if (productData[variant][0][attribSets[set]]==attrib.value) { found = true; } else { found = false; break; } } if (found==true) { variantIndex = variant; break; } } if (variantIndex!=0) { var data = productData[variantIndex][1]; data["var_id"] = variantIndex; return data; } else { return false; } } // This enables and disables the submit button. function submitButtonEnable(enabled) { if(enabled==false) { document.getElementById("submitButton").style.display="none"; // document.getElementById("submitButton").disabled = true; } else { document.getElementById("submitButton").style.display="block"; // document.getElementById("submitButton").disabled = false; } } function specialRowEnabled(enable) { var browserName=navigator.appName; if (enable==false) { document.getElementById("specialRow").style.display="none"; } else { // Use block for IE because table-row doesn't work if (browserName=="Microsoft Internet Explorer") { document.getElementById("specialRow").style.display="block"; } else { document.getElementById("specialRow").style.display="table-row"; } } } // Display stock indicator function displayStock() { // DON'T SWAP STOCK for Zakoda return true; // Get the selected variant. variant = findVariant(); // Check if it is an exception. and display a custom message if (variant["exception"]=="TRUE") { // See if it is on special. stockString = "Not Available" } else if (variant["stock"] < 0) { stockString = "Approximately 2 weeks"; } else if (variant["stock"] == 0) { stockString = 'Contact us for availability'; } else if (variant["stock"] > 0) { stockString = "IN STOCK. SHIPS WITHIN 1 - 3 DAYS"; } document.getElementById("stock").innerHTML = stockString; } // This is the function that gets called when the user changes the selection. function changeVariant() { // Get the selected variant. variant = findVariant(); // Sort out the stock displayStock(); // Check if it is an exception. if (variant["exception"]=="FALSE") { // See if it is on special. if (variant["isSpecial"]=="TRUE") { // Display the special price with the old price with strike through font. document.getElementById("price").innerHTML = "" + variant["price"] + ""; document.getElementById("specialPrice").innerHTML = variant["specialPrice"]; specialRowEnabled(true); } // Just show the normal price. else { document.getElementById("price").innerHTML = variant["price"]; specialRowEnabled(false); } submitButtonEnable(true); // Enable the submit button. } else { // Variant must be an exception so display some text and disable the submit button. document.getElementById("price").innerHTML = "Item Not Available"; submitButtonEnable(false); specialRowEnabled(false); } }