$(function(){
 // Flash Video functions
//-----------------------------------------
var flashVideos = {
  defaults: {
    // Define the configuation values applied to each module.
    // Each module in flashModules can override these values.
    'src': '/sesame_media/video/flvPlayer.swf',
    'dir': '/sesame_media/video/',//location of video files
    'img_dir': '/sesame_media/video/',//location of image files
    'width': 320,
    'height': 266,
    'wmode': 'transparent',
    'menu': false,
    'allowFullScreen': true,
    flashvars: {
      'autoStart': 'false', // change value to true to play on start
      'showScaleModes': 'false', //set to false to disable scale modes menu
      'smoothVideo': 'true' //set to false to disable video smoothing
    }
  },
	
  videos: [
    {name: 'in-ovation',config:{}}
  ]
};

for (var j=0; j < flashVideos.videos.length; j++) {
  var video = flashVideos.videos[j];
	// combine default config settings with module config settings
  var vidConfig = $.extend({}, flashVideos.defaults, video.config);
	// combine default flashvars with module flashvars
  vidConfig.flashvars = $.extend({}, flashVideos.defaults.flashvars, video.config.flashvars);
  vidConfig.flashvars.flvToPlay = vidConfig.dir + video.name + '.flv';
  vidConfig.flashvars.startImage = vidConfig.img_dir + video.name + '.jpg';
  $('#video-' + video.name).flash(vidConfig, flashVideos.defaults.pluginOptions);
};

});




