/* Vergrößerung für die Bilder aus der Datenbank */
function BigImagePopup(imgId, thisPic){
	/*
	if (thisPic.height > thisPic.width){
		var newWinWidth = 450;
		var newWinHeight = 645;
	}
	else {
		var newWinWidth = 600;
		var newWinHeight = 495;
	}
	*/
	var newWinWidth = 600;
	var newWinHeight = 645;
	var xPos = Math.round((screen.availWidth - newWinWidth)/2);
	var yPos = Math.round((screen.availHeight - newWinHeight)/2) -15;
	var openWindow = window.open("zoom.aspx?id="+imgId, "imgPopup","status=no,width="+ newWinWidth +",height="+ newWinHeight +",left="+ xPos +",top="+yPos);
	openWindow.focus();
}

/* Vergrößerung für die Bilder aus Science und Produkt */
function BigImagePopup2(thisPic){
	var newWinWidth = 600;
	var newWinHeight = 465;
	var xPos = Math.round((screen.availWidth - newWinWidth)/2);
	var yPos = Math.round((screen.availHeight - newWinHeight)/2) -15;
	var openWindow = window.open("img_popup.htm", "imgPopup","status=no,width="+ newWinWidth +",height="+ newWinHeight +",left="+ xPos +",top="+yPos);
	openWindow.pic = "../images/big/" + thisPic + ".gif";
	openWindow.focus();
}
