


//Breite
var marqueewidth=720;

//Höhe
var marqueeheight=20;

//speed
var marqueespeed=2;

//background color (für Transparent einfach leer lassen!)
var marqueebgcolor="";

//bei Rollover anhalten (0=nein. 1=ja)?
var pauseit=0;


//Alles in einer Zeile schreiben! Einfache Gänsefüsschen mit backslash versehen!!! (Bsp: that\'s great):
// (Dieser Teil wird später durch eine PHP-Variable ersetzt, die dann via Datenbank angesteuert wird)
//var marqueecontent='<nobr><a href="/cgi-tdb/en/basics.prg?r_index=6" class="newstickerlink"> +++ NEWS +++    Further development of the Transrapid ensures technological lead    +++ NEWS +++</a></nobr>';
//var marqueecontent='<nobr><a href="/cgi-tdb/de/basics.prg?r_index=1" class="newstickerlink"> +++ NEWS +++    Ehrendoktorw&uuml;rde für Commander WU    +++ NEWS +++</a></nobr>';


var copyspeed=marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
var iedom=document.all||document.getElementById;
if (iedom)
document.write('<span id="temp" style="display:none;">'+marqueecontent+'</span>');
var actualwidth='';
var cross_marquee, ns_marquee;

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee;
cross_marquee.style.left=marqueewidth+8;
cross_marquee.innerHTML=marqueecontent;
actualwidth=document.all? cross_marquee.offsetWidth : document.getElementById("temp").offsetWidth;
}

lefttime=setInterval("scrollmarquee()",20);
}
//window.onload=populate;

function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed
else
cross_marquee.style.left=marqueewidth+8

}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=marqueewidth+8
}
}

if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="20" cellpadding="0" width="450"><td>')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></div>')
write('<div id="iemarquee" style="position:absolute;center:0;top:0"></div>')
write('</div></div>')
}

document.write('</td></table>')
}
}

populate();


