    // Shadowbox setup 
    // NOTE: preceding slash is not present here before "public"
    
    function setupShadowbox() 
    {    
        var options = {
            handleUnsupported:  'remove',
            showOverlay:        false,
            animate:            true,
            counterLimit:       64,
            modal:              true,
            handleOversize:     'resize',
            viewportPadding:    3,
            overlayOpacity:     0.8,
            flvPlayer:          getServerRoot() + 'public/player-licensed.swf'
        };
        
        Shadowbox.init(options);
    } 
    
    
    var openShadowbox = function(pageInfoArray, startingIndex)
    {
        Shadowbox.open(pageInfoArray, {counterType: 'skip'}, startingIndex); 
    }; 


    var openShadowboxFromViewer = function(pageInfoArray, startingIndex)
    {
        Shadowbox.open(pageInfoArray, {counterType: 'skip', onClose:function(){ flexApp.setShadowboxFlag(false);}}, startingIndex); 
    }; 
        
        Shadowbox.loadSkin('classic', getServerRoot() + 'public/includes/shadowbox-2.0/skin'); // use the "classic" skin
        Shadowbox.loadLanguage('en', getServerRoot() + 'public/includes/shadowbox-2.0'); // use the English language
        Shadowbox.loadPlayer(['flv', 'iframe', 'html'], getServerRoot() +  'public/includes/shadowbox-2.0'); // flv and iframe players
        
