//
// 
//
var tickmsg;
var tickspace = "                    ";
var pos = 0;
function DoTickInit() {tickmsg = document.tickerForm.tick1.value;}
function DoTick() {
    document.tickerForm.tick1.value = tickmsg.substring(pos, tickmsg.length) + tickspace + tickmsg.substring(0, pos);
    pos++;
    if (pos > tickmsg.length) pos = 0;
    window.setTimeout("DoTick()",200); 
}


//
// klappt navigationspunkte ein / aus
//
function flipalws(rid) {
    current=(document.getElementById(rid).style.display == 'none') ? 'block' : 'none';
    document.getElementById(rid).style.display = current;
}
function flip(elmntID) {
    elmnt=document.getElementById(elmntID);

    if(elmnt.style.display=='block') {
        elmnt.style.display='none';
    } else {
        elmnt.style.display='block';
    }
    return;
}


//
// gefunden in antwort.php
//
function do_resize() {
    var wins, winh;
    wins = screen.width - (screen.width / 2) - 100;
    winh = screen.height - (screen.height / 2) - 200;
    window.resizeTo(380,500);
    window.moveTo(wins,winh);
}