ritu=1;		//表示倍率
c=0;
auto_flg=0;

//自動差し替え
function chg(){
auto_flg=1;
c++;if(c>n){c=1;}
dd=fil[c].split(",");

//document["img"+c].src=url+dd[0];
document.hana.src=url+dd[0];
document.button_form.namae.value=dd[1];
img_tim=setTimeout("chg()",kankaku);
}

//自動／手動切替
function auto(){
if(auto_flg==1){
document.button_form.at.value="自動";
auto_flg=0;
clearTimeout(img_tim)
}else{
document.button_form.at.value="停止";
chg();
}
}

//駒送り
function mov(m){
if(auto_flg==1){
document.button_form.at.value="自動";
auto_flg=0;
clearTimeout(img_tim)
}
c=c+m;
if(c>n){c=1;}
if(c<1){c=n;}
dd=fil[c].split(",");
document.hana.src=url+dd[0];
document.button_form.namae.value=dd[1];
}

//拡大、縮小
function img_size(s){
ss=s;
ritu=ritu*ss;
document.hana.width=img_w*ritu;
document.hana.height=img_h*ritu;
size_tim=setTimeout("img_size(ss)",100);
}

//原寸復帰
function img_size1(){
ritu=1;
document.hana.width=img_w*ritu;
document.hana.height=img_h*ritu;
}
//自動停止
function img_stop(){
clearTimeout(size_tim);
}

//サムネルから呼出
function img_no(m){
c=m;
dd=fil[c].split(",");
document.hana.src=url+dd[0];
document.button_form.namae.value=dd[1];

}
//初期セット
document.write('<form name="button_form">');
document.write('<input type="button" value="縮小" onMouseOver="img_size(0.98)" onMouseOut="img_stop()">');
document.write('<input type="button" value="原寸" onClick="img_size1()">');
document.write('<input type="button" value="拡大" onMouseOver="img_size(1.02)" onMouseOut="img_stop()">');
document.write('__');
document.write('<input type="button" value="｜＜" onClick="mov(-1)">');
document.write('<input type="button" value="停止" name="at" onClick="auto()">');
document.write('<input type="button" value="＞｜" onClick="mov(+1)">');
document.write('<br><br>');
//額入りの写真
dd=fil[1].split(",");
document.write('<table border=7><tr><td><table border=2><tr><td>');
document.write('<img src="',url+dd[0],'" name="hana" galleryimg="no"  height=',img_h,'　width=',img_w,'>');
document.write('</td></tr></table></td></tr></table><br>');
//名前表示窓
document.write('<input type="text" name="namae" value="',dd[1],'" size=40 ');
document.write('style="border-width:0;font-size:24;background-color:transparent;text-align:center;color:',document.fgColor,'">');
document.write('<br>');

//サムネル
document.write('<table border=0><tr><td><br>');
if(maisu>0){
for(i=1;i<=n;i++){
dd= fil[i].split(",");
if(document.layers){
document.write('<a href="javascript:img_no(',i,')"><img src="',url+dd[0],'" name="img',i,'" width=',img_w/8,' height=',img_h/8,' border=0></a>.');
}else{
document.write('<span onClick="img_no(',i,')"><img src="',url+dd[0],'" name="img',i,'" width=',img_w/8,' height=',img_h/8,' border=0></span>.');

}
if(i%maisu==0){document.write('<br>');}
}

document.write('<br></td></tr>');
}
document.write('<tr><td align=right>');

document.write('<a href="http://www2a.biglobe.ne.jp/~qpon/js/index.htm?http://qpon.quu.cc/java/zoom/zoom_b.htm" target="_qpon"><font size=1 color=#888888>システム提供：ＱＰＯＮ</font></a></td>');
document.write('</form>');
document.write('</tr></table>');
document.write('<a href="http://www.ne.jp/asahi/qpon/b/java/url_chg.htm" target="_qpon"><font color=#ff000 size=2>ページ管理者様：このシステムを提供していますサーバーを閉鎖します、ここをクリックして新しいサーバーに入れ替えてください。ＱＰＯＮ</font></a>');