	/* <![CDATA[ */

  $(function(){
        var regex = new RegExp("FS-ES" + "=([^&#]*)");
        var results = regex.exec(window.location.href);
		if(results != null && results[1]=="C"){
    $('div#survey').find('form').remove();
    $('div#survey').prepend('<div class="question-body clearfix "><div class="question questionodd"><div class="question-body clearfix " style="text-align: center;"><strong>Merci pour votre rétroaction.</strong></div></div></div>');
    window.location.href = window.location.href + "#cn-foot";
		}
    
		//$('.star-container input').rating();
		//$('div.star-rating a').each(function(){$(this).attr('title',parseInt($(this).attr('title'))+1);$(this).text($(this).attr('title'))});
		$('input[type="checkbox"].na-choice').each(function(e){var that = this;var exclusives = $(this).parents('.question-body').find('input[type="checkbox"].na-choice');var inclusives = $(this).parents('.question-body').find('input[type="checkbox"]:not(.na-choice)');exclusives.unbind('click').bind('click', function(){$(that).parents('.question-body').find('input[type="checkbox"]').not($(this)).removeAttr('checked')});inclusives.unbind('click').bind('click', function(){$(that).parents('.question-body').find('.na-choice').removeAttr('checked')});});		
		$('input.other').keyup(function(){$(this).parents('li:first').find('input:first:not(.other)').attr('checked' , 'checked');})
		$('.NotUsedCheckbox').each(function(e){checked = $(this).is(':checked');if(checked){$(this).parents('tr').find('input[type=radio]').each(function(){$(this).attr('checked', false).attr('disabled', 'disabled');});$(this).parents('tr').find('select').each(function(){$(this).val("-1");$(this).attr('disabled', 'disabled');});$(this).parents('tr').find('input[type=text]').each(function(){$(this).attr('disabled', 'disabled');});}});
		$('.NotUsedCheckbox').click(function(e){checked = $(this).is(':checked');if(checked){$(this).parents('tr').find('input[type=radio]').each(function(){$(this).attr('checked', false).attr('disabled', 'disabled');});$(this).parents('tr').find('select').each(function(){$(this).val("-1");$(this).attr('disabled', 'disabled');});$(this).parents('tr').find('input[type=text]').each(function(){$(this).attr('disabled', 'disabled');});}else{$(this).parents('tr').find('input[type=radio]').each(function(){$(this).attr('checked', false).removeAttr('disabled');});$(this).parents('tr').find('select').each(function(){$(this).removeAttr('disabled');});$(this).parents('tr').find('input[type=text]').each(function(){$(this).removeAttr('disabled');});}});
	});
	/* ]]> */
