
    //"/videotutorials/getLBFF?vid=1355&sid=718&width=420&height=750"

function beforeSubmit(formData, jqform, options) { 
  $(".submit", jqform).attr("disabled","true").attr("value", "Updating, please wait...");
}

function showResponse(responseText, statusText)  { 
  alert('Thanks for your feedback!');
  $(".submit").removeAttr("disabled").attr("value", "Submit");
  $('.modal_feedback').jqmHide();
}

var options = {
  beforeSubmit: beforeSubmit,
  success: showResponse
};

function show_modal_feedback(){
  //$('#videoPlayer' + videoclickid).jqmHide();
  $('#videoPlayer' + videoclickid).css('left','-50%');
  $('#modal_feedback_' + videoclickid).jqmShow();
  onloadLBFF();
};

function onloadLBFF(){
  $("#commentFormLBFF").validate({
  submitHandler: function(form){
  $(form).ajaxSubmit(options);
  }})

  $(".showhideQC").click(
    function(){
    $(".boxQC").toggle('normal');
    }
    );
}

var current_video_player = null;
var fplayer = null;


//$('#dialog').jqm({onHide:myClose}); 

/* 
 */jQuery(document).ready(function(){

    $(".showhideQC").click(
      function(){
      $(".boxQC").toggle('normal');
      }
    );
    $(".feedback_comments h3").remove();

    $("#commentForm").validate({
    submitHandler: function(form){
    $(form).ajaxSubmit(options);
    }

});

$("#commentFormQF").validate({
  submitHandler: function(form){
  $(form).ajaxSubmit(options);
  }
});

dp.SyntaxHighlighter.ClipboardSwf = "/static/javascript/sh/clipboard.swf";  
dp.SyntaxHighlighter.HighlightAll("code");  
});

