
// this function is used to fill the category list on load
function fillType()
{

  var type = $("#product-type");

  removeOptions(type);

  addOption(type, "Interior Paint", "Interior Paint", "");
  addOption(type, "Exterior Paint", "Exterior Paint", "");
  addOption(type, "Primers", "Primers", "");
  addOption(type, "Varnishes", "Varnishes", "");
  addOption(type, "Professional Coatings", "Professional Coatings", "");
  addOption(type, "Industrial Coatings", "Industrial Coatings", "");

}

// ON selection of category this function will work
function fillName()
{

  var name = $("#product-name");

  $(name).show();
  $("#product-sheen").hide();
  removeOptions(name);

  switch ($("#product-type").val())
  {

  case 'Interior Paint':
    addOption(name,"Platinum Interior Paint","Platinum Interior Paint", "");
    addOption(name,"Bright Life Interior Paint","Bright Life Interior Paint", "");
    addOption(name,"Ceiling Paint", "Ceiling Paint", "");
    addOption(name,"Kitchen & Bath Enamel", "Kitchen & Bath Enamel", "");
    addOption(name,"Cabinet & Trim Enamel", "Cabinet & Trim Enamel", "");
    addOption(name,"Floor & Porch Enamel", "Floor & Porch Enamel", "");
  break;

  case 'Exterior Paint':
    addOption(name,"Platinum Exterior Paint", "Platinum Exterior Paint", "");
    addOption(name,"Great Life Exterior Paint", "Great Life Exterior Paint", "");
    addOption(name,"Great Outdoors Exterior Stains", "Great Outdoors Exterior Stains", "");
    addOption(name,"Floor & Porch Enamel", "Floor & Porch Enamel", "");
  break;

  case 'Primers':
    addOption(name,"TPS Interior Primers","TPS Interior Primers", "");
    addOption(name,"TPS Exterior Primers","TPS Exterior Primers", "");
    addOption(name,"TPS Interior / Exterior Primers","TPS Interior / Exterior Primers", "");
  break;

  case 'Varnishes':
    addOption(name,"All", "All", "");
  break;

  case 'Professional Coatings':
    addOption(name,"ProLine Supreme Interior Coatings", "ProLine Supreme Interior Coatings", "");
    addOption(name,"ProLine Premium Interior Coatings", "ProLine Premium Interior Coatings", "");
    addOption(name,"ProLine Interior Coatings", "ProLine Interior Coatings", "");
    addOption(name,"ProLine Supreme Exterior Coatings", "ProLine Supreme Exterior Coatings", "");
    addOption(name,"ProLine Premium Exterior Coatings", "ProLine Premium Exterior Coatings", "");
    addOption(name,"ProLine Exterior Coatings", "ProLine Exterior Coatings", "");
    addOption(name,"Stretch Coat Masonry Coatings", "Stretch Coat Masonry Coatings", "");
    addOption(name,"Interior Primers & Fillers", "Interior Primers & Fillers", "");
    addOption(name,"Exterior Primers & Fillers", "Exterior Primers & Fillers", "");
    addOption(name,"Caulk", "Caulk", "");
    addOption(name,"Marking Paints", "Marking Paints", "");
  break;

  case 'Industrial Coatings':
    addOption(name,"Acrylic Enamels", "Acrylic Enamels", "");
    addOption(name,"Alkyd Enamels", "Alkyd Enamels", "");
    addOption(name,"Epoxies", "Epoxies", "");
    addOption(name,"Primers", "Primers", "");
    addOption(name,"Aerosols", "Aerosols", "");
  break;

  }

}

// ON selection of Prod Name this function will call the MSDS sheet
function fillSheen()
{

  var sheen = $("#product-sheen");
  var paintdocs = "http://www.paintdocs.com/webmsds/webPDF.jsp?SITEID=MSCONS&prodno=";

  $(sheen).show();

  removeOptions(sheen);

  switch ($("#product-name").val())
  {

  case 'Platinum Interior Paint':
    addOption(sheen,paintdocs+"MSP211100&doctype=MSDS&lang=E", "Flat - Bright White");
    addOption(sheen,paintdocs+"MSP211101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP211104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP212100&doctype=MSDS&lang=E", "Eggshell - Bright White");
    addOption(sheen,paintdocs+"MSP212101&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP212104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP212105&doctype=MSDS&lang=E", "Eggshell - Neutral Base");
    addOption(sheen,paintdocs+"MSP213100&doctype=MSDS&lang=E", "Satin - Bright White");
    addOption(sheen,paintdocs+"MSP213101&doctype=MSDS&lang=E", "Satin - White");
    addOption(sheen,paintdocs+"MSP213104&doctype=MSDS&lang=E", "Satin - Deep Base");
    addOption(sheen,paintdocs+"MSP213105&doctype=MSDS&lang=E", "Satin - Neutral Base");
    addOption(sheen,paintdocs+"MSP217101&doctype=MSDS&lang=E", "Alkyd Satin - White");
  break;

  case 'Bright Life Interior Paint':
    addOption(sheen,paintdocs+"MSP221100&doctype=MSDS&lang=E", "Flat - Bright White");
    addOption(sheen,paintdocs+"MSP221101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP221104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP222100&doctype=MSDS&lang=E", "Eggshell - Bright White");
    addOption(sheen,paintdocs+"MSP222101&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP222104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP222105&doctype=MSDS&lang=E", "Eggshell - Neutral Base");
    addOption(sheen,paintdocs+"MSP223100&doctype=MSDS&lang=E", "Satin - Bright White");
    addOption(sheen,paintdocs+"MSP223101&doctype=MSDS&lang=E", "Satin - White");
    addOption(sheen,paintdocs+"MSP223104&doctype=MSDS&lang=E", "Satin - Deep Base");
    addOption(sheen,paintdocs+"MSP223105&doctype=MSDS&lang=E", "Satin - Neutral Base");
    addOption(sheen,paintdocs+"MSP227101&doctype=MSDS&lang=E", "Alkyd Satin - White");
    addOption(sheen,paintdocs+"MSP227104&doctype=MSDS&lang=E", "Alkyd Satin - Deep Base");
    addOption(sheen,paintdocs+"MSP227105&doctype=MSDS&lang=E", "Alkyd Satin - Neutral Base");
    addOption(sheen,paintdocs+"MSP228101&doctype=MSDS&lang=E", "Alkyd - White");
  break;

  case 'Ceiling Paint':
    addOption(sheen,paintdocs+"MSP321000&doctype=MSDS&lang=E", "Best Latex - Bright White");
    addOption(sheen,paintdocs+"MSP321001&doctype=MSDS&lang=E", "Best Latex - White");
    addOption(sheen,paintdocs+"MSP331001&doctype=MSDS&lang=E", "Better Latex - White");
  break;

  case 'Kitchen & Bath Enamel':
    addOption(sheen,paintdocs+"MSP342101&doctype=MSDS&lang=E", "Satin - White");
  break;

  case 'Cabinet & Trim Enamel':
    addOption(sheen,paintdocs+"MSP353101&doctype=MSDS&lang=E", "Semi-Gloss - White");
  break;

  case 'Floor & Porch Enamel':
    addOption(sheen,paintdocs+"MSP363001&doctype=MSDS&lang=E", "Satin - White");
    addOption(sheen,paintdocs+"MSP363104&doctype=MSDS&lang=E", "Satin - Deep Base");
    addOption(sheen,paintdocs+"MSP363105&doctype=MSDS&lang=E", "Satin - Neutral Base");
    addOption(sheen,paintdocs+"MSP363032&doctype=MSDS&lang=E", "Satin - Country Brown");
    addOption(sheen,paintdocs+"MSP363071&doctype=MSDS&lang=E", "Satin - Dove Gray");
    addOption(sheen,paintdocs+"MSP363076&doctype=MSDS&lang=E", "Satin - Patio Gray");
    addOption(sheen,paintdocs+"MSP363086&doctype=MSDS&lang=E", "Satin - Red Leaf");
    addOption(sheen,paintdocs+"MSP368001&doctype=MSDS&lang=E", "Alkyd Gloss - White");
    addOption(sheen,paintdocs+"MSP368104&doctype=MSDS&lang=E", "Alkyd Gloss - Deep Base");
    addOption(sheen,paintdocs+"MSP368105&doctype=MSDS&lang=E", "Alkyd Gloss - Neutral Base");
    addOption(sheen,paintdocs+"MSP368032&doctype=MSDS&lang=E", "Alkyd Gloss - Country Brown");
    addOption(sheen,paintdocs+"MSP368071&doctype=MSDS&lang=E", "Alkyd Gloss - Dove Gray");
    addOption(sheen,paintdocs+"MSP368076&doctype=MSDS&lang=E", "Alkyd Gloss - Patio Gray");
    addOption(sheen,paintdocs+"MSP368086&doctype=MSDS&lang=E", "Alkyd Gloss - Red Leaf");
  break;

  case 'Platinum Exterior Paint':
    addOption(sheen,paintdocs+"MSP111100&doctype=MSDS&lang=E", "Flat - Bright White");
    addOption(sheen,paintdocs+"MSP111101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP111104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP111105&doctype=MSDS&lang=E", "Flat - Neutral Base");
    addOption(sheen,paintdocs+"MSP112100&doctype=MSDS&lang=E", "Eggshell - Bright White");
    addOption(sheen,paintdocs+"MSP112100&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP112104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP112105&doctype=MSDS&lang=E", "Eggshell - Neutral Base");
    addOption(sheen,paintdocs+"MSP113100&doctype=MSDS&lang=E", "Satin - Bright White");
    addOption(sheen,paintdocs+"MSP113101&doctype=MSDS&lang=E", "Satin - White");
    addOption(sheen,paintdocs+"MSP113104&doctype=MSDS&lang=E", "Satin - Deep Base");
    addOption(sheen,paintdocs+"MSP113105&doctype=MSDS&lang=E", "Satin - Neutral Base");
  break;

  case 'Great Life Exterior Paint':
    addOption(sheen,paintdocs+"MSP121100&doctype=MSDS&lang=E", "Flat - Bright White");
    addOption(sheen,paintdocs+"MSP121101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP121104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP121105&doctype=MSDS&lang=E", "Flat - Neutral Base");
    addOption(sheen,paintdocs+"MSP121044&doctype=MSDS&lang=E", "Flat - Villa Black");
    addOption(sheen,paintdocs+"MSP122100&doctype=MSDS&lang=E", "Eggshell - Bright White");
    addOption(sheen,paintdocs+"MSP122101&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP122104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP122105&doctype=MSDS&lang=E", "Eggshell - Neutral Base");
    addOption(sheen,paintdocs+"MSP123100&doctype=MSDS&lang=E", "Satin - Bright White");
    addOption(sheen,paintdocs+"MSP123101&doctype=MSDS&lang=E", "Satin - White");
    addOption(sheen,paintdocs+"MSP123104&doctype=MSDS&lang=E", "Satin - Deep Base");
    addOption(sheen,paintdocs+"MSP123105&doctype=MSDS&lang=E", "Satin - Neutral Base");
    addOption(sheen,paintdocs+"MSP123044&doctype=MSDS&lang=E", "Satin - Villa Black");
    addOption(sheen,paintdocs+"MSP128001&doctype=MSDS&lang=E", "Alkyd Gloss - White");
    addOption(sheen,paintdocs+"MSP128104&doctype=MSDS&lang=E", "Alkyd Gloss - Deep Base");
    addOption(sheen,paintdocs+"MSP128105&doctype=MSDS&lang=E", "Alkyd Gloss - Neutral Base");
  break;

  case 'Great Outdoors Exterior Stains':
    addOption(sheen,paintdocs+"MSP401101&doctype=MSDS&lang=E", "Solid Deck - White");
    addOption(sheen,paintdocs+"MSP401104&doctype=MSDS&lang=E", "Solid Deck - Deep Base");
    addOption(sheen,paintdocs+"MSP401105&doctype=MSDS&lang=E", "Solid Deck - Neutral Base");
    addOption(sheen,paintdocs+"MSP451101&doctype=MSDS&lang=E", "Solid Siding - White");
    addOption(sheen,paintdocs+"MSP451104&doctype=MSDS&lang=E", "Solid Siding - Deep Base");
    addOption(sheen,paintdocs+"MSP451105&doctype=MSDS&lang=E", "Solid Siding - Neutral Base");
    addOption(sheen,paintdocs+"MSP425101&doctype=MSDS&lang=E", "Alkyd Solid - White");
    addOption(sheen,paintdocs+"MSP425104&doctype=MSDS&lang=E", "Alkyd Solid - Deep Base");
    addOption(sheen,paintdocs+"MSP425105&doctype=MSDS&lang=E", "Alkyd Solid - Neutral Base");
    addOption(sheen,paintdocs+"MSP445006&doctype=MSDS&lang=E", "Alkyd Semi-Transparent - Neutral Base");
  break;

  case 'TPS Interior Primers':
    addOption(sheen,paintdocs+"MSP301185&doctype=MSDS&lang=E", "Latex - White");
    addOption(sheen,paintdocs+"MSP301186&doctype=MSDS&lang=E", "Latex Deeptone - Deeptone Base");
    addOption(sheen,paintdocs+"MSP301187&doctype=MSDS&lang=E", "Multi-Surface Undercoater - White");
    addOption(sheen,paintdocs+"MSP301181&doctype=MSDS&lang=E", "Alkyd Stain Blocker - White");
    addOption(sheen,paintdocs+"MSP305183&doctype=MSDS&lang=E", "Lacquer Undercoater - Deep Base");
    addOption(sheen,paintdocs+"MSP305184&doctype=MSDS&lang=E", "Alkyd Enamel Undercoater - Neutral Base");
  break;

  case 'TPS Exterior Primers':
    addOption(sheen,paintdocs+"MSP311191&doctype=MSDS&lang=E", "Latex - White");
    addOption(sheen,paintdocs+"MSP311196&doctype=MSDS&lang=E", "Latex Deeptone - Deeptone Base");
    addOption(sheen,paintdocs+"MSP315190&doctype=MSDS&lang=E", "Alkyd Wood - White");
  break;

  case 'TPS Interior / Exterior Primers':
    addOption(sheen,paintdocs+"MSP301188&doctype=MSDS&lang=E", "Acrylic Bonding - White");
    addOption(sheen,paintdocs+"MSP305180&doctype=MSDS&lang=E", "Latex Stain Blocker - White");
  break;

  case 'All':
    addOption(sheen,paintdocs+".07248659&doctype=MSDS&lang=E", "Varnish - Clear Satin");
    addOption(sheen,paintdocs+".07248659&doctype=MSDS&lang=E", "Varnish - Clear Gloss");
    addOption(sheen,paintdocs+".07247540&doctype=MSDS&lang=E", "Gloss Varnish - Clear");
    addOption(sheen,paintdocs+".07248041&doctype=MSDS&lang=E", "Sanding Sealer - Clear");
  break;

  case 'ProLine Supreme Interior Coatings':
    addOption(sheen,paintdocs+"MSP701100&doctype=MSDS&lang=E", "Flat - Bright White");
    addOption(sheen,paintdocs+"MSP701101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP701104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP702100&doctype=MSDS&lang=E", "Eggshell - Bright White");
    addOption(sheen,paintdocs+"MSP702100&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP702104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP703100&doctype=MSDS&lang=E", "Semi-Gloss - Bright White");
    addOption(sheen,paintdocs+"MSP703101&doctype=MSDS&lang=E", "Semi-Gloss - White");
    addOption(sheen,paintdocs+"MSP703104&doctype=MSDS&lang=E", "Semi-Gloss - Deep Base");
  break;

  case 'ProLine Premium Interior Coatings':
    addOption(sheen,paintdocs+"MSP711100&doctype=MSDS&lang=E", "Flat - Bright White");
    addOption(sheen,paintdocs+"MSP711101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP711104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP701011&doctype=MSDS&lang=E", "Flat - Antique White");
    addOption(sheen,paintdocs+"MSP701040&doctype=MSDS&lang=E", "Flat - Black");
    addOption(sheen,paintdocs+"MSP712100&doctype=MSDS&lang=E", "Eggshell - Bright White");
    addOption(sheen,paintdocs+"MSP712100&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP712104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP712011&doctype=MSDS&lang=E", "Eggshell - Antique White");
    addOption(sheen,paintdocs+"MSP713100&doctype=MSDS&lang=E", "Semi-Gloss - Bright White");
    addOption(sheen,paintdocs+"MSP713101&doctype=MSDS&lang=E", "Semi-Gloss - White");
    addOption(sheen,paintdocs+"MSP713104&doctype=MSDS&lang=E", "Semi-Gloss - Deep Base");
    addOption(sheen,paintdocs+"MSP713011&doctype=MSDS&lang=E", "Semi-Gloss - Antique White");
    addOption(sheen,paintdocs+"MSP715101&doctype=MSDS&lang=E", "Alkyd Flat - White");
    addOption(sheen,paintdocs+"MSP716101&doctype=MSDS&lang=E", "Alkyd Eggshell - White");
    addOption(sheen,paintdocs+"MSP717101&doctype=MSDS&lang=E", "Alkyd Semi-Gloss - White");
    addOption(sheen,paintdocs+"MSP751001&doctype=MSDS&lang=E", "Dry Fall - Flat White");
    addOption(sheen,paintdocs+"MSP753001&doctype=MSDS&lang=E", "Dry Fall - Semi-Gloss White");
    addOption(sheen,paintdocs+"MSP755001&doctype=MSDS&lang=E", "Alkyd Dry Fall - Flat White");
    addOption(sheen,paintdocs+"MSP757001&doctype=MSDS&lang=E", "Alkyd Dry Fall - Semi-Gloss White");
  break;

  case 'ProLine Interior Coatings':
    addOption(sheen,paintdocs+"MSP717101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP721011&doctype=MSDS&lang=E", "Flat - Antique White");
    addOption(sheen,paintdocs+"MSP721013&doctype=MSDS&lang=E", "Flat - Mission White");
    addOption(sheen,paintdocs+"MSP723101&doctype=MSDS&lang=E", "Semi-Gloss - White");
    addOption(sheen,paintdocs+"MSP723011&doctype=MSDS&lang=E", "Semi-Gloss - Antique White");
    addOption(sheen,paintdocs+"MSP723013&doctype=MSDS&lang=E", "Semi-Gloss - Mission White");
    addOption(sheen,paintdocs+"MSP641001&doctype=MSDS&lang=E", "I/E Flat - White");
  break;

  case 'ProLine Supreme Exterior Coatings':
    addOption(sheen,paintdocs+"MSP601101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP601104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP602101&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP602104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP603101&doctype=MSDS&lang=E", "Semi-Gloss - White");
    addOption(sheen,paintdocs+"MSP603104&doctype=MSDS&lang=E", "Semi-Gloss - Deep Base");
  break;

  case 'ProLine Premium Exterior Coatings':
    addOption(sheen,paintdocs+"MSP611101&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP611104&doctype=MSDS&lang=E", "Flat - Deep Base");
    addOption(sheen,paintdocs+"MSP612101&doctype=MSDS&lang=E", "Eggshell - White");
    addOption(sheen,paintdocs+"MSP612104&doctype=MSDS&lang=E", "Eggshell - Deep Base");
    addOption(sheen,paintdocs+"MSP613101&doctype=MSDS&lang=E", "Semi-Gloss - White");
    addOption(sheen,paintdocs+"MSP613104&doctype=MSDS&lang=E", "Semi-Gloss - Deep Base");
    addOption(sheen,paintdocs+"MSP715101&doctype=MSDS&lang=E", "Alkyd Flat - White");
    addOption(sheen,paintdocs+"MSP716101&doctype=MSDS&lang=E", "Alkyd Eggshell - White");
    addOption(sheen,paintdocs+"MSP717101&doctype=MSDS&lang=E", "Alkyd Semi-Gloss - White");
  break;

  case 'ProLine Exterior Coatings':
    addOption(sheen,paintdocs+"MSP621001&doctype=MSDS&lang=E", "Flat - White");
    addOption(sheen,paintdocs+"MSP621001&doctype=MSDS&lang=E", "Flat - Antique White");
    addOption(sheen,paintdocs+"MSP621001&doctype=MSDS&lang=E", "Flat - Mission White");
    addOption(sheen,paintdocs+"MSP641001&doctype=MSDS&lang=E", "I/E Flat - White");
  break;

  case 'Stretch Coat Masonry Coatings':
    addOption(sheen,paintdocs+"MSP631101&doctype=MSDS&lang=E", "Elastomeric Topcoat - White");
    addOption(sheen,paintdocs+"MSP631240&doctype=MSDS&lang=E", "Masonry Primer - White");
    addOption(sheen,paintdocs+"MSP631241&doctype=MSDS&lang=E", "Surface Conditioner - White");
  break;

  case 'Interior Primers & Fillers':
    addOption(sheen,paintdocs+"MSP702189&doctype=MSDS&lang=E", "High Holdout Primer - White");
    addOption(sheen,paintdocs+"MSP711185&doctype=MSDS&lang=E", "Latex Primer - White");
    addOption(sheen,paintdocs+"MSP761202&doctype=MSDS&lang=E", "I/E Heavy Duty Block Filler - White");
    addOption(sheen,paintdocs+"MSP721185&doctype=MSDS&lang=E", "Wall Primer - White");
    addOption(sheen,paintdocs+"MSP721186&doctype=MSDS&lang=E", "High Build Primer/Surfacer - White");
    addOption(sheen,paintdocs+"MSP761207&doctype=MSDS&lang=E", "Block Filler - White");
  break;

  case 'Exterior Primers & Fillers':
    addOption(sheen,paintdocs+"MSP611191&doctype=MSDS&lang=E", "Wood Primer - White");
    addOption(sheen,paintdocs+"MSP615190&doctype=MSDS&lang=E", "Alkyd Wood Primer - White");
    addOption(sheen,paintdocs+"MSP761202&doctype=MSDS&lang=E", "I/E Heavy Duty Block Filler - White");
  break;

  case 'Caulk':
    addOption(sheen,paintdocs+"MSP001040&doctype=MSDS&lang=E", "40 Yr. Acrylic - White");
    addOption(sheen,paintdocs+"MSP001020&doctype=MSDS&lang=E", "20 Yr. Acrylic - White");
  break;

  case 'Marking Paints':
    addOption(sheen,paintdocs+".07191520&doctype=MSDS&lang=E", "Latex Zone - White");
    addOption(sheen,paintdocs+".07191725&doctype=MSDS&lang=E", "Latex Zone - Yellow");
    addOption(sheen,paintdocs+".07196023&doctype=MSDS&lang=E", "Latex Field & Zone - White");
    addOption(sheen,paintdocs+".07192518&doctype=MSDS&lang=E", "Alkyd Zone - White");
    addOption(sheen,paintdocs+".07192710&doctype=MSDS&lang=E", "Alkyd Zone - Yellow");
  break;

  case 'Acrylic Enamels':
    addOption(sheen,paintdocs+"MSP903101&doctype=MSDS&lang=E", "Acrylic Semi-Gloss - White");
    addOption(sheen,paintdocs+"MSP903104&doctype=MSDS&lang=E", "Acrylic Semi-Gloss - Deep Base");
    addOption(sheen,paintdocs+"MSP903105&doctype=MSDS&lang=E", "Acrylic Semi-Gloss - Neutral Base");
    addOption(sheen,paintdocs+"MSP904100&doctype=MSDS&lang=E", "Acrylic High-Gloss - Bright White");
    addOption(sheen,paintdocs+"MSP911230&doctype=MSDS&lang=E", "Acrylic High-Gloss - White");
    addOption(sheen,paintdocs+"MSP904104&doctype=MSDS&lang=E", "Acrylic High-Gloss - Deep Base");
    addOption(sheen,paintdocs+"MSP904105&doctype=MSDS&lang=E", "Acrylic High-Gloss - Neutral Base");
    addOption(sheen,paintdocs+"MSP904084&doctype=MSDS&lang=E", "Acrylic High-Gloss - Red Base");
    addOption(sheen,paintdocs+"MSP904116&doctype=MSDS&lang=E", "Acrylic High-Gloss - Yellow");
    addOption(sheen,paintdocs+"MSP904040&doctype=MSDS&lang=E", "Acrylic High-Gloss - Black");
    addOption(sheen,paintdocs+"MSP853101&doctype=MSDS&lang=E", "Latex Semi-Gloss - White");
  break;

  case 'Alkyd Enamels':
    addOption(sheen,paintdocs+"MSP805017&doctype=MSDS&lang=E", "Heavy Duty - Flat White");
    addOption(sheen,paintdocs+"MSP808101&doctype=MSDS&lang=E", "Heavy Duty - Gloss White");
    addOption(sheen,paintdocs+"MSP805041&doctype=MSDS&lang=E", "Heavy Duty - Flat Black");
    addOption(sheen,paintdocs+"MSP807043&doctype=MSDS&lang=E", "Heavy Duty - Semi-Gloss Black");
    addOption(sheen,paintdocs+"MSP808042&doctype=MSDS&lang=E", "Heavy Duty - Gloss Black");
    addOption(sheen,paintdocs+"MSP808104&doctype=MSDS&lang=E", "Heavy Duty - Gloss Deep Base");
    addOption(sheen,paintdocs+"MSP808105&doctype=MSDS&lang=E", "Heavy Duty - Gloss Neutral Base");
    addOption(sheen,paintdocs+"MSP808034&doctype=MSDS&lang=E", "Heavy Duty - Gloss Brown");
    addOption(sheen,paintdocs+"MSP808052&doctype=MSDS&lang=E", "Heavy Duty - Gloss Blue");
    addOption(sheen,paintdocs+"MSP808053&doctype=MSDS&lang=E", "Heavy Duty - Gloss Dark Blue");
    addOption(sheen,paintdocs+"MSP808061&doctype=MSDS&lang=E", "Heavy Duty - Gloss Dark Green");
    addOption(sheen,paintdocs+"MSP808072&doctype=MSDS&lang=E", "Heavy Duty - Gloss Gray");
    addOption(sheen,paintdocs+"MSP808081&doctype=MSDS&lang=E", "Heavy Duty - Gloss Red");
    addOption(sheen,paintdocs+"MSP808112&doctype=MSDS&lang=E", "Heavy Duty - Gloss Yellow");
    addOption(sheen,paintdocs+"MSP808016&doctype=MSDS&lang=E", "Heavy Duty - Gloss Appliance White");
    addOption(sheen,paintdocs+"MSP808161&doctype=MSDS&lang=E", "Heavy Duty - Gloss Chrome Aluminum");
    addOption(sheen,paintdocs+"MSP828101&doctype=MSDS&lang=E", "Quick Dry - White");
    addOption(sheen,paintdocs+"MSP828105&doctype=MSDS&lang=E", "Quick Dry - Clear Base");
    addOption(sheen,paintdocs+"MSP828042&doctype=MSDS&lang=E", "Quick Dry - Gloss Black");
  break;

  case 'Epoxies':
    addOption(sheen,paintdocs+"MSP920101&doctype=MSDS&lang=E", "Acrylic Water Based - White");
    addOption(sheen,paintdocs+"MSP923171&doctype=MSDS&lang=E", "Acrylic Water Based - Semi-Gloss Hardener");
    addOption(sheen,paintdocs+"MSP924172&doctype=MSDS&lang=E", "Acrylic Water Based - Gloss Hardener");
    addOption(sheen,paintdocs+"MSP830101&doctype=MSDS&lang=E", "Polyamide Catalyzed - White");
    addOption(sheen,paintdocs+"MSP830175&doctype=MSDS&lang=E", "Polyamide Catalyzed - Reducer");
    addOption(sheen,paintdocs+"MSP837171&doctype=MSDS&lang=E", "Polyamide Catalyzed - Semi-Gloss");
    addOption(sheen,paintdocs+"MSP838172&doctype=MSDS&lang=E", "Polyamide Catalyzed - Gloss Hardener");
  break;

  case 'Primers':
    addOption(sheen,paintdocs+"MSP904101&doctype=MSDS&lang=E", "Prime & Finish - White");
    addOption(sheen,paintdocs+"MSP815220&doctype=MSDS&lang=E", "Rust Control - White");
    addOption(sheen,paintdocs+"MSP815221&doctype=MSDS&lang=E", "Rust Control - Brown");
    addOption(sheen,paintdocs+"MSP825222&doctype=MSDS&lang=E", "Quick Dry - Gray");
    addOption(sheen,paintdocs+"MSP825223&doctype=MSDS&lang=E", "Quick Dry - Red");
  break;

  case 'Aerosols':
    addOption(sheen,paintdocs+".07461486&doctype=MSDS&lang=E", "Acrylic - Clear");
    addOption(sheen,paintdocs+".07462187&doctype=MSDS&lang=E", "Acrylic - Wrought Iron Flat White");
    addOption(sheen,paintdocs+".07462088&doctype=MSDS&lang=E", "Acrylic - Gloss White");
    addOption(sheen,paintdocs+".07461387&doctype=MSDS&lang=E", "Acrylic - Almond");
    addOption(sheen,paintdocs+".07461585&doctype=MSDS&lang=E", "Acrylic - Orange");
    addOption(sheen,paintdocs+".07461684&doctype=MSDS&lang=E", "Acrylic - Green");
    addOption(sheen,paintdocs+".07462385&doctype=MSDS&lang=E", "Acrylic - Bright Yellow");
    addOption(sheen,paintdocs+".07462286&doctype=MSDS&lang=E", "Acrylic - Deep Brown");
    addOption(sheen,paintdocs+".07462583&doctype=MSDS&lang=E", "Acrylic - Wagon Red");
    addOption(sheen,paintdocs+".07462989&doctype=MSDS&lang=E", "Acrylic - Batallion Blue");
    addOption(sheen,paintdocs+".07462880&doctype=MSDS&lang=E", "Acrylic - Machinery Gray");
    addOption(sheen,paintdocs+".07461288&doctype=MSDS&lang=E", "Acrylic - Gold");
    addOption(sheen,paintdocs+".07462781&doctype=MSDS&lang=E", "Acrylic - Aluminum");
    addOption(sheen,paintdocs+".07461189&doctype=MSDS&lang=E", "Acrylic - Wrought Iron Flat Black");
    addOption(sheen,paintdocs+".07461080&doctype=MSDS&lang=E", "Acrylic - Gloss Block");
    addOption(sheen,paintdocs+".07462484&doctype=MSDS&lang=E", "Acrylic - Dry-Fast Red Metal Primer");
    addOption(sheen,paintdocs+".07462682&doctype=MSDS&lang=E", "Acrylic - Dry-Fast Gray Metal Primer");
  break;

  }

}

function removeOptions(ele)
{
  $(ele).find("option[@value!='']").remove();
}


function addOption(ele, value, text)
{
	$(ele).append("<option value='"+value+"'>"+text+"</option>");
}

function linkTo(optVal)
{
  if(optVal=="") return false;
  window.location=''+optVal;
}

$(document).ready(function()
{

  $("#callouts").append(
    "<div id='callout2'><h3>Download Product MSDS</h3><form name='product_list' id='product-list' action='#' method='post'></form></div>"
  )

  $("#product-list").append(
    "<select id='product-type' name='product_type' onChange='fillName();'><option value=''>PRODUCT TYPE</option></select>"
  ).append(
    "<select id='product-name' name='product_name' onChange='fillSheen();'><option value=''>PRODUCT NAME</option></select>"
  ).append(
    "<select id='product-sheen' name='product_sheen' onChange='linkTo(this.options[this.selectedIndex].value);'><option value=''>PRODUCT SHEEN</option></select>"
  );

  $("#product-name").hide();
  $("#product-sheen").hide();

  fillType();

});
