$(document).ready(function(){
	
	/* pre-owned cars (available) preview listing */
	
	$('#po-available-pagers li a').click(function(){												
	
	var page = $('#po-available-pagers li').index($(this).parent()) + 1;
	
	$.get('ajax-po.php', {'page':page}, function(data) {
		$('#po-available-list').html(data);
	});
	
	$(this).parent().siblings().removeClass('current');
	$(this).parent().addClass('current');
	
	return false;
	
	});
	
	/* new cars carousel */
	
	$('#home-new-cars .frame').cycle({
		fx: 'fade', 
		speed: 'fast', 
		timeout: 0, 
		next: '#home-new-next', 
		prev: '#home-new-prev',
		before: function() { 
			$('#home-new-cars-caption').html(this.title);
		}
	});

	
});
