/**
*  Script exécuté après le chargmenet de la page
*/



$(document).ready(function(){

/**
* Gestion fancybox
*/

  $(".fbox").fancybox();

  $("#fieldset-coursenac dd")
          .hover(function () {
              $(this).css("background-color", "yellow");
              $(this).prev("dt").css("background-color", "yellow");
            }, function () {
              $(this).css("background-color", "white");
              $(this).prev("dt").css("background-color", "white");
            });
  $("#fieldset-coursenac label")
          .hover(function () {
              $(this).parent().css("background-color", "yellow");
              $(this).parent().next("dd").css("background-color", "yellow");
            }, function () {
              $(this).parent().css("background-color", "white");
              $(this).parent().next("dd").css("background-color", "white");
            });

/*  $(function(){
    toggleinscription = function(){
      var enac = $('input:checked[id=type_inscription-enac]').val();
      var enad = $('input:checked[id=type_inscription-enad]').val();    
      if(enac=='enac') {
        $('#fieldset-coursenac').show('fast');
        $('#fieldset-tarifenac').show('fast');
      } else {
        $('#fieldset-coursenac').hide();      
        $('#fieldset-tarifenac').hide();      
      }
      if(enad=='enad') {
        $('#fieldset-coursenad').show('fast');
      } else {
        $('#fieldset-coursenad').hide();      
      }
    }
  });
  
  toggleinscription();
  
  $('input[id=type_inscription-enac]').click(toggleinscription);  
  $('input[id=type_inscription-enad]').click(toggleinscription);  

*/
});



