First stab.  It works, but it's ugly as sin.  I'll style it soon.