$(document).ready(function() {
	$('#news-westhalten').click(function() {
		$.fancybox([
			'/images/news-westhalten/DSC04730.jpg',
			'/images/news-westhalten/DSC04733.jpg',
			'/images/news-westhalten/DSC04735.jpg',
			'/images/news-westhalten/DSC04737.jpg',
			'/images/news-westhalten/DSC04743.jpg',
			'/images/news-westhalten/DSC04747.jpg',
			'/images/news-westhalten/DSC04751.jpg',
			'/images/news-westhalten/DSC04747.jpg',
			'/images/news-westhalten/DSC04754.jpg',
			'/images/news-westhalten/Photos  Printemps 2011 086.jpg',
			'/images/news-westhalten/Photos  Printemps 2011 088.jpg',
			'/images/news-westhalten/Photos  Printemps 2011 090.jpg',
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0,
			'overlayOpacity'    : 0.9
		});
	});
	
	$('#plaza-culinaria-link').fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
	
	$('#special-diaporama').click(function() {
		$.fancybox([
			'/uploads/press/diapo-11-11/fj_016.JPG',
			'/uploads/press/diapo-11-11/fj_027.JPG',
			'/uploads/press/diapo-11-11/fj_045.JPG',
			'/uploads/press/diapo-11-11/fj_047.JPG',
			'/uploads/press/diapo-11-11/fj_054.JPG',
			'/uploads/press/diapo-11-11/fj_060.JPG',
			'/uploads/press/diapo-11-11/fj_066.JPG',
			'/uploads/press/diapo-11-11/fj_067.JPG',
			'/uploads/press/diapo-11-11/fj_072.JPG',
			'/uploads/press/diapo-11-11/fj_088.JPG',
			'/uploads/press/diapo-11-11/fj_090.JPG',
			'/uploads/press/diapo-11-11/fj_095.JPG',
			'/uploads/press/diapo-11-11/fj_103.JPG'
		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0,
			'overlayOpacity'    : 0.9
		});
	});
	
	// Lost password
	$('#passwdlost').fancybox();
	$('#lostpassfrm').submit(function() {
		$.post('/account/lostpassword.html', { email: $('#lostpass').attr('value') }, function(data) {
			$('#passwdformmsg').html(data.msg);
		}, 'json');
		
		return false;
	});
});
