// automatic promo switch
//-----------------------
var stat = 0;
function switchHeadline(hnr, nr1){
	
	
	
	for (i = 1 ; i <= nr1 ; i++) {
		document.getElementById('he'+i).style.display = 'none';
		document.getElementById('nr'+i).className = '';
	
		if (hnr == i) {
			document.getElementById('he'+hnr).style.display = 'block';
			document.getElementById('nr'+hnr).className = 'current'	
		}
	}	 
		
	if (stat != 1) {	
		setTimeout("switchHeadlines("+nr1+", "+hnr+")", 5000);
	}
	
}

function switchHeadlines(nr, starth) {

		

		if (starth == nr) {
			nexth = 1;
		}
			else {
				nexth = starth+1;
			}
		
		if (stat != 1) {
			switchHeadline(nexth, nr);
		}
}