$(document).ready(function(){
	var date = new Date();
	date.setTime(date.getTime() + (200 * 24 * 60 * 60 * 1000));
	var options = { path: '/', expires: date };
	
	/*
	if ($.cookie('overlay_cookie') != _OVERLAY_HASH) {
		$('#overlay').overlay({ 
			api: true 
		}).load();
		$.cookie('overlay_cookie', _OVERLAY_HASH, options);
	}
	*/
	
	if ($('#thumbnails .items').length > 0) {
		$('#thumbnails .items a').overlay({ 
			// each trigger uses the same overlay with the id "gallery" 
			target: '#gallery', 
			// optional exposing effect 
			expose: '#003E6F' 
			// let the gallery plugin do its magic! 
		}).gallery({ 
			// the plugin accepts its own set of configuration options 
			speed: 800, 
			template: '<span>Bild ${index} von ${total}</span>'
		});
	}
	
	
	$('#reservation').click(function() {
		$('#overlay_reservation').overlay({ 
			api: true 
		}).load();
		return false;
	});
	
	
});

