$(document).ready(
	function() {

		$('#images img').removeClass('hidden');
		$('#images').innerfade({
			animationtype: 'fade',
			speed: 2000,
			timeout: 4000,
			type: 'sequence',
			containerheight:'350px'
		});

		// Form Eye Candy

		$('#reservation input, #reservation select, #reservation textarea, #reservation label')
		.focus(
			function() {
				$this = $(this);
				$trHighlight = $this.parents('tr.highlight');
				$('th label', $trHighlight).css({ fontWeight:'bold' });
				$trHighlight.css({
					backgroundColor:'#eee',
					border:'1px solid #ddd'
				});
			}
		)
		.blur(
			function() {
				$this = $(this);
				$trHighlight = $this.parents('tr.highlight');
				$('th label', $trHighlight).css({ fontWeight:'normal' });
				$trHighlight.css({
					backgroundColor:'#fff',
					border:'none'
				});
			}
		);

		$('.form_contact').focus(
			function() {
				this.select();
			}
		);

		/** Form validiation eye candy **/

		$('h2.missing, label.missing').css({ color:'#000'});
		$('h2.missing').animate({color:'red'}, 800, 'linear', function() {
			$('label.missing').animate({color:'red'}, 2000);
		});

		$('h2.ok').css({ color:'#000'});
		$('h2.ok').animate({color:'green'}, 2000);

	$("#friesacher_video").fancybox({
				'width'				: 600,
				'height'			: 500,
				'autoScale'			: true,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'scrolling'			: 'no'
			});
	}
);

