How to change the title of the page dynamically?
You need to add an onclick() event handler for all tabs.
Assuming UL LI layout http://jsfiddle.net/k7Gkm/ 

$(".my_tabs").click(function(){
 $("#header").html($(this).html());
});