

ImageStruct = new Object();
ImageStruct["default"] = "\r\n\t\t\t<div id=\"picture\">\r\n\t\t\t\t<div id=\"mainImageOutline\" style=\"width: 250px; height: 0px;\" onclick=\"javascript:window.open(\'/_largeimage.cfm?image=ETEMERALD-MATTELAV.jpg\',\'popup\',\'width=600,height=600, scrollbars=yes\');\">\r\n\t\t\t\t\t<a href=\"javascript:void(0);\">\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<img id=\"mainImage\" src=\"/images/product//images/large_ETEMERALD-MATTELAV.jpg\" class=\"imgBorder\" alt=\"European Shoppers\" />\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<br />\r\n\t\t\t\t\t<a href=\"javascript:void(0);\"><img id=\"mainImage\" src=\"/images/retail/zoom.gif\" alt=\"Zoom\" /></a>\r\n\t\t\t\t</div>\r\n\t\t\t\t\r\n\t\t\t</div>\t\t\r\n\t\t\t<div id=\"previews\" style=\"padding-top:270px;\">\r\n\t\t\t\r\n\t\t\t</div>\r\n\t\t\t";


fldValueStruct = new Object();
fldValueStruct["fld1array"] =  new Array();
fldValueStruct["fld1array"][0] = new Object();
fldValueStruct["fld1array"][0]["value"] = 1051;
fldValueStruct["fld1array"][0]["text"] = "5.25 X 3.50 X 13.00";
fldValueStruct["fld1array"][1] = new Object();
fldValueStruct["fld1array"][1]["value"] = 489;
fldValueStruct["fld1array"][1]["text"] = "6.50 X 3.50 X 6.50";
fldValueStruct["fld1array"][2] = new Object();
fldValueStruct["fld1array"][2]["value"] = 1041;
fldValueStruct["fld1array"][2]["text"] = "6.50 X 3.50 X 13.00";
fldValueStruct["fld1array"][3] = new Object();
fldValueStruct["fld1array"][3]["value"] = 1045;
fldValueStruct["fld1array"][3]["text"] = "8.00 X 4.00 X 10.00";
fldValueStruct["fld1array"][4] = new Object();
fldValueStruct["fld1array"][4]["value"] = 1042;
fldValueStruct["fld1array"][4]["text"] = "10.00 X 4.00 X 8.00";
fldValueStruct["fld1array"][5] = new Object();
fldValueStruct["fld1array"][5]["value"] = 1048;
fldValueStruct["fld1array"][5]["text"] = "10.00 X 5.00 X 13.00";
fldValueStruct["fld1array"][6] = new Object();
fldValueStruct["fld1array"][6]["value"] = 1050;
fldValueStruct["fld1array"][6]["text"] = "13.00 X 5.00 X 10.00";
fldValueStruct["fld1array"][7] = new Object();
fldValueStruct["fld1array"][7]["value"] = 1047;
fldValueStruct["fld1array"][7]["text"] = "16.00 X 4.75 X 13.00";
fldValueStruct["fld1array"][8] = new Object();
fldValueStruct["fld1array"][8]["value"] = 1046;
fldValueStruct["fld1array"][8]["text"] = "20.00 X 6.00 X 16.00";
fldValueStruct["fld2array"] =  new Array();
fldValueStruct["fld2array"][0] = new Object();
fldValueStruct["fld2array"][0]["value"] = 1349;
fldValueStruct["fld2array"][0]["text"] = "BLACK GLOSS";
fldValueStruct["fld2array"][1] = new Object();
fldValueStruct["fld2array"][1]["value"] = 1350;
fldValueStruct["fld2array"][1]["text"] = "BRONZE PLATINUM";
fldValueStruct["fld2array"][2] = new Object();
fldValueStruct["fld2array"][2]["value"] = 301;
fldValueStruct["fld2array"][2]["text"] = "BROWN GLOSS";
fldValueStruct["fld2array"][3] = new Object();
fldValueStruct["fld2array"][3]["value"] = 1355;
fldValueStruct["fld2array"][3]["text"] = "BURGUNDY GLOSS";
fldValueStruct["fld2array"][4] = new Object();
fldValueStruct["fld2array"][4]["value"] = 436;
fldValueStruct["fld2array"][4]["text"] = "FROSTED CLEAR";
fldValueStruct["fld2array"][5] = new Object();
fldValueStruct["fld2array"][5]["value"] = 728;
fldValueStruct["fld2array"][5]["text"] = "FROSTED PINK";
fldValueStruct["fld2array"][6] = new Object();
fldValueStruct["fld2array"][6]["value"] = 1507;
fldValueStruct["fld2array"][6]["text"] = "FROSTED WHITE";
fldValueStruct["fld2array"][7] = new Object();
fldValueStruct["fld2array"][7]["value"] = 375;
fldValueStruct["fld2array"][7]["text"] = "GREEN";
fldValueStruct["fld2array"][8] = new Object();
fldValueStruct["fld2array"][8]["value"] = 490;
fldValueStruct["fld2array"][8]["text"] = "GREEN MARABLE";
fldValueStruct["fld2array"][9] = new Object();
fldValueStruct["fld2array"][9]["value"] = 1544;
fldValueStruct["fld2array"][9]["text"] = "HUNTER GREEN GLOSS";
fldValueStruct["fld2array"][10] = new Object();
fldValueStruct["fld2array"][10]["value"] = 1351;
fldValueStruct["fld2array"][10]["text"] = "MATTE BLACK";
fldValueStruct["fld2array"][11] = new Object();
fldValueStruct["fld2array"][11]["value"] = 1352;
fldValueStruct["fld2array"][11]["text"] = "MATTE BURGUNDY";
fldValueStruct["fld2array"][12] = new Object();
fldValueStruct["fld2array"][12]["value"] = 147;
fldValueStruct["fld2array"][12]["text"] = "MATTE CELERY";
fldValueStruct["fld2array"][13] = new Object();
fldValueStruct["fld2array"][13]["value"] = 486;
fldValueStruct["fld2array"][13]["text"] = "MATTE CHOCOLATE";
fldValueStruct["fld2array"][14] = new Object();
fldValueStruct["fld2array"][14]["value"] = 315;
fldValueStruct["fld2array"][14]["text"] = "MATTE GOLD";
fldValueStruct["fld2array"][15] = new Object();
fldValueStruct["fld2array"][15]["value"] = 1366;
fldValueStruct["fld2array"][15]["text"] = "MATTE HOT PINK";
fldValueStruct["fld2array"][16] = new Object();
fldValueStruct["fld2array"][16]["value"] = 470;
fldValueStruct["fld2array"][16]["text"] = "MATTE HUNTER GREEN";
fldValueStruct["fld2array"][17] = new Object();
fldValueStruct["fld2array"][17]["value"] = 472;
fldValueStruct["fld2array"][17]["text"] = "MATTE IVORY";
fldValueStruct["fld2array"][18] = new Object();
fldValueStruct["fld2array"][18]["value"] = 1368;
fldValueStruct["fld2array"][18]["text"] = "MATTE LAVENDER";
fldValueStruct["fld2array"][19] = new Object();
fldValueStruct["fld2array"][19]["value"] = 474;
fldValueStruct["fld2array"][19]["text"] = "MATTE METALLIC BLUE";
fldValueStruct["fld2array"][20] = new Object();
fldValueStruct["fld2array"][20]["value"] = 475;
fldValueStruct["fld2array"][20]["text"] = "MATTE METALLIC SAGE";
fldValueStruct["fld2array"][21] = new Object();
fldValueStruct["fld2array"][21]["value"] = 1369;
fldValueStruct["fld2array"][21]["text"] = "MATTE METALLIC TURQUOISE";
fldValueStruct["fld2array"][22] = new Object();
fldValueStruct["fld2array"][22]["value"] = 157;
fldValueStruct["fld2array"][22]["text"] = "MATTE NAVY";
fldValueStruct["fld2array"][23] = new Object();
fldValueStruct["fld2array"][23]["value"] = 476;
fldValueStruct["fld2array"][23]["text"] = "MATTE PASTEL PINK";
fldValueStruct["fld2array"][24] = new Object();
fldValueStruct["fld2array"][24]["value"] = 477;
fldValueStruct["fld2array"][24]["text"] = "MATTE PASTEL YELLOW";
fldValueStruct["fld2array"][25] = new Object();
fldValueStruct["fld2array"][25]["value"] = 1354;
fldValueStruct["fld2array"][25]["text"] = "MATTE POWDER BLUE";
fldValueStruct["fld2array"][26] = new Object();
fldValueStruct["fld2array"][26]["value"] = 1451;
fldValueStruct["fld2array"][26]["text"] = "MATTE PURPLE";
fldValueStruct["fld2array"][27] = new Object();
fldValueStruct["fld2array"][27]["value"] = 158;
fldValueStruct["fld2array"][27]["text"] = "MATTE PURPLE ON KRAFT";
fldValueStruct["fld2array"][28] = new Object();
fldValueStruct["fld2array"][28]["value"] = 159;
fldValueStruct["fld2array"][28]["text"] = "MATTE RED";
fldValueStruct["fld2array"][29] = new Object();
fldValueStruct["fld2array"][29]["value"] = 481;
fldValueStruct["fld2array"][29]["text"] = "MATTE WHITE";
fldValueStruct["fld2array"][30] = new Object();
fldValueStruct["fld2array"][30]["value"] = 140;
fldValueStruct["fld2array"][30]["text"] = "NATURAL KRAFT";
fldValueStruct["fld2array"][31] = new Object();
fldValueStruct["fld2array"][31]["value"] = 184;
fldValueStruct["fld2array"][31]["text"] = "NAVY GLOSS";
fldValueStruct["fld2array"][32] = new Object();
fldValueStruct["fld2array"][32]["value"] = 1373;
fldValueStruct["fld2array"][32]["text"] = "RED GLOSS";
fldValueStruct["fld2array"][33] = new Object();
fldValueStruct["fld2array"][33]["value"] = 1417;
fldValueStruct["fld2array"][33]["text"] = "SILVER GLOSS";
fldValueStruct["fld2array"][34] = new Object();
fldValueStruct["fld2array"][34]["value"] = 1424;
fldValueStruct["fld2array"][34]["text"] = "SOUTHWEST ORANGE";
fldValueStruct["fld2array"][35] = new Object();
fldValueStruct["fld2array"][35]["value"] = 141;
fldValueStruct["fld2array"][35]["text"] = "WHITE";


AvailableProducts = new Object();
AvailableProducts["1417_1050"] = 2340;
AvailableProducts["1544_489"] = 2246;
AvailableProducts["1045_184"] = 2308;
AvailableProducts["1354_1046"] = 2193;
AvailableProducts["157_1050"] = 2328;
AvailableProducts["1051_1417"] = 2346;
AvailableProducts["157_1045"] = 2298;
AvailableProducts["1349_1050"] = 2312;
AvailableProducts["1042_184"] = 2163;
AvailableProducts["486_1046"] = 2181;
AvailableProducts["1355_1050"] = 2315;
AvailableProducts["1048_1417"] = 2240;
AvailableProducts["184_1046"] = 2199;
AvailableProducts["157_1042"] = 2153;
AvailableProducts["1368_1047"] = 2219;
AvailableProducts["1045_1544"] = 2285;
AvailableProducts["1047_1417"] = 2234;
AvailableProducts["301_1042"] = 2139;
AvailableProducts["1050_1351"] = 2317;
AvailableProducts["1045_1424"] = 2304;
AvailableProducts["140_1047"] = 2231;
AvailableProducts["1349_489"] = 2242;
AvailableProducts["1045_476"] = 2299;
AvailableProducts["141_1050"] = 2341;
AvailableProducts["1047_1507"] = 2209;
AvailableProducts["1050_1544"] = 2316;
AvailableProducts["141_1041"] = 2136;
AvailableProducts["489_1368"] = 2256;
AvailableProducts["1041_1417"] = 2135;
AvailableProducts["489_1355"] = 2245;
AvailableProducts["1050_1352"] = 2318;
AvailableProducts["489_1544"] = 2246;
AvailableProducts["184_1047"] = 2232;
AvailableProducts["147_1046"] = 2180;
AvailableProducts["1544_1050"] = 2316;
AvailableProducts["1042_486"] = 2145;
AvailableProducts["158_1050"] = 2331;
AvailableProducts["1045_1352"] = 2288;
AvailableProducts["158_1042"] = 2156;
AvailableProducts["1544_1047"] = 2210;
AvailableProducts["157_1046"] = 2189;
AvailableProducts["1047_141"] = 2235;
AvailableProducts["315_1042"] = 2146;
AvailableProducts["728_1047"] = 2208;
AvailableProducts["159_1047"] = 2227;
AvailableProducts["1373_1050"] = 2339;
AvailableProducts["481_1047"] = 2230;
AvailableProducts["470_1050"] = 2322;
AvailableProducts["1051_315"] = 2343;
AvailableProducts["470_1047"] = 2216;
AvailableProducts["489_1351"] = 2248;
AvailableProducts["476_1045"] = 2299;
AvailableProducts["140_1051"] = 2344;
AvailableProducts["1045_481"] = 2306;
AvailableProducts["1050_474"] = 2326;
AvailableProducts["1350_1050"] = 2313;
AvailableProducts["475_1045"] = 2297;
AvailableProducts["140_1046"] = 2198;
AvailableProducts["474_1046"] = 2187;
AvailableProducts["1046_470"] = 2183;
AvailableProducts["1451_1047"] = 2225;
AvailableProducts["486_1045"] = 2290;
AvailableProducts["141_1051"] = 2347;
AvailableProducts["1047_1354"] = 2226;
AvailableProducts["1046_140"] = 2198;
AvailableProducts["1046_184"] = 2199;
AvailableProducts["1050_1355"] = 2315;
AvailableProducts["1048_472"] = 2238;
AvailableProducts["477_1045"] = 2300;
AvailableProducts["1042_476"] = 2154;
AvailableProducts["1046_1351"] = 2178;
AvailableProducts["477_1042"] = 2155;
AvailableProducts["1041_141"] = 2136;
AvailableProducts["1351_1046"] = 2178;
AvailableProducts["1045_315"] = 2291;
AvailableProducts["470_1045"] = 2292;
AvailableProducts["1045_147"] = 2289;
AvailableProducts["1544_1045"] = 2285;
AvailableProducts["159_489"] = 2264;
AvailableProducts["1047_184"] = 2232;
AvailableProducts["1045_472"] = 2294;
AvailableProducts["315_1046"] = 2182;
AvailableProducts["1047_140"] = 2231;
AvailableProducts["486_1047"] = 2214;
AvailableProducts["1351_1045"] = 2287;
AvailableProducts["1046_474"] = 2187;
AvailableProducts["1045_159"] = 2303;
AvailableProducts["1050_1366"] = 2323;
AvailableProducts["1366_1045"] = 2293;
AvailableProducts["1042_472"] = 2149;
AvailableProducts["301_489"] = 2244;
AvailableProducts["474_1042"] = 2151;
AvailableProducts["1046_157"] = 2189;
AvailableProducts["1373_1042"] = 2164;
AvailableProducts["475_1046"] = 2188;
AvailableProducts["489_184"] = 2269;
AvailableProducts["1045_1369"] = 2305;
AvailableProducts["1047_1352"] = 2212;
AvailableProducts["140_1041"] = 2133;
AvailableProducts["1047_481"] = 2230;
AvailableProducts["1047_159"] = 2227;
AvailableProducts["489_474"] = 2257;
AvailableProducts["1050_141"] = 2341;
AvailableProducts["1042_1351"] = 2142;
AvailableProducts["472_1042"] = 2149;
AvailableProducts["1417_1042"] = 2165;
AvailableProducts["1352_1051"] = 2342;
AvailableProducts["1355_1042"] = 2140;
AvailableProducts["315_1047"] = 2215;
AvailableProducts["184_1042"] = 2163;
AvailableProducts["1046_301"] = 2172;
AvailableProducts["147_1042"] = 2144;
AvailableProducts["1045_140"] = 2307;
AvailableProducts["470_1046"] = 2183;
AvailableProducts["1047_1366"] = 2217;
AvailableProducts["489_1354"] = 2263;
AvailableProducts["1351_1048"] = 2237;
AvailableProducts["1047_1373"] = 2233;
AvailableProducts["489_159"] = 2264;
AvailableProducts["436_1047"] = 2207;
AvailableProducts["159_1045"] = 2303;
AvailableProducts["1051_140"] = 2344;
AvailableProducts["1050_315"] = 2321;
AvailableProducts["1424_1047"] = 2228;
AvailableProducts["1050_301"] = 2314;
AvailableProducts["1051_141"] = 2347;
AvailableProducts["147_1045"] = 2289;
AvailableProducts["147_1050"] = 2319;
AvailableProducts["476_1042"] = 2154;
AvailableProducts["1352_1046"] = 2179;
AvailableProducts["1424_1046"] = 2195;
AvailableProducts["1042_158"] = 2156;
AvailableProducts["301_1046"] = 2172;
AvailableProducts["301_1050"] = 2314;
AvailableProducts["1046_147"] = 2180;
AvailableProducts["1369_489"] = 2266;
AvailableProducts["184_1045"] = 2308;
AvailableProducts["184_1050"] = 2338;
AvailableProducts["489_1369"] = 2266;
AvailableProducts["489_1373"] = 2270;
AvailableProducts["489_1349"] = 2242;
AvailableProducts["489_1352"] = 2249;
AvailableProducts["489_1424"] = 2265;
AvailableProducts["1046_475"] = 2188;
AvailableProducts["489_1417"] = 2271;
AvailableProducts["1354_489"] = 2263;
AvailableProducts["1042_315"] = 2146;
AvailableProducts["315_1041"] = 2132;
AvailableProducts["315_1050"] = 2321;
AvailableProducts["1373_1047"] = 2233;
AvailableProducts["140_1045"] = 2307;
AvailableProducts["140_1050"] = 2337;
AvailableProducts["475_1042"] = 2152;
AvailableProducts["475_1050"] = 2327;
AvailableProducts["474_1045"] = 2296;
AvailableProducts["474_1050"] = 2326;
AvailableProducts["1369_1047"] = 2229;
AvailableProducts["477_1047"] = 2224;
AvailableProducts["477_1050"] = 2330;
AvailableProducts["486_1042"] = 2145;
AvailableProducts["476_1050"] = 2329;
AvailableProducts["481_1046"] = 2197;
AvailableProducts["481_1050"] = 2336;
AvailableProducts["472_1045"] = 2294;
AvailableProducts["470_1042"] = 2147;
AvailableProducts["1350_1046"] = 2171;
AvailableProducts["489_475"] = 2258;
AvailableProducts["1045_1351"] = 2287;
AvailableProducts["1050_486"] = 2320;
AvailableProducts["472_1047"] = 2218;
AvailableProducts["472_1050"] = 2324;
AvailableProducts["489_481"] = 2267;
AvailableProducts["1042_1368"] = 2150;
AvailableProducts["141_1048"] = 2241;
AvailableProducts["475_489"] = 2258;
AvailableProducts["1042_470"] = 2147;
AvailableProducts["474_489"] = 2257;
AvailableProducts["1354_1047"] = 2226;
AvailableProducts["477_489"] = 2261;
AvailableProducts["1045_475"] = 2297;
AvailableProducts["1349_1042"] = 2137;
AvailableProducts["1050_1417"] = 2340;
AvailableProducts["1417_1047"] = 2234;
AvailableProducts["1042_141"] = 2166;
AvailableProducts["1042_301"] = 2139;
AvailableProducts["1050_1349"] = 2312;
AvailableProducts["184_489"] = 2269;
AvailableProducts["1042_474"] = 2151;
AvailableProducts["141_489"] = 2272;
AvailableProducts["1373_1045"] = 2309;
AvailableProducts["1045_157"] = 2298;
AvailableProducts["147_489"] = 2250;
AvailableProducts["1047_1368"] = 2219;
AvailableProducts["489_141"] = 2272;
AvailableProducts["489_147"] = 2250;
AvailableProducts["1373_1041"] = 2134;
AvailableProducts["489_140"] = 2268;
AvailableProducts["158_489"] = 2262;
AvailableProducts["1045_1354"] = 2302;
AvailableProducts["1352_1042"] = 2143;
AvailableProducts["481_489"] = 2267;
AvailableProducts["1047_1369"] = 2229;
AvailableProducts["1351_1050"] = 2317;
AvailableProducts["1050_475"] = 2327;
AvailableProducts["1373_489"] = 2270;
AvailableProducts["1050_472"] = 2324;
AvailableProducts["1047_315"] = 2215;
AvailableProducts["1366_1042"] = 2148;
AvailableProducts["1042_1350"] = 2138;
AvailableProducts["472_1048"] = 2238;
AvailableProducts["1350_1042"] = 2138;
AvailableProducts["1046_477"] = 2191;
AvailableProducts["1042_1352"] = 2143;
AvailableProducts["1352_1045"] = 2288;
AvailableProducts["1354_1045"] = 2302;
AvailableProducts["1046_1424"] = 2195;
AvailableProducts["1050_476"] = 2329;
AvailableProducts["1046_1354"] = 2193;
AvailableProducts["1050_147"] = 2319;
AvailableProducts["1041_1373"] = 2134;
AvailableProducts["1045_1373"] = 2309;
AvailableProducts["1050_158"] = 2331;
AvailableProducts["1045_474"] = 2296;
AvailableProducts["1047_1424"] = 2228;
AvailableProducts["1042_375"] = 2141;
AvailableProducts["141_1047"] = 2235;
AvailableProducts["1417_1048"] = 2240;
AvailableProducts["141_1042"] = 2166;
AvailableProducts["1424_489"] = 2265;
AvailableProducts["1042_475"] = 2152;
AvailableProducts["1417_489"] = 2271;
AvailableProducts["1544_1046"] = 2177;
AvailableProducts["1045_1366"] = 2293;
AvailableProducts["1050_477"] = 2330;
AvailableProducts["1047_472"] = 2218;
AvailableProducts["1046_1451"] = 2192;
AvailableProducts["1048_1349"] = 2236;
AvailableProducts["1047_728"] = 2208;
AvailableProducts["1046_1350"] = 2171;
AvailableProducts["1349_1048"] = 2236;
AvailableProducts["1041_315"] = 2132;
AvailableProducts["1351_489"] = 2248;
AvailableProducts["1350_489"] = 2243;
AvailableProducts["489_301"] = 2244;
AvailableProducts["1045_486"] = 2290;
AvailableProducts["1045_490"] = 2286;
AvailableProducts["1050_157"] = 2328;
AvailableProducts["1368_1045"] = 2295;
AvailableProducts["1050_481"] = 2336;
AvailableProducts["1351_1042"] = 2142;
AvailableProducts["1045_1368"] = 2295;
AvailableProducts["1352_1041"] = 2131;
AvailableProducts["1046_481"] = 2197;
AvailableProducts["1045_470"] = 2292;
AvailableProducts["1352_489"] = 2249;
AvailableProducts["1047_486"] = 2214;
AvailableProducts["1042_1354"] = 2157;
AvailableProducts["1045_158"] = 2301;
AvailableProducts["1366_1050"] = 2323;
AvailableProducts["1042_147"] = 2144;
AvailableProducts["1047_1544"] = 2210;
AvailableProducts["147_1047"] = 2213;
AvailableProducts["1451_1046"] = 2192;
AvailableProducts["490_1045"] = 2286;
AvailableProducts["481_1045"] = 2306;
AvailableProducts["1355_489"] = 2245;
AvailableProducts["489_1350"] = 2243;
AvailableProducts["1042_1373"] = 2164;
AvailableProducts["1369_1045"] = 2305;
AvailableProducts["1047_1351"] = 2211;
AvailableProducts["1417_1041"] = 2135;
AvailableProducts["1507_1047"] = 2209;
AvailableProducts["1046_1352"] = 2179;
AvailableProducts["489_158"] = 2262;
AvailableProducts["1424_1045"] = 2304;
AvailableProducts["1354_1042"] = 2157;
AvailableProducts["1373_1051"] = 2345;
AvailableProducts["1042_1349"] = 2137;
AvailableProducts["1047_1451"] = 2225;
AvailableProducts["489_157"] = 2259;
AvailableProducts["158_1045"] = 2301;
AvailableProducts["1366_1047"] = 2217;
AvailableProducts["1046_486"] = 2181;
AvailableProducts["1047_436"] = 2207;
AvailableProducts["489_490"] = 2247;
AvailableProducts["1050_184"] = 2338;
AvailableProducts["375_1042"] = 2141;
AvailableProducts["1042_477"] = 2155;
AvailableProducts["1046_1544"] = 2177;
AvailableProducts["1355_1046"] = 2173;
AvailableProducts["1046_315"] = 2182;
AvailableProducts["1368_489"] = 2256;
AvailableProducts["477_1046"] = 2191;
AvailableProducts["1042_1355"] = 2140;
AvailableProducts["1046_1355"] = 2173;
AvailableProducts["1351_1047"] = 2211;
AvailableProducts["1352_1047"] = 2212;
AvailableProducts["1041_1352"] = 2131;
AvailableProducts["1050_470"] = 2322;
AvailableProducts["490_489"] = 2247;
AvailableProducts["1048_1351"] = 2237;
AvailableProducts["1051_1352"] = 2342;
AvailableProducts["1368_1042"] = 2150;
AvailableProducts["1042_157"] = 2153;
AvailableProducts["315_1051"] = 2343;
AvailableProducts["476_1046"] = 2190;
AvailableProducts["1352_1050"] = 2318;
AvailableProducts["486_1050"] = 2320;
AvailableProducts["1047_477"] = 2224;
AvailableProducts["489_477"] = 2261;
AvailableProducts["1048_141"] = 2241;
AvailableProducts["1041_140"] = 2133;
AvailableProducts["1046_476"] = 2190;
AvailableProducts["1042_1417"] = 2165;
AvailableProducts["1050_1373"] = 2339;
AvailableProducts["1045_477"] = 2300;
AvailableProducts["157_489"] = 2259;
AvailableProducts["1042_1366"] = 2148;
AvailableProducts["1047_470"] = 2216;
AvailableProducts["315_1045"] = 2291;
AvailableProducts["1047_147"] = 2213;
AvailableProducts["1050_140"] = 2337;
AvailableProducts["1051_1373"] = 2345;
AvailableProducts["140_489"] = 2268;
AvailableProducts["1417_1051"] = 2346;
AvailableProducts["1050_1350"] = 2313;


AttributeArray = new Object();
AttributeArray["474"] = new Object();
AttributeArray["474"]["value"] = 474;
AttributeArray["474"]["text"] = "MATTE METALLIC BLUE";
AttributeArray["474"]["prod_id"] = "2257,2151,2296,2187,2326";
AttributeArray["474"]["allowed"] = "489,1042,1045,1046,1050";
AttributeArray["1350"] = new Object();
AttributeArray["1350"]["value"] = 1350;
AttributeArray["1350"]["text"] = "BRONZE PLATINUM";
AttributeArray["1350"]["prod_id"] = "2243,2138,2171,2313";
AttributeArray["1350"]["allowed"] = "489,1042,1046,1050";
AttributeArray["1351"] = new Object();
AttributeArray["1351"]["value"] = 1351;
AttributeArray["1351"]["text"] = "MATTE BLACK";
AttributeArray["1351"]["prod_id"] = "2248,2142,2287,2178,2211,2237,2317";
AttributeArray["1351"]["allowed"] = "489,1042,1045,1046,1047,1048,1050";
AttributeArray["375"] = new Object();
AttributeArray["375"]["value"] = 375;
AttributeArray["375"]["text"] = "GREEN";
AttributeArray["375"]["prod_id"] = "2141";
AttributeArray["375"]["allowed"] = "1042";
AttributeArray["476"] = new Object();
AttributeArray["476"]["value"] = 476;
AttributeArray["476"]["text"] = "MATTE PASTEL PINK";
AttributeArray["476"]["prod_id"] = "2154,2299,2190,2329";
AttributeArray["476"]["allowed"] = "1042,1045,1046,1050";
AttributeArray["486"] = new Object();
AttributeArray["486"]["value"] = 486;
AttributeArray["486"]["text"] = "MATTE CHOCOLATE";
AttributeArray["486"]["prod_id"] = "2145,2290,2181,2214,2320";
AttributeArray["486"]["allowed"] = "1042,1045,1046,1047,1050";
AttributeArray["158"] = new Object();
AttributeArray["158"]["value"] = 158;
AttributeArray["158"]["text"] = "MATTE PURPLE ON KRAFT";
AttributeArray["158"]["prod_id"] = "2262,2156,2301,2331";
AttributeArray["158"]["allowed"] = "489,1042,1045,1050";
AttributeArray["301"] = new Object();
AttributeArray["301"]["value"] = 301;
AttributeArray["301"]["text"] = "BROWN GLOSS";
AttributeArray["301"]["prod_id"] = "2244,2139,2172,2314";
AttributeArray["301"]["allowed"] = "489,1042,1046,1050";
AttributeArray["470"] = new Object();
AttributeArray["470"]["value"] = 470;
AttributeArray["470"]["text"] = "MATTE HUNTER GREEN";
AttributeArray["470"]["prod_id"] = "2147,2292,2183,2216,2322";
AttributeArray["470"]["allowed"] = "1042,1045,1046,1047,1050";
AttributeArray["140"] = new Object();
AttributeArray["140"]["value"] = 140;
AttributeArray["140"]["text"] = "NATURAL KRAFT";
AttributeArray["140"]["prod_id"] = "2268,2133,2307,2198,2231,2337,2344";
AttributeArray["140"]["allowed"] = "489,1041,1045,1046,1047,1050,1051";
AttributeArray["489"] = new Object();
AttributeArray["489"]["value"] = 489;
AttributeArray["489"]["text"] = "6.50 X 3.50 X 6.50";
AttributeArray["489"]["prod_id"] = "2268,2272,2250,2259,2262,2264,2269,2244,2257,2258,2261,2267,2247,2242,2243,2248,2249,2263,2245,2256,2266,2270,2271,2265,2246";
AttributeArray["489"]["allowed"] = "140,141,147,157,158,159,184,301,474,475,477,481,490,1349,1350,1351,1352,1354,1355,1368,1369,1373,1417,1424,1544";
AttributeArray["477"] = new Object();
AttributeArray["477"]["value"] = 477;
AttributeArray["477"]["text"] = "MATTE PASTEL YELLOW";
AttributeArray["477"]["prod_id"] = "2261,2155,2300,2191,2224,2330";
AttributeArray["477"]["allowed"] = "489,1042,1045,1046,1047,1050";
AttributeArray["728"] = new Object();
AttributeArray["728"]["value"] = 728;
AttributeArray["728"]["text"] = "FROSTED PINK";
AttributeArray["728"]["prod_id"] = "2208";
AttributeArray["728"]["allowed"] = "1047";
AttributeArray["1424"] = new Object();
AttributeArray["1424"]["value"] = 1424;
AttributeArray["1424"]["text"] = "SOUTHWEST ORANGE";
AttributeArray["1424"]["prod_id"] = "2265,2304,2195,2228";
AttributeArray["1424"]["allowed"] = "489,1045,1046,1047";
AttributeArray["147"] = new Object();
AttributeArray["147"]["value"] = 147;
AttributeArray["147"]["text"] = "MATTE CELERY";
AttributeArray["147"]["prod_id"] = "2250,2144,2289,2180,2213,2319";
AttributeArray["147"]["allowed"] = "489,1042,1045,1046,1047,1050";
AttributeArray["184"] = new Object();
AttributeArray["184"]["value"] = 184;
AttributeArray["184"]["text"] = "NAVY GLOSS";
AttributeArray["184"]["prod_id"] = "2269,2163,2308,2199,2232,2338";
AttributeArray["184"]["allowed"] = "489,1042,1045,1046,1047,1050";
AttributeArray["1354"] = new Object();
AttributeArray["1354"]["value"] = 1354;
AttributeArray["1354"]["text"] = "MATTE POWDER BLUE";
AttributeArray["1354"]["prod_id"] = "2263,2157,2302,2193,2226";
AttributeArray["1354"]["allowed"] = "489,1042,1045,1046,1047";
AttributeArray["1366"] = new Object();
AttributeArray["1366"]["value"] = 1366;
AttributeArray["1366"]["text"] = "MATTE HOT PINK";
AttributeArray["1366"]["prod_id"] = "2148,2293,2217,2323";
AttributeArray["1366"]["allowed"] = "1042,1045,1047,1050";
AttributeArray["475"] = new Object();
AttributeArray["475"]["value"] = 475;
AttributeArray["475"]["text"] = "MATTE METALLIC SAGE";
AttributeArray["475"]["prod_id"] = "2258,2152,2297,2188,2327";
AttributeArray["475"]["allowed"] = "489,1042,1045,1046,1050";
AttributeArray["1048"] = new Object();
AttributeArray["1048"]["value"] = 1048;
AttributeArray["1048"]["text"] = "10.00 X 5.00 X 13.00";
AttributeArray["1048"]["prod_id"] = "2239,2241,2238,2236,2237,2240";
AttributeArray["1048"]["allowed"] = "141,141,472,1349,1351,1417";
AttributeArray["1041"] = new Object();
AttributeArray["1041"]["value"] = 1041;
AttributeArray["1041"]["text"] = "6.50 X 3.50 X 13.00";
AttributeArray["1041"]["prod_id"] = "2133,2136,2132,2131,2134,2135";
AttributeArray["1041"]["allowed"] = "140,141,315,1352,1373,1417";
AttributeArray["490"] = new Object();
AttributeArray["490"]["value"] = 490;
AttributeArray["490"]["text"] = "GREEN MARABLE";
AttributeArray["490"]["prod_id"] = "2247,2286";
AttributeArray["490"]["allowed"] = "489,1045";
AttributeArray["1045"] = new Object();
AttributeArray["1045"]["value"] = 1045;
AttributeArray["1045"]["text"] = "8.00 X 4.00 X 10.00";
AttributeArray["1045"]["prod_id"] = "2307,2289,2298,2301,2303,2308,2291,2292,2294,2296,2297,2299,2300,2306,2290,2286,2287,2288,2302,2293,2295,2305,2309,2304,2285";
AttributeArray["1045"]["allowed"] = "140,147,157,158,159,184,315,470,472,474,475,476,477,481,486,490,1351,1352,1354,1366,1368,1369,1373,1424,1544";
AttributeArray["1042"] = new Object();
AttributeArray["1042"]["value"] = 1042;
AttributeArray["1042"]["text"] = "10.00 X 4.00 X 8.00";
AttributeArray["1042"]["prod_id"] = "2166,2144,2153,2156,2163,2139,2146,2141,2147,2149,2151,2152,2154,2155,2145,2137,2138,2142,2143,2157,2140,2148,2150,2164,2165";
AttributeArray["1042"]["allowed"] = "141,147,157,158,184,301,315,375,470,472,474,475,476,477,486,1349,1350,1351,1352,1354,1355,1366,1368,1373,1417";
AttributeArray["1417"] = new Object();
AttributeArray["1417"]["value"] = 1417;
AttributeArray["1417"]["text"] = "SILVER GLOSS";
AttributeArray["1417"]["prod_id"] = "2271,2135,2165,2234,2240,2340,2346";
AttributeArray["1417"]["allowed"] = "489,1041,1042,1047,1048,1050,1051";
AttributeArray["1544"] = new Object();
AttributeArray["1544"]["value"] = 1544;
AttributeArray["1544"]["text"] = "HUNTER GREEN GLOSS";
AttributeArray["1544"]["prod_id"] = "2246,2285,2177,2210,2316";
AttributeArray["1544"]["allowed"] = "489,1045,1046,1047,1050";
AttributeArray["315"] = new Object();
AttributeArray["315"]["value"] = 315;
AttributeArray["315"]["text"] = "MATTE GOLD";
AttributeArray["315"]["prod_id"] = "2132,2146,2291,2182,2215,2321,2343";
AttributeArray["315"]["allowed"] = "1041,1042,1045,1046,1047,1050,1051";
AttributeArray["1451"] = new Object();
AttributeArray["1451"]["value"] = 1451;
AttributeArray["1451"]["text"] = "MATTE PURPLE";
AttributeArray["1451"]["prod_id"] = "2192,2225";
AttributeArray["1451"]["allowed"] = "1046,1047";
AttributeArray["141"] = new Object();
AttributeArray["141"]["value"] = 141;
AttributeArray["141"]["text"] = "WHITE";
AttributeArray["141"]["prod_id"] = "2272,2136,2166,2235,2239,2241,2341,2347";
AttributeArray["141"]["allowed"] = "489,1041,1042,1047,1048,1048,1050,1051";
AttributeArray["436"] = new Object();
AttributeArray["436"]["value"] = 436;
AttributeArray["436"]["text"] = "FROSTED CLEAR";
AttributeArray["436"]["prod_id"] = "2207";
AttributeArray["436"]["allowed"] = "1047";
AttributeArray["1507"] = new Object();
AttributeArray["1507"]["value"] = 1507;
AttributeArray["1507"]["text"] = "FROSTED WHITE";
AttributeArray["1507"]["prod_id"] = "2209";
AttributeArray["1507"]["allowed"] = "1047";
AttributeArray["481"] = new Object();
AttributeArray["481"]["value"] = 481;
AttributeArray["481"]["text"] = "MATTE WHITE";
AttributeArray["481"]["prod_id"] = "2267,2306,2197,2230,2336";
AttributeArray["481"]["allowed"] = "489,1045,1046,1047,1050";
AttributeArray["159"] = new Object();
AttributeArray["159"]["value"] = 159;
AttributeArray["159"]["text"] = "MATTE RED";
AttributeArray["159"]["prod_id"] = "2264,2303,2227";
AttributeArray["159"]["allowed"] = "489,1045,1047";
AttributeArray["1368"] = new Object();
AttributeArray["1368"]["value"] = 1368;
AttributeArray["1368"]["text"] = "MATTE LAVENDER";
AttributeArray["1368"]["prod_id"] = "2256,2150,2295,2219";
AttributeArray["1368"]["allowed"] = "489,1042,1045,1047";
AttributeArray["1369"] = new Object();
AttributeArray["1369"]["value"] = 1369;
AttributeArray["1369"]["text"] = "MATTE METALLIC TURQUOISE";
AttributeArray["1369"]["prod_id"] = "2266,2305,2229";
AttributeArray["1369"]["allowed"] = "489,1045,1047";
AttributeArray["1050"] = new Object();
AttributeArray["1050"]["value"] = 1050;
AttributeArray["1050"]["text"] = "13.00 X 5.00 X 10.00";
AttributeArray["1050"]["prod_id"] = "2337,2341,2319,2328,2331,2338,2314,2321,2322,2324,2326,2327,2329,2330,2336,2320,2312,2313,2317,2318,2315,2323,2339,2340,2316";
AttributeArray["1050"]["allowed"] = "140,141,147,157,158,184,301,315,470,472,474,475,476,477,481,486,1349,1350,1351,1352,1355,1366,1373,1417,1544";
AttributeArray["1051"] = new Object();
AttributeArray["1051"]["value"] = 1051;
AttributeArray["1051"]["text"] = "5.25 X 3.50 X 13.00";
AttributeArray["1051"]["prod_id"] = "2344,2347,2343,2342,2345,2346";
AttributeArray["1051"]["allowed"] = "140,141,315,1352,1373,1417";
AttributeArray["1349"] = new Object();
AttributeArray["1349"]["value"] = 1349;
AttributeArray["1349"]["text"] = "BLACK GLOSS";
AttributeArray["1349"]["prod_id"] = "2242,2137,2236,2312";
AttributeArray["1349"]["allowed"] = "489,1042,1048,1050";
AttributeArray["1046"] = new Object();
AttributeArray["1046"]["value"] = 1046;
AttributeArray["1046"]["text"] = "20.00 X 6.00 X 16.00";
AttributeArray["1046"]["prod_id"] = "2198,2180,2189,2199,2172,2182,2183,2187,2188,2190,2191,2197,2181,2171,2178,2179,2193,2173,2195,2192,2177";
AttributeArray["1046"]["allowed"] = "140,147,157,184,301,315,470,474,475,476,477,481,486,1350,1351,1352,1354,1355,1424,1451,1544";
AttributeArray["1047"] = new Object();
AttributeArray["1047"]["value"] = 1047;
AttributeArray["1047"]["text"] = "16.00 X 4.75 X 13.00";
AttributeArray["1047"]["prod_id"] = "2231,2235,2213,2227,2232,2215,2207,2216,2218,2224,2230,2214,2208,2211,2212,2226,2217,2219,2229,2233,2234,2228,2225,2209,2210";
AttributeArray["1047"]["allowed"] = "140,141,147,159,184,315,436,470,472,477,481,486,728,1351,1352,1354,1366,1368,1369,1373,1417,1424,1451,1507,1544";
AttributeArray["472"] = new Object();
AttributeArray["472"]["value"] = 472;
AttributeArray["472"]["text"] = "MATTE IVORY";
AttributeArray["472"]["prod_id"] = "2149,2294,2218,2238,2324";
AttributeArray["472"]["allowed"] = "1042,1045,1047,1048,1050";
AttributeArray["1373"] = new Object();
AttributeArray["1373"]["value"] = 1373;
AttributeArray["1373"]["text"] = "RED GLOSS";
AttributeArray["1373"]["prod_id"] = "2270,2134,2164,2309,2233,2339,2345";
AttributeArray["1373"]["allowed"] = "489,1041,1042,1045,1047,1050,1051";
AttributeArray["157"] = new Object();
AttributeArray["157"]["value"] = 157;
AttributeArray["157"]["text"] = "MATTE NAVY";
AttributeArray["157"]["prod_id"] = "2259,2153,2298,2189,2328";
AttributeArray["157"]["allowed"] = "489,1042,1045,1046,1050";
AttributeArray["1355"] = new Object();
AttributeArray["1355"]["value"] = 1355;
AttributeArray["1355"]["text"] = "BURGUNDY GLOSS";
AttributeArray["1355"]["prod_id"] = "2245,2140,2173,2315";
AttributeArray["1355"]["allowed"] = "489,1042,1046,1050";
AttributeArray["1352"] = new Object();
AttributeArray["1352"]["value"] = 1352;
AttributeArray["1352"]["text"] = "MATTE BURGUNDY";
AttributeArray["1352"]["prod_id"] = "2249,2131,2143,2288,2179,2212,2318,2342";
AttributeArray["1352"]["allowed"] = "489,1041,1042,1045,1046,1047,1050,1051";


function filterAttribute(attrID,fldID,srcFld){
	var fld = document.getElementById('attributeID_'+fldID);
	attrID = srcFld.options[srcFld.selectedIndex].value;
	var valueCount = 1;
	var noValueCount = 0;
	if (attrID > 0) {
		var allowedValueList = AttributeArray[attrID]['allowed'];
		var prod_id = AttributeArray[attrID]['prod_id'];
		var allowedValueArray = allowedValueList.split(',');
		var notAllowedValueArray = new Array();
		//alert(attrID);
		//alert(allowedValueList);
	
		//alert(fld.selectedIndex)
		
		var selectedValue = '';
		var removed = false;
		if (fld.selectedIndex > 0){
			selectedValue = fld.options[fld.selectedIndex].value;
		}
		if (fld.options.length > 1) {
			removed = true;
			for(var i=fld.options.length-1;i>=1;i--){
				fld.remove(i);
			}
			
			//fldArray = eval('fld'+fldID+'Array');
			fldArray = fldValueStruct['fld'+fldID+'array']
			for(var i=0; i< fldArray.length; i++){
		
				var  currentValue = fldArray[i]['value'];
			
				for (var j = 0; j < allowedValueArray.length; j++){
					var allowedValue = allowedValueArray[j];
					//alert(currentValue+ ' - ' + allowedValue)
					if (currentValue == allowedValue || attrID == 0){
						fld.options[valueCount] = new Option(fldArray[i]['text'], fldArray[i]['value'], false, false);
						if (selectedValue == currentValue)
							fld.options[valueCount].selected = true;
							
						valueCount = valueCount + 1;
					}
					else {
						
						notAllowedValueArray[noValueCount] = currentValue;
						noValueCount = noValueCount + 1;
					}
		
				}
			}
		}
		
		for(var i=0; i< notAllowedValueArray.length; i++){
			var divID = document.getElementById('img'+notAllowedValueArray[i])
			if (divID!= null) { 
				divID.innerHTML = '<img src="/images/retail/inActive.png">';
			}
		}
		
		for(var i=0; i< allowedValueArray.length; i++){
			var divID = document.getElementById('img'+allowedValueArray[i])
			if (divID!= null) { 
				divID.innerHTML = '';
			}
		}
	}
	else {
		var selectedValue = '';
		var removed = false;
		if (fld.selectedIndex > 0){
			selectedValue = fld.options[fld.selectedIndex].value;
		}
		
		if (fld.options.length > 1) {
			removed = true;
			for(var i=fld.options.length-1;i>=1;i--){
				fld.remove(i);
			}
					
			fldArray = fldValueStruct['fld'+fldID+'array']
			//alert(fldArray.length);
			for(var i=0; i< fldArray.length; i++){
				fld.options[i+1] = new Option(fldArray[i]['text'], fldArray[i]['value'], false, false);
				if (selectedValue == currentValue)
					fld.options[i+1].selected = true;
					
				var divID = document.getElementById('img'+fldArray[i]['value']);
				if (divID!= null) { 
					divID.innerHTML = '';
				}
				
			}
		}
	}
	
	if (!removed || (fld.selectedIndex > 0 && srcFld.selectedIndex > 0 )){
		value = fld.options[fld.selectedIndex].value;
		attrID = srcFld.options[srcFld.selectedIndex].value;
		key = value+'_'+attrID;
		//alert(key);
		//alert(AvailableProducts[key]);
		getProductPrice('/index.cfm?event=shop.dspProductPrice&prod_id='+AvailableProducts[key]);
	}
	else {
		if (fld.selectedIndex == 0 && srcFld.selectedIndex == 0 )
			Spry.Utils.setInnerHTML('imageText',ImageStruct['default']);

		Spry.Utils.setInnerHTML('productPrice', '');
	}
	//alert(fldArray)
	//alert('fld'+fldID+'Array');

	//fld.options[boxLength] = new Option(Text, Value, false, false);
	
	/*for (var j = 0; j < fld.length; j++) {
		if (fld.options[j].value == attrID){
			
		}
	}
	alert(AttributeArray[attrID]['allowed']);*/
}
function selectColor(id,imgText,imgBorder){
	//alert(id);
	var imgTagText = document.getElementById(imgText).innerHTML;
	var imgBorderDiv = document.getElementById(imgBorder);
	
	if (imgTagText.indexOf('<img') >=0 )
		alert('Not available');
	else {
		//alert(imgBorderDiv.style.border);
		//imgBorderDiv.style.border = '5px'
		var fld = document.getElementById('attributeID_2');
		for(i=fld.options.length-1;i>=1;i--){
		if (fld.options[i].value == id)
			fld.options[i].selected = true;
		}
	
		filterAttribute(id,1,fld);
	}
}

	function doAdd(){
		Spry.Utils.setInnerHTML('updateResponseDiv', 'Processing.....');
		return Spry.Utils.submitForm(document.forms['frmProductDetail'], updateResponseDiv);
	}

	function doCheckStatus(sc_que_id){
		document.forms['frmCartStatus'].sc_que_id.value = sc_que_id;
		return Spry.Utils.submitForm(document.forms['frmCartStatus'], updateResponseDiv);
	}
	function updateResponseDivTest(req){
		Spry.Utils.setInnerHTML('updateResponseDiv', req.xhRequest.responseText);
	}
	
	function updateResponseDiv(req){

		var responseXML = Spry.XML.documentToObject(req.xhRequest.responseXML);
		if (responseXML.ShopCart) {
			var sc_que_id = responseXML.ShopCart['sc_que_id']._value();
			var sc_que_status_id = responseXML.ShopCart['sc_que_status_id']._value();
			var sc_que_message = responseXML.ShopCart['sc_que_message']._value();
		}
		if (sc_que_status_id == 3) { // Product added to shopping cart
			
			sc_que_message = '<h3>'+sc_que_message + '</h3>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/index.cfm?event=cart.dspView"><img src="/images/retail/cart.gif" />&nbsp;View Cart</a>';
			
			var sc_sub_total = responseXML.ShopCart['sc_sub_total']._value();

			if (document.getElementById('cartTotal') != null)
				Spry.Utils.setInnerHTML('cartTotal', '$'+sc_sub_total);

			Spry.Utils.setInnerHTML('updateResponseDiv', sc_que_message);
		}
		else if (sc_que_status_id == 1) // In Que
			doCheckStatus(sc_que_id);
		else if (sc_que_status_id == 5 ) {// Unable to add to shopping cart
			sc_que_message = '<h3> out of stock </h3>';
			Spry.Utils.setInnerHTML('updateResponseDiv', sc_que_message);
		}
	}
	
	function getProductPrice(url){
		Spry.Utils.setInnerHTML('productPrice', 'Loading...');
		Spry.Utils.setInnerHTML('updateResponseDiv', '');
		var req = Spry.Utils.loadURL("GET", url, true, processDispPriceResult);
	}
	
	function processDispPriceResult(req){
		var responseXML = Spry.XML.documentToObject(req.xhRequest.responseXML);
		
		var priceText = responseXML.product['price']._value();
		var imageText = responseXML.product['image']._value();
		//alert(responseXML);
		Spry.Utils.setInnerHTML('productPrice', priceText);
		Spry.Utils.setInnerHTML('imageText', imageText);
	}

	
	function fadeIt(ele,url){
		Spry.Utils.setInnerHTML(ele, 'Loading...');
		Spry.Utils.setInnerHTML('productPrice', '');
		Spry.Utils.setInnerHTML('updateResponseDiv', '');
		//FilterData();
		Spry.Utils.updateContent(ele,url);
	}
	
	var keyArray = new Array();
	
	
	//var fld1 = document.getElementById('attributeID_1');
	var attrFld1 = eval(document.forms['frmProductDetail'].attributeID_1);
	if (attrFld1.options.length == 2){
		attrFld1.options[0]= null;
		attrFld1.options[0].selected = true;
		
		keyArray[0] = attrFld1.options[attrFld1.selectedIndex].value;
	}
	
	else
		attrFld1.options[0].selected = true;
	
	//var fld2 = document.getElementById('attributeID_2');
	var attrFld2 = eval(document.forms['frmProductDetail'].attributeID_2);
	if (attrFld2.options.length == 2){
		attrFld2.options[0]= null;
		attrFld2.options[0].selected = true;
		
		keyArray[1] = attrFld2.options[attrFld2.selectedIndex].value;
	}
	
	else
		attrFld2.options[0].selected = true;
	
	
	//alert(keyArray.length);
	var key = '';
	for(var i=0; i < keyArray.length;i++){
		if (keyArray[i] != undefined){
			if (key.length ==0)
				key = keyArray[i];
			else
				key = key + '_' + keyArray[i];
		}
	}
	if (keyArray.length > 0 && key.indexOf('_') >0){
		getProductPrice('/index.cfm?event=shop.dspProductPrice&prod_id='+AvailableProducts[key]);
	}
	else {
		
	}
	

