Shadowbox.loadSkin('custom', 'lib/shadowbox/skin');
Shadowbox.loadLanguage('nl', 'lib/shadowbox/lang');
Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'swf'], 'lib/shadowbox/player');
$(document).ready(function(){
	var options = {
		animate:            true,
		animateFade:        true,
		animSequence:       'sync', //'wh' (width then height), 'hw' (height then width), or 'sync' (both at the same time). Only if animateFade is true
		modal:              false,
		overlayColor:       '#cccccc',
		overlayOpacity:     0.4,
		flvPlayer:          'flvplayer.swf',
		flashBgColor:       '#000000',
		autoplayMovies:     true,
		showMovieControls:  true,
		slideshowDelay:     0,
		resizeDuration:     0.55,
		fadeDuration:       0.35,
		displayNav:         true,
		continuous:         true,
		displayCounter:     true,
		counterType:        'default', // 'default' of 'skip' only if displayCounter is true
		counterLimit:       10, // only if displayCounter is true
		viewportPadding:    20,
		handleOversize:     'resize', // 'resize', 'drag' (for image only) or 'none' (crop)
		handleException:    null,
		handleUnsupported:  'remove',
		initialHeight:      160,
		initialWidth:       320,
		enableKeys:         true,
		onOpen:             null,
		onFinish:           null,
		onChange:           null,
		onClose:            null,
		skipSetup:          false,
		errors: {
			fla:        {
				name:   'Flash',
				url:    'http://www.adobe.com/products/flashplayer/'
			}
        },
		ext: {
            img:        ['png', 'jpg', 'jpeg', 'gif', 'bmp'],
            swf:        ['swf'],
            flv:        ['flv'],
            qt:         ['dv', 'mov', 'moov', 'movie', 'mp4'],
            wmp:        ['asf', 'wm', 'wmv'],
            qtwmp:      ['avi', 'mpg', 'mpeg'],
            iframe:     ['asp', 'aspx', 'cgi', 'cfm', 'htm', 'html', 'pl', 'php', 'php3', 'php4', 'php5', 'phtml', 'rb', 'rhtml', 'shtml', 'txt', 'vbs']
        },
		keysClose:          ['c', 27] // c or esc
	};
	Shadowbox.init(options);
});
