// Popup für die Galerie
///////////////////////////////////////////
function PopupGalerie(imgid, galid) {
      window.open("./modules/popup_galerie.php?gid="+galid+"&pic="+imgid+"", "", "status=no,toolbar=no,scrollbars=no,resizable=0,height=600,width=596");
}

// Ticker
///////////////////////////////////////////
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);


var nSpeed = 2;
var timerTt = null;
var timerSt = null;

function Statik() {
    if (ie5 || ns6) {
	timerSt=setTimeout("Statik()", 10);
	}
}

function TickerTape(){
    if(ie5 || ns6) {
        tck.style.left = nLeft;
        tck.style.width = nWidth;
        nLeft = nLeft - nSpeed;
        if( nLeft < nEnd ) {nLeft = nWidth;}
        timerTt=setTimeout('TickerTape()', 30);
    }
}

function StopIt(){
        clearTimeout(timerTt);
}

function TickerInit(tickerLength){
nWidth = tickerLength;
nEnd = -nWidth;
nLeft = nWidth;
    if(ie5 || ns6) {
        tck = document.getElementById('ticker_text');
        obj = document.getElementById('ticker_cont');
        obj.style.visibility = "visible";
        obj.onmouseover=StopIt;
        obj.onmouseout=TickerTape;
        TickerTape();
	Statik();
    }
}
