var flashVersion = deconcept.SWFObjectUtil.getPlayerVersion().major;

$(document).ready(function()
{
    var options = {
        displayNav:         true,
        handleUnsupported:  'remove',
        autoplayMovies:     true,
        keysClose:          ['l'],
        keysPrev:           ['f'],
        keysNext:           ['n'],
        assetURL:           '/js/shadowbox/',
        text:               {
                            cancel:     'Hætta við',
                            loading:    'Hleð inn',
                            close:      '<span class="shortcut">L</span>oka',
                            next:       '<span class="shortcut">N</span>æsta',
                            prev:       '<span class="shortcut">F</span>yrri',
                            errors:{
                                single: 'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',
                                shared: 'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',
                                either: 'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'
                                }
                            }
    };

    Shadowbox.init(options);
});
