function BW(wo,wie){
	var Quelle = document.getElementById(wo).src;
	var Ergebnis = Quelle.search(/.gif/);
	if(Ergebnis != -1) Endung=".gif";
	else Endung=".jpg";
	if (wie==1){
		Neu = Quelle.replace(Endung,"-a"+Endung);
		document.getElementById(wo).src = Neu;
		}
	else{
		Neu = Quelle.replace("-a"+Endung,Endung);
		document.getElementById(wo).src = Neu;
		}
	}


function anzeigen(das){
	if(document.getElementById(das).style.display=='none') 
		document.getElementById(das).style.display='block'; 
	else document.getElementById(das).style.display='none';
	}



function pausecomp(millis)
{
var date = new Date();
var curDate = null;

do { curDate = new Date(); }
while(curDate-date < millis);
}



var x,y,maxx,maxy,zoomend;

zoomend=1;

var bild_neu;

function zoom_out(wo){
	//document.getElementById('bildframe_'+wo).style.width=x;
	//document.getElementById('bildframe_'+wo).style.height=y;
	if(x > 1 || y>1){
		if(x > 1) { x = x - 30; if(x<1){x=1;y=1}}
		//if(y > 1) { y = y - 20; if(y<1){y=1;x=1}}
		setTimeout("zoom_out('"+wo+"'), 10");
		}
	else{
		document.getElementById("bild_"+wo).src = bild_neu;
		zoom_in(wo);
		}
	}


function zoom_in(wo){
	//document.getElementById('bildframe_'+wo).style.width=x;
	//document.getElementById('bildframe_'+wo).style.height=y;
	if(x < maxx || y < maxy){
		if(x < maxx) { x = x + 20;if(x>maxx)x=maxx; }
		if(y < maxy) { y = y + 20;if(y>maxy)y=maxy; }
		setTimeout("zoom_in('"+wo+"'), 10");
		}
	else{
		zoomend=1;
		}
	}


/*
function zoom_in(wo){
	eval("document."+wo+".width=x")
	eval("document."+wo+".height=y")
	if(x < maxx) { x = x + 10; }
	if(y < maxy) { y = y + 10; }
	
	setTimeout("zoom_in('"+wo+"'), 1000000");
	}
*/


function Bild(wo,was,title){

		var Quelle = document.getElementById('bild_'+wo).src;
		Quelle_a = Quelle.split("/");
		n=Quelle_a.length-1;
		bild_neu = Quelle.replace(Quelle_a[n],was+".jpg");
		
		document.getElementById('bild_'+wo).src = bild_neu;
		document.getElementById('bildtitel_'+wo).innerHTML = title;

	}

AC_FL_RunContent = 0;DetectFlashVer = 0;

