function createImageZoom(url, txt)
{
	txt = typeof(txt) != 'undefined' ? txt : "";
	if(document.getElementById("imageContainer"))
		return;
	var mObj = document.getElementsByTagName("body")[0].appendChild(document.createElement("div"));
	mObj.id = "imageContainer";
	mObj.style.height = document.body.scrollHeight + "px";
	var imgObj = mObj.appendChild(document.createElement("div"));
	imgObj.id = "imageBox";
//	if (!document.all)
//		imgObj.style.display = "none";
	var h1 = imgObj.appendChild(document.createElement("h1"));
	h1.appendChild(document.createTextNode(txt));
	var img = imgObj.appendChild(document.createElement("img"));
	img.alt = txt+" (Click to close)";
	img.setAttribute('src', url);
	imgObj.style.width = img.width+4+"px";
	var scrollAmt;
	if (document.documentElement && !document.documentElement.scrollTop) {	// IE6 +4.01 but no scrolling going on
		scrollAmt = "0px";
    } else if (document.documentElement && document.documentElement.scrollTop) {	// IE6 +4.01 and user has scrolled
		scrollAmt = document.documentElement.scrollTop + "px";
	} else if (document.body && document.body.scrollTop) {		// IE5 or DTD 3.2
		scrollAmt = document.body.scrollTop + "px";
    }
	imgObj.style.marginTop = scrollAmt;
	img.onload = function()			// Handle Moz centering
	{
		if (!document.all)
		{
			imgObj.style.display = "block"; 
			imgObj.style.position = "static";			
			imgObj.style.width = img.width+4+"px";
			imgObj.style.left = (window.innerWidth - (img.width+4)) / 2 + "px";
		}
	};
	imgObj.onclick = function()
	{
		removeImageZoom();	return false;
	};
	mObj.onclick = function()
	{
		removeImageZoom();	return false;
	};	
}

function removeImageZoom()
{
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("imageContainer"));
}
