
/* * * * * * * * * * * * * * * * D I E  V A R I A B L E N * * * * * * * * * * * * * * * * * */

    //°°°°°°°°°°Die News

tNews=new Array();
tNews.push('');


<!-- ------------------- -->
tNews.push('<b style ="color: black; font-size:11px">27.10.2011, Leichtathletik</b><br>Ab Montag gilt der Wintertrainingsplan<br><a href="z-leichtath/la-train.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">27.10.2011, Volleyball</b><br>Verlegung der Spiele am 30.10.11<br><a href="z-volley/vb-start.html#start">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">20.10.2011, Fu&szlig;ball</b><br>Spiel um den Idsteiner Hexenturmpokal 2011 der Jugendmannschaften<br><a href="z-fussball/fb-start.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">19.10.2011, TV Idstein</b><br>INTEGRATION: Feierstunde mit Zertifikats&uuml;bergabe<br><a href="tv-news.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">19.10.2011, Montagsturner</b><br>Einsatz der Montagsturner am Himmelsbornweg<br><a href="z-monturn/monturn-start.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">18.10.2011, TV Idstein</b><br>Fackelwanderung<br><a href="tv-news.html#fackel">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">04.10.2011, Tischtennis</b><br>Neue Regel&auml;nderung?<br><a href="z-ttennis/tt-start.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">03.10.2011, Basketball</b><br>Kein erfolgreicher Spieltages am 01.10.2011<br><a href="z-basket/bb-start.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">29.09.2011, Leichtathletik</b><br>Zum Saisonabschluss Spitzenleistungen<br><a href="z-leichtath/la-start.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">26.09.2011, Volleyball</b><br>Gl&auml;nzender Saisonstart der TVI-Volleyballer<br><a href="z-volley/vb-start.html#start">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">24.09.2011, Fitness & Dance</b><br>Step by Step Teil II, Kurs ab 26.10.2011<br><a href="z-fitness/fit-start.html#step">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">22.09.2011, TV Idstein</b><br>Spende f&uuml;r den TV Idstein<br><a href="tv-news.html#spende">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">22.09.2011, TV Idstein</b><br>Integration im Sport - Auszeichnung des TV Idstein<br><a href="tv-news.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">22.09.2011, Fu&szlig;ball</b><br>Drei Jugendtrainer mit neu erworbener Fu&szlig;balllizenz<br><a href="z-fussball/fb-start.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">21.09.2011, Volleyball</b><br>Erfolgreiche Volleyball-U13-Teams des TV Idstein<br><a href="z-volley/vb-start.html#u13">weiter</a>');


tNews.push('<b style ="color: black; font-size:11px">&nbsp;</b>______________________');
tNews.push('<b style ="color: black; font-size:12px">Schwarzes Brett</b>');
tNews.push('<b style ="color: black; font-size:11px">Fu&szlig;ball</b><br>Co-Trainer f&uuml;r Herren-Mannschaft gesucht<br><a href="z-fussball/fb-start.html">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">Reservierungen</b><br>Reservierung Seminarraum, Bistro, Sporthalle am Wochenende &uuml;ber Frank St&uuml;bing, Tel. (0 61 26) 70 770');
tNews.push('<b style ="color: black; font-size:11px">Beachplatz</b><br>privat mieten m&ouml;glich <br>Tel. (0 61 26) 9 59 55 57 oder <a href="mailto: tv1844idstein_gs@t-online.de "> tv1844idstein_gs@t-online.de</a>');
tNews.push('<b style ="color: black; font-size:11px">TVI-Shop</b><br><a href="http://www.handball-in-idstein.de/_joomla_neu/index.php?option=com_content&view=article&id=381:tvi-shop&Itemid=100124" target="_blank">weiter</a>');
tNews.push('<b style ="color: black; font-size:11px">&nbsp;</b>______________________');
<!-- ------------------------------------------------->
//tNews.push(''); 
    //°°°°°°°°°°Laufrichtung(up,down,left,right)
strDir      ='up';

    //°°°°°°°°°°Delimiter zwischen den einzelnen News(nur bei left/right)
strDelimiter=' + + + ';

    //°°°°°°°°°°Interval in ms
intInterval =20;  // 40

    //°°°°°°°°°°Stop bei mouseover?true:false
blnStopHover=true;

    //°°°°°°°°°°Falls Leeraum zwischen News...hier Wert erhoehen...minimum:1
intRepeat   =2;   //2

    //°°°°°°°°°°Rahmen
strBorder   ='1px solid #818181';

    //°°°°°°°°°°Breite
intWidth    =170;

    //°°°°°°°°°°Höhe
intHeight   =545;

    //Abstand Rahmen->Inhalt
intPadding  =4;

    //Background-color
strBgc      ='#ffffff';

    //Text-color
strTxtc     ='#bf0000';

    //Textausrichtung
strAlign    ='left';

    //Schritt pro Durchlauf(px)
intStep=1;  //1


/* * * * * * * * * * * * * * * * * * D E R  T I C K E R * * * * * * * * * * * * * * * * * * * * * */

    //IE ab V4?
IE=document.all&&!window.opera;
    //DOM-Browser(ausser IE)
DOM=document.getElementById&&!IE;


//läuft ab IE4 und in DOM-Browsern
if(DOM||IE)
  {
        //Ermitteln, ob Ticker horizontal oder vertikal laufen soll
    blnDir=(strDir=='up'||strDir=='down')?true:false;

        //Bei horizontalem Ticker wird ein nobr-, ansonsten ein div-Tag verwendet
    strNobr=(blnDir)?'div':'nobr';

        //Trennzeichen zwischen den Einzelnen Eintraegen
        //bei horizontalem Ticker gemäss Angabe in Variale strDelimiter
        //Ansonsten Zeilenumbrueche
    strDelimiter=(blnDir)?'<br><br>':strDelimiter;

        //String fuer Textausrichtung bei vertikalem Ticker
    strAlign=(blnDir)?'text-align:'+strAlign+';':'';

        //Variable zum Speichern des Intervals
    var objGo;
        //Variable zum Speichern der Position
    intPos=0;

        //String erzeugen fuer JS-Code, falls Ticker beim mouseover stoppen soll
    strStopHover=(blnStopHover)?'onmouseover="clearInterval(objGo)"onmouseout="objGo=setInterval(\'DM_ticken()\','+intInterval+')"':'';

        //Tickertext zu String zusammenfuegen
    strText=(blnDir)?tNews.join(strDelimiter)+strDelimiter:tNews.join(strDelimiter)+strDelimiter;
    strNews=strText;
    for(i=1;i<intRepeat;++i)
        {
        strNews+=strText;
        }

        //TickerCode zu String zusammenfuegen
    strTicker='<div style="position: relative; '+strAlign+'overflow:hidden;background-color:'+strBgc+
                    ';border:'+strBorder+';width:'+intWidth+'px;height:'+intHeight+'px;padding:'+intPadding+
                    'px;"><'+strNobr+'><div id="ticker"style="position:relative;color:'+strTxtc+';background-color:'+strBgc+
                    ';"'+strStopHover+'>'+strNews+'</div></'+strNobr+'></div>';

        //TickerCode im Dokument ausgeben
    document.write(strTicker);

        //Funktion, um Ticker ticken zu lassen
    function DM_ticken()
    {
        //Ticker-Objekt je nach Browser ermitteln
    objTicker=(IE)?document.all.ticker:document.getElementById('ticker');

        //Array fuer zu manipulierende Eigenschaften des Tickers je nach Richtung
        //Richtung=new Array(Pixelwert zur Aenderung der Position,Breite/Höhe des Tickers,zu andernder Positionswert);
    arrDir=new Array();
    arrDir['up']    =new Array(-1,objTicker.offsetHeight,'top');
    arrDir['down']  =new Array(1,objTicker.offsetHeight,'top');
    arrDir['left']  =new Array(1,objTicker.offsetWidth,'left');
    arrDir['right'] =new Array(-1,objTicker.offsetWidth,'left');

        //Ermitteln von Breite bzw. Höhe der anzuzeigenden Items
    dblOffset=arrDir[strDir][1]/intRepeat;

        //Neuen Positionswert ermitteln
    switch(strDir)
        {
        case'right':
            intPos=(Math.abs(intPos)>dblOffset)?0:intPos;break;
        case'left':
            intPos=(intPos>0)?-dblOffset:intPos;break;
        case 'up':
            intPos=(Math.abs(intPos)>dblOffset)?0:intPos;break;
        case 'down':
            intPos=(intPos>0)?-dblOffset:intPos;break;
        }
        //Neuen Positionswert zuweisen
    objTicker.style[arrDir[strDir][2]]=intPos + "px";

        //Positionswert hoch/heruntersetzen
    intPos+=intStep*arrDir[strDir][0];
    }
        //Erneut ticken lassen
    objGo=setInterval('DM_ticken()',intInterval);
  }       

