var wort=new Array(), x=0; zahl=18;
wort[0]="Beratung";
wort[1]="Konzeption";
wort[2]="Hardware";
wort[3]="Software";
wort[4]="Service";
wort[5]="Schulung";
wort[6]="Internetauftritt";
wort[7]="Webdesign";
wort[8]="Telekommunikation";
wort[9]="Hilfe";
wort[10]="PC-Notdienst";
wort[11]="Computerservice";
wort[12]="DSL-Anschluss";
wort[13]="Internetzugang";
wort[14]="Onlineshop";
wort[15]="Telefonanschluss";
wort[16]="ISDN";
wort[17]="Handy";
wort[18]="Computerzubehör";

function dummy(funkt,ms)
{
setTimeout(funkt,ms);
}

function werbung()
{
         if (x<=zahl) {
             document.dpf1.style.visibility = "visible";
             document.werbeblock.anzeige.value=wort[x];
             x++;
             setTimeout("werbung()",1500);
         }
         else {
               document.werbeblock.anzeige.value="Computerservice und mehr ...";
               document.dpf1.style.visibility = "hidden";
               dummy(werbung,3000);
               x=0;
         }
}

var zaehler=0;
var strg1=new Array();
var strg3="</span>";
var lw1=0;
function fuelleArray(strgRoh)
{
         lw1=strgRoh.length;
         strg2="<span id='Z";
         strg2+=zaehler.toString()+"'>";
         strg1[zaehler]="&nbsp;";
         document.write(strg2+strg1[zaehler]+strg3);
         document.close();

         zaehler++;


         while (zaehler<=lw1)
         {
                strg2="<span id='Z";
                strg2+=zaehler.toString()+"'>";
                strg1[zaehler]=strgRoh.charAt(zaehler-1);
                document.write(strg2+strg1[zaehler]+strg3);
                document.close();
                zaehler++;
         }

         strg2="<span id='Z";
         strg2+=zaehler.toString()+"'>";
         strg1[zaehler]="&nbsp;";
         document.write(strg2+strg1[zaehler]+strg3);
         document.close();

         lw1=zaehler;
         zaehler=0;



}

var colFlag=0;
function changeColor()
{

        if  (zaehler<=lw1) {
              if (colFlag==0) {farbe="#FFFF00";farbe1="#000099"};
              if (colFlag==1) {farbe="#000099";farbe1="#ffff00"};
              if (colFlag==2) {farbe="";farbe1="#000099"};
             arg="Z"+zaehler.toString();
             flag1=zaehler;
             //document.getElementById(arg).style.color="#000099"
             //document.getElementById(arg).style.backgroundColor="#FFFFFF";
             if (zaehler>=0) {
                 arg1="Z"+flag1.toString();
                 document.getElementById(arg1).style.color=farbe1;
                 document.getElementById(arg1).style.backgroundColor=farbe;
             }
             /*else {

                 arg1="Z"+lw1.toString();
                 document.getElementById(arg1).style.color=farbe1;
                 document.getElementById(arg1).style.backgroundColor=farbe;
             }*/
             zaehler++;
             setTimeout("changeColor()",10);
        }
        else  {
               zaehler=0;
               if (colFlag==0) {colFlag=1}
               else {
                     if (colFlag==1) {colFlag=2}
                     else {
                           if (colFlag==2) {colFlag=0}
               }
        }
               dummy(changeColor,2000);
              }
}



function zeigeDatum()
{
        var datum=new Date();
        var wochentagZahl=datum.getDay();
        var wochentag = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
        var tag=datum.getDate();
        var monatZahl=datum.getMonth();
        var monat = new Array("Januar","Februar","M&auml;rz","April","Mai","Juni",
        "Juli","August","September","Oktober","November","Dezember");
        var jahr=datum.getYear();
        if (jahr<2000) jahr=jahr+1900;
        document.write(wochentag[wochentagZahl] + ', ' + tag + '. ' + monat[monatZahl] + ' ' + jahr);
}

function browsercheck ()
{
 var name = navigator.appName;
 var vers = navigator.appVersion;
 var ua = navigator.userAgent;
 if(ua.indexOf("Netscape")== -1 && name== "Microsoft Internet Explorer") document.write ("optimale Darstellung mit Firefox ab Version 1.5 &nbsp;");
 if(ua.indexOf("Netscape")!= -1 && name== "Netscape" && parseFloat(vers)<5) document.write ("optimale Darstellung mit Firefox ab Version 1.5 &nbsp;");
}

function fenster()
{
var shopfenster,breite;
breite=screen.availWidth-100;
hoehe=screen.availHeight-100;
shopfenster=window.open("http://it-service-mueller.1und1-partner.de/","shop","dependent=1,location=0,directories=0,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1,height="+hoehe+",screenX=50,screenY=15,width="+breite);
shopfenster.focus();
}

function copyr()
{
var datum=new Date();
var jahr=datum.getYear();
if (jahr<2000) jahr=jahr+1900;
document.write("&#169; "+jahr+" by IT-Service-M&#252;ller");
}