I just cut and pasted the html I made for the wrap around in the IIP tablewrappers.tmpl file, again putting my script outside the original script in the template.
I didn't mess with the script in table_center, table_header_no_center, and table_footer_no_center (I don't seem to use those three).