
/**
* Roll Over /
* Toggle
**/


  $(document).ready(function() {
	//toggle

	$("p.title").toggle(
	function () {
	$("p.title").text("閉じる▼");
	$(this).next().slideToggle("slow");
	},
        function () {
	$("p.title").text("続きを読む");
	$(this).next().slideToggle("slow");
	});



	$("p.title01").toggle(
	function () {
	$("p.title01").text("閉じる▼");
	$(this).next().slideToggle("slow");
	},
        function () {
	$("p.title01").text("詳細を読む");
	$(this).next().slideToggle("slow");
	});


	$("p.title02").toggle(
	function () {
	$("p.title02").text("閉じる▼");
	$(this).next().slideToggle("slow");
	},
        function () {
	$("p.title02").text("詳細を読む");
	$(this).next().slideToggle("slow");
	});


  });

function initRollOverImages() {
  var image_cache = new Object();
  $("img.swap").each(function(i) {
    var imgsrc = this.src;
    var dot = this.src.lastIndexOf('.');
    var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
    image_cache[this.src] = new Image();
    image_cache[this.src].src = imgsrc_on;
    $(this).hover(
      function() { this.src = imgsrc_on; },
      function() { this.src = imgsrc; });
  });
}

$(document).ready(initRollOverImages);



