// javascript to display an image
// downloaded from the internet (source unknown)
// modified to accept 'code' paramater for image URL [CEO 21-Oct-02]
// last edit: 07-Dec-02 [CEO] - new image directory
var faux = null;
var pic = new Image(); 

function showpic( pic, name, w, h, code ) {
   faux = window.open( '', 'newWin',
      'dependent,resizable,top=20,left=20,width=' + w + ',height=' + h );
   var fd = faux.document;
   if ( code == 0 ) {
      url = 'http://www.stephaniejoseph.com/img/' + pic;
   }
   if ( code == 1 ) {
      url = 'http://www.stephaniejoseph.com/picture_library/' + pic;
   }
   if ( code == 2 ) {
      url = 'http://www.stephaniejoseph.com/images/' + pic;
   }
   if ( code == 3 ) {
      url = 'http://www.stephaniejoseph.com/test/' + pic;
   }
   fd.open( );
   fd.write( '<title>' + name + '</title>' );
   fd.write( '<body bgcolor="ffffff" onLoad="window.focus( )" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">' );
   fd.write( '<img src="' + url + '" alt="' + name + '">' );
   fd.write( '</body>' );
   fd.close( );
} 

