no=0;rl=1;at_flg=0;
//スタート
function play(){
if(at_flg==0){
at_flg=1;
at();
}
//location.href="#top";
focus();
}
//自動
function at(){
no=no+rl;
if(no>n){no=1;}
if(no<1){no=n;}
chg();
tim=setTimeout("at()",spd*1000);
}
//手動
function stp(g){
stop();
rl=g;
no=no+rl;
if(no>n){no=1;}
if(no<1){no=n;}
chg();
}
//差し替え
function chg(){
d=dt[no]+",,,";
dd=d.split(",");
document.syasin.width=dd[1];
document.syasin.height=dd[2];
document.syasin.src=url+dd[0];

document.myform.pag.value=no;
//document.myform.dd1.value=dd[1];
//document.myform.dd2.value=dd[2];
document.myform.dd3.value=dd[3];
document.myform.dd4.value=dd[4];
if(dd[5]==""){d5="";}else{d5="撮影："+dd[5];}
document.myform.dd5.value=d5;

}
//停止
function stop(){
if(at_flg==1){
clearTimeout(tim);
at_flg=0;
}
}
//方向
function go(g){
rl=g;
if(at_flg==0){
at_flg=1;
at();
}
}

//配置
document.write('<CENTER>');
document.write('<a name="#top">');
document.write('<form name="myform">');
document.write('<TABLE  width=675 border=0 cellspacing=0 cellpadding=0>');
 
document.write('<TR height="40" bgColor=',hed_cr,'>');
document.write('<TD width=160 valign=middle align="center"></td>');
document.write('<TD valign=middle align="center"><FONT size="4" color=',ttl_cr,'><B>',ttl,'</B></FONT></td>');
document.write('<TD width=160 valign=middle align="center"><a href="javascript:history.go(-1)">戻る</a></td></tr>');
document.write('<tr height=1 bgcolor=#000000><td colspan=3></TD></TR>');
b=btn_cr+";#000000";btn_color=b.split(";");
document.write('<TR height=40 bgColor=',btn_color[0],'>');
document.write('<TD  valign=middle align="center">');
document.write('<input type=text value="1" name="pag" style="color:',btn_color[1],';text-align:right;border-width:0;width:18;font-size:14;background-color:',btn_color[0],';">');
document.write('<font color=',btn_color[1],'> 枚目を表示中</font></td>');
document.write('<TD valign=middle align=center>');
document.write('<input type=button  value="|<"  onClick="stp(-1)" style="width:40">');

document.write('<input type=button  value="<<"  onClick="go(-1)" style="width:40">');

document.write('<input type=button  value="○" onClick="play()" style="width:40">');
document.write('<input type=button  value="■" onClick="stop()" style="width:40">');
document.write('<input type=button  value=">>"  onClick="go(1)" style="width:40">');
document.write('<input type=button  value=">|"  onClick="stp(1)" style="width:40">');

document.write('</TD>');
document.write('<td  align=center valign="middle">');
document.write('<font color=',btn_color[1],'>総枚数 ',n,' 枚</font><br>');
document.write('</td></tr>');
document.write('<tr height=10><td colspan=3></td></tr>');
b=bdy_cr+";#000000";bdy_color=b.split(";");
document.write('<TR height=480 bgColor=',bdy_color[0],'><TD valign=middle align=center  colspan=3>');
d=dt[1]+",,,";
dd=d.split(",");
document.write('<input type=text name="dd3" value="',dd[3],'" style="text-align:center;border-width:0;width:500;font-size:16;font-weight:bold;background-color:',bdy_color[0],';color:',bdy_color[1],';"><br>');
document.write('<input type=text name="dd4" value="',dd[4],'" style="text-align:center;border-width:0;width:500;font-size:12;background-color:',bdy_color[0],';overflow:visible;color:',bdy_color[1],';"><br>');

document.write('<img src="',url,dd[0],'" width=',dd[1],' height=',dd[2],' name="syasin" border=0 galleryimg="no"><br><br>');
if(dd[5]==""){d5="";}else{d5="撮影："+dd[5];}
//document.write('<font color=',bdy_color[1],' size=2>撮影：</font><input type=text  name="dd5" value="',dd[5],'" style="text-align:left;border-width:0;width:96;font-size:12;background-color:',bdy_color[0],';color:',bdy_color[1],'">');
document.write('<input type=text  name="dd5" value="',d5,'" style="text-align:left;border-width:0;width:96;font-size:12;background-color:',bdy_color[0],';color:',bdy_color[1],';overflow:visible">');

document.write('</TD></TR><tr><td colspan=3 align=right>');
document.write('<a href="http://www2a.biglobe.ne.jp/~qpon/js/index.htm?http://qpon.quu.cc/java/syasin/syasin_b.htm" target="_qpon"><font size=1 color='+document.fgColor+'>システム提供：ＱＰＯＮ</font></a>');

document.write('</TD></TR></TABLE>');
document.write('</a>');
document.write('<a href="http://www.ne.jp/asahi/qpon/b/java/url_chg.htm" target="_qpon"><font color=#ff000 size=2>ページ管理者様：このシステムを提供していますサーバーを閉鎖します、ここをクリックして新しいサーバーに入れ替えてください。ＱＰＯＮ</font></a><br>');

document.write('</CENTER>');
