var imgMax= 26; //セットする画像の枚数。
var imgRand = Math.floor(Math.random() * imgMax);

if(imgRand == 0) document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai02.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house02.jpg" alt="施工事例(仙台市青葉区07A様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 1)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai03.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house03.jpg" alt="施工事例(仙台市宮城野区06A様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 2)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai04.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house04.jpg" alt="施工事例(仙台市泉区07B様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 3)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai05.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house05.jpg" alt="施工事例(仙台市太白区07C様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 4)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai06.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house06.jpg" alt="施工事例(利府町07D様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 5)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai07.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house07.jpg" alt="施工事例(大崎市07E様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 6)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai08.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house08.jpg" alt="施工事例(大崎市07F様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 7)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai09.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house09.jpg" alt="施工事例(利府町07G様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 8)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai10.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house10.jpg" alt="施工事例(仙台市青葉区08A様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 9)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai11.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house11.jpg" alt="施工事例(仙台市太白区08B様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 10)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai12.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house12.jpg" alt="施工事例(仙台市太白区07H様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 11)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai13.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house13.jpg" alt="施工事例(仙台市青葉区07I様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 12)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai14.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house14.jpg" alt="施工事例(仙台市泉区07J様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 13)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai15.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house15.jpg" alt="施工事例(仙台市宮城野区07K様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 14)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai16.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house16.jpg" alt="施工事例(仙台市青葉区08C様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 15)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai17.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house17.jpg" alt="施工事例(仙台市泉区08D様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 16)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai18.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house18.jpg" alt="施工事例(富谷町08E様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 17)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai19.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house19.jpg" alt="施工事例(利府町08F様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 18)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai20.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house20.jpg" alt="施工事例(仙台市青葉区08G様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 19)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai21.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house21.jpg" alt="施工事例(仙台市青葉区08H様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 20)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai22.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house22.jpg" alt="施工事例(仙台市青葉区08I様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 21)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai23.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house23.jpg" alt="施工事例(仙台市泉区09A様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 22)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai24.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house24.jpg" alt="施工事例(仙台市泉区09B様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 23)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai25.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house25.jpg" alt="施工事例(石巻市 09C様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 24)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai26.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house26.jpg" alt="施工事例(名取市 10A様宅)" width="270" height="215" /></a></p>');

else if(imgRand == 25)document.write('<p><a href="http://www.k-togashi.co.jp/looking/osumai27.html"><img src="http://www.k-togashi.co.jp/img/houseimg/house27.jpg" alt="施工事例(仙台市太白区 9D様宅)" width="270" height="215" /></a></p>');
