The book was written in 2007. It worries about IE5 compatability. I am writing this using IE9. Firefox 4 is out now. Chrome exists. Go figure.
That being said, the logic behind how the code works is sound. Algorithms to calculate visibile window size etc hold whatever language you are using. Its just out of date when applied using the examples.