#!/usr/bin/perl
use lib '.';
require "pagelib.pl";
header();
head();

%used = ();

if($params{version} =~ /^([1234])$/) {
    $dir = "images/atat/v$params{version}";
} elsif($params{version} eq "ref") {
    $dir = "images/atat/ref";
} else {
    $dir = "images/atat/v4.2";
}

if(!opendir(DIR,$dir)) {
    print "Internal error locating images!<br>\n";
}

@files = readdir(DIR);
if($params{version} eq "ref") {
    foreach(@files) { push @images,$1 if(!/_th\.jpg/ && /^(\w+)\.jpg/); }
} else {
    foreach(@files) { push @images,$1 if(/^(\w*atat\d+)\.jpg/); }
}
print "<br><br>\n";
if($params{version} eq "1") {
    tabs();
    print qq`
Somewhere around 1994-95 \(about age 17-18\) I returned from my Dark Ages \(that period of time
during which one is \"too cool\" or \"too adult\" for Lego\). After rebuilding and then
dismantling all of my childhood sets, I was left to come up with some creations of my own.<br>
<br>
One day, while sitting amidst my bricks, I created a foot. \"Wow, that kinda looks like an AT-AT\'s
foot! I wonder how big it would be if I made the <b>rest</b> of it?\" What started as a foot
quickly became a grey leg-- which quickly became 4 <b>multicolored</b> legs. At that point, there
was no going back. I built the entire thing with glorious reds, blues, yellows and greys, all the
time knowing I didn\'t have enough grey to complete the whole thing in a solid color. But after a
quick purchase of some grey bulk bricks, I was able to rebuild it \(the first in a long line of
rebuilds\) using all grey, and a multicolored, undecorated interior. The final model was finished
sometime in the spring or summer of 1995.<br>
<br>
`;
    show_images(
		'v1_atat1',
		'v1_atat5',
		);
print qq`
<br><br>
Finally brave enough to show my then-secret creation to the world \(a.k.a. my parents\) I
decided to make a diorama for photographing. Without the vast amount of white bricks needed
to create a Lego terrain, I decided to use flour in place of snow for the scene. Great idea
in theory, right? Well, it turned out a little messy. While the snow effect came out well,
flour is tremendously difficult to deal with-- and it absoloutely loves to stick to the
underside of bricks! \(In the Empire Strikes Back model shop, they used baking soda.\)
<br><br>
`;

} elsif($params{version} eq "2") {
    tabs();
    print qq`
The year was 1999. And with my recent introduction into the Lego community, I wanted
to have something to show going in. Inspired by my past efforts, and vowing to do MUCH
better, I set about making an AT-AT in the spring of 1999. At the time, lots of people
were doing Star Wars creations, building up to the release of Episode I. But nobody had
any AT-AT pictures online that I knew of, so I figured this would be new, different,
and utterly cool.<br><br>
`;
    show_images(
		'v2_atat01',
		'v2_atat09',
		'v2_atat11',
		'v2_atat12',
		);
    print qq`
<br><br>
This \(sadly\) blew away my previous model in terms of detail, but as you can see, it
still lacked quite a bit, including a way for troops to exit \(or enter!\) the vehicle.
On the plus side, it featured a very spacious, non-multicolored interior, unlike its
predacessor. It was even accurate enough to have the correct crew positions in the
cockpit.<br><br>
`;

    show_images(
		'v2_atat03',
		'v2_atat04',
		'v2_atat05',
		'v2_atat06',
		'v2_atat07',
		'v2_atat08',
		);

    print qq`
<br><br>
Another feature of this one is that it features my first all-Lego snow-scheme, unlike
version 1, which used a sprinkling of Lego bricks, and a whole lot of flour for snow.<br><br>
`;

} elsif($params{version} eq "3") {
    tabs();
    print qq`
Soon after taking digital pictures of my 2nd version of the AT-AT, I made two
heartbreaking discoveries. The 1st was a Lego version of an AT-ST online, by Shaun
Sullivan \(<a href=\"http://www.brickshelf.com/cgi-bin/gallery.cgi?f=2273\">The
version I saw</a>, and <a href=\"http://www.brickshelf.com/cgi-bin/gallery.cgi?f=6509\">the
most recent version</a>\)
. It had such detail that made me realize my version of the AT-AT was
nowhere near up to snuff. The 2nd discovery was that Shaun was in the process
of making his <b>own</b> <a href=\"http://www.brickshelf.com/cgi-bin/gallery.cgi?f=2274\">AT-AT</a>.
I knew I had to do better.<br>
<br>
So, after several more months of work and a complete rebuild, I came up with a
new version. What\'s more, it turned out that Shaun was in the area-- and even
ended up joining the same local Lego club that I was in
\(<a href=\"http://www.nelug.org/\">NELUG</a>\). <b>And</b> as it happened, both Shaun
and I released our AT-AT\'s within 2 weeks of each other in the fall of 1999, having the
opportunity to display them both on the same layout at the MIT Mindfest only days
later.<br><br>
`;
    show_images(
		'v3_atat11',
		'v3_atat01',
		'v3_atat02',
		'v3_atat03',
		'v3_atat05',
		'v3_atat06',
		'v3_atat14',
		'v3_atat25',
		'v3_atat26',
		);

    print qq`
<br><br>Of course, after reading up on AT-AT\'s I found out that they are manned
by Imperial troops. Unfortunately, I wasn\'t sure which kind of Imperial troops they
meant, so I tried some shots with both kinds:<br><br>`;

    show_images(
		'v3_atat07',
		'v3_atat08',
		'v3_atat09',
		'v3_atat10',
		);

    print qq`
<br><br>This AT-AT featured a much more accurate interior, along with a speeder bike
hangar, capable of holding only <b>four</b> of my custom-made speeder bikes.<br><Br>
`;

    show_images(
		'v3_atat04',
		'v3_atat24',
		'v3_atat27',
		);

    print qq`
<br><br>Like both the AT-AT\'s that preceeded it, I also felt compelled to make a Hoth
layout for displaying it. For the 1st time, I built a snow-dusted rock wall where the
Rebel base was supposed to be, along with working bay doors.<br><br>
`;

} elsif($params{version} eq "4") {
    tabs();
    print qq`
<br><br>After seeing <a href=\"http://www.brickshelf.com/cgi-bin/gallery.cgi?f=2274\">Shaun\'s AT-AT</a>
in person, and getting other various ideas for
improving the model, I started making adjustments. But what started out as small
modifications quickly turned into a complete redesign. The entire version 3 AT-AT
came apart in favor of the newer, better, version 4, quite a while later in February
of 2001. Unfortunately, the pictures shown here aren\'t the best, but if you\'re
<b>that</b> curious, just check out version 4.2, which is nearly the same.<br><br>
`;
    show_images(
		'v4_atat01',
		'v4_atat02',
		'v4_atat03',
		'v4_atat04',
		'v4_atat05',
		'v4_atat06',
		'v4_atat35',
		'v4_atat36',
		'v4_atat37',
		'v4_atat38',
		'v4_atat39',
		'v4_atat40',
		'v4_atat41',
		'v4_atat42',
		'v4_atat43',
		'v4_atat44',
		'v4_atat45',
		);
    print qq`<br><br>
The head, while completely rebuilt, stayed very similar to version 3. It acquired a more
tiled look to hide the studs, and was extended by 1 stud. The chin guns were also modified
to be slightly larger.<br><br>
`;
    show_images(
		'v4_atat07',
		'v4_atat25',
		'v4_atat26',
		'v4_atat27',
		);
    print qq`<br><br>
The Interior changed quite a bit. Finally determined to get individual <b>seats</b> for the
troops inside, I had to play with lots of different arrangements before finally fitting all
40 troops. Unfortunately at the time these pictures were taken, I didn\'t yet have all matching
color chairs.<br>
<br>
The speeder bike bay also changed a lot from the rather ridiculous and impractical design used
before. To accomidate the 5th speeder bike as defined in Star Wars source material, the bikes
were now mounted on the walls, and a central ramp was added, upon which rested the 5th bike.<br><br>
`;
    show_images(
		'v4_atat20',
		'v4_atat21',
		'v4_atat22',
		'v4_atat23',
		'v4_atat24',
		'v4_atat28',
		'v4_atat29',
		);
    print qq`<br><br>
Probably the neatest change from version 3 to version 4 was the side bay doors. While the version
3 doors folded out and down, the new doors slid up and inside the AT-AT body, nearly hiding them
from view when open. This also had the added feature of keeping the outside smoother, as the new
doors were tiled, while the older doors had studs facing out. And what\'s the secret behind making
the doors lift up and stay there? Simpler than I had thought: a Lego rubber band.<br><br>
`;
    show_images(
		'v4_atat10',
		'v4_atat11',
		'v4_atat12',
		'v4_atat13',
		'v4_atat14',
		'v4_atat15',
		'v4_atat16',
		'v4_atat17',
		'v4_atat19',
		);
    print qq`<br><br>
I\'ve included some other pictures here-- again, apologies for the quality \(we had just acquired a
new camera and were playing around with various features\).<br><br>
`;
} elsif($params{version} eq "ref") {
    tabs();
    print qq`
<font size=+1><b>Scale</b></font><br>
<br>
So. How tall <b>is</b> an AT-AT? As you might guess, I\'ve done some checking on
this matter. Turns out, there\'s a whole bunch of ways to determine how tall an AT-AT
should be, depending on your sources, and how much you feel safe fudging. I\'ve
been able to get measurements as low as 49 feet and as much as 130.<br>
<br>
As you know if you\'re a big Star Wars fan, the movies are the real canon source as
far as things go. Anything written in a book or even invented by licensed authors
is \"2nd rate\" in comparison with something taken from the movies. I\'ll be looking
at both.<br>
<br>
<b>Canon Sources \(or, close to\)</b><br>
<br>
`;
    show_full_images('atats09');
    print qq`
<br><br>In this picture, we see Luke ascending up to the AT-AT\'s body. A great way to
determine potential scale. However, what\'s not really clear is how Luke is positioned.
Are his arms over his head? Is he holding something that makes him look taller? Are his
feet dangling? Given that Mark Hammil is supposedly 5\'9\" \(source: IMDB\) I calculated
the AT-AT's height between 73\' and 113\', depending on Luke\'s positioning.<br>
<br>
`;
    show_full_images('atats08');
    print qq`
<br><br>Another shot with Luke and the AT-AT, but this time, Luke\'s height is a lot
easier to determine. What\'s <b>not</b> so easy to determine here is the AT-AT\'s
full height in pixels, since it\'s obviously not shown. However, using a NON\-CANON
source \(the AT-AT blueprint shown below from <u>The Essential Guide to Vehicles and Vessels</u>\)
I calculated the AT-AT\'s height between 62\' and 75\', depending on how far forward
Luke is in this shot relative to the planted AT-AT foot.<br>
<br>
`;
    show_full_images('atats07');
    print qq`
<br><br>Here\'s a tricky one. The AT-AT foot appears to cover between \(about\) 87\% and
92\% of the Snowspeeder\'s length. But how long is a Snowspeeder? And how tall is the
rest of the AT-AT? Using some canon and some non-canon sources, I made high and low
estimates for the Snowspeeder\'s length, and again used the Essential Guide\'s blueprint.
\(I use that blueprint a lot!\) From these, I estimated the AT-AT height between 54\' and
67\'.<br>
<br>
`;
    show_full_images('atats04');
    print qq`
<br><br>Similar to the previous image, this calculation is again based on the relative
size of the Snowspeeder. Using dimentions again calculated from non-canon sources, I found
the AT-AT height for this snapshot to be between 85\' and 130\'. Notice the somewhat large
discrepancy again, due to the motion blur on the Snowspeeder, its odd angle, and its
relative position to the AT-AT body \(IE how far under the AT-AT is it?\).<br>
<br>
<b>Non-Canon Sources</b><br>
<br>
Probably the most commonly sourced height for an AT-AT is over 15 meters, or 50 feet tall.
Why? Probably because Lucas drew a round number out of his head and later, during the
making of the movie, wanted to increase the AT-AT\'s height to increase their intimidation
factor. Here are a few sources quoting roughly that height:<br>
<br>
<i>Essential Guide</i>: \"over 15 meters\" \(over 49.2 feet\)<br>
<i>Technical Journal</i>: \"16 meters\" \(52.5 feet\)<br>
<i>Guide to the Star Wars Universe</i>: \"over fifteen meters\"<br>
<i>Art of Empire Strikes Back</i>: \"fifty feet high\"<br>
<i>StarWars.com</i>: \"15.5 meters tall\" (2008), \"fifteen meters tall\" (2003)<br>
<br>
But those numbers really don't seem to be based on anything, especially considering that
the smallest possible measurement that I was able to get from the 4 above references was
54 feet. Hence, I typically treat this figure as kind of silly.<br>
`;
    show_full_images('atatscan');
    print qq`
<br><br>Using this blueprint found in <u>The Essential Guide to Vehicles and Vessels</u>,
we can take a good guess at AT-AT height, based on the fact that <b>somehow</b>, General
Veers apparently stands within the head of the AT-AT. Knowing that Julian Glover \(the
actor portraying Veers\) is 6\'3\" \(Source IMDB\), I found that in order to squeeze
Veers in, the AT-AT\'s height is at a minimum 49\'. And, at a \"best guess\", a maximum of
85\'.<br>
<br>
Other non-canon sources \(I haven\'t scanned the images\) for AT-AT height can be found in
the <u>Star Wars Incredible Cross Sections</u> and <u>Star Wars Technical Journal</u> books.
Both books feature views of the AT-AT with figures for scale. Using the Incredible Cross
Sections picture, I calculated an estimated height of 63\' to 72\'.<br>
<br>
The Technical Journal\'s image is a little harder to use, given that they only show a
cutaway for the AT-AT\'s body with figures for scale. Using other images for a relative
scale for the body in proportion to the legs, I came up with a resulting height of 57\' to
65\'.<br>
<br>
So what scale to choose? Here\'s a little chart of all the heights found above:<br><br>
`;
    show_full_images('sizechart');
print qq`
<br><br>Now, the average based on all the above estimates is about 72 feet. For the Lego
AT-AT, I used an estimated height of 75\', based on a minifig being about 6 feet tall.
\(Note that average human height is closer to 5.5 feet\).<br>
<br>
<font size=+1><b>AT-AT Features</b></font><br>
<br>
So what's inside an AT-AT?<br>
<br>
<b>Troop Seating</b> - Most \(if not all\) sources quote capacity for 40 troops inside the AT-AT.
Standing or sitting? Seats or benches? Not really clear.<br>
<br>The <i>Incredible Cross Sections</i> diagram shows troops seated (13 shown, 26 implied
with remaining seating not visible) mostly on the top \'deck\' of the AT-AT, with a cleared
staging area by the large doors in the lower middle section. Of interesting note is the fact
that the <i>Incredible Cross Sections</i> seat placement would seemingly block the forward,
upper-level escape hatches.<br>
<br>
The <i>Technical Journal</i> shows troop benches instead of seats, placed again on both decks,
but with a longer bench on the lower level rather than the upper level. The cutaway view, however,
neglects to show the large lower side boarding hatches, showing instead a large wall of \"piping
and conduits\", which leaves one to assume that there is only a boarding hatch on one side of
the AT-AT instead of on both sides.<br>
<br>
<b>Vehicle Bay</b> - Lots of sources also quote the AT-AT as having a vehicle bay, carrying 5
speeder bikes. Where it's located and how they get out is another question. The <i>Essential Guide</i>
and <i>Technical Journal</i> show the vehicle bay as being in the top-rear section of the AT-AT
body. The <i>Technical Journal</i> also shows a vehicle access hatch in the top rear panel for
exiting the AT-AT.<br>
<br>
The <i>Incredible Cross Sections</i> diagram shows the speeder bike garage on the lower rear
level, though doesn\'t show how the bikes exit. Assumedly the bikes are pulled into the central
lower level staging area and exit through the large bay doors along with troops. Also of
quasi-interesting note, the <i>Cross Sections</i> book shows a white/grey version of the Speeder
Bike stored in the AT-AT, unlike the browner/dark-grey version shown in the films.<br>
<br>
And in case that wasn\'t enough, the <i>Star Wars Source Book</i> reports that some variations
of AT-AT walkers are modified to fit two scout walkers inside them. How <b>that\'s</b> possible,
assuming they mean AT-ST\'s on the scale of the ones shown in Return of the Jedi, is beyond me-- but
I\'d love to see a version done that way!<br>
<br>
<b>Engine Room</b> - While most of the engine is apparetnly positioned in two large cylinders
underneath the body of the AT-AT, an engine room is shown inside the body in both the <i>Cross
Sections</i> and <i>Technical Journal</i> cutaways. The <i>Cross Sections</i> diagram\'s placement
of the engine room \(top rear area\) seems to \(again\) conflict with the top-level rear escape
hatches. The <i>Technical Journal</i>'s diagram shows the engine room in the lower rear section of
the AT-AT, which seems more likely, given its proximity to the drive cylinders underneath the
AT-AT body.<br>
<br>
<font size=+1><b>Mobility/Speed</b></font><br>
<br>
So, how fast do those walkers really go? Most sources will tell you that they can go up to 60kph
(a little over 37mph). Did they go that fast in the movie? Nope. In the movie, the walker moves each
foot individually, so it\'s always got at least 3 feet on the ground. Each step takes about 1 second
(a little over 1 second by repeated stopwatch estimates), and is slightly over 1 \"AT-AT foot\" long.
So that means the AT-AT\'s in the movie are moving a little more than 1 foot-length per 4 seconds.
And how long is an AT-AT foot? Using the 49\' - 130\' estimates, an AT-AT foot is about 11.5\' - 31\',
most likely a bit under 18\'. How fast is that? Between 3kph (2mph) and 9kph (5.6mph), most likely
around 5.4kph (3.4mph). Pretty depressingly slow, huh? \(That\'s about regular human walking speed\).<br>
<br>
In order to get to the staggering (in comparison) 60kph speed, the AT-AT\'s probably have to walk with
only <b>2</b> feet on the ground at a time instead of 3. And how big of a stride would it take? Assuming
we do something almost reasonable and expect a maximum leg speed of 1 stride per 3/4 second, that\'s
2400 strides per hour, meaning each \"stride\" would be almost <b>82 feet long</b>! Can an AT-AT even
<b>do</b> that? Technically, yes. Probably not. Why not? It\'s kinda funny:<br>
<br>
If you look at the AT-AT leg, you'll notice there are actually 4 joints:<br>
<img src=\"images/atat/walking/knowyouratat.GIF\"><br>
What\'s that extra leg segment (A) do? It keeps the body of the AT-AT more or less level when walking,
allowing the regular hip joint (angle beta) to sag a little during a step. Now, this means an AT-AT can
take a stride up to about 51 feet without any up-and-down or side-to-side motion in the AT-AT body. Any
larger than that, and the body starts jerking up and down. So what happens with the 82 foot stride
necessary to get the AT-AT up to 60kph? You get an AT-AT that bounces along merrily, looking like something
from out of a Pepe Le Pew cartoon. A very amusing thought, especially considering the toll it would take on
any passengers.<br>
<br>
But that's assuming that 3/4 second foot stride. What if it\'s more? How about less? In order to pull off
60kph with a 51 stride, the stride time has to be about 0.47 seconds. Pretty darn fast. Plausible? I suppose
being science fiction anyway, sure! And what if it were a 1-second leg stride like in the movie? It would
require a stride length of 109 feet! And that\'s actually not possible for the AT-AT to do \(unless it is
indeed bounding through the air\).<br>
<br>
The AT-AT's motion was based on the movements of elephants-- so if we assume an elephant as a model, we
could also arrive at top speeds of 60+ kph. Elephants are typically between 3-4 meters tall, and can reach
speeds of up to 25kph. An AT-AT is at <i>least</i> 3.5 times as tall, and reportedly only 2.4 times as
fast. Hence, by sheer ratio, an AT-AT would easily be capable of 60kph speeds. However, that does imply
elephant-like motion, which at 25kph, requires elephants to run with sometimes only a single foot touching
the ground.<br>
<br>
<font size=+1><b>Exits</b></font><br>
<br>
When designing the Star Wars toys, Kenner quickly realized they had no idea how troops were intended to
leave the AT-AT. And after asking Lucas, they were no better off. So the question became answered by
various \"non-canon\" sources. Up until the release of the <i>Incredible Cross Sections</i>, it seems
most sources held that AT-AT\'s \"kneeled\" to release their troops, lowering ramps for troops to run
out on.<br>
<br>
However, it seems a little impractical to stop the vehicle to release troops, not to mention rather
tricky from a design standpoint. The <i>Cross Sections</i> book offered a more plausible solution, wherein
troops descended from the sides of the walker via zip lines extended on booms from the main body and
reaching down to the ground.<br>
<br>
<font size=+1><b>Links</b></font><br>
<a href=\"http://www.theforce.net/swtc/walkers.html\#atat\">Star Wars Technical Commentaries</a> - Lots of detail on the walkers \(dunno where he pulls that \"10 meter stride\" from, but otherwise, pretty accurate info.<br>
<br>
<a href=\"http://www.gilsostartrekschematics.co.uk/starwars/swbprint2/starwars2.html\">Blueprints</a> - Great collection of blueprints, appears to be retraced from <i>The Essential Guide</i>.<br>
<br>
<a href=\"http://www.starwars.com/databank/vehicle/atat/index.html\">Official Stuff</a> - Not overly useful for model building, but some interesting tidbits.<br>
<br>
<font size=+1><b>Other Canon Images</b></font><br>
<br>
`;
    show_full_images(
                     'cockpit',
                     'atats01',
                     'atats02',
                     'atats03',
                     'atats05',
                     'atats06',
                    );
    foreach(@images) { $used{$_} = 1; }
    print qq`<br><font size=+1><b>Non-Canon Images</b></font><br>
<br>
The below images are non-canon (I've collected them from the internet, and are used below
without express permission), but they're pretty helpful for reference.<br>
`;
    show_th_images(
                     'rear.jpg',       #1
                     #'atathatch2.jpg', #6
                     'underhead.jpg',  #7
                     'ref_4d.jpg',     #11
                     'falldown.jpg',   #17
                     'ref_4c.jpg',     #2
                     'ref_3f.jpg',     #10
                     'ref_4e.jpg',     #12
                     'ref_4g.jpg',     #16
                     'ref_3c.jpg',     #3
                     'ref_4f.jpg',     #8
                     'ref_4b.jpg',     #13
                     'ref_3g.jpg',     #18
                     'ref_3b.jpg',     #4
                     'ref_3e.jpg',     #9
                     'ref_3a.jpg',     #14
                     'ref_3d.jpg',     #19
                     'atat.jpg',       #5
                     'cross_section.jpg',#6
                     'ref_4a.jpg',     #15
                     'imp11.jpg',      #20
                    );
} elsif($params{version} eq "faq") {
    tabs();
    print qq`
<font size=+1><b>Frequently Asked Questions about the AT-AT</b></font><br>
<br>
<table>
<tr><td colspan=2>&#149;&nbsp;<b>How many pieces are in the AT-AT?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>While I haven\'t actually counted piece for piece, I\'ve done a little bit of counting and a lot of estimation. My best guess is there are roughly 4,887 pieces in the current version of the AT-AT.<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>How much does the AT-AT weigh?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>Ok, this isn't actually a frequently asked question, but I wondered myself, and I weighed the AT-AT at about 10.5 pounds (4.762 kg).<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>How long did it take you to build?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>This one\'s always tricky to answer. The latest version was constructed and modified over the course of a year and a half, but the vast majority of construction was done in about 2 months of off-and-on building.<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>Where\'d you get all the pieces?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>99\% of the pieces came from my already existing collection. At the time version 4 was built I had a collection of about 100,000 pieces. The remainder of pieces were either bought from sets (like the Droid Escape set specifically for 1/4 8x8 rounded plates, or the Landspeeder set for black chairs), or purchased through <a href=\"http://www.bricklink.com/\">BrickLink</a>.<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>How much did it cost to build?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>Another tough one to answer. As I noted in the previous answer, I already had a lot of the pieces in my collection, so I didn\'t need to buy a lot of the parts. I\'ve estimated that it would probably take between \$500 and \$2,000 to purchase the parts, depending on where you got them. Oh, and just out of my own curiosity, I estimated that <b>just</b> the plain grey tiles needed would cost a little more than \$200, if purchased on BrickLink.<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>Do the knees bend?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>Short answer is \"no\", but the long answer is \"kinda\". After trying a bunch of different designs for the knees \(and other leg joints\), I found that nothing I could come up with was able to support the weight of the body, yet still fit within the \"correct\" scale. As a result, I kept the last thing I tried: Lego click-hinges. These I locked in place, so that while standing, they won\'t bend. However, when the legs don\'t need to support weight, they can bend a bit \(only about 45\&deg;\).<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>Can I buy your AT-AT?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>No. Well, ok, yes. I admit I\'d sell out if offered enough money. But you probably would think it\'s too expensive. You\'d  be right. Seeing as how the pieces alone cost ballpark \$1,250, it would cost at least that. And if you still want to buy it and that number doesn\'t scare you off, just drop me a note and I\'ll send you a price that probably <b>will</b> scare you off. Anyway, back to the short answer: It\'s not for sale.<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>How much would Lego charge for the set?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>If Lego produced it, they could certainly charge a lot less than me :\) And since they generally charge \$0.10 per piece \(USD\), probably between \$400 and \$500.<br><br></td></tr>
<tr><td colspan=2>&#149;&nbsp;&nbsp;<b>Do you have instructions for the AT-AT?</b></td></tr>
<tr><td>&nbsp;&nbsp;</td><td>Not yet. Maybe not ever-- that depends. I once started instructions \(in DAT form\) for version 4, but I stopped after modelling in MLCad started getting to be too much. I may finish them one day and release them, but not for a while yet, if so.<br><br></td></tr>
</table>
`;
    foreach(@images) { $used{$_} = 1; }

#Question format
#<tr><td colspan=2>&#149;&nbsp;&nbsp;<b></b></td></tr>
#<tr><td>&nbsp;&nbsp;</td><td><br><br></td></tr>
#<tr><td colspan=2>&#149;&nbsp;&nbsp;<b></b></td></tr>
#<tr><td>&nbsp;&nbsp;</td><td><br><br></td></tr>

} else {
    print qq`
This is my most recent \(and likely final\) version of the AT-AT
from March of 2001. All in all, I\'ve built 4 AT-AT\'s \'from
scratch\', none of which have ever been together at the same time.
If you\'re curious to see other versions, check out:<br><br>
`;

    tabs();
    
    print qq`<br>
<font size=+1><b>AT-AT Version 4.2</b></font><br>
<br>
What\'s new in 4.2 from 4.0? Not too much that\'s noticeable. The feet have been
\"tiled over\", as have the top edges of the AT-AT\'s front and rear sides. Also,
the speeder bike garage has been revamped to accomidate a new, more accurate
version of the speeder.<br>
<br>
And what about the Hoth Layout? Like all 3 versions before it, this version <b>also</b>
was displayed in a re-enactment of the <i>Empire Strikes Back</i> battle with a Hoth
scene. But because of the number of pictures, and the detail that went into the
newer Hoth base, it gets <b>two</b> pages. One for the <a href=\"echobase.cgi\">base itself</a>, and one for the
<a href=\"hoth_brickfest.cgi\">entire layout</a>, which made its debut at <a href=\"http://www.brickfest.com/\">BrickFest</a>
in 2002.<br><br>
`;
    show_images(
		'atat01',
		'atat04',
		'atat15',
		'atat16',
		'atat17',
		'atat18',
		'atat22',
		'atat23',
		);
    
    print qq`
<br>
<font size=+1><b>The Head</b></font><br>
<br>
The head is really the only interior section of the AT-AT ever
featured in the Star Wars movies. And even then you don\'t get to
see much of it. My version is missing a few things \(like the
overhead displays for the crew\), but I managed to squeeze in a few
details like the \"stripes\" above and beside the door, the door itself
\(fixed\), and the retractable periscope for the commander.
    `;

     show_images(
		 'atat05',
		 'atat13',
		 'atat14',
		 'atat19',
		 'atat20',
		 'atat40',
		 'atat41',
		 'atat42',
		 'atat43',
		 'atat44',
		 );
    print qq`
<br>
<font size=+1><b>The Interior</b></font><br>
<br>
The AT-AT features:<br>
    - Seating for 40 minifigs \(plus 2 in the head \[the commander stands!\]\)<br>
    - 4 Zip lines which extend out the large bay doors for troop descent<br>
    - A detailed yet useless engine room \(lower rear level\)<br>
    - Speeder bike garage for up to 5 bikes<br>
    - A retractable ladder to travel between levels<br>
    - A 2nd retractable ladder to pop out of an escape hatch on the roof<br>
    - 4 working side escape hatches \(plus 2 that are just for show\)<br>
    - 2 large working bay doors \(supported by rubber bands\)<br>
<br>`;

    show_images(
		'atat26',
		'atat27',
		'atat28',
		'atat29',
		'atat30',
		'atat31',
		'atat32',
		'atat33',
		'atat34',
		'atat35',
		'atat36',
		'atat37',
		'atat38',
		'atat39',
		);
    
    print qq`
<br>
<font size=+1><b>Scale</b></font><br>
<br>
Out of curiousity, I overlayed the \"standard\" blueprint of the AT-AT
over one of my pictures to test out how close it came. And just to be
a little bit more persnickity, I also drew out my AT-AT as it would look
straight-on to avoid the fish-eye factor of our friend, optics.<br><br>
`;
    show_images(
		'atat45',
		'atat46',
		);
    
    print qq`
<br>
<font size=+1><b>More Pictures</b></font><br>
<br>
`;
}
#every page can do this
show_images(@images);
foot();


sub tabs {
    my($version) = $params{version} || '4.2';
    print "<table border=1 width=100\%><tr>\n";
    foreach('1','2','3','4','4.2') {
	print "<td align=center>";
	print (($version ne $_) ? "<a href=\"atat.cgi?version=$_\">Version $_</a>" : "<b>Version $_</b>");
	print "</td>\n";
    }
    print "<td align=center>";
    print (($version ne "ref") ? "<a href=\"atat.cgi?version=ref\">AT-AT Reference</a>" : "<b>AT-AT Reference</b>");
    print "</td>\n";
    print "<td align=center>";
    print (($version ne "faq") ? "<a href=\"atat.cgi?version=faq\">F.A.Q.</a>" : "<b>F.A.Q.</b>");
    print "</td>\n";
    print "</tr></table><br>\n";
}

sub show_images {
    my(@pics) = @_;
    my($i) = 0;
    print "<table width=100\%><tr>\n";
    foreach(@pics) {
	next if($used{$_});
	$used{$_} = 1;
	if(!($i++%4)) {
	    print "</tr>\n<tr>\n";
	}
	print "<td align=center><a href=\"$dir/$_.jpg\"><img src=\"$dir/$_\_th.jpg\" border=0></a></td>\n";
    }
    print "</tr></table>\n";
}

sub show_full_images {
    my(@pics) = @_;
    print "<table width=100\%>\n";
    foreach(@pics) {
	next if($used{$_});
	$used{$_} = 1;
	print "<tr><td align=center><a href=\"$dir/$_.jpg\"><img src=\"$dir/$_.jpg\" border=0></a></td></tr>\n";
    }
    print "</table>\n";
}

sub show_th_images {
    my(@pics) = @_;
    print "<table>\n";
    my($row,$col) = (0,0);
    foreach my $img (@pics) {
	if($col == 0) { print "<tr>\n"; }
	print "<td><a href=\"$dir/$img\"><img src=\"$dir/$img\" height=120 border=0></a></td>\n";
	$col++;
	if($col > 3) { $col = 0; print "</tr>\n"; }
    }
    print "</table>\n";
}
