/*
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; 
goon=0;

function prepare() {
	/*window.resizeTo(1024,768);*/
	br=0;
	if (ie)        
	{
	br=2;
	_layer='document.all["';_style='"].style';
	}
	if (isNS)        	
	{
	_layer='document.layers.scrollWindowDiv.document.layers["';_style='"]';
	}
	if (mz)
	{
	_layer='document.getElementById("';_style='").style';
	}
	if(op) 
	{
	_layer='document.getElementById("';_style='").style';
	}
	/*document.getElementById("scrollButtonTop").style.visibility = "hidden";*/
	/* elsewindow.location.href="controlling.html"; // nur NN und IE !!!*/
}

function moveIt(_obj,_value,_scrollmax) 
{
	_test=y;  // Hilfsvariable
	y+=_value;
	scrollMax = (-1)*_scrollmax + 320;
	/*
	if (_value < 0) {
	    document.getElementById("scrollButtonTop").style.background = "url('../screen/up.gif') 0 0 no-repeat";
	    document.getElementById("scrollButtonTop").style.visibility = "visible";
	}
	*/
	if (y < scrollMax || y > 1)
		{
		y=_test;
		eval(_layer+_obj+_style+'.top="'+y+'"');
	}
	else 
		{
		eval(_layer+_obj+_style+'.top="'+y+'"');
		}
}

function scroll(_value,_scrollmax) {
	moveIt('scrollContentDiv',_value,_scrollmax);
	a=_value;
	scrollmax=_scrollmax;
	if ((goon)&&(y<10)) { 
	    setTimeout("scroll(a,scrollmax)",1);
	}
}

function gone() {   
	if(isNS) {   
		document.scrollWindowDiv.document.scrollContentDiv.moveTo(0,0); 
		y=0;
	}   
	if(ie) {   
		scrollContentDiv.style.pixelLeft=0;   
		scrollContentDiv.style.pixelTop=0;
		y=0;
	}   
	if(mz) {   
		document.getElementById("scrollContentDiv").style.left="0px";    
		document.getElementById("scrollContentDiv").style.top="0px";
		y=0;
	}
	if(op) {   
		scrollContentDiv.style.pixelLeft=0;   
		scrollContentDiv.style.pixelTop=0;
		y=0;
	}
}
