// JavaScript Document
$(function(){
	//初期表示状態の設定
	$(".showText").addClass("none");
	$(".showText2").addClass("none");
	$(".showText3").addClass("none");
	$(".showText4").addClass("none");
	$(".showText5").addClass("none");
	$(".showText6").addClass("none");
	$(".showText7").addClass("none");
	$(".showText8").addClass("none");
	$(".showText9").addClass("none");
	$(".showText10").addClass("none");
	$(".showText11").addClass("none");
	$(".showText12").addClass("none");
	
	//click動作の設定
	$(".textChangeBtnTop").click(changeDisp);
	$(".textChangeBtnTop").click(changeTextTop);
	$(".textChangeBtnBottom").click(changeDispBottom);
	
	$(".textChangeBtnTop2").click(changeDisp2);
	$(".textChangeBtnTop2").click(changeTextTop2);
	$(".textChangeBtnBottom2").click(changeDispBottom2);
	
	$(".textChangeBtnTop3").click(changeDisp3);
	$(".textChangeBtnTop3").click(changeTextTop3);
	$(".textChangeBtnBottom3").click(changeDispBottom3);
	
	$(".textChangeBtnTop4").click(changeDisp4);
	$(".textChangeBtnTop4").click(changeTextTop4);
	$(".textChangeBtnBottom4").click(changeDispBottom4);
	
	$(".textChangeBtnTop5").click(changeDisp5);
	$(".textChangeBtnTop5").click(changeTextTop5);
	$(".textChangeBtnBottom5").click(changeDispBottom5);
	
	$(".textChangeBtnTop6").click(changeDisp6);
	$(".textChangeBtnTop6").click(changeTextTop6);
	$(".textChangeBtnBottom6").click(changeDispBottom6);
	
	$(".textChangeBtnTop7").click(changeDisp7);
	$(".textChangeBtnTop7").click(changeTextTop7);
	$(".textChangeBtnBottom7").click(changeDispBottom7);
	
	$(".textChangeBtnTop8").click(changeDisp8);
	$(".textChangeBtnTop8").click(changeTextTop8);
	$(".textChangeBtnBottom8").click(changeDispBottom8);
	
	$(".textChangeBtnTop9").click(changeDisp9);
	$(".textChangeBtnTop9").click(changeTextTop9);
	$(".textChangeBtnBottom9").click(changeDispBottom9);
	
	$(".textChangeBtnTop10").click(changeDisp10);
	$(".textChangeBtnTop10").click(changeTextTop10);
	$(".textChangeBtnBottom10").click(changeDispBottom10);
	
	$(".textChangeBtnTop11").click(changeDisp11);
	$(".textChangeBtnTop11").click(changeTextTop11);
	$(".textChangeBtnBottom11").click(changeDispBottom11);
	
	$(".textChangeBtnTop12").click(changeDisp12);
	$(".textChangeBtnTop12").click(changeTextTop12);
	$(".textChangeBtnBottom12").click(changeDispBottom12);
});

function changeDisp(){	$(".showText").toggleClass("none");	}
function changeDispBottom(){$(".showText").toggleClass("none");	}

function changeDisp2(){$(".showText2").toggleClass("none");}
function changeDispBottom2(){$(".showText2").toggleClass("none");	}

function changeDisp3(){$(".showText3").toggleClass("none");}
function changeDispBottom3(){$(".showText3").toggleClass("none");	}

function changeDisp4(){$(".showText4").toggleClass("none");}
function changeDispBottom4(){$(".showText4").toggleClass("none");	}

function changeDisp5(){$(".showText5").toggleClass("none");}
function changeDispBottom5(){$(".showText5").toggleClass("none");	}

function changeDisp6(){$(".showText6").toggleClass("none");}
function changeDispBottom6(){$(".showText6").toggleClass("none");	}

function changeDisp7(){$(".showText7").toggleClass("none");}
function changeDispBottom7(){$(".showText7").toggleClass("none");	}

function changeDisp8(){$(".showText8").toggleClass("none");}
function changeDispBottom8(){$(".showText8").toggleClass("none");	}

function changeDisp9(){$(".showText9").toggleClass("none");}
function changeDispBottom9(){$(".showText9").toggleClass("none");	}

function changeDisp10(){$(".showText10").toggleClass("none");}
function changeDispBottom10(){$(".showText10").toggleClass("none");	}

function changeDisp11(){$(".showText11").toggleClass("none");}
function changeDispBottom11(){$(".showText11").toggleClass("none");	}

function changeDisp12(){$(".showText12").toggleClass("none");}
function changeDispBottom12(){$(".showText12").toggleClass("none");	}



function changeTextTop(){
	if($(".textChangeBtnTop").text() != "文章を閉じる"){
		$(".textChangeBtnTop").text("文章を閉じる");
		$(".textChangeBtnBottom").text("文章を閉じる");			
		$(".textChangeBtnTop").addClass("textChangeBtnTopOver");
		$(".textChangeBtnBottom").addClass("textChangeBtnBottomOver");	
	} else {
		$(".textChangeBtnTop").text("全文を読む");		
		$(".textChangeBtnBottom").text("詳細を読む");		
		$(".textChangeBtnTop").removeClass("textChangeBtnTopOver");					
		$(".textChangeBtnBottom").removeClass("textChangeBtnBottomOver");	
	}
}
function changeTextBottom(){
	if($(".textChangeBtnBottom").text() != "文章を閉じる"){
		$(".textChangeBtnTop").text("文章を閉じる");
		$(".textChangeBtnBottom").text("文章を閉じる");			
		$(".textChangeBtnTop").addClass("textChangeBtnTopOver");
		$(".textChangeBtnBottom").addClass("textChangeBtnBottomOver");		
	} else {
		$(".textChangeBtnTop").text("全文を読む");		
		$(".textChangeBtnBottom").text("詳細を読む");		
		$(".textChangeBtnTop").removeClass("textChangeBtnTopOver");					
		$(".textChangeBtnBottom").removeClass("textChangeBtnBottomOver");		
	}
}

//2
function changeTextTop2(){
	if($(".textChangeBtnTop2").text() != "文章を閉じる"){
		$(".textChangeBtnTop2").text("文章を閉じる");
		$(".textChangeBtnBottom2").text("文章を閉じる");			
		$(".textChangeBtnTop2").addClass("textChangeBtnTopOver2");
		$(".textChangeBtnBottom2").addClass("textChangeBtnBottomOver2");	
	} else {
		$(".textChangeBtnTop2").text("全文を読む");		
		$(".textChangeBtnBottom2").text("詳細を読む");		
		$(".textChangeBtnTop2").removeClass("textChangeBtnTopOver2");					
		$(".textChangeBtnBottom2").removeClass("textChangeBtnBottomOver2");	
	}
}
function changeTextBottom2(){
	if($(".textChangeBtnBottom2").text() != "文章を閉じる"){
		$(".textChangeBtnTop2").text("文章を閉じる");
		$(".textChangeBtnBottom2").text("文章を閉じる");			
		$(".textChangeBtnTop2").addClass("textChangeBtnTopOver2");
		$(".textChangeBtnBottom2").addClass("textChangeBtnBottomOver2");		
	} else {
		$(".textChangeBtnTop2").text("全文を読む");		
		$(".textChangeBtnBottom2").text("詳細を読む");		
		$(".textChangeBtnTop2").removeClass("textChangeBtnTopOver2");					
		$(".textChangeBtnBottom2").removeClass("textChangeBtnBottomOver2");		
	}
}

//3
function changeTextTop3(){
	if($(".textChangeBtnTop3").text() != "文章を閉じる"){
		$(".textChangeBtnTop3").text("文章を閉じる");
		$(".textChangeBtnBottom3").text("文章を閉じる");			
		$(".textChangeBtnTop3").addClass("textChangeBtnTopOver3");
		$(".textChangeBtnBottom3").addClass("textChangeBtnBottomOver3");	
	} else {
		$(".textChangeBtnTop3").text("全文を読む");		
		$(".textChangeBtnBottom3").text("詳細を読む");		
		$(".textChangeBtnTop3").removeClass("textChangeBtnTopOver3");					
		$(".textChangeBtnBottom3").removeClass("textChangeBtnBottomOver3");	
	}
}
function changeTextBottom3(){
	if($(".textChangeBtnBottom3").text() != "文章を閉じる"){
		$(".textChangeBtnTop3").text("文章を閉じる");
		$(".textChangeBtnBottom3").text("文章を閉じる");			
		$(".textChangeBtnTop3").addClass("textChangeBtnTopOver3");
		$(".textChangeBtnBottom3").addClass("textChangeBtnBottomOver3");		
	} else {
		$(".textChangeBtnTop3").text("全文を読む");		
		$(".textChangeBtnBottom3").text("詳細を読む");		
		$(".textChangeBtnTop3").removeClass("textChangeBtnTopOver3");					
		$(".textChangeBtnBottom3").removeClass("textChangeBtnBottomOver3");		
	}
}

//4
function changeTextTop4(){
	if($(".textChangeBtnTop4").text() != "文章を閉じる"){
		$(".textChangeBtnTop4").text("文章を閉じる");
		$(".textChangeBtnBottom4").text("文章を閉じる");			
		$(".textChangeBtnTop4").addClass("textChangeBtnTopOver4");
		$(".textChangeBtnBottom4").addClass("textChangeBtnBottomOver4");	
	} else {
		$(".textChangeBtnTop4").text("全文を読む");		
		$(".textChangeBtnBottom4").text("詳細を読む");		
		$(".textChangeBtnTop4").removeClass("textChangeBtnTopOver4");					
		$(".textChangeBtnBottom4").removeClass("textChangeBtnBottomOver4");	
	}
}
function changeTextBottom4(){
	if($(".textChangeBtnBottom4").text() != "文章を閉じる"){
		$(".textChangeBtnTop4").text("文章を閉じる");
		$(".textChangeBtnBottom4").text("文章を閉じる");			
		$(".textChangeBtnTop4").addClass("textChangeBtnTopOver4");
		$(".textChangeBtnBottom4").addClass("textChangeBtnBottomOver4");		
	} else {
		$(".textChangeBtnTop4").text("全文を読む");		
		$(".textChangeBtnBottom4").text("詳細を読む");		
		$(".textChangeBtnTop4").removeClass("textChangeBtnTopOver4");					
		$(".textChangeBtnBottom4").removeClass("textChangeBtnBottomOver4");		
	}
}

//5
function changeTextTop5(){
	if($(".textChangeBtnTop5").text() != "文章を閉じる"){
		$(".textChangeBtnTop5").text("文章を閉じる");
		$(".textChangeBtnBottom5").text("文章を閉じる");			
		$(".textChangeBtnTop5").addClass("textChangeBtnTopOver5");
		$(".textChangeBtnBottom5").addClass("textChangeBtnBottomOver5");	
	} else {
		$(".textChangeBtnTop5").text("全文を読む");		
		$(".textChangeBtnBottom5").text("詳細を読む");		
		$(".textChangeBtnTop5").removeClass("textChangeBtnTopOver5");					
		$(".textChangeBtnBottom5").removeClass("textChangeBtnBottomOver5");	
	}
}
function changeTextBottom5(){
	if($(".textChangeBtnBottom5").text() != "文章を閉じる"){
		$(".textChangeBtnTop5").text("文章を閉じる");
		$(".textChangeBtnBottom5").text("文章を閉じる");			
		$(".textChangeBtnTop5").addClass("textChangeBtnTopOver5");
		$(".textChangeBtnBottom5").addClass("textChangeBtnBottomOver5");		
	} else {
		$(".textChangeBtnTop5").text("全文を読む");		
		$(".textChangeBtnBottom5").text("詳細を読む");		
		$(".textChangeBtnTop5").removeClass("textChangeBtnTopOver5");					
		$(".textChangeBtnBottom5").removeClass("textChangeBtnBottomOver5");		
	}
}

//6
function changeTextTop6(){
	if($(".textChangeBtnTop6").text() != "文章を閉じる"){
		$(".textChangeBtnTop6").text("文章を閉じる");
		$(".textChangeBtnBottom6").text("文章を閉じる");			
		$(".textChangeBtnTop6").addClass("textChangeBtnTopOver6");
		$(".textChangeBtnBottom6").addClass("textChangeBtnBottomOver6");	
	} else {
		$(".textChangeBtnTop6").text("全文を読む");		
		$(".textChangeBtnBottom6").text("詳細を読む");		
		$(".textChangeBtnTop6").removeClass("textChangeBtnTopOver6");					
		$(".textChangeBtnBottom6").removeClass("textChangeBtnBottomOver6");	
	}
}
function changeTextBottom6(){
	if($(".textChangeBtnBottom6").text() != "文章を閉じる"){
		$(".textChangeBtnTop6").text("文章を閉じる");
		$(".textChangeBtnBottom6").text("文章を閉じる");			
		$(".textChangeBtnTop6").addClass("textChangeBtnTopOver6");
		$(".textChangeBtnBottom6").addClass("textChangeBtnBottomOver6");		
	} else {
		$(".textChangeBtnTop6").text("全文を読む");		
		$(".textChangeBtnBottom6").text("詳細を読む");		
		$(".textChangeBtnTop6").removeClass("textChangeBtnTopOver6");					
		$(".textChangeBtnBottom6").removeClass("textChangeBtnBottomOver6");		
	}
}

//7
function changeTextTop7(){
	if($(".textChangeBtnTop7").text() != "文章を閉じる"){
		$(".textChangeBtnTop7").text("文章を閉じる");
		$(".textChangeBtnBottom7").text("文章を閉じる");			
		$(".textChangeBtnTop7").addClass("textChangeBtnTopOver7");
		$(".textChangeBtnBottom7").addClass("textChangeBtnBottomOver7");	
	} else {
		$(".textChangeBtnTop7").text("全文を読む");		
		$(".textChangeBtnBottom7").text("詳細を読む");		
		$(".textChangeBtnTop7").removeClass("textChangeBtnTopOver7");					
		$(".textChangeBtnBottom7").removeClass("textChangeBtnBottomOver7");	
	}
}
function changeTextBottom7(){
	if($(".textChangeBtnBottom7").text() != "文章を閉じる"){
		$(".textChangeBtnTop7").text("文章を閉じる");
		$(".textChangeBtnBottom7").text("文章を閉じる");			
		$(".textChangeBtnTop7").addClass("textChangeBtnTopOver7");
		$(".textChangeBtnBottom7").addClass("textChangeBtnBottomOver7");		
	} else {
		$(".textChangeBtnTop7").text("全文を読む");		
		$(".textChangeBtnBottom7").text("詳細を読む");		
		$(".textChangeBtnTop7").removeClass("textChangeBtnTopOver7");					
		$(".textChangeBtnBottom7").removeClass("textChangeBtnBottomOver7");		
	}
}

//8
function changeTextTop8(){
	if($(".textChangeBtnTop8").text() != "文章を閉じる"){
		$(".textChangeBtnTop8").text("文章を閉じる");
		$(".textChangeBtnBottom8").text("文章を閉じる");			
		$(".textChangeBtnTop8").addClass("textChangeBtnTopOver8");
		$(".textChangeBtnBottom8").addClass("textChangeBtnBottomOver8");	
	} else {
		$(".textChangeBtnTop8").text("全文を読む");		
		$(".textChangeBtnBottom8").text("詳細を読む");		
		$(".textChangeBtnTop8").removeClass("textChangeBtnTopOver8");					
		$(".textChangeBtnBottom8").removeClass("textChangeBtnBottomOver8");	
	}
}
function changeTextBottom8(){
	if($(".textChangeBtnBottom8").text() != "文章を閉じる"){
		$(".textChangeBtnTop8").text("文章を閉じる");
		$(".textChangeBtnBottom8").text("文章を閉じる");			
		$(".textChangeBtnTop8").addClass("textChangeBtnTopOver8");
		$(".textChangeBtnBottom8").addClass("textChangeBtnBottomOver8");		
	} else {
		$(".textChangeBtnTop8").text("全文を読む");		
		$(".textChangeBtnBottom8").text("詳細を読む");		
		$(".textChangeBtnTop8").removeClass("textChangeBtnTopOver8");					
		$(".textChangeBtnBottom8").removeClass("textChangeBtnBottomOver8");		
	}
}

//9
function changeTextTop9(){
	if($(".textChangeBtnTop9").text() != "文章を閉じる"){
		$(".textChangeBtnTop9").text("文章を閉じる");
		$(".textChangeBtnBottom9").text("文章を閉じる");			
		$(".textChangeBtnTop9").addClass("textChangeBtnTopOver9");
		$(".textChangeBtnBottom9").addClass("textChangeBtnBottomOver9");	
	} else {
		$(".textChangeBtnTop9").text("全文を読む");		
		$(".textChangeBtnBottom9").text("詳細を読む");		
		$(".textChangeBtnTop9").removeClass("textChangeBtnTopOver9");					
		$(".textChangeBtnBottom9").removeClass("textChangeBtnBottomOver9");	
	}
}
function changeTextBottom9(){
	if($(".textChangeBtnBottom9").text() != "文章を閉じる"){
		$(".textChangeBtnTop9").text("文章を閉じる");
		$(".textChangeBtnBottom9").text("文章を閉じる");			
		$(".textChangeBtnTop9").addClass("textChangeBtnTopOver9");
		$(".textChangeBtnBottom9").addClass("textChangeBtnBottomOver9");		
	} else {
		$(".textChangeBtnTop9").text("全文を読む");		
		$(".textChangeBtnBottom9").text("詳細を読む");		
		$(".textChangeBtnTop9").removeClass("textChangeBtnTopOver9");					
		$(".textChangeBtnBottom9").removeClass("textChangeBtnBottomOver9");		
	}
}

//10
function changeTextTop10(){
	if($(".textChangeBtnTop10").text() != "文章を閉じる"){
		$(".textChangeBtnTop10").text("文章を閉じる");
		$(".textChangeBtnBottom10").text("文章を閉じる");			
		$(".textChangeBtnTop10").addClass("textChangeBtnTopOver10");
		$(".textChangeBtnBottom10").addClass("textChangeBtnBottomOver10");	
	} else {
		$(".textChangeBtnTop10").text("全文を読む");		
		$(".textChangeBtnBottom10").text("詳細を読む");		
		$(".textChangeBtnTop10").removeClass("textChangeBtnTopOver10");					
		$(".textChangeBtnBottom10").removeClass("textChangeBtnBottomOver10");	
	}
}
function changeTextBottom10(){
	if($(".textChangeBtnBottom10").text() != "文章を閉じる"){
		$(".textChangeBtnTop10").text("文章を閉じる");
		$(".textChangeBtnBottom10").text("文章を閉じる");			
		$(".textChangeBtnTop10").addClass("textChangeBtnTopOver10");
		$(".textChangeBtnBottom10").addClass("textChangeBtnBottomOver10");		
	} else {
		$(".textChangeBtnTop10").text("全文を読む");		
		$(".textChangeBtnBottom10").text("詳細を読む");		
		$(".textChangeBtnTop10").removeClass("textChangeBtnTopOver10");					
		$(".textChangeBtnBottom10").removeClass("textChangeBtnBottomOver10");		
	}
}

//11
function changeTextTop11(){
	if($(".textChangeBtnTop11").text() != "文章を閉じる"){
		$(".textChangeBtnTop11").text("文章を閉じる");
		$(".textChangeBtnBottom11").text("文章を閉じる");			
		$(".textChangeBtnTop11").addClass("textChangeBtnTopOver11");
		$(".textChangeBtnBottom11").addClass("textChangeBtnBottomOver11");	
	} else {
		$(".textChangeBtnTop11").text("全文を読む");		
		$(".textChangeBtnBottom11").text("詳細を読む");		
		$(".textChangeBtnTop11").removeClass("textChangeBtnTopOver11");					
		$(".textChangeBtnBottom11").removeClass("textChangeBtnBottomOver11");	
	}
}
function changeTextBottom11(){
	if($(".textChangeBtnBottom11").text() != "文章を閉じる"){
		$(".textChangeBtnTop11").text("文章を閉じる");
		$(".textChangeBtnBottom11").text("文章を閉じる");			
		$(".textChangeBtnTop11").addClass("textChangeBtnTopOver11");
		$(".textChangeBtnBottom11").addClass("textChangeBtnBottomOver11");		
	} else {
		$(".textChangeBtnTop11").text("全文を読む");		
		$(".textChangeBtnBottom11").text("詳細を読む");		
		$(".textChangeBtnTop11").removeClass("textChangeBtnTopOver11");					
		$(".textChangeBtnBottom11").removeClass("textChangeBtnBottomOver11");		
	}
}

//12
function changeTextTop12(){
	if($(".textChangeBtnTop12").text() != "文章を閉じる"){
		$(".textChangeBtnTop12").text("文章を閉じる");
		$(".textChangeBtnBottom12").text("文章を閉じる");			
		$(".textChangeBtnTop12").addClass("textChangeBtnTopOver12");
		$(".textChangeBtnBottom12").addClass("textChangeBtnBottomOver12");	
	} else {
		$(".textChangeBtnTop12").text("全文を読む");		
		$(".textChangeBtnBottom12").text("詳細を読む");		
		$(".textChangeBtnTop12").removeClass("textChangeBtnTopOver12");					
		$(".textChangeBtnBottom12").removeClass("textChangeBtnBottomOver12");	
	}
}
function changeTextBottom12(){
	if($(".textChangeBtnBottom12").text() != "文章を閉じる"){
		$(".textChangeBtnTop12").text("文章を閉じる");
		$(".textChangeBtnBottom12").text("文章を閉じる");			
		$(".textChangeBtnTop12").addClass("textChangeBtnTopOver12");
		$(".textChangeBtnBottom12").addClass("textChangeBtnBottomOver12");		
	} else {
		$(".textChangeBtnTop12").text("全文を読む");		
		$(".textChangeBtnBottom12").text("詳細を読む");		
		$(".textChangeBtnTop12").removeClass("textChangeBtnTopOver12");					
		$(".textChangeBtnBottom12").removeClass("textChangeBtnBottomOver12");		
	}
}



// プルダウンメニュー選択でリンク先に自動的に移動
function moveUrl(){
	var num = document.yearForm.selectYear.selectedIndex;
//	alert(document.yearForm.selectYear.options[num].value);
	this.location.href = document.yearForm.selectYear.options[num].value;
}
function moveUrl2(){
	var num = document.yearForm2.selectYear2.selectedIndex;
//	alert(document.yearForm2.selectYear2.options[num].value);
	this.location.href = document.yearForm2.selectYear2.options[num].value;
}

