<!--
var hayasa=10000;	//---スライドショーの速さ（ミリ秒単位）
var j;
var h;

photo=new Array();var pn=0;
doc=new Array();var pn=0;

//------------------野鳥の森（画像と説明）   ------------------//	
function ss_a(){
	pn=0;
　　photo[pn++]="./photo/yac/bir01.jpg";　　　//---１枚目の写真ファイル名
	photo[pn++]="./photo/yac/bir03.jpg";	　　　//---２枚目の写真ファイル名
	photo[pn++]="./photo/yac/bir05s.jpg";
	photo[pn++]="./photo/yac/bir07s.jpg";
	photo[pn++]="./photo/yac/bir09.jpg";
	photo[pn++]="./photo/yac/bir10.jpg";		
	photo[pn++]="./photo/yac/bir12.jpg"; 
	photo[pn++]="./photo/yac/bir14.jpg";
	
	photo[pn++]="./photo/yac/bir16.jpg";
	photo[pn++]="./photo/yac/bir18.jpg";
	photo[pn++]="./photo/yac/bir20.jpg";		
	photo[pn++]="./photo/yac/bir22.jpg"; 
	
	photo[pn++]="./photo/yac/bir24.jpg";
	photo[pn++]="./photo/yac/bir26s.jpg";
	photo[pn++]="./photo/yac/bir28.jpg";
	photo[pn++]="./photo/yac/bir30s.jpg";		
	photo[pn++]="./photo/yac/bir32.jpg"; 	          	//---最後の写真ファイル名

	pn=0;
	doc[pn++]="No.1　野鳥の森入り口にあるバードハウス";　　　　　　　　　//---１枚目の写真の解説
	doc[pn++]="No.2　野鳥の森入り口にあるバードハウス";    　　　　　//---２枚目の写真の解説         
	doc[pn++]="No.3　観音山にいる野鳥の看板"; 　　　　　　
	doc[pn++]="No.4　観音山にいる野鳥の看板";
	doc[pn++]="No.5　野鳥の森の中"; 　　　　　　
	doc[pn++]="No.6　野鳥の森の中";
	doc[pn++]="No.7　野鳥の森の中";  
	doc[pn++]="No.8　野鳥の森の中"; 
	　　　　　　
	doc[pn++]="No.9　野鳥の森の中・・鳥小屋";
	doc[pn++]="No.10　野鳥の森の中"; 　　　　　　
	doc[pn++]="No.11　野鳥の森の中・・鳥小屋";
	doc[pn++]="No.12　野鳥の森の中";
	
	doc[pn++]="No.13　野鳥の森の中にある監視小屋"; 　　　　　　
	doc[pn++]="No.14　監視小屋から見る野鳥";
	doc[pn++]="No.15　野鳥の森の中にある監視小屋"; 　　　　　　
	doc[pn++]="No.16　監視小屋から見る野鳥";
	doc[pn++]="No.17　帰り道";	          　 //---最後の写真の解説
	
    n=pn;h="スライドショーは 野鳥の森"; first();

}

var n=photo.length;

var tid,joutai="一次停止中",i=0;

function first(){i=0;clearInterval(tid);joutai="停止中";hyoujifirst();}　//最初の画面出力

function hyoujifirst(){
    document.getElementById("myphoto").src=photo[i];
    var j="スライドショーは "+joutai+" ： "+n+" 枚中 "+(i+1)+" 枚目を表示";
    document.getElementById("text1").innerHTML=j;　
    document.getElementById("text2").innerHTML=doc[i];
    document.getElementById("text3").innerHTML=h;
}

function kaisi(){clearInterval(tid);joutai="作動中";tugi();tid=setInterval("tugi();",hayasa);}
function mae(){if(i>0){i--;hyouji();}else{i=n-1;hyouji();};}
function tugi(){if(i<n-1){i++;hyouji();}else{i=0;hyouji();}}
function teisi(){clearInterval(tid);joutai="一次停止中";hyouji();}
function henkou(sel_no){i=sel_no;hyouji();}

function hyouji(){
    filter();
    document.getElementById("myphoto").src=photo[i];
    var j="スライドショーは "+joutai+" ： "+n+" 枚中 "+(i+1)+" 枚目を表示";
    document.getElementById("text1").innerHTML=j;　
    document.getElementById("text2").innerHTML=doc[i];
}

function filter(){
	var UA = navigator.userAgent;
		if (UA.indexOf("MSIE") > -1) {
			filter1();                        //IE
		}else{
			filter2();                        //NS,Firefox,Safari 
		}
}


function filter1(){
change1="progid:DXImageTransform.Microsoft.RandomDissolve(duration=2)";
     myphoto.style.filter=change1;
     myphoto.filters[0].Apply();
     myphoto.filters[0].Play();
}
 
function filter2(){if (m=100) m=30; fadein();}        
function fadein(){
    document.getElementById("myphoto").style.opacity = m/100;                        //Safari       
    document.getElementById("myphoto").style.MozOpacity = m / 100;                   //NS,Firefox
    document.getElementById("myphoto").style.filter = "alpha(opacity="+m+")";        //IE
    m += 5; if (m < 100) setTimeout("fadein()",50);
} 

function mado(){var myurl=photo[i];window.open(myurl,i);}

//-->





