window.onload = function(){

    Shadowbox.init();

    /**
     * Note: The following command is not necessary in your own project. It is
     * only used here to set up the demonstrations on this page.
     */
    initDemos();

};

function initDemos(){

    Shadowbox.setup([
        document.getElementById('flash1'),
        document.getElementById('flash2'),
        document.getElementById('flash3')
    ], {
        gallery:        'Flash',
        continuous:     true,
        counterType:    'skip',
        animSequence:   'sync'
    });

    Shadowbox.setup(document.getElementById('hongkongmap').getElementsByTagName('area'));

};
