// JavaScript Document

function links_puldown(cell){
	var currentCell = document.getElementById(cell);
	if(currentCell.className == 'menu_links_aan'){
		currentCell.className = 'menu_links_uit'
		}
		else if(currentCell.className == 'menu_links_uit'){
		currentCell.className = 'menu_links_aan'
		}
	}
	
	function AantalAan(AantalId){
		if(document.getElementById(AantalId).disabled){			
			document.getElementById(AantalId).disabled = false;			
		}
		else{
			document.getElementById(AantalId).value = 0;
			document.getElementById(AantalId).disabled = true;
		}
	}	
	
	
	function viewFoto(URL){
	var URL = URL;
	var Maxbreedte = screen.width - 50;
	var Maxhoogte = screen.height - 100;
	Nieuwscherm =window.open("../Pages/Foto_popup.php?Foto="+URL,"foto_up","toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=no,width="+Maxbreedte+"px,height="+Maxhoogte+"px");
	Nieuwscherm.focus();
}
function viewFlash(URL, Breed, Hoog){
	var URL = URL;
	Nieuwscherm =window.open("../Pages/Flash_popup.php?Foto="+URL+"&Breete="+Breed+"&Hoogte="+Hoog,"","toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=no,width="+Breed+"px,height="+Hoog+"px");
	Nieuwscherm.focus();
}
function SizeFoto(){
	var VerhoudingOrigineel = eval(pic).width / eval(pic).height;
	var Maxbreedte = screen.width - 20;
	var Maxhoogte = screen.height - 20;

	if(Maxbreedte<eval(pic).width){
		eval(pic).width = Maxbreedte;
	}
	if(Maxhoogte<eval(pic).height){
		eval(pic).height = Maxhoogte;
		eval(pic).width = (Maxhoogte*VerhoudingOrigineel);
	}

	var PositieLinks = (screen.width-eval(pic).width+28)/2;
	var PositieBoven = (screen.height-eval(pic).height+99)/2;

	window.moveTo(PositieLinks, PositieBoven);
	window.resizeTo(eval(pic).width+28, eval(pic).height+99);
	window.moveTo(PositieLinks, PositieBoven);

}
function wissen(){
	alert("weet je het zeker")
	}