var productImages = []; // Preloaded image. ID = 1263 productImages[1263] = new Image(); productImages[1263].src="/image/product/medium/002c-a.jpg"; productImages[1263].alt = "The Cutout Maillot One Piece Swimsuit is shown above in the Jennifer print"; // Preloaded image. ID = 1264 productImages[1264] = new Image(); productImages[1264].src="/image/product/medium/002c.jpg"; productImages[1264].alt = "The Cutout Maillot One Piece swimsuit is shown above in the Jennifer Reverse print"; // Preloaded image. ID = 1265 productImages[1265] = new Image(); productImages[1265].src="/image/product/medium/kooey_colours-8.jpg"; productImages[1265].alt = "Please select your colour choice from the product drop down menu"; var productData = []; productData[1825] = [{9: 62, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1826] = [{9: 62, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1827] = [{9: 62, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1828] = [{9: 62, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1829] = [{9: 62, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1830] = [{9: 63, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1831] = [{9: 63, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1832] = [{9: 63, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1833] = [{9: 63, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1834] = [{9: 63, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1835] = [{9: 64, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1263} ]; productData[1836] = [{9: 64, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1263} ]; productData[1837] = [{9: 64, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1263} ]; productData[1838] = [{9: 64, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1263} ]; productData[1839] = [{9: 64, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1263} ]; productData[1840] = [{9: 65, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1264} ]; productData[1841] = [{9: 65, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1264} ]; productData[1842] = [{9: 65, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1264} ]; productData[1843] = [{9: 65, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1264} ]; productData[1844] = [{9: 65, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1264} ]; productData[1845] = [{9: 66, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1846] = [{9: 66, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1847] = [{9: 66, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1848] = [{9: 66, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1849] = [{9: 66, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1850] = [{9: 67, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1851] = [{9: 67, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1852] = [{9: 67, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1853] = [{9: 67, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1854] = [{9: 67, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1855] = [{9: 68, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1856] = [{9: 68, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1857] = [{9: 68, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1858] = [{9: 68, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1859] = [{9: 68, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1860] = [{9: 69, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1861] = [{9: 69, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1862] = [{9: 69, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1863] = [{9: 69, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1864] = [{9: 69, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1865] = [{9: 70, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1866] = [{9: 70, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1867] = [{9: 70, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1868] = [{9: 70, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1869] = [{9: 70, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1870] = [{9: 71, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1871] = [{9: 71, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1872] = [{9: 71, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1873] = [{9: 71, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1874] = [{9: 71, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1875] = [{9: 72, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1876] = [{9: 72, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1877] = [{9: 72, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1878] = [{9: 72, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1879] = [{9: 72, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1880] = [{9: 73, 10: 77}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1881] = [{9: 73, 10: 78}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1882] = [{9: 73, 10: 79}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1883] = [{9: 73, 10: 80}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; productData[1884] = [{9: 73, 10: 81}, {"price":'AU$90.00 ($83.36 USD?)', "exception":'FALSE', "isSpecial":'FALSE', "specialPrice":'AU$90.00 ($83.36 USD?)', "stock":-1, "imageId":1265} ]; var attribSets = [9, 10]; // 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); } }