function showtheme(START){
schonmalbewegt=0;
var zufall= Math.floor(Math.random()*3);
if(zufall==1){
PATH="tauchbilder";
}else if(zufall==2){
PATH="tauchbilder2";
}else{
PATH="tauchbildersw3";
}
	
	window.setTimeout("losgehts("+START+")", 100);

}
function showthemeSW(START){
schonmalbewegt=0;
var zufall= Math.floor(Math.random()*3);
if(zufall==1){
PATH="tauchbildersw";
}else if(zufall==2){
PATH="tauchbildersw2";
}else{
PATH="tauchbildersw3";
}
	
	window.setTimeout("losgehts("+START+")", 100);
}


function losgehts(START){

	if (document.layers){
		dasElement=document.layers["impressions"];
		dasElement2=document.layers["impressions2"];
	}else if(document.all){
		dasElement=document.all["impressions"];
		dasElement2=document.all["impressions2"];
	}else if(document.getElementById){
		dasElement=document.getElementById("impressions");
		dasElement2=document.getElementById("impressions2");
	}
	new Effect.Opacity(dasElement2, {from: 1.0, to: 0, duration: 0.0});
	dasElement.style.backgroundImage = "url("+PATH+"/tauchen"+START+".jpg)";
	window.setTimeout("weitere("+START+")", 4000);
}

function weitere(VAR){
	
	var VAR2=VAR+1;
	
	dasElement2.style.backgroundImage = "url("+PATH+"/tauchen"+VAR2+".jpg)";
	new Effect.Opacity(dasElement, {from: 1.0, to: 0, duration: 3.0});
	new Effect.Opacity(dasElement2, {from: 0, to: 1.0, duration: 3.0});
	if(VAR<9){
	VAR=VAR+2;
	}else{
	VAR=1;
	}
	window.setTimeout("weitere1("+VAR+")", 6000);
	
}

function weitere1(VARX){
dasElement.style.backgroundImage = "url("+PATH+"/tauchen"+VARX+".jpg)";

new Effect.Opacity(dasElement2, { from: 1.0, to: 0, duration: 3.0 });
new Effect.Opacity(dasElement, { from: 0, to: 1.0, duration: 3.0 });


window.setTimeout("weitere("+VARX+")", 6000);


}

