#!/usr/bin/perl -w

use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);

print "Content-type: text/html\n\n";

# ------------------------------------------------------------ #

$image = param('pic');
if ( (!defined $image) || (!$image) ) {
  $image = 'repaint23.jpg' ;
}

# ------------------------------------------------------------ #

$image = './pics/'. $image;

    use Image::Size;
    ($globe_x, $globe_y) = imgsize($image);


# ------------------------------------------------------------ #
print qq(
<HTML>
  <head>
    <title>Making Trucks with C-Pod</title>
     <SCRIPT LANGUAGE="javascript">
       <!--
//         function MySize() {
           wide = $globe_x + 10 ; 
           tall = $globe_y + 40 ;
           if (wide > screen.availWidth) 
               wide = screen.availWidth 
           if (tall > screen.availHeight) 
               tall = screen.availHeight 
           x = (screen.availWidth /2) - (wide /2) 
           y = (screen.availHeight /2) - (tall /2) 
           if (x < 0) 
               x = 5 
           if (y < 0) 
               y = 5 
           window.resizeTo(wide,tall)   
           window.moveTo(x,y)  
//         }
       //-->
     </SCRIPT>
    <link HREF="style.css" REL=STYLESHEET TYPE="text/css">
  </head>
  <BODY  >

      <a href="javascript:void(0)" onClick="self.document.clear();self.close()">
        <img src="$image" width="$globe_x" height="$globe_y" border="0">
      </a>

  </BODY>
</HTML>
);

# ------------------------ #

$image = $globe_x = $globe_y = undef;

# EOF




