//URL設定
var URL2 = "http://" + location.hostname + "/parts/change/";

//マウスアウト画像
off_img = URL2 + "0.gif";

//ランダム画像を用意
img = new Array();
img[0] = URL2 + "1.gif";
img[1] = URL2 + "2.gif";
img[2] = URL2 + "3.gif";

function ChangeImg(action) {
  if (action == "out") {
    document.Cimage.src = off_img;
  } else {
    n = Math.floor(Math.random()*img.length);
    document.Cimage.src = img[n];
  }
}
