function showCustomNavCol()

in netbeans.apache.org/src/content/images_www/js/companion-projects.js [152:172]


function showCustomNavCol() {
    // hide the nav element so it does not appear at all at the beginning
    document.write('<style>'+navColSelector+', #floating-col-right div:nth-child(2) {display:none;}</style>')
    // check for jQuery
    if (typeof jQuery == 'undefined') {
        document.write('<script type="text/javascript" src="'+jQueryLocation+'"></script>');
    }
    if(typeof jQuery != 'undefined') {
        // do the magic using ajax - load content of /nav-col.html into <div id="col-right-context">
        $(function(){
            // drop junction content
            $(navColSelector).html('');
            // drop also Navidation pane
            $('#floating-col-right div:nth-child(2)').hide();
            // load nav-col
            $.get(navColLocation, function(data){
                $(navColSelector).html(data).slideDown();
            });
        });
    }
}