/*****************************************************
	POP-UP
*****************************************************/
var winWidth = 800; // sets a default width for browsers who do not understand screen.width below
var winHeight = 800; // ditto for height
if (screen){ // weeds out older browsers who do not understand screen.width/screen.height
   winWidth = screen.width;
   winHeight = screen.height;
}
// this function calls a popupWindow where
// win is the page address i.e. '../page.htm'
function popupFull(path){
	newWindow = window.open(path,'winFull','toolbar=no,location=no,scrollbars=yes,resizable=yes,width='+winWidth+',height='+winHeight+',left=0,top=0');
	newWindow.focus();
}
function popupFullHeight(path,w){
	var left=(winWidth-w)/2;
	newWindow = window.open(path,'winFullHeight','toolbar=no,location=no,scrollbars=yes,resizable=yes,width='+w+',height='+winHeight+',left='+left+',top=0');
	newWindow.focus();
}
function popupSmall(path,w,h){
	var left=(winWidth-w)/2;
	var top=(winHeight-h)/2;
	newWindow = window.open(path,'winSmall','toolbar=no,location=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',left='+left+',top='+top+'');
	newWindow.focus();
}
// Filetree
var active = 0;
function showDiv(id){
	//if(active==id && document.getElementById('pdf'+id).style.display != 'block')
	if(active>0){
		document.getElementById('pdf'+active).style.display='none';
		document.getElementById('group'+active).className='groupblock';
		if(active==id){ active = 0; return; }
	}
	document.getElementById('pdf'+id).style.display='block';
	document.getElementById('group'+id).className='groupblockAktiv';
	active = id;
	return;
}
