// 1 月
Caption[1]      = '厳冬の安曇野';
Description[1]  = '約１，０００羽以上のコハクチョウが安曇野で羽を休めます';
// 2 月
Caption[2]      = 'アルプスと屋敷森';
Description[2]  = '北アルプスの雪景色は見事です。朝焼けも見てください';
// 3 月
Caption[3]      = '早春賦の歌碑';
Description[3]  = '春はなのみ・・・と安曇野の春を歌ったといわれる早春賦';
// 4 月
Caption[4]      = '光城山からの眺望';
Description[4]  = '桜と残雪の常念岳のコラボです';
// 5 月
Caption[5]      = '水鏡と呼ばれる風景';
Description[5]  = '田んぼの水面にアルプスが描かれます';
// 6 月
Caption[6]      = '明科あやめ公園';
Description[6]  = 'アルプスを背景に、あやめ、花菖蒲が公園を飾ります';
// 7 月
Caption[7]      = '蓼川 三連水車';
Description[7]  = 'アルプスからの伏流水。真夏でも１５℃を越えず、清々しい';
// 8 月
Caption[8]      = '槍ヶ岳登山';
Description[8]  = '夏山登山シーズンです。３，０００メートル級の山々の頂上を目指します';
// 9 月
Caption[9]      = 'そばの花';
Description[9]  = '連続テレビ小説「おひさま」の舞台';
// 10 月
Caption[10]     = '碌山美術館';
Description[10] = '木々の紅葉が安曇野を染め上げます';
// 11 月
Caption[11]     = 'りんご畑';
Description[11] = 'りんごのオーナー制度もあります。もぎ取り体験をしてください';
// 12 月
Caption[12]     = '冬を彩るイルミネーション';
Description[12] = '凛とした空気の中に“光のおもてなし”が映えわたります';

// 以下のコードをテンプレートに含めると、うまく動かない。
// Xoops が、おそらく正規化のため、'src=' の後のかなり長い範囲を引用符で
// 囲んでしまう。(2 箇所)
//
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function chgMoImg( idx ) {
  var x;
  if ( 0 < idx && idx <= 12 ) {
    if ( (x=MM_findObj('MNameImgBox')) != null ) {
      x.src=MNameImg[idx];
    }
    if ( (x=MM_findObj('PictureBox')) != null ) {
      x.style.backgroundImage='url('+Picture[idx]+')';
    }
    if ( (x=MM_findObj('CaptionBox')) != null ) {
      x.innerHTML=Caption[idx];
    }
    if ( (x=MM_findObj('DescriptionBox')) != null ) {
      x.innerHTML=Description[idx];
    }
  }
}
// Declared here to avoid wrong double-quote insertion by Xoops
function writeApple() {
  document.write( '<a href="/apple/" target="_blank"><img src="/images/banners/bannerapple.jpg" onMouseover="this.src=\'images/banners/bannerappleon.jpg\'" onMouseout="this.src=\'images/banners/bannerapple.jpg\'" alt="りんごの木のオーナー募集"></a>' );
}
for ( i = 1; i <= 12; i++ ) {
  MNameImg[i] = '/images/topphotos/month'+i+'.png';
  Picture[i]  = '/images/topphotos/a'+i+'.jpg';
}

