$(function() {
	$("#form-video-report").submit(function() {
		$.post(this.action, $(this).serialize(), function() {
			alert('送信しました');
		});
		return false;
	});

	$("#controller-tabs")
		.find('li a').click(function() {
			if ($("#tab-content-search").length == 0)  return false;
			$("#controller-tabs ul li a").each(function() {
				$(this.hash).hide();
				switch ($(this).attr("id")) {
					case 'controller-tab-search':
						$(this).removeClass("tab-search-selected");
						$("#tab-content-search").hide();
						break;
					case 'controller-tab-playlist':
						$(this).removeClass("tab-playlist-selected");
						$("#tab-content-playlist").hide();
						break;
				}
			});
			$(this.hash).show();
			switch ($(this).attr("id")) {
				case 'controller-tab-search':
					$(this).addClass("tab-search-selected");
					$("#tab-content-search").show();
					break;
				case 'controller-tab-playlist':
					$(this).addClass("tab-playlist-selected");
					$("#tab-content-playlist").show();
					break;
			}
			return false;
		})
		.end();

	function hideControllerTabs() {
	}
	if ( $("#tab-content-search").length > 0 ) {
		$("#controller-tab-search").click();
	} else {
		$("#controller-tab-playlist").click();
	}

	//controllerTabResize();

  $('#channel-info div.channel-title a.btn-more').click(function() {
      $('#channel-info div.contents-more').toggle();
  });
});
// vim: set ts=2 sw=2 noexpandtab cindent autoindent

