function showCallout(id) {
   calloutDivs = document.getElementById('callouts').getElementsByTagName('div');
   for (i = 0; i < calloutDivs.length; i++) {
      if (calloutDivs[i].id == id) {
         calloutDivs[i].style.display = 'block';
      } else {
         calloutDivs[i].style.display = 'none';
      }
   }
}
function hideCallouts() {
   calloutDivs = document.getElementById('callouts').getElementsByTagName('div');
   for (i = 0; i < calloutDivs.length; i++) {
      calloutDivs[i].style.display = 'none';
   }
}
function updateProducts(form) {
   if (form.application.selectedIndex > 0 && form.industry.selectedIndex > 0) {
      form.product.length = 1;
      application = form.application.value.toLowerCase();
      industry = form.industry.value.toLowerCase();

      for (i = 0; i < products.length; i++) {
         if (products[i].application == application && products[i].industry == industry) {
            form.product.options[form.product.options.length] = new Option(products[i].name, products[i].pdf, false, false)
         }
      }
   }
}
function getPDF(selectBox) {
   if (selectBox.selectedIndex > 0) {
      if (selectBox.value.length == 0) {
         window.open('pdf/sample.pdf');
      }
      window.open(selectBox.value)
   }
}
function addProduct(application, industry, name, pdf) {
   var temp = new Object();
   temp.application = application;
   temp.industry = industry;
   temp.name = name;
   temp.pdf = pdf;

   products.push(temp);
}

products = new Array();

addProduct('anodizing', 'aerospace', 'Light Film - HAE', '/pdfs/Anodizing_Light_ Film_HAE.pdf');
addProduct('anodizing', 'aerospace', 'Heavy Film - HAE', '/pdfs/Anodizing_Heavy_Film_HAE.pdf');
addProduct('plasma', 'commercial', 'CCC-208', '/pdfs/Plasma_CCC-208.pdf');
addProduct('plasma', 'commercial', 'CCC-212', '/pdfs/Plasma_CCC-212.pdf');
addProduct('plasma', 'commercial', 'CCC-400', '/pdfs/Plasma_CCC-400.pdf');
addProduct('plasma', 'aerospace', 'Allied Signal', '/pdfs/Plasma_Allied_Signal.pdf');
addProduct('plasma', 'aerospace', 'Rolls Royce', '/pdfs/Plasma_Roll-Royce_Allison.pdf');
addProduct('plasma', 'aerospace', 'GE Aircraft', '/pdfs/Plasma_GE Aircraft.pdf');
addProduct('plasma', 'aerospace', 'Honeywell', '/pdfs/Plasma_Honeywell.pdf');
addProduct('plasma', 'aerospace', 'Pratt & Whitney', '/pdfs/Plasma_Pratt_&_Whitney.pdf');
addProduct('plasma', 'aerospace', 'Sikorsky', '/pdfs/Plasma_Sikorsky_Aircraft_Plasma.pdf');
addProduct('painting', 'aerospace', 'Honeywell', '/pdfs/Paint_Honeywell.pdf');
addProduct('painting', 'aerospace', 'Rolls Royce - Allison', '/pdfs/Paint_Rolls-Royce-Allison.pdf');
addProduct('painting', 'aerospace', 'Pratt & Whitney', '/pdfs/Paint_Pratt_&_Whitney Aircraft.pdf');
addProduct('painting', 'aerospace', 'Sikorsky', '/pdfs/Paint_Sikorsky_Aircraft_Paint.pdf');
addProduct('painting', 'aerospace', 'Rolls Royce - Lucas', '/pdfs/Paint_Rolls-Royce_Lucas_Western_Paint.pdf');
addProduct('painting', 'aerospace', 'Pratt & Whitney - Canada', '/pdfs/Paint_Pratt_&_Whitney_Canada-Paint.pdf');
addProduct('painting', 'aerospace', 'Surface Sealing', '/pdfs/Paint_Surface_Sealing.pdf');
addProduct('painting', 'aerospace', 'Rockhard 985-111-800', '/pdfs/Paint_Rockhard_985-111-800.pdf');


