  	text=new Array();
  	title=new Array();
  	

		
	title[1]="";
	text[1]="gh";


	var x = 0;
	var xx=10;
	var yy=10 ;
	var y = 0;
	
	var showit = 0;
	var mac = false ;
	var BildText = "";

	var TimerValue = 60;
	var BildX = 150;
	var BildY = 100;
	
	var BX = 10;
	var BY = 10;
	var PicTransparent = 80;
	var TimerSteps =2;
	var timerout;
	var timerin;
	var rotate_delay;
	var txt = "";
	opac= 0;

	



// -------------------------------------------------------------------------------------------
//Variablendeklaration und Vordefinition für die Diashow

var ActImage;
var rotate_delay = 10000; 	// Verzögerung in Millisekunden (1000 = 1s)
var current = 0;		// Startbildnummer
var MaxPic = 9;		// Anzahl der Bilder für die Diashow	(ActPic-Anzahl)


var DiaLeft = 200;		// Abstand des Dias von links
var DiaTop  = 180;		// Abstand des Dias von oben
ActPic=new Array();		//Array für die Bilder vordeklarieren
PicTxt=new Array();		//Array für die Texte unter den Bildern vordeklarieren


ActPic[1] = "/diashow/Dia00.jpg";
ActPic[2] = "/diashow/Dia01.jpg";
ActPic[3] = "/diashow/Dia02.jpg";
ActPic[4] = "/diashow/Dia03.jpg";
ActPic[5] = "/diashow/Dia04.jpg";
ActPic[6] = "/diashow/Dia05.jpg";
ActPic[7] = "/diashow/Dia06.jpg";
ActPic[8] = "/diashow/Dia07.jpg";
ActPic[9] = "/diashow/Dia08.jpg";
ActPic[10] = "/diashow/Dia09.jpg";

PicTxt[0] = "";
PicTxt[1] = "";
PicTxt[2] = "";
PicTxt[3] = "";
PicTxt[4] = "";
PicTxt[5] = "";






// -------------------------------------------------------------------------------------------
// Welchen Browser haben wir denn...
    
	ns = (document.layers)? true:false
	ie4 = (document.all)? true:false
	ie5 = false;
	if (ie4) {
		if (navigator.userAgent.indexOf('MSIE 5')>0) {
    			ie5 = true;
    		}
    	}

	ua = navigator.userAgent.toLowerCase();
	uv = parseInt(navigator.appVersion);
	if(ua.indexOf('opera') != -1 && uv >= 4){browser = 'OP'}
	else if(ua.indexOf('msie') != -1 && uv >= 4){browser = 'IE'}
	else if(uv == 4){browser = 'NN4'}
	else if(uv >= 5){browser = 'NN6'}

// -------------------------------------------------------------------------------------------
// Welche Plattform haben wir denn? Bei IE auf MAC keine Fenster
 
	if ( navigator.platform.substring(0,3).toUpperCase() == "MAC" && (ie4 || ie5) )  
		{
		mac = true;
		} 
	else 
		{
	   	mac = false;
		}

	
	
	
	if ( (ns) || (ie4) ) 
		{
		if (ns) over = document.popDiv
    		if (ie4) over = popDiv.style
    		document.onmousemove = mouseMove
    		if (ns) document.captureEvents(Event.MOUSEMOVE)
    		}




// -------------------------------------------------------------------------------------------


function GetElement(id)
	{
 	if(browser == 'OP' || browser == 'NN6')
 		{
  		ActImage = document.getElementById(id);

 		}
 	else if(browser == 'IE')
 		{
  		ActImage = document.all[id];

 		}
 	else if(browser == 'NN4')
 		{
  		ActImage = document[id];

 		}
	}



// -------------------------------------------------------------------------------------------


    // Bild mit Text einblenden
    // ---------------------
    function ShowPicTextLayer(Bild,BX,BY,pLeft,pTop,BildText ) {
    	if (mac) {return;}
		
	xx = pLeft;
	yy = pTop;
//FE9934
       	txt = 	"<table bgcolor=\"\" border=\"1\" width=\""+BX+"\"  bordercolor=\"#666666\">" +
		"<tr>" +
		"<td width=\"100%\">" +
		"<p align=\"center\"><font color=\"#000080\" face=\"Arial\" size=\"2\"><b>" + 
		
		"<table border=\"0\" width=\"100%\">" +
		"<tr>" +
		"  <td width=\"100%\" valign=\"top\" align=\"left\"><img name=\"DiaPic\" style=\"filter:Alpha(opacity=0,finishopacity=0,style=0)\"  border=\"0\" src=\"" + Bild + " \" width=\""+BX+"\" height=\""+BY+"\" >" +
		"</tr>" +
		"</table>" +
		"</b></font></td>" +
		"</tr>" +
		"<tr>" +
		"<td bgcolor=\"#FE9934\" width=\"100%\">" + BildText + "</td>" +
		"</tr>" +
		"</table>";

       	
	wtl(txt);
	GetElement("DiaPic");
    	display_it();
    }



// -------------------------------------------------------------------------------------------


    // Bild mit Text einblenden
    // ---------------------
    function ShowDiaPic(Bild,BX,BY,pLeft,pTop,BildText ) {
    	if (mac) {return;}
		
	xx = 220;
	yy = 180;
//FE9934
       	txt = 	"<table bgcolor=\"\" border=\"0\" width=\""+BX+"\"  bordercolor=\"#666666\">" +
		"<tr>" +
		"<td width=\"100%\">" +
		"<p align=\"center\"><font color=\"#000080\" face=\"Arial\" size=\"2\"><b>" + 
		
		"<table border=\"0\" width=\"100%\">" +
		"<tr>" +
		"  <td width=\"100%\" valign=\"top\" align=\"left\"><img name=\"DiaPic\" style=\"filter:Alpha(opacity=0,finishopacity=0,style=0)\"  border=\"0\" src=\"" + Bild + " \" width=\""+BX+"\" height=\""+BY+"\" >" +
		"</tr>" +
		"</table>" +
		"</b></font></td>" +
		"</tr>" +
		"<tr>" +
		//"<td bgcolor=\"#FE9934\" width=\"100%\">" + BildText + "</td>" +
		"<td  width=\"100%\">" + BildText + "</td>" +
		"</tr>" +
		"</table>";

       	
	wtl(txt);
	GetElement("DiaPic");
    	display_it();
    }





// -------------------------------------------------------------------------------------------
    // ...und jetzt anzeigen
    function display_it() {
    	if ( (ns) || (ie4) ) {
    		if (showit == 0) 	{
    			moveTo(over,xx,yy);
    			show(over);
			fadein(); 
    			showit = 1;
    		}
    	}
    }



// -------------------------------------------------------------------------------------------
    function show(obj) {
    	if (ns) obj.visibility = "show"
    	else if (ie4) obj.visibility = "visible"
   }




// -------------------------------------------------------------------------------------------
//

function fadein() {
	if (txt=="") {return;}
	if(opac < 100){
		opac+=TimerSteps;
		if(ie4) ActImage.filters.alpha.opacity = opac;
		if(ns) ActImage.MozOpacity = opac/100;
		timerin = setTimeout("fadein('" + ActImage + "')",10);
	}
}



// -------------------------------------------------------------------------------------------
function fadeout() {
	//if(ie4) opac = ActImage.filters.alpha.opacity;
	//if(ns) opac = ActImage.style.MozOpacity;
	if (txt=="") {return;}
	GetElement("DiaPic");
	opac = 100;
	if(opac != 0){
		opac+=-TimerSteps;
		if(ie4) ActImage.filters.alpha.opacity = opac;
		if(ns) ActImage.style.MozOpacity = opac/100;
		timerout = setTimeout("fadeout('" + ActImage + "')",10);
	}
}






// -------------------------------------------------------------------------------------------
    function wtl(txt) {
    	if (ns) {
    		var lll = document.popDiv.document
    		lll.write(txt)
    		lll.close()
    	} else {
    		if (ie4) document.all["popDiv"].innerHTML = txt
    	}
    }




// -------------------------------------------------------------------------------------------


    function hide(obj) {
    	if (ns) obj.visibility = "hide"
    	else if (ie4) obj.visibility = "hidden"
    	
	}



// -------------------------------------------------------------------------------------------

    function hideit() {
    	if (mac) {return;}
		
		if ( (ns) || (ie4) )  {
    		
		fadeout();
		opac= 0;

		txt ="";
		wtl(txt);
		
		showit = 0;
    		hide(over);
		
		
    	}
    }


// -------------------------------------------------------------------------------------------
    function moveTo(obj,lx,ly) {
    	obj.left = lx
    	obj.top = ly
    }


// -------------------------------------------------------------------------------------------
    // Auf mousemoves reagieren
    function mouseMove(e) {
    	if (ns) {x=e.pageX; y=e.pageY;}
    	if (ie4) {x=event.x; y=event.y;}
    	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
    	if (showit) {
    		if (BildX ==0) {
			//BildX = x
		}


		//moveTo(over,BildX,BildY);
    	}
    }



// -------------------------------------------------------------------------------------------
// Bilderwechsel nach voreingestellter Zeit

function Rotate() 
	{
	if (txt=="") {return;}
	GetElement("DiaPic");
	current = (current == MaxPic) ? 0 : current+1;
	opac =0;
	fadein();
	ActImage.src = ActPic[current];
	//rotate_delay = setTimeout("Rotate('" + ActImage + "')",10);
	window.setTimeout("Rotate()", rotate_delay);
	

	}


// -------------------------------------------------------------------------------------------
// Startfunktion für die automatische Diashow

function StartDiaShow(StartAt)
	{
	current = StartAt;
	ShowPicLayer(ActPic[1],50,200,'' );
	
	Rotate();
	
	
	}



// -------------------------------------------------------------------------------------------


    // Layer mit Bild und Text einblenden
    // ---------------------
    function ShowPicLayer(Bild,pLeft,pTop,BildText ) {
    	if (mac) {return;}
		
	lx = pLeft;
	ly = pTop;

       	txt = 	"<table bgcolor=\"\" border=\"0\"  bordercolor=\"#C0C0C0\">" +
		"<tr>" +
		"<td width=\"100%\">" +
		"<p align=\"center\"><font color=\"#000080\" face=\"Arial\" size=\"2\"><b>" + 
		
		"<table border=\"0\" width=\"100%\">" +
		"<tr>" +
		"  <td width=\"100%\" valign=\"top\" align=\"left\"><img name=\"DiaPic\" style=\"filter:Alpha(opacity=0,finishopacity=0,style=0)\"  border=\"0\" src=\"" + Bild + ">" +
		"</tr>" +
		"</table>" +
		"</b></font></td>" +
		"</tr>" +
		"<tr>" +
		"<td bgcolor=\"#FE9934\" width=\"100%\">" + BildText + "</td>" +
		"</tr>" +
		"</table>";
	wtl(txt);
	GetElement("DiaPic");
    	display_it();
	moveTo(over,DiaLeft,DiaTop);

    }


// -------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------


