/* default.js */
function openw(url, breite, hoehe) {
	popWin = window.open(url,'pop', 'width='+breite+', height='+hoehe+', resizable=1, scrollbars=yes');
	popWin.focus();
}

// JavaScript Document
var faktor=-1;
var scroll=false;
var intervalIDY;

function slideY(){ 
	if(document.getElementById){
		if(parseInt(lyr4.style.top) > maxY && faktor==-1){	//parseInt(lyr2.style.top) < 0 &&
			lyr4.style.top = parseInt(lyr4.style.top) + faktor*10 + "px";
//			setTimeout("slideY()",30);
		}
		else if(parseInt(lyr4.style.top) < minY && faktor==1){
			lyr4.style.top = parseInt(lyr4.style.top) + faktor*10 + "px";
//			setTimeout("slideY()",30);
		} else {
			window.clearInterval(intervalIDY);
			scroll = false;
		}
	}
}
function startScroll(direction) {
	if (scroll) {
		window.clearInterval(intervalIDY);
		scroll = false;
	}
	faktor = (direction)?direction:faktor;
	scroll = true;
	intervalIDY = window.setInterval("slideY()",100);
}

function stopScroll() {
	if (scroll) {
		window.clearInterval(intervalIDY);
	}
}

function toTop() {
	if(document.getElementById){
		lyr4.style.top = minY + "px";
	}
}

// Scroll Slogan
function slideX(param) {
	if (document.getElementById) {
		if (parseInt(lyr2.style.left) > minX) {
			lyr2.style.left = parseInt(lyr2.style.left) - param + "px";
		}
		else lyr2.style.left = maxX + "px";
	}
}
function init() {
	if (document.getElementById) {
		lyr1 = document.getElementById("tickerBox");
		lyr2 = document.getElementById("tickerText");
		maxX = 840;
		minX = -1 * parseInt(lyr2.style.width);
		
/*		lyr3 = document.getElementById("rahmenTextBox");
		lyr4 = document.getElementById("textBox");
		maxY = -400;
		minY = parseInt(lyr4.style.top);
*/	}

}

