// library: image: common (filenamemacro=imagcomm.js) [kn, ni, tu, 23-09-2003  0:36:08]
function PROCImageCommon( imagefilenameS, mapfilenameS, directorynameS ) {
  var heightR = ( screen.height / 800 ) * 150;
  var widthR = ( screen.width / 1280 ) * 150;
  var maxR = 0.0;
  if ( heightR > widthR ) { // take the maximum of the sides for both, in order to get a square image
   maxR = heightR;
  }
  else {
   maxR = widthR;
  }
  document.write( '<TD' );
  document.write( '  style=width:' + 0.935 * screen.width + "px" );
  document.write( '  align="center"' );
  document.write( ">" );
  if ( imagefilenameS != "" ) {
   document.write( "<IMG" );
   document.write( '  style=height:' + maxR + "px" );
   document.write( '  style=width:' + maxR + "px" );
   document.write( '  src="' + imagefilenameS + '"' );
   document.write( '  usemap="#' + mapfilenameS + '"' );
   document.write( "/>" );
   //
   document.write( "<MAP" );
   document.write( '  name="' + mapfilenameS + '"' );
   document.write( ">" );
   //
   document.write( "<AREA" );
   document.write( '  coords="0,0,' + maxR + "," + maxR + '"' );
   document.write( '  href="' + directorynameS + '"' );
   document.write( '  shape="rect"' );
   document.write( "/>" );
   document.write( "</MAP>" );
  }
  document.write( "</TD>" );
}
