$(document).ready(function() {
    if ($("#twitter_panel").length > 0) {
        // For journal 10172
        updateTwitterPanel();
    }
    if ($("a.flowplayer").length > 0) {
        // setup player
        setUpPlayer();
    }
});

function setUpPlayer(){
    $("a.flowplayer").each(function(){
        $f(this.id, $(this).attr("flash"));
    });
}

function updateTwitterPanel() {
    getTwitters('twitter_updates', {
        id: 'biomedcentral',
        count: 3,
        ignoreReplies: true,
        newwindow: true,
        clearContents: false,
        timeout: 10,
        onTimeoutCancel: true,
        callback: function() {
            jQuery("#twitter_panel").css('display', 'block');
        }
    });
}
;
