title: Run automatically through function
body: <p>The following code works when you click on the individual links, but I also want to let it automatically run through the content.</p>
  
  <p>Javascript:</p>
  
  <pre><code>var kopjeC = 1;
  
  function kopje(kopjeC){
      if(kopjeC == 1){
          document.getElementById('textB').innerHTML = 'Home';
          document.getElementById('1').style.backgroundColor = '#CCC';
          document.getElementById('2').style.backgroundColor = '#FFF';
          document.getElementById('3').style.backgroundColor = '#FFF';
          document.getElementById('4').style.backgroundColor = '#FFF';
      }
      if(kopjeC == 2){
          document.getElementById('textB').innerHTML = 'Lactatiekundige';
          document.getElementById('1').style.backgroundColor = '#FFF';
          document.getElementById('2').style.backgroundColor = '#CCC';
          document.getElementById('3').style.backgroundColor = '#FFF';
          document.getElementById('4').style.backgroundColor = '#FFF';
      }
      if(kopjeC == 3){
          document.getElementById('textB').innerHTML = 'Consult';
          document.getElementById('1').style.backgroundColor = '#FFF';
          document.getElementById('2').style.backgroundColor = '#FFF';
          document.getElementById('3').style.backgroundColor = '#CCC';
          document.getElementById('4').style.backgroundColor = '#FFF';
      }
      if(kopjeC == 4){
          document.getElementById('textB').innerHTML = 'Verhuur/verkoop';
          document.getElementById('1').style.backgroundColor = '#FFF';
          document.getElementById('2').style.backgroundColor = '#FFF';
          document.getElementById('3').style.backgroundColor = '#FFF';
          document.getElementById('4').style.backgroundColor = '#CCC';
      }
  }
  </code></pre>
  
  <p>How can I, for instance, go to the next subject (<code>kopjeC</code> value) after 5 seconds?</p>
  
  <p><a href="http://jsfiddle.net/JWFG9/5/" rel="nofollow">JSFiddle</a></p>