// Copyright by ETAS Informatik GmbH, Lausen, Switzerland  www.etas.ch

/*
Fading Scroller- By DynamicDrive.com
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/

var delay=2000 //set delay between message change (in miliseconds)
var fcontent=new Array()

begintag='<font face="Verdana" size=3>' //set opening tag, such as font declarations

fcontent[0] = '<div align="left"><font size="5" color="#333399"><b>Dienstleistungen<br><br>der ETAS Informatik GmbH</b></div>';
fcontent[1] = '<div align="left"><font size="4" color="#94A8D8"><b>Analyse</font><br><br><font color="#94A8D8"><br>Requirements-Engineering<br><br>Evaluationen<br><br>System-Analyse<br><br>Gap-Analyse<br></font></b></div>';
//fcontent[1] = '<div align="left"><font size="4" color="#94A8D8"><b>Analyse</font><br><br><font color="#94A8D8"><br>Evaluationen<br><br>System-Analyse<br><br>Format-Analyse<br><br>Gap-Analyse<br></font></b></div>';
fcontent[2] = '<div align="left"><font size="4" color="#668ADF"><b>Design</font><br><br><font color="#668ADF"><br>Konzeption<br><br>System-Design<br><br>SAD / OOAD<br><br>Rapid Application Development<br></font></b></div>';
fcontent[3] = '<div align="left"><font size="4" color="#34508F"><b>Realisierung</font><br><br><font color="#34508F"><br>Java, Javascript, PHP<br><br>Cobol, VisualBasic<br><br>Datenbanken: DB2, MySQL<br><br>Webservices: Google Maps, AJAX<br></font></b></div>';
fcontent[4] = '<div align="left"><font size="4" color="#1D2C4E"><b>Unterhalt</font><br><br><font color="#1D2C4E"><br>Wartung<br><br>Weiterentwicklungen<br><br>Optimierungen<br><br>Schulungen<br></font></b></div>';
fcontent[5] = '<div align="left">&nbsp;</div>';
closetag='</font>'

var fwidth=400 //set scroller width
var fheight=130 //set scroller height

///No need to edit below this line/////////////////

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=3000

//function to change content
function changecontent(){
if (index>=fcontent.length) {
index=0;
waitMS(2000);
}
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

index++
setTimeout("changecontent()",delay+faderdelay)

}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;
hex=255  // Initial color value.

function colorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex-=12; // increase color value
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",20);	
}
else{
document.getElementById("fscroller").style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}

function writeIt() {
if (ie4||DOM2)
document.write('<div id="fscroller" style="width:'+fwidth+';height:'+fheight+';padding:2px"></div>')

window.onload=changecontent
}



function waitMS(inMS) {
	var ms;
	ms = 0;

	then = new Date();
	then.setTime(then.getTime());
	
	while (ms < inMS) {
		now = new Date();
		ms = now.getTime() - then.getTime();
	}
	
}
