﻿       /* * * * * * * * * * * * * * * * D I E  V A R I A B L E N * * * * * * * * * * * * * * * * * */
tNews=new Array();

//??????????Die News
tNews.push('<b style="color:#be2423; text-decoration:underline;">Nächstes Heimspiel im ETC am Samstag, den 13.03.2010 um 18 Uhr: Beach Boys - Rostocker EC (Meisterrunden-Finale)</b> +++ Eintritt für Kinder bis 12 Jahre FREI + + +  <b style="color:#be2423; text-decoration:underline;">NEU: Eisstockschiessen</b>');
//??????????tNews.push('<b style="color:#be2423"> Sommerpause beendet + + +  </b><em style="font-weight:bold; text-decoration:underline;"><a href="http://www.etc-on-ice.de/?content=news&action=detail&id=1204" target="_self">Saisoner?ffnungsfeier am 19.09.2009</</em><b style="color:#be2423"> + + + NEU: Eisstockschie?en + + + Sonntag 20.09.2009 Testspiel Beach-Boys vs. Hamburg Crocodiles (19 Uhr)');
//??????????tNews.push('<a href="http://www.etc-on-ice.de/index.php?content=event&action=detail&id=16" target="_self"><em style="font-weight:bold; text-decoration:underline;">Das ETC sagt DANKE:</em><b style="color:#be2423"> gro?e Saisonabschlussfeier am Freitag, den 20.03.2009</b> ab 18 Uhr im ETC.</a> +++ <b style="color:#be2423">Eintritt frei!!</b> +++ <b style="color:#be2423">Das ETC im TV:</b> am Freitag, den 20.03.2009 in der Sendung "Lust auf Norden" auf N3 ab 18:15 Uhr Bericht ?ber die Eishalle und die Rodelbahn.');
//??????????tNews.push('<a href="http://www.mobileasiacongress.com/" target="_blank"><em style="font-weight:bold; text-decoration:underline;">Capacity USA 2008,</em></a> 6. und 7. Mai 2008, New York');
//??????????tNews.push('<a href="http://www.gtmintelsat.com/" target="_blank"><em style="font-weight:bold; text-decoration:underline;">GTM</em></a> 2. - 5. Juni 2008 in Washington, DC, USA');
//??????????tNews.push('<a href="http://www.iam-online.de/cipp/mr/custom/pub/content,lang,1/oid,471/ticket,g_a_s_t" target="_blank"><em style="font-weight:bold; text-decoration:underline;"> IAM</em></a> 5. - 7. September 2008 in D&uuml;sseldorf');
//??????????tNews.push('<a href="http://www.mobileasiacongress.com/" target="_blank"><em style="font-weight:bold; text-decoration:underline;">Mobil Asia Congress</em></a> 18. - 20. November 2008, Macau, China');

//??????????Delimiter zwischen den einzelnen News
tDelimiter  =' + + + ';

//??????????Interval in ms
tInterval   =30;

//??????????Stop bei mouseover?true:false
tStop       =true;

//??????????Falls Leeraum zwischen News...hier Wert erhoehen...minimum:1
tRepeat     =2;

//??????????Rahmen
tBorder     ='0px solid white';

//??????????Breite
tWidth      =478;

//??????????H?he
tHeight     =25;

//Abstand Rahmen->Inhalt (top+bottom)
tPadding    =10;

//Das Aussehen per CSS anpassbar unter Verwendung des Selectors #ticker

/* * * * * * * * * * * * * * * * * * D E R  T I C K E R * * * * * * * * * * * * * * * * * * * * * */
IE  = document.all&&!window.opera;
DOM = document.getElementById&&!IE;

if(DOM||IE)
    {
    var tGo,
        tPos  = 0,
        tStop = tStop?'onmouseover="clearInterval(tGo)"'+ 'onmouseout="tGo=setInterval(\'DM_ticken()\','+tInterval+')"':'',
        tTxt  = tDelimiter+tNews.join(tDelimiter),
        tNews = tTxt;
        
        for(i = 1; i < tRepeat; ++i)
          {
            tNews+=tTxt;
          }
          
        document.write('<div style="overflow:hidden;border:' + tBorder +
                       ';width:' + tWidth + 'px;height:' + tHeight + 'px;' +
                       'padding:' + tPadding + 'px 0px ' + tPadding + ' px 0px;">' +
                       '<div style="position:absolute;width:' + tWidth + 'px;height:' + tHeight + 'px;'+
                       'overflow:hidden;clip:rect(0px '+tWidth+'px '+tHeight+'px 0px)">'+
                       '<span id="ticker"style="white-space:nowrap;position:relative;"' + tStop + '>' + tNews + 
                       '</span></div></div>');
        
        tObj = IE ? document.all.ticker : document.getElementById('ticker');
    
    function DM_ticken()
      {
        tOffset = tObj.offsetWidth/tRepeat;
        if(Math.abs(tPos) > tOffset)
          {
            tPos=0;
          }
        tObj.style.left=tPos+'px';
        tPos=parseInt(tPos)-1;
      }
    
    tGo=setInterval('DM_ticken()',tInterval);
    }       
      