function fnStrDatum()
{
var jetzt=new Date();
var Monat = new Array("Januar", "Februar", "M&amp;auml;rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
var Wochentag = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
var Jahresmonat = jetzt.getMonth();
return Wochentag[jetzt.getDay()] + ', ' + jetzt.getDate() + '. ' + Monat[Jahresmonat] + ' ' + jetzt.getFullYear();
}

function getStyleObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	return document.layers[objectId];
    } else {
	return false;
    }
}

function Vorladen()
{
  for (i=0; i < BildArray.length; i++) {
    var Bild = new Image();
    Bild.src = BildArray[i];
  }
}

function oDiv(Bezug,meinName,startx,starty,endx,endy,blend,nextFunction)
{
	this.TheDiv=Bezug;
	this.Movesize=1;
	this.Reverse=0;
	this.Ich=meinName;
	this.StartX=startx;
	this.StartY=starty;
	this.EndX=endx;
	this.EndY=endy;
	this.Schritt=10;
	this.zusatz="";
	this.blend=blend;
	this.NextFunction="";
	if(nextFunction!=''){this.NextFunction=nextFunction;};
    if (document.layers) {this.zusatz="";}else {this.zusatz="px";}
	
	this.getProzent=function(Dir){
		if(Dir=="x")
		{
			return this.StartX + ((this.EndX-this.StartX)/1000*this.Schritt);
		}
		else
		{
			return this.StartY + ((this.EndY-this.StartY)/1000*this.Schritt);
		}
	}
	
	this.getStyleByObject=function () {
	
    if(document.getElementById && document.getElementById(this.TheDiv)) {
	return document.getElementById(this.TheDiv).style;
    } else if (document.all && document.all(this.TheDiv)) {
	return document.all(this.TheDiv).style;
    } else if (document.layers && document.layers[this.TheDiv]) {
	return document.layers[this.TheDiv];
    } else {
	return false;
    }
} 
  this.moveMyDiv=function (){
  this.the_style = this.getStyleByObject();

  if(this.the_style.display=="none"){this.the_style.display="";};
  if (this.the_style)
  {
  if (this.StartX==0 && this.StartY==0 && this.EndX==0 && this.EndY==0)
  {
  }
  else
   {
    this.the_style.left = this.getProzent('x') + this.zusatz;
    this.the_style.top = this.getProzent('y') + this.zusatz;
  }
    if (this.Schritt<1000)
    {
    if(this.Schritt>950){this.Schritt=this.Schritt-18;};
	this.Schritt=this.Schritt+25;
	switch(this.blend)
	{
		case 1:
			this.opaz=(this.Schritt/10);
			this.the_style.filter="Alpha(opacity=" + this.opaz + ")";
			this.the_style.opacity=this.opaz/100;
			this.the_style.MozOpacity= this.opaz/100;
		break;
		
		case 2:
			this.opaz=100-(this.Schritt/2);
			this.the_style.filter="Alpha(opacity=" + this.opaz + ")";
			this.the_style.opacity=this.opaz/100;
			this.the_style.MozOpacity= this.opaz/100;
		break;
	}
	
      this.the_timeout = setTimeout('' + this.Ich + '.moveMyDiv();',0.001);
    }
    else
    {
		if(this.NextFunction!='')
		{
			eval(this.NextFunction);
		
		};
    }
  }
}

}

function fnNothing()
{
	return true;
};

function fnBlend(Quelle,meinName)
{
this.TheDiv=Quelle;
this.Schritt=0;
this.zusatz="";
this.EinAus=2;
this.the_timeout;
this.Ich=meinName;
this.opaz;
this.getStyleByObject=function () 
{
	
    if(document.getElementById && document.getElementById(this.TheDiv)) {
	return document.getElementById(this.TheDiv).style;
    } else if (document.all && document.all(this.TheDiv)) {
	return document.all(this.TheDiv).style;
    } else if (document.layers && document.layers[this.TheDiv]) {
	return document.layers[this.TheDiv];
    } else {
	return false;
    }
} 


this.the_style = this.getStyleByObject();

	this.oBlend=function ()
	{
		if (this.Schritt<100)
		{
			switch(this.EinAus)
			{
				case 1:
					this.opaz=(this.Schritt);
					this.the_style.filter="Alpha(opacity=" + this.opaz + ")";
					this.the_style.opacity=this.opaz/100;
					this.the_style.MozOpacity= this.opaz/100;
				break;
				
				case 2:
					this.opaz=100-(this.Schritt);
					this.the_style.filter="Alpha(opacity=" + this.opaz + ")";
					this.the_style.opacity=this.opaz/100;
					this.the_style.MozOpacity= this.opaz/100;
				break;
			}
			this.Schritt=this.Schritt+5;
			this.the_timeout = setTimeout('' + this.Ich + '.oBlend();',0.01);
		}
		else
		{
		this.Schritt=0;
		}
	}
}

function fnInfoBlock(Parent,Name,height,width,Left,Top,Farbe,HeadLine,Link,Text)
{
    var oDiv=document.createElement("DIV");  
    var oDivText=document.createElement("DIV");  
    var oTable=document.createElement("TABLE");  
    var oTBody=document.createElement("TBODY")
    var oRow=document.createElement("TR");  
    var oTD=document.createElement("TD"); 
    var oLink=document.createElement("A");
    var oText = document.createTextNode(HeadLine);
    
    oDiv.id=Name;
    oTable.id=Name + "Table";
    oTable.style.width="100%";
    oTable.style.height="100%";
    oTD.id=Name + "KopfLeft";
    oTD.className="KopfLeft";
    oTD.style.height="15px";
    oTD.style.width="5px";
    oRow.appendChild(oTD);
    oTD=document.createElement("TD"); 
    oTD.id=Name + "HeadLine";
    oTD.style.height="15px";
    oTD.className="Kopf";
    oLink.href=Link;
    oLink.title=HeadLine;
    oLink.className="White2";
    oLink.appendChild(oText);
    oTD.appendChild(oLink);
    oRow.appendChild(oTD);
    oTBody.appendChild(oRow);
    
    oRow=document.createElement("TR");  
    oTD=document.createElement("TD");
    oTD.id=Name + "LeftLine";
    oTD.rowspan=2;
    oTD.style.height=height-15;
    oRow.appendChild(oTD);
    oTD=document.createElement("TD"); 
    oTD.id=Name + "Detail";
    oTD.className="TDText";
    
    Text=Text.replace(/\<br>/g,"\n");
    Text=Text.replace(/\&nbsp;/g," ");
    Text=Text.replace(/\/table/g,"");
    Text=Text.replace(/\<center>/g,"");
    Text=Text.replace(/\<table>/g,"");
    Text=Text.replace(/\<center>/g,"");
    Text=Text.replace(/\<tr>/g,"");
    Text=Text.replace(/\<td>/g,"");
    Text=Text.replace(/\/center/g,"");
    Text=Text.replace(/\/tr/g,"");
    Text=Text.replace(/\/td/g,"");
    Text=Text.replace(/\<>/g,"");
    Text=Text.replace(/\<table align=center>/g,"");
    
    
    
    
    oText = document.createTextNode(Text);
    oDivText.rows=height/20;
    oDivText.cols=width/10;
    oDivText.style.border="none";
    oDivText.appendChild(oText);
    oTD.appendChild(oDivText);
    
    
    
    oTD.id=Name + "HeadLine";
    oTD.className="";
    oRow.appendChild(oTD);
    oTBody.appendChild(oRow);
    oTable.appendChild(oTBody);
    oDiv.appendChild(oTable);
    document.getElementById(Parent).appendChild(oDiv);
    document.getElementById(Name).style.position="absolute";
    document.getElementById(Name).style.left=Left;
    document.getElementById(Name).style.top=Top;
    document.getElementById(Name).style.height=height;
    document.getElementById(Name).style.width=width;
    switch(Farbe)
    {
    case 1:
        document.getElementById(Name + "HeadLine").style.backgroundColor="#011A5B";
        document.getElementById(Name + "KopfLeft").style.backgroundColor="#011A5B";
        document.getElementById(Name + "LeftLine").style.backgroundColor="#99A3BD";
        /*        
        #4C85BB
        #D3D4D4
        */
    break;
    case 2:
        document.getElementById(Name + "HeadLine").style.backgroundColor="#024588";
        document.getElementById(Name + "KopfLeft").style.backgroundColor="#024588";
        document.getElementById(Name + "LeftLine").style.backgroundColor="#9AB5CF";
    break;
    case 3:
        document.getElementById(Name + "HeadLine").style.backgroundColor="#0158A8";
        document.getElementById(Name + "KopfLeft").style.backgroundColor="#0158A8";
        document.getElementById(Name + "LeftLine").style.backgroundColor="#99BCDC";
    break;
    case 4:
        document.getElementById(Name + "HeadLine").style.backgroundColor="#0280C7";
        document.getElementById(Name + "KopfLeft").style.backgroundColor="#0280C7";
        document.getElementById(Name + "LeftLine").style.backgroundColor="#9ACCE9";
    break;
    case 5:
        document.getElementById(Name + "HeadLine").style.backgroundColor="#4396E6";
        document.getElementById(Name + "KopfLeft").style.backgroundColor="#4396E6";
        document.getElementById(Name + "LeftLine").style.backgroundColor="#B4D5F5";
    break; 
     case 6:
        document.getElementById(Name + "HeadLine").style.backgroundColor="#BBBBBB";
        document.getElementById(Name + "KopfLeft").style.backgroundColor="#BBBBBB";
        document.getElementById(Name + "LeftLine").style.backgroundColor="#99A3BD";
    break;   
    case 7:
        document.getElementById(Name + "HeadLine").style.backgroundColor="#4396E6";
        document.getElementById(Name + "KopfLeft").style.backgroundColor="#4396E6";
        document.getElementById(Name + "LeftLine").style.backgroundColor="#BBBBBB";
    break;      
    }
}
