Is there a reliable way of telling what the header/footer of a page is? I seem to have problems doing this.