#!/usr/bin/sh

echo "<html><head>"
echo "<title>Interactive Mathematics Miscellany and Puzzles</title>"
echo "<meta name=\"author\" value=\"Alexander Bogomolny\">"
echo "<meta name=\"description\" value=\"A site for teachers, parents and students that aims at fostering appreciation of mathematics and problem solving\">"
echo "<meta name=\"keywords\" value=\"mathematics,geometry,arithmetic,algebra,probability,logic,fallacies,social sciences\">"
echo "</head><body>"

echo "<h1>Interactive Mathematics and Puzzles</h3>"
echo "<p>The purpose of this site is set out in the Manifesto. You can navigate through the site with the help of red/yellow buttons at the top of every page, the left navigational bar, or a few buttons to the critical pages placed at the bottom of the site.</p>"

echo "<p>The site is a collection of K16 topics drawn from arithmetic,algebra,geometry,probability, logic, social sciences, math fallacies, visual illusions and a good deal of miscellany. More than 550 interactive Java illustrations help enliven some topics, while making others more comprehensible. One can get a good introduction at the <a href=content.shtml>contents</a> page.</p>"

echo "<p>I am convinced that mathematics should be studied because of its intrinsic beauty, not because of its utility.</p>"

for a in `find . -name "*.shtml" -print`
do
	case $a in
		"./everyones.shtml") ;;
		"./404.shtml") ;;
		"./403.shtml") ;;
		"./fullSite.shtml") ;;
		"./ReferTo.shtml") ;;
		"./GoogleTop.shtml") ;;
		"./TopFastclick.shtml") ;;
		"./recommend.shtml") ;;
		"./title.shtml") ;;
		"./topAd.shtml") ;;
		"./BottomNav.shtml") ;;
		"./topAdBurst.shtml") ;;
		"./pleasewait.shtml") ;;
		"./pressstop.shtml") ;;
		"./makesel.shtml") ;;
		"./index_b.shtml") ;;
		"./index1.shtml") ;;
		"./bottom.shtml") ;;
		"./MakeIdentity") ;;
		"./blank.shtml") ;;
		"./basicL0.shtml") ;;
		"./basicL1.shtml") ;;
		"./basicR0.shtml") ;;
		"./basicR1.shtml") ;;
		"./Outline") ;;
		"./GoogleTop.shtml") ;;
		"./FastclickTop.shtml") ;;
		"./AResume.shtml") ;;
		"./google14c5807cc4310e9f.shtml") ;;
		"./AdLinkUnit.shtml") ;;
                "./GoogleSearch.shtml") ;;
                "./FastclickTop.shtml") ;;
                "./fastclick.shtml") ;;
                "./errors/blank.shtml") ;;
                "./error/blank.shtml") ;;
                "./AdSense.shtml") ;;
                "./Privacy.shtml") ;;
                "./toolbar.shtml") ;;
                "./GoogleBottom.shtml") ;;
                "./pressstart.shtml") ;;
                "./AdSenseLeft.shtml") ;;
                "./AdSenseNewTop.shtml") ;;
                "./AdSenseNewBottom.shtml") ;;
                "./AmazonBanner.shtml") ;;
                "./AdLinkUnitInternal.shtml") ;;
		*) printf "<a href=\""%s"\">"%s"</a><br>\n" $a $a ;;
	esac
done

#for a in `find . -name "*.php" -print`
#do
#        case $a in
#                "basicL0.php$") ;;
#                "basicR0.php$") ;;
#                "common.php") ;;
#                *) printf "<a href=\""%s"\">"%s"</a><br>\n" $a $a ;;
#        esac
#done

echo "</body>"
echo "</html>"


