function showPhoto(theId, theLang, thePhotonum) {
	w_width = 700;
	w_height = 650;
	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_products_08/showphoto.php?pageid=' + theId + '&lang=' + theLang + '&photonum=' + thePhotonum;
  window.showPhotoWindow = open(fparam, 'showPhotoWindow', theWindowParam);
	setTimeout('if(showPhotoWindow&&!showPhotoWindow.closed)showPhotoWindow.focus()',100);
}
function showPhoto2(theId, theLang) {
	w_width = 700;
	w_height = 700;
	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_products_08/showframe.php?pageid=' + theId+'&lang=' + theLang;
  window.showPhoto2Window = open(fparam, 'showPhoto2Window', theWindowParam);
	setTimeout('if(showPhoto2Window&&!showPhoto2Window.closed)showPhoto2Window.focus()',100);
}
function photoGallery(theId, theLang) {
	w_width = 620;
	w_height = 650;
	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_products_08/showphotogallery.php?pageid=' + theId + '&lang=' + theLang;
  window.photoGalleryWindow = open(fparam, 'photoGalleryWindow', theWindowParam);
	setTimeout('if(photoGalleryWindow&&!photoGalleryWindow.closed)photoGalleryWindow.focus()',100);
}
function ShowPhotoSrc(theId, thePhoto, theDescId, theDesc) {
	if (document.getElementById) {
		var c = document.getElementById(theId);
		if (c.style.display != "block") {
			c.innerHTML = '<img src="' + thePhoto + '">';
		} else {
			c.innerHTML = '<img src="../../layout/images/transparent.gif">';
			c.style.display="none";
		}
	}
	document.getElementById(theId).alt = theDesc;
	document.getElementById(theDescId).value = theDesc;
}



