//	Navigation

function exp_coll(index)
	{
	s = document.getElementById('block_' + index);
	if (s.style.display == 'none') exp(index);
	else if (s.style.display == 'block') coll(index);
	}

function exp(index)
	{
	f = document.getElementById('folder_' + index);
	s = document.getElementById('block_' + index);
	i = document.getElementById('image_' + index);
	if (!(s && i && f)) return false;
	f.className = 'folder_active';
	s.style.display = 'block';
	i.src = 'http://www.haefely.com/dropbox/cms/navigation/minus.gif';
	}

function coll(index)
	{
	f = document.getElementById('folder_' + index);
	s = document.getElementById('block_' + index);
	i = document.getElementById('image_' + index);
	if (!(s && i && f)) return false;
	f.className = 'folder';
	s.style.display = 'none';
	i.src = 'http://www.haefely.com/dropbox/cms/navigation/plus.gif';
	}

function select(index)
	{
	f = document.getElementById('folder_' + index);
	if (f) f.className = 'folder_active';
	else
		{
		f = document.getElementById('file_' + index);
		if (f) f.className = 'file_active';
		}
	}

function coll_all()
	{
	coll(0);
	coll(1);
	coll(2);
	coll(3);
	coll(4);
	coll(5);
	coll(6);
	coll(7);
	}

function exp_all()
	{
	exp(0);
	exp(1);
	exp(2);
	exp(3);
	exp(4);
	exp(5);
	exp(6);
	exp(7);
	}

//	PopUp Fenster

neues_Fenster = null;

function stopError()
	{
	return true;
	}

window.onerror = stopError;

function popup(Document0,Breite0,Hoehe0)
	{
 	Document = Document0;
	Breite = Breite0;
	Hoehe = Hoehe0;
	zu();
	setTimeout('sichtbar()',1000);
	}

function sichtbar()
	{  
	Fenster_Hoehe = Hoehe;
	Fenster_Breite = Breite;
	Optionen = 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, height='+Hoehe+', width='+Breite;
	neues_Fenster = window.open(Document, '', Optionen)
	}

function zu()
	{
	if (neues_Fenster != null)
	if (!neues_Fenster.closed)
	neues_Fenster.close();
	}
