var now = 0;

function nextImage() {
	$('#featured-products-' + ( now + 4 ) ).hide();
	$('#featured-products-' + now).hide('slow');
	$('#featured-products-' + ( now + 4 ) ).show('slow');
	
	now++;
	
	if ( ( now + 4 ) == count ) document.getElementById( 'products-next' ).style.display = 'none';

	document.getElementById( 'products-back' ).style.display = 'block';
	return false;
}

function prevImage() {
	$('#featured-products-' + ( now + 3 ) ).hide('slow');
	$('#featured-products-' + ( now - 1 ) ).show('slow');
	
	now--;
	
	if ( now == 0 ) document.getElementById( 'products-back' ).style.display = 'none';

	document.getElementById( 'products-next' ).style.display = 'block';
	return false;
}

$(".featured-product-desc > div").fadeTo("slow", 0);

$(".featured-product-desc > div").hover(
	function() {
		$(this).stop();
		$(this).fadeTo(300, 1.0);
	},
	function() {
		$(this).stop();
		$(this).fadeTo(150, 0);
	}
);
