if(typeof _STNS=="undefined"){ if(!Array.prototype.push){ Array.prototype.push=function(){ for(var i=0;i<arguments.length;i++){ this[this.length]=arguments[i]; } return this.length; }; } if(!Array.prototype.pop){ Array.prototype.pop=function(){ if(this.length){ var o=this[this.length-1]; this.length--; return o; } }; } if(!Array.prototype.shift){ Array.prototype.shift=function(){ if(this.length){ var o=this[0]; for(var i=0;i<this.length-1;i++){ this[i]=this[i+1]; } this.length--; return o; } }; } if(!Function.prototype.call){ Function.prototype.call=function(_5){ var _5=_5||window; _5.__tmp=this; var _6=_5.__tmp(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]); _5.__tmp=null; return _6; }; } _STNS={sVer:"3.0",bDebug:false,fvThrow:function(e){ },bBufImg:true,oImgs:{},fvBufImgs:function(){ if(!_STNS.bBufImg){ return; } if(!_STNS.bLoaded){ var s=""; for(var i in _STNS.oImgs){ if(_STNS.oImgs[i]!=2){ s+=_STNS.fsGetTag("div","style=\"display:none\"",_STNS.fsGetImgTag(i,-1,-1)); } _STNS.oImgs[i]=2; } document.write(s); } },bIsIE:false,bIsMIE:false,bIsFX:false,bIsOP:false,bIsSF:false,bIsKQ:false,oNav:null,bRTL:false,sDocMd:null,sURL:window.location.href+"",sDIR:null,bLocal:false,fsGetDocMd:function(w){ var w=w||window; switch(w.document.compatMode){ case "QuirksMode": case "BackCompat": return "quirks"; case "CSS1Compat": return "css1"; default: return document.compatMode; } },_foGetNav:function(){ var _n=navigator,_u=_n.userAgent,_a=_n.appName,_p=_n.platform,n,v,p; if(/(Opera)[ \/]([\d\.]+)/.test(_u)||/(Netscape)\d*\/([\d\.]+)/.test(_u)||/(MSIE) ([\d\.]+)/.test(_u)||/(Chrome)\/([\d\.]+)/.test(_u)||/(Safari)\/([\d\.]+)/.test(_u)||/(Konqueror)\/([\d\.]+)/.test(_u)||/(Gecko)\/(\d+)/.test(_u)){ n=RegExp.$1.toLowerCase(); v=RegExp.$2; }else{ if(_a=="Netscape"&&_n.appVersion.charAt(0)=="4"){ n="netscape4"; v=parseFloat(_n.appVersion); }else{ n="unknow"; v=0; } } if(n=="netscape"){ switch(_a){ case "Microsoft Internet Explorer": n="msie"; v=/(MSIE) ([\d\.]+)/.exec(_u)[2]; break; case "Netscape": n="gecko"; v=/(Gecko)\/(\d+)/.exec(_u)[2]; } } if(/^(Win)/.test(_p)||/^(Mac)/.test(_p)||/^(SunOS)/.test(_p)||/^(Linux)/.test(_p)||/^(Unix)/.test(_p)){ p=RegExp.$1.toLowerCase(); }else{ p=_p; } return {name:n,version:v,platform:p}; },fiGetCT:function(w){ var w=w||window; if(_STNS.bIsIE){ return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).scrollTop; }else{ return w.pageYOffset; } },fiGetCL:function(w){ var w=w||window; if(_STNS.bIsIE){ return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).scrollLeft; }else{ return w.pageXOffset; } },fiGetCW:function(w){ var w=w||window; if(_STNS.bIsIE){ return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).clientWidth; }else{ if(w.scrollbars&&w.scrollbars.visible||w.innerHeight<document.documentElement.offsetHeight||_STNS.bIsOP){ return w.innerWidth-20; } } return w.innerWidth; },fiGetCH:function(w){ var w=w||window; if(_STNS.bIsIE){ return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).clientHeight; }else{ if(w.scrollbars&&w.scrollbars.visible||w.innerWidth<document.documentElement.offsetWidth){ return w.innerHeight-20; } } return w.innerHeight; },foGetMediaInfor:function(s){ _STNS.fvThrow(new Error("_STNS.runTime error:call foGetMediaInfor that has not been implemented")); },oLibs:{},sLibPth:"",fvInitLib:function(){ var scs,sc,s,t,ls,pth; if(_STNS.bIsFX&&!_STNS.faGetElesByTagName("body").length){ var hds=_STNS.faGetElesByTagName("head"); sc=hds[0].lastChild; }else{ scs=_STNS.faGetElesByTagName("script"); sc=scs[scs.length-1]; } if(sc){ s=sc.src; } if(s){ _STNS.sLibPth=s.substr(0,s.lastIndexOf("/")+1); t=_STNS.fcoGetAttribute(sc,"sothinkdebug"); if(t=="true"){ pth=_STNS.fsGetAbsPth(_STNS.sLibPth+"debug/stdebug.js"); if(!_STNS.oLibs[pth]){ _STNS.oLibs[pth]={state:1,defer:0}; } } t=_STNS.fcoGetAttribute(sc,"sothinklib"); if(t){ ls=t.split(";"); for(var i=0;i<ls.length;i++){ if(!ls[i]){ continue; } if(!_STNS.fbIsFile(ls[i])){ ls[i]+=".js"; } pth=_STNS.fsGetAbsPth(_STNS.sLibPth+ls[i]); if(_STNS.oLibs[pth]){ continue; } _STNS.oLibs[pth]={state:1,defer:0}; } } }else{ _STNS.fvThrow(new Error("_STNS.runTime error:can't get lib path")); } },fvInc:function(s,f){ if(!_STNS.oLibs[s]){ _STNS.oLibs[s]={state:1,defer:f}; } },fvLoadLib:function(){ var s=""; with(_STNS){ for(var i in oLibs){ if(oLibs[i].state!=2){ if(bLoaded){ fbInsJs(i); }else{ s+=fsGetJsTag(i,oLibs[i].defer); } oLibs[i].state=2; } } } if(s){ document.write(s); } },bLoaded:false,_aLoads:[],fbAddLoad:function(f){ if(!_STNS.bLoaded&&typeof f=="function"){ return _STNS._aLoads.push(f); }else{ if(_STNS.bLoaded){ _STNS.fvThrow(new Error("_STNS.runTime error:Page has been loaded!")); }else{ _STNS.fvThrow(new Error("_STNS.runTime error:Not a function is pushed into onload event!")); } } return false; },_fvOnload:function(){ with(_STNS){ if(bLoaded){ return; } bLoaded=true; for(var j=0;j<_aLoads.length;j++){ _aLoads[j](); } } },_fvInitOnload:function(){ if(_STNS.bIsIE&&window.attachEvent){ window.attachEvent("onload",_STNS._fvOnload); }else{ if(_STNS.oNav.name!="konqueror"&&window.addEventListener){ window.addEventListener("load",_STNS._fvOnload,false); }else{ if(!window.onload||window.onload.toString()!=_STNS._fvOnload.toString()){ if(typeof window.onload=="function"){ _STNS.fbAddLoad(window.onload); } onload=_STNS._fvOnload; } } } },_aCks:[],bCkPg:false,nCkTid:0,nCkTime:100,fvAddCk:function(f){ if(typeof f=="function"){ with(_STNS){ if(bCkPg){ clearTimeout(nCkTid); bCkPg=false; } _aCks.push(f); if(bLoaded){ _fvCkPg(); } } }else{ _STNS.fvThrow(new Error("_STNS.runTime error:Not a function is pushed into check page event!")); } return false; },_fvCkPg:function(){ with(_STNS){ if(_aCks.length){ bCkPg=true; for(var i=0;i<_aCks.length;i++){ _aCks[i](); } nCkTid=setTimeout("_STNS._fvCkPg()",nCkTime); }else{ bCkPg=false; } } },bShield:false,oDefCSS:{tb:"border-style:none;background-color:transparent;background-image:none;",tr:"border-style:none;background-color:transparent;background-image:none;",td:"border-style:none;background-color:transparent;background-image:none;",dv:"border-style:none;background-color:transparent;background-image:none;margin:0px;padding:0px;",a:"display:block;border-style:none;background-color:transparent;background-image:none;margin:0px;padding:0px;",hd:"display:none;",sp:"border-style:none;background-color:transparent;background-image:none;margin:0px;padding:0px;"},foCss2Obj:function(s){ var o={},a,re=/([\w\-_]+):([^;]+)(;|$)/,ra; a=s.split(";"); for(var i=0;i<a.length;i++){ ra=re.exec(a[i]); if(ra){ o[ra[1]]=ra[2]; } } return o; },foCss2Style:function(s){ var cs=_STNS.foCss2Obj(s),re=/-([a-z])/,o={},i,k,t; for(i in cs){ t=re.exec(i); if(t){ k=i.replace("-"+t[1],t[1].toUpperCase()); }else{ k=i; } o[k]=cs[i]; } return o; },fsObj2Css:function(a){ var s=""; for(var i in a){ if(a[i]!=null){ s+=i+":"+a[i]+";"; } } return s; },fvCSSShield:function(){ with(_STNS){ if(bLoaded){ bShield=false; }else{ if(faGetElesByTagName("body")&&faGetElesByTagName("body").length){ bShield=false; }else{ var i,s="\n<style type='text/css'>\n"; for(i in oDefCSS){ if(i=="a"){ s+=".sta:link,.sta:hover,.sta:active,.sta:visited"; }else{ s+=".st"+i; } s+="{"+oDefCSS[i]+"}\n"; } s+="</style>"; bShield=true; document.write(s); } } } },fsReadCoki:function(n){ var i,cs=document.cookie.split("; "); for(i=0;i<cs.length;i++){ if(!cs[i].indexOf(n+"=")){ return cs[i].substr(n.length); } } },fvSaveCoki:function(n,v,t){ var s=n+"="+v+"; ",d=new Date; if(!t||!v){ s+="expires=Fri, 31 Dec 1999 23:59:59 GMT; "; }else{ s+="expires="+((new Date(d-0+t)).toGMTString())+"; "; } s+="path=/; "; document.cookie=s; },ffGetFun:function(f){ if(typeof f=="function"){ return f; }else{ if(typeof f=="string"&&window[f]){ return window[f]; } } },fbIsAbsPth:function(s){ var t=s.toLowerCase(); return /^(#|\?|\/|[a-z]:|http:|https:|file:|ftp:|javascript:|vbscript:|mailto:|about:|gopher:|news:|res:|telnet:|view-source|wais:|rtsp:|mms:|outlook:)/.test(t); },fsGetAbsPth:function(ss){ var s=ss; if(!s){ return s; } var re,t; if(!s.indexOf("//")){ return s; } if(s.charAt(0)=="/"){ re=/^(file:\/{2,}[^\/]+\/|http:\/\/[^\/]+\/|https:\/\/[^\/]+\/)/; if(re.exec(_STNS.sDIR)){ s=RegExp.$1+s.substr(1); }else{ return s; } }else{ if(s=="#"){ if(_STNS.sURL.charAt(_STNS.sURL.length-1)!="#"){ return _STNS.sURL+"#"; }else{ return _STNS.sURL; } }else{ if(!_STNS.fbIsAbsPth(s)){ s=_STNS.sDIR+s; }else{ return s; } } } while(s.indexOf("/./")>0){ s=s.replace("/./","/"); } while((t=s.indexOf("/../"))>0){ var p1,p2; p1=s.substr(0,t); p2=s.substr(t).replace("/../",""); p1=p1.substr(0,p1.lastIndexOf("/")+1); s=p1+p2; } return s; },fsGetImgTag:function(s,w,h,b,id,nw,nh){ if(!s||!w||!h){ return ""; } if(nw&&nh){ if(w==-1&&h==-1){ w=nw,h=nh; }else{ if(w==-1&&h!=-1){ w=Math.floor(nw*h/nh); }else{ if(w!=-1&&h==-1){ h=Math.floor(nh*w/nw); } } } } return "<img class='stimg' src=\""+s+"\""+(w==-1?"":" width="+w)+(h==-1?"":" height="+h)+" border="+(b?b:0)+(id?" id='"+id+"'":"")+">"; },fsGetJsTag:function(s,f){ return "<script type='text/javascript' language='javascript1.2' src=\""+s+"\""+(f?" DEFER":"")+"></"+"script>"; },fsGetTag:function(t,a,s){ return "<"+t+" "+a+">"+(s?s:"")+"</"+t+">"; },fbIsFile:function(s){ return /\w+\.\w+$/.test(s); },fbIsImg:function(s){ return /\.(gif|png|jpg|jpeg|bmp)$/.test(s.toLowerCase()); },fsGetDIR:function(s){ var t=s.toLowerCase(); if(!t.indexOf("file:/")||!t.indexOf("http://")||!t.indexOf("https://")){ return s.substr(0,s.lastIndexOf("/")+1); }else{ return ""; } },fsGetHTMLEnti:function(s,f){ if(!s){ return ""; } var re; re=/&/g; s=s.replace(re,"&amp;"); if(!f){ re=/ /g; s=s.replace(re,"&nbsp;"); } re=/</g; s=s.replace(re,"&lt;"); re=/>/g; s=s.replace(re,"&gt;"); re=/\"/g; s=s.replace(re,"&quot;"); return s; },faJoinA:function(a,b){ var c=[],l=Math.max(a.length,b.length); for(var i=0;i<l;i++){ if(a[i]==null){ c[i]=b[i]; }else{ c[i]=a[i]; } } return c; },S64:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ#@",fiTransX2D:function(n,m){ m=String(m).replace(/ /gi,""); if(m==""){ return 0; } var a=_STNS.S64.substr(0,n); if(eval("m.replace(/["+a+"]/gi,'')")!=""){ _STNS.fvThrow(new Error("_STNS.runTime error:Transform bad number from "+m+" to 10!")); return 0; } var t=0,c=1; for(var x=m.length-1;x>-1;x--){ t+=c*(a.indexOf(m.charAt(x))); c*=n; } return t; },fsTranD2X:function(n,m){ m=String(m).replace(/ /gi,""); if(m==""){ return 0; } if(parseInt(m)!=m){ _STNS.fvThrow(new Error("_STNS.runTime error:Transform bad number from 10 to "+m+"!")); return ""; } var t="",a=_STNS.S64.substr(0,n); while(m!=0){ var b=m%n; t=a.charAt(b)+t; m=(m-b)/n; } if(!t){ t="0"; } return t; },faCP2PP:function(cp,w){ var t,l; with(_STNS){ t=fiGetCT(w); l=fiGetCL(w); return [cp[0]+l,cp[1]+t]; } },faPP2CP:function(pp,w){ var t,l; with(_STNS){ t=fiGetCT(w); l=fiGetCL(w); return [pp[0]-l,pp[1]-t]; } },fsGetLen:function(t,l,p,b,s,w){ var _r=_STNS,u; if(w==null){ w=true; } if(s==null){ s=true; } if(p==null){ p=0; } if(b==null){ b=0; } if(typeof l=="string"){ u=/%|px|pt|em|ex|pc|in|cm|mm$/.exec(l); } if(u){ switch(u[0]){ case "%": return l; default: l=parseInt(l),u=u[0]; } }else{ l=parseInt(l); u="px"; } switch(t){ case "dv": if(_r.sDocMd=="css1"||(!_r.bIsIE&&!_r.bIsOP||(_r.bIsOP&&parseInt(_r.oNav.version)>=8))){ return l-2*p-2*b+u; } break; case "tb": if(_r.bIsMIE&&!w&&s){ return l-2*b-2*p+u; } break; case "td": if(_r.bIsSF){ if(_r.sDocMd!="css1"||w){ if(s){ return l-2*b+u; }else{ return l-2*p+u; } }else{ return l-2*p-2*b+u; } }else{ if(!_r.bIsMIE&&(_r.sDocMd=="css1"||w)){ return l-2*b-2*p+u; } } break; } return l+u; },fdmGetEleById:function(id,w){ var w=w||window; with(_STNS){ if(bIsIE&&parseFloat(oNav.version)<9){ var es=w.document.all(id); if(es&&es.length&&!es.tagName){ return es[0]; }else{ return es; } }else{ return w.document.getElementById(id); } } },faGetElesByTagName:function(n,w){ var w=w||window; with(_STNS){ if(bIsIE){ return w.document.all.tags(n); }else{ return w.document.getElementsByTagName(n); } } },faGetElesByCls:function(n,w){ var w=w||window; var i,a=[],el,els=_STNS.bIsIE?w.document.all:w.document.getElementsByTagName("*"); for(i=0;el=els[i];i++){ if(el.className==n){ a.push(el); } } return a; },fdmGetFmByName:function(n,w){ var w=w||window; if(w.frames[t]){ return w.frames[t]; }else{ if(w.parent){ return w.parent.frames[t]; } } },fdmGetElesByName:function(n,w){ var w=w||window; return w.document.getElementsByName(n); },fbIsPar:function(p,c){ if(_STNS.bIsIE){ return p.contains(c); }else{ if(!p||!c){ return false; } if(p==c){ return true; } do{ if(c.parentNode){ c=c.parentNode; }else{ break; } if(p==c){ return true; } }while(c); } return false; },fbInsHTML:function(e,p,h){ if(_STNS.bIsIE){ return e.insertAdjacentHTML(p,h); }else{ var d=e.ownerDocument,t=d.createElement("span"); t.innerHTML=h; switch(p){ case "beforeBegin": return e.parentNode.insertBefore(t,e); case "afterBegin": return e.insertBefore(t,e.firstChild); case "beforeEnd": return e.appendChild(t); case "afterEnd": if(e.nextSibling){ return e.parentNode.insertBefore(t,e.nextSibling); }else{ return e.parentNode.appendChild(t); } } } return false; },fbInsEle:function(e,p,ne){ if(_STNS.bIsIE){ return e.insertAdjacentElement(p,ne); }else{ switch(p){ case "beforeBegin": return e.parentNode.insertBefore(ne,e); case "afterBegin": return e.insertBefore(ne,e.firstChild); case "beforeEnd": return e.appendChild(ne); case "afterEnd": if(o.nextSibling){ return e.parentNode.insertBefore(ne,e.nextSibling); }else{ return e.parentNode.appendChild(ne); } } } },fbDelEle:function(e){ var p=e.parentNode; return p.removeChild(e); },fbInsJs:function(s,l){ var l=l||"JavaScript"; var hd=_STNS.faGetElesByTagName("HEAD"); if(hd&&hd[0]){ l=l.toLowerCase(); var t=document.createElement("script"); t.language=l; if(!l.indexOf("javascript")||!l.indexOf("jscript")){ t.type="text/javascript"; } t.src=s; _STNS.fbInsEle(hd,"beforeEnd",t); } },fdmCreateXMLHttp:function(){ var _9c; if(window.XMLHttpRequest){ _9c=new XMLHttpRequest(); }else{ var _9d=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"]; for(var n=0;n<_9d.length;n++){ try{ _9c=new ActiveXObject(_9d[n]); break; } catch(e){ _9c=null; } } } if(!_9c){ _9c=null; _STNS.fvThrow(new Error("Create XMLHttpRequest fail!")); return; } if(_9c.readyState==null){ _9c.readyState=0; _9c.addEventListener("load",function(){ _9c.readyState=4; if(typeof _9c.onreadystatechange=="function"){ _9c.onreadystatechange(); } },false); } return _9c; },fdmCreateXMLDoc:function(){ var _9f; if(_STNS.bIsIE){ var _a0=["Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","Msxml2.DOMDocument","Microsoft.XMLDOM"]; for(var n=0;n<_a0.length;n++){ try{ _9f=new ActiveXObject(_a0[n]); break; } catch(e){ } } }else{ _9f=document.implementation.createDocument("","",null); } if(!_9f){ _STNS.fvThrow(new Error("Create XMLDOMDocument fail!")); return; } return _9f; },faGetElePos:function(e){ if(!e){ return; } var x=y=bl=bt=0; var v=_STNS.oNav.version,a=new Array(v,523.12),sv=a.sort()[0]==523.12; if(_STNS.bIsSF&&sv){ var o=e.offsetParent?e.offsetParent.offsetParent?e.offsetParent.offsetParent.offsetParent?e.offsetParent.offsetParent.offsetParent?e.offsetParent.offsetParent.offsetParent.offsetParent?e.offsetParent.offsetParent.offsetParent.offsetParent:null:null:null:null:null; while(o){ if(o.tagName=="TABLE"){ bl=parseInt(_STNS.fsGetEleStyle(o,"borderLeftWidth")); bt=parseInt(_STNS.fsGetEleStyle(o,"borderTopWidth")); if(!isNaN(bl)){ x+=bl; } if(!isNaN(bt)){ y+=bt; } } o=o.offsetParent; } } while(e){ x+=e.offsetLeft; y+=e.offsetTop; switch(e.tagName){ case "TD": if(_STNS.bIsIE||(_STNS.bIsSF&&sv)||(_STNS.bIsOP&&_STNS.oNav.version<9)){ bl=parseInt(_STNS.fsGetEleStyle(e,"borderLeftWidth")); bt=parseInt(_STNS.fsGetEleStyle(e,"borderTopWidth")); if(!isNaN(bl)){ x+=bl; } if(!isNaN(bt)){ y+=bt; } } break; } if(e.parentNode&&e.parentNode.tagName=="DIV"){ var s=_STNS.fsGetEleStyle(e.parentNode,"overflow").toLowerCase(); var w=_STNS.fsGetEleStyle(e.parentNode,"width").toLowerCase(); if(s=="hidden"||s=="scroll"||s=="auto"){ x-=e.parentNode.scrollLeft; y-=e.parentNode.scrollTop; } if(w&&w!="auto"){ if((_STNS.bIsFX&&_STNS.oNav.version>20060414&&s!="visible")||(_STNS.bIsIE&&_STNS.oNav.version>=5)){ bl=parseInt(_STNS.fsGetEleStyle(e.parentNode,"borderLeftWidth")); bt=parseInt(_STNS.fsGetEleStyle(e.parentNode,"borderTopWidth")); if(!isNaN(bl)){ x+=bl; } if(!isNaN(bt)){ y+=bt; } } } } if(e.parentNode&&e.offsetParent&&e.parentNode!=e.offsetParent){ if(e.offsetParent.tagName=="DIV"){ var s=_STNS.fsGetEleStyle(e.offsetParent,"overflow").toLowerCase(); var w=_STNS.fsGetEleStyle(e.offsetParent,"width").toLowerCase(); if(s=="hidden"||s=="scroll"||s=="auto"){ x-=e.offsetParent.scrollLeft; y-=e.offsetParent.scrollTop; } if(w&&w!="auto"){ if((_STNS.bIsFX&&_STNS.oNav.version>20060414&&s!="visible")||(_STNS.bIsIE&&_STNS.oNav.version>=5)){ bl=parseInt(_STNS.fsGetEleStyle(e.offsetParent,"borderLeftWidth")); bt=parseInt(_STNS.fsGetEleStyle(e.offsetParent,"borderTopWidth")); if(!isNaN(bl)){ x+=bl; } if(!isNaN(bt)){ y+=bt; } } } } } e=e.offsetParent; } return [x,y]; },fiGetEleWid:function(e){ return e.offsetWidth; },fiGetEleHei:function(e){ return e.offsetHeight; },fsGetEleStyle:function(e,p){ if(!e||!p){ return; } if(_STNS.bIsIE){ return e.currentStyle[p]; }else{ if(_STNS.bIsFX||_STNS.bIsSF||_STNS.bIsOP){ var w=e.ownerDocument.defaultView; p=p.replace(/([A-Z])/g,"-$1"); return w.getComputedStyle(e,"").getPropertyValue(p.toLowerCase()); }else{ return e.style[p]; } } },fcoGetAttribute:function(e,a){ if(!e||!a){ return; } if(_STNS.bIsIE){ return e[a]; }else{ return e.getAttribute(a); } },fbFalse:function(){ return false; },fbTrue:function(){ return true; }}; _STNS.Class=(function(){ var _b1=function(){ var c=function(as){ if(_STNS.bIsIE){ this._cls=this.constructor; }else{ this._cls=arguments.callee; } _b4.call(this,as); }; _b5(c,arguments); c.register=_b6; c.toString=_b7; c.subclsOf=_b8; c.superclassOf=_b9; return c; }; _b1.toString=function(){ return "[object Class]"; }; _b1.getC=function(pth){ var _bb=[]; if(!_bc(pth,_bb)||!_bd[_bb[0]][_bb[1]]){ _STNS.fvThrow(new Error("Class get error: Class \""+pth+"\" is not found")); return; } return _bd[_bb[0]][_bb[1]]; }; _b1.getClsLst=function(o,pre){ var o=o||_bd,pre=pre||"/",sp,s=""; for(var i in o){ if(typeof o[i]=="object"){ sp=pre+i+"/"; s+=_STNS.Class.getClsLst(o[i],sp); }else{ s+=pre+i+"\n"; } } return s; }; var _b6=function(pth){ var _c4=[]; if(!_bc(pth,_c4)){ _STNS.fvThrow(new Error("Class register error: Invalid class path:"+pth)); return; } var pkg=_c4[0]; var cn=_c4[1]; if(pkg){ if(!_bd[pkg]){ _bd[pkg]={}; } var _c7=_bd[pkg][cn]; if(_c7){ _STNS.fvThrow(new Error("Class register error: Class \""+pth+"\" already exists")); return; } _bd[pkg][cn]=this; }else{ var _c7=_bd[cn]; if(_c7){ _STNS.fvThrow(new Error("Class register error: Class \""+pth+"\" already exists")); return; } _bd[cn]=this; } this._pkg=pkg; this._cn=cn; }; var _bd={}; var _c8=function(_c9,_ca){ if(typeof _c9=="string"){ _c9=_STNS.Class.getC(_c9); } if(typeof _ca=="string"){ _ca=_STNS.Class.getC(_ca); } if(typeof _c9!="function"||typeof _ca!="function"){ return false; } if(!_c9._supers){ return false; } for(var i=0;i<_c9._supers.length;i++){ if(_c9._supers[i]==_ca){ return true; }else{ if(_c8(_c9._supers[i],_ca)){ return true; } } } return false; }; var _b8=function(cls){ return _c8(this,cls); }; var _b9=function(cls){ return _c8(cls,this); }; var _bc=function(pth,_cf){ if(typeof pth!="string"||!pth){ return false; } var n=pth.lastIndexOf("/"); if(n>-1){ _cf[0]=pth.substr(0,n); _cf[1]=pth.substr(n+1); }else{ _cf[0]=""; _cf[1]=pth; } return true; }; var _b5=function(c,as){ c._supers=[]; for(var i=0;i<as.length;i++){ var s=as[i]; if(typeof s=="string"){ s=_STNS.Class.getC(s); } if(typeof s!="function"){ _STNS.fvThrow(new Error("Class create error: Invalid superclass: "+"args["+i+"]")); return; } c._supers.push(s); } }; var _b4=function(as){ var c=this._cls; for(var i=0;i<c._supers.length;i++){ if(_STNS.bIsIE){ this.constructor=c._supers[i]; } c._supers[i].call(this,as); } if(_STNS.bIsIE){ this.constructor=c; } this._cls=c; this.toString=_d8; this.getClass=_d9; this.instanceOf=_da; this.toConvert=_db; if(c.construct){ c.construct.call(this,as); } }; var _db=function(cls,as){ var c=this._cls; if(_c8(c,cls)){ var t=new cls; for(var i in this){ if(typeof t[i]=="undefined"){ delete this[i]; } if(cls[i]){ this[i]=cls[i]; } } }else{ if(_c8(cls,c)){ var f=0; for(var i=0;i<cls._supers.length;i++){ if(_STNS.bIsIE){ this.constructor=cls._supers[i]; } if(cls._supers[i]!=c){ cls._supers[i].call(this,as); }else{ f=1; } } if(!f){ _STNS.fvThrow(new Error("_STNS.runTime error:Can't convert this instance;The class of instance must be the target class's direct superClass!")); return; } if(_STNS.bIsIE){ this.constructor=cls; } this._cls=cls; if(cls.construct){ cls.construct.call(this,as); } }else{ _STNS.fvThrow(new Error("_STNS.runTime error:Can't convert this instance;The class of instance must be the target class's subClass or direct superClass!")); } } }; var _da=function(c){ if(typeof c=="string"){ c=_STNS.Class.getC(c); } if(typeof c!=="function"){ return false; } return this._cls==c; }; var _d9=function(){ return this._cls; }; var _d8=function(){ if(this._cls._cn){ return "[object Object "+this._cls._pkg+"/"+this._cls._cn+"]"; }else{ return "[object Object Anonymous class]"; } }; var _b7=function(){ if(this._cn){ return "[object Class "+this._pkg+"/"+this._cn+"]"; } return "[object Anonymous Class]"; }; return _b1; })(); with(_STNS){ sDocMd=fsGetDocMd(); oNav=_foGetNav(); bIsIE=oNav.name=="msie"; bIsMIE=bIsIE&&oNav.platform=="mac"; bIsOP=oNav.name=="opera"; bIsFX=oNav.name=="gecko"; bIsSF=oNav.name=="safari"; bIsKQ=oNav.name=="konqueror"; sDIR=fsGetDIR(sURL); bLocal=!sURL.indexOf("file:"); _fvInitOnload(); fbAddLoad(_fvCkPg); } } _STNS.fvInitLib(); _STNS.fvLoadLib(); if(!_STNS.bShield){ _STNS.fvCSSShield(); } if(typeof _STNS!="undefined"&&!_STNS.UI){ _STNS.UI={UNIUID:0,DOMEVENTS:["mouseover","mouseout","mousemove","mousedown","mouseup","click","keypress","keydown","keyup","dblclick"],foGetUIById:function(id){ var o; while(id){ if(o=_STNS.UI.oUIs[id]){ return o; } id=id.substr(0,id.lastIndexOf("_")); } },fsGetUid:function(){ this.iIdNo++; if(_STNS.UI.UNIUID){ return "stUI"+_STNS.UI.UNIUID+this.iIdNo; }else{ if(window.name){ return "stUI"+(_STNS.fsTranD2X(36,(new Date).getTime()))+this.iIdNo; }else{ return "stUI"+this.iIdNo; } } },iIdNo:0,oUIs:{},fbDmEnt:function(e,o){ var oid=o.id,ob,r=-1; if(!oid){ return true; } if(ob=_STNS.UI.foGetUIById(oid)){ if(ob.fbGetEnt){ r=ob.fbGetEnt(e,o); } } return r; },fsGetEnt:function(o,t,n,pre){ var s; if(n==null){ var n=""; } if(!pre){ var pre=""; } if(o._oEs[t+n]&&o._oEs[t+n].length){ for(var i=0;i<_STNS.UI.DOMEVENTS.length;i++){ if(_STNS.UI.DOMEVENTS[i]==t){ return "on"+t+"='return "+pre+"_STNS.UI.fbDmEnt(event,this)'"; } } } return ""; }}; with(_STNS.UI){ _STNS.UI.CUIObj=_STNS.Class(); CUIObj.register("UI/CUIObj"); CUIObj.construct=function(){ this._oMs={}; this._oEs={}; this.oParent=null; this.sUid=_STNS.UI.fsGetUid(); this.fbGetEnt=_STNS.fbTrue(); with(_STNS.UI.CUIObj){ this.fvDestroy=fvDestroy; this.fvGetMsg=fvGetMsg; this.fbSetMsg=fbSetMsg; this.fbAttachEnt=fbAttachEnt; this.fbDetachEnt=fbDetachEnt; this.fbDetachAll=fbDetachAll; this.fbFireEnt=fbFireEnt; this.fbCheckEnt=fbCheckEnt; this.foClone=foClone; } _STNS.UI.oUIs[this.sUid]=this; this.sSelf="_STNS.UI.oUIs['"+this.sUid+"']"; }; CUIObj.fvDestroy=function(){ delete _STNS.UI.oUIs[this.sUid]; }; CUIObj.fvGetMsg=function(m,d){ var f,r=true; if(f=this._oMs[m]){ if(typeof f=="string"){ f=_STNS.ffGetFun(f); } if(f){ r=f.call(this,d); } } if(r==true&&this.oParent){ this.oParent.fvGetMsg(m,d); } }; CUIObj.fbSetMsg=function(m,f){ if(typeof f!="function"&&typeof f!="string"){ _STNS.fvThrow(new Error("Attach invalid function to "+t+" message.")); return false; } this._oMs[m]=f; return true; }; CUIObj.fbCheckEnt=function(t){ if(this._oEs[t]){ return true; } }; CUIObj.fbAttachEnt=function(t,f){ if(typeof f!="function"&&typeof f!="string"){ _STNS.fvThrow(new Error("Attach invalid function to "+t+" event.")); return false; } if(this._oEs[t]){ for(var i=0;i<this._oEs[t].length;i++){ if(this._oEs[t][i]==f){ return -1; } } this._oEs[t].push(f); }else{ this._oEs[t]=[f]; } return true; }; CUIObj.fbDetachEnt=function(t,f){ var i; if(this._oEs[t]&&this._oEs[t].length){ for(i=0;i<this._oEs[t].length;i++){ if(this._oEs[t][i]==f){ delete this._oEs[t][i]; } } } }; CUIObj.fbDetachAll=function(){ for(var i in this._oEs){ if(this._oEs[i].length){ this._oEs[i].length=0; } delete this._oEs[i]; } }; CUIObj.fbFireEnt=function(t,as){ var i,r=true,f,tmp; if(!this._oEs[t]||!this._oEs[t].length){ return -1; } for(i=0;i<this._oEs[t].length;i++){ if(!this._oEs[t][i]){ continue; } f=this._oEs[t][i]; if(typeof f=="string"){ f=_STNS.ffGetFun(f); } if(f){ tmp=f.call(this,as); if(!tmp){ r=tmp; } } } return r; }; CUIObj.foClone=function(){ var o={}; for(var i in this){ o[i]=this[i]; } o.sUid=_STNS.UI.fsGetUid(); _STNS.UI.oUIs[o.sUid]=o; o.sSelf="_STNS.UI.oUIs['"+o.sUid+"']"; return o; }; } } if(typeof _STNS.UI.CUIFlashMenu=="undefined"){ if(!_STNS._aFlashMenus){ _STNS._aFlashMenus=[]; } if(!_STNS._tStSWFStatic){ _STNS._tStSWFStatic={}; } function SFMSetStatic(fid,args){ _STNS._tStSWFStatic[fid]=args; } function SFMGetStatic(fid){ return _STNS._tStSWFStatic[fid]; } function SFMJScmd(){ var cmd=arguments[0],cm,cp,ci; switch(cmd){ case 0: break; case 1: cm=stgFlashMenu(arguments[1]); if(cm.iClickShow==1){ cm.iClickShow=3; } cp=cm.aPopups[arguments[2]]; cp.fbOnShow(); break; case 2: window.status=arguments[1]; break; case 3: cm=stgFlashMenu(arguments[1]); cp=cm.aPopups[arguments[2]]; ci=0; for(var i=0;i<cp.aItems.length;++i){ if(cp.aItems[i].sId==arguments[3]){ ci=cp.aItems[i]; break; } } if(ci){ ci._isOv=true; ci.fbFireEnt("mouseover",{x:arguments[4],y:arguments[5],w:arguments[6],h:arguments[7]}); } break; case 4: break; case 5: window.status=""; break; case 6: cm=stgFlashMenu(arguments[1]); cp=cm.aPopups[arguments[2]]; ci=cp.aItems[arguments[3]]; ci._isOv=false; ci.fbFireEnt("mouseout"); break; case 7: break; case 8: break; case 9: var r=_STNS.UI.CUIFlashMenu.fdmGetPopupInfo(arguments[1],arguments[2]); return r; case 10: if(arguments[1]&&arguments[2]&&typeof (arguments[1])=="string"&&arguments[2].constructor==Array){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(arguments[1]); if(!swf){ alert("Can't get swf object,please check swf id(ie)/name(firefox)!"); return; } cm=new _STNS.UI.CUIFlashMenu; if(swf.tagName.toLowerCase()=="embed"){ cm.sSWFPath=swf.src; }else{ if(swf.tagName.toLowerCase()=="object"){ cm.sSWFPath=swf.movie; } } cm.iClickShow=(arguments[6]=="ClickOnce")?1:(arguments[6]=="ClickEveryTime")?2:0; cm.sId=arguments[1]; for(var i=0;i<arguments[2].length;i++){ cp=new _STNS.UI.CUIFlashPopup; cp.iNid=i; cp.oParMenu=cm; cp.sId=i?cp.sUid:cm.sId; for(var j=0;j<arguments[7].length;j++){ if(cp.sId==arguments[7][j]){ cp.iShow=1; break; } } cp.iParPopupId=arguments[2][i].paMenu; cp.iParItemId=arguments[2][i].paItem; if(cm.aPopups[cp.iParPopupId]){ for(var j=0;j<cm.aPopups[cp.iParPopupId].aItems.length;j++){ if(cm.aPopups[cp.iParPopupId].aItems[j].sId==cp.iParItemId){ cp.oParItem=cm.aPopups[cp.iParPopupId].aItems[j]; cm.aPopups[cp.iParPopupId].aItems[j].oSubPopup=cp; cp.oParPopup=cm.aPopups[cp.iParPopupId]; break; } } } cp.fbAttachEnt("mouseover",cp.fbSetOver); cp.fbAttachEnt("mouseout",cp.fbSetOut); for(var j=0;j<arguments[2][i].items.length;j++){ ci=new _STNS.UI.CUIFlashItem; ci.iNid=j; ci.fbAttachEnt("mouseover",ci.fbShowSub); ci.fbAttachEnt("mouseout",ci.fbHideSub); ci.fbAttachEnt("mouseover",ci.fbHideBrother); ci.oParPopup=cp; ci.oParMenu=cm; ci.sId=arguments[2][i].items[j].id; cp.aItems.push(ci); } cm.aPopups.push(cp); } _STNS._aFlashMenus.push(cm); return 1; } break; case 11: var cm=stgFlashMenu(arguments[1]); if(cm){ for(var i=0;i<arguments[2].length;i++){ var cp; if(i>=cm.aPopups.length){ cp=new _STNS.UI.CUIFlashPopup; cm.aPopups.push(cp); }else{ cp=cm.aPopups[i]; } cp.iNid=i; cp.oParMenu=cm; cp.sId=i?cp.sUid:cm.sId; cp.iParPopupId=arguments[2][i].paMenu; cp.iParItemId=arguments[2][i].paItem; if(cm.aPopups[cp.iParPopupId]){ for(var j=0;j<cm.aPopups[cp.iParPopupId].aItems.length;j++){ if(cm.aPopups[cp.iParPopupId].aItems[j].sId==cp.iParItemId){ cp.oParItem=cm.aPopups[cp.iParPopupId].aItems[j]; cm.aPopups[cp.iParPopupId].aItems[j].oSubPopup=cp; cp.oParPopup=cm.aPopups[cp.iParPopupId]; break; } } } cp.fbDetachAll(); cp.fbAttachEnt("mouseover",cp.fbSetOver); cp.fbAttachEnt("mouseout",cp.fbSetOut); for(var j=0;j<arguments[2][i].items.length;j++){ var ci; if(j>=cp.aItems.length){ ci=new _STNS.UI.CUIFlashItem; cp.aItems.push(ci); }else{ ci=cp.aItems[j]; } ci.iNid=j; ci.fbDetachAll(); ci.fbAttachEnt("mouseover",ci.fbShowSub); ci.fbAttachEnt("mouseout",ci.fbHideSub); ci.fbAttachEnt("mouseover",ci.fbHideBrother); ci.oParPopup=cp; ci.oParMenu=cm; ci.sId=arguments[2][i].items[j].id; } } } break; case 12: var _111; var cm=stgFlashMenu(arguments[1]); if(cm){ _111=cm.aPopups[arguments[2]]; } if(_111){ var e=_STNS.UI.CUIFlashMenu.fdmGetSWF(_111.sId); if(e){ e.width=arguments[3]+"px"; e.height=arguments[4]+"px"; } if(_111._isWaitingShow){ _111.fbShowSelf(); } } break; case 13: break; case 14: break; case 15: var _111; var cm=stgFlashMenu(arguments[1]); if(cm){ _111=cm.aPopups[arguments[2]]; } if(_111){ if(_111._isWaitingHide){ _111.fbOnHide(); _111._isWaitingHide=false; }else{ } } break; case 16: break; case 17: return stgFlashMenu(arguments[1]).iClickShow==1; default: } } with(_STNS.UI){ _STNS.UI.CUIFlashMenu=_STNS.Class(_STNS.UI.CUIObj); CUIFlashMenu.register("UI/CUIObj>CUIFlashMenu"); CUIFlashMenu.construct=function(){ this.bHasInited=false; this.bIsAutoSc=true; this.iDelaySV=100; this.iDelaySH=0; this.iDelayHd=1000; this.sId=0; this.aPopups=[]; this.sSWFPath=""; this.iClickShow=0; this.iX=0; this.iY=0; this.iType=0; with(_STNS.UI.CUIFlashMenu){ this.fsToXML=fsToXML; this.foGetPopupById=foGetPopupById; this.fvSsc=fvSsc; this.fvMvto=fvMvto; this.fnGsp=fnGsp; } }; CUIFlashMenu.fvSsc=function(){ if(typeof (this.fvMvto)=="undefined"||!_STNS.bLoaded){ return; } var xy=[eval(this.iX),eval(this.iY)],xs,ys; var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(this.sId); var pos=[parseInt(swf.style.left),parseInt(swf.style.top)]; var dx=xy[0]-pos[0],dy=xy[1]-pos[1]; if(dx||dy){ xs=this.fnGsp(Math.abs(dx)); ys=this.fnGsp(Math.abs(dy)); var x=dx>0?pos[0]+xs:pos[0]-xs,y=dy>0?pos[1]+ys:pos[1]-ys; this.fvMvto([x,y]); } }; CUIFlashMenu.fnGsp=function(d){ if(d<5){ return d; } return Math.round(d/2); }; CUIFlashMenu.fvMvto=function(xy){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(this.sId); if(swf){ swf.style.left=xy[0]+"px"; swf.style.top=xy[1]+"px"; } }; CUIFlashMenu.foGetPopupById=function(id){ for(var i=0;i<this.aPopups.length;++i){ if(this.aPopups[i].sId==id){ return this.aPopups[i]; } } }; CUIFlashMenu.fsToXML=function(){ var s="\n<menu id="+this.sId+">\n"; for(var i=0;i<this.aPopups.length;i++){ s+="\t<popup id="+this.aPopups[i].sId+" ppid="+this.aPopups[i].iParPopupId+" piid="+this.aPopups[i].iParItemId+">\n"; for(var j=0;j<this.aPopups[i].aItems.length;j++){ s+="\t\t<item id="+this.aPopups[i].aItems[j].sUid+">\n"; } s+="\t</popup>\n"; } s+="</menu>"; return s; }; CUIFlashMenu.fdmGetElesByName=function(n,w){ var w=w||window; return w.document.getElementsByName(n); }; CUIFlashMenu.fdmGetPopupInfo=function(fid,sid){ var o={},cp,ci; if(stgFlashMenu(fid)&&stgFlashMenu(fid).aPopups[sid]){ cp=stgFlashMenu(fid).aPopups[sid]; o.items=[]; for(var j=0;j<cp.aItems.length;j++){ ci={}; o.items.push(ci); } } return o; }; CUIFlashMenu.ftParseArgs=function(args){ var _12d={}; var re=/([0-9A-Za-z_]+)=([0-9A-Za-z_]+)/; var vars=args.split("&"); for(var i=0;i<vars.length;i++){ var tmp=re.exec(vars[i]); if(tmp){ _12d[tmp[1]]=tmp[2]; } } return _12d; }; CUIFlashMenu.faParsePopupId=function(sPid){ var _133=[]; var vars=sPid.split("_"); for(var i=0;i<vars.length;i++){ var tmp=vars[i].split("i"); if(isNaN(tmp[0])||tmp[1]&&isNaN(tmp[1])){ alert("Parse PopupId error:"+sPid); return; } _133[i]=[parseInt(tmp[0])]; if(tmp[1]){ _133[i][1]=parseInt(tmp[1]); } } return _133; }; CUIFlashMenu.fbDmEnt=function(e,o){ var oid=o.id?o.id:o.name,obj; if(obj=stgFlashMenu(oid)){ if(obj.instanceOf(_STNS.UI.CUIFlashMenu)){ return obj.aPopups[0].fbGetEnt(e,o); } } }; CUIFlashMenu.fdmGetSWF=function(id){ var e; if(_STNS.bIsIE){ e=_STNS.fdmGetEleById(id); }else{ if(_STNS.bIsFX){ e=_STNS.UI.CUIFlashMenu.fdmGetElesByName(id)[0]; }else{ var es=_STNS.UI.CUIFlashMenu.fdmGetElesByName(id); for(var i=0;i<es.length;i++){ if(es[i].tagName=="EMBED"){ e=es[i]; } } } } return e; }; CUIFlashMenu.faGetSWFPos=function(id){ var e=_STNS.UI.CUIFlashMenu.fdmGetSWF(id); if(e){ return _STNS.faGetElePos(e); }else{ return [0,0]; } }; _STNS.UI.CUIFlashPopup=_STNS.Class(_STNS.UI.CUIObj); CUIFlashPopup.register("UI/CUIObj>CUIFlashPopup"); CUIFlashPopup.construct=function(){ this.iZid=1000; this.sId=this.sUid; this.iNid=-1; this.iWidth=1; this.iHeight=1; this._tTid=0; this.aItems=[]; this.oParMenu=0; this.oParPopup=0; this.oParItem=0; this.iParPopupId=-1; this.iParItemId=-1; this.iType=0; this.iDirect=4; this._isOv=false; this._isSh=false; this._isWaitingHide=false; this._isWaitingShow=false; this.iShow=0; with(_STNS.UI.CUIFlashPopup){ this.fsGetHTML=fsGetHTML; this.fbCreate=fbCreate; this.fbShow=fbShow; this.fbOnShow=fbOnShow; this.faGetXY=faGetXY; this.fbHide=fbHide; this.fbOnHide=fbOnHide; this.fbGetEnt=fbGetEnt; this.fbSetOver=fbSetOver; this.fbSetOut=fbSetOut; this.fbAppendChild=fbAppendChild; this.fbHideX=fbHideX; this.fbShowSelf=fbShowSelf; this.fvMoveSelf=fvMoveSelf; } }; CUIFlashPopup.fbAppendChild=function(it){ }; CUIFlashPopup.fbGetEnt=function(e,o){ var et=e.type||e,oid=o.id,_r=_STNS; with(this){ switch(et){ case "mouseover": if(!this._isOv&&((_r.bIsIE&&e.srcElement&&_r.fbIsPar(o,e.srcElement))||(!_r.bIsIE&&e.target&&_r.fbIsPar(o,e.target)))){ this._isOv=true; return fbFireEnt("mouseover"); } break; case "mouseout": if(this._isOv&&((_r.bIsIE&&(!e.toElement||!_r.fbIsPar(o,e.toElement)))||!_r.bIsIE&&(!e.relatedTarget||!_r.fbIsPar(o,e.relatedTarget)))){ this._isOv=false; return fbFireEnt("mouseout"); } break; default: return fbFireEnt(et); } } return true; }; CUIFlashPopup.fsGetHTML=function(){ with(this){ return "<div "+"style=\"position:absolute;left:0px;top:0px;z-index:"+iZid+";\" "+"id=\""+sId+"_dv\""+">"+"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" "+"width=\""+iWidth+"\" height=\""+iHeight+"\" "+"onmouseout=\"_STNS.UI.fbDmEnt(event,this)\" "+"onmouseover=\"_STNS.UI.fbDmEnt(event,this)\" "+"id=\""+sId+"\""+">"+"<param name=\"movie\" value=\""+oParMenu.sSWFPath+"\">"+"<param name=\"quality\" value=\"high\">"+"<param name=\"wmode\" value=\"Opaque\">"+"<param name=\"allowScriptAccess\" value=\"sameDomain\">"+"<param name=\"flashvars\" value=\"flashid="+oParMenu.sId+"&menuId="+iNid+"\">"+"<embed pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" "+"onmouseout=\"_STNS.UI.fbDmEnt(event,this)\" "+"onmouseover=\"_STNS.UI.fbDmEnt(event,this)\" "+"allowScriptAccess=\"sameDomain\" "+"src=\""+oParMenu.sSWFPath+"\" "+"quality=\"high\" "+"width=\""+iWidth+"\" height=\""+iHeight+"\" "+"name=\""+sId+"\" "+"wmode=\"Opaque\" "+"flashvars=\"flashid="+oParMenu.sId+"&menuId="+iNid+"\"/>"+"</object>"+"</div>"; } }; CUIFlashPopup.fbCreate=function(w){ if(!w){ w=window; } var d=w.document; try{ _STNS.fbInsHTML(d.body,"beforeEnd",this.fsGetHTML()); return true; } catch(e){ return false; } }; CUIFlashPopup.fbShow=function(d){ if(this.oParMenu.iClickShow==1||this.oParMenu.iClickShow==2){ return; } this._isWaitingShow=false; this._isWaitingHide=false; if(this.iNid==0){ return; } clearTimeout(this._tTid); if(!d){ return this.fbOnShow(); }else{ this._tTid=setTimeout(this.sSelf+".fbShow()",d); } return true; }; CUIFlashPopup.fbOnShow=function(){ if(this._isSh){ return true; } var e,f=false,_r=_STNS,w=window; if(!_r.fdmGetEleById(this.sId,w)){ this._isWaitingShow=true; this.fbCreate(w); this.fvMoveSelf(); return true; }else{ this.fbShowSelf(); } return true; }; CUIFlashPopup.fvMoveSelf=function(){ var e=_STNS.fdmGetEleById(this.sId+"_dv",window); if(e){ var pos=this.faGetXY(); e.style.left=pos[0]+"px"; e.style.top=pos[1]+"px"; } }; CUIFlashPopup.fbShowSelf=function(){ var e=_STNS.fdmGetEleById(this.sId+"_dv",window); this._isWaitingShow=false; if(e){ var pos=this.faGetXY(); e.style.left=pos[0]+"px"; e.style.top=pos[1]+"px"; e.style.visibility="visible"; } this._isSh=true; var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(this.sId); if(swf.SFMSWFcmd){ swf.SFMSWFcmd(13); } }; CUIFlashPopup.faGetXY=function(){ if(this.oParPopup){ var xy=_STNS.UI.CUIFlashMenu.faGetSWFPos(this.oParPopup.sId); if(this.oParPopup.iNid==0){ return [xy[0]+this.oParItem._ix,xy[1]+this.oParItem._iy+this.oParItem._ih]; }else{ return [xy[0]+this.oParItem._ix+this.oParItem._iw,xy[1]+this.oParItem._iy]; } } return [0,0]; }; CUIFlashPopup.fbHide=function(d){ return false; this._isWaitingHide=false; if(this.iNid==0||this.iShow==1||this.oParItem&&this._isOv){ return true; } var _r=_STNS; clearTimeout(this._tTid); if(!d){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(this.sId); if(this._isWaitingShow==true){ this._isSh=true; this.fbOnHide(); }else{ if(swf){ this._isWaitingHide=true; if(swf.SFMSWFcmd){ swf.SFMSWFcmd(14); } } } }else{ this._tTid=setTimeout(this.sSelf+".fbHide()",d); } return true; }; CUIFlashPopup.fbOnHide=function(){ if(!this._isSh){ return true; } this._isWaitingShow=false; this._isWaitingHide=false; var e,_r=_STNS,w=window; if(e=_r.fdmGetEleById(this.sId+"_dv",w)){ e.style.left=0+"px"; e.style.top=-9999+"px"; e.style.visibility="hidden"; } this._isSh=false; if(this.oParMenu.iClickShow==3){ var a=0; for(var i=0;i<this.oParMenu.aPopups.length;i++){ if(this.oParMenu.aPopups[i]._isSh){ a=1; break; } } if(!a){ oParMenu.iClickShow=1; } } }; CUIFlashPopup.fbHideX=function(d){ var a=0; for(var i=0;i<this.aItems.length;i++){ if(this.aItems[i].oSubPopup&&this.aItems[i].oSubPopup._isSh){ this.aItems[i].oSubPopup.fbHideX(d); a=1; break; } } if(!a){ p=this; while(p){ if(p._isOv){ break; } p.fbHide(d); p=p.oParPopup; } } return true; }; CUIFlashPopup.fbSetOver=function(){ p=this; while(p){ p.fbShow(); p=p.oParPopup; } return true; }; CUIFlashPopup.fbSetOut=function(){ this.fbHideX(this.oParMenu.iDelayHd); return true; }; _STNS.UI.CUIFlashItem=_STNS.Class(_STNS.UI.CUIObj); CUIFlashItem.register("UI/CUIObj>CUIFlashItem"); CUIFlashItem.construct=function(){ this.oSubPopup=0; this.oParMenu=0; this.oParPopup=0; this._ix=0; this._iy=0; this._iw=0; this._ih=0; this.sId=this.sUid; with(_STNS.UI.CUIFlashItem){ this.fbShowSub=fbShowSub; this.fbHideSub=fbHideSub; this.fbHideBrother=fbHideBrother; } }; CUIFlashItem.fbShowSub=function(as){ this._ix=as["x"]; this._iy=as["y"]; this._iw=as["w"]; this._ih=as["h"]; this._isOv=false; if(this.oSubPopup){ this.oSubPopup.fbShow(this.oParMenu.iDelaySV); } return true; }; CUIFlashItem.fbHideSub=function(){ if(this.oSubPopup&&!this.oSubPopup._isOv){ this.oSubPopup.fbHide(this.oParMenu.iDelayHd); } return true; }; CUIFlashItem.fbHideBrother=function(){ for(var i=0;i<this.oParPopup.aItems.length;i++){ if(i!=this.iNid&&this.oParPopup.aItems[i].oSubPopup&&this.oParPopup.aItems[i].oSubPopup._isSh){ this.oParPopup.aItems[i].oSubPopup.fbHideX(0); break; } } return true; }; } } var _SFMTip={obj:null,tid:0,isReady:false,lockMouse:false}; var _SFMMSPos=[0,100]; var idx=0; colors=["red","blue","pink","white","gray","green"]; function SFMHideTip(fid){ if(_SFMTip.obj!=null){ if(!_SFMTip.obj.SFMSetTip){ return false; } _SFMTip.obj.style.width=1+"px"; _SFMTip.obj.style.height=1+"px"; } } function SFMTipIsReady(){ _SFMTip.isReady=true; return true; } function SFMSetTip(fid,str){ if(_SFMTip.obj==null){ _SFMTip.obj=_STNS.UI.CUIFlashMenu.fdmGetSWF("STFlashMentTip"); } SFMShowTip(fid,str); } function SFMSetTipSize(fid,w,h){ if(_SFMTip.obj!=null){ var x=_SFMMSPos[0]; var y=_SFMMSPos[1]; var pl=stgcl(); var pw=stgcw(); if(x+w>pl+pw){ _SFMMSPos[0]=(pl+pw-w); _SFMTip.obj.style.left=_SFMMSPos[0]+"px"; } _SFMTip.obj.style.width=w+"px"; _SFMTip.obj.style.height=h+"px"; } } function SFMShowTip(fid,str){ _SFMTip.lockMouse=true; SFMHideTip(fid); if(str==""){ return; } if(_SFMTip.isReady){ _SFMTip.obj.SFMSetTip(str); _SFMTip.obj.style.left=_SFMMSPos[0]+"px"; _SFMTip.obj.style.top=_SFMMSPos[1]+"px"; clearTimeout(_SFMTip.tid); _SFMTip.tid=setTimeout("SFMHideTip('"+fid+"')",3000); }else{ _SFMTip.tid=setTimeout("SFMShowTip('"+fid+"','"+str+"')",1500); } _SFMTip.lockMouse=false; } function showFloatFlashMenuAt(n,x,y){ var m; if(m=stgFlashMenu(n)){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(n); m.iX=x; m.iY=y; swf.style.left=x+"px"; swf.style.top=y+"px"; swf.style.visibility=""; } } function stgFlashMenu(n){ for(var j=0;j<_STNS._aFlashMenus.length;j++){ if(_STNS._aFlashMenus[j].sId==n){ return _STNS._aFlashMenus[j]; } } return false; } function stgcl(w){ return _STNS.fiGetCL(w); } function stgct(w){ return _STNS.fiGetCT(w); } function stgcw(w){ return _STNS.fiGetCW(w); } function stgch(w){ return _STNS.fiGetCH(w); } function SFMInitMenu(arg){ var fid=arg[0]; var type=parseInt(arg[1]); var m=stgFlashMenu(fid); if(!m){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(fid); if(!swf){ return true; } var cm=new _STNS.UI.CUIFlashMenu; cm.sId=fid; cm.iType=type; if(swf.tagName.toLowerCase()=="embed"){ cm.sSWFPath=swf.src; }else{ if(swf.tagName.toLowerCase()=="object"){ cm.sSWFPath=swf.movie; } } var cp=new _STNS.UI.CUIFlashPopup; cp.iNid=0; cp.oParMenu=cm; cp.sId=cm.sId; cm.aPopups.push(cp); _STNS._aFlashMenus.push(cm); } if(_STNS.bIsIE){ document.attachEvent("onmousemove",function(){ if(!_SFMTip.lockMouse){ _SFMMSPos=_STNS.faCP2PP([event.clientX,event.clientY+11]); } }); }else{ document.addEventListener("mousemove",function(e){ if(!_SFMTip.lockMouse){ _SFMMSPos=[e.pageX,e.pageY+11]; } },false); } switch(type){ case 0: case 1: var f=false; if(typeof arg[2]!="undefined"){ if(isNaN(parseInt(arg[2]))){ cm.iX=arg[2]; f=true; if(swf.style.left==""){ swf.style.left=0+"px"; } }else{ cm.iX=arg[2]; swf.style.left=arg[2]+"px"; } } if(typeof arg[3]!="undefined"){ if(isNaN(parseInt(arg[3]))){ cm.iY=arg[3]; f=true; if(swf.style.top==""){ swf.style.top=0+"px"; } }else{ cm.iY=arg[3]; swf.style.top=arg[3]+"px"; } } cm.bIsAutoSc=f; if(f){ _STNS.fvAddCk(new Function("stgFlashMenu('"+fid+"').fvSsc()")); } break; case 2: swf.style.position="absolute"; swf.style.left="0px"; swf.style.top="1px"; swf.style.visibility="hidden"; break; case 3: swf.style.position="absolute"; swf.style.left="0px"; swf.style.top="1px"; swf.style.visibility="hidden"; var ttid=0; swf.onmouseout=function(){ clearTimeout(ttid); ttid=setTimeout("SFMHideFlashMenu('"+fid+"')",1500); }; swf.onmouseover=function(){ clearTimeout(ttid); }; document.oncontextmenu=function(e){ clearTimeout(ttid); var s,pos; if(_STNS.bIsIE){ e=window.event; pos=_STNS.faCP2PP([e.clientX,e.clientY]); }else{ pos=[e.pageX,e.pageY]; } cm.iX=pos[0]; cm.iY=pos[1]; swf.style.left=pos[0]+"px"; swf.style.top=pos[1]+"px"; swf.style.visibility="visible"; window.status=pos; ttid=setTimeout("SFMHideFlashMenu('"+fid+"')",1500); return false; }; break; } return true; } function SFMHideFlashMenu(fid){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(fid); if(swf){ swf.style.visibility="hidden"; } } function SFMSetSize(fid,w,h){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(fid); if(swf){ var dx,dy,x,y; var menu=stgFlashMenu(fid); swf.wmode="window"; swf.style.width=Math.ceil(w)+"px"; swf.style.height=Math.ceil(h)+"px"; swf.wmode="transparent"; if(arguments[3]){ swf.style.left=(parseInt(swf.style.left)+arguments[3])+"px"; if(menu.iType==1&&menu.bIsAutoSc){ menu.iX=menu.iX+"+("+arguments[3]+")"; } } if(arguments[4]){ swf.style.top=(parseInt(swf.style.top)+arguments[4])+"px"; if(menu.iType==1&&menu.bIsAutoSc){ menu.iY=menu.iY+"+("+arguments[4]+")"; } } if(menu.iType==0&&!menu.bHasInited){ var e=_STNS.fdmGetEleById(menu.sId+"_dv"); if(e){ e.style.width=w+"px"; e.style.height=h+"px"; } } menu.bHasInited=true; } return true; } function SFMGetOffset(fid){ var swf=_STNS.UI.CUIFlashMenu.fdmGetSWF(fid); if(swf){ var dx,dy,xy; xy=_STNS.faGetElePos(swf); dx=stgcl()-xy[0]; dy=stgct()-xy[1]; return [dx,dy]; } return [0,0]; } function SFMGetCW(id){ var xy=_STNS.UI.CUIFlashMenu.faGetSWFPos(id); return _STNS.fiGetCW()+_STNS.fiGetCL()-xy[0]; } function SFMGetCH(id){ var xy=_STNS.UI.CUIFlashMenu.faGetSWFPos(id); return _STNS.fiGetCH()+_STNS.fiGetCT()-xy[1]; } function SFMGetHref(t){ var str=""; switch(t){ case "_top": str=window.top.location.href; break; case "_blank": str=window.location.href; break; case "_parent": str=window.parent.location.href; break; case "_self": str=window.location.href; break; default: if(window.top.frames[t]){ str=window.top.frames[t].location.href; }else{ var fm=DFMGetFm(window.top.frames,t); if(fm){ str=fm.location.href; } } } return encodeURI(decodeURI(str)); } function DFMGetFm(fs,n){ if(fs[n]){ return fs[n]; } var i=fs.length-1; while(i>=0){ var fm=DFMGetFm(fs[i].frames,n); if(fm){ return fm; } i--; } } function SFMGetFlashHTML(o){ var s=""; if(o.position.toLowerCase()=="static"){ o.left=0; o.top=0; s="<div class='stdv' style='left:0px;top:0px;position:relative;width:"+o.width+"px;height:"+o.height+"px;' id='"+o.id+"_dv'>"; } var wmod="transparent"; if(_STNS.bIsIE){ s+="<object "+"style=\""+"position:absolute;"+"z-index:10000;"+"left:"+o.left+"px;"+"top:"+o.top+"px;"+"clear:"+o.clear+";"+"width:"+o.width+"px;"+"height:"+o.height+"px;"+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+"id=\""+o.id+"\""+">"+"<param name=\"movie\" value=\""+o.src+"\">"+"<param name=\"quality\" value=\"high\">"+"<param name=\"menu\" value=\"false\">"+"<param name=\"wmode\" value=\""+wmod+"\">"+"<param name=\"flashvars\" value=\""+o.vars+"\">"+"<param name=\"allowScriptAccess\" value=\"sameDomain\">"+"</object>"; }else{ s+="<embed style=\""+"position:absolute;"+"z-index:10000;"+"left:"+o.left+"px;"+"top:"+o.top+"px;"+"clear:"+o.clear+";"+"width:"+o.width+"px;"+"height:"+o.height+"px;"+"\" "+"src=\""+o.src+"\" "+"wmode=\""+wmod+"\" "+"quality=\"high\" "+"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" "+"name=\""+o.id+"\" "+"menu=\"false\" "+"flashvars=\""+o.vars+"\" "+"allowScriptAccess=\"sameDomain\" />"; } if(o.position.toLowerCase()=="static"){ s+="</div>"; } return s; } function SFMOnlyPointer(){ if(_STNS.oNav.name=="chrome"||_STNS.oNav.platform=="linux"){ return true; } return false; }
