<h1>
	<a href='photosandvideos.php' title='Photos and Videos'>Photos and Videos</a>
</h1>
<p class='random_verse'>
<?php
echo "\"{$this->data['verse']->text}\" <span>{$this->data['verse']->ref}</span>";
?>
</p>
<ul class='page_toc'>
	<li><a href='photosandvideos.php#photoalbums'>Photo Albums</a></li>
	<li class='last'><a href='photosandvideos.php#videos'>Videos</a></li>
</ul>

<h2><a name='photoalbums'>Photo Albums</a></h2>
<?php foreach($this->data['xml']['albums']->album as $album): ?>
<?php if((int)$album->subalbumof == 0): ?>
<div class='album'>
	<a href="javascript:PopUp('/album.php?which=<?php echo $album['id'] ?>',660,580)">
		<img src="/site/graphics/photosandvideos/album_icon.gif" />
	</a>
	<br />
	<a href="javascript:PopUp('/album.php?which=<?php echo $album['id'] ?>',660,580)"><?php echo $album->name ?></a>
</div>
<?php endif; ?>
<?php endforeach; ?>

<h2><a name='videos'>Videos</a></h2>
<?php foreach($this->data['xml']['videos']->video as $video): ?>
<div class='video'>
	<a href="javascript:PopUp('/video.php?which=<?php echo $video->file ?>',380,320)">
		<img src="/site/graphics/photosandvideos/video_thumbs/<?php echo $video->image ?>" />
	</a>
	<br />
	<a href="javascript:PopUp('/video.php?which=<?php echo $video->file ?>',380,320)"><?php echo $video->name ?></a>
</div>
<?php endforeach; ?>
<div class='spacer'></div>

