I think I need to modify the code a bit to make $tbopen and $tbclose be available in the header/footer includes. If you're modifying header.tpl directly then you'd just use {$tbopen} and {$tbclose}