I'm volunteering to redesign the website of a non-profit and I suspect that their current code was generated with a WYSIWYG editor. There are multiple functions that are prefaced with "MM" such as MM_swapImgRestore() and MM_preLoadImg(). Is this Dreamweaver? I've copied a bunch of their code below to give a fuller picture.

One thing that really stood out is that there is JS in between the closing </head> tag and the beginning <body> tag. There shouldn't be anything between these two tags, correct?

felgall
—
2012-12-03T20:29:35Z —
#2

Yes Macromedia implemented all the JavaScript generated by their Dreamweaver product with MM_ prefixes so that the code could be easily identified as having been generated by their product.

Adobe did not change the prefix when they bought Dreamweaver so the antiquated JavaScript still has the same prefix identifying the company the product belonged to back in the stone age when those scripts were written.

You are right that there shouldn't be anything between the </head> and <body> tags. Almost all JavaScript should go immediately before the </body> tag. You shouldn't rely on Dreamweaver to write the JavaScript as even JavaScript beginner should be able to write far better JavaScript than Dreamweaver produces after an hour or so study.