// This script opens a new browser window and writes
// HTML to display an image with a title and caption

function show_photo( pFileName, pTitle, pCaption) {

// specify window parameters
  photoWin = window.open( "", "photo", "width=1300,height=985,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");

// wrote content to window
  photoWin.document.write('<html><head><title>Active Endpoints</title></head>');
  photoWin.document.write('<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#1e4c7f VLINK=#1e4c7f>');
  photoWin.document.write('<center>');
  photoWin.document.write('<font size=+1 face="arial,helvetica" color=#1e4c7f>' + pCaption + '</font><br>');
  photoWin.document.write('<img src="' + pFileName + '"><p>');
  photoWin.document.write('<font face="arial,helvetica,sans-serif">');
  photoWin.document.write('&copy; 2009 Active Endpoints<br>');
  photoWin.document.write('<br><a href="javascript:self.close();">Close window<br>');
  photoWin.document.write('<p></font></body></html>');
  photoWin.document.close();

// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") photoWin.focus();

}

function show_video( pFileName, pTitle, pCaption) {

// specify window parameters
  photoWin = window.open( "", "photo", "width=350,height=300,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");

// wrote content to window
  photoWin.document.write('<html><head><title>Active Endpoints</title><link href="printstyles.css" rel="stylesheet" type="text/css" media="print" /></head>');
  photoWin.document.write('<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#1e4c7f VLINK=#1e4c7f>');
  photoWin.document.write('<center>');
  photoWin.document.write('<font size=+1 face="arial,helvetica,sans-serif" color=#1e4c7f>' + pCaption + '</font><br>');
  photoWin.document.write('<embed src="' + pFileName + '" width="320" height="255"</embed><p>');
  photoWin.document.write('<font face="arial,helvetica,sans-serif">');
  photoWin.document.write('&copy; 2009 Active Endpoints<br>');
  photoWin.document.write('<br><a href="javascript:self.close();">Close window<br>');
  photoWin.document.write('<p></font></body></html>');
  photoWin.document.close();

// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") photoWin.focus();

}
