I think it may be because you are using the wrong doctype..
Try changing it to..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Also I dont know if you knew but at the bottom of your index page it says...
ob_end_flush(); ?>
So this must be some extra text in the php file which needs removing or moving
--James 
|