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

//°°°°°°°°°°Die News
tNews.push('<font size="4"><a href="http://www.uhren-ass.de" target="_blank">Luxusuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/automatikuhren-c-34-1.html" target="_blank">Automatikuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/chronographen-c-35-1.html" target="_blank">Chronographen</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/damenuhren-c-36-1.html" target="_blank">Damenuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/herrenuhren-c-37-1.html" target="_blank">Herrenuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/funkuhren-c-110-1.html" target="_blank">Funkuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/solaruhren-c-109-1.html" target="_blank">Solaruhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/taschenuhren-c-40-1.html" target="_blank">Taschenuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/fliegeruhren-c-38-1.html" target="_blank">Fliegeruhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/golduhren-c-39-1.html" target="_blank">Golduhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/kinderuhren-c-96-1.html" target="_blank">Kinderuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/esprit-c-98-1.html" target="_blank">Schmuckuhren</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/uhrenbeweger-c-94-1.html" target="_blank">Uhrenbeweger</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/uhrensammelboxen-c-44-1.html" target="_blank">Uhrensammelboxen</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/uhren-literatur-c-70-1.html" target="_blank">Uhrenliteratur</font></a>');
tNews.push('<font size="4"><a href="http://www.uhren-ass.de/uhrensammelboxen-c-44-1.html" target="_blank">Uhrensammelboxen</font></a>');



//°°°°°°°°°°Delimiter zwischen den einzelnen News
tDelimiter  ='&nbsp;&nbsp;&nbsp;&nbsp;';

//°°°°°°°°°°Interval in ms
tInterval   =10;

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

//°°°°°°°°°°Falls Leeraum zwischen News...hier Wert erhoehen...minimum:1
tRepeat     =4;

//°°°°°°°°°°Rahmen
tBorder     ='0px solid green';

//°°°°°°°°°°Breite
tWidth      =205;

//°°°°°°°°°°Höhe
tHeight     =20;

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

//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);
    }