function doresize () 
	{location.reload();return false;}
if(document.layers)window.captureEvents(Event.RESIZE); window.onresize=doresize;

var  js10 = (document.images)?false:true; // NN2.x
var  js11 = (document.images) && ((window.screen)?false:true); // NN3.x
var  ie = ((document.all) && (window.offscreenBuffering)) ? true : false; // IE >= 4.x
var  isNS = ((document.captureEvents) && (!document.getElementById)) ? true : false; // NN4.x
var  mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false; // NN6/MZ
var  op = ((document.getElementById) && (navigator.userAgent.indexOf('Opera') != 1)) ?true : false;
var isMacIE = ( (navigator.userAgent.indexOf("IE 4") > -1) && (navigator.userAgent.indexOf("Mac")  > -1) );

y1=0; y=0; weiter01=0; weiter02=0;

function testen01() 
{
br=0;
	if (ie)        
	{
	br=2;
	schicht01='document.all["';stil='"].style';
	}
	if (isNS)        	
	{
	schicht01='document.layers.scrollWindowDiv01.document.layers["';stil='"]';
	}
	if (mz)
	{
	schicht01='document.getElementById("';stil='"scrollWindowDiv01)';
	}
	if(op) 
	{
	schicht01='document.getElementById("';stil='").style';
	}
	/* elsewindow.location.href="controlling.html"; // nur NN und IE !!!*/
}

function moveIt01(wen,wert) 
{
test=y1;  // Hilfsvariable
y1+=wert;
if (y1 < -1051 || y1 > 1) 
	{
	y1=test;
	eval(schicht01+wen+stil+'.top="'+y1+'"');
}
else 
	{
	eval(schicht01+wen+stil+'.top="'+y1+'"');
	}
}

function scrollen01(wert) 
{
moveIt01('scrollContentDiv01',wert);
a=wert;
if ((weiter01)&&(y<10)) setTimeout("scrollen01(a)",1);
}

function gone()
{   
if(isNS)
	{   
	document.scrollWindowDiv01.document.scrollContentDiv01.moveTo(20,0); 
	y1=0;
	}   
if(ie)   
	{   
	scrollContentDiv01.style.pixelLeft=20;   
	scrollContentDiv01.style.pixelTop=0;
	y1=0;
	}   
if(mz)
	{   
	document.getElementById("scrollContentDiv01").style.left="20px";    
	document.getElementById("scrollContentDiv01").style.top="0px";
	y1=0;
	}
if(op)
	{   
	scrollContentDiv01.style.pixelLeft=20;   
	scrollContentDiv01.style.pixelTop=0;
	y1=0;
	}
}


function testen02() 
{
br1=0;
	if (ie)        
	{
	br1=2;
	schicht02='document.all["';stil='"].style';
	}
	if (isNS)        	
	{
	schicht02='document.layers.scrollWindowDiv02.document.layers["';stil='"]';
	}
	if (mz)
	{
	schicht02='document.getElementById("';stil='").style';
	}
	if(op) 
	{
	schicht02='document.getElementById("';stil='").style';
	}
	/* elsewindow.location.href="controlling.html"; // nur NN und IE !!!*/
}

function moveIt02(wen2,wert2) 
{
test=y;  // Hilfsvariable
y+=wert2;
if (y < -351 || y > 1) 
	{
	y=test;
	eval(schicht02+wen2+stil+'.top="'+y+'"');
}
else 
	{
	eval(schicht02+wen2+stil+'.top="'+y+'"');
	}
}

function scrollen02(wert2) 
{
moveIt02('scrollContentDiv02',wert2);
b=wert2;
if ((weiter02)&&(y<10)) setTimeout("scrollen02(b)",1);
}
function gone()
{   
if(isNS)
	{   
	document.scrollWindowDiv02.document.scrollContentDiv02.moveTo(20,0); 
	y=0;
	}   
if(ie)   
	{   
	scrollContentDiv02.style.pixelLeft=20;   
	scrollContentDiv02.style.pixelTop=0;
	y=0;
	}   
if(mz)
	{   
	document.getElementById("scrollContentDiv02").style.left="20px";    
	document.getElementById("scrollContentDiv02").style.top="0px";
	y=0;
	}
if(op)
	{   
	scrollContentDiv02.style.pixelLeft=20;   
	scrollContentDiv02.style.pixelTop=0;
	y=0;
	}
}



function onLoadFunction() {
   testen01();
   testen02();
  }
 
