// JavaScript Document
		$(document).ready(function() {
// Photo album
    $("a[rel=album1]").fancybox({
				'overlayShow'	: true,
				'overlayColor'		: '#333366',
				'overlayOpacity'	: 0.5,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
  		$("a[rel=album2]").fancybox({
				'overlayShow'	: true,
				'overlayColor'		: '#333366',
				'overlayOpacity'	: 0.5,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
		$("a[rel=album3]").fancybox({
				'overlayShow'	: true,
				'overlayColor'		: '#333366',
				'overlayOpacity'	: 0.5,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
		$("a[rel=album4]").fancybox({
				'overlayShow'	: true,
				'overlayColor'		: '#333366',
				'overlayOpacity'	: 0.5,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
		$("a[rel=album5]").fancybox({
				'overlayShow'	: true,
				'overlayColor'		: '#333366',
				'overlayOpacity'	: 0.5,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});		
// Single Photo       	
			$("a#photo").fancybox({
			  'scrolling'   : 'auto',
				'overlayShow'	: true,
				'overlayColor'		: '#333366',
				'overlayOpacity'	: 0.5,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition' 	: 'outside'				
			});
// others
			$("a#iframe").fancybox({
				'overlayShow'	: true,
				'overlayColor'		: '#333366',
				'overlayOpacity'	: 0.5,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
		});
