//1. This few line of code are adding the iFrame to the document. The Width and Height are 1 so it is invisible:
if (navigator.appName == "Microsoft Internet Explorer")
	{
	document.write("<p><iframe name='I1' src='/ZoomImages/MiniWind.htm' style='visibility:hidden' target='_top' " + 
	"marginwidth='1' marginheight='1' border='0' frameborder='0' scrolling='no'" + 
	"style='position:absolute;FILTER: progid:DXImageTransform.Microsoft.dropShadow(Color=999999,offX=5,offY=5,positive=true);'></iframe></p>")
	}

//2. This function will set the Width and Height, Lef and Right of the iFrame and load the LARGE image in it:
function setFrame(oImg)
	{
	if (navigator.appName !== "Microsoft Internet Explorer")
		{
		return
		}

	oImg.style.cusror="crosshair"

	var cSrc = oImg.src, nWidth=400,nHeight=350,
		oObject=oImg.offsetParent,
		nTop=oImg.offsetTop,
		nLeft=oImg.offsetLeft

	while (oObject!==null)
		{
		nTop = nTop + oObject.offsetTop
		nLeft = nLeft + oObject.offsetLeft
		oObject = oObject.offsetParent
		}

	if (nLeft + oImg.width + nWidth < 1024)
		{
		nLeft = nLeft + oImg.width + 10
		}
		else
		{
		nLeft = nLeft - nWidth - 10
		}

	cSrc = cSrc.substr(cSrc.lastIndexOf("/") + 1)
	document.all.I1.style.width=nWidth
	document.all.I1.style.height=nHeight
	document.all.I1.style.posTop = nTop
	document.all.I1.style.posLeft = nLeft // (screen.width - nWidth) / 2
	document.all.I1.style.visibility="visible"
	window.I1.Pic1.src="../ZoomImages/ZoomImages/" + cSrc
	}

//3. This function hide the frame when mouse goes off the image
function hideFrame()
	{
	if (navigator.appName !== "Microsoft Internet Explorer")
		{
		return
		}
	window.I1.Pic1.src=""
	document.all.I1.style.visibility="hidden"
	}

//4. This function is scrolling the image in the fram according to mouse movement.
function moveImage(oImg)
	{
	if (navigator.appName !== "Microsoft Internet Explorer")
		{
		return
		}
	var wRat = I1.Pic1.offsetWidth / oImg.width, 
		hRat = I1.Pic1.offsetHeight / oImg.height
	I1.Pic1.style.left = (-event.offsetX * wRat) + document.all.I1.offsetWidth / 2
	I1.Pic1.style.top = (-event.offsetY * hRat) + document.all.I1.offsetHeight / 2
	}
