#!/bin/ash

#echo "Content-type: text/html"
#echo ""
echo "<html><body bgcolor="#000000"><style> body { font-family: Verdana,Tahoma,Arial,Helvetica; font-size:9pt} .header { font-size: 16pt; font-weight: 900; } </style>"
dot_pos=${2:-0}
p=`wc -c $1|cut -d ' ' -f 1`
for c in `grep -o . $1`; do
	echo "    <img src=../font/${c}.gif alt="${c}"></img>"
	if [ $p -eq $dot_pos ]; then
		echo '    <font color="white">.</font>'
	fi
	p=$(( $p - 1 ))
done
if [ "x${3}x" != "xx" ]; then
	echo "    <font color="white">$3</font>"
fi
echo "</body></html>"
