Adds (removes) class 'cms_toolbar' to HTML when CMS Toolbar is shown (hidden)

This allows CSS designers to expand collapsed sections of the page as appropriate for using the on-screen CMS controls.

Also, added radix parameter to Math.parseInt() usage.