// JavaScript Document
var imageViewer

function openWindow(imgSrc){
			
				expImg = new Image()
				imgUrl = imgSrc
				expImg.src = imgUrl
				loadImage()
				}
				
				function loadImage(){
				if(imageViewer){imageViewer.close();}
					if(expImg.width==0)
						{
						setTimeout ("loadImage()",100)
						}
					else
						{
						sHtml = "<title>&copy; Atreum.com</title><body  marginheight='0' marginwidth='0' leftmargin='0' topmargin='0'><img src='"+ imgUrl + "'></body>"
						imageViewer = window.open(imgUrl,"imageViewer","scrollbars=no,Height=" + expImg.height + ",Width=" + expImg.width + "")
						imageViewer.document.write(sHtml)
						}
				}