var productImages = []; // Preloaded image. ID = 1347 productImages[1347] = new Image(); productImages[1347].src="/image/product/medium/ekland04apricot-a.jpg"; productImages[1347].alt = "The Ekland bikini shown in Apricot is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1348 productImages[1348] = new Image(); productImages[1348].src="/image/product/medium/swimwear09a_l.jpg"; productImages[1348].alt = "The Ekland bikini shown in Apricot is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1349 productImages[1349] = new Image(); productImages[1349].src="/image/product/medium/ekland09sky_blue_l-a.jpg"; productImages[1349].alt = "The Ekland bikini shown in Sky Blue is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1350 productImages[1350] = new Image(); productImages[1350].src="/image/product/medium/ekland01skyblue.jpg"; productImages[1350].alt = "The Ekland bikini shown in Sky Blue is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1351 productImages[1351] = new Image(); productImages[1351].src="/image/product/medium/ekland07sky_blue-a.jpg"; productImages[1351].alt = "The Ekland bikini shown in Sky Blue is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1352 productImages[1352] = new Image(); productImages[1352].src="/image/product/medium/ekland02black-a.jpg"; productImages[1352].alt = "The Ekland bikini shown in Black is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1353 productImages[1353] = new Image(); productImages[1353].src="/image/product/medium/ekland06black-a.jpg"; productImages[1353].alt = "The Ekland bikini shown in Black is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1354 productImages[1354] = new Image(); productImages[1354].src="/image/product/medium/ekland03lilac-a.jpg"; productImages[1354].alt = "The Ekland bikini shown in Lilac is adorned with gold beaded star detail on the top and pants"; // Preloaded image. ID = 1355 productImages[1355] = new Image(); productImages[1355].src="/image/product/medium/ekland08lilac-a.jpg"; productImages[1355].alt = "The Ekland bikini shown in Lilac is adorned with gold beaded star detail on the top and pants"; var productData = []; productData[2390] = [{1: 4, 13: 99, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2391] = [{1: 4, 13: 100, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2392] = [{1: 4, 13: 101, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2393] = [{1: 4, 13: 102, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2394] = [{1: 4, 13: 103, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2395] = [{1: 4, 13: 99, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2396] = [{1: 4, 13: 100, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2397] = [{1: 4, 13: 101, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2398] = [{1: 4, 13: 102, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2399] = [{1: 4, 13: 103, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2400] = [{1: 4, 13: 99, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2401] = [{1: 4, 13: 100, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2402] = [{1: 4, 13: 101, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2403] = [{1: 4, 13: 102, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2404] = [{1: 4, 13: 103, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2405] = [{1: 4, 13: 99, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2406] = [{1: 4, 13: 100, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2407] = [{1: 4, 13: 101, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2408] = [{1: 4, 13: 102, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2409] = [{1: 4, 13: 103, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2410] = [{1: 1, 13: 99, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2411] = [{1: 1, 13: 100, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2412] = [{1: 1, 13: 101, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2413] = [{1: 1, 13: 102, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2414] = [{1: 1, 13: 103, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2415] = [{1: 1, 13: 99, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2416] = [{1: 1, 13: 100, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2417] = [{1: 1, 13: 101, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2418] = [{1: 1, 13: 102, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2419] = [{1: 1, 13: 103, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2420] = [{1: 1, 13: 99, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2421] = [{1: 1, 13: 100, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2422] = [{1: 1, 13: 101, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2423] = [{1: 1, 13: 102, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2424] = [{1: 1, 13: 103, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2425] = [{1: 1, 13: 99, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2426] = [{1: 1, 13: 100, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2427] = [{1: 1, 13: 101, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2428] = [{1: 1, 13: 102, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2429] = [{1: 1, 13: 103, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2430] = [{1: 2, 13: 99, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2431] = [{1: 2, 13: 100, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2432] = [{1: 2, 13: 101, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2433] = [{1: 2, 13: 102, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2434] = [{1: 2, 13: 103, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2435] = [{1: 2, 13: 99, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2436] = [{1: 2, 13: 100, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2437] = [{1: 2, 13: 101, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2438] = [{1: 2, 13: 102, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2439] = [{1: 2, 13: 103, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2440] = [{1: 2, 13: 99, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2441] = [{1: 2, 13: 100, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2442] = [{1: 2, 13: 101, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2443] = [{1: 2, 13: 102, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2444] = [{1: 2, 13: 103, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2445] = [{1: 2, 13: 99, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2446] = [{1: 2, 13: 100, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2447] = [{1: 2, 13: 101, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2448] = [{1: 2, 13: 102, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2449] = [{1: 2, 13: 103, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2450] = [{1: 3, 13: 99, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2451] = [{1: 3, 13: 100, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2452] = [{1: 3, 13: 101, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2453] = [{1: 3, 13: 102, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2454] = [{1: 3, 13: 103, 8: 41}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2455] = [{1: 3, 13: 99, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2456] = [{1: 3, 13: 100, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2457] = [{1: 3, 13: 101, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2458] = [{1: 3, 13: 102, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2459] = [{1: 3, 13: 103, 8: 89}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2460] = [{1: 3, 13: 99, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2461] = [{1: 3, 13: 100, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2462] = [{1: 3, 13: 101, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2463] = [{1: 3, 13: 102, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2464] = [{1: 3, 13: 103, 8: 93}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2465] = [{1: 3, 13: 99, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2466] = [{1: 3, 13: 100, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2467] = [{1: 3, 13: 101, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2468] = [{1: 3, 13: 102, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; productData[2469] = [{1: 3, 13: 103, 8: 94}, {"price":'AU$145.00 ($132.16 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$145.00 ($132.16 USD?)', "stock":-1, "imageId":0} ]; var attribSets = [1, 13, 8]; // 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); } }