var mess1=new Array();
var mess2=new Array();
var time=new Array();
var fade=new Array();
var link=new Array();

				/*** Enter the text to be faded. ***/
//1. Textfeld
mess1[0]="Raumausstatter und";

/*** Write the site you want the text to point to. If you dont want it to link, enter "0".      ***/
/*** The text stops functioning as a link when fadeout starts(after duration of below variable. ***/
link[0]="0";

/*** Enter the duration in which the text will be displyed in last color, after fadein.    ***/
/*** If a link is attached to the text, the text will function as a link during this time. ***/
time[0]=2000;  //milliseconds

/*** Enter the time you want blank screen(startcolor) before displaying the next text.     ***/
/*** If text 5 is a continuation of text 4, enter a short time for text 4.   E.g. 200      ***/
fade[0]=400; //milliseconds

mess1[1]="Tapeten und";
link[1]="0";
time[1]=2000;
fade[1]=400;

mess1[2]="Teppiche und";
link[2]="0";
time[2]=2000;
fade[2]=400;

mess1[3]="Vorhänge und";
link[3]="0";
time[3]=2000;
fade[3]=400;

mess1[4]="Vorhangreinigung";
link[4]="0";
time[4]=2000;
fade[4]=400;

mess1[5]="Eigene Näherei";
link[5]="0";
time[5]=2000;
fade[5]=400;

mess1[6]="Polstermöbel und";
link[6]="0";
time[6]=2000;
fade[6]=400;

mess1[7]="Sonnenschutz";
link[7]="0";
time[7]=2000;
fade[7]=400;

mess1[8]="Behebung von Wasserschäden";
link[8]="0";
time[8]=2000;
fade[8]=400;

mess1[9]="Unverbindliche Beratung";
link[9]="0";
time[9]=2000;
fade[9]=400;

mess1[10]="Kostenlose Ausarbeitung von Angeboten";
link[10]="0";
time[10]=2000;
fade[10]=400;


mess1[11]="Mehr als 60 Jahre Erfahrung";
link[11]="0";
time[11]=2000;
fade[11]=400;


//2. Textfeld
mess2[0]="Tapezierermeister";
link[0]="0";
time[0]=2000;
fade[0]=400;

mess2[1]="Malerei";
link[1]="0";
time[1]=2000;
fade[1]=400;

mess2[2]="Parkettböden";
link[2]="0";
time[2]=2000;
fade[2]=400;

mess2[3]="Zubehör";
link[3]="0";
time[3]=2000;
fade[3]=400;

mess2[4]="inkl. Abholung und Montage";
link[4]="0";
time[4]=2000;
fade[4]=400;

mess2[5]="und Werkstätte";
link[5]="0";
time[5]=2000;
fade[5]=400;

mess2[6]="Polstermöbelumarbeitung";
link[6]="0";
time[6]=2000;
fade[6]=400;

mess2[7]="für Innen und Außen";
link[7]="0";
time[7]=2000;
fade[7]=400;

mess2[8]="und Versicherungsabwicklung";
link[8]="0";
time[8]=2000;
fade[8]=400;

mess2[9]="";
link[9]="0";
time[9]=2000;
fade[9]=400;

mess2[10]="";
link[10]="0";
time[10]=2000;
fade[10]=400;

mess2[11]="im Dienste unserer Kunden";
link[11]="0";
time[11]=2000;
fade[11]=400;




/*** Here you put the colors to be used in the fade. You can ofcourse add as many as liked by entering: ***/
/*** " colors[incrementing number]='hexcode' " incrementing the number from 6.                          ***/
/*** Color 6 will be the last on fadein and vice versa on fadeout ;-) Make first color match background ***/
/* mit dem alten dunkeln BLau:
colors=new Array()
colors[0]='#FFFFFF'
colors[1]='#F9FAFC'
colors[2]='#F1F4F7'
colors[3]='#E8ECF1'
colors[4]='#DEE5EB'
colors[5]='#D3DCE4'
colors[6]='#C7D3DE'
colors[7]='#BBC9D6'
colors[8]='#AEBFCE'
colors[9]='#A3B5C8'
colors[10]='#96ABC0'
colors[11]='#8AA2B9'
colors[12]='#8099B3'
colors[13]='#7490AC'
colors[14]='#6987A4'
colors[15]='#5D7E9E'
colors[16]='#507396'
colors[17]='#56698F'
colors[18]='#385F87'
colors[19]='#2C5680'
colors[20]='#214D7A'
colors[21]='#174674'
colors[22]='#0E3E6F'
colors[23]='#003366' */

/* mit dem neuen hellen Blau der Menüleiste */
colors=new Array()
colors[23]='#006699'
colors[22]='#0B6C9D'
colors[21]='#1673A1'
colors[20]='#2179A6'
colors[19]='#2C80AA'
colors[18]='#3787AF'
colors[17]='#428DB3'
colors[16]='#4D94B8'
colors[15]='#589BBC'
colors[14]='#63A1C0'
colors[13]='#6EA8C5'
colors[12]='#79AFC9'
colors[11]='#85B5CE'
colors[10]='#90BCD2'
colors[9]='#9BC3D7'
colors[8]='#A6C9DB'
colors[7]='#B1D0DF'
colors[6]='#BCD7E4'
colors[5]='#C7DDE8'
colors[4]='#D2E4ED'
colors[3]='#DDEBF1'
colors[2]='#E8F1F6'
colors[1]='#F3F8FA'
colors[0]='#FFFFFF'


/*** Enter here the speed between changes in color. The shorter time yieds the smoother fade. ***/
/*** Better if more than the original 6 colors in colorarray.                                 ***/
/*** E.g. 12 fadecolors and fadespeed of approx. 100                                          ***/
var fadespeed=70;

/*** Do you want fadeout as well? Or just a fadein of a new text? Or maybe just fadeout!      ***/
/*** 0 = just fadein's, no fadeout. 1 = fade in and out. 2 = only fadeouts                    ***/
var fadeout=1;

/*** Do you wish the link to be presented with a picture? Note the path for the pic if yes.   ***/
/*** If you don't want a picture along with the presentation of the link, just enter "" .     ***/
var path="bild01.gif"

var count=0;var newsno=0;var pause=0;var progress=0;var first=0;var pic;
(path!="")?pic= "<br><IMG border='0' width='26' height='20' src='"+path+"'>": pic="";

function fade_in(){
	first=1;
	document.all("text1").innerHTML="<FONT color='"+colors[count]+"'>"+mess1[newsno].substring(0,mess1[newsno].length)+"</FONT>";
	document.all("text2").innerHTML="<FONT color='"+colors[count]+"'>"+mess2[newsno].substring(0,mess2[newsno].length)+"</FONT>";

	count++;	//nächste Farbe
	if(count!=colors.length){	//Wenn Farben noch nicht aus
		progress=0;
		pause=fadespeed;	//Pause für eine Farbe
	}
	else{
		if(fadeout==0){	//nur fadeIn
			pause=time[newsno];	//Pause für den Text
			progress=0;	//bleibt bei fadeIn
			count=0;	//Farbe wieder zurück
			newsno++;	//nächster Text
		}
		else{
		progress=1;	//Vorbereitung für fadeOut
		pause=time[newsno];	//Pause für den Text
		}
		if(newsno>=mess1.length){	//Wenn Texte vorbei
			newsno=0;	// wieder zum ersten Text
		}
	}
	watchit();
}

function fade_out(){
	document.all("text1").innerHTML="<FONT color='"+colors[count]+"'>"+mess1[newsno].substring(0,mess1[newsno].length)+"</FONT>";
	document.all("text2").innerHTML="<FONT color='"+colors[count]+"'>"+mess2[newsno].substring(0,mess2[newsno].length)+"</FONT>";

	count--;	//Vorherige Farbe
	if(count!=-1){	
		progress=1;	//Vorbereitung für fadeOut
		pause=fadespeed;	//Pause für eine Farbe
	}
	else{	//Farbanzahl = -1
		pause=fade[newsno];	//Pause für weißen Bildschirm
		progress=0;	//Vorbereitung für fadeIn
		count=0;	//Farbanzahl wieder zurückgesetzt
		first=0;
		newsno++;	//nächster Text
		if(newsno>=mess1.length){
			newsno=0;
		}
	}
	watchit();
}

function watchit(){
	if(progress==0){ //Start	und nur für fadein
		if((fadeout==2)&&(first==0))	//Start wenn fadein und fadeout
			count=mess1.length-1;	//Zähler = Anzahl der Texte
		if(count<=colors.length)	//wenn Zähler <= der Farbenanzahl
			aktiv=setTimeout("fade_in()",pause);	//fadein nach Pause = 0
	}
	if((progress==1)&&(fadeout>=1)){	//fadeIn und fadeOut
		clearTimeout(aktiv);
		if(count>=colors.length)
			count=colors.length-1;
		if(count!=-1)	// wenn Farbanzahl größer -1
			aktiv=setTimeout("fade_out()",pause); // fadeOut nach Pause
	}
}

