var numItems = 20;
var counter = 1;

function initialize() {
    for(var i = 1; i <= numItems; ++i ) {
        document.getElementById('sponsor'+i).style.display = "none";        
    }
    document.getElementById('sponsor1').style.display = "block";
    
   setTimeout("sponsors_show()",3000);                         
}


function sponsors_show() { 
  
  if ( document.getElementById ) {
      
      if (numItems > 1) {
        
        for(var i = 1; i <= numItems; ++i ) {
          document.getElementById('sponsor'+i).style.display = "none";        
        }
        
        document.getElementById('sponsor'+counter).style.display = "block";    
        counter++;
        
        if (counter == numItems + 1)
			  { counter = 1; }
			  
		    setTimeout("sponsors_show()",5000); 
        
      }
      
  }
  
}

window.onload=initialize;

