
function viewDetail(n){
	 
	
	//Sichtbares Produkt ausschalten
	showStop();
	 if(akutView>=1){
		  document.getElementById('pdb'+akutView).style.display="none";

	}
	 akutView=n;
	 document.getElementById('pdb'+akutView).style.display="table"; 
	 ontop();
}

function closeDetail(n){
	showStop();
	if(n>=1)akutView=n;
	document.getElementById('pdb'+akutView).style.display="none";
	akutView=0;
}
 

function startShow(){
	n=1;
	 ontop();
	if(akutView>=1)n=akutView;
	showMe(n);
	document.getElementById('btstart').style.display="none";
	document.getElementById('btstop').style.display="inline";
}
var times="";

function showMe(n){
	
	 if(akutView>=1){
		 document.getElementById('pdb'+akutView).style.display="none";
	 }
	 akutView=n;
	 
	 document.getElementById('pdb'+akutView).style.display="inline";
	 
	 if(n < allProdukts){ nextN=eval(n)+1; }else{ nextN=1; }
	 times = setTimeout("showMe("+nextN+");",2000);
}

function showStop(){
	 
	clearTimeout(times); 
	document.getElementById('btstart').style.display="inline";
	document.getElementById('btstop').style.display="none";
	
}


function ontop(){
	 
	window.scrollTo(0,0);
	 
	
}

