	var showLarge_img = new Image();
	showLarge_img.div = document.createElement("div");
	function showLarge_onload(event) {
		var div = showLarge_img.div;
		var w = showLarge_img.width, h = showLarge_img.height;
		var wt = getScrollTop(), wl = getScrollLeft();
		var ww = getInnerWindowWidth(), wh = getInnerWindowHeight();
		var mw = ww*0.9, mh = wh*0.9;
		var zoom = 1;

		if (w > mw) {
			var scale = mw/w;
			w *= scale;
			h *= scale;
		}
		if (h > mh) {
			var scale = mh/h;
			w *= scale;
			h *= scale;
		}
		w *= zoom;
		h *= zoom;

		showLarge_img.alternateWidth = showLarge_img.width;
		showLarge_img.alternateHeight = showLarge_img.height;
		showLarge_img.width = w;
		showLarge_img.height = h;

		div.style.width = w+"px";
		div.style.height = (h+22)+"px";
		div.innerHTML = '<div class="imgFrameBar"><a href="javascript:dismissPopup(showLarge_img.div);dismissModalBackground();void(0);">X</a></div>';
		var link = document.createElement('a');
		setZoomCursor(showLarge_img, link);
		link.onclick = function() {
			var aWidth = this.firstChild.width;
			var aHeight = this.firstChild.height;
			this.firstChild.div.style.width = this.firstChild.alternateWidth+"px";
			this.firstChild.div.style.height = (this.firstChild.alternateHeight+22)+"px";
			this.firstChild.div.style.left = (getScrollLeft() + (getInnerWindowWidth()-this.firstChild.alternateWidth)/2)+"px";
			this.firstChild.width = this.firstChild.alternateWidth;
			this.firstChild.height = this.firstChild.alternateHeight;
			this.firstChild.alternateWidth = aWidth;
			this.firstChild.alternateHeight = aHeight;
			setZoomCursor(this.firstChild, this);
			return false;
		}
		link.appendChild(showLarge_img);
		div.appendChild(link);
		div.style.zIndex = 10000;

		popupElement(div, wt + ((wh-h)/2), wl + ((ww-w)/2));
		if (!ie6) {
			div.style.left = ((ww-w)/2)+"px";
			div.style.top = ((wh-h)/2)+"px";
			div.style.position = "fixed";
		}
		showModalBackground(div);
	}

	function setZoomCursor(img, link) {
		if (img.width < img.alternateWidth) {
			link.href = "javascript: Zoom this image";
			link.style.cursor = "url(/images/cursor_zoomin.cur), -moz-zoom-in";
		}
		else if (img.width > img.alternateWidth) {
			link.href = "javascript: Zoom out";
			link.style.cursor = "url(/images/cursor_zoomout.cur), -moz-zoom-out";
		}
	}

	function showLarge(link, event) {
		//div.style.top = document.body.scrollTop + "px";
		div = showLarge_img.div;
		div.className = "imgFrame";
		div.style.position = "absolute";
		div.style.width = "auto";
		div.style.height = "auto";
		div.innerHTML = "Loading...";
		popupElement(div, event.top+10, event.left);
		document.body.appendChild(div);

		showLarge_img = new Image();
		showLarge_img.onload = showLarge_onload;
		showLarge_img.div = div;
		showLarge_img.sourceLink = link;
		showLarge_img.src = link.href;
	}

