
function writeTopNavigator() {
    $.get('top-navigator.htm', function(data) {
        $('#top_nav').html(data);

    });

}

function writeMenu() {
    $.get('menu.htm', function(data) {
        $('#nav_container').html(data);

    });

}
function writeFooter() {
   
    $.get('footer.htm', function(data) {
        $('#footer_container').html(data);
    
    });

}
function writeSubpageRightColumn() {

    $.get('subpage-rightcolumn.htm', function(data) {
        $('#subpage_content-right_column').html(data);
        var sPath = window.location.pathname;
        var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
        if (sPage == "report.html")
            $('#report-right-sidebar').addClass("hide-report");
    });

}
function writeSubpageRightColumn1() {

    $.get('subpage-rightcolumn1.htm', function(data) {
        $('#subpage_content-right_column').html(data);

    });

}
function writeBiosMenu() {

        var txt = "<ul>";
        txt += writeBiosMenuItem( 'shapiro.html', 'Harold T. SHAPIRO');
        txt += writeBiosMenuItem( 'diab.html', 'Roseanne DIAB');
        txt += writeBiosMenuItem( 'cruz.html', 'Carlos Henrique de BRITO CRUZ');
        txt += writeBiosMenuItem( 'cropp.html', 'Maureen CROPP');
        txt += writeBiosMenuItem( 'fang.html', 'Jingyun FANG');
        txt += writeBiosMenuItem( 'fresco.html', 'Louise O. FRESCO');
        txt += writeBiosMenuItem( 'manabe.html', 'Syukuro MANABE');
        txt += writeBiosMenuItem( 'mehta.html', 'Goverdhan MEHTA');
        txt += writeBiosMenuItem( 'molina.html', 'Jose Mario MOLINA-Pasquel Henriquez');
        txt += writeBiosMenuItem( 'williams.html', 'Sir Peter WILLIAMS FRS');
        txt += writeBiosMenuItem( 'winnacker.html', 'Ernst-Ludwig WINNACKER');
        txt += writeBiosMenuItem( 'zakri.html', 'Abdul Hamid ZAKRI');
        txt += "</ul>";
        $('#subpage_subnav').html(txt);
   
}
function writeBiosMenuItem(url,name) {

    var sPath = window.location.pathname;
    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
    if (sPage == url)
       return '<li><span class="selected-bios">' + name + '</span></li>';
    else
       return '<li><a href="' + url + '">' + name + '</a></li>';

}

function openMeeting20100514() {
    openPodcast("http://ipcc.bismedia.nl/14052010/", 240, 550);
}
function openPodcast(url, h, w) {
    window.open(url, null, "height=" + h + ",width=" + w + ",status=yes,toolbar=no,menubar=no,location=no");

}

