var startColor = "yellow";
var numColors = 32  // Max number of colors to display in color table
var numProducts = 16 // Max number of products to display in color table it should be numColors/2  
var strLineColor = "999999"; // Color of dividing line

var minWidth = 1;
var minHeight = 1;

var stdWidth = 50;
var stdHeight = 40;


var emptyColor = "white";
var emptyProduct = "<img src='../elements/spacer.gif' height=1 width=1 border=0>";
var fullProduct = "<img src='../elements/spacer.gif' height=40 width=50 border=0>";
var strPath; // Used for hyper link


// Build Color arrays to hold RGB data and products informations
var redColors =new Array(numColors);
var redColors_names = new Array(numProducts);
var redColors_URLs = new Array(numProducts);

var orangeColors =new Array(numColors);
var orangeColors_names = new Array(numProducts);
var orangeColors_URLs = new Array(numProducts);

var yellowColors = new Array(numColors);
var yellowColors_names = new Array(numProducts);
var yellowColors_URLs = new Array(numProducts);

var greenColors = new Array(numColors);
var greenColors_names = new Array(numProducts);
var greenColors_URLs = new Array(numProducts);

var blueColors = new Array(numColors);
var blueColors_names = new Array(numProducts);
var blueColors_URLs = new Array(numProducts);

var violetColors = new Array(numColors);
var violetColors_names = new Array(numProducts);
var violetColors_URLs = new Array(numProducts);

var brownColors = new Array(numColors);
var brownColors_names = new Array(numProducts);
var brownColors_URLs = new Array(numProducts);

var blackColors = new Array(numColors);
var blackColors_names = new Array(numProducts);
var blackColors_URLs = new Array(numProducts);


// YELLOW -----------------------------------------------------
yellowColors[0] = "FAD916";
yellowColors[1] = "FADD17";
yellowColors[2] = "FAD916";
yellowColors[3] = "FADD17";
yellowColors[4] = "E7C514";
yellowColors[5] = "EEE914";
yellowColors[6] = "D46C00";
yellowColors[7] = "FAD916";
yellowColors[8] = "FAD916";
yellowColors[9] = "FAD616";
yellowColors[10] = "DECC12";
yellowColors[11] = "F6F17F";
yellowColors[12] = "FAD916";
yellowColors[13] = "FAE65A";
yellowColors[14] = "FAD916";
yellowColors[15] = "FBD87B";
yellowColors[16] = "E7C514";
yellowColors[17] = "FBE275";
yellowColors[18] = "C47C07";
yellowColors[19] = "FBC78A";
yellowColors[20] = "F57B00";
yellowColors[21] = "FDBE42";
yellowColors[22] = "E4B912";
yellowColors[23] = "F9E62C";
yellowColors[24] = "FAD616";
yellowColors[25] = "FBE349";
yellowColors[26] = "FAD616";
yellowColors[27] = "F6F05B";
yellowColors[28] = "FAD616";
yellowColors[29] = "F9E62C";


yellowColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-1100 Yellow</TD></TR>";
yellowColors_names[0] = yellowColors_names[0] + "<TR><TD class=stantone>Diarylide AAOT</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[0] = yellowColors_names[0] + "<TR><TD>C.I. PY-14</TD><TD>S</TD></TR></TABLE>";
yellowColors_URLs[0] = "yellow_py-14.asp";

yellowColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-1102 Yellow</TD></TR>";
yellowColors_names[1] = yellowColors_names[1] + "<TR><TD class=stantone>Diarylide AAMX</TD><TD class=stantone>RS</TD></TR>";
yellowColors_names[1] = yellowColors_names[1] + "<TR><TD>C.I. PY-13</TD><TD>S</TD></TR></TABLE>";
yellowColors_URLs[1] = "yellow_py-13.asp";

yellowColors_names[2] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-256 Yellow</TD></TR>";
yellowColors_names[2] = yellowColors_names[2] + "<TR><TD class=stantone>Diarylide AAOA</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[2] = yellowColors_names[2] + "<TR><TD>C.I. PY-17</TD><TD>T</TD></TR></TABLE>";
yellowColors_URLs[2] = "yellow_py-17.asp";

yellowColors_names[3] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-401 Yellow</TD></TR>";
yellowColors_names[3] = yellowColors_names[3] + "<TR><TD class=stantone>Diarylide HR</TD><TD class=stantone>RS</TD></TR>";
yellowColors_names[3] = yellowColors_names[3] + "<TR><TD>C.I. PY-83</TD><TD>T</TD></TR></TABLE>";
yellowColors_URLs[3] = "yellow_py-83.asp";

yellowColors_names[4] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-4455 Yellow</TD></TR>";
yellowColors_names[4] = yellowColors_names[4] + "<TR><TD class=stantone>Diarylide AAA</TD><TD class=stantone>RS</TD></TR>";
yellowColors_names[4] = yellowColors_names[4] + "<TR><TD>C.I. PY-12</TD><TD>S</TD></TR></TABLE>";
yellowColors_URLs[4] = "yellow_py-12.asp";

yellowColors_names[5] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-3001 Yellow</TD></TR>";
yellowColors_names[5] = yellowColors_names[5] + "<TR><TD class=stantone>Primerose Chrome</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[5] = yellowColors_names[5] + "<TR><TD>C.I. PY-34</TD><TD>0</TD></TR></TABLE>";
yellowColors_URLs[5] = "yellow_py-34-GSPrimrose.asp";

yellowColors_names[6] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-3002 Yellow</TD></TR>";
yellowColors_names[6] = yellowColors_names[6] + "<TR><TD class=stantone>Lemon Chrome</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[6] = yellowColors_names[6] + "<TR><TD>C.I. PY-34</TD><TD>0</TD></TR></TABLE>";
yellowColors_URLs[6] = "yellow_py-34-GSLemon.asp";

yellowColors_names[7] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-3003 Yellow</TD></TR>";
yellowColors_names[7] = yellowColors_names[7] + "<TR><TD class=stantone>Medium Chrome</TD><TD class=stantone>RS</TD></TR>";
yellowColors_names[7] = yellowColors_names[7] + "<TR><TD>C.I. PY-34</TD><TD>0</TD></TR></TABLE>";
yellowColors_URLs[7] = "yellow_py-34-RSMedium.asp";

yellowColors_names[8] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-1195 Yellow</TD></TR>";
yellowColors_names[8] = yellowColors_names[8] + "<TR><TD class=stantone>Primerose Chrome</TD><TD class=stantone>VGS</TD></TR>";
yellowColors_names[8] = yellowColors_names[8] + "<TR><TD>C.I. PY-34</TD><TD>0</TD></TR></TABLE>";
yellowColors_URLs[8] = "yellow_py-34-VGSPrimrose.asp";

yellowColors_names[9] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-8100 Yellow</TD></TR>";
yellowColors_names[9] = yellowColors_names[9] + "<TR><TD class=stantone>Iron Oxide</TD><TD class=stantone></TD></TR>";
yellowColors_names[9] = yellowColors_names[9] + "<TR><TD>C.I. PY-42</TD><TD>0</TD></TR></TABLE>";
yellowColors_URLs[9] = "yellow_py-42.asp";

yellowColors_names[10] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-405 Yellow</TD></TR>";
yellowColors_names[10] = yellowColors_names[10] + "<TR><TD class=stantone>Isoindolinone</TD><TD class=stantone>RS</TD></TR>";
yellowColors_names[10] = yellowColors_names[10] + "<TR><TD>C.I. PY-110</TD><TD>S</TD></TR></TABLE>";
yellowColors_URLs[10] = "yellow_py-110.asp";

yellowColors_names[11] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-412 Yellow</TD></TR>";
yellowColors_names[11] = yellowColors_names[11] + "<TR><TD class=stantone>Azo Condensation</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[11] = yellowColors_names[11] + "<TR><TD>C.I. PY-93</TD><TD>T</TD></TR></TABLE>";
yellowColors_URLs[11] = "yellow_py-93.asp";

yellowColors_names[12] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-424 Yellow</TD></TR>";
yellowColors_names[12] = yellowColors_names[12] + "<TR><TD class=stantone>Benzimidazolone</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[12] = yellowColors_names[12] + "<TR><TD>C.I. PY-151</TD><TD>S</TD></TR></TABLE>";
yellowColors_URLs[12] = "yellow_py-151.asp";

yellowColors_names[13] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-445 Yellow</TD></TR>";
yellowColors_names[13] = yellowColors_names[13] + "<TR><TD class=stantone>Isoindolinone</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[13] = yellowColors_names[13] + "<TR><TD>C.I. PY-109</TD><TD>S</TD></TR></TABLE>";
yellowColors_URLs[13] = "yellow_py-109.asp";

yellowColors_names[14] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-473 Yellow</TD></TR>";
yellowColors_names[14] = yellowColors_names[14] + "<TR><TD class=stantone>Quinophthalone</TD><TD class=stantone>GS</TD></TR>";
yellowColors_names[14] = yellowColors_names[14] + "<TR><TD>C.I. PY-138</TD><TD>S</TD></TR></TABLE>";
yellowColors_URLs[14] = "yellow_py-138.asp";


// ORANGE -----------------------------------------------------
orangeColors[0] = "FA4E0B";
orangeColors[1] = "FA8C77";

orangeColors[2] = "F57B00";
orangeColors[3] = "FE9A4A";

orangeColors[4] = "FD5B09";
orangeColors[5] = "FB7341"; 

orangeColors[6] = "E25004";
orangeColors[7] = "FAA58A";

orangeColors[8] = "E25004";
orangeColors[9] = "FA9271";

orangeColors[10] = "FA6708";
orangeColors[11] = "FB7341";


orangeColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-1501 Orange</TD></TR>";
orangeColors_names[0] = orangeColors_names[0] + "<TR><TD class=stantone>Molydbate</TD><TD class=stantone>YS</TR>";
orangeColors_names[0] = orangeColors_names[0] + "<TR><TD>C.I. PR-104</TD><TD>0</TD></TR></TABLE>";
orangeColors_URLs[0] = "orange_pr-104-YS.asp";

orangeColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-1502 Orange</TD></TR>";
orangeColors_names[1] = orangeColors_names[1] + "<TR><TD class=stantone>Pyrazolone</TD><TD class=stantone>YS</TR>";
orangeColors_names[1] = orangeColors_names[1] + "<TR><TD>C.I. PO-13</TD><TD>0</TD></TR></TABLE>";
orangeColors_URLs[1] = "orange_po-13.asp";

orangeColors_names[2] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-1503 Orange</TD></TR>";
orangeColors_names[2] = orangeColors_names[2] + "<TR><TD class=stantone>Molydbate</TD><TD class=stantone>RS</TR>";
orangeColors_names[2] = orangeColors_names[2] + "<TR><TD>C.I. PO-16</TD><TD>0</TD></TR></TABLE>";
orangeColors_URLs[2] = "orange_po-16.asp";

orangeColors_names[3] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-1504 Orange</TD></TR>";
orangeColors_names[3] = orangeColors_names[3] + "<TR><TD class=stantone>Molydbate</TD><TD class=stantone>RS</TR>";
orangeColors_names[3] = orangeColors_names[3] + "<TR><TD>C.I. PR-104</TD><TD>0</TD></TR></TABLE>";
orangeColors_URLs[3] = "orange_pr-104-RS.asp";

orangeColors_names[4] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-513 Orange</TD></TR>";
orangeColors_names[4] = orangeColors_names[4] + "<TR><TD class=stantone>Benzimidazolone</TD><TD class=stantone>RS</TR>";
orangeColors_names[4] = orangeColors_names[4] + "<TR><TD>C.I. P0-36</TD><TD>0</TD></TR></TABLE>";
orangeColors_URLs[4] = "orange_po-36.asp";

orangeColors_names[5] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-530 Orange</TD></TR>";
orangeColors_names[5] = orangeColors_names[5] + "<TR><TD class=stantone>Azo</TD><TD class=stantone>YS</TR>";
orangeColors_names[5] = orangeColors_names[5] + "<TR><TD>C.I. P0-64</TD><TD>0</TD></TR></TABLE>";
orangeColors_URLs[5] = "orange_po-64.asp";


// RED -----------------------------------------------------
redColors[0] = "D52E2D";
redColors[1] = "F94D58";

redColors[2] = "9B3C1D";
redColors[3] = "E44B7E";

redColors[4] = "B12F2D";
redColors[5] = "E7407B";

redColors[6] = "B12F2D";
redColors[7] = "D7253E";

redColors[8] = "D52E2D";
redColors[9] = "E44B7E";

redColors[10] = "E25004";
redColors[11] = "F94D58";

redColors[12] = "9B3C1D";
redColors[13] = "AC675B";

redColors[14] = "772F2F";
redColors[15] = "BD8789";

redColors[16] = "A64316";
redColors[17] = "E57051";

redColors[18] = "9B3C1D";
redColors[19] = "AC675B";

redColors[20] = "D52E2D";
redColors[21] = "F94D58";

redColors[22] = "B12F2D";
redColors[23] = "E44B7E";

redColors[24] = "CD2C32";
redColors[25] = "EA708C";

redColors[26] = "D52E2D";
redColors[27] = "F2466D";

redColors[28] = "E25004";
redColors[29] = "E5495B";

redColors[30] = "E1432D";
redColors[31] = "F8495B";


redColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-2000 RED</TD></TR>";
redColors_names[0] = redColors_names[0] + "<TR><TD class=stantone>Red Lake C</TD><TD class=stantone>YS</TR>";
redColors_names[0] = redColors_names[0] + "<TR><TD>C.I. PR-53:1</TD><TD>S</TD></TR></TABLE>";
redColors_URLs[0] = "red_pr-53.asp";

redColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-2200 RED</TD></TR>";
redColors_names[1] = redColors_names[1] + "<TR><TD class=stantone>Lithol Rubine</TD><TD class=stantone>BS</TR>";
redColors_names[1] = redColors_names[1] + "<TR><TD>C.I. PR-57:1</TD><TD>T</TD></TR></TABLE>";
redColors_URLs[1] = "red_pr-57.asp";

redColors_names[2] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-2503 RED</TD></TR>";
redColors_names[2] = redColors_names[2] + "<TR><TD class=stantone>Red 2B Ca Salt</TD><TD class=stantone>BS</TR>";
redColors_names[2] = redColors_names[2] + "<TR><TD>C.I. PR-48:2</TD><TD>S</TD></TR></TABLE>";
redColors_URLs[2] = "red_pr-48-BS.asp";

redColors_names[3] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-2603 RED</TD></TR>";
redColors_names[3] = redColors_names[3] + "<TR><TD class=stantone>Pyrazolone</TD><TD class=stantone>YS</TR>";
redColors_names[3] = redColors_names[3] + "<TR><TD>C.I. PR-38</TD><TD>S</TD></TR></TABLE>";
redColors_URLs[3] = "red_pr-38.asp";

redColors_names[4] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-2700 RED</TD></TR>";
redColors_names[4] = redColors_names[4] + "<TR><TD class=stantone>Pigment Scarlet</TD><TD class=stantone>BS</TR>";
redColors_names[4] = redColors_names[4] + "<TR><TD>C.I. PR-60:1</TD><TD>S</TD></TR></TABLE>";
redColors_URLs[4] = "red_pr-60.asp";

redColors_names[5] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-2800 RED</TD></TR>";
redColors_names[5] = redColors_names[5] + "<TR><TD class=stantone>Red 2B Ba Salt</TD><TD class=stantone>YS</TR>";
redColors_names[5] = redColors_names[5] + "<TR><TD>C.I. PR-48:1</TD><TD>S</TD></TR></TABLE>";
redColors_URLs[5] = "red_pr-48-YS.asp";

redColors_names[6] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-8200 RED</TD></TR>";
redColors_names[6] = redColors_names[6] + "<TR><TD class=stantone>Iron Oxide, Light</TD><TD class=stantone>BS</TR>";
redColors_names[6] = redColors_names[6] + "<TR><TD>C.I. PR-101</TD><TD>O</TD></TR></TABLE>";
redColors_URLs[6] = "red_pr-101-BS.asp";

redColors_names[7] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-8201 RED</TD></TR>";
redColors_names[7] = redColors_names[7] + "<TR><TD class=stantone>Iron Oxide, Dark</TD><TD class=stantone>VBS</TR>";
redColors_names[7] = redColors_names[7] + "<TR><TD>C.I. PR-101</TD><TD>O</TD></TR></TABLE>";
redColors_URLs[7] = "red_pr-101-VBS.asp";

redColors_names[8] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-8202 RED</TD></TR>";
redColors_names[8] = redColors_names[8] + "<TR><TD class=stantone>Iron Oxide, Light</TD><TD class=stantone>VYS</TR>";
redColors_names[8] = redColors_names[8] + "<TR><TD>C.I. PR-101</TD><TD>O</TD></TR></TABLE>";
redColors_URLs[8] = "red_pr-101-VYS.asp";

redColors_names[9] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-313 RED</TD></TR>";
redColors_names[9] = redColors_names[9] + "<TR><TD class=stantone>Iron Oxide, Light</TD><TD class=stantone>YS</TR>";
redColors_names[9] = redColors_names[9] + "<TR><TD>C.I. PR-101</TD><TD>O</TD></TR></TABLE>";
redColors_URLs[9] = "red_pr-101-YS.asp";

redColors_names[10] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-605 RED</TD></TR>";
redColors_names[10] = redColors_names[10] + "<TR><TD class=stantone>Perylene Scarlet</TD><TD class=stantone>YS</TR>";
redColors_names[10] = redColors_names[10] + "<TR><TD>C.I. PR-149</TD><TD>T</TD></TR></TABLE>";
redColors_URLs[10] = "red_pr-149.asp";

redColors_names[11] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-610 RED</TD></TR>";
redColors_names[11] = redColors_names[11] + "<TR><TD class=stantone>Quinacridone</TD><TD class=stantone>BS</TR>";
redColors_names[11] = redColors_names[11] + "<TR><TD>C.I. PV-19</TD><TD>T</TD></TR></TABLE>";
redColors_URLs[11] = "red_pv-19-BS.asp";

redColors_names[12] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-660 RED</TD></TR>";
redColors_names[12] = redColors_names[12] + "<TR><TD class=stantone>Quinacridone</TD><TD class=stantone>YS</TR>";
redColors_names[12] = redColors_names[12] + "<TR><TD>C.I. PV-19</TD><TD>S</TD></TR></TABLE>";
redColors_URLs[12] = "red_pv-19-YS.asp";

redColors_names[13] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-663 RED</TD></TR>";
redColors_names[13] = redColors_names[13] + "<TR><TD class=stantone>Naphthol</TD><TD class=stantone>BS</TR>";
redColors_names[13] = redColors_names[13] + "<TR><TD>C.I. PR-170</TD><TD>O</TD></TR></TABLE>";
redColors_URLs[13] = "red_pr-170-BS.asp";

redColors_names[14] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-669 RED</TD></TR>";
redColors_names[14] = redColors_names[14] + "<TR><TD class=stantone>Naphthol</TD><TD class=stantone>YS</TR>";
redColors_names[14] = redColors_names[14] + "<TR><TD>C.I. PR-170</TD><TD>O</TD></TR></TABLE>";
redColors_URLs[14] = "red_pr-170-YS.asp";

redColors_names[15] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-691 RED</TD></TR>";
redColors_names[15] = redColors_names[15] + "<TR><TD class=stantone>Diketo-Pyrrolo-Pyrrol</TD><TD class=stantone>YS</TR>";
redColors_names[15] = redColors_names[15] + "<TR><TD>C.I. PR-254</TD><TD>O</TD></TR></TABLE>";
redColors_URLs[15] = "red_pr-254.asp";

// GREEN -----------------------------------------------------
greenColors[0] = "003239";
greenColors[1] = "00AE98";
greenColors[2] = "00834C";
greenColors[3] = "00B58F";
greenColors[4] = "004941";
greenColors[5] = "00AE98";
greenColors[6] = "506523";
greenColors[7] = "AFB28B";

greenColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-5003 Green</TD></TR>";
greenColors_names[0] = greenColors_names[0] + "<TR><TD class=stantone>Phthalocyanine</TD><TD class=stantone>YS</TR>";
greenColors_names[0] = greenColors_names[0] + "<TR><TD>C.I. PG-7</TD><TD>T</TD></TR></TABLE>";
greenColors_URLs[0] = "green_pg-7-ys.asp";

greenColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-5004 Green</TD></TR>";
greenColors_names[1] = greenColors_names[1] + "<TR><TD class=stantone>Phthalocyanine Brominated</TD><TD class=stantone>VYS</TR>";
greenColors_names[1] = greenColors_names[1] + "<TR><TD>C.I. PG-36</TD><TD>T</TD></TR></TABLE>";
greenColors_URLs[1] = "green_pg-36.asp";

greenColors_names[2] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-5005 Green</TD></TR>";
greenColors_names[2] = greenColors_names[2] + "<TR><TD class=stantone>Phthalocyanine</TD><TD class=stantone>BS</TR>";
greenColors_names[2] = greenColors_names[2] + "<TR><TD>C.I. PG-7</TD><TD>T</TD></TR></TABLE>";
greenColors_URLs[2] = "green_pg-7-bs.asp";

greenColors_names[3] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-5900 Green</TD></TR>";
greenColors_names[3] = greenColors_names[3] + "<TR><TD class=stantone>Chromium Oxide</TD><TD class=stantone></TR>";
greenColors_names[3] = greenColors_names[3] + "<TR><TD>C.I. PG-17</TD><TD>O</TD></TR></TABLE>";
greenColors_URLs[3] = "green_pg-17.asp";

// BLUE -----------------------------------------------------
blueColors[0] = "2B1057";
blueColors[1] = "0073CA";
blueColors[2] = "2B1057";
blueColors[3] = "0083CE";
blueColors[4] = "005CAA";
blueColors[5] = "A3C2E4";
blueColors[6] = "0050BB";
blueColors[7] = "85AFE1";

blueColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-4005 Blue</TD></TR>";
blueColors_names[0] = blueColors_names[0] + "<TR><TD class=stantone>Phthalocyanine</TD><TD class=stantone>RS</TR>";
blueColors_names[0] = blueColors_names[0] + "<TR><TD>C.I. PB-15</TD><TD>T</TD></TR></TABLE>";
blueColors_URLs[0] = "blue_pb-15-RS.asp";

blueColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-4006 Blue</TD></TR>";
blueColors_names[1] = blueColors_names[1] + "<TR><TD class=stantone>Phthalocyanine</TD><TD class=stantone>GS</TR>";
blueColors_names[1] = blueColors_names[1] + "<TR><TD>C.I. PB-15:3</TD><TD>T</TD></TR></TABLE>";
blueColors_URLs[1] = "blue_pb-15-GS.asp";

blueColors_names[2] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-4900 Blue</TD></TR>";
blueColors_names[2] = blueColors_names[2] + "<TR><TD class=stantone>Colbalt</TD><TD class=stantone></TR>";
blueColors_names[2] = blueColors_names[2] + "<TR><TD>C.I. PB-28</TD><TD>S</TD></TR></TABLE>";
blueColors_URLs[2] = "blue_pb-28.asp";

blueColors_names[3] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;Ultramarine</TD></TR>";
blueColors_names[3] = blueColors_names[3] + "<TR><TD class=stantone>Blue*</TD><TD class=stantone></TR>";
blueColors_names[3] = blueColors_names[3] + "<TR><TD>C.I. PB-29</TD><TD>T</TD></TR></TABLE>";
blueColors_URLs[3] = "blue_pb-29.asp";

// Violet -----------------------------------------------------
violetColors[0] = "6B1F31";
violetColors[1] = "A35178";
violetColors[2] = "4F5BAA";
violetColors[3] = "CFCEE4";
violetColors[4] = "201E1D";
violetColors[5] = "5D218C";
violetColors[6] = "7F2725";
violetColors[7] = "CB2494";
violetColors[8] = "4A2409";
violetColors[9] = "B72F73";

violetColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-118 Violet</TD></TR>";
violetColors_names[0] = violetColors_names[0] + "<TR><TD class=stantone>Quinacridone</TD><TD class=stantone> </TR>";
violetColors_names[0] = violetColors_names[0] + "<TR><TD>C.I. PV-19</TD><TD>T</TD></TR></TABLE>";
violetColors_URLs[0] = "violet_pv-19.asp";

violetColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone></TD></TR>";
violetColors_names[1] = violetColors_names[1] + "<TR><TD class=stantone>Ultramarine Violet*</TD><TD class=stantone> </TR>";
violetColors_names[1] = violetColors_names[1] + "<TR><TD>C.I. PV-15</TD><TD>T</TD></TR></TABLE>";
violetColors_URLs[1] = "violet_pv-15.asp";

violetColors_names[2] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-125 Violet</TD></TR>";
violetColors_names[2] = violetColors_names[2] + "<TR><TD class=stantone>Carbazole</TD><TD class=stantone> </TR>";
violetColors_names[2] = violetColors_names[2] + "<TR><TD>C.I. PV-23</TD><TD>T</TD></TR></TABLE>";
violetColors_URLs[2] = "violet_pv-23.asp";

violetColors_names[3] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-120 Magenta</TD></TR>";
violetColors_names[3] = violetColors_names[3] + "<TR><TD class=stantone>Quinacridone</TD><TD class=stantone> </TR>";
violetColors_names[3] = violetColors_names[3] + "<TR><TD>C.I. PR-122</TD><TD>S</TD></TR></TABLE>";
violetColors_URLs[3] = "red_pr-122.asp";

violetColors_names[4] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-123 Violet</TD></TR>";
violetColors_names[4] = violetColors_names[4] + "<TR><TD class=stantone>Benzimidazolone</TD><TD class=stantone> </TR>";
violetColors_names[4] = violetColors_names[4] + "<TR><TD>C.I. PV-32</TD><TD>O</TD></TR></TABLE>";
violetColors_URLs[4] = "violet_pv-32.asp";

// BROWN -----------------------------------------------------
brownColors[0] = "844520";
brownColors[1] = "DDAE91";
brownColors[2] = "4B2815";
brownColors[3] = "887460";
brownColors[4] = "974F05";
brownColors[5] = "E9B081";

brownColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-8300 Brown</TD></TR>";
brownColors_names[0] = brownColors_names[0] + "<TR><TD class=stantone>Iron Oxide Light</TD><TD class=stantone></TR>";
brownColors_names[0] = brownColors_names[0] + "<TR><TD>C.I. PBr-6</TD><TD>O</TD></TR></TABLE>";
brownColors_URLs[0] = "brown_pbr-6-light.asp";

brownColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-8301 Brown</TD></TR>";
brownColors_names[1] = brownColors_names[1] + "<TR><TD class=stantone>Iron Oxide Dark</TD><TD class=stantone></TR>";
brownColors_names[1] = brownColors_names[1] + "<TR><TD>C.I. PBr-6</TD><TD>O</TD></TR></TABLE>";
brownColors_URLs[1] = "brown_pbr-6-dark.asp";

brownColors_names[2] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-801 Tan Iron</TD></TR>";
brownColors_names[2] = brownColors_names[2] + "<TR><TD class=stantone>Oxide</TD><TD class=stantone>HR</TR>";
brownColors_names[2] = brownColors_names[2] + "<TR><TD>C.I. PBr-11</TD><TD>O</TD></TR></TABLE>";
brownColors_URLs[2] = "brown_pbr-11.asp";


// BLACK-----------------------------------------------------
blackColors[0] = "201E1D";
blackColors[1] = "4B5157";
blackColors[2] = "201E1D";
blackColors[3] = "777574";

blackColors_names[0] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;D-9003 Black</TD></TR>";
blackColors_names[0] = blackColors_names[0] + "<TR><TD class=stantone>Lampblack</TD><TD class=stantone>BS</TR>";
blackColors_names[0] = blackColors_names[0] + "<TR><TD>C.I. PBk-6</TD><TD>O</TD></TR></TABLE>";
blackColors_URLs[0] = "black_pbk-6.asp";

blackColors_names[1] = "<TABLE cellpadding=0 cellspacing=0><TR><TD Colspan=2 class=stantone>Stan-Tone&trade;&nbsp;&nbsp;DC-260 Black</TD></TR>";
blackColors_names[1] = blackColors_names[1] + "<TR><TD class=stantone>Iron Oxide</TD><TD class=stantone>BS</TR>";
blackColors_names[1] = blackColors_names[1] + "<TR><TD>C.I. PBk-11</TD><TD>O</TD></TR></TABLE>";
blackColors_URLs[1] = "black_pbk-11.asp";

/*	==================================================
	==================================================
	Functions used by stan_tone_color.asp
	==================================================	requires javascript document.getElementById
	changeColorTable(strArry) 
		strArry = array name of colors  (blackColors , blueColors , redColors...) to output
		loops thru numProducts table elements 
		calls setColorChips()   i = numProducts loop
		calls setColorText()
		
	setColorChips( strArry, i ) sets Tint and Masstone Colorchip using setColorChips()
			calls setColorSquare()  for both colors
			
	setColorSquare( strArry, i )	Set color chip color blcolor value 
		and sets URL from Colors_URLs, passing color array name and color number in Querystring
		calls changeTextSpacerById()
	
	setColorText(id, strText)	set Text table for product row
		calls changeTextSpacerById()
		
	changeTextSpacerById( ID , strColor )  change bgcolor of ID to strColor	
		
==================================================	
==================================================		*/

function changeColorTable(strArry){
	var j = 0;
	if (document.getElementById){
		for (i=0; i < numProducts; i++)
		{	
			setColorChips( strArry , i  ) ;
			setColorText( 'cell_text_' + i  ,  eval(strArry + '_names[' + i + ']' )   ) ;
		}
	}
	else
		alert('Sorry, but you need to upgrade your browser to view the colorcharts.');	
}

function setColorChips( strArry, i ){  // loop through  product rows call functions to set text and set color chips
	if (document.getElementById){
		var cellNum = 2*i ;
		setColorSquare(strArry, cellNum,  i );
		var cellNum = 2*i  + 1;
		setColorSquare(strArry, cellNum,  i );
	} // document.getElementById
}

function setColorSquare(strArry , cellNum , prodNum ){ // Set color chip color value and HREF tag
		var strColor = eval(strArry + '[' + cellNum + ']' );
		var cellID = 'cell_' + cellNum; // first color chip
		var strURL = eval(strArry + '_URLs[' + prodNum + ']' );
		var nodeObj = document.getElementById(cellID);
		if ( nodeObj != null) {
			if ( strColor != null ) {
				nodeObj.bgColor = '#' + strColor;
//				strPath = "stan_tone_color_detail.asp?color=" + escape(strArry) + '&num=' + i;
				strPath = strURL + "?color=" + escape(strArry) + '&num=' + i;
				nodeObj.innerHTML = "<A href=" + unescape("%22") + "javascript:detailItem('" + strPath + "')" + unescape("%22") + " style='backgroundcolor:none'>" + fullProduct + "</A>" ;
				changeTextSpacerById( 'cell_' + cellNum + '_space' , strLineColor ) ;// change color of spacer after this color
			}
			else
			{
				nodeObj.bgColor = emptyColor;
				nodeObj.innerHTML = emptyProduct;
				changeTextSpacerById( cellID + '_space' , emptyColor );
				changeTextSpacerById( 'cell_' + cellNum + '_space' , emptyColor ) ;// change color of spacer after this color
			}
		} // nodeObj != null

}

function setColorText(id, strText){ // set Text table for product row
	if (document.getElementById)
		{
		var nodeObj = document.getElementById(id);
		if ( nodeObj != null) {
			if ( strText!= null )  {
				nodeObj.innerHTML = strText;
				changeTextSpacerById(id + '_space' , strLineColor ) ;// change color of spacer after this text element
			}
			else {
				nodeObj.innerHTML = emptyProduct;
				changeTextSpacerById(id + '_space' , emptyColor );
			}
		} // nodeObj != null
	} // document.getElementById
}


function changeTextSpacerById(id, strColor){
	if (document.getElementById) {
		var nodeObj = document.getElementById(id);
		if ( nodeObj != null)
			nodeObj.bgColor = strColor;
	}
}
  
//==================================================
// Functions used by stan_tone_color_detail.asp
//==================================================
function changeDetailContent( strColorAry , num) { // Change bgcolor of cell_masstone and cell_tint
	if (document.getElementById) {
		var strColor = eval(strColorAry + '[' + 2 * num + ']' );	
		var strColor1 = eval(strColorAry + '[' +  ((2 * num) + 1)  + ']' );	
		
	 // set color chip ONE
		var nodeObj = document.getElementById('cell_masstone');
		if ( nodeObj != null) {
			if ( strColor != null ) {
				nodeObj.bgColor = strColor;
			}
			else
			{
				nodeObj.bgColor = emptyColor ;
			} //strColor != null 
		} // nodeObj != null)
		
	 // set color chip TWO
		var nodeObj = document.getElementById('cell_tint');
		if ( nodeObj != null) {
			if ( strColor1 != null ) {
				nodeObj.bgColor = strColor1;
			}
			else
			{
				nodeObj.bgColor = emptyColor;
			} //strColor1 != null 
		} // nodeObj != null)
		
	} //document.getElementById
}
