A good place to start is your custom template folder , and than to common. look for the file tpl_header.php and html_header.php. You probably have some things mixed up there.