$(document).ready(function(){
  
  $("#fm-quiz").addClass("js");
  
  $("#fm-quiz input:checked").parent().addClass('selected');
  $("#fm-quiz :radio").change(function() { 
    $("#fm-quiz :radio").parent().removeClass('selected');
    $(this).parent().toggleClass('selected');
  });
  
  /*@cc_on
    @if (@_jscript_version <= 5.6)
    // IE6 doesn't support :hover on non-links, so we'll do it by force
    $("#fm-quiz label").hover(
      function() {$(this).addClass("over");},
      function() {$(this).removeClass("over");}
    );
    @end
    // IE doesn't fire the onchange event until the control loses focus
    $("#fm-quiz label").click(function(e){
      var $el = $(e.target);
      $el.find('input').change().blur();
    });
  @*/
  
});