function startFrontImage(){getRandImage();var avWidth;var anzBer;if(window.innerWidth)	{	avWidth=window.innerWidth;	anzBer=window.innerHeight;	}else	{	avWidth=document.getElementById("myWindow").offsetWidth;	anzBer=document.getElementById("myWindow").offsetHeight;	}if(avWidth>1360)	window.resizeTo(1360,950);if(avWidth>900)	{	document.getElementById("fadeImage"+z).innerHTML="<span style='white-space:nowrap'><img id='frontImg' name='indexImage' style='vertical-align:top;text-align:right;padding-top:0px;visibility:hidden' src="+slidePict+" width="+randNewWidth+" height="+randNewHeight+" onClick='nextImg();' alt='' onLoad='showAllImages()'><img id='sh1' style='visibility:hidden;vertical-align:top' src='../layout/S1b.gif' width='8' height="+randNewHeight+" alt='Schatten' onLoad='showAllImages()'><\/span><br/><span style='white-space:nowrap'><img id='sh2' style='visibility:hidden;vertical-align:top' src='../layout/S2b.gif' width="+randNewWidth+" height='8' alt='Schatten' onLoad='showAllImages()'><img id='sh3' style='visibility:hidden;vertical-align:top' src='../layout/S3b.gif' width='8' height='8' alt='Schatten' onLoad='showAllImages()'><\/span><div id='imgText' style='letter-spacing:0px;font-size:10px;padding-right:8px;padding-bottom:12px;padding-top:0px;vertical-align:bottom;text-align:right;white-space:normal;width:"+randNewWidth+"'>"+imageString+"<\/div>";	autoPlay=setTimeout("nextImage()",10000);	}else	{	document.getElementById("frontImage").style.display="none";	document.getElementById("text1").style.display="block";	}}/*******************************************************************************/function nextImg(){if(playCtrl==1)	{	clearTimeout(autoPlay);	playCtrl=0;	nextImage();	}else	nextImage();}var autoPlay;var playCtrl=1;var z=1;;var shadow = new Array(3)shadow[0] = new Image(); shadow[0].src="../layout/S1b.gif";shadow[1] = new Image(); shadow[1].src="../layout/S2b.gif";shadow[2] = new Image(); shadow[2].src="../layout/S3b.gif";var pictType = new Array ("WL1","WL2","WL3");var loadCtrl=1;/*******************************************************************************/function updateImage(){nh=Number(randNewHeight.substring(0,randNewHeight.length-2));document.getElementById("frontImage").style.height=(nh+60)+"px";loadCtrl=0;getRandImage();document.images[document.images.length-1].src=slidePict;}/*******************************************************************************/function nextImage(){fade('fadeImage'+z);if(z==1)	z=2;else	z=1;fade('fadeImage'+z);document.getElementById('fadeImage'+z).innerHTML="<span style='white-space:nowrap'><img name='indexImage' src="+slidePict+" width="+randNewWidth+" height="+randNewHeight+" onClick='nextImg()' alt='' style='vertical-align:top'><img src="+shadow[0].src+" width='8' height="+randNewHeight+" alt='Schatten' style='vertical-align:top'><\/span><br><span style='white-space:nowrap'><img src="+shadow[1].src+" width="+randNewWidth+" height='8' alt='Schatten' style='vertical-align:top'><img src="+shadow[2].src+" width='8' height='8' alt='Schatten' style='vertical-align:top'><\/span><div id='imgText' style='font-size:10px;letter-spacing:0px;margin-right:8px;padding-bottom:12px;padding-top:0px;vertical-align:bottom;text-align:right;white-space:normal;width:350px'>"+imageString+"<\/div>"updateImage();if(playCtrl==1)	autoPlay=setTimeout("nextImage()",10000);}/*******************************************************************************/var WindowHeight;var randNewWidth;var randNewHeight;/*******************************************************************************/function getRandImage(){k=Math.floor (Math.random() *pictType.length);docTitle=pictType[k];switch(docTitle)	{	case "WL1":	Anzahl=WL1.length;	i=Math.floor (Math.random() * Anzahl);	filestring=WL1[i];	break;	case "WL2":	Anzahl=WL2.length;	i=Math.floor (Math.random() * Anzahl);	filestring=WL2[i];	break;	case "WL3":	Anzahl=WL3.length;	i=Math.floor (Math.random() * Anzahl);	filestring=WL3[i];	}slidePict=docTitle+"/"+filestring.substring(0,7);a=filestring.indexOf("]");imageString= convertText(filestring.substring(a+1));if(imageString.substring(2,3)=="(")	imageString=docTitle+imageString+" - Digitalfoto";a=filestring.indexOf(",");b=filestring.indexOf("+");origHeight=filestring.substring(8,a);origWidth=filestring.substring(a+1,b);randNewWidth=origWidth;randNewHeight=origHeight;if((Number(origWidth)-Number(origHeight))<200)	getRandImage();else{WindowWidth=350;WindowHeight=350;if(window.innerWidth)	WindowWidth=(Math.round(window.innerWidth/4));else	WindowWidth=(Math.round(document.getElementById("myWindow").offsetWidth/4));document.getElementById("frontImage").style.width=WindowWidth+"px";if(navigator.appVersion.indexOf("MSIE 6")!="-1")	document.getElementById("frontImage").style.height=(document.getElementById("theText").offsetHeight)+300;randNewWidth=WindowWidth;randNewHeight=WindowHeight;prozent=Math.round(randNewWidth/(origWidth/100));randNewHeight=Math.round((origHeight/100)*prozent);randNewHeight=randNewHeight+"px";randNewWidth=randNewWidth+"px";}}/***************************************************************************/function convertText(theText){for(i=0;i < theText.length;i++)		{		if(theText.substring(i,i+4) == "<BR>")        theText = theText.substring(0,i)+", "+theText.substring(i+4);		}/*a=theText.lastIndexOf("<\/b>");theText=theText.substring(0,a+4)+"<br>"+theText.substring(a+5);if(theText.indexOf("(Privat")!="-1")	{	a=theText.indexOf(" (Privat");	theText=theText.substring(0,a);	}*//*a=theText.lastIndexOf("<\/b>");b=theText.lastIndexOf(",");theText=theText.substring(0,a+4)+theText.substring(a+5,b);*/return theText;}/**************************************************************************/