function showPhoto(theId, theLang, thePhotoNum) {
	w_width = 700;
	w_height = 620;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_standard_12/showphoto.php?pageid=' + theId + '&lang=' + theLang + '&photonum=' + thePhotoNum;
  window.showPhotoWindow = open(fparam, 'showPhotoWindow', theWindowParam);
	setTimeout('if(showPhotoWindow&&!showPhotoWindow.closed)showPhotoWindow.focus()',100);
}
function showGallery(theId, theLang, thePhotoId) {
		w_width = 740;
		w_height = 640;

	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = 'templates/ws_mm_standard_12/showphotogallery.php?pageid=' + theId+'&lang=' + theLang +'&photoid='+thePhotoId;
  window.showGalleryWindow = open(fparam, 'showGalleryWindow', theWindowParam);
	setTimeout('if(showGalleryWindow&&!showGalleryWindow.closed)showGalleryWindow.focus()',100);
}
function ShowPhotoSrc(theId, theFile, theDescId, theDesc) {

	if (document.getElementById) {
		var c = document.getElementById(theId);
		if (c.style.display != "block") {
			c.innerHTML = '<img src="' + theFile + '">';
		} else {
			c.innerHTML = '<img src="../../layout/images/transparent.gif">';
			c.style.display="none";
		}
	}
	document.getElementById(theId).alt = theDesc;
	document.getElementById(theDescId).value = theDesc;
}

