// Original script by Gabriel Caunt 7/30/98
// Updated by Paul Birkholz 10/18/01

var windowNumber =1;

// WindowScript.js
//
// Paul Birkholz / MWG-MWR, 2001


// Displays a picture in a slide-view window
// by generating HTML code on the fly
// and stuffing it into a new little slide window.

function showSlideh(thePicture) 
   {

   //change window size,scrollbars,etc as required
   myWindow = window.open("","myWindow"+windowNumber,"menubar=no,scrollbars=yes,width=640,height=470");

   //this second line is a workaround for a Mac browser bug - should roughly match line above
   window.open("","myWindow"+windowNumber,"menubar=no,scrollbars=yes,width=640,height=470");

   //open a stream for HTML output into the window
        myWindow.document.open();     
        myWindow.document.write("<HTML><HEAD>");

   //steal the new window's title from the window with the link.
        myWindow.document.write("<TITLE>"+self.document.title+"</TITLE>");
   //black background, as requested.
        myWindow.document.write("</HEAD><BODY BGCOLOR=000000 TEXT=FFFFFF>");
        myWindow.document.write("<CENTER><img src='" + thePicture + "' BORDER=1>") ;
        myWindow.document.write("</CENTER>");
        myWindow.document.write("</BODY></HTML>");
        myWindow.document.close();
        myWindow.focus();
   }

function showSlidev(thePicture) 
   {

   //change window size,scrollbars,etc as required
   myWindow = window.open("","myWindow"+windowNumber,"menubar=no,scrollbars=yes,width=490,height=640");

   //this second line is a workaround for a Mac browser bug - should roughly match line above
   window.open("","myWindow"+windowNumber,"menubar=no,scrollbars=yes,width=490,height=640");

   //open a stream for HTML output into the window
        myWindow.document.open();     
        myWindow.document.write("<HTML><HEAD>");

   //steal the new window's title from the window with the link.
        myWindow.document.write("<TITLE>"+self.document.title+"</TITLE>");
   //black background, as requested.
        myWindow.document.write("</HEAD><BODY BGCOLOR=000000 TEXT=FFFFFF>");
        myWindow.document.write("<CENTER><img src='" + thePicture + "' BORDER=1>") ;
        myWindow.document.write("</CENTER>");
        myWindow.document.write("</BODY></HTML>");
        myWindow.document.close();
        myWindow.focus();
   }
