if(navigator.appVersion.indexOf("MSIE 6")!="-1"||navigator.appVersion.indexOf("MSIE 5")!="-1")
	location.href="index_IE6.htm";
function keyDownPress (keyEvent)
{
if (!keyEvent)
	keyEvent = window.event;
if (keyEvent.which)
	keyCode = keyEvent.which;
else if (keyEvent.keyCode)
    keyCode = keyEvent.keyCode;

if(keyCode==13)
	{
	if(document.getElementById("promptWindow").style.display=="block")
		{
		/*check=document.promptForm.pswd.value;
		getPassword(check);*/
		buttDown(2);
		setTimeout("buttUp(2)",200);
		}
	}
}
var keyCode;
document.onkeydown = keyDownPress;

function getParam()
{
if(navigator.userAgent.indexOf("Firefox")!="-1")
	{
	if(keyCode==18)
		{
		document.promptForm.pswd.value="";
		document.getElementById('formText').innerHTML="Bitte geben Sie Ihr<br/>Administrator-Passwort ein:";
		document.getElementById("promptWindow").style.display="block";
		document.getElementById("promptForm").style.display="block";
		document.promptForm.pswd.focus();
		}
	
	keyCode=0;
	}
}
function getPassword(check)
{
if (check!=""&&check!=null)
	{
	check = hex_md5(check);
	if(location.href.indexOf("?")!="-1")
		{
		a=location.href.indexOf("?");
		newLoc=location.href.substring(0,a);
		}
	else
		newLoc=location.href;
	window.open("data/check.php?pswd="+check, target="inline");
	setTimeout("getPW('"+check+"')",1000);
	}
else
	document.promptForm.pswd.focus();
}
function getPW(check)
{
if(parent.inline.document.getElementById('pw').innerHTML=="OK")
	location.href=newLoc+"?pswd="+check;
else
	{
	document.getElementById('formText').innerHTML="<div style='float:left;height:40px;width:74px;text-align:right'><img src='layout/halt.gif' alt=''/></div><div style='color:red;height:40px;width:300px;text-align:center';margin-left:10px>Das Passwort ist leider falsch!<br/>Bitte versuchen Sie es noch einmal.</div>";
	document.promptForm.pswd.focus();
	document.promptForm.pswd.select();
	}
}
function buttDown(n)
{
if(n==1)
	document.getElementById("skip").src=buttons[5].src;
else
	document.getElementById("ok").src=buttons[7].src;
}
function buttUp(n)
{
if(n==1)
	{
	document.getElementById("skip").src=buttons[4].src;
	document.getElementById("promptWindow").style.display="none";
	document.getElementById("promptForm").style.display="none";
	}
else
	{
	document.getElementById("ok").src=buttons[6].src;
	getPassword(document.promptForm.pswd.value);
	}
}
function setFrame()
{
document.write("<iframe name='inline' style='height:50px;width:550px;border:none' scrolling='no'></iframe>");
}
var buttons = new Array()
buttons[0] = new Image(); buttons[0].src="layout/transmit.jpg";
buttons[1] = new Image(); buttons[1].src="layout/transmit2.jpg";
buttons[2] = new Image(); buttons[2].src="layout/reset.jpg";
buttons[3] = new Image(); buttons[3].src="layout/reset2.jpg";

buttons[4] = new Image(); buttons[4].src="images/skip.jpg";
buttons[5] = new Image(); buttons[5].src="images/skip2.jpg";
buttons[6] = new Image(); buttons[6].src="images/ok.jpg";
buttons[7] = new Image(); buttons[7].src="images/ok2.jpg";
var thisData;

function openEdit(thisPage)
{
thisData=thisPage;

	if(thisData.indexOf("History")!="-1"||thisData=="Ausstellungskalender"||thisData=="Terminkalender")
		openTableEdit(thisData);
	else
		{
		thisPage=thisData;
		WWidth=904;
		WHeight=710;
		x=Math.round(((screen.availWidth)/2) - (WWidth/2));	
		y=Math.round(((screen.availHeight)/2) - (WHeight/2));
		window.open('editing/textEditor.php?'+thisPage,"Bearbeiten",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+WWidth+',height='+WHeight+',left='+x+',top='+y);
		}
	
}
function openTableEdit(data)
{
thisData=data;
WWidth=904;
WHeight=710;
x=Math.round(((screen.availWidth)/2) - (WWidth/2));	
y=Math.round(((screen.availHeight)/2) - (WHeight/2));
window.open('editing/tableEditor.php?'+thisData,"Bearbeiten",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+WWidth+',height='+WHeight+',left='+x+',top='+y);
}
function imageContent(content)
{
thisData=content;
WWidth=1256;
WHeight=743;
x=Math.round(((screen.availWidth)/2) - (WWidth/2));	
y=Math.round(((screen.availHeight)/2) - (WHeight/2));

window.open("editing/imageContent.php?"+content,"Bearbeiten","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+WWidth+",height="+WHeight+",left="+x+",top="+y);
}
function selectNav()
{
anzahl=document.links.length;
for(i=0;i<anzahl;i++)
	{
	if(location.href.indexOf(document.getElementsByTagName("a")[i])!="-1")
		{
		document.getElementsByTagName("a")[i].style.fontWeight="bold";
		document.getElementsByTagName("a")[i].style.color="#c61c0b";
		}
	}
}
function dragLine()
{
/*if(document.getElementById("Leerbalken2"))
	{
	if(navigator.platform.indexOf("Mac")=="-1")
		document.getElementById("Leerbalken2").style.top="109px";
	}*/

selectNav();
}
function setSize()
{
if(window.innerWidth)
	{
	windWidth=window.innerWidth;
	windHeight=window.innerHeight;
	}
else
	{
	windWidth=document.getElementById("depot_body").offsetWidth;
	windHeight=document.getElementById("depot_body").offsetHeight;
	}
promptWidth=445;
promptHeight=288;

wx=Math.round(((windWidth)/2) - (promptWidth/2));
wy=Math.round(((windHeight)/2) - (promptHeight/2));
if(document.getElementById("promptWindow"))
{
document.getElementById("promptWindow").style.top=wy+"px";
document.getElementById("promptWindow").style.left=wx+"px";
document.getElementById("promptForm").style.top=(wy+90)+"px";
document.getElementById("promptForm").style.left=(wx+60)+"px";
}
if(windWidth<1000)
	{
	document.getElementById("depot_body").style.fontSize="11px";
	/*document.getElementById("depot_body").style.letterSpacing="0px";*/
	for(i=0;i<1000;i++)
		{
		if(document.getElementsByTagName("td")[i])
			{
			/*document.getElementsByTagName("td")[i].style.letterSpacing="0px";*/
			document.getElementsByTagName("td")[i].style.fontSize="11px";
			}
		if(document.getElementsByTagName("div")[i])
			document.getElementsByTagName("div")[i].style.fontSize="11px";
		}
	/*document.getElementById("theText").style.letterSpacing="0px";*/
	if(document.getElementById("imgText"))
		document.getElementById("imgText").style.fontSize="9px";
	}


/*if(document.getElementById("aussenRand"))
	document.getElementById("aussenRand").style.height=document.getElementById("depot_body").offsetHeight-170;*/

if(window.innerWidth)
	{
	windWidth=window.innerWidth-730;
	windHeight=window.innerHeight;
	}
else
	{
	windWidth=document.getElementById("depot_body").offsetWidth-730;
	windHeight=document.getElementById("depot_body").offsetHeight;
	}
}
var L_ctrl=1;
var windWidth;
var windHeight;

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("frontImg").style.visibility="visible";
	document.getElementById("imgText").style.visibility="visible";
	}
}
var WWidth;
var WHeight;

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

function writeFotos()
{
if(window.innerWidth)
	{
	windW=window.innerWidth;
	AnzBer=window.innerHeight;
	}
else
	{	
	windW=document.getElementById("depot_body").offsetWidth;
	AnzBer=document.getElementById("depot_body").offsetHeight;
	}


	xVar=400;
if(window.innerWidth)
	itemNr=Math.round((window.innerWidth-xVar)/130);
else	
	itemNr=Math.round((document.getElementById("depot_body").offsetWidth-xVar)/130);
	
lineCount=0;
if(itemNr<2)itemNr=2;


if(pictures.length<itemNr-1)
	imgTable="<table id='Vorschautabelle' style='text-align:left;width:30%' border='0' cellspacing='0' cellpadding='0'><tr>";/* style='table-layout:fixed'*/
else
	imgTable="<table id='Vorschautabelle' style='text-align:left;width:100%' border='0' cellspacing='0' cellpadding='0'><tr>";/*table-layout:fixed;*/




textTable="";

for (i=0;i<pictures.length;i++)
	{
	fullSrc=pictures[i];
	txtSrc=pictures[i];
	a=fullSrc.indexOf("*");
	b=fullSrc.indexOf("+");
	imgSrc=path+"/thumbnails/"+fullSrc.substring(0,a);

	if(path.indexOf("malerei")!="-1")
		{
		imgSrc="http://www.lefeldt.de/malerei/"+fullSrc.substring(0,a);
		c=imgSrc.lastIndexOf("/");
		imgSrc=imgSrc.substring(0,c)+"/thumbnails/"+imgSrc.substring(c+1);
		}
	if(path.indexOf("images")!="-1")
		imgSrc=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);
		}
	
	imgHW="height="+imgHeight+" width="+imgWidth;
	
	lineCount=lineCount+1;

	if(lineCount==itemNr)
		{
		lineCount=1;
		imgTable=imgTable+"<\/tr><tr>"+textTable;
		textTable="";
		breakControl="<\/tr><tr>";
		}
	else
		breakControl="";

	if(path!="images")
		txtSrc="";

	v=txtSrc.indexOf("+");
	txtSrc=txtSrc.substring(v+1);

	if(lineCount==1)
		t_align="left";
	else
		{
		if(lineCount==itemNr-1)
			t_align="right";
		else
			t_align="center";
		}
	t_align="center";
	imgTable=imgTable+breakControl+"<td id='B"+i+"' onClick='javascript:showImage("+i+")' style='width:120px;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='I"+i+"' src="+imgSrc+" "+imgHW+" border='0' alt='' style='vertical-align:top;cursor:pointer'><img id='sh1' style='visibility:visible;vertical-align:top' src='layout/S1b.gif' width='4' height="+imgHeight+" alt=' '><\/span><br><span style='white-space:nowrap'><img id='sh2' style='visibility:visible;vertical-align:top' src='layout/S2b.gif' width="+imgWidth+" height='4' alt=' '><img id='sh3' style='visibility:visible;vertical-align:top' src='layout/S3b.gif' width='4' height='4' alt=' '><\/span><\/td>";	
	if(lineCount!=itemNr-1)
		imgTable=imgTable+"<td style='width:400px'>&nbsp;<\/td>";
	
	textTable=textTable+"<td style='width:"+imgWidth+";padding-bottom:12px;vertical-align:top;text-align:center;font-size:11px' class='weblinks'>"+txtSrc+"<\/td>";
	
	if(lineCount!=itemNr-1)
		textTable=textTable+"<td><\/td>";
	}

img_Layout="<\/tr><tr>"+textTable+"<\/tr><\/table>";
imgTable=imgTable+img_Layout;
	
document.write(imgTable);
}
/*************************************************************/
function writeVideo(n)
{

document.getElementById("imageWindow").style.visibility="hidden";
document.getElementById("imageWindow").style.display="block";
if(n==1)
{
fileString="Eroeffnung.swf*474,800+Offizielle Er&ouml;ffnung des <span style='font-weight:bold'>depot<span style='color:red'>.</span>K</span> am 10.7.2009 (Video:&nbsp;TL)<br/>&nbsp;<br/>";
/*fileString="http://www.youtube.com/v/FL3-Y6khK7c&hl=de&fs=1*338,600+<br/>Offizielle Er&ouml;ffnung des <span style='font-weight:bold'>depot<span style='color:red'>.</span>K</span> am 10.7.2009 (Video:&nbsp;TL)<br/>&nbsp;<br/>";*/
}
if(n==2)
{
fileString="performance.swf*484,800+<br/>Musik-Performance von Dirk Kl&ouml;ffer (Musik) und Michael Labres (Performance) am 15.8.2009 anl&auml;sslich der Vernissage &bdquo;9 Monate&rdquo; im Morat Institut Freiburg (Video:&nbsp;TL)<br/>&nbsp;<br/>";
}
if(n==3)
{
fileString="finissage.swf*484,800+<br/>Finissage der Er&ouml;ffnungsausstellung am 31.7.2009 (Video:&nbsp;TL)<br/>&nbsp;<br/>";
}
if(n==4)
{
fileString="2.10.2009.swf*484,800+<br/>Er&ouml;ffnung der Ausstellung Michael Kohnen am 2.10.2009 (Video:&nbsp;TL)<br/>&nbsp;<br/>";
}
if(n==5)
{
fileString="helmrich.swf*484,800+<br/>&bdquo;zwischenr&auml;umen&rdquo; - Tanzperformance Bettina Helmrich, 23.9.2010 (Video:&nbsp;TL)<br/>&nbsp;<br/>";
}
filePath="video/";
/*filePath="";*/
a=fileString.indexOf("*");
theFile=filePath+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;

xVar=460;
yVar=280;

if(window.innerWidth)
	{
	windowWidth=(window.innerWidth-xVar);
	windowHeight=(window.innerHeight-yVar);
	}
else	
	{
	if(navigator.appVersion.indexOf("MSIE 6")!="-1")
	yVar=390;
	windowWidth=(document.getElementById("depot_body").offsetWidth-(xVar));
	windowHeight=(document.getElementById("depot_body").offsetHeight-yVar);
	}

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);
	}
document.getElementById("singleImage").innerHTML="<embed name='flashImage' ID='theImage' SRC="+theFile+" height="+newHeight+" width="+newWidth+" BORDER='0' AUTOPLAY='true' LOOP='false' CONTROLLER='true'  type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' alt='' title='' style='vertical-align:top'><\/embed>";

/*document.getElementById("singleImage").innerHTML="<span style='white-space:nowrap'><embed name='flashImage' ID='theImage' SRC="+theFile+" height="+newHeight+" width="+newWidth+" BORDER='0' AUTOPLAY='true' LOOP='false' CONTROLLER='true'  type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' onClick='stopMovie()' alt='' title='' style='vertical-align:top'><\/embed><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>";*/
	setTimeout("document.getElementById('singleImage').style.display='block'",100);

document.getElementById("mainWindow").style.display="none";
if(document.getElementById("theGalleries"))
	document.getElementById("theGalleries").style.display="none";
document.body.style.overflow='hidden';


document.getElementById("infoString").innerHTML=theInfoString;
document.getElementById("infoString").style.width=newWidth;
document.getElementById("imageWindow").style.display="block";
if(document.getElementById("infoTable2"))
	document.getElementById("infoTable2").style.display="block";
document.getElementById("imageWindow").style.visibility="visible";
document.getElementById("imageWindow").style.width=newWidth+"px";
}
/***********************************/
function showImage(nb)
{
if(path=="images")
	{
	showArtist(nb+1);
	}
else
	{
	var textTitle;
	textTitle="";
	numb=Number(nb);

	fileString=pictures[numb];
	fullLength=pictures.length;
	a=fileString.indexOf("*");
	theFile=path+"/"+fileString.substring(0,a);
	
	if(path.indexOf("malerei")!="-1")
		{
		fileString="http://www.lefeldt.de/malerei/"+fileString;
		a=fileString.indexOf("*");
		theFile=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;



xVar=466;
yVar=280;
yVar=300;

/*topPos="182px";
document.getElementById("imageWindow").style.top=topPos;*/
if(window.innerWidth)
	{
	windowWidth=(window.innerWidth-xVar);
	windowHeight=(window.innerHeight-yVar);
	}
else	
	{
	yVar=300;
	windowWidth=(document.getElementById("depot_body").offsetWidth-(xVar));
	windowHeight=(document.getElementById("depot_body").offsetHeight-yVar);
	}

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();
}
}
/**************************************************************/
function loadImage()
{
document.getElementById("imageWindow").style.visibility="hidden";
document.getElementById("imageWindow").style.display="block";

if(theFile.indexOf("056")!="-1"&&location.href.indexOf("fotogalerie")!="-1")
	{
	document.getElementById("singleImage").innerHTML="<span style='white-space:nowrap'><embed name='flashImage' id='theImage' src='video/helmrich.swf' height="+newHeight+" width="+newWidth+" border='0' autoplay='true' loop='false' controller='false'  type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' alt='Video' title='' style='vertical-align:top'><\/embed><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>";
answerLoading();
	}
else
	{
	if(theFile.indexOf("Tryp")!="-1")
		document.getElementById("singleImage").innerHTML="<IMG name='fotoimage' ID='theImage' SRC="+theFile+" height="+newHeight+" width="+newWidth+" onClick='next()'  alt='' style='vertical-align:top' onload='answerLoading()'><br><span style='white-space:nowrap'><br/><\/span>";
	else
		document.getElementById("singleImage").innerHTML="<span style='white-space:nowrap'><IMG name='fotoimage' ID='theImage' SRC="+theFile+" height="+newHeight+" width="+newWidth+" alt='' style='vertical-align:top' onload='answerLoading()'><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(n)
{	
document.getElementById('imageWindow').style.display="none";
if(document.getElementById("singleImage").innerHTML.indexOf("jpg")!="-1")
	document.getElementById("mainWindow").style.display="block";
else
	if(navigator.appName.indexOf("Explorer")=="-1")
		document.getElementById("mainWindow").style.display="block";
	else
		{
		if(n==1)
			location.href="video.htm";
		if(n==2)
			location.href="labres.htm";		
		}
if(document.getElementById("theGalleries"))
	document.getElementById("theGalleries").style.display="block";
document.getElementById("infoTable").style.display="none";
if(document.getElementById("infoTable2"))
	document.getElementById("infoTable2").style.display="none";


/*if(window.innerHeight)
	document.body.style.overflow='visible';
else
	document.body.style.overflow='auto';*/


window.scrollTo(0,1);
window.scrollTo(0,0);
}
/**************************************************************************/
function answerLoading()
{
document.getElementById("mainWindow").style.display="none";
if(document.getElementById("theGalleries"))
	document.getElementById("theGalleries").style.display="none";
document.body.style.overflow='hidden';
document.getElementById("infoTable").style.display="block";

document.getElementById("infoString").innerHTML=theInfoString;
document.getElementById("infoString").style.width=newWidth;
document.getElementById("imageWindow").style.display="block";
document.getElementById("imageWindow").style.visibility="visible";
document.getElementById("imageWindow").style.width=newWidth+"px";


preloadNextImage();
}
/****************************************************************/
function preloadNextImage()
{
nb=numb+1;
if(nb>pictures.length-1)
nb=0;

fileString=pictures[nb];
	fullLength=pictures.length;
	a=fileString.indexOf("*");
	prelFile=path+"/"+fileString.substring(0,a);
	
	if(path.indexOf("malerei")!="-1")
		{
		fileString="http://www.lefeldt.de/malerei/"+fileString;
		a=fileString.indexOf("*");
		prelFile=fileString.substring(0,a);
		}

document.images[document.images.length-1].src=prelFile;
}
function next()
{
num=numb;
num++;
if(num>fullLength-1)
	num=0;
if(document.getElementById("singleImage").innerHTML.indexOf("jpg")!="-1"||location.href.indexOf("fotogalerie")!="-1")
	showImage(num);
else
	showVideo(num);
}
/***********************************************/
var fullLength;
function prev()
{
num=numb;
num--;
if(num<0)
	num=fullLength-1;
if(document.getElementById("singleImage").innerHTML.indexOf("jpg")!="-1"||location.href.indexOf("fotogalerie")!="-1")
	showImage(num);
else
	showVideo(num);
}

function nachOben()
{
window.scrollTo(0,0);
}
/***********************************************************/
function checkWSize()
{
if(window.innerHeight)
	{
	var WWidth=window.innerWidth;
	var WHeight=window.innerHeight;
	}
else
	{
	var WWidth=document.getElementById("depot_body").offsetWidth;
	var WHeight=document.getElementById("depot_body").offsetHeight;
	}
}


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()) {
	location.href = location.href;
	if(location.href.indexOf("kuenstler")!="-1"||location.href.indexOf("projekte")!="-1"||location.href.indexOf("ausstellungen")!="-1"||location.href.indexOf("lefeldt_musik")!="-1")
		reloadSite();

		
	}
}

/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth||window.opera) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}

