// You're pretty nosy aren't you! ;-)

function subWindow(URL,imageWidth,imageHeight)
{
  var windowWidth = imageWidth + 50;
  var windowHeight = imageHeight + 80;
  var scrollbars = "";
  if(windowHeight > screen.height)
  {
    scrollbars = 'scrollbars,';
    windowHeight = screen.height - 35;
  }
  var sub = window.open("","","" + scrollbars + "HEIGHT=" + windowHeight + ",WIDTH=" + windowWidth + 
                        ",screenX=" + (800-windowWidth)/2 + ",screenY=" + (screen.height-windowHeight-25)/2 + 
                        ",left=" + (800-windowWidth)/2 + ",top=" + (screen.height-windowHeight-25)/2);

  var HTML = "";
  HTML += "<html>";
  HTML += " <head>";
  HTML += " <title>Alan-Silvestri.com Picture</title>";
  HTML += " <link rel='stylesheet' type='text/css' href='http://www.alan-silvestri.com/style.css'>";
  HTML += " </head>";
  HTML += " <body style='margin-left:10px;margin-top:20px' topmargin='20' marginheight='20' onBlur=\"setTimeout('self.focus()',1000*60*5)\">";
  HTML += " <p align='center'>";
  HTML += " <img class='imageborder' src='" + URL + "' width='" + imageWidth + "' height='" + imageHeight +"'>";
  HTML += " <br><br><a href='javascript:self.close()'>close window</a></p>";
  HTML += " </body>";
  HTML += "</html>";
  sub.document.write(HTML);
  sub.document.close();
}


