//拡大
typ=new Array();
typ[0]="channelmode=yes";//ボタン、タイトルバー表示
typ[1]="width="+(screen.width-10)+",height="+(screen.height-26)+",top=0,left=0";//ボタンなし
typ[2]="fullscreen=yes";//写真のみ
function at(){
dm="";
for(i=1;i<=syasin_n;i++){
dd=dt[i].split(",");
dm=dm+","+dd[1];
}
dd=dt[1].split(",");
win=window.open("quality1.htm?"+ur+"?"+dd[1]+"?"+dm,"quality",typ[kakudai]);
}
function op(p){
dd=dt[p].split(",");
win=window.open("quality1.htm?"+ur+"?"+dd[1],"quality",typ[kakudai]);
}
//サムネル
waku=new Array();
waku[0]="border=0";
waku[1]="border=1";
waku[2]='border=0 width='+(sw*1+8)+' height='+(sh*1+8)+' background="back.gif"';
document.write('<table width="90%" border="0">');
for(i=1;i<=syasin_n;i++){
dd=dt[i].split(",");
if(i%xn==1){document.write('<tr height="',sw,'">');}
document.write('<td align="center">');
document.write('<table ',waku[gaku],'><tr><td valign=top align=left>');
document.write('<img src="',ur,dd[0],'" width="',sw,'" height="',sh,'" border=1 ');
document.write(' onClick="op(',i,')" style="cursor:hand;border-color:$ffffff">'); 
document.write('</td></tr></table>');
document.write(dd[2],"<br>");

document.write('</td>');
if(i%xn==0){document.write('</tr>');} 
}
if(i%xn!=0){document.write('</tr>');}
document.write('</table><br>');
document.write('<input type=button value="スライドショー（自動）" onClick="at()"><br>');


