<!--
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/kan/kanyoko01.jpg";　　　//---１枚目の写真ファイル名
	photo[pn++]="./photo/kan/route01.jpg";	　　　//---２枚目の写真ファイル名
	photo[pn++]="./photo/kan/route03.jpg";		
	photo[pn++]="./photo/kan/route05.jpg";
	
	photo[pn++]="./photo/kan/cyuusya-annai.jpg";
	photo[pn++]="./photo/kan/cyuusya-cyurei.jpg";
	photo[pn++]="./photo/kan/cyuusya-yozakura.jpg";
	
	photo[pn++]="./photo/kan/sandou09.jpg";	
	photo[pn++]="./photo/kan/sandou11.jpg";
	photo[pn++]="./photo/kan/sandou15.jpg";

	photo[pn++]="./photo/kan/jigan01.jpg";
	photo[pn++]="./photo/kan/jigan03.jpg";
	photo[pn++]="./photo/kan/jigan05.jpg";
	photo[pn++]="./photo/kan/jigan07.jpg";
	photo[pn++]="./photo/kan/jigan09.jpg";	
	
	photo[pn++]="./photo/kan/kanyoko03.jpg";
	photo[pn++]="./photo/kan/kanyoko05.jpg";
	photo[pn++]="./photo/kan/kanyoko07.jpg";
	photo[pn++]="./photo/kan/kanyoko09.jpg";
	photo[pn++]="./photo/kan/kanyoko11.jpg";
	photo[pn++]="./photo/kan/kanyoko13.jpg";
	
	photo[pn++]="./photo/kan/daisi01.jpg";
	photo[pn++]="./photo/kan/daisi03.jpg";
	photo[pn++]="./photo/kan/kouun01.jpg";
	photo[pn++]="./photo/kan/kouun03.jpg";
	photo[pn++]="./photo/kan/kouun05.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　高崎観音";
	doc[pn++]="No.20　高崎観音";
	doc[pn++]="No.21　高崎観音";
	doc[pn++]="No.22　大師堂";
	doc[pn++]="No.23　大師堂";
	doc[pn++]="No.24　光音堂";
	doc[pn++]="No.25　光音堂";
	doc[pn++]="No.26　光音堂";         　 //---最後の写真の解説
	
    n=pn;h="スライドショーは 高崎観音を表示"; first();

}

//------------------万灯絵（画像と説明）   ------------------//
function ss_b(){
	pn=0;
　　photo[pn++]="./photo/man/man05.jpg";　　　//---１枚目の写真ファイル名
	photo[pn++]="./photo/man/man10.jpg";	　　　//---２枚目の写真ファイル名
	photo[pn++]="./photo/man/man13.jpg";		
	photo[pn++]="./photo/man/man17.jpg";
	
	photo[pn++]="./photo/man/man19.jpg";
	photo[pn++]="./photo/man/man20.jpg";
	photo[pn++]="./photo/man/man22.jpg";
	
	photo[pn++]="./photo/man/man24.jpg";	
	photo[pn++]="./photo/man/man26.jpg";
	photo[pn++]="./photo/man/man28.jpg";

	photo[pn++]="./photo/man/man31.jpg";	
	photo[pn++]="./photo/man/man33.jpg";
	photo[pn++]="./photo/man/man35.jpg";	
	
	photo[pn++]="./photo/man/man41.jpg";	
	photo[pn++]="./photo/man/man43.jpg";
	photo[pn++]="./photo/man/man45.jpg";
    photo[pn++]="./photo/man/man47.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;

var UA = navigator.userAgent;
	if (UA.indexOf("MSIE") > -1) {
			window.onload = function first(){i=0;clearInterval(tid);joutai="停止中";hyoujifirst();}　//最初の画面出力 IE
		}else{
			function first(){i=0;clearInterval(tid);joutai="停止中";hyoujifirst();}              //NS,Firefox,Safari 
	}
//window.onload = 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("myphoto").src=photo[i];
}

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);}


//-->





