
speed="2"
var divwidth="420"
var divheight="50"
var divincbt="1"
var divinctb="-1"
var divincrl="1"
var divinclr="0"
var divpause="2000"
var divcolor="4682B4"
var divtop="20"
var divleft="10"
var divname1="zeigea"
var divname2="zeigeb"
var divinnertop="5"
var divinnerleft="0"
var whichscroll="3"
var divinc
var stopposa
var stopposb
var scrollmsga
var scrollmsgb
var thediva
var thedivb
var posa
var posb
var i=msg.length
var firsttime="y"
var divprop
var whichdiv=divname1
if(whichscroll=="1")
{
stopposa=0
stopposb=divheight*-1
divprop="top"
divinc=divincbt
}
if(whichscroll=="2")
{
stopposa=2
stopposb=divheight*+3
divprop="top"
divinc=divinctb
}
if(whichscroll=="3")
{
stopposa=0
stopposb=divwidth*-1
divprop="left"
divinc=divincrl
}
if(whichscroll=="4")
{
stopposa=1
stopposb=divwidth+2
divprop="left"
divinc=divinclr
}
function Scrollboxa(obja)
{
savobja=obja
posa=posa-divinc
if(((whichscroll=="1" || whichscroll=="3")&&(posa<=stopposa))||
((whichscroll=="2" || whichscroll=="4")&&(posa>=stopposa)))
{
clearTimeout(scrollmsga)
setTimeout("scrollit()",divpause)
}
else
{
if(document.getElementById)
{
eval("elma.style."+divprop+"=posa")
elma.style.visibility="visible"
}
if(document.layers)
{
eval("obja."+divprop+"=posa")
document.main.visibility="show"
}
scrollmsga=setTimeout("Scrollboxa(savobja)",speed)
}
}
function Scrollboxb(objb)
{
savobjb=objb
posb=posb-divinc
if(((whichscroll=="1" || whichscroll=="3")&&(posb<=stopposb))||
((whichscroll=="2" || whichscroll=="4")&&(posb>=stopposb)))
{
clearTimeout(scrollmsgb)
}
else
{
if(document.getElementById)
{
eval("elmb.style."+divprop+"=posb")
}
if(document.layers)
{
eval("objb."+divprop+"=posb")
objb.visibility="show"
}
scrollmsgb=setTimeout("Scrollboxb(savobjb)",speed)
}
}



function scrollit()
{
i++
if(i>=msg.length)
{i=0}
posa=stopposb*-1
posb=0
if(firsttime=="y")
{
firsttime= "n"
if(document.getElementById)
{
elma=document.getElementById(divname1)
elma.innerHTML=msg[i]
}
if(document.layers)
{
thediva=eval("document.main.document."+divname1)
thediva.document.write(msg[i])
thediva.document.close()
}
Scrollboxa(thediva)
}
else
{
if(whichdiv==divname1)
{
if(document.getElementById)
{
elmb=document.getElementById(divname1)
elma=document.getElementById(divname2)
elma.innerHTML=msg[i]
}
if(document.layers)
{
thedivb=eval("document.main.document."+divname1)
thediva=eval("document.main.document."+divname2)
thediva.document.write(msg[i])
thediva.document.close()
}
Scrollboxb(thedivb)
whichdiv=divname2
Scrollboxa(thediva)
}
else
{
if(document.getElementById)
{
elmb=document.getElementById(divname2)
elma=document.getElementById(divname1)
elma.innerHTML=msg[i]
}
if(document.layers)
{
thedivb=eval("document.main.document."+divname2)
thediva=eval("document.main.document."+divname1)
thediva.document.write(msg[i])
thediva.document.close()
}
Scrollboxb(thedivb)
whichdiv=divname1
Scrollboxa(thediva)
}
}
}





if(document.getElementById)  // IE5 and NS6
{ document.write('<div style="position:relative; top:'+divtop+';left:'+divleft+';width:'+divwidth+';height:'+divheight+';visibility:visible;background-color:'+divcolor+';overflow:hidden;clip:rect(0,'+divwidth+','+divheight+',0)">')
document.write('<div style="position:relative;top:'+divinnertop+';left:'+divinnerleft+';width:'+divwidth+';height:'+divheight+'">')
document.write('<div id='+divname1+' style="position:absolute;top:5;left:0;width:'+divwidth+';height:'+divheight+'"></div>')
document.write('<div id='+divname2+' style="position:absolute;top:5;left:0;width:'+divwidth+';height:'+divheight+';visibility:hidden;"></div>')
document.write('</div></div>') }
if(document.layers)  // NS4+
{ document.write('<ilayer id="main" top='+divtop+' left='+divleft+' width='+divwidth+' height='+divheight+' bgcolor='+divcolor+' visibility=hide>')
document.write('<layer id='+divname1+' left='+divinnerleft+' top='+divinnertop+' width='+divwidth+'></layer>')
document.write('<layer id='+divname2+' left='+divinnerleft+' top='+divinnertop+' width='+divwidth+'>')
document.write('</layer></ilayer>') }