var sCatsSelected;
var sDocSelected;
var sURL;
var arrTrymerTDS;
var arrTrymerLTDS;
var arrOtherTDS;
var arrTrymerMSDS;
var arrTrymerLSMSDS;
var arrTrymerGreenDS;
var arrOtherMSDS;
var arrThicknessTables;
var arrInstallGuides;
var arrOtherLit;
var arrTrymerTDSURLs;
var arrTrymerLTDSURLs;
var arrTrymerGreenURLs;
var arrOtherTDSURLs;
var arrTrymerMSDSURLs;
var arrTrymerLSMSDSURLs;
var arrOtherMSDSURLs;
var arrThicknessTablesURLs;
var arrInstallGuidesURLs;
var arrOtherLitURLs;
var objCats;
var objDocs;

function init(){
  arrTrymerTDS = setTrymerTDS();
  arrTrymerLTDS = setTrymerLTDS();
  arrOtherTDS = setOtherTDS();
  arrTrymerMSDS = setTrymerMSDS();
  arrTrymerLSMSDS = setTrymerLSMSDS();
  arrTrymerGreenDS = setTrymerGreenDS();
  arrOtherMSDS = setOtherMSDS();
  arrThicknessTables = setThicknessTables();
  arrInstallGuides = setInstallGuides();
  arrOtherLit = setOtherLit();
  arrTrymerTDSURLs = setTrymerTDSURLs();
  arrTrymerLTDSURLs = setTrymerLTDSURLs();
  arrTrymerGreenURLs = setTrymerGreenURLs();
  arrOtherTDSURLs = setOtherTDSURLs();
  arrTrymerMSDSURLs = setTrymerMSDSURLs();
  arrTrymerLSMSDSURLs = setTrymerLSMSDSURLs();
  arrOtherMSDSURLs = setOtherMSDSURLs();
  arrThicknessTablesURLs = setThicknessTablesURLs();
  arrInstallGuidesURLs = setInstallGuidesURLs();
  arrOtherLitURLs = setOtherLitURLs();
  objCats = getObject('Cats');
  objDocs = getObject('Docs');
  sCatsSelected = 'Trymer Technical Data Sheets';
  callSetDocs(sCatsSelected);
  objCats.selectedIndex = 0;
  objDocs.selectedIndex = 0;
}

function callSetDocs(sCatsSelectedText){
  if(objDocs.options.length > 0){
    var bCleared=ClearDocs();
    if(bCleared){
      setDocs(sCatsSelectedText);
    }
  }else{
    setDocs(sCatsSelectedText);
  }
}

function setDocs(sCatsSelectedText){
  if(sCatsSelectedText == 'Trymer Technical Data Sheets'){
    fillCombo(arrTrymerTDS);
  }else if(sCatsSelectedText == 'Trymer L Series Technical Data Sheets'){
    fillCombo(arrTrymerLTDS);
  }else if(sCatsSelectedText == 'Other Technical Data Sheets'){
    fillCombo(arrOtherTDS);
  }else if(sCatsSelectedText == 'Trymer Material Safety Data Sheets'){
    fillCombo(arrTrymerMSDS);
  }else if(sCatsSelectedText == 'Trymer L Series Material Safety Data Sheets'){
    fillCombo(arrTrymerLSMSDS);
  }else if(sCatsSelectedText == 'Trymer Green Data Sheets'){
    fillCombo(arrTrymerGreenDS);
  }else if(sCatsSelectedText == 'Other Material Safety Data Sheets'){
    fillCombo(arrOtherMSDS);
  }else if(sCatsSelectedText == 'Thickness Tables'){
    fillCombo(arrThicknessTables);
  }else if(sCatsSelectedText == 'Installation Guides'){
    fillCombo(arrInstallGuides);
  }else{
    fillCombo(arrOtherLit);
  }
  objDocs.selectedIndex = 0;
  var i = objDocs.options.selectedIndex;
  sDocSelected = objDocs.options[i].text;
}

function resetDocs(){
  ClearDocs();
  var sSelected = objCats.value;
  callSetDocs(sSelected);
}

function ClearDocs(){
  var iLoopCounter;
  var iListCount = objDocs.options.length;
  if(document.all){
    for(iLoopCounter = 0;iLoopCounter < iListCount;iLoopCounter++){
      var iCurrentObj = iLoopCounter +1;
      objDocs.options.remove(iListCount - iCurrentObj);
    }
  }else{
    for(iLoopCounter = 0;iLoopCounter < iListCount;iLoopCounter++){
      var iCurrentObj = objDocs.length - 1;
      objDocs.remove(iCurrentObj);
    }
  }
  return true;
}

function fillCombo(arr){
  var iLoopCounter;
  var iListCount = arr.length;
  for(iLoopCounter = 0;iLoopCounter < iListCount;iLoopCounter++){
    if(document.all){
      var objOption = document.createElement("OPTION");
      objDocs.options.add(objOption);
      objOption.innerText = arr[iLoopCounter].toString();
      objOption.value = arr[iLoopCounter].toString();
    }else{
      AddSelectOption(objDocs,arr[iLoopCounter].toString(),arr[iLoopCounter].toString(),true);
    }
  }
}

function AddSelectOption(selectObj, text, value, isSelected){
  if (selectObj != null && selectObj.options != null){
     selectObj.options[selectObj.options.length] = new Option(text, value, false, isSelected);
  }
}


function getDoc(){
  var i = objDocs.options.selectedIndex;
  sDocSelected = objDocs.options[i].text;
  var sCurrentURL = getURL();
  window.open(sCurrentURL);
}

function getURL(){
  sCatsSelected = objCats.value;
  var i = objDocs.options.selectedIndex;
  sDocSelected = objDocs.options[i].text;
  if(sCatsSelected == 'Trymer Technical Data Sheets'){
    return getTrymerTDSURL();
  }else if(sCatsSelected == 'Trymer L Series Technical Data Sheets'){
    return getTrymerLTDSURL();
  }else if(sCatsSelected == 'Other Technical Data Sheets'){
    return getOtherTDSURL();
  }else if(sCatsSelected == 'Trymer Material Safety Data Sheets'){
    return getTrymerMSDSURL();
  }else if(sCatsSelected == 'Trymer L Series Material Safety Data Sheets'){
    return getTrymerLSMSDSURL();
  }else if(sCatsSelected == 'Trymer Green Data Sheets'){
    return getTrymerGreenURL();
  }else if(sCatsSelected == 'Other Material Safety Data Sheets'){
    return getOtherMSDSURL();
  }else if(sCatsSelected == 'Thickness Tables'){
    return getThicknessTablesURL();
  }else if(sCatsSelected == 'Installation Guides'){
    return getInstallGuidesURL();
  }else{
    return getOtherLitURL();
  }
}

function getTrymerTDSURL(){
  if(sDocSelected == 'TRYMER 1800'){
    return arrTrymerTDSURLs[0];
  }else if(sDocSelected == 'TRYMER 2000 XP'){
    return arrTrymerTDSURLs[1];
  }else if(sDocSelected == 'TRYMER 2500'){
    return arrTrymerTDSURLs[2];
  }else if(sDocSelected == 'TRYMER 3000'){
    return arrTrymerTDSURLs[3];
  }else if(sDocSelected == 'TRYMER 4000'){
    return arrTrymerTDSURLs[4];
  }else{
    return arrTrymerTDSURLs[5];
  }
}

function getTrymerLTDSURL(){
  if(sDocSelected == 'TRYMER 200L'){
    return arrTrymerLTDSURLs[0];
  }else if(sDocSelected == 'TRYMER 250L'){
    return arrTrymerLTDSURLs[1];
  }else if(sDocSelected == 'TRYMER 350L'){
    return arrTrymerLTDSURLs[2];
  }else if(sDocSelected == 'TRYMER 400L'){
    return arrTrymerLTDSURLs[3];
  }else{
    return arrTrymerLTDSURLs[4];
  }
}

function getOtherTDSURL(){
  if(sDocSelected == 'Extruded Polystyrene Pipe Insulation Billet'){
    return arrOtherTDSURLs[0];
  }else if(sDocSelected == 'Saran 540 CX Film'){
    return arrOtherTDSURLs[1];
  }else if(sDocSelected == 'Saran 560 CX Film'){
    return arrOtherTDSURLs[2];
  }else if(sDocSelected == 'Saran 520 CX Tape'){
    return arrOtherTDSURLs[3];
  }else{
    return arrOtherTDSURLs[4];
  }
}

function getTrymerMSDSURL(){
  if(sDocSelected == 'TRYMER 1800'){
    return arrTrymerMSDSURLs[0];
  }else if(sDocSelected == 'TRYMER 2000 XP'){
    return arrTrymerMSDSURLs[1];
  }else if(sDocSelected == 'TRYMER 2500'){
    return arrTrymerMSDSURLs[2];
  }else if(sDocSelected == 'TRYMER 3000'){
    return arrTrymerMSDSURLs[3];
  }else if(sDocSelected == 'TRYMER 4000'){
    return arrTrymerMSDSURLs[4];
  }else{
    return arrTrymerMSDSURLs[5];
  }
}

function getTrymerLSMSDSURL(){
  if(sDocSelected == 'TRYMER 200L'){
    return arrTrymerLSMSDSURLs[0];
  }else if(sDocSelected == 'TRYMER 250L'){
    return arrTrymerLSMSDSURLs[1];
  }else if(sDocSelected == 'TRYMER 350L'){
    return arrTrymerLSMSDSURLs[2];
  }else{
    return arrTrymerLSMSDSURLs[3];
  }
}

function getTrymerGreenURL(){
  if(sDocSelected == 'TRYMER Green 2.5 Technical Data Sheet'){
    return arrTrymerGreenURLs[0];
  }else if(sDocSelected == 'TRYMER Green 3.75 Technical Data Sheet'){
    return arrTrymerGreenURLs[1];
  }else if(sDocSelected == 'TRYMER Green 5.0 Technical Data Sheet'){
    return arrTrymerGreenURLs[2];
  }else if(sDocSelected == 'TRYMER Green 7.5 Technical Data Sheet'){
    return arrTrymerGreenURLs[3];
  }else if(sDocSelected == 'TRYMER Green Material Safety Data Sheet'){
    return arrTrymerGreenURLs[4];
  }else if(sDocSelected == 'TRYMER Green, 1 in., ASTM E84 Test'){
    return arrTrymerGreenURLs[5];
  }else if(sDocSelected == 'TRYMER Green, 2 in., ASTM E84 Test'){
    return arrTrymerGreenURLs[6];
  }else{
    return arrTrymerGreenURLs[7];
  }
}

function getOtherMSDSURL(){
  if(sDocSelected == 'Extruded Polystyrene, 7 in. billets'){
    return arrOtherMSDSURLs[0];
  }else if(sDocSelected == 'Extruded Polystyrene, 8 in. billets'){
    return arrOtherMSDSURLs[1];
  }else if(sDocSelected == 'Extruded Polystyrene, 10 in. billets'){
    return arrOtherMSDSURLs[2];
  }else if(sDocSelected == 'Saran 540 Film'){
    return arrOtherMSDSURLs[3];
  }else{
    return arrOtherMSDSURLs[4];
  }
}

function getThicknessTablesURL(){
  if(sDocSelected == 'Trymer 2000 XP for Chilled Water Applications'){
    return arrThicknessTablesURLs[0];
  }else if(sDocSelected == 'Trymer Design Table: Cold Storage Room Installation'){
    return arrThicknessTablesURLs[1];
  }else if(sDocSelected == 'Trymer Design Table: Refrigeration Indoors'){
    return arrThicknessTablesURLs[2];
  }else if(sDocSelected == 'Trymer Design Table: Ammonia Refrigeration Outdoors'){
    return arrThicknessTablesURLs[3];
  }else if(sDocSelected == 'Trymer Design Table: Very Harsh Indoor Installation'){
    return arrThicknessTablesURLs[4];
  }else if(sDocSelected == 'Trymer Design Table: Very Harsh Outdoor Installation'){
    return arrThicknessTablesURLs[5];
  }else if(sDocSelected == 'XPS Design Table: Ammonia Refrigeration Indoors'){
    return arrThicknessTablesURLs[6];
  }else if(sDocSelected == 'XPS Design Table: Ammonia Refrigeration Outdoors'){
    return arrThicknessTablesURLs[7];
  }else if(sDocSelected == 'XPS PIB Design Table: Cold Storage Room Installation'){
    return arrThicknessTablesURLs[8];
  }else if(sDocSelected == 'XPS PIB Design Table: Very Harsh Indoor Installation'){
    return arrThicknessTablesURLs[9];
  }else{
    return arrThicknessTablesURLs[10];
  }
}

function getInstallGuidesURL(){
  if(sDocSelected == 'Trymer Insulation in Refrigeration Applications'){
    return arrInstallGuidesURLs[0];
  }else if(sDocSelected == 'Trymer Insulation in Liquified Natural Gas Applications'){
    return arrInstallGuidesURLs[1];
  }else if(sDocSelected == 'Trymer Insulation in Hot Applications'){
    return arrInstallGuidesURLs[2];
  }else if(sDocSelected == 'Trymer Insulation in Chilled Water Applications'){
    return arrInstallGuidesURLs[3];
  }else if(sDocSelected == 'ITW Insulation Systems Mechanical Insulation Guideline'){
    return arrInstallGuidesURLs[4];
  }else if(sDocSelected == 'Installation Guideline for XPS Pipe Insulation Billet'){
    return arrInstallGuidesURLs[5];
  }else if(sDocSelected == 'Trymer Green Chilled Water Installation Guide'){
    return arrInstallGuidesURLs[6];
  }else{
    return arrInstallGuidesURLs[7];
  }
}

function getOtherLitURL(){
  if(sDocSelected == 'TRYMER, TRYMER Green, and LEED(TM), v2.1'){
    return arrOtherLitURLs[0];
  }else if(sDocSelected == 'TRYMER, TRYMER Green, and LEED(TM), v3'){
    return arrOtherLitURLs[1];
  }else if(sDocSelected == 'TRYMER Conformance to ASTM C591-09'){
    return arrOtherLitURLs[2];
  }else if(sDocSelected == 'Metal Corrosion Under Insulation'){
    return arrOtherLitURLs[3];
  }else if(sDocSelected == 'XPS PIB Brochure'){
    return arrOtherLitURLs[4];
  }else if(sDocSelected == 'Chilled Water Applications Brochure'){
    return arrOtherLitURLs[5];
  }else if(sDocSelected == 'Saran CX Film and Tape Article Notification'){
    return arrOtherLitURLs[6];
  }else{
    return arrOtherLitURLs[7];
  }
}

function setTrymerTDS(){
  var TrymerTDS = new Array();
  TrymerTDS[0]="TRYMER 1800";
  TrymerTDS[1]="TRYMER 2000 XP";
  TrymerTDS[2]="TRYMER 2500";
  TrymerTDS[3]="TRYMER 3000";
  TrymerTDS[4]="TRYMER 4000";
  TrymerTDS[5]="TRYMER 6000";
  return TrymerTDS;
}

function setTrymerLTDS(){
  var TrymerLTDS = new Array();
  TrymerLTDS[0]="TRYMER 200L";
  TrymerLTDS[1]="TRYMER 250L";
  TrymerLTDS[2]="TRYMER 350L";
  TrymerLTDS[3]="TRYMER 400L";
  TrymerLTDS[4]="TRYMER L Series Panel Brochure";
  return TrymerLTDS;
}

function setOtherTDS(){
  var OtherTDS = new Array();
  OtherTDS[0]="Extruded Polystyrene Pipe Insulation Billet";
  OtherTDS[1]="Saran 540 CX Film";
  OtherTDS[2]="Saran 560 CX Film";
  OtherTDS[3]="Saran 520 CX Tape";
  OtherTDS[4]="Saran 560 CX Tape";
  return OtherTDS;
}

function setTrymerMSDS(){
  var TrymerMSDS = new Array();
  TrymerMSDS[0]="TRYMER 1800";
  TrymerMSDS[1]="TRYMER 2000 XP";
  TrymerMSDS[2]="TRYMER 2500";
  TrymerMSDS[3]="TRYMER 3000";
  TrymerMSDS[4]="TRYMER 4000";
  TrymerMSDS[5]="TRYMER 6000";
  return TrymerMSDS;
}

function setTrymerLSMSDS(){
  var TrymerLSMSDS = new Array();
  TrymerLSMSDS[0]="TRYMER 200L";
  TrymerLSMSDS[1]="TRYMER 250L";
  TrymerLSMSDS[2]="TRYMER 350L";
  TrymerLSMSDS[3]="TRYMER 400L";
  return TrymerLSMSDS;
}

function setTrymerGreenDS(){
  var TrymerGreenDS = new Array();
  TrymerGreenDS[0] = "TRYMER Green 2.5 Technical Data Sheet";
  TrymerGreenDS[1] = "TRYMER Green 3.75 Technical Data Sheet";
  TrymerGreenDS[2] = "TRYMER Green 5.0 Technical Data Sheet";
  TrymerGreenDS[3] = "TRYMER Green 7.5 Technical Data Sheet";
  TrymerGreenDS[4] = "TRYMER Green Material Safety Data Sheet";
  TrymerGreenDS[5] = "TRYMER Green, 1 in., ASTM E84 Test";
  TrymerGreenDS[6] = "TRYMER Green, 2 in., ASTM E84 Test";
  TrymerGreenDS[7] = "TRYMER Green, 3 in., ASTM E84 Test";
  return TrymerGreenDS;
}

function setOtherMSDS(){
  var OtherMSDS = new Array();
  OtherMSDS[0]="Extruded Polystyrene, 7 in. billets";
  OtherMSDS[1]="Extruded Polystyrene, 8 in. billets";
  OtherMSDS[2]="Extruded Polystyrene, 10 in. billets";
  OtherMSDS[3]="Saran 540 Film";
  OtherMSDS[4]="Saran 560 Film";
  return OtherMSDS;
}

function setThicknessTables(){
  var ThicknessTables = new Array();
  ThicknessTables[0]="Trymer 2000 XP for Chilled Water Applications";
  ThicknessTables[1]="Trymer Design Table: Cold Storage Room Installation";
  ThicknessTables[2]="Trymer Design Table: Refrigeration Indoors";
  ThicknessTables[3]="Trymer Design Table: Ammonia Refrigeration Outdoors";
  ThicknessTables[4]="Trymer Design Table: Very Harsh Indoor Installation";
  ThicknessTables[5]="Trymer Design Table: Very Harsh Outdoor Installation";
  ThicknessTables[6]="XPS Design Table: Ammonia Refrigeration Indoors";
  ThicknessTables[7]="XPS Design Table: Ammonia Refrigeration Outdoors";
  ThicknessTables[8]="XPS PIB Design Table: Cold Storage Room Installation";
  ThicknessTables[9]="XPS PIB Design Table: Very Harsh Indoor Installation";
  ThicknessTables[10]="XPS PIB Design Table: Very Harsh Outdoor Installation";
  return ThicknessTables;
}

function setInstallGuides(){
  var InstallGuides = new Array();
  InstallGuides[0]="Trymer Insulation in Refrigeration Applications";
  InstallGuides[1]="Trymer Insulation in Liquified Natural Gas Applications";
  InstallGuides[2]="Trymer Insulation in Hot Applications";
  InstallGuides[3]="Trymer Insulation in Chilled Water Applications";
  InstallGuides[4]="ITW Insulation Systems Mechanical Insulation Guideline";
  InstallGuides[5]="Installation Guideline for XPS Pipe Insulation Billet";
  InstallGuides[6]="Trymer Green Chilled Water Installation Guide";
  InstallGuides[7]="Guia de instalacion para XPS PIB (Esp.)";
  return InstallGuides;
}

function setOtherLit(){
  var OtherLit = new Array();
  OtherLit[0]="TRYMER, TRYMER Green, and LEED(TM), v2.1";
  OtherLit[1]="TRYMER, TRYMER Green, and LEED(TM), v3";
  OtherLit[2]="TRYMER Conformance to ASTM C591-09";
  OtherLit[3]="Metal Corrosion Under Insulation";
  OtherLit[4]="XPS PIB Brochure";
  OtherLit[5]="Chilled Water Applications Brochure";
  OtherLit[6]="Saran CX Film and Tape Article Notification";
  OtherLit[7]="Oregon Brominated Diphenyl Ether Compliance";
  return OtherLit;
}

function setTrymerTDSURLs(){
  var TrymerTDSURLs = new Array();
  TrymerTDSURLs[0]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_TRYMER_1800.pdf";
  TrymerTDSURLs[1]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_TRYMER_2000_XP.pdf";
  TrymerTDSURLs[2]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_TRYMER_2500.pdf";
  TrymerTDSURLs[3]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_TRYMER_3000.pdf";
  TrymerTDSURLs[4]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_TRYMER_4000.pdf";
  TrymerTDSURLs[5]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_TRYMER_6000.pdf";
  return TrymerTDSURLs;
}

function setTrymerLTDSURLs(){
  var TrymerLTDSURLs = new Array();
  TrymerLTDSURLs[0]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T200L_TDS.pdf";
  TrymerLTDSURLs[1]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T250L_TDS.pdf";
  TrymerLTDSURLs[2]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T350L_TDS.pdf";
  TrymerLTDSURLs[3]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T400L_TDS.pdf";
  TrymerLTDSURLs[4]="http://www.itwinsulation.com/trymer/library/Data_Sheets/L_Series_PANEL_Brochure.pdf";
  return TrymerLTDSURLs;
}

function setTrymerGreenURLs(){
  var TrymerGreenURLs = new Array();
  TrymerGreenURLs[0] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_Trymer_Green_2_5_lb_TDS.pdf";
  TrymerGreenURLs[1] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_Trymer_Green_3_75_lb_TDS.pdf";
  TrymerGreenURLs[2] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_Trymer_Green_5_lb_TDS.pdf";
  TrymerGreenURLs[3] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_Trymer_Green_7_5_lb_TDS.pdf";
  TrymerGreenURLs[4] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_Trymer_Green_MSDS.pdf";
  TrymerGreenURLs[5] = "http://www.itwinsulation.com/trymer/library/data_sheets/E84_report_1_inch.pdf";
  TrymerGreenURLs[6] = "http://www.itwinsulation.com/trymer/library/data_sheets/E84_report_2_inch.pdf";
  TrymerGreenURLs[7] = "http://www.itwinsulation.com/trymer/library/data_sheets/E84_report_3_inch.pdf";
  return TrymerGreenURLs;
}

function setOtherTDSURLs(){
  var OtherTDSURLs = new Array();
  OtherTDSURLs[0]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_XPS_new_Data_Sheet.pdf";
  OtherTDSURLs[1]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_Saran_540_CX_Film.pdf";
  OtherTDSURLs[2]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_Saran_560_CX_Film.pdf";
  OtherTDSURLs[3]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_Saran_520_CX_Tape.pdf";
  OtherTDSURLs[4]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_Saran_560_CX_Tape.pdf";
  return OtherTDSURLs;
}

function setTrymerMSDSURLs(){
  var TrymerMSDSURLs = new Array();
  TrymerMSDSURLs[0]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_MSDS_Trymer_1800.pdf";
  TrymerMSDSURLs[1]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_MSDS_Trymer_2000_XP.pdf";
  TrymerMSDSURLs[2]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_MSDS_Trymer_2500.pdf";
  TrymerMSDSURLs[3]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_MSDS_Trymer_3000.pdf";
  TrymerMSDSURLs[4]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_MSDS_Trymer_4000.pdf";
  TrymerMSDSURLs[5]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_MSDS_Trymer_6000.pdf";
  return TrymerMSDSURLs;
}

function setTrymerLSMSDSURLs(){
  var TrymerLSMSDSURLs = new Array();
  TrymerLSMSDSURLs[0]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T200L_MSDS.pdf";
  TrymerLSMSDSURLs[1]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T250L_MSDS.pdf";
  TrymerLSMSDSURLs[2]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T350L_MSDS.pdf";
  TrymerLSMSDSURLs[3]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_T400L_MSDS.pdf";
  return TrymerLSMSDSURLs;
}

function setOtherMSDSURLs(){
  var OtherMSDSURLs = new Array();
  OtherMSDSURLs[0]="http://www.itwinsulation.com/trymer/library/Data_Sheets/XPS_PIB_new_BA_7inch_MSDS.pdf";
  OtherMSDSURLs[1]="http://www.itwinsulation.com/trymer/library/Data_Sheets/XPS_PIB_new_BA_8inch_MSDS.pdf";
  OtherMSDSURLs[2]="http://www.itwinsulation.com/trymer/library/Data_Sheets/XPS_PIB_new_BA_10inch_MSDS.pdf";
  OtherMSDSURLs[3]="http://www.itwinsulation.com/trymer/library/Data_Sheets/DOW_MSDS_Saran_540.pdf";
  OtherMSDSURLs[4]="http://www.itwinsulation.com/trymer/library/Data_Sheets/DOW_MSDS_Saran_540.pdf";
  return OtherMSDSURLs;
}

function setThicknessTablesURLs(){
  var ThicknessTablesURLs = new Array();
  ThicknessTablesURLs[0]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_2000_xp_Indoor_at_90_degree_F.pdf";
  ThicknessTablesURLs[1]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_Inside_a_Cold_Storage_Room.pdf";
  ThicknessTablesURLs[2]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_Refrigeration_Indoors.pdf";
  ThicknessTablesURLs[3]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_Refrigeration_Outdoors.pdf";
  ThicknessTablesURLs[4]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_Very_Harsh_Indoor.pdf";
  ThicknessTablesURLs[5]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_Very_Harsh_Outdoor.pdf";
  ThicknessTablesURLs[6]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_XPS_Ammonia_Refrig_Indoors.pdf";
  ThicknessTablesURLs[7]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_XPS_Ammonia_Refrig_Outdoors.pdf";
  ThicknessTablesURLs[8]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_XPS_Inside_a_Cold_Storage_Room.pdf";
  ThicknessTablesURLs[9]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_XPS_Very_Harsh_Indoor.pdf";
  ThicknessTablesURLs[10]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_XPS_Very_Harsh_Outdoor.pdf";
  return ThicknessTablesURLs;
}

function setInstallGuidesURLs(){
  var InstallGuidesURLs = new Array();
  InstallGuidesURLs[0]="http://www.itwinsulation.com/Trymer/library/Data_Sheets/ITW_TRYMER_Polyisocyanurate_Pipe_Insulation_Refrigeration_Applications.pdf";
  InstallGuidesURLs[1]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_LNG_Applications.pdf";
  InstallGuidesURLs[2]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_Hot_Applications.pdf";
  InstallGuidesURLs[3]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_TRYMER_Chilled_Water_Applic_Updated.pdf";
  InstallGuidesURLs[4]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_CSI_Mechanical_Insulation.pdf";
  InstallGuidesURLs[5]="http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_XPS_PIB_Refrigeration_Applic.pdf";
  InstallGuidesURLs[6]="http://www.itwinsulation.com/trymer/library/data_sheets/Trymer_Green-Chilled_Water_Installation_Guide.pdf";
  InstallGuidesURLs[7]="http://www.itwinsulation.com/trymer/library/data_sheets/ITW_XPS_Refrigeration_Applic_ESP.pdf";
  return InstallGuidesURLs;
}

function setOtherLitURLs(){
  var OtherLitURLs = new Array();
  OtherLitURLs[0] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/TRYMER_and_TRYMER_Green_LEED_v2-1.pdf";
  OtherLitURLs[1] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/TRYMER_and_TRYMER_Green_LEED_v3.pdf";
  OtherLitURLs[2] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/Trymer_Conformance_to_ASTM_C591.pdf";
  OtherLitURLs[3] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/Metal_Corrosion_Under_Insulation.pdf";
  OtherLitURLs[4] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/ITW_XPS_brochure.pdf";
  OtherLitURLs[5] = "http://www.itwinsulation.com/Trymer/library/Data_Sheets/ChilledWater_Brochure.pdf";
  OtherLitURLs[6] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/saran_cx_article_notification.pdf";
  OtherLitURLs[7] = "http://www.itwinsulation.com/trymer/library/Data_Sheets/Oregon_Fire_Retardant_Laws_Compliance.pdf";
  return OtherLitURLs;
}

function setLinkClass(sLnkID,sClassName){
  var objLnk = getObject(sLnkID);
  objLnk.className = sClassName;
}

function setCellBorder(sCellID,sClassName){
  var objCell = getObject(sCellID);
  if(document.all){
    objCell.style.cursor = "hand";
  }else{
    objCell.style.cursor = "pointer";
  }
  objCell.className = sClassName;
}

function setProdLink(sCellID,sCellClass,sLinkID, sColor){
  var objCell = getObject(sCellID);
  var objLink = getObject(sLinkID);
  objCell.className = sCellClass;
  objLink.style.color = sColor;
}

function setLinkStyle(sLnkID,sColor){
  var objLnk = getObject(sLnkID);
  objLnk.style.color = sColor;
}

function setTRLnkBordersOn(sLnkID,sTblID,sTopCellID,sBotCellID){
  var objLnk = getObject(sLnkID);
  var objTbl = getObject(sTblID);
  var objTopCell = getObject(sTopCellID);
  var objBotCell = getObject(sBotCellID);
  objLnk.style.textDecoration = "none";
  if(document.all){
    objTopCell.style.cursor = "hand";
    objBotCell.style.cursor = "hand";
    objLnk.style.cursor = "hand";
  }else{
    objTopCell.style.cursor = "pointer";
    objBotCell.style.cursor = "pointer";
    objLnk.style.cursor = "pointer";
  }
  objTopCell.style.paddingBottom = "0";
  objTopCell.style.borderBottomStyle = "solid";
  objTopCell.style.borderBottomWidth = "1px";
  objTopCell.style.borderBottomColor = "#800000";
  objBotCell.style.borderBottomStyle = "solid";
  objBotCell.style.borderBottomWidth = "1px";
  objBotCell.style.borderBottomColor = "#800000";
}

function setTRLnkBordersOff(sLnkID,sTblID,sTopCellID,sBotCellID){
  var objLnk = getObject(sLnkID);
  var objTbl = getObject(sTblID);
  var objTopCell = getObject(sTopCellID);
  var objBotCell = getObject(sBotCellID);
  objLnk.style.textDecoration = "none";
  objLnk.style.cursor = "none";
  objTbl.style.borderStyle = "none";
  objTopCell.style.paddingBottom = "1px";
  objTopCell.style.borderBottomStyle = "none";
  objBotCell.style.borderBottomStyle = "none";
}

function setT2000BordersOn(sLnkID,sTblID,sTopCellID,sBotCellID){
  var objLnk = getObject(sLnkID);
  var objTbl = getObject(sTblID);
  var objTopCell = getObject(sTopCellID);
  var objBotCell = getObject(sBotCellID);
  if(document.all){
    objLnk.style.cursor = "hand";
  }else{
    objLnk.style.cursor = "pointer";
  }
  objTopCell.style.color = "#8B008B";
  objTopCell.style.borderBottomColor = "#8B008B";
  objBotCell.style.color = "#8B008B";
  objBotCell.style.borderBottomColor = "#8B008B";
}

function setT2000BordersOff(sLnkID,sTblID,sTopCellID,sBotCellID){
  var objLnk = getObject(sLnkID);
  var objTbl = getObject(sTblID);
  var objTopCell = getObject(sTopCellID);
  var objBotCell = getObject(sBotCellID);
  objLnk.style.cursor = "";
  objTopCell.style.color = "#0000FF";
  objTopCell.style.borderBottomColor = "#0000FF";
  objBotCell.style.color = "#0000FF";
  objBotCell.style.color = "#0000FF";
  objBotCell.style.borderBottomColor = "#0000FF";
}

function getObject(sObjID){
  var obj;
  var q = "\"";
  if(document.layers){
    obj = eval("document." + sObjID);
  }else if(document.all){
    obj = eval("document.all." + sObjID);
  }else if(document.getElementById){
    var sID = q + sObjID.toString() + q;
    obj = eval("document.getElementById(" + sID + ")");
  }
  return obj;
}
