jQuery(document).ready(function($){
  var open_div = '<div class="my_fb_title">';
  var mid_div = '<span>';
  var just_div = '</div>';
  var close_div = '</span></div>';
  var my_cloud_path = "http://s3.amazonaws.com/focolare_us_violet";
  var my_flowplayer = my_cloud_path + "/js/jquery/fancybox/flowplayer-3.2.5.swf";
  function formatTitle_315(title, currentArray, currentIndex, currentOpts) {return open_div + 'A love that gave off the brightest of lights' + just_div;}
  $("#clb_presentation_315").fancybox({
    'scrolling': false,
    'titleShow': true,
    'titleFormat': formatTitle_315, 
    'type': 'inline',
    'onStart' : function() { 
      $("#player").css({'width': '480', 'height': '360'});
      $("#player").show();
      $f("player", my_flowplayer,my_cloud_path + '/web_flv/BNJ32MEfC28-34.flv');},
    'onClosed' : function() {$("#player").hide();$f().unload();}
  });    
  function formatTitle_242(title, currentArray, currentIndex, currentOpts) {return open_div + 'Chiara Luce Badano: Presented in Dialogue' + just_div;}
  $("#clb_presentation_242").fancybox({
    'scrolling': false,
    'titleShow': true,
    'titleFormat': formatTitle_242, 
    'type': 'inline',
    'overlayOpacity': 0.3,
    'overlayColor': '#0b317c',
    'onStart' : function() { 
      $("#player").css({'width': '480', 'height': '320'});
      $("#player").show();
      $f("player", my_flowplayer,my_cloud_path + '/web_flv/ChiaraLuceBadano_h264_800_480x320_2.flv');},
    'onClosed' : function() {$("#player").hide();$f().unload();}
  });    
  function formatTitle_383(title, currentArray, currentIndex, currentOpts) {return open_div + 'The Cube - Our Yes To God' + just_div;}
  $("#the_cube_383").fancybox({
    'scrolling': false,
    'titleShow': true,
    'titleFormat': formatTitle_383, 
    'type': 'inline',
    'overlayOpacity': 0.3,
    'overlayColor': '#0b317c',
    'onStart' : function() { 
      $("#player").css({'width': '360', 'height': '240'});
      $("#player").show();
      $f("player", my_flowplayer,my_cloud_path + '/web_flv/games_cube_assembly_fast_two_360_240_400_music_h264.flv');},
    'onClosed' : function() {$("#player").hide();$f().unload();}
  });    
});

