// execute your scripts when the DOM is ready. this is mostly a good habit
$(function() {
	// initialize scrollable
	$(".scrollable").scrollable({circular: true}).autoscroll({ autoplay: true }).navigator();
	var api = $(".scrollable").data("scrollable");
	api.onSeek = function() {
		itms = api.getItems();
		i = api.getIndex()
		r = itms.eq(i).attr("rel");
		
		$(".header-text").children("div").hide();
		$(".header-text").find("#" + r).show();
	};
});

