// JavaScript Document

$(document).ready(function() {
			$("a[rel=gallery]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
				
				$("a[rel=gallery1]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery2]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery3]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery4]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery5]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery6]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery7]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery8]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery9]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery10]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery11]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
			$("a[rel=gallery12]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over"><span class="imageno">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' </span> ' + (title.length ? ' ' + title : '') + '</span>';
				}
			});
			
				$("a[rel=example1]").fancybox({
		'titleShow'     : false
	});

		});
