// wait until document is fully scriptable
$(document).ready(function() {
    $('#gallery a').lightBox();
    // select #flowplanes and make it scrollable. use circular and navigator plugins
    $("#pages").scrollable({size: 1, clickable: false}).navigator({

        // select #flowtabs to be used as navigator
        navi: "#nav",

        // select A tags inside the navigator to work as items (not direct children)
        naviItem: '.menu_item, #welcome',

        // assign "current" class name for the active A tag inside navigator
        activeClass: 'current'

    });
});
