/* main_image */

$(document).ready(function() {
	var num = -1;
	$.featureList(
		$("#main_image_tab_area li"),
		$("#main_image_area dl"), {
			
		start_item:1 + num,         // default item
		transition_interval	:	8000,    // interval time(0 = no automatic transitions)
		pause_on_hover:	true       // pause when hover
		
		}
	);
});

$(function(){
	$("#main_image_tab_area li").each(function(){
		$(this).hover(function(){
			$("#main_image_tab_area li").removeClass("hover");
			$(this).addClass("hover");
		},function(){
			$(this).removeClass("hover");
		})
		})
});


/* news */

$(document).ready(function(){
	$('#main .news_area_box dl:nth-child(odd)').addClass("odd");
	$('#main .news_area_box dl:nth-child(even)').addClass("even");
});
$(function() {
	/* tab_01 */
	$("#news_tab a[href=#tab_01]").click(function(event){$("#news_area div[id^=tab_]").hide();$("#tab_01").show();event.preventDefault();$("#news_tab li[id^=tab_button_]").removeClass("active");$("#tab_button_01").addClass("active");})

	/* tab_02 */
	$("#news_tab a[href=#tab_02]").click(function(event){$("#news_area div[id^=tab_]").hide();$("#tab_02").show();event.preventDefault();$("#news_tab li[id^=tab_button_]").removeClass("active");$("#tab_button_02").addClass("active");})

	/* tab_03 */
	$("#news_tab a[href=#tab_03]").click(function(event){$("#news_area div[id^=tab_]").hide();$("#tab_03").show();event.preventDefault();$("#news_tab li[id^=tab_button_]").removeClass("active");$("#tab_button_03").addClass("active");})

	/* tab_04 */
	$("#news_tab a[href=#tab_04]").click(function(event){$("#news_area div[id^=tab_]").hide();$("#tab_04").show();event.preventDefault();$("#news_tab li[id^=tab_button_]").removeClass("active");$("#tab_button_04").addClass("active");})

	/* tab_05 */
	$("#news_tab a[href=#tab_05]").click(function(event){$("#news_area div[id^=tab_]").hide();$("#tab_05").show();event.preventDefault();$("#news_tab li[id^=tab_button_]").removeClass("active");$("#tab_button_05").addClass("active");})

	/* tab_06 */
	$("#news_tab a[href=#tab_06]").click(function(event){$("#news_area div[id^=tab_]").hide();$("#tab_06").show();event.preventDefault();$("#news_tab li[id^=tab_button_]").removeClass("active");$("#tab_button_06").addClass("active");})

	/* tab_07 */
	$("#news_tab a[href=#tab_07]").click(function(event){$("#news_area div[id^=tab_]").hide();$("#tab_07").show();event.preventDefault();$("#news_tab li[id^=tab_button_]").removeClass("active");$("#tab_button_07").addClass("active");})

})


