I'd place all of your Javascript and CSS codes in the headerinclude template or in separate files. That won't necessarily fix your original issue but it'll clear up the header template.
Just for a teaser, copy and paste your header code in a text file and save it. Then replace your header codes with vB's default codes and see if your width complies with the rest of your layout. Post back the results.