function showImage(File, Hi, Wi){
	// geeft een afbeelding in een nieuw venster, op maat, midden op het scherm
	var T = (screen.availHeight - Hi) / 2; T = (T < 0 ? 0 : T);
	var L = (screen.availWidth - Wi) / 2;  L = (L < 0 ? 0 : L);
	Opt = 'scrollbars=0,resizable=0,titlebar=0,status=0,location=0,menubar=0,toolbar=0,directories=0,';
	Opt+= 'top='+T+',left='+L+',height='+Hi+',width='+Wi;
	w = window.open('','Afbeelding',Opt);
	w.document.open();
	w.document.write('<html><head><title>Afbeelding</title>');
	w.document.write('<meta http-equiv="imagetoolbar" content="no">');
	w.document.write('<link rel="stylesheet" type="text/css" href="../image.css"></head>');
	w.document.write('<body onLoad="javascript:window.focus()" onBlur="javascript:window.close()">');
	w.document.write('<img src="'+File+'"></body></html>');
	w.document.close();
}

function giveSound(File){
	// geeft een geluid; afspeler in een nieuw venster, midden op het scherm
	File = '../snd/'+File;
	Hi = 16;
	Wi = 300;
	WWi = Wi + 40;
	var T = (screen.availHeight - Hi) / 2;
	var L = (screen.availWidth - WWi) / 2;
	Opt = 'scrollbars=0,resizable=0,titlebar=0,status=0,location=0,menubar=0,toolbar=0,directories=0,';
	Opt+= 'top='+T+',left='+L+',height='+Hi+',width='+WWi;
	w = window.open('','Geluid',Opt);
	Props = " width='"+Wi+"' height='"+Hi+"' type='audio/wav' ";
	w.document.open();
	w.document.write('<html><head><title>Sound</title><link rel="stylesheet" type="text/css" href="../sound.css"></head>');
	w.document.write('<body onLoad="javascript:window.focus()" onBlur="javascript:window.close()">');
	w.document.write('<object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b"'+Props);
	w.document.write('codebase="http://www.apple.com/qtactivex/qtplugin.cab">');
	w.document.write('<param name="src" value="'+File+'"><param name="autoplay" value="true"><param name="volume" value="50">');
	w.document.write('<embed src="'+File+'"'+Props+'pluginspage="http://www.apple.com/quicktime/download/" ');
	w.document.write('autostart="true" autoplay="true" volume="50"></embed></object>');
	w.document.write('</body></html>');
	w.document.close();
}

function showBible(Passage){
	// geeft een Bijbelgedeelte in een nieuw venster, rechtsonder
	Passage = '../nbg/Bijbel.php?p='+Passage;
	var T = screen.availHeight - 450;
	var L = screen.availWidth - 450;
	Opt = 'scrollbars=yes,resizable=yes,titlebar=no,status=no,location=no,menubar=no,directories=no,';
	Opt+= 'top='+T+',left='+L+',height=400,width=400';
	window.open(Passage,'Tekst',Opt);
}

// functies voor weergeven/verbergen van een onderdeel
function show(obj){document.getElementById(obj).style.visibility="visible";}
function hide(obj){document.getElementById(obj).style.visibility="hidden";}
// functies voor het zwart-wit/gekleurd weergeven van een onderdeel (veranderd in transparant i.p.v. zwart-wit)
function kleur(obj){obj.style.filter=false}
function grijs(obj){obj.style.filter="alpha(style=0,opacity=50)"}
// functies voor het (ont-) kleuren van een tabelrij
function tr_1(obj){obj.style.backgroundColor='#ffd';}
function tr_0(obj){obj.style.backgroundColor='#ddf';}

