Josefus, the pictures look perfect to me in IE. I'll bet you're using Firefox, though. They won't look right there. In adventure creator you've opened both a "Foreground Image" and a "Background Image". That was a feature I did originally, which turned out to not work in Firefox. So I haven't used it since. (I should probaby remove it.) You're going to need to choose just one or the other. That will make the images look right and will make the variables start dumping correctly. Unfortunately, there's no easy way to close one or the other in AdventureCreator. You need to open an html, choose "File->CloseImages" and then File->Open Foreground Image. (Don't do the backgound). If you want to edit the code by hand, look for the line like this:

And change it to look like this:

(Delete the style.)
As for the variables, they're integers, not strings. So in _begin.html and all the other places you do setVar, it should be
setVar("TM1", 2);
not
setVar("TM1", "2");
Similarly, in the check, it should be
if (word == 0x3F)
instead of
if (word= "111111")
(Note that it's == instead of =)
Also, the next line should be:
return 1;
not
return 1";
These syntax errors are keeping your code from running.
Hope that helps.
Tlaero