/**
 * Training videos
 */

jQuery(function($) {
  
  //closing either the video or 'no flash' prompt
  $(".close_video > a").click(function() {
    $("#no_flash").hide();
    return false;
  });
  

//  $("#show_video > a").click(function() {
//    // make sure the user has flash installed, or show them a different message if not
//    var has_flash = false;
//
//    if ( (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ||
//         (navigator.plugins && (navigator.plugins["Shockwave Flash"] || navigator.plugins["Shockwave Flash 2.0"])) ) {
//        has_flash = true;
//    } else {
//      for (var i=7; i>0; i--) {
//        try {
//          new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
//          has_flash = true;
//          break;
//        }
//        catch(e) { }
//      }
//    }
//
//    if (has_flash) {
//      window.open(this.href, '_blank', 'width=700,height=600');
//    } else {
//      $("#no_flash").show();
//    }
//
//    return false;
//  });

});