/************************************************* init.js ************************************************/
$(document).ready(function(){





	
/* roll */
$(".roll").hover(function(){$(this).attr("src", $(this).attr("src").split('_0').join('_1'))}, function(){$(this).attr("src", $(this).attr("src").split('_1').join('_0'))}); 
/**/
/* init accordeon */
$(".accordeon").accordeon();

if($('.experimentation').is('body'))
{
	$('.head').click(function() {
		$('.head img').each(function() {
			var im = $(this).attr('src').split('_on');
			if (im.length != 1) {
				$(this).attr('src', im[0] + '.jpg');
			}
		});
		if($(this).hasClass('on')) {	
			$(this).removeClass('on');
		}
		else
		{
			$('.head').each(function() {
				$(this).removeClass('on');	
			});
			var im = $(this).find('img').attr('src').split('.jpg');
			$(this).find('img').attr('src', im[0] + '_on.jpg');
			$(this).addClass('on');	
		}
	});
}














});

