// All JavaScript functions (c)2001 blyfri

ns4 = (document.layers) ? true : false;
ie4 = (document.all) ? true : false;
ns6 = (document.getElementById) ? true : false;

function initscroll() {
        if(ns4) {
                child1 = document.parent1Div.document.child1Div
                child1.ypos = child1.top

                child4 = document.parent3Div.document.child4Div
                child4.ypos = child4.top
				
        }
        if(ie4) {
				//alert('ie4');
                child1 = document.all.child1Div.style
                child1.ypos = child1.top
				
                child4 = document.all.child4Div.style
                child4.ypos = child4.top
				
        }
		if(ns6) {
			//alert('ns6');
			child1 = document.getElementById('child1Div').style
			child1.ypos = child1.top

			child4 = document.getElementById('child4Div').style
			child4.ypos = child4.top

		}
}


var toggle = 0

function startscroll() {
	toggle = 1
}

function stopscroll() {
	toggle = 0
}

function scrollmove(obj, y) {
	if(obj) this.obj = obj;
	else obj = this.obj;
	if((! this.y) && y)
		this.y = y;
	if(toggle) {
		this.y += toggle;
		if(this.y < -2048) {
			this.y = -2048;
		}
		if(this.y > 0) {
			this.y = 0;
		}
		obj.top = this.y;
		setTimeout('scrollmove()', 20);
	}
}

function moveup(obj) {
	toggle = 2;
	eval('scrollmove(' + obj + ', 2)');
}

function movedown(obj) {
	toggle = -2;
	eval('scrollmove(' + obj + ', -2)');
}

