function hide_zoom() {
	document.getElementById("zoomed_img").style.display='none';
}

function show_orig_img(id) {
	var obj = document.getElementById(id);
	var zobj = document.getElementById("zoomed_img");
	if (obj && zobj) {
		var orig_file = obj.getAttribute("orig_img");
		if (orig_file && orig_file.length>0) {
			var width = obj.getAttribute("orig_img_width");
			var height = obj.getAttribute("orig_img_height");
			var top = 0, left = 0;
			do {
				top += obj.offsetTop  || 0;
				left += obj.offsetLeft || 0;
				obj = obj.offsetParent;
				if (obj) {
					if(obj.tagName=='BODY') break;
					var p = obj.style['position'];
					if (p == 'relative' || p == 'absolute') break;
				}
			} while (obj);
			zobj.innerHTML = '<img src="'+orig_file+'" border="0" style="cursor:pointer;" onClick="hide_zoom()" />';
			zobj.style.left = left + 'px';
			zobj.style.top = top + 'px';
			zobj.style.width = top + 'px';
			zobj.style.height = height + 'px';
			zobj.style.display = '';
		}
	}
}