There are all kind of problems in this code... :( The transitions are completely wrong with the glassboxes, but my head hurts too much to fix this now...