<link href="/jquery/slider-pro/slider-pro.min.css" rel="stylesheet">
<link href="/css/<?# webTemplates ?>/banner.css" rel="stylesheet">
<div id="banner">
	<div class="sp-slides">
		<php:repeater id="listP">
		<template>
		<div class="sp-slide"<?# Image2 ?>>
			<a href="<?# Link ?>" title="<?# Title ?>" target="_blank"></a>
			<img class="sp-image" src="/jquery/slider-pro/images/blank.gif" data-src="/images/29/img-bannerPhoto.png" data-retina="/images/29/img-bannerPhoto.png" />
			<div class="banner-txt">
				<h2 data-position="centerCenter" data-vertical="-50" data-show-transition="right" data-hide-transition="left" data-show-delay="500"><?# Title ?></h2>
				<p data-position="centerCenter" data-vertical="50" data-show-transition="left" data-show-delay="700" data-hide-transition="right" data-hide-delay="200"><?# DanDesc ?></p>
			</div>
		</div>
		</template>
		</php:repeater>
	</div>
	<div class="sp-thumbnails">
		<php:repeater id="listP2">
		<template>
		<div class="sp-thumbnail"><div class="sp-thumbnail-title"><?# Title ?></div></div>
		</template>
		</php:repeater>
	</div>
</div>
<script src="/jquery/slider-pro/jquery.sliderPro.min.js"></script>
<script>
	$(function(){
		$('#banner').sliderPro({
			width: "100%",
			height: "90vh",
			arrows: true,
			buttons: false,
			waitForLayers: true,
			thumbnailWidth: 300,
			thumbnailHeight: 200,
			thumbnailPointer: true,
			autoplay: true,
			autoScaleLayers: false,
			breakpoints: {
				980: { thumbnailWidth: 250 },
				640: { height: "75vh" }
			}
		});
	});
</script>