/* JQUERY */
$(function() { 

$(".img_ajax[id]").each(function(i, item_) {
//var id = $(item_).attr('id');
var id_ = $(item_).attr('id');
											});

// fancy box
$("a.fancy").fancybox(); 

// FULL - LIGHT
  $(".full").hide();
  $(".light").click(function()
  {
	  // verification de l'ouverture du next full
	  if ($(this).next(".full:visible").length != 0) {
	$(this).next(".full").slideToggle(100, function () { $(this).prev(".light").css('background-image','url(img/icons/en_savoir_plus.png)'); $(this).prev(".light").text('En savoir plus'); }); 
	  }
	  else
	  {
    $(this).next(".full").slideToggle(100, function () { $(this).prev(".light").css('background-image','url(img/icons/en_savoir_moins.png)'); $(this).prev(".light").text('Masquer les informations'); }); 
	  }
    
  });
		   
// ROUNDED CORNERS
	$(".rounded").corner("round");

/* ANIMATION CYCLE */						   
$('#sidebar #cycle ul').cycle({
fx: 'fade', 
speed: 400,
timeout: 5000
});

/* ANIMATION CYCLE HEADER */						   
$('#cycle_header ul').cycle({
fx: 'shuffle', 
//cleartype: true, 
cleartypeNoBg: true,
speed: 400,
timeout: 5000
});

		   });

/* JS */
// illustration des menus
function ill_menu(var1) {
	document.getElementById('illustration_menu').style.display='block';
	document.getElementById('illustration_conteneur').style.zIndex='3';
	document.getElementById('illustration_menu').style.background='url(img/ill_'+var1+'.png)';
	document.getElementById('illustration_menu').style.left=121*var1+'px';
	document.getElementById('illustration_menu').style.marginLeft=1*var1+'px';
}
function ill_menu_out() {
	document.getElementById('illustration_menu').style.display='none';
	document.getElementById('illustration_conteneur').style.zIndex='1';
}