/*----------------------------------------------------------------------------
	IE first/last child Fix
----------------------------------------------------------------------------*/
	if ($.browser.msie) {		
		$('li:first-child').addClass('first-child');
		$('li:last-child').addClass('last-child');
		$('li:nth-child(even)').addClass('even-child');
	}

/*----------------------------------------------------------------------------
	Fix IE hover:
----------------------------------------------------------------------------*/

	if ($.browser.msie) {
		$('li, input[type=submit]').hover(
			function() {
				$(this).addClass('hover');
			},
			function() {
				$(this).removeClass('hover');
			}
		);
		$('li, input[type=submit]').focus(
			function() {
				$(this).addClass('hover');
			},
			function() {
				$(this).removeClass('hover');
			}
		);
	}
	
	
$(document).ready(function() {
	/*----------------------------------------------------------------------------
		Open external links in a new tab/window
	----------------------------------------------------------------------------*/
		$('a.external, a[rel=external], a[title=external]').click(function() {
			window.open($(this).attr('href'));			
			return false;
		})
		
		$('div.tour-image-container').cycle({
			fx: 'fade',
			speed: 'slow',
			timeout: '7500'
		});
	
	/*----------------------------------------------------------------------------
		Inline labeler w/title attr
	----------------------------------------------------------------------------*/
		 $('input.inline, textarea').placeholder();
				
	/*----------------------------------------------------------------------------
		Make page anchor at form if invalid
	----------------------------------------------------------------------------*/
		
		if($("#contact-form .error").length > 0) {
			window.location.href = '#top';
		}
		if($("#accommodation-form .error").length > 0) {
			window.location.href = '#top';
		}
	
});
		

