

function new_window(Wert)
	{
  		bildfenster = open(Wert,"Fenster", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=750,height=210");
  		bildfenster.focus();
	}
	
	
function new_window_zb(Wert)
	{
  		bildfenster = open(Wert,"Fenster", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=500,height=450");
  		bildfenster.focus();
	}

	
function start()
	{
		aktiv = window.setInterval("slide_images()",7000);
	}



function frames()
	{
		if (parent.frames.length == 0) window.location.href = "index.html";
	}
	
	
function frames_sub()
	{
		if (parent.frames.length == 0) window.location.href = "../index.html";
	}

	
	
function slide_images()
	{
	 
		i = i + 1;
 		if(i==3) {i = 1}
		window.document.images[2].src = "bilderwechsel/bild1_" + i + ".jpg";
		window.document.images[5].src = "bilderwechsel/bild2_" + i + ".jpg";
		window.document.images[8].src = "bilderwechsel/bild3_" + i + ".jpg";
		window.document.images[11].src = "bilderwechsel/bild4_" + i + ".jpg";
	}
	
	

function swapImgRestore() 
	
	{ 
  		var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	
function preloadImages() 

	{ 
  		var d=document; if(d.images){ if(!d.p) d.p=new Array();
    	var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    	if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
	}

	
function findObj(n, d) 

	{ 
  		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  		if(!x && document.getElementById) x=document.getElementById(n); return x;
	}

function swapImage() 
	{ 
  		var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   		if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}


function frames()
	{
		if (parent.frames.length == 0) window.location.href = "index.html";
	}
	
	
function frames_aendern(f1,URL1,f2,URL2)
	{
		parent.frames[3].frames[f1].location.href = URL1;
		parent.frames[3].frames[f2].location.href = URL2;
	}