$(function() {
	$("a[href*='.swf']").each(function() {
		$(this).addClass('iframe');
		$(this).fancybox({
			frameWidth			:	667,
			frameHeight			:	500,
			overlayOpacity		:	0.8,
			hideOnContentClick	:	false
		});
	});
	
	$("a[rel='external']").each(function() {
		$(this).attr('target','_BLANK');
	});
	
	$('.booking-form').bookingForm();
	$('#s1').cycle();

	$('.slider').each(function() {
		$(this).children('.contents').hide();
		$(this).append('<a class="button" href="#">nbsp;</a>');
		
		var slider = this;
		$(this).children('.button').click(function() {
			$(this).parents('.slider').find('.contents').slideToggle();
			return false;
		})
	});
	
	$('.event-read-more').each(function() {
		$(this).hide();
		$(this).parent().append('<p><a class="read-more event-read-more-button" href="#" >Read More</a></p>')		
	});
	
	
	$('.event-read-more-button').each(function() {
			$(this).click(function() {
				
				$div = $(this).parent().siblings('.event-read-more');
				
				if ($div.is(':hidden')) {
					$(this).html('Show Less');
					$div.show();
				}
				else {
					$div.slideUp();
					$(this).html('Read More');
				}
				
					
				return false;
			})
		});
});
