
	// controller vars
	var tickerSpeed = 40;
	var endOfLineWait = 2000;
	var endOfTickerWait = 5000;
	var tickerStartWait = 1250;

	// // //

	// these are the messages to be shown
	var line = new Array();

	line[1] = "++ SONDERAKTION ++ SONDERAKTION ++ SONDERAKTION ++";
	line[2] = "Unser Leistungsprogramm jetzt zum Frühlingspreis !";
	line[3] = "Für weitere Infos einfach hier klicken . . .";

	// // //

	var longestmessage = 1;
	for( i=2; i<line.length; i++ ) {
		if( line[i].length > line[longestmessage].length )
			longestmessage = i;
	}

	//Auto set scroller width
	var tscroller_width = line[longestmessage].length;

	lines = line.length - 1; //--Number of lines

	temp = "";
	nextchar =- 1;
	nextline = 1;
	cursor = "\\";

	function animate(){
		if( temp == line[nextline] & temp.length == line[nextline].length & nextline != lines ) {
			nextline++;
			nextchar =- 1;

			// this is the ticker span
			document.getElementById( 'the-ticker' ).innerHTML = temp;

			temp = "";
			setTimeout( "nextstep()", endOfLineWait );
		}
		else if( nextline == lines & temp == line[nextline] & temp.length == line[nextline].length ) {
			nextline = 1;
			nextchar = -1;

			// this is the ticker span
			document.getElementById( 'the-ticker' ).innerHTML = temp;

			temp = "";
			setTimeout( "nextstep()", endOfTickerWait );
		}
		else {
			nextstep();
		}
	}

	function nextstep(){
		if( cursor == "\\" ) {
			cursor = "|";
		}
		else if( cursor == "|" ) {
			cursor = "/";
		}
		else if( cursor == "/" ) {
			cursor = "-";
		}
		else if( cursor == "-" ) {
			cursor = "\\";
		}

		nextchar++;

		temp += line[nextline].charAt( nextchar );

		// this is the ticker span
		document.getElementById( 'the-ticker' ).innerHTML = temp + " " + cursor;

		setTimeout( "animate()", tickerSpeed );
	}

	// if IE 4+ or NS6
	if( document.all || document.getElementById ) {
		window.onLoad = setTimeout( "animate()", tickerStartWait );
	}

