Here is the content of the "Miscellany" page (You may want to expand the size of your browser window if the code is getting cut off, or better yet, go to the demo site and grab the source from there)
<?
php
$previousGallery = '/jungle.html';
$nextGallery = '/marbles.html';
$galleryName = 'misc';
$default = 'setFlash(1)';
include("$pagePath/galleryHeader.
php
");
$content[] = $gHeader;
$content[] = <<<HTML
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td valign="middle"><div id="detail"></div></td>
<td><img src="/graphics/dot_clear.gif" height="500" width="30"></td>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="5"><img src="/graphics/Misc_Header.jpg" height="36" width="273"></td></tr>
<tr><td colspan="5"><img src="/graphics/dot_clear.gif" height="5"></td></tr>
<tr><td colspan="5" onMou
seO
ver="highlightCell(this, '#202020')" onMou
seO
ut="highlightCell(this, 'transparent')" onClick="setFlash(0)">
<div class="arial"><font size="3">
Miscellaney is a word...</font></div>
</td></tr>
<tr><td colspan="5"><img src="/graphics/dot_clear.gif" height="15"></td></tr>
<tr>
<td><img src="/graphics/thumb/misc-01_thm.jpg" class="thumb" onClick="setFlash(1)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-02_thm.jpg" class="thumb" onClick="setImage(0)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-03_thm.jpg" class="thumb" onClick="setFlash(2)"></td>
</tr>
<tr><td colspan="5"><img src="/graphics/dot_clear.gif" class="vspace"></td></tr>
<tr>
<td><img src="/graphics/thumb/misc-04_thm.jpg" class="thumb" onClick="setImage(1)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-05_thm.jpg" class="thumb" onClick="setImage(2)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-06_thm.jpg" class="thumb" onClick="setImage(3)"></td>
</tr>
<tr><td colspan="5"><img src="/graphics/dot_clear.gif" class="vspace"></td></tr>
<tr>
<td><img src="/graphics/thumb/misc-07_thm.jpg" class="thumb" onClick="setImage(4)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-08_thm.jpg" class="thumb" onClick="setFlash(3)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-09_thm.jpg" class="thumb" onClick="setImage(5)"></td>
</tr>
<tr><td colspan="5"><img src="/graphics/dot_clear.gif" class="vspace"></td></tr>
<tr>
<td><img src="/graphics/thumb/misc-10_thm.jpg" class="thumb" onClick="setImage(6)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-11_thm.jpg" class="thumb" onClick="setFlash(4)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/misc-12_thm.jpg" class="thumb" onClick="setFlash(5)"></td>
</tr>
<tr><td colspan="5"><img src="/graphics/dot_clear.gif" class="vspace"></td></tr>
<tr>
<td><img src="/graphics/thumb/misc-13_thm.jpg" class="thumb" onClick="setImage(7)"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/thumb/plow.jpg" class="thumb" onClick="setImage(

"></td>
<td><img src="/graphics/dot_clear.gif" class="hspace"></td>
<td><img src="/graphics/dot_clear.gif" height="74" width="74"></td>
</tr>
</table>
</td>
</tr>
</table>
<script>
images[0] = new Image(500, 148);
images[0].src = '/graphics/misc-02.jpg';
images[1] = new Image(500, 375);
images[1].src = '/graphics/misc-04.jpg';
images[2] = new Image(500, 375);
images[2].src = '/graphics/misc-05.jpg';
images[3] = new Image(500, 331);
images[3].src = '/graphics/misc-06.jpg';
images[4] = new Image(500, 497);
images[4].src = '/graphics/misc-07.jpg';
images[5] = new Image(500, 371);
images[5].src = '/graphics/misc-09.jpg';
images[6] = new Image(249, 500);
images[6].src = '/graphics/misc-10.jpg';
images[7] = new Image(371, 500);
images[7].src = '/graphics/misc-13.jpg';
images[8] = new Image(500, 397);
images[8].src = '/graphics/plow_full.jpg';
flash[0] = '<div style="text-align:left; width: 90%" class="arial"><font size="3">
Text Removed<br><br>' +
'The content of this area has been removed' +
'<br><img src="/graphics/dot_clear.gif" height="150" width="1">';
flash[1] = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.
mac
romedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="500" id="misc-01" align="middle">' +
'<param name="movie" value="/graphics/misc-01.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#363636" />' +
'<embed src="/graphics/misc-01.swf" quality="high" bgcolor="#363636" width="500" height="500" name="misc-01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.
mac
romedia.com/go/getflashplayer" />' +
'</object>';
flash[2] = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.
mac
romedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="500" id="misc-03" align="middle">' +
'<param name="movie" value="/graphics/misc-03.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#363636" />' +
'<embed src="/graphics/misc-03.swf" quality="high" bgcolor="#363636" width="500" height="500" name="misc-03" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.
mac
romedia.com/go/getflashplayer" />' +
'</object>';
flash[3] = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.
mac
romedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="500" id="misc-08" align="middle">' +
'<param name="movie" value="/graphics/misc-08.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#363636" />' +
'<embed src="/graphics/misc-08.swf" quality="high" bgcolor="#363636" width="500" height="500" name="misc-08" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.
mac
romedia.com/go/getflashplayer" />' +
'</object>';
flash[4] = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.
mac
romedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="500" id="misc-011" align="middle">' +
'<param name="movie" value="/graphics/misc-011.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#363636" />' +
'<embed src="/graphics/misc-011.swf" quality="high" bgcolor="#363636" width="500" height="500" name="misc-011" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.
mac
romedia.com/go/getflashplayer" />' +
'</object>';
flash[5] = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.
mac
romedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="500" id="misc-12" align="middle">' +
'<param name="movie" value="/graphics/misc-12.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#363636" />' +
'<embed src="/graphics/misc-12.swf" quality="high" bgcolor="#363636" width="500" height="500" name="misc-12" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.
mac
romedia.com/go/getflashplayer" />' +
'</object>';
</script>
HTML;
$content[] = $gFooter;
?>
is beyond the scope of this article, but feel free to post questions about it if you wish.
The 2 essential elements of this file are the inclusion of the "galleryHeader.
" file, which contains the nav and look for the galleries, and the gallery content itself. As I'm sure you are starting to see, working in a hierarichy of files will make my work really easy if the client wants to change the look of all galleries... or the look of the header. The galleryHeader.
As with the theme header, this file's only responsibility is to populate the gHeader and gFooter variables so that they can be included as content at the end of the misc.
file.