var actual=1;

function limpiar(){

  var cont=0;
  var nombrediv="";
  var nombrespan="";

  for(cont=1;cont<=6;cont++){

    nombrediv="div" + cont;
    nombrespan="spanseccion" + cont;
    document.getElementById(nombrediv).style.display="none";
    document.getElementById(nombrespan).style.fontSize="1em";

  }

}


function inicio(){

  limpiar();
  document.getElementById('div1').style.display="";
  document.getElementById('spanseccion1').style.fontSize="1.6em";
}


function mostrardiv(e){

  limpiar();
  nombrediv="div" + e;
  nombrespan="spanseccion" + e;
  actual=e;

  document.getElementById(nombrediv).style.display="";
  document.getElementById(nombrespan).style.fontSize="1.6em";

}

function avanzar(){

  if (actual<6)
    actual++;

  mostrardiv(actual);

}

function retroceder(){

  if (actual>1)
    actual--;

  mostrardiv(actual);

}


