tate.activeIndex = $(this).index();
			refresh();
		});

	// ******************** Helper functions ********************

	function tabs() {
		return this.html("h3", true);
	}

	function tabCount() {
		return this.html("h3").length;
	}

	function headerClass( index ) {
		return index === this.state.activeIndex ? "header_true" : "header_false";
	}

	function tabContent() {
		return this.html("div")[this.state.activeIndex];
	}

</script>

</body>
</html>
