// fix the height of expanded find and book module
if(headerTabController != undefined) {
    headerTabController.height = 90;
}

// fix the height of mini find and book module
yuiEvent.onDOMReady(overrideSearchOptionsLink);
function overrideSearchOptionsLink() {

    var searchOptionsShowLink = document.getElementById('searchOptionsLink');
    var searchOptionsCloseLink = document.getElementById('searchOptionsCloseLink')

    // add onclick handlers for showing and hiding
    if(searchOptionsShowLink != null) {
        yuiEvent.addListener(searchOptionsShowLink,"click",searchOptionsShowHandler);
    }
    if(searchOptionsCloseLink != null) {
        yuiEvent.addListener(searchOptionsCloseLink,"click",searchOptionsCloseHandler);
    }

    // change class on link container for styling
    var linkContainer = document.getElementById('searchOptionsLinkContainer');
    YAHOO.util.Dom.removeClass(linkContainer, "options");
    YAHOO.util.Dom.addClass(linkContainer, "searchOptions");
}

function searchOptionsShowHandler() {
    var container = document.getElementById('headerTabBoxContent');
    container.style.height = '118px';
    aParent.track('more');
    resetOption('searchType',0);
}

// override style for search options link

function searchOptionsCloseHandler() {
    // update height of find and book module
    var container = document.getElementById('headerTabBoxContent');
    YAHOO.util.Dom.setStyle(container, 'height', '75px');

    aParent.track('default');
}