function initialize_page(tocInSubdirectories) {
    // Called on page load to setup the page.
    // pass "1" as the argument to initialize_page indicating that TOC files are in subdirectories instead of at the book level
    announce_page_loaded(tocInSubdirectories);
}

function announce_page_loaded(tocInSubdirectories) {
    // If we're in a frameset, tell the TOC frame this page was loaded, so it can track it.
    // tocInSubdirectories is passed through to help with locating TOC files
    if (top.frames.length) {
        top.frames[0].page_loaded(document.location, tocInSubdirectories);
    }   
}

