var frame_Control;
var auto_Change;
var d_elay;
var info_Control;
var bg_Control;
var start_Number="";
var selectedFile=1;
var L_ctrl=0;
var Anzahl;
function glideDown(wert)
{
flaeche=951*wert;
if(window.innerWidth)
	divW=window.innerWidth-320;
else
	divW=document.getElementById("myWindow").offsetWidth-320;
divH=flaeche/divW;

hy=hy+3;
document.getElementById("info").style.height=hy+"px";
if(hy<divH)
	setTimeout("glideDown("+wert+")",1);
}
function glideUp()
{
hy=hy-3;
document.getElementById("info").style.height=hy+"px";
if(hy>0)
	setTimeout("glideUp()",1);
else
	{
	hy=0;
	document.getElementById("info").style.display="none";
	}
}

function checkIndex()
{
if(location.href.indexOf("?")!="-1")
	{
	a=location.href.indexOf("?");
	m=location.href.substring(a+1);

	if(m>=0)
		start(m);
	else
		{
		while(m.indexOf("%20")!="-1")
			{
			p=m.indexOf("%20");
 			m = m.substring(0,p)+" "+m.substring(p+3);
			}
			while(m.indexOf("%A0")!="-1")
			{
			p=m.indexOf("%A0");
 			m = m.substring(0,p)+"&nbsp;"+m.substring(p+3);
			}
		m=unescape(m);
		txtStrg=document.getElementById("theText").innerHTML;
		var Ergebnis = txtStrg.indexOf(m);
		if(Ergebnis!="-1")
			{
			document.getElementById("theText").style.display="block";
			newTxtString="";
			while(txtStrg.indexOf(m)!="-1")
				{
				a=txtStrg.indexOf(m);
				newTxtString=newTxtString+txtStrg.substring(0,a)+"<span id='result' style='background-color:#ccccff'>"+m+"</span>";
				txtStrg=txtStrg.substring(a+m.length);
				}
			document.getElementById("theText").innerHTML=newTxtString+txtStrg;
			newPosFactor=0;
			lgth=document.getElementsByTagName("tr").length;
			for(i=0;i<lgth;i++)
				{
				if(document.getElementsByTagName("tr")[i].innerHTML.indexOf("result")!="-1")
					{
					newPosFactor=(i);
					i=1000;
					}
				}
		
			window.scrollTo(0,newPosFactor*84);
			}
		}

	}
}
function showMe()
{
document.getElementById("VorschauTabelle").style.visibility="visible";
/*document.getElementById("laden").style.display="none";*/
}
/********************************/
function changeBgColor(n)
{
thisID="B"+n;
if(n!=selectedFile)
document.getElementById(thisID).style.borderColor="#C2C2C2";
}
/**********************************/
function resetBgColor(n)
{
thisID="B"+n;
if(selectedFile!=n)
document.getElementById(thisID).style.borderColor="#FFFFFF";
}
/****************************************************************/
function setDivBg(n)
{
selectedFile=Number(n);
selectBorder(selectedFile);
}
/**************************************************************************************/
function showSketch()
{
numb=selectedFile;
if(numb==1000)numb=1;
window.open("sk_frame.htm","Skizzenmappe","fullscreen=yes,left=0,top=0,scrollbars=no");	
}
/******************************************************************/
function setFocus()
{
if(Suchoption.closed == false)
	{
	Suchoption.focus();
	focussierer=window.setTimeout("setFocus()",100);
	}
else
	window.clearTimeout(focussierer);
}	
/**********************************************/
/*function openSlideOptions()
{
theWidth=420;
theHeight=310;
x=Math.round(((screen.availWidth)/2) - (theWidth/2));
y=Math.round(((screen.availHeight)/2) - ((theHeight)/2));

Suchoption=window.open("p_selectedSlidOptions.htm","Optionen","Height="+theHeight+",WIDTH="+theWidth+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left="+x+",top="+y);

if(navigator.platform.indexOf("Mac")!="-1") setFocus();
}*/
/**************************************************************************************/
function showSlide()
{
if(start_Number=="")
	{
	realPictNumb=selectedFile;
	if(realPictNumb==0)
		realPictNumb=1;
	}
else
	realPictNumb=start_Number;

WWidth=screen.availWidth;
WHeight=screen.availHeight;
if(navigator.appVersion.indexOf("MSIE")=="-1")
	{
	if(bg_Control=="")
		window.open('p_slidFr.htm','Diaschau',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+WWidth+",height="+WHeight+",left=0,top=0");
	else
		window.open('p_slidFr_b.htm','Diaschau',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+WWidth+",height="+WHeight+",left=0,top=0");
	}
else
	window.open('p_slidFr2.htm','Diaschau','fullscreen=yes,resizable=no,left=0,top=0');
}
/******************************************************************/
var newStatus = new Array("Diaschau",
"Kleine Formate 2010 ["+(SK13.length-1)+"]",
"Suite Alsacienne 2010 ["+(SK12.length-1)+"]",
"Kleine Formate 2009 ["+(SK11.length-1)+"]",
"Kleine Formate 2008 ["+(SK10.length-1)+"]",
"Kleine Formate 2007 ["+(SK9.length-1)+"]",
"Kleine Formate 2006 ["+(SK6.length-1)+"]",
"Kleine Formate 2005 ["+(SK4.length-1)+"]",
"Kleine Formate 2004 ["+(SK3.length-1)+"]",
"Kleine Formate 2003 ["+(SK2.length-1)+"]",
"Kleine Formate 1988-98 ["+(SK1.length-1)+"]",
"Serielle Bilder 1987-81 ["+(SK19.length-1)+"]",
"Muri della Maremma ["+(SK7.length-1)+"]",
"Fotografik ["+(SK5.length-1)+"]",
"Computergrafik ["+(SK8.length-1)+"]",
"Zeichnungen ["+(SK14.length-1)+"]",
"Objekte ["+(SK17.length-1)+"]"
);
/***************************************************************/
function selectBorder(p)
{
if(Number(p))
{
for(i=1;i<Anzahl+1;i++)
	{
	document.getElementById("I"+i).style.borderColor="#B1B1B1";
	document.getElementById("I"+i).style.borderLeftColor="#eee";
	document.getElementById("I"+i).style.borderTopColor="#eee";
	}
document.getElementById("I"+p).style.borderColor='#FF0000';
document.getElementById("I"+p).style.borderStyle='solid';
selectedFile=p;
}
}
/**********************************************/

function loadImgThumbs()
{
Anzahl=picture.length-1;

lineCount=0;
if(window.innerHeight)
	Seitenbreite=Math.round(window.innerWidth);
else
	Seitenbreite=document.getElementById("myWindow").offsetWidth;

/*document.getElementById("laden").style.left=Math.round(Seitenbreite/2);
document.getElementById("laden").style.display="block";*/

Seitenbreite=Seitenbreite-200;
	
Bildbreite=150;
itemNr=Math.round(Seitenbreite/Bildbreite);

imgTable="<table id='VorschauTabelle' style='visibility:hidden;padding-top:10px;table-layout:fixed' width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
textTable="";

for (i=1;i<Anzahl+1;i++)
	{
	if(i<10)
		f_num="00"+i;
	else
		f_num="0"+i;
	
	txtSrc=picture[i];
	imgSrc=docTitle+"/thumbnails/"+f_num+".jpg";
	
	a=txtSrc.indexOf("*");
	b=txtSrc.indexOf("+");

	sizeString=txtSrc;
	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);
		}

	shadH=(imgHeight+2)+"px";
	shadW=(imgWidth+2)+"px";
	
	imgHeight=imgHeight+"px";
	imgWidth=imgWidth+"px";

	lineCount=lineCount+1;
	if(lineCount==itemNr)
		{
		lineCount=1;
		imgTable=imgTable+"<\/tr><tr>"+textTable;
		textTable="";
		breakControl="<\/tr><tr>";
		}
	else
		breakControl="";
	
		v=txtSrc.indexOf("+");
	theFileString=txtSrc.substring(v+1);
	
	d=theFileString.indexOf("</B>");
	theFileString=theFileString.substring(0,d);
	e=theFileString.indexOf("]");
	theFileString=theFileString.substring(0,e+1)+"<br>"+theFileString.substring(e+1);

	
	
	
	if(picture[i].indexOf("Papierobjekt")=="-1")

imgTable=imgTable+breakControl+"<td style='vertical-align:middle;text-align:center;background-color:#FFFFFF;width:114px;white-space:nowrap' id='B"+i+"' bgcolor='#FFFFFF' onClick='start("+i+")'><span style='white-space:nowrap;vertical-align:top'><img id='I"+i+"' name='thumb' src="+imgSrc+" style='width:"+imgWidth+";height:"+imgHeight+";cursor:pointer;vertical-align:top;border:solid 1px;border-color:#B1B1B1;border-left-color:#eee;border-top-color:#eee' alt='"+convertAlternate(theFileString)+"'><img src='../layout/S1b.gif' style='width:6px;height:"+shadH+";vertical-align:top' alt=''><\/span><br/><span style='white-space:nowrap'><img src='../layout/S2b.gif' style='width:"+shadW+";height:6px;vertical-align:top' alt=''><img src='../layout/S3b.gif' style='width:6px;height:6px;vertical-align:top' alt=''><\/span><\/td>";

	else

imgTable=imgTable+breakControl+"<td style='vertical-align:middle;text-align:center;background-color:#FFFFFF;width:114px;white-space:nowrap' id='B"+i+"' bgcolor='#FFFFFF' onClick='start("+i+")'><img id='I"+i+"' name='thumb' src="+imgSrc+" style='width:"+imgWidth+";height:"+imgHeight+";cursor:pointer;vertical-align:top;border:0px' alt='"+convertAlternate(theFileString)+"'><\/td>";

	if(lineCount!=itemNr-1)
		imgTable=imgTable+"<td>&nbsp;<\/td>";

	
	
	textTable=textTable+"<td width='114' align='center' id='T"+i+"' class='Bildunterschrift'>"+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 numb;

/*********************** HTML-Code fuer noscript-Bereich erstellen ************************************/
var imgCode;
function writeCode()
{	
if(location.href.indexOf("TL")!="-1")
	{
	lineCount=0;
	itemNr=5;

	imageTable="<table><tr><td style='vertical-align:top'>\n";


	Anzahl=picture.length-1;
	

	for(i=1;i<Anzahl+1;++i)
		{
		titleString=picture[i];
		
		a=titleString.indexOf("+");	
		titleString="'"+titleString.substring(a+1)+"'";

		for(k=0;k<titleString.length;k++)
		{
		if(titleString.substring(k,k+4) == "<BR>")
        	titleString = titleString.substring(0,k)+", "+titleString.substring(k+4);
		if(titleString.substring(k,k+3) == "<B>")
        	titleString = titleString.substring(0,k)+titleString.substring(k+3);
		if(titleString.substring(k,k+4) == "<\/B>")
        	titleString = titleString.substring(0,k)+titleString.substring(k+4);
		if(titleString.substring(k,k+4) == "<BR>")
        	titleString = titleString.substring(0,k)+", "+titleString.substring(k+4);
		}
		if(i<10)num="00"+i;
		else num="0"+i;
		File = "'"+docTitle+"/thumbnails/"+num+".jpg'";
		imgSrc = docTitle+"/"+num+".jpg";

		imageTable=imageTable+"<a href='"+imgSrc+"'><img src="+File + " alt='' title="+titleString+" style='margin-right:20px;margin-bottom:20px;border:0px' /><\/a><span style='display:none'>"+titleString+"<\/span>\n";	
		}
	imgCode=imageTable+"<\/td><\/tr><\/table>";
	window.open("noscript.htm","Code");
	}
}
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);
		}
	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);
	}*/
/*a=text.lastIndexOf("<BR>");
text=text.substring(0,a)+", "+text.substring(a+4);*/

return text;
}
/*********************************************************************************/
var shadows = new Array(3)
shadows[0] = new Image(); shadows[0].src="../layout/S1.gif";
shadows[1] = new Image(); shadows[1].src="../layout/S2.gif";
shadows[2] = new Image(); shadows[2].src="../layout/S3.gif";
/*********************************************************************************/
var theFile;
var newWidth;
var newHeight;
var theScroll;
/****************************************************************/
var n;
function start(nb)
{
n=1;
if(navigator.appVersion.indexOf("MSIE")=="-1")
	{
	fade("singleImage1");
	fade("mainWindow");
	fade("titleMenue");
	fade("horizLine");
	setTimeout("showImage("+nb+")",800);
	}
else
	showImage(nb);
}

function goOn()
{
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";
	}
if(theInfoString.indexOf("je ")!="-1"||theInfoString.indexOf("Papierobjekt")!="-1")
	document.getElementById("singleImage").innerHTML="<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;margin-right:16px'>";
else
	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 loadImage()
{
if(navigator.appVersion.indexOf("MSIE")=="-1")
	fade("infoTable");

if(theInfoString.indexOf("Materialcollage")!="-1"||theInfoString.indexOf("je ")!="-1"||theInfoString.indexOf("Papierobjekt")!="-1")
	document.getElementById("singleImage"+n).innerHTML="<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;margin-right:16px'>";
else
	document.getElementById("singleImage"+n).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);

/*if(theInfoString.indexOf("objekt")!="-1"||theInfoString.indexOf("Objekt")!="-1"||theInfoString.indexOf("Papierobjekt")!="-1")
	document.getElementById("singleImage"+n).style.right="56px";
else
	document.getElementById("singleImage"+n).style.right="50px";*/

if(theInfoString.indexOf("Papierobjekt")!="-1")
	{
	xMargin=(WWidth/100)*8;
	if(theFile.indexOf("006.jpg")!="-1")
		xMargin=(WWidth/100)*5;
	if(theFile.indexOf("007.jpg")!="-1")
		xMargin=(WWidth/100)*5;
	if(theFile.indexOf("008.jpg")!="-1")
		xMargin=(WWidth/100)*4;
	if(theFile.indexOf("009.jpg")!="-1")
		xMargin=(WWidth/100)*2.5;
		
	document.getElementById("singleImage"+n).style.right=(50-xMargin)+"px";
	}
else
	document.getElementById("singleImage"+n).style.right="50px";
}
function resetMe()
{	
selectBorder(numb);
if(window.innerHeight)
	document.body.style.overflow='visible';
else
	document.getElementById("mainWindow").style.overflow='auto';

document.getElementById('imageWindow').style.display="none";
document.getElementById("infoTable").style.visibility="hidden";
if(navigator.appVersion.indexOf("MSIE")=="-1")
{
fade("mainWindow");
fade("titleMenue");
fade("horizLine");

if(n==1)
	fade("singleImage1");
else
	fade("singleImage2");
}
document.getElementById("singleImage1").innerHTML="";
document.getElementById("singleImage2").innerHTML="";
document.getElementById("mainWindow").style.display="block";
document.getElementById("titleMenue").style.display="block";
document.getElementById("horizLine").style.display="block";

if(navigator.appName.indexOf("Explorer")!="-1")
	document.getElementById("Diaschau").style.display="none";

window.scrollTo(0,theScroll);
}
/**************************************************************************/
function answerLoading()
{
document.body.style.overflow='hidden';
document.getElementById("mainWindow").style.display="none";
document.getElementById("titleMenue").style.display="none";
document.getElementById("horizLine").style.display="none";

if(navigator.appName.indexOf("Explorer")=="-1")
	document.getElementById("infoString").style.width=newWidth;
if(navigator.appVersion.indexOf("MSIE 7")!="-1")
	document.getElementById("infoString").style.width=newWidth;

document.getElementById("infoString").innerHTML=convertText(theInfoString);
infoPos=180+Number(newHeight);
document.getElementById("infoString").style.top=infoPos+"px";
document.getElementById("infoTable").style.visibility="visible";
document.getElementById("imageWindow").style.display="block";
document.getElementById("imageWindow").style.visibility="visible";
if(navigator.appVersion.indexOf("MSIE")=="-1")
{
if(n==2)
	{

	fade("singleImage2");
	setTimeout("fade('singleImage1')",0);
	n=1;

	}
else
	{

	fade("singleImage1");
	setTimeout("fade('singleImage2')",0);
	n=2;
	}
fade("infoTable");
}

if(navigator.appName.indexOf("Explorer")!="-1")
	document.getElementById("Diaschau").style.display="none";
if(navigator.appName.indexOf("Explorer")!="-1"&&AnzBer>662)
	{
	document.getElementById("Diaschau").style.display="block";
	document.getElementById("Diaschau").style.position="absolute";
	document.getElementById("Diaschau").style.left=119;
	document.getElementById("Diaschau").style.bottom=50;
	}
preloadNextImage();
}
/****************************************************************/
function preloadNextImage()
{
nb=numb+1;
if(nb>fullLength-1)
	nb=0;

fileString=picture[nb];
fullLength=picture.length-1;

a=fileString.indexOf("*");
prelFile=docTitle+"/"+fileString.substring(0,a);
document.images[document.images.length-1].src=prelFile;
}
/****************************************************************/
var textTitle;
function showImage(nb)
{
if(!window.innerHeight)
	scroll_Y=document.body.scrollTop;
else
	scroll_Y=window.pageYOffset;

theScroll=scroll_Y;

window.scrollTo(0,0);

numb=Number(nb);
selectedFile=numb;

fileString=picture[numb];
fullLength=picture.length-1;

switch(docTitle)
	{
	case "SK1":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK1.htm'>KLEINE FORMATE&nbsp;&nbsp;1999-1988<\/a><\/B>";
	break;
	case "SK2":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK2.htm'>KLEINE FORMATE&nbsp;&nbsp;2003<\/a><\/B>";
	break;
	case "SK3":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK3.htm'>KLEINE FORMATE&nbsp;&nbsp;2004<\/a><\/B>";
	break;
	case "SK4":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK4.htm'>KLEINE FORMATE&nbsp;&nbsp;2005<\/a><\/B>";
	break;
	case "SK5":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK5.htm'>FOTOGRAFIK&nbsp;&nbsp;1974-1985<\/a><\/B>";
	break;
	case "SK15":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK15.htm'>FOTOGRAFIK&nbsp;II&nbsp;2011<\/a><\/B>";
	break;
	case "SK16":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK16.htm'>FOTOGRAFIK&nbsp;III&nbsp;2011<\/a><\/B>";
	break;
	case "SK6":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK6.htm'>KLEINE FORMATE&nbsp;&nbsp;2006<\/a><\/B>";
	break;
	case "SK7":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK7.htm'>MURI DELLA MAREMMA&nbsp;&nbsp;2004<\/a><\/B>";
	break;
	case "SK8":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK8.htm'>COMPUTERGRAFIK&nbsp;&nbsp;1994-2004<\/a><\/B>";
	break;
	case "SK9":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK9.htm'>KLEINE FORMATE&nbsp;&nbsp;2007<\/a><\/B>";
	break;
	case "SK10":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK10.htm'>KLEINE FORMATE&nbsp;&nbsp;2008<\/a><\/B>";
	break;
	case "SK11":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK11.htm'>KLEINE FORMATE&nbsp;&nbsp;2009<\/a><\/B>";
	break;
	case "SK12":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK12.htm'>&bdquo;SUITE ALSACIENNE&rdquo;&nbsp;&nbsp;2010<\/a><\/B>";
	break;
	case "SK13":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK13.htm'>KLEINE FORMATE&nbsp;&nbsp;2010<\/a><\/B>";
	break;
	case "SK14":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK14.htm'>ZEICHNUNGEN<\/a><\/B>";
	break;
	case "SK17":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK17.htm'>MALEREIOBJEKTE 2011<\/a><\/B>";
	break;
	case "SK18":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK18.htm'>OBJEKTE 2006 - 1971<\/a><\/B>";
	break;
	case "SK19":
	textTitle="<B class='mainHeader'><a class='A2' href='malerei_SK19.htm'>SERIELLE BILDER 1987 - 1981<\/a><\/B>";
	}
a=fileString.indexOf("*");
theFile=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)
	num=1;
showImage(num);
}
/***********************************************/
function prev()
{

num=numb;
num--;
if(num<1)
	num=fullLength;
showImage(num);
}

