// JavaScript Document

//ランダム画像

    var photoNum = 5; // フォト枚数
    photoAlt = "みんなでつくろう　元気　大津　人と自然にやさしい　心かよいあうまち"; // ALTテキスト
		
    photoNo  = Math.floor (Math.random() * photoNum) + 1;
    var photoNo2 = photoNo - 1;
    if (photoNo <1) {
        photoNo = "0" + photoNo;
    }


function topPhoto() {
    document.write ("<div id=\"topPhoto\"><img src=\"library/images/top/imagephoto" + photoNo + ".jpg\" width=\"530\" height=\"210\" alt=\"" + photoAlt+ "\" ></div>");
}

