function showDivImage(parPhotoID, parGroupID){
	resizeFadeDiv();
	window["photoFrame"].location.href = "photoFrame.asp?photo="+parPhotoID+"&group="+parGroupID;
	document.getElementById("photoPopup").style.visibility  = "visible";
	document.getElementById("divFadeBody").style.visibility = "visible";
}
function hideDivImage(){
	window["photoFrame"].location.href = "photoFrame.asp?photo=0&group=0";
	document.getElementById("divFadeBody").style.visibility = "hidden";
	document.getElementById("photoPopup").style.visibility  = "hidden";
}
function resizeFrame(parWidth, parHeight){
	document.getElementById("photoFrame").style.width  = parWidth;
	document.getElementById("photoFrame").style.height = parHeight;
	if ( document.all ) {
//		alert("IE");
	document.getElementById("photoFrame").style.height = parHeight;
	} else {
	document.getElementById("photoFrame").style.height = parHeight - 4;
	}
}
function resizeFadeDiv(){
	document.getElementById("divFadeBody").style.width = document.body.scrollWidth;
	document.getElementById("divFadeBody").style.height = document.body.scrollHeight;
	document.getElementById("photoPopup").style.width = document.body.scrollWidth;
	document.getElementById("photoPopup").style.height = document.body.scrollHeight;
}
if(window.addEventListener) { //W3C event-handler
	window.addEventListener('onresize',resizeFadeDiv,false);
//	window.addEventListener('onscroll',positionPhotoPopup,false);
}
if(window.attachEvent) { //Microsoft event-handler
	window.attachEvent('onresize',resizeFadeDiv);
//	window.attachEvent('onscroll',positionPhotoPopup);
}
/*
 function positionPhotoPopup(){
//alert(document.body.scrollTop);
	var Y = document.getElementById("photoPopup").style.top;
	var H = document.getElementById("photoPopup").style.height;
	var bW = document.body.offsetWidth;  //-10;
	var bH = document.body.offsetHeight; //-10;
//	document.getElementById("divFadeBody").style.height = document.body.scrollHeight;
	document.getElementById("photoPopup").style.top = document.body.scrollTop;
	if ( document.body.clientHeight>document.body.offsetHeight ) {
		document.getElementById("photoPopup").style.top = Y;
	}
}
function showImgPopup(parSrc, W, H){
	var X = mouseX;
	var Y = mouseY;
	var bW = document.body.offsetWidth-10;
	var bH = document.body.offsetHeight-10;
	document.getElementById("imgPopup").src = parSrc;
	document.getElementById("imgPopup").width = W;
	document.getElementById("imgPopup").height = H;
	if(X+W+32>bW){ // loopt rechts uit scherm
		X = X-W-24;
	} else {
		X += 10;
	}
	if(Y+H+10>bH){ // loopt onder uit scherm
		Y = bH-H-24;
	} else {
		Y += 10;
	}
	document.getElementById("divImgPopup").style.width = W+10;
	document.getElementById("divImgPopup").style.height = H+10;
	document.getElementById("divImgPopup").style.left = X;
	document.getElementById("divImgPopup").style.top = Y;
}
*/
