//Script zum Scrollen der Navigationslayer
var weiter;
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) );

weiter=0;y=0;

function testen() 
{
br=0;
	if (ie)        
	{
	br=2;
	schicht='document.getElementById("';stil='").style';
	}
	if (isNS)        	
	{
	schicht='document.getElementById("';stil='").style';
	}
	if (mz)
	{
	schicht='document.getElementById("';stil='").style';

	}
	if(op) 
	{
	schicht='document.getElementById("';stil='").style';
	}
	/* elsewindow.location.href="controlling.html"; // nur NN und IE !!!*/
}

function moveIt(wen,wert) 
{
if (eval(schicht+wen+stil+'.top').replace('px', '') != '') {
	test = parseFloat(eval(schicht+wen+stil+'.top').replace('px', ''));  // Hilfsvariable
	y = parseFloat(eval(schicht+wen+stil+'.top').replace('px', '')) + wert;
}
else {
	test = 0;
	y= 0;
}
if (y < -(document.getElementById(wen).offsetHeight-101) || y > 1) 
	{
	y=test;
	eval(schicht+wen+stil+'.top="'+y+'"');
}
else 
	{
	eval(schicht+wen+stil+'.top="'+y+'"');
	}
}

function scrollen(wert) 
{
	moveIt('container',wert);
	a=wert;
	if ((weiter)&&(y<10)) setTimeout("scrollen(a)",1);
}
