///////////////////////////////////////////////////////////////////
// popItUp
//
// Loads a picture into a pop-up window
//
// picture_location: the URI of the picture
// dimensions: a string of the form 'width=W, height=H' 
// where W and H are the width and the height 
// of the picture respectively

function popItUp(picture_location, dimensions) 
{
  newwindow = window.open('','_blank', dimensions);
  newwindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html14/strict.dtd">');
  newwindow.document.write('<html>');
  newwindow.document.write('<head><title>Popup</title><style type="text/css">body { margin: 0; }</style></head>');
  newwindow.document.write('<body><img src="' + picture_location + '"/></body>')
  newwindow.document.write('</html>');
}


///////////////////////////////////////////////////////////////////
// Creates a rollover effect
//

function buttondown( buttonname )
{
    if (document.images) {
      document[buttonname].src = eval( buttonname + "down.src" );
    }
}

function buttonup ( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
}