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) );
y=0; weiter=0;
divheight=0;
schicht=0;
schicht2=0;
stil=0;
stil2=0;
//alert ("schicht");

function init() 
{
br=0;
br2=0;
	if (ie)        
	{
	br=2;
	schicht='document.all["';stil='"].style';
	}
	if (isNS)        	
	{
	schicht='document.layers.scrollWindowDiv.document.layers["';stil='"]';
	}
	if (mz)
	{
	schicht='document.getElementById("';stil='").style';
	}
	if(op) 
	{
	schicht='document.getElementById("';stil='").style';
	}
	/* elsewindow.location.href="controlling.html"; // nur NN und IE !!!*/
	schicht2=schicht;
	stil2=stil;
		
}

function moveIt(wen,wert) 
{
	if (mz)
	{
	hoehe=document.getElementById(wen).offsetHeight;
	}

	if (op)
	{
	hoehe=document.getElementById(wen).offsetHeight;
	}
	if (ie)
	{
	hoehe=document.getElementById(wen).clientHeight;
	}


test=y;  // Hilfsvariable
y+=wert;
if (y < -(hoehe-200) || y > 1) 
	{
	y=test;
	eval(schicht+wen+stil+'.top="'+y+'"');
}
else 
	{
	eval(schicht+wen+stil+'.top="'+y+'"');
	}
}

function scrollen(tag_id,wert) 
{
moveIt(tag_id,wert);
a=wert;
if ((weiter)&&(y<10)) setTimeout("scrollen(\""+tag_id+"\",a)",1);
}

//--------------------------------------------------------------------
function doresize2 () 
	{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) );

y2=0; weiter2=0;
divheight2=0;


function moveIt2(wen2,wert2) 
{
	if (mz)
	{
	hoehe2=document.getElementById(wen2).offsetHeight;
	}

	if (op)
	{
	hoehe2=document.getElementById(wen2).offsetHeight;
	}
	if (ie)
	{
	hoehe2=document.getElementById(wen2).clientHeight;
	}

test2=y2;  // Hilfsvariable
y2+=wert2;
if (y2 < -(hoehe2-200) || y2 > 1) 
	{
	y2=test2;
	eval(schicht2+wen2+stil2+'.top="'+y2+'"');
}
else 
	{
	eval(schicht2+wen2+stil2+'.top="'+y2+'"');
	}
}

function scrollen2(tag_id2,wert2) 
{
moveIt2(tag_id2,wert2);
a2=wert2;
if ((weiter2)&&(y2<10)) setTimeout("scrollen2(\""+tag_id2+"\",a2)",1);
}


