#!/bin/csh -f


echo "<html><head>" > bg.html
echo "<title>Possible Backgrounds</title>" >> bg.html
echo '</head><body bgcolor="#000000" text="#ffaa00" link="#ffaa00" vlink="#ffaa00"><center>' >> bg.html

echo "<font size=+3><b>Possible backgrounds</b></font><p>" >> bg.html

echo "Click on a graphic to see it as a background.<p>" >> bg.html

echo '<p><center><img src="http://www.cs.ubc.ca/nest/imager/contributions/scharein/inlines/BRline1.gif" width=600 height=2><p>' >> bg.html
echo "<font size=+1><b>KnotPlot images</b></font><p>"  >> bg.html
echo Images in this section are created by   >> bg.html
echo '<a href="http://www.cs.ubc.ca/nest/imager/contributions/scharein/KnotPlot.html">KnotPlot</a>'   >> bg.html
echo and are all knots and links in disguise.   >> bg.html

pushd inlines/kp

foreach f (*.gif)
  
  set hf = "../../"$f:r".html"
  set hhf = $f:r".html"
  
  echo $f $hf $hhf

  echo "<html><body background=inlines/kp/"$f"></body></html>" > $hf
  echo "<p><a href="$hhf"><img border=0 src=inlines/kp/"$f"></a><p>" >> ../../bg.html

end

popd

echo '<p><center><img src="http://www.cs.ubc.ca/nest/imager/contributions/scharein/inlines/BRline1.gif" width=600 height=2><p>' >> bg.html
echo "<font size=+1><b>Cellular automata images</b></font><p>"  >> bg.html

pushd inlines/ca

foreach f (*.gif)
  
  set hf = "../../"$f:r".html"
  set hhf = $f:r".html"
  
  echo $f $hf $hhf

  echo "<html><body background=inlines/ca/"$f"></body></html>" > $hf
  echo "<p><a href="$hhf"><img border=0 src=inlines/ca/"$f"></a><p>" >> ../../bg.html

end

popd


echo '<p><center><img src="http://www.cs.ubc.ca/nest/imager/contributions/scharein/inlines/BRline1.gif" width=600 height=2><p>' >> bg.html


echo '<font size=1>&copy; Copyright 1996 <a href="http://www.cs.ubc.ca/spider/scharein">Rob Scharein</a>' >> bg.html

echo "</body></html>" >> bg.html

chmod -R ugo+r *

