	var figuurW = new Array();
	var figuurH = new Array();
	var scrW = screen.width;
	var scrH = screen.height;
	var asrW = screen.availWidth;
	var asrH = screen.availHeight;
	var colDepth = screen.colorDepth;
	var winW;
	var winH;

	function bepaalImgDim() {
		// Screen resolution is (bv. 1400*1050)
		scrW = screen.width;
		scrH = screen.height;
		// Available view area is (bv. 1400*1020)
		asrW = screen.availWidth;
		asrH = screen.availHeight;
		// Color depth is
		colDepth = screen.colorDepth;
		// Browser inner available size is (bv. 929*636)
		ns4 = (document.layers)? true:false;
		ie4 = (document.all)? true:false;
		winW = (ns4)? window.innerWidth-16 : document.body.offsetWidth-20;
		winH = (ns4)? window.innerHeight : document.body.offsetHeight;
		// all images dimensions
		for(i=0; i<window.document.images.length; i++) { 
			figuurW[i] = window.document.images[i].width;
			figuurH[i] = window.document.images[i].height;
		}
		return herschaal();
	}

	function herschaal() {
		// Browser inner available size is (bv. 929*636)
		ns4 = (document.layers)? true:false;
		ie4 = (document.all)? true:false;
		winW = (ns4)? window.innerWidth-16 : document.body.offsetWidth-20;
		winH = (ns4)? window.innerHeight : document.body.offsetHeight;
		// all images dimensions
//		var bericht = "";
		schaal = winW / 1000;
		if(schaal>1) schaal = 1;
		if(schaal<0.1) schaal = 0.1;
		if(true) { // ie4) {
			for(i=0; i<window.document.images.length; i++) {
				w = figuurW[i]*schaal;
				window.document.images[i].width = w;
				// gebruik zelfde schaalfactor voor de hoogte
				h = figuurH[i]*schaal;
				window.document.images[i].height = h;
//				bericht = bericht + i + " = ( " + w + ", " + h + ") * " + schaal + ";   ";
			}
		}
//		document.getElementById("TEST").innerHTML = bericht;
	}

