/* All the presets options are the custom ones */

var rokbox;
window.addEvent('domready', function() {
  rokbox = new RokBox({
    // this string must match the theme folder name
    // (string, no space, lowercase)
    'theme': 'light',

    // Transition to use when opening RokBox
    'transition': Fx.Transitions.Quad.easeOut,

    // Duration of opening RokBox Effect (integer, milliseconds)
    'duration': 400,

    // Chase to use for the animation.
    // works only for growl, see next line. (integer)
    'chase': 50,

    // Width of each border if any (integer, pixels)
    'frame-border': 20,

    // Padding of internal content wrapper (integer, pixels)
    'content-padding': 0,

    // Height of arrows div (integer, pixels)
    'arrows-height': 35,

    // Type of effect to use. Presets are:
    //'quicksilver', 'growl', 'explode'
    'effect': 'growl',

    // Whether to enable or disable captions (boolean, 1 or 0)
    'captions': 1,

    // How long captions effect should last, when captions
    // are enabled (integer, milliseconds)
    'captionsDelay': 800,


    // Makes RokBox follow when scrolling the page (boolean, 1 or 0)
    'scrolling': 0,

    // Enable keyevents. Esc, Left, Right to close and change
    // previous or next (boolean, 1 or 0)
    'keyEvents': 0,

    'overlay': {
      // Overlay background color (string, hex color
      // format with starting hash #)
      'background': '#000',

      // Opacity of the overlay (float, from 0 to 1, 0.1
      // makes it invisible but clickable)
      'opacity': 0.2,

      // Duration of overlay effect (integer, milliseconds)
      //'duration': 200,
      'duration': 0,

      // Transition to use for opacity effect
      'transition': Fx.Transitions.Quad.easeInOut
    },
    'defaultSize': {
      'width': 500, // Default RokBox window width (integer)
      'height': 640, // Default RokBox window height (integer)
    },

    // Enable or disable autoplay for QuickTimes and WM videos
    // (string, 'true' or 'false')
    'autoplay': 'true',

    // Enable or disable controllers for QuickTimes and WM videos
    // (string, 'true' or 'false')
    'controller': 'true',

    // Set Background colors for all videos and flash services
    // that support it
    // (string, hex color format with starting hash #)
    'bgcolor': '#ffffff',

    // Enable or disable autoplay for YouTube (boolean, 1 or 0)
    'youtubeAutoplay': 0,

    // Vimeo Color Scheme (string, hex color format
    // WITHOUT starting hash #)
    'vimeoColor': '00adef',

    // Enable or disable Vimeo Portrait Button (boolean, 1 or 0)
    'vimeoPortrait': 0,

    // Enable or disable Vimeo Title caption (boolean, 1 or 0)
    'vimeoTitle': 0,

    // Enable or disable Vimeo FullScreen button (boolean, 1 or 0)
    'vimeoFullScreen': 1,

    // Enable or disable Vimeo's Author line (boolean, 1 or 0)
    'vimeoByline': 0
  });
});
