uform.js 103 KB

12
  1. try{if(document.domain){if(document.domain.indexOf("1473.cn")>-1){document.domain="1473.cn";}else{document.domain="boomyun.com";}}}catch(e){}window.Namespace={};Namespace.register=function(c){var b,d=window,a=c.split(".");for(b=0;b<a.length;b++){if(!d[a[b]]){d[a[b]]={};}d=d[a[b]];}};Namespace.register("US");US.userInfo={};US.disk={};US.blog={};US.forum={};US.friend={};US.city={};US.domain="1473.cn";US.forum.news=null;US.systemId=0;US.pageId="";US.height=window.screen.availHeight;US.width=window.screen.availWidth;US.OFFICEFILEURL="http://office.1473.cn/usoffice/";US.FILESYSTEMURL="http://fs.1473.cn/";US.DOMAIN="http://www.1473.cn/";US.ERRORIMAGE="http://www.1473.cn/img/error.png";US.CD="http://cd.1473.cn/net/ssh.ashx";US.AUTH="http://main.1473.cn/Uses.ashx";US.ADMINAUTH="http://main.1473.cn/admin.ashx";US.DB="sqlserver.1473.cn";US.FORUMROOTID="1e0742d8-737e-46e2-b03b-2f23ca8c1f17";US.MYDISK="d8ae0266-481d-4064-86d2-fb52a4059793";US.PRIVATEFOLDERID="9639aba6-03eb-443c-be4e-f0c8d24767f5";US.FTPFOLDERID="f6d7a4b6-e34c-4964-beed-24187b2cb1ba";US.MYFOLDERID="7aeaab56-485f-4150-b781-8ffd86d593ce";US.IMAGEFOLDERID="93553847-e299-464c-a0e2-c15872efb6ae";US.MUSICEFOLDERID="8a2135ff-746a-43a8-97b8-552d228a00bb";US.VIDEOFOLDERID="bf21bf7a-1e95-4194-8e4a-e9334d7d998d";US.EMPTYGUID="00000000-0000-0000-0000-000000000000";US.ZINDEX=20;US.FEEDBACKID="3c779543-bc1a-4851-af22-af9ba97a5f33";Namespace.register("U.UF.C");U.UF.C.fullScreen=function(){var a=U.UF.C.getFullSreeenName("requestFullScreen");if(a!=null){document[a]();}};U.UF.C.cancelfullScreen=function(){var a=U.UF.C.getFullSreeenName("cancelFullScreen")||U.UF.C.getFullSreeenName("exitFullScreen");if(a!=null){document[a]();}};U.UF.C.getFullSreeenName=function(b){var d,a;var c=["","webkit","moz","ms","o"];for(d=0;d<c.length;d++){if(c[d]){a=c[d]+b.capitalizeFirstLetter();}else{a=b;}if(c[d] in document.documentElement||c[d] in document){return c[d];}}return null;};U.UF.C.toArray=function(d){try{return Array.prototype.slice.call(d);}catch(c){var b=0,a=[];for(;d[b];b++){a.push(d[b]);}return a;}};U.UF.C.apply=function(b,a){return function(){a.call(b||this);};};U.UF.C.closure=function(a,b){return function(){a.apply(this,b);};};U.UF.C.getColorByRGB=function(b){var a,d="#",c=b.match(U.UF.S.rgb);if(c){for(a=1;a<c.length;a++){d+=("0"+c[a].toInt().toString(16)).slice(-2);}return d;}return b;};U.UF.C.queryString=function(e,d){d=(d||window.document.location.search).substr(1);var c,b,g="",f,a=d.split("&");for(c=0;c<a.length;c++){f=a[c].split("=");if(f[0].toUpperCase()==e.toUpperCase()){for(b=1;b<f.length;b++){g+=f[b]+(b==f.length-1?"":"=");}break;}}return g;};U.UF.C.getUrlHash=function(){var a=document.location.hash;return a.split("/");};U.UF.C.isUrl=function(c){var d=c;var b=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;var a=new RegExp(b);if(a.test(c)==true){return true;}else{return false;}};U.UF.C.iframeSameDomain=function(c,b,a){U.UF.DL.iframeLoad(c,function(){if(b){c.contentWindow.document.body.innerHTML=b;}if(a){a();}});c.src="javascript:void((function(){document.open();document.domain='"+document.domain+"';document.close()})())";return c;};U.UF.C.urlEncode=function(a){var b;for(b=0;b<a.length;b++){a[b]=encodeURIComponent(encodeURIComponent(a[b]));}return a.join(",");};U.UF.C.copy=function(a){if(window.clipboardData){window.clipboardData.setData("text",a);}else{if(event&&event.clipboardData){event.clipboardData.setData("text/HTML",a);}else{if(event&&event.originalEvent&&event.originalEvent.clipboardData){event.originalEvent.clipboardData("Text",a);}else{if(document.execCommand){document.execCommand("copy");}else{U.Alert("请手动选择复制");}}}}};U.UF.C.pasteText=function(){if(window.clipboardData){return window.clipboardData.getData("text");}else{if(event.clipboardData){return event.clipboardData.getData("text/HTML");}else{if(event&&event.originalEvent&&event.originalEvent.clipboardData){return event.originalEvent.clipboardData("Text");}else{if(document.execCommand){document.execCommand("paste");}else{U.Alert("无法粘贴");}}}}};U.UF.C.rightClickMenuLocation=function(b){var h=event||window.event,f=h.clientX,c=h.clientY,i=$(b).Parent(),d=b.offsetWidth,a=b.offsetHeight,j=i.offsetWidth,g=i.offsetHeight;if((d+f)>j){f=f-d;}else{f=f;}if((a+c)>g){c=c-a;}else{c=c;}$(b)[0].style.top=c+"px";$(b)[0].style.left=f+"px";};U.UF.C.jsonToStr=function(c){var b,a=false,d="",a=typeof(c);if(c==null){}else{c=c.valueOf();if("boolean,number".indexOf(a)>-1){d=c.toString();}else{if(a=="string"){d='"'+c+'"';}else{if(typeof c=="array"){d="[";for(b=0;b<c.length;b++){d+=U.UF.C.jsonToStr(c[b])+((b<c.length-1)?",":"");}d+="]";return d;}else{d="{";for(b in c){if(c.hasOwnProperty(b)){if(d.length>1){d+=",";}d+='"'+b+'":'+U.UF.C.jsonToStr(c[b]);}}d+="}";}}}return d;}};U.UF.C.objectToString=function(a){return Object.prototype.toString.call(a);};U.UF.C.console=function(a){try{console.log(a);}catch(b){}};U.UF.C.loadJs=function(d,b){if(b!=null){d.innerHTML=b;}var c,a=$("head")[0],e=$("script",d);for(c=0;c<e.length;c++){if(e[c].src=="http://www.1473.cn/uform.js"){U.UF.DL.asynLoadJs({"src":e[c].src});}else{$$("script",{"type":e[c].type,"src":e[c].src},d,e[c]).text=e[c].text;}}return b;};U.UF.C.toJson=function(c){var b,a=c;if(U.UF.C.isString(c)){a=c.parseJSON();}for(b=0;b<a.length;b++){if(U.UF.C.isString(a[b])){a[b]=a[b].parseJSON();}else{if(Array.isArray(a[b])){U.UF.C.toJson(a[b]);}}}return a;};U.UF.C.getBriefText=function(b,c,d){b=U.UF.C.isString(b)?$$("div",{"innerHTML":b}):b;c=c||200;d=d||"";var a=b.innerText.substring(0,c)+(b.innerText.length>200?d:"")+$("img",b).outerHTML;return a;};U.UF.C.shieldedSelect=function(){var a=U.UF.EL.getAncestorEditElement(event.srcElement);if(a&&(a.nodeType==3||a.contentEditable=="true"||"textarea,input".indexOf(a.tagName.toLocaleLowerCase()))){return true;}U.UF.EV.stopBubble();U.UF.EV.stopDefault();return false;};U.UF.C.shieldedBackspace=function(){if(event.keyCode==8){if(U.UF.EL.getAncestorEditElement((event.srcElement))==document.body&&!document.body.isContentEditable){U.UF.EV.stopDefault();}}};U.UF.C.isObject=function(a){return(typeof a=="object"&&a!==null);};U.UF.C.isNumber=function(a){return typeof a=="number";};U.UF.C.isString=function(a){return typeof a=="string";};U.UF.C.isFunction=function(b){var a=typeof b=="function";var c=U.UF.C.objectToString(b)=="[object Function]";return a||c;};U.UF.C.isElement=function(a){return a.nodeType===1;};U.UF.C.AddObj=function(c,b){for(var a in b){if(b.hasOwnProperty(a)){c[a]=b[a];}}return b;};Namespace.register("U.UF.EL");U.UF.EL.getElementPosition=function(c){var b,a=[0,0];while(c){b=U.UF.EL.getStyle(c,"position");if(b!="static"){a[0]+=c.offsetTop;a[1]+=c.offsetLeft;}c=c.offsetParent;}return a;};U.UF.EL.getElementRealWidth=function(b){var a;a=parseInt(Math.max(b.offsetWidth,b.scrollWidth,b.clientWidth));if(a<=0){a=parseInt(b.style.height);}return a;};U.UF.EL.getElementRealHeight=function(b){var a;a=parseInt(Math.max(b.offsetHeight,b.scrollHeight,b.clientHeight));if(a<=0){a=parseInt(b.style.height);}return a;};U.UF.EL.getElementInfo=function(b){var a=b.getBoundingClientRect(),c=U.UF.EL.offsetParent(b);return{PXT:(document.documentElement.scrollTop)+c.scrollTop,PXL:(document.documentElement.scrollLeft)+c.scrollLeft,SH:b.scrollHeight,SW:b.scrollWidth,SL:b.scrollLeft,ST:b.scrollTop,CH:b.clientHeight,CW:b.clientWidth,CT:b.clientTop,CL:b.clientLeft,OH:b.offsetHeight,OW:b.offsetWidth,OL:b.offsetLeft,OT:b.offsetTop,BCRH:a.bottom-a.top,BCRW:a.right-a.left,BCRT:a.top,BCRL:a.left,BCRB:a.bottom,BCRR:a.right};};U.UF.EL.offsetParent=function(c,a,e){var f,d=document.body;while(c&&c!=d){f=U.UF.EL.getStyle(c,"position");if((!e&&f!="static")||(f==e)){break;}c=c.offsetParent;}return c;};U.UF.EL.getAncestor=function(a,b){while(a&&!(a==b||a.id==b)){a=a.parentNode;}return a;};U.UF.EL.getChildrenNoText=function(c,d){var b,a=[];for(b=0;b<c.length;b++){if(c[b].nodeType==1&&(!d||d.indexOf(c[b].tagName.toLowerCase())==-1)){a.push(c[b]);}}return a;};U.UF.EL.getAncestorEditElement=function(b){var a=document.body;while(b&&a!=b){if(b.tagName){if("textarea,input".indexOf(b.tagName.toLocaleLowerCase())>-1||b.contentEditable=="true"){break;}}b=$(b).parent();}return b;};U.UF.EL.isChild=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.UF.EL.indexOfParent=function(b){var c=$(b).Parent();var a=$(c).Child();return a.indexOf(b);};U.UF.EL.isCustomAttributes=function(b,c){b=b||$$("div");var a=b.attributes;if(a){if(a[c]){return a[c].expando==true;}else{return b.getAttribute(c)!==null||b[c]===void 0;}}};U.UF.EL.addAttributes=function(b,a,c){b.setAttribute(a,c);};U.UF.EL.delAttributes=function(b,a){if(b.hasAttribute(a)){b.removeAttribute(a);}};U.UF.EL.getStyle=function(a,b){if(a&&a.style){var c=U.UF.EL.styleConversion(b);if(a.style[c]||c=="cssText"){return a.style[c];}else{if(a.currentStyle){return a.currentStyle[c];}else{return"";}}return"";}};U.UF.EL.addClass=function(c,d){var a=c.className.match(new RegExp("(\\s|^)"+d+"(\\s|$)"));var b=!!(a);if(!b){c.className+=" "+d;}};U.UF.EL.removeClass=function(c,d){var a=c.className.match(new RegExp("(\\s|^)"+d+"(\\s|$)"));var b=!!(a);if(b){c.className=c.className.replace(new RegExp("(\\s|^)"+d+"(\\s|$)")," ");}};U.UF.EL.isHasClass=function(a,b){if((a.className).indexOf(b)>-1){return true;}};U.UF.EL.styleConversion=function(a,b){if(b){b=[/[A-Z]/g,"-",0,"toLowerCase"];}else{b=[/-[a-z ]/g,"",1,"toUpperCase"];}return a.replace(b[0],function(c){return b[1]+c.charAt(b[2])[b[3]]();});};U.UF.EL.getMousePosition=function(b){var h=0,f=0,c=event||window.event;if(c.touches&&c.touches[0]){c=c.touches[0];}else{c=c;}var g=c.clientX||0,e=c.clientY||0,a=b?b.offsetTop:0,i=b?b.offsetParent:null;if(i!=null){a+=i.offsetTop;i=i.offsetParent;h=a;}var d=b?b.offsetLeft:0,i=b?b.offsetParent:null;if(i!=null){d+=i.offsetLeft;i=i.offsetParent;f=d;}_elx=g-f,_ely=e-h;return{x:_elx,y:_ely};};Namespace.register("U.UF.Cookie");U.UF.Cookie.crossDomain=function(b,a){U.UF.DL.asynLoadJs({"src":b},a);};U.UF.Cookie.set=function(e,b){var d,c,a=0,f="";if(U.UF.C.isString(e)){f=e;document.cookie=U.UF.Cookie.setProperty(b,e);}else{for(d in e){f=d+"=";for(c in e[d]){if(a>0){f+="&";}f+=c+"="+encodeURIComponent(e[d][c]);a++;}document.cookie=U.UF.Cookie.setProperty(b,f);}}return document.cookie;};U.UF.Cookie.setProperty=function(d,g){var c,a,e,f={path:"/",domain:document.domain,expires:365,secure:null};d=d||{};for(c in f){if(c=="expires"&&(d[c]||f[c])){e=new Date();var b=(d[c]||f[c])*24*60*60*1000;e.setTime(e.getTime()+b);d[c]=e.toUTCString();}if(d[c]||f[c]){if(d[c]==null){a=f[c];}else{a=d[c];}g+="; "+c+"="+a;}}return g;};U.UF.Cookie.del=function(c){var b,e,d="",a=document.cookie.split("; ");for(b=0;b<a.length;b++){e=a[b].split("=");if(!c||e[0]==c){var f=d.length?"; ":"";d+=f+e[0]+"=";}}if(d){U.UF.Cookie.set(d,{expires:-1});}else{console.log("not found cookie!");}};U.UF.Cookie.get=function(d,f){var c,e,a="",b=document.cookie.split("; ");for(c=0;c<b.length;c++){e=b[c].split("=");if(e[0]==d){e.splice(0,1);a=e.join("=");break;}}if(f){b=a.split("&");a=[];for(c=0;c<b.length;c++){e=b[c].split("=");if(e[0]==f){a.push(decodeURIComponent(e[1]));}else{if(e[1]==f){return true;}}}}return(a.length?a:false);};Namespace.register("U.UF.EV");U.UF.EV.boundProperties=function(c,d,b,a){if(c.__defineGetter__){c.__defineGetter__=(c,b);c.__defineSetter__=(c,a);}else{if(Object.defineProperty){Object.defineProperty(c,d,{configurable:true,get:b,set:a});}else{c[d]=b;c[d].toString=b;c.attachEvent("onpropertychange",function(){if(event.propertyName==c){var e=arguments.caller.caller;c.detachEvent("onpropertychange",e);a(c[d]);c[d]=b;c[d].toString=a;c.attachEvent("onpropertychange",e);}});}}};U.UF.EV.addPrototype=function(c,d,a){if(typeof d=="string"){c.prototype[d]=a;}else{var b;for(b in d){c.prototype[b]=d[b];}}};U.UF.EV.scrollLoad=function(b,a){b.onscroll=function(){if(U.UF.EV.scrollLoad.scrollTop()+U.UF.EV.scrollLoad.windowHeight()>=(U.UF.EV.scrollLoad.documentHeight()-50)){a();return;}};};U.UF.EV.scrollLoad.scrollTop=function(){return Math.max(document.body.scrollTop,document.documentElement.scrollTop);};U.UF.EV.scrollLoad.documentHeight=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);};U.UF.EV.scrollLoad.windowHeight=function(){if(document.compatMode=="CSS1Compat"){return document.documentElement.clientHeight;}else{return document.body.clientHeight;}};U.UF.EV.IsActivity=function(b,a){var c;if(b){$(document.body).mouseenter(function(){if(c){window.clearTimeout(c);}c=window.setTimeout(b);});U.UF.EV.addElementEvent("focusin",document,function(){if(c){window.clearTimeout(c);}c=window.setTimeout(b);});}if(a){U.UF.EV.addElementEvent("focusout",document,function(){var e=event.clientX;var d=event.clientY;if((!(U.UF.CI.getBrowser().browser=="msie")||(e<0||e>US.width||d<0||d>US.height))){a();}});}};U.UF.EV.scrollToPosition=function(d,b,a){var c=U.UF.C.isNumber(d);if(c&&a){$(b).animate({"scrollTop":d},a);}else{if(typeof d=="number"){b.scrollTop=d;}else{d.scrollIntoView();}}};U.UF.EV.simulateMouseClicks=function(b,d){if(b.fireEvent){return b.fireEvent("on"+d,window.event);}else{if(document.createEvent){var c=document.createEvent("MouseEvents"),a=window.event;if(a){c.initMouseEvent(d,true,true,window,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);}else{c.initMouseEvent(d,true,true,document.defaultView,0,0,0,0,0,false,false,false,false,0,b);}return b.dispatchEvent(c);}}};U.UF.EV.simulatePhoneTouch=function(a,h,c){if(a.fireEvent){a.fireEvent("on"+TF);}else{if(document.createEvent){var d,j,b=c||window.event;if(TouchEvent){var f=new TouchEvent(h,b);}else{var f=document.createEvent("TouchEvent");}if(f.initTouchEvent){var k="initTouchEvent";}else{var k="initEvent";}j=[[event.touches,event.targetTouches,event.changedTouches,h,event.view,event.screenX,event.screenY,event.clientX,event.clientY,event.ctrlKey,event.alrKey,event.shiftKey,event.metaKey],[h,true,event.cancelable,event.view,event.detail,event.screenX,event.screenY,event.clientX,event.clientY,event.ctrlKey,event.altKey,event.shiftKey,event.metaKey,event.touches,event.targetTouches,event.changedTouches,event.scale,event.rotation],[h,true,event.cancelable,event.view,event.detail,event.ctrlKey,event.altKey,event.shiftKey,event.metaKey,event.touches,event.targetTouches,event.changedTouches],];for(d=0;d<j.length;d++){try{f[k].apply(f,j[d]);}catch(g){}if(f.type==h){break;}}}}return a.dispatchEvent(f);};U.UF.EV.addElementEvent=function(d,c,b,a){if(c.addEventListener){c.addEventListener(d,b,a||false);}else{if(c.attachEvent){c.attachEvent("on"+d,b);}else{c["on"+d]=function(){c["on"+d]();b();};}}};U.UF.EV.delElementEvent=function(d,c,b,a){if(c.removeEventListener){c.removeEventListener(d,b,a||false);}else{if(c.detachEvent){c.detachEvent("on"+d,b);}else{c["on"+d]=null;}}};U.UF.EV.getEventSource=function(){var c,d,b=window.frames;var a=window.event;if(!a){for(c=0;c<b.length;c++){d=b[c];try{a=d.event;if(a){break;}}catch(f){continue;}}}return a;};U.UF.EV.stopBubble=function(){var a=U.UF.EV.getEventSource();if(a){if(a.stopPropagation){a.stopPropagation();}else{a.cancelBubble=true;}}};U.UF.EV.stopBubbleMouseOutOrOver=function(d,b){if(event&&"mouseover,mouseout".indexOf(event.type)>-1){var c=(event.type=="mouseover"?event.fromElement:event.toElement)||event.relatedTarget,a=U.UF.EL.isChild(d,c);if(!a&&U.UF.C.isFunction(b)){b();}return a;}};U.UF.EV.stopDefault=function(b){var a=b||window.event;if(a){if(document.all){a.returnValue=false;}else{a.preventDefault();}return false;}};U.UF.EV.eventDelegation=function(b,c,a,e){if(a==null){a=true;}var d=e||"a"+Guid.newGuid();window[d]=function(){try{if(U.UF.C.isFunction(_cb)){_cb.apply(null,c);}if(this.isremove){window[d]=null;delete window[d];}}catch(f){}};return d;};U.UF.EV.message=function(a,b,d,c){this.fun=a;this.id=d||Guid.guidNoDash();this.sender=b;this.iframeid=c;this.iframe=null;this.url="";U.UF.EV.message.callbacks[this.id]=this;if("onmessage" in window){U.UF.EV.addElementEvent("message",window,U.UF.EV.message.getDataAndCallBack);}if(this.sender){this.iframe=$("#"+this.iframeid)[0];this.url=$$("a",{"src":this.iframe.src}).host;}else{if(!("onmessage" in window)){U.UF.EV.message.getDataAndCallBack();}}};U.UF.EV.message.callbacks=[];U.UF.EV.message.getDataAndCallBack=function(c){var b;if("onmessage" in window){b=c.data;}else{b=window.name;}b=b.parseJSON();var a=U.UF.EV.message.callbacks[b[1]];if(a){a.message(b[0],b[2]);}};U.UF.EV.message.prototype={message:function(b,a){if(U.UF.C.isFunction(this.fun)){this.fun(b,a);}if(this.Sender&&!("onmessage" in window)){var c=this.obj.contentWindow.document;c.open();c.write("");c.close();}},post:function(c,g,b){var f,a=U.UF.C.jsonToStr([c,g||this.id,b]);if("onmessage" in window){try{f=this.iframe.contentWindow||this.iframe;}catch(d){f=this.iframe;}f.postMessage(a,"*");}else{if(this.Sender){U.UF.DL.iframeLoad(this.iframe,U.UF.C.apply(this,function(){this.iframe.contentWindow.name=a;this.iframe.contentWindow.location.href=this.url;U.UF.DL.iframeLoad(this.iframe,U.UF.C.apply(this,function(){U.UF.EV.message.getDataAndCallBack();}));}));this.iframe.src="about:blank";}else{window.name=a;window.src="about:blank";}}}};Namespace.register("U.UF.S");U.UF.S.browser=/(msie|firefox|chrome|ipad|iphone|safari|opera|version|rv).*?([\d.]+)/;U.UF.S.Event=/\[object (Keyboard|Mouse|Focus|Wheel|Composition|Storage|MS|)Event(Obj|)\]/;U.UF.S.Guid=/^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$/;U.UF.S.English=/^[A-Za-z]+$/;U.UF.S.RNum=/\d+/g;U.UF.S.Number=/^\d+$/;U.UF.S.Num=/^(-?\d+)(\.\d+)?$/;U.UF.S.EN=/^([a-zA-Z0-9_\-]+)$/;U.UF.S.Url=/^\w+\:\/\/([\w+]).*/;U.UF.S.FileName=/^([a-zA-Z0-9\s\._-]+)$/;U.UF.S.ZWFileName=/^[0-9a-zA-Z\u4e00-\u9fa5\._-]{1,40}\\*$/;U.UF.S.PBrief=/^.{0,100}$/;U.UF.S.FFZF=/^(\w|-|[\u4E00-\u9FA5])*$/;U.UF.S.ChineseIdCard=/\d{17}[\d|X]|\d{15}/;U.UF.S.TelephoneNumber=/^1[0-9]{10}$/;U.UF.S.Email=/^\w+([_+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;U.UF.S.TrueName=/^[\u4e00-\u9fa5]{1,20}$|^[a-zA-Z]{1,20}$/;U.UF.S.UserName=/^\S{1,25}$/;U.UF.S.NickName=/^[0-9a-zA-Z\u4e00-\u9fa5_-]{1,40}\\*$/;U.UF.S.PassWord=/^[^\u4E00-\u9FA5\uF900-\uFA2D]{6,20}$/;U.UF.S.Visa=/^[45]\d{15}$/;U.UF.S.rgb=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/;U.UF.C.String={escapeQuotes:function(){return this.replace(/'/ig,"\\'").replace(/"/ig,'\\"');},count:function(){return this.substrU();},substrU:function(f,b){var c,a,e=0,d="";if(b==null&&f!=null){b=f,f=0;}a=(f==null&&b==null);for(c=0;c<this.length;c++){e+=this.charCodeAt(c)<255?1:2;if(e<f){continue;}if(e<=b||a){d+=this.charAt(c);continue;}break;}return(a?e:d);},isStrNull:function(){return this.trim()=="";},replaceRnToBr:function(){return this.replace(/\r\n/g,"<br />");},replaceBrToRn:function(){return this.replace(/<(BR)[^<>]*>/ig,"\r\n");},removeP:function(){return this.replace(/<(p)[^<>]*>/ig,"");},removeBr:function(){return this.replace(/<(BR)[^<>]*>/ig,"");},removeRn:function(){return this.replace(/\r\n/g,"");},replaceBrAndBlank:function(){return this.replaceBrToRn().replace(/&nbsp;/g,"");},isHtmlNull:function(){return this.removeBr().removeP().trim()!="";},replaceLtAndGt:function(){return this.replace(/&lt;/g,"<").replace(/&gt;/g,">");},replaceAngleBrackets:function(){return this.replace(/</g,"&lt;").replace(/>/g,"&gt;");},replaceHtmlSign:function(){return this.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;");},replaceDoubleToAngleBrackets:function(){return this.replace(/\《/g,"<").replace(/\》/g,">");},replaceAngleToDoubleBrackets:function(){return this.replace(/\</g,"《").replace(/\>/g,"》");},trim:function(a){return this.replace(/\ |\ |\s+|\n|\r|\t/g,a||"");},lTrim:function(){return this.replace(/(^\s*)/g,"");},rTrim:function(){return this.replace(/(\s*$)/g,"");},addPreSpace:function(c){var b,a="";for(b=0;b<c;b++){a+=" ";}return a+this;},insertString:function(c,d){var b=this.substr(0,d);var a=this.substr(d,this.length);return b+c+a;},addEllipsis:function(b){var a=this.substrU(0,b);if(a!=this){a=a+"...";}return a.valueOf();},toInt:function(){var b=this.valueOf(),a=b.match(/^(-|\+)?\d+/g);return a&&a.length==1?Number(a[0]):b;},replaceStr:function(a,b){return this.replace(new RegExp(a,"gm"),b);},parseJSON:function(){var _UJE=null,_UST=this;try{_UJE=eval("0,("+_UST+")");}catch(e){}return(_UJE==null?_UST:_UJE).valueOf();},capitalizeFirstLetter:function(){return this.replace(/\b(\w)|\s(\w)/g,function(a){return a.toUpperCase();});},SplitRN:function(){return this.replace(/\r\n/g,"\n").split("\n");},SplitAngleBrackets:function(){return this.match(/(<(.[^>]*)>)|((|>)[^\<]*[^\<^\s])/g);},htmlToText:function(){return String(this).replace(/(<(.[^>]*)>)/g,"");},htmlToTextRn:function(){return this.replace(/(<(.[^>]*)>)/g,function(a){return(/(<\/(div|DIV|p|P)([|^>]*)>)|<(BR)[^<>]*>/ig.test(a))?"\r\n":"";});}};U.UF.C.Number={formatMoney:function(){var c;var a=[];var b=this.toString();while(b){c=b.length-3;a.unshift(b.substr(c<0?0:c));b=b.substr(0,c);}return a.join(",");},prefixInteger:function(a){return(this<10?"0"+this:this).valueOf();return(Array(a).join(0)+this).slice(-a);},toRadians:function(){return this*Math.PI/180;}};Array.isArray=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]";};U.UF.C.Array={indexOf:Array.prototype.indexOf||function(d,a){var c=a||0,b;for(;c<this.length;c++){if(this[c]==d){return c;}}return -1;},objIndexOf:function(d){var b,a,c;for(b=0;b<this.length;b++){c=false;for(a in d){if(this[b][a]==d[a]){c=true;}else{c=false;break;}}if(c){return b;}}return -1;},unique:function(){var a=[];var c={};for(var b=0;b<this.length;b++){if(!c[this[b]]){a.push(this[b]);c[this[b]]=true;}}return a;},forEach:Array.prototype.forEach||function(a,b){var c=0;var d=this.length;while(c<d){a.call(b,this[c],c,this);c++;}},every:Array.prototype.every||function(c,d){var e=0,a;var f=this.length;while(e<f){a=c.call(d,this[e],e,this);if(a==false){return a;}e++;}return true;},some:Array.prototype.some||function(b,c){var e=Object(this);var a=e.length;for(var d=0;d<a;d++){if(d in e&&b.call(c,e[d],d,e)){return true;}}return false;},map:Array.prototype.map||function(b,c){var d=0;var e=this.length;var a=[];if(typeof b!="function"){throw new TypeError();}while(d<e){if(d in this){a.push(b.call(c,this[d],d,this));}d++;}return a;},filter:Array.prototype.filter||function(b,c){var d=0;var e=this.length;var a=[];if(typeof b!="function"){throw new TypeError();}while(d<e){if(d in this&&b.call(c,this[d],d,this)){a.push(this[d]);}d++;}return a;},findIndex:Array.prototype.findIndex||function(a){var b=0;var c=this.length;if(typeof a!="function"){throw new TypeError();}while(b<c){if(a(this[b],b,this)){return b;}b++;}return -1;},lastIndexOf:Array.prototype.lastIndexOf||function(c,e){var f,b,d=Object(this),a=d.length;if(a===0){return -1;}f=a-1;if(arguments.length>1){f=Number(arguments[1]);if(f!=f){f=0;}else{if(f!=0&&f!=(1/0)&&f!=-(1/0)){f=(f>0||-1)*Math.floor(Math.abs(f));}}}for(b=f>=0?Math.min(f,a-1):a-Math.abs(f);b>=0;b--){if(b in d&&d[b]===c){return b;}}return -1;},fill:Array.prototype.fill||function(h){var e=Object(this);var g=e.length;var a=arguments[1];var f=a;var b=f<0?Math.max(g+f,0):Math.min(f,g);var c=arguments[2];var i=c===undefined?g:c;var d=i<0?Math.max(g+i,0):Math.min(i,g);while(b<d){e[b]=h;b++;}return e;},copyWithin:Array.prototype.copyWithin||function(h,a,b){var e=Object(this);var g=e.length;var i=h;var l=i<0?Math.max(g+i,0):Math.min(i,g);var f=a;var k=f<0?Math.max(g+f,0):Math.min(f,g);var b=arguments[2];var m=b===undefined?g:b>>0;var c=m<0?Math.max(g+m,0):Math.min(m,g);var d=Math.min(c-k,g-l);var j=1;if(k<l&&l<(k+d)){j=-1;k+=d-1;l+=d-1;}while(d>0){if(k in e){e[l]=e[k];}else{delete e[l];}k+=j;l+=j;d--;}return e;},deepCopy:function(){var b,a=[];for(b=0;b<this.length;b++){if(Array.isArray(this[b])){a[b]=this[b].deepCopy(this[b]);}else{a[b]=this[b];}}return a;}};window.Guid=U.UF.C.Guid={newGuid:function(){var b,a,c="";for(a=0;a<32;a++){c+=Math.floor(Math.random()*16).toString(16);b=Math.floor((a-7)/4);if(b>-1&&b<4&&(a==(7+4*b))){c+="-";}}return c;},emptyGuid:US.EMPTYGUID,guidNoDash:function(){return Guid.newGuid().replace(/-/g,"");},IsGuid:function(a){return U.UF.S.Guid.test(a);}};Namespace.register("U.UF.CI");U.UF.CI.userAgent=navigator.userAgent.toLowerCase();U.UF.CI.getUserLocation=function(a){if(US.city["country"]){a();}else{U.UF.DL.asynLoadJs({"src":"http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"},function(){var b=U.UF.CI.AsyngetUserLocation();a(b);});}};U.UF.CI.AsyngetUserLocation=function(){try{var b,a=remote_ip_info,d=["country","province","city","district","isp","type"];a.userAllLocation="";for(b=0;b<d.length;b++){d["userAllLocation"]+=d[a[b]];if(b!=d.length-1){d["userAllLocation"]+=",";}}U.UF.C.AddObj(US.city,a);cb(a);}catch(c){return;}};U.UF.CI.getBrowser=function(){var b={"browser":"","ver":""},d=U.UF.CI.userAgent,a=U.UF.S.browser,c=d.match(a);b.browser=c[1];b.ver=c[2];return b;};U.UF.CI.getSystem=function(){var a={"Apple series":"Mac68K,MacPPC,Macintosh","Unix series":"X11","Mac OS X 10_7":"OSX 10.7","Mac OS X 10.8":"OSX 10.8","Mac OS X 10_8":"OSX 10.8","Linux":"Linux"};var e={"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.1":"winxp","Windows NT 5.2":"Windows Server 2003","Windows NT 5.0":"Win2000","Win 9x 4.90":"WinME","Windows NT 10.0":"Win10"};var d=navigator.userAgent;var c=d.indexOf("(");var f=d.indexOf(";");var b=d.substring(c+1,f);return e[b]||a[b];};U.UF.CI.isSupportFlash=function(){if(typeof(Worker)!=="undefined"){return"HTML5";}else{if(navigator.plugins["Shockwave Flash"]){return"Flash";}else{return false;}}};U.quickCreate=window.$$=function(f,d,b,g){var c,a;var e={"frag":"createDocumentFragment","text":"createTextNode"};if(e[f]){a=document[e[f]]();}else{a=document.createElement(f);}if(d){$(a).addAttrArray(d);}if(b){if(g){b.insertBefore(a,g);}else{b.appendChild(a);}}return a;};$=function(a,b){return new U.select(a,b);};U.select=function(a,b){this.length=0;this.context=b||document;this.select(a,b);};U.select.EVENTS=[];U.select.prototype={select:function(b,c){var h;if(U.UF.C.isString(b)){var g=b.substring(0,1),a=b.substring(1,b.length),f=c||document;try{switch(g){case"#":if(f==document&&U.UF.S.EN.test(a)){h=document.getElementById(a);}break;case".":if(U.UF.S.EN.test(a)){h=f.getElementsByClassName(a);}break;case"*":if(U.UF.S.EN.test(a)){h=document[a];if(!h){if(U.UF.CI.getBrowser().browser=="msie"){h=document.getElementById(a);}else{h=document.embeds[a];}}}else{h=f.getElementsByTagName("*");}break;default:if(U.UF.S.EN.test(b)){h=f.getElementsByTagName(b);}break;}}catch(d){}if(h==null){h=U.UF.CP.SelectorElement(b,f);}}else{if(b){h=b;}}if(h){this.addElement(h);}return this;},addElement:function(b){if(U.UF.C.isElement(b)||b.length==null){b=[b];}for(var a=0;a<b.length;a++){this[a]=b[a];if(b[a].id){this[b[a].id]=b[a];}this.length++;}},find:function(a,c){var b=c||0,e=c+1||this.length,d=new U.select();for(;b<e;b++){d.select(a,this[b]);}return d;},prev:function(c){var d,a=[],b=c||0,f=c+1||this.length,e=new U.select();for(;b<f;b++){d=this[b];if(d){do{d=d.previousSibling;}while(d&&d.nodeType!==1);}if(d){a.push(d);}}e.addElement(a);return e;},next:function(c){var d,a=[],b=c||0,f=c+1||this.length,e=new U.select();for(;b<f;b++){d=this[b];if(d){do{d=d.nextSibling;}while(d&&d.nodeType!==1);}if(d){a.push(d);}}e.addElement(a);return e;},Nodes:function(a){a=a||0;if(this[a]){this[a].childNodes;}},Child:function(a){a=a||0;if(this[a]){return U.UF.EL.getChildrenNoText(this[a].childNodes);}},Parent:function(c){var a,b,d=this[0];c=c||1;if(U.UF.C.isNumber(c)){for(i=0;i<c;i++){if(d){d=d.parentNode;}}}else{a:while(d&&d!=document){b=true;for(i in c){if(c[i]!=d[i]&&d.getAttribute(i)!=c[i]){b=false;break;}}if(b){break a;}else{d=d.parentNode;}}}return d;},childs:function(a){return new U.select(this.Child(a));},parentElement:function(b,a){return new U.select(this.Parent(b,a));},clone:function(b,d){var c=d||0,a=[],e=c+1||this.length;for(;c<e;c++){a.push(this[c].cloneNode(b));}return new U.select(a);},appendTo:function(b,d,a){var c=d||0,e=d+1||this.length;for(;c<e;c++){if(a){b.insertBefore(this[c],a);}else{b.appendChild(this[c]);}}return this;},append:function(b,c,a){c=c||0;if(a){this[c].insertBefore(b,a);}else{this[c].appendChild(b);}return this;},remove:function(b){var a=b=b||0,c=b+1||this.length;for(;a<c;a++){if(this[a]&&this[a].parentNode){this[a].parentNode.removeChild(this[a]);}}return this;},Center:function(b){var a=b||0,c=b+1||this.length;for(;a<c;a++){U.UF.F.windowTopCenter(this[a]);}return this;},getElementInfo:function(a){return U.UF.EL.getElementInfo(this[a||0]);},css:function(e,d,c){var b=c||0,f=c+1||this.length,a=U.UF.C.isObject(e);if(a){this.addAttrArray({"style":e},d);}else{if(d!=null){for(b;b<f;b++){e=U.UF.EL.styleConversion(e);this[b].style[e]=d;}}else{return U.UF.EL.getStyle(this[b],e);}}return this;},addClass:function(c,b){var a=b||0,d=b+1||this.length;for(;a<d;a++){U.UF.EL.addClass(this[a],c);}return this;},removeClass:function(c,b){var a=b||0,d=b+1||this.length;for(;a<d;a++){U.UF.EL.removeClass(this[a],c);}return this;},hasClass:function(b,a){a=a||0;return U.UF.EL.isHasClass(this[a],b);},attr:function(f,e,d){var a,c,g,b=U.UF.C.isObject(f);if(b){c=e||0;g=e+1||this.length;for(;c<g;c++){for(a in f){U.UF.EL.addAttributes(this[c],a,f[a]);}}}else{if(e!=null){c=d||0;g=d+1||this.length;for(c;c<g;c++){U.UF.EL.addAttributes(this[c],f,e);}}else{return this[d||0].getAttribute(f);}}return this;},rmAttr:function(a,b){U.UF.EL.delAttributes(this[b||0],a);return this;},addAttrArray:function(c,m){var b,a,g,l="",d=m||0,h=m+1||this.length;for(;d<h;d++){for(b in c){if(b=="style"){for(a in c[b]){g=U.UF.EL.styleConversion(a,true);if(g=="css-text"){this[d][b]["cssText"]=c[b][a];}else{if(a in this[d][b]){l+=g+":"+c[b][a]+";";}else{this[d][b][a]=c[b][a];}}}this[d][b]["cssText"]+=";"+l;}else{if(b.indexOf("on")==0&&U.UF.C.isString(c[b])){this[d][b]=new Function(this[d][b]);continue;}else{if(U.UF.C.isString(c[b])&&U.UF.EL.isCustomAttributes(this[d],b)){try{this[d].setAttribute(b,c[b]);}catch(f){}}}this[d][b]=c[b];}}}return this;},hide:function(a){this.css({"display":"none"},a);},show:function(a){this.css({"display":"block"},a);},width:function(){return U.UF.EL.getElementRealWidth(this[0]);},height:function(){return U.UF.EL.getElementRealHeight(this[0]);},mouseenter:function(a,b){this.addAttrArray({"onmouseover":function(){U.UF.EV.stopBubbleMouseOutOrOver(this,a);}},b);return this;},mouseleave:function(a,b){this.addAttrArray({"onmouseout":function(){U.UF.EV.stopBubbleMouseOutOrOver(this,a);}},b);return this;},gt:function(c){var b=c,a=[],d=new U.select();for(;b<this.length;b++){a.push(this[b]);}d.addElement(a);return d;},lt:function(c){var b=0,a=[];for(;b<c;b++){a.push(this[b]);}return new U.select(a);},bind:function(f,e,d){var a,c,g,b=U.UF.C.isObject(f);if(b){c=e||0;g=e+1||this.length;for(;c<g;c++){for(a in f){U.UF.EV.addElementEvent(a,this[c],f[a]);U.select.EVENTS.push({element:this[c],event:a,fun:f[a]});}}}else{if(e!=null){c=d||0;g=d+1||this.length;for(c;c<g;c++){U.UF.EV.addElementEvent(f,this[c],e);U.select.EVENTS.push({element:this[c],event:f,fun:e});}}}return this;},unbind:function(g,f,e){var b,d,a,h,c=U.UF.C.isObject(g);if(c){d=f||0;h=f+1||this.length;for(;d<h;d++){for(b in g){U.UF.EV.delElementEvent(b,this[d],g[b]);for(a=0;a<U.select.EVENTS.length;a++){if(U.select.EVENTS[a].element==this[d]&&U.select.EVENTS[a].event==b&&U.select.EVENTS[a].fun==g[b]){U.select.EVENTS.splice(a,1);a--;}}}}}else{if(g!=null){d=e||0;h=e+1||this.length;for(d;d<h;d++){for(a=0;a<U.select.EVENTS.length;a++){if(U.select.EVENTS[a].element==this[d]&&U.select.EVENTS[a].event==g&&(f==null||U.select.EVENTS[a].fun==f)){U.UF.EV.delElementEvent(g,this[d],U.select.EVENTS[a].fun);U.select.EVENTS.splice(a,1);a--;}}}}else{d=e||0;h=e+1||this.length;for(d;d<h;d++){for(a=0;a<U.select.EVENTS.length;a++){if(U.select.EVENTS[a].element==this[d]){U.UF.EV.delElementEvent(U.select.EVENTS[a].event,this[d],U.select.EVENTS[a].fun);U.select.EVENTS.splice(a,1);a--;}}}}}return this;}};Namespace.register("U.UF.CP");U.UF.CP.wheel=function(a){this.onwheel=a;};U.UF.CP.wheelGet=function(){return this.onwheel;};U.UF.CP.setInnerText=function(a){this.textContent=a;};U.UF.CP.setInnerTextGet=function(){return this.textContent;};U.UF.CP.outerHtml=function(d){var b,e=$(this),a=$$("div",{"innerHTML":d}).childNodes,c=$$("frag");for(b=0;b<a.length;b++){c.appendChild(a[b]);}c.insertBefore(c,this);e.remove();};U.UF.CP.outerHtmlGet=function(){var b=this.cloneNode(true);var a=$$("div",{});a.appendChild(b);return a.innerHTML;};U.UF.CP.getStyleGet=function(){return getComputedStyle(this,false);};U.UF.CP.setCapture=function(){return function(){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);};};U.UF.CP.releaseCapture=function(){return function(){window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);};};U.UF.CP.onresize=function(b){if(this.tagName){var a,c=this.__SizeElement__;if(!c||$(c).Parent()!=this&&b){a=U.UF.EL.getStyle(this,"position");if(a==""||a=="static"){this.style.position="relative";}c=this.__SizeElement__=$$("object",{"onload":function(){if(b){c.contentDocument.defaultView.onresize=function(){b();};}else{try{delete this.__SizeElement__;}catch(f){}}},"type":"text/html","data":"about:blank","style":{"cssText":"display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;visibility:hidden;margin:0;padding:0;"}},this);}else{if(b){c.contentDocument.defaultView.onresize=function(){b();};}else{try{delete this.__SizeElement__;}catch(d){}}}}};U.UF.CP.onresizeGet=function(){try{return this.__SizeElement__.contentDocument.defaultView.onresize;}catch(a){return null;}};U.UF.CP.eventGet=function(){var a=arguments.callee;while(a.caller){a=_UDE.caller;}if(a.arguments[0]){return a.arguments[0];}else{return null;}};U.UF.CP.targetGet=function(){return event.target;};U.UF.CP.keyCodeGet=function(){return event.which;};U.UF.CP.onreadystatechangeGet=function(){return this.onload;};U.UF.CP.onreadystatechange=function(a){this.onload=a;};U.UF.CP.componentFromPoint=function(){return function(){var b=U.UF.EL.getMousePosition();var a=U.UF.EL.getElementInfo(this);if((b["X"]>a["CW"]+a["TX"])||(b["Y"]>a["CH"]+a["TY"])){return"outside";}return"";};};U.UF.CP.init=function(){if(window.HTMLElement){if(!("onmousewheel" in HTMLElement.prototype)){if("onwheel" in HTMLElement.prototype){HTMLElement.prototype.__defineGetter__("onmousewheel",U.UF.CP.wheelGet);HTMLElement.prototype.__defineSetter__("onmousewheel",U.UF.CP.wheel);}else{window.addEventListener("DOMMouseScroll",function(b){var a=null,c=b.srcElement;do{a=$(c).attr("onmousewheel")||c.onmousewheel;c=$(c).Parent();}while(!(a||!c));if(a){if(U.UF.C.isString(a)){c.onmousewheel=new Function(a);}U.UF.EV.stopDefault();setTimeout(function(){obj.call(this,b);},0);}},false);}}if(!("onreadystatechange" in HTMLElement.prototype)){HTMLElement.prototype.__defineGetter__("onreadystatechange",U.UF.CP.onreadystatechangeGet);HTMLElement.prototype.__defineSetter__("onreadystatechange",U.UF.CP.onreadystatechange);}if(!("innerText" in HTMLElement.prototype)){HTMLElement.prototype.__defineGetter__("innerText",U.UF.CP.setInnerTextGet);HTMLElement.prototype.__defineSetter__("innerText",U.UF.CP.setInnerText);}if(!("outerHTML" in HTMLElement.prototype)){HTMLElement.prototype.__defineGetter__("outerHTML",U.UF.CP.outerHtmlGet);HTMLElement.prototype.__defineSetter__("outerHTML",U.UF.CP.outerHtml);}if(!("currentStyle" in HTMLElement.prototype)){HTMLElement.prototype.__defineGetter__("currentStyle",U.UF.CP.getStyleGet);}if(!("setCapture" in HTMLElement.prototype)){HTMLElement.prototype.__defineGetter__("setCapture",U.UF.CP.setCapture);}if(!("releaseCapture" in HTMLElement.prototype)){HTMLElement.prototype.__defineGetter__("releaseCapture",U.UF.CP.releaseCapture);}if(!("onresize" in HTMLElement.prototype)||!(U.UF.CI.getBrowser().browser=="msie")){HTMLElement.prototype.__defineGetter__("onresize",U.UF.CP.onresizeGet);HTMLElement.prototype.__defineSetter__("onresize",U.UF.CP.onresize);}if(!("componentFromPoint" in HTMLElement.prototype)){HTMLElement.prototype.__defineGetter__("componentFromPoint",U.UF.CP.componentFromPoint);}if(!("event" in window.constructor.prototype)){window.constructor.prototype.__defineGetter__("event",U.UF.CP.eventGet);}if(window.Event.prototype){if(!("srcElement" in window.Event.prototype)){window.Event.__defineGetter__("target",U.UF.CP.targetGet);}if(!("keyCode" in window.Event.prototype)){window.Event.__defineGetter__("keyCode",U.UF.CP.keyCodeGet);}}}};U.UF.C.style;document.querySelectorAll=document.querySelectorAll||function(j,g){var c=U.UF.C.style,b=[],a=document.documentElement.firstChild,d=(g||document).all,f=d.length;try{c.styleSheet.cssText=j+"{q:1}";}catch(h){U.UF.C.style=$$("style",{"type":"text/css","styleSheet":{"cssText":j+"{q:1}"}},a);}while(f--){if(d[f].currentStyle.q){b.unshift(d[f]);}}return b;};document.querySelector=document.querySelector||function(a){var b=document.querySelectorAll(a);if(b.length){return b[0];}else{return null;}};U.UF.CP.SelectorElement=function(d,b){var f=(b.id===""&&b!=document),a=$$("div").querySelectorAll;if(f){b.id=b.uniqueID;}try{if(a){return(b||document).querySelectorAll((b.id?("#"+b.id+" "):" ")+d,b);}else{return document.querySelectorAll((b.id?("#"+b.id+" "):" ")+d,b);}}catch(c){return null;}finally{if(f){b.id="";}}};U.UF.CP.touch=function(){if(U.UF.C.touchstart){U.UF.EV.delElementEvent("touchstart",document,U.UF.C.touchstart,true);}U.UF.EV.addElementEvent("touchstart",document,U.UF.C.touchstart,true);};U.UF.C.touchstart=function(){var b,a=event.srcElement;U.UF.C.ismove=null;U.UF.EV.stopBubble();U.UF.EV.delElementEvent("touchstart",document,U.UF.C.touchstart,true);U.UF.EV.simulatePhoneTouch(a,"touchstart");U.UF.EV.addElementEvent("touchstart",document,U.UF.C.touchstart,true);U.UF.EV.addElementEvent("touchmove",document,U.UF.C.touchmove);U.UF.EV.addElementEvent("touchend",document,U.UF.C.touchend,true);};U.UF.C.touchmove=function(){U.UF.C.ismove=true;U.UF.EV.delElementEvent("touchmove",document,U.UF.C.touchmove);U.UF.EV.simulatePhoneTouch(event.srcElement,"touchmove");U.UF.EV.stopBubble();};U.UF.C.touchend=function(){U.UF.EV.delElementEvent("touchend",document,U.UF.C.touchend,true);U.UF.EV.stopBubble();if(!U.UF.C.ismove){U.UF.EV.simulatePhoneTouch(event.srcElement,"touchend");}};Namespace.register("U.Json");U.Json.stringify=function(a){return U.UF.C.jsonToStr(a);};U.Json.parse=function(a){return a.parseJSON();};U.Json.ifExists=function(c,b){if(b===c){return true;}for(var a in c){if(c[a]!=b[a]){return false;}}return true;};U.Json.add=function(c,b){var a;if(!Array.isArray(c)){for(a in b){c[a]=b[a];}}else{for(a=0;a<c.length;a++){U.UF.C.AddObj(c[a],b);}}return c;};U.Json.find=function(c,a,b){};U.Json.del=function(d,b,c){c=c||d;var a,f,e=[];if(Array.isArray(c)){for(a=0;a<c.length;a++){f=U.Json.del(d,b,c[a]);if(f.length){c.splice(a,1);e=e.concat(f);a--;}}}else{if(typeof c=="object"){if(U.Json.ifExists(b,c)){delete c;e.push(c);}else{if(b===true){for(a in c){f=U.Json.del(d,b,c[a]);e=e.concat(f);}}else{if(b&&c[b]){f=U.Json.del(d,b,c[b]);e=c.concat(f);}}}}}return e;};U.Json.select=function(b,g,d){var e,a,f=[];if(Array.isArray(b)){for(e=0;e<b.length;e++){a=true;for(var c in g){if(b[e][c]!=g[c]){a=false;}}if(a){f.push(b[e]);}if(f.length==d){break;}}return f;}};U.Json.selectOne=function(a,b){return(U.Json.select(a,b,1))[0];};U.Json.sort=function(a,b,c){c=c||1;a=a.sort(function(h,g){var e,f,d=U.UF.C.isObject(h);if(d){f=(typeof(h[b]||g[b])).capitalizeFirstLetter();}else{f=(typeof h).capitalizeFirstLetter();}if(f=="Number"){e=num1>num2;}else{if(f=="Date"){e=U.UF.D.SizeComparison(date1,date2);}else{if(f=="String"){e=str1.localeCompare(str2)==1;}else{e=true;}}}e=c*(e?1:-1);return e;});return a;};U.Json.toKeyArray=function(b,d){var c,a=[];for(c=0;c<b.length;c++){a.push(obj[d]);}return a;};U.UF.C.Start=function(){U.UF.EV.addPrototype(String,U.UF.C.String);U.UF.EV.addPrototype(Number,U.UF.C.Number);U.UF.EV.addPrototype(Array,U.UF.C.Array);if(!window.JSON){window.JSON={stringify:U.Json.stringify,parse:U.Json.parse};}U.Json=U.Json;U.UF.CP.init();if("ontouchstart" in document){U.UF.CP.touch();}U.UF.C.AddObj(Guid,U.UF.C.Guid);U.UF.EV.addPrototype(Date,U.UF.C.Date);};U.UF.C.Start();Namespace.register("U.UF.CD");U.UF.CD.AJAXCROSSDOMAIN="http://www.1473.cn/DataCrossdomain.htm";U.UF.CD.PAGECROSSDOMAIN="http://www.1473.cn/PageCrossdomain.htm";U.UF.CD.AJAXIFRAMES=[{"id":"U_Main","url":"http://main.1473.cn/Crossdomain.htm"}];U.UF.CD.STATION="http://www.1473.cn/index.aspx";U.UF.CD.loadAjaxCrossDomain=function(a,j){var d,h,g,c=$("#usestudio-server")[0]||$("body")[0],b=U.UF.CD.AJAXIFRAMES;if(document.domain.indexOf("1473.cn")>-1){for(d=0;d<b.length;d++){try{g=b[d].id;if(window[g]&&window[g].location){if(window[g].location.href==b[d].url){U.UF.CD.asynLoadAjaxCrossDomain($("#"+g)[0],a);}return;}h=$$("iframe",{"id":g,"name":g,"width":0,"height":0,"style":{"display":"none"},"src":b[d].url});U.UF.DL.iframeLoad(h,function(){U.UF.CD.asynLoadAjaxCrossDomain(h,a);});c.appendChild(h);if(loadingel){U.UF.DL.loading(loadingel);}}catch(f){}}}else{U.UF.CD.thirdPartyLoadAjaxCrossDomain(a,loadingel);}};U.UF.CD.asynLoadAjaxCrossDomain=function(b,a){var c=b.contentWindow;c.name=b.id;if(U.UF.C.isFunction(a)){a();}};U.UF.CD.thirdPartyLoadAjaxCrossDomain=function(a,d){var c,b=$("#usestudio-server")[0]||$("body")[0];if(window["U_Domain"]){if(window["U_Domain"].location.href==U.UF.CD.AJAXCROSSDOMAIN&&U.UF.C.isFunction(a)){a();}}else{c=$$("iframe",{"id":"U_Domain","name":"U_Domain","width":0,"height":0,"style":{"display":"none"},"src":U.UF.CD.AJAXCROSSDOMAIN},b);U.UF.DL.iframeLoad(c,function(){if(U.UF.C.isFunction(a)){a();}});if(d){U.UF.DL.loading(d);}}};U.UF.CD.loadPageCrossDomain=function(c,f,a){var d;if(!$("#usestudio-server")[0]){var e=$$("div",{"id":"usestudio-server","className":"usestudio-server","__top__":"false"},document.body);if(document.domain=="1473.cn"){d=$$("iframe",{"width":0,"height":0,"style":{"display":"none"}},$("body")[0]);if(f){U.UF.DL.loading(f);}U.UF.DL.iframeLoad(d,U.UF.C.apply(null,function(){U.UF.CD.asynLoadPageCrossDomain(d,f,c,a);}));d.src=U.UF.CD.STATION;}else{d=$$("iframe",{"id":"U_CDomain","name":"U_CDomain","width":0,"height":0,"style":{"display":"none"}},document.body);U.UF.DL.iframeLoad(d,function(){new U.UF.EV.message({obj:"#U_CDomain",url:U.UF.CD.PAGECROSSDOMAIN,Sender:true,me:function(b){var g=$("#usestudio-server")[0];g.innerHTML=b[0];if(U.MD.D.Load){U.MD.D.Load(c);}if(U.UF.C.isFunction(c)){c();}},url:"http://www.143.cn/Crossdomain.htm"}).post("","cdomain");});d.src=U.UF.CD.PAGECROSSDOMAIN;}}};U.UF.CD.asynLoadPageCrossDomain=function(f,c,d,m){var g,n,a,l=f.contentWindow,k=l.document.cookie.split("=");if(k[1]==""){U.UF.Cookie.del(k[0]);}else{U.UF.Cookie.set(k[2]);}var h=$("#usestudio-server")[0];a=$(m===true?"body":"#UD_SY",l.document)[0].innerHTML;try{n=l.document.open();}catch(j){n=l.document;}n.write="";n.close();$(f).remove();h.innerHTML=a;if(U.MD.D.Load){U.MD.D.Load(d);}else{if(U.UF.C.isFunction(d)){d();}}};Namespace.register("U.A");U.A.allAjaxRequest={requestNumber:0,requestObject:[],forrequest:0};U.A.Request=$.ajax=function(b,l,d,g,e){if(U.A.Request.ifAttack()){var a=U.A.Request.isDomain(b);if(a==1){var k=e||{},c=k.type||"POST",f=U.UF.C.isFunction(d),h=U.A.Request.toAjaxFormat(l);var j=U.A.Request.createAjaxObject(b);U.A.Request.attack(b,l,d,g,e,j);if(c.toUpperCase()=="GET"){b+="?"+h;}j.open(c,b,f);U.A.Request.writeHeader(j,k);j.send(h);if(f){U.A.Request.asyn(j,d,g);}else{return U.A.Request.getData(j,null);}}else{return U.A.Request.handleDomain(b,l,d,g,e,a);}}};U.A.Request.attack=function(d,c,b,g,h,e){var a=U.A.allAjaxRequest.requestObject[U.A.allAjaxRequest.requestObject.length-1],f={"win":window,"ajax":e,"url":d,"params":c,"cb":b,"cbparams":g,"header":h,"time":new Date().getTime()};U.A.allAjaxRequest.requestNumber+=1;U.A.allAjaxRequest.requestObject.push(f);if(a){if(f.time-a.time<50){U.A.allAjaxRequest.forrequest+=1;}else{U.A.allAjaxRequest.forrequest=0;}}};U.A.Request.toAjaxFormat=function(c){var b,a="mode="+U.UF.C.urlEncode(c.concat());if(parent.US){b=parent.US.userInfo;if(b&&b.UserId){a+="&UserId="+b.UserId+"&LoginId="+b.LoginId;}a+="&PageId="+US.pageId+"&SystemId="+US.systemId;}return a;};U.A.Request.createAjaxObject=function(b){var a=window.location?(window.location.protocol+"//"+window.location.host):"";if(b.indexOf(a)==-1&&window.XDomainRequest){return new window.XDomainRequest();}try{return new XMLHttpRequest();}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0");}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(c){}try{return new ActiveXObject("MSXML3.XMLHTTP");}catch(c){}try{return new ActiveXObject("MSXML.XMLHTTP");}catch(c){}try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(c){}try{return new ActiveXObject("MSXML2.ServerXMLHTTP");}catch(c){}};U.A.Request.writeHeader=function(a,c){c["CONTENT-TYPE"]=c["CONTENT-TYPE"]||"application/x-www-form-urlencoded;charset=UTF-8";for(i in c){try{if(i in a){a[i]=c[i];}else{a.setRequestHeader(i,c[i]);}}catch(b){}}if(a.overrideMimeType){if(c["responseType"]=="blob"){a.overrideMimeType("text/plain; charset=x-user-defined");}else{a.overrideMimeType("text/html");}}};U.A.Request.asyn=function(b,a,c){if(c&&c[0]&&U.UF.C.isElement(c[0])){U.UF.DL.uploading(c[0]);}if(b.onload){b.onload=function(){var d=U.A.Request.getData(b,c);a.call(null,d);};_ajax.onerror=function(){b.status=500;a.call(null,{httpRequest:b,status:{"status":b.status,"statusText":b.statusText},value:null,context:c});};}else{b.onreadystatechange=function(){if(b.readyState==4){var d=U.A.Request.getData(b,c);a.call(null,d);}};}};U.A.Request.getData=function(a,c){var b,d={httpRequest:a,status:null,value:null,context:c};if(a.status==200){if(a.responseXML){b=a.responseXML.xml;}else{b=U.UF.C.toJson(a.responseText);}d.value=b;}else{d.status={"status":a.status,"statusText":a.statusText};}if(a.abort){a.abort();}U.A.Request.timeSpan(a,d);return d;};U.A.Request.isDomain=function(a){var c,b=$$("a",{"href":a});if(window.location){if(a.indexOf(window.location.origin)==0){return 1;}else{if(window.location.origin.split(".").slice(-2).join(".")==b.origin.split(".").slice(-2).join(".")){c=window.frames;for(i=0;i<c.length;i++){try{if(a.indexOf(c[i].location.origin)==0){return 2;}}catch(d){}}}}}else{if($("#U_Domain")[0]){return 3;}}return 1;};U.A.Request.handleDomain=function(a,j,b,k,d,l){var h,g=$$("a",{"href":a}),c;if(l==2){c=window.frames;for(i=0;i<c.length;i++){try{if(a.indexOf(c[i].location.origin)==0){return c[i].U.A.Request(a,j,b,k,d);}}catch(f){}}}else{if(l==3){if(j&&U.UF.C.isElement(j[0])){U.UF.DL.uploading(params[0]);}h=new U.UF.EV.message(function(m){var e=m[1].split("=");if(e[1]==""){U.UF.Cookie.del(e[0]);}else{U.UF.Cookie.set(m[1]);}if(this.asyn){this.asyn(_data[0]);}},true,"#U_Domain");h.post([a,j],"domain");}}return false;};U.A.Request.ifAttack=function(){return U.A.allAjaxRequest.forrequest<50;};U.A.Request.timeSpan=function(d,e){var c,a,b=U.A.allAjaxRequest.requestObject;for(c=0;c<b.length;c++){if(b[c].ajax==d){a=new Date().getTime()-b[c].time;U.UF.C.console({"timespan":a,"request":e});}}};Namespace.register("U.UF.D");U.UF.D.formatDateToArray=function(a){var b=[];if(typeof a=="string"){if(a.indexOf("Date")>-1){a=new Date(parseInt(a.match(/[0-9]+/g)[0]));}else{a=new Date(a);}}return[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()];};U.UF.D.getYearMonthDay=function(a){if(a){a=U.UF.D.formatDateToArray(a);a=a.slice(0,3).join("-");return a;}return"";};U.UF.D.getHoursMinutesSecond=function(a){a=U.UF.D.formatDateToArray(a,true);a=a.slice(3,6).join(":");return a;};U.UF.D.getFullTime=function(a){a=U.UF.D.formatDateToArray(a,true);a=a.slice(0,3).join("-")+" "+a.slice(3,6).join(":");return a;};U.UF.D.getDateInterval=function(a){var d,b=U.UF.D.formatDateToArray(new Date(),"Array"),c=U.UF.D.formatDateToArray(a,"Array");if(b[0]==c[0]){if(b[2]-c[2]<3){if(b[2]==c[2]){if(b[3]==c[3]){d=b[4]-c[4]+"分钟前";}else{d=b[3]-c[3]+"小时前";}}else{d=b[2]-c[2]+"天前";}}else{d=c[1]+"月"+c[2]+"日"+c[3]+"点"+c[4]+"分";}}else{d=c[0]+"年"+c[1]+"月"+c[2]+"日"+c[3]+"点"+c[4]+"分";}return d;};U.UF.D.toTimeStamp=function(b,a){var c;if(U.UF.C.isString(b)){c=Date.parse(b);}else{if(Array.isArray(b)){c=Date.UTC(b[0],b[1]-1||1,b[2]||1,b[3]-8||1,b[4]||1,b[5]||1);}else{if(U.UF.D.isDate(b)||!b){c=Date.parse(b||new Date());}}}return"/Date("+c+")/";};U.UF.D.getDayOfMonth=function(a){var b=U.UF.D.formatDateToArray(a);if(b[1]==2){if(b[0]%4!=0&&b[0]%100==0&&b[0]%400!=0&&b[0]%3200==0){return 28;}return 29;}else{if(b[2]==4||b[2]==6||b[2]==9||b[2]==11){return 30;}return 31;}};U.UF.D.sizeComparison=function(c,e){var a=U.UF.D.formatDateToArray(c),b=U.UF.D.formatDateToArray(e);for(var d=0;d<a.length;d++){if(a[d]>b[d]){return true;}if(b[d]>a[d]){return false;}}return"equal";};U.UF.D.lowerToUpper=function(b){var e,d,a="",f="",c=[["零","一","二","三","四","五","六","七","八","九","十"],["","十","百","千","万","亿","兆"],["年","月","日","点","分","秒"]];!b?b=new Date():"";b=U.UF.D.formatDateToArray(b);for(e=0;e<b.length;e++){a=String(b[e]);if(e==1){for(d=0;d<a.length;d++){f+=c[0][a[d]];}}else{if(Number(a)>10){f+=c[0][a[0]]+c[0][10]+(a[1]=="0"?"":c[0][a[1]]);}else{f+=c[0][a[0]];}}f+=c[2][e];}return f;};U.UF.D.isDate=function(a){return U.UF.C.isObject(a)&&U.UF.C.objectToString(a)=="[object Date]";};Namespace.register("U.UF.DL");U.UF.DL.asynLoadJs=function(d,a){var b=$("head");var c=$$("script",d);U.UF.DL.fileElementLoaded(c,a);b.append(c,0,b[0].firstChild);return c;};U.UF.DL.asynLoadCss=function(d,a){var b=$("head");var c=$$("link",d);U.UF.DL.fileElementLoaded(c,a);b.append(c,0,b[0].firstChild);return c;};U.UF.DL.iframeLoad=function(b,a){U.UF.DL.fileElementLoaded(b,a);};U.UF.DL.fileElementLoaded=function(c,a){var b=c.readyState;if(b=="complete"){a.call(c);}else{c.onreadystatechange=function(){if(c.readyState=="complete"||c.readyState==null){c.onreadystatechange=null;if(U.UF.C.isFunction(a)){a.call(c);}}};}};U.UF.DL.LoadStyle=function(c){var b=$("head")[0];var a=$$("style",{});if(a.styleSheet){a.styleSheet.cssText=c;}else{a.appendChild(document.createTextNode(c));}b.appendChild(a);document.body.offsetHeight;return a;};U.UF.DL.loading=function(d){if(d){if(d.__ULOADElement__){return false;}else{var e=$(d).Parent();var b=d.__ULOADElement__=$$("div",{"P":0,"style":{"width":"100%","height":"100%","position":"absolute","left":0,"top":0,"background-color":"#fff"}});var a=$$("div",{"style":{"display":"block","z-index":"1000","width":"37px","height":"37px","position":"absolute"}},b);var c=$$("img",{"src":"http://www.1473.cn/img/Loading.gif"},a);e.appendChild(b);a.style.left=($(e)[0].offsetWidth-a.offsetWidth)/2+"px";a.style.top=($(e)[0].offsetHeight-a.offsetHeight)/2+"px";e.style.overflow="hidden";return b;}}};U.UF.DL.uploading=function(a){$(a.__ULOADElement__).remove();};Namespace.register("U.UF.E");U.UF.E.initEditor=function(b){b.focus();if(b.innerHTML.trim()==""){var a,c;a=$$("div",{"innerHTML":"&nbsp"},b);c=U.UF.E.getRangeAt();U.UF.E.elementFocus(c,a);a.innerHTML="&#8203";}return U.UF.E.getRangeAt();};U.UF.E.elementFocus=function(a,c){if(window.getSelection){var b=window.getSelection();a.selectNodeContents(c);b.removeAllRanges();b.addRange(a);}else{a.moveToElementText(c);a.select();}};U.UF.E.getRangeAt=function(c){var a,b;c=c||window;if(c.getSelection){a=c.getSelection();if(a.rangeCount){b=a.getRangeAt(0);}}else{a=c.document.selection;b=a.createRange();}return b;};U.UF.E.addRange=function(d,a,e){if(window.getSelection){var b=window.getSelection(),c=a.createContextualFragment(d);a.deleteContents();b.removeAllRanges();a.insertNode(c);if(e){a.collapse(false);}b.addRange(a);}else{a.select();a.pasteHTML(d);if(e){a.collapse(false);}}return U.UF.E.getRangeAt();};U.UF.E.getElement=function(a){if(a.commonAncestorContainer){return a.commonAncestorContainer;}else{if(a.parentElement){return a.parentElement();}else{return a.commonParentElement();}}};U.UF.E.select=function(a){if(window.getSelection){var b=window.getSelection();b.removeAllRanges();b.addRange(a);}else{a.select();}};U.UF.E.getLineElement=function(b){var a=b.tagName?b.tagName.toLocaleLowerCase():"";while(!(a=="div"||a=="p"||a=="body")){b=b.parentNode;a=b.tagName.toLocaleLowerCase();}return b;};U.UF.E.setStyle=function(a,f){var e,d,h,o,b,j,l,n,g,c=f.startContainer,k=f.endContainer,i=f.startOffset,m=f.endOffset;l=U.UF.E.getLineElement(c);n=U.UF.E.getLineElement(k);if(l==n){d=U.UF.E.split(c,i);h=U.UF.E.split(d,m-i);o=d.parentNode;j=$$("span",{"style":a});j.appendChild(d);$(o).append(j,null,h);}else{d=U.UF.E.split(c,i);o=d.parentNode;j=$$("span",{"style":a});j.appendChild(d);o.appendChild(j);e=U.UF.E.split(k,m);h=k;b=h.parentNode;j=$$("span",{"style":a});$(b).append(j,0,e);j.appendChild(h);g=l;while((g=g.nextSibling)&&g!=n){j=$("span",g)[0];if(j){$(j).css(a);}else{j=$$("span",{"innerHTML":g.innerHTML,"style":a});g.innerHTML=j.outerHTML;}}f=U.UF.E.setRange(d,h,0,h.data.length,f);return f;}};U.UF.E.split=function(c,d){if(d==c.nodeValue.length){var b=document.createTextNode("");$(c.parentNode).append(b,null,c);return b;}var a=c.splitText(d);return a;},U.UF.E.setLineStyle=function(b,a){var d=U.UF.E.getElement(a),c=U.UF.E.getLineElement(d);$(c).css(b);return a;};U.UF.E.input=function(a,b){};U.UF.E.setRange=function(e,c,g,a,b){if(window.getSelection){b.setStart(e,g);b.setEnd(c,a);}else{var f=document.body.createTextRange(),d=document.body.createTextRange();f.moveToElementText(e);f.moveStart("character",e);d.moveToElementText(c);d.moveStart("character",a);f.setEndPoint("EndToStart",d);f.select();b=f;}return b;};Namespace.register("U.UF.IMG");U.UF.IMG.Create=function(b,d,c,a){U.UF.EV.stopBubble();return(new U.UF.IMG.Create.init(b,d,c,a)).Create();};U.UF.IMG.Create.init=function(b,e,d,a){this.Iss;this.UIOD;this.BL;this.UIMG;this.W;this.h;this.R=0;this.I=typeof e=="number"?e:0;this.cb=a;this.CTF=true;this.AIMG=b;for(var c in d){if(d.hasOwnProperty(c)){this[c]=d[c];}}};U.UF.IMG.Create.init.prototype={ET:[],ImgT:function(h,c){var f,j,b,g,d,a,k,e=[["放大","UD_SYJDXB"],["缩小","UD_SYJDXS"],["左转","UD_SYJDXL"],["右转","UD_SYJDXR"]];if((j=$("#"+c)[0])){k=$(j).childs(0)[0];k=$(k).Child()[2];k=$("img",k);$(j).Center();k.length?(k=k[0],k.src=h["Thm"]):(b.innerHTML="",a=$$("div",{"className":"UD_SYJZO"},b),k=$$("img",{"onerror":function(){U.MD.C.imgError(this,1);},"onselectstart":function(){},"ondragstart":function(){},"src":U.MD.C.getHeadImage(h["Thm"])},a));}else{j=$$("div",{"className":"UD_SYJ UD_SYJO",id:c,"onmousewheel":function(){U.UF.EV.stopBubble();this.Wheel(this);},"__size__":"false","onmousedown":function(){U.UF.F.DragMouseDown(this);}});b=$$("div",{"className":"UD_SYJA"},j);g=$$("div",{"className":"UD_SYJD","onmousedown":U.UF.EV.stopBubble,"onclick":U.UF.EV.stopBubble},b);g=$$("div",{"className":"UD_SYJDX"},g);g=$$("div",{"className":"UD_SYJDXS"},g);for(f=0;f<e.length;f++){d=$$("div",{"className":"UD_SYJDXC","style":f?{}:{"margin":"0px"},"title":e[f][0],onclick:function(){f>1?this.Rotate:this.Zoom(f>1?(f-2)*2-1:(f?"Out":"In"),j,this);}},g);if(!f){a=$$("div",{},d);$$("div",{"title":"回到原图","innerHTML":"&nbsp; 100%",onclick:function(){this.Zoom(100,j,this);}},d);}else{a=d;}$$("div",{"className":"U_Boom_Img_ys2017 UD_SYJDXO "+e[f][1]},a);$$("div",{"className":"UD_SYJDXT","title":"点击"+e[f][0],"innerHTML":e[f][0]},a);}$$("div",{"className":"UD_SYJL UD_SYJLO U_Boom_Img_ys2017","onmousedown":U.UF.EV.stopBubble,"onclick":U.UF.EV.stopBubble},b);a=$$("div",{"className":"UD_SYJZ","onmousedown":U.UF.EV.stopBubble},b);$$("div",{"className":"UD_SYJL UD_SYJRO U_Boom_Img_ys2017","onmousedown":U.UF.EV.stopBubble,"onclick":U.UF.EV.stopBubble},b);a=$$("div",{"className":"UD_SYJZO"},a);k=$$("img",{"onerror":function(){U.MD.C.imgError(this,1);},"onselectstart":function(){},"ondragstart":function(){},"src":U.MD.C.getHeadImage(h["Thm"])},a);$$("div",{"className":"U_Boom_Img_ys2017 UD_SYQC UD_SYQCT",style:{top:"0",right:"0"},"title":"关闭","onmousedown":U.UF.EV.stopBubble,"onclick":function(){this.Close(null,this);}},j);$(j).appendTo((this.parent||document.body)).Center();}return[(this.UIOD=j),(this.UIMG=k)];},Create:function(){if(this.AIMG){this.AIMG=this.AIMG.length!=null?this.AIMG:[this.AIMG];var a=this.AIMG[this.I],b=(this.cb?this.cb(a):this.ImgT(a,"Usestudio_Img"));this.R=0;this.Iss=$(this.UIOD).attr("__size__")=="false";U.UF.IMG.imgReady(U.MD.C.getHeadImage(a["Img"]),function(){this.Ready(b[0],b[1],this,a);},function(){this.Load(b[0],b[1],this,a);},U.UF.C.apply(this,function(){this.Error(a["Img"]);}));return this;}},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||b.deltaY)/3),a=c>0?"In":"Out";d.Zoom(a,d.UIOD,d);},Change:function(d,c,a){d=c.I+d;c.I=d=(d<0||d>=c.AIMG.length)?((d<0)?c.AIMG.length-1:0):d;var b=$(c.UIMG).addAttrArray({"src":c.AIMG[d]["Thm"],"style":{"filter":"alpha(opacity=30)","MozOpacity":"0.3","Khtml-opacity":"0.3","opacity":"0.3"}});c.PJ("","",c.UIOD,c.UIMG);c.Rotate((c.R=0),c.UIOD,c);U.UF.IMG.imgReady(c.AIMG[d]["Img"],function(){c.Ready(c.UIOD,b[0],c);},function(){c.Load(c.UIOD,b[0],c);},U.UF.C.apply(this,function(){c.Error();}));(a)&&(function(){a();}());},Zoom:function(e,b,d){var e,f,a,c=$(this.UIMG);if("Out,In".indexOf(e)>-1){e=e=="Out"?this.BL*0.8:this.BL/0.8;}d.W=d.W||c[0].width;d.H=d.H||c[0].height;this.BL=e=Math.max(Math.min(300,e),22);a=parseInt(d.H*(e/100));f=parseInt(d.W*(e/100));c.addAttrArray({"style":{"width":f+"px","height":a+"px"}});d.PJ(f,a,b,c[0]);U.UF.F.windowTopCenter(b);},PJ:function(d,e,c,b){var a=$(b).Parent();a.style.height=e?e+"px":"";a.style.width=d?d+"px":"";if(!this.Iss){c.style.width=a.style.width;}if(e){$(a).css("marginTop",((e=(($(a).Parent().offsetHeight-e)/2))>0?e:0)+"px");}},Rotate:function(e,c,f){var d=$(f.UIMG),a=d.Parent(),b=[a.offsetWidth,a.offsetHeight];if(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:{"filter":"Progid:DXImageTransform.Microsoft.BasicImage(Rotation="+e+")","transformOrigin":b[2]+" "+b[2],"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.UF.F.windowTopCenter(c);},MoveScroll:function(a,b){a.setCapture();document.onmousemove=function(){b.Move(a,event.clientX,event.clientY,[a.scrollTop,a.scrollLeft],b);};document.onmouseup=function(){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;},Download:function(a){a=a.replace(US.FILESYSTEMURL,"");U.MD.DK.RE.ODL(a,"1473用户图片.jpg");},Close:function(a,b,c){U.UF.F.closeWindow(a||this.UIOD,c?"remove":false);this.ET.splice(this.ET.indexOf(b),1);},Ready:function(d,c,b,a){if(d.style.display!="none"&&(a&&a["Thm"]==c.src||!a||!a["Thm"])){$[c,c.parentNode].addAttrArray({"style":{"width":this.width+"px","height":this.height+"px"}});b.W=this.width;b.H=this.height;b.PJ(b.W,b.H,d,c);U.UF.F.windowTopCenter(d);return true;}else{return false;}},Load:function(f,d,c,a){if(this.src&&f.style.display!="none"&&(a&&a["Thm"]==d.src||!a||!a["Thm"])){var b=$(d).Parent(),e=this.Iss?[b.offsetWidth,b.offsetHeight]:[US.width,US.height];$(d).addAttrArray({"src":this.src,"style":{"MozOpacity":"1","Khtml-opacity":"1","opacity":"1","filter":"alpha(opacity=100)"}});c.W=this.width;c.H=this.height;f=$(f);c.Zoom(Math.min(Math.min(c.W,e[0])/this.width,Math.min(c.H,e[1])/this.height)*100,f[0],c);f.Center();}},Error:function(a,c){var d;var b=this.UIMG;c=c||0;c++;if(c<3&&this.TF==2){U.UF.IMG.imgReady(a+"?&n="+c,function(){this.Ready(this.UIOD,b,this);},function(){this.Load(this.UIOD,b,this);U.UF.C.apply(this,function(){this.Error(a,c);});});}else{U.Alert("图片丢失");$(b).css({"width":"auto","height":"auto"});U.MD.C.imgError(b,(this.TF||1));this.Zoom(100,this.UIOD,this);U.UF.F.windowTopCenter(this.UIOD);}}};U.UF.IMG.imgReady=function(b,i,a,e){var c,h,g,d,f=new Image();_UOR=function(){f=f||this;g=f.width;d=f.height;if((g!==c||d!==h)||d!==0){if(i){i.call(f);}_UOR.end=true;}};$(f).addAttrArray({"src":b,"onload":function(){setTimeout(function(){if(!_UOR.end){_UOR();}if(f){f.onload=f.onerror=null;}if(f&&a){a.call(f);}f=null;},0);},"onerror":function(){if(U.UF.C.IsNetwork()){if(e){e.call(f);}}}});if(f){_UOR();if(f.complete==true){f.onload();return;}}if(!_UOR.end){U.UF.IMG.imgReady._UL.push(_UOR);if(U.UF.IMG.imgReady._UIT==null){U.UF.IMG.imgReady._UIT=setInterval(U.UF.IMG.imgReady._URT,40);}}return f;};U.UF.IMG.imgReady._UIT;U.UF.IMG.imgReady._UL=[];U.UF.IMG.imgReady._US=function(){clearInterval(U.UF.IMG.imgReady._UIT);U.UF.IMG.imgReady._UIT=null;};U.UF.IMG.imgReady._URT=function(){for(var a=0;a<U.UF.IMG.imgReady._UL.length;a++){U.UF.IMG.imgReady._UL[a].end?U.UF.IMG.imgReady._UL.splice(a--,1):U.UF.IMG.imgReady._UL[a]();}if(!U.UF.IMG.imgReady._UL.length){U.UF.IMG.imgReady._US();}};Namespace.register("U.UF.Math");U.UF.Math.getRandom=function(a){return Math.floor(Math.random()*a+1);};U.UF.Math.RandomRange=function(a,b){return Math.floor(Math.random()*Math.abs(b-a))+(a>b?b:a);};U.UF.Math.Sequence=function(a,e,b,c){if(a){var d;a.sort(function(g,f){if(b(g[e],f[e])){c=(-1)*(c||1);}else{c=1*(c||1);}return c;});}};U.UF.Math.floatOperate=function(number1,number2,operator){var i,_pow,_strarr=[String(number1),String(number2)];for(i=0;i<2;i++){_strarr[i+2]=_strarr[i].length-_strarr[i].indexOf(".")-1;}_pow=Math.pow(10,Math.max(_strarr[2],_strarr[3]));return(eval("0,"+_strarr[0]*_pow+operator+_strarr[1]*_pow))/_pow;};Namespace.register("U.UF.N");U.UF.N.goList={};U.UF.N.route=null;U.UF.N.RGoL=function(c,a){var b=U.UF.N.goList;if(b[c]&&a!==true){return b[c]._this;}else{return new U.UF.N.init(c);}};U.UF.N.init=function(a){this.cb=[];this.length=0;this._this=this;U.UF.N.goList[a]=this;};U.UF.N.AddEvent=function(c,b){var a=U.UF.N.RGoL(b);c=U.UF.C.apply(this,c);a.AddDrawBack(c);c();};U.UF.N.AddDrawBack=function(a){this.cb.splice(this.length,this.cb.length-this.length,a);this.length++;};U.UF.N.GQH=function(b){var a=this.cb[this.length-b*2];if(a){a();this.length+=((-b*2)+1);}};U.UF.N.DrawBack=function(a){U.UF.N.goList[a]["_this"].GQH(1);};U.UF.N.GoForward=function(a){U.UF.N.goList[a]["_this"].GQH(0);};U.UF.N.init.prototype={AddEvent:U.UF.N.AddEvent,AddDrawBack:U.UF.N.AddDrawBack,GQH:U.UF.N.GQH,DrawBack:U.UF.N.DrawBack,GoForward:U.UF.N.GoForward};U.UF.N.init=function(a){if(document.all&&!document.documentMode){setInterval(function(){U.UF.N.changeHashCallBack(a);},100);}else{window.onhashchange=function(){U.UF.N.changeHashCallBack(a);};}};U.UF.N.UrlRoute=function(){if(!U.UF.N.route){U.UF.N.route=U.UF.N.init;}return U.UF.N.route;};U.UF.N.addHash=function(a){U.UF.N.setHash(a);};U.UF.N.setHash=function(a){location.hash=a;};U.UF.N.getHash=function(){var a=location.hash;if(!a){return"";}else{return location.hash;}};U.UF.N.changeHashCallBack=function(a){var c=U.UF.N.getHash();var b=c.substr("1");if(b!=""){a(b);}else{if(b==""){window.history.forward(1);}}};Namespace.register("U.UF.P");U.UF.P.PageNum=0;U.UF.P.Index=0;U.UF.P.Pageall=0;U.UF.P.PPage=function(b,k,o,n,q){U.UF.P.PageNum=n;U.UF.P.Index=n-1;var h=1;var s=$(b)[0];var m=Math.ceil(k/o);U.UF.P.Pageall=m;if(m>10){m=10;}if(s.getElementsByClassName("UD_SYFY")[0]){return false;}var f=$$("div",{"className":"UD_SYFY"},s);var p=$$("div",{"className":"UD_SYFYL"},f);$$("div",{"className":"U_Boom_Img_ys2017 UD_SYFYLO","title":"首页","pid":"1","onclick":function(){U.UF.P.FPage(this,U.UF.P.PageNum,m,q);}},p);$$("div",{"className":"U_Boom_Img_ys2017 UD_SYFYLT","title":"上一页","pid":"3","onclick":function(){U.UF.P.FPage(this,U.UF.P.PageNum,m,q);}},p);var l=$$("div",{"className":"UD_SYFYN","style":{"cssText":"float:left"}},p);for(h;h<m+1;h++){$$("div",{"className":"list","style":{"text-align":"center","line-height":"31px;"},"innerHTML":h,"pid":"5","onclick":function(){U.UF.P.FPage(this,U.UF.P.PageNum,m,q);}},l);}$$("div",{"className":"U_Boom_Img_ys2017 UD_SYFYLS","title":"下一页","pid":"4","onclick":function(){U.UF.P.FPage(this,U.UF.P.PageNum,m,q);}},p);$$("div",{"className":"U_Boom_Img_ys2017 UD_SYFYLF","title":"尾页","pid":"2","onclick":function(){U.UF.P.FPage(this,U.UF.P.PageNum,m,q);}},p);var e=$$("div",{"className":"UD_SYFYR"},f);var r=$$("div",{"className":"UD_SYFYRL"},e);$$("span",{"innerHTML":"到"},r);var g=$$("div",{},r);$$("input",{"className":"classinput","type":"text"},g);$$("span",{"innerHTML":"页"},r);$$("div",{"className":"UD_SYFYRZ","pid":"6","innerHTML":"确定","onclick":function(){U.UF.P.FPage(this,U.UF.P.PageNum,m,q);}},e);if(U.UF.P.PageNum<m+1){var c=$(".list");for(var d=1;d<c.length+1;d++){if(U.UF.P.PageNum==d){c[U.UF.P.PageNum-1].style.backgroundColor="#2d9bef";}}}var a=$(".classinput")[0];a.onkeyup=function(){if(event.keyCode=="13"){$(".UD_SYFYRZ")[0].onclick();}};};U.UF.P.FPage=function(e,f,b,a){var d=$(".list");for(var c=0;c<d.length;c++){d[c].style.backgroundColor="";}if(e.pid==1){if(U.UF.P.Index==0){U.UF.P.Index++;}if(f>1){d[0].style.backgroundColor="#2d9bef";U.UF.P.Index=0;U.UF.P.PageNum=1;U.UF.P.Pagefun(U.UF.P.PageNum);a(U.UF.P.PageNum);return;}d[--U.UF.P.Index].style.backgroundColor="#2d9bef";}else{if(e.pid==2){if(f<U.UF.P.Pageall){U.UF.P.Index=b;U.UF.P.PageNum=U.UF.P.Pageall;U.UF.P.Pagefun(U.UF.P.PageNum);a(U.UF.P.PageNum);return;}else{d[U.UF.P.Index].style.backgroundColor="#2d9bef";}}else{if(e.pid==3){if(U.UF.P.Index>0){d[--U.UF.P.Index].style.backgroundColor="#2d9bef";U.UF.P.PageNum--;U.UF.P.Pagefun(U.UF.P.PageNum);a(U.UF.P.PageNum);return;}else{d[U.UF.P.Index].style.backgroundColor="#2d9bef";}}else{if(e.pid==4){if(U.UF.P.PageNum<U.UF.P.Pageall){d[++U.UF.P.Index].style.backgroundColor="#2d9bef";U.UF.P.PageNum++;U.UF.P.Pagefun(U.UF.P.PageNum);a(U.UF.P.PageNum);return;}else{d[U.UF.P.Index].style.backgroundColor="#2d9bef";}}else{if(e.pid==5){U.UF.P.Pagefun(e);a(U.UF.P.PageNum);return;}else{if(e.pid==6){var g=$(".classinput")[0];var h=new RegExp("^[0-9]*$");if(g.value.match(h)){if(g.value>=1&&g.value<=U.UF.P.Pageall){U.UF.P.PageNum=g.value;U.UF.P.Pagefun(U.UF.P.PageNum);a(U.UF.P.PageNum);}else{U.Alert("无效的输入");d[U.UF.P.Index].style.backgroundColor="#2d9bef";}}}}}}}}};U.UF.P.Pagefun=function(b){var e=$(".list");var j=parseInt(b.innerHTML)||b;for(var f=0;f<e.length;f++){e[f].style.backgroundColor="";}var h=Math.ceil(e.length/2);var d;var a=U.UF.P.Index;var c=null;var g=parseInt($(".list")[$(".list").length-1].innerText);if(!(j<h||(j>U.UF.P.Pageall-h&&j<=U.UF.P.Pageall))){if(!(Math.ceil(g/j)<g-j)&&U.UF.P.Index!=0){c=j-parseInt(e[h-1].innerText);[].__proto__.forEach.apply($(".list"),[function(l,k,i){l.innerText=parseInt(l.innerText)+c;}]);U.UF.P.Index=h-1;}else{c=j-parseInt(e[h-1].innerText);[].__proto__.forEach.apply($(".list"),[function(l,k,i){l.innerText=parseInt(l.innerText)+c;}]);U.UF.P.Index=h-1;}}else{if(j>U.UF.P.Pageall-h&&j<=U.UF.P.Pageall){c=U.UF.P.Pageall-j;[].__proto__.forEach.apply($(".list"),[function(l,k,i){l.innerText=U.UF.P.Pageall+1-i.length+k;}]);}else{if(j<h){[].__proto__.forEach.apply($(".list"),[function(l,k,i){l.innerText=k+1;}]);}}}[].__proto__.forEach.apply(e,[function(l,k,i){if(parseInt(l.innerHTML)==j){d=k;}}]);U.UF.P.Index=d;U.UF.P.PageNum=j;e[U.UF.P.Index].style.backgroundColor="#2d9bef";};Namespace.register("U.UF.UP");U.UF.UP.inputUpload=function(g,a,c,d){var f,e=document.body,b=Guid.guidNoDash();f=$$("iframe",{"id":b,"name":b,"width":0,"height":0,"style":{"display":"none"},"frameBorder":0},e);U.UF.C.iframeSameDomain(f,"",function(){U.UF.UP.inputUpload.submit(f,g,a,c,d,b);});};U.UF.UP.inputUpload=function(d,c,a,b){U.UF.UP.inputUpload(d,a,b,c);};U.UF.UP.inputUpload.submit=function(g,h,a,b,d,c){var f,e;g.contentWindow.name=c;if(US&&US.userInfo&&US.userInfo.UserId){d=d+"?"+"UserId="+(US.userInfo.UserId||US.userInfo.UserId);}e=$$("form",{"action":d,"target":c,"encoding":"multipart/form-data","enctype":"multipart/form-data","method":"post","name":"loading","style":{"display":"none"}},document.body);for(f;f<h.length;f++){h[f].name=h[f].name||h[f].id||Guid.newGuid();h[f].parentNode.replaceChild(h[f].cloneNode(),h[f]);e.appendChild(h[f]);}U.UF.DL.iframeLoad(g,function(){$(e).remove();U.UF.UP.inputUpload.asyn(g,h,a,b);});e.submit();};U.UF.UP.inputUpload.asyn=function(c,d,a,b){if(!(U.UF.CI.getBrowser().browser=="msie")){c.src="about:blank";setTimeout(function(){U.UF.UP.inputUpload.callback(c,d,a,b);},0);}else{U.UF.UP.inputUpload.callback(c,d,a,b);}};U.UF.UP.inputUpload.callback=function(d,e,a,b){var c=U.UF.UP.inputUpload.getData();$(d).remove();if(U.UF.C.isFunction(a)){a({"value":c,"context":b,"inputs":e});}};U.UF.UP.inputUpload.getData=function(b){var a=null;try{a=b.contentWindow.document.body.innerHTML;}catch(c){}if(!a){try{a=b.contentWindow.name!=b.id?b.contentWindow.name:"";}catch(c){}}if(a==null){U.Alert("服务器处理繁忙,上传失败");}else{a=U.UF.C.toJson(a);}return a;};U.UF.UP.flashBottom={};U.UF.UP.addFlashUploadBottom=function(e,c,b,d,h,g){var a,f=$("object",e)[0];_name=c||Guid.newGuid();if(!f){a=$$("div",{"innerHTML":"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' class='UD_filePrew' width='"+width+"' height='"+height+"' id='"+_name+"' 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='"+width+"' height='"+height+"' name='"+_name+"' 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>"});f=a.firstChild;e.insertBefore(f,e.firstChild);U.UF.UP.flashBottom[c]={uploadtype:g||"*",flashbottom:$("*"+c,e),style:d||{},callback:h||{}};}return f;};U.UF.UP.flashLoad=function(){var a,b=U.UF.UP.flashBottom;for(a in b){if(b[a].flashbottom.setUploadStyle){b[a].flashbootom.setUploadStyle(a,b[a].style,{},b[a].uploadtype);}}};U.UF.UP.error=function(a){U.Alert(a);};U.UF.UP.select=function(a,b){var c=U.UF.UP.flashBottom[a];c.callback.select(b);};U.UF.UP.generateFileHash=function(c,b,a){flashBottom.generateFileHash(0,0);};U.UF.UP.getHashCallBack=function(c,a){var b=U.UF.UP.flashBottom[a];b.callback.getHashCallBack(filesarr);};U.UF.UP.progress=function(a,b,d){var c=U.UF.UP.flashBottom[b];c.callback.progress(a,d);};U.UF.UP.inputUpload=function(d,b,c,a){d.upload(b,c,a);};U.UF.UP.uploadComplete=function(b,a){var c=U.UF.UP.flashBottom[a];c.callback.uploadComplete(b);};U.UF.UP.getData=function(a,b){var c=U.UF.UP.flashBottom[b];c.callback.getData(a);};U.UF.UP.endUpload=function(a){var b=U.UF.UP.flashBottom[a];b.callback.endUpload();};U.UF.UP.deleteUploadFile=function(c,b,a){c.deleteUploadFile(b,a);};U.UF.UP.deleteReferenceFile=function(a){flashbottom.deleteReferenceFile(a);};U.UF.UP.deleteUploadAllFile=function(){flashbottom.deleteUploadAllFile();};U.UF.UP.download=function(a,d,c){var e=$$("input",{"type":"text","value":a,"name":"filename"}),b=$$("input",{"type":"text","value":d,"name":"filepath"});U.UF.UP.inputUpload([e,b],c);};U.UF.UP.getFileNameAndExtension=function(c){c=c.toLocaleLowerCase();var d=c.lastIndexOf("."),b=c.substr(c.lastIndexOf("\\")+1,d),a=c.substr(d+1);return[b,a];};U.UF.UP.isImg=function(b){var a=U.UF.UP.getFileNameAndExtension(b)[1];return["jpg","gif","png","bmp","jpeg"].indexOf(b)>-1;};U.UF.UP.maxUnitToMinUnit=function(a){var d=["B","KB","M","G","TB"],c=(a+"").replace(U.UF.S.Num,""),b=d.indexOf(c);a=parseFloat(_str);while(a>1024){a/=1024;b++;}return a.toFixed(2)+d[b];};U.UF.UP.maxUnitToByte=function(a){var d=["B","KB","M","G","TB"],c=(a+"").replace(U.UF.S.Num,""),b=d.indexOf(c);b=b<0?0:b;return parseFloat(a)*Math.pow(1024,b);};Namespace.register("U.UF.UI");U.UF.UI.form=function(h,f,b,g,i,d,a,c){this.form;this.header;this.middle;this.title=h;this.content=f;this.formattr=b;this.headattr=i;this.contentattr=d;this.headbottomattr=a;if(g==null){g={};}this.istop=false;if(g.istop!=null){this.istop=g.istop;}this.isdrag=true;if(g.isdrag!=null){this.isdrag=g.isdrag;}this.isstretching=true;if(g.isstretching!=null){this.isstretching=g.isstretching;}this.isenlarge=true;if(g.isenlarge!=null){this.isenlarge=g.isenlarge;}this.isnarrow=true;if(g.isnarrow!=null){this.isnarrow=g.isnarrow;}this.isclose=true;if(g.isclose!=null){this.isclose=g.isclose;}this.parentel=c||document.body;if(b&&U.UF.UI.form.allForm[b.id]){var e=U.UF.UI.form.allForm[b.id];e.create();return e;}else{this.create();this.id=b&&b.id?b.id:Guid.newGuid();U.UF.UI.form.allForm[this.id]=this;}};U.UF.UI.form.allForm={};U.UF.UI.form.prototype={create:function(){var h,l,e,c,d,o,g,j,f,m,b=this.formattr||{},n=this.headattr||{},k=this.contentattr||{},a=U.UF.UI.form.allForm[b.id]?U.UF.UI.form.allForm[b.id].form:null;if(b.style){b.style.cssText=b.style.cssText||"";b.style.cssText="width: 70%; position: absolute; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: visible; -moz-box-shadow:0 0 30px 5px #555; -webkit-box-shadow:0 0 30px 5px #555; box-shadow:0 0 30px 5px #555; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"+b.style.cssText;}else{b.style={cssText:"width: 70%; position: absolute; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: visible; -moz-box-shadow:0 0 30px 5px #555; -webkit-box-shadow:0 0 30px 5px #555; box-shadow:0 0 30px 5px #555; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"};}b.close=U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form);});b.usform="true";b.id=b.id||"";b.style=b.style||{};if(b.onresize){l=b.onresize;b.onresize=U.UF.C.apply(this,function(){this.size();l();});}else{b.onresize=U.UF.C.apply(this,function(){this.size();});}var e=$$("div",this.formattr);if(this.istop){e.style.zIndex="9999";e["__top__"]="false";}this.form=e;if(this.title!==false){if(n.style){n.style.cssText=n.style.cssText||"";n.style.cssText="height: 25px; line-height: 23px; background-color: #404040; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "+n.style.cssText;}else{n.style={cssText:"height: 25px; line-height: 23px; background-color: #404040; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "};}if(this.isdrag){n.onmousedown=function(){U.UF.F.drag(e);};}c=$$("div",n,e);if(U.UF.C.isString(this.title)){c.innerHTML=this.title;}else{if(U.UF.C.isElement(this.title)){c.appendChild(this.title);}}this.header=c;}d=$$("div",{"style":{"cssText":"width: 100%; position: relative;"}},e);k.usbody="true";if(k.style){k.style.cssText=k.style.cssText||"";k.style.cssText="text-align: left; overflow: auto;"+k.style.cssText;}else{k.style={cssText:"text-align: left; overflow: auto;"};}o=$$("div",k,d);if(U.UF.C.isString(this.content)){o.innerHTML=this.content;}else{if(U.UF.C.isElement(this.content)){o.appendChild(this.content);}}this.middle=o;if(this.title===false){d.onmousedown=function(){U.UF.F.drag(e);};}if(this.isstretching!==false){g=$$("div",{style:{"cssText":"display: block;"}},e);j={"top":"cursor: n-resize; left: 0px; top: 0px; width: 100%; height: 5px;","rightTop":"cursor: ne-resize; right: -2px; top: -2px; width: 12px; height: 12px;","leftTop":"cursor: nw-resize; top: 0px; left: 0px; width: 12px; height: 12px;","left":"cursor: w-resize; left: 0px; top: 0px; width: 5px; height: 100%;","right":"cursor: e-resize; right: 0px; top: 0px; width: 5px; height: 100%;","bottom":"cursor: s-resize; left: 0px; bottom: 0px; width: 100%; height: 5px;","leftBottom":"cursor: sw-resize; left: -2px; bottom: -2px; width: 12px; height: 12px;","rightBottom":"cursor: se-resize; right: -2px; bottom: -2px; width: 12px; height: 12px;"};for(h in j){$$("div",{"style":{"cssText":"position: absolute; overflow: hidden; display: block; z-index: 10;"+j[h]},"onmousedown":U.UF.C.closure(function(p,i){U.UF.F.stretching(e,i,U.UF.C.apply(p,p.size));},[this,h])},g);}}if(this.title!==false){f=$$("div",{"style":{"cssText":"position: absolute; top: 3px; right: 0px; width: 80px; display: table-cell; vertical-align: middle;"}},e);}if(this.isclose!==false){$$("div",{"style":{"cssText":"background-image:url(http://www.1473.cn/img/YS2017.png); _background-image:url(http://www.1473.cn/img/YSD2014.gif);width: 20px; height: 20px; background-position: -874px -61px; float: right; margin-right: 3px; cursor: pointer;"},"title":"点击关闭","onmousedown":U.UF.EV.stopBubble,"onclick":U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form);})},f);}if(this.isenlarge!==false){m=$$("div",{"style":{"cssText":"background-image:url(http://www.1473.cn/img/YS2017.png); _background-image:url(http://www.1473.cn/img/YSD2014.gif);background-position: -592px -252px; float: right; margin-right: 7px; width: 20px; height: 20px; cursor: pointer;"},"title":"最大化","onmousedown":U.UF.EV.stopBubble,"onclick":function(){U.UF.F.windowZooming(e);}},f);if(c){c.ondblclick=U.UF.C.apply(c,function(){if(event.srcElement==this||U.UF.EL.isChild(this,event.srcElement)){m.onclick();}});}}if(this.isnarrow!==false){$$("div",{"style":{"cssText":"background-image:url(http://www.1473.cn/img/YS2017.png); _background-image:url(http://www.1473.cn/img/YSD2014.gif);background-position: -620px -256px; float: right; margin-right: 10px; width: 20px; height: 20px; cursor: pointer;"},"title":"最小化","onmousedown":U.UF.EV.stopBubble,"onclick":function(){U.UF.F.windowMinimize(e);}},f);}if(a&&a.parentNode!=null){a.parentNode.replaceChild(e,a);}else{this.parentel.appendChild(e);}U.UF.F.windowTopCenter(e);this.size();},size:function(){var a=0;if(this.header){a=this.header.clientHeight;}if(this.header){this.middle.style.height=this.form.clientHeight-this.header.clientHeight+"px";}else{this.middle.style.height=this.form.clientHeight+"px";}}};U.UF.UI.Confirm=function(g,b,f){var d=$$("div",{"style":{"cssText":"width: 100%; background: rgb(255,255,255); overflow:hidden; "}});var a=$$("div",{"style":{"cssText":"width: 100%; background: rgb(255,255,255); overflow:hidden; "}});var d=$$("div",{"style":{"cssText":"text-align: center; margin: 30px 20px 30px 20px; "}},a);if(U.UF.C.isElement(g)){$(d).append(g);}else{d.innerHTML=g||"内容";}var c=$$("div",{"style":{"cssText":" height:45px;"}},a);var e=new U.UF.UI.form("提示框",a,{"style":{"cssText":"font-size: 16px; background: rgb(255,255,255); width: 300px; position: fixed; top: 0px; left: 0px; margin: 0 auto; box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"}},{"istop":true,"isenlarge":false,"isstretching":false,"isnarrow":false},{"style":{"cssText":" background: rgb(59,88,120); padding: 10px; color: rgb(255,255,255); "}});$$("div",{"style":{"cssText":"text-align: center; color: rgb(255,255,255); width: 30%; padding: 5px; background: rgb(48,126,208); border-radius: 5px;float: right; margin: 0 12px 12px 0;"},innerHTML:"确定",onclick:function(){U.UF.C.isFunction(b)&&b();U.UF.F.closeWindow(e.form);}},c);$$("div",{"style":{"cssText":"text-align: center; color: rgb(255,255,255); width: 30%; padding: 5px; background: rgb(48,126,208); border-radius: 5px;background: rgb(170,170,170); float: left; margin: 0 0 12px 12px;"},"innerHTML":"取消","onclick":function(){U.UF.C.isFunction(f)&&f();U.UF.F.closeWindow(e.form);}},c);};U.UF.UI.Dialog=function(d,c){var e=$$("div",{"style":{"cssText":"width: 100%; background: #fff; overflow:hidden; "}});var a=$$("div",{"style":{"cssText":"text-align: center; margin: 30px 20px 30px 20px; "}},e);if(U.UF.C.isElement(d)){$(a).append(d);}else{a.innerHTML=d||"内容";}var f=$$("div",{"style":{"cssText":"height:45px;"}},e);var b=new U.UF.UI.form("提示框",e,{"style":{"cssText":"font-size: 16px; width: 300px; background:#fff; position: fixed; top: 100px; left: 40%; box-shadow: 0 0 10px 3px black; border-radius: 5px;"}},null,{"style":{"cssText":"background: #3b5878; padding: 10px; color:#fff;"}});$$("div",{"style":{"cssText":"text-align: center; color: #fff; width: 30%; padding: 5px; background: #307ed0; border-radius: 5px;float: right; margin: 0 12px 12px 0;"},innerHTML:"确定",onclick:function(){U.UF.C.isFunction(c)&&c();U.UF.F.closeWindow(b.form);}},f);};U.UF.UI.AlertClick=function(d){var b=$$("div",{"class":"USBalert_text"});$$("div",{"class":"Confirm_texts",innerHTML:d||"内容"},b);var a=$$("div",{"class":"USBalert_onclicks"},neirong);var c=new U.UF.UI.form("提示框",neirong,{"style":{"cssText":"font-size: 16px; width: 300px; background: rgb(255,255,255); position: fixed; top:20%;left:0px;right:0px;margin:0px auto; box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"}},null,{"style":{"cssText":"background: rgb(59,88,120); padding: 10px; color: rgb(255,255,255);"}});$$("div",{"style":{"cssText":"text-align: center; color: #fff; width: 30%; padding: 5px; background: #307ed0; border-radius: 5px;float: right; margin: 0 12px 12px 0;"},innerHTML:"确定",onclick:function(){U.UF.F.closeWindow(c.form);}},a);};U.Alert=function(d,b){!b?b=3000:"";var a=$$("div",{"style":{"cssText":"padding: 12px 25px 12px 25px;font-size: 16px;max-width:300px;min-width:100px;color: rgba(255,255,255,1);background: rgba(0,0,0,0.75);border-radius: 10px;position: fixed;top:20%;left:0px;right:0px;margin:0px auto;text-align:center; white-space: nowrap; -o-text-overflow: ellipsis; text-overflow: ellipsis; "},innerHTML:d},document.body);U.UF.F.topWindow(a);setTimeout(function(){a.parentNode.removeChild(a);},b);};U.UF.UI.Editor=function(a){return U.UF.UI.EditorLoad({head:true,isc:false,title:false,context:"",parentEle:a});};U.UF.UI.PopEditor=function(a,b){return U.UF.UI.EditorLoad(a,b);};U.UF.UI.EditorLoad=function(a,b){return new U.UF.UI.EditorLoad.init(a,b).create();};U.UF.UI.EditorLoad.addT=function(a,c,e){var d=$$("div",{className:"UD_SYSXZBFCAT","style":{"display":"block"}},a);d=$$("div",{className:"UD_SYSXZBFCATX"},d);$$("div",{className:"UD_SYSXZBFCATXL","innerHTML":c||"主题:"},d);var b=$$("div",{className:"UD_SYSXZBFCATXR"},d);_UDMD=$$("input",{className:"UD_SYSXZTST",defaultValue:(_UCT="请输入标题..."),"value":e,placeholder:_UCT,onblur:[[U.UF.MR.InputTip,[this,["",_UCT]]]],onfocus:[[U.UF.MR.InputTip,[this,[_UCT,""]]]]},b);return d;};U.UF.UI.EditorLoad.init=function(a,b){this.obj=a||{};this.rt=b||{};this.o=[];this.extra=[];};U.UF.UI.EditorLoad.init.prototype={et:{},config:function(a){if(!this.f){this.f={error:"uerror",select:"uadd",progress:"ujdt",getData:"ufcp",FUP:"ufup",CP:"ucp",endUpload:"ucp"};for(var b in this.f){this.f[b]=U.UF.EV.eventDelegation(U.UF.C.apply(this,function(){this[this.f[b]]();}),null,false);}}this.c=this.c||{id:Guid.guidNoDash()};if(a){U.UF.C.AddObj(this.c,a);}return this;},set:function(a){U.UF.C.AddObj(this,a);},create:function(){if(this.obj.cus){this.cuscreate();}var l,b,a,j,d,p,h,t,s,f,q,k,g,c,m,o=this.obj,r={"hst":"","bst":"","draw":"","close":"","max":"","min":"","isContain":"","style":""};this.config();o.id=o.id||Guid.guidNoDash();if((m=this.et[o.id])){(h=m.ti).value=o.name;(t=m.con).innerHTML=o.title;$(m.content).parentElement({usform:"true"}).Center();}else{m=this;this.content=a=$$("div",{className:"UD_SYSXZBFCA",id:o.id||""});if(this.obj.title!==false){h=this.ti=$("input",U.UF.UI.EditorLoad.addT(a,"主题",o["title"]))[0];}if(this.obj.head){this.head=j=$$("div",{"onclick":function(){this.Tool();},className:"UD_SYSXZBFCAH"},a);g=$$("div",{"className":"UD_SYFDTZ U_Boom_Img_ys2017 UD_SYSXZBFCAHO","style":{"position":"relative"},"title":"本地添加文件"},j);if(US&&US.userInfo&&US.userInfo.UserId){$$("div",{"className":"UD_SYFDTW U_Boom_Img_ys2017 UD_SYSXZBFCAHH","style":{"width":"28px"},"title":"网盘添加文件","onclick":function(){U.MD.DK.VW.CCWPXZK(US.EMPTYGUID,{"onclick":U.UF.C.apply(this,this.createFile)},null);}},j);}s=$$("div",{"className":"UD_SYQZI UD_SYQCT U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"表情包",onclick:function(){U.UF.EV.stopBubble();U.UF.UI.face(this,function(){this.face();});}},j);s=$$("div",{"className":"UD_SYQZI UD_SYQZJ U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"背景色",onclick:function(){U.UF.EV.stopBubble();U.OU.ToolOC(this);}},j);s=$$("div",{"className":"UD_SYQZOB",onclick:U.UF.C.apply(this,function(){this.use({"backgroundColor":""},"backgroundColor");})},s);f=$$("div",{"className":"UD_SYQZI UD_SYQZZ U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"字体色",onclick:[[U.UF.EV.stopBubble],[U.OU.ToolOC,[this]]]},j);f=$$("div",{"className":"UD_SYQZOB",onclick:U.UF.C.apply(this,function(){this.use({"color":""},"backgroundColor");})},f);q=$$("div",{"className":"UD_SYQZO UD_SYQZOV UD_SYSXZBFCAHO"},j);q=$$("select",{"className":"UD_SYQZV",onchange:U.UF.C.apply(this,function(){this.use({"fontFamily":""},"font");})},q);k=$$("div",{"className":"UD_SYQZO UD_SYQZOO UD_SYSXZBFCAHO"},j);k=$$("select",{"className":"UD_SYQZVO",onchange:function(){this.use({"fontSize":""},"font");}},k);$$("div",{"className":"UD_SYQZI UD_SYQZLO U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"斜体",onclick:U.UF.C.apply(this,function(){this.use({fontStyle:["italic","normal"]});})},j);$$("div",{"className":"UD_SYQZI UD_SYQZLT U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"加粗",onclick:U.UF.C.apply(this,function(){this.use({fontWeight:["bold","normal"]});})},j);$$("div",{"className":"UD_SYQZI UD_SYQZF U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"下划线",onclick:U.UF.C.apply(this,function(){this.use({textDecoration:["underline","none"]});})},j);$$("div",{"className":"UD_SYQZI UD_SYQZT U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"删除线",onclick:U.UF.C.apply(this,function(){this.use({textDecoration:["line-through","none"]});})},j);$$("div",{"className":"UD_SYQZI UD_SYQLJ U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"超链接",onclick:function(){U.OU.AddUrl(U.UF.C.apply(this,[[this.AddUrl]]));}},j);$$("div",{"className":"UD_SYQZI UD_SYQZR U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"左对齐",onclick:U.UF.C.apply(this,function(){this.use({textAlign:"left"});})},j);$$("div",{"className":"UD_SYQZI UD_SYQZRZ U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"居中",onclick:U.UF.C.apply(this,function(){this.use({textAlign:"center"});})},j);$$("div",{"className":"UD_SYQZI UD_SYQZRL U_Boom_Img_ys2017 UD_SYSXZBFCAHO",title:"右对齐",onclick:U.UF.C.apply(this,function(){this.use({textAlign:"right"});})},j);U.OU.CreatTool([q,k,s,f],[0,1,2,3]);$("&*",this.head).addAttrArray({"unselectable":"on"});}c=$$("div",{"innerHTML":"在该处添加内容..."});b=c.outerHTML;this.con={className:"UD_SYSXZLRSSI UD_SYSXZBFCO",contenteditable:"true",onblur:function(){U.UF.MR.InputTip(this,["<div></div>",b]);},onfocus:function(){U.UF.MR.InputTip(this,[b]);}};if(this.car){U.UF.C.AddObj(this.cob,this,car);}this.con=t=$$("div",this.con,a);j=$$("div",{className:"UD_SYSXZBFCT"},a);if(this.obj.imgt){if(!U.UF.C.isNumber(this.obj.imgt)){this.obj.imgt=9;}this.imgt=p=$$("div",{className:"UD_SYSXZLRSSVON"},j);}r.forEach(function(i,e){r[e]=o[e]==null?r[e]:o[e];});r.SO=this.obj.parent;r.sizeend=function(){this.size();};r.content=a;r.title="<div class='UD_SYF_STI'>"+(this.obj.name||"最新发表")+"</div>";if(o.parentEle){this.body=o.parentEle;$(o.parentEle).append(a);}else{this.body=new U.UF.UI.form(r).form;if(this.obj.celbut!==false){$$("div",{className:"UD_SYSXZBFCTA UD_SYSXZBFCTAT",title:"取消","innerHTML":"取消","onclick":this.obj.celbut?this.obj.celbut:[[U.UF.F.closeWindow,[this.body,"remove"]]]},j);}$$("div",{className:"UD_SYSXZBFCTA",title:"确定","innerHTML":"确定","onclick":function(){this.fb();}},j);}this.objfl=U.UF.UP.addFlashUploadBottom(g,null,{"width":"25px","height":"22px"});U.UF.UP.flashUploadInit({"width":"25px","height":"22px"},{"select":function(){this.uadd();},"CP":function(){this.ucp();},"progress":function(){this.ujdt();},"FUP":function(){this.ufup();},"getData":function(){this.ufcp();}},"M");this.et[o.id]=this;this.r=this.cursor(a,t);}try{if(U&&U.D&&U.MD.D.Tb&&U.MD.D.T.taskbar){U.MD.D.T.taskbar({bp:"-267px -413px",name:(m.obj.name||"最新发表"),el:m.body,id:o.id,click:U.UF.C.apply(m,m.create)});}}catch(n){}m.size();if(c){m.r.add(o["context"]||b);}return m;},text:function(){return this.con.innerHTML.escapeQuotes();},clear:function(){var b,a=this.extra;for(b=0;b<a.length;b++){$(a[b]).remove();}},append:function(b){var d,a=$(this.content),c=$$("frag");if(Array.isArray(b)){for(d=0;d<b.length;d++){this.extra.push(b[d]);$(c).append(b[d]);}}else{b.forEach(function(f,e){this.extra.push(U.UF.UI.EditorLoad.addT(c,f,e));});}a.append(c,0,a.Child()[0]);},addButton:function(){},cuscreate:function(){var a=this.obj.cus;if(a.tr){a.tr.onclick=function(){this.fb();},delete a.tr;}if(a.ubox){U.UF.UP.addFlashUploadBottom(a.ubox,this.c.id,{width:"100%",height:"100%"}),U.UF.UP.flashUploadInit({},this.f,this.obj.type||"M"),delete a.ubox;}this.set(a);},fb:function(){var a,d,e=this.ti,c=this.con.innerHTML,b=this.imgt?$(this.imgt).Child():null;if(e&&(d=e.value)&&e.defaultValue==e.value){a="请填写标题";e.focus();}else{if((c.isStrNull()||c=="有什么和大家分享...")&&((c="图片分享")&&(!b||!b.length))){a="请填写内容";this.con.focus();}else{if(this.obj.fcb&&this.obj.fcb(c,d,b)!==true){if(!this.parentEle&&(this.obj.close!==false)){U.UF.F.closeWindow(this.body,this.isc!==false?"remove":"");}}else{this.con.focus();}}}if(a){U.Alert(a);}},jd:function(){this.r.CreateR();},uerror:function(a){U.Alert("选择文件错误..");},Tool:function(){var a,c,b=$(this.head).Child();for(a=0;a<b.length;a++){c=$(b[a]).Child()[0];if(c&&c.tagName.toLowerCase()=="div"){$(c).css("display","none");}}},uadd:function(a,c){var b,d;if(this.obj.imgt){if(this.obj.imgt-a.length<0){d=a.length-this.obj.imgt;for(b=0;b<d;b++){this.objfl.deleteUploadFile(a.length-b-1,this.o.length);}a=a.slice(0,this.obj.imgt>a.length?a.length:this.obj.imgt);}this.obj.imgt-=a.length;}for(b=0;b<a.length;b++){a[b].id=Guid.newGuid();}if(c&&a.length){if(this.rt.add){this.rt.add(a,c);}this.o.push(a);if(this.o.length==1){this.up(a[0],0,0);}}},up:function(a,c,b){this.objfl.generateFileHash(b,(a||this.o[c][b]).id,c);},ujdt:function(a,b,c){if(this.rt.jdt){this.rt.jdt(a);}},ufup:(function(){var b=function(f){var e=f.context,d=e[1],c=e[2];f=f.value;if(f){this.ufcp(f,c);}else{if((!this.rt.fup)||(this.rt.fup(d)!==false)){this.objfl.upload((this.url||"http://main.1473.cn/USupfile.ashx?iframename=UseStudioEditor&")+"UserId="+(US.userInfo.UserId||US.EMPTYGUID)+"&IsF=true",c,d[1],d[2]);}}},a=function(e,d){var c=this.getup(d);if(c[0]){U.A.Request(US.AUTH,["GetFileByHash",e,c[0].size,c[0].type.substr(1)],function(){b();},(["",c,d]));}else{this.ufcp(null,d);}};return a;})(),ucp:function(a){},ufcp:function(a,b){this.del(null,b);if(a&&(!this.rt.fcp||this.rt.fcp(a,_UCE))){if(a.data){(a=a.data.parseJSON()),a={UserFilesServerName:a[0],UseFilesServerThumbnailName:a[1],UserFilesID:a[2],UserFilesSize:a[3],UserDirectoryEncrypt:a[4]};}if(a.data){a=a.data.parseJSON();a={UserFilesServerName:a[0],UseFilesServerThumbnailName:a[1],UserFilesID:a[2],UserFilesSize:a[3],UserDirectoryEncrypt:a[4]};}if(this.imgt){$$("img",{onerror:"U.MD.C.imgError(this, 2)",title:"右键删除",src:U.MD.C.getHeadImage(a.UserFilesServerName),alt:U.MD.C.getHeadImage(a.UserFilesServerName),onmouseup:U.UF.C.apply(this,function(){this.imgdel(this);}),onclick:[[U.MD.I.Img,([null,{UserFilesServerName:a.UserFilesServerName,UseFilesServerThumbnailName:a.UseFilesServerThumbnailName}])]]},this.imgt);}else{this.createFile(null,null,null,a);}}if(_UGE.length){this.up(null,0,0);}},createFile:function(g,c,b,h){var i,a,e,f,d,j=this.o;if(U.UF.UP.isImg(h.UserFilesServerName)){d="<span><img onerror='U.MD.C.imgError(this, 2)' onclick='U.MD.I.Img(null, { 'Thm': '"+U.MD.C.getHeadImage(h.UserFilesServerName)+"', 'Img': '"+U.MD.C.getHeadImage(h.UserFilesServerName)+"' src='"+U.MD.C.getHeadImage(h.UserFilesServerName)+"' alt='"+U.MD.C.getHeadImage(h.UserFilesServerName)+"' title='点击查看原图' /> &nbsp</span>";}else{i=$$("div",{contenteditable:"false",style:{"cssText":"width:260px; height:70px; background-color:#DDD; display: inline-block; *display:inline; *zoom:1;text-decoration: none; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-indent:0"}});a=$$("div",{className:"UD_SYID","style":{"cssText":"margin:10px 0 0 10px; width:40px; height:50px; margin:15px 0 0 10px; float:left; background-position:-261px -22px"}},i);$$("div",{style:{cssText:"font-size:15px; width:40px; margin:auto; font-family:'微软雅黑'; text-align:center; color:#888; position:relative; top:16px; height:20px; overflow:hidden;"},innerHTML:U.UF.UP.getFileNameAndExtension(h.UserFilesServerName)[1]},a);a=$$("div",{style:{"cssText":"width:195px; height:100%; margin-left:10px; float:left;"}},i);e=$$("div",{style:{"cssText":"width:200px; height:35px; line-height:35px;"}},a);f=$$("div",{innerHTML:"文档 容量大小 "},e);$$("span",{innerHTML:U.UF.UP.maxUnitToMinUnit(h.UserFilesSize),style:{cssText:"color:#006699;"}},f);e=$$("div",{style:{"cssText":"width:200px; height:35px; line-height:35px;"}},a);f=$$("div",{style:{"cssText":"float:left; width:35px; height:35px;"}},e);$$("img",{style:{"cssText":"width:30px; height:30px;"},src:U.MD.C.getHeadImage(US.userInfo.UserThumbnailImageHead)},f);$$("div",{style:{"cssText":"float:left;padding:0 8px;max-width:50px;"},innerHTML:US.userInfo.UserName},e);$$("a",{innerHTML:"点击下载",href:"http://www.1473.cn/Pages/Downlaod.htm?id="+h.UserFilesID+"&type=file",target:"_blank"},e);$("*",i).addAttrArray({contenteditable:"false"});d=" &nbsp"+i.outerHTML+"&nbsp ";}this.r.add(d);},AddUrl:function(a){a=a.value;this.r.add("<a href='"+a+"' style='color:#3B639F;text-decoration:none;' target='_blank' >"+(a)+"</a>");},imgdel:function(a){if(event.button==2){this.obj.imgt++;$(a).remove();}},uacp:function(){try{if(!this.rt.acp){this.rt.acp();}}catch(a){}this.objfl.DAF();},del:function(a,c){var b,d,e=this.o;if(a!=null){e.splice(a,1);}else{if(c){b=this.getup(c);if(b[0]){this.objfl.deleteUploadFile(b[2],b[1]),e[b[1]].splice(b[2],1),(!e[b[1]].length)&&(e.splice(b[1],1));}}}if(!e.length){this.uacp();}},getup:function(a){var d,c,b=this.o;for(d=0;d<b.length;d++){for(c=0;c<b[d].length;c++){if(b[d][c].id==a){return[b[d][c],d,c];}}}return[null,-1,-1];},size:function(){$(this.content).css("height",$(this.content).parentElement().height()-2+"px");$(this.con).css("height",this.content.offsetHeight-(this.ti?115:70)-(this.head?33:0)-1+"px");},use:function(b,d){if(d){var c,a=event.srcElement;for(c in b){b[c]=d=="font"?a.value+(c=="fontSize"?"px":""):a.style[d];}}this.r.use(b);},cursor:(function(){var a,b=function(d,c){return new a.init(d,c).bind();};b.prototype=a={init:function(d,c){var e=Guid.guidNoDash();this.iso=false;this.isb=false;this.el=d;this.eb=c;this.id=UDID;this.sor=U.UF.E.GetSelectionRange(window,c,{"TF":e});},bind:function(){$(this.el).bind({mousedown:function(){this.create();}});$(this.eb).bind({blur:function(){this.blur();},focus:function(){this.focus();}});return this;},blur:function(){if(!this.iso){var c=U.UF.E.SORange.OAT[this.id],d=c.length>2?c.length-2:c.length-1;this.sor=c.length>1?c[c.length-2].OR:this.sor;}this.isb=true;},focus:function(){this.isb=false;},create:function(){var c=this.eb,d=event?event.srcElement:null;this.iso=false;if((!d||(c!==d&&!U.UF.EL.isChild(c,d))&&!this.isb)){this.sor.CreateR(),this.iso=true;}},add:function(c){this.eb.focus();this.sor.Replace(c,null,true);this.sor.CreateR();},use:function(c){U.UF.E.FontSizeType(this.sor.Parent(),c,this.sor,this.id);}};a.init.prototype=a;return b;})(),face:function(b,a){var c="http://www.1473.cn/img/ChatingFaceGif/[face]("+a+").gif";this.r.add(" "+$$("img",{"src":c,"contentEditable":"true"}).outerHTML+" ");}};U.UF.UI.face=function(c,b){var d,e,a=$("#UF_FBD")[0];if(a){$("#UF_FBD")[0].style.display=$("#UF_FBD")[0].style.display=="none"?"block":"none";}else{a=$$("div",{"id":"UF_FBD","class":"UF_FBD","onmousedown":U.UF.EV.stopBubble},c);e=$$("div",{"class":"UF_FNR"},a);for(d=0;d<=104;d++){$$("div",{"className":"UF_FDG","onclick":[b?[b,[a,d]]:null]},e);}}};Namespace.register("U.UF.F");U.UF.F.isTop=false;U.UF.F.hisTory=true;U.UF.F.maskFrame=function(){return $$("div",{"style":{"cssText":"width:100%;height:100%;position:absolute;top:0;left:0;"}},document.body);};U.UF.F.windowZooming=function(c){var b=c.initcsstext,a=c.ismaximize;if(a){c.style.cssText=b;c.ismaximize=false;}else{c.initcsstext=c.style.cssText;c.ismaximize=true;$(c).css({"width":"100%","height":"100%","top":"0px","left":"0px"});}};U.UF.F.windowMinimize=function(a){a.style.cssText="-ms-transform:scale(0.5);-webkit-transform:translateX(100%); -o-transform:scale(0.5); transform:scale(0.5); display: none;";};U.UF.F.closeWindow=function(a,b){var c=$(a);if(c[0].style.display!="none"&&b=="remove"){c.remove();c=null;}else{c.css("display","none");}};U.UF.F.windowTopCenter=function(b){var d=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,a=document.documentElement.clientWidth,c=document.documentElement.clientHeight+d*2;b.style.display="block";$(b).css({"left":(a-b.clientWidth)/2+"px","top":(c-b.clientHeight)/2+"px"});};U.UF.F.topWindow=function(d,f){var e,c=U.UF.F.getWindow(d),a;if(c&&c.length){for(var b=0;b<c.length;b++){if(((a=$(c[b]).Parent())&&(a==document.body||a.id=="usestudio-server"||a.id=="UD_SY"))&&$(c[b]).attr("__top__")!="false"){e=(US||parent.US).ZINDEX++;$(c[b]).addAttrArray({"style":{"cssText":c[b].style.cssText+";z-index:"+e+";display:block"}});}}}};U.UF.F.getWindow=function(e){var a=[],d=e,c=document.body,b=$("#UD_SY")[0]||$("#usestudio-server")[0]||c;if(b){while((d=U.UF.EL.offsetParent(d,true,"absolute"))&&(d&&(d!=b&&d!=c))){a.push(d);d=d.parentNode;}return a;}};U.UF.F.clickTopWindow=function(a){$(document.body).bind({mousedown:function(){if(U.UF.C.isFunction(a)){a(event.srcElement,true);}top.U.UF.F.topWindow(event.srcElement,true);}});};U.UF.F.stretching=function(b,h){var d=window.event;var g,f,l=70,j=70;d.preventDefault();g=d.clientX;f=d.clientY;var k=b.offsetTop;var i=b.offsetLeft;var a=b.offsetWidth;var c=b.offsetHeight;document.onmousemove=function(q){q=q||event;var s=q.clientX-g-3;var o=q.clientY-f;var p=document.documentElement.clientWidth-i-2;var n=document.documentElement.clientHeight-k-2;if(h=="bottom"){var r=o+c;if(r<j){r=j;}else{if(r>n){r=n;}}b.style.height=r+"px";}if(h=="right"){var u=s+a;if(u<l){u=l;}else{if(u>p){u=p;}}b.style.width=u+"px";}if(h=="top"){var r=c-o;b.style.top=k+o+"px";if(b.style.top<"0"){b.style.top="0px";document.onmousemove=null;}if(r<j){var m=r;r=j;b.style.top=(k+o)-(j-m)+"px";}b.style.height=r-"2"+"px";}if(h=="left"){var u=a-s;b.style.left=i+s+"px";if(u<l){var t=u;u=l;b.style.left=(_siparentleft+s)-(l-t)+"px";}b.style.width=u-"2"+"px";}if(h=="rightBottom"){var u=s+a;var r=o+c;if(u<l){u=l;}else{if(u>p){u=p;}}b.style.width=u-"2"+"px";if(r<j){r=j;}else{if(r>n){r=n;}}b.style.height=r+"px";}if(h=="rightTop"){var u=s+a;var r=c-o;b.style.top=k+o+"px";if(b.style.top<"0"){b.style.top="0px";document.onmousemove=null;}if(u<l){u=l;}else{if(u>p){u=p;}}b.style.width=u+"px";if(r<j){var m=r;r=j;b.style.top=(k+o)-(j-m)+"px";}else{if(r>(k+c)){r=(k+c);}}b.style.height=r-"2"+"px";}if(h=="leftTop"){var u=a-s;b.style.left=i+s+"px";var r=c-o;b.style.top=k+o+"px";if(b.style.top<"0"){b.style.top="0px";document.onmousemove=null;}if(u<l){var t=u;u=l;b.style.left=(i+s)-(l-t)+"px";}else{if(u>(i+a)){u=(i+a);}}b.style.width=u-"2"+"px";if(r<j){var m=r;r=j;b.style.top=(k+o)-(j-m)+"px";}else{if(r>(k+c)){r=(k+c);}}b.style.height=r-"2"+"px";}if(h=="leftBottom"){var u=a-s;b.style.left=i+s+"px";var r=o+c;if(u<l){var t=u;u=l;b.style.left=(i+s)-(l-t)+"px";}else{if(u>(i+a)){u=(i+a);}}b.style.width=u-"2"+"px";if(r<j){r=j;}else{if(r>n){r=n;}}b.style.height=r-"2"+"px";}if(((h=="left"||h=="leftTop"||h=="leftBottom")&&u==l)||((h=="top"||h=="rightTop"||h=="leftTop")&&r==j)){document.onmousemove=null;}return false;};document.onmouseup=function(){document.onmousemove=null;document.onmouseup=null;};};U.UF.F.drag=function(g,f,c){var e,b,d;var a=event||window.event;d=g;e=a.clientX-d.offsetLeft;b=a.clientY-d.offsetTop;$(document).bind({"mousemove":function(j){if(d){var h=j||window.event,i=h.clientX-e,l=h.clientY-b,k=$(document.body)[0];if(i<0){i=0;}if(i>k.offsetWidth-d.offsetWidth){i=k.offsetWidth-d.offsetWidth;}if(l<0){l=0;}if(l>(k.offsetHeight-d.offsetHeight)){l=(k.offsetHeight-d.offsetHeight);}d.style.left=i+"px";d.style.top=l+"px";if(f&&typeof f=="function"){f();}}},"mouseup":function(h){if(d&&c&&typeof c=="function"){c(g);}d=null;}});};U.UF.F.DragSelectE=function(e){if(event.button!=2){var d,c,f,b=e["SO"],g=U.UF.EL.getMousePosition(),a=b.componentFromPoint(g["X"]+2,g["Y"]+2);if(a!="outside"&&a.indexOf("scroll")==-1){d=(new U.UF.F.DragSelectE.init(e)).create().SetHover().event();return d;}}else{if(U.MD.D.DragE){U.MD.D.DragE.SetHover();}}};U.UF.F.DragSelectE.init=function(c){var a=c["SO"],d=c["SSO"]||a,b=c["CS"];this.EL=a;this.SSO=d;this.OS=d.onscroll;this.CB=a.onmousedown;this.CS=b;this.PEL=U.UF.EL.getStyle(a,"position")!="static"?a:U.UF.EL.offsetParent(a);this.TC=[];this.Fun=c["FUN"];this.ElO="";this.ESO="";this.UT="";this.UL="";this.UW="";this.UH="";this.X="";this.Y="";this.TX="";this.TY="";this.PUX="";this.PUY="";this.W="";this.H="";this.T="";this.L="";};U.UF.F.DragSelectE.init.prototype={event:function(h){var d,c,b,g,f,e,a=this.e=this.e||[[document,{"mousemove":["Drag"],"mouseup":["DragUp"]}],[this.SSO,{"scroll":["CTA","Drag"]}],[this["EL"],{"mousedown":["Event"]}]];for(d=0;d<a.length;d++){e=a[d];if(!Array.isArray(e[0])){e[0]=[e[0]];}for(c in e[1]){if(e[1].hasOwnProperty(c)){for(b=0;b<e[1][c].length;b++){if(U.UF.C.isString(e[1][c][b])){e[1][c][b]=U.UF.C.apply(this,[[this[e[1][c][b]]]]);}for(g=0;g<e[0].length;g++){$(e[0][g])[(h?"un":"")+"bind"](c,e[1][c][b]);}}}}}},CTA:function(){var b=this.ElO=U.UF.EL.getElementInfo(this.EL),a={"PUX":this["PUX"],"PUY":this["PUY"]};this.PUX=b["SL"]+b["PXL"];this.PUY=b["ST"]+b["PXT"];if(a["PUX"]!==""){this.DBH({"UW":this.UW+(this["PUX"]-a["PUX"]),"UH":this.UH+(this["PUY"]-a["PUY"]),"UT":this.UT,"UL":this.UL});}return b;},create:function(){var b,c,f,a=this.EL,d=U.UF.EL.getMousePosition(),e=this.CTA();this.C=$(a).Child();this.TX=e.TX;this.TY=e.TY;this.X=d.X-e.TX+this["PUX"];this.Y=d.Y-e.TY+this["PUY"];if((f=this.C[0])){c=["Left","Top","Right","Bottom"];for(b=0;b<c.length;b++){c[b]=U.UF.EL.getStyle(f,"margin"+c[b]);c[b]=(!c[b]||c[b]=="auto")?0:parseInt(c[b]);}this.W=f.offsetWidth+c[0]+c[2];this.H=f.offsetHeight+c[1]+c[3];this.T=c[1]+c[3];this.L=c[0]+c[2];}this.ESO=$$("div",{"className":"UD_DSE","style":{"cssText":"top:"+this.Y+"px;left:"+this.X+"px;zIndex:"+US.ZINDEX+1}},a);return this;},Drag:function(){var a=this.EL,d=U.UF.EL.getMousePosition(),b=Math.min(Math.max(d["Y"]-this.TY+this["PUY"],0),Math.max(this.ElO["SH"],this.ElO["OH"])-2),f=Math.min(Math.max(d["X"]-this.TX+this["PUX"],0),this.ElO["SW"]-2),e=f-this.X,c=b-this.Y;if(e<0){e=Math.abs(e);}else{f=this.X;}if(c<0){c=Math.abs(c);}else{b=this.Y;}this.DBH({"UW":e,"UH":c,"UT":b,"UL":f});},DBH:function(a){var b={};$(this.ESO).addAttrArray({"style":{"cssText":"width:"+a.UW+"px;height:"+a.UH+"px;top:"+a.UT+"px;left:"+a.UL+"px;"}});U.UF.C.AddObj(this,a);b.X=a.UL;b.Y=a.UT;b.BX=a.UW+a.UL;b.BY=a.UH+a.UT;this.IsLocation(b);},IsLocation:function(b){if(this.C[0]){var c,d,f,a,e=this.GetLXY(b);if(this.TC.length){for(c=0;c<this.TC.length;c++){$(f).removeClass(this.CS);}}this.TC=[];for(c=e[0];c<e[1];c++){if((f=this.C[c])){a=((d=c%e[4])>=e[2])&&(d<=e[3])&&((d+1)*this.W>=b["X"]);if(a&&(f.offsetTop>b["BY"]||(f.offsetTop+this.H-this.T<b.Y))){a=false;}$(f)[(a?"add":"remove")+"Class"](this.CS);if(a){this.TC.push(f);}}}U.MD.D.DragE=this;}},GetLXY:function(b){var c,a=[0,0];a[4]=c=Math.floor(this.ElO["SW"]/this.W);a[0]=((Math.floor(b["Y"]/this.H)-1)*c);a[1]=a[0]+((Math.ceil((b["BY"])/this.H)-Math.floor(a[0]/c))*c);a[2]=Math.min(Math.ceil(b["X"]/this.W),c)-1;a[3]=Math.min(Math.ceil(b["BX"]/this.W),c)-1;return a;},Event:function(){if(event.button==2){var d,f,c,a,g=this.TC,e=U.UF.EL.getMousePosition(),b=e["Y"]-this.TY+this["PUY"],h=e["X"]-this.TX+this["PUX"];for(d=0;d<g.length;d++){if(((f=g[d].offsetTop)<=b&&(f+this.H-this.T)>=b)&&((c=g[d].offsetLeft)<=h&&(c+this.W)>h)){a=true;}}if(a){if(this.Fun){this.Fun(this.TC);}}return !a;}},DragUp:function(){var a=this.EL;this.event(true);a.releaseCapture();a.removeChild(this.ESO);},SetHover:function(){var a=U.MD.D.DragE||this;if(a.TC&&a.TC.length){$(a.TC).removeClass(this.CS);}U.MD.D.DragE=this.TC.length=0;return this;}};U.UF.F.dragTable=function(b,a){if(b){a=a||{};new U.UF.F.dragTable.init(b,a);}};U.UF.F.dragTable.init=function(c,a){var f=$(c),d=f.parentElement(),b=f.prev(),e=f.next();this.UDPD=d;this.w=d.width();this.pw=d.parentElement().width();this.UDOD=c;this.UE=U.UF.EL.getMousePosition();this.prev=b;this.next=e;this.uw=[b.width(),e.width()];U.UF.C.AddObj(this,a);c.setCapture();$(document.body).bind({"mousemove":(this.move=U.UF.C.apply(this,a.tf?this.dragB:this.drag)),"mouseup":(this.mup=function(){this.up();})});};U.UF.F.dragTable.init.prototype={drag:function(){var a=this.prev,d=this.next,e=this.uw,b=this.UE,c=U.UF.EL.getMousePosition();c["X"]=Math.min(Math.max(-e[0],c["X"]-b["X"]),e[1]);a.css("width",e[0]+c["X"]+"px");d.css("width",e[1]+c["X"]+"px");if(this.scb){this.scb();}},dragB:function(){var f,a=this.UDPD,d=this.prev,c=this.pw,f=this.uw[0],b=this.UE,e=U.UF.EL.getMousePosition();e["X"]=Math.max(-f,e["X"]-b["X"]);d.css("width",f+e["X"]+"px");a.css("width",(f=(e["X"]+this.w))>this.pw?f+"px":this.pw+"px");if(this.scb){this.scb();}},up:function(){this.UDOD.releaseCapture();$(document.body).unbind({"mousemove":this.move,"mouseup":this.mup});if(this.upcb){this.upcb();}}};