<?php
defined('_JEXEC') or die('Restricted access');
?>
 
<script type="text/javascript">
	function startGallery() {
		var sliderku = new gallery($('sliderku<?php echo $moduleidku; ?>'), {
			timed: <?php echo $slidshow; ?>,
			delay: <?php echo $duration; ?>,
			embedLinks: <?php echo $showlink; ?>,
			showArrows: <?php echo $showarrow; ?>,
			showCarousel: <?php echo $showcarousel; ?>,
			showInfopane: <?php echo $showinfopane; ?>,
			textShowCarousel: '<?php echo $carouseltext; ?>',
			defaultTransition: "<?php echo $transition ?>"
		});
	}
	window.onDomReady(startGallery);
</script>

<div id="sliderku<?php echo $moduleidku; ?>" style="width:<?php echo $width ?>px;height:<?php echo $height ?>px;margin:5px 0">
	<?php if ($images1 != "") : ?>
	<div class="imageElement">
		<h3><?php echo $title1 ?></h3>
		<p><?php echo $desc1 ?></p>
		<a href="<?php echo $url1 ?>" title="<?php echo $title1 ?>" class="open"></a>
		<img src="<?php echo $images1 ?>" alt="<?php echo $title1 ?>" class="full" />
		<img src="<?php echo $thumbs1 ?>" alt="<?php echo $title1 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
	
    <?php if ($images2 != "") : ?>
	<div class="imageElement">
		<h3><?php echo $title2 ?></h3>
		<p><?php echo $desc2 ?></p>
		<a href="<?php echo $url2 ?>" title="<?php echo $title2 ?>" class="open"></a>
		<img src="<?php echo $images2 ?>" alt="<?php echo $title2 ?>" class="full" />
		<img src="<?php echo $thumbs2 ?>" alt="<?php echo $title2 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images3 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title3 ?></h3>
		<p><?php echo $desc3 ?></p>
		<a href="<?php echo $url3 ?>" title="<?php echo $title3 ?>" class="open"></a>
		<img src="<?php echo $images3 ?>" alt="<?php echo $title3 ?>" class="full" />
		<img src="<?php echo $thumbs3 ?>" alt="<?php echo $title3 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images4 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title4 ?></h3>
		<p><?php echo $desc4 ?></p>
		<a href="<?php echo $url4 ?>" title="<?php echo $title4 ?>" class="open"></a>
		<img src="<?php echo $images4 ?>" alt="<?php echo $title4 ?>" class="full" />
		<img src="<?php echo $thumbs4 ?>" alt="<?php echo $title4 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images5 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title5 ?></h3>
		<p><?php echo $desc5 ?></p>
		<a href="<?php echo $url5 ?>" title="<?php echo $title5 ?>" class="open"></a>
		<img src="<?php echo $images5 ?>" alt="<?php echo $title5 ?>" class="full" />
		<img src="<?php echo $thumbs5 ?>" alt="<?php echo $title5 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images6 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title6 ?></h3>
		<p><?php echo $desc6 ?></p>
		<a href="<?php echo $url6 ?>" title="<?php echo $title6 ?>" class="open"></a>
		<img src="<?php echo $images6 ?>" alt="<?php echo $title6 ?>" class="full" />
		<img src="<?php echo $thumbs6 ?>" alt="<?php echo $title6 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images7 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title7 ?></h3>
		<p><?php echo $desc7 ?></p>
		<a href="<?php echo $url7 ?>" title="<?php echo $title7 ?>" class="open"></a>
		<img src="<?php echo $images7 ?>" alt="<?php echo $title7 ?>" class="full" />
		<img src="<?php echo $thumbs7 ?>" alt="<?php echo $title7 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images8 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title8 ?></h3>
		<p><?php echo $desc8 ?></p>
		<a href="<?php echo $url8 ?>" title="<?php echo $title8 ?>" class="open"></a>
		<img src="<?php echo $images8 ?>" alt="<?php echo $title8 ?>" class="full" />
		<img src="<?php echo $thumbs8 ?>" alt="<?php echo $title8 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images9 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title9 ?></h3>
		<p><?php echo $desc9 ?></p>
		<a href="<?php echo $url9 ?>" title="<?php echo $title9 ?>" class="open"></a>
		<img src="<?php echo $images9 ?>" alt="<?php echo $title9 ?>" class="full" />
		<img src="<?php echo $thumbs9 ?>" alt="<?php echo $title9 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images10 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title10 ?></h3>
		<p><?php echo $desc10 ?></p>
		<a href="<?php echo $url10 ?>" title="<?php echo $title10 ?>" class="open"></a>
		<img src="<?php echo $images10 ?>" alt="<?php echo $title10 ?>" class="full" />
		<img src="<?php echo $thumbs10 ?>" alt="<?php echo $title10 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images11 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title11 ?></h3>
		<p><?php echo $desc11 ?></p>
		<a href="<?php echo $url11 ?>" title="<?php echo $title11 ?>" class="open"></a>
		<img src="<?php echo $images11 ?>" alt="<?php echo $title11 ?>" class="full" />
		<img src="<?php echo $thumbs11 ?>" alt="<?php echo $title11 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images12 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title12 ?></h3>
		<p><?php echo $desc12 ?></p>
		<a href="<?php echo $url12 ?>" title="<?php echo $title12 ?>" class="open"></a>
		<img src="<?php echo $images12 ?>" alt="<?php echo $title12 ?>" class="full" />
		<img src="<?php echo $thumbs12 ?>" alt="<?php echo $title12 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images13 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title13 ?></h3>
		<p><?php echo $desc13 ?></p>
		<a href="<?php echo $url13 ?>" title="<?php echo $urltitle13 ?>" class="open"></a>
		<img src="<?php echo $images13 ?>" alt="<?php echo $alt13 ?>" class="full" />
		<img src="<?php echo $thumbs13 ?>" alt="<?php echo $alt13 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images14 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title14 ?></h3>
		<p><?php echo $desc14 ?></p>
		<a href="<?php echo $url14 ?>" title="<?php echo $title14 ?>" class="open"></a>
		<img src="<?php echo $images14 ?>" alt="<?php echo $title14 ?>" class="full" />
		<img src="<?php echo $thumbs14 ?>" alt="<?php echo $title14 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images15 != "") : ?>
    <div class="imageElement">
		<h3><?php echo $title15 ?></h3>
		<p><?php echo $desc15 ?></p>
		<a href="<?php echo $url15 ?>" title="<?php echo $title15 ?>" class="open"></a>
		<img src="<?php echo $images15 ?>" alt="<?php echo $title15 ?>" class="full" />
		<img src="<?php echo $thumbs15 ?>" alt="<?php echo $title15 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images16 != "") : ?>
	<div class="imageElement">
		<h3><?php echo $title16 ?></h3>
		<p><?php echo $desc16 ?></p>
		<a href="<?php echo $url16 ?>" title="<?php echo $title16 ?>" class="open"></a>
		<img src="<?php echo $images16 ?>" alt="<?php echo $title16 ?>" class="full" />
		<img src="<?php echo $thumbs16 ?>" alt="<?php echo $title16 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images17 != "") : ?>
	<div class="imageElement">
		<h3><?php echo $title17 ?></h3>
		<p><?php echo $desc17 ?></p>
		<a href="<?php echo $url17 ?>" title="<?php echo $title17 ?>" class="open"></a>
		<img src="<?php echo $images17 ?>" alt="<?php echo $title17 ?>" class="full" />
		<img src="<?php echo $thumbs17 ?>" alt="<?php echo $title17 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images18 != "") : ?>
	<div class="imageElement">
		<h3><?php echo $title18 ?></h3>
		<p><?php echo $desc18 ?></p>
		<a href="<?php echo $url18 ?>" title="<?php echo $title18 ?>" class="open"></a>
		<img src="<?php echo $images18 ?>" alt="<?php echo $title18 ?>" class="full" />
		<img src="<?php echo $thumbs18 ?>" alt="<?php echo $title18 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images19 != "") : ?>
	<div class="imageElement">
		<h3><?php echo $title19 ?></h3>
		<p><?php echo $desc19 ?></p>
		<a href="<?php echo $url19 ?>" title="<?php echo $title19 ?>" class="open"></a>
		<img src="<?php echo $images19 ?>" alt="<?php echo $title19 ?>" class="full" />
		<img src="<?php echo $thumbs19 ?>" alt="<?php echo $title19 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
    
    <?php if ($images20 != "") : ?>
	<div class="imageElement">
		<h3><?php echo $title20 ?></h3>
		<p><?php echo $desc20 ?></p>
		<a href="<?php echo $url20 ?>" title="<?php echo $title20 ?>" class="open"></a>
		<img src="<?php echo $images20 ?>" alt="<?php echo $title20 ?>" class="full" />
		<img src="<?php echo $thumbs20 ?>" alt="<?php echo $title20 ?>" class="thumbnail" />
	</div>
    <?php endif; ?>
</div>