// ランダムに画像を表示する



var img = new Array;

img[0] = "<img src=http://www.iida-machinaka.com/image/00.jpg width=788 height=295 alt=川本喜八郎人形美術館前でのイベントの様子 />";
img[1] = "<img src=http://www.iida-machinaka.com/image/01.jpg width=788 height=295 alt=川本喜八郎人形美術館とりんご庁舎 />";
img[2] = "<img src=http://www.iida-machinaka.com/image/02.jpg width=788 height=295 alt=飯田りんご並木 />";
img[3] = "<img src=http://www.iida-machinaka.com/image/03.jpg width=788 height=295 alt=飯田りんご並木通り俯瞰 />";
img[4] = "<img src=http://www.iida-machinaka.com/image/04.jpg width=788 height=295 alt=飯田りんご並木 />";
img[5] = "<img src=http://www.iida-machinaka.com/image/05.jpg width=788 height=295 alt=飯田りんご並木通り />";
img[6] = "<img src=http://www.iida-machinaka.com/image/06.jpg width=788 height=295 alt=夕陽に照らされるりんご庁舎 />";
img[7] = "<img src=http://www.iida-machinaka.com/image/07.jpg width=788 height=295 alt=飯田りんこ並木通り足元ライトモニュメント />";
img[8] = "<img src=http://www.iida-machinaka.com/image/08.jpg width=788 height=295 alt=飯田市銀座堀端ビルエントランス />";
img[9] = "<img src=http://www.iida-machinaka.com/image/09.jpg width=788 height=295 alt=飯田市銀座通り夜景 />";
img[10] = "<img src=http://www.iida-machinaka.com/image/10.jpg width=788 height=295 alt=飯田市本町飯田信用金庫本店横階段イルミネーション />";
img[11] = "<a href=http://iida-idea.jp/ifm/ target=_blank><img border=0 src=http://www.iida-machinaka.com/image/11.jpg width=788 height=295 alt=インターナショナル・フィギュア・マーケットより /></a>";
img[12] = "<a href=http://iida-idea.jp/ifm/ target=_blank><img border=0 src=http://www.iida-machinaka.com/image/12.jpg width=788 height=295 alt=インターナショナル・フィギュア・マーケットより /></a>";
img[13] = "<a href=http://iida-idea.jp/ifm/ target=_blank><img border=0 src=http://www.iida-machinaka.com/image/13.jpg width=788 height=295 alt=インターナショナル・フィギュア・マーケットより /></a>";
img[14] = "<a href=http://iida-idea.jp/ifm/ target=_blank><img border=0 src=http://www.iida-machinaka.com/image/14.jpg width=788 height=295 alt=インターナショナル・フィギュア・マーケットより /></a>";

// function random_img(){
//        var i = myrandom(img.length) - 1;
//        document.write("<IMG SRC=\""+img[i]+"\">");
//}

function random_img(){
        var i = myrandom(img.length) - 1;
        document.write(img[i]);
}

function myrandom(max){
        var v = max * Math.random();
        if(v == 0.0){v = 1;}else{v = Math.ceil(v);}
        return v;
}


