function openPic(title)
{
	if(title=="")
	{
		alert("keine seite mitgeteilt!!!!!!");
	}else{
	showPic(title);
	}
	var a = document.getElementById("darken_pics").style;
	a.display="inline";
	new Effect.Opacity('darken_pics', { from: 0, to: 1, duration: 0.5 });
	Effect.BlindDown('pics');
	window.scroll(0,150);
}

//closes any comment popup (needs title not really)
function closePopUp(title)
{
	var a = document.getElementById("darken_pics").style;
	a.display="none";
	window.scroll(0,0);
}

var xmlHttp
function showPic(title)
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var site="/index.html";
var url="http://www.sebastian-kohn.com/gallaries/";
url=url+title+site;
url=url+"?sid="+Math.random();
xmlHttp.onreadystatechange=stateChangedPics;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChangedPics() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("pics").innerHTML=xmlHttp.responseText;
}
}