
function showImageIcons(obj)
{
	return;

	var obj2 = obj.firstChild;
	while (obj2.className != "imageIcons")
	{
		obj2 = obj2.nextSibling;
		if (obj2 == null) return;
	}
	obj2.style.visibility = "";
}

function hideImageIcons(obj)
{
	return;

	var obj2 = obj.firstChild;
	while (obj2.className != "imageIcons")
	{
		obj2 = obj2.nextSibling;
		if (obj2 == null) return;
	}
	obj2.style.visibility = "hidden";
}

function imageZoom(file, w, h)
{
	file = file.replace(/&/, "%26");
	var w2 = w;
	var h2 = h;
	var sc = "no";
	var wmax = screen.availWidth - 40;
	var hmax = screen.availHeight - 60;

	if (w > wmax) { w2 = wmax; h2 += 16; sc = "yes, resizable=yes"; }
	if (h > hmax) { h2 = hmax; w2 += 16; sc = "yes, resizable=yes"; }

	if (top.imgZoomWin && !top.imgZoomWin.closed) top.imgZoomWin.close();

	imgZoomWin = window.open(rel_lib_path + "imagezoom.php?file=" + file + "&w=" + w + "&h=" + h, "Zoom", "scrollbars=" + sc + ", width=" + w2 + ", height=" + h2 + "");
}

// Toggle visibility of an object
//
// in id = (string) Object's ID
// in state = (bool) true/false: Force to show/hide it [optional]
//
function toggleVisId(id, state)
{
	toggleVisObj(document.getElementById(id), state);
}

// Toggle visibility of an object
//
// in obj = (object) Object
// in state = (bool) true/false: Force to show/hide it [optional]
//
function toggleVisObj(obj, state)
{
	if (obj == null) return;
	if (state == null)
	{
		if (obj.style.display == "") newstate = "none";
		else                         newstate = "";
	}
	else
	{
		if (state) newstate = "";
		else       newstate = "none";
	}
	obj.style.display = newstate;
}

function popup_foto(file, w, h)
{
	fenster = window.open("foto.php?file=" + file + "&w=" + w + "&h=" + h, "Foto", "scrolling=no, status=no, width=" + w + ", height=" + h + ", menubar=no, locationbar=no, resizable=no, hotkeys=no");
}


