jQuery(function(){
 jQuery('.chambre-star').rating({
  focus: function(value, link){
    // 'this' is the hidden form element holding the current value
    // 'value' is the value selected
    // 'element' points to the link element that received the click.
    var tip = jQuery('#chambre-test');
    tip[0].data = tip[0].data || tip.html();
    tip.html(link.title || 'value: '+value);
  },
  blur: function(value, link){
    var tip = jQuery('#chambre-test');
   jQuery('#chambre-test').html(tip[0].data || '');
  }
  
 });
});
jQuery(function(){
 jQuery('.proprete-star').rating({
  focus: function(value, link){
    // 'this' is the hidden form element holding the current value
    // 'value' is the value selected
    // 'element' points to the link element that received the click.
    var tip = jQuery('#proprete-test');
    tip[0].data = tip[0].data || tip.html();
    tip.html(link.title || 'value: '+value);
  },
  blur: function(value, link){
    var tip = jQuery('#proprete-test');
   jQuery('#proprete-test').html(tip[0].data || '');
  }
  
 });
});
 jQuery(function(){
  jQuery('.repas-star').rating({
  focus: function(value, link){
    // 'this' is the hidden form element holding the current value
    // 'value' is the value selected
    // 'element' points to the link element that received the click.
    var tip = jQuery('#repas-test');
    tip[0].data = tip[0].data || tip.html();
    tip.html(link.title || 'value: '+value);
  },
  blur: function(value, link){
    var tip = jQuery('#repas-test');
   jQuery('#repas-test').html(tip[0].data || '');
  }
  
 });
});
 jQuery(function(){    
  jQuery('.service-star').rating({
  focus: function(value, link){
    // 'this' is the hidden form element holding the current value
    // 'value' is the value selected
    // 'element' points to the link element that received the click.
    var tip = jQuery('#service-test');
    tip[0].data = tip[0].data || tip.html();
    tip.html(link.title || 'value: '+value);
  },
  blur: function(value, link){
    var tip = jQuery('#service-test');
   jQuery('#service-test').html(tip[0].data || '');
  }
  
 });
});
 jQuery(function(){
  jQuery('.animation-star').rating({
  focus: function(value, link){
    // 'this' is the hidden form element holding the current value
    // 'value' is the value selected
    // 'element' points to the link element that received the click.
    var tip = jQuery('#animation-test');
    tip[0].data = tip[0].data || tip.html();
    tip.html(link.title || 'value: '+value);
  },
  blur: function(value, link){
    var tip = jQuery('#animation-test');
   jQuery('#animation-test').html(tip[0].data || '');
  }
  
 });
});
 jQuery(function(){
  jQuery('.emplacement-star').rating({
  focus: function(value, link){
    // 'this' is the hidden form element holding the current value
    // 'value' is the value selected
    // 'element' points to the link element that received the click.
    var tip = jQuery('#emplacement-test');
    tip[0].data = tip[0].data || tip.html();
    tip.html(link.title || 'value: '+value);
  },
  blur: function(value, link){
    var tip = jQuery('#emplacement-test');
   jQuery('#emplacement-test').html(tip[0].data || '');
  }
  
 });
});
 jQuery(function(){
 jQuery('.personnel-star').rating({
  focus: function(value, link){
    // 'this' is the hidden form element holding the current value
    // 'value' is the value selected
    // 'element' points to the link element that received the click.
    var tip = jQuery('#personnel-test');
    tip[0].data = tip[0].data || tip.html();
    tip.html(link.title || 'value: '+value);
  },
  blur: function(value, link){
    var tip = jQuery('#personnel-test');
   jQuery('#personnel-test').html(tip[0].data || '');
  }
  
 });
});
