var currentBlock = 'productBlockWrapper0';

function buttonBarMove( direction )
{
	if( direction == 'right' )
	{
		var nextBlock = $( '#' + currentBlock ).next( '.produktBlockWrapper' );
		if( nextBlock[0] )
		{
			$( '#' + currentBlock ).hide( 500, function()
				{
					nextBlock.show( 500 );
				}
			);
			currentBlock = nextBlock[0].id;
		}
	}
	else if( direction == 'left' )
	{
		var previousBlock = $( '#' + currentBlock ).prev( '.produktBlockWrapper' );
		if( previousBlock[0] )
		{
			$( '#' + currentBlock ).hide( 500, function()
				{
					previousBlock.show( 500 );
				}
			);
			currentBlock = previousBlock[0].id;
		}
	}
}
