cat << EOF
<html>
<head>
<link REL="stylesheet" href="../../../web.css" type="text/css" />
</head>
<body>
<h3>
$*
</h3>
EOF

any=false
for file in *.mp4 *.mov
do
	[ ! -f "$file" ] && continue
	if ! $any
	then
		echo "<h4>Movies</h4><ul>"
		any=true
	fi

	echo "<ul><a href=\"${file}\">$file</a></ul>"
done
if $any
then
	echo "</ul>"
	any=true
fi

for file in *.jpg *.JPG
do
	[ ! -f "$file" ] && continue
	echo "<p><img src='$(echo "$file" | sed -e '1 s/ /%20/g')' /><br />$file</p>"
done

cat << EOF
</body>
</html>
EOF

