Totally agree with your views on the CSS code Peter.
For your javascript error try deleting the dreamweaver .dat cache file that usually clears javascript errors. There are lots of posts on these forums detailing where this file is located if you don't already know.