[-

$escmode =0;

-]

[$ var $strip_id $strip $s @strips $]

[-

opendir ARCHIVE, $_[0]->component->cwd; #"."; #$r->component->cwd;

      

@strips =  ( undef, sort { $a cmp $b } grep /^Seraphi1_\d+/, readdir ARCHIVE );





closedir ARCHIVE;

$strip_id = $fdat{ 'page' };

$strip = $strips[ $strip_id ];

unless( $strip )

{

$strip_id = 1;

$strip = $strips[ 1 ];

}

-]

[-

sub page_title

{

my $s = shift;

$s =~ s/^.*_(.*)\..*$/page $1/;

$s =~ s/page/pages/ if $s =~ s/_/ and /;

return $s;

}

-]

[$ sub page $]

<div align=center>

<h5>[+ page_title( $strip ) +]</h5>

<!-- size must be 700 or 1400 -->

<IMG SRC="[+ $strip +]" >

[$ endsub $]



<html>



<head>	



<title>Andrew Dabb and Michel Lacombe's SERAPHI</title>



</head>



<body BGCOLOR="black" TEXT="white" LINK="lightgreen" VLINK="lightblue" ALINK="lightblue">



[- page() -]



<table width=100%>

<tr>



<TD align=center WIDTH=50%>

<P><A HREF="http://www.isabellestephen.com">Isabelle Stephen</A> is my model for this book's main character.</P>

[$ if $strip_id > 1 $]Previous: <A HREF="?page=[+ $strip_id -1 +]">[+ page_title( $strips[ $strip_id -1 ] ) +]</A>[$ endif $]

</TD>



<TD WIDTH=50% align=center>[$ if $strip_id < $#strips $]

Next: <A HREF="?page=[+ $strip_id +1 +]">[+ page_title( $strips[ $strip_id +1 ] ) +]</A>[$ endif $]

</TD>



</TR>

</table>





[$ var $i $s $]

<p><small>[$ foreach $i (1..$#strips) $]

[-  $s = $strips[ $i ]; $s =~ /1_(\d+_?\d+)\.gif/; $s = $1; $s =~ y/_/-/; -]

<a href="?page=[+ $i +]">[+ $s +]</a>&nbsp;[$ endforeach $]



</small></p>



</div>



</body>



</html>
