$(function(){
	$("#Content-brain-function-trouble ,#Content-body-trunk ,#Content-legs ,#Content-torso ,#Content-others").css("visibility", "visible");
	$("#Content-body-trunk ,#Content-legs ,#Content-torso ,#Content-others").css("display", "none");
});

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);


//ロールオーバーをクラスで制御してます。

//「ポイント」
//1.jquery.jsを先に読み込ませること。
//（head部分で先に記述すること。）
//2.ロールオーバーしたいimgタグに「class="swap"」を追加すること。
//3.マウスオン画像はマウスオフ画像に "_on" をつけたものにすること。

$(function() {
    $("a[href$='.pdf']").addClass("ico_pdf");
	$("a[target=_blank]").addClass("ico_blank");
});

