var imgW;var imH;var theFile;var theFileString;var fileName;var theFileName;var folderName;var arrNum;var numb=0;var themenBereiche= new Array ("bildnisse1","bildnisse2","bildnisse3","bildnisse4","zeichnungen","fotos");var textBereiche= new Array ("2008 - 2001","2000 - 1995","1994 - 1990","1989 - 1972","Zeichnungen","Fotos");var L_ctrl=1;var docTitle;function showSelectedPreview(f_name,n){numb=n;folderName=f_name;		switch (folderName)	{	case "zeichnungen":	thisText=zeichnungen[numb];	a=thisText.indexOf("*");	thisFile="pictures/zeichnungen/previews/"+thisText.substring(0,a);	th_ber="zeichnungen";	break;	case "bildnisse1":	thisText=bildnisse1[numb];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse1/previews/"+thisText.substring(0,a);	th_ber="bildnisse1";	break;		case "bildnisse2":	thisText=bildnisse2[numb];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse2/previews/"+thisText.substring(0,a);	th_ber="bildnisse2";		break;	case "bildnisse3":	thisText=bildnisse3[numb];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse3/previews/"+thisText.substring(0,a);	th_ber="bildnisse3";	break;		case "bildnisse4":	thisText=bildnisse4[numb];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse4/previews/"+thisText.substring(0,a);	th_ber="bildnisse4";	}			b=thisText.indexOf("+");	thestring=thisText.substring(a+1,b);	a=thestring.indexOf(",");	imgHeight=thestring.substring(0,a);	imgWidth=thestring.substring(a+1);	imgW=Number(imgWidth);	imgH=Number(imgHeight);	thestring=thisText.substring(b+1);	availHeight=document.getElementById("Bildfenster").offsetWidth-250;	if(window.innerHeight)		availHeight=window.innerWidth-250;	imgHW="";		imgWidth=280;		prozent=Math.round(imgWidth/(imgW/100));		imgHeight=Math.round((imgH/100)*prozent);		imgHW="height="+imgHeight+" width="+imgWidth;	document.getElementById("Abbildung").innerHTML="<div id='Zusatzbild' style='padding-bottom:14px;width:100%'><span style='white-space:nowrap'><IMG SRC="+thisFile+" border='0' onclick='javascript:showSingleImage(th_ber,numb)' style='vertical-align:top;cursor:pointer' "+imgHW+" alt='"+convertAlternate(thestring)+"'><img id='sh1' style='vertical-align:top' src='images/S1b.gif' width='8' height="+imgHeight+" alt=' '><\/span><br><span style='white-space:nowrap'><img id='sh2' style='vertical-align:top' src='images/S2b.gif' width="+imgWidth+" height='8' alt=' '><img id='sh3' style='vertical-align:top' src='images/S3b.gif' width='8' height='8' alt=' '><\/span><div id='bldus' style='text-align:left;margin-top:8px;padding-right:8px'>"+convertText(thestring)+"<\/div><\/div>";	if(navigator.appVersion.indexOf("MSIE 6")=="-1"&&navigator.appVersion.indexOf("MSIE 7")=="-1")		document.getElementById("bldus").style.textAlign="right";}/*******************************************/function showPreviews(){if(window.innerWidth)	{	windW=window.innerWidth;	AnzBer=window.innerHeight;	}else	{		windW=document.getElementById("Bildfenster").offsetWidth;	AnzBer=document.getElementById("Bildfenster").offsetHeight;	}itemNr=Math.round((windW-300)/200);lineCount=0;if(itemNr<2)	itemNr=2;imgTable="<table align='left' style='width:100%;table-layout:fixed' border='0' cellspacing='0' cellpadding='0' width='100%'><tr>";textTable="";for(i=0;i<themenBereiche.length-2;i++){folderName=themenBereiche[i];switch (folderName)	{	case "bildnisse1":	imgSelect=new Array (0,1,2,3,4,5,6,7,9,11,12,15,16,17,18,19,21,22,23,24,25,26);	arrNum=Math.floor (Math.random() *imgSelect.length);	arrNum=imgSelect[arrNum];	theFileName=bildnisse1[arrNum];	pathType="bildnisse1";	break;		case "bildnisse2":	imgSelect=new Array (4,5,7,8,11,12,14,15,16,17,18,19,20);	arrNum=Math.floor (Math.random() *imgSelect.length);	arrNum=imgSelect[arrNum];		theFileName=bildnisse2[arrNum];	pathType="bildnisse2";	break;		case "bildnisse3":	imgSelect=new Array (0,1,2,3,5,8,9,10,11,12,13,14,15,16);	arrNum=Math.floor (Math.random() *imgSelect.length);	arrNum=imgSelect[arrNum];	theFileName=bildnisse3[arrNum];	pathType="bildnisse3";	break;		case "bildnisse4":	imgSelect=new Array (1,2,4,6,11,13,14,15,16,25,27,28);	arrNum=Math.floor (Math.random() *imgSelect.length);	arrNum=imgSelect[arrNum];	theFileName=bildnisse4[arrNum];	pathType="bildnisse4";	}	imgSrc=theFileName;		a=imgSrc.indexOf("*");	b=imgSrc.indexOf("+");	sizeString=imgSrc;	c=sizeString.indexOf("*");	d=sizeString.indexOf("+");			imgH_W=sizeString.substring(c+1,d);	e=imgH_W.indexOf(",");	imgH=imgH_W.substring(0,e);	imgW=imgH_W.substring(e+1);	/*alert( (windW-300)-((itemNr-1)*200));*/	if(( (windW-300)-((itemNr-1)*200) )>150)		var imgHW=200;	else		var imgHW=150;	if(Number(imgH)>Number(imgW))			{		imgHeight=imgHW;		prozent=Math.round(imgHeight/(imgH/100));		imgWidth=Math.round((imgW/100)*prozent);		}	else		{		imgWidth=imgHW;		prozent=Math.round(imgWidth/(imgW/100));		imgHeight=Math.round((imgH/100)*prozent);		}	imgHW="height="+imgHeight+" width="+imgWidth;		imgSrc="pictures/"+pathType+"/previews/"+imgSrc.substring(0,a);	lineCount=lineCount+1;				if(lineCount==itemNr)		{		lineCount=1;		imgTable=imgTable+"<\/tr><tr>"+textTable;		textTable="";		breakControl="<\/tr><tr>";		}	else		breakControl="";	theFileString="<span style='white-space:nowrap'>"+textBereiche[i]+"<\/span>";		if(lineCount==1)		t_align="left";	else		{		if(lineCount==itemNr-1)			t_align="right";		else			t_align="center";		}			if(location.href.indexOf("malerei.htm")!="-1")imgTable=imgTable+breakControl+"<td id='imgTable'"+i+"' onClick='openPage("+i+")' style='cursor:pointer;text-align:"+t_align+";vertical-align:middle;padding-top:6px;padding-left:0px:padding-right:0px'><span style='white-space:nowrap'><IMG id='pct"+i+"' SRC="+imgSrc+" "+imgHW+" border='0' alt='"+convertAlternate(theFileString)+"' style='vertical-align:top;cursor:pointer'><img id='sh1' style='visibility:visible;vertical-align:top' src='images/S1b.gif' width='4' height="+imgHeight+" alt=' '><\/span><br><span style='white-space:nowrap'><img id='sh2' style='visibility:visible;vertical-align:top' src='images/S2b.gif' width="+imgWidth+" height='4' alt=' '><img id='sh3' style='visibility:visible;vertical-align:top' src='images/S3b.gif' width='4' height='4' alt=' '><\/span><\/td>";elseimgTable=imgTable+breakControl+"<td id='imgTable'"+i+"' onClick='openPage("+i+")' style='cursor:pointer;text-align:"+t_align+";vertical-align:middle;padding-top:8px;padding-left:0px:padding-right:0px'><IMG id='pct"+i+"' SRC="+imgSrc+" "+imgHW+" border='0' alt='"+convertAlternate(theFileString)+"' style='vertical-align:top;cursor:pointer'><\/td>";		 /*onmouseover='showFrame("+i+")' onmouseout='hideFrame("+i+")'*/if(lineCount==1)	imgTable=imgTable+"<td style='padding-right:10px;width:10px'>&nbsp;<\/td>";else	{	if(lineCount!=itemNr-1)		{		if(lineCount==itemNr-2)			imgTable=imgTable+"<td style='padding-right:10px;width:10px'>&nbsp;<\/td>";		else			imgTable=imgTable+"<td style='padding-right:30px;width:30px'>&nbsp;<\/td>";		}	}	if(lineCount==1)	textTable=textTable+"<td id='textTable' style='text-align:left;padding-top:6px;padding-bottom:30px;vertical-align:top;font-size:9px;font-family:Verdana,Arial,Helvetica,non-serif;line-height:16px;color:#646464'><table><tr><td style='text-align:center;width:"+imgWidth+"'>"+theFileString+"<\/td><\/tr><\/table><\/td>";else	{	if(lineCount==itemNr-1)		textTable=textTable+"<td id='textTable' style='text-align:right;padding-top:6px;padding-bottom:30px;vertical-align:top;font-size:9px;font-family:Verdana,Arial,Helvetica,non-serif;line-height:16px;color:#646464;padding-right:0px;padding-left:20px'><table align='right'><tr><td style='text-align:center;width:"+imgWidth+"'>"+theFileString+"<\/td><\/tr><\/table><\/td>";	else		textTable=textTable+"<td id='textTable' style='text-align:center;padding-top:6px;padding-bottom:30px;vertical-align:top;font-size:9px;font-family:Verdana,Arial,Helvetica,non-serif;line-height:16px;color:#646464'>"+theFileString+"<\/td>";	}	if(lineCount!=itemNr-1)		textTable=textTable+"<td>&nbsp;<\/td>";	}img_Layout="<\/tr><tr>"+textTable+"<\/tr><\/table>";imgTable=imgTable+img_Layout;document.write(imgTable);}function openPage(n){n=n+1;page="bildnisse"+n+".htm";window.open(page, target="_top");}function showFrame(n){document.getElementById("pct"+n).style.borderColor='#646464';document.getElementById("pct"+n).style.borderStyle='solid 1px';}function hideFrame(n){document.getElementById("pct"+n).style.borderColor='#ffffff';document.getElementById("pct"+n).style.borderStyle='none';}/*****Vorladen******/if(location.href.indexOf("home")!="-1"||location.href.indexOf("index")!="-1"||location.href.indexOf("bilder")!="-1"){folderName=Math.floor (Math.random() *themenBereiche.length);folderName=themenBereiche[folderName];switch (folderName)	{	/*case "zeichnungen":	arrNum=Math.floor (Math.random() *zeichnungen.length);	fileName=zeichnungen[arrNum];	break;*/	case "bildnisse1":	arrNum=Math.floor (Math.random() *bildnisse1.length);	fileName=bildnisse1[arrNum];	break;	case "bildnisse2":	arrNum=Math.floor (Math.random() *bildnisse2.length);	fileName=bildnisse2[arrNum];	break;	case "bildnisse3":	arrNum=Math.floor (Math.random() *bildnisse3.length);	fileName=bildnisse3[arrNum];	break;	case "bildnisse4":	arrNum=Math.floor (Math.random() *bildnisse4.length);	fileName=bildnisse4[arrNum];	break;	default:	arrNum=Math.floor (Math.random() *bildnisse1.length);	fileName=bildnisse1[arrNum];	folderName="bildnisse1";	}a=fileName.indexOf("*");b=fileName.indexOf("+");theFile="pictures/"+folderName+"/"+fileName.substring(0,a);var thisImage = new Array(1)thisImage[0] = new Image(); thisImage[0].src=theFile;}/************************************************/function showThumbnail(f_name)	{	folderName=f_name;	if(folderName=="fotos")		{		selPict=Math.floor (Math.random() *4);		folderName=themenBereiche[selPict];		}	switch (folderName)	{	case "zeichnungen":	n=Math.floor (Math.random() *zeichnungen.length);	thisText=zeichnungen[n];	a=thisText.indexOf("*");	thisFile="pictures/zeichnungen/previews/"+thisText.substring(0,a);	th_ber=themenBereiche[4];	break;		case "fotos":	n=Math.floor (Math.random() *fotos.length);	thisText=fotos[n];	a=thisText.indexOf("*");	thisFile="pictures/fotos/previews/"+thisText.substring(0,a);	th_ber=themenBereiche[5];	break;		case "bildnisse1":	n=Math.floor (Math.random() *bildnisse1.length);	thisText=bildnisse1[n];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse1/previews/"+thisText.substring(0,a);	th_ber=themenBereiche[0];	break;		case "bildnisse2":	n=Math.floor (Math.random() *bildnisse2.length);	thisText=bildnisse2[n];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse2/previews/"+thisText.substring(0,a);	th_ber=themenBereiche[1];	break;		case "bildnisse3":	n=Math.floor (Math.random() *bildnisse3.length);	thisText=bildnisse3[n];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse3/previews/"+thisText.substring(0,a);	th_ber=themenBereiche[2];	break;		case "bildnisse4":	n=Math.floor (Math.random() *bildnisse4.length);	thisText=bildnisse4[n];	a=thisText.indexOf("*");	thisFile="pictures/bildnisse4/previews/"+thisText.substring(0,a);	th_ber=themenBereiche[3];	break;		case "ritter":	n=Math.floor (Math.random() *2);	thisText=fotos[n];	a=thisText.indexOf("*");	thisFile="pictures/fotos/previews/"+thisText.substring(0,a);	th_ber=themenBereiche[5];	}			b=thisText.indexOf("+");	thestring=thisText.substring(a+1,b);	a=thestring.indexOf(",");	imgHeight=thestring.substring(0,a);	imgWidth=thestring.substring(a+1);	imgW=Number(imgWidth);	imgH=Number(imgHeight);	thestring=thisText.substring(b+1);	availHeight=document.getElementById("Bildfenster").offsetWidth-250;	if(window.innerHeight)		availHeight=window.innerWidth-250;	imgHW="";		imgWidth=280;		prozent=Math.round(imgWidth/(imgW/100));		imgHeight=Math.round((imgH/100)*prozent);			imgHW="height="+imgHeight+" width="+imgWidth;		/*mit Schlag */		if(folderName=="ritter")		thestring="<B>Susanne Ritter</B>";		document.getElementById("Abbildung").innerHTML="<div id='Zusatzbild' style='padding-bottom:14px;width:100%'><span style='white-space:nowrap'><IMG NAME='VBild'SRC="+thisFile+" border='0' onclick='javascript:showSingleImage(th_ber,n)' style='vertical-align:top;cursor:pointer' "+imgHW+" alt='"+convertAlternate(thestring)+"'><img id='sh1' style='vertical-align:top' src='images/S1b.gif' width='8' height="+imgHeight+" alt=' '><\/span><br><span style='white-space:nowrap'><img id='sh2' style='vertical-align:top' src='images/S2b.gif' width="+imgWidth+" height='8' alt=' '><img id='sh3' style='vertical-align:top' src='images/S3b.gif' width='8' height='8' alt=' '><\/span><div id='bldus' style='text-align:left;margin-top:8px;padding-right:8px'>"+convertText(thestring)+"<\/div><\/div>";		if(navigator.appVersion.indexOf("MSIE 6")=="-1"&&navigator.appVersion.indexOf("MSIE 7")=="-1")		document.getElementById("bldus").style.textAlign="right";}/******************************************/function hideText(){document.getElementById("infoText").innerHTML="";}/******Bild platzieren/home-, index- und Bilder-Seiten****************/function placeRandomImage(){b=fileName.indexOf("+");theFileString=fileName.substring(b+1);imgH_W=fileName.substring(a+1,b);a=imgH_W.indexOf(",");imgH=imgH_W.substring(0,a);imgW=imgH_W.substring(a+1);if(!window.innerHeight)	{	availHeight=document.getElementById("Bildfenster").offsetHeight-300;	availWidth=document.getElementById("Bildfenster").offsetWidth-300;	}else	{	availHeight=window.innerHeight-300;	availWidth=window.innerWidth-300;	}		if(location.href.indexOf("home")!="-1")	{	availWidth=availWidth-200;	/*availHeight=availHeight-100;*/	}if(location.href.indexOf("index")!="-1")	{	availWidth=availWidth-40;	availHeight=availHeight;	}if(location.href.indexOf("bilder")!="-1")	{	availWidth=availWidth-300;	availHeight=availHeight-100;	}		imgHeight=imgH;imgWidth=imgW;	if(imgHeight>availHeight||imgWidth>availWidth)	{	if (imgHeight>availHeight)		{		imgHeight=availHeight;		prozent=Math.round(imgHeight/(imgH/100));		imgWidth=Math.round((imgW/100)*prozent);				}	if (imgWidth>availWidth)		{		imgWidth=availWidth;		prozent=Math.round(imgWidth/(imgW/100));		imgHeight=Math.round((imgH/100)*prozent);		}	}a=theFileString.indexOf(" ");/*mit Schlag */if(location.href.indexOf("index")=="-1"&&location.href.indexOf("home*.htm")=="-1"&&location.href.indexOf("bilder.htm")=="-1")document.write("<span style='white-space:nowrap'><img id='frontImage'src="+theFile+" height="+imgHeight+" width="+imgWidth+" onload='showAllImages()' style='vertical-align:top;cursor:pointer;visibility:hidden' alt='"+convertAlternate(theFileString)+"'><img id='sh1' style='visibility:hidden;vertical-align:top' src='images/S1b.gif' width='8' height="+imgHeight+" alt=' ' onload='showAllImages()'><\/span><br><span style='white-space:nowrap'><img id='sh2' style='visibility:hidden;vertical-align:top' src='images/S2b.gif' width="+imgWidth+" height='8' alt=' ' onload='showAllImages()'><img id='sh3' style='visibility:hidden;vertical-align:top' src='images/S3b.gif' width='8' height='8' alt=' ' onload='showAllImages()'><\/span><div style='line-height:16px;position:absolute;right:0px;top:"+(imgHeight+10)+";text-align:right;width:"+imgWidth+";margin-right:8px;padding-top:10px;font-size:11px;font-family:Verdana,Arial,Helvetica'>"+convertText(theFileString)+"<\/div>");/*mit GrauSchlag */elsedocument.write("<span style='white-space:nowrap'><img id='frontImage'src="+theFile+" height="+imgHeight+" width="+imgWidth+" border='0' onload='showMe()' style='vertical-align:top;cursor:pointer;visibility:hidden' alt='"+convertAlternate(theFileString)+"'><img id='Sr' style='vertical-align:top' src='images/Sr.gif' width='20' height="+imgHeight+" alt=' '><\/span><br><span style='white-space:nowrap'><img id='Su' style='vertical-align:top' src='images/Su.gif' width="+imgWidth+" height='20' alt=' '><img id='Se' style='vertical-align:top' src='images/Se.gif' width='20' height='20' alt=' '><\/span>");}function showMe(){document.getElementById("frontImage").style.visibility="visible";document.getElementById("Bildunterschrift").innerHTML="<p style='margin-right:0px;padding-top:0px;color:#646464;line-height:22px;font-size:11px;text-align:right;padding-bottom:10px'>"+convertText(theFileString)+"<\/p>";}function showAllImages(){L_ctrl++;if(L_ctrl==5)	{	document.getElementById("sh1").style.visibility="visible";	document.getElementById("sh2").style.visibility="visible";	document.getElementById("sh3").style.visibility="visible";	document.getElementById("frontImage").style.visibility="visible";	document.getElementById("laden").style.display="none";	}}/*************************************/function showStatus(n){thetext= "Bitte ins Vorschaubild klicken um Abbildung aufzurufen ";setTimeout("window.status=thetext;",0);return true;}/*************************************/function hideStatus(){window.status= "";}/*************************************/function showThumbImage(imgSrc,num){if(num)arrNum=num;a=imgSrc.lastIndexOf("/");imgName=imgSrc.substring(a+1);a=imgSrc.lastIndexOf("pictures/");b=imgSrc.lastIndexOf("preViews/");imgName=imgSrc.substring(a+9,b-1);showImage(imgName,arrNum);}/**************************************/var typeArray=new Array();function writeThumbnails(pathType,num){document.getElementById("laden").style.display="block";typeArray=new Array();docTitle=pathType;switch (pathType)	{	case "zeichnungen":	typeArray=zeichnungen;	break;		case "fotos":	typeArray=fotos;	break;		case "bildnisse1":	typeArray=bildnisse1;	break;		case "bildnisse2":	typeArray=bildnisse2;	break;		case "bildnisse3":	typeArray=bildnisse3;	break;		case "bildnisse4":	typeArray=bildnisse4;	break;		}if(window.innerWidth)	{	windW=window.innerWidth;	AnzBer=window.innerHeight;	}else	{		windW=document.getElementById("Bildfenster").offsetWidth;	AnzBer=document.getElementById("Bildfenster").offsetHeight;	}	itemNr=Math.round((windW-350)/160);	lineCount=0;if(itemNr<2)itemNr=2;imgTable="<table id='Vorschautabelle' align='right' width='100%' border='0' cellspacing='0' cellpadding='0' style='table-layout:fixed'><tr>";textTable="";for (i=0;i<typeArray.length;i++)	{	imgSrc=typeArray[i];		a=imgSrc.indexOf("*");	b=imgSrc.indexOf("+");	sizeString=imgSrc;	c=sizeString.indexOf("*");	d=sizeString.indexOf("+");			imgH_W=sizeString.substring(c+1,d);	e=imgH_W.indexOf(",");	imgH=imgH_W.substring(0,e);	imgW=imgH_W.substring(e+1);			if(Number(imgH)>Number(imgW))		{		imgHeight=108;		prozent=Math.round(imgHeight/(imgH/100));		imgWidth=Math.round((imgW/100)*prozent);		}	else		{		imgWidth=108;		prozent=Math.round(imgWidth/(imgW/100));		imgHeight=Math.round((imgH/100)*prozent);		}		imgHW="height="+imgHeight+" width="+imgWidth;		imgSrc="pictures/"+pathType+"/thumbnails/"+imgSrc.substring(0,a);	lineCount=lineCount+1;		if(lineCount==itemNr)		{		lineCount=1;		imgTable=imgTable+"<\/tr><tr>"+textTable;		textTable="";		breakControl="<\/tr><tr>";		}	else		breakControl="";			txtSrc=typeArray[i];	b=txtSrc.indexOf("+");	theFileString=txtSrc.substring(b+1);			if(lineCount==1)		t_align="left";	else		{		if(lineCount==itemNr-1)			t_align="right";		else			t_align="center";		}	imgTable=imgTable+breakControl+"<td id='B"+i+"' onClick='javascript:showImage(themenBereiche["+num+"],"+i+");saveNumber("+i+")' style='cursor:pointer;text-align:"+t_align+";vertical-align:middle;padding-top:6px;padding-left:0px:padding-right:0px' onmouseover='window.status=showStatus("+(i+1)+");return true;' onmouseout='hideStatus();return true;'><span style='white-space:nowrap'><IMG id='I"+i+"' SRC="+imgSrc+" "+imgHW+" border='0' alt='"+convertAlternate(theFileString)+"' style='vertical-align:top;cursor:pointer'><img id='sh1' style='visibility:visible;vertical-align:top' src='images/S1b.gif' width='4' height="+imgHeight+" alt=' '><\/span><br><span style='white-space:nowrap'><img id='sh2' style='visibility:visible;vertical-align:top' src='images/S2b.gif' width="+imgWidth+" height='4' alt=' '><img id='sh3' style='visibility:visible;vertical-align:top' src='images/S3b.gif' width='4' height='4' alt=' '><\/span><\/td>";					if(lineCount==1)/*links*/	imgTable=imgTable+"<td style='padding-right:0px;width:0px'>&nbsp;<\/td>";else	{	if(lineCount!=itemNr-1)		{		if(lineCount==itemNr-2)/*rechts*/			imgTable=imgTable+"<td style='padding-right:0px;width:0px'>&nbsp;<\/td>";		else			imgTable=imgTable+"<td style='padding-right:30px;width:30px'>&nbsp;<\/td>";		}	}							if(lineCount==1)		textTable=textTable+"<td id='textTable' style='text-align:left;padding-top:6px;padding-bottom:10px;vertical-align:top;font-size:9px;font-family:Verdana,Arial,Helvetica,non-serif;line-height:16px;color:#646464'><table><tr><td style='text-align:center;width:"+imgWidth+"'>"+convert(theFileString)+"<\/td><\/tr><\/table><\/td>";	else		{		if(lineCount==itemNr-1)			textTable=textTable+"<td id='textTable' style='text-align:right;padding-top:6px;padding-bottom:10px;vertical-align:top;font-size:9px;font-family:Verdana,Arial,Helvetica,non-serif;line-height:16px;color:#646464;padding-right:0px;padding-left:6px'><table align='right'><tr><td style='text-align:center;width:"+imgWidth+"'>"+convert(theFileString)+"<\/td><\/tr><\/table><\/td>";		else			textTable=textTable+"<td id='textTable' style='text-align:center;padding-top:6px;padding-bottom:10px;vertical-align:top;font-size:9px;font-family:Verdana,Arial,Helvetica,non-serif;line-height:16px;color:#646464'>"+convert(theFileString)+"<\/td>";		}		if(lineCount!=itemNr-1)		textTable=textTable+"<td>&nbsp;<\/td>";	}img_Layout="<\/tr><tr>"+textTable+"<\/tr><\/table>";imgTable=imgTable+img_Layout;document.write(imgTable);}var selectedFile;function saveNumber(n){selectedFile=n;}/*********************************************************/function getCode(pathType){if(location.href.indexOf("_RITTER")!="-1")	{	typeArray=new Array();	switch (pathType)	{	case "zeichnungen":	typeArray=zeichnungen;	break;	case "fotos":	typeArray=fotos;	break;	case "bildnisse1":	typeArray=bildnisse1;	break;	case "bildnisse2":	typeArray=bildnisse2;	break;	case "bildnisse3":	typeArray=bildnisse3;	break;	case "bildnisse4":	typeArray=bildnisse4;	break;		}	var imgCode;	lineCount=0;	itemNr=5;	imgCode="<table align='left' width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";	textTable="";	for (i=0;i<typeArray.length;i++)		{		imgSrc=typeArray[i];		a=imgSrc.indexOf("*");		b=imgSrc.indexOf("+");			lineCount=lineCount+1;		if(lineCount==itemNr)			{			lineCount=1;			imgCode=imgCode+"<\/tr><tr>"+textTable;			textTable="";			breakControl="<\/tr><tr>\n";			}		else			breakControl="";													imgSrc1="pictures/"+pathType+"/"+imgSrc.substring(0,a);		imgSrc2="pictures/"+pathType+"/thumbnails/"+imgSrc.substring(0,a);			txtSrc=typeArray[i];		b=txtSrc.indexOf("+");		theFileString=txtSrc.substring(b+1);			v=theFileString.indexOf(" <span");		altString="'"+theFileString.substring(0,v)+"'";		imgCode=imgCode+breakControl+"<td bgcolor='#FFFFFF' width='108' valign='middle' style='cursor:pointer'><a href='"+imgSrc1+"' target='new'><IMG class='marg' SRC='"+imgSrc2+"' border='0' alt="+altString+"><\/a><\/td>\n";		textTable=textTable+"<td width='10%' valign='top' class='Bildunterschrift' align='center'><IMG class='invisible' SRC='images/transp.gif' WIDTH='130' HEIGHT='4' border='0' alt='Abstand'><br>"+theFileString+"<br>&nbsp;<\/td>\n";		}	img_Layout="<\/tr><tr>\n"+textTable+"<\/tr><\/table>";	imgCode="<form action=''><textarea  cols='150' rows='100'>"+imgCode+img_Layout+"<\/textarea><\/form>";	document.write("<xmp>"+imgCode+"<\/xmp>");	/*document.write(imgCode);*/	}}/**************************************************************/function startSlideShow(thisName,thisFileNumber){if(numb)	thisFileNumber=numb;if(!thisFileNumber)thisFileNumber=0;	window.open("components/slidFr.htm?"+thisName+"+"+thisFileNumber,'Diaschau','fullscreen=yes,resizable=no,left=0,top=0')}/*********************************************************/function startRSlideShow(){window.open("components/randSlidFr.htm",'Diaschau','fullscreen=yes,resizable=no,left=0,top=0')}/*********************************************************/function shadowException(){if(slidePict.indexOf("LuganerSee21_VII_91.jpg")!="-1"||slidePict.indexOf("Alpenstck15_VII_91.jpg")!="-1"||slidePict.indexOf("Paris25_III_91.jpg")!="-1"||slidePict.indexOf("Paris5_XII_90.jpg")!="-1"||slidePict.indexOf("Oliven_94")!="-1"||slidePict.indexOf("London10_IV_99.jpg")!="-1"||slidePict.indexOf("Paris23_III_91.jpg")!="-1")	return true;else	return false;}/**************************Seite neu aufbauen bei Aenderung der Fenstergroesse***************************************/function Fensterweite () {  if (window.innerWidth) {    return window.innerWidth;  } else if (document.body && document.body.offsetWidth) {    return document.body.offsetWidth;  } else {    return 0;  }}function Fensterhoehe () {  if (window.innerHeight) {    return window.innerHeight;  } else if (document.body && document.body.offsetHeight) {    return document.body.offsetHeight;  } else {    return 0;  }}function neuAufbau (){if(location.href.indexOf("impressum")=="-1")	{	if (Weite != Fensterweite() || Hoehe != Fensterhoehe())		{		if(location.href.indexOf("dokumentation")!="-1")			reloadSite();		else			location.href = location.href;		}	}}/* Überwachung von Netscape initialisieren */if (!window.Weite && window.innerWidth||window.opera) {  window.onresize = neuAufbau;  Weite = Fensterweite();  Hoehe = Fensterhoehe();}function convertAlternate(text){for(k=0;k<text.length;k++)		{		if(text.substring(k,k+4) == "<BR>")        	text = text.substring(0,k)+", "+text.substring(k+4);		if(text.substring(k,k+3) == "<B>")        	text = text.substring(0,k)+text.substring(k+3);		if(text.substring(k,k+4) == "<\/B>")        	text = text.substring(0,k)+text.substring(k+4);		if(text.substring(k,k+4) == "<br>")        	text = text.substring(0,k)+", "+text.substring(k+4);		if(text.substring(k,k+33) == "<span style='white-space:nowrap'>")			text = text.substring(0,k)+text.substring(k+33);		if(text.substring(k,k+7) == "</span>")			text = text.substring(0,k)+text.substring(k+7);		}	return text;}function convert(text){if(text.indexOf("cm")!="-1")	{	a=text.indexOf("<BR>");	b=text.indexOf("cm");	text=text.substring(0,a)+"<BR>"+text.substring(b+3);	}return text;}function convertText(text){while(text.indexOf("<BR>")!="-1")	{	a=text.indexOf("<BR>");	text=text.substring(0,a)+", "+text.substring(a+4);	}while(text.indexOf("<br>")!="-1")	{	a=text.indexOf("<br>");	text=text.substring(0,a)+", "+text.substring(a+4);	}return text;}/***********************************************************************/function showSingleImage(folderName,numb){if(location.href.indexOf("/bildnisse")!="-1"||location.href.indexOf("/zeichnungen")!="-1")	showImage(folderName,numb);else{if(location.href.indexOf("index")=="-1"){if(folderName.indexOf("/")!="-1")	{	a=folderName.lastIndexOf("/");	folderName=folderName.substring(0,a);	a=folderName.lastIndexOf("/");	folderName=folderName.substring(a+1);	numb=arrNum;	}switch (folderName)	{	case "textbilder":	fileName=textbilder[numb];	break;	case "zeichnungen":	fileName=zeichnungen[numb];	break;	case "fotos":	fileName=fotos[numb];	break;	case "bildnisse1":	fileName=bildnisse1[numb];	break;	case "bildnisse2":	fileName=bildnisse2[numb];	break;	case "bildnisse3":	fileName=bildnisse3[numb];	break;	case "bildnisse4":	fileName=bildnisse4[numb];	break;	}a=fileName.indexOf("*");b=fileName.indexOf("+");theFile="../pictures/"+folderName+"/"+fileName.substring(0,a);theFileString=fileName.substring(b+1);imgH_W=fileName.substring(a+1,b);a=imgH_W.indexOf(",");imgH=imgH_W.substring(0,a);imgW=imgH_W.substring(a+1);newHeight=imgH;newWidth=imgW;Sc_WindoWWidth=screen.width-260;Sc_WindowHeight=screen.height-260;	if(newHeight>Sc_WindowHeight) 	{	newHeight=Sc_WindowHeight;	prozent=Math.round(newHeight/(imgH/100));	newWidth=Math.round((imgW/100)*prozent);	}if(newWidth>Sc_WindoWWidth)	{	newWidth=Sc_WindoWWidth;	prozent=Math.round(newWidth/(imgW/100));	newHeight=Math.round((imgH/100)*prozent);	}WWidth=Number(newWidth)+110;WHeight=Number(newHeight)+130;x=Math.round(((screen.width)/2) - (WWidth/2));	y=Math.round(((screen.height)/2) - (WHeight/2));y=y-30;slidePict=theFile;window.open("components/imgWind_shade.htm?"+numb,"Bildansicht","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+WWidth+",height="+WHeight+",left="+x+",top="+y);	}}}/*********************************************************************************/var shadows = new Array(3)shadows[0] = new Image(); shadows[0].src="images/S1.gif";shadows[1] = new Image(); shadows[1].src="images/S2.gif";shadows[2] = new Image(); shadows[2].src="images/S3.gif";/*********************************************************************************/var theFile;var newWidth;var newHeight;var theScroll;/****************************************************************/function loadImage(){if(document.getElementById("mainWindow").style.display!="none")	{	document.getElementById("mainWindow").style.display="none";	document.getElementById("imageWindow").style.visibility="hidden";	document.getElementById("imageWindow").style.display="block";	}document.getElementById("singleImage").innerHTML="<span style='white-space:nowrap'><IMG name='fotoimage' ID='theImage' SRC="+theFile+" height="+newHeight+" width="+newWidth+" BORDER='0'  onClick='next()' onLoad='answerLoading()' alt='Abbildung' title='N&auml;chstes Bild' style='vertical-align:top;cursor:pointer'><img id='sh1' style='vertical-align:top' src="+ shadows[0].src+" width='20' height="+newHeight+" alt=''><\/span><br><span style='white-space:nowrap'><img id='sh2' style='vertical-align:top' src="+ shadows[1].src+" width="+newWidth+" height='20' alt=''><img id='sh3' style='vertical-align:top' src="+ shadows[2].src+" width='20' height='20' alt=''><\/span>";WWidth=Number(newWidth);WHeight=Number(newHeight);}function resetMe(){	document.getElementById('imageWindow').style.display="none";document.getElementById("infoTable").style.visibility="hidden";document.getElementById("mainWindow").style.display="block";document.getElementById("imgLinks").style.display="block";document.getElementById("nav").style.display="block";if(window.innerHeight)	document.body.style.overflow='visible';else	document.body.style.overflow='auto';/*setTimeout("window.scrollTo(0,1)",500);*/window.scrollTo(0,1);window.scrollTo(0,theScroll);}/**************************************************************************/function answerLoading(){document.getElementById("mainWindow").style.display="none";document.getElementById("imgLinks").style.display="none";document.getElementById("nav").style.display="none";document.getElementById("thetop").scrollIntoView("true");document.getElementById("infoString").innerHTML=convertText(theInfoString);document.getElementById("infoString").style.width=newWidth;document.getElementById("infoTable").style.visibility="visible";document.getElementById("imageWindow").style.display="block";document.getElementById("imageWindow").style.visibility="visible";document.body.style.overflow='hidden';if(navigator.appName.indexOf("Explorer")!="-1"&&navigator.platform.indexOf("Mac")=="-1")	{	document.getElementById("infoTable").style.right=42;	document.getElementById("singleImage").style.right=28;	document.getElementById("infoString").style.right=28	}else	document.getElementById("infoTable").style.right=42;document.getElementById("infoString").style.top=Number(newHeight)+174;preloadNextImage();}/****************************************************************/function preloadNextImage(){nb=numb+1;if(nb>fullLength-1)	nb=0;switch(docTitle)	{	case "bildnisse1":	fileString=bildnisse1[nb];	fullLength=bildnisse1.length;	break;		case "fotos":	fileString=fotos[nb];	fullLength=fotos.length;		break;		case "bildnisse2":	fileString=bildnisse2[nb];	fullLength=bildnisse2.length;		break;		case "bildnisse3":	fileString=bildnisse3[nb];	fullLength=bildnisse3.length;		break;		case "bildnisse4":	fileString=bildnisse4[nb];	fullLength=bildnisse4.length;		break;		case "zeichnungen":	fileString=zeichnungen[nb];	fullLength=zeichnungen.length;		}a=fileString.indexOf("*");prelFile="pictures/"+docTitle+"/"+fileString.substring(0,a);document.images.preload.src=prelFile;}/****************************************************************/function showImage(folderName,nb){if(!window.innerHeight)	scroll_Y=document.body.scrollTop;else	scroll_Y=window.pageYOffset;theScroll=scroll_Y;var textTitle;numb=Number(nb);switch(docTitle)	{	case "fotos":	fileString=fotos[numb];	fullLength=fotos.length;	textTitle="<B style='letter-spacing:1px'><a class='topline' href='SR_dokumentation.htm?3'>FOTOS<\/B><\/a>";	break;		case "bildnisse1":	fileString=bildnisse1[numb];	fullLength=bildnisse1.length;	textTitle="<B style='letter-spacing:1px'><a class='topline' href='bildnisse1.htm'>BILDNISSE 2008-2001<\/B><\/a>";	break;		case "bildnisse2":	fileString=bildnisse2[numb];	fullLength=bildnisse2.length;	textTitle="<B style='letter-spacing:1px'><a class='topline' href='bildnisse2.htm'>BILDNISSE 2000-1995<\/B><\/a>";	break;		case "bildnisse3":	fileString=bildnisse3[numb];	fullLength=bildnisse3.length;	textTitle="<B style='letter-spacing:1px'><a class='topline' href='bildnisse3.htm'>BILDNISSE 1994-1990<\/B><\/a>";	break;		case "bildnisse4":	fileString=bildnisse4[numb];	fullLength=bildnisse4.length;	textTitle="<B style='letter-spacing:1px'><a class='topline' href='bildnisse4.htm'>BILDNISSE 1989-1972<\/B><\/a>";	break;		case "zeichnungen":	fileString=zeichnungen[numb];	fullLength=zeichnungen.length;	textTitle="<B style='letter-spacing:1px'><a class='topline' href='zeichnungen.htm'>Zeichnungen 2007-1989<\/B><\/a>";		}a=fileString.indexOf("*");theFile="pictures/"+docTitle+"/"+fileString.substring(0,a);b=fileString.indexOf("+");SizeString=fileString.substring(a+1,b);c=SizeString.indexOf(",");origHeight=SizeString.substring(0,c);origWidth=SizeString.substring(c+1);theInfoString=fileString.substring(b+1);document.getElementById("textTitle").innerHTML=textTitle;newWidth=origWidth;newHeight=origHeight;if(newHeight>WindowHeight) 	{	newHeight=WindowHeight;	prozent=Math.round(newHeight/(origHeight/100));	newWidth=Math.round((origWidth/100)*prozent);	}if(newWidth>WindowWidth)	{	newWidth=WindowWidth;	prozent=Math.round(newWidth/(origWidth/100));	newHeight=Math.round((origHeight/100)*prozent);	}loadImage();}var fullLength;/***********************************************/function next(){num=numb;num++;if(num>fullLength-1)	num=0;showImage(0,num);}/***********************************************/function prev(){num=numb;num--;if(num<0)	num=fullLength-1;showImage(0,num);}function writeZitat(){zitNum=Math.floor (Math.random() *zitate1.length);document.getElementById("Zitat").innerHTML=zitate1[zitNum]+"<br><img src='images/transp.gif' height='0' width='386'>";if(navigator.platform.indexOf("Mac")!="-1")	Hyphenator.hyphenateDocument(6,'?');}/********************Weiterschalten des externen Bildfensters**********************/function showThisImage(folderName,numb){if(folderName.indexOf("/")!="-1")	{	a=folderName.lastIndexOf("/");	folderName=folderName.substring(0,a);	a=folderName.lastIndexOf("/");	folderName=folderName.substring(a+1);	numb=arrNum;	}switch (folderName)	{	case "zeichnungen":	fileName=zeichnungen[numb];	break;	case "fotos":	fileName=fotos[numb];	break;	case "bildnisse1":	fileName=bildnisse1[numb];	break;	case "bildnisse2":	fileName=bildnisse2[numb];	break;	case "bildnisse3":	fileName=bildnisse3[numb];	break;	case "bildnisse4":	fileName=bildnisse4[numb];	break;	}a=fileName.indexOf("*");b=fileName.indexOf("+");theFile="../pictures/"+folderName+"/"+fileName.substring(0,a);theFileString=fileName.substring(b+1);imgH_W=fileName.substring(a+1,b);a=imgH_W.indexOf(",");imgH=imgH_W.substring(0,a);imgW=imgH_W.substring(a+1);newHeight=imgH;newWidth=imgW;windName=newHeight+newWidth;WindoWWidth=screen.width-260;WindowHeight=screen.height-260;	if(newHeight>WindowHeight) 	{	newHeight=WindowHeight;	prozent=Math.round(newHeight/(imgH/100));	newWidth=Math.round((imgW/100)*prozent);	}if(newWidth>WindoWWidth)	{	newWidth=WindoWWidth;	prozent=Math.round(newWidth/(imgW/100));	newHeight=Math.round((imgH/100)*prozent);	}WWidth=Number(newWidth)+110;WHeight=Number(newHeight)+130;x=Math.round(((screen.width)/2) - (WWidth/2));	y=Math.round(((screen.height)/2) - (WHeight/2));y=y-30;slidePict=theFile;if(window.innerHeight||navigator.appName.indexOf("Explorer")!="-1"&&navigator.platform.indexOf("Mac")=="-1")	window.open("imgWind_shade.htm?"+numb,windName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+WWidth+",height="+WHeight+",left="+x+",top="+y);else	window.open("components/imgWind_shade.htm?"+numb,windName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+WWidth+",height="+WHeight+",left="+x+",top="+y);}