$(document).ready(function() {
	
	// round corners on the right-hand testimonials
	$('#sidebar .quote').corner('6px');
	$('#sidebar .badgeHolder').corner('6px');
	$('.home #content .badges').corner('6px');
	
	// alternate colors in table rows
	$('table tbody tr:even').addClass('altColor');
	
	// remove background from last dotted list item
	$('ul.dottedList li:last-child').css('background','none');
	
	// insert triangle image on massage list links
	$('#content .massageList ul li a').append('<img src="images/img_massagelink.gif" alt="">');
	
	// hover effect for the massage list images
	$('#content .massageList ul li a').hover(function() {
		$(this).children('img').attr('src','images/img_massagelink_on.gif');
	}, function() {	
		$(this).children('img').attr('src','images/img_massagelink.gif');
	});
	
	// on reviews page, remove rule from last review/rave item
	$('#content p.review:last').css('border-bottom','0');
	
	// on reviews page, remove rule from last review/rave item
	$('#sidebar .palmInfo h3:first').css('border-top','0').css('paddingTop','0');
	
	// image cycling on the home page
	$('.home #splashImg').cycle({timeout:4500});
	
	// on gallery page, remove right margin from last item in each row
	$('.gallery .galleryGrid a:nth-child(6n)').children('img').css('marginRight','0');
	
	// initialize colorbox for main gallery images
	$('.galleryGrid a[rel="image"]').colorbox({slideshow:true, slideshowSpeed:4000});
	
	// initialize colorbox for room images
	$('.galleryGrid a[rel="roomImgs"]').colorbox();
	
	// initialize colorbox for room images on Accommodations page
	$('.accommodations a.colorbox').colorbox();
	
	// hover for contact form submit button
	$('#content #contactForm #contactSubmit').hover(function() {
		$(this).attr('src','images/btn_send_on.gif');
	}, function() {	
		$(this).attr('src','images/btn_send.gif');
	});
	
});