1 |
- document.domain.indexOf("1473.cn")>-1&&(document.domain="1473.cn");var Namespace={register:function(d){var c,b=window,e=d.split("."),a=_SN="";for(c=0;c<e.length;c++){if(b[e[c]]==null){b[e[c]]=new function(){};}b=b[e[c]];}},Add:function(b,c){for(var a in c){if(c.hasOwnProperty(a)){b[a]=c[a];}}}};var US={userinfo:{},Disk:{},Blog:{},PB:{},Friend:{},NLInfo:{},G:{}};Namespace.Add(US,{"LoginID":0,"ITID":"","fs":"http://fs.1473.cn/","afs":"http://appfs.1473.cn/","PID":"1e0742d8-737e-46e2-b03b-2f23ca8c1f17","ms":"http://www.1473.cn/","FG":"f6d7a4b6-e34c-4964-beed-24187b2cb1ba","DG":"7aeaab56-485f-4150-b781-8ffd86d593ce","PG":"93553847-e299-464c-a0e2-c15872efb6ae","SG":"9639aba6-03eb-443c-be4e-f0c8d24767f5","MG":"8a2135ff-746a-43a8-97b8-552d228a00bb","VG":"bf21bf7a-1e95-4194-8e4a-e9334d7d998d","ER":"http://www.1473.cn/img/error.png","Height":window.screen.availHeight,"Width":window.screen.availWidth,"NU":"00000000-0000-0000-0000-000000000000","ZV":6});Namespace.Add(US.PB,{"TZGG":{},"YJF":"3c779543-bc1a-4851-af22-af9ba97a5f33","cp":"28d8089d-ee85-4f9b-b1b6-8c1d8ccff719","ns":"8b19f836-b2b6-4551-9ca5-72cdfce78364","pe":"e1c047a7-6896-474c-8424-de64a24fcd78","ie":"ceec8965-79bf-4670-b80b-27de1eba6288","li":"1346e7d2-afee-4f40-a17f-1abd86e3d77f","tr":"72f1cec4-cea5-49f5-bd62-2afac391f586","sc":"15d04a6c-ab10-44cd-ac8a-850624244a1b","zh":""});US.PB.Category=[US.PB.cp,US.PB.ns,US.PB.pe,US.PB.ie,US.PB.tr,US.PB.sc];Namespace.Add(US.PB.TZGG,{"all":"099a06fe-073b-4426-aa20-7703aa94322e","oper":"37590de6-e3df-4272-bff6-39414f7141d8","deve":"57dac622-1570-4269-89ed-d4e7b9d9ca4a"});US.PB.News=null;Namespace.register("U.Extend");var win=window,doc=document;var $$=function(e,b,d){d=d||"";(d&&(!d.length))&&(d=[d]);var c,a,f=d.length||1;for(c=0;c<f;c++){a=(d[c]?(d[c].ownerDocument||d[c]):doc).createElement(e);(b)&&($(a).addAttrArray(b));(d[c])&&(d[c].appendChild(a));}return a;};var $=U.Extend=function(b,a){return new U.Extend.fn.init(b,a);};U.Extend.fn=U.Extend.prototype={constructor:U.Extend,Screenwidth:function(){return US.Width;},Screenheight:function(){return US.Height;},init:function(k,g){k=k||doc;g=g||doc;if(typeof k==="string"){var f,e,a,d,l=/[~|#|.|&|:|>|@|*|=]/g,b=/[^(~|#|.|&|:|>|@|*|=)]+/g,c=(k.match(l)||[]),h=k.match(b)||["*"];(h.length>c.length)&&(c.unshift(""));for(f=0;f<h.length;f++){switch(c[f]){case"~":a=g.getElementsByName(h[f]);break;case"#":a=a==null?doc.getElementById(h[f]):a[h[f]];break;case".":d=[];a=a||(g.length!=null?g:(g.getElementsByClassName?(d=g.getElementsByClassName(h[f])):g.getElementsByTagName("*")));if(!d.length){for(e=0;e<a.length;e++){(a[e].className==h[f])&&(d.push(a[e]));}}a=d;break;case"":case"&":a=(a||g).getElementsByTagName(h[f]);break;case":":a=g.getElementsByTagName("tr");d=[];if(a.length){for(e=0;e<a.length;e++){if(h[f]=="even"&&e%2==0){d.push(a[e]);}else{if(e%2!=1){d.push(a[e]);}}}a=d;}break;case"@":a=a||g.getElementsByTagName("*");d=[];for(e=0;e<a.length;e++){if(c[f+1]=="="){if(a[e].getAttribute(h[f])==h[f+1]||(a[e][h[f]]&&a[e][h[f]].toString()==h[f+1])){d.push(a[e]);}}else{if(a[e].getAttribute(h[f])!=null){d.push(a[e]);}}}a=d;break;case"*":if(document.embeds&&(a=document.embeds[h[f]])){}else{if((a=window.document[h[f]])){}else{a=doc.getElementById(h[f]);}}break;default:break;}}}else{a=k;}if(a&&!(a instanceof Array&&a[0]==null)){if(a.length==null||a.id!=null){a=[a];}for(f=0;f<a.length;f++){this[f]=a[f];(a[f].id!="")&&(this[a[f].id]=a[f]);}this.context=g;this.length=a.length;}return this;},extend:function(b){for(var a in b){this[a]=b[a];}return this;}};U.Extend.fn.init.prototype=U.Extend.fn;U.Extend.fn.extend({Child:function(a){a=a||0;return U.M.GTCN(this[a].childNodes);},Parent:function(d,b){var c,a=this[b||0];d=d||1;if(typeof d=="number"){for(c=0;c<d;c++){a=a.parentNode;}}else{a=U.M.GTPN(a,d);}return a;},remove:function(b){var a,c=b=b||0,d=(b||this.length-1)+1;for(c=0;c<d;c++){a=this[c];a.parentNode.removeChild(a);}},animate:function(w,n,e){var t,s,r,q,c,m,l=this,x=0,o={},b=/%/,p=/[0-9]/,f=/[^a-z]/ig,u=U.CI.getBrowser(),h=!((u.browser=="msie"&&(u["ver"]=="7.0"||u["ver"]=="8.0"))&&n!=2222);for(t=0;t<this.length;t++){for(s in w){if(w.hasOwnProperty(s)){if((c=p.test(w[s]))&&h){o[s]=this.css(s,null,t);m=true;_UDE=[b.test(o[s]),b.test(w[s])];if(_UDE[0]!=_UDE[1]){q=_UDE[0]?o:w;q[s]=(this[t].parentNode["offset"+(s[0].toUpperCase()+s.substr(1))]*(parseFloat(q[s])/100))+"px";}o[s]=parseFloat((o[s]=="auto"||o[s]==null)?0:o[s]);}else{if(!c){this.css(s,w[s]);delete w[s];}}}}}if(m){var g,v,d,a;h=setInterval(function(){x+=10;for(t=0;t<l.length;t++){for(s in w){if(w.hasOwnProperty(s)){g=o[s];v=parseFloat(w[s]);d=(v-g)/n,a=w[s].replace(f,"");l.css(s,(g+(d*x))+a,t);}}}if(x>=n){window.clearInterval(h);(e)&&(e());}},10);}else{setTimeout(function(){l.addAttrArray({"style":w});(e)&&(e());},0);}return this;},css:function(f,e,b){if(f){var d,a,c=false;if(e){a=b+1||this.length;d=b||0;c=e;for(;d<a;d++){this[d].style[f]=e;}}else{b=b||0;c=U.M.GetStyle(this[b],f);}}return c;},addAttrArray:function(a,g){if(this.length>0){var d,c,e,b,f=g||0,h=g+1||this.length,l=U.CI.getBrowser().ver;for(;f<h;f++){for(d in a){if(a.hasOwnProperty(d)){e=a[d];if(typeof e!="object"){if(this[f][d]===undefined&&this[f].setAttribute){this[f].setAttribute(d,e);(this[f][d]==null)&&(this[f][d]=e);}else{this[f][d]=e;(this[f][d]==null)&&(this[f].setAttribute(d,e));}}else{if(e!=null){if(U.M.GetType(e)=="Array"){if(typeof e[0]=="function"){e=[e];}this[f][d]=U.M.apply(this[f],e);}else{for(c in e){if(e.hasOwnProperty(c)){this[f][d][c]=((c=="cssText"&&e[c])?this[f][d][c]+";":"")+e[c];}}}}else{this[f][d]=e;}}}}}return this;}},GetElementInfo:function(a){return U.M.GetElementInfo(this[a||0]);}});Namespace.register("U.CI");U.CI.ua=navigator.userAgent.toLowerCase();var browser={};browser.msie=/(;|\()(\s+|)(ms|)ie(\s+|)(\d+)\.(\d+)/gi.test(U.CI.ua);browser.ver=U.CI.ua.match(/(msie|firefox|chrome|ipad|iphone|safari|opera|version|rv).*?([\d.]+)/)[0];browser.firefox=(/firefox\/([\d.]+)/).test(U.CI.ua);browser.chrome=(/chrome\/([\d.]+)/).test(U.CI.ua);browser.lb=U.CI.ua.indexOf("lbbrowser")>-1;U.CI.GCInfo=function(){U.CI.IEedition();};U.CI.GCUInfo=function(a){if(US.NLInfo["country"]){a();}else{U.MD.DynamicLoad("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js","js",[[U.CI.AsyGCUInfo,([a])]]);}};U.CI.AsyGCUInfo=function(a){try{_$(US.NLInfo).Add(remote_ip_info);US.NLInfo.LogAddr=remote_ip_info["country"]+remote_ip_info["province"]+remote_ip_info["city"]+remote_ip_info["district"]+remote_ip_info["isp"]+remote_ip_info["type"];}catch(b){return;}a&&a();};U.CI.getBrowser=function(){var a=U.CI.ua.match(/(msie|firefox|chrome|ipad|iphone|safari|opera|version|rv).*?([\d.]+)/);return{"browser":a[1],"ver":a[2]};};U.CI.IEedition=function(){var b=U.CI.getBrowser();var a=U.CI.getSystem();if(b.browser=="ipad"){U.CI.Ipad();}if(b.browser=="iphone"){}if(b.browser=="firefox"){$("#UD_CI_getBrowser")[0].style.display="block";}};U.CI.Win=function(b,a){if(!browser.lb&&b.browser=="msie"&&b.ver!="10.0"){_UHF=US.fs+"c181e980-d781-4fef-bb45-a3ccabdd911a.msi";_UIH="云端";U.CI.WinDIs(_UHF,_UIH);}};U.CI.WinDIs=function(d,c){var a,b=document.createDocumentFragment();a=$$("div",{"id":"UD_CI_BAlert","className":"UD_CI_BAlert"},b);$$("div",{"className":"UD_CI_Warn"},a);$$("div",{"className":"UD_CI_Text","innerHTML":"您使用的浏览器版本过低建议您下载"},a);$$("a",{"className":"UD_CI_DL","href":d,"innerHTML":c},a);$$("a",{"className":"UD_CI_Text_Click","href":"javascript:void(0);","onclick":U.M.apply(a,"retElement.style.display = 'none';"),"innerHTML":"我知道了"},a);document.body.appendChild(a);setTimeout(U.M.apply(a,[[U.CI.SetUserD,(["retElement"])]]),10000);};U.CI.XZWin=function(b,a){U.UP.uploading([$$("input",{"type":"text","value":a,"name":"filename"}),$$("input",{"type":"text","value":b,"name":"filepath"})],null,null,"http://disk.1473.cn/USupfile.ashx?iframename=apk",false);};U.CI.SetUserD=function(a){$(a).addAttrArray({"style":{"display":"block"}}).animate({"top":"80px","left":US.Width/1.7+"px"},400);};U.CI.Ipad=function(){document.ontouchmove=U.M.StopDefault;};U.CI.getSystem=function(){var d="未知",e,c;var a=navigator.platform;var f={"Windows NT 5.1":"WinXP","Windows NT 6.1":"Win7","Windows NT 6.0":"Windows Server 2008","Windows NT 6.2":"Win8","Windows NT 5.2":"Windows Server 2003","Windows NT 5.0":"Win2000","Win 9x 4.90":"WinME"};var b={"Apple series":"Mac68K,MacPPC,Macintosh","Unix series":"X11"};for(e in f){if(U.CI.ua.indexOf(e.toLowerCase())>-1){return f[e].toLowerCase();}}for(c in b){if(a.indexOf(b[c])>-1){return c;}}return d;};U.CI.IsHF=function(){var a=false;if(!(a=navigator.plugins["Shockwave Flash"])){if(ActiveXObject){a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}}return a;};U.CI.IsHFF=function(){if(typeof(Worker)!=="undefined"){return true;}return false;};Namespace.register("U.M");Namespace.register("U.MC");U.M.HEPropert=function(c,f,d,a){var b=function(){return d.apply(this,[]);};var e=function(g){return a.apply(this,[g,f]);};if(Object.defineProperty){Object.defineProperty(c,f,{get:b,set:e});}else{if(c.__defineGetter__){c.__defineSetter__(f,e);c.__defineGetter__(f,b);}else{c[f]=b;c[f].toString=b;c.attachEvent("onpropertychange",function(){if(event.propertyName==f){c.detachEvent("onpropertychange",arguments.caller);e(c[f]);c[f]=b;c[f].toString=b;c.attachEvent("onpropertychange",arguments.caller);}});}}};U.M.Setprototype=function(a,d,c){if(typeof d=="object"){for(var b in d){a.prototype[b]=d[b];}}else{a.prototype[d]=c;}};U.M.GetMousep=function(a){var b={"scrollLeft":0,"offsetLeft":0,"scrollTop":0,"offsetTop":0};(a)&&(b=U.M.TOSP(a));return{"X":event.clientX+(document.documentElement.scrollLeft)+b.scrollLeft-b.offsetLeft,"Y":event.clientY+(document.documentElement.scrollTop)+b.scrollTop-b.offsetTop};};U.M.pageXY=function(c){var a,b=[0,0];while(c){a=U.M.GetStyle(c,"position");if(a!="static"){b[0]+=c.offsetTop;b[1]+=c.offsetLeft;}c=c.offsetParent;}return b;};U.M.TOSP=function(c){var a,c=c.offsetParent,b=document.body;while(c&&c!=b){a=U.M.GetStyle(c,"position");if(a!="static"){break;}c=c.offsetParent;}return c||b;};U.M.GetElementInfo=function(d){if(d){var b=d.getBoundingClientRect(),c=U.M.TOSP(d),a=U.M.pageXY(d);return{"CH":d.clientHeight,"CW":d.clientWidth,"OH":d.offsetHeight,"OW":d.offsetWidth,"OL":d.offsetLeft,"OT":d.offsetTop,"SL":d.scrollLeft,"ST":d.scrollTop,"PXT":(document.documentElement.scrollTop)+c.scrollTop,"PXL":(document.documentElement.scrollLeft)+c.scrollLeft,"TX":a[1],"TY":a[0],"BCRH":b.bottom-b.top,"BCRW":b.right-b.left,"BCRT":b.top,"BCRL":b.left,"BCRB":b.bottom,"BCRR":b.right};}return{};};U.M.EISE=function(b,a){if(b&&a){if(b.contains){if(b.contains(a)){return true;}}else{if(b.compareDocumentPosition){if(!(!!(b.compareDocumentPosition(a)))){return true;}}}}return false;};U.M.GetStyle=function(b,a){if(b.style[a]){return b.style[a];}else{if(b.currentStyle){return b.currentStyle[a];}}return"";};U.M.GetCById=function(b,a){var c,d=$(b).Child();for(c=0;c<d.length;c++){if(d[c].id==a){return d[c];}}};U.M.IndexOfParent=function(d){var c=d.parentNode,a,b;if(!c){return -1;}b=c.childNodes;for(a=0;a<b.length;a++){if(b[a]==d){return a;}}return -1;};U.M.GTPN=function(a,b){while(a&&a.id!=b){a=a.parentNode;}return a;};U.M.GTCN=function(c){var b,a=[];for(b=0;(c&&b<c.length);b++){if(c[b].nodeType==1){a.push(c[b]);}}return a;};U.M.GetDE=function(c){var a,b=document.body;while(c&&c!=b){if(c.tagName){a=c.tagName.toLocaleLowerCase();if(a=="textarea"||a=="input"||(c.contentEditable=="true")){break;}}c=c.parentNode;}return c;};U.M.SetElement=function(k,c,l,h){if(k){(typeof(k)=="string")&&(k=$$("div",{"innerHTML":k}));k=k||document;var g,f,b,a=[],e=true,d=k.getElementsByTagName(c);if(h!=false){for(g=0;g<d.length;g++){b=d[g];if(h){for(f in (h||{})){if(h.hasOwnProperty(f)){if(h[f]!=d[g][f]&&d[g].getAttribute(f)!=h[f]){e==false;}}}}if(e){if(l=="De"){a.push(d[g].parentNode.removeChild(d[g]));g--;}else{$(b).addAttrArray(l);}}}}(l=="De")&&(d=[a.length>0?a:d,k]);return d;}return[];};U.M.RLocate=function(b){var c=U.M.GetMousep(),a=U.M.GetElementInfo(b);if(c["X"]+a["CW"]>US.Width){c["X"]-=UTL["CW"];}else{if(c["Y"]+a["CH"]>US.Hieght){_EV["Y"]-=_TL["CH"];}}$(b).addAttrArray({"style":{"left":c["X"]+"px","top":c["Y"]+"px","display":"block"}});};U.M.GetEvent=function(){var b,d=window.event,c,a=["UseStudioBlogSystemIframe","UseStudioStudyControlDivIframe","US_Manage_Out_AppIframe"];if(!d){for(b=0;b<a.length;b++){c=window.frames[a[b]];if(c){try{d=c.event;if(d){break;}}catch(f){continue;}}}}return d;};U.M.StopBubble=function(){var a=U.M.GetEvent();if(a){if(a.stopPropagation){a.stopPropagation();}else{a.cancelBubble=true;}return true;}};U.M.onmouseout=function(b){if(event&&"mouseover,mouseout".indexOf(event.type)>-1){var a=(event.type=="mouseover"?event.fromElement:event.toElement)||event.relatedTarget;return U.M.EISE(b,a);}return false;};U.M.StopDefault=function(){var a=a||window.event;if(a){if(document.all){a.returnValue=false;}else{a.preventDefault();}return false;}};U.M.ImgError=function(a,b){a=a||(window.event.srcElement)||this;a=a==event?(window.event.srcElement):a;if(b==1){$(a).addAttrArray({"src":"http://www.1473.cn/img/error.png","width":"111px","height":"111px"});}else{if(b==2){a.src=a.src.substr(0,(a.src.lastIndexOf("?&n")==-1?a.src.length:a.src.lastIndexOf("?&n")))+"?&n="+Math.random();}else{a.src="http://www.1473.cn/img/UserHead/UseHead.jpg";}}};U.M.GetImgU=function(a){return(a==null?"http://www.1473.cn/img/UserHead/UseHead.jpg":a.indexOf("http")>-1?a:((a.indexOf("www.1473.cn")>-1?a:US.fs+a.replace(new RegExp(US.fs,"gm"),""))));};U.M.ImageZoom=function(d,a){var c,b,e;d=d||this;if(d.height!=0&&d.width!=0){if(a["height"]){if(a["height"]<d.height){c=a["height"]/d.height;b=a["height"];}else{c=1;b=d.height;}e=d.width*c;}else{if(a["width"]){if(a["width"]<d.width){c=a["width"]/d.width;e=a["width"];}else{c=1;e=d.width;}b=d.height*c;}}$(d).addAttrArray({"style":{"width":e+"px","height":b+"px"}});}};U.M.imgReady=(function(){var c,d=[],a=function(){clearInterval(c);c=null;},b=function(){for(var e=0;e<d.length;e++){d[e].end?d.splice(e--,1):d[e]();}!d.length&&a();};return function(i,n,e,h){var f,m,l,g,j=new Image(),k=function(){j=j||this;l=j.width,g=j.height;if((l!==f||g!==m)||g!==0){(n)&&(n.call(j));k.end=true;}};$(j).addAttrArray({"onload":function(){!k.end&&k();e&&e.call(j);j&&(j=j.onload=j.onerror=null);},"onerror":function(){h&&h.call(j);},"src":i});if(j){if(j.complete==true){j.onload();return;}k();}if(!k.end){d.push(k);if(c==null){c=setInterval(b,40);}}return j;};})();U.M.returnkeylogin=function(c,b){if(event.keyCode==13||event.keyCode==10){if(b){U.M.apply(c,b)();}else{if(c){for(var a=0;a<c.length;a++){c[a]["obj"][c[a]["event"]]();}}}U.M.StopDefault();}};U.M.IEVENT=function(b,d){if(b.fireEvent){b.fireEvent("on"+d);}else{if(document.createEvent){var a=document.createEvent("MouseEvents"),c=window.event;a.initMouseEvent(d,true,true,window,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget);b.dispatchEvent(a);}}};U.M.AddEvent=function(c,b,a){if(b.addEventListener){b.addEventListener(c,a,false);}else{if(b.attachEvent){b.attachEvent("on"+c,a);}else{b["on"+c]=U.M.apply(b,[[b["on"+c]],[a]]);}}};U.M.ReEvent=function(c,b,a){if(b.removeEventListener){b.removeEventListener(c,a,false);}else{if(b.detachEvent){b.detachEvent("on"+c,a);}else{b["on"+c]=null;}}};U.M.SSCH=function(a){return new U.M.SCH(a);};U.M.SCH=function(a){this.Y;this.AF=a["AF"];this.P=0;this.TF=true;};U.M.SCH.prototype={init:function(){},SCH:function(){var b=this,a;return function(){b.Y=this;(a)&&(clearTimeout(a),a=null);a=setTimeout(function(){b.ZSCH();},0);};},ZSCH:function(b){var a,c;if(this.Y.scrollTop!=0){a=this.Y.scrollTop;}else{a=document.documentElement.scrollTop;}a+=this.Y.clientHeight;c=this.Y.scrollHeight;if((c-2<a)&&this.TF){this.AF.call(this);this.P++;}}};U.M.apply=function(retElement,UDE){if(UDE){if(typeof UDE=="string"){return function(){eval(UDE);};}else{if(typeof UDE=="function"){return UDE;}else{return function(){var i,j,_UV,_UR,T=(retElement)||this,_UAR=Array.prototype.slice.apply(arguments);for(i=0;i<UDE.length;i++){if(UDE[i]){_UR=UDE[i][1];(!_UR)&&(_UR=[]);((_UAR[0]&&_UAR[0]!=event)||_UAR.length>1)&&(_UR=_UR.concat(_UAR));for(j=0;j<_UR.length;j++){if(typeof _UR[j]=="string"){try{if(_UR[j].indexOf("this")>-1||_UR[j].indexOf("retElement")>-1||_UR[j].indexOf("event")>-1){_UR[j]=eval(_UR[j]);}else{if(/^[0-9]+.?[0-9]*$/.test(_UR[j])&&_UR[j].indexOf("-")==-1&&!(_UR[j].indexOf("0")==0&&_UR[j].length>2)){_UR[j]=Number(_UR[j]);}}}catch(e){}}}try{if(typeof UDE[i][0]=="string"){eval(UDE[i][0]).apply(T,_UR);}else{_UV=UDE[i][0].apply(T,_UR);}}catch(e){U.M.Console(null,e);}}}if(_UV!=null){return _UV;}};}}}else{return function(){return false;};}};U.M.Console=function(b,a){if(window.console){window.console[b||"log"](a);}};U.M.QueryString=function(f){var d,b,a,c="",g=window.document.location.search.substr(1),e=g.split("&");for(d=0;d<e.length;d++){a=e[d].split("=");if(a[0].toUpperCase()==f.toUpperCase()){for(b=1;b<a.length;b++){c+=a[b]+(b==a.length-1?"":"=");}break;}}return c;};U.M.GetUF=function(){var a=document.location.hash;return(a)&&(a.split("/"));};U.M.GetCookie=function(f,e){var b,a,d="",c=document.cookie.split("; ");for(b=0;b<c.length;b++){a=c[b].split("=");if(a[0]==f){a.splice(0,1);d=a.join("=");break;}}if(e){c=d.split("&");d=[];for(b=0;b<c.length;b++){a=c[b].split("=");if(a[0]==e){d.push(a[1]);}else{if(a[1]==e){return true;}}}}return(d.length?d:false);};U.M.IFO=function(d,b){var a,c=$(d).addAttrArray({"src":"javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())"}).contentWindow;(b)&&(a=c.document.open(),a.write(b),a.close());return d;};U.M.WOP=function(b){var a,c=window.open("javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())");(b)&&(a=c.document.open(),a.write(b),a.close());return c;};U.M.UrlCopy=function(a){if(window.clipboardData){window.clipboardData.setData("text",a);U.Alert("复制地址成功");}else{U.Alert("请手动选择复制");}};U.M.Sequence=function(e,f,a){var d,b,c;for(d=0;d<e.length;d++){for(b=0;b<e.length-d-1;b++){if(a(e[b][f],e[b+1][f])){c=e[b];e[b]=e[b+1];e[b+1]=c;}}}return e;};U.M.SplitArray=function(a){for(var b=0;b<a.length;b++){a[b]=encodeURIComponent(encodeURIComponent(a[b]));}return a.join(",");};U.M.JTPL=function(e,d){var b,c=["{","}"],e=e.cloneNode(true),a=e.innerHTML;for(b in d){if(d.hasOwnProperty(b)){a=a.replace(new RegExp(c[0]+b+c[1],"g"),function(){return d[b];});}}a=a.replace(/<script.*?>.*?<\/script>/ig,"").replace(/<script/g,"<script");e.style.display="block";e.innerHTML=a;return e;};U.M.GetType=function(b){try{if(b&&b.constructor&&b.constructor.toString){var a=b.constructor.toString().match(/function\s*(\w+)/);if(a&&a.length==2){return a[1];}}}catch(c){}};U.M.asyncInnerHTML=function(d,b){var c=$$("div",{}),a=document.createDocumentFragment();c.innerHTML=H;(function(){if(c.firstChild){a.appendChild(c.firstChild);setTimeout(arguments.callee,0);}else{b([a]);}})();};U.M.OLM=function(){if(window.print){document.oncontextmenu=U.M.StopDefault;document.onselectstart=function(){U.M.StopBubble();var b=U.M.GetDE(event.srcElement),c=b.tagName.toLocaleLowerCase();if(b.nodeType==3||("textarea,input".indexOf(c)>-1||(c=="div"&&b.contentEditable=="true"))){return true;}else{return false;}};var a=function(){if(event.keyCode==8){if(U.M.GetDE((event.srcElement))==document.body&&!document.body.isContentEditable){U.M.StopDefault();}}};U.M.AddEvent("keydown",document,a);U.M.AddEvent("keypress",document,a);U.M.ReEvent(document.attachEvent?"readystatechange":"DOMContentLoaded",document,U.M.OLM);}};U.M.AddEvent(document.attachEvent?"readystatechange":"DOMContentLoaded",document,U.M.OLM);U.M.AddEvent("offline",window,function(){});U.M.AddEvent("online",window,function(){});window.onLine;Namespace.register("U.M");U.M.ODE=[];U.M.onresize=function(){};U.M.onresize.prototype={init:function(){window.setInterval(this.onresize,100);return this;},get:function(){try{return this.onresize;}catch(a){return null;}},set:function(b){var a,d=U.M.ODE,c=U.M.GetElementInfo(this);for(a=0;a<d.length;a++){if(d[a]["UEL"]===this){if(b==null){d.splice(a,1);}else{d[a]["CF"]=b;}return;}}U.M.ODE.push({"E":c,"UEL":this,"CF":b,"UW":c["CW"],"UH":c["CH"]});},onresize:function(){var b,d=U.M.ODE,a,c;for(b=0;b<d.length;b++){a=d[b];(a["CF"]==null)&&(d.splice(b,1));c=U.M.GetElementInfo(a["UEL"]);(a["UW"]!=c["CW"]||a["UH"]!=c["CH"])&&(a["CF"](),a["UW"]=c["CW"],a["UH"]=c["CH"]);}}};U.M.innerText=function(){};U.M.innerText.prototype={get:function(){return this.textContent;},set:function(a){this.textContent=a;}};U.M.outerHTML=function(){};U.M.outerHTML.prototype={get:function(){var b=this.cloneNode(true),a=$$("div",{});a.appendChild(b);return a.innerHTML;},set:function(){}};U.M.outerText=function(){};U.M.outerText.prototype={get:function(){var b=this.cloneNode(true),a=$$("div",{});a.appendChild(b);return a.textContent;},set:function(){}};U.M.currentStyle=function(){};U.M.currentStyle.prototype={get:function(){return getComputedStyle(this,false);},set:function(){}};U.M.onreadystatechange=function(){};U.M.onreadystatechange.prototype={get:function(){return this.onload;},set:function(a){this.onload=a;}};U.M.setCapture=function(){};U.M.setCapture.prototype={get:function(){return function(){window.captureEvents(Event.MOUSEMOVE);};},set:function(){}};U.M.releaseCapture=function(){};U.M.releaseCapture.prototype={get:function(){return function(){window.releaseEvents(Event.MOUSEMOVE);};},set:function(){}};U.M.event=function(){};U.M.event.prototype={get:function(a){var b=arguments.callee.caller;while(b.caller){b=b.caller;}return b.arguments[0];},set:function(){}};U.M.srcElement=function(){};U.M.srcElement.prototype={get:function(){return event.target;},set:function(){}};U.M.keyCode=function(){};U.M.keyCode.prototype={get:function(){return event.which;},set:function(){}};U.M.componentFromPoint=function(){};U.M.componentFromPoint.prototype={get:function(){return function(){var a=U.M.GetMousep(),b=U.M.GetElementInfo(this);if((a["X"]>b["CW"]+b["TX"]+b["OL"])||(a["Y"]>b["CH"]+b["TY"]+b["OT"])){return"outside";}return"";};},set:function(){}};U.M.onmousewheel=function(){};window.JSON=function(a){for(var b in a){if(a.hasOwnProperty(b)){this[b]=a[b];}}};window.JSON.prototype={};if(!browser.msie||browser.ver.indexOf("msie")<0){(function(){var a;if(!("innerText" in HTMLElement.prototype)){a=new U.M.innerText();U.M.HEPropert(HTMLElement.prototype,"innerText",a.get,a.set);}if(!("outerHTML" in HTMLElement.prototype)){a=new U.M.outerHTML();U.M.HEPropert(HTMLElement.prototype,"outerHTML",a.get,a.set);}if(!("outerText" in HTMLElement.prototype)){a=new U.M.outerText();U.M.HEPropert(HTMLElement.prototype,"outerText",a.get,a.set);}if(!("currentStyle" in HTMLElement.prototype)){a=new U.M.currentStyle();U.M.HEPropert(HTMLElement.prototype,"currentStyle",a.get,a.set);}if(!("onreadystatechange" in HTMLElement.prototype)){a=new U.M.onreadystatechange();U.M.HEPropert(HTMLElement.prototype,"onreadystatechange",a.get,a.set);}if(!("setCapture" in HTMLElement.prototype)){a=new U.M.setCapture();U.M.HEPropert(HTMLElement.prototype,"setCapture",a.get,a.set);}if(!("releaseCapture" in HTMLElement.prototype)){a=new U.M.releaseCapture();U.M.HEPropert(HTMLElement.prototype,"releaseCapture",a.get,a.set);}if(!("onresize" in HTMLElement.prototype)){a=(new U.M.onresize()).init();U.M.HEPropert(HTMLElement.prototype,"onresize",a.get,a.set);}if(!("event" in window.constructor.prototype)){a=new U.M.event();U.M.HEPropert(window.constructor.prototype,"event",a.get,a.set);}if(!("srcElement" in Event.prototype)){a=new U.M.srcElement();U.M.HEPropert(Event.prototype,"srcElement",a.get,a.set);}if(!("componentFromPoint" in HTMLElement.prototype)){a=new U.M.componentFromPoint();U.M.HEPropert(HTMLElement.prototype,"componentFromPoint",a.get,a.set);}})();}if(browser.firefox){(function(){window.addEventListener("DOMMouseScroll",function(e){var _UEL=e.target,_OMWL=(_UEL.getAttribute("onmousewheel")||e.target.onmousewheel);while(_OMWL==null&&_UEL){_UEL=_UEL.parentNode;_OMWL=(_UEL.getAttribute("onmousewheel")||_UEL.onmousewheel);}if(_OMWL){U.M.StopDefault();_UEL.onmousewheel=_OMWL;if(typeof _OMWL!="function"){eval("_UEL.onmousewheel = "+_OMWL);}setTimeout(function(){_UEL.onmousewheel(e);},1);}},false);})();if(!("keyCode" in Event.prototype)){var _TF=new U.M.keyCode();U.M.HEPropert(Event.prototype,"keyCode",_TF.get,_TF.set);}}if("ontouchstart" in document){}Namespace.register("U.MD");U.MD.DynamicLoad=function(e,g,c,b,a){var d,j,h,f=$("head",document)[0];if(g=="js"){h=$("script",document);j=$$("script",(b||{"src":e,"type":"text/javascript","language":"javascript","charset":"utf-8"}));}else{if(g=="js"){h=$("link",document);j=$$("link",{"href":e,"type":"text/css","rel":"stylesheet"});}}for(d=0;d<h.length;d++){if(h[d].src==e){g=false;if(!a){j=h[d];}break;}}(g||a)&&(f.insertBefore(j,f.firstChild));(c)&&(U.MD.IframeLoad(j,c));return true;};U.MD.IframeLoad=function(f,b){try{var a=f.complete,c=f.readyState;}catch(d){}if(a=="complete"&&((c=="complete"||c=="loaded")||c==null)){U.M.apply(f,b)();return;}else{(f.onreadystatechange)&&(b=U.M.apply(f,[[f.onreadystatechange],[b]]));f.onreadystatechange=U.M.apply(f,[[U.MD.AILD,([f,b])]]);}};U.MD.AILD=function(c,a){var b=c.readyState;if((b=="complete"||b=="loaded")||b==null){c.complete="complete";c.onreadystatechange=null;U.M.apply(c,a)();}};U.MD.IsExistUrl=function(c,a){var b=U.A.FE();b.open("GET",c,true);b.send();b.onreadystatechange=function(){if(b.readyState==4){var d=true;if(b.status!=200){d=false;}CB(b,d);}};};U.MD.loading=function(b,g){if(!b.uscustom){var f,c,d=b.onresize,a=b.parentNode,e=U.M.GetCById(a,"loadImg");if(e){(!g)&&($(b).addAttrArray({"UH":b.style.height||b.UH,"style":{"height":"0px"}}));e["P"]+=1;return e;}else{e=$$("div",{"id":"loadImg"});if(g){$$("div",{"style":{"width":"40px","height":"20px","background":"url(http://www.1473.cn/img/loading.gif) 0px 0px no-repeat","margin":"auto"}},e);}else{f=$$("div",{"style":{"cssText":"width:100%; height:100%; float:left;"}},e);c=$$("div",{"style":{"margin":"auto","wdith":"100%","height":"100%","maxWidth":"275px","maxHeight":"160px"}},f);$$("img",{"src":"http://www.1473.cn/img/blog-loader.gif","style":{"maxHeight":"100%","maxWidth":"100%","width":"auto","height":"auto","margin":"0"}},c);}e["P"]=0;a.insertBefore(e,b);a.onmousewheel=U.M.StopDefault;}U.MD.Donresize(e,b,g);$(b).addAttrArray({"UH":b.style.height,"style":{"height":"0px","overflow":"hidden"}});a.onresize=U.M.apply(a,[[a.onresize||U.M.apply()],[U.MD.Donresize,([e,b,g])]]);return e;}};U.MD.uploading=function(b){b=(b[0]||b);var a=b.parentNode,c=U.M.GetCById(a,"loadImg");if(b.uscustom){a.removeChild(b);return;}a.onmousewheel=null;if(c){c["P"]--;if(c["P"]<0){a.removeChild(c);$(b).addAttrArray({"style":{"height":b.UH,"overflow":""}});(a.onresize)&&(a.onresize());}}};U.MD.Donresize=function(a,f,b){if(a["P"]>-1){if(f.clientHeight){$(a).addAttrArray({"className":f.className,"style":{"cssText":f.style.cssText,"display":"block"}});var h,i=$("div",a),c=a.clientWidth,j=a.clientHeight;if(b){i[0].style.marginTop=(j-20)/2+"px";}else{var e=c>=731&&j>400,d=(j-Math.min(160,c*(160/275))-(e?92:0))/2/c*100;$(a).addAttrArray({"style":{"background":"#50c0f0"}});if(d>0){i.addAttrArray({"style":{"height":"auto","width":"auto","marginTop":(d||10)+"%"}},1);}else{i.addAttrArray({"style":{"height":"100%","width":"100%"}},1);}if(e&&$("iframe",a)[0]==null){var g=$$("div",{"style":{"width":"731px","height":"92px","margin":"auto"}},$("div",a)[0]);$$("iframe",{"frameBorder":0,"marginheight":"0","marginwidth":"0","style":{"width":"100%","height":"100%","overflow":"hidden"},"src":"http://www.1473.cn/usercontrols/pages/UD_AD.htm"},g);}}}}};var _$=function(b,a){return new Json(b,a);};window.Json=function(b,a){this.init();this.Value=b||{};this.CTI=null;this.Parent=a||window;};window.Json.prototype={init:function(){},NL:function(a,b){for(i=0;i<a.length;i++){this.Value[a[i]]=b[i];}return this.Value;},List:function(){var b,a=0,d={},e=arguments,c=this.Value;for(b in c){if(c.hasOwnProperty(b)){d[b]=e[a];a++;}}return d;},Add:function(d){var b,c=this.Value,a=U.M.GetType(c);if(this.IFOBJ(a)){for(b in d){if(d.hasOwnProperty(b)){c[b]=d[b];}}}else{if(a=="Array"){for(b=0;b<c.length;b++){_$(c[b]).Add(d);}}}},FineOne:function(b,a){return(this.Select(b,a,1))[0];},Select:function(g,e,f,b){var d,a,a=this.Value,c=U.M.GetType(a);b=b||[];if(this.IFOBJ(c)){if(this.IsTF(g)){b.push(this.Value);}if(e===true){for(d in a){if(b.length==f){break;}_$(a[d],this).Select(g,e,f,b);}}else{if(e){if(b.length==f){return b;}(a[e])&&(_$(a[e],this).Select(g,e,f,b));}}}else{if(c=="Array"){for(d=0;d<a.length;d++){if(b.length==f){break;}_$(a[d],this.Parent).Select(g,e,f,b);}}}return b;},RecurD:function(a,e,g){var d=a?0:-1,c,h,b=a?[a]:[],f=this.Value;for(;d<b.length;d++){if(d!=-1){for(c in e){e[c]=b[d][g];}}h=_$(f).Select(e)[0];(h)&&(b.push(h));}return b;},indexOf:function(a){},Change:function(e,d){var c,a=this.Value,b=U.M.GetType(a);if(this.IFOBJ(b)){if(d){if(e[d]!==a[d]){return;}}for(c in e){if(e.hasOwnProperty(c)){a[c]=e[c];}}}else{if(b=="Array"){for(c=0;c<a.length;c++){_$(a[c],this).Change(e);}}}},Delete:function(h,f,d){var e,g,a=this.Value,c=U.M.GetType(a),b=[];if(this.IFOBJ(c)){if(this.IsTF(h)){if(d!=null){this.Parent.Value.splice(d,1);}else{delete a;}b.push(a);}else{if(f===true){for(e in a){b=b.concat(_$(a[e],this).Delete(h,f));}}else{if(f){(a[f])&&(b=b.concat(_$(a[f],this).Delete(h,f)));}}}}else{if(c=="Array"){for(e=0;e<a.length;e++){g=_$(a[e],this).Delete(h,f,e);b=b.concat(g);(g&&g.length)&&(e--);}}}return b;},Reset:function(d){var b,a=this.Value,c;for(b=0;b<a.length;b++){if(_$(a[b]).IsTF(d)){a.unshift(a.splice(b,1)[0]);}}return a;},Like:function(g,f){var d,c,a=this.Value,b=U.M.GetType(a),e=[];if(this.IFOBJ(b)){for(d in g){if(!(a[d]!=null&&((a[d]+"").indexOf(g[d]+"")>-1||((g[d]+"")).indexOf((a[d]+""))>-1))){return;}}return a;}else{for(d=0;d<a.length;d++){_UZ=_$(a[d],this).Like(g);(_UZ)&&(e=e.concat(_UZ));if(e.length==f){break;}}return e;}},IFOBJ:function(a){return a=="Object"||a===undefined||a.indexOf("Element")>-1;},PSS:function(a){},DeleteBV:function(c){var b,a=this.Value;for(b in a){if(a[b]==c){delete a[b];}}},IsTF:function(d){var c,b,a=this.Value;for(c in d){if(d.hasOwnProperty(c)){if(d[c]===a[c]){b=true;}else{b=false;break;}}}return b;},FSL:function(c){var d,a=this.Value,b=[];for(d=0;d<a.length;d++){b.push(a[d][c]);}return b;},CIndex:function(a){},GZDL:function(b){var c={},a=this.Value;for(i=0;i<b.length;i++){c[b[i]]=a[b[i]];}return c;},ToString:function(){return U.MS.SerializeJsonToStr(this.Value);}};Namespace.register("U.A");U.A.Request=function(d,a,b,c){return new U.A.AjaxR(d,a,b,c).init();};U.A.AjaxR=function(d,a,b,c){this.UR;this.CS;this.EOR;this.UFN=d;this.UPE=c;this.UCB=b;this.UDE=a;this.UTI=new Date();};U.A.FE=U.A.AjaxR.prototype={LIDZ:{"Reply":["Mysql","UseStudio_Reply"]},UDE:[],ERR:function(){},init:function(){var e,c,f=this.LIDZ[this.UFN.split(".")[0]],h=f?"&DBTYPE="+f[0]+"&DBNAME="+f[1]:"",b=(top.US&&top.US.userinfo&&top.US.userinfo.UserId)?top.US.userinfo.UserId:"",j=this.JF()+this.UFN,g="POST",a={"If-Modified-Since":"0","Cache-Control":"no-cache","CONTENT-TYPE":"application/x-www-form-urlencoded;charset=UTF-8"},d=typeof(this.UCB)=="function";(this.UFN.substr(0,4)=="http")&&(j=this.UFN,this.UFN="mode");c=this.UFN+"="+this.SA()+"&UserId="+b+h;this.UR=this.CA();this.UR.TO.open(g,j,d);for(e in a){this.UR.TO.setRequestHeader(e,a[e]);}(d)&&($(this.UR.TO).addAttrArray({"timeout":10000,"ontimeout":[[this.TMOUT]]}));this.UR.TO.send(c);if(d){this.AC();}else{return this.AR();}},CA:function(){var c,a,b=U.A.FE.UDE;for(c=0;c<b.length;c++){if((a=b[c].OT)==4){a.onreadystatechange=U.M.apply();a.abort();b[c].UPE=this.UPE;return b[c];}}return b[b.length]={TO:window["XMLHttpRequest"]?new window.XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"),UPE:this.UPE};},SA:function(){return U.M.SplitArray(this.UDE);},JF:function(){var b="http://main.1473.cn/Mian.ashx?functionname=",a=this.UFN.split(".");if(a[0]=="Upload"){b="http://disk.1473.cn/USupfile.ashx?functionname=";}return b;},LD:function(a,b){U.MD.loading(a,b);},SLD:function(a){(a)&&(U.MD.uploading(a));},TMOUT:function(){this.UR.TO.abort();(this.CS)&&(this.CS());},AC:function(){var a=this.UPE;(a&&a[0])&&(this.LD(a[0][0]||a[0],a[0][1]));this.UR.TO.onreadystatechange=U.M.apply(this,([[this.AE,(["retElement"])]]));},AE:function(){if(this.UR.TO.readyState==4){var a=this.AR();this.SLD(this.UPE[0]);U.M.Console(null,{"T":(new Date()).getTime()-this.UTI.getTime(),"N":this.UFN,"V":a.error});(this.UCB)&&(this.UCB(a));a.request.abort();}},AR:function(){var a={"request":this.UR.TO,"error":null,"value":null,"context":this.UPE};if(a["request"].status==200){a["value"]=this.JO();_UE=a.error=new U.A.Error();(_UE.ISError(a["value"]))&&(_UE.SetE(a["value"]),a.ErrorS());}else{a.error={"status":a["request"].status,"statusText":a["request"].statusText};(this.EOR)&&(this.EOR());this.ERR(a.error);}return a;},JO:function(){var _UDE=this.UR.TO,_UML=_UDE.responseXML;(_UML)&&(_UML=_UML.xml);if(!_UML){_UML=_UDE.responseText;try{_UML=(eval(_UML));if(_UML==null||typeof _UML=="function"){_UML=_UDE.responseText;}else{this.DE(_UML);}}catch(e){_UML=_UDE.responseText;}}return _UML;},DE:function(UDE){if(UDE.length){for(var i=0;i<UDE.length;i++){try{(typeof UDE[i]=="string")&&(UDE[i]=eval(UDE[i]),this.DE(UDE[i]));}catch(e){}}}return UDE;}};U.A.Error=function(){this.State=this.LogID=this.Value=this.Dt=this.Type=null;};U.A.Error.prototype={ISError:function(a){for(var b in this){if(this.hasOwnProperty(b)){if(this[b]===a[b]){return true;}}}return false;},SetE:function(a){for(var b in this){if(this.hasOwnProperty(b)){this[b]=a[b];}}},ErrorS:function(){}};Namespace.register("U.AFB");U.AFB.GoList={};U.AFB.RGoL=function(a){(U.AFB.GoList[a]==null)&&(U.AFB.GoList[a]={"OF":[],"OL":0});};U.AFB.AddEvent=function(a,b){U.AFB.RGoL(b);a=U.M.apply(this,a);U.AFB.AddDrawBack(a,b);a();};U.AFB.AddDrawBack=function(a,b){U.AFB.GoList[b]["OF"].splice(U.AFB.GoList[b]["OL"],0,a);U.AFB.GoList[b]["OL"]++;};U.AFB.DrawBack=function(a){U.AFB.GQH(a);};U.AFB.GoForward=function(a){U.AFB.GQH(a,true);};U.AFB.GQH=function(e,a){var d=U.AFB.GoList[e],b,c=d["OL"];c-=a?0:2,UCV=a?1:-1;if((b=d["OF"][c])!=null){b();d["OL"]+=UCV;}};Namespace.register("U.CD");_$(U.CD).Add({"Len":1,"UTF":[{"U_Main":"A","U_Disk":"Adisk","U_BG":"UB","U_PB":"PB","U_Pay":"PY","reply":"RY","U_ME":"MA"}],"UKE":[[["U_Main","http://main.1473.cn/index.htm","A"],["UL_IF","http://www.1473.cn/NewPage.htm"]]]});U.CD.AsynLI=function(g,b){g=g||[];var e,c,d,h,k=document.createDocumentFragment(),a=U.CD["UTF"].concat(g[0]||[]),f=U.CD["UKE"].concat(g[1]||[]);U.CD["Len"]=f.length;for(e=0;e<f.length;e++){for(c=0;c<f[e].length;c++){if(!$("#"+(d=f[e][c])[0])[0]){h=$$("iframe",{"id":d[0],"name":d[0],"src":d[1],"width":0,"height":0,"style":{"display":"none"}},k);(!(!e&&c==f[e].length-1))&&(U.MD.IframeLoad(h,[[U.CD.AsynLIFA,([a[e],b])]]));}}}$("body")[0].appendChild(k);};U.CD.AsynLIFA=function(a,b){var c,f=this.contentWindow;U.CD["Len"]--;try{for(c in a){window.U[a[c]]=f.U.A;delete a[c];}}catch(d){}(!U.CD["Len"]&&b)&&(b());};U.CD.GQB=function(){var b,a=$$("iframe",{"width":0,"height":0,"style":{"display":"none"},"src":"http://www.1473.cn"},$("body")[0]);U.MD.IframeLoad(_UDBD,[[U.CD.AsynGQB,([a,b])]]);};U.CD.AsynGQB=function(c,a){var d,f=$("body")[0],g=document.createDocumentFragment(),h=c.contentWindow.document.body.innerHTML,b=U.M.SetElement(h,"script","De")[1],e=$($($(b[1]).Child()[0]).Child()[2])[0];f.appendChild(e);f.appendChild(b[1]);};Namespace.register("U.D.E");U.D.E.RichEditor=function(n,f,p,c,h){var o,l,g,e,r,a,b,q=n[0]||n,d=n[1]||n,k=document.createDocumentFragment(),m=document.createDocumentFragment(),j=U.CI.IsHF();o=$$("div",{"className":"UF_FW_ok UF_FW_centerwindow "},k);$$("div",{"unselectable":"on","className":"UD_PiLt UF_FW_face","title":"表情"},o);$$("div",{"unselectable":"on","className":"UD_PiLt UF_FW_Fbold","title":"粗体"},o);$$("div",{"unselectable":"on","className":"UD_PiLt UF_FW_underline","title":"下划线"},o);$$("div",{"unselectable":"on","className":"UD_PiLt UF_FW_italic","title":"斜体"},o);l=$$("select",{"className":"UF_FW_FontSize","title":"字体大小"},o);g=$$("select",{"className":"UF_FW_FontType","title":"字体"},o);e=$$("div",{"className":"UE_Edit"},o);r=$$("div",{"className":"UD_PiLt UE_EditOut UE_EditEnd","title":"上传图片","onclick":j?[[U.M.StopBubble],[top.U.Dk.UP.FUW,([US.NU,US.userinfo.UserId,US.NU,{"GS":"UP","FCP":U.M.apply(this,[[U.D.E.UPAsynCB,([d,"QL",null])]]),"URL":"http://disk.1473.cn/USupfile.ashx?iframename=UseStudioEditor","ID":"UDK_FUPB"}])]]:""},e);if(j==null){$$("input",{"className":"UE_filePrew","type":"file","id":"UU_E_Input","name":"usestudiouploadinput","onchange":[[top.U.D.E.usestudioeditoruploadimg,(["this",d,h,"QL"])]]},r);}if(c){$$("div",{"unselectable":"on","className":"UF_FW_right UD_PiLt UF_FW_messagenote","id":"messagenote"},o);}a=$$("div",{"style":{"height":p+"px"},"className":"UF_FW_DECC"},m);b=$$("div",{"spellcheck":"false","contentEditable":"true","className":"UF_FW_DEC","style":{"float":"none","cssFloat":"none","styleFloat":"none"}},a);q.appendChild(k);d.appendChild(m);U.D.E.editorWindow(q,b);U.D.E.Setoptions(b,g,l);return n;};U.D.E.editorWindow=function(d,c){var b=$("div",d)[0],a=$("div",b);($("input",b)[0]||a[5]).onmousedown=a[0].onmousedown=U.M.apply(this,[[U.D.E.GetSelectionRange,([window,c,{"TF":"QL"}])]]);a[0].onclick=U.M.apply(this,[[U.D.E.CreateSf,(["ChattingFaceDiv",null,"this",window,c,"QL"])]]);a[1].onmousedown=U.M.apply(this,[[U.D.E.FontSizeType,([c,{"fontWeight":["bold","normal"]}])]]);a[2].onmousedown=U.M.apply(this,[[U.D.E.FontSizeType,([c,{"textDecoration":["underline","none"]}])]]);a[3].onmousedown=U.M.apply(this,[[U.D.E.FontSizeType,([c,{"fontStyle":["italic","normal"]}])]]);};U.D.E.SetSO=function(a){if(a&&a!=event){if(this["on"]==1){U.M.apply(this,[a])();this["on"]=0;}else{this["on"]++;}}else{this["on"]=0;}};U.D.E.Setoptions=function(b,g,f){f["on"]=g["on"]=g.options.length=f.options.length=0;var e=[12,14,16,18,20,22,24,36,48,72],d=["宋体","黑体","仿宋_GB2312","楷体_GB2312","隶书","微软雅黑","幼圆","Arial","Verdana"];for(var c=0;c<9;c++){g.options.length+=1;g.options[c].value=d[c];g.options[c].text=d[c];}for(var a=0;a<10;a++){f.options.length+=1;f.options[a].value=e[a]+"px";f.options[a].text=e[a];}g.onclick=U.M.apply(g,([[U.D.E.SetSO,([[U.D.E.SelectO,([b,"fontFamily",g])]])]]));f.onclick=U.M.apply(f,[[U.D.E.SetSO,([[U.D.E.SelectO,([b,"fontSize",f])]])]]);f.onblur=g.onblur=U.D.E.SetSO;};U.D.E.SelectO=function(b,c,a){if(c=="fontFamily"){U.D.E.FontSizeType(b,{"fontFamily":a.value});}else{U.D.E.FontSizeType(b,{"fontSize":a.value});}};U.D.E.CreateImage=function(a,d,c,b){U.D.E.SORange["OE"][b].Replace(d);};U.D.E.FontSizeType=function(e,f,j,h){j=j||U.D.E.GetSelectionRange(window,e,{"TF":h||"QL"});var d,b,k=[],a=j.GetSelectedHtml(),g=j.GetPStyle(),c=(a=="");for(d in f){f[d]=typeof f[d]=="object"?f[d]:[f[d],f[d]];k[d]=f[d];(g.style[d]==f[d][0])&&(f[d][0]=f[d][1]);(d=="textAlign")&&(c=true);}if(!c){b=j.SetStyle(j.GetSelectedHtml(),f);(c=(b!=""))&&(j.Replace(b));c=!c;}if(c){a=g.outerHTML;j.IsSetStyle(g,f);(!_TF)&&(j.Replace(""));}j.SL(null,j.TR);f=k;return j;};U.D.E.usestudioeditoruploadimg=function(f,e,c,g){if(top.US.userinfo.UserId){var h,d=U.UP.SFT("UP"),b=$("div@contenteditable=true",e.parentNode)[0],a=f.parentNode;if(top.U.UP.UploadFileType(f,d)==false){U.Alert("只允许上传图片文件和压缩文件");return;}UDID=U.D.E.AddUPWJ({"type":"jpg"});U.D.E.CreateImage(window,UDID.outerHTML,b,g);U.UP.uploading([f],U.D.E.uploadcallback,([b,$("img@TI="+UDID.id,b)[0]]),"http://disk.1473.cn/USupfile.ashx?iframename=UseStudioEditor",true);$$("input",{"className":"UE_filePrew","title":"上传图片","type":"file","id":"UU_E_Input","name":"usestudiouploadinput","onchange":f.onchange,"onmousedown":[[U.D.E.GetSelectionRange,([window,b,{"TF":g}])]]},a);}else{top.U.Alert("请登录后在上传");}};U.D.E.uploadcallback=function(d){var b,c=d.context,a=d.UpObj;d=d.value;if(d!=""){b=U.UP.GetUpName(a);U.D.E.AddUPWJ({"URL":d[0],"name":b[0],"size":d[1],"type":"."+b[1]},c[1]);}};U.D.E.AddUPWJ=function(b,d){var a,e;if("rar,zip".indexOf(b["type"])>-1){a=$$("div",{"contentEditable":"false","onclick":'top.U.Dk.RE.ODL("'+(US.fs+b["URL"])+'","'+(b["name"]+"."+b["type"])+'")',"style":{"cssText":"width:150px;height:35px;display:block;"}});$$("div",{"contentEditable":"false","title":"点击下载","className":"UDK_L_DiskGE UDK_RT_DL_IMG","style":{"backgroundPosition":"-619px -199px"}},a);$$("div",{"contentEditable":"false","class":"UTDF","style":{"cssText":"'float:left;width:120px;line-height:32px;"},"innerHTML":(b["name"]+","+(U.UP.FileSize(b["size"])))},a);if(d){e=d.parentNode;e.replaceChild(a,d);}}else{if(d){U.M.imgReady(US.fs+b["URL"],null,U.M.apply(null,[[U.D.E.ImgOnLoad,([d])]]),U.M.apply(null,[[U.D.E.ImgOnLoad,([])]]));}else{var c=U.MS.produceGuid().replace(/-/g,"");a=$$("img",{"id":c,"src":"http://www.1473.cn/img/imgloading.gif","style":{"maxWidth":"100%"},"onclick":"U.Img.Create({ 'Thm': this.src, 'Img': this.src });"});}}return a;};U.D.E.UPAsynCB=function(b,g,h,d,c){if(d){var e=(b.tagName),j=U.D.E.AddUPWJ(c),f=b;(e)&&(b=$("div@contenteditable=true",b)[0]);(b==null)&&(b=f);if(c["type"]=="rar"||c["type"]=="zip"){U.D.E.CreateImage(window," "+j.outerHTML+" ",b,g);}else{var a=j.id;(e)?U.D.E.CreateImage(window,(" "+j.outerHTML+" "),b,g):b.Replace((" "+j.outerHTML+" "));(b.GetPStyle)&&(b=b.GetPStyle());j=$("img#"+a,b)[0];U.D.E.AddUPWJ({"URL":d[0],"name":c["name"],"size":c["size"],"type":"."+c["type"]},j);(h)&&(h(j));}}};U.D.E.ImgOnLoad=function(a){if(a){$(a).addAttrArray({"onload":U.M.apply(a,"if (U.F) { U.F.FM.SUIMG(retElement); } "),"src":this.src,"width":this.width,"height":this.height});}else{U.M.ImgError(this,2);}};U.D.E.init=function(b,e){var d=U.M.GetElementInfo(e),c,f=d["BCRL"],a=d["BCRT"]+d["PXT"]-220+"px";if(f+436>=US.Width){c=true;f=0;}else{f=f-190;}$(b).addAttrArray({"style":{"left":f+"px","right":c?f+"px":"auto","top":a}});};U.D.E.CreateSf=function(a,c,g,b,e,f){c=c||$("#"+a)[0];if(c==null){c=$$("div",{"id":a,"unselectable":"on","className":"defaultFacePanel","onclick":[[U.M.StopBubble],[U.D.E.CreateSf,([a,"retElement"])]],"style":{"display":"block"}});for(var d=0;d<105;d++){$$("div",{"title":"[face]("+d+")","unselectable":"on","onclick":[[U.D.E.CreateImage,([b,"<img contentEditable='false' src='http://www.1473.cn/img/ChatingFaceGif/[face]("+d+").gif' style='width:20px;height:20px;' /> ",e,f])]]},c);}document.onclick=U.M.apply(this,[[U.D.E.CreateSf,([a,c])],[document.onclick||U.M.apply(),([])]]);document.body.appendChild(c);}else{if(c.style.display=="block"||arguments.length==2){c.style.display="none";return;}else{$(c).addAttrArray({"style":{"display":"block"}});}}U.M.StopBubble();U.D.SetDTop(c);U.D.E.init(c,g);U.D.E.CreateImage(b,"",e,f);return c;};U.D.E.GetSelectionRange=function(a,c,j){try{j=j||{};var h,d=U.D.E.SORange,b=d["OAT"],f=j["TF"],l=b[f]===undefined,k=(((l)&&(b[f]=[])),(((h=d["OE"][f])&&(h["SO"]=c,h.CreateR()))||new U.D.E.SelectionRange(a,a.document,c,j).CreateR()));if(l){$(k.PSO).addAttrArray({"onkeydown":U.M.apply(k,[[k.GetKE]]),"onkeyup":U.M.apply(k,[[k.CLKU]]),"onmouseup":U.M.apply(k,[[k.CLMU]])});(f!==null)&&(d["OE"][f]=k,b[f].push({"OR":new k.init(k,false),"C":""}));}return k;}catch(g){}};U.D.E.SelectionRange=function(a,e,d,c,b){this.S,this.R,this.J,this.TR,this.BCB,this.FCB,this.TIM=[];this.CD=e;this.CW=a;this.SO=d;this.PSO=b;this.CB=c["CB"];this.TF=c["TF"];};U.D.E.SORange=U.D.E.SelectionRange.prototype={OAT:{},OE:{},GF:function(a){a=a||this.TF;return U.D.E.SORange["OAT"][a];},init:function(a,b){U.D.E.SelectionRange.apply(this,[a["CW"],a["CD"],a["SO"],{"TF":a["TF"],"CB":a["CB"]},a["PSO"]]);this.CreateR(b);},CreateR:function(b){var a={"R":"","S":"","TR":"","SO":this.SO||this.GetPStyle(),"PSO":this.PSO||this.SO};if(document.selection){a["S"]=this.CW.document.selection;a["R"]=a["S"].createRange();a["TR"]=document.body.createTextRange();if((a["SO"]&&!U.M.EISE(a["SO"],this.GetPStyle(a["R"]))&&b!==false)||b){a["R"]=(this.QX(0,0))||a["R"];a["S"]=this.CW.document.selection;}}else{a["S"]=this.CW.getSelection();a["TR"]=document.createRange();(b&&a["SO"]&&((!a["S"].rangeCount&&a["SO"]&&a["SO"].focus)||(!U.M.EISE(a["SO"],this.GetPStyle(a["S"].getRangeAt(0))))))&&(this.QX());a["R"]=a["S"].rangeCount?a["S"].getRangeAt(0):document.createRange();}if(a["R"]){_$(this).Add(a);U.D.E.SORange=this;while(this.PSO&&(this.PSO.contentEditable!="true"||this.PSO.tagName.toLocaleLowerCase()=="p")&&this.PSO.tagName.toLocaleLowerCase()!="body"){this.PSO=this.PSO.parentNode;}}return this;},SL:function(c,b){var a;c=c||this.SO;this.S=this.S||this.CW.getSelection();if(b){if(b.select){b.select();}else{this.S.removeAllRanges();this.S.addRange(b);}}else{if(document.selection){b=document.body.createTextRange();b.moveToElementText(c);b.select();}else{b=document.createRange();b.setEndAfter(c);b.setStartAfter(c);this.S.removeAllRanges();this.S.addRange(b);}}return b;},QX:function(g,a,b){try{var c,h=this.CW,d=this.CD;b=b||this.SO||this.GetPStyle();if(document.selection){c=[d.body.createTextRange(),d.body.createTextRange()];c[0].moveToElementText(b);if(typeof g=="number"){c[0].moveStart("character",g);c[1].moveToElementText(b);c[1].moveStart("character",a);c[0].setEndPoint("EndToStart",c[1]);}c[0].select();c=c[0];}else{this.S=(this.S||this.CW.getSelection());(this.S.rangeCount==0)&&(b.focus());this.R=this.S.getRangeAt(0);if(this.R.commonAncestorContainer!=document){c=document.createRange();this.S.removeAllRanges();c.selectNodeContents((b||this.R.commonAncestorContainer));g=g==null?this.R.startOffset:g;a=a==null?this.R.endOffset:a;try{c.setStart((b||this.R.startContainer),g);_R.setEnd((b||this.R.endContainer),a);}catch(f){}this.S.addRange(c);}}return c;}catch(f){}},GetPStyle:function(b){b=b||this.R;if(b){if(b.parentElement){return b.parentElement();}else{if(b.commonParentElement){return b.commonParentElement();}else{var a=b.commonAncestorContainer;return(a.nodeName=="#text"?a.parentNode:a);}}}},GetSelectedHtml:function(){if(this.R==null||this.R.add){return"";}else{if(this.R.htmlText!=undefined){return(this.R.text==""?"":this.R.htmlText);}else{var a=$$("div");a.appendChild(this.R.cloneContents());return a.innerHTML;}}},GetSelectedText:function(){if(this.R==null||this.R.add){return"";}else{if(this.R.text!=undefined){return this.R.text;}else{return(this.S.toString()||this.R.toString());}}},Replace:function(k,m){var f,e,l,c,g,b,h,a,d=k.outerHTML||k;m=m||this.R;if(m&&k!=null){if(m.commonParentElement){if(k!=""){l=m.commonParentElement();if(l){(!k.innerHTML)&&(k=$$("div",{"innerHTML":d}));}l.parentNode.replaceChild(k,l);}}else{if(m.pasteHTML){l=this.GetPStyle(m),c=$$("div",{"innerHTML":d});a=[];while(l.innerText==c.innerText&&l.contentEditable!="true"&&l.tagName.toLocaleLowerCase()!="body"){a.push(l);l=l.parentNode;}if(g=a[a.length-1]&&c.innerHTML){b=$(c).Child();a="";for(f=0;f<b.length;f++){a+=";"+b[f].style.cssText;}$("&*",g).addAttrArray({"style":{"cssText":a}});g.style.cssText=a;}else{m.select();m.pasteHTML(c.innerHTML);m.select();}}else{if(this.GetPStyle(m)!=document){l=this.SO;(l&&l.focus)&&(l.focus());c=m.createContextualFragment(k);g=c.lastChild;m.deleteContents();this.S.removeAllRanges();m.insertNode(c);if(g){this.SO=g;this.SL(g);}else{m.collapse(true);this.S.addRange(m);}}}this.CreateR();_$(this).Add({"SO":this.GetPStyle(),"TR":m});}}},GetStyle:function(UDE,UJH){if(UDE&&UDE.style){var i,_USE=UDE.style.cssText.toLowerCase();if(_USE!=""){while((i=_USE.indexOf("-"))>-1){i=_USE.substring(i+1,i+2);_USE=_USE.replace(new RegExp("-"+i,"gm"),i.toLocaleUpperCase());}eval("_USE = {"+_USE.replace(/;/gm,'",').replace(/: /gm,':"')+'"}');for(var i in _USE){if(_USE.hasOwnProperty(i)&&UJH[i]==null){UJH[i]=[_USE[i],_USE[i]];}}}}},SetStyle:function(d,c){var b=true;var a=$$("span",{"innerHTML":d});this.SetNodeStyle(a,c);for(i=0;i<a.childNodes.length;i++){if(a.childNodes[i].innerHTML==undefined){b=false;continue;}}if(a.getElementsByTagName("*").length>0&&b){return(a.innerText==""?"":a.innerHTML);}else{return a.outerHTML;}},SetNodeStyle:function(g,d){var e,b,a,f=g.childNodes;if(f.length>0){for(var c=0;c<f.length;c++){e=g.childNodes[c];if(e.innerHTML==undefined){if(a!=e.parentNode){this.IsSetStyle(e.parentNode,d);a=e.parentNode;}}else{this.SetNodeStyle(e,d);}}}else{this.IsSetStyle(g,d);}},IsSetStyle:function(a,c){var b,d=a.style;for(b in c){if(c.hasOwnProperty(b)){if(c[b][1]==d[b]||d[b]==""){d[b]=c[b][0];}else{d[b]=c[b][1];}}}},GetGBWZ:function(b){var a=0;_R=document.selection?document.body.createTextRange():this.R;if(_R.startOffset!=null){a=this.R.startOffset;}else{_R.moveToElementText(b);_R.moveStart("character",0);_R.setEndPoint("EndToStart",this.R);a=$$("div",{"innerHTML":_R.htmlText}).innerText.length+($("img",b).length);}return a;},JHGB:function(a,c,d){if(this.TF!=null){var g,h,b=this.OAT[this.TF],e=b[b.length-1],f={"OR":new this.init(a,false),"C":(c||"")};b.push(f);if(document.selection==null){if(d==null){d=document.createRange();d.setStart(e["OR"]["R"].endContainer,e["OR"]["R"].endOffset);d.setEnd(f["OR"]["R"].endContainer,f["OR"]["R"].endOffset);}e["OR"]["R"]=d;}}},ADQJ:function(a,b){clearTimeout(this.TIM[0]);this.TIM[0]=setTimeout((this.TIM[1]=U.M.apply(this,[[this.ADQJS,([a,b])]])),500);},ADQJS:function(b,c){var a=this["OAT"][this.TF];if(b){a[a.length-2]["C"]=b;}else{this.JHGB(this,b,c);}this.TIM.splice(0,2);},CZ:function(){var a=this.OAT[this.TF],c=a.length-2,b;U.M.StopDefault();if(c>-1){b=a.splice(c,1)[0];b["OR"].Replace(b["C"]);(b["C"]!="")&&(b["OR"].SL(null,b["OR"].TR));(a.length>0)&&(b=a.pop(),a.push({"OR":new this.init(b["OR"],false),"C":""}));}},CLKU:function(){var a=event.keyCode;this.CreateR(false);((a>268&&a<272)||(a>0&&a<5)||(a>36&&a<41))&&(this.CLMU());(this.CB)&&(this.CB("UP",[this.GetPStyle()]));},GetKE:function(){var b="QT",c,a=this.OAT[this.TF];this.SO=null;this.CreateR(false);this.KESO=this.GetPStyle(),_UKC=event.keyCode;if(event.ctrlKey){if(_UKC==90){(this.TIM[1])&&(this.TIM[1]());this.CZ();}}else{if(_UKC==8){if(this.R.commonParentElement==null){b="IFD";}else{if(this.R.commonParentElement&&this.R.commonParentElement().tagName.toLocaleLowerCase()!="img"){U.M.StopDefault();}}}else{if(_UKC==9){U.M.StopDefault();this.Replace("  ");b="TAB";}else{if(_UKC==13||_UKC==100){this.JHGB(this,"");}else{if(_UKC==229||((_UKC>47&&_UKC<58)||(_UKC>64&&_UKC<91))||((_UKC>95&&_UKC<112)&&(_UKC!=100))||(_UKC>185&&_UKC<223)){this.ADQJ();}else{if((_UKC>268&&_UKC<272)||(_UKC>0&&_UKC<5)||(_UKC>36&&_UKC<41)){((this.TIM[1])&&(this.TIM[1]()));}}}}}}(this.CB)&&(this.CB(b,[this.KESO]));},CLMU:function(){var a,b;(this.TF!=null)&&(a=this.OAT[this.TF],(a.length>0)&&(b=a.pop(),a.push({"OR":new this.init(b["OR"],false),"C":""})));(this.CB)&&(this.CB("ON",[]));},CTHH:function(){this.SO=null;this.CreateR();this.SO=null;var g,c,j,f,d,e=this.GetPStyle(),b=e.nextSibling,a=this.GetSelectedHtml(),h=e.innerText.length+($("img",e).length),k=$$("div",{"contentEditable":"inherit","innerHTML":" ","style":{"cssText":e.style.cssText}});while(e.tagName.toLocaleLowerCase()!="div"&&e.tagName.toLocaleLowerCase()!="p"&&e.tagName.toLocaleLowerCase()!="body"){e=e.parentNode;}if(a){this.Replace("");}if((g=this.GetGBWZ(e))!=h){h=e.innerText.length+($("img",e).length);this.QX(g,h);this.CreateR();c=this.GetSelectedHtml()=="";k.innerHTML=(this.GetSelectedHtml()||" ");this.Replace(" ");}if($("div",e)[0]==null){f=e.innerHTML;e.innerHTML="";d=$$("div",{"contentEditable":"inherit","innerHTML":(f||" ")},e);e=d;b=null;}if(b){b.parentNode.insertBefore(k,b);}else{e.parentNode.appendChild(k);}this.SO=k;this.CreateR();(c)&&(this.Replace((document.selection?"":"<br />"),(this.QX(0,1))));}};U.D.E.SORange.init.prototype=U.D.E.SORange;Namespace.register("U.D");U.D.Chatdrag=function(e,d,c){d=d.toUpperCase();var a=new U.D.RCDG(e,d,c),b=a.init();if(b){document.onmousemove=U.M.apply(a,[[a[d]]]);document.onmouseup=U.M.apply(a,[[a.MouseUp]]);}};U.D.RCDG=function(d,a,c){this.SO=d;this.T=a;this.AF=c;this.E=U.M.GetElementInfo(d);this.DE;this.X=this.Y=this.W=this.H=0;var b;this.P=["Top","Left","Bottom","Right"];for(b=0;b<this.P.length;b++){this.P[b]=parseInt(U.M.GetStyle(this.SO,"padding"+this.P[b])||0);}};U.D.RCDG.prototype={MaxWidth:$.fn.Screenwidth(),MinWidth:150,MaxHeight:$.fn.Screenheight(),MinHeight:50,init:function(){if(document.body.clientWidth!=this.SO.clientWidth&&document.body.clientHeight!=this.SO.clientHeight){this.IsMinAndMax();this.VDB=U.D.foundVirtualBox(this.SO);this.DE=U.M.GetElementInfo(this.VDB);this.VDB.setCapture();U.D.SetDTop(this.SO);return true;}else{return false;}},IsMinAndMax:function(){this.MaxWidth=(parseInt(U.M.GetStyle(this.SO,"maxWidth"))-this.P[1]-this.P[3])||document.body.clientWidth;this.MinWidth=(parseInt(U.M.GetStyle(this.SO,"minWidth"))+this.P[1]+this.P[3])||this.MinWidth;this.MaxHeight=(parseInt(U.M.GetStyle(this.SO,"maxHeight"))-this.P[0]-this.P[2])||document.body.clientHeight;this.MinHeight=(parseInt(U.M.GetStyle(this.SO,"minHeight"))+this.P[0]+this.P[2])||this.MinHeight;},UP:function(){var c=U.M.GetMousep();c["Y"]=c["Y"]<0?0:c["Y"];var a=c["Y"]-this.DE["OT"];var b=Math.max(Math.min(this.E["OH"]-a,this.MaxHeight),this.MinHeight);this.H=b-this.E["OH"];this.Y=-this.H;$(this.VDB).addAttrArray({"style":{"top":(this.DE["OT"]+this.Y)+"px","height":(this.DE["CH"]+this.H)+"px"}});},DOWN:function(){var c=U.M.GetMousep();var a=c["Y"]-this.E["OT"]-this.DE["OH"];var b=Math.max(Math.min(this.E["OH"]+a,this.MaxHeight),this.MinHeight);this.H=b-this.E["OH"];this.VDB.style.height=(this.H+this.DE["OH"])+"px";},LEFT:function(){var c=U.M.GetMousep();c["X"]=c["X"]<0?0:c["X"];var b=c["X"]-this.E["OL"];var a=Math.max(Math.min(this.E["CW"]-b,this.MaxWidth),this.MinWidth);this.W=a-this.E["CW"];this.X=-this.W;$(this.VDB).addAttrArray({"style":{"left":(this.DE["OL"]+this.X)+"px","width":(this.DE["CW"]+this.W)+"px"}});},RIGHT:function(){var c=U.M.GetMousep();var b=c["X"]-this.E["OL"]-this.DE["OW"];var a=Math.max(Math.min(this.E["OW"]+b,this.MaxWidth),this.MinWidth);this.W=a-this.E["OW"];this.VDB.style.width=(this.W+this.DE["OW"])+"px";},TOPLEFT:function(){this.LEFT();this.UP();},TOPRIGHT:function(){this.UP();this.RIGHT();},BOTTOMLEFT:function(){this.DOWN();this.LEFT();},BOTTOMRIGHT:function(){this.DOWN();this.RIGHT();},MouseUp:function(){document.onmousemove=document.onmouseup=null;$(this.SO).addAttrArray({"style":{"left":(this.E["OL"]+this.X)+"px","top":(this.E["OT"]+this.Y)+"px","width":(this.E["CW"]+this.W-this.P[1]-this.P[3])+"px","height":(this.E["CH"]+this.H-this.P[0]-this.P[2])+"px"}});this.VDB.releaseCapture();this.VDB.parentNode.removeChild(this.VDB);U.D.withf(this["AF"],[this.E["OW"]+this.W,this.E["OH"]+this.H]);}};U.D.foundVirtualBox=function(b){var c=U.M.GetElementInfo(b);var a=$$("div",{"style":{"border":"2px solid Gray","position":"absolute","top":c["OT"]+"px","left":c["OL"]+"px","width":c["OW"]-4+"px","height":c["OH"]-4+"px","zIndex":US.ZV+1}},b.parentNode);return a;};U.D.withf=function(a,o){var d,b,k,l,g;if(a!=null){for(d in a){if(a.hasOwnProperty(d)){if(d=="with"){for(b=0;b<a[d].length;b++){g=a[d][b]["Element"];if(g.length==null){g=[g];}for(var m=0;m<g.length;m++){l=g[m];if(a[d][b]["hdiffer"]){l.style.height=parseInt(o[1])+a[d][b]["hdiffer"]+"px";}if(a[d][b]["wdiffer"]){l.style.width=parseInt(o[0])+a[d][b]["wdiffer"]+"px";}}}}else{k=a[d];if(typeof(k)=="function"){k();return;}for(b=0;b<k.length;b++){if(k[b][1]){k[b][0].apply(this,k[b][1]);}else{k[b][0]();}}}}}}};Namespace.register("U.D");U.D.DragMouseDown=function(d,b,c){if(event.button!=2){var a=new U.D.Drag(d,b);a.init(c);(c)&&(a.IsMinAndMax(c));document.onmousemove=U.M.apply(a,[[a.Drag]]);document.onmouseup=U.M.apply(a,[[a.DragUp]]);}};U.D.Drag=function(b,a){this.SO=b;this.XY=U.M.GetMousep();this.E=U.M.GetElementInfo(b);this.AF=a;};U.D.Drag.prototype={MinTop:0,MaxTop:$.fn.Screenwidth()-10,Minleft:0,Maxleft:$.fn.Screenheight()-10,init:function(){U.D.SetDTop(this.SO);this.MaxTop=this.E["PXT"]+document.body.clientHeight-10;this.Maxleft=this.E["PXL"]+document.body.clientWidth-10;this.Minleft=-this.SO.offsetWidth;this.VDB=U.D.foundVirtualBox(this.SO);this.SO.setCapture();},IsMinAndMax:function(a){this.MinTop=a["MinTop"]||this.MinTop;this.MaxTop=this.E["PXT"]+a["MaxTop"]||this.MaxTop;this.Minleft=a["Minleft"]||-this.SO.offsetWidth;this.Maxleft=this.E["PXL"]+a["Maxleft"]||this.Maxleft;},Drag:function(){var b=U.M.GetMousep();var a=Math.max(Math.min(b["X"]-this.XY["X"]+this.E["OL"],this.Maxleft),this.Minleft);var c=Math.max(Math.min(b["Y"]-this.XY["Y"]+this.E["OT"],this.MaxTop),this.MinTop);$(this.VDB).addAttrArray({"style":{"top":c+"px","left":a+"px"}});},DragUp:function(){var a=U.M.GetElementInfo(this.VDB);$(this.SO).addAttrArray({"style":{"top":(a["OT"])+"px","left":(a["OL"])+"px"}});this.VDB.parentNode.removeChild(this.VDB);this.SO.releaseCapture();document.onmousemove=document.onmouseup=null;U.D.withf(this.AF);}};U.D.DragE;U.D.DragSelectE=function(c){if(event.button!=2){var d=U.M.GetMousep(),b=c["SO"].componentFromPoint(d["X"]+2,d["Y"]);if(b!="outside"&&b.indexOf("scroll")==-1){var a=new U.D.DSelectE(c["SO"],c["CS"],c["FUN"]);a.init();a.SetHover();document.onmousemove=U.M.apply(a,[[a.Drag]]);document.onmouseup=U.M.apply(a,[[a.DragUp]]);c["SO"].onscroll=U.M.apply(a,[[c["SO"].onscroll],[a.CTA],[a.Drag]]);c["SO"].onmousedown=U.M.apply(a,[[a.Event]]);}}};U.D.DSelectE=function(d,b,c,a){this.ESO;this.EL=d;this.PEL=U.M.GetStyle(d,"position")!="static"?d:U.M.TOSP(d);this.CS=b;this.C;this.TC=[];this.Fun=c;this.CB=d.onmousedown;this.OS=d.onscroll;this.X;this.Y;this.TX;this.TY;this.SX;this.SY;this.BX;this.BY;this.H;this.W;this.UX;this.UY,this.PUX;this.PUY;};U.D.DSelectE.prototype={CTA:function(){var a=U.M.GetElementInfo(this.PEL);this.UX=a["SL"]+a["PXL"]-this.PUX;this.UY=a["ST"]+a["PXT"]-this.PUY;this.SX=a["TX"]-this.X-Math.abs(this.UX);this.SY=a["TY"]-this.Y-Math.abs(this.UY);this.BX=a["BCRR"]-this.X+Math.abs(this.UX)-2;this.BY=a["BCRB"]-this.Y+Math.abs(this.UY)-2;},init:function(){this.EL.setCapture();var b=U.M.GetMousep();var a=U.M.GetElementInfo(this.PEL);this.X=b["X"];this.Y=b["Y"];this.PUX=a["SL"]+a["PXL"];this.PUY=a["ST"]+a["PXT"];this.TX=a["TX"]-this.PUX;this.TY=a["TY"]-this.PUY;this.CTA();this.C=$(this.EL).Child();if(this.C[0]){this.W=parseInt(U.M.GetStyle(this.C[0],"marginLeft"))+this.C[0].offsetWidth,this.H=parseInt(U.M.GetStyle(this.C[0],"marginTop"))+this.C[0].offsetHeight;}this.ESO=$$("div",{"className":"UD_DSE","style":{"top":this.Y-this.TY+"px","left":this.X-this.TX+"px"}},this.EL);},Drag:function(){var e=U.M.GetMousep();var c=this.Y-this.TY;var b=this.X-this.TX;var a=e["X"]-this.X+this.UX;var d=e["Y"]-this.Y+this.UY;if(a<0){a=Math.max(a,this.SX);b=b+a;}else{a=Math.min(a,this.BX);}if(d<0){d=Math.max(d,this.SY);c=c+d;}else{d=Math.min(d,this.BY);}$(this.ESO).addAttrArray({"style":{"width":Math.abs(a)+"px","height":Math.abs(d)+"px","top":c+"px","left":b+"px","zIndex":US.ZV+1}});this.IsLocation({"Left":b,"Top":c,"Xt":c+Math.abs(d),"Xl":b+Math.abs(a)});},IsLocation:function(c){this.TC=[];var a=this.GetLXY();for(var b=a[0];((b<this.C.length)&&(b<a[1]));b++){if((this.C[b]["offsetLeft"]+this.C[b]["clientWidth"]>c["Left"]&&this.C[b]["offsetTop"]+this.C[b]["clientHeight"]>c["Top"])&&(this.C[b]["offsetLeft"]<c["Xl"]&&this.C[b]["offsetTop"]<c["Xt"])){if(this.C[b].className.indexOf(this.CS)==-1){this.C[b].className=this.C[b].className+" "+this.CS;}this.TC.push(this.C[b]);}else{if(this.C[b].className.indexOf(this.CS)>-1){this.C[b].className=this.C[b].className.split(" "+this.CS)[0];}}}U.D.DragE=this;},GetLXY:function(){var d=[0,0],e=U.M.GetElementInfo(this.EL);if(this.C[0]){var a=Math.floor(e["OW"]/(this.W));var b=Math.ceil(e["OH"]/(this.H));var c=Math.floor((Math.min(e["ST"],this.ESO.offsetTop)/this.H))*a;d[0]=c;d[1]=c+Math.max(Math.ceil(((e["ST"]+e["OH"])/this.H))*a-c,(b*a));}return d;},Event:function(){if(event.button==2){var c=U.M.GetMousep();var a=true;for(var b=0;b<this.TC.length;b++){if((this.TC[b]["offsetLeft"]+this.TC[b]["clientWidth"]>c["X"]-this.TX&&this.TC[b]["offsetTop"]+this.TC[b]["clientHeight"]>c["Y"]-this.TY)&&(this.TC[b]["offsetLeft"]<c["X"]-this.TX&&this.TC[b]["offsetTop"]<c["Y"]-this.TY)){a=false;break;}}if(a){this.SetHover();(this.CB)&&(U.M.apply(this.EL,[[this.CB]])());}else{if(this.Fun){U.M.apply(this,[[this.Fun,([this.TC])]])();}}return a;}else{this.EL.onmousedown=this.CB;this.SetHover();U.M.IEVENT(this.EL,"mousedown");}},DragUp:function(){this.EL.releaseCapture();this.EL.removeChild(this.ESO);this.EL.onscroll=this.OS;document.onmouseup=document.onmousemove=null;this.EL.click();},SetHover:function(){for(var a=0;a<this.TC.length;a++){this.TC[a].className=this.TC[a].className.split(" "+this.CS)[0];}U.D.DragE=this.TC.length=0;}};U.D.iconmove=function(d,b,c){var a=new U.D.ICM(d,b,c).init(d);document.onmousemove=U.M.apply(a,[[a.move]]);document.onmouseup=U.M.apply(a,[[a.up]]);(b)&&(b.document.onmousemove=document.onmousemove);(b)&&(b.document.onmouseup=document.onmouseup);};U.D.ICM=function(c,a,b){this.X=c.offsetLeft,this.Y=c.offsetTop;this.SW;this.SO=c;this.E;this.CW=a;this.UCF=b;};U.D.ICM.prototype={init:function(b){var a=U.M.GetMousep();b.setCapture();this.E=a;this.SW=[0,0,US.Width-65,US.Height-240,a["X"]-b.offsetLeft,a["Y"]-b.offsetTop];(this.UCF&&this.UCF["ST"])&&(this.UCF["ST"].apply(this,[b]));return this;},move:function(){var b,d;if(event){b=U.M.GetMousep();}else{var d=$("#"+this.CW.name).GetElementInfo();b=this.CW.U.M.GetMousep();b["X"]+=d["BCRL"];b["Y"]+=d["BCRT"];}if(this.E["X"]-b["X"]!=0||this.E["Y"]-b["Y"]!=0){var c=b["X"]-this.SW[4];var a=b["Y"]-this.SW[5];if(c<this.SW[1]){c=this.SW[1];}else{if(c>this.SW[2]){c=this.SW[2];}}if(a<this.SW[0]){a=this.SW[0];}else{if(a>this.SW[3]){a=this.SW[3];}}$(this.SO).addAttrArray({"style":{"left":c+"px","top":a+"px"}});U.D.MoveCase=true;this.E=b;}},up:function(){(this.UCF&&this.UCF["UP"])&&(this.UCF["UP"].apply(this,[this.SO]));this.SO.releaseCapture();document.onmousemove=document.onmouseup=null;}};Namespace.register("U.Img");U.Img.Create=function(a,b,c){U.M.StopBubble();(new U.Img.E(a,b,c)).Create(true);};U.Img.E=function(a,b,d){this.BL;this.UIMG;this.AIMG=a;this.W;this.h;this.I=typeof b=="number"?b:0;this.R=0;this.UIOD;this.CTF=true;for(var c in d){if(d.hasOwnProperty(c)){this[c]=d[c];}}};U.Img.IE=U.Img.E.prototype={ET:[],Create:function(d){if(this.AIMG){var c,e=false,a=this.AIMG.length!=null?this.AIMG[this.I]:this.AIMG;for(var b=0;b<U.Img.IE.ET.length;b++){if(U.Img.IE.ET[b]["AIMG"].length){if(U.Img.IE.ET[b]["AIMG"].inArray(a["Thm"],"Thm")>-1){e=U.Img.IE.ET[b];break;}}else{if(U.Img.IE.ET[b]["AIMG"]["Thm"]===a["Thm"]){e=U.Img.IE.ET[b];break;}}}if(e){e["AIMG"]=this.AIMG.length?this.AIMG:[this.AIMG];e.Change(this.I,e);U.D.PopupWindow(e.UIOD);return true;}else{U.Img.IE.ET.push(this);}if(d===true){(!e)&&(c=this.AddE(a));}else{c=d();}(!e)&&(U.M.imgReady(a["Img"],U.M.apply(null,[[this.Ready,([c[0],c[1],this])]]),U.M.apply(null,[[this.Load,([c[0],c[1],this])]]),U.M.apply(this,[[this.Error,([a["Img"]])]])));}},AddE:function(a){var k,i,c,d,b,j,h,e,f,g;this.UIOD=k=$$("div",{"onmousewheel":[[U.M.StopBubble],[this.Wheel,([this])]],"className":"U_Img","onclick":[this.XSI,(["retElement",this,true])],"onmousedown":U.M.StopBubble,"style":{"maxWidth":$.fn.Screenwidth()+"px","maxHeight":$.fn.Screenheight()+"px","left":(Math.random()*50)+"px","top":(Math.random()*50)+"px","zIndex":US.ZV++}});$$("div",{"onmousedown":[[U.M.StopBubble],[U.D.DragMouseDown,([k])]],"className":"U_Img_Move","title":"移动相框"},k);c=$$("div",{"className":"U_Img_Operate UTransition","onselectstart":U.M.apply()},k);d=$$("div",{"className":"U_Img_Info","onmousedown":[[U.M.StopBubble],[this.MoveScroll,(["retElement",this])]],"style":{"maxHeight":($.fn.Screenheight()-80)+"px"}},k);i=$$("div",{"style":{"overflow":"hidden","margin":"auto","width":"120px","height":"120px"}},d);this.UIMG=b=$$("img",{"NowRotate":"0","src":a["Thm"],"onerror":U.M.apply(this,([[U.M.ImgError,(["this",1])]]))},i);j=$$("a",{"style":{"marginLeft":"20px"},"onclick":[[U.M.StopBubble],[this.Zoom,(["In",k,this])]]},c);$$("i",{"className":"U_ImgPic zoomIn"},j);$$("div",{"innerHTML":"放大"},j);$$("a",{"title":"点击100%比例","onclick":[[U.M.StopBubble],[this.Zoom,([100,k,this])]],"innerHTML":"100%"},c);h=$$("a",{"onclick":[[U.M.StopBubble],[this.Zoom,(["Out",k,this])]]},c);$$("i",{"className":"U_ImgPic zoomOut"},h);$$("div",{"innerHTML":"缩小"},h);e=$$("a",{"onclick":[[U.M.StopBubble],[this.Rotate,([1,k,this])]]},c);$$("i",{"className":"U_ImgPic Lrotate"},e);$$("div",{"innerHTML":"左转"},e);f=$$("a",{"onclick":[[U.M.StopBubble],[this.Rotate,([-1,k,this])]]},c);$$("i",{"className":"U_ImgPic Rrotate"},f);$$("div",{"innerHTML":"右转"},f);$$("div",{"className":"U_ImgPic U_Img_Close UTransition","style":{"cssText":"float:right;"},"onclick":[this.Close,([k,this,true])]},c);if(this.AIMG.length){$$("div",{"className":"U_Img_Prev U_Img_Change U_Img_transition U_ImgPic","onclick":[[U.M.StopBubble],[this.Change,([-1,this])]]},k);$$("div",{"className":"U_Img_Next U_Img_Change U_Img_transition U_ImgPic","onclick":[[U.M.StopBubble],[this.Change,([1,this])]]},k);}$(b).addAttrArray({"style":{"filter":"alpha(opacity=30)","MozOpacity":"0.3","Khtml-opacity":"0.3","opacity":"0.3"}});document.body.appendChild(k);U.D.PopupWindow(k);return[k,b];},XSI:function(a,b,c){if(b.CTF){b.Close(a,b,c);}b.CTF=true;},Wheel:function(d,b){b=event||b;var c=b.wheelDelta?(b.wheelDelta/120):(-b.detail/3),a=c>0?"In":"Out";d.Zoom(a,d.UIOD,d);},Zoom:function(e,b,d){if("Out,In".indexOf(e)>-1){e=e=="Out"?this.BL*0.8:this.BL/0.8;}if(e<22){e=22;}else{if(e>300){e=300;}}this.BL=e;var a=parseInt(d.H*(e/100)),f=parseInt(d.W*(e/100)),c=$(this.UIMG);c.addAttrArray({"style":{"width":f+"px","height":a+"px"}});d.PJ(f,a,b,c[0]);U.D.PopupWindow(b);},PJ:function(d,e,c,b){var a=b.parentNode;a.style.height=e+"px";a.style.width=c.style.width=d+"px";},Rotate:function(e,c,f){var d=$(f.UIMG),a=d.Parent(),b=[a.offsetWidth,a.offsetHeight];(e)&&(b.reverse());e=f.R+e;e=e>=4?0:e;e=e<0?3:e;f.R=e;b[2]=e%2?((b[(e-1)/2]/2)+"px"):"center";d.addAttrArray({style:{"transformOrigin":b[2]+" "+b[2],"filter":"Progid:DXImageTransform.Microsoft.BasicImage(Rotation="+e+")","WebkitTransform":"rotate("+e*90+"deg)","MozTransform":"rotate("+e*90+"deg)","transform":"rotate("+e*90+"deg)","OTransform":"rotate("+e*90+"deg)"}});f.PJ(b[0],b[1],c,d[0]);U.D.PopupWindow(c);},MoveScroll:function(a,b){a.setCapture();document.onmousemove=U.M.apply(b,[[b.Move,([a,event.clientX,event.clientY,[a.scrollTop,a.scrollLeft],b])]]);document.onmouseup=U.M.apply(b,[[b.Up,([a])]]);},Move:function(a,d,b,c,e){e.CTF=false;$(a).addAttrArray({"scrollTop":c[0]-(event.clientY-b),"scrollLeft":c[1]-(event.clientX-d)});},Up:function(a){a.releaseCapture();document.onmousemove=document.onmouseup=null;},Change:function(c,b){c=b.I+c;b.I=c=(c<0||c>=b.AIMG.length)?((c<0)?b.AIMG.length-1:0):c;var a=$(b.UIMG).addAttrArray({"src":b.AIMG[c]["Thm"],"style":{"filter":"alpha(opacity=30)","MozOpacity":"0.3","Khtml-opacity":"0.3","opacity":"0.3"}});b.Zoom(100,b.UIOD,b);b.Rotate((b.R=0),b.UIOD,b);U.M.imgReady(b.AIMG[c]["Img"],U.M.apply(null,[[b.Ready,([b.UIOD,a[0],b])]]),U.M.apply(null,[[b.Load,([b.UIOD,a[0],b])]]),U.M.apply(this,[[b.Error]]));},Download:function(a){a=fileName.FN(US.fs,"");U.Dk.RE.ODL(a,"1473用户图片.jpg");},Close:function(a,b,c){U.D.CloseWindow(a,c?"remove":false);U.Img.IE.ET.splice(U.Img.IE.ET.inArray(b),1);},Ready:function(c,b,a){if(this.src==b.src){$([b,b.parentNode]).addAttrArray({"style":{"width":this.width+"px","height":this.height+"px"}});a.W=this.width;a.H=this.height;U.D.PopupWindow(c);return true;}else{return false;}},Load:function(c,b,a){a.W=this.width;a.H=this.height;var e=100,d=document.body.clientHeight-200;$(b).addAttrArray({"src":this.src,"style":{"width":this.width+"px","height":this.height+"px","MozOpacity":"1","Khtml-opacity":"1","opacity":"1","filter":"alpha(opacity=100)"}});if(d<this.height){e=Math.floor(100*d/this.height);}a.Zoom(e,c,a);(c.style.display!="none")&&(U.D.PopupWindow(c));},Error:function(a,c){var b=this.UIMG;c=c||0;c++;if(c<3&&this.TF==2){U.M.imgReady(a+"?&n="+c,U.M.apply(null,[[this.Ready,([this.UIOD,b,this])]]),U.M.apply(null,[[this.Load,([this.UIOD,b,this])]]),U.M.apply(this,[[this.Error,([a,c])]]));}else{U.Alert("OMG!~图片丢失");U.M.ImgError(b,(this.TF||1));}}};U.Img.Animate=function(a){return new U.Img.AnimateD(a);};U.Img.AnimateD=function(a){this.itime=0;this.mode=1;this.maxHeight=0;this.timer=null;this._BV=null;this.obj=this.initial(a);};U.Img.AnimateD.prototype={initial:function(a){this._BV=U.CI.getBrowser().ver;return"string"==typeof(a)?document.getElementById(a):a;},LScreenSwitch:function(b,e,a){b.style.height=document.body.clientHeight+"px";b.style.left=b.style.width=0+"px";e.style.width=document.body.clientWidth+"px";var c=this;this.timer=setInterval(function(){c.sstimer(b,e,a);},32);},sstimer:function(c,e,a){if(parseInt(c.style.width)<document.body.clientWidth){e.style.left=c.style.width=parseInt(c.style.width)+100+"px";var b=parseInt(e.style.width)-100;b>0?e.style.width=b+"px":e.style.width="0px";}else{c.style.width=document.body.clientWidth+"px";e.style.width="0px";e.style.left="0px";clearInterval(this.timer);a();}},RScreenSwitch:function(){},slideDown:function(){if(parseInt(this.obj.style.height)>this.maxHeight){this.mode=0;return;}this.obj.style.height=parseInt(this.obj.style.height)+2+"px";this.timer=setTimeout("U.Img.Animate()",this.itime);},slideUp:function(){if(parseInt(this.obj.style.height)<2){this.mode=1;return;}this.obj.style.height=parseInt(this.obj.style.height)-2+"px";var a="U.Img.Animate()";this.timer=setTimeout(a,this.itime);},slide:function(b,a,c){clearTimeout(this.timer);this.obj=this.initial(b);this.itime=a;if(c){this.maxHeight=this.maxHeight?this.maxHeight:parseInt(this.obj.style.height);this.obj.style.display="block";this.obj.style.height="0px";this.slideDown();}else{this.slideUp();}},fade:function(l,c,f,k){this.obj=this.initial(l);this.itime=c;var e=this;this.maxHeight=parseInt(this.obj.style.height)|parseInt(this.obj.clientHeight);var d=f?100:0;var g=f?0:100;var j=(_BV=="7.0"||_BV=="8.0")?0.1:0.05;var h=f?-100*j:100*j;var a=setInterval(function(){if(d==g){clearInterval(a);if(typeof k=="function"){k();}}d+=h;e.obj.style.filter="alpha(opacity="+d+")";e.obj.style.MozOpacity=d*j;e.obj.style.opacity=d*j;e.obj.style.height=e.maxHeight+"px";},e.itime);},fadeIn:function(b,a,c){this.fade(b,a,true,c);},fadeOut:function(b,a,c){this.fade(b,a,false,c);}};Namespace.register("U.LC");U.LC["Z"]={};U.LC["E"]={};U.LC["dkA"]=[];U.LC["Z"]["dk"]=["云盘","相册","音乐","博客","学习社区","应用","便签","文档编辑","工作表","购物","积分中心","聊天","在线编程"];U.LC["E"]["dk"]=["disk","photo","music","blog","study","app","note","word","Excel","buy","grade","talk","Online programming"];U.LC.C=function(c){var d;for(var b in U.LC[c]){if(U.LC[c].hasOwnProperty(b)){for(d=0;d<U.LC[b+"A"].length;d++){U.LC[b+"A"][d].innerHTML=U.LC[c][b][d];}}}};Namespace.register("U.LO");U.LO.Flowlayout=function(e,a,f){var d=e.clientWidth,c;var b=Math.floor(d/(a+2*f));for(c=0;c<b;c++){$$("div",{"style":{"cssText":"float:left","width":a+"px","margin":f+"px"}},e);}return b;};Namespace.register("U.ME");U.ME.DH=function(b,c,d){var a=setInterval(U.M.apply(b,[[U.ME.DHGDAMXG,([d])]]),c);b.onmouseout=b.onmouseover=U.M.apply(b,[[U.ME.DHGDAM,([arguments,a])]]);};U.ME.DHGDAM=function(a,c){if(!U.M.onmouseout(this)){var b=event.type;clearInterval(c);if(b=="mouseout"){U.ME.DH.apply(window,a);}}};U.ME.DHGDAMXG=function(d){var b=$(this).Child(),c=b[b.length-1],a=[{"overflow":"hidden"},{}];d=d=="L"?"height":"width";a[0][d]="0px";a[1][d]=c["client"+(d[0].toUpperCase()+d.substr(1))]+"px";$(c).addAttrArray({"style":a[0]}).animate(a[1]);this.insertBefore(c,b[0]);};U.ME.YHT=function(d,h,l,k,e,f){var g,b=$(h).Child(),a=[],j=[k||0],c=setInterval(U.M.apply(this,[[U.ME.YHTXZ,([d,h,j,l])]]),f||1000);U.ME.YHTXZ(d,h,j,l);d.onmouseover=d.onmouseout=U.M.apply(d,[[U.ME.YHTQX,([arguments,c,j])]]);for(g=0;g<b.length;g++){b[g].onmouseover=b[g].onmouseout=U.M.apply(d,[[U.ME.YHTQX,([arguments,c,j,g])]]);}if(e){for(g=0;g<2;g++){(e[g])&&(e[g].onclick=U.M.apply(this,[[U.ME.SXYHT,([(g-1)*2,j,c,arguments])]]));}}return c;};U.ME.SXYHT=function(e,b,a,c){var d=$(c).Child();clearInterval(a);(!b[0])&&(b[0]=d.length);b[0]+=e;if(b[0]>=d.length){b[0]=0;}else{if(b[0]<0){b[0]=d.length-1;}}c[3]=b[0];U.ME.YHT.apply(this,c);};U.ME.YHTQX=function(f,c,e,b){if(!U.M.onmouseout(this)){var a=event.type,d=e[0]-1;clearInterval(c);if(a=="mouseout"){f[3]=b||d;U.ME.YHT.apply(window,f);}else{if((b!=null&&d!=b)){U.ME.YHTXZ(f[0],f[1],[b],f[2]);}}}};U.ME.YHTXZ=function(c,b,a,d){var e,g,f=$(c).Child(),h=b?$(b).Child():null;for(e=0;e<f.length;e++){$(f).addAttrArray({"style":e==a[0]?{"-moz-opacity":"0","opacity":"0","display":"block"}:{"display":"none"}},e);if(b){h[e].className=e==a[0]?d:h[e].className.replace(d,"");}}$(f[a[0]]).animate({"-moz-opacity":"1","opacity":"1"},500);a[0]++;(a[0]>=f.length)&&(a[0]=0);};U.ME.OpenWin=function(i,g,e,m,j,f,k){var a=U.M.GetElementInfo($("#"+i+"")[0]),c=$("#"+g+"");c[0].style.display="block";c[0].style.left=a.BCRL+"px";c[0].style.top=a.BCRT+"px";c.animate({"left":e,"top":m,"width":j,"height":f},k);};U.ME.CloseWin=function(c,g,e,a){var f=U.M.GetElementInfo($("#"+c+"")[0]);$("#"+g+"").animate({"left":f.BCRL+"px","top":f.BCRT+"px","width":"0px","height":"0px"},e,U.M.apply(this,"$('#"+g+"').css('display', 'none')"));if(a){a;}};U.ME.BShake=function(g,j){var c,n,e,i,h=0,m,f=1,p;"string"==typeof(g)?c=$("#"+g+""):c=$(g);if(U.M.GetStyle(c[0],"position")=="absolute"||U.M.GetStyle(c[0],"position")=="relative"){f=0;}if(f){n=U.M.GetStyle(c[0],"marginTop");e=U.M.GetStyle(c[0],"marginLeft");i=["marginTop","marginLeft"];}else{n=U.M.GetStyle(c[0],"top");e=U.M.GetStyle(c[0],"left");i=["top","left"];}m=setInterval(function(){h++;c[0].style[i[h%2]]=h%4<2?parseInt(U.M.GetStyle(c[0],i[h%2]))-2+"px":parseInt(U.M.GetStyle(c[0],i[h%2]))+2+"px";if(h>15){clearInterval(m);h=0;if(f){c[0].style.marginTop=n;c[0].style.marginLeft=e;}}},j);};U.ME.ChangeColor=function(a,f){var d=$("#"+a+"")[0],e=d.style.backgroundColor;d.style.backgroundColor=f;setTimeout(function(){d.style.backgroundColor=e;},1000);};Namespace.register("U.MPlayer");_$(U.MPlayer).Add({"IsUpPos":true,"IsP":true,"Time":null,"UMPL":null,"UMPP":null,"UMMP":null,"TF":"L","UTF":["MPlayer"]});U.MPlayer.UHD=function(f,e){var b,d=U,a=U.MPlayer.UTF,c=Array.apply(this,arguments);c.shift();for(b=0;b<a.length;b++){d=d[a[b]];}d[f].apply(this,c);};U.MPlayer.Onload=function(){try{var a=$("#U_MP_PFlash")[0];if(a){if($("#U_MP_MPFlash")[0]==null){a.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="display:block" width="1" height="1" id="U_MP_MPFlash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="movie" value="http://www.1473.cn/img/mp3player.swf" /><param name="menu" value="false" /><param name="wmode" value="transparent" /> <param name="quality" value="high" /><param name="bgcolor" value="ffffff" /><param name="allowScriptAccess" value="always" /><embed src="http://www.1473.cn/img/mp3player.swf" quality="high" bgcolor="ffffff" width="1" height="1" name="U_MP_MPFlash" align="middle" play="true" wmode="transparent" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed></object>';}U.MPlayer.UMPL=$("#U_MPMCDPO")[0];U.MPlayer.UMPP=$("#U_MPMGDT")[0];U.MPlayer.UM=$("*U_MP_MPFlash")[0];}}catch(b){}};U.MPlayer.Open=function(b,g,c){var a=$("#UseStudioU_MP")[0],h=$("#U_MPLB")[0],f=$("#U_MPMCD")[0],d=$("#U_MPFF")[0],e=$("div#U_MPI",a)[0];d.innerText=h.innerText="";e.style.display="block";U.D.PopupWindow(a);$("#U_MPLT")[0].onclick=U.M.apply(this,[[U.MPlayer.MOM,([US.Disk.diskfileTree[1][2]])]]);$("img",f).addAttrArray({"onerror":[U.M.ImgError,(["retElement"])],"src":U.M.GetImgU(US.Disk.diskfileTree[1][0].UserThumbnailImageHead),"onclick":[U.U.I.POUW,([US.Disk.diskfileTree[1][0].UserId])]});$("span",f)[0].innerHTML=US.Disk.diskfileTree[1][0].UserNickName;U.Dk.SetMDF((US.Friend[1]||[]),$("#U_MPFF")[0]);if(b[1].length==0&&g.length==0){$$("div",{"className":"U_MPP U_MP_IMG"},h);}else{U.MPlayer.AddM(b,g,h,c);}U.D.Tb.WindowRestore(e,"<div style='margin:11px 0 0 5px; width:61px; height:65px; background-position: -175px -75px;' class='UD_DI_iconimg UD_NUB'></div>","音乐",U.MPlayer.Close);};U.MPlayer.AddM=function(l,b,m,d){var g,e,k,c,h,a=document.createDocumentFragment();if(l[0].UserDirectoryID!=US.MG){e=$$("div",{"className":"U_MPLB"});k=$$("div",{"className":"U_MPLBT","onclick":[[U.M.StopBubble],[U.MPlayer.ListShrink,(["this.parentNode"])]]},e);$$("div",{"className":"U_MPLBA U_MPLBAO U_MP_IMG"},k);$$("div",{"className":"U_MPLBM","innerHTML":l[0].UserallDirectoryName+"("+l[1].length+")"},k);$$("div",{"className":"U_MPLBADD U_MP_IMG","onclick":[[U.M.StopBubble],[U.MPlayer.OUPM,([l[0].UserDirectoryID,US.Disk.diskfileTree[1][2]])]]},k);c=$$("div",{"className":"U_MPLBT","style":{"cssText":"width:100%;float:left;"}},e);m.appendChild(e);}else{c=m;}for(g=0;g<l[1].length;g++){h=$$("span",{"className":"U_MPLBN","onclick":U.M.StopBubble,"ondblclick":[U.MPlayer.loadAplay,(["retElement",l[1][g],US.Disk.diskfileTree[1][2]])]},a);$$("div",{"className":"U_MPLBNB U_MP_IMG","innerHTML":U.MT.TimeDouble(g+1)},h);$$("div",{"className":"U_MPLBNC","innerHTML":l[1][g].UserallDirectoryName},h);$$("div",{"className":"U_MPLBNS","innerHTML":"00:00"},h);if(l[1][g].UserDirectoryID==d){setTimeout(h.ondblclick,1000);}}c.appendChild(a);for(var f=0;f<b.length;f++){U.MPlayer.AddM(b[f][0],b[f][1],c);}};U.MPlayer.ListShrink=function(a){var c=$("div",a);var b=["none","U_MPLBA U_MPLBAC U_MP_IMG"];if(c[4].style.display=="none"){b=["block","U_MPLBA U_MPLBAO U_MP_IMG"];}c[4].style.display=b[0];c[1].className=b[1];};U.MPlayer.loadAplay=function(g,e,a){var d,f=$("div",U.MPlayer.UMPP),b=$("#U_MPLB")[0],c=$("*U_MP_MPFlash")[0].loadAplay(US.fs+e.UserFilesServerName);f[1].style.width=f[0].style.width=f[2].style.left="0px";$("#U_MPMCDD")[0].innerHTML=U.MPlayer.UMPL.innerHTML="00:00";$("div",U.MPlayer.UMPP.parentNode)[0].innerHTML=e.UserallDirectoryName;$("#U_MPMCDP")[0].className="U_MPMCDP U_MPMCDPC U_MP_IMG";if((U.MPlayer.UMMP)&&(d=U.MPlayer.UMMP[0])){d.style.color="#767676";$("div",d).addAttrArray({"className":"U_MPLBNB U_MP_IMG","innerHTML":U.MPlayer.UMMP[1]},0);}else{U.MPlayer.UMMP=[];}U.MPlayer.UMMP[0]=g;U.MPlayer.UMMP[1]=$("div",g)[0].innerHTML;g.style.color="#6da6e0";$("div",g).addAttrArray({"className":"U_MPLBNB U_MPLBNBI U_MP_IMG","innerText":""},0);$("#U_MPMXZL")[0].onclick=U.M.apply(this,[[U.MPlayer.LMGM,([a,e,g])]]);$("#U_MPMXZR")[0].onclick=U.M.apply(this,[[U.MPlayer.DMGM,([a,e,g])]]);};U.MPlayer.PNM=function(a){setTimeout($("#U_MPMCDA")[0].onclick,1000);};U.MPlayer.PNMO=function(b){var a=U.MPlayer.TF;if(a=="L"){U.MPlayer.PNMOM(b);}else{if(a=="R"){U.MPlayer.Shuffle();}else{U.MPlayer.REMOM();}}};U.MPlayer.Shuffle=function(){var b=$("span",$("#U_MPLB")[0]);var a=U.P.getRandom(b.length);b[a-1].ondblclick();};U.MPlayer.PNMOM=function(a){var c,b,d=$("#U_MPLB")[0];_UFMP=U.MPlayer.UMMP[0],UFMPL=$("span",_UFMP.parentNode);for(c=0;c<UFMPL.length;c++){if(UFMPL[c]==_UFMP){b=_UFMP;if((c==UFMPL.length-1)&&a==1){b=UFMPL[0];}else{if(UFMPL[c+a]!=null){b=UFMPL[c+a];}}b.ondblclick();return;}}};U.MPlayer.REMOM=function(){U.MPlayer.UMMP[0].ondblclick();};U.MPlayer.pauseOstart=function(){var b=$("#U_MPMCDP")[0];var a=U.MPlayer.UM.pauseOstart();if(a==false){b.className="U_MPMCDP U_MPMCDPO U_MP_IMG";}else{b.className="U_MPMCDP U_MPMCDPC U_MP_IMG";}};U.MPlayer.Posmove=function(b){U.MPlayer.IsUpPos=false;var a=$("div",b.parentNode);document.onmousemove=function(){if(!U.MPlayer.IsUpPos==true){b.setCapture();var f=U.M.GetMousep();var c=U.M.pageXY(b.parentNode);var e=a[1].clientWidth;var d=event.clientX-c[1];if(d<e&&d>0){b.style.left=d+"px";a[0].style.width=(d+2)+"px";}}};document.onmouseup=function(){U.MPlayer.SkipTo((parseInt(b.style.left))/225);U.MPlayer.IsUpPos=true;b.releaseCapture();document.onmouseup=document.onmousemove=null;};};U.MPlayer.SkipTo=function(c){U.MPlayer.IsUpPos=false;var a,b=$("div",U.MPlayer.UMPP),d=b[1].clientWidth;if(typeof c=="number"){a=c;}else{a=(event.clientX-parseInt(c.getBoundingClientRect().left));if(d>a){b[0].style.width=(a+2)+"px";b[2].style.left=a;a=a/225;}}if(d>parseInt(a*225)){U.MPlayer.UM.SkipTo((parseInt(U.MPlayer.Time)/1000)*a);}U.MPlayer.IsUpPos=true;};U.MPlayer.GD=function(){U.MPlayer.Time=U.MPlayer.UM.getDuration();var a=Math.round(U.MPlayer.Time/1000);$("div",U.MPlayer.UMMP[0])[2].innerHTML=$("#U_MPMCDD")[0].innerHTML=U.MT.TimeDouble(parseInt(a/60))+":"+U.MT.TimeDouble(parseInt(a%60));};U.MPlayer.ULD=function(a){var b=$("div",U.MPlayer.UMPP)[1];b.style.width=a+"%";};U.MPlayer.UPT=function(d,f,c){U.MPlayer.Time=f;var e=U.MPlayer.UM,b=Math.ceil(d/f*225);if(U.MPlayer.IsUpPos){if(e.getStatus()&&U.MPlayer.IsP){if((c*2.25)>=b){var a=$("div",U.MPlayer.UMPP);a[0].style.width=b+2+"px";a[2].style.left=b+"px";U.MPlayer.UMPL.innerText=U.MT.TimeDouble(parseInt(d/1000/60))+":"+U.MT.TimeDouble(parseInt(d/1000%60));}else{e.pauseOstart();U.MPlayer.IsP=false;}}else{if((c*2.25-5)>b&&U.MPlayer.IsP==false){e.pauseOstart();U.MPlayer.IsP=true;}}}};U.MPlayer.setVol=function(a){U.MPlayer.UM.setVol(a);};U.MPlayer.volumeMove=function(a){var b=$("div",a.parentNode.parentNode);document.onmousemove=function(){a.setCapture();U.MPlayer.OVM(a,b[b.length-2],b[b.length-4]);};document.onmouseup=function(){a.releaseCapture();document.onmouseup=document.onmousemove=null;};};U.MPlayer.OVM=function(d,b,c){var a=event.clientX-d.parentNode.getBoundingClientRect().left;if(a>=0&&a<=48){d.style.left=a+"px";b.style.width=(a+2)+"px";a=Math.round(a*(100/48)*2);d.title=a;if(a==0){U.MPlayer.mute(c);}else{c.className="U_MPMCDH U_MPMCDHH U_MP_IMG";U.MPlayer.setVol(a);}}};U.MPlayer.mute=function(c){var d=$("div",c.parentNode);var b=c.className;var a=d[d.length-1];_L=a.offsetLeft;if(b.indexOf("U_MPMCDHH")>-1){_L=0;c.className="U_MPMCDH U_MPMCDHM U_MP_IMG";}else{c.className="U_MPMCDH U_MPMCDHH U_MP_IMG";if(_L==0){_L=27;d[d.length-1].style.left=_L+"px";d[d.length-2].style.width=(_L+2)+"px";}_L=Math.round(_L*(100/48)*2);}U.MPlayer.setVol(_L);};U.MPlayer.MOM=function(a){if(!U.U.L.LARG()){if(a!=US.userinfo.UserId){U.M.divdoubleClick("UseStudioU_MP","",US.userinfo.UserId,null);}}};U.MPlayer.SMTF=function(b){var a=[];if(U.MPlayer.TF=="L"){U.MPlayer.TF="R";a[0]="U_MPMXZM U_MPMXZMR U_MP_IMG";a[1]="随机播放";}else{if(U.MPlayer.TF=="R"){U.MPlayer.TF="RE";a[0]="U_MPMXZM U_MPMXZMRE U_MP_IMG";a[1]="单曲循环";}else{U.MPlayer.TF="L";a[0]="U_MPMXZM U_MPMXZMM U_MP_IMG";a[1]="列表播放";}}b.className=a[0];b.title=a[1];U.Alert("切换到"+a[1]+"模式");};U.MPlayer.LMGM=function(a,b){if(!U.U.L.LARG()){if(a!=US.userinfo.UserId){U.Dk.LE.DBC(US.MG,US.userinfo.UserId);U.Dk.RE.CE=[b];U.Dk.RE.UFStick();U.Dk.RE.CE=[];}else{U.Alert("音乐已在自己的文件夹下");}}};U.MPlayer.DMGM=function(a,b,c){if(a==US.userinfo.UserId&&US.userinfo.UserId){U.Dk.RE.DMB(b,[U.MPlayer.AsynDMGM,([c])]);}else{U.Alert("无法删除它人的文件夹");}};U.MPlayer.AsynDMGM=function(a){U.MPlayer.PNMO(1);a.parentNode.removeChild(a);};U.MPlayer.Error=function(a){U.Alert("音乐文件损坏或者暂时无法播放");U.MPlayer.PNMO(1);};U.MPlayer.Close=function(){if(U.MPlayer.UM.getStatus()==true){U.MPlayer.pauseOstart();}U.D.Tb.PopupWinClose($("#U_MPI")[0]);};U.MPlayer.YC=function(a){a.style.visibility="hidden";};U.MPlayer.OUPM=function(c,b){if(US.userinfo.UserId!=null&&b==US.userinfo.UserId){var a=U.Dk.NologinDiskDown(b,c,b);$("div#UDK_HP_UpFile",a)[0].onclick();}else{U.Alert("请上传到您的文件夹");}};Namespace.register("U.MR");U.MR.OptionGroupSelect=function(e){var b,d,a=e.parentNode,f=$("span",a),g=$("i",a)[0],c=U.M.GetElementInfo(e);for(b=0;b<f.length;b++){$(f[b]).addAttrArray({"style":{"fontWeight":"normal","color":"#000"}});if(f[b]==e){$(e.parentNode).addAttrArray({"selectnum":b+1,"value":e.innerHTML});d=b;}}$(e).addAttrArray({"style":{"fontWeight":"bold","color":"White"}});$(g).animate({"left":d*c["BCRW"]+"px"},100);};U.MR.InputTip=function(c,e){var a,d=e[0],b=e[1];if(c.value===d){c.value=b;}else{if((c.value===undefined&&(c.innerHTML===d||c.innerText===d))){c.innerHTML=b;}}};Namespace.register("U.MS");U.MS.ZZBD=(function(){var b,a={"Website":function(g){var c=g.match("^[https:/]*([^/]*)"),d;if(c[1]){d=c[1].match("[0-9a-zA-Z]*.(com.tw|com.cn|com.hk|net.cn|org.cn|gov.cn|ac.cn|bj.cn|sh.cn|tj.cn|cq.cn|he.cn|sx.cn|nm.cn|ln.cn|jl.cn|hl.cn|js.cn|zj.cn|ah.cn|fj.cn|jx.cn|sd.cn|ha.cn|hb.cn|hn.cn|gd.cn|gx.cn|hi.cn|sc.cn|gz.cn|yn.cn|xz.cn|sn.cn|gs.cn|qh.cn|nx.cn|xj.cn|tw.cn|hk.cn|mo.cn|com|net|org|biz|info|cn|mobi|name|sh|ac|io|tw|hk|ws|travel|us|tm|cc|tv)$");try{return d[0];}catch(f){return false;}}return false;},"FileName":/^([a-zA-Z0-9\s\._-]+)$/,"Guid":/^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$/,"PBrief":/^.{0,100}$/,"ChineseIdCard":/\d{17}[\d|X]|\d{15}/,"Visa":/^[45]\d{15}$/,"Url":/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\:+!]*([^\\])*$/,"English":/^[A-Za-z]+$/,"TelephoneNumber":/(1[3,5,8][0-9])\d{8}$/,"Number":/^\d*$/,"Email":/^\w+([_+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,"TrueName":/^[\u4e00-\u9fa5]{1,20}$|^[a-zA-Z]{1,20}$/,"UserName":/^[\u4e00-\u9fa5\d0-9A-Za-z_]{3,14}$|^[\d0-9A-Za-z_]{4,14}$|^[\u4e00-\u9fa5]{2,7}$/,"NickName":/^[0-9a-zA-Z\u4e00-\u9fa5_-]{1,40}\\*$/,"PassWord":/^[a-zA-Z0-9_-]{6,20}$/};for(b in a){U.MS[b]=a[b];}})();U.MS.ZWFileName=/^[0-9a-zA-Z\u4e00-\u9fa5\._-]{1,40}\\*$/;U.MS.ZZCL=(function(){var b,a={"RFH":function(){return this.replace(/'/ig,"'").replace(/"/ig,'"');},"SubstrU":function(f){if(!f){return"";}if(this.length<f){return this.toString();}var c=0,e="",d;for(d=0;d<this.length;d++){c+=this.charCodeAt(d)>255?2:1;if(c>f){break;}else{e+=this.charAt(d);}}return e.toString();},"SubstrN":function(e){var c=0,d;for(d=0;d<this.length;d++){c+=this.charCodeAt(d)>255?2:1;if(c>e){return false;}}return true;},"StrIsNull":function(){if(this.Trim()==""){return true;}else{return false;}},"SetNR":function(){return this.replace(/\r\n/g,"<br />");},"SetBr":function(){return this.replace(/<(BR)[^<>]*>/ig,"\r\n");},"SubHtml":function(){return this.replace(/<(BR)[^<>]*>/ig,"").replace(/ /g,"");},"SubN":function(){return this.replace(/<(p)[^<>]*>/ig,"");},"pxToNum":function(){return Number(this.replace("px",""));},"IsGEdit":function(){if(this.replace(/ /g,"").replace(/\s/ig,"").replace(/<\/p>/g,"").replace(/<p>/g,"")==""){return false;}return true;},"HTMLSign":function(){return this.replace(/</g,"<").replace(/>/g,">");},"RemoveHTMLSign":function(){return this.replace(/</g,"<").replace(/>/g,">");},"restore":function(){return this.replace(/\《/g,"<");},"secure":function(){return this.replace(/\</g,"《");},"Replace":function(){return this.replace(/%/g,"%25").replace(/\&/g,"%26").replace(/\+/g,"%2B");},"encodeURI":function(){return encodeURIComponent(this);},"Trim":function(){return this.replace(/\ |\ |\s+|\n|\r|\t/g,"");},"TrimAll":function(){return this.replace(/\s+/g,"");},"Ltrim":function(){return this.replace(/(^\s*)/g,"");},"Rtrim":function(){return this.replace(/(\s*$)/g,"");}};for(b in a){U.M.Setprototype(String,b,a[b]);}})();U.M.Setprototype(String,"AddPreSpace",function(c){var b,a="";for(b=0;b<c;b++){a+=" ";}return a+this;});U.M.Setprototype(String,"InsertStr",function(b,d){var a=this.substr(0,d),c=this.substr(d,this.length);return a+b+c;});U.M.Setprototype(String,"RemoveNBSP",function(){return this.replace(/ /ig,"");});U.M.Setprototype(String,"SplitRN",function(){return this.replace(/\r\n/g,"\n").split("\n");});U.M.Setprototype(String,"AP",function(a){return this.SubstrN(a)?this:this.SubstrU(50)+"...";});U.M.Setprototype(Number,"SPL",function(){var b=[],a=this+"";while(a.length>3){b.unshift(a.substr(a.length-3,3));a=a.substring(0,a.length-3);}b.unshift(a);return b.join(",");});U.MS.ZZSZ=(function(){var b,a={"unique":function(c){var e=[];for(var d=0;d<this.length;d++){if(e.inArray(this[d][c],c)==false){e.push(this[d]);}}return e;},"inArray":function(e,c){for(var d=0;d<this.length;d++){if(c){if(this[d][c]===e){return d;}}else{if(this[d]===e){return d;}}}return -1;}};for(b in a){U.M.Setprototype(Array,b,a[b]);}})();U.M.Setprototype(Array,"remove",function(b){var a;for(a=0;a<this.length;a++){if(this[a]==b){this.splice(a,1);break;}}});U.MS.produceGuid=function(){var a,b="";for(a=0;a<32;a++){b+=Math.floor(Math.random()*16).toString(16);if((a==7)||(a==11)||(a==15)||(a==19)){b+="-";}}return b;};U.MS.JGuid=function(){return U.MS.produceGuid().replace(/-/g,"");};U.MS.SerializeJsonToStr=function(b){if(b===null||b===undefined){return"null";}else{b=b.valueOf();var c,d,a=typeof(b);if(a=="boolean"||a=="number"){d=b.toString();}else{if(a=="string"){d='"'+(b.replace(/\r\n/g,"\\r\\n").replace(/\n/g,"\\n").replace(/\"/g,'\\"'))+'"';}else{if(b instanceof Array){d="[";for(c=0;c<b.length;c++){if(d.length>1){d+=",";}d+=U.MS.SerializeJsonToStr(b[c]);}d+="]";}else{d="{";for(c in b){if(b.hasOwnProperty(c)){if(d.length>1){d+=",";}d+='"'+c+'":'+U.MS.SerializeJsonToStr(b[c]);}}d+="}";}}}return d;}};Namespace.register("U.MT");U.MT.GetDT=function(b){try{if(typeof b=="string"||b==null){b=b==null?new Date():new Date(parseInt(b.replace("/Date(","").replace(")/","")));}return b.getFullYear()+"-"+(b.getMonth()+1)+"-"+b.getDate()+" "+((b.getHours())>=10?b.getHours():"0"+b.getHours())+":"+(b.getMinutes()>=10?b.getMinutes():"0"+b.getMinutes())+":"+(b.getSeconds()>=10?b.getSeconds():"0");}catch(a){return b;}};U.MT.GTS=function(b){try{b=b.split("T");return b[0]+" "+b[1].split(".")[0];}catch(a){return U.MT.GetDT();}};U.MT.SetDT=function(c,b){if(b){var a=c.replace(new RegExp(b,"g"),"/");return new Date(a);}else{var a=U.MT.getTimeStr(c,"Array");return"/Date("+Date.UTC(a[0],a[1]-1,a[2],a[3]-8,a[4],a[5])+")/";}};U.MT.getTimeStr=function(c,a){switch(a){case"Array":var b=U.MT.GetDT(c).split(" ");return b.length==1?b[0].split("-"):b[0].split("-").concat(b[2].split(":"));break;case"String":return U.MT.GetDT(c).split(" ")[0];break;case"DAT":return"";break;default:break;}};U.MT.comptime=function(a,b){if(a.indexOf("Date")<=-1){a=U.MT.SetDT(a,"-");}if(a.indexOf("Date")<=-1){b=U.MT.SetDT(b,"-");}if(a<b){return false;}else{if(a>b){return true;}else{return"equal";}}};U.MT.getDateOfMonth=function(b,c){var a=new Date(b,c,0);return a.getDate();};U.MT.TimeDouble=function(a){if(a<10){return"0"+a;}return a;};U.MT.getTDInterval=function(b){var e,c,d,a=U.MT.getTimeStr(new Date(),"Array"),f=U.MT.getTimeStr(b,"Array");if(a[0]==f[0]&&a[1]==f[1]&&(c=a[2]-f[2])<2){if(c==0){d="小时";e=a[3]-f[3];(e==0)&&(e=a[4]-f[4],d="分钟");e=e||1;e+=d+"前";}else{if((c=(24-f[3]+a[3]))<=12){e=c+"小时前";}}}(e==null)&&(e=f[1]+"-"+f[2]+" "+f[3]+":"+f[4]+":"+f[5]);return e;};U.MT.DJS=function(c,g){var d,b,f,e=[60,60,24,1],a=[],h=((new Date(c[0],c[1]-1,c[2],c[3]||0,c[4]||0,c[5]||0))-(new Date()))/1000;for(d=e.length-1;d>=0;d--){f=h;for(b=0;b<=d;b++){b==d?f%=e[b]:f/=e[b];}a.push(parseInt(f,10));}(g)&&(g(a));setInterval(U.M.apply(this,[[U.MT.DJS,([c,g])]]),1000);};Namespace.register("U.OU");U.OU.TF={"UV":"","TF":"Excel","UAE":[],"D":true,"FTF":false};U.OU.Onload=function(c,a,b){U.OU.CreatTool(a);U.AFB.RGoL("Word");U.AFB.RGoL("WordL");U.OU.TF["UAE"]=b;};U.OU.CreatTool=function(d){var g,f,k,c,h=document.createDocumentFragment(),b=document.createDocumentFragment(),e=document.createDocumentFragment(),a=[["Calibri","宋体","黑体","隶书","幼圆","楷体","Arial","仿宋体",0],["6","8","9","10","11","12","14","16","18","20","22","24","26","28","36","48","72",5],["#ffffff","#ffccc9","#ffce93","#fffc9e","#ffffc7","#9aff99","#96fffb","#cdffff","#cbcefb","#cfcfcf","#fd6864","#fe996b","#fffe65","#fcff2f","#67fd9a","#38fff8","#68fdff","#9698ed","#c0c0c0","#fe0000","#f8a102","#ffcc67","#f8ff00","#34ff34","#68cbd0","#34cdf9","#6665cd","#9b9b9b","#cb0000","#f56b00","#ffcb2f","#ffc702","#32cb00","#00d2cb","#3166ff","#6434fc","#656565","#9a0000","#ce6301","#cd9934","#999903","#009901","#329a9d","#3531ff","#6200c9","#343434","#680100","#963400","#986536","#646809","#036400","#34696d","#00009b","#303498","#000000","#330001","#643403","#663234","#343300","#013300","#003532","#010066","#340096"]];for(g=0;g<a.length;g++){k=a[g].length;(g<2&&(k=a[g].length-1)&&d[g].options)&&(d[g].options.length=k,d[g].selectedIndex=a[g][a[g].length-1]);h=document.createDocumentFragment();for(f=0;f<k;f++){if(g<2){if(d[g].options){(c=d[g].options[f]).value=c.text=a[g][f];}else{$$("div",{"unselectable":"on","innerHTML":a[g][f],"onmousedown":U.M.StopBubble,"style":{"fontFamily":a[g][f]}},h);}}else{$$("div",{"style":{"backgroundColor":a[g][f]}},b);$$("div",{"style":{"backgroundColor":a[g][f]}},e);}}if(g<2){(h)&&(d[g].appendChild(h));}else{d[g].appendChild(b);d[g+1].appendChild(e);}}};U.OU.SGN=function(){var a=U.OU.TF["TF"]=="Excel";(a)&&($("#U_E_ASL")[0].className="U_E_ICO U_E_ASL U_E_ASV");$("#U_E_AXB")[0].onclick=U.M.apply(this,[[U.M.StopBubble],[a?U.Excel.Save:U.Word.Save,([[[U.Word.YBKWJ]],true])]]);$("#U_E_AXU")[0].onclick=a?U.Excel.NewTZB:U.Word.NWWJ;};U.OU.SCJD=function(a,c,b){var d=U.OU.R;d=U.OU.R=d?(U.OU.R.SO=a,U.OU.R.CreateR()):U.D.E.GetSelectionRange(window,a,{"TF":b?"E":"W","CB":b});d.Replace(c,U.OU.R.R);return d;};U.OU.JDCL=function(b){try{(U.OU.R)&&(U.OU.R=U.OU.R.CreateR(),U.OU.TF["FTF"]=true);}catch(a){}};U.OU.JDCR=function(){var a=U.OU.R;if(a){if(!a.GetSelectedHtml()){a.Replace("");}else{if(!document.selection){a.QX();}}}};U.OU.OUIG=function(f,e,d,j){var g,c,h,k,b=document.createDocumentFragment(),a=(US.Disk.diskfileTree)?(_$(US.Disk.diskfileTree[0]).Select({"UserDirectoryParentID":f})):"";d.innerText="";for(g=0;g<a.length;g++){k=top.U.Dk.HP.IsDF(a[g].UserDirectoryExtendType)[0];c=$$("div",{"className":"UDK_RT_application","onmousedown":U.OU.AImgCL,"onclick":[[U.OU.OUALJ,([j||U.OU.R,e,a[g],d])]]},b);h=$$("div",{"className":"UDK_RT_UDD Radius5"},c);if(k=="P"){$$("img",{"className":"UDK_RT_UDD_DV","src":a[g].UserDirectoryUrl,"onerror":[[U.M.ImgError,(["this",1])]]},h);}else{$$("div",{"className":"UDK_L_DiskGE UDK_RT_UDD_DV","style":{"cssText":a[g].UserDirectoryUrl+";"}},h);}$$("span",{"innerHTML":a[g].UserDirectoryName},h);}d.appendChild(b);};U.OU.OUALJ=function(d,c,a,b){if(a.filetype){U.M.StopBubble();if(!d){U.Alert("请选择编辑区!");}else{switch(c){case"img":(U.M.apply(d,[[U.OU.AImgCL],[U.OU.SDYC],[d.Replace,(["<img onclick='U.Img.Create({ \"Thm\": this.src, \"Img\": this.src});' style='max-width:480px;' alt='"+(a.Descript||a.UserallDirectoryName)+"' src='"+(US.fs+a.UserFilesServerName)+"' />  "])]]))();break;case"LJ":U.OU.OULJ(d,a,"http://disk.1473.cn/#!/"+a["UserDirectoryID"]);break;}}}else{U.AFB.AddEvent([[U.OU.OUIG,([a.UserDirectoryID,c,b,d])]],c=="img"?"Word":"WordL");U.OU.JDCR();}};U.OU.AImgCL=function(a,c){if(U.OU.TF["TF"]=="Excel"){var b=$("div",(U.Excel.SY["UAE"]["FE"]||$("#U_E_EditFrame")[0]))[0];if(b.contentEditable!="true"||U.OU.R.SO!==b){U.Excel.EditFrameDoubleClick((U.Excel.SY["UAE"]["FE"]||$("#U_E_EditFrame")[0]));U.OU.R=U.D.E.GetSelectionRange(window,b,{"TF":"E"});}}U.OU.TF.D=true;};U.OU.CIDX=function(a){a.style.maxWidth="480px";};U.OU.OULJ=function(d,b,a){var c=d.GetSelectedHtml();if(c){d.Replace("<a href='"+a+"' style='color:#3B639F;text-decoration:none;' target='_blank' title='"+(b.Descript||b.UserallDirectoryName)+"'>"+c+"</a>");}else{top.U.Alert("请选择链接文字");}};U.OU.OUWLJ=function(b,g){var a,f,e=U.OU.R,d=e.GetSelectedHtml(),c=$("div",b.parentNode);if(g=="S"){if(d||e.SO.tagName.toLocaleLowerCase()=="img"){U.OU.ChangeStyle({"color":"White","backgroundColor":"#3398ff"});b.focus();}else{top.U.Alert("请选择链接文字");}}else{if(g=="E"){if(U.MS.Website(a=c[1].innerText)){e.SO.parentNode.replaceChild((f=$$("a",{"href":URL,"style":{"color":"#3B639F","textDecoration":"none"},"target":"_blank","title":e.SO.innerText})),e.SO);f.appendChild(e.SO);}else{U.Alert("无效连接地址");}}else{U.OU.ChangeStyle({"color":"","backgroundColor":""});}U.OU.SDYC();}return true;};U.OU.ColorLiOnClick=function(c,b){var d,a=c.style.backgroundColor;b[0].style.backgroundColor=a;c.parentNode.style.display="none";for(d in b[1]){b[1][d]=a;}U.OU.ChangeStyle(b[1]);};U.OU.ChangeStyle=function(b){var d,f,a=U.OU.TF["TF"]=="Excel";if(a&&(U.Excel.SY["UAE"]["FE"]||$("#U_E_EditFrame")[0]).ondblclick){d=U.Excel.SY;f=d["SEO"][0];U.D.E.FontSizeType(f,b,null,"E");d["CE"]["Cell"][d["SEO"][1]].style.cssText=f.style.cssText;return;}var e=U.OU.R||U.D.E.GetSelectionRange(window,null,{"TF":a?"E":"W"}),c=e.GetPStyle();U.D.E.FontSizeType(c,b,e,"W");};U.OU.DSZS=function(b,a,c){if(b[0].style.display=="block"){b[0].style.display="none";}else{(b[0].addAttrArray({"style":{"zIndex":"99999","display":"block","left":(a.offsetLeft+(c||0))+"px"}}))[0];}};U.OU.OUDLJ=function(b){U.OU.TF.D=false;var a=$("#U_E_AZUXUB")[0];if(!top.U.U.L.LARG()){$("#U_E_AZUXUT")[0].innerHTML="http://";a.onclick=U.M.apply(a,[[U.OU.OUWLJ,([a,"E"])]]);U.OU.DSZS(b,$("#U_E_AZLJ"),-182);}else{U.M.StopBubble();}};U.OU.InsertNowTime=function(){var a=U.MT.getTimeStr(new Date(),"String");if(U.OU.TF["TF"]=="Excel"){U.Excel.SetWZ(a);}else{U.D.E.GetSelectionRange(window,$$("span"),{"TF":"W"}).Replace(a);}};U.OU.MCWJM=function(b){var a;if((a=(U.Word?U.Word.TF["ET"]:U.Excel.SY["ET"]))){top.U.Dk.RE.MFN(a,b.innerText);}else{b.innerText="未命名文档";}};U.OU.OUSCJ=function(){var a=U.OU.TF["TF"]=="Excel",c=(U.Excel||U.Word),b=a?c.SY["ID"]:c.TF["ID"];if(b){window.open("http://disk.1473.cn#!/"+b);}else{top.U.Alert("请保存文件后执行");c.Save();}};U.OU.HDOUSCJ=function(){var a=U.Word.TF["UAE"]["UEOD"];a||(U.OU.TF["TF"]=="Excel"?(U.Excel.SY["UAE"]["E"]||$("#U_E_CellFrame")[0]):$("#U_W_WordEdit")[0]);return a.innerHTML;};U.OU.Copy=function(){var a=U.OU.R;if(U.OU.TF["TF"]=="Excel"){if(!a.SO.contentEditable){return;}}(a)&&(U.OU.TF["UV"]=U.OU.R.GetSelectedHtml());};U.OU.ZT=function(b){var a=U.OU.R;if(U.OU.TF["TF"]=="Excel"&&a.SO.contentEditable=="false"){U.Excel.SY["SEO"][0].innerHTML=U.OU.TF["UV"];return;}(a)&&(a.Replace(b||U.OU.TF["UV"]));};U.OU.CX=function(){if(U.OU.TF["TF"]=="Excel"){U.Alert("Excel暂不支持");}else{(U.OU.R)&&(U.OU.R.CZ());}};U.OU.SYDH=function(){if(U.OU.TF["TF"]=="Word"){var a=$("#U_ONO")[0],g,e,b,d,c,f;if(a){g=$("div#U_ONOT")[0],e=$("div#U_ONOC")[0];f=U.M.GTCN(g.childNodes).length,_GUID=U.MS.produceGuid();c=$$("div",{"className":"U_ONOTI","ITF":_GUID,"onmouseup":"U.OFD.SW(this);$('div',this)[0].focus();"});$$("div",{"className":"U_ONOTIB","innerHTML":("菜单"+f)},c);$$("div",{"className":"UF_FW_os UF_FW_CloseButton U_ONOTIC","onmouseup":"U.Word.TYDT(this.parentNode);"},c);b=$$("div",{"className":"U_ONOCC","ITF":_GUID});d=$$("div",{"className":"U_ONOCCA"},b);$$("div",{"className":"U_ONOCCB","innerHTML":"点击编辑中间的内容","onmouseup":"if(U.OU){ U.OU.DJBJ(false,this.parentNode); }"},d);$$("div",{"className":"U_ONOCCB U_ONOCCS","innerHTML":"点击选择连接网站","onmouseup":"if(U.OU){ U.OU.DJBJ(true,this.parentNode); }"},d);g.innerHTML+=c.outerHTML;e.innerHTML+=b.outerHTML;c=U.M.GTCN(g.childNodes);c[c.length-1].onmouseup();}else{a=$$("div",{"className":"U_ONO","id":"U_ONO"});g=$$("div",{"className":"U_ONOT","id":"U_ONOT"},a);c=$$("div",{"className":"U_ONOTI","ITF":0,"onmouseup":"U.OFD.SW(this);$('div',this)[0].focus();"},g);$$("div",{"className":"U_ONOTIB","innerHTML":"首页"},c);$$("div",{"className":"UF_FW_os UF_FW_CloseButton U_ONOTIC","onmouseup":"U.Word.TYDT(this.parentNode);"},c);e=$$("div",{"className":"U_ONOC","id":"U_ONOC","contentEditable":"false"},a);b=$$("div",{"className":"U_ONOCC","ITF":0},e);d=$$("div",{"className":"U_ONOCCA"},b);$$("div",{"className":"U_ONOCCB","innerHTML":"点击编辑中间的内容","onmouseup":"if(U.OU){ U.OU.DJBJ(false,this.parentNode); }"},d);$$("div",{"className":"U_ONOCCB U_ONOCCS","innerHTML":"点击选择连接网站","onmouseup":"if(U.OU){ U.OU.DJBJ(true,this.parentNode); }"},d);$$("div",{"className":"UF_FW_os UF_FW_CloseButton U_ONOTIC","onmouseup":"U.Word.TYDT(this.parentNode);"},a);U.OU.R.Replace(a);}}else{top.U.Alert("Excel无法使用此功能");}};U.OU.DJBJ=function(c,b){if(c){top.U.Alert("请在左边的文件中选择文件链接",2000);b=b.parentNode;var a=b.getAttribute("ITF");b=$("div@ITF="+a,b.parentNode.parentNode)[0];b.focus();U.OU.R.SO=b;U.OU.R.CreateR(false);}else{b=b.parentNode;b.contentEditable="true";b.innerHTML=" ";U.OU.R.SO=b;U.OU.R.Replace("<div></div>",U.OU.R.QX(0,1,b));}};U.OU.SDYC=function(a){if(U.OU.TF.D&&(!a||event.srcElement==a)){$(U.OU.TF["UAE"]).addAttrArray({"style":{"display":"none"}});U.OU.TF["FTF"]=false;}U.OU.TF.D=true;};Namespace.register("U.P");U.P.getRandom=function(a){return Math.floor(Math.random()*a+1);};U.P.RandomRange=function(a,b){if(a>b){a=[b,b=a][0];}return Math.floor(Math.random()*(b-a))+a;};U.P.RandomXY=function(a,c,b,d,e){};U.P.MouseInRect=function(b){var a=U.M.GetMousep();var c=U.M.GetElementInfo(b);if(a.X>c.BCRL&&a.X<c.BCRR&&a.Y>c.BCRT&&a.Y<c.BCRB){return true;}return false;};U.P.DrawPoint=function(a,e,d,b){$$("div",{"style":{"position":"absolute","left":a+"px","top":e+"px","backgroundColor":d,"width":b+"px","height":b+"px"}},document.body);};U.P.DrawRect=function(d,f,b,e,h,a){var g=new Array();g[0]={x:d,y:f};g[1]={x:b,y:f};g[2]={x:b,y:e};g[3]={x:d,y:e};U.P.Polygon(g,h,a);};U.P.Clean=function(){};U.P.DrawLine=function(b,m,a,l,h,n,o){var g,e=(l-m)/(a-b);var f=(l>m)?m:l,p=(l>m)?l:m;var j=(a>b)?b:a,d=(a>b)?a:b;if((a-b)==0){for(g=f;g<p;g++){U.P.DrawPoint(a,g,h,n);}return;}if((l-m)==0){for(g=j;g<d;g++){U.P.DrawPoint(g,l,h,n);}return;}if(e<=1){for(g=j;g<d;g++){U.P.DrawPoint(g,e*g+l-e*a,h,n);}}else{for(g=f;g<p;g++){U.P.DrawPoint((g-l+e*a)/e,g,h,n);}}};U.P.Sin=function(a,g,e,f,b){var d;for(d=0;d<e;d++){U.P.DrawPoint(a+d,g+Math.sin(d/180*Math.PI)*100,f,b);}};U.P.Cos=function(a,g,e,f,b){var d;for(d=0;d<e;d++){U.P.DrawPoint(a+d,g+Math.cos(d/180*Math.PI)*100,f,b);}};U.P.Circle=function(h,g,e,f,k){var b=0,j,d,a;while(b<360){j=Math.sin(b/180*Math.PI)*e;d=Math.cos(b/180*Math.PI)*e;a=e/100;if(1/a>1){a=1;}else{if(1/a<0.2){a=0.2;}else{a=1/a;}}U.P.DrawPoint(j+h,d+g,f,k);b=b+a;}};U.P.Polygon=function(f,e,b){var d,a=f.length;for(d=0;d<a-1;d++){U.P.DrawLine(f[d].x,f[d].y,f[d+1].x,f[d+1].y,e,b);if(d==1&&f.length==2){break;}}U.P.DrawLine(f[0].x,f[0].y,f[a-1].x,f[a-1].y,e,b);};Namespace.register("U.PG");U.PG.PPage=function(a,c,q,l,b){q=parseInt(q);var h,f,d,o,g=[],r=[],n=Math.ceil(c/l),e=[1,q-1,q+1,"(window.event.srcElement).value",n],m=b["fun"],p=b["page"];for(h=0;h<e.length;h++){for(f=0;f<m.length;f++){o=m[f][1];g[f]=[];for(d=0;d<o.length;d++){if(d==p[f]){g[f].push(e[h]);}else{g[f].push(o[d]);}}r[h]=U.M.apply(this,[[m[f][0],g[f]]]);}}U.PG.CPage(r,a,n,q);};U.PG.CPage=function(f,a,c,h){var i,b,e,j,d=["opacity:0.8;","opacity:0.8;","opacity:0.8;","opacity:0.8;"],g=[null,null,null,null];(h>1)&&(d[1]="",g[1]=f[1]);(h<c)&&(d[2]="",g[2]=f[2]);(h!=1)&&(d[0]="",g[0]=f[0]);(h!=c)&&(d[3]="",g[3]=f[4]);i=$$("div",{"className":"U_pages"});$$("div",{"className":"UP U_Pagebtnp","onclick":g[0],"style":{"cssText":d[0]}},i);$$("div",{"className":"UP U_Pagebtnn","onclick":g[1],"style":{"cssText":d[1]}},i);b=$$("div",{"className":"U_jumppage","style":{"width":"auto"}},i);e=$$("div",{"className":"U_Pcenter","style":{"width":"auto","margin":"0"}},b);$$("div",{"innerHTML":"第"+h+"页"},e);j=$$("div",{"style":{"paddingTop":"5px"}},e);$$("input",{"type":"text","onkeyup":[U.M.returnkeylogin,[null,[[U.PG.PageAchieve,([f[3],h,c])]]]]},j);$$("div",{"innerHTML":"/"+c+"页"},e);$$("div",{"className":"UP U_Pagebtnnmp","onclick":g[2],"style":{"cssText":d[2]}},i);$$("div",{"className":"UP U_Pagebtnnmn","onclick":g[3],"style":{"cssText":d[3]}},i);a.appendChild(i);};U.PG.PageAchieve=function(c,d,a){var b=parseInt(event.srcElement.value);if(U.MS.Number.test(b)&&b<=a&&b>0&&b!=d){c();}else{top.U.Alert("无此页!~");}};Namespace.register("U.D");U.D.Windowmaximize=function(h,n,b,f,l){var d,e,k,j=U.M.GetElementInfo(h),c=$("body")[0],a=c.clientWidth,m=c.clientHeight;if(j["CW"]==a&&j["CH"]==m){e={"style":{"width":(a*0.9)+"px","height":(m*0.8)+"px","left":((a*0.1)/2)+"px","top":((m*0.2)/2)+"px"}};if(l){l["style"]=l["style"]||{};}else{l=e;}(f&&l.onmousedown)&&(f.onmousedown=l.onmousedown,delete l["onmousedown"]);$(h).addAttrArray(l);(n)&&(n.title="全屏");k=[h["clientWidth"],h["clientHeight"]];}else{var g={"style":{"cssText":h.style.cssText,"width":j["OW"]+"px","height":j["OH"]+"px"},"onmousedown":(f?f.onmousedown:null)};k=[a,m];$(h).addAttrArray({"style":{"top":(0+j["PXT"])+"px","left":(0+j["PXL"])+"px","width":a+"px","height":m+"px"}});$(n).addAttrArray({"onclick":[[U.D.Windowmaximize,([h,n,b,f,g])]],"title":"还原"});(f)&&(f.onmousedown=U.M.apply(f,[[U.D.DragElement,([h,n,b,f,g])],[f.onmousedown]]));}U.D.withf(b,k);};U.D.DragElement=function(g,b,c,a,e){var d=U.M.GetMousep(g),f=$("body")[0];(e==null||e["style"]==null)&&((e==null)&&(e={}),e["style"]={});$(e["style"]).addAttrArray({"width":f.clientWidth*0.9+"px","height":f.clientHeight*0.8+"px"});$(e["style"]).addAttrArray({"left":Math.min(Math.max(d["X"]-(parseInt(e.style.width)/2),0),(f.clientWidth-parseInt(e.style.width)))+"px","top":"0px"});U.D.Windowmaximize(g,b,c,a,e);};U.D.WindowMin=function(c){c=$(c);var b=c.GetElementInfo(),a={"style":{"cssText":c[0].style.cssText,"display":"none"}};c.animate({"left":US.Width/2+"px","top":US.Height+"px","width":b["CW"]/3+"px","height":b["CW"]/3+"px","opacity":"0.8","filter":"alpha(opacity=80)"},5,U.M.apply(this,[[U.D.MimHF,([$(c),a])]]));(top.U.D.G)&&(setTimeout(function(){top.U.D.G.UrlWrite("","");},100));};U.D.MimHF=function(b,a){b.addAttrArray(a);};U.D.CloseWindow=function(a,b){if(b=="remove"){$(a).remove();}else{a.style.display="none";}(top.U.D.G)&&(setTimeout(function(){top.U.D.G.UrlWrite("","");},100));};U.D.PopupWindow=function(d,e){var c=$(d).addAttrArray({"style":{"display":"block"}}).GetElementInfo(),b=U.M.TOSP(d),f=Math.ceil((((b.clientWidth-c["CW"])/2+c["PXL"])*100)/b.clientWidth),a=Math.ceil((((b.clientHeight-c["CH"])/2+c["PXT"])*100)/b.clientHeight);$(d).addAttrArray({"style":{"left":(f<0?0:f)+"%","top":(a<0?0:a)+"%","zIndex":(top.US.ZV++)+1}});(e)&&(e());};U.D.SetDTop=function(b){var a=U.M.GetEvent();b=b||U.D.GetPD(a.srcElement);U.M.StopBubble();if(b&&U.M.GetStyle(b,"position")=="absolute"&&b.tagName.toLocaleLowerCase()=="div"){b.style.zIndex=(top.US.ZV++)+1;}};U.D.GetPD=function(a){var b=$("#us_content")[0];while(a){if(a.parentNode==document.body||a.parentNode==b){return a;}a=a.parentNode;}return a;};Namespace.register("U.UI");U.UI.Dialog=function(n,k,m,a,o,l,c,e,b,g,f,j,h){var p=["x","y","title","width","height","zIndex","color","model","confirmNoClose","confirmYesClose","content","bottomHeight","SO"];for(var d=0;d<arguments.length;d++){this[p[d]]=arguments[d];}};U.UI.Dialog.prototype={Create:function(){var f,g,e,b,c,a,h;f=$$("div",{"className":"U_UI_dialogue Radius5","onmousedown":U.M.StopBubble,"style":{"left":(this.x||0)+"px","top":(this.y||0)+"px","zIndex":"99999","height":this.height?this.height+"px":"","width":this.width+"px"||"360px"}});g=$$("div",{"className":"U_UI_dltop"},f);$$("div",{"className":"U_UI_dldrag","innerHTML":this.title||"对话框","onmousedown":[U.D.DragMouseDown,([f])]},g);e=$$("div",{"onclick":[U.D.CloseWindow,([f,"remove"])],"className":"UD_ICON UD_W_TB_WM_Close"},g);b=$$("div",{"className":"U_UI_dlcontent","style":{"height":this.height?this.height-73+"px":""}},f);if(typeof this.content=="object"){b.appendChild(this.content);}else{b.innerHTML=this.content;}c=$$("div",{"className":"U_UI_dlbutton"},f);$$("div",{"onclick":[[e.onclick],[this.confirmNoClose||U.M.apply()]],"innerHTML":"取消","className":"U_UI_dlyes"},c);a=$$("div",{"onclick":[[e.onclick],[this.confirmYesClose||U.M.apply()]],"innerHTML":"确定","className":"U_UI_dlyes"},c);var h=$("input",b);(this.SO||document.body).appendChild(f);for(var d=h.length-1;d>=0;d--){if(h[d].type=="text"||h[d].type=="password"){h[d].focus();h[d]["onkeypress"]=U.M.apply(this,[[U.M.returnkeylogin,([[{"obj":a,"event":"onclick"}]])]]);}}if(this.y==null){U.D.PopupWindow(f);if(this.x){f.style.top=this.x+"px";}}return f;}};U.UI.Confirm=function(e,b,d){var a=$("#U_COF")[0]||$$("div",{"className":"U_UI_dialogue Radius5","id":"U_COF"}),h,f,g=[[U.D.CloseWindow,([a,"remove"])]],c=[[U.D.CloseWindow,([a,"remove"])]];(d)&&(c.unshift(d));(b)&&(g.unshift(b));if((_UDD=$("div",a)).length>0){_UDD[3].innerHTML=e;_UDD[_UDD.length-1].onclick=_UDD[2].onclick=U.M.apply(this,c);_UDD[_UDD.length-2].onclick=U.M.apply(this,g);}else{h=$$("div",{"className":"U_UI_dltop"},a);$$("div",{"className":"U_UI_dldrag","innerHTML":"提示","onmousedown":[U.D.DragMouseDown,([a])]},h);$$("div",{"onclick":c,"className":"UD_ICON UD_W_TB_WM_Close U_UI_dlclose"},h);$$("div",{"className":"U_UI_dlcontent","style":{"textAlign":"center","padding":"25px 0 25px 0"},"innerHTML":e},a);f=$$("div",{"className":"U_UI_dlbutton","id":"U_UI_dlbutton"},a);$$("div",{"id":"U_UI_Cancel","onclick":c,"innerHTML":"取消","className":"U_UI_dlyes UD_Radius"},f);$$("div",{"id":"U_UI_OK","onclick":g,"innerHTML":"确定","className":"U_UI_dlyes UD_Radius"},f);document.body.appendChild(a);}U.D.PopupWindow(a);U.M.StopBubble();};U.UI.UForms=function(j,h){var d,l,b,g,a,c,f,e=/%/,k=[["UD_W_WT_H","up"],["UD_W_WT_HL","topRight"],["UD_W_WT_HR","topleft"],["UD_W_WT_ML","left"],["UD_W_WT_MR","right"],["UD_W_WT_B","down"],["UD_W_WT_BL","bottomLeft"],["UD_W_WT_BR","bottomRight"]];(e.test(j.Width))&&(j.Width=US.Width*(parseInt(j.Width)/100));(e.test(j.Height))&&(j.Height=US.Height*(parseInt(j.Height)/100));(e.test(j.Top))&&(j.Top=US.Height*(parseInt(j.Top)/100));(e.test(j.Left))&&(j.Left=US.Width*(parseInt(j.Left)/100));l=$$("div",{"className":"UD_W UD_UIU","id":j.ContainerId,"style":{"width":j.Width+"px","height":j.Height+"px","left":j.Left+"px","top":j.Top+"px"}});$$("div",{"className":"UD_ICON UD_ICONl"},l);b=$$("div",{"className":"UD_WIMG UD_W_TB","style":{"width":(j.Width-30)+"px"},"onmousedown":[[U.D.DragMouseDown,([l])]]},l);$$("span",{"className":"UD_W_TB_T","innerHTML":j.titleName},b);g=$$("div",{"className":"UD_W_TB_WM"},b);$$("span",{"title":"关闭","className":"UD_ICON UD_W_TB_WM_Close","onmousedown":U.M.StopBubble,"onclick":[[(U.D.Tb?U.D.Tb.PopupWinClose:U.D.CloseWindow),([l,(j.IsR?"remove":"")])]]},g);$$("div",{"className":"UD_ICON UD_ICONR"},l);a=$$("div",{"className":"UD_WIMG UD_ICONz","style":{"height":j.Height-36+"px"},"onmousedown":U.M.StopBubble},l);c=$$("div",{"id":j.ContainerId+"Content","className":"UD_W_WC","style":{"cssText":"height:100%;"+j.CStyle}},a);if(j.Embed==0){$$("iframe",{"id":j.ContentId,"name":j.ContentId,"frameborder":0,"scrolling":j.hasScroll,"src":j.Content,"width":"100%","height":"100%"},c);}else{if(typeof j.Content=="object"){c.appendChild(j.Content);}else{c.innerHTML=j.Content;}}_UEV={"with":[{"Element":a,"hdiffer":-36},{"Element":b,"hdiffer":0,"wdiffer":-30}]};if(j.hasDraw){for(d=0;d<k.length;d++){$$("span",{"className":k[d][0],"onmousedown":[[U.D.Chatdrag,([l,k[d][1],_UEV])]]},l);}}(j.hasMax)&&($$("span",{"title":"最大化","className":"UD_ICON UD_W_TB_WM_Max","onmousedown":U.M.StopBubble,"onclick":[[U.D.Windowmaximize,([l,"this",_UEV,b,{"onmousedown":b.onmousedown}])]]},g));(j.hasMin)&&($$("span",{"title":"最小化","className":"UD_ICON UD_W_TB_WM_Min","onmousedown":U.M.StopBubble,"onclick":[[U.D.WindowMin,([l])]]},g));b.onmousedown=(j.Width==US.Width&&j.Height==US.Height)?U.M.apply(this,[[U.D.DragElement,([l,null,_UEV,b,{"onmousedown":b.onmousedown}])]]):b.onmousedown;(h)&&(h.appendChild(l));l.style.display="block";return l;};U.UI.SUForms=function(o,j,d,g,k,e){var b=(document.body.clientWidth-k)/2,m=(document.body.clientHeight-e-50)/2;var a=[1,m,b,k,e,d,j,"",o,"no",false,false,false,g,true];var f={"Embed":a[0],"Top":a[1],"Left":a[2],"Width":a[3],"Height":a[4],"ContainerId":a[5],"titleName":a[6],"ContentId":a[7],"Content":a[8],"hasScroll":a[9],"hasMax":a[10],"hasMin":a[11],"hasDraw":a[12],"CStyle":a[13],"IsR":a[14]};var n=U.UI.UForms(f,document.body);};U.Alert=function(c,b){var a=new U.AlertT(b);a.init(c);};U.AlertT=function(a){this.TF=false;this.UTI=a;this.OT;this.UA;};U.AlertT.prototype={"init":function(a,b){this.UA=$$("div",{"id":"USalert","innerHTML":a,"className":"USalert","style":{"zIndex":"9999","left":(US.Width/2-150)+"px","top":(US.Height/2-100)+"px"},"onclick":U.M.apply(this,[[this.DAlert]])},$("body")[0]);$(this.UA).animate({"top":US.Height/2-80+"px"},300,U.M.apply(this,[[this.AsynAmAlert]]));},"AsynAmAlert":function(){if(!this.TF){var a=this;this.OT=setTimeout(function(){$(a.UA).animate({"top":US.Height/2-70+"px"},100,U.M.apply(a,[[a.DAlert]]));},(this.UTI||1000));}},"DAlert":function(){if(!this.TF){clearTimeout(this.OT);this.TF=true;document.body.removeChild(this.UA);}}};U.UI.RadioList=function(c,b){var a=new U.UI.RadioListT(c,b);a.init();return a;};U.UI.RadioListT=function(b,a){if(U.M.GetType(a)!="Object"){return;}b.innerHTML="";this.D=b;this.S=a;this.A=[];};U.UI.RadioListT.prototype={init:function(){var a=this.S,d,e;for(var b in a){if(a.hasOwnProperty(b)){d=$$("div",{"innerHTML":a[b],"style":{"cssText":"margin-left:5px;"}},this.D);e=$$("input",{"type":"radio","value":b,"onclick":[this.radiochecked,([this,"retElement"])]},d);this.A.push(e);}}this.A[0].checked=true;},radiochecked:function(b,c){var a;for(a=0;a<b.A.length;a++){b.A[a].checked=false;}c.checked=true;},value:function(){var a;for(a=0;a<this.A.length;a++){if(this.A[a].checked==true){return this.A[a].value;}}return this.A[0].value;}};Namespace.register("U.UP");U.UP.uploading=function(e,c,g,l,k){if(e.length>0){var f,j={"UpObj":e[0],"context":g,"value":""},h=c,b=l+"&UserId="+US.userinfo.UserId,d=top.$("#UL_IF")[0],a=top.$$("form",{"action":b,"encoding":"multipart/form-data","enctype":"multipart/form-data","method":"post","name":"loading","target":"UL_IF"},top.document.body);if(k){a.appendChild(e[0]);if(e.length>1){e.splice(0,1);h=U.M.apply(this,[[c,([j])],[U.UP.uploading,([e,c,g,l,k])]]);}}else{j["UpObj"]=e;for(f=0;f<e.length;f++){a.appendChild(e[f]);}}a.submit();d.complete="";(h)&&(U.MD.IframeLoad(d,[[U.UP.AsynF,([d,h,j])]]));a.parentNode.removeChild(a);}};U.UP.AsynF=function(UFLD,UCB,URQ){try{var _UTH=UFLD.contentWindow.document.body.innerHTML;if(_UTH==null){U.Alert("服务器处理繁忙,上传失败");}try{URQ.value=eval(_UTH);}catch(e){URQ.value=_UTH;}UFLD.contentWindow.document.body.innerHTML="";UFLD.complete="";UCB(URQ);}catch(e){U.Alert("文件过于庞大!不能超过25M.");}};U.UP.FTF={"WH":{},"FT":{},"TF":false,"GS":"*","EL":""};U.UP.AddFAN=function(b,a,d){var c,e=$$("div",{});a=a||U.MS.produceGuid();if($("object",b).length==0){c='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" class="UD_filePrew" width="'+d["width"]+'" height="'+d["height"]+'" id="'+a+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="movie" value="http://www.1473.cn/img/Upload.swf" /><param name="menu" value="false" /><param name="wmode" value="Opaque" /><param name="quality" value="high" /><param name="bgcolor" value="ffffff" /><param name="allowScriptAccess" value="always" /><embed src="http://www.1473.cn/img/Upload.swf" quality="high" bgcolor="ffffff" width="'+d["width"]+'" height=="'+d["height"]+'" name="'+a+'" align="middle" play="true" wmode="transparent" loop="false" quality="high" style="z-index: 0;" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object>';e.innerHTML=c;b.insertBefore(e.firstChild,b.firstChild);}U.UP.FTF["EL"]=$(($("embed",b)[0]||$("object",b)[0])).addAttrArray({"width":d["width"]?d["width"]:1,"height":d["height"]?d["height"]:1})[0];U.UP.FTF["EL"].style.display="block";};U.UP.FOnload=function(){var a=U.UP.FTF;a["EL"].SetStage(a["WH"],a["FT"],a["GS"]||"*");};U.UP.FAFZ=function(d,c,e){var b=U.UP.FTF,a=b["EL"];b["WH"]=d;b["FT"]=c;b["GS"]=e||"*";if(a&&a.SetStage){U.UP.FOnload();}};U.UP.SFT=function(a){switch(a){case"A":return"rar,zip,txt,doc,docx,ppt,pptx,xls,xlsx,mht,iso,chm,gz,msi,dll,html,htm,pdf,xlsx,pptx,css,js,psd,cad,dwt,dwg,dws,dwf";case"P":return"jpg,gif,png,bmp,jpeg,JPG,GIF,BMP,PNG,JPEG";case"M":return"mp3";case"V":return"wmv,video";case"B":return"exe,vbs,vbe,js,jse,wsh,wsf";case"UP":return".gif,.GIF,.jpg,.JPG,.jpeg,.JPEG,.png,.PNG,.bmp,.BMP,.rar,.zip";break;case"CA":return U.UP.SFT("P")+","+U.UP.SFT("M")+","+U.UP.SFT("V");case"Office":return"txt,htm,html,doc,docx,xls,xlsx,ppt,pptx,wsh,wsf";default:return"";}};U.UP.UploadFileType=function(e,d){e=(e.value||e).toLocaleLowerCase();var b,c=e.replace(e.substring(0,e.lastIndexOf(".")+1),""),a=d;(a==null)&&(a=U.UP.SFT("CA"));b=a.indexOf(c)!=-1?true:false;((d==null)&&(b=(!b)));return b;};U.UP.GetUpName=function(b){b=(b.value||b).toLocaleLowerCase();var a=b.lastIndexOf(".");return[b.substr(b.lastIndexOf("\\")+1,a),b.substr(a+1)];};U.UP.IsImg=function(d){var b=false,c=U.UP.GetUpName(d)[1].toLowerCase(),a=U.UP.SFT("P");(a.indexOf(c)>-1)&&(b=true);return b;};U.UP.IsSizeS=function(b,a){if(b>a){return false;}else{return true;}};U.UP.FileSize=function(d){var c=(d+"").replace(/[0-9]+/g,""),a=["B","KB","M","G","TB"],b=a.inArray(c);b=b==-1?0:b;d=parseInt(d);while(d>1024){d/=1024;b++;}return Math.ceil(d)+a[b];};U.UP.GetSfileS=function(e){var c=0,a=["B","KB","M","G","TB"],d=e.substr(e.length-1),b=a.inArray(d);return parseFloat(e)*Math.pow(1024,b);};
|