$(function(){
	$('.home-page-listings .listing-item:nth-child(3n)').addClass('thrid');
	$('.featured-trips-mod .listing-item:even').addClass('even');
	
	if ($("#browsable").length > 0) {
		$("#browsable").scrollable({circular: true,clickable: false}).autoscroll({interval:6500});
	}
	
    $('a[href^="https://thriva.activenetwork.com"]').attr('target', '_blank');
	$('.locations span:last-child b').remove();
});



	

(function($){
jQuery.fn.createBtn = function(){
    return this.each(function(){
        
	var uiBtnClass = $(this).attr("data-class");
	  if(!uiBtnClass){
		  $(this).button().addClass('full-btn');
	  }else{
		  $(this).button({icons: {primary: 'ui-icon-'+uiBtnClass } });	
	  }
		
    });
}
})(jQuery);
$('.btn').createBtn();


