/*
	Oeffnet ein neues Fenster, in dem eine Slideshow ablaufen kann.
	benoetigt die Datei slideshow.js
*/
theImgs = new Array;
pfad = "./images/large/";
//tail = ".gif"
maxWinWidth = 620; // 20 px weiter als das groesste Bild
maxWinHeight = 400; // 70 px hoeher als des groesste Bild

function popimage(OrgImgName,ImgWidth,ImgHeight){
	maxWinWidth = ImgWidth + 20;
	maxWinHeight = ImgHeight + 70;
	imagesrc = pfad+OrgImgName;
	imageRef = "'"+"theImg"+"'";
	var look='width='+maxWinWidth+',height='+maxWinHeight+',';
	popwin=window.open("","",look);
	popwin.document.open();
	popwin.document.write('<html><head><title>Zoom</title></head>');
	popwin.document.write('<body BGCOLOR="#555A70" TOPMARGIN="10"><CENTER><FORM>');
	popwin.document.write('<img src="'+imagesrc+'" ALT="" TITLE="" NAME="theImg" BORDER="1" WIDTH="'+ImgWidth+'" HEIGHT="'+ImgHeight+'"><BR><BR>');
	popwin.document.write('<INPUT TYPE="Button" VALUE="CLOSE" ONCLICK="window.close();">');
	popwin.document.write('</FORM></CENTER></body></HTML>');
	popwin.document.close();
}//function

function goToLanguage(whichIndex,comeFromUrl){
	newUrl = "";
	UrlParts = comeFromUrl.split(".");
	UrlParts[UrlParts.length-2] = whichIndex;
	for (i=0;i<=UrlParts.length-1;i++){
		if(newUrl == "")	newUrl = UrlParts[i];
		else	newUrl= newUrl+"."+UrlParts[i];
	}//for
//	alert(newUrl);
	window.location.href = newUrl;
}//function

function makeWindow(theFile){
	addData = "width=400,height=350,resizable=yes,menubar=no,locationbar=no,status=no,screenX=5,screenY=5,scrollbars=no";
	popup = open(theFile,"Imprint",addData);
	popup.focus();
}//function


