function openClose(typ,id,status) {
  var state;
  if(status == 'over') {
    var zmena = document.getElementById(typ + id + "_on").style.display = 'block';
  } else if(status == 'out') {
    var zmena = document.getElementById(typ + id + "_on").style.display = 'none';
  } else if(status == '') {
    var zmena = document.getElementById(typ + id + "_on").style;
    var zmena2 = document.getElementById(typ + id + "_off").style;
    
    if(zmena.display == 'block') {
      zmena.display = 'none';
      zmena2.display = 'block';
    } else {
      zmena.display = 'block';
      zmena2.display = 'none';
    }
    }
  }
