function dataToDisplay(detail) {
  // based off type within detail
  switch (detail.type) {
    // if site
    case "site":
      return siteStructure;
    // if equipment
    case "equipment":
      return equipmentStructure;
    // if maintenance event
    case "maintenance_event":
      return eventStructure;
    // if default
    default:
      return "";
  }
}
// display data dependent on detail type
display data dependent on detail type
display data dependent on detail type
function dataToDisplay(detail) {
  switch (detail.type) {
    case "site":
      return siteStructure;
    case "equipment":
      return equipmentStructure;
    case "maintenance_event":
      return eventStructure;
    default:
      return "";
  }
}
function dataToDisplay ( detail ) { switch ( detail . type ) { case "site" : return siteStructure ; case "equipment" : return equipmentStructure ; case "maintenance_event" : return eventStructure ; default : return "" ; } }
display data dependent on detail type
display data dependent on detail type
// based off type within detail // if site // if equipment // if maintenance event // if default