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(){
	if ( document.getElementById("divFadeBody") != undefined ) {
		document.getElementById("divFadeBody").style.width = document.body.scrollWidth;
		document.getElementById("divFadeBody").style.height = document.body.scrollHeight;
	}
	if ( document.getElementById("photoPopup") != undefined ) {
		document.getElementById("photoPopup").style.width = document.body.scrollWidth;
		document.getElementById("photoPopup").style.height = document.body.scrollHeight;
	}
}

