function goMoveMedBox(e) {
				var zoom = document.getElementById('zoom');
				var box = document.getElementById('medBox');
				var enl = document.getElementById('zBox');
				var Large = document.getElementById('LargePic');

			    var Pic = Large.src;
			    var dot = Pic.lastIndexOf('.');
			    var Jay = Pic.lastIndexOf('j');
			    var Pee = Pic.lastIndexOf('p');
			    var Gee = Pic.lastIndexOf('g');
				
				if((dot == -1) || (Jay == -1) || (Pee == -1) || (Gee == -1)) {
				    return;
				}
				
				if((dot == (Jay+1)) || (Jay == (Pee+1)) || (Pee == (Gee+1))){
				    return;
				}
				
				var x = (document.all) ? event.x : e.pageX
				var y = (document.all) ? event.y : e.pageY
				
				var boxL = (document.all) ? box.offsetLeft : box.parentNode.offsetLeft 
				var boxT = (document.all) ? box.offsetTop : box.parentNode.offsetTop
				
				var relX = x - boxL;
				var relY = y - boxT;
				
				var boxW = box.offsetWidth;
				var boxH = box.offsetHeight;
				
				var enlW = enl.offsetWidth;
				var enlH = enl.offsetHeight;
				
				var enlSW = enl.scrollWidth;
				var enlSH = enl.scrollHeight;
				zoom.style.width = '0px';
				zoom.style.height = '0px';
				if (enlSW > 0) {
				   zoom.style.width = Math.floor(enlW / enlSW * boxW) + 'px';
				}
				if (enlSH > 0) {
				   zoom.style.height = Math.floor(enlH / enlSH * boxH) + 'px';
				}
				var zH = zoom.offsetHeight;
				var zW = zoom.offsetWidth;
				
				var zt = relY - Math.floor(zH / 2);
				var zl = relX - Math.floor(zW / 2);
				
				if (zt < 0)
					zt = 0;
				else if (zt > boxH - zH)
					zt = boxH - zH;
					
				if (zl < 0)
					zl = 0;
				else if (zl > boxW - zW)
					zl = boxW - zW;
				
				zoom.style.top = (document.all) ? (boxT + zt) + 'px' : (zt) + 'px'
				zoom.style.left = (document.all) ? (boxL + zl) + 'px' : (zl) + 'px'
				zoom.style.visibility = 'visible';
				
				enl.style.visibility = 'visible';
				enl.scrollLeft = Math.floor(relX / boxW * enlSW - enlW / 2);
				enl.scrollTop = Math.floor(relY / boxH * enlSH - enlH / 2);
				enl.style.top = (document.all) ? (boxT) + 'px' : (boxT - boxT) + 'px'
				enl.style.left = (document.all) ? (boxL + boxW + 9)  + 'px' : (boxL + boxW + 9 - boxL)  + 'px'
			}
			
			function hideZoom() {
				var zoom = document.getElementById('zoom');
				var enl = document.getElementById('zBox');
				zoom.style.visibility = 'hidden';
				zoom.style.top = '-500px';
				zoom.style.left = '-500px';
				enl.style.visibility = 'hidden';
			}
			
			function ChangePics(image, Pic, medPic) {
			    var Medium = document.getElementById('MediumPic');
			    var Large = document.getElementById('LargePic');
			    var Thumb1 = document.getElementById('thumb1');
			    var Thumb2 = document.getElementById('thumb2');
			    var Thumb3 = document.getElementById('thumb3');
			    var Thumb4 = document.getElementById('thumb4');
			    
			    if (Thumb1) {
			        Thumb1.style.border = "none";
			    }
			    if (Thumb2) {
			        Thumb2.style.border = "none";
			    }
			    if (Thumb3) {
			        Thumb3.style.border = "none";
			    }
			    if (Thumb4) {
			        Thumb4.style.border = "none";
			    }
			    Pic.style.border = "solid 1px #CCC";
			    
			    Large.src = image;
			    Medium.src = image;
			    
			    if (medPic != 'False') {
			        Medium.src = medPic;
			    }
			}
