var imgW;var imH;var theFile;var randFile;var theFileString;var randFileString;var fileName;var randFileName;var folderName;var arrNum;var themenBereiche= new Array ("verschiedenes","bronze","ytong","eisen","speckstein","gips","imFreien","malerei");/*****Vorladen index/home-Seite******/if(location.href.indexOf("index")!="-1"||location.href.indexOf("skulpturen")!="-1"||location.href.indexOf("dokumentation")!="-1"){folderName=Math.floor (Math.random() *themenBereiche.length);folderName=themenBereiche[folderName];switch (folderName)	{	case "bronze":	arrNum=Math.floor (Math.random() *bronze.length);	randFileName=bronze[arrNum];	break;	case "malerei":	arrNum=Math.floor (Math.random() *malerei.length);	randFileName=malerei[arrNum];	break;	case "ytong":	arrNum=Math.floor (Math.random() *ytong.length);	randFileName=ytong[arrNum];	break;	case "verschiedenes":	arrNum=Math.floor (Math.random() *verschiedenes.length);	randFileName=verschiedenes[arrNum];	break;	case "eisen":	arrNum=Math.floor (Math.random() *eisen.length);	randFileName=eisen[arrNum];	break;	case "speckstein":	arrNum=Math.floor (Math.random() *speckstein.length);	randFileName=speckstein[arrNum];	break;	case "gips":	arrNum=Math.floor (Math.random() *gips.length);	randFileName=gips[arrNum];	break;	case "imFreien":	arrNum=Math.floor (Math.random() *imFreien.length);	randFileName=imFreien[arrNum];		}a=randFileName.indexOf("*");b=randFileName.indexOf("+");randFile="pictures/"+folderName+"/"+randFileName.substring(0,a);var exImage = new Array(1)exImage[0] = new Image(); exImage[0].src=theFile;}/*****Vorladen Zufallsbild Skulpturen-Seite******//*if(location.href.indexOf("xskulpturen")!="-1"||location.href.indexOf("xdokumentation")!="-1"){a=Math.floor (Math.random() *verschiedenes.length);randFileName=verschiedenes[a];a=randFileName.indexOf("*");b=randFileName.indexOf("+");randFile="pictures/verschiedenes/"+randFileName.substring(0,a);var exImage = new Array(1)exImage[0] = new Image(); exImage[0].src=randFile;}*//******Bild platzieren Skulpturen-Seite****************/function placeRandomImage(){b=randFileName.indexOf("+");randFileString=randFileName.substring(b+1);a=randFileName.indexOf("*");imgH_W=randFileName.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;	availWidth=document.getElementById("Bildfenster").offsetWidth;	}else	{	availHeight=window.innerHeight;	availWidth=window.innerWidth;	}if(location.href.indexOf("skulpturen")!="-1"||location.href.indexOf("dokumentation")!="-1")	{	availHeight=availHeight-440;	availWidth=availWidth-660;	}else	{	availHeight=availHeight-250;	availWidth=availWidth-650;	}	if(window.innerWidth)	ww=window.innerWidth;else	ww=document.getElementById("Bildfenster").offsetWidth;	if(location.href.indexOf("index")!="-1"||location.href.indexOf("skulpturen")!="-1"||location.href.indexOf("dokumentation")!="-1"&&ww>1100)	{	imgHeight=imgH;	imgWidth=imgW;		if(imgHeight>availHeight||imgWidth>availWidth)		{		if (imgWidth>availWidth)			{			imgWidth=availWidth;			prozent=Math.round(imgWidth/(imgW/100));			imgHeight=Math.round((imgH/100)*prozent);			}		if (imgHeight>availHeight)			{			imgHeight=availHeight;			prozent=Math.round(imgHeight/(imgH/100));			imgWidth=Math.round((imgW/100)*prozent);			}				}	imgHeight=imgHeight+"px";	imgWidth=imgWidth+"px";	document.getElementById("Skulpturenbild").innerHTML="<span style='white-space:nowrap'><img id='Skb' src="+randFile+" style='vertical-align:top;height:"+imgHeight+";width:"+imgWidth+"' alt='"+convertAlternate(randFileString)+"' / onload='answerPict()'><img id='sh1' style='vertical-align:top;width:8px;height:"+imgHeight+"' src='images/S1b.gif' alt=' ' /><\/span><br/><span style='white-space:nowrap'><img id='sh2' style='vertical-align:top;width:"+imgWidth+";height:8px' src='images/S2b.gif' alt=' ' /><img id='sh3' style='vertical-align:top;width:8px;height:8px' src='images/S3b.gif' alt=' ' /><\/span><div style='text-align:right;padding-right:8px;font-size:10px;padding-top:6px'>"+convertText(randFileString)+"<\/div>";	if(window.innerWidth)	{	ww=window.innerWidth;	wh=window.innerHeight;	}else	{	ww=document.getElementById("Bildfenster").offsetWidth;	wh=document.getElementById("Bildfenster").offsetHeight;	}	}}function answerPict(){if(location.href.indexOf("index")=="-1"&&ww<1000||wh<580)	document.getElementById("Skulpturenbild").style.display="none";else	document.getElementById("Skulpturenbild").style.display="block";if(location.href.indexOf("dokumentation")!="-1"||location.href.indexOf("skulpturen")!="-1")setDivWidth();}/*****Vorladen Skulpturen und SK-Unterseiten******/if(location.href.indexOf("index.htm")=="-1")	{	var th_Text= new Array();	var th_Number= new Array();	var th_Image = new Array();	n=Math.floor (Math.random() *(bronze.length-1));	fileName=bronze[n];			a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb0="pictures/bronze/previews/"+fileName.substring(0,a);	th_Text=th_Text.concat(fileName);	th_Number=th_Number.concat(0);	th_Image[0] = new Image(); th_Image[0].src=thumb0;			n=Math.floor (Math.random() *(ytong.length-1));	fileName=ytong[n];			a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb1="pictures/ytong/previews/"+fileName.substring(0,a);	th_Text=th_Text.concat(fileName);	th_Number=th_Number.concat(1);	th_Image[1] = new Image(); th_Image[1].src=thumb1;			n=Math.floor (Math.random() *(eisen.length-1));	fileName=eisen[n];			a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb2="pictures/eisen/previews/"+fileName.substring(0,a);	th_Text=th_Text.concat(fileName);	th_Number=th_Number.concat(2);	th_Image[2] = new Image(); th_Image[2].src=thumb2;			n=Math.floor (Math.random() *(speckstein.length-1));	fileName=speckstein[n];			a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb3="pictures/speckstein/previews/"+fileName.substring(0,a);	th_Text=th_Text.concat(fileName);	th_Number=th_Number.concat(3);	th_Image[3] = new Image(); th_Image[3].src=thumb3;			n=Math.floor (Math.random() *(gips.length-1));	fileName=gips[n];			a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb4="pictures/gips/previews/"+fileName.substring(0,a);	th_Text=th_Text.concat(fileName);	th_Number=th_Number.concat(4);	th_Image[4] = new Image(); th_Image[4].src=thumb4;			n=Math.floor (Math.random() *(imFreien.length-1));	fileName=imFreien[n];			a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb5="pictures/imFreien/previews/"+fileName.substring(0,a);	th_Text=th_Text.concat(fileName);	th_Number=th_Number.concat(5);	th_Image[5] = new Image(); th_Image[5].src=thumb5;	n=Math.floor (Math.random() *(malerei.length-1));	fileName=malerei[n];			a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb6="pictures/malerei/previews/"+fileName.substring(0,a);	th_Text=th_Text.concat(fileName);	th_Number=th_Number.concat(6);	th_Image[6] = new Image(); th_Image[6].src=thumb6;	}if(location.href.indexOf("skulpturen.htm")!="-1"||location.href.indexOf("kontakt")!="-1"||location.href.indexOf("impressum")!="-1"||location.href.indexOf("vita")!="-1"||location.href.indexOf("dokumentation")!="-1"||location.href.indexOf("links")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();		a=Math.floor (Math.random() *(themenBereiche.length));	b=themenBereiche[a];	switch (b)	{	case "verschiedenes":	n=Math.floor (Math.random() *(bronze.length-1));	fileName=bronze[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/bronze/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;	case "malerei":	n=Math.floor (Math.random() *(malerei.length-1));	fileName=malerei[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/malerei/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;		case "bronze":	n=Math.floor (Math.random() *(bronze.length-1));	fileName=bronze[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/bronze/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;		case "ytong":	n=Math.floor (Math.random() *(ytong.length-1));	fileName=ytong[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/ytong/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;		case "eisen":	n=Math.floor (Math.random() *(eisen.length-1));	fileName=eisen[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/eisen/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;			case "speckstein":	n=Math.floor (Math.random() *(speckstein.length-1));	fileName=speckstein[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/speckstein/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;		case "gips":	n=Math.floor (Math.random() *(gips.length-1));	fileName=gips[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/gips/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;		case "imFreien":	n=Math.floor (Math.random() *(imFreien.length-1));	fileName=imFreien[n];	fileNumb=n;	a=fileName.indexOf("*");	b=fileName.indexOf("+");	var thumb="pictures/imFreien/previews/"+fileName.substring(0,a);	thisText=thisText.concat(fileName);	thisNumber=thisNumber.concat(fileNumb);	break;			}		thisImage[0] = new Image(); thisImage[0].src=thumb;	}/*if(location.href.indexOf("verschiedenes.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<verschiedenes.length;i++)		{		fileNumb=i;		fileName=verschiedenes[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/verschiedenes/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}*/if(location.href.indexOf("bronze.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<bronze.length;i++)		{		fileNumb=i;		fileName=bronze[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/bronze/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}if(location.href.indexOf("malerei.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<malerei.length;i++)		{		fileNumb=i;		fileName=malerei[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/malerei/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}if(location.href.indexOf("ytong.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<ytong.length;i++)		{		fileNumb=i;		fileName=ytong[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/ytong/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}	if(location.href.indexOf("eisen.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<eisen.length;i++)		{		fileNumb=i;		fileName=eisen[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/eisen/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}	if(location.href.indexOf("speckstein.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<speckstein.length;i++)		{		fileNumb=i;		fileName=speckstein[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/speckstein/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}	if(location.href.indexOf("gips.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<gips.length;i++)		{		fileNumb=i;		fileName=gips[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/gips/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}	if(location.href.indexOf("imFreien.htm")!="-1")	{	var thisText= new Array();	var thisNumber= new Array();	var thisImage = new Array();	for(i=0;i<imFreien.length;i++)		{		fileNumb=i;		fileName=imFreien[fileNumb];				a=fileName.indexOf("*");		b=fileName.indexOf("+");		var thumb="pictures/imFreien/previews/"+fileName.substring(0,a);		thisText=thisText.concat(fileName);		thisNumber=thisNumber.concat(fileNumb);		thisImage[i] = new Image(); thisImage[i].src=thumb;		}	}	/*******************************************************/function showPreviewThumbnail(n,selectedFolder){folderName=selectedFolder;	num=th_Number[n];	a=th_Text[n].indexOf("*");	b=th_Text[n].indexOf("+");	thestring=th_Text[n].substring(a+1,b);	a=thestring.indexOf(",");	imgHeight=thestring.substring(0,a);	imgWidth=thestring.substring(a+1);	imgW=imgWidth;	imgH=imgHeight;	availHeight=document.getElementById("Zufallsbild").offsetHeight-230;		availWidth=document.getElementById("Bildfenster").offsetWidth;	/*if(window.innerHeight)availHeight=window.innerHeight-230;*/	imgHW="";		if(imgW>imgH)		{		imgWidth=200;		prozent=Math.round(imgWidth/(imgW/100));		imgHeight=Math.round((imgH/100)*prozent);		}	if(imgH>imgW)		{		imgHeight=200;		prozent=Math.round(imgHeight/(imgH/100));		imgWidth=Math.round((imgW/100)*prozent);		}	if(imgH==imgW)		{		imgHeight=200;		imgWidth=200;		}		imgHW="height="+imgHeight+" width="+imgWidth;	imgHeight=imgHeight+"px";	imgWidth=imgWidth+"px";	a=th_Text[n].indexOf("+");	b=th_Text[n].indexOf(" ");	/*mit Schlag */	if(availWidth>800)	document.getElementById("Zufallsbild").innerHTML="<span style='white-space:nowrap'><IMG SRC="+th_Image[n].src+" border='0' style='vertical-align:top;width:"+imgWidth+";height:"+imgHeight+"' alt='"+convertAlternate(th_Text[n].substring(a+1))+"'/><img id='sh1' src='images/S1b.gif' style='vertical-align:top;width:4px;height:"+imgHeight+"' alt=' '/><\/span><br><span style='white-space:nowrap'><img id='sh2' style='vertical-align:top;width:"+imgWidth+";height:4px' src='images/S2b.gif' alt=' '/><img id='sh3' style='vertical-align:top;width:4px;height:4px' src='images/S3b.gif' alt=' '/><\/span>";		else		document.getElementById("Zufallsbild").style.display="none";}	/******Vorschau fuer Skulpturen-Seiten****************/function showRandThumbnail(n){if(location.href.indexOf("skulpturen")!="-1"||location.href.indexOf("kontakt")!="-1"||location.href.indexOf("vita")!="-1"||location.href.indexOf("zeichnungen")!="-1"||location.href.indexOf("dokumentation")!="-1"||location.href.indexOf("links")!="-1"||location.href.indexOf("impressum")!="-1")	{	selectedFolder=thisImage[0].src;	a=selectedFolder.lastIndexOf("pictures/");	b=selectedFolder.lastIndexOf("previews/");	selectedFolder="../pictures/"+selectedFolder.substring(a+9,b)+selectedFolder;	n=0;	}else	{	selectedFolder=themenBereiche[n];	n=Math.floor (Math.random() *(selectedFolder.length-1));	}showThumbnail(n,selectedFolder);}/*******************************************/function showThumbnail(n,selectedFolder){folderName=selectedFolder;	num=thisNumber[n];	a=thisText[n].indexOf("*");	b=thisText[n].indexOf("+");	thestring=thisText[n].substring(a+1,b);	a=thestring.indexOf(",");	imgHeight=thestring.substring(0,a);	imgWidth=thestring.substring(a+1);	imgW=imgWidth;	imgH=imgHeight;	availHeight=document.getElementById("Zufallsbild").offsetHeight-230;	/*if(window.innerHeight)availHeight=window.innerHeight-230;*/	imgHW="";		if(imgW>imgH)		{		imgWidth=200;		prozent=Math.round(imgWidth/(imgW/100));		imgHeight=Math.round((imgH/100)*prozent);		}	if(imgH>imgW)		{		imgHeight=200;		prozent=Math.round(imgHeight/(imgH/100));		imgWidth=Math.round((imgW/100)*prozent);		}	if(imgH==imgW)		{		imgHeight=200;		imgWidth=200;		}		imgHW="height="+imgHeight+" width="+imgWidth;	imgHeight=imgHeight+"px";	imgWidth=imgWidth+"px";	a=thisText[n].indexOf("+");	b=thisText[n].indexOf(" ");	/*mit Schlag */	document.getElementById("Zufallsbild").innerHTML="<span style='white-space:nowrap'><img src="+thisImage[n].src+" style='vertical-align:top;height:"+imgHeight+";width:"+imgWidth+"' alt='"+convertAlternate(thisText[n].substring(a+1))+"'/><img id='sh1' style='vertical-align:top;width:4px;height:"+imgHeight+"' src='images/S1b.gif' alt=' '/><\/span><br><span style='white-space:nowrap'><img id='sh2' style='vertical-align:top;width:"+imgWidth+";height:4px' src='images/S2b.gif' alt=' '/><img id='sh3' style='vertical-align:top;width:4px;height:4px' src='images/S3b.gif' alt=' '/><\/span><br/>";		/*onclick='showThumbImage(this.src,num)' ;cursor:pointer*/if(window.innerWidth)	ww=window.innerWidth;else	ww=document.getElementById("Bildfenster").offsetWidth;if(ww<900)	document.getElementById("Zufallsbild").style.display="none";}/******************************************/function hideText(){document.getElementById("infoText").innerHTML="";}var L_ctrl=1;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(){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="../pictures/"+imgSrc.substring(a+9,b)+imgName;c=imgName.indexOf("jpg");arrNum=(Number(imgName.substring(c-3,c-1)))-1;showImage(imgName,arrNum);}/**************************************/var typeArray=new Array();function writeThumbnails(pathType,num){typeArray=new Array();switch (pathType)	{	case "verschiedenes":	typeArray=verschiedenes;	break;	case "malerei":	typeArray=malerei;	break;	case "bronze":	typeArray=bronze;	break;	case "ytong":	typeArray=ytong;	break;	case "eisen":	typeArray=eisen;	break;	case "gips":	typeArray=gips;	break;	case "imFreien":	typeArray=imFreien;	break;	case "speckstein":	typeArray=speckstein;	}if(window.innerWidth)	{	itemNr=Math.round((window.innerWidth-500)/130);	AnzBer=window.innerHeight;	Seitenbreite=window.innerWidth+250;	}else	{		itemNr=Math.round((document.getElementById("Bildfenster").offsetWidth-500)/130);	AnzBer=document.getElementById("Bildfenster").offsetHeight;	Seitenbreite=document.getElementById("Bildfenster").offsetWidth+250;	}	if(document.getElementById("laden"))	{	document.getElementById("laden").style.left=Math.round(Seitenbreite/2);	document.getElementById("laden").style.display="block";	}lineCount=0;if(itemNr==2)imgTable="<table id='thumbnails' border='0' cellspacing='0' cellpadding='0'><tr>";elseimgTable="<table align='right' 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("+");	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;	imgWidth=imgWidth+"px";	imgHeight=imgHeight+"px";	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+"' style='cursor:pointer;text-align:"+t_align+";vertical-align:middle;padding-top:8px;padding-left:0px:padding-right:0px' onmouseover='window.status=showStatus();return true;' onmouseout='hideStatus();return true;'><span style='white-space:nowrap'><IMG id='I"+i+"' SRC="+imgSrc+" alt='"+convertAlternate(theFileString)+"' style='vertical-align:top;cursor:pointer;height:"+imgHeight+";width:"+imgWidth+"' onClick='javascript:showImage(themenBereiche["+num+"],"+i+");saveNumber("+i+")'><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)	imgTable=imgTable+"<td style='padding-right:15px;width:120px'>&nbsp;<\/td>";else	{	if(lineCount!=itemNr-1)		{		if(lineCount==itemNr-2)			imgTable=imgTable+"<td style='padding-right:15px;width:120px'>&nbsp;<\/td>";		else			imgTable=imgTable+"<td style='padding-right:25px;width:150px'>&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'><div style='text-align:center;width:"+imgWidth+"'>"+theFileString+"<\/div><\/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' style='text-align:right;width:"+imgWidth+"'><tr><td style='text-align:right'><div style='text-align:center;width:"+imgWidth+"'>"+theFileString+"<\/div><\/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'>"+theFileString+"<\/td>";		}		if(lineCount!=itemNr-1)		textTable=textTable+"<td><\/td>";	}img_Layout="<\/tr><tr>"+textTable+"<\/tr><\/table>";imgTable=imgTable+img_Layout;document.write(imgTable);if(navigator.appVersion.indexOf("MSIE")=="-1")	document.write("<div id='contentLink' style='font-size:12px;width:100%;text-align:right;display:none'><a class='topline' href='javascript:imageContent()'>[Seite bearbeiten]<\/a><\/div>");document.write("<iframe name='passwordCheck' id='passwordCheck' style='display:none'></iframe>");}function getPassword(){parent.passwordCheck.location.href="components/pw/pw.htm";}function imageContent(content){WWidth=1256;WHeight=743;x=Math.round(((screen.availWidth)/2) - (WWidth/2));	y=Math.round(((screen.availHeight)/2) - (WHeight/2));x=0;y=0;window.open("imageContent.php","Bearbeiten","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+WWidth+",height="+WHeight+",left="+x+",top="+y);}var selectedFile=0;function saveNumber(n){selectedFile=n;}/*********************************************************/function getCode(pathType){if(location.href.indexOf("VIOLA_JUERGENS")!="-1")	{	typeArray=new Array();	switch (pathType)	{	case "verschiedenes":	typeArray=verschiedenes;	break;	case "malerei":	typeArray=malerei;	break;	case "bronze":	typeArray=bronze;	break;	case "ytong":	typeArray=ytong;	break;	case "eisen":	typeArray=eisen;	break;	case "gips":	typeArray=gips;	break;	case "imFreien":	typeArray=imFreien;	break;	case "speckstein":	typeArray=speckstein;		}	var imgCode;	lineCount=0;	itemNr=5;	imgCode="<table align='right' width='99%' 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><IMG class='invisible' SRC='../images/transp.gif' WIDTH='10' HEIGHT='130' border='0' alt='Abstand'><\/td><td bgcolor='#FFFFFF' width='130' valign='middle' align='center' style='cursor:pointer'><a href='"+imgSrc1+"' target='new'><IMG class='marg' SRC='"+imgSrc2+"' border='0' alt="+altString+"><\/a><\/td>\n";		textTable=textTable+"<td><\/td><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){if(!selectedFile)thisFileNumber=0;elsethisFileNumber=selectedFile;	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(){	return false;}/**************Float-Menu**********************/function setMenu(){if(navigator.appVersion.indexOf("MSIE 6.0")!="-1")	{	document.getElementById("leftMenu").style.left=145;	navPos_Y=AnzBer-192;	}else	navPos_Y=AnzBer-188;if(!window.innerHeight)	scroll_Y=document.body.scrollTop;else	scroll_Y=window.pageYOffset;if(navPos_Y+scroll_Y>217)	document.getElementById("leftMenu").style.top=navPos_Y+scroll_Y;else	document.getElementById("leftMenu").style.top=217;if(document.getElementById("leftMenu").style.visibility=="hidden")	document.getElementById("leftMenu").style.visibility="visible";window.setTimeout("setMenu()",490);}/**************************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 (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 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;}/*********************************************************************************//*********************************************************************************/var theFile;var newWidth;var newHeight;var theScroll;/****************************************************************/function loadImage(){if(document.getElementById("Vorschautabelle").style.display!="none")	{	document.getElementById("mainWindow").style.display="none";	document.getElementById("fixedDiv").style.display="none";	document.getElementById("Zufallsbild").style.display="none";	document.getElementById("horizLine").style.display="none";	document.getElementById("imageWindow").style.visibility="hidden";	document.getElementById("imageWindow").style.display="block";	document.getElementById("slideShow").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='images/S1.gif' width='20' height="+newHeight+" alt='Schatten'><\/span><br><span style='white-space:nowrap'><img id='sh2' style='vertical-align:top' src='images/S2.gif' width="+newWidth+" height='20' alt='Schatten'><img id='sh3' style='vertical-align:top' src='images/S3.gif' width='20' height='20' alt='Schatten'><\/span>";WWidth=Number(newWidth);WHeight=Number(newHeight);window.scrollTo(0,0);document.body.style.overflow="hidden";}function resetMe(){	document.getElementById('imageWindow').style.display='none';document.getElementById('mainWindow').style.display='block';document.getElementById("infoTable").style.visibility="hidden";document.getElementById('fixedDiv').style.display="block";document.getElementById("Zufallsbild").style.display="block";document.getElementById("horizLine").style.display="block";document.getElementById("slideShow").style.display="none";document.getElementById("Vorschautabelle").style.display="block";if(window.innerHeight)	document.body.style.overflow='visible';else	document.body.style.overflow='auto';/*if(selectedFile==numb)*/	window.scrollTo(0,theScroll);/*elsesetTimeout("document.getElementById('B'+(numb)).scrollIntoView('true')",200);*/}/**************************************************************************/function answerLoading(){/*document.getElementById("frontImage").style.display="none";*/document.getElementById("Vorschautabelle").style.display="none";/*document.getElementById("thetop").scrollIntoView("true");*/document.body.style.overflow='hidden';document.getElementById("infoString").innerHTML=convertText(theInfoString);document.getElementById("infoTable").style.visibility="visible";document.getElementById("imageWindow").style.display="block";document.getElementById("imageWindow").style.visibility="visible";preloadNextImage();}/****************************************************************/function preloadNextImage(){selectedFile=numb;nb=numb+1;if(nb>fullLength-1)	nb=0;switch(docTitle)	{	case "bronze":	fileString=bronze[nb];	fullLength=bronze.length;	var textTitle="Bronze";	break;	case "malerei":	fileString=malerei[nb];	fullLength=malerei.length;	var textTitle="Malerei";	break;		case "eisen":	fileString=eisen[nb];	fullLength=eisen.length;	var textTitle="Eisen";	break;		case "gips":	fileString=gips[nb];	fullLength=gips.length;	var textTitle="Gips";	break;		case "ytong":	fileString=ytong[nb];	fullLength=ytong.length;	var textTitle="Ytong";	break;		case "imFreien":	fileString=imFreien[nb];	fullLength=imFreien.length;	var textTitle="Im Freien";	break;		case "speckstein":	fileString=speckstein[nb];	fullLength=speckstein.length;	var textTitle="Stein";	}a=fileString.indexOf("*");prelFile="pictures/"+docTitle+"/"+fileString.substring(0,a);document.getElementById("preload").src=prelFile;}/****************************************************************/function showImage(tt,nb){if(!window.innerHeight)	scroll_Y=document.body.scrollTop;else	scroll_Y=window.pageYOffset;theScroll=scroll_Y;numb=Number(nb);selectedFile=numb;switch(docTitle)	{	case "malerei":	fileString=malerei[numb];	fullLength=malerei.length;	var textTitle="<a class='topline' href='bronze.htm'><b style='letter-spacing:2px;font-family:Arial'>MALEREI<\/B><\/a>";		break;	case "bronze":	fileString=bronze[numb];	fullLength=bronze.length;	var textTitle="<a class='topline' href='bronze.htm'><b style='letter-spacing:2px;font-family:Arial'>BRONZE<\/B><\/a>";		break;		case "eisen":	fileString=eisen[numb];	fullLength=eisen.length;	var textTitle="<a class='topline' href='eisen.htm'><b style='letter-spacing:2px;font-family:Arial'>EISEN<\/B><\/a>";		break;		case "gips":	fileString=gips[numb];	fullLength=gips.length;	var textTitle="<a class='topline' href='gips.htm'><b style='letter-spacing:2px;font-family:Arial'>GIPS<\/B><\/a>";		break;		case "ytong":	fileString=ytong[numb];	fullLength=ytong.length;	var textTitle="<a class='topline' href='ytong.htm'><b style='letter-spacing:2px;font-family:Arial'>YTONG<\/B><\/a>";		break;		case "imFreien":	fileString=imFreien[numb];	fullLength=imFreien.length;	var textTitle="<a class='topline' href='imfreien.htm'><b style='letter-spacing:2px;font-family:Arial'>IM FREIEN<\/B><\/a>";		break;		case "speckstein":	fileString=speckstein[numb];	fullLength=speckstein.length;	if(numb<8)		var textTitle="<a class='topline' href='speckstein.htm'><b style='letter-spacing:2px;font-family:Arial'>ALABASTER<\/B><\/a>";		else		var textTitle="<a class='topline' href='speckstein.htm'><b style='letter-spacing:2px;font-family:Arial'>SPECKSTEIN<\/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(window.innerHeight)	WindowWidth=window.innerWidth-460;else	WindowWidth=document.getElementById("Bildfenster").offsetWidth-460;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 setSize(){if(navigator.appVersion.indexOf("MSIE 6")!="-1")	{	x=document.getElementById("Bildfenster").offsetWidth-464;	y=document.getElementById("Bildfenster").offsetHeight-100;	if(document.getElementById("horizLine"))		document.getElementById("horizLine").style.width=x+"px";	document.getElementById("verticalLine").style.height=y+"px";	document.getElementById("verticalLine").style.top="51px";	}}
