#!/bin/ksh

for file in Image*.html
do
   echo "$file ..."
   mv $file tmp.html
   sed -f htmlFiles.sed tmp.html > $file
   rm tmp.html
done
echo ""

for file in Thum*.html
do
   echo "$file ..."
   mv $file tmp.html
   sed -f thumbs.sed tmp.html > $file
   rm tmp.html
done

echo ""
echo "Processing index.html ..."
sed -f index.sed index.html > index.tmp
mv index.tmp index.html
