$(function() {
	
	t = $(".tab");
	
	if (t.size() > 0) {
		t.click(function() {
			t.removeClass("current");
			$(this).addClass("current");
			id = $(this).attr("rel");
			$(".tab_content").css("display", "none");
			$("#tab-content-"+id).css("display", "");
		});
	}
});