
         
/* * * * * * * * * * * * * * * * D I E  V A R I A B L E N * * * * * * * * * * * * * * * * * */

    //°°°°°°°°°°Die News

tNews=new Array();
//tNews.push(' <font color=#000000> 01.03.2008: Neuer&ouml;ffnung eines vinadonna Kosmetikstudios im Westendbad Friess!'+
//           ' <a href="texte/neueroeffnung.jpg" target=\"_blank\"> <font color=#568D63>mehr</a>');

//tNews.push(' <font color=#000000> 01.03.2008: Neuer&ouml;ffnung eines vinadonna Kosmetikstudios im Westendbad Friess!'+
//           ' <a href="bilder/VD-K-Studio-i-WEBF.pps" target=\"_blank\"> <font color=#568D63>mehr</a>');
           
//tNews.push(' <font color=#000000> Ab sofort : <font color=#7F2026>vinadonna <font color=#000000> Urlaubsangebot zum' +
//           ' "Sommerpreis" von 35 €: Little jetbag mit 4 teiligem Flaschen-Set (je 100ml <font color=#7F2026>vinadonna' +
//           ' <font color=#000000>  -Shampoo, Duschgel, Körperlotion, Handcreme) als Flugreisen-Handgepäck.');

//tNews.push(' <font color=#000000> Unsere Aktionsangebote im <font color=#7F2026>vinadonna <font color=#000000> Kosmetikstudio: <br> <br>' +
//           ' Gro&#223;e kosmetische Behandlung + 1 Aufbauampulle gratis (Vorteilspreis nur 40&euro; statt 52&euro;) <br> <br>' +
//           ' Augenbraue Coloration + 1 Lip Gloss "Brilliant" gratis (Vorteilspreis nur 10&euro; statt 15&euro;) ');

//tNews.push(' <font color=#000000> Unsere Dezember-Aktionsangebote im <font color=#7F2026>vinadonna <font color=#000000> Kosmetikstudio: <br> <br>' +
//           ' Weihnachts-Rabatt auf alle Behandlungen im Dezember 20% <br> <br>' +
//           ' Weihnacht-Set Handpflege <br> Inhalt:<br> Handcreme 100ml <br> Nagelpolierblock 4-seitig <br> Nagelfeile mit Weihnachtsmotiv <br> Preis: 10 Euro ');

//tNews.push(' <font color=#000000> Das <font color=#7F2026>vinadonna <font color=#000000> Team w&uuml;nscht Ihnen alles Gute im neuen Jahr' );

//tNews.push(' <font color=#000000> Faschingsangebote im    <font color=#7F2026>vinadonna <font color=#000000> Kosmetikstudio: <br> <br>' +
//           ' ARTDECO Nagellacke <br> <br>' +
//           ' alle vorhandenen Farben <br> ' +
//           ' Stückpreis 5,50 € (anstatt 7,50 €) <br> <br>' +
//           ' Maniküre + Lack 15 € (anstatt 17 €) <br> <br>' +
//           ' gültig im Januar und Februar 2009 <br> ');

//tNews.push(' <font color=#000000> Besuchen Sie unser <font color=#7F2026>vinadonna <font color=#000000> Kosmetikstudio im Westendbad Friess in Worms. <br> <br>' +
//           ' Telefonische Terminvereinbarung unter 0151 - 193 289 16 <br> <br>');

//tNews.push(' <font color=#000000> Besuchen Sie unser <font color=#7F2026>vinadonna <font color=#000000> Kosmetikstudio im Westendbad Friess in Worms. <br> <br>' +
//           ' Telefonische Terminvereinbarung unter 0151 - 193 289 16 <br><br><br> <font color=#7F2026>vinadonna <font color=#000000> <br> Studio Balance <br> <br> Am Kümmerling 21-25 <br>' +
//           ' 55294 Bodenheim <br><br> Frau Doris Trabert <br> Tel: 06131-62 32 616 <br> Hdy: 0170-81 64 063 <br> <br> Termine nach Vereinbarung <br> <br>');

//tNews.push(' <font color=#000000> Besuchen Sie unser <font color=#7F2026>vinadonna <font color=#000000> Kosmetikstudio im Westendbad Friess in Worms. <br> <br>' +
//           ' Telefonische Terminvereinbarung unter 0178 - 467 03 22 <br><br><br><br><br> ');

//tNews.push(' <font color=#000000> Besuchen Sie den <font color=#7F2026>vinadonna <font color=#000000> Online-Weihnachtsmarkt in unserem Webshop. <br> <br>' +
//           ' <a href="http://www.vinadonna.de/index.php?list=WG000023" target=\"_self\"> <font color=#7F2026>Zum Weihnachtsmarkt</a><br><br><br>');
//tNews.push(' <font color=#000000> Das <font color=#7F2026>vinadonna <font color=#000000> Team w&uuml;nscht Ihnen alles Gute im neuen Jahr! <br><br><br><br><br><br>');
//tNews.push(' <font color=#000000> Beachten Sie unsere Faschings-Angebote unter <a href="http://www.vinadonna.de/tabpflege/vinadonna_aktuell.php" target=\"_blank\"> <font color=#7F2026>Aktuelles</a><br><br> Ihr <font color=#7F2026>vinadonna <font color=#000000> Team <br><br><br><br><br><br>');
tNews.push(' <font color=#000000> Wir wünschen Ihnen viel Spass beim Besuch der <font color=#7F2026>vinadonna <font color=#000000>-Homepage <br><br> Ihr <font color=#7F2026>vinadonna <font color=#000000> Team <br><br><br><br><br><br>');

//tNews.push('   ');


    //°°°°°°°°°°Laufrichtung(up,down,left,right)
strDir      ='up';

    //°°°°°°°°°°Delimiter zwischen den einzelnen News(nur bei left/right)
strDelimiter=' + + + ';

    //°°°°°°°°°°Interval in ms
intInterval =50;

    //°°°°°°°°°°Stop bei mouseover?true:false
blnStopHover=true;

    //°°°°°°°°°°Falls Leeraum zwischen News...hier Wert erhoehen...minimum:1
intRepeat   =2;

    //°°°°°°°°°°Rahmen
strBorder   ='none';
//'1px solid #000000';

    //°°°°°°°°°°Breite
intWidth    =170;

    //°°°°°°°°°°Höhe
intHeight   =130;

    //Abstand Rahmen->Inhalt
intPadding  =2;

    //Background-color
strBgc      ='#EDEDED';

    //Text-color
strTxtc     ='#000000';

    //Textausrichtung
strAlign    ='left';

    //Schriftart
strFontfamily = 'Arial,sans-serif';

    //Schriftgröße
strFontsize = '11px ';

    //Schritt pro Durchlauf(px)
intStep=1;

/* Farbdefinitionen */
strLinkA   = 'a:link {color: #568D63;}'


/* * * * * * * * * * * * * * * * * * 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;
    //document.write(strNews);
    for(i=1;i<intRepeat;++i)
        {
        strNews+=strText;
        }

        //TickerCode zu String zusammenfuegen
    strTicker='<div style="position: relative; font-family:' + strFontfamily + '; font-size:' + strFontsize + ';'  + strAlign+ 'overflow:hidden;background-color:'+strBgc+
                    ';border:'+strBorder+';width:'+intWidth+'px;height:'+intHeight+'px;padding:'+intPadding+
                    'px;"><div id="ticker"style="position:relative; left: 0em; color:'+strTxtc+ '; ' +  strLinkA + strAlign + 'background-color:'+strBgc+
                    ';"'+strStopHover+'>' + strNews +'</div></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);
  }       

