// JavaScript Document
function top_photo(){

var imgMax  = 14; //セットする画像の枚数。
var imgRand = Math.floor(Math.random() * imgMax);

if(imgRand == 0)       document.write('<img src="img/top_ph01.jpg" width=489 height=332>');
else if(imgRand == 1)  document.write('<img src="img/top_ph02.jpg" width=489 height=332>');
else if(imgRand == 2)  document.write('<img src="img/top_ph03.jpg" width=489 height=332>');
else if(imgRand == 3)  document.write('<img src="img/top_ph04.jpg" width=489 height=332>');
else if(imgRand == 4)  document.write('<img src="img/top_ph05.jpg" width=489 height=332>');
else if(imgRand == 5)  document.write('<img src="img/top_ph06.jpg" width=489 height=332>');
else if(imgRand == 6)  document.write('<img src="img/top_ph07.jpg" width=489 height=332>');
else if(imgRand == 7)  document.write('<img src="img/top_ph08.jpg" width=489 height=332>');
else if(imgRand == 8)  document.write('<img src="img/top_ph09.jpg" width=489 height=332>');
else if(imgRand == 9)  document.write('<img src="img/top_ph10.jpg" width=489 height=332>');
else if(imgRand == 10)  document.write('<img src="img/top_ph11.jpg" width=489 height=332>');
else if(imgRand == 11)  document.write('<img src="img/top_ph12.jpg" width=489 height=332>');
else if(imgRand == 12)  document.write('<img src="img/top_ph13.jpg" width=489 height=332>');
else if(imgRand == 13)  document.write('<img src="img/top_ph14.jpg" width=489 height=332>');

/*これ以下、
  else if(imgRand == 3)  document.write('<img src="画像の場所を指定">');
  else if(imgRand == 4)  document.write('<img src="画像の場所を指定">');
  という風に、ランダムに表示する画像数を増やすことができます。
　その場合は、セットする画像の枚数　"imgMax=XX"の値を変更してください。*/

}
