$j(document).ready(function() {
    // load infoboard stuff if plugin loaded
    if(typeof $j.fn.infoboard == 'function') {
        $j.fn.cycle.defaults.speed   = 900;
        $j.fn.cycle.defaults.timeout = 6000;
        $j(function() {
            $j('#infoboard').infoboard({
                url: '/boerse/faces/infoboardservice/data/load/',
                link:'/boerse/infoboard/'
            });
        });
    }
    // clean ads
    manipulateAdRight($('Bottom'));
});

// some "old" functions
function riskRendImage(show,hide) {
    $('risk-rend-chart-'+show).show();
    $('risk-rend-chart-'+hide).hide();
    if(!$('risk-rend-navi-'+show).hasClassName('active')) $('risk-rend-navi-'+show).addClassName('active');
    if($('risk-rend-navi-'+hide).hasClassName('active')) $('risk-rend-navi-'+hide).removeClassName('active');
}

function _showLegendDesc(name) {
    $(name+'-desc').show();
}

function _hideLegendDesc(name) {
    $(name+'-desc').hide();
}

function showLegendDesc(name) {
    void(null);
}

function hideLegendDesc(name) {
    void(null);
}
