com_sta =" win-ns ver.4  5210a"  


// Ά\¦ //
com_color = ""    // RgF
com_size1 = 3     // ΆTCY
com_left = 1      // ΆΜΆ΅¦ 1 ` 2
com_opa = 50      // wiΜ§ίxifa4j
com_bg = ""       // wiF
com_line= 1       // s 0 ` 2
com_size2 = 3     // QsΪΆTCY

// AΤ\¦ //
nr_dsp = 1        // 0 ` 1
nr_color = ""     // AΤF

// μ{^ //
icon_pos = 0                 // 0 Μc‘wθ   1 Κ^ΜEγ
icon_vpos = 4                // cΚu
icon_hpos = 180              // ‘Κu
link_close = "return "       // close {^Μtitle

icon_close = "close-ns.gif"
icon_next = "next-ns.gif"
icon_back = "back-ns.gif"

// t[F //
color_f1 = "#445566"  // O
color_f2 = "#002233"  // 
color_f3 = "#113344"  // ΰ


// Κ^g\¦ //
b_style = 2           // X^C
size_p1 = 0           // g
color_p1 ="#445566"   // gF 
size_p2 = 1           // Κ^ΖgΤ 
color_p2 =""          // Κ^ΖgΜΤΜF

color_mt = "#666666"
color_s1 = "#777777"

wipe_dsp = -1       // CvψΚ
wipe_speed = 2      // Cv¬x
close_speed = 3000  // Close Τ

// l`hm //
bd_style = 0
width_fc = 800 ; height_fc = 600 ; top_fc = 0 ; left_fc = -1
width_fd = 640 ; height_fd = 480 ; top_fd = 0
title_size = 0 ; title_color ="#999999"
tm_h1 = 0 ; tm_w1 = 0
ttop = 1 ; tend = 0

last_photo = 999


// rta //
dsp_type = ""
f_dir = "" ; icon_dir = ""
image_mt = ""  ; image_f1 = "" ; image_f2 = "" ; image_f3 = ""
com_pos = 0


bd_width = 0
bd_color ="#667788"
color_p1 = "" ; color_p2 = "" ; color_f1 = "" ;color_f2 = "" ; color_f3 = ""

wname = ""
fname = ""
image_mt = "" 

size_f1 = 0 ; size_f2 = 0 ; size_f3 = 0 ; size_p2 = 0
styl = ""

f_name = new Array()
f_com1 = new Array()
f_com2 = new Array()

p_style  = new Array()
p_style[0] = "none"
p_style[1] = "hidden"
p_style[2] = "solid"
p_style[3] = "double"
p_style[4] = "groove"
p_style[5] = "ridge"
p_style[6] = "inset"
p_style[7] = "outset"
p_style[8] = "dashed"
p_style[9] = "dotted"


netscape = 1 ; winie6 = 0

strv = navigator.appName.toUpperCase();
appVer  = navigator.appVersion;

if (strv.indexOf("NETSCAPE") >= 0){
    s = appVer.indexOf(" ",0);
    version = eval(appVer.substring(0,s));
    if (version >= 5){version++}
}

if (strv.indexOf("MICROSOFT") >= 0){
    appVer = navigator.userAgent;
    sv = appVer.indexOf("MSIE ",0) + 5;
    ev = appVer.indexOf(";",sv);
    version = eval(appVer.substring(sv,ev));
    netscape = 0
    if(version >= 6){winie6 = version}
}


xpsp2 = 0
if(window.navigator.userAgent.indexOf("SV1") >= 0){xpsp2 = 54}

sc_width = screen.width 
if(sc_width <= 1024){
     sc_height = screen.height
}else{
     sc_height = screen.availHeight
}

function fa0(url){faa(url,"fa0")}
function fa1(url){faa(url,"fa1")}
function fa2(url){faa(url,"fa2")}
function fa4(url){faa(url,"fa4")}
function fa5(url){faa(url,"fa5")}

function fa(url){alert("Νp~")}
function fa3(url){alert("RΝp~")}


para1 ="width="+sc_width+",height="+sc_height+",top=0,left=0 ,scrollbars=1,"
chan1 = "channelmode=yes,scrollbars=1,status=1"

function faa(url,wmn)
{
    if(xpsp2 == 0){
         if(sc_width < 1024){
               para3 = para1 +"status=0,resizable=0"
         }
         if(sc_width == 1024){
               para3 = para1 + "status=1,resizable=0"
         }
         if(sc_width > 1024){
                para3 = para1 + "status=1,resizable=1"
         }
    }else{
         if(sc_width < 1024){para3 = chan1}
         if(sc_width == 1024){para3= chan1}
         if(sc_width > 1024){
              para3 = para1 + "status=1,resizable=1"
         }
    }
    swin=window.open(url,wmn,para3)
}

function fb(url)
{
    if(sc_width < 1024){
         faa(url,"fb1")
    }else{
         if(xpsp2 == 0){
              para3 = para1 + "status=1,resizable=0"
         }else{
              para3 = chan1
         }
          swin=window.open(url,"fb1",para3)
    }
}

function fc(url)
{
    if(sc_width < 1024){
         faa(url,"fc1")
    }else{
        wnm = "fc1_"+height_fc+"_"+width_fc
        if(left_fc < 0){ 
              left_fc = (sc_width - width_fc)/2
        }
        para3 = "width="+width_fc+",height="+height_fc+",top="+top_fc+",left="+left_fc+",status=1,scrollbars=1"
        swin=window.open(url,wnm,para3)
    }
}

function fd(url)
{
    if(sc_width < 1024){
         faa(url,"fd1")
    }else{
         left_fd = sc_width - width_fd - 15
         wnm = "fd1_"+height_fd+"_"+width_fd
         para3 = "width="+width_fd+",height="+height_fd+",top="+top_fd+",left="+left_fd+",status=1,scrollbars=1"
         swin=window.open(url,wnm,para3)
    }
}

function fe(url){
     para3 = "channelmode=yes,status=0,scrollbars=1"
     swin=window.open(url,"fe1",para3)
}

function ff(url){
    para3 = "channelmode=yes,status=0,scrollbars=1,toolbar=1,location=0,directories=0,menubar=1"
    swin=window.open(url,"ff1",para3)
}


tm_no  = new Array()  ; tm_ph  = new Array()  ;  tm_tx  = new Array()

function tms()
{
   k = 0
   j = 1
   if(tend > 1){   
        fed = tend *2 -1   
   }else{
        fed = tm.length - 1   
   }
   
   tt= ttop*2 - 2
   for(i = tt ; i < fed ; i = i + 2){
        tm_no[j] = tm[i]
        pd0 = tm[i+1]+" "
        pt1 = pd0.indexOf(" ",0)
        tm_ph[j] = pd0.substr(0,pt1) 
        tm_tx[j] = pd0.substr(pt1+2, pd0.length)
        j++
   }
   tm_sum = j-1  
 
   tm_w2 = tm_w + bd_width*2  
   tm_h2 = tm_h + bd_width*2  
   styl = "border-style:"+p_style[bd_style]+"; border-color:"+bd_color+" ; border-width:"+bd_width+"px "
   subb ="javascript:"+subtype+"('"+subfile

   s ="<DIV class='tm_table'>"
   if(col_n == 0){
        s +="<TABLE cellpadding="+cell_p+" cellspacing=0 border=0><TBODY>"
        if((row_n == 9)||(row_n == 17)||(row_n == 22)){tm1_8()} 
        if((row_n == 12)||(row_n == 16)){tm1_11()} 
   }
   if(col_n > 0){
        s +="<TABLE cellpadding="+cell_p+" cellspacing=0 border=0 ><TBODY>"
        for(j = 1 ; j <= row_n ; j = j + 1){
             s +="<TR>" ; tdnn(col_n) ; s +="</TR>"
        }
        s +="</TBODY></TABLE></DIV>"
    }
    document.open() ; document.write(s) ; document.close()
}


function tdnn(nn)
{
    for(i = 1 ; i <= nn ; i = i + 1){
         k++
 
         s += "<TD align=center valign=top width="+tm_w2+" height="+tm_h2+">"
         if(bd_style < 0){             
             s += "<A href="+subb+"?"+tm_no[k]+"') onfocus='this.blur()'>"
         }else{
             s += "<A href="+subb+"?"+tm_no[k]+"')>"
         }

         if(bd_style < 0){
             s +="<IMG src="+tm_ph[k]+" border=0 class='tm_small'></A>"
         }else{ 
             s +="<IMG src="+tm_ph[k]+" style='"+styl+"'></A>"
         }
         if(title_size > 0){
              s +="<br><font color="+title_color+" size="+title_size+">"+tm_tx[k]+"</font>"
         }
         s +="</TD>"   
    }
}


function tm1_11()
{
    k=1
    if(tm_h1 == 0){tm_h1 = tm_h * 3 + cell_p * 4 + bd_width*4 + title_size*15}
    if(tm_w1 == 0){tm_w1 = tm_w * 3 + cell_p * 4 + bd_width*4}
    subb="javascript:"+subtype+"('"+subfile
    s +="<TR><TD align=center valign=top rowspan=3 colspan=3><A href="+subb+"?"+tm_no[k]+"') onfocus='this.blur()'>"
    if(bd_style < 0){
         s +="<IMG src="+tm_ph[k]+" width="+tm_w1+" height="+tm_h1+" border=0 class='tm_large'></A>"
    }else{
         s +="<IMG src="+tm_ph[k]+" width="+tm_w1+" height="+tm_h1+" style='"+styl+"'></A>"
    }
    if(title_size > 0){
         s +="<br><font color="+title_color+" size="+title_size+">"+tm_tx[k]+"</font>"
     }
    s +="</TD>"

    for(j = 1 ; j < 4 ; j = j + 1){
        if(row_n == 16){tdnn(3)}else{tdnn(2)}
        s +="</TR><TR>"
    }
    if(row_n == 16){tdnn(6)}else{tdnn(5)}
    s +="</TR></TBODY></TABLE>"
}


function tm1_8()
{
    k=1
    if(tm_h1 == 0){tm_h1 = tm_h * 2 + cell_p * 2 + bd_width*2+ title_size*10}
    if(tm_w1 == 0){tm_w1 = tm_w * 2 + cell_p * 2 + bd_width*2}
    s +="<TR><TD align=center valign=top rowspan=2 colspan=2><A href="+subb+"?"+tm_no[k]+"') onfocus='this.blur()'>"
    if(bd_style < 0){
         s +="<IMG src="+tm_ph[k]+" width="+tm_w1+" height="+tm_h1+" border=0 class='tm_large' ></A>"
    }else{
         s +="<IMG src="+tm_ph[k]+" width="+tm_w1+" height="+tm_h1+" style='"+styl+"'></A>"
    }

    if(title_size > 0){
         s +="<br><font color="+title_color+" size="+title_size+">"+tm_tx[k]+"</font>"
    }
    s +="</TD>"

    for(j = 1 ; j < 3 ; j = j + 1){
        if((row_n == 17)||(row_n == 22)){ 
             tdnn(3)
        }else{
             tdnn(2)
        }
        s +="</TR><TR>"
    }
    if(row_n == 22){
        tdnn(5)
        s +="</TR><TR>"
        tdnn(5)
        s +="</TR><TR>"
        tdnn(5)
    }
    if(row_n == 17){
         tdnn(5)
         s +="</TR><TR>"
         tdnn(5)
    }
    if(row_n == 9){
         tdnn(4)
    }
    s +="</TR></TBODY></TABLE>"
}


function Read_wname()
{
    wname = window.name 
    if(wname == ""){
         if(dsp_type == ""){
              wname1='fa0'
         }else{
              wname1=dsp_type
         } 
    }else{
         wname1 = wname.substr(0,3) 
    }
    wname2 = wname1.substr(0,2) 
    wname_h = wname.substr(4,3)
    wname_w = wname.substr(8,4)
}


function Scr_color(s_color) 
{
   if((s_color == "1")||(sc_width < 1024)){return}
   sc ="<style type='TEXT/CSS'>"
   if(s_color == "0"){
        if(sc_width >=1024){
            sc +=" BODY{overflow : hidden};"
        }
   }else{
        if(s_color != '3'){color_s1 = "#777777" ; color_s2 = s_color ;  color_s3 = s_color}
        sc +="BODY{"
        sc +="scrollbar-base-color:"+color_s2+";"
        sc +="scrollbar-darkshadow-color:"+color_s2+";"
        sc +="scrollbar-face-color:"+color_s2+";"
        sc +="scrollbar-arrow-color:"+color_s1+";"
        sc +="scrollbar-highlight-color:"+color_s1+";"
        sc +="scrollbar-3dlight-color:"+color_s3+";"
        sc +="scrollbar-track-color:"+color_s3+";"
        sc +="scrollbar-shadow-color:"+color_s3+"};"
   }
   sc +="</style>"
   document.open() ; document.write(sc) ; document.close()
}


cell_0 = " cellspacing=0 cellpadding=0 border=0 "

function Dsp_c0()
{
    Read_wname()
    if((wname != "")||(wname1 == 'fa2')){
         if((wname1 == 'fa0')||(wname1 == 'fa2')||(sc_width < 1024)){
              if(wname1 == 'fa2'){   
                   color_s1 = color_f1 ; color_s2 = color_f2 ; color_s3 = color_f3
                   Scr_color("3")
              }else{
                   Scr_color(color_mt)
              }
         }else{
              Scr_color("0")
         }
    }
    ssc ='<style type="TEXT/CSS">'
    ssc +=".sub43{background-color:"+color_f3+" ; filter:Alpha(opacity="+ com_opa+")}"
    ssc +=".sty{border-style:"+p_style[b_style]+"; border-color:"+color_p1+"; border-width:"+size_p1+"px}"
    ssc +="BODY{background-color:"+color_mt+";"
    ssc +='}</style>'
    document.open() ; document.write(ssc) ; document.close()

    if(wname2 == 'fa'){
        if(wname != ""){
             if(xpsp2 == 0){moveTo(0,0) ; resizeTo(sc_width,sc_height)}
             if((xpsp2 > 0)&&(sc_width > 1024)){moveTo(0,0) ; resizeTo(sc_width,sc_height)}
        }
        document.write("<BODY topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>")
    }

    if(wname2 == 'fb'){
        if(xpsp2 == 0){moveTo(0,0) ; resizeTo(sc_width,sc_height)}
        document.write("<BODY topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 onBlur=focus()>")
    }

    if((wname2 == 'fc')||(wname2 == 'fd')){
        resizeTo(wname_w,wname_h)
        document.write("<BODY topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 onBlur=focus()>")
    }
}


function Dsp_c1()
{
    str1 = location.search
    if(str1.length == 0){str1 = '?1'}
    stp = str1.indexOf('&',0)
    if(stp < 0){
         str2=str1
         photo_no = str2.substring(1,str2.length)
         top_photo = 1
    }else{ 
         str2 = str1.substr(0,stp)
         str3 = str1.substr(stp+1,str1.length)
         photo_no = str2.substring(1,str2.length)
         top_photo = str2.substring(1,str2.length)
         last_photo = eval(str3) 
    }
 
    Read_pd()
    if(str2.length < 2){photo_no = 1}
    photo_no2 = photo_no
    f_next = 1
    if((photo_no == 0)||(top_photo == last_photo)){f_next = 0}
    
    dat_sum2 = dat_sum 
    if(wipe_dsp >= 0){dat_sum2 = dat_sum - 1}
    
    com_st = com_sta + "@@"+wname1
    if((sc_width > 1024)&&(wname2 == 'fa')){com_st = com_st + "@@ζΚEΊπhbOΕ«ά·B"}
    status = com_st

    b_close = icon_dir + icon_close
    b_next = icon_dir + icon_next
    b_back = icon_dir + icon_back

    s = ""
    if(sc_width < 1024){
        icon_vpos = 4 ; icon_hpos = 180 ; icon_pos = 0  ; com_pos =1 
    }
    if(icon_pos == 0){Dsp_icon()}
    if(com_pos > 0){document.title = f_com1[photo_no]+"@@@@@"}
 
    Read_wname()

    photo_h = new Image() 
    photo_h.src = f_name[dat_sum]

    if(sc_width < 1024){
         Sub_f81()
    }else{
         if(wname1 == 'fa0'){Sub_mode01()}
         if((wname1 == 'fa1')||(wname1 == 'fa5')){Sub_mode11()}
         if(wname1 == 'fa2'){Sub_mode21()}
         if(wname1 == 'fa4'){
              if(sc_height > 900){
                    Sub_mode401()
              }else{
                    Sub_mode41()
              }
         }
         if(wname1 == "fb1"){Sub_fbfe1()}
         if(wname1 == "fc1"){Sub_fbfe1()}
         if(wname1 == "fd1"){Sub_fbfe1()}
    }
    document.open() ; document.write(s) ; document.close()
}


function Read_pd()
{
   j = 1
   k = 1
   fpd = f_dat.length - 2   
   if(com_line >1){k = 2}
   for(i = 0 ; i < fpd ; i = i + k){
        pd0 = f_dat[i]
        pt1 = pd0.indexOf(".jpg",1)
        if(pt1 <= 0){pt1 = pd0.indexOf(".JPG",1)}
        if(pt1 <= 0){
           pt1 = pd0.indexOf("jpeg",1)
           if(pt1 <= 0){pt1 = pd0.indexOf(".gif",1)}
           if(pt1 <= 0){pt1 = pd0.indexOf(".png",1)}
        }
        if(pt1 <= 0){alert(j+"ΤΪΜf[^ͺΩνΕ·")}
        pt2 = pd0.substr(0,pt1+4)
        if(f_dir == ""){
            f_name[j] = pt2 
        }else{
            dir2 = (f_dir.substr(f_dir.length-1,1))
            if(dir2 !="/"){f_dir=f_dir+"/"} 
            f_name[j] = f_dir + pt2 
        }
        f_com1[j] = "@"+ pd0.substr(pt1+6, pd0.length)
        if(com_line > 1){f_com2[j] = "@"+ f_dat[i+1]}
        j++
   }
   dat_sum = j-1
}


function Dsp_c2()
{
    if(photo_no == 0){return}
    s = ""
    if(icon_pos > 0){Dsp_icon01()}
    if(color_p2 == ""){color_p2 = color_mt}  
    if(b_style < 0){
         s +="<Table "+cell_0+">"
    }else{   
         s +="<Table bgcolor="+color_p2+" cellspacing=0 border=0 cellpadding="+size_p2+" class='sty'>"
    }
    s +="<Tbody><Tr><Td align=center valign=middle>"
    s +="<img src = "+f_name[photo_no]+" NAME='photo_a' onClick='Photo_next()' "
    if((b_style < 0)){s +="class='p_class' " }

    if((wipe_dsp >= 0)&&(winie6 >= 6)){ 
         s +="style='filter:revealTrans(duration="+wipe_speed+",transition="+wipe_dsp+")'"
    }

    s +="></Td></Tr></Tbody></Table>"
    if(icon_pos > 0){Dsp_icon02()}
    if(wname1 != 'fa4'){Dsp_com()}
    document.open() ; document.write(s) ; document.close()
}


function Dsp_c3()
{
    s = ""
    if(sc_width < 1024){
         Sub_f83()
    }else{
         if(wname1 == 'fa0'){Sub_mode03()}
         if((wname1 == 'fa1')||(wname1 == 'fa5')){Sub_mode13()}
         if(wname1 == 'fa2'){Sub_mode23()}
         if(wname1 == 'fa4'){
              if(sc_height > 900){
                    Sub_mode403()
              }else{
                    Sub_mode43()
              }
         }
         if(wname1 == "fb1"){Sub_fbfe3()}
         if(wname1 == "fc1"){Sub_fbfe3()}
         if(wname1 == "fd1"){Sub_fbfe3()}
    }
    document.open() ; document.write(s) ; document.close()
}


/// P ///

function Sub_mode11()
{
    if(netscape == 0){ 
         s +="<TABLE width=100% height=100% bgcolor="+color_f1+" cellspacing=0 cellpadding="+size_f1+" border=0 background="+image_f1+">"
         s +="<TBODY><TR><TD align='center' valign='middle'>"

         s +="<TABLE width=100% height=100%  cellspacing=0 cellpadding="+size_f2+" border=0>"
         s +="<TBODY><TR><TD nowrap background="+image_f2+" align='center' valign='middle' bgcolor="+color_f2+">"

         s +="<TABLE width=100% height=100%  cellspacing=0 cellpadding="+size_f3+" border=0>"
         s +="<TBODY><TR><TD nowrap align='center' valign='middle' bgcolor="+color_f3+" background="+image_f3+">"

         s +="<TABLE width=100% height=100% bgcolor="+color_mt+" background="+image_mt+cell_0+"><TBODY>"
    }else{
         tb_1w = sc_width - 4 ; tb_1h = sc_height - 48
         tb_2w = tb_1w - size_f1 - size_f1 ; tb_2h = tb_1h - size_f1 - size_f1
         tb_3w = tb_2w - size_f2 - size_f2 ; tb_3h = tb_2h - size_f2 - size_f2
         tb_4w = tb_3w - size_f3 - size_f3 ; tb_4h = tb_3h - size_f3 - size_f3

         s +="<TABLE width="+tb_1w+" height="+tb_1h+" bgcolor="+color_f1+cell_0+" background="+image_f1+">"
         s +="<TBODY><TR><TD align='center' valign=middle >"
         s +="<TABLE width="+tb_2w+" height="+tb_2h+cell_0+">"

         s +="<TBODY><TR><TD nowrap align=center valign=middle  background="+image_f2+" bgcolor="+color_f2+">"

         s +="<TABLE width="+tb_3w+" height="+tb_3h+cell_0+">"
         s +="<TBODY><TR><TD nowrap align='center' valign=middle bgcolor="+color_f3+" background="+image_f3+">"
         s +="<TABLE width="+tb_4w+" height="+tb_4h+" bgcolor="+color_mt+" background="+image_mt+cell_0+"><TBODY>"

    }
    s +="<TR><TD align='center' valign='middle'>"
    if((com_line > 0)&&(com_pos == 0)){s +="@<BR>"}
}

function Sub_mode13()
{
    s +="</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>"
}



/// Q ///

function Sub_mode21()
{
    if(netscape == 0){      
         s +="<Table width=101% height=101% cellspacing=0 cellpadding=0 border=1 bordercolor="+color_f1+" FRAME=VOID><Tbody>"
    }else{
         tb_1w = sc_width - 10; tb_1h = sc_height - 40
         s +="<Table width="+tb_1w+" height="+tb_1h+" cellspacing=0 cellpadding=0 border=1 bordercolor="+color_f1+" FRAME=VOID>"
    }

    s +="<Tr><Td nowrap width=17 height=17 bgcolor="+color_f2+"><small>&nbsp;</small></Td>"
    s +="<Td nowrap align=left valign=middle bgcolor="+color_f2+"><small>&nbsp;</small></Td></Tr>"
   
    s +="<Tr><Td nowrap bgcolor="+color_f2+"><small>&nbsp;&nbsp;</small></Td>"
    s +="<TD nowrap align=center valign=middle bgcolor="+color_mt+" background="+image_mt+">"
} 

function Sub_mode23()
{
   s +="</Td></Tr></Tbody></Table>"
}


// S //

function Sub_mode41()
{
    tb_1w = sc_width - 4 ; tb_1h = sc_height - 48
    tb_2h = tb_1h  - size_f3 
    tb_3h = tb_1h -  size_f3 - size_f2

    s +="<TABLE height="+tb_2h+" width="+tb_1w+cell_0+">"
    s +="<TBODY><TR>"
    s +="<TD nowrap align=center valign=middle bgcolor="+color_mt+" background="+image_mt+">"
}

function Sub_mode401()
{
    s +="<BR><TABLE  width=1020 height=100% cellspacing=0 cellpadding=5 border=0>"
    s +="<TBODY><TR><TD nowrap height=720 align=center valign=middle bgcolor="+color_mt+" background="+image_mt+">"
}


function Sub_mode43()
{
    s +="</TD></TR></TBODY></TABLE>"
    s +="<DIV STYLE='position:absolute; top:"+tb_3h+"; left:0 ; z-index:0 ;'>"
    s +="<TABLE height=100 "+cell_0+" width ="+tb_1w+" class='sub43'>"
    s +="<TBODY><TR><TD height="+size_f2+" bgcolor="+color_f2+"></TD></TR>"
    s +="<TR><TD nowrap align=center valign=top><BR></TD></TR></TBODY></TABLE>"
    s +="</DIV>"

    s +="<DIV STYLE='position:absolute; top:"+tb_3h+"; left:0 ; z-index:3 ;'>"
    s +="<TABLE height=100 width ="+tb_1w+" cellpadding=5  cellspacing=0 border=0 >"
    s +="<TBODY><TR><TD nowrap align=center valign=top>"
    Dsp_com()
    s +="</TD></TR></TBODY></TABLE></DIV>"
}

function Sub_mode403()
{
    s +="</TD></TR>"
    s +="<TR><TD align=center valign=top bgcolor="+color_f3+">"
    Dsp_com()
    s +="</TD></TR></TBODY></TABLE>"
}


/// O ///

function Sub_mode01()
{
    if(netscape == 1){
        s +="<TABLE height="+sc_height+" width="+sc_width+" " 
   }else{
         s +="<TABLE height=100% width=100% "
   }
    s +="bgcolor="+color_mt+" background="+image_mt+cell_0+">"
    s +="<TBODY><TR><TD align=center valign=middle>"
}


function Sub_mode03()
{
    s +="</TD></TR></TBODY></TABLE>"
}


// | //

function Sub_fbfe1()
{
    if(wname1 == 'fb1'){
         table_1w = sc_width - 25
         table_1h = sc_height - 50
    }

    if((wname1 == 'fc1')||(wname1 == 'fd1')){
         table_1w = wname_w
         table_1h = wname_h
    }

    if(netscape == 1){
        s +="<TABLE height="+table_1h+" width="+table_1w+" " 
   }else{
         s +="<TABLE height=100% width=100% "
   }
    s +="bgcolor="+color_mt+" background="+image_mt+cell_0+">"
    s +="<TBODY><TR><TD align=center valign=middle>"
}


function Sub_fbfe3()
{
   s +="</TD></TR></TBODY></TABLE>"
}


// W //

function Sub_f81()
{
    table_1w = sc_width - 25 ; table_1h = sc_height - 50
    com_pos = 1
    s +="<TABLE "+cell_0+"height="+table_1h+" width="+table_1w+" bgcolor="+color_mt+" background="+image_mt+">"
    s +="<TR><TD align=center valign=middle>"
}


function Sub_f83()
{
   s +="</TD></TR></TBODY></TABLE>"
}


function Dsp_com()
{
    if((com_line > 0)&&(sc_width >= 1024)){
         s +="<DIV align=left>"
         s +="<TABLE width=100% "+cell_0+">"
         s +="<TBODY><TR><TD align=center>"
         
         if(com_bg == ""){ 
             s +="<table cellpadding=3 cellspacing=0 border=0>"
         }else{
              s +="<table cellpadding=3 cellspacing=0 border=0 bgcolor="+com_bg+">"
         }
         s +="<tbody><tr>"
         if(com_left == 1){
              s +="<td align=left valign=top>"
         }else{
              s +="<td align=center valign=top>"
         }

         if(com_color != ""){s +="<FONT color="+com_color+">"}
         s +="<FONT size="+com_size1+"><SPAN ID='tx1'>"+f_com1[photo_no]+"</SPAN></FONT>"
         if(com_line > 1){
              s +="<BR><FONT size="+com_size2+"><SPAN ID='tx2'>"+f_com2[photo_no]+"</SPAN></FONT>"
         }
         if(com_color != ""){s +="</FONT>"}
         s +="</td></tr></tbody></table>"
         s +="</TD></TR></TBODY></TABLE>"
         s +="</DIV>"
    }
}


function Dsp_icon()   
{
    icon_hp =  icon_hpos - 160
    if(icon_hp < 3){icon_hp = 3} 
    if(nr_color == ""){nr_color = com_color}
    s += "<DIV STYLE='position:absolute; top:"+icon_vpos+"; left:0 ; z-index:1 ;'>"
    s +="<TABLE  border=0 width=100% "+cell_0+">"
    s +="<TBODY><TR><TD nowrap align=right valign=top>"
    if(icon_pos == 0){Dsp_icon00()}
    if((photo_no > 0)&&(nr_dsp >0)){
         s +="&nbsp;&nbsp;<font size=-1 color="+nr_color+"><SPAN ID='tx3'>"+photo_no2+"</SPAN>/"+(dat_sum2) +"</font></TD>"
    }
    s +="<TD nowrap width="+icon_hp+">&nbsp;</TD></TR></TBODY></TABLE></DIV>"
}


function Dsp_icon00()   
{
    if(f_next > 0){
         s +="<a href='javascript:Photo_back()' onfocus='this.blur()'>"
         s +="<img src="+b_back+" border=0 NAME='icon_b' class='icon'></a>&nbsp;&nbsp;"   
    }
  
    s +="<a href='javascript:Close_back()'>"
    s +="<img src="+b_close+" border=0 NAME='icon_c' class='icon' title="+link_close+"></a>&nbsp;&nbsp;"
  
    if(f_next > 0){
         s +="<a href='javascript:Photo_next()' onfocus='this.blur()'>"
         s +="<img src="+b_next+" border=0 NAME='icon_n' class='icon'></a>"
    }
}


function Dsp_icon01()   
{
    Dsp_icon()
    s +="<TABLE cellpadding="+icon_pos+" cellspacing=0 border=0>"
    s +="<TBODY><TR><TD nowrap align=right valign=top>"
    Dsp_icon00()
    s +="</TD></TR><TR><TD align=center>"
}


function Dsp_icon02() 
{
     s +="</TD></TR><TR><TD nowrap height=10><BR></TD></TR></TBODY></TABLE>"
}


function Chg_icon()
{
    if(photo_no >= dat_sum){
         document.icon_n.src = b_close
    }else{
         document.icon_n.src = b_next
    }
}


function Photo_next()
{
    photo_no++
    Chg_icon()
    if(com_pos > 0){document.title = f_com1[photo_no]+"@@@@@"}
    if(photo_no > dat_sum2){Close_next()} else {Next_photo_text()}
}


function Photo_back()
{
    photo_no--
    Chg_icon()
    if(photo_no <= 0){Close_next()} else {Next_photo_text()}
    if(com_pos > 0){document.title = f_com1[photo_no]+"@@@@@"}
}


function Close_back()
{
     if(wname == ""){
          javascript:history.back()
     }else{
          javascript:close()
     }
}  


function Close_next()
{
    if((wipe_dsp >= 0)&&(winie6 >= 6)){
         chText(f_com1[dat_sum],'tx1')
         photo_a.filters.revealTrans.Apply()
         document.photo_a.src = f_name[dat_sum]
         photo_a.filters.revealTrans.Play()
         if(wname ==""){
              timerID = setTimeout('javascript:history.back()',close_speed)
         }else{          
              timerID = setTimeout('javascript:close()',close_speed)
         }
    }else{
          Close_back()
     }
}  


function Next_photo_text() 
{
    document.photo_a.src = f_name[photo_no]
    if(com_line > 0){
         if(com_pos == 0){
              chText(f_com1[photo_no],'tx1')
              if(com_line > 1){chText(f_com2[photo_no],'tx2')}
         }else{
              document.title = "@@@"+f_com1[photo_no]+"@@@@@@"
         }
    }
    if((photo_no > 0)&&(photo_no <= dat_sum2)){chText(photo_no,'tx3')}
}


function chText(text,id) 
{
    if(document.getElementById){
        obj = document.getElementById(id);
        obj.childNodes[0].nodeValue = text;
    }
}

