var delay=20;
var tsize=90;

function do_ticker(text, pos, dir)
{
	var c2=text.substring(pos, pos+6);
	var c3=text.substring(pos+6, pos+15);
	var c4=text.substring(pos+15, pos+tsize-6);
	var c5=text.substring(pos+tsize-6, pos+tsize-4);
	var c6=text.substring(pos+tsize-4, pos+tsize);

//hier wird die Farbe beim ein- bis zun Austritt bestimmt
var out='<pre><b><font color="#FF8888" size=5>'+c2+'</font><font size=4 color="#FF5555">'+c3+'</font><font color="#FF0000" size=3>'+c4+'</font><font color="#FF5555" size=4>'+c5+'</font><font color="#FF8888" size=5>'+c6+'</font></b></pre>';


    document.getElementById('ticker').innerHTML=out;

    pos+=dir;

    if(pos<text.length)
        setTimeout('do_ticker("'+text+'",'+pos+','+dir+')', delay*5);
	else
        setTimeout('do_ticker("'+text+'", 0,'+dir+')', delay*5);
}

function init(text)
{
    text='              '+text + '          ' + text + '         ' + text + '           ' + text;
    do_ticker(text, 0, 1);
}

function fill(text) {
	document.getElementById('pic_show').style.top=document.body.scrollTop;
	document.getElementById('pic_show').innerHTML = '<a href="' + text + '"><img src="' + text + '" width="580px" /></a>';
}


function fill2(text) {
	document.getElementById('pic_show').style.top=document.body.scrollTop;
	document.getElementById('pic_show').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="270" id="player" align="middle"><param name="movie" value="player.swf?file=' + text + '&size=false&aplay=true&autorew=false&title="/><param name="menu" value="false"/><param name="quality" value="high"/><param name="bgcolor" value="#FFFFFF"/><noscript>Please aktivate your Javascript to see the clip.</noscript><embed src="player.swf?file=' + text + '&size=false&aplay=true&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="320" height="270" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/></object>';
}