function hideDirs(dirCount) {

	for(i=0; i<dirCount; i++) {
	
		document.getElementById('dir'+i).style.visibility='hidden';
		document.getElementById('dir'+i).style.height='0px';
			
	
	}

}


function showDir(dir, dirCount) {

	hideDirs(dirCount);
	document.getElementById(dir).style.visibility='visible';
	document.getElementById(dir).style.height='109px';

}


function NewWindow(mypage, myname, w, h, scroll) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	//h = (h*1) + 24;

	var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
