<!--
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/sen/sen01.jpg";　　　//---１枚目の写真ファイル名
	photo[pn++]="./photo/sen/sen02.jpg";	　　　//---２枚目の写真ファイル名
	photo[pn++]="./photo/sen/sen03.jpg";
	photo[pn++]="./photo/sen/sen05.jpg";		
	photo[pn++]="./photo/sen/sen07s.jpg"; 
	
	photo[pn++]="./photo/sen/sen10.jpg";　　
	photo[pn++]="./photo/sen/sen11.jpg";	　　　
	photo[pn++]="./photo/sen/sen12.jpg";
	photo[pn++]="./photo/sen/sen13.jpg";
	photo[pn++]="./photo/sen/sen14.jpg";
	
	photo[pn++]="./photo/sen/sen20.jpg";		
	photo[pn++]="./photo/sen/sen21.jpg"; 
	photo[pn++]="./photo/sen/sen22.jpg";　　
	photo[pn++]="./photo/sen/sen23.jpg";
		　　　
	photo[pn++]="./photo/sen/sen31.jpg";
	photo[pn++]="./photo/sen/sen32.jpg";
	photo[pn++]="./photo/sen/sen33.jpg";
	photo[pn++]="./photo/sen/sen34.jpg";		
	photo[pn++]="./photo/sen/sen35.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　温室の中の花"; 
	doc[pn++]="No.18　温室の中の花";　　　　　　　　
	doc[pn++]="No.19　温室の中の花";    　　　　　　　 //---最後の写真の解説　　　　      
	
    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);}

//-->






