function init( ){
    initBottomContent( );
}

function initBottomContent( ){
    if(!document.getElementById('pageInformation') || !document.getElementById('pageInformationButton')){
        return;
    }

    if(document.getElementById('pageInformation')){
        var pageInformation = document.getElementById('pageInformation');
        if(document.getElementById('pageInformationButton')){
            var pageInformationButton = document.getElementById('pageInformationButton');
            pageInformationButton.onclick = function( ){toggleBottomContent('pageInformation');};
        }
        pageInformation.style.display = 'none';
    }
}

function toggleBottomContent(contentId){
    if(!document.getElementById(contentId)){
        return;
    }

    var t1 = 'block';
    var t2 = 'none';

    contentObj = document.getElementById(contentId);

    if(document.getElementById('sitemap')){
        var sitemap = document.getElementById('sitemap');
        if(contentId != 'sitemap' && sitemap.style.display == t1){
            sitemap.style.display = t2;
        }
    }
    if(document.getElementById('pageInformation')){
        var pageInformation = document.getElementById('pageInformation');
        if(contentId != 'pageInformation' && pageInformation.style.display == t1){
            pageInformation.style.display = t2;
        }
    }

    if(contentObj.style.display != t1){
        contentObj.style.display = t1;
    }
    else{
        contentObj.style.display = t2;
    }
}