Tidied & documented the code a bit and fixed method name (there is no toggleHeader(), but toggleSite() exists; trying to use a nonexistent method causes IE8 to complain, obviously!)