// JavaScript Document
jQuery.noConflict();
jQuery(document).ready(function($) {
	
	
	var nbBlocs = Number(document.getElementById('nbBlocs').innerHTML);
    for (i = 1; i <= nbBlocs ; i++){
		
		$("#bloc"+i).hover(
		  function () {
			$(this).addClass("hover");
		  }, 
		  function () {
			$(this).removeClass("hover");
		  }
		);
		
		$("#titre"+i).hover(
		  function () {
			$(this).removeClass("aMain");  
			$(this).addClass("aMainHover");
		  }, 
		  function () {
			$(this).addClass("aMain");  
			$(this).removeClass("aMainHover");
		  }
		);
	
	}
	
});
