function showhide_dirs(){
	hideall_dirs("");
	alldivs = document.getElementsByTagName('div');
	for (i = 0; i < alldivs.length; i++){
		if (alldivs[i].className == 'dir'){
			dir = alldivs[i].getElementsByTagName('div');
			dir[0].dircontent = dir[1];
			dir[0].onclick = function () {
				hideall_dirs(this.dircontent);
				if(this.dircontent.style.display == 'none' || this.dircontent.style.display == ''){  
					this.dircontent.style.display = 'block';
					this.className = 'dir_title_open';
				} else {
					this.dircontent.style.display = 'none';
					this.className = 'dir_title';
				}
			}
		}
	}
}


function hideall_dirs(exception){
	alldivs = document.getElementsByTagName('div');
	for (i = 0; i < alldivs.length; i++){
		if (alldivs[i].className == 'dir'){
			dir = alldivs[i].getElementsByTagName('div');
			if (dir[1] != exception){
				dir[1].style.display = 'none';
				dir[0].className = 'dir_title';
			}
		}
	}
}
	