jQuery(document).ready(function($){
  Shadowbox.init({
    overlayColor: '#000'
  }); 
});

jQuery(document).ready(function($){

  flowplayerSwf = 'flowplayer/flowplayer.3.0.7.swf';
  
  $('.watch').click(function(e) {

    videoClip = $(this).attr('href');
    
    flowplayer('current-video', flowplayerSwf, {
      wmode: 'window',
      clip: {
        scaling: 'orig',
        url: videoClip, 
        autoPlay: true, 
        autoBuffering: true 
      }
    });
    
    $('#current-video').modal({
      persist: true,
      onClose: function(dialog) {
        $f('current-video').stop();
        $.modal.close();
      }
    });
  
    return false;
  });
});