cFabListHdr = "<tr class='Hdr' id='RowHdr'>" +
              "<td class='RCHdr'>Dimensions</td>" +
              "<td class='Hdr' id='Price'>Price</td>" +
              "<td class='Hdr'>ProCoat #</td>" +
              "<td class='Hdr'>FabriSign #</td></tr>\n"

flCot  = new Object();
flSlk  = new Object();
flPly  = new Object();
flNyl  = new Object();
flLin  = new Object();

flType = new Object();
flDesc = new Object();
flGrps = new Object();

flType.F0 = flCot;
flType.F1 = flSlk;
flType.F2 = flPly;
flType.F3 = flNyl;
flType.F4 = flLin;

flDesc.Hab   = "Also known as \"China Silk\". Habotai means \"soft as down\" in Japanese. It has a smooth, even weave. It is used for scarves, dresses, blouses and for lining. Our habotai's are the best quality that China has to offer.";
flDesc.CDC   = "A classic, drapey silk that dyes beautifully and has a subtle, almost luminous luster. The texture is finely pebbled. The weft is woven with tightly twisted threads resulting in a little spring. Excellent for all garments.";
flDesc.F0001 = 'Now coated with <b>FabriSign II</b> for brighter colors!';
flDesc.F0007 = "High quality 140 gm./sq. meter.";
flDesc.F0009 = "High thread count.";
flDesc.F1011 = "Charmeuse has a pearly satin finish and crepe back. It drapes beautifully, falling close to the body. The shiny satin side shows off colors brightly. Slinky and luxurious, it's popular for lingerie, blouses, pillows, linings, kimonos and evening wear.";
flDesc.F1018 = "Light, airy and transparent silk woven from tightly twisted yarns resulting in a crepe-like texture. Drapes beautifully, falling in soft, languid ripples, it's currently popular for evening wear, layered skirts and costumes. A costumer designers delight.";
flDesc.F1019 = "Width varies from 35&quot; to 40&quot;."
flDesc.F1020 = "A crisp, sheer, fabric woven from raw silk from tightly twisted, fine silk yarns. The gum on the raw silk holds the weave in place creating a stiff fabric and adds volume and body for veils and wedding gowns. Good for interfacing or for lining other sheer fabrics.";
flDesc.F1024 = "Very light, airy and transparent. A favorite of costume designers, it is also used for veils."
flDesc.F1025 = "One of our most popular silks for wedding gowns � has a tight weave and subtle, irregular slubs. It has a moderately crisp drape and falls into wide cones. Decorators and designers love its quiet luster, lofty fullness and elegant feel.";
flDesc.F1026 = "One of our most popular silks for wedding gowns, dupion has a tight weave and subtle, irregular slubs. Dupion has a moderately crisp drape and falls into wide cones. Decorators and designers love its quiet luster, lofty fullness and elegant feel. The Indian Dupion has a particularly luminous quality and a great deal of body.";
flDesc.F1027 = "Another popular silk for wedding gowns, dupion has a tight weave and subtle, irregular slubs. Dupion has a moderately crisp drape and falls into wide cones. Decorators and designers love its quiet luster, lofty fullness and elegant feel.";
flDesc.F1028 = "A very classy, cotton-like fabric that is natural colored & dyes richly. The fine, even weave is great for shirts, blouses and dresses.";
flDesc.F1029 = "A very classy, cotton-like fabric that dyes richly. The fine, even weave is great for shirts, blouses and dresses.";
flDesc.F1030 = "A closely woven, lightweight silk with a subtle sheen. One of the oldest of luxury fabrics, beautiful alternative to 8mm habotai with more variation. Great for dresses and linings. Also popular for wedding gowns.";
flDesc.F1031 = "Also called \"Raw Silk\". Woven in a natural color with darker, nubby spots, this is a combination of matte, rough finish and muted luster. Its soft, nubby texture is wrinkle resistant, contemporary and classic. Used for everything because it is easy to care for and colors beautifully. Makes wonderful suits, jackets and pants.";
flDesc.F2001 = "Knit warped in Germany. Will not fray or curl.";
flDesc.F3007 = "130gm./sq. meter";
flDesc.F3009 = "Made with Dupont SolarMax&reg;. Not available with FabriSign coating.";
flDesc.F4001 = "Natural color.";
flDesc.Treviras = "<b>Flame retardant</b>";
flDesc.KnitWarpFire = "Knit warped in Germany. Will not fray or curl.<br /><b>Flame retardant</b>";

flCot.oNextList = flSlk; flCot.oPrevList = flLin;
flSlk.oNextList = flPly; flSlk.oPrevList = flCot;

//flJcq.oNextList = flPly; flJcq.oPrevList = flSlk;

flPly.oNextList = flNyl; flPly.oPrevList = flSlk;
flNyl.oNextList = flLin; flNyl.oPrevList = flPly;
flLin.oNextList = flCot; flLin.oPrevList = flNyl;

//flWol.oNextList = flCot; flWol.oPrevList = flLin;


// row0        [Descrip,Price,InkCompatabilityId,ShowInIdxFlag,GroupFlag,GroupDescrip]
//               ShowInIdxFlag = 0: No
//               ShowInIdxFlag = 1: Yes
//               ShowInIdxFlag = 2: Yes, use GroupDescrip
//               GroupFlag = 0: No group
//               GroupFlag > 0: Has group, # of the selected group item
// Header Columns (row0)
hcDesc      = 0;
hcTxtId     = 1;
hcInkId     = 2;
hcIdxFlag   = 3;
hcGroupFlag = 4;
hcGroupId   = 5;
hcGroupDesc = 6;
hcSwatch    = 7;
hcCapImg    = 8;

flcPrice     = 1;
flcFabNum    = 2;
flcProNum    = 3;


flCot.GoToFirstItem = function() {MenuSelect(this.cFirstItem);}
flCot.cFirstItem = "F0001";
flCot.F0001  = [["Cotton Twill","F0001","icCel",1,0,"","","","F0001"],
                ["17\" x 35\'","$ 79.00","IF60055","SB00110"],
                ["24\" x 50\'","$ 155.00","C001003","SB00114"],				
                ["36\" x 50'","$ 227.00","IF60054","SB00111"],
                ["44\" x 50'","$ 227.00","C001004","SB00113"],
                ["56\" x 50'","$ 397.00","IF60053","SB00112"],
                ["6' Sample","$ 35.00","C001S01","C001S02"]];
 flCot.F0002 = [["Cotton Duck 8oz.","F0001","icCel",1,0,"","","","F0002"],
                ["17\" x 35'","$ 127.00","IF60065","SB00154"],
                ["24\" x 50'","$ 245.00","C002004","SB00155"],
                ["36\" x 50'","$ 362.00","C002003","C002005"],
                ["44\" x 50'","$ 362.00","IF60066","SB00156"],
                ["58\" x 50'","$ 399.00","C002013","C002015"],
                ["6' Sample","$ 35.00","C002S01","C002S02"]]
flCot.F0003  = [["Cotton Percale","F0001","icCel",1,0,"","","","F0004"],
                ["17\" x 35'","$ 81.00","IF61025","C005002"],
                ["24\" x 50'","$ 155.00","C005001","C005003"],
                ["36\" x 50'","$ 233.00","IF61026","C005005"],
                ["44\" x 50'","$ 233.00","IF61027","C005008"],
                ["58\" x 50'","$ 256.00","C005014","C005016"],
                ["6' Sample","$ 35.00","C005S01","C005S02"]]
flCot.F0004  = [["Cotton Sateen","F0001","icCel",1,0,"","","","F0005"],
                ["17\" x 35'","$ 108.80","IF61012 ","SB00130"],
                ["24\" x 50'","$ 210.00","IF61014","C006004"],
                ["36\" x 50'","$ 309.60","IF61011","SB00131"],
                ["44\" x 50'","$ 309.60","IF61010","C006005"],
                ["58\" x 50'","$ 340.80","IF61013","SB00132"],
                ["6' Sample","$ 35.00","C006S01","C006S02"]]               
flCot.F0005  = [["Cotton Sheeting","F0001","icCel",1,0,"","","","F0006"],
                ["17\" x 35'","$ 81.80","IF60017","SB00100"],
                ["24\" x 50'","$ 155.00","IF60013","SB00103"],
                ["36\" x 50'","$ 233.60","IF60012","SB00101"],
                ["44\" x 50'","$ 233.60","IF60014","C007006"],
                ["56\" x 50'","$ 256.80","IF60016","SB00102"],
                ["6' Sample","$ 35.00","C007S01","C007S02"]]
flCot.F0006  = [["Cotton Single Knit","F0007","icCel",1,0,"","","","F0007"],
                ["17\" x 35'","$ 112.00","C008P17","C008F17"],
                ["24\" x 50'","$ 220.00","C008P24","C008F24"],
                ["36\" x 50'","$ 321.00","C008P36","C008F36"],
                ["44\" x 50'","$ 321.00","C008P42","C008F42"],
                ["50\" x 50'","$ 354.00","C008P52","C008F52"],
                ["6' Sample","$ 35.00","C008P01","C008F01"]]
flCot.F0007  = [["Spun Viscose Challis","F0001","icCel",1,0,"","","","F0008"],
                ["17\" x 35'","$ 92.00","IF60046","C009001"],
                ["24\" x 50'","$ 180.00","IF60047","C009007"],
                ["36\" x 50'","$ 263.00","IF60045","C009002"],
                ["44\" x 50'","$ 263.00","C009003","C009004"],
                ["50\" x 50'","$ 289.00","C009005","C009006"],
                ["6' Sample","$ 35.00","C009S01","C009S02"]]
flCot.F0008  = [["Cotton Broadcloth","F0009","icCel",1,0,"","","","F0009"],
                ["17\" x 35'","$ 79.00","C010P17","C010F17"],
                ["24\" x 50'","$ 140.00","C010P24","C010F24"],
                ["36\" x 50'","$ 199.00","C010P36","C010F36"],
                ["44\" x 50'","$ 220.00","C010P42","C010F42"],
                ["56\" x 50'","$ 245.00","C010P56","C010F56"],
                ["6' Sample","$ 35.00","C010P01","C010F01"]]
flGrps.F0009 = [["F0010","6.5oz."],["F0011","10oz."]];
 flCot.F0009 = [["Artist Canvas 6.5oz.","F0001","icCel",2,1,"F0010","Artist Canvas <span class='DeEm'>(2 weights)</span>","","F0010"],
                ["17\" x 35'","$ 89.00","C011P17","C011F17"],
                ["24\" x 50'","$ 115.00","C011P24","C011F24"],
                ["36\" x 50'","$ 140.00","C011P36","C011F36"],
                ["44\" x 50'","$ 160.00","C011P42","C011F42"],
                ["52\" x 50'","$ 180.00","C011P52","C011F52"],
                ["58\" x 50'","$ 217.00","C011P58","C011F58"],
                ["6' Sample","$ 35.00","C011P01","C011F01"]]
 flCot.F0010 = [["Artist Canvas 10oz.","F0001","icCel",0,2,"F0010","","","F0011"],
                ["17\" x 35'","$ 89.00","C012P17","C012F17"],
                ["24\" x 50'","$ 125.00","C012P24","C012F24"],
                ["36\" x 50'","$ 160.00","C012P36","C012F36"],
                ["44\" x 50'","$ 185.00","C012P42","C012F42"],
                ["54\" x 50'","$ 210.00","C012P54","C012F54"],
                ["58\" x 50'","$ 247.00","C012P58","C012F58"],
                ["6' Sample","$ 35.00","C012P01","C012F01"]]
 flCot.F0011 = [["Cotton Lawn","F0001","icCel",1,0,"","","","F0013"],
                ["17\" x 35'","$ 79.00", "C014P17","C014F17"],
                ["24\" x 50'","$ 150.00","C014P24","C014F24"],
                ["36\" x 50'","$ 226.00","C014P36","C014F36"],
                ["44\" x 50'","$ 226.00","C014P42","C014F42"],
                ["52\" x 50'","$ 249.00","C014P58","C014F58"],
                ["6' Sample","$ 35.00",  "C014S01","C014S02"]]
flCot.cLastItem = "F0011";

flSlk.GoToFirstItem = function() {MenuSelect(this.cFirstItem);}
flSlk.cFirstItem = "F1001";
flGrps.F1001 = [["F1001","5mm"],["F1002","8mm"],["F1003","10mm"],["F1004","12mm"],["F1005","16mm"]];
 flSlk.F1001 = [["Habotai 5mm","Hab","icPro",2,1,"F1001","Silk Habotai <span class='DeEm'>(5 weights)</span>","","F1001"],
                ["17\" x 35'","$ 75.00","IF00006","S001001"],
                ["36\" x 50'","$ 225.00","IF00002","S001002"],
                ["42\" x 50'","$ 225.00","IF00004","S001003"],
                ["52\" x 50'","$ 285.00","IF00005","S001004"],
                ["6' Sample","$ 35.00","S001S01","S001S02"]];
 flSlk.F1002 = [["Habotai 8mm","Hab","icPro",0,2,"F1001","","","F1002"],
                ["17\" x 35'","$ 81.00","IF00012  ","S002001"],
                ["36\" x 50'","$ 232.00","IF00008 ","S002002"],
                ["42\" x 50'","$ 232.00","IF00010 ","S002003"],
                ["52\" x 50'","$ 299.00","IF00011 ","S002004"],
                ["6' Sample","$ 35.00","S002S01 ","S002S02"]];
 flSlk.F1003 = [["Habotai 10mm","Hab","icPro",0,3,"F1001","","","F1003"],
                ["17\" x 35'","$ 90.00","IF00018","SB00010"],
                ["36\" x 50'","$ 257.00","IF00014","SB00012"],
                ["42\" x 50'","$ 257.00","IF00016","SB00013"],
                ["52\" x 50'","$ 320.00","S027P52","S027F52"],
                ["6' Sample","$ 35.00","S027S01","S027S02"]];
 flSlk.F1004 = [["Habotai 12mm","Hab","icPro",0,4,"F1001","","","F1004"],
                ["17\" x 35'","$ 102.00","IF00023","S003001"],
                ["36\" x 50'","$ 292.00","IF00020","S003002"],
                ["42\" x 50'","$ 292.00","IF00022","S003003"],
                ["6' Sample","$ 35.00","S003S01","S003S02"]];
 flSlk.F1005 = [["Habotai 16mm","Hab","icPro",0,5,"F1001","","","F1005"],
                ["17\" x 35'","$ 104.00","IF00030","SB00020"],
                ["36\" x 50'","$ 297.00","IF00026","SB00021"],
                ["42\" x 50'","$ 297.00","IF00028","SB00022"],
                ["6' Sample","$ 35.00","S028S01","S028S02"]];
flGrps.F1006 = [["F1006","12mm"],["F1007","14mm"],["F1008","16mm"],["F1009","18mm"],["F1010","23mm"]];
 flSlk.F1006 = [["Crepe de Chine 12mm","CDC","icPro",2,1,"F1006","Crepe de Chine <span class='DeEm'>(5 weights)</span>","","F1006"],
                ["17\" x 35'","$ 97.00","IF05005","S004001"],
                ["36\" x 50'","$ 277.00","IF05002","S004002"],
                ["42\" x 50'","$ 277.00","IF05004","S004003"],
                ["58\" x 50'","$ 325.00","S004P58","S004F58"],
                ["6' Sample","$ 35.00","S004S01","S004S02"]];
 flSlk.F1007 = [["Crepe de Chine 14mm","CDC","icPro",0,2,"F1006","","","F1007"],
                ["17\" x 35'","$ 100.00","IF05010","S005001"],
                ["36\" x 50'","$ 287.00","IF05007","S005002"],
                ["42\" x 50'","$ 287.00","IF05009","S005003"],
                ["6' Sample","$ 35.00","S005S01","S005S02"]];
 flSlk.F1008 = [["Crepe de Chine 16mm","CDC","icPro",0,3,"F1006","","","F1008"],
                ["17\" x 35'","$ 101.00","IF05016","SB00030"],
                ["36\" x 50'","$ 290.00","IF05012","SB00031"],
                ["42\" x 50'","$ 290.00","IF05014","SB00032"],
                ["52\" x 50'","$ 385.00","IF05015","S006001"],
                ["6' Sample","$ 35.00","S006S01","S006S02"]];
 flSlk.F1009 = [["Crepe de Chine 18mm","CDC","icPro",0,4,"F1006","","","F1009"],
                ["17\" x 35'","$ 127.00","IF05019","S007001"],
                ["36\" x 50'","$ 395.00","IF05018","S007002"],
                ["42\" x 50'","$ 395.00","IF05020","S007003"],
                ["6' Sample","$ 35.00","S007S01","S007S02"]];
 flSlk.F1010 = [["Crepe de Chine 23mm","CDC","icPro",0,5,"F1006","","","F1010"],
                ["17\" x 35'","$ 132.00","IF05024","S008001"],
                ["36\" x 50'","$ 378.00","IF05023","S008002"],
                ["41\" x 50'","$ 378.00","IF05025","S008003"],
                ["6' Sample","$ 35.00","S008S01","S008S02"]];
flGrps.F1011 = [["F1011","12.5mm"],["F1012","19.5mm"],["F1013","23mm"]];
 flSlk.F1011 = [["Charmeuse 12.5mm","F1011","icPro",2,1,"F1011","Charmeuse <span class='DeEm'>(3 weights)</span>","","F1011"],
                ["17\" x 35'","$ 114.00","IF10010","S009001"],
                ["36\" x 50'","$ 325.00","IF10007","S009002"],
                ["42\" x 50'","$ 325.00","IF10009","S009003"],
                ["6' Sample","$ 35.00","S009S01","S009S02"]];
 flSlk.F1012 = [["Charmeuse 19.5mm","F1011","icPro",0,2,"F1011","","","F1012"],
                ["17\" x 35'","$ 115.00","IF10015","S010001"],
                ["36\" x 50'","$ 385.00","IF10012","S010002"],
                ["41\" x 50'","$ 385.00","IF10014","S010003"],
                ["50\" x 50'","$ 445.00","IF10016","S010004"],
                ["6' Sample","$ 35.00","S010S01","S010S02"]];
 flSlk.F1013 = [["Charmeuse 23mm","F1011","icPro",0,3,"F1011","","","F1013"],
                ["17\" x 35'","$ 147.00","IF10023","S011001"],
                ["36\" x 50'","$ 420.00","IF10022","S011002"],
                ["42\" x 50'","$ 420.00","IF10024","S011003"],
                ["6' Sample","$ 35.00","S011S01","S011S02"]];
flSlk.F1014 = [["Charmeuse Lycra 22mm","","icPro",1,0,"","","","F1014"],
               ["17\" x 35'","$ 148.00","IF10020","S012001"],
               ["36\" x 50'","$ 424.00","IF10017","S012002"],
               ["38\" x 50'","$ 424.00","S012003","S012004"],
               ["6' Sample","$ 35.00","S012S01","S012S02"]];
flSlk.F1015 = [["Silk Satin 12mm","","icPro",1,0,"","","","F1015"],
               ["17\" x 35'","$ 123.00","IF15005","SB00050"],
               ["36\" x 50'","$ 322.00","IF15002","SB00051"],
               ["42\" x 50'","$ 322.00","IF15004","SB00052"],
               ["6' Sample","$ 35.00","S029S01","S029S02"]];
flSlk.F1016 = [["Silk Satin Twill 14mm","","icPro",1,0,"","","","F1016"],
               ["17\" x 35'","$ 122.00","IF15013","S014001"],
               ["36\" x 50'","$ 347.00","IF15012","S014002"],
               ["42\" x 50'","$ 347.00","IF15014","S014003"],
               ["52\" x 50'","$ 382.00","IF15015","S014004"],
               ["6' Sample","$ 35.00","S014S01","S014S02"]];
/*
flSlk.F1017 = [["Sand Washed Silk Twill 18mm","","icPro",1,0,"","","","F1017"],
               ["17\" x 35'","$ 138.00","IF15017","S013001"],
               ["36\" x 50'","$ 395.00","IF15018","S013002"],
               ["42\" x 50'","$ 395.00","IF15020","S013003"],
               ["6' Sample","$ 35.00","S013S01","S013S02"]];
*/
flSlk.F1017 = [["Chiffon 8mm","F1018","icPro",1,0,"","","","F1018"],
               ["17\" x 35'","$ 125.00","IF20010","S015001"],
               ["36\" x 50'","$ 358.00","IF20007","S015002"],
               ["40\" x 50'","$ 358.00","S015003","S015004"],
               ["6' Sample","$ 35.00","S015S01","S015S02"]];
flSlk.F1018 = [["Chinese Crinkled Chiffon 5.5mm","F1019","icPro",1,0,"","","","F1019"],
               ["35\"-40\" x 50'","$ 358.00","S045P36","S045F36"],
               ["6' Sample","$ 35.00","S045P02","S045F02"]];
flSlk.F1019 = [["Organza 8mm","F1020","icPro",1,0,"","","","F1020"],
               ["17\" x 35'","$ 96.00","IF20036","S016001"],
               ["36\" x 50'","$ 274.00","IF20033","S016002"],
               ["40\" x 50'","$ 274.00","IF20035","S016003"],
               ["52\" x 50'","$ 340.00","IF20037","S016004"],
               ["6' Sample","$ 35.00","S016S01","S016S02"]];
flSlk.F1020 = [["Crepe Georgette 10mm","","icPro",1,0,"","","","F1021"],
               ["17\" x 35'","$ 110.00","IF20016","S025001"],
               ["36\" x 50'","$ 314.00","IF20012","S025002"],
               ["40\" x 50'","$ 314.00","IF20014","S025003"],
               ["52\" x 50'","$ 372.00","IF20015","S025004"],
               ["6' Sample","$ 35.00","S025S01","S025S02"]];
               
flSlk.F1021 = [["Silk Gauze 3.5mm","F1024","icPro",1,0,"","","","F1023"],
               ["17\" x 35'","$ 145.00","S044P17","S044F17"],
               ["36\" x 50'","$ 289.00","S044P23","S044F23"],
               ["6' Sample","$ 35.00","S044P01","S044F01"]];
flSlk.F1022 = [["Indian Dupion - White","F1026","icPro",1,0,"","","","F1024"],
               ["17\" x 35'","$ 173.00","IF50039","S020001"],
               ["36\" x 50'","$ 495.00","IF50036","S020002"],
               ["42\" x 50'","$ 495.00","IF50038","S020003"],
               ["6' Sample","$ 35.00","S020S01","S020S02"]];
flSlk.F1023 = [["Chinese Dupion 19mm","F1027","icPro",1,0,"","","","F1025"],
               ["17\" x 35'","$ 124.00","IF50028","S022001"],
               ["36\" x 50'","$ 356.00","S022002","S022003"],
               ["42\" x 50'","$ 356.00","IF50027","S022004"],
               ["6' Sample","$ 35.00","S022S01","S022S02"]];
flSlk.F1024 = [["Bleached Fuji Broadcloth 10lb","F1029","icPro",1,0,"","","","F1027"],
               ["17\" x 35'","$ 136.00","IF50010","S024001"],
               ["36\" x 50'","$ 340.00","S024002","S024003"],
               ["40\" x 50'","$ 340.00","S024004","S024005"],
               ["6' Sample","$ 35.00","S024S01","S024S02"]];
flSlk.F1025 = [["Spun Silk Taffeta","F1030","icPro",1,0,"","","","F1028"],
               ["17\" x 35'","$ 106.00","IF50023","S021001"],
               ["36\" x 50'","$ 303.00","IF50020","S021002"],
               ["42\" x 50'","$ 303.00","IF50022","S021003"],
               ["6' Sample","$ 35.00","S021S01","S021S02"]];
flSlk.F1026 = [["Silk Noil","F1031","icPro",1,0,"","","","F1029"],
               ["17\" x 35'","$ 87.00","IF50018","S018001"],
               ["36\" x 50'","$ 247.00","IF50015","S018002"],
               ["40\" x 50'","$ 247.00","IF50017","S018003"],
               ["6' Sample","$ 35.00","S018S01","S018S02"]];
flSlk.cLastItem = "F1026";

flPly.GoToFirstItem = function() {MenuSelect(this.cFirstItem);}
flPly.cFirstItem = "F2001";
flPly.F2001 = [["Soft Polyester Mesh","F2001","icPly",1,0,"","","","F2001"],
               ["17\" x 35'","$ 86.00","","SB00268"],
               ["24\" x 50'","$ 190.00","","SB00267"],
               ["36\" x 50'","$ 300.00","","SB00269"],
               ["44\" x 50'","$ 350.00","","SB00270"],
               ["54\" x 50'","$ 399.00","","SB00271"],
               ["6' Sample","$ 35.00","","P008S02"]];
/* flPly.F2002 = [["Sheer Ribbed Polyester Mesh","F2001","icPly",1,0,"","","","F2002"],
               ["17\" x 35'","$ 86.00","","P002002"],
               ["24\" x 50'","$ 155.00","","SB00244"],
               ["36\" x 50'","$ 225.00","","P002004"],
               ["44\" x 50'","$ 225.00","","SB00245"],
               ["56\" x 50'","$ 275.00","","SB00246"],
               ["6' Sample","$ 35.00","","P002S02"]];
 */
 flPly.F2002 = [["Polyester Banner","F2001","icPly",1,0,"","","","F2003"],
               ["17\" x 35'","$ 86.00","","SB00263"],
               ["24\" x 50'","$ 165.00","","SB00264"],
               ["36\" x 50'","$ 252.00","","P007003"],
               ["44\" x 50'","$ 278.00","","SB00265"],
               ["56\" x 50'","$ 345.00","","SB00266"],
               ["6' Sample","$ 35.00","","P007S02"]];
flPly.F2003 = [["Bright Polyester Banner","F2001","icPly",1,0,"","","","F2004"],
               ["17\" x 35'","$ 86.00","","SB00248"],
               ["24\" x 50'","$ 165.00","","SB00247"],
               ["36\" x 50'","$ 245.00","","SB00249"],
               ["44\" x 50'","$ 270.00","","SB00250"],
               ["56\" x 50'","$ 295.00","","SB00251"],
               ["6' Sample","$ 35.00","","P003S02"]];
flPly.F2004 = [["Polyester Satin","","icPly",1,0,"","","","F2005"],
               ["17\" x 35'","$ 86.00","","SB00205"],
               ["24\" x 50'","$ 170.00","","SB00204"],
               ["36\" x 50'","$ 250.00","","SB00206"],
               ["44\" x 50'","$ 275.00","","SB00207"],
               ["56\" x 50'","$ 300.00","","SB00208"],
               ["6' Sample","$ 35.00","","P012S02"]];
flPly.F2005 = [["Matte Polyester Satin","F2001","icPly",1,0,"","","","F2006"],
               ["17\" x 35'","$ 86.00","","SB00253"],
               ["24\" x 50'","$ 175.00","","SB00252"],
               ["36\" x 50'","$ 265.00","","SB00254"],
               ["44\" x 50'","$ 290.00","","SB00255"],
               ["58\" x 50'","$ 325.00","","SB00256"],
               ["6' Sample","$ 35.00","","P004S02"]];
flPly.F2006 = [["Med. Luster Hvy. Polyester Satin","","icPly",1,0,"","","","MdLusterHvyPolySatin"],
               ["17\" x 35'","$ 81.00" ,"","P017F17"],
               ["24\" x 50'","$ 155.00","","P017F24"],
               ["36\" x 50'","$ 233.00","","P017F36"],
               ["44\" x 50'","$ 233.00","","P017F42"],
               ["58\" x 50'","$ 256.00","","P017F58"],
               ["6' Sample" ,"$ 35.00" ,"","P017S02"]];
flPly.F2007 = [["Trevira Satin","Treviras","icPly",1,0,"","","","TreviraSatin"],
               ["17\" x 35'","$ 164.00","","P015F17"],
               ["24\" x 50'","$ 230.00","","P015F24"],
               ["36\" x 50'","$ 276.00","","P015F36"],
               ["44\" x 50'","$ 310.00","","P015F42"],
               ["52\" x 50'","$ 355.00","","P015F52"],
               ["6' Sample" ,"$ 38.00" ,"","P015S02"]];
flPly.F2008 = [["High Point Polyester Poplin","","icPly",1,0,"","","","F2007"],
               ["17\" x 35'","$ 86.00","","SB00210"],
               ["24\" x 50'","$ 170.00","","SB00209"],
               ["36\" x 50'","$ 250.00","","SB00211"],
               ["44\" x 50'","$ 275.00","","SB00212"],
               ["56\" x 50'","$ 300.00","","SB00213"],
               ["6' Sample","$ 35.00","","P011S02"]];
flPly.F2009 = [["Matte Polyester Poplin","F2001","icPly",1,0,"","","","F2008"],
               ["17\" x 35'","$ 86.00","","P006002"],
               ["24\" x 50'","$ 165.00","","SB00258"],
               ["36\" x 50'","$ 245.00","","SB00259"],
               ["44\" x 50'","$ 270.00","","SB00260"],
               ["56\" x 50'","$ 292.00","","SB00261"],
               ["6' Sample","$ 35.00","","P006S02"]];
flPly.F2010 = [["Soft Hand Sueded Micro Fiber Polyester","","icPly",1,0,"","","","F2009"],
               ["17\" x 35'","$ 86.00","","P014F17"],
               ["24\" x 50'","$ 155.00","","P014F24"],
               ["36\" x 50'","$ 245.00","","P014F36"],
               ["44\" x 50'","$ 270.00","","P014F42"],
               ["58\" x 50'","$ 292.00","","P014F58"],
               ["6' Sample","$ 35.00","","P014S02"]];
flPly.F2011 = [["Medium Luster Polyester Broadcloth","KnitWarpFire","icPly",1,0,"","","","F2010"],
               ["17\" x 35'","$ 86.00","","SB00238"],
               ["24\" x 50'","$ 155.00","","SB00237"],
               ["36\" x 50'","$ 252.00","","P005003"],
               ["44\" x 50'","$ 278.00","","SB00240"],
               ["58\" x 50'","$ 345.00","","SB00241"],
               ["6' Sample","$ 35.00","","P005S02"]];
flPly.F2012 = [["Classic Polyester Taffeta","","icPly",1,0,"","","","F2011"],
               ["17\" x 35'","$ 86.00","","SB00215"],
               ["24\" x 50'","$ 155.00","","SB00214"],
               ["36\" x 50'","$ 250.00","","SB00216"],
               ["44\" x 50'","$ 275.00","","SB00217"],
               ["58\" x 50'","$ 300.00","","SB00218"],
               ["6' Sample","$ 35.00","","P013S02"]];
flPly.F2013 = [["Polyester Flag","KnitWarpFire","icPly",1,0,"","","","F2012"],
               ["17\" x 35'","$ 86.00","","SB00233"],
               ["24\" x 50'","$ 155.00","","SB00232"],
               ["36\" x 50'","$ 250.00","","SB00234"],
               ["44\" x 50'","$ 275.00","","SB00235"],
               ["58\" x 50'","$ 299.00","","SB00236"],
               ["6' Sample","$ 35.00","","P001S02"]];
flPly.F2014 = [["Polyester Satin Flag","","icPly",1,0,"","","","PolySatinFlag"],
               ["17\" x 35'","$ 86.00","","SB00226"],
               ["24\" x 50'","$ 150.00","","SB00225"],
               ["36\" x 50'","$ 237.00","","SB00227"],
               ["44\" x 50'","$ 262.00","","SB00228"],
               ["58\" x 50'","$ 287.00","","SB00229"],
               ["6' Sample","$ 35.00","","P010S02"]];
flPly.F2015 = [["Double Polyester Georgette","","icPly",1,0,"","","","DoublePolyGeorgette"],
               ["17\" x 35'","$ 90.00" ,"","P020F17"],
               ["24\" x 50'","$ 165.00","","P020F24"],
               ["36\" x 50'","$ 240.00","","P020F36"],
               ["44\" x 50'","$ 240.00","","P020F42"],
               ["54\" x 50'","$ 270.00","","P020F52"],
               ["6' Sample" ,"$ 35.00" ,"","P020S02"]];
flPly.F2016 = [["Polyester Interlock Knit 2700","","icPly",1,0,"","","","PolyInterlockKnit2700"],
               ["17\" x 35'","$ 85.00" ,"","P021F17"],
               ["24\" x 50'","$ 160.00","","P021F24"],
               ["36\" x 50'","$ 235.00","","P021F36"],
               ["44\" x 50'","$ 235.00","","P021F42"],
               ["54\" x 50'","$ 260.00","","P021F54"],
               ["6' Sample" ,"$ 35.00" ,"","P021S02"]];
flPly.F2017 = [["Heavy Polyester Interlock Knit","","icPly",1,0,"","","","P024"],
               ["17\" x 35'","$ 100.00","","P024F17"],
               ["24\" x 50'","$ 180.00","","P024F24"],
               ["36\" x 50'","$ 260.00","","P024F36"],
               ["442\" x 50'","$ 265.00","","P024F42"],
               ["58\" x 50'","$ 275.00","","P024F58"],
               ["6' Sample" ,"$ 35.00" ,"","P024S02"]];
flPly.F2018 = [["Polyester Chiffon","","icPly",1,0,"","","","PolyChiffon"],
               ["17\" x 35'","$ 90.00" ,"","P019F17"],
               ["24\" x 50'","$ 165.00","","P019F24"],
               ["36\" x 50'","$ 240.00","","P019F36"],
               ["44\" x 50'","$ 240.00","","P019F42"],
               ["56\" x 50'","$ 270.00","","P019F56"],
               ["6' Sample" ,"$ 35.00" ,"","P019S02"]];
flPly.F2019 = [["Deco Structure <span class='DeEm'>(Trevira)</span>","Treviras","icPly",1,0,"","","","DecoStructure"],
               ["17\" x 35'","$ 328.00","","P016F17"],
               ["24\" x 50'","$ 440.00","","P016F24"],
               ["36\" x 50'","$ 552.00","","P016F36"],
               ["44\" x 50'","$ 620.00","","P016F42"],
               ["58\" x 50'","$ 710.00","","P016F58"],
               ["6' Sample" ,"$ 50.00" ,"","P016S02"]];
flPly.F2020 = [["Polyester Micro Velour","","icPly",1,0,"","","","F2020"],
               ["17\" x 35'","$ 121.00","","P022F17"],
               ["24\" x 50'","$ 223.00","","P022F24"],
               ["36\" x 50'","$ 325.00","","P022F36"],
               ["44\" x 50'","$ 325.00","","P022F42"],
               ["54\" x 50'","$ 365.00","","P022F56"],
               ["6' Sample" ,"$ 35.00" ,"","P022S02"]];
flPly.F2021 = [["Polyester Knitted Voile","KnitWarpFire","icPly",1,0,"","","","P023"],
               ["17\" x 35'","$ 86.00", "","P023F17"],
               ["24\" x 50'","$ 180.00","","P023F24"],
               ["36\" x 50'","$ 260.00","","P023F36"],
               ["44\" x 50'","$ 270.00","","P023F42"],
               ["58\" x 50'","$ 290.00","","P023F58"],
               ["6' Sample" ,"$ 35.00" ,"","P023S02"]];
flPly.cLastItem = "F2021";
       
flNyl.GoToFirstItem = function() {MenuSelect(this.cFirstItem);}
flNyl.cFirstItem = "F3001";
flGrps.F3001 = [["F3001","5.4oz."],["F3002","7.6oz."]];
 flNyl.F3001 = [["Nylon Lycra 80/20 5.4oz.","","icNyl",2,1,"F3001","Nylon Lycra <span class='DeEm'>(2 weights)</span>","","F3001"],
                ["17\" x 35'","$ 178.00","IF70009","N001001"],
                ["24\" x 50'","$ 345.00","IF70003","N001005"],
                ["36\" x 50'","$ 509.00","IF70008","N001002"],
                ["44\" x 50'","$ 509.00","IF70005","N001003"],
                ["54\" x 50'","$ 560.00","IF70004","N001004"],
                ["6' Sample","$ 35.00","N001S01","N001S02"]];
 flNyl.F3002 = [["Nylon Lycra 84/60 7.4oz.","","icNyl",0,2,"F3001","","","F3002"],
                ["17\" x 35'","$ 212.00","IF70012","N002001"],
                ["24\" x 50'","$ 409.00","IF70013","N002006"],
                ["36\" x 50'","$ 606.00","IF70011","N002002"],
                ["44\" x 50'","$ 606.00","N002003","N002004"],
                ["54\" x 50'","$ 712.00","IF70010","N002005"],
                ["6' Sample","$ 35.00","N002S01","N002S02"]];
 /*
 flNyl.F3003 = [["Nylon Brushed Tricot 170gm./sq. meter","","icNyl",1,0,"","","","F3004"],
                ["36\" x 50'","$ 260.00","N004P29","N004F29"],
                ["6' Sample","$ 35.00","N004P01","N004F01"]];
 */
 
 flNyl.F3003 = [["Nylon Flag 200 Denier <span class='DeEm'>made with Dupont SolarMax&reg;</span>","F3009","icNyl",1,0,"","","","F3009"],
                ["17\" x 35'","$ 80.00","N009P17",""],
                ["24\" x 50'","$ 118.00","N009P24",""],
                ["36\" x 50'","$ 155.00","N009P36",""],
                ["44\" x 50'","$ 180.00","N009P42",""],
                ["54\" x 50'","$ 200.00","N009P54",""],
                ["60\" x 50'","$ 225.00","N009P60",""],
                ["6' Sample","$ 35.00","N009P01",""]];
 flNyl.F3004 = [["Soft Brushed Nylon Woven","","icNyl",1,0,"","","","F3005"],
                ["17\" x 35'","$ 80.00","N010P17","N010F17"],
                ["24\" x 50'","$ 118.00","N010P24","N010F24"],
                ["36\" x 50'","$ 155.00","N010P36","N010F36"],
                ["45\" x 50'","$ 180.00","N010P45","N010F45"],
                ["6' Sample","$ 35.00","N010S01","N010S02"]];
flNyl.cLastItem = "F3004";

flLin.GoToFirstItem = function() {MenuSelect(this.cFirstItem);}
flLin.cFirstItem = "F4001";               
flGrps.F4001 = [["F4001","3.5oz."],["F4002","5.5oz."]];
 flLin.F4001 = [["100% Belgian Linen, 3.5oz. Natural Color","F4001","icCel",2,1,"F4001","100% Belgian Linen, Natural Color <span class='DeEm'>(2 weights)</span>","","F4001"],
                ["17\" x 35'","$ 164.00","L001P17","L001F17"],
                ["24\" x 50'","$ 220.00","L001P24","L001F24"],
                ["36\" x 50'","$ 276.00","L001P36","L001F36"],
                ["44\" x 50'","$ 306.00","L001P42","L001F42"],
                ["54\" x 50'","$ 356.00","L001P56","L001F56"],
                ["6' Sample","$ 35.00","L001P01","L001F01"]];
 flLin.F4002 = [["100% Belgian Linen, 5.5oz. Natural Color","F4001","icCel",2,2,"F4001","","","F4002"],
                ["17\" x 35'","$ 148.00","L002P17","L002F17"],
                ["24\" x 50'","$ 204.00","L002P24","L002F24"],
                ["36\" x 50'","$ 260.00","L002P36","L002F36"],
                ["44\" x 50'","$ 290.00","L002P42","L002F42"],
                ["54\" x 50'","$ 340.00","L002P56","L002F56"],
                ["6' Sample","$ 35.00","L002P01","L002F01"]];
 flLin.F4003 = [["100% Bamboo Twill","","icCel",1,0,"","","","F4003"],
                ["17\" x 35'","$ 148.00","B001P17","B001F17"],
                ["24\" x 50'","$ 204.00","B001P24","B001F24"],
                ["36\" x 50'","$ 260.00","B001P36","B001F36"],
                ["44\" x 50'","$ 290.00","B001P44","B001F44"],
                ["54\" x 50'","$ 340.00","B001P54","B001F54"],
                ["6' Sample","$ 35.00","B001S01","B001S02"]];
 flLin.F4004 = [["100% Bamboo Sheeting","","icCel",1,0,"","","","F4004"],
                ["17\" x 35'","$ 148.00","B002P17","B002F17"],
                ["24\" x 50'","$ 204.00","B002P24","B002F24"],
                ["36\" x 50'","$ 260.00","B002P36","B002F36"],
                ["44\" x 50'","$ 290.00","B002P44","B002F44"],
                ["54\" x 50'","$ 340.00","B002P54","B002F54"],
                ["6' Sample","$ 35.00","B002S01","B002S02"]];
flLin.cLastItem = "F4004";

/*
flWol.GoToFirstItem = function() {MenuSelect(this.cFirstItem);}
flWol.cFirstItem = "F5001";
flWol.F5001 = [["Wool Flannel","","icPro",1,0,"","","","F5001"],
               ["17\" x 35'","$ 339.00","IF61002","W001001"],
               ["36\" x 50'","$ 967.00","IF61001","W001002"],
               ["42\" x 50'","$ 967.00","W001003","W001004"],
               ["52\" x 50'","$ 967.00","IF61000","W001005"],
               ["6' Sample","$ 99.00","W001S01","W001S02"]];
flWol.F5002 = [["Wool Gabardine","","icPro",1,0,"","","","F5002"],
               ["17\" x 35'","$ 358.00","IF61005","W002001"],
               ["36\" x 50'","$ 1024.00","IF61004","W002002"],
               ["42\" x 50'","$ 1024.00","W002003","W002004"],
               ["52\" x 50'","$ 1024.00","IF61003","W002005"],
               ["6' Sample","$ 99.00","W002S01","W002S02"]];
flWol.cLastItem = "F5002";
*/
/*
flJcq.GoToFirstItem = function() {MenuSelect(this.cFirstItem);}
flJcq.cFirstItem = "F6001";
flJcq.F6001 = [["Zebra 16mm","","icPro",1,0,"","","F6002","F6002"],
               ["17\" x 35'","$ 126.00","S034P11","S034F11"],
               ["36\" x 50'","$ 360.00","S034P23","S034F23"],
               ["42\" x 50'","$ 360.00","S034P31","S034F31"],
               ["6' Sample","$ 35.00","S034PS1","S034FS1"]];
flJcq.F6002 = [["Crinkled Jacquard 16mm","","icPro",1,0,"","","F6004","F6004"],
               ["17\" x 35'","$ 126.00","S036P11","S036F11"],
               ["36\" x 50'","$ 360.00","S036P23","S036F23"],
               ["42\" x 50'","$ 360.00","S036P31","S036F31"],
               ["6' Sample","$ 35.00","S036PS1","S036FS1"]];
flJcq.F6003 = [["Dots Silk Jacquard","","icPro",1,0,"","","F6005","F6005"],
               ["17\" x 35'","$ 126.00","S037P11","S037F11"],
               ["36\" x 50'","$ 360.00","S037P23","S037F23"],
               ["42\" x 50'","$ 360.00","S037P31","S037F31"],
               ["6' Sample","$ 35.00","S037PS1","S037FS1"]];
flJcq.F6004 = [["Tropical Flowers 16mm","","icPro",1,0,"","","F6007","F6007"],
               ["17\" x 35'","$ 126.00","S042P11","S042F11"],
               ["36\" x 50'","$ 360.00","S042P23","S042F23"],
               ["42\" x 50'","$ 360.00","S042P31","S042F31"],
               ["6' Sample","$ 35.00","S042PS1","S042FS1"]];
flJcq.cLastItem = "F6004";
*/
function MenuLinkHov(ev) 
{
	ev 		= NormalizeEvent(ev);
  	var oEl = ev.target;
  	
  	if ( (oEl.tagName=="TD" && oEl.className != "mlSpacer"))
  	{
  		oEl.className = "MenuLink mlHov";
  	}
  	else if (oEl.tagName=="SPAN")
  	{
  		oEl.parentNode.className = "MenuLink mlHov";
  	}
  	else if (oEl.tagName=="IMG")
  	{
  		oEl.parentNode.className = "MenuLink mlHov";
  	}
}

function MenuLinkOut(ev) 
{
	ev 		= NormalizeEvent(ev);
  	var oEl = ev.target;
  	
  	if (oEl.tagName=="TD" && oEl.className != "mlSpacer")
  	{
  		oEl.className = "MenuLink";
  	}
  	else if (oEl.tagName=="SPAN")
  	{
  		oEl.parentNode.className = "MenuLink";
  	}
  	else if (oEl.tagName=="IMG")
  	{
  		oEl.parentNode.className = "MenuLink";
  	}
}

function BuildMenus() 
{ 
	BuildMenu(flCot, "mbCot"); 
  	BuildMenu(flSlk, "mbSlk"); 
	//  BuildMenu(flJcq, "mbJcq"); 
  	BuildMenu(flPly, "mbPly"); 
  	BuildMenu(flNyl, "mbNyl"); 
  	BuildMenu(flLin, "mbLin"); 
	//  BuildMenu(flWol, "mbWol"); 
}
function BuildMenu(oList, cMenuId, lDebug) 
{
	var cMU, cFab, cItem;
	
	cMU = "";
		
	for (var cFab in oList) 
	{
		if (typeof oList[cFab]=="object" && oList[cFab] instanceof Array) 
		{				
			if (oList[cFab][0][hcIdxFlag]) 
			{
				if (oList[cFab][0][hcIdxFlag]==1) 
				{ 
					cItem = oList[cFab][0][hcDesc]; 
				} 
				else 
				{ 
					cItem = oList[cFab][0][hcGroupDesc]; 
				}
				cMU = cMU + "<p class='MenuItem' onclick=\"MenuSelect('" + cFab + "');\">" + cItem + "</p>";
			}
		}
	}
	document.getElementById(cMenuId).innerHTML = cMU;
}
function FabMenuHov(ev) 
{
	ev 		= NormalizeEvent(ev);
  	var oEl = ev.target;
  
  	if (oEl.tagName=="P")
  	{
  		oEl.className = "MenuItem miHov"; 
  	}
  	else if (oEl.tagName=="SPAN")
  	{
  		oEl.parentNode.className = "MenuItem miHov"; 
  	}
}

function FabMenuOut(ev) 
{
	ev  = NormalizeEvent(ev);
  	oEl = ev.target;
  	
  	if (oEl.tagName=="P")
  	{
  		oEl.className = "MenuItem"; 
  	}
  	else if (oEl.tagName=="SPAN")
  	{
  		oEl.parentNode.className = "MenuItem"; 
  	}
}

function PrevFab(cCurFab) 
{
	var cPrevId, oList

  	cPrevId = cCurFab.substr(1) - 1;
  	cPrevId = cPrevId.toString();
  	cPrevId = "F" + cPrevId.pad("0",4);
  	oList 	= flType[cCurFab.substr(0,2)];
  
  	if (oList[cPrevId]) 
  	{
  		UpdateFabric(cPrevId, oList); 
  	}
  	else
  	{ 
  		UpdateFabric(oList.oPrevList.cLastItem, oList.oPrevList); 
  	}
}

function NextFab(cCurFab) 
{
  	var cNextId, oList

  	cNextId = parseInt(cCurFab.substr(1),10) + 1;
  	cNextId = cNextId.toString();
  	cNextId = "F" + cNextId.pad("0",4);
  	oList = flType[cCurFab.substr(0,2)];
  
  	if (oList[cNextId])
  	{
  		UpdateFabric(cNextId, oList); 
  	}
  	else
  	{
  		UpdateFabric(oList.oNextList.cFirstItem, oList.oNextList); 
  	}
}
function MenuSelect(cFabId) 
{
	oList = flType[cFabId.substr(0,2)];
  
  	UpdateFabric(cFabId, oList);
}

function UpdateFabric(cFabId, oList) 
{
	var i, cRows = cFabListHdr, cInkId, oTable, cMU, oDiv, cCapImg;
  
  	document.getElementById("docState").value = cFabId;
  
  	BuildTable(cFabId, oList);
  
  	cCapImg = "/images/Captions/Fabrics/" + oList[cFabId][0][hcCapImg] + ".jpg";
  
  	document.getElementById("c11_Title").src = cCapImg;
  	document.getElementById("c12_Title").src = cCapImg;

  	cCurFab = cFabId;
    
  	oDiv = document.getElementById("FabDesc")
  
  	if (oList[cFabId][0][hcTxtId]) 
  	{
    	oDiv.innerHTML = "<p>" + flDesc[oList[cFabId][0][hcTxtId]] + "</p>"; 
    	oDiv.style.display = "block"; 
    }
  	else 
  	{
    	oDiv.innerHTML = ""; 
    	oDiv.style.display = "none"; 
    }
    
  	oDiv = document.getElementById("FabGrps");
  
  	if (oList[cFabId][0][4])
  	{
  		BuildGroups(cFabId); oDiv.style.display = "block"; 
  	}
  	else
  	{
  		oDiv.innerHTML = ""; oDiv.style.display = "none"; 
  	}
    
  	cInkId = oList[cFabId][0][hcInkId];

  	document.getElementById("icCel").style.display = "none";
  	document.getElementById("icPro").style.display = "none";
  	document.getElementById("icPly").style.display = "none";
  	document.getElementById("icNyl").style.display = "none";
  	document.getElementById(cInkId).style.display = "block";
  
 	/*==== This is here to fix a problem in Firefox. When the table floated up due to changes in the doc above
           the ul and LinkArrows were not positioning properly. Rewriting the innerHTML each time seems to work ====*/
  	cMU = "<h4 class=\"c12_fpCap\">Treated with FabriSign:</h4>" + 
          "<img class=\"c12_Logo\" src=\"/images/logos/jacquard_inks_std.jpg\">" + 
          "<ul class=\"i\">" + 
          "<li class=\"t\"><a href=\"/products/inks/jcqacid/\">Acid Inks <img src=\"/images/other/linkarrow1.gif\" class=\"LinkArrow1\"></a></li>" +
          "<li class=\"t\"><a href=\"/products/inks/jcqreactive/\">Reactive Inks <img src=\"/images/other/linkarrow1.gif\" class=\"LinkArrow1\"></a></li>" +
          "<li class=\"t\"><a href=\"/products/inks/jcqpigment/\">Pigment Ink <img src=\"/images/other/linkarrow1.gif\" class=\"LinkArrow1\"></a></li>" + 
          "</ul>" +
          "<p><a href=\"/products/inks/cibacibacron/\">Huntsman Novacron MI <img src=\"/images/other/linkarrow1.gif\" class=\"LinkArrow1\"></a></p>" +
          "<p><a href=\"/products/inks/cibalanaset/\">Huntsman Lanaset SIHS <img src=\"/images/other/linkarrow1.gif\" class=\"LinkArrow1\"></a></p>" +
          "<p>Or any other waterbased ink</p>";
  
  	document.getElementById("icfCot").innerHTML = cMU;
  
  	/*====End of fix====*/

  	BuildSwatch(oList, cFabId);
	
	//alert(cFabId.substr(0,2));
	if ( cFabId.substr(0,2) != "F0" && cFabId.substr(0,2) != "F4" )
	{
	  	document.getElementById("c11_New").style.display = "none";	
	}
	else
	{		
		document.getElementById("c11_New").style.display = "block";	
	}
	
	oDiv = document.getElementById("c11_test");
	
	if ( cFabId.substr(0,2) == "F2"	) {
		
		cTxt = "<p style='margin:25px 0 3px 0;'>See Also:</p><p><a href='/products/fabric/polyesterdtpd/'>Polyesters for Direct To Print with Disperse Dyes</a></p>";
	
		oDiv.innerHTML = cTxt;
		
	} else {
	
		oDiv.innerHTML = '';
	}
}

function BuildTable(cFabId, oList)
{
  	var oRow, i, oCell, cTxt, cBeg, cEnd, oNode;
  	
  	var oTable = document.getElementById("FabList");
  	var oPat   = /(.+)<1>(.+)<1>/;
  
  	while (oTable.rows.length > 1)
  	{
  		oTable.deleteRow(1);  
  	}

  	for (i=1; i<oList[cFabId].length; i++) 
  	{  
    	oRow = oTable.insertRow(oTable.rows.length);

    	oCell = oRow.insertCell(oRow.cells.length);
    	oCell.className = "RowHdr";
    	cTxt = oList[cFabId][i][hcDesc];
    		
    	if (!oPat.test(cTxt))
    	{
    		oCell.appendChild(document.createTextNode(cTxt)); 
    	}
    	else 
    	{
      		cBeg = RegExp.$1;
      		cEnd = RegExp.$2;
      		
      		oCell.appendChild(document.createTextNode(cBeg));
      		
      		oNode = document.createElement("br");
      		
      		oCell.appendChild(oNode);
      		oCell.appendChild(document.createTextNode(cEnd));
      		oCell.className = "RowHdr Tall";
    	}
    
    	oCell = oRow.insertCell(oRow.cells.length);
    	oCell.appendChild(document.createTextNode(oList[cFabId][i][flcPrice]));
    	oCell.className = "Data dPrice";
    
    	oCell = oRow.insertCell(oRow.cells.length);
    	oCell.appendChild(document.createTextNode(oList[cFabId][i][flcFabNum]));
    	oCell.className = "Data";

    	oCell = oRow.insertCell(oRow.cells.length);
    	oCell.appendChild(document.createTextNode(oList[cFabId][i][flcProNum]));
    	oCell.className = "Data";

    	oRow.className = "Data";
		
  	}
}

function BuildGroups(cFabId) 
{
	var cBtnTxt, cBtnFabId, iSelBtn, cMU, oList, cGrpId, cOnClick, cOnMOver, cOnMOut
  
  	cMU     = "<table class='FabGrps'><tr>";
  	oList   = flType[cFabId.substr(0,2)];
  	iSelBtn = oList[cFabId][0][hcGroupFlag] - 1;
  	cGrpId  = oList[cFabId][0][hcGroupId];
    
  	for (i=0; i<flGrps[cGrpId].length; i++) 
  	{
    	cBtnTxt   = flGrps[cGrpId][i][1];
    	cBtnFabId = flGrps[cGrpId][i][0];
    	cOnClick  = "onclick=\"MenuSelect('" + cBtnFabId + "');\"";
    	cOnMOver  = "onmouseover=\"this.className = 'FabGrp fgHov'\";";
    	cOnMOut   = "onmouseout=\"this.className = 'FabGrp fgStd'\";";
    
    	if (i==iSelBtn) 
    	{
      		cMU = cMU + "<td class='FabGrp fgSel'>" + cBtnTxt + "</td>"; }
    	else
    	{
      		cMU = cMU + "<td class='FabGrp fgStd' " + cOnClick + " " + cOnMOver + " " + cOnMOut + ">" + cBtnTxt + "</td>"; 
      	}
  	}
  	
  	cMU = cMU + "</tr></table>";
  	document.getElementById("FabGrps").innerHTML = cMU;
}

function BuildSwatch(oList, cFabId) 
{
	var cName, cMU, oDiv = document.getElementById("FabSw");
  
  	cName = oList[cFabId][0][hcSwatch]
  
  	if (cName) 
  	{ 
    	cMU =   "<table><tr><td id='fsImg'>"
        	  + "<img src='/images/swatches/" + cName + ".jpg'></td>"
          	  + "<td id='fsCap'>Actual size: 5&quot; x 5&quot;</td></tr></table>"; 
	}
  	else 
  	{
    	cMU = ""; 
    }
    
  	oDiv.innerHTML = cMU;
}

function ShowMenu(oMLink) 
{
 	var cMenuId, oDiv, nOptHt, nWinHt;
  	
  	cMenuId = "mb" + oMLink.id.substr(2);
  	oDiv    = document.getElementById(cMenuId);
  	nOptHt  = oDiv.childNodes.length * 19.5;
  	nWinHt  = GetWindowHeight() - 10;
  
  	oDiv.style.height = nOptHt;
  
  	if (xBottom(oDiv) > nWinHt)
  	{
  		oDiv.style.height = nWinHt - xTop(oDiv); 
  	}
  	if (xHeight(oDiv) < 150)
  	{
  		oDiv.style.height = 150; 
  	}
  
  	oDiv.scrollTop        = 0;
  	oDiv.style.visibility = "visible";
}

function HideMenus(ev) 
{
	ev 			= NormalizeEvent(ev);
  	var oMenus 	= document.getElementById("mBods").getElementsByTagName("div");
  	
  	for (var i=0; i<oMenus.length; i++)
  	{
  		oMenus[i].style.visibility = "hidden"; 
  	}
  
  	if (/MenuLink/.test(ev.target.className))
  	{
  		ShowMenu(ev.target, ev); 
  	}
}