Help with .js

  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Hello people,

I need help to make this code work with Mozilla Alpha effect! Works fine this IE but need that alpha working with moz!

It might take a few days however... NEVER seen a script that long before...WOW!

Cheers for any help!!!





Code: [ Select ]
// Ver: 4.1
var nOP=0,nOP5=0,nIE=0,nIE4=0,nIE5=0,nNN=0,nNN4=0,nNN6=0,nMAC=0,nIEM=0,nIEW=0,nDM=0,nVER=0.0,st_delb=0,st_addb=0,st_reg=1;stnav();var st_ttb=nIE||nOP&&(nVER>=6&&nVER<7);
var stT2P=["static","absolute","absolute"],stHAL=["left","center","right"],stVAL=["top","middle","bottom"],stREP=["no-repeat","repeat-x","repeat-y","repeat"],stBDS=["none","solid","double","dotted","dashed","groove","ridge"];
var st_max=10,st_ht="",st_gc=0,st_rl=null,st_cl,st_ct,st_cw,st_ch,st_cm=0,st_cp,st_ci,st_ri=/Stm([0-9]*)p([0-9]*)i([0-9]*)e/,st_rp=/Stm([0-9]*)p([0-9]*)i/,st_ims=[],st_ms=[],st_load=0,st_scr=null;
var st_rsp=new RegExp(" +");
if(nNN4){stitovn=stevfn('stitov',1);stitoun=stevfn('stitou',1);stitckn=stevfn('stitck',1);stppovn=stevfn('stppov',0);stppoun=stevfn('stppou',0);}
if(nIE4||nNN4)window.onerror=function(m,u,l){return !confirm("Java Script Error\n"+"\nDescription:"+m+"\nSource:"+u+"\nLine:"+l+"\n\nSee more details?");}
if(nDM)window.onload=st_onload;
if(nIEM||nOP5)window.onunload=function(){if(st_rl){clearInterval(st_rl);st_rl=null;}return true;}
if(typeof(st_js)=='undefined'){
if(nDM&&!nNN4)
{
    var s="<STYLE>\n.st_tbcss,.st_tdcss,.st_divcss,.st_ftcss{border:none;padding:0px;margin:0px;}\n</STYLE>";
    for(var i=0;i<st_max;i++)
        s+="<FONT ID=st_gl"+i+"></FONT>";
    if(nIEW&&nVER>=5.0&&document.body)
        document.body.insertAdjacentHTML("AfterBegin",s);
    else
        document.write(s);
}st_js=1;}
function stm_bm(a)
{
    st_ms[st_cm]=
    {
        ps:[],
        mei:st_cm,
        ids:"Stm"+st_cm+"p",
        hdid:null,
        cked:0,
        tfrm:window,
        sfrm:window,
        mcff:"",
        mcfd:0,
        mcfx:0,
        mcfy:0,
        mnam:a[0],
        mver:a[1],
        mweb:a[2],
        mbnk:stbuf(a[2]+a[3]),
        mtyp:a[4],
        mcox:a[5],
        mcoy:a[6],
        maln:stHAL[a[7]],
        mcks:a[8],
        msdv:a[9],
        msdh:a[10],
        mhdd:nNN4?Math.max(100,a[11]):a[11],
        mhds:a[12],
        mhdo:a[13],
        mhdi:a[14],
        args:a.slice(0)
    };
}
function stm_bp(l,a)
{
    var op=st_cp;var oi=st_ci;st_cp=st_ms[st_cm].ps.length;st_ci=0;
    var m=st_ms[st_cm];
    m.ps[st_cp]=
    {
    is:[],
    mei:st_cm,
    ppi:st_cp,
    ids:"Stm"+st_cm+"p"+st_cp+"i",
    par:(st_cp?[st_cm,op,oi]:null),
    tmid:null,
    citi:-1,
    issh:0,
    isst:!st_cp&&m.mtyp==0,
    isck:!st_cp&&m.mcks,
    exed:0,
    pver:a[0],
    pdir:a[1],
    poffx:a[2],
    poffy:a[3],
    pspc:a[4],
    ppad:a[5],
    plmw:a[6],
    prmw:a[7],
    popc:a[8],
    pesh:a[9]?a[9]:"Normal",
    pesi:a[10],
    pehd:a[11]?a[11]:"Normal",
    pehi:a[12],
    pesp:a[13],
    pstp:a[14],
    psds:nIEW?a[15]:0,
    pscl:a[16],
    pbgc:a[17],
    pbgi:stbuf(stgsrc(a[18],m,0)),
    pbgr:stREP[a[19]],
    pbds:stBDS[a[20]],
    ipbw:a[21],
    pbdc:(!nDM||nNN4)?a[22].split(st_rsp)[0]:a[22],
    args:a.slice(0)
    };
    var p=m.ps[st_cp];
    if(st_cp)    stgpar(p).sub=[st_cm,st_cp];
    p.zind=!st_cp?1000:stgpar(stgpar(p)).zind+10;
    p.pbgd=stgbg(p.pbgc,p.pbgi,p.pbgr);
    if(nIEW&&nVER>=5.5)
    {
        p.efsh=p.pesh=="Normal"?"stnm":"stft";
        p.efhd=p.pehd=="Normal"?"stnm":"stft";
    }
    else if(nIEW&&(nVER>=5.0||nVER>=4.0&&!p.isst))
    {
        p.efsh=p.pesi>=0?"stft":"stnm";
        p.efhd=p.pehi>=0?"stft":"stnm";
    }
    else
        p.efsh=p.efhd="stnm";
    eval(l+"=p;");
}
function stm_bpx(l,r,a)
{
    var p=eval(r);
    stm_bp(l,a.concat(p.args.slice(a.length)));
}
function stm_ai(l,a)
{
    st_ci=st_ms[st_cm].ps[st_cp].is.length;
    var m=st_ms[st_cm];
    var p=m.ps[st_cp];
    if(a[0]==6)
        p.is[st_ci]=
        {
        ssiz:a[1],
        ibgc:[a[2]],
        simg:stbuf(stgsrc(a[3],m,1)),
        simw:a[4],
        simh:a[5],
        simb:a[6],
        args:a.slice(0)
        };
    else
        p.is[st_ci]=
        {
        itex:a[0]?a[1]:a[1].replace(new RegExp(" ","g"),nMAC?" ":"&nbsp;"),
        iimg:[stbuf(stgsrc(a[2],m,0)),stbuf(stgsrc(a[3],m,0))],
        iimw:a[4],
        iimh:a[5],
        iimb:a[6],
        iurl:a[7],
        itgt:a[8],
        istt:a[9],
        itip:a[10],
        iicn:[stbuf(stgsrc(a[11],m,1)),stbuf(stgsrc(a[12],m,1))],
        iicw:a[13],
        iich:a[14],
        iicb:a[15],
        iarr:[stbuf(stgsrc(a[16],m,1)),stbuf(stgsrc(a[17],m,1))],
        iarw:a[18],
        iarh:a[19],
        iarb:a[20],
        ihal:stHAL[a[21]],
        ival:stVAL[a[22]],
        ibgc:nOP5&&nVER<7.0&&a[24]&&a[26]?["transparent","transparent"]:[nOP5&&nVER<7.0||!a[24]?a[23]:"transparent",nOP5&&nVER<7.0||!a[26]?a[25]:"transparent"],
        ibgi:[stbuf(stgsrc(a[27],m,0)),stbuf(stgsrc(a[28],m,0))],
        ibgr:[stREP[a[29]],stREP[a[30]]],
        ibds:stBDS[a[31]],
        ipbw:a[32],
        ibdc:(!nDM||nNN4)?[a[33].split(st_rsp)[0],a[34].split(st_rsp)[0]]:[a[33],a[34]],
        itxc:[a[35],a[36]],
        itxf:[a[37],a[38]],
        itxd:[stgdec(a[39]),stgdec(a[40])],
        args:a.slice(0)
        };
    var it=st_ms[st_cm].ps[st_cp].is[st_ci];
    it.ityp=a[0];
    it.mei=st_cm;
    it.ppi=st_cp;
    it.iti=st_ci;
    it.ids=p.ids+st_ci+"e";
    it.sub=null;
    it.tmid=null;
    if(it.ityp!=6)
        it.ibgd=[stgbg(it.ibgc[0],it.ibgi[0],it.ibgr[0]),stgbg(it.ibgc[1],it.ibgi[1],it.ibgr[1])];
    eval(l+"=it;");
}
function stm_aix(l,r,a)
{
    var i=eval(r);
    stm_ai(l,a.concat(i.args.slice(a.length)));
}
function stm_ep()
{
    var m=st_ms[st_cm];
    var p=m.ps[st_cp];
    var i=stgpar(p);
    if(i)
    {
        st_cm=i.mei;
        st_cp=i.ppi;
        st_ci=i.iti;
    }
    if(p.is.length==0)
    {
        m.ps.length--;
        if(i)
            i.sub=null;
    }
}
function stm_em()
{
    var m=st_ms[st_cm];
    if(m.ps.length==0)
    {
        st_ms.length--;
        return;
    }
    var mh="";
    var mc="<STYLE TYPE='text/css'>\n";
    var l=nDM?m.ps.length:1;
    for(var ppi=0;ppi<l;ppi++)
    {
        var p=m.ps[ppi];
        var ph=stpbtx(p);
        if(p.isst&&m.maln!="left")
            ph="<TABLE STYLE='border:none;padding:0px;' CELLPADDING=0 CELLSPACING=0 ALIGN="+m.maln+"><TD class=st_tdcss>"+ph;
        for(var iti=0;iti<p.is.length;iti++)
        {
            var i=p.is[iti];
            var ih="";
            ih+=p.pver ? "<TR ID="+i.ids+"TR>" : "";
            ih+=stittx(i);
            ih+=(p.pver ? "</TR>" : "");
            ph+=ih;
            if(i.ityp!=6)
            {
                mc+="."+i.ids+"TX0{"+sttcss(i,0)+"}\n";
                mc+="."+i.ids+"TX1{"+sttcss(i,1)+"}\n";
            }
        }
        ph+=stpetx(p);
        if(p.isst&&m.maln!="left")
            ph+="</TD></TABLE>";
        if(p.isst||nNN4||!nDM)
            mh+=ph;
        else
            st_ht+=ph;
    }
    mc+="</STYLE>";
    if(!nDM||nNN4)
        document.write(mc);
    if(mh)
        document.write(mh);
    if(nDM&&!(nIEM||(nIEW&&nVER<5.0)))
    {
        if(st_ht)
        {
            var o=stgobj('st_gl'+st_gc,'font');
            if(nNN6)
                o.innerHTML=st_ht;
            else if(nIE&&nVER>=5.0)
                o.insertAdjacentHTML("BeforeEnd",st_ht);
            else
                o.document.write(st_ht);
            st_gc++;
            st_ht='';
        }
        if(!nOP&&!nNN)
            stpre(m);
    }
    st_cm++;st_cp=0;st_ci=0;
}
function stpbtx(p)
{
    var s="";
    if(nNN4||!nDM)
    {
        s+=p.isst?"<ILAYER":"<LAYER";
        s+=" VISIBILITY=hide";
        s+=" ID="+p.ids;
        s+=" Z-INDEX="+p.zind;
        s+="><LAYER>";
        s+="<TABLE BORDER=0 CELLSPACING=0 CELLPADDING="+p.pspc;
        s+=" BACKGROUND='"+p.pbgi+"'";
        s+=" BGCOLOR="+(p.pbgi||p.pbgc=="transparent"?"''":p.pbgc);
        s+=">";
    }
    else
    {
        var ds="position:"+stT2P[p.ppi?1:stgme(p).mtyp]+";";
        ds+="z-index:"+p.zind+";";
        ds+="visibility:hidden;";
        s+=st_ttb ? "<TABLE class=st_tbcss CELLPADDING=0 CELLSPACING=0" : "<DIV class=st_divcss";
        s+=stppev(p);
        s+=" ID="+p.ids;
        s+=" STYLE='";
        if(nIEM)
            s+="width:1px;";
        else if(nIE)
            s+="width:0px;";
        s+=stfcss(p);
        s+=ds;
        s+="'>";
        if(st_ttb)
            s+="<TD class=st_tdcss ID="+p.ids+"TTD>";
        s+="<TABLE class=st_tbcss CELLSPACING=0 CELLPADDING=0";
        s+=" ID="+p.ids+"TB";
        s+=" STYLE='";
        s+=stpcss(p);
        if(nIEW)
            s+="margin:"+p.psds+"px;";
        s+="'>";
    }
    return s;
}
function stpetx(p)
{
    var s="</TABLE>";
    if(nNN4||!nDM)
        s+="</LAYER></LAYER>";
    else if(st_ttb)
        s+="</TD></TABLE>";
    else
        s+="</DIV>";
    return s;
}
function stittx(i)
{
    var s="";
    var p=stgpar(i);
    if(nNN4||!nDM)
    {
        s+="<TD WIDTH=1 NOWRAP>";
        s+="<FONT STYLE='font-size:1pt;'>";
        s+="<ILAYER ID="+i.ids+"><LAYER";
        if(i.ipbw&&i.ityp!=6)
            s+=" BGCOLOR="+i.ibdc[0];
        s+=">";
        for(var l=0;l<(nNN4?2:1);l++)
        {
            if(i.ityp==6&&l)
                break;
            s+="<LAYER Z-INDEX=10 VISIBILITY="+(l?"HIDE":"SHOW");
            if(i.ityp!=6)
            {
                s+=" LEFT="+i.ipbw+" TOP="+i.ipbw;
            }
            s+=">";
            s+="<TABLE ALIGN=LEFT WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING="+(i.ityp==6 ? 0 : p.ppad);
            s+=" BACKGROUND='"+(i.ityp!=6?i.ibgi[l]:"")+"'";
            s+=" BGCOLOR="+(i.ityp!=6&&i.ibgi[l]||i.ibgc[l]=="transparent"?"''":i.ibgc[l])
            s+=">";
            if(i.ityp==6)
            {
                s+="<TD NOWRAP VALIGN=TOP"+
                    " HEIGHT="+(p.pver ? i.ssiz : "100%")+
                    " WIDTH="+(p.pver ? "100%" : i.ssiz)+
                    " STYLE='font-size:0pt;'"+
                    ">";
                s+=stgimg(i.simg,i.ids+"LINE",i.simw,i.simh,0);
                s+="</TD>";
            }
            else
            {
                if(p.pver&&p.plmw||!p.pver&&i.iicw)
                {
                    s+="<TD ALIGN=CENTER VALIGN=MIDDLE";
                    s+=stgiws(i);
                    s+=">";
                    s+=stgimg(i.iicn[l],"",i.iicw,i.iich,i.iicb);
                    s+="</TD>";
                }
                s+="<TD WIDTH=100% NOWRAP ALIGN="+i.ihal+" VALIGN="+i.ival+">";
                s+="<A "+stgurl(i)+" CLASS='"+(i.ids+"TX"+l)+"'>";
                if(i.ityp==2)
                    s+=stgimg(i.iimg[l],i.ids+"IMG",i.iimw,i.iimh,i.iimb);
                else
                {
                    s+="<IMG SRC=\""+stgme(i).mbnk+"\" WIDTH=1 HEIGHT=1 BORDER=0 ALIGN=ABSMIDDLE>";
                    s+=i.itex;
                }
                s+="</A>";
                s+="</TD>";
                if(p.pver&&p.prmw||!p.pver&&i.iarw)
                {
                    s+="<TD ALIGN=CENTER VALIGN=MIDDLE";
                    s+=stgaws(i);
                    s+=">";
                    s+=stgimg(i.iarr[l],"",i.iarw,i.iarh,i.iarb);
                    s+="</TD>";
                }
            }
            s+="</TABLE>";
            if(i.ipbw&&i.ityp!=6)
                s+="<BR CLEAR=ALL><SPACER HEIGHT=1 WIDTH="+i.ipbw+"></SPACER><SPACER WIDTH=1 HEIGHT="+i.ipbw+"></SPACER>";
            s+="</LAYER>";
        }
        if(i.ityp!=6)
            s+="<LAYER Z-INDEX=20></LAYER>";
        s+="</LAYER></ILAYER>"
        s+="</FONT>";
        s+="</TD>";
    }
    else
    {
        s+="<TD class=st_tdcss NOWRAP VALIGN="+(nIE ? "MIDDLE" : "TOP");
        s+=" STYLE='"
            s+="padding:"+p.pspc+"px;";
        s+="'";
        s+=" ID="+p.ids+i.iti;
        if(nIEW)
            s+=" HEIGHT=100%";
        s+=">";
        if(!nOP&&!nIE)
        {
            s+="<DIV class=st_divcss ID="+i.ids;
            s+=stitev(i);
            s+=" STYLE=\""+sticss(i,0);
            s+="\"";
            s+=">";
        }
        s+="<TABLE class=st_tbcss CELLSPACING=0 CELLPADDING=0";
        if(!nOP)
            s+=" HEIGHT=100%";
        s+=" STYLE=\"";
        if(nOP||nIE)
            s+=sticss(i,0);
        s+="\"";
        if(nOP||nIE)
            s+=stitev(i);
        if(p.pver||nIEM)
            s+=" WIDTH=100%";
        s+=" ID="+(nOP||nIE ? i.ids : (i.ids+"TB"));
        if(!nOP)
            s+=" TITLE="+stquo(i.ityp!=6 ? i.itip : "");
        s+=">";
        if(i.ityp==6)
        {
            s+="<TD class=st_tdcss NOWRAP VALIGN=TOP"+
                " ID="+i.ids+"MTD"+
                " HEIGHT="+(p.pver ? i.ssiz : "100%")+
                " WIDTH="+(p.pver ? "100%" : i.ssiz)+
                ">";
            s+=stgimg(i.simg,i.ids+"LINE",i.simw,i.simh,0);
            s+="</TD>";
        }
        else
        {
            if(p.pver&&p.plmw||!p.pver&&i.iicw)
            {
                s+="<TD class=st_tdcss NOWRAP ALIGN=CENTER VALIGN=MIDDLE HEIGHT=100%";
                s+=" STYLE=\"padding:"+p.ppad+"px\"";
                s+=" ID="+i.ids+"LTD";
                s+=stgiws(i);
                s+=">";
                s+=stgimg(i.iicn[0],i.ids+"ICON",i.iicw,i.iich,i.iicb);
                s+="</TD>";
            }
            s+="<TD class=st_tdcss NOWRAP HEIGHT=100% STYLE=\"";
            s+="color:"+i.itxc[0]+";";
            s+="padding:"+p.ppad+"px;";
            s+="\"";
            s+=" ID="+i.ids+"MTD";
            s+=" ALIGN="+i.ihal;
            s+=" VALIGN="+i.ival+">";
            s+="<FONT class=st_ftcss ID="+i.ids+"TX STYLE=\""+sttcss(i,0)+"\">";
            if(i.ityp==2)
                s+=stgimg(i.iimg[0],i.ids+"IMG",i.iimw,i.iimh,i.iimb);
            else
                s+=i.itex;
            s+="</FONT>";
            s+="</TD>";
            if(p.pver&&p.prmw||!p.pver&&i.iarw)
            {
                s+="<TD class=st_tdcss NOWRAP ALIGN=CENTER VALIGN=MIDDLE HEIGHT=100%";
                s+=" STYLE=\"padding:"+p.ppad+"px\"";
                s+=" ID="+i.ids+"RTD";
                s+=stgaws(i);
                s+=">";
                s+=stgimg(i.iarr[0],i.ids+"ARROW",i.iarw,i.iarh,i.iarb);
                s+="</TD>";
            }
        }
        s+="</TABLE>";
        if(!nOP&&!nIE)
            s+="</DIV>";
        s+="</TD>";
    }
    return s;
}
function stpcss(p)
{
    var s="";
    s+="border-style:"+p.pbds+";";
    s+="border-width:"+p.ipbw+"px;";
    s+="border-color:"+p.pbdc+";";
    if(nIE)
        s+="background:"+p.pbgd+";";
    else
    {
        s+="background-color:"+(p.pbgc)+";";
        if(p.pbgi)
        {
            s+="background-image:url("+p.pbgi+");";
            s+="background-repeat:"+p.pbgr+";";
        }
    }
    return s;
}
function stfcss(p)
{
    var s="";
    if(nIEW&&(nVER>=5.0||!p.isst))
    {
        var dx=nVER>=5.5?"progid:DXImageTransform.Microsoft." : "";
        s+="filter:";
        if(nVER>=5.5)
        {
            if(p.pesh!="Normal")
                s+=p.pesh+" ";
        }
        else
        {
            if(p.pesi<24&&p.pesi>=0)
                s+="revealTrans(Transition="+p.pesi+",Duration="+((110-p.pesp)/100)+") ";
        }
        s+=dx+"Alpha(opacity="+p.popc+") ";
        if(p.psds)
        {
            if(p.pstp==1)
                s+=dx+"dropshadow(color="+p.pscl+",offx="+p.psds+",offy="+p.psds+",positive=1) ";
            else
                s+=dx+"Shadow(color="+p.pscl+",direction=135,strength="+p.psds+") ";
        }
        if(nVER>=5.5)
        {
            if(p.pehd!="Normal")
                s+=p.pehd+" ";
        }
        else
        {
            if(p.pehi<24&&p.pehi>=0)
                s+="revealTrans(Transition="+p.pehi+",Duration="+((110-p.pesp)/100)+") ";
        }
        s+=";";
    }
    return s;
}
function sticss(i,n)
{
    var s="";
    if(i.ityp!=6)
    {
        s+="border-style:"+i.ibds+";";
        s+="border-width:"+i.ipbw+"px;";
        s+="border-color:"+i.ibdc[n]+";";
        if(!nIEM&&i.ibgi[n])
        {
            s+="background-image:url("+i.ibgi[n]+");";
            s+="background-repeat:"+i.ibgr[n]+";";
        }
    }
    if(nIEM&&i.ityp!=6)
        s+="background:"+i.ibgd[n]+";";
    else
        s+="background-color:"+i.ibgc[n]+";";
    s+="cursor:"+stgcur(i)+";";
    return s;
}
function sttcss(i,n)
{
    var s="";
    s+="cursor:"+stgcur(i)+";";
    s+="font:"+i.itxf[n]+";";
    s+="text-decoration:"+i.itxd[n]+";";
    if(!nDM||nNN4)
        s+="background-color:transparent;color:"+i.itxc[n];
    return s;
}
function stitov(e,o,i)
{
    if(nIEW)
    {
        if(!i.layer)
            i.layer=o;
        if(!stgpar(i).issh||(e.fromElement&&o.contains(e.fromElement)))
            return;
    }
    else
    {
        if(!stgpar(i).issh||(!nNN&&(e.fromElement&&e.fromElement.id&&e.fromElement.id.indexOf(i.ids)>=0)))
            return;
    }
    if(nNN4)
        stglay(i).document.layers[0].captureEvents(Event.CLICK);
    var m=stgme(i);
    if(!i.ppi&&m.mcff)
        stfrm(m);
    var w=m.sfrm;
    if(w!=window)
        m=w.stmenu(m.mnam);
    if(m.hdid)
    {
        w.clearTimeout(m.hdid);
        m.hdid=null;
    }
    var cii=stgpar(i).citi;
    var ci=null;
    if(cii>=0)
        ci=stgpar(i).is[cii];
    var p=stgpar(i);
    if(!p.isck||stgme(i).cked)
    {
        if(p.citi!=i.iti)
        {
            if(p.citi>=0)
            {
                sthdit(p.is[p.citi]);
                p.citi=-1;
            }
            *plum*(i);
            p.citi=i.iti;
        }
        else
        {
            var p=stgtsub(i);
            if(p&&!p.issh)
                *plum*(i);
        }
    }
    if(i.istt)
        window.status=i.istt;
}
function stitou(e,o,i)
{
    if(nIEW)
    {
        if(!stgpar(i).issh||e.toElement&&o.contains(e.toElement))
            return;
    }
    else
    {
        if(!stgpar(i).issh||(!nNN&&(e.toElement&&e.toElement.id&&e.toElement.id.indexOf(i.ids)>=0)))
            return;
    }
    if(nNN4)
        stglay(i).document.layers[0].releaseEvents(Event.CLICK);
    var p=stgtsub(i);
    if(!p||!p.issh)
    {
        stshst(i,0);
        stgpar(i).citi=-1;
    }
    else if(p&&p.issh&&!p.exed)
        sthdit(i);
    window.status="";
}
function stitck(e,o,i)
{
    if(e.button&&e.button>=2)
        return;
    var m=stgme(i);
    var p=stgpar(i);
    if(p.isck)
    {
        m.cked=!m.cked;
        if(m.cked)
        {
            *plum*(i);
            p.citi=i.iti;
        }
        else
        {
            sthdit(i);
            p.citi=-1;
        }
    }
    if(!nNN4&&!(p.isck&&stgsub(i))&&i.iurl)
    {
        if(i.iurl.toLowerCase().indexOf("javascript:")==0)
            eval(i.iurl.substring(11,i.iurl.length));
        else if(i.itgt=="_self")
            window.location.href=i.iurl;
        else if(i.itgt=="_parent")
            window.parent.location.href=i.iurl;
        else if(i.itgt=="_top")
            window.top.location.href=i.iurl;
        else
        {
            for(var co=window;co!=co.parent;co=co.parent)
            {
                if(typeof(co.parent.frames[i.itgt])!="undefined")
                {
                    co.parent.frames[i.itgt].location.href=i.iurl;
                    return;
                }
            }
            window.open(i.iurl,i.itgt);
        }
    }
}
function stppov(e,o,p)
{
    if(nIEW)
    {
        if(!p.layer)
            p.layer=o;
        if(!p.issh||(e.fromElement&&o.contains(e.fromElement)))
            return;
    }
    else
    {
        if(!p.issh||(!nNN&&(e.fromElement&&e.fromElement.id&&e.fromElement.id.indexOf(p.ids)>=0)))
            return;
    }
    var m=stgme(p);
    var w=m.sfrm;
    if(w!=window)
        m=w.stmenu(m.mnam);
    if(m.hdid)
    {
        w.clearTimeout(m.hdid);
        m.hdid=null;
    }
}
function stppou(e,o,p)
{
    if(nIEW)
    {
        if(!p.issh||(e.toElement&&o.contains(e.toElement)))
            return;
    }
    else
    {
        if(!p.issh||(!nNN&&(e.toElement&&e.toElement.id&&e.toElement.id.indexOf(p.ids)>=0)))
            return;
    }
    var m=stgme(p);
    var w=m.sfrm;
    if(w!=window)
        m=w.stmenu(m.mnam);
    if(m.hdid)
        w.clearTimeout(m.hdid);
    m.hdid=w.setTimeout("sthdall(st_ms['"+m.mei+"'],0);",m.mhdd);
}
function stshst(i,n)
{
    if(nNN4)
    {
        var ls=stgstlay(i);
        ls[n].parentLayer.bgColor=i.ibdc[n];
        ls[n].visibility="show";
        ls[1-n].visibility="hide";
    }
    else
    {
        var os=stglay(i).style;
        if(nIEM)
        {
            if(i.ibgd[0]!=i.ibgd[1])    os.background=i.ibgd[n];
        }
        else
        {
            if(i.ibgc[0]!=i.ibgc[1])
            {
                if(nOP&&nVER<6)
                    os.background=i.ibgc[n];
                else
                    os.backgroundColor=i.ibgc[n];
            }
            if(i.ibgi[0]!=i.ibgi[1])    os.backgroundImage="url("+(i.ibgi[n]?i.ibgi[n]:stgme(i).mbnk)+")";
            if(i.ibgr[0]!=i.ibgr[1])    os.backgroundRepeat=i.ibgr[n];
        }
        if(i.ibdc[0]!=i.ibdc[1])    os.borderColor=i.ibdc[n];
        var t;
        if(i.iicn[0]!=i.iicn[1])
        {
            t=stgobj(i.ids+'ICON','IMG');
            if(t)    t.src=i.iicn[n];
        }
        if(i.iarr[0]!=i.iarr[1])
        {
            t=stgobj(i.ids+'ARROW','IMG');
            if(t)    t.src=i.iarr[n];
        }
        if(i.ityp==2&&i.iimg[0]!=i.iimg[1])
        {
            t=stgobj(i.ids+'IMG','IMG');
            if(t)    t.src=i.iimg[n];
        }
        if (!i.txstyle)    i.txstyle=stgobj(i.ids+"TX",'FONT').style;
        t=i.txstyle;
        if(i.itxf[0]!=i.itxf[1])
            t.font=i.itxf[n];
        if(i.itxd[0]!=i.itxd[1])
            t.textDecoration=i.itxd[n];
        if(nOP)    stgobj(i.ids+'MTD','td').style.color=i.itxc[n];
        else    t.color=i.itxc[n];
    }
}
function stshpp(p)
{
    stshow(p);
}
function sthdpp(p)
{
    if(p.citi>=0)
    {
        var t=stgsub(p.is[p.citi]);
        if(t&&t.issh)
            sthdpp(t);
        stshst(p.is[p.citi],0);
        p.citi=-1;
    }
    sthide(p);
}
function *plum*(i)
{
    var w=stgme(i).tfrm;
    var p=stgtsub(i);
    if(p&&!p.issh)
        w.stshpp(p);
    stshst(i,1);
}
function sthdit(i)
{
    var w=stgme(i).tfrm;
    var p=stgtsub(i);
    if(p&&p.issh)
        w.sthdpp(p);
    stshst(i,0);
}
function stshow(p)
{
    var d=p.ppi&&stgpar(stgpar(p)).pver ? stgme(p).msdv : stgme(p).msdh;
    p.exed=0;
    if(!p.rc)
        stgxy(p);
    if(p.tmid)
    {
        clearTimeout(p.tmid);
        p.tmid=null;
        stwels(1,p)
    }
    if(d>0)
        p.tmid=setTimeout(stsdstr(p,1),d);
    p.issh=1;
    if(d<=0)
        eval(stsdstr(p,1));
}
function sthide(p)
{
    if(p.tmid)
    {
        clearTimeout(p.tmid);
        p.tmid=null;
    }
    if(p.issh&&!p.exed)
    {
        p.exed=0;
        p.issh=0;
    }
    else
    {
        p.exed=0;
        p.issh=0;
        eval(stsdstr(p,0));
    }
}
function stshx(p)
{
    var ly=stglay(p);
    if(nNN4)
    {
        ly.visibility='show';
        if(!p.fixed)
        {
            ly.resizeBy(p.ipbw*2,p.ipbw*2);
            ly=ly.document.layers[0];
            ly.moveTo(p.ipbw,p.ipbw);
            ly.onmouseover=stppovn;
            ly.onmouseout=stppoun;
            for(var l=p.is.length-1;l>=0;l--)
            {
                var i=p.is[l];
                if(i.ityp!=6)
                {
                    var ls=stgstlay(i);
                    ls[2].resizeTo(ls[0].parentLayer.clip.width,ls[0].parentLayer.clip.height);
                    if(stgcur(i)=="hand")
                    {
                        with(ls[2].document)
                        {
                            open();
                            write("<A "+stgurl(i)+"\"><IMG BORDER=0 SRC='"+stgme(i).mbnk+"' WIDTH="+ls[2].clip.width+" HEIGHT="+ls[2].clip.height+"></A>");
                            close();
                        }
                    }
                    ls[0].resizeBy(-i.ipbw,-i.ipbw);
                    ls[1].resizeBy(-i.ipbw,-i.ipbw);
                    ly=stglay(i).document.layers[0];
                    ly.onmouseover=stitovn;
                    ly.onmouseout=stitoun;
                    ly.onclick=stitckn;
                }
            }
            if(p.ipbw)
                setTimeout("var pp=st_ms["+p.mei+"].ps["+p.ppi+"];stglay(pp).bgColor=pp.pbdc;",1);
            p.fixed=1;
        }
    }
    else
    {
        ly.style.visibility='visible';
        if(nIE5)
            ly.filters['Alpha'].opacity=p.popc;
            if(moz)
            ly.filters['Alpha'].opacity=p.popc;
            
    }
}
function sthdx(p)
{
    var ly=stglay(p);
    if(nNN4)
        ly.visibility='hide';
    else
    {
        if(nIE5)
            ly.filters['Alpha'].opacity=0;
        ly.style.visibility='hidden';
    }
}
function sthdall(m,f)
{
    var w=m.sfrm;
    var s=w==window?m:w.stmenu(m.mnam);
    s.cked=0;
    var p=s.ps[0];
    if(p.issh)
    {
        if(p.citi>=0)
        {
            w.sthdit(p.is[p.citi]);
            p.citi=-1;
        }
        if(s.mtyp==2&&f)
            w.sthide(p);
    }
    s.hdid=null;
}
function stnmsh(p)
{
    stmvto(stgxy(p),p);
    stwels(-1,p);
    stshx(p);
}
function stnmhd(p)
{
    sthdx(p);
    stwels(1,p);
}
function stftsh(p)
{
    if(nVER<5.5)
        stshfx(p);
    else if(st_reg)
        eval("try{stshfx(p);} catch(er){st_reg=0;stnmsh(p);}");
    else
        stnmsh(p);
}
function stfthd(p)
{
    if(nVER<5.5)
        sthdfx(p);
    else if(st_reg)
        eval("try{sthdfx(p);}catch(er){st_reg=0;stnmhd(p);}");
    else
        stnmhd(p);
}
function stshfx(p)
{
    var t=stglay(p).filters[0];
    if(nVER>=5.5)
        t.enabled=1;
    if(t.Status!=0)
        t.stop();
    stmvto(stgxy(p),p);
    stwels(-1,p);
    t.apply();
    stshx(p);
    t.play();
}
function sthdfx(p)
{
    var t=stglay(p).filters[stglay(p).filters.length-1];
    if(nVER>=5.5)
        t.enabled=1;
    if(t.Status!=0)
        t.stop();
    t.apply();
    sthdx(p);
    stwels(1,p);
    t.play();
}
function ststxy(m,xy)
{
    m.mcox=xy[0];
    m.mcoy=xy[1];
}
function stnav()
{
    var v=navigator.appVersion;
    var a=navigator.userAgent;
    nMAC=v.indexOf("Mac")>=0;
    nOP=a.indexOf("Opera")>=0;
    if(nOP)
    {
        nVER=parseFloat(a.substring(a.indexOf("Opera ")+6,a.length));
        nOP5=nVER>=5.12&&!nMAC&&a.indexOf("MSIE 5.0")>=0;
        if(nVER>=7)    nOP5=1;
    }
    else
    {
        nIE=document.all ? 1 : 0;
        if(nIE)
        {
            nIE4=(eval(v.substring(0,1)>=4));
            nVER=parseFloat(a.substring(a.indexOf("MSIE ")+5,a.length));
            nIE5=nVER>=5.0&&nVER<5.5&&!nMAC;
            nIEM=nIE4&&nMAC;
            nIEW=nIE4&&!nMAC;
        }
        else
        {
            nNN4=navigator.appName.toLowerCase()=="netscape"&&v.substring(0,1)=="4" ? 1 : 0;
            if(!nNN4)
            {
                nNN6=(document.getElementsByTagName("*") && a.indexOf("Gecko")!=-1);
                if(nNN6)
                {
                    nVER=parseInt(navigator.productSub);
                    if(a.indexOf("Netscape")>=0)
                    {
                        st_delb=nVER<20001108+1;
                        st_addb=nVER>20020512-1;
                    }
                    else
                    {
                        st_delb=nVER<20010628+1;
                        st_addb=nVER>20011221-1;
                    }
                }
            }
            else
                nVER=parseFloat(v);
            nNN=nNN4||nNN6;
        }
    }
    nDM=nOP5||nIE4||nNN;
}
function stckpg()
{
    var w=st_cw;
    var h=st_ch;
    var l=st_cl;
    var t=st_ct;
    st_cw=stgcw();
    st_ch=stgch();
    st_cl=stgcl();
    st_ct=stgct();
    if(((nOP&&nVER<7.0)||nNN4)&&(st_cw-w||st_ch-h))
        document.location.reload();
    else if(st_cl-l||st_ct-t)
        stscr();
}
function st_onload()
{
    if(nIEM||nOP5||nNN||(nIEW&&nVER<5.0))
    {
        if(st_ht)
            document.body.insertAdjacentHTML('BeforeEnd',st_ht);
        for(i=0;i<st_ms.length;i++)
            stpre(st_ms[i]);
    }
    st_load=1;
    if(!nNN4)
    {
        for(var i=0;i<st_ms.length;i++)
        {
            var m=st_ms[i];
            for(var j=0;j<m.ps.length;j++)
            {
                var p=m.ps[j];
                if(p.issh&&p.exed)
                    stwels(-1,p);
            }
        }
    }
}
function stpre(m)
{
    var p=m.ps[m.ps.length-1];
    var i=p.is[p.is.length-1];
    while(1)
        if(stglay(i)) break;
    if(!nNN4)
        stfix(m);
    if(m.mtyp!=2)
        stshow(m.ps[0]);
    if(nIE||nNN6)
        window.onscroll=new Function("if(st_scr)clearTimeout(st_scr);st_scr=setTimeout('stscr();',nIEM ?500:0);");
    else if(!st_rl)
    {
        st_cw=stgcw();
        st_ch=stgch();
        st_cl=stgcl();
        st_ct=stgct();
        st_rl=setInterval("stckpg();",500);
    }
    m.ready=1;
}
function stfix(m)
{
    for(var l=0;l<m.ps.length;l++)
    {
        var p=m.ps[l];
        if(nOP&&nVER<6.0)
            stglay(p).style.pixelWidth=parseInt(stgobj(p.ids+"TB",'table').style.pixelWidth);
        if(nIE5)
            stglay(p).style.width=stglay(p).offsetWidth;
        else if(nIEM||!nIE)
        {
            if(!p.pver)
            {
                var ii=0;
                var fi=stgobj(p.ids+ii);
                var h=parseInt(nOP ? fi.style.pixelHeight : fi.offsetHeight);
                if(h)
                {
                    for(ii=0;ii<p.is.length;ii++)
                    {
                        var i=p.is[ii];
                        var lys=stglay(i).style;
                        var th=h-2*p.pspc;
                        if(nOP)
                            lys.pixelHeight=th;
                        else if(i.ityp==6||nIE)
                            lys.height=th+'px';
                        else
                            lys.height=th-2*i.ipbw+'px';
                        if(nIEM)
                        {
                            var fh=h-2*p.pspc;
                            var lt=stgobj(i.ids+"LTD");
                            var rt=stgobj(i.ids+"RTD");
                            if(lt)
                                lt.style.height=fh+'px';
                            stgobj(i.ids+"MTD").style.height=fh+'px';
                            if(rt)
                                rt.style.height=fh+'px';
                        }
                    }
                }
            }
            else if(nOP)
            {
                for(var ii=0;ii<p.is.length;ii++)
                {
                    var i=p.is[ii];
                    if(i.ityp!=6)
                    {
                        var fi=stgobj(p.ids+ii);
                        var it=stglay(i);
                        var w=parseInt(fi.style.pixelWidth);
                        var h=parseInt(it.style.pixelHeight);
                        if(w)
                            it.style.pixelWidth=w-2*p.pspc;
                        if(h)
                            it.style.pixelHeight=h;
                    }
                }
            }
        }
    }
}
function stscr()
{
    for(var l=0;l<st_ms.length;l++)
    {
        var m=st_ms[l];
        if(m)
        {
            sthdall(m,0);
            if(m.mtyp==1)
            {
                var p=m.ps[0];
                stwels(1,p);
                stmvto(stgxy(m.ps[0]),p);
                stwels(-1,p);
            }
        }
    }
}
function stwels(c,p)
{
    var m=stgme(p);
    if(!st_load||nNN4||nOP||p.isst)    return;
    if(m.mhds&&!nNN6)    stwtag("SELECT",c,p);
    if(m.mhdo)    stwtag("OBJECT",c,p);
    if(m.mhdi&&!nNN6&&!(nIEW&&nVER>=5.5))    stwtag("IFRAME",c,p);
}
function stwtag(tg,c,o)
{
    var es=nNN6 ? document.getElementsByTagName(tg) : document.all.tags(tg);
    var l;
    for(l=0;l<es.length;l++)
    {
        var e=es.item(l);
        var f=0;
        for(var t=e.offsetParent;t;t=t.offsetParent)
            if(t.id&&t.id.indexOf("Stm")>=0)
                f=1;
        if(f)
            continue;
        else if(stwover(e,o))
        {
            if(e.visLevel)
                e.visLevel+=c;
            else
                e.visLevel=c;
            if(e.visLevel==-1)
            {
                if(typeof(e.visSave)=='undefined')
                    e.visSave=e.style.visibility;
                e.style.visibility="hidden";
            }
            else if(e.visLevel==0)
                e.style.visibility=e.visSave;
        }
    }
}
function stmvto(xy,p)
{
    if(xy&&(p.ppi||stgme(p).mtyp!=0))
    {
        var l=stglay(p);
        if(nNN4)
            l.moveToAbsolute(xy[0],xy[1]);
        else if(nOP)
        {
            var ls=l.style;
            ls.pixelLeft=xy[0];
            ls.pixelTop=xy[1];
        }
        else
        {
            var ls=l.style;
            ls.left=xy[0]+'px';
            ls.top=xy[1]+'px';
        }
        p.rc=[xy[0],xy[1],p.rc[2],p.rc[3]];
    }
}
function stsdstr(p,iss)
{
    return    "var pp=st_ms["+p.mei+"].ps["+p.ppi+"];pp.tmid=null;"+(iss? p.efsh+"sh(" : p.efhd+"hd(")+"pp);pp.exed=1;"
}
function stwover(e,o)
{
    var l=0;
    var t=0;
    var w=e.offsetWidth;
    var h=e.offsetHeight;
    if(w)
        e._wd=w;
    else
        w=e._wd;
    if(h)
        e._ht=h;
    else
        h=e._ht;
    while(e)
    {
        l+=e.offsetLeft;
        t+=e.offsetTop;
        e=e.offsetParent;
    }
    return ((l<o.rc[2]+o.rc[0]) && (l+w>o.rc[0]) && (t<o.rc[3]+o.rc[1]) && (t+h>o.rc[1]));
}
function stevfn(pr,isi)
{
    var s=isi ? 'st_ri' : 'st_rp';
    s+='.exec(this.parentLayer.id);mei=RegExp.$1;ppi=parseInt(RegExp.$2);';
    if(isi)    s+='iti=parseInt(RegExp.$3);return '+pr+'(e,this,st_ms[mei].ps[ppi].is[iti]);';
    else    s+='return '+pr+'(e,this,st_ms[mei].ps[ppi]);';
    return new Function('e',s);
}
function stppev(p)
{
    var s=" onMouseOver='stppov(event,this,st_ms["+p.mei+"].ps["+p.ppi+"]);'";
    s+=" onMouseOut='stppou(event,this,st_ms["+p.mei+"].ps["+p.ppi+"]);'";
    return s;
}
function stitev(i)
{
    if(i.ityp==6)    return '';
    var s=" onMouseOver='stitov(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
    s+=" onMouseOut='stitou(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
    s+=" onClick='stitck(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
    return s;
}
function stquo(n)
{
    return "\""+n+"\"";
}
function stgurl(i)
{
    return " HREF=" + stquo(i.iurl=="" ? "#" : i.iurl.replace(new RegExp("\"","g"),"&quot;")) + " TARGET=" + stquo(i.iurl==""||i.iurl.toLowerCase().indexOf('javascript:')==0 ? "_self" : i.itgt);
}
function stgdec(v)
{
    if(v)
    {
        var s='';
        if(v&1)
            s+='underline ';
        if(v&2)
            s+='line-through ';
        if(v&4)
            s+='overline';
        return s;
    }
    else
        return 'none';
}
function stgimg(src,id,w,h,b)
{
    var s='<IMG SRC=';
    s+=stquo(src);
    if(id)
        s+=' ID='+id;
    if(w>0)
        s+=' WIDTH='+w;
    else if(nNN)
        s+=' WIDTH=0';
    if(h>0)
        s+=' HEIGHT='+h;
    else if(nNN)
        s+=' HEIGHT=0';
    s+=' BORDER='+b+'>';
    return s;
}
function stgbg(c,im,r)
{
    var s=c;
    if(im)
        s+=" url("+im+") "+r;
    return s;
}
function stgcur(i)
{
    if(nNN6)
        return "default";
    return i.ityp!=6&&((i.ppi==0&&stgme(i).mcks&&stgsub(i))||i.iurl) ? "hand" : "default";
}
function stgiws(o)
{
    if(stgpar(o).pver)
        return stgpar(o).plmw>0 ? " WIDTH="+(stgpar(o).plmw+2) : "";
    else
        return o.iicw>0 ? " WIDTH="+(o.iicw+2) : "";
}
function stgaws(o)
{
    if(stgpar(o).pver)
        return stgpar(o).prmw>0 ? " WIDTH="+(stgpar(o).prmw+2) : "";
    else
        return o.iarw>0 ? " WIDTH="+(o.iarw+2) : "";
}
function stgme(ip)
{
    return st_ms[ip.mei];
}
function stgpar(ip)
{
    if(typeof(ip.iti)!="undefined")
        return st_ms[ip.mei].ps[ip.ppi];
    else
        return !ip.par ? null : st_ms[ip.par[0]].ps[ip.par[1]].is[ip.par[2]];
}
function stgsub(i)
{
    return !i.sub ? null : st_ms[i.sub[0]].ps[i.sub[1]];
}
function stgcl()
{
    return parseInt(nNN||nOP ? window.pageXOffset : document.body.scrollLeft);
}
function stgct()
{
    return parseInt(nNN||nOP ? window.pageYOffset : document.body.scrollTop);
}
function stgcw()
{
    return parseInt(nNN||nOP ? window.innerWidth : (nIEW&&document.compatMode=="CSS1Compat" ? document.documentElement.clientWidth : document.body.clientWidth));
}
function stgch()
{
    return parseInt(nNN||nOP ? window.innerHeight : (nIEW&&document.compatMode=="CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight));
}
function stgobj(id,t)
{
    if(nNN6)
        return document.getElementById(id);
    else if(nNN4)
        return document.layers[id];
    else
        return t ? document.all.tags(t)[id] : document.all[id];
}
function stglay(ip)
{
    if(!ip.layer)
    {
        if(typeof(ip.iti)=='undefined')
            ip.layer=stgobj(ip.ids,st_ttb ? 'table' : 'div');
        else
            ip.layer=nNN4 ? stglay(stgpar(ip)).document.layers[0].document.layers[ip.ids] : stgobj(ip.ids,nIEW ? 'table' : null);
    }
    return ip.layer;
}
function stgstlay(i)
{
    return stglay(i).document.layers[0].document.layers;
}
function stgrc(ip)
{
    if(nNN4)
    {
        var ly=stglay(ip);
        return [ly.pageX,ly.pageY,ly.clip.width,ly.clip.height];
    }
    else
    {
        var l=0,t=0;
        var ly=stglay(ip);
        var w=typeof(ip.rc)=="undefined"?parseInt(nOP&&nVER<7?ly.style.pixelWidth:ly.offsetWidth):ip.rc[2];
        var h=typeof(ip.rc)=="undefined"?parseInt(nOP&&nVER<7?ly.style.pixelHeight:ly.offsetHeight):ip.rc[3];
        while(ly)
        {
            l+=parseInt(ly.offsetLeft);
            t+=parseInt(ly.offsetTop);
            ly=ly.offsetParent;
        }
        if(nIEM)
        {
            l+=parseInt(document.body.leftMargin);
            l-=ip.ipbw;
            t-=ip.ipbw;
        }
        if(typeof(ip.iti)!='undefined')
        {
            if(st_delb)
            {
                l-=ip.ipbw;
                t-=ip.ipbw;
            }
            if(st_addb)
            {
                l+=stgpar(ip).ipbw;
                t+=stgpar(ip).ipbw;
            }
        }
        return [l,t,w,h];
    }
}
function stgxy(p)
{
    var x=p.poffx;
    var y=p.poffy;
    var sr=stgrc(p);
    p.rc=sr;
    if(p.ppi==0)
    {
        if(stgme(p).mtyp==2)
            return [stgme(p).mcox,stgme(p).mcoy];
        else if(stgme(p).mtyp==1)
            return [eval(stgme(p).mcox),eval(stgme(p).mcoy)];
        else
            return [sr[0],sr[1]];
    }
    var ir=stgirc(stgpar(p));
    var cl=stgcl();
    var ct=stgct();
    var cr=cl+stgcw();
    var cb=ct+stgch();
    if(p.pdir==1)
        x=p.poffx+ir[0]-sr[2]+p.psds;
    else if(p.pdir==2)
        x=p.poffx+ir[0]+ir[2]-p.psds;
    else
        x=p.poffx+ir[0]-p.psds;
    if(x+sr[2]>cr)
        x=cr-sr[2];
    if(x<cl)
        x=cl;
    if(p.pdir==3)
        y=p.poffy+ir[1]-sr[3]+p.psds;
    else if(p.pdir==4)
        y=p.poffy+ir[1]+ir[3]-p.psds;
    else
        y=p.poffy+ir[1]-p.psds;
    if(y+sr[3]>cb)
        y=cb-sr[3];
    if(y<ct)
        y=ct;
    return [x,y];
}
function stbuf(s)
{
    if(s)
    {
        var i=new Image();
        st_ims[st_ims.length]=i;
        i.src=s;
    }
    return s;
}
function stgsrc(s,m,f)
{
    if(s=='')
        return f ? m.mbnk : '';
    var sr=s.toLowerCase();
    if(sr.indexOf('http://')==0||(sr.indexOf(':')==1&&sr.charCodeAt(0)>96&&sr.charCodeAt(0)<123)||sr.indexOf('ftp://')==0||sr.indexOf('/')==0||sr.indexOf('gopher')==0)
        return s;
    else
        return m.mweb+s;
}
function showFloatMenuAt(n,x,y)
{
    if(nDM)
    {
        var m=stmenu(n);
        if(m&&typeof(m.ready)!="undefined"&&m.mtyp==2&&m.ps.length&&!m.ps[0].issh)
        {
            ststxy(m,[x,y]);
            stshow(m.ps[0]);
        }
    }
}
function hideMenu(n)
{
    var m=stmenu(n);
    var w=m.sfrm;
    if(w!=window)
        m=w.stmenu(n);
    if(m.hdid)
    {
        w.clearTimeout(m.hdid);
        m.hdid=null;
    }
    w.sthdall(m,1);
}
function stmenu(n)
{
    for(var l=st_ms.length-1;l>=0;l--)
        if(st_ms[l].mnam==n)
            return st_ms[l];
    return null;
}
function stgtsub(i)
{
    var m=stgme(i);
    var w=m.tfrm;
    if(i.ppi||w==window)
        return stgsub(i);
    m=w.stmenu(m.mnam);
    return w.stgsub(m.ps[i.ppi].is[i.iti]);
}
function stgirc(i)
{
    var m=stgme(i);
    var w=m.sfrm;
    if(i.ppi||w==window)
        return stgrc(i);
    m=w.stmenu(m.mnam);
    var rc=w.stgrc(m.ps[0].is[i.iti]);
    var x=rc[0]-w.stgcl();
    var y=rc[1]-w.stgct();
    switch(m.mcfd)
    {
        case 0:y-=w.stgch();break;
        case 1:y+=stgch();break;
        case 2:x-=w.stgcw();break;
        case 3:x+=stgcw();break;
    }
    x+=stgcl()+m.mcfx;
    y+=stgct()+m.mcfy;
    return [x,y,rc[2],rc[3]];
}
function stfrm(m)
{
    var a=m.mcff.split(".");
    var w="top";
    for(var l=0;l<a.length-1;l++)
        if(typeof(eval(w+"."+a[l]))=="undefined")
            return 0;
    w=eval("top."+m.mcff);
    if(typeof(w.st_load)!="undefined"&&w.st_load)
    {
        var t=w.stmenu(m.mnam);
        if(typeof(t)=="object")
        {
            if(w!=window)
            {
                if(t.mhdd<1000)
                    m.mhdd=t.mhdd=1000;
                hideMenu(m.mnam);
                m.sfrm=t.sfrm=window;
                m.tfrm=t.tfrm=w;
            }
            m.mcff="";
            return 1;
        }
    }
    return 0;
}
  1. // Ver: 4.1
  2. var nOP=0,nOP5=0,nIE=0,nIE4=0,nIE5=0,nNN=0,nNN4=0,nNN6=0,nMAC=0,nIEM=0,nIEW=0,nDM=0,nVER=0.0,st_delb=0,st_addb=0,st_reg=1;stnav();var st_ttb=nIE||nOP&&(nVER>=6&&nVER<7);
  3. var stT2P=["static","absolute","absolute"],stHAL=["left","center","right"],stVAL=["top","middle","bottom"],stREP=["no-repeat","repeat-x","repeat-y","repeat"],stBDS=["none","solid","double","dotted","dashed","groove","ridge"];
  4. var st_max=10,st_ht="",st_gc=0,st_rl=null,st_cl,st_ct,st_cw,st_ch,st_cm=0,st_cp,st_ci,st_ri=/Stm([0-9]*)p([0-9]*)i([0-9]*)e/,st_rp=/Stm([0-9]*)p([0-9]*)i/,st_ims=[],st_ms=[],st_load=0,st_scr=null;
  5. var st_rsp=new RegExp(" +");
  6. if(nNN4){stitovn=stevfn('stitov',1);stitoun=stevfn('stitou',1);stitckn=stevfn('stitck',1);stppovn=stevfn('stppov',0);stppoun=stevfn('stppou',0);}
  7. if(nIE4||nNN4)window.onerror=function(m,u,l){return !confirm("Java Script Error\n"+"\nDescription:"+m+"\nSource:"+u+"\nLine:"+l+"\n\nSee more details?");}
  8. if(nDM)window.onload=st_onload;
  9. if(nIEM||nOP5)window.onunload=function(){if(st_rl){clearInterval(st_rl);st_rl=null;}return true;}
  10. if(typeof(st_js)=='undefined'){
  11. if(nDM&&!nNN4)
  12. {
  13.     var s="<STYLE>\n.st_tbcss,.st_tdcss,.st_divcss,.st_ftcss{border:none;padding:0px;margin:0px;}\n</STYLE>";
  14.     for(var i=0;i<st_max;i++)
  15.         s+="<FONT ID=st_gl"+i+"></FONT>";
  16.     if(nIEW&&nVER>=5.0&&document.body)
  17.         document.body.insertAdjacentHTML("AfterBegin",s);
  18.     else
  19.         document.write(s);
  20. }st_js=1;}
  21. function stm_bm(a)
  22. {
  23.     st_ms[st_cm]=
  24.     {
  25.         ps:[],
  26.         mei:st_cm,
  27.         ids:"Stm"+st_cm+"p",
  28.         hdid:null,
  29.         cked:0,
  30.         tfrm:window,
  31.         sfrm:window,
  32.         mcff:"",
  33.         mcfd:0,
  34.         mcfx:0,
  35.         mcfy:0,
  36.         mnam:a[0],
  37.         mver:a[1],
  38.         mweb:a[2],
  39.         mbnk:stbuf(a[2]+a[3]),
  40.         mtyp:a[4],
  41.         mcox:a[5],
  42.         mcoy:a[6],
  43.         maln:stHAL[a[7]],
  44.         mcks:a[8],
  45.         msdv:a[9],
  46.         msdh:a[10],
  47.         mhdd:nNN4?Math.max(100,a[11]):a[11],
  48.         mhds:a[12],
  49.         mhdo:a[13],
  50.         mhdi:a[14],
  51.         args:a.slice(0)
  52.     };
  53. }
  54. function stm_bp(l,a)
  55. {
  56.     var op=st_cp;var oi=st_ci;st_cp=st_ms[st_cm].ps.length;st_ci=0;
  57.     var m=st_ms[st_cm];
  58.     m.ps[st_cp]=
  59.     {
  60.     is:[],
  61.     mei:st_cm,
  62.     ppi:st_cp,
  63.     ids:"Stm"+st_cm+"p"+st_cp+"i",
  64.     par:(st_cp?[st_cm,op,oi]:null),
  65.     tmid:null,
  66.     citi:-1,
  67.     issh:0,
  68.     isst:!st_cp&&m.mtyp==0,
  69.     isck:!st_cp&&m.mcks,
  70.     exed:0,
  71.     pver:a[0],
  72.     pdir:a[1],
  73.     poffx:a[2],
  74.     poffy:a[3],
  75.     pspc:a[4],
  76.     ppad:a[5],
  77.     plmw:a[6],
  78.     prmw:a[7],
  79.     popc:a[8],
  80.     pesh:a[9]?a[9]:"Normal",
  81.     pesi:a[10],
  82.     pehd:a[11]?a[11]:"Normal",
  83.     pehi:a[12],
  84.     pesp:a[13],
  85.     pstp:a[14],
  86.     psds:nIEW?a[15]:0,
  87.     pscl:a[16],
  88.     pbgc:a[17],
  89.     pbgi:stbuf(stgsrc(a[18],m,0)),
  90.     pbgr:stREP[a[19]],
  91.     pbds:stBDS[a[20]],
  92.     ipbw:a[21],
  93.     pbdc:(!nDM||nNN4)?a[22].split(st_rsp)[0]:a[22],
  94.     args:a.slice(0)
  95.     };
  96.     var p=m.ps[st_cp];
  97.     if(st_cp)    stgpar(p).sub=[st_cm,st_cp];
  98.     p.zind=!st_cp?1000:stgpar(stgpar(p)).zind+10;
  99.     p.pbgd=stgbg(p.pbgc,p.pbgi,p.pbgr);
  100.     if(nIEW&&nVER>=5.5)
  101.     {
  102.         p.efsh=p.pesh=="Normal"?"stnm":"stft";
  103.         p.efhd=p.pehd=="Normal"?"stnm":"stft";
  104.     }
  105.     else if(nIEW&&(nVER>=5.0||nVER>=4.0&&!p.isst))
  106.     {
  107.         p.efsh=p.pesi>=0?"stft":"stnm";
  108.         p.efhd=p.pehi>=0?"stft":"stnm";
  109.     }
  110.     else
  111.         p.efsh=p.efhd="stnm";
  112.     eval(l+"=p;");
  113. }
  114. function stm_bpx(l,r,a)
  115. {
  116.     var p=eval(r);
  117.     stm_bp(l,a.concat(p.args.slice(a.length)));
  118. }
  119. function stm_ai(l,a)
  120. {
  121.     st_ci=st_ms[st_cm].ps[st_cp].is.length;
  122.     var m=st_ms[st_cm];
  123.     var p=m.ps[st_cp];
  124.     if(a[0]==6)
  125.         p.is[st_ci]=
  126.         {
  127.         ssiz:a[1],
  128.         ibgc:[a[2]],
  129.         simg:stbuf(stgsrc(a[3],m,1)),
  130.         simw:a[4],
  131.         simh:a[5],
  132.         simb:a[6],
  133.         args:a.slice(0)
  134.         };
  135.     else
  136.         p.is[st_ci]=
  137.         {
  138.         itex:a[0]?a[1]:a[1].replace(new RegExp(" ","g"),nMAC?" ":"&nbsp;"),
  139.         iimg:[stbuf(stgsrc(a[2],m,0)),stbuf(stgsrc(a[3],m,0))],
  140.         iimw:a[4],
  141.         iimh:a[5],
  142.         iimb:a[6],
  143.         iurl:a[7],
  144.         itgt:a[8],
  145.         istt:a[9],
  146.         itip:a[10],
  147.         iicn:[stbuf(stgsrc(a[11],m,1)),stbuf(stgsrc(a[12],m,1))],
  148.         iicw:a[13],
  149.         iich:a[14],
  150.         iicb:a[15],
  151.         iarr:[stbuf(stgsrc(a[16],m,1)),stbuf(stgsrc(a[17],m,1))],
  152.         iarw:a[18],
  153.         iarh:a[19],
  154.         iarb:a[20],
  155.         ihal:stHAL[a[21]],
  156.         ival:stVAL[a[22]],
  157.         ibgc:nOP5&&nVER<7.0&&a[24]&&a[26]?["transparent","transparent"]:[nOP5&&nVER<7.0||!a[24]?a[23]:"transparent",nOP5&&nVER<7.0||!a[26]?a[25]:"transparent"],
  158.         ibgi:[stbuf(stgsrc(a[27],m,0)),stbuf(stgsrc(a[28],m,0))],
  159.         ibgr:[stREP[a[29]],stREP[a[30]]],
  160.         ibds:stBDS[a[31]],
  161.         ipbw:a[32],
  162.         ibdc:(!nDM||nNN4)?[a[33].split(st_rsp)[0],a[34].split(st_rsp)[0]]:[a[33],a[34]],
  163.         itxc:[a[35],a[36]],
  164.         itxf:[a[37],a[38]],
  165.         itxd:[stgdec(a[39]),stgdec(a[40])],
  166.         args:a.slice(0)
  167.         };
  168.     var it=st_ms[st_cm].ps[st_cp].is[st_ci];
  169.     it.ityp=a[0];
  170.     it.mei=st_cm;
  171.     it.ppi=st_cp;
  172.     it.iti=st_ci;
  173.     it.ids=p.ids+st_ci+"e";
  174.     it.sub=null;
  175.     it.tmid=null;
  176.     if(it.ityp!=6)
  177.         it.ibgd=[stgbg(it.ibgc[0],it.ibgi[0],it.ibgr[0]),stgbg(it.ibgc[1],it.ibgi[1],it.ibgr[1])];
  178.     eval(l+"=it;");
  179. }
  180. function stm_aix(l,r,a)
  181. {
  182.     var i=eval(r);
  183.     stm_ai(l,a.concat(i.args.slice(a.length)));
  184. }
  185. function stm_ep()
  186. {
  187.     var m=st_ms[st_cm];
  188.     var p=m.ps[st_cp];
  189.     var i=stgpar(p);
  190.     if(i)
  191.     {
  192.         st_cm=i.mei;
  193.         st_cp=i.ppi;
  194.         st_ci=i.iti;
  195.     }
  196.     if(p.is.length==0)
  197.     {
  198.         m.ps.length--;
  199.         if(i)
  200.             i.sub=null;
  201.     }
  202. }
  203. function stm_em()
  204. {
  205.     var m=st_ms[st_cm];
  206.     if(m.ps.length==0)
  207.     {
  208.         st_ms.length--;
  209.         return;
  210.     }
  211.     var mh="";
  212.     var mc="<STYLE TYPE='text/css'>\n";
  213.     var l=nDM?m.ps.length:1;
  214.     for(var ppi=0;ppi<l;ppi++)
  215.     {
  216.         var p=m.ps[ppi];
  217.         var ph=stpbtx(p);
  218.         if(p.isst&&m.maln!="left")
  219.             ph="<TABLE STYLE='border:none;padding:0px;' CELLPADDING=0 CELLSPACING=0 ALIGN="+m.maln+"><TD class=st_tdcss>"+ph;
  220.         for(var iti=0;iti<p.is.length;iti++)
  221.         {
  222.             var i=p.is[iti];
  223.             var ih="";
  224.             ih+=p.pver ? "<TR ID="+i.ids+"TR>" : "";
  225.             ih+=stittx(i);
  226.             ih+=(p.pver ? "</TR>" : "");
  227.             ph+=ih;
  228.             if(i.ityp!=6)
  229.             {
  230.                 mc+="."+i.ids+"TX0{"+sttcss(i,0)+"}\n";
  231.                 mc+="."+i.ids+"TX1{"+sttcss(i,1)+"}\n";
  232.             }
  233.         }
  234.         ph+=stpetx(p);
  235.         if(p.isst&&m.maln!="left")
  236.             ph+="</TD></TABLE>";
  237.         if(p.isst||nNN4||!nDM)
  238.             mh+=ph;
  239.         else
  240.             st_ht+=ph;
  241.     }
  242.     mc+="</STYLE>";
  243.     if(!nDM||nNN4)
  244.         document.write(mc);
  245.     if(mh)
  246.         document.write(mh);
  247.     if(nDM&&!(nIEM||(nIEW&&nVER<5.0)))
  248.     {
  249.         if(st_ht)
  250.         {
  251.             var o=stgobj('st_gl'+st_gc,'font');
  252.             if(nNN6)
  253.                 o.innerHTML=st_ht;
  254.             else if(nIE&&nVER>=5.0)
  255.                 o.insertAdjacentHTML("BeforeEnd",st_ht);
  256.             else
  257.                 o.document.write(st_ht);
  258.             st_gc++;
  259.             st_ht='';
  260.         }
  261.         if(!nOP&&!nNN)
  262.             stpre(m);
  263.     }
  264.     st_cm++;st_cp=0;st_ci=0;
  265. }
  266. function stpbtx(p)
  267. {
  268.     var s="";
  269.     if(nNN4||!nDM)
  270.     {
  271.         s+=p.isst?"<ILAYER":"<LAYER";
  272.         s+=" VISIBILITY=hide";
  273.         s+=" ID="+p.ids;
  274.         s+=" Z-INDEX="+p.zind;
  275.         s+="><LAYER>";
  276.         s+="<TABLE BORDER=0 CELLSPACING=0 CELLPADDING="+p.pspc;
  277.         s+=" BACKGROUND='"+p.pbgi+"'";
  278.         s+=" BGCOLOR="+(p.pbgi||p.pbgc=="transparent"?"''":p.pbgc);
  279.         s+=">";
  280.     }
  281.     else
  282.     {
  283.         var ds="position:"+stT2P[p.ppi?1:stgme(p).mtyp]+";";
  284.         ds+="z-index:"+p.zind+";";
  285.         ds+="visibility:hidden;";
  286.         s+=st_ttb ? "<TABLE class=st_tbcss CELLPADDING=0 CELLSPACING=0" : "<DIV class=st_divcss";
  287.         s+=stppev(p);
  288.         s+=" ID="+p.ids;
  289.         s+=" STYLE='";
  290.         if(nIEM)
  291.             s+="width:1px;";
  292.         else if(nIE)
  293.             s+="width:0px;";
  294.         s+=stfcss(p);
  295.         s+=ds;
  296.         s+="'>";
  297.         if(st_ttb)
  298.             s+="<TD class=st_tdcss ID="+p.ids+"TTD>";
  299.         s+="<TABLE class=st_tbcss CELLSPACING=0 CELLPADDING=0";
  300.         s+=" ID="+p.ids+"TB";
  301.         s+=" STYLE='";
  302.         s+=stpcss(p);
  303.         if(nIEW)
  304.             s+="margin:"+p.psds+"px;";
  305.         s+="'>";
  306.     }
  307.     return s;
  308. }
  309. function stpetx(p)
  310. {
  311.     var s="</TABLE>";
  312.     if(nNN4||!nDM)
  313.         s+="</LAYER></LAYER>";
  314.     else if(st_ttb)
  315.         s+="</TD></TABLE>";
  316.     else
  317.         s+="</DIV>";
  318.     return s;
  319. }
  320. function stittx(i)
  321. {
  322.     var s="";
  323.     var p=stgpar(i);
  324.     if(nNN4||!nDM)
  325.     {
  326.         s+="<TD WIDTH=1 NOWRAP>";
  327.         s+="<FONT STYLE='font-size:1pt;'>";
  328.         s+="<ILAYER ID="+i.ids+"><LAYER";
  329.         if(i.ipbw&&i.ityp!=6)
  330.             s+=" BGCOLOR="+i.ibdc[0];
  331.         s+=">";
  332.         for(var l=0;l<(nNN4?2:1);l++)
  333.         {
  334.             if(i.ityp==6&&l)
  335.                 break;
  336.             s+="<LAYER Z-INDEX=10 VISIBILITY="+(l?"HIDE":"SHOW");
  337.             if(i.ityp!=6)
  338.             {
  339.                 s+=" LEFT="+i.ipbw+" TOP="+i.ipbw;
  340.             }
  341.             s+=">";
  342.             s+="<TABLE ALIGN=LEFT WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING="+(i.ityp==6 ? 0 : p.ppad);
  343.             s+=" BACKGROUND='"+(i.ityp!=6?i.ibgi[l]:"")+"'";
  344.             s+=" BGCOLOR="+(i.ityp!=6&&i.ibgi[l]||i.ibgc[l]=="transparent"?"''":i.ibgc[l])
  345.             s+=">";
  346.             if(i.ityp==6)
  347.             {
  348.                 s+="<TD NOWRAP VALIGN=TOP"+
  349.                     " HEIGHT="+(p.pver ? i.ssiz : "100%")+
  350.                     " WIDTH="+(p.pver ? "100%" : i.ssiz)+
  351.                     " STYLE='font-size:0pt;'"+
  352.                     ">";
  353.                 s+=stgimg(i.simg,i.ids+"LINE",i.simw,i.simh,0);
  354.                 s+="</TD>";
  355.             }
  356.             else
  357.             {
  358.                 if(p.pver&&p.plmw||!p.pver&&i.iicw)
  359.                 {
  360.                     s+="<TD ALIGN=CENTER VALIGN=MIDDLE";
  361.                     s+=stgiws(i);
  362.                     s+=">";
  363.                     s+=stgimg(i.iicn[l],"",i.iicw,i.iich,i.iicb);
  364.                     s+="</TD>";
  365.                 }
  366.                 s+="<TD WIDTH=100% NOWRAP ALIGN="+i.ihal+" VALIGN="+i.ival+">";
  367.                 s+="<A "+stgurl(i)+" CLASS='"+(i.ids+"TX"+l)+"'>";
  368.                 if(i.ityp==2)
  369.                     s+=stgimg(i.iimg[l],i.ids+"IMG",i.iimw,i.iimh,i.iimb);
  370.                 else
  371.                 {
  372.                     s+="<IMG SRC=\""+stgme(i).mbnk+"\" WIDTH=1 HEIGHT=1 BORDER=0 ALIGN=ABSMIDDLE>";
  373.                     s+=i.itex;
  374.                 }
  375.                 s+="</A>";
  376.                 s+="</TD>";
  377.                 if(p.pver&&p.prmw||!p.pver&&i.iarw)
  378.                 {
  379.                     s+="<TD ALIGN=CENTER VALIGN=MIDDLE";
  380.                     s+=stgaws(i);
  381.                     s+=">";
  382.                     s+=stgimg(i.iarr[l],"",i.iarw,i.iarh,i.iarb);
  383.                     s+="</TD>";
  384.                 }
  385.             }
  386.             s+="</TABLE>";
  387.             if(i.ipbw&&i.ityp!=6)
  388.                 s+="<BR CLEAR=ALL><SPACER HEIGHT=1 WIDTH="+i.ipbw+"></SPACER><SPACER WIDTH=1 HEIGHT="+i.ipbw+"></SPACER>";
  389.             s+="</LAYER>";
  390.         }
  391.         if(i.ityp!=6)
  392.             s+="<LAYER Z-INDEX=20></LAYER>";
  393.         s+="</LAYER></ILAYER>"
  394.         s+="</FONT>";
  395.         s+="</TD>";
  396.     }
  397.     else
  398.     {
  399.         s+="<TD class=st_tdcss NOWRAP VALIGN="+(nIE ? "MIDDLE" : "TOP");
  400.         s+=" STYLE='"
  401.             s+="padding:"+p.pspc+"px;";
  402.         s+="'";
  403.         s+=" ID="+p.ids+i.iti;
  404.         if(nIEW)
  405.             s+=" HEIGHT=100%";
  406.         s+=">";
  407.         if(!nOP&&!nIE)
  408.         {
  409.             s+="<DIV class=st_divcss ID="+i.ids;
  410.             s+=stitev(i);
  411.             s+=" STYLE=\""+sticss(i,0);
  412.             s+="\"";
  413.             s+=">";
  414.         }
  415.         s+="<TABLE class=st_tbcss CELLSPACING=0 CELLPADDING=0";
  416.         if(!nOP)
  417.             s+=" HEIGHT=100%";
  418.         s+=" STYLE=\"";
  419.         if(nOP||nIE)
  420.             s+=sticss(i,0);
  421.         s+="\"";
  422.         if(nOP||nIE)
  423.             s+=stitev(i);
  424.         if(p.pver||nIEM)
  425.             s+=" WIDTH=100%";
  426.         s+=" ID="+(nOP||nIE ? i.ids : (i.ids+"TB"));
  427.         if(!nOP)
  428.             s+=" TITLE="+stquo(i.ityp!=6 ? i.itip : "");
  429.         s+=">";
  430.         if(i.ityp==6)
  431.         {
  432.             s+="<TD class=st_tdcss NOWRAP VALIGN=TOP"+
  433.                 " ID="+i.ids+"MTD"+
  434.                 " HEIGHT="+(p.pver ? i.ssiz : "100%")+
  435.                 " WIDTH="+(p.pver ? "100%" : i.ssiz)+
  436.                 ">";
  437.             s+=stgimg(i.simg,i.ids+"LINE",i.simw,i.simh,0);
  438.             s+="</TD>";
  439.         }
  440.         else
  441.         {
  442.             if(p.pver&&p.plmw||!p.pver&&i.iicw)
  443.             {
  444.                 s+="<TD class=st_tdcss NOWRAP ALIGN=CENTER VALIGN=MIDDLE HEIGHT=100%";
  445.                 s+=" STYLE=\"padding:"+p.ppad+"px\"";
  446.                 s+=" ID="+i.ids+"LTD";
  447.                 s+=stgiws(i);
  448.                 s+=">";
  449.                 s+=stgimg(i.iicn[0],i.ids+"ICON",i.iicw,i.iich,i.iicb);
  450.                 s+="</TD>";
  451.             }
  452.             s+="<TD class=st_tdcss NOWRAP HEIGHT=100% STYLE=\"";
  453.             s+="color:"+i.itxc[0]+";";
  454.             s+="padding:"+p.ppad+"px;";
  455.             s+="\"";
  456.             s+=" ID="+i.ids+"MTD";
  457.             s+=" ALIGN="+i.ihal;
  458.             s+=" VALIGN="+i.ival+">";
  459.             s+="<FONT class=st_ftcss ID="+i.ids+"TX STYLE=\""+sttcss(i,0)+"\">";
  460.             if(i.ityp==2)
  461.                 s+=stgimg(i.iimg[0],i.ids+"IMG",i.iimw,i.iimh,i.iimb);
  462.             else
  463.                 s+=i.itex;
  464.             s+="</FONT>";
  465.             s+="</TD>";
  466.             if(p.pver&&p.prmw||!p.pver&&i.iarw)
  467.             {
  468.                 s+="<TD class=st_tdcss NOWRAP ALIGN=CENTER VALIGN=MIDDLE HEIGHT=100%";
  469.                 s+=" STYLE=\"padding:"+p.ppad+"px\"";
  470.                 s+=" ID="+i.ids+"RTD";
  471.                 s+=stgaws(i);
  472.                 s+=">";
  473.                 s+=stgimg(i.iarr[0],i.ids+"ARROW",i.iarw,i.iarh,i.iarb);
  474.                 s+="</TD>";
  475.             }
  476.         }
  477.         s+="</TABLE>";
  478.         if(!nOP&&!nIE)
  479.             s+="</DIV>";
  480.         s+="</TD>";
  481.     }
  482.     return s;
  483. }
  484. function stpcss(p)
  485. {
  486.     var s="";
  487.     s+="border-style:"+p.pbds+";";
  488.     s+="border-width:"+p.ipbw+"px;";
  489.     s+="border-color:"+p.pbdc+";";
  490.     if(nIE)
  491.         s+="background:"+p.pbgd+";";
  492.     else
  493.     {
  494.         s+="background-color:"+(p.pbgc)+";";
  495.         if(p.pbgi)
  496.         {
  497.             s+="background-image:url("+p.pbgi+");";
  498.             s+="background-repeat:"+p.pbgr+";";
  499.         }
  500.     }
  501.     return s;
  502. }
  503. function stfcss(p)
  504. {
  505.     var s="";
  506.     if(nIEW&&(nVER>=5.0||!p.isst))
  507.     {
  508.         var dx=nVER>=5.5?"progid:DXImageTransform.Microsoft." : "";
  509.         s+="filter:";
  510.         if(nVER>=5.5)
  511.         {
  512.             if(p.pesh!="Normal")
  513.                 s+=p.pesh+" ";
  514.         }
  515.         else
  516.         {
  517.             if(p.pesi<24&&p.pesi>=0)
  518.                 s+="revealTrans(Transition="+p.pesi+",Duration="+((110-p.pesp)/100)+") ";
  519.         }
  520.         s+=dx+"Alpha(opacity="+p.popc+") ";
  521.         if(p.psds)
  522.         {
  523.             if(p.pstp==1)
  524.                 s+=dx+"dropshadow(color="+p.pscl+",offx="+p.psds+",offy="+p.psds+",positive=1) ";
  525.             else
  526.                 s+=dx+"Shadow(color="+p.pscl+",direction=135,strength="+p.psds+") ";
  527.         }
  528.         if(nVER>=5.5)
  529.         {
  530.             if(p.pehd!="Normal")
  531.                 s+=p.pehd+" ";
  532.         }
  533.         else
  534.         {
  535.             if(p.pehi<24&&p.pehi>=0)
  536.                 s+="revealTrans(Transition="+p.pehi+",Duration="+((110-p.pesp)/100)+") ";
  537.         }
  538.         s+=";";
  539.     }
  540.     return s;
  541. }
  542. function sticss(i,n)
  543. {
  544.     var s="";
  545.     if(i.ityp!=6)
  546.     {
  547.         s+="border-style:"+i.ibds+";";
  548.         s+="border-width:"+i.ipbw+"px;";
  549.         s+="border-color:"+i.ibdc[n]+";";
  550.         if(!nIEM&&i.ibgi[n])
  551.         {
  552.             s+="background-image:url("+i.ibgi[n]+");";
  553.             s+="background-repeat:"+i.ibgr[n]+";";
  554.         }
  555.     }
  556.     if(nIEM&&i.ityp!=6)
  557.         s+="background:"+i.ibgd[n]+";";
  558.     else
  559.         s+="background-color:"+i.ibgc[n]+";";
  560.     s+="cursor:"+stgcur(i)+";";
  561.     return s;
  562. }
  563. function sttcss(i,n)
  564. {
  565.     var s="";
  566.     s+="cursor:"+stgcur(i)+";";
  567.     s+="font:"+i.itxf[n]+";";
  568.     s+="text-decoration:"+i.itxd[n]+";";
  569.     if(!nDM||nNN4)
  570.         s+="background-color:transparent;color:"+i.itxc[n];
  571.     return s;
  572. }
  573. function stitov(e,o,i)
  574. {
  575.     if(nIEW)
  576.     {
  577.         if(!i.layer)
  578.             i.layer=o;
  579.         if(!stgpar(i).issh||(e.fromElement&&o.contains(e.fromElement)))
  580.             return;
  581.     }
  582.     else
  583.     {
  584.         if(!stgpar(i).issh||(!nNN&&(e.fromElement&&e.fromElement.id&&e.fromElement.id.indexOf(i.ids)>=0)))
  585.             return;
  586.     }
  587.     if(nNN4)
  588.         stglay(i).document.layers[0].captureEvents(Event.CLICK);
  589.     var m=stgme(i);
  590.     if(!i.ppi&&m.mcff)
  591.         stfrm(m);
  592.     var w=m.sfrm;
  593.     if(w!=window)
  594.         m=w.stmenu(m.mnam);
  595.     if(m.hdid)
  596.     {
  597.         w.clearTimeout(m.hdid);
  598.         m.hdid=null;
  599.     }
  600.     var cii=stgpar(i).citi;
  601.     var ci=null;
  602.     if(cii>=0)
  603.         ci=stgpar(i).is[cii];
  604.     var p=stgpar(i);
  605.     if(!p.isck||stgme(i).cked)
  606.     {
  607.         if(p.citi!=i.iti)
  608.         {
  609.             if(p.citi>=0)
  610.             {
  611.                 sthdit(p.is[p.citi]);
  612.                 p.citi=-1;
  613.             }
  614.             *plum*(i);
  615.             p.citi=i.iti;
  616.         }
  617.         else
  618.         {
  619.             var p=stgtsub(i);
  620.             if(p&&!p.issh)
  621.                 *plum*(i);
  622.         }
  623.     }
  624.     if(i.istt)
  625.         window.status=i.istt;
  626. }
  627. function stitou(e,o,i)
  628. {
  629.     if(nIEW)
  630.     {
  631.         if(!stgpar(i).issh||e.toElement&&o.contains(e.toElement))
  632.             return;
  633.     }
  634.     else
  635.     {
  636.         if(!stgpar(i).issh||(!nNN&&(e.toElement&&e.toElement.id&&e.toElement.id.indexOf(i.ids)>=0)))
  637.             return;
  638.     }
  639.     if(nNN4)
  640.         stglay(i).document.layers[0].releaseEvents(Event.CLICK);
  641.     var p=stgtsub(i);
  642.     if(!p||!p.issh)
  643.     {
  644.         stshst(i,0);
  645.         stgpar(i).citi=-1;
  646.     }
  647.     else if(p&&p.issh&&!p.exed)
  648.         sthdit(i);
  649.     window.status="";
  650. }
  651. function stitck(e,o,i)
  652. {
  653.     if(e.button&&e.button>=2)
  654.         return;
  655.     var m=stgme(i);
  656.     var p=stgpar(i);
  657.     if(p.isck)
  658.     {
  659.         m.cked=!m.cked;
  660.         if(m.cked)
  661.         {
  662.             *plum*(i);
  663.             p.citi=i.iti;
  664.         }
  665.         else
  666.         {
  667.             sthdit(i);
  668.             p.citi=-1;
  669.         }
  670.     }
  671.     if(!nNN4&&!(p.isck&&stgsub(i))&&i.iurl)
  672.     {
  673.         if(i.iurl.toLowerCase().indexOf("javascript:")==0)
  674.             eval(i.iurl.substring(11,i.iurl.length));
  675.         else if(i.itgt=="_self")
  676.             window.location.href=i.iurl;
  677.         else if(i.itgt=="_parent")
  678.             window.parent.location.href=i.iurl;
  679.         else if(i.itgt=="_top")
  680.             window.top.location.href=i.iurl;
  681.         else
  682.         {
  683.             for(var co=window;co!=co.parent;co=co.parent)
  684.             {
  685.                 if(typeof(co.parent.frames[i.itgt])!="undefined")
  686.                 {
  687.                     co.parent.frames[i.itgt].location.href=i.iurl;
  688.                     return;
  689.                 }
  690.             }
  691.             window.open(i.iurl,i.itgt);
  692.         }
  693.     }
  694. }
  695. function stppov(e,o,p)
  696. {
  697.     if(nIEW)
  698.     {
  699.         if(!p.layer)
  700.             p.layer=o;
  701.         if(!p.issh||(e.fromElement&&o.contains(e.fromElement)))
  702.             return;
  703.     }
  704.     else
  705.     {
  706.         if(!p.issh||(!nNN&&(e.fromElement&&e.fromElement.id&&e.fromElement.id.indexOf(p.ids)>=0)))
  707.             return;
  708.     }
  709.     var m=stgme(p);
  710.     var w=m.sfrm;
  711.     if(w!=window)
  712.         m=w.stmenu(m.mnam);
  713.     if(m.hdid)
  714.     {
  715.         w.clearTimeout(m.hdid);
  716.         m.hdid=null;
  717.     }
  718. }
  719. function stppou(e,o,p)
  720. {
  721.     if(nIEW)
  722.     {
  723.         if(!p.issh||(e.toElement&&o.contains(e.toElement)))
  724.             return;
  725.     }
  726.     else
  727.     {
  728.         if(!p.issh||(!nNN&&(e.toElement&&e.toElement.id&&e.toElement.id.indexOf(p.ids)>=0)))
  729.             return;
  730.     }
  731.     var m=stgme(p);
  732.     var w=m.sfrm;
  733.     if(w!=window)
  734.         m=w.stmenu(m.mnam);
  735.     if(m.hdid)
  736.         w.clearTimeout(m.hdid);
  737.     m.hdid=w.setTimeout("sthdall(st_ms['"+m.mei+"'],0);",m.mhdd);
  738. }
  739. function stshst(i,n)
  740. {
  741.     if(nNN4)
  742.     {
  743.         var ls=stgstlay(i);
  744.         ls[n].parentLayer.bgColor=i.ibdc[n];
  745.         ls[n].visibility="show";
  746.         ls[1-n].visibility="hide";
  747.     }
  748.     else
  749.     {
  750.         var os=stglay(i).style;
  751.         if(nIEM)
  752.         {
  753.             if(i.ibgd[0]!=i.ibgd[1])    os.background=i.ibgd[n];
  754.         }
  755.         else
  756.         {
  757.             if(i.ibgc[0]!=i.ibgc[1])
  758.             {
  759.                 if(nOP&&nVER<6)
  760.                     os.background=i.ibgc[n];
  761.                 else
  762.                     os.backgroundColor=i.ibgc[n];
  763.             }
  764.             if(i.ibgi[0]!=i.ibgi[1])    os.backgroundImage="url("+(i.ibgi[n]?i.ibgi[n]:stgme(i).mbnk)+")";
  765.             if(i.ibgr[0]!=i.ibgr[1])    os.backgroundRepeat=i.ibgr[n];
  766.         }
  767.         if(i.ibdc[0]!=i.ibdc[1])    os.borderColor=i.ibdc[n];
  768.         var t;
  769.         if(i.iicn[0]!=i.iicn[1])
  770.         {
  771.             t=stgobj(i.ids+'ICON','IMG');
  772.             if(t)    t.src=i.iicn[n];
  773.         }
  774.         if(i.iarr[0]!=i.iarr[1])
  775.         {
  776.             t=stgobj(i.ids+'ARROW','IMG');
  777.             if(t)    t.src=i.iarr[n];
  778.         }
  779.         if(i.ityp==2&&i.iimg[0]!=i.iimg[1])
  780.         {
  781.             t=stgobj(i.ids+'IMG','IMG');
  782.             if(t)    t.src=i.iimg[n];
  783.         }
  784.         if (!i.txstyle)    i.txstyle=stgobj(i.ids+"TX",'FONT').style;
  785.         t=i.txstyle;
  786.         if(i.itxf[0]!=i.itxf[1])
  787.             t.font=i.itxf[n];
  788.         if(i.itxd[0]!=i.itxd[1])
  789.             t.textDecoration=i.itxd[n];
  790.         if(nOP)    stgobj(i.ids+'MTD','td').style.color=i.itxc[n];
  791.         else    t.color=i.itxc[n];
  792.     }
  793. }
  794. function stshpp(p)
  795. {
  796.     stshow(p);
  797. }
  798. function sthdpp(p)
  799. {
  800.     if(p.citi>=0)
  801.     {
  802.         var t=stgsub(p.is[p.citi]);
  803.         if(t&&t.issh)
  804.             sthdpp(t);
  805.         stshst(p.is[p.citi],0);
  806.         p.citi=-1;
  807.     }
  808.     sthide(p);
  809. }
  810. function *plum*(i)
  811. {
  812.     var w=stgme(i).tfrm;
  813.     var p=stgtsub(i);
  814.     if(p&&!p.issh)
  815.         w.stshpp(p);
  816.     stshst(i,1);
  817. }
  818. function sthdit(i)
  819. {
  820.     var w=stgme(i).tfrm;
  821.     var p=stgtsub(i);
  822.     if(p&&p.issh)
  823.         w.sthdpp(p);
  824.     stshst(i,0);
  825. }
  826. function stshow(p)
  827. {
  828.     var d=p.ppi&&stgpar(stgpar(p)).pver ? stgme(p).msdv : stgme(p).msdh;
  829.     p.exed=0;
  830.     if(!p.rc)
  831.         stgxy(p);
  832.     if(p.tmid)
  833.     {
  834.         clearTimeout(p.tmid);
  835.         p.tmid=null;
  836.         stwels(1,p)
  837.     }
  838.     if(d>0)
  839.         p.tmid=setTimeout(stsdstr(p,1),d);
  840.     p.issh=1;
  841.     if(d<=0)
  842.         eval(stsdstr(p,1));
  843. }
  844. function sthide(p)
  845. {
  846.     if(p.tmid)
  847.     {
  848.         clearTimeout(p.tmid);
  849.         p.tmid=null;
  850.     }
  851.     if(p.issh&&!p.exed)
  852.     {
  853.         p.exed=0;
  854.         p.issh=0;
  855.     }
  856.     else
  857.     {
  858.         p.exed=0;
  859.         p.issh=0;
  860.         eval(stsdstr(p,0));
  861.     }
  862. }
  863. function stshx(p)
  864. {
  865.     var ly=stglay(p);
  866.     if(nNN4)
  867.     {
  868.         ly.visibility='show';
  869.         if(!p.fixed)
  870.         {
  871.             ly.resizeBy(p.ipbw*2,p.ipbw*2);
  872.             ly=ly.document.layers[0];
  873.             ly.moveTo(p.ipbw,p.ipbw);
  874.             ly.onmouseover=stppovn;
  875.             ly.onmouseout=stppoun;
  876.             for(var l=p.is.length-1;l>=0;l--)
  877.             {
  878.                 var i=p.is[l];
  879.                 if(i.ityp!=6)
  880.                 {
  881.                     var ls=stgstlay(i);
  882.                     ls[2].resizeTo(ls[0].parentLayer.clip.width,ls[0].parentLayer.clip.height);
  883.                     if(stgcur(i)=="hand")
  884.                     {
  885.                         with(ls[2].document)
  886.                         {
  887.                             open();
  888.                             write("<A "+stgurl(i)+"\"><IMG BORDER=0 SRC='"+stgme(i).mbnk+"' WIDTH="+ls[2].clip.width+" HEIGHT="+ls[2].clip.height+"></A>");
  889.                             close();
  890.                         }
  891.                     }
  892.                     ls[0].resizeBy(-i.ipbw,-i.ipbw);
  893.                     ls[1].resizeBy(-i.ipbw,-i.ipbw);
  894.                     ly=stglay(i).document.layers[0];
  895.                     ly.onmouseover=stitovn;
  896.                     ly.onmouseout=stitoun;
  897.                     ly.onclick=stitckn;
  898.                 }
  899.             }
  900.             if(p.ipbw)
  901.                 setTimeout("var pp=st_ms["+p.mei+"].ps["+p.ppi+"];stglay(pp).bgColor=pp.pbdc;",1);
  902.             p.fixed=1;
  903.         }
  904.     }
  905.     else
  906.     {
  907.         ly.style.visibility='visible';
  908.         if(nIE5)
  909.             ly.filters['Alpha'].opacity=p.popc;
  910.             if(moz)
  911.             ly.filters['Alpha'].opacity=p.popc;
  912.             
  913.     }
  914. }
  915. function sthdx(p)
  916. {
  917.     var ly=stglay(p);
  918.     if(nNN4)
  919.         ly.visibility='hide';
  920.     else
  921.     {
  922.         if(nIE5)
  923.             ly.filters['Alpha'].opacity=0;
  924.         ly.style.visibility='hidden';
  925.     }
  926. }
  927. function sthdall(m,f)
  928. {
  929.     var w=m.sfrm;
  930.     var s=w==window?m:w.stmenu(m.mnam);
  931.     s.cked=0;
  932.     var p=s.ps[0];
  933.     if(p.issh)
  934.     {
  935.         if(p.citi>=0)
  936.         {
  937.             w.sthdit(p.is[p.citi]);
  938.             p.citi=-1;
  939.         }
  940.         if(s.mtyp==2&&f)
  941.             w.sthide(p);
  942.     }
  943.     s.hdid=null;
  944. }
  945. function stnmsh(p)
  946. {
  947.     stmvto(stgxy(p),p);
  948.     stwels(-1,p);
  949.     stshx(p);
  950. }
  951. function stnmhd(p)
  952. {
  953.     sthdx(p);
  954.     stwels(1,p);
  955. }
  956. function stftsh(p)
  957. {
  958.     if(nVER<5.5)
  959.         stshfx(p);
  960.     else if(st_reg)
  961.         eval("try{stshfx(p);} catch(er){st_reg=0;stnmsh(p);}");
  962.     else
  963.         stnmsh(p);
  964. }
  965. function stfthd(p)
  966. {
  967.     if(nVER<5.5)
  968.         sthdfx(p);
  969.     else if(st_reg)
  970.         eval("try{sthdfx(p);}catch(er){st_reg=0;stnmhd(p);}");
  971.     else
  972.         stnmhd(p);
  973. }
  974. function stshfx(p)
  975. {
  976.     var t=stglay(p).filters[0];
  977.     if(nVER>=5.5)
  978.         t.enabled=1;
  979.     if(t.Status!=0)
  980.         t.stop();
  981.     stmvto(stgxy(p),p);
  982.     stwels(-1,p);
  983.     t.apply();
  984.     stshx(p);
  985.     t.play();
  986. }
  987. function sthdfx(p)
  988. {
  989.     var t=stglay(p).filters[stglay(p).filters.length-1];
  990.     if(nVER>=5.5)
  991.         t.enabled=1;
  992.     if(t.Status!=0)
  993.         t.stop();
  994.     t.apply();
  995.     sthdx(p);
  996.     stwels(1,p);
  997.     t.play();
  998. }
  999. function ststxy(m,xy)
  1000. {
  1001.     m.mcox=xy[0];
  1002.     m.mcoy=xy[1];
  1003. }
  1004. function stnav()
  1005. {
  1006.     var v=navigator.appVersion;
  1007.     var a=navigator.userAgent;
  1008.     nMAC=v.indexOf("Mac")>=0;
  1009.     nOP=a.indexOf("Opera")>=0;
  1010.     if(nOP)
  1011.     {
  1012.         nVER=parseFloat(a.substring(a.indexOf("Opera ")+6,a.length));
  1013.         nOP5=nVER>=5.12&&!nMAC&&a.indexOf("MSIE 5.0")>=0;
  1014.         if(nVER>=7)    nOP5=1;
  1015.     }
  1016.     else
  1017.     {
  1018.         nIE=document.all ? 1 : 0;
  1019.         if(nIE)
  1020.         {
  1021.             nIE4=(eval(v.substring(0,1)>=4));
  1022.             nVER=parseFloat(a.substring(a.indexOf("MSIE ")+5,a.length));
  1023.             nIE5=nVER>=5.0&&nVER<5.5&&!nMAC;
  1024.             nIEM=nIE4&&nMAC;
  1025.             nIEW=nIE4&&!nMAC;
  1026.         }
  1027.         else
  1028.         {
  1029.             nNN4=navigator.appName.toLowerCase()=="netscape"&&v.substring(0,1)=="4" ? 1 : 0;
  1030.             if(!nNN4)
  1031.             {
  1032.                 nNN6=(document.getElementsByTagName("*") && a.indexOf("Gecko")!=-1);
  1033.                 if(nNN6)
  1034.                 {
  1035.                     nVER=parseInt(navigator.productSub);
  1036.                     if(a.indexOf("Netscape")>=0)
  1037.                     {
  1038.                         st_delb=nVER<20001108+1;
  1039.                         st_addb=nVER>20020512-1;
  1040.                     }
  1041.                     else
  1042.                     {
  1043.                         st_delb=nVER<20010628+1;
  1044.                         st_addb=nVER>20011221-1;
  1045.                     }
  1046.                 }
  1047.             }
  1048.             else
  1049.                 nVER=parseFloat(v);
  1050.             nNN=nNN4||nNN6;
  1051.         }
  1052.     }
  1053.     nDM=nOP5||nIE4||nNN;
  1054. }
  1055. function stckpg()
  1056. {
  1057.     var w=st_cw;
  1058.     var h=st_ch;
  1059.     var l=st_cl;
  1060.     var t=st_ct;
  1061.     st_cw=stgcw();
  1062.     st_ch=stgch();
  1063.     st_cl=stgcl();
  1064.     st_ct=stgct();
  1065.     if(((nOP&&nVER<7.0)||nNN4)&&(st_cw-w||st_ch-h))
  1066.         document.location.reload();
  1067.     else if(st_cl-l||st_ct-t)
  1068.         stscr();
  1069. }
  1070. function st_onload()
  1071. {
  1072.     if(nIEM||nOP5||nNN||(nIEW&&nVER<5.0))
  1073.     {
  1074.         if(st_ht)
  1075.             document.body.insertAdjacentHTML('BeforeEnd',st_ht);
  1076.         for(i=0;i<st_ms.length;i++)
  1077.             stpre(st_ms[i]);
  1078.     }
  1079.     st_load=1;
  1080.     if(!nNN4)
  1081.     {
  1082.         for(var i=0;i<st_ms.length;i++)
  1083.         {
  1084.             var m=st_ms[i];
  1085.             for(var j=0;j<m.ps.length;j++)
  1086.             {
  1087.                 var p=m.ps[j];
  1088.                 if(p.issh&&p.exed)
  1089.                     stwels(-1,p);
  1090.             }
  1091.         }
  1092.     }
  1093. }
  1094. function stpre(m)
  1095. {
  1096.     var p=m.ps[m.ps.length-1];
  1097.     var i=p.is[p.is.length-1];
  1098.     while(1)
  1099.         if(stglay(i)) break;
  1100.     if(!nNN4)
  1101.         stfix(m);
  1102.     if(m.mtyp!=2)
  1103.         stshow(m.ps[0]);
  1104.     if(nIE||nNN6)
  1105.         window.onscroll=new Function("if(st_scr)clearTimeout(st_scr);st_scr=setTimeout('stscr();',nIEM ?500:0);");
  1106.     else if(!st_rl)
  1107.     {
  1108.         st_cw=stgcw();
  1109.         st_ch=stgch();
  1110.         st_cl=stgcl();
  1111.         st_ct=stgct();
  1112.         st_rl=setInterval("stckpg();",500);
  1113.     }
  1114.     m.ready=1;
  1115. }
  1116. function stfix(m)
  1117. {
  1118.     for(var l=0;l<m.ps.length;l++)
  1119.     {
  1120.         var p=m.ps[l];
  1121.         if(nOP&&nVER<6.0)
  1122.             stglay(p).style.pixelWidth=parseInt(stgobj(p.ids+"TB",'table').style.pixelWidth);
  1123.         if(nIE5)
  1124.             stglay(p).style.width=stglay(p).offsetWidth;
  1125.         else if(nIEM||!nIE)
  1126.         {
  1127.             if(!p.pver)
  1128.             {
  1129.                 var ii=0;
  1130.                 var fi=stgobj(p.ids+ii);
  1131.                 var h=parseInt(nOP ? fi.style.pixelHeight : fi.offsetHeight);
  1132.                 if(h)
  1133.                 {
  1134.                     for(ii=0;ii<p.is.length;ii++)
  1135.                     {
  1136.                         var i=p.is[ii];
  1137.                         var lys=stglay(i).style;
  1138.                         var th=h-2*p.pspc;
  1139.                         if(nOP)
  1140.                             lys.pixelHeight=th;
  1141.                         else if(i.ityp==6||nIE)
  1142.                             lys.height=th+'px';
  1143.                         else
  1144.                             lys.height=th-2*i.ipbw+'px';
  1145.                         if(nIEM)
  1146.                         {
  1147.                             var fh=h-2*p.pspc;
  1148.                             var lt=stgobj(i.ids+"LTD");
  1149.                             var rt=stgobj(i.ids+"RTD");
  1150.                             if(lt)
  1151.                                 lt.style.height=fh+'px';
  1152.                             stgobj(i.ids+"MTD").style.height=fh+'px';
  1153.                             if(rt)
  1154.                                 rt.style.height=fh+'px';
  1155.                         }
  1156.                     }
  1157.                 }
  1158.             }
  1159.             else if(nOP)
  1160.             {
  1161.                 for(var ii=0;ii<p.is.length;ii++)
  1162.                 {
  1163.                     var i=p.is[ii];
  1164.                     if(i.ityp!=6)
  1165.                     {
  1166.                         var fi=stgobj(p.ids+ii);
  1167.                         var it=stglay(i);
  1168.                         var w=parseInt(fi.style.pixelWidth);
  1169.                         var h=parseInt(it.style.pixelHeight);
  1170.                         if(w)
  1171.                             it.style.pixelWidth=w-2*p.pspc;
  1172.                         if(h)
  1173.                             it.style.pixelHeight=h;
  1174.                     }
  1175.                 }
  1176.             }
  1177.         }
  1178.     }
  1179. }
  1180. function stscr()
  1181. {
  1182.     for(var l=0;l<st_ms.length;l++)
  1183.     {
  1184.         var m=st_ms[l];
  1185.         if(m)
  1186.         {
  1187.             sthdall(m,0);
  1188.             if(m.mtyp==1)
  1189.             {
  1190.                 var p=m.ps[0];
  1191.                 stwels(1,p);
  1192.                 stmvto(stgxy(m.ps[0]),p);
  1193.                 stwels(-1,p);
  1194.             }
  1195.         }
  1196.     }
  1197. }
  1198. function stwels(c,p)
  1199. {
  1200.     var m=stgme(p);
  1201.     if(!st_load||nNN4||nOP||p.isst)    return;
  1202.     if(m.mhds&&!nNN6)    stwtag("SELECT",c,p);
  1203.     if(m.mhdo)    stwtag("OBJECT",c,p);
  1204.     if(m.mhdi&&!nNN6&&!(nIEW&&nVER>=5.5))    stwtag("IFRAME",c,p);
  1205. }
  1206. function stwtag(tg,c,o)
  1207. {
  1208.     var es=nNN6 ? document.getElementsByTagName(tg) : document.all.tags(tg);
  1209.     var l;
  1210.     for(l=0;l<es.length;l++)
  1211.     {
  1212.         var e=es.item(l);
  1213.         var f=0;
  1214.         for(var t=e.offsetParent;t;t=t.offsetParent)
  1215.             if(t.id&&t.id.indexOf("Stm")>=0)
  1216.                 f=1;
  1217.         if(f)
  1218.             continue;
  1219.         else if(stwover(e,o))
  1220.         {
  1221.             if(e.visLevel)
  1222.                 e.visLevel+=c;
  1223.             else
  1224.                 e.visLevel=c;
  1225.             if(e.visLevel==-1)
  1226.             {
  1227.                 if(typeof(e.visSave)=='undefined')
  1228.                     e.visSave=e.style.visibility;
  1229.                 e.style.visibility="hidden";
  1230.             }
  1231.             else if(e.visLevel==0)
  1232.                 e.style.visibility=e.visSave;
  1233.         }
  1234.     }
  1235. }
  1236. function stmvto(xy,p)
  1237. {
  1238.     if(xy&&(p.ppi||stgme(p).mtyp!=0))
  1239.     {
  1240.         var l=stglay(p);
  1241.         if(nNN4)
  1242.             l.moveToAbsolute(xy[0],xy[1]);
  1243.         else if(nOP)
  1244.         {
  1245.             var ls=l.style;
  1246.             ls.pixelLeft=xy[0];
  1247.             ls.pixelTop=xy[1];
  1248.         }
  1249.         else
  1250.         {
  1251.             var ls=l.style;
  1252.             ls.left=xy[0]+'px';
  1253.             ls.top=xy[1]+'px';
  1254.         }
  1255.         p.rc=[xy[0],xy[1],p.rc[2],p.rc[3]];
  1256.     }
  1257. }
  1258. function stsdstr(p,iss)
  1259. {
  1260.     return    "var pp=st_ms["+p.mei+"].ps["+p.ppi+"];pp.tmid=null;"+(iss? p.efsh+"sh(" : p.efhd+"hd(")+"pp);pp.exed=1;"
  1261. }
  1262. function stwover(e,o)
  1263. {
  1264.     var l=0;
  1265.     var t=0;
  1266.     var w=e.offsetWidth;
  1267.     var h=e.offsetHeight;
  1268.     if(w)
  1269.         e._wd=w;
  1270.     else
  1271.         w=e._wd;
  1272.     if(h)
  1273.         e._ht=h;
  1274.     else
  1275.         h=e._ht;
  1276.     while(e)
  1277.     {
  1278.         l+=e.offsetLeft;
  1279.         t+=e.offsetTop;
  1280.         e=e.offsetParent;
  1281.     }
  1282.     return ((l<o.rc[2]+o.rc[0]) && (l+w>o.rc[0]) && (t<o.rc[3]+o.rc[1]) && (t+h>o.rc[1]));
  1283. }
  1284. function stevfn(pr,isi)
  1285. {
  1286.     var s=isi ? 'st_ri' : 'st_rp';
  1287.     s+='.exec(this.parentLayer.id);mei=RegExp.$1;ppi=parseInt(RegExp.$2);';
  1288.     if(isi)    s+='iti=parseInt(RegExp.$3);return '+pr+'(e,this,st_ms[mei].ps[ppi].is[iti]);';
  1289.     else    s+='return '+pr+'(e,this,st_ms[mei].ps[ppi]);';
  1290.     return new Function('e',s);
  1291. }
  1292. function stppev(p)
  1293. {
  1294.     var s=" onMouseOver='stppov(event,this,st_ms["+p.mei+"].ps["+p.ppi+"]);'";
  1295.     s+=" onMouseOut='stppou(event,this,st_ms["+p.mei+"].ps["+p.ppi+"]);'";
  1296.     return s;
  1297. }
  1298. function stitev(i)
  1299. {
  1300.     if(i.ityp==6)    return '';
  1301.     var s=" onMouseOver='stitov(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
  1302.     s+=" onMouseOut='stitou(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
  1303.     s+=" onClick='stitck(event,this,st_ms["+i.mei+"].ps["+i.ppi+"].is["+i.iti+"]);'";
  1304.     return s;
  1305. }
  1306. function stquo(n)
  1307. {
  1308.     return "\""+n+"\"";
  1309. }
  1310. function stgurl(i)
  1311. {
  1312.     return " HREF=" + stquo(i.iurl=="" ? "#" : i.iurl.replace(new RegExp("\"","g"),"&quot;")) + " TARGET=" + stquo(i.iurl==""||i.iurl.toLowerCase().indexOf('javascript:')==0 ? "_self" : i.itgt);
  1313. }
  1314. function stgdec(v)
  1315. {
  1316.     if(v)
  1317.     {
  1318.         var s='';
  1319.         if(v&1)
  1320.             s+='underline ';
  1321.         if(v&2)
  1322.             s+='line-through ';
  1323.         if(v&4)
  1324.             s+='overline';
  1325.         return s;
  1326.     }
  1327.     else
  1328.         return 'none';
  1329. }
  1330. function stgimg(src,id,w,h,b)
  1331. {
  1332.     var s='<IMG SRC=';
  1333.     s+=stquo(src);
  1334.     if(id)
  1335.         s+=' ID='+id;
  1336.     if(w>0)
  1337.         s+=' WIDTH='+w;
  1338.     else if(nNN)
  1339.         s+=' WIDTH=0';
  1340.     if(h>0)
  1341.         s+=' HEIGHT='+h;
  1342.     else if(nNN)
  1343.         s+=' HEIGHT=0';
  1344.     s+=' BORDER='+b+'>';
  1345.     return s;
  1346. }
  1347. function stgbg(c,im,r)
  1348. {
  1349.     var s=c;
  1350.     if(im)
  1351.         s+=" url("+im+") "+r;
  1352.     return s;
  1353. }
  1354. function stgcur(i)
  1355. {
  1356.     if(nNN6)
  1357.         return "default";
  1358.     return i.ityp!=6&&((i.ppi==0&&stgme(i).mcks&&stgsub(i))||i.iurl) ? "hand" : "default";
  1359. }
  1360. function stgiws(o)
  1361. {
  1362.     if(stgpar(o).pver)
  1363.         return stgpar(o).plmw>0 ? " WIDTH="+(stgpar(o).plmw+2) : "";
  1364.     else
  1365.         return o.iicw>0 ? " WIDTH="+(o.iicw+2) : "";
  1366. }
  1367. function stgaws(o)
  1368. {
  1369.     if(stgpar(o).pver)
  1370.         return stgpar(o).prmw>0 ? " WIDTH="+(stgpar(o).prmw+2) : "";
  1371.     else
  1372.         return o.iarw>0 ? " WIDTH="+(o.iarw+2) : "";
  1373. }
  1374. function stgme(ip)
  1375. {
  1376.     return st_ms[ip.mei];
  1377. }
  1378. function stgpar(ip)
  1379. {
  1380.     if(typeof(ip.iti)!="undefined")
  1381.         return st_ms[ip.mei].ps[ip.ppi];
  1382.     else
  1383.         return !ip.par ? null : st_ms[ip.par[0]].ps[ip.par[1]].is[ip.par[2]];
  1384. }
  1385. function stgsub(i)
  1386. {
  1387.     return !i.sub ? null : st_ms[i.sub[0]].ps[i.sub[1]];
  1388. }
  1389. function stgcl()
  1390. {
  1391.     return parseInt(nNN||nOP ? window.pageXOffset : document.body.scrollLeft);
  1392. }
  1393. function stgct()
  1394. {
  1395.     return parseInt(nNN||nOP ? window.pageYOffset : document.body.scrollTop);
  1396. }
  1397. function stgcw()
  1398. {
  1399.     return parseInt(nNN||nOP ? window.innerWidth : (nIEW&&document.compatMode=="CSS1Compat" ? document.documentElement.clientWidth : document.body.clientWidth));
  1400. }
  1401. function stgch()
  1402. {
  1403.     return parseInt(nNN||nOP ? window.innerHeight : (nIEW&&document.compatMode=="CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight));
  1404. }
  1405. function stgobj(id,t)
  1406. {
  1407.     if(nNN6)
  1408.         return document.getElementById(id);
  1409.     else if(nNN4)
  1410.         return document.layers[id];
  1411.     else
  1412.         return t ? document.all.tags(t)[id] : document.all[id];
  1413. }
  1414. function stglay(ip)
  1415. {
  1416.     if(!ip.layer)
  1417.     {
  1418.         if(typeof(ip.iti)=='undefined')
  1419.             ip.layer=stgobj(ip.ids,st_ttb ? 'table' : 'div');
  1420.         else
  1421.             ip.layer=nNN4 ? stglay(stgpar(ip)).document.layers[0].document.layers[ip.ids] : stgobj(ip.ids,nIEW ? 'table' : null);
  1422.     }
  1423.     return ip.layer;
  1424. }
  1425. function stgstlay(i)
  1426. {
  1427.     return stglay(i).document.layers[0].document.layers;
  1428. }
  1429. function stgrc(ip)
  1430. {
  1431.     if(nNN4)
  1432.     {
  1433.         var ly=stglay(ip);
  1434.         return [ly.pageX,ly.pageY,ly.clip.width,ly.clip.height];
  1435.     }
  1436.     else
  1437.     {
  1438.         var l=0,t=0;
  1439.         var ly=stglay(ip);
  1440.         var w=typeof(ip.rc)=="undefined"?parseInt(nOP&&nVER<7?ly.style.pixelWidth:ly.offsetWidth):ip.rc[2];
  1441.         var h=typeof(ip.rc)=="undefined"?parseInt(nOP&&nVER<7?ly.style.pixelHeight:ly.offsetHeight):ip.rc[3];
  1442.         while(ly)
  1443.         {
  1444.             l+=parseInt(ly.offsetLeft);
  1445.             t+=parseInt(ly.offsetTop);
  1446.             ly=ly.offsetParent;
  1447.         }
  1448.         if(nIEM)
  1449.         {
  1450.             l+=parseInt(document.body.leftMargin);
  1451.             l-=ip.ipbw;
  1452.             t-=ip.ipbw;
  1453.         }
  1454.         if(typeof(ip.iti)!='undefined')
  1455.         {
  1456.             if(st_delb)
  1457.             {
  1458.                 l-=ip.ipbw;
  1459.                 t-=ip.ipbw;
  1460.             }
  1461.             if(st_addb)
  1462.             {
  1463.                 l+=stgpar(ip).ipbw;
  1464.                 t+=stgpar(ip).ipbw;
  1465.             }
  1466.         }
  1467.         return [l,t,w,h];
  1468.     }
  1469. }
  1470. function stgxy(p)
  1471. {
  1472.     var x=p.poffx;
  1473.     var y=p.poffy;
  1474.     var sr=stgrc(p);
  1475.     p.rc=sr;
  1476.     if(p.ppi==0)
  1477.     {
  1478.         if(stgme(p).mtyp==2)
  1479.             return [stgme(p).mcox,stgme(p).mcoy];
  1480.         else if(stgme(p).mtyp==1)
  1481.             return [eval(stgme(p).mcox),eval(stgme(p).mcoy)];
  1482.         else
  1483.             return [sr[0],sr[1]];
  1484.     }
  1485.     var ir=stgirc(stgpar(p));
  1486.     var cl=stgcl();
  1487.     var ct=stgct();
  1488.     var cr=cl+stgcw();
  1489.     var cb=ct+stgch();
  1490.     if(p.pdir==1)
  1491.         x=p.poffx+ir[0]-sr[2]+p.psds;
  1492.     else if(p.pdir==2)
  1493.         x=p.poffx+ir[0]+ir[2]-p.psds;
  1494.     else
  1495.         x=p.poffx+ir[0]-p.psds;
  1496.     if(x+sr[2]>cr)
  1497.         x=cr-sr[2];
  1498.     if(x<cl)
  1499.         x=cl;
  1500.     if(p.pdir==3)
  1501.         y=p.poffy+ir[1]-sr[3]+p.psds;
  1502.     else if(p.pdir==4)
  1503.         y=p.poffy+ir[1]+ir[3]-p.psds;
  1504.     else
  1505.         y=p.poffy+ir[1]-p.psds;
  1506.     if(y+sr[3]>cb)
  1507.         y=cb-sr[3];
  1508.     if(y<ct)
  1509.         y=ct;
  1510.     return [x,y];
  1511. }
  1512. function stbuf(s)
  1513. {
  1514.     if(s)
  1515.     {
  1516.         var i=new Image();
  1517.         st_ims[st_ims.length]=i;
  1518.         i.src=s;
  1519.     }
  1520.     return s;
  1521. }
  1522. function stgsrc(s,m,f)
  1523. {
  1524.     if(s=='')
  1525.         return f ? m.mbnk : '';
  1526.     var sr=s.toLowerCase();
  1527.     if(sr.indexOf('http://')==0||(sr.indexOf(':')==1&&sr.charCodeAt(0)>96&&sr.charCodeAt(0)<123)||sr.indexOf('ftp://')==0||sr.indexOf('/')==0||sr.indexOf('gopher')==0)
  1528.         return s;
  1529.     else
  1530.         return m.mweb+s;
  1531. }
  1532. function showFloatMenuAt(n,x,y)
  1533. {
  1534.     if(nDM)
  1535.     {
  1536.         var m=stmenu(n);
  1537.         if(m&&typeof(m.ready)!="undefined"&&m.mtyp==2&&m.ps.length&&!m.ps[0].issh)
  1538.         {
  1539.             ststxy(m,[x,y]);
  1540.             stshow(m.ps[0]);
  1541.         }
  1542.     }
  1543. }
  1544. function hideMenu(n)
  1545. {
  1546.     var m=stmenu(n);
  1547.     var w=m.sfrm;
  1548.     if(w!=window)
  1549.         m=w.stmenu(n);
  1550.     if(m.hdid)
  1551.     {
  1552.         w.clearTimeout(m.hdid);
  1553.         m.hdid=null;
  1554.     }
  1555.     w.sthdall(m,1);
  1556. }
  1557. function stmenu(n)
  1558. {
  1559.     for(var l=st_ms.length-1;l>=0;l--)
  1560.         if(st_ms[l].mnam==n)
  1561.             return st_ms[l];
  1562.     return null;
  1563. }
  1564. function stgtsub(i)
  1565. {
  1566.     var m=stgme(i);
  1567.     var w=m.tfrm;
  1568.     if(i.ppi||w==window)
  1569.         return stgsub(i);
  1570.     m=w.stmenu(m.mnam);
  1571.     return w.stgsub(m.ps[i.ppi].is[i.iti]);
  1572. }
  1573. function stgirc(i)
  1574. {
  1575.     var m=stgme(i);
  1576.     var w=m.sfrm;
  1577.     if(i.ppi||w==window)
  1578.         return stgrc(i);
  1579.     m=w.stmenu(m.mnam);
  1580.     var rc=w.stgrc(m.ps[0].is[i.iti]);
  1581.     var x=rc[0]-w.stgcl();
  1582.     var y=rc[1]-w.stgct();
  1583.     switch(m.mcfd)
  1584.     {
  1585.         case 0:y-=w.stgch();break;
  1586.         case 1:y+=stgch();break;
  1587.         case 2:x-=w.stgcw();break;
  1588.         case 3:x+=stgcw();break;
  1589.     }
  1590.     x+=stgcl()+m.mcfx;
  1591.     y+=stgct()+m.mcfy;
  1592.     return [x,y,rc[2],rc[3]];
  1593. }
  1594. function stfrm(m)
  1595. {
  1596.     var a=m.mcff.split(".");
  1597.     var w="top";
  1598.     for(var l=0;l<a.length-1;l++)
  1599.         if(typeof(eval(w+"."+a[l]))=="undefined")
  1600.             return 0;
  1601.     w=eval("top."+m.mcff);
  1602.     if(typeof(w.st_load)!="undefined"&&w.st_load)
  1603.     {
  1604.         var t=w.stmenu(m.mnam);
  1605.         if(typeof(t)=="object")
  1606.         {
  1607.             if(w!=window)
  1608.             {
  1609.                 if(t.mhdd<1000)
  1610.                     m.mhdd=t.mhdd=1000;
  1611.                 hideMenu(m.mnam);
  1612.                 m.sfrm=t.sfrm=window;
  1613.                 m.tfrm=t.tfrm=w;
  1614.             }
  1615.             m.mcff="";
  1616.             return 1;
  1617.         }
  1618.     }
  1619.     return 0;
  1620. }
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

:shock:
This is going to be fun :)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

//Moved to programming
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Any chance of seeing a working example?, or maybe a quick explaination.

I can't figure out what the heck this thing is supposed to do :oops:
I've got it to give me a confirmation box for reading more information on errors, and it kills the Image menu that pops up over images in IE I've even read through the thing and noticed that it does somthing with tables images and style tags, but untill someone can tell me the purpose of this puppy I can't figure out what to test any changes on. :?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Agreed with joebert. I did make a feeble attempt to figure out what the script was trying to do, but couldn't even get as far as joebert did.
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Sorry about that!

To view an example goto:

http://www.futurecorps.net/Pete_Sapadin.htm

It's the menu at the top. In IE the menu has an alpha bg but with mozilla it doesn't. I want to change the script so it shows up with moz too :D

Thanks for any help!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Holy crap! That's what that script does? A navbar?
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

futurebuzz wrote:
t might take a few days however... NEVER seen a script that long before...WOW!


It took me 15 minutes once I was able to see what the heck it did 8) (Ok I admit I looked at the script for about 15 minutes or so before I knew what it did :wink: )

Anywho only had to add a couple lines, and for the sake of saving 40+KB of precious Ozzu space i'm just going to post thoose lines and tell you where to put them :wink:

change one,
Code: [ Select ]
var mozOp = "0.75"; // This is the value Mozila will use for opacity. must be in the form "0.nn" lower values mean more see-through

make that the second line in the script, right after the V4.1 or whatever it is.

change two, rather than trying to explain exactly where to put this change were just going to replace the whole function to make it easier. It starts on about line 503 and the function name is function stfcss(p)
Code: [ Select ]
function stfcss(p)
{
    var s="";
    if(nIEW&&(nVER>=5.0||!p.isst))
    {
        var dx=nVER>=5.5?"progid:DXImageTransform.Microsoft." : "";
        s+="filter:";
        if(nVER>=5.5)
        {
            if(p.pesh!="Normal")
                s+=p.pesh+" ";
        }
        else
        {
            if(p.pesi<24&&p.pesi>=0)
                s+="revealTrans(Transition="+p.pesi+",Duration="+((110-p.pesp)/100)+") ";
        }
        s+=dx+"Alpha(opacity="+p.popc+") ";
        if(p.psds)
        {
            if(p.pstp==1)
                s+=dx+"dropshadow(color="+p.pscl+",offx="+p.psds+",offy="+p.psds+",positive=1) ";
            else
                s+=dx+"Shadow(color="+p.pscl+",direction=135,strength="+p.psds+") ";
        }
        if(nVER>=5.5)
        {
            if(p.pehd!="Normal")
                s+=p.pehd+" ";
        }
        else
        {
            if(p.pehi<24&&p.pehi>=0)
                s+="revealTrans(Transition="+p.pehi+",Duration="+((110-p.pesp)/100)+") ";
        }
        s+=";";
    }
    s+="-moz-opacity:" + mozOp + ";opacity:" + mozOp + ";"; // joebert added
    return s;
}
  1. function stfcss(p)
  2. {
  3.     var s="";
  4.     if(nIEW&&(nVER>=5.0||!p.isst))
  5.     {
  6.         var dx=nVER>=5.5?"progid:DXImageTransform.Microsoft." : "";
  7.         s+="filter:";
  8.         if(nVER>=5.5)
  9.         {
  10.             if(p.pesh!="Normal")
  11.                 s+=p.pesh+" ";
  12.         }
  13.         else
  14.         {
  15.             if(p.pesi<24&&p.pesi>=0)
  16.                 s+="revealTrans(Transition="+p.pesi+",Duration="+((110-p.pesp)/100)+") ";
  17.         }
  18.         s+=dx+"Alpha(opacity="+p.popc+") ";
  19.         if(p.psds)
  20.         {
  21.             if(p.pstp==1)
  22.                 s+=dx+"dropshadow(color="+p.pscl+",offx="+p.psds+",offy="+p.psds+",positive=1) ";
  23.             else
  24.                 s+=dx+"Shadow(color="+p.pscl+",direction=135,strength="+p.psds+") ";
  25.         }
  26.         if(nVER>=5.5)
  27.         {
  28.             if(p.pehd!="Normal")
  29.                 s+=p.pehd+" ";
  30.         }
  31.         else
  32.         {
  33.             if(p.pehi<24&&p.pehi>=0)
  34.                 s+="revealTrans(Transition="+p.pehi+",Duration="+((110-p.pesp)/100)+") ";
  35.         }
  36.         s+=";";
  37.     }
  38.     s+="-moz-opacity:" + mozOp + ";opacity:" + mozOp + ";"; // joebert added
  39.     return s;
  40. }


I tested it in IE, NS7 and FFox.08. NS and FFox seem to interpret the value a little different from each other, play with the value to find a happy medium. :)

I still get "a few days" salary for this right ? :lol:
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Go joebert!! Go go GOOO! Woooooo!!!

You star you. Lol. I would have guessed at a good couple of hours minimum to sort that lot out lol. Was it a lucky break or are you really that good? :)

Just out of curiousity.. What does the rest of the script actually do? For something like that nav I would expect to be looking at maybe a screenfull of code :lol:
  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Posts: 774
  • Loc: Brisbane, Australia

Post 3+ Months Ago

yeah, why would anyone need a 40kb+ nav bar script?
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Hey thanks for the replies,

However, i cant get it to work! I have the latest version of Netscape and Mozilla. I have added the updates but the menu doesn't show an Alpha effect!?

I can't believe the size of the code either... I used some software called SOTHINK!

If anyone knows of some other javascript menu that will do the same but 15 :shock: :shock: lines less code then please let me know.
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Hey...

The code doesn't work! Infact, it's messed up!!

In Mozilla, the top of the menu has the alpha and the blue menu part. I only want the blue part to be. The blue dropdown part stays there when my mouse moves off it!? The mouse over hand doesnt appear either.

:idea:
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

I'd been doing javascript about 3-4 months or so when I coded this one:

http://www.geocities.com/whataloadof_crap/menu/DDMenu.html

It seems to load funny - wait till it's all there. This is one of about 50 variations on a theme by mixing and matching the filter styles. If you go in mozzilla it just steps open.

I know its not really much like yours but could probably be adapted to suit your needs. Please noone take it though as it is really badly written and needs re-doing at some point. I would be embarrased to see work that shoddy in the public domain in a real context :oops:

BTW - file size for the .js = 3kB. :wink:
  • Cae
  • Expert
  • Expert
  • User avatar
  • Posts: 734

Post 3+ Months Ago

*blink blink*

*screams*

*runs away*

sry, i not at all good with js... so i cant offer any suggestions... its just that... that... that... that is to long!!!!

*screams again*
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Hey thats not too bad!

Like the side wipe effect. 8)

I did see a transparent menu somewhere... I'll do a search.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

:? Worked for me. That program you used explains the huge filesize for sure, The code has its own error notifacation system built in, along with some other worthless looking bits. Oh well I have nothing better to do, guess I'll dig into it a little more.
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Nice one!

Yeah, i would use another .js if i could find one...

In IE, your updated code came-up with an error message when i hovered over the menu! Netscape and Mozilla showed the same un-workable menu.

Good try though and thanks for taking the time :wink:
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Joebert, before you re-write the whole thing - why not email the complete file to futurebuzz - incase someone made a mistake somewhere along the line lol
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

:shock: Plan B, help you find another script. It would take me forever and a day to dig out everything I need to start from scratch :oops:
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

OK chaps, sounds good to me.

I'm sure i done what joebert told me to do though... I might be new to it all but... :oops:

SOTHINK is very good but the file size... man, that must have been why it was soooo slugish before!!
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

It's still really easy to make typos in code, and "proof-reading" code is even more of a pain in the arse than proof-reading prose. Generally when I write a piece of code, if it's longer than about 5 lines I expect there to be errors in it, I find it easier to debug after than pay attention when im writting lol!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

This one was mentioned in another thread earlier today:

http://www.brainjar.com/dhtml/menubar/

Gives a whole step by step tute, plus the demo source code is available.
Check out Demo 3 specifically:

http://www.brainjar.com/dhtml/menubar/demo3.html

The script is still a little lengthy, but not nearly as bad as the earlier one. Has a nice clean look to it.
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

ATNO/TW thanks a bunch!!

I made it into a transparent menu.

I will work with this menu!!

Cheers! 8)
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Once again ATNO to the rescue :D
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

No problem, but actually you have this member to thank for it.

http://www.ozzu.com/digital-art-forum/looking-for-advice-t24088.html

I wouldn't have known about that script if not for his question in the Photography board. I completely intend to use it as well. That first one I couldn't make heads or tails of. This one at least makes sense to me. *lol
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Yes, indeed! Well done!!! I'll post the completed menu soon...

One question thus far... On the sub-menu, can i position it so it doesn't over-lap the other? I want to leave a gap of about 10px

Anyone know how?

cheers!
  • futurebuzz
  • Student
  • Student
  • User avatar
  • Posts: 75
  • Loc: Birmingham England

Post 3+ Months Ago

Hello,

I managed to get something done with that menu. It's almost the same as the other one i had. I made the css and script external. I would like to do the same for the whole menu so it would be easier to update! Please let me knoe if you know how!!

http://www.futurecorps.net/Pete_Sapadin.htm

Thanks again for the help.

Post Information

  • Total Posts in this topic: 27 posts
  • Users browsing this forum: No registered users and 140 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.