scr=kakudai+",,";
scr_bg=scr.split(",");
kakudai=scr_bg[0]*1;
if(scr_bg[1]==""){scr_bg[1]="#000000";}
mac=navigator.appVersion.indexOf("Mac");
nav=navigator.appName.substring(0,1);
//拡大
scr_ww=screen.width;
typ=new Array();
typ[0]="channelmode=yes";//ボタン、タイトルバー表示
typ[1]="width="+(screen.width-10)+",height="+(screen.height-52)+",top=0,left=0";//タイトルバー表示
typ[2]="fullscreen=yes,scrollbars=no";//写真のみ
typ[3]="fullscreen=yes";//[X]ボタンのみ
syasin_typ=new Array();
syasin_typ[0]="width=100% height=100%";//縦横100%
syasin_typ[1]="width=100%";//横100%
syasin_typ[2]="";//写真原寸
syasin_typ[3]="height=100%";//タテ100%
//サムネル
waku=new Array();
waku[0]='border=0';
waku[1]='border=2 cellpadding=6 bgcolor='+gaku_color;
//waku[2]='border=0 width='+(sw*1+8)+' height='+(sh*1+8)+' background="back.gif"';
waku[2]='border=0 cellpadding=0 cellspacing=0 width='+(sw*1+8)+' height='+(sh*1+8)+' style="text-align:left;text-valign:top;"';
waku[3]='border=0 cellpadding=0 cellspacing=0 width='+(sw*1+8)+' height='+(sh*1+8)+' style="text-align:left;text-valign:top;filter:shadow(color='+gaku_color+',direction=135)" background="back.gif"';
if(gaku<4 && sw>0 && sh>0){
document.write('
');
for(i=1;i<=n;i++){
dd=dt[i].split(",");
if(dd[0]==""){dd[0]=dd[1];}
if(i%xn==1){document.write('');}
document.write('');
document.write('');
document.write(dd[2]," ");
document.write(' | ');
if(i%xn==0){document.write('
');}
}
if(i%xn!=0){document.write('');}
document.write('
');
}
////////////////////////////////////
//次へ
function next_button(){
if(at_flg==0){
p_no++;if(p_no>n){p_no=1;}
dd=dt[p_no].split(",");
//win.document.myimg.src=ur+dd[1];
ww=('
\n');
win.document.getElementById("img_td").innerHTML =ww;
//win.document.getElementById("com").innerHTML = '
| ';
}
}
//閉じる
at_flg=0;open_flg=0;
function cls(){
if(at_flg==1 && wip_flg==1){
open_flg=2;
}else{
open_flg=0;
wip_flg=0;
if(at_flg==1){
at_flg=0;
clearTimeout(tim);
}
win.window.close();
}
}
load_flg=1;
//自動スライド
function at(){
at_flg=1;
load_flg=1;
p_no=1;
op(p_no);
at_sub();
load_flg=1;
}
//
wip_flg=0;
function at_sub(){
tim=setTimeout("at_sub()",w_time*1000);
if(load_flg==1 || nav=="N"){
load_flg=0;
dd=dt[p_no].split(",");
p_no++;if(p_no>n){p_no=1;}
if(open_flg==1){
wip_flg=1;
if(wip>0 && nav=="M"){
win.tp.filters["revealTrans"].Apply();
//win.document.myimg.src=ur+dd[1];
ww=('
\n');
win.document.getElementById("img_td").innerHTML =ww;
win.tp.filters["revealTrans"].Transition=(wip-1);
win.tp.filters["revealTrans"].play();
}else{
// win.document.myimg.src=ur+dd[1];
ww=('
\n');
win.document.getElementById("img_td").innerHTML =ww;
}
if(nav=="N"){
win.document.getElementById("com").innerHTML = '
| ';
}
wip_flg=0;
}
}
if(open_flg==2){
open_flg=0;
at_flg=0;
clearTimeout(tim);
win.window.close();
//return;
}
}
//画像読込みチェック
function img_flg(){
img_ww=win.myimg.width;
img_hh=win.myimg.height;
if(img_ww>screen.width && img_hh>screen.height){
ww=('
\n');
win.document.getElementById("img_td").innerHTML =ww;
}else{
if(img_ww>screen.width){
ww=('
\n');
win.document.getElementById("img_td").innerHTML =ww;
}
if(img_hh>screen.height){
ww=('
\n');
win.document.getElementById("img_td").innerHTML =ww;
}
}
load_flg=1;
win.document.getElementById("com").innerHTML = '
| ';
}
//拡大ウインドウ
p_no=1;open_flg=0;
function op(p){
p_no=p;
dd=dt[p].split(",");
if(scr_ww<1000 && kakudai==3){kakudai=4;}
win=window.open("","quality",typ[kakudai]);
win.document.open();
win_write(p_no);
win.document.close();
open_flg=1;
}
//拡大HTML
function win_write(qq){
scr_w=screen.width;scr_h=screen.height;
if(nav=="N"){
scr_h=innerHeight;
}
no=qq*1;
ddm=dt[no].split(",");
ww =('\n');
ww+=('高画質写真表示\n');
ww+=('\n');
ww+=('\n');
ww+=('\n');
win.document.write(ww);ww="";
ww+=('\n');
//写真
if(nav=="N"){
ww+=('\n');
}else{
ww+=('
\n');
}
ww+=('
');
ww+=(' \n');
ww+=(' |
\n');
win.document.write(ww);ww="";
//
nav=navigator.appName.substring(0,1);
if(nav=="N"){
win_h=win.innerHeight-48;
}else{
win_h=win.document.body.clientHeight-36;
if(kakudai==1){win_h=win.document.body.clientHeight-54;}
}
//コメント配置
ww+=('
\n');
//閉じるボタン表示
if(kakudai==3){
if(nav=="N"){
ww+=('
\n');
}else{
ww+=('
左クリック:閉じて画像一覧へ|右クリック:次の画像へ
\n');
}
}
//ww+=('
\n');
ww+=('\n');
win.document.write(ww);
}