function toggleMenue(box)
{
	var curr_box = document.getElementById(box);
	var old_box_value = document.getElementById("BoxOpen").value;
	
	if(old_box_value != 0 && old_box_value != box)
	{
		var old_box = document.getElementById(old_box_value);
		toggleBox(old_box);
	}
	
	toggleBox(curr_box,box);
}

function toggleBox(boxobj,box)
{
	var curr_box_visable = boxobj.style.display;
	var old_box_value;
	
	if(curr_box_visable == 'none')
	{
		boxobj.style.display = 'block';
		old_box_value = box;
	}
	else
	{
		boxobj.style.display = 'none';
		old_box_value = 0;
	}
	
	document.getElementById("BoxOpen").value = old_box_value;
}

function popup(url2go)
{
	thepopup = window.open(url2go,'thepopup','width=200,height=400,scrollbars=yes,left=50,top=50');
	thepopup.focus();
}

function img_popup(imgurl)
{
	theimgpopup = window.open('','theimgpopup','resizable=yes,scrollbars=yes,left=0,top=0');
	theimgpopup.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>[ arteverre GmbH ]</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="/style.css" type="text/css"></head><body leftmargin="7" topmargin="7" marginwidth="7" marginheight="7" bgcolor="#959497"><p><img src="' + imgurl + '" border="1"></p><p><a href="javascript:self.close()">Fenster schlie&szlig;en</a></p></body></html>');
	
	theimgpopup.focus();
}


function click(e){if (document.all) if (event.button == 2) return false;if (document.layers) if (e.which == 3) return false;} function click2(){event.returnValue=false;return false;}if (document.layers) document.captureEvents(Event.MOUSEDOWN);document.onmousedown=click;document.oncontextmenu=click2;