$(document).ready(function(){
   //ドキュメント読み込み後の処理
   
   var gallery01 = '<ul class="clearfix" id="liImg"><li><img src="gallery1/1.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/2.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/3.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/4.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/5.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/6.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/7.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/8.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/9.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/10.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/11.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/12.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/13.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/14.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/15.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/16.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/17.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/18.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/19.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/20.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/21.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/22.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/23.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/24.jpg" alt="" width="170" height="255" /></li><li><img src="gallery1/25.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/26.jpg" alt="" width="170" height="255" /></li></ul>';
   
   
   var gallery02 = '<ul class="clearfix" id="liImg"><li><img src="gallery2/1.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/2.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/3.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/4.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/5.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/6.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/7.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/8.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/9.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/10.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/11.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/12.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/13.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/14.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/15.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/16.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/17.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/18.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/19.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/20.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/21.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/22.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/23.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/24.jpg" alt="" width="170" height="255" /></li><li><img src="gallery2/25.jpg" alt="" width="170" height="255" /></li></ul>';


   var gallery03 = '<ul class="clearfix" id="liImg"><li><img src="gallery3/1.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/2.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/3.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/4.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/5.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/6.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/7.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/8.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/9.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/10.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/11.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/12.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/13.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/14.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/15.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/16.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/17.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/18.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/19.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/20.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/21.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/22.jpg" alt="" width="170" height="255" /></li><li><img src="gallery3/23.jpg" alt="" width="170" height="255" /></li></ul>';

//画像下テキスト
   var text01 = '2月10日付 群馬よみうり掲載より'//記載リスト1
   var text02 = '1月27日付 群馬よみうり掲載より'//記載リスト2
   var text03 = '1月13日付 群馬よみうり掲載より'//記載リスト3

//バックナンバーリスト
   var list01 = '2月10日掲載 「大切な人にメッセージをどうぞ！」'//記載リスト1
   var list02 = '1月27日掲載 「もうすぐ節分！ あなたが招き入れたい福は？」'//記載リスト2
   var list03 = '1月13日掲載 「2012年の抱負を教えてください！」'//記載リスト3


   $("p#gTxt").text(text01);
   
   $("li#gallery1 span").text(list01);
   $("li#gallery2 span").text(list02);
   $("li#gallery3 span").text(list03);
   
   
   $(".jCarouselLite").html(gallery01);
   reloadGa();
   
   //click処理
   $("#gallery1").click(function(){
		$(".jCarouselLite").html("");
		$(".jCarouselLite").html(gallery01);
		reloadGa();
		$("h2 img").attr('src','gallery1/gallery_ttl.gif');
		$("p#gTxt").text(text01);
	});
   
   $("#gallery2").click(function(){
		$(".jCarouselLite").html("");
		$(".jCarouselLite").html(gallery02);
		reloadGa();
		$("h2 img").attr('src','gallery2/gallery_ttl.gif');
		$("p#gTxt").text(text02);
	});
   
   $("#gallery3").click(function(){
		$(".jCarouselLite").html("");
		$(".jCarouselLite").html(gallery03);
		reloadGa();
		$("h2 img").attr('src','gallery3/gallery_ttl.gif');
		$("p#gTxt").text(text03);
	});
   

   //スライドショー
   function reloadGa(){
   
   $(".auto .jCarouselLite").jCarouselLite({
	start: 0,
	auto: 3000,
	speed: 1000,
	easing: "linear"
	})
	
   
   }
   
gClick();
$("#gmenu").hide();
   
});


function gClick(){
$(function(){
	$("div#gbutton").hover(function(){
    	$("#gmenu").slideDown("fast");
	},function(){
  	  $("#gmenu").slideUp("fast");
	});
})
}

