var myWindow;

function doOpenImage(sImage)
{myWindow = window.open('','Image','width=100,height=100,top=0,left=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,screenX=100,screenY=100');	
myWindow.document.write ("<html><head><title>Mark and Katie's Wedding Website</title>");		
myWindow.document.write ("<script language='JavaScript'>");
myWindow.document.write ("function doResize(){");		
myWindow.document.write ("var sWidth = document.imgPicture.width;");		
myWindow.document.write ("var sHeight = document.imgPicture.height;");
myWindow.document.write ("var sLeft = (screen.width / 2) - (sWidth / 2);");
myWindow.document.write ("var sTop = (screen.height / 2) - (sHeight / 2);");		
myWindow.document.write ("window.resizeTo(sWidth + 10, sHeight + 59);");
myWindow.document.write ("window.moveTo(sLeft, sTop);");
myWindow.document.write ("self.defaultStatus = 'Mark and Katie\\'s Wedding Website';}");		
myWindow.document.write ("</script></head>");
myWindow.document.write ("<body topmargin='0' leftmargin='0' bgcolor='#FFFFFF'>");
myWindow.document.write ("<img src='"+sImage+"' name='imgPicture' onLoad='doResize()'>");
myWindow.document.write ("</body></html>");
myWindow.document.close();
myWindow.focus();}

function doCloseWindow()
{if(myWindow != null && !myWindow.closed)
myWindow.close();}

function doPreloadImage(sImage)
{image1=new Image();
image1.src=sImage;}
