function toggle_folder(node) {
	//window.alert(document.getElementById('folder_body2').style.display);
	if(document.getElementById(node).style.display == 'none') {
		document.getElementById(node).style.display = 'block';
	} else {
		document.getElementById(node).style.display = 'none';
	}
}

precvig="vig0";
function large(vig, photo,leg) {
	   document ["large"].src = photo;
	   document [vig].className ="blend10";
	 if (precvig!=null) { document [precvig].className ="blend100";  }
		precvig=vig;
}


// zoom galerie
var popzoomgal
function zoomgal(fic,cat) {
	var url = "zoomgal.php?fic=" + fic + "&cat=" + cat  ;
	var w=352;
	var h=442;
	if(popzoomgal == null || popzoomgal.closed) {
		popzoomgal = window.open(url, "nl", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=" + w + ",height=" + h + ",top=30,left=30");
	} else {
		popzoomgal.close()
		popzoomgal = window.open(url, "nl", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=" + w + ",height=" + h + ",top=30,left=30");
	}
}


function showroll(img) { document.images[img].className='blend100'; }
function hideroll(img) { document.images[img].className='blend100';  }