<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 

define('AMINA_VIEW_FANCYBOX2', true);

?>

<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="<?php echo AMINA_URL; ?>/app/fancyBox2/lib/jquery.mousewheel-3.0.6.pack.js"></script>

<?php if($amina['view_fancybox'] == "3") { ?>
	<!-- Add Button helper (this is optional) -->
	<link rel="stylesheet" type="text/css" href="<?php echo AMINA_URL; ?>/app/fancyBox2/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
	<script type="text/javascript" src="<?php echo AMINA_URL; ?>/app/fancyBox2/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<?php } ?>

<?php if($amina['view_fancybox'] == "4") { ?>
	<!-- Add Thumbnail helper (this is optional) -->
	<link rel="stylesheet" type="text/css" href="<?php echo AMINA_URL; ?>/app/fancyBox2/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" />
	<script type="text/javascript" src="<?php echo AMINA_URL; ?>/app/fancyBox2/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>
<?php } ?>

<script type="text/javascript">
	$(document).ready(function() {
		<?php if($amina['view_fancybox'] == "3") { ?>
			/* Button helper. Disable animations, hide close button, change title type and content */
			$('.fbox-buttons').fancybox({
				openEffect  : 'none',
				closeEffect : 'none',
				prevEffect : 'none',
				nextEffect : 'none',
				closeBtn  : true,
				helpers : {
					title : {
						type : 'inside'
					},
					buttons	: {}
				},
				afterLoad : function() {
					this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
				}
			});
		<?php } else if($amina['view_fancybox'] == "4") { ?>
			/* Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked */
			$('.fbox-thumbs').fancybox({
				prevEffect : 'none',
				nextEffect : 'none',
				closeBtn  : true,
				arrows    : false,
				nextClick : true,
				helpers : {
					thumbs : {
						width  : 80,
						height : 80
					}
				}
			});
		<?php } ?>
	});
</script>
