$(document).ready(function() {
			$("a[rel=galleri]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-1]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-2]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-3]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-4]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-5]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-6]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-7]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-8]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-9]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-10]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-11]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-12]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-13]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-14]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-15]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-16]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-17]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-18]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-19]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=galleri-20]").fancybox({
				'titleShow'		: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'autoScale'			: true,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Bilde ' + (currentIndex + 1) + ' av ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

		});
