var Seitenbreite=0;
var auto_Change;
var d_elay;
var info_Control;
var bg_Control;
var start_Number="";
var selectedFile=0;
var L_ctrl=0;
function showMe()
{
document.getElementById("Serie1").style.visibility="visible";
/*document.getElementById("laden").style.display="none";*/
}
/******************************************************************/
function linkStatText(num)
{
thetext=newStatus[num];
setTimeout("window.status=thetext;",0);
return true;
}
/******************************************************************/
var newStatus = new Array("Diaschau-Einstellungen",
"Reflexes ["+(Reflexes.length)+"]",
"Stills ["+(Stills.length)+"]",
"Shapes ["+(Shapes.length)+"]",
"Walls ["+(Walls.length)+"]",
"",
"SW - Fotos ["+(SW.length)+"]",
"Still Video ["+(RS.length)+"]",
"New York ["+(NYC.length)+"]"
);
/***************************************************************/
function selectBorder(n)
{
if(Number(n))
{
for(i=0;i<Anzahl;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"+n).style.borderColor='#FF0000';
document.getElementById("I"+n).style.borderStyle='solid';
selectedFile=n;
}
}
/**************************************************************************************/
function showCat(type)
{
numb=selectedFile+1;
window.open("p_frame.htm?"+type,"Malerei","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,left=0,top=0,fullscreen=yes,scrollbars=no");	
}
/******************************************************************/
function setFocus()
{
if(Suchoption.closed == false)
	{
	Suchoption.focus();
	focussierer=window.setTimeout("setFocus()",100);
	}
else
	window.clearTimeout(focussierer);
}	
/**********************************************/
function openSlideOptions()
{
theWidth=420;
theHeight=290;
x=Math.round(((screen.availWidth)/2) - (theWidth/2));
y=Math.round(((screen.availHeight)/2) - ((theHeight)/2));

Suchoption=window.open("f_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+1;
	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');
}
/*************************************************************************************/
function loadImgThumbs(xx)
{

/*switch(docTitle)
	{
	case "Reflexes":
	Anzahl=Reflexes.length;
	break;
	case "Stills":
	Anzahl=Stills.length;
	break;
	case "Shapes":
	Anzahl=Shapes.length;
	break;
	case "Walls":
	Anzahl=Walls.length;
	break;
	case "SW":
	Anzahl=SW.length;
	break;
	case "RS":
	Anzahl=RS.length;
	break;
	case "NYC":
	Anzahl=NYC.length;
	}*/
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 style='padding-top:10px;table-layout:fixed' width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";

textTable="";

Zaehler=0;
if(docTitle!="RS"&&docTitle!="NYC")
	getSerialData(xx);

for (i=Zaehler;i<Anzahl;i++)
	{
	switch(docTitle)
	{
	case "Reflexes":
	fullSrc=Reflexes[i];
	txtSrc=Reflexes[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc="Reflexes/thumbnails/"+fullSrc.substring(0,a);
	
	break;
	case "Stills":
	fullSrc=Stills[i];
	txtSrc=Stills[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc="Stills/thumbnails/"+fullSrc.substring(0,a);
	break;
	case "Shapes":
	fullSrc=Shapes[i];
	txtSrc=Shapes[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc="Shapes/thumbnails/"+fullSrc.substring(0,a);
	break;
	case "Walls":
	fullSrc=Walls[i];
	txtSrc=Walls[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc="Walls/thumbnails/"+fullSrc.substring(0,a);
	break;	
	case "SW":
	fullSrc=SW[i];
	txtSrc=SW[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc="SW/thumbnails/"+fullSrc.substring(0,a);
	break;		
	case "RS":
	fullSrc=RS[i];
	txtSrc=RS[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc="RS/thumbnails/"+fullSrc.substring(0,a);
	break;		
	case "NYC":
	fullSrc=NYC[i];
	txtSrc=NYC[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc="NYC/thumbnails/"+fullSrc.substring(0,a);
	}
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");

	sizeString=fullSrc;
	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="";
	
	
	b=txtSrc.indexOf("+");
	theFileString=txtSrc.substring(b+1);
	c=theFileString.indexOf(" ");	
	
	if(docTitle=="NYC")
	{
	d=theFileString.indexOf("<BR>");
	theFileString=theFileString.substring(0,d);
	/*e=theFileString.indexOf("]");
	theFileString=theFileString.substring(0,e+1)+"<br>"+theFileString.substring(e+1);*/
	}
	
	/*imgTable=imgTable+breakControl+"<td width='114' align='center' class='imgborder' id='B"+i+"' bgcolor='#FFFFFF' onClick='javascript:start("+i+")' onmouseup='selectBorder("+i+")'><span style='white-space:nowrap'><IMG id='I"+i+"' name='thumb' SRC="+imgSrc+" border='1' alt='"+convertAlternate(theFileString)+"' style='cursor:pointer;border-color:#B1B1B1;border-style:none' "+imgHW+"><img src='../layout/S1b.gif' width='6' height="+imgHeight+" alt='Schatten'><\/span><br><span style='white-space:nowrap'><img src='../layout/S2b.gif' width="+imgWidth+" height='6' alt='Schatten'><img src='../layout/S3b.gif' width='6' height='6' alt='Schatten'><\/span><\/td>";*/

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>";

	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);
}


function setShadows()
{
for (i=0;i<document.images.length;i++)
		{
		if(document.images[i].name=="thumb")
			{
			a=document.images[i].height;
			b=document.images[i].width;
			document.images[i+1].height=a;
			document.images[i+1].width=6;
			document.images[i+2].width=b;
			document.images[i+2].height=6;
			document.images[i+3].height=6;
			document.images[i+3].width=6;
			}
		}
}
var numb;
/****************************************************************/
function showSingleImage(nb)
{
numb=Number(nb);
switch(docTitle)
	{
	case "Reflexes":
	windName="Reflexes (2001-2006)";	
	fileString=Reflexes[numb];
	fullLength=Reflexes.length;
	break;
	case "Stills":
	windName="Stills (2001-2006)";	
	fileString=Stills[numb];
	fullLength=Stills.length;
	break;
	case "Shapes":
	windName="Shapes (2001-2006)";	
	fileString=Shapes[numb];
	fullLength=Shapes.length;
	break;
	case "Walls":
	windName="Walls (2002)";	
	fileString=Walls[numb];
	fullLength=Walls.length;
	break;
	case "SW":
	windName="SW-Fotos (1968-1980)";	
	fileString=SW[numb];
	fullLength=SW.length;
	break;
	case "RS":
	windName="Still Video (1994)";	
	fullLength=RS.length;
	fileString=RS[numb];
	break;
	case "NYC":
	windName="New York (2008 - 2010)";	
	fullLength=NYC.length;
	fileString=NYC[numb];
	}
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);

newWidth=origWidth;
newHeight=origHeight;

WindoWWidth=screen.availWidth-260;
WindowHeight=screen.availHeight-260;

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);
	}

WWidth=Number(newWidth)+100;
WHeight=Number(newHeight)+130;

x=Math.round(((screen.availWidth)/2) - (WWidth/2));	
y=Math.round(((screen.availHeight)/2) - (WHeight/2));
windN="Window"+numb;;
window.open('ImgWind.htm',windN,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+WWidth+',height='+WHeight+',left='+x+',top='+y);
}
/**************************************************************************************/
/*********************** 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";

	switch(docTitle)
	{
	case "Reflexes":
	Anzahl=Reflexes.length;
	break;
	case "Reflexes_mov":
	Anzahl=Reflexes_mov.length;
	break;
	case "Stills":
	Anzahl=Stills.length;
	break;
	case "Shapes":
	Anzahl=Shapes.length;
	break;
	case "Walls":
	Anzahl=Walls.length;
	break;
	case "SW":
	Anzahl=SW.length;
	break;
	case "RS":
	Anzahl=RS.length;
	break;
	case "NYC":
	Anzahl=NYC.length;
	}

	for(i=1;i<Anzahl+1;++i)
		{

		switch(docTitle)
			{
			case "Reflexes":
			titleString=Reflexes[i-1];
			break;
			case "Reflexes_mov":
			titleString=Reflexes_mov[i-1];
			break;
			case "Stills":
			titleString=Stills[i-1];
			break;
			case "Shapes":
			titleString=Shapes[i-1];
			break;
			case "Walls":
			titleString=Walls[i-1];
			break;
			case "NewYork":
			titleString=NewYork[i-1];
			break;
			case "SW":
			titleString=SW[i-1];
			break;
			case "RS":
			titleString=RS[i-1];
			break;
			case "NYC":
			titleString=NYC[i-1];
			}	

		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);
		}
		m=titleString.indexOf("(");
		/*switch(docTitle)
			{
			case "RS":
			titleString=titleString.substring(0,titleString.length-1)+" (Reflexive Surface)'";
			break;
			case "SW":
			titleString=titleString.substring(0,m)+"Schwarzwei&szlig;-Fotos "+titleString.substring(m);
			break;
			default:
			titleString=titleString.substring(0,m)+docTitle+" "+titleString.substring(m);
			}*/
		if(i<10)
			num="00"+i;
		else
			num="0"+i;
		if(i>99) num=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' /><span style='display:none'>"+titleString+"<\/span><\/a>\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.substring(k,k+4) == "<br>")
        	text = text.substring(0,k)+" "+text.substring(k+4);
		if(text.substring(k,k+3) == "<B>"||text.substring(k,k+3) == "<b>")
        	text = text.substring(0,k)+text.substring(k+3);
		if(text.substring(k,k+4) == "<\/B>"||text.substring(k,k+4) == "<\/b>")
        	text = text.substring(0,k)+text.substring(k+4);
		if(text.substring(k,k+4) == "<BR>"||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);
	}
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 loadImage()
{
if(navigator.appVersion.indexOf("MSIE")=="-1")
	fade("infoTable");

if(theInfoString.indexOf("Materialcollage")!="-1"||theInfoString.indexOf("je ")!="-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);

}
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;

switch(docTitle)
	{
	case "Reflexes":
	fileString=Reflexes[nb];
	fullLength=Reflexes.length;
	break;
	case "Stills":
	fileString=Stills[nb];
	fullLength=Stills.length;
	break;
	case "Shapes":
	fileString=Shapes[nb];
	fullLength=Shapes.length;
	break;
	case "Walls":
	fileString=Walls[nb];
	fullLength=Walls.length;
	break;
	case "SW":
	fileString=SW[nb];
	fullLength=SW.length;
	break;
	case "RS":
	fileString=RS[nb];
	fullLength=RS.length;
	break;
	case "NYC":
	fileString=NYC[nb];
	fullLength=NYC.length;
	}
a=fileString.indexOf("*");
prelFile=docTitle+"/"+fileString.substring(0,a);

if(docTitle=="Reflexes_mov")
	{
	if(prelFile.indexOf("swf")!="-1")
		document.getElementById("moviePreload").innerHTML="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='1' height='1' id='Reflexes'><param name='allowScriptAccess' value='sameDomain'><param name='allowFullScreen' value='false'><param name='movie' value="+prelFile+" /><param name='quality' value='high'><param name='bgcolor' value='#ffffff'><embed src="+prelFile+" quality='high' bgcolor='#ffffff' width='1' height='1' name='Reflexes' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></object>";
	else
		document.getElementById("moviePreload").innerHTML="<EMBED name='fotoimage' ID='theImage2' SRC="+prelFile+" height='100' width='100' BORDER='0' AUTOPLAY='true' LOOP='true' CONTROLLER='false' alt='Abbildung'><\/EMBED>";
	}
else
	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;

numb=Number(nb);
selectedFile=numb;

switch(docTitle)
	{
	case "Reflexes":
	fileString=Reflexes[numb];
	fullLength=Reflexes.length;
	if(numb<39)
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Reflexes.htm'>REFLEXES<\/a><\/B>Serie I (Ibental/Schwarzwald)&nbsp;&nbsp;";
	if(numb>38)
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Reflexes.htm'>&bdquo;REFLEXES&rdquo;<\/a><\/B>Serie II (Jll/Elsass)&nbsp;&nbsp;";
	if(numb>106)
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Reflexes.htm'>&bdquo;REFLEXES&rdquo;<\/a><\/B>Serie III (Jll/Elsass)&nbsp;&nbsp;";
	break;
	
	case "Stills":
	fileString=Stills[numb];
	fullLength=Stills.length;
	if(numb<42)/*42/43*/
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Stills.htm'>STILLS<\/a><\/B>Serie I&nbsp;&nbsp;";
	if(numb>41)
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Stills.htm'>STILLS<\/a><\/B>Serie II&nbsp;&nbsp;";
	if(numb>97)/*98/99*/
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Stills.htm'>STILLS<\/a><\/B>Serie III&nbsp;&nbsp;";
	break;
	case "Shapes":
	fileString=Shapes[numb];
	fullLength=Shapes.length;
	if(numb<46)/*46/47*/
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Shapes.htm'>SHAPES<\/a><\/B>Serie I&nbsp;&nbsp;";
	if(numb>45)
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Shapes.htm'>SHAPES<\/a><\/B>Serie II&nbsp;&nbsp;";
	if(numb>82)/*83/84*/
		{
		if(numb>103)
			textTitle="<B class='mainHeader'><a class='A2' href='foto_Shapes.htm'>SHAPES<\/a><\/B>Serie III&nbsp;&nbsp;";
		else
			textTitle="<B class='mainHeader'><a class='A2' href='foto_Shapes.htm'>SHAPES<\/a><\/B>Serie III&nbsp;&nbsp;";
		}
		
	break;
	case "Walls":
	fileString=Walls[numb];
	fullLength=Walls.length;
	if(numb<46)/*46/47*/
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Walls.htm'>WALLS<\/a><\/B>Serie I (Maremma/Toskana)&nbsp;&nbsp;";
	if(numb>45)
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Walls.htm'>WALLS<\/a><\/B>Serie II&nbsp;&nbsp;";
	if(numb>87)/*88/89*/
		textTitle="<B class='mainHeader'><a class='A2' href='foto_Walls.htm'>WALLS<\/a><\/B>Serie III (NYC)&nbsp;&nbsp;";
	break;
	case "SW":
	fileString=SW[numb];
	fullLength=SW.length;
	if(numb<35)
		textTitle="<B class='mainHeader'><a class='A2' href='foto_SW.htm'>SW-FOTOS<\/a><\/B>Serie I&nbsp;&nbsp;";
	else
		textTitle="<B class='mainHeader'><a class='A2' href='foto_SW.htm'>SW-FOTOS<\/a><\/B>Serie II&nbsp;&nbsp;";
	break;
	case "RS":
	fileString=RS[numb];
	fullLength=RS.length;
	textTitle="<B class='mainHeader'><a class='A2' href='foto_RS.htm'>STILL VIDEO &ndash; &bdquo;REFLEXIVE SURFACE&rdquo;<\/a><\/B>1991/2001&nbsp;&nbsp;";
	break;
	case "NYC":
	fileString=NYC[numb];
	fullLength=NYC.length;
	textTitle="<B class='mainHeader'><a class='A2' href='foto_NYC.htm'>NEW YORK<\/a><\/B>MAI 2008 - 2010&nbsp;&nbsp;";
	}
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-1)
	num=0;
showImage(num);
}
/***********************************************/
function prev()
{

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