var $name_prev = function() {
	var $name_carousel = document.getElementById('$name');
	$name_carousel.prev();
};

var $name_next = function() {
	var $name_carousel = document.getElementById('$name');
	$name_carousel.next();
};

ons.ready(function() {
	var $name_carousel = document.addEventListener('postchange', function(event) {
		$name_console.log('Changed to ' + event.activeIndex)
		$name_changed(event.activeIndex);
	});
});

function $name_changed(ActiveIndex) {
	console.log(ActiveIndex);
}