var vin = 1;

function toggle(object) {
  class1 = 'tab_button';
  class2 = 'tab_button_a';
  if (document.getElementById) {
    if (document.getElementById(object).style.display == 'block') {
      document.getElementById(object).style.display = 'none';
      document.getElementById(object + 'b').className = class1;
    }
    else {
      document.getElementById(object).style.display = 'block';
      document.getElementById(object + 'b').className = class2;
    }
  }

  else if (document.layers && document.layers[object] != null) {
    if (document.layers[object].display == 'block' ||
        document.layers[object].display == 'show' ) {
      document.layers[object].display = 'none';
      document.layers[object + 'b'].className = class1;
    }
    else {
      document.layers[object].display = 'block';
      document.layers[object + 'b'].className = class2;
    }
  }

  else if (document.all) {
    if (document.all[object].style.display == 'block') {
      document.all[object].style.display = 'none';
      document.all[object + 'b'].className = class1;
    }
    else {
      document.all[object].style.display = 'block';
      document.all[object + 'b'].className = class2;
    }
  }

  return false;
}
