
_ST_COUNTER_FICHES = 1;
_ST_COUNTER_RESSOURCES = 1;

$(function() {			
	$('#control-fiches .prev').click(function() {
		$('#block-views-fiches_home-block_1 .content .item-list ul li.views-row-' + _ST_COUNTER_FICHES).hide();
		if (_ST_COUNTER_FICHES == 1)
			_ST_COUNTER_FICHES = 5;
		else
			_ST_COUNTER_FICHES--;		
		$('#block-views-fiches_home-block_1 .content .item-list ul li.views-row-' + _ST_COUNTER_FICHES).show();
	});
	$('#control-fiches .next').click(function() {
		$('#block-views-fiches_home-block_1 .content .item-list ul li.views-row-' + _ST_COUNTER_FICHES).hide();
		if (_ST_COUNTER_FICHES == 5)
			_ST_COUNTER_FICHES = 1;
		else
			_ST_COUNTER_FICHES++;		
		$('#block-views-fiches_home-block_1 .content .item-list ul li.views-row-' + _ST_COUNTER_FICHES).show();
	});
	
	$('#control-ressources .prev').click(function() {
		$('#block-views-fiches_home-block_2 .content .item-list ul li.views-row-' + _ST_COUNTER_RESSOURCES).hide();
		if (_ST_COUNTER_RESSOURCES == 1)
			_ST_COUNTER_RESSOURCES = 5;
		else
			_ST_COUNTER_RESSOURCES--;		
		$('#block-views-fiches_home-block_2 .content .item-list ul li.views-row-' + _ST_COUNTER_RESSOURCES).show();
	});
	$('#control-ressources .next').click(function() {
		$('#block-views-fiches_home-block_2 .content .item-list ul li.views-row-' + _ST_COUNTER_RESSOURCES).hide();
		if (_ST_COUNTER_RESSOURCES == 5)
			_ST_COUNTER_RESSOURCES = 1;
		else
			_ST_COUNTER_RESSOURCES++;		
		$('#block-views-fiches_home-block_2 .content .item-list ul li.views-row-' + _ST_COUNTER_RESSOURCES).show();
	});
});








/*
_ST_BOX = 0;

$(function() {			
	$('#header-qui').click(function() {
		if (_ST_BOX == 0)
		{
			$('.pre-header-contact').hide();
			$('#pre-header-region').animate({height:100}, 500)
			$('.pre-header-qui').fadeIn('fast');
			$('#header-qui').css("fontWeight", "bold");
			$('#header-contact').css("fontWeight", "normal");
			_ST_BOX = 1;
		} else if (_ST_BOX == 1)
		{
			$('.pre-header-qui').fadeOut('fast')
			$('#pre-header-region').animate({height:0}, 500);	
			$('#header-qui').css("fontWeight", "normal");
			$('#header-contact').css("fontWeight", "normal");
			_ST_BOX = 0;
		} else if (_ST_BOX == 2)
		{			
			$('.pre-header-contact').hide();
			$('.pre-header-qui').fadeIn('fast');	
			$('#header-qui').css("fontWeight", "bold");
			$('#header-contact').css("fontWeight", "normal");
			_ST_BOX = 1;
		}
	});
	$('#header-contact').click(function() {
		if (_ST_BOX == 0)
		{
			$('.pre-header-qui').hide();
			$('#pre-header-region').animate({height:100}, 500)
			$('.pre-header-contact').fadeIn('fast');
			$('#header-qui').css("fontWeight", "normal");
			$('#header-contact').css("fontWeight", "bold");
			_ST_BOX = 2;
		} else if (_ST_BOX == 2)
		{
			$('.pre-header-contact').fadeOut('fast');
			$('#pre-header-region').animate({height:0}, 500);
			$('#header-qui').css("fontWeight", "normal");
			$('#header-contact').css("fontWeight", "normal");			
			_ST_BOX = 0;
		} else if (_ST_BOX == 1)
		{			
			$('.pre-header-qui').hide();
			$('.pre-header-contact').fadeIn('fast');	
			$('#header-qui').css("fontWeight", "normal");
			$('#header-contact').css("fontWeight", "bold");
			_ST_BOX = 2;
		}
	});
	
	
	
	
});

*/


/*	$('.field-field-howdies-read-more-link').animate({ opacity:0.6}, 600);
	$('.field-field-howdies-box-text').stop().hide(100);
*/
	
	/*
	$('.content-multigroup-wrapper').hover(function() {
	$(this).addClass('sel');
	
		$('.field-field-howdies-box-text', this).stop().fadeIn('slow').animate({ opacity:1.0}, 600);
	
		$('.field-field-howdies-read-more-link', this).stop().animate({ opacity:1.0}, 600);

	}, function() {
		$(this).removeClass('sel');
	
		$('.field-field-howdies-box-text').hide();
		$('.field-field-howdies-read-more-link', this).stop().animate({ opacity:0.6}, 600);

	});*/



	
	
/*
var bubbleCycles = 0;
function bubblejump(){

	if (! bubbleCycles)
	{ $('#logo-arrow').fadeIn(1000).animate({marginTop:0 }, 300); }	
	if (bubbleCycles == 2)
	{ $('#little-arrow').fadeIn(500);
	
	if (bubbleCycles == 6)
	{ $('#logo-arrow').fadeOut(2000).animate({marginTop:-30 }, 600); 
	}
	bubbleCycles++;
	if (bubbleCycles == 20)
	{ bubbleCycles = 0; 
	  $('#little-arrow').hide();}
};


$(function() {		
	var timer = setInterval("bubblejump()", 1000);
	
	$('.start-small').animate({ opacity: 0.6, height: 37}, 'fast'); 
    
	$('.start-small').hover(function() {
		$(this).stop().animate({ opacity:1, height:41, marginTop:26}, 400); 
    
		$('.start-big').stop().animate({ opacity:0.5}, 300 );
	}, function() {
		$(this).stop().animate({ opacity:0.6, height:37, marginTop:28}, 400);
    
		$('.start-big').stop().animate({opacity: 1.0}, 300);
	});
});

*/
