{*
* @author	Krzysztof Pecak
* @copyright	2017 Krzysztof Pecak
* @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*}

<script>
	$(document).ready(function() {
		{foreach from=$manProducts item=manProduct name=atManProducts}
			$('#man_bxslider_{$manProduct.id|escape:'htmlall':'UTF-8'}').bxSlider({
				auto: {if $auto == 0}false{else}true{/if},
				minSlides: {$visible|escape:'htmlall':'UTF-8'},
				maxSlides: {$visible|escape:'htmlall':'UTF-8'},
				mode: 'vertical',
				pager: false,
				pause: 3000,
				nextSelector: '#man_home-next_{$manProduct.id|escape:'htmlall':'UTF-8'}',
				prevSelector: '#man_home-prev_{$manProduct.id|escape:'htmlall':'UTF-8'}',
				nextText: '>',
				prevText: '<',
				moveSlides: {$move|escape:'htmlall':'UTF-8'},
				infiniteLoop: {if $loop == 0}false{else}true{/if},
				hideControlOnEnd: true,
				useCSS: false,
			});
		{/foreach}
	});
</script>

