+} // getPhotoToShow()
+
+/**
+ * a fake-zoom for photo
+ *
+ * a quick to let the browser do some zooming on
+ * photos.
+ */
+function zoom(mod)
+{
+ var photo;
+
+ if(mod == undefined)
+ return;
+
+ /* internet explorer */
+ if(document.images['photo'].width)
+ photo = document.images['photo'];
+
+ /* all others */
+ if(photo == undefined && document.getElementById('photo').width)
+ photo = document.getElementById('photo');
+
+ if(photo != undefined) {
+
+ if(origWidth == undefined)
+ origWidth = photo.width;
+ if(origHeight == undefined)
+ origHeight = photo.height;
+
+ if(mod != 0) {
+ new_w = photo.width * (1 + mod/100);
+ new_h = photo.height * (1 + mod/100);
+ photo.width = new_w;
+ photo.height = new_h;
+
+ if(photo_details_pos == undefined) {
+ photo_details_pos = findPos(document.getElementById('photo_details'),'left');
+ }
+
+ if((photo.offsetLeft + new_w) >= photo_details_pos-20) {
+ hidePhotoDetails('true');
+ }
+ else {
+ hidePhotoDetails('false');
+ }
+ }
+ else {
+ photo.width = origWidth;
+ photo.height = origHeight;
+ hidePhotoDetails('false');
+ }
+ }
+
+} // zoom()
+
+/**
+ * hides the photo details layin
+ *
+ * if the photo is getting zoomed quiet large, this will
+ * auto-hide (and also restore) the photo-details-box.
+ */
+function hidePhotoDetails(mode)
+{
+ var photo_details;
+
+ if(photo_details = document.getElementById('photo_details')) {
+ if(mode == 'true') {
+ photo_details.style.visibility = 'hidden';
+ photo_details.style.display = 'none';
+ }
+ else {
+ photo_details.style.visibility = 'visible';
+ photo_details.style.display = '';
+ }
+ }
+} // hidePhotoDetails()
+
+/**
+ * show calendar
+ */