page loading breakes code..??

page loading breakes code..??

Why does jQuery functionality not working when loading external pages?

when the HTML is one big page, the toggle function works: (click on the top left image)
eg: Single HTML File

however when i load the header with 2 separate html files, the toggle function doesn't work
eg: Multiple HTML Files

This is my code: