
function lightbox_fnc (target_id, ursprung) {

	var id = target_id.substr(2); // id bestimmen
	
	if (ursprung == 'portfolio')
	{
		var images = document.getElementById('images').value;
		var titles = document.getElementById('titles').value;
	} 
	else // BŸcher, Architektur, Ausstellungen
	{
		var images = document.getElementById('images'+id).value;
		var titles = document.getElementById('titles'+id).value;
		id = 1; // id auf 1 fixieren, damit Cover immer als erstes erscheint
	}
	
	document.getElementById('lightbox').style.display = 'block';

	var zufallszahl = Math.floor(Math.random()*10000);
	
	var flashvars = { images_string: images, titles_string: titles, id_string: id, rubrik_string: ursprung };
	var params = { bgcolor: "#3e3e42", wmode: "transparent" };
	var attributes = { };
	swfobject.embedSWF("flash/lightbox.swf?rand="+zufallszahl, "lightbox", "100%", "100%", "9.0.0","expressInstall.swf", flashvars, params, attributes);

};

function diashowAusblenden_fnc ()
{
	document.getElementById('lightbox').style.visibility = 'hidden';
	document.getElementById('lightbox').style.display = 'none';
	// SWF entladen (?) nicht sicher ob folgendes was bringt ...
	//var div = document.getElementById('lightbox');
	//div.innerHTML = "";
}
