/**
 * 
 */
$(document).ready(function() {
	
	// Splits Amenities into 2 columns
	$("td#features, div#features").children().each(function(i){
		if((i % 2) == 0){
			$(this).css({ 'float':'left', width:'49%'});
		}else{
			$(this).css({ 'float':'right', width:'49%'});
		}
	});
	
	// Animates the message	
	if($('div.important').html() !== null){
		$('div.important').css('display','none');
		var ani = setTimeout(function(){
			$('div.important').show('slow');
		},1000);
	}
	
});

/**
 * Shadowbox Initialization
 */
Shadowbox.init({players:["img","html","iframe"]});

/**
 * Adds case-insensitive search capabilities to jquery
 */
jQuery.expr[':'].stristr = function(a,i,m){
	return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0;
};
