I just noticed that there is an issue with the Title tag as well.
<title><?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'home', 'title'); ?></title>
When I use this, it outputs a bunch of garbage, and not the actual title of the page. I checked the CMS area and there is no special formatting on any of the content areas. I even copied and pasted it into notepad first, to make sure it was really clean.