1234567891011121314151617 |
- //电脑端banner滑块控件命名空间
- //色板
- //工具空间,宝航字体、字号。。。
- //字体
- //#region alert弹窗代码、confirm对话框
- //UI窗体区域
- //电脑端banner滑块控件命名空间
- //PC端表情包
- //#region 窗体
- //UI窗体区域
- //窗体功能命名空间
- //编辑器
- //excel控件
- //编辑器
- Namespace.register("U.MD.UI.slider");U.MD.UI.slider=function(a,b,c){function d(){p=++p%w;r++;r%=x;p==w-1?move(q,{left:-n*p},function(){p=1;this.style.left=-p*n+"px"}):move(q,{left:-n*p});e(r);k&&k(r+1)}function e(a){for(var b=0;b<x;b++)y[b].className="";y[a].className="U_MD_UI_slider_On"}var f=c.speed,h=c.arrow,g=c.dot,k=c.moveFun,l=$$("ul",{className:"U_MD_UI_slider_ImgList"},a);b.unshift(b[b.length-1]);b.push(b[1]);for(c=0;c<b.length;c++){var m=$$("li",{className:""},l);$$("img",{className:"",src:b[c]},m)}c=$$("ul",{className:"U_MD_UI_slider_Btn"},a);$$("li",{className:"U_MD_UI_slider_Left",innerHTML:"\x3c"},c);$$("li",{className:"U_MD_UI_slider_Right",innerHTML:"\x3e"},c);l=$$("ul",{className:"U_MD_UI_slider_Point"},a);for(c=0;c<b.length-3;c++)0==c&&$$("li",{className:"U_MD_UI_slider_On"},l)[0],$$("li",{className:""},l)[c];var n=a.offsetWidth,l=a.offsetHeight,q=a.getElementsByClassName("U_MD_UI_slider_ImgList")[0],m=q.getElementsByTagName("li"),u=document.getElementsByClassName("U_MD_UI_slider_Btn")[0];c=a.getElementsByClassName("U_MD_UI_slider_Point")[0];var m=u.getElementsByTagName("li"),w=q.getElementsByTagName("li").length,p=1,y=c.getElementsByTagName("li"),x=y.length,r=0,v=null;c.style.display=g?"block":"none";g=q.getElementsByTagName("li");for(c=0;c<g.length;c++)g[c].style.width=n+"px",g[c].style.height=l+"px";q.style.width=n*b.length+"px";q.style.left=-n+"px";u.style.width=n+"px";a.onmouseover=function(){u.style.display=h?"block":"none";clearInterval(v)};a.onmouseout=function(){u.style.display="none";v=setInterval(d,f)};var z=new Date;m[0].onclick=function(){500<new Date-z&&(p--,r--,0==p?move(q,{left:-n*p},function(){p=w-2;this.style.left=-p*n+"px"}):move(q,{left:-n*p}),r=-1==r?x-1:r,e(r),k&&k(r+1));z=new Date};m[1].onclick=function(){500<new Date-z&&(p++,r++,r%=x,p==w-1?move(q,{left:-n*p},function(){p=1;this.style.left=-p*n+"px"}):move(q,{left:-n*p}),e(r),k&&k(r+1));z=new Date};v=setInterval(d,f);0==r&&console.log(r+1);for(c=0;c<x;c++)y[c]._listindex=c,y[c].onclick=function(){r=this._listindex;p=r+1;move(q,{left:-n*p});e(r)}};function move(a,b,c){clearInterval(a.timer);a.timer=setInterval(function(){var d=!0,e;for(e in b){var f;f="opacity"==e?100*getStyle(a,e):parseInt(getStyle(a,e))||0;var h=b[e],g=.2*(h-f),g=0<g?Math.ceil(g):Math.floor(g);f!=h&&("opacity"==e?(a.style.filter="alpha(opacity \x3d "+(f+g)+")",a.style[e]=(f+g)/100):a.style[e]=f+g+"px",d=!1)}d&&(clearInterval(a.timer),c&&c.call(a))},100/3)}function getStyle(a,b){return a.currentStyle?a.currentStyle[b]:getComputedStyle(a,null)[b]}Namespace.register("U.MD.UI.calendar");U.MD.UI.Calendar=U.MD.UI.calendar=function(a,b,c){a&&(U.MD.UI.calendar.datetimeformat="boolean"==typeof c&&0==c?c:!0,U.MD.UI.calendar.create(a,b))};U.MD.UI.calendar.NOW=new Date;U.MD.UI.calendar.CURRENTYEAR=U.MD.UI.calendar.NOW.getFullYear();U.MD.UI.calendar.CURRENTMONTH=U.MD.UI.calendar.NOW.getMonth();U.MD.UI.calendar.CURRENTDAY=U.MD.UI.calendar.NOW.getDate();U.MD.UI.calendar.year=U.MD.UI.calendar.CURRENTYEAR;U.MD.UI.calendar.month=U.MD.UI.calendar.CURRENTMONTH;U.MD.UI.calendar.day=U.MD.UI.calendar.CURRENTDAY;U.MD.UI.calendar.hour="00";U.MD.UI.calendar.minute="00";U.MD.UI.calendar.second="00";U.MD.UI.calendar.datetimeformat=!0;U.MD.UI.calendar.fouseinp=null;U.MD.UI.calendar.board=null;U.MD.UI.calendar.tit=null;U.MD.UI.calendar.mark=1;U.MD.UI.calendar.template='\x3cdiv class\x3d"U_MD_UI_calendar_features"\x3e\x3cdiv class\x3d"U_MD_UI_calendar_closeBtn" id\x3d"U_MD_UI_calendar_closeBtn"\x3e\u5173\u95ed\x3c/div\x3e\x3cdiv class\x3d"U_MD_UI_calendar_features_a"\x3e\x3cdiv class\x3d"U_MD_UI_calendar_prev U_MD_UI_calendar_btn" id\x3d"prevDate"\x3e\x3c/div\x3e\x3cdiv class\x3d"U_MD_UI_calendar_tit" id\x3d"calendar_tit"\x3e\x3c/div\x3e\x3cinput type\x3d"text" id\x3d"calendar_tit_btn" style\x3d"display: none;"\x3e\x3cdiv class\x3d"U_MD_UI_calendar_next U_MD_UI_calendar_btn" id\x3d"nextDate"\x3e\x3c/div\x3e\x3c/div\x3e\x3ci\x3e\x3c/i\x3e\x3c/div\x3e,\x3cdiv id\x3d"calendar_day"\x3e\x3cul class\x3d"U_MD_UI_calendar_week"\x3e\x3cli\x3e\u65e5\x3c/li\x3e\x3cli\x3e\u4e00\x3c/li\x3e\x3cli\x3e\u4e8c\x3c/li\x3e\x3cli\x3e\u4e09\x3c/li\x3e\x3cli\x3e\u56db\x3c/li\x3e\x3cli\x3e\u4e94\x3c/li\x3e\x3cli\x3e\u516d\x3c/li\x3e\x3c/ul\x3e\x3cul class\x3d"U_MD_UI_calendar_c" id\x3d"calendar_week_c"\x3e\x3c/ul\x3e\x3c/div\x3e,\x3cdiv class\x3d"U_MD_UI_calendar_month" id\x3d"calendar_month" style\x3d"display: none"\x3e\x3cul class\x3d"U_MD_UI_calendar_month_c"\x3e\x3cli\x3e\x3cspan\x3e1\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e2\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e3\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e4\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e5\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e6\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e7\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e8\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e9\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e10\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e11\u6708\x3c/span\x3e\x3c/li\x3e\x3cli\x3e\x3cspan\x3e12\u6708\x3c/span\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e,\x3cdiv id\x3d"calendar_year" class\x3d"U_MD_UI_calendar_month" style\x3d"display: none"\x3e\x3cul class\x3d"U_MD_UI_calendar_month_c"\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3cli\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e,\x3cspan id\x3d"U_MD_UI_calendar_timeText" class\x3d"U_MD_UI_calendar_timeText"\x3e\u9009\u62e9\u65f6\u95f4\x3c/span\x3e\x3cdiv class\x3d"U_MD_UI_calendar_timeBox"\x3e\x3cdiv id\x3d"U_MD_UI_calendar_clearText" class\x3d"U_MD_UI_calendar_timeBtn"\x3e\u6e05\u7a7a\x3c/div\x3e\x3cdiv id\x3d"U_MD_UI_calendar_nowTime" class\x3d"U_MD_UI_calendar_timeBtn"\x3e\u73b0\u5728\x3c/div\x3e\x3cdiv id\x3d"U_MD_UI_calendar_okBtn" class\x3d"U_MD_UI_calendar_timeBtn"\x3e\u786e\u5b9a\x3c/div\x3e\x3c/div\x3e,\x3cdiv id\x3d"calendar_timeChoose" class\x3d"U_MD_UI_calendar_timeChoose" style\x3d"display: none"\x3e\x3c/div\x3e'.split(",");U.MD.UI.calendar.create=function(a,b){if(a!=U.MD.UI.calendar.fouseinp||"block"!=U.MD.UI.calendar.board.style.display){b&&U.MD.UI.calendar.board&&(U.MD.UI.calendar.board.parentNode.removeChild(U.MD.UI.calendar.board),U.MD.UI.calendar.board=null);var c=document.documentElement.scrollTop||document.body.scrollTop,d=document.documentElement.scrollLeft||document.body.scrollLeft,c=[Math.abs(a.getBoundingClientRect().left)+d,Math.abs(a.getBoundingClientRect().top)+c];U.MD.UI.calendar.fouseinp=a;U.MD.UI.calendar.board?U.MD.UI.calendar.resetData(c):U.MD.UI.calendar.showBoard(a,c,b);U.MD.UI.calendar.showDay()}};U.MD.UI.calendar.toggleChooseText=function(a){var b=$(".U_MD_UI_calendar_c_a")[0].children,c=b.length;if("\u8fd4\u56de\u65e5\u671f"==a.innerText)U.MD.UI.calendar.changeDisplay(_lastTemplate,b[c-1]),a.innerText="\u9009\u62e9\u65f6\u95f4",$(a).removeClass("U_MD_UI_calendar_timeTextClick");else{for(var d=0;d<c-1;d++)"none"!=b[d].style.display&&(b[d].style.display="none",_lastTemplate=b[d]);b[c-1].style.display="block";a.innerText="\u8fd4\u56de\u65e5\u671f";$(a).addClass("U_MD_UI_calendar_timeTextClick")}};U.MD.UI.calendar.resetData=function(a){U.MD.UI.calendar.board.style.display="block";U.MD.UI.calendar.mark=1;$("#calendar_day")[0].style.display="block";$("#calendar_month")[0].style.display="none";$("#calendar_year")[0].style.display="none";U.MD.UI.calendar.board.style.left=a[0]+"px";U.MD.UI.calendar.board.style.top=a[1]+U.MD.UI.calendar.fouseinp.clientHeight+10+"px";U.MD.UI.calendar.year=U.MD.UI.calendar.CURRENTYEAR;U.MD.UI.calendar.month=U.MD.UI.calendar.CURRENTMONTH;U.MD.UI.calendar.ChooseDefault(!0)};U.MD.UI.calendar.createChooseTime=function(a){for(var b=[["\u65f6","\u5206","\u79d2"],[24,60,60],["hour","minute","second"]],c=$$("div",{id:"calendar_time",className:"U_MD_UI_calendar_time",innerHTML:U.MD.UI.calendar.template[4]},U.MD.UI.calendar.board),d=0;d<b[0].length;d++){var e=$$("div",{className:"U_MD_UI_calendar_timeRow"},a);$$("span",{className:"U_MD_UI_calendar_timeRowText",innerText:b[0][d]},e);for(var e=$$("div",{className:"U_MD_UI_calendar_timeRowCon"},e),e=$$("ul",{className:"U_MD_UI_calendar_timeRowUl",name:b[2][d]},e),f=0;f<b[1][d];f++)$$("li",{innerText:1==f.toString().length?"0"+f:f,onclick:function(){var a=this.parentNode,b=a.querySelector(".U_MD_UI_calendar_timeRowActive");$(b).removeClass("U_MD_UI_calendar_timeRowActive");$(this).addClass("U_MD_UI_calendar_timeRowActive");switch(a.name){case "hour":U.MD.UI.calendar.hour=this.innerText;break;case "minute":U.MD.UI.calendar.minute=this.innerText;break;case "second":U.MD.UI.calendar.second=this.innerText}}},e)}U.MD.UI.calendar.datetimeformat||(c.style.display="none");$("#U_MD_UI_calendar_timeText")[0].onclick=function(){U.MD.UI.calendar.toggleChooseText(this)};$("#U_MD_UI_calendar_clearText")[0].onclick=function(){U.MD.UI.calendar.fouseinp.value?U.MD.UI.calendar.fouseinp.value="":U.MD.UI.calendar.fouseinp.innerText="";U.MD.UI.calendar.ChooseDefault(!0);U.MD.UI.calendar.board.style.display="none"};$("#U_MD_UI_calendar_nowTime")[0].onclick=function(){U.MD.UI.calendar.outPutDate(!0)};$("#U_MD_UI_calendar_okBtn")[0].onclick=function(){U.MD.UI.calendar.outPutDate(!1)}};U.MD.UI.calendar.showBoard=function(a,b,c){var d=U.MD.UI.calendar.template,e=c||document.body,f=d[1]+d[2]+d[3]+d[5];U.MD.UI.calendar.board=c?$$("div",{className:"U_MD_UI_calendar_bigboard"},c):$$("div",{className:"U_MD_UI_calendar_bigboard",style:{left:b[0]+"px",top:b[1]+a.clientHeight+10+"px"}},e);U.MD.UI.calendar.board.innerHTML=d[0];_dayC=$$("div",{className:"U_MD_UI_calendar_c_a",innerHTML:f},U.MD.UI.calendar.board);U.MD.UI.calendar.tit=$("#calendar_tit")[0];_mc=$("#calendar_month \x3e ul \x3e li");_titInp=$("#calendar_tit_btn")[0];_timer=null;U.MD.UI.calendar.createChooseTime($("#calendar_timeChoose")[0]);U.MD.UI.calendar.tit.onclick=function(){clearTimeout(_timer);1==U.MD.UI.calendar.mark?(U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year,U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],$("#calendar_day")[0]),U.MD.UI.calendar.mark=2,U.MD.UI.calendar.ChooseDefault()):2==U.MD.UI.calendar.mark&&(_timer=setTimeout(function(){U.MD.UI.calendar.changeDisplay($("#calendar_year")[0],$("#calendar_month")[0]);U.MD.UI.calendar.dateTenYear();U.MD.UI.calendar.mark=3;U.MD.UI.calendar.ChooseDefault()},250))};U.MD.UI.calendar.tit.ondblclick=function(){clearTimeout(_timer);2===U.MD.UI.calendar.mark&&(_obj=U.MD.UI.calendar.changeDisplay(_titInp,this,"inline-block"),_obj[0].value=this.innerText,_obj[0].focus())};_titInp.onkeydown=function(a){switch(a.keyCode){case 13:U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block")[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)}};_titInp.onblur=function(){U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block")[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)};$("#prevDate")[0].onclick=function(){1==U.MD.UI.calendar.mark?_lessNum=-1:2==U.MD.UI.calendar.mark?_lessNum=-12:3==U.MD.UI.calendar.mark&&(_lessNum=-120);U.MD.UI.calendar.fullDate(_lessNum,!1)};$("#nextDate")[0].onclick=function(){1==U.MD.UI.calendar.mark?_addNum=1:2==U.MD.UI.calendar.mark?_addNum=12:3==U.MD.UI.calendar.mark&&(_addNum=120);U.MD.UI.calendar.fullDate(_addNum,!0)};for(a=0;a<_mc.length;a++)_mc[a].onclick=function(){U.MD.UI.calendar.changeDisplay($("#calendar_day")[0],$("#calendar_month")[0]);U.MD.UI.calendar.month=parseInt(this.innerText)-1;U.MD.UI.calendar.showDay();U.MD.UI.calendar.mark=1};$("#U_MD_UI_calendar_closeBtn")[0].onclick=function(){U.UF.EV.stopBubble();U.MD.UI.calendar.board.style.display="none"}};U.MD.UI.calendar.showDay=function(){_monthFristDay=(new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,1)).getDay();_lastMonthDay=(new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,0)).getDate();_fullDay=(new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month+1,0)).getDate();_totalDay=0===(_t=_monthFristDay+_fullDay)%7?_t:_t+(7-_t%7);_dayC=$("#calendar_week_c")[0];_dayC.innerHTML="";for(var a=0;a<_totalDay;a++)if(_li=$$("li",{},_dayC),a<_monthFristDay)$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_lastMonthDay-_monthFristDay+a+1},_li);else if(a<_fullDay+_monthFristDay){var b=a-_monthFristDay+1,c=(new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,b)).getDay(),d=U.MD.UI.calendar.NOW.getDate()===b&&U.MD.UI.calendar.CURRENTMONTH===U.MD.UI.calendar.month&&U.MD.UI.calendar.CURRENTYEAR===U.MD.UI.calendar.year;_dayV=b;6===c||0===c?d?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today U_MD_UI_calendar_weekend",innerText:b,onclick:function(){U.MD.UI.calendar.day=this.innerText;U.MD.UI.calendar.outPutDate()}},_li):$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_weekend",innerText:b,onclick:function(){U.MD.UI.calendar.day=this.innerText;U.MD.UI.calendar.outPutDate()}},_li):d?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today",innerText:b,onclick:function(){U.MD.UI.calendar.day=this.innerText;U.MD.UI.calendar.outPutDate()}},_li):$$("span",{className:"U_MD_UI_calendar_day",innerText:b,onclick:function(){U.MD.UI.calendar.day=this.innerText;U.MD.UI.calendar.outPutDate()}},_li)}else $$("span",{className:"U_MD_UI_calendar_unavailable",innerText:a-(_fullDay+_monthFristDay)+1},_li);U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year+"-"+(U.MD.UI.calendar.month+1)+"\u6708"};U.MD.UI.calendar.fullDate=function(a,b){var c=1<=(_n=Math.abs(a)/12)?_n>>>0:0,d=Math.abs(a)%12;!b&&(d=-d);!b&&(c=-c);U.MD.UI.calendar.month+=d;U.MD.UI.calendar.year+=c;b?11<U.MD.UI.calendar.month&&(U.MD.UI.calendar.month=0,U.MD.UI.calendar.year++):0>U.MD.UI.calendar.month&&(U.MD.UI.calendar.month=11,U.MD.UI.calendar.year--);1==U.MD.UI.calendar.mark&&U.MD.UI.calendar.showDay();2==U.MD.UI.calendar.mark&&(U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year);3==U.MD.UI.calendar.mark&&U.MD.UI.calendar.dateTenYear()};U.MD.UI.calendar.formartDate=function(a,b){var c,d,e,f;c=a||"-";d=b?U.MD.UI.calendar.CURRENTYEAR:U.MD.UI.calendar.year;e=b?U.MD.UI.calendar.CURRENTMONTH+1:U.MD.UI.calendar.month+1;f=b?U.MD.UI.calendar.CURRENTDAY:U.MD.UI.calendar.day;e=e.toString()[1]?e:"0"+e;f=f.toString()[1]?f:"0"+f;c=d+c+e+c+f;"boolean"==typeof U.MD.UI.calendar.datetimeformat&&U.MD.UI.calendar.datetimeformat&&(b&&(e=new Date,U.MD.UI.calendar.hour=e.getHours(),U.MD.UI.calendar.minute=e.getMinutes(),U.MD.UI.calendar.second=e.getSeconds()),d=U.MD.UI.calendar.hour.toString()[1]?U.MD.UI.calendar.hour:"0"+U.MD.UI.calendar.hour,e=U.MD.UI.calendar.minute.toString()[1]?U.MD.UI.calendar.minute:"0"+U.MD.UI.calendar.minute,f=U.MD.UI.calendar.second.toString()[1]?U.MD.UI.calendar.second:"0"+U.MD.UI.calendar.second,c+=" "+d+":"+e+":"+f);return c};U.MD.UI.calendar.outPutDate=function(a){"INPUT"===U.MD.UI.calendar.fouseinp.tagName?U.MD.UI.calendar.fouseinp.value=U.MD.UI.calendar.formartDate("-",a):U.MD.UI.calendar.fouseinp.innerText=U.MD.UI.calendar.formartDate("-",a);U.MD.UI.calendar.CheckedDay&&U.MD.UI.calendar.CheckedDay();U.MD.UI.calendar.board.style.display="none"};U.MD.UI.calendar.changeDisplay=function(a,b,c){a&&"object"===typeof a&&a.setAttribute("style","display:"+(c||"block"));b&&"object"===typeof b&&b.setAttribute("style","display:none");return[a,b]};U.MD.UI.calendar.dateTenYear=function(){_yearArr=$("#calendar_year \x3e ul \x3e li");_startYear=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10;for(var a=0;a<_yearArr.length;a++)_yearArr[a].onclick=function(){U.MD.UI.calendar.mark=2;U.MD.UI.calendar.year=parseInt(this.innerText);U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],$("#calendar_year")[0]);U.MD.UI.calendar.tit.innerText=this.innerText},_yearArr[a].innerHTML="",0==a||a==_yearArr.length-1?$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_startYear+a-1},_yearArr[a]):_startYear+a-1===U.MD.UI.calendar.CURRENTYEAR?$$("span",{style:{"background-color":"#eed1bc"},innerText:_startYear+a-1},_yearArr[a]):$$("span",{innerText:_startYear+a-1},_yearArr[a]);U.MD.UI.calendar.tit.innerText=(t=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10)+"-"+(t+9)};U.MD.UI.calendar.ChooseDefault=function(a){U.MD.UI.calendar.datetimeformat?(a&&(U.MD.UI.calendar.hour="00",U.MD.UI.calendar.minute="00",U.MD.UI.calendar.second="00",$(U.MD.UI.calendar.board).find(".U_MD_UI_calendar_timeRowActive").removeClass("U_MD_UI_calendar_timeRowActive"),!$("#U_MD_UI_calendar_timeText").length&&U.MD.UI.calendar.createChooseTime($("#calendar_timeChoose")[0])),$("#calendar_time")[0].style.display="block",$("#calendar_timeChoose")[0].style.display="none",$("#U_MD_UI_calendar_timeText")[0].innerText="\u9009\u62e9\u65f6\u95f4",$("#U_MD_UI_calendar_timeText").removeClass("U_MD_UI_calendar_timeTextClick")):($("#calendar_time")[0].style.display="none",$("#calendar_timeChoose")[0].style.display="none")};U.MD.UI.calendar.SetCallBack=function(a,b){if("function"!=typeof b||!"CheckedDay ".match(a+" "))return 0;U.MD.UI.calendar[a]=b};Namespace.register("U.MD.UI.city");U.MD.UI.city=function(a){U.UF.EV.stopBubble();if(a&&a.tagName)if(_cityBox=$("#U_MD_UI_city_cityBox")[0]){var b=a.getBoundingClientRect();_cityBox.style.top=b.top+b.height+document.documentElement.scrollTop+"px";_cityBox.style.left=b.left+document.documentElement.scrollLeft+"px";$(_cityBox).removeClass("U_MD_UI_city_hidden");U.MD.UI.city.Attr.inputNode=a}else b=U.MD.UI.city,b.create(a),b.Attr={inputNode:a},b.init()};U.MD.UI.city.Attr={};U.MD.UI.city.usedCity=null;U.MD.UI.city.province=null;U.MD.UI.city.city={};U.MD.UI.city.area={};U.MD.UI.city.htmlTemplate=' \x3cul class\x3d"U_MD_UI_city_menuBox"\x3e \x3c!--\u63a7\u4ef6\u7684\u5934\u90e8--\x3e\n\n \x3c!--U_MD_UI_city_menuChecked \u9009\u4e2d\u83dc\u5355\u7684\u6309\u94ae\u65f6\u6240\u7528\u7684"className":\u7ea2\u8272--\x3e\n \x3c!--U_MD_UI_city_filled \u8868\u793a\u5f85\u586b\u5199class \u4e3a\u589e\u5220class\u5360\u4f4d\u7f6e \u9632\u51fa\u9519 \u4ee5\u4e0b\u90fd\u662f--\x3e\n \x3c!--U_MD_UI_city_menuoChecked \u9009\u62e9\u57ce\u5e02\u540e\u6240\u6dfb\u52a0\u7684class \u7ea2\u8272\u5c0f\u5706\u70b9--\x3e\n \x3cli id\x3d"U_MD_UI_city_usedCityMenu" data-city-mark\x3d"U_MD_UI_city_usedCityCont" class\x3d"U_MD_UI_city_menuChecked" data-city-res\x3d""\x3e\n \x3cspan\x3e\u5e38\u7528\u5e02\x3c/span\x3e\n \x3c/li\x3e\n\n \x3cli id\x3d"U_MD_UI_city_provinceMenu" data-city-mark\x3d"U_MD_UI_city_provinceCont" class\x3d"U_MD_UI_city_filled" data-city-res\x3d""\x3e\n \x3cspan\x3e\u7701/\u76f4\u8f96\u5e02\x3c/span\x3e\n \x3c/li\x3e\n\n \x3cli id\x3d"U_MD_UI_city_cityMenu" data-city-mark\x3d"U_MD_UI_city_cityCont" class\x3d"U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res\x3d""\x3e\n \x3cspan\x3e\u8bf7\u9009\u62e9\x3c/span\x3e\n \x3c/li\x3e\n\n \x3cli id\x3d"U_MD_UI_city_areaMenu" data-city-mark\x3d"U_MD_UI_city_areaCont" class\x3d"U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res\x3d""\x3e\n \x3cspan\x3e\u8bf7\u9009\u62e9\x3c/span\x3e\n \x3c/li\x3e\n \x3c/ul\x3e\n\n\n \x3c!--\u4ee5\u4e0b\u4e3a\u4e3b\u8981\u5185\u5bb9\u533a\u57df--\x3e\n \x3c!-- ----------------------------------------------------------------------------- --\x3e\n \x3cul id\x3d"U_MD_UI_city_usedCityCont" class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5e38\u7528\u57ce\u5e02\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3cli id\x3d"U_MD_UI_city_liTemplate"\x3e\x3cspan\x3e\u5149\u660e\u65b0\u533a\x3c/span\x3e\x3c/li\x3e\n \x3c!-- U_MD_UI_city_liTemplate \u4e3a\u5185\u5bb9\u533a\u57df\u7684li\u7684\u6a21\u677f \u53ef\u65e0\u89c6 \u5df2display\u4e3anone --\x3e\n \x3c!--U_MD_UI_city_Cont_ochecked \u9009\u4e2d\u57ce\u5e02\u7684\u6309\u94ae\u65f6\u6240\u7528\u7684"className":\u7ea2\u8272--\x3e\n \x3c/ul\x3e\n\n\n \x3cul class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id\x3d"U_MD_UI_city_provinceCont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5b58\u653e\u7701\u7684\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3c/ul\x3e\n\n\n \x3cul class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id\x3d"U_MD_UI_city_cityCont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5b58\u653e\u5e02\u7684\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3c/ul\x3e\n\n\n \x3cul class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id\x3d"U_MD_UI_city_areaCont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5b58\u653e\u5730\u533a\u7684\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3c/ul\x3e';U.MD.UI.city.create=function(a){var b=$$("div",{id:"U_MD_UI_city_cityBox",className:"U_MD_UI_city_cityBox U_MD_UI_city_hidden"},document.body);b.innerHTML+=U.MD.UI.city.htmlTemplate;var c=a.getBoundingClientRect();b.style.top=c.top+c.height+document.documentElement.scrollTop+"px";b.style.left=c.left+document.documentElement.scrollLeft+"px";U.MD.UI.city.Attr.inputNode=a;$(b).removeClass("U_MD_UI_city_hidden")};U.MD.UI.city.init=function(){var a=U.MD.UI.city;a.getUsedCity();a.inputEvent();a.menuEvent()};U.MD.UI.city.inputEvent=function(){var a=$("#U_MD_UI_city_cityBox")[0];$(document).bind("click",function(){$(a).addClass("U_MD_UI_city_hidden")},!1);$(a).bind("click",function(a){U.UF.EV.stopBubble(a)});$("#U_MD_UI_city_areaCont")[0].onclick=function(){$("#U_MD_UI_city_areaCont")[0]&&($("#U_MD_UI_city_cityBox")[0].style.display="none")}};U.MD.UI.city.menuEvent=function(){for(var a=U.MD.UI.city,b=$("[data-city-mark]"),c=0,d=b.length;c<d;c++){var e=b[c];$(e).bind("click",function(){a.menuClassControl(this,"U_MD_UI_city_menuChecked","data-city-mark","U_MD_UI_city_hidden")});"U_MD_UI_city_provinceMenu"===e.id&&$(e).bind("click",function(){a.getProvince()})}};U.MD.UI.city.getUsedCity=function(){var a=U.MD.UI.city,b=$("#U_MD_UI_city_usedCityMenu")[0],c=$("#U_MD_UI_city_liTemplate")[0],d=$("#U_MD_UI_city_usedCityCont")[0];a.usedCity||U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_UsedCity"],function(e){a.usedCity=e.value;a.allDataPrint(b,a.usedCity,c,"usedCity",d)})};U.MD.UI.city.getProvince=function(){var a=U.MD.UI.city,b=$("#U_MD_UI_city_provinceMenu")[0],c=$("#U_MD_UI_city_liTemplate")[0],d=$("#U_MD_UI_city_provinceCont")[0];a.province||U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_Province"],function(e){a.province=e.value;a.allDataPrint(b,a.province,c,"province",d)})};U.MD.UI.city.getCity=function(a){var b=U.MD.UI.city,c=$("#U_MD_UI_city_cityMenu")[0],d=$("#U_MD_UI_city_liTemplate")[0],e=$("#U_MD_UI_city_cityCont")[0];b.city[a]?(b.menuClassControl(c,"U_MD_UI_city_menuChecked","data-city-mark","U_MD_UI_city_hidden"),b.allDataPrint(c,b.city[a],d,"city",e)):(b.menuClassControl(c,"U_MD_UI_city_menuChecked","data-city-mark","U_MD_UI_city_hidden"),U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_PidFind",a,1],function(f){b.city[a]=f.value;b.allDataPrint(c,b.city[a],d,"city",e)}))};U.MD.UI.city.getarea=function(a){var b=U.MD.UI.city,c=$("#U_MD_UI_city_areaMenu")[0],d=$("#U_MD_UI_city_liTemplate")[0],e=$("#U_MD_UI_city_areaCont")[0];b.area[a]?(b.menuClassControl(c,"U_MD_UI_city_menuChecked","data-city-mark","U_MD_UI_city_hidden"),b.allDataPrint(c,b.area[a],d,"area",e)):(b.menuClassControl(c,"U_MD_UI_city_menuChecked","data-city-mark","U_MD_UI_city_hidden"),U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_PidFind",a,2],function(f){b.area[a]=f.value;b.allDataPrint(c,b.area[a],d,"area",e)}))};U.MD.UI.city.allDataPrint=function(a,b,c,d,e){for(var f=U.MD.UI.city,h=$("#U_MD_UI_city_usedCityMenu")[0],g=$("#U_MD_UI_city_provinceMenu")[0],k=b.length,l=0;l<k;l++)f.dataPrint(b[l],c,d,e).onclick=function(){var b=$(this).attr("data-city-type"),c=$(this).attr("data-city-code");$(a.children[0]).addClass("U_MD_UI_city_menuoChecked");a.children[0].innerText=this.innerText;$(a).attr("data-city-res",this.innerText);f.contClassControl(this,"U_MD_UI_city_Cont_ochecked");switch(b){case "province":f.getCity(c);f.initAllClass(h);break;case "usedCity":"\u91cd\u5e86"===this.innerText?f.getCity(c):f.getarea(c);f.initAllClass(g);break;case "city":f.getarea(c);break;case "area":f.getRes("data-city-res")}}};U.MD.UI.city.dataPrint=function(a,b,c,d){b=U.MD.UI.city.clone(b);var e=b.children[0],f=a.short_name,h=a.name;b.id=c+a.id;e.innerText=f;"\u5317\u4eac"!==f&&"\u4e0a\u6d77"!==f&&"\u5929\u6d25"!==f&&"\u91cd\u5e86"!==f||"U_MD_UI_city_cityCont"!==d.id||(e.innerText=h);"U_MD_UI_city_areaCont"===d.id&&(e.innerText=h);e.id="span_"+c+a.id;$(e).attr("data-city-code",a.id);$(e).attr("data-city-type",c);d.appendChild(b);return e};U.MD.UI.city.menuClassControl=function(a,b,c,d){var e=$("#U_MD_UI_city_cityMenu")[0],f=$("#U_MD_UI_city_areaMenu")[0],h=$("#U_MD_UI_city_cityCont")[0],g=$("#U_MD_UI_city_areaCont")[0],k=$("."+b)[0];k&&$(k).removeClass(b);$(a).addClass(b);b=$("#"+$(k).attr(c))[0];c=$("#"+$(a).attr(c))[0];$(b).addClass(d);$(c).removeClass(d);switch(a.id){case "U_MD_UI_city_usedCityMenu":case "U_MD_UI_city_provinceMenu":$(e).addClass(d);$(f).addClass(d);$(h).addClass(d);$(g).addClass(d);e.children[0].innerText="\u8bf7\u9009\u62e9";f.children[0].innerText="\u8bf7\u9009\u62e9";h.innerHTML="";g.innerHTML="";$(e).attr("data-city-res","");$(f).attr("data-city-res","");break;case "U_MD_UI_city_cityMenu":$(a).removeClass(d);$(f).addClass(d);$(g).addClass(d);f.children[0].innerText="\u8bf7\u9009\u62e9";g.innerHTML="";break;case "U_MD_UI_city_areaMenu":$(a).removeClass(d)}};U.MD.UI.city.contClassControl=function(a,b){for(var c=$("."+b),d=$(a).attr("data-city-type"),e=0,f=c.length;e<f;e++){var h=$(c[e]).attr("data-city-type");c[e]&&h===d&&$(c[e]).removeClass(b)}$(a).addClass(b)};U.MD.UI.city.initAllClass=function(a){a.className="U_MD_UI_city_filled";a.children[0].className="";$(a).attr("data-city-res","");for(var b=$(".U_MD_UI_city_Cont_ochecked"),c=0;c<b.length;c++)$(b[c]).removeClass("U_MD_UI_city_Cont_ochecked");"U_MD_UI_city_provinceMenu"===a.id&&(a.children[0].innerText="\u7701/\u76f4\u8f96\u5e02");"U_MD_UI_city_usedCityMenu"===a.id&&(a.children[0].innerText="\u5e38\u7528\u5e02")};U.MD.UI.city.getRes=function(a){for(var b=U.MD.UI.city.Attr.inputNode,c=$("#U_MD_UI_city_cityBox")[0],d=$("["+a+"]"),e=[],f=0,h=d.length;f<h;f++){var g=$(d[f]).attr(a);g&&e.push(g)}b.value=e.join("-");$(c).addClass("U_MD_UI_city_hidden")};U.MD.UI.city.clone=function(a){var b=a.cloneNode();a=a.children;for(var c=0;c<a.length;c++){var d=a[c].cloneNode();b.appendChild(d)}return b};Namespace.register("U.MD.UI.ColorPicker");U.MD.UI.colorPicker=U.MD.UI.ColorPicker=function(a,b){var c=$$("div",{style:{width:"180px",height:"140px",border:"1px solid #CDCDCD",backgroundColor:" #FFF",padding:"10px 10px 10px 5px",zIndex:1},className:"MD_ColorPicker"},a),d,e="#ffffff #ffccc9 #ffce93 #fffc9e #ffffc7 #9aff99 #96fffb #cdffff #cbcefb #cfcfcf #fd6864 #fe996b #fffe65 #fcff2f #67fd9a #38fff8 #68fdff #9698ed #c0c0c0 #fe0000 #f8a102 #ffcc67 #f8ff00 #34ff34 #68cbd0 #34cdf9 #6665cd #9b9b9b #cb0000 #f56b00 #ffcb2f #ffc702 #32cb00 #00d2cb #3166ff #6434fc #656565 #9a0000 #ce6301 #cd9934 #999903 #009901 #329a9d #3531ff #6200c9 #343434 #680100 #963400 #986536 #646809 #036400 #34696d #00009b #303498 #000000 #330001 #643403 #663234 #343300 #013300 #003532 #010066 #340096".split(" "),f;for(d=0;d<e.length;d++)f=$$("button",{style:{background:e[d],width:"15px",height:"15px","float":"left",margin:"5px 0 0 5px",border:" 1px solid transparent"}},c),f.onclick=function(a){c.style.display="none";U.UF.EV.stopBubble(a);b(this.style.background)};$(document).bind("click",function(){"none"!=c.style.display&&(c.style.display="none")});U.UF.EV.stopBubble();return c};Namespace.register("U.MD.UI.Font");Namespace.register("U.MD.UI.WordSize");U.MD.UI.Font=function(){var a=$$("select",{style:{fontFamily:"\u5b8b\u4f53",fontSize:"16px"},className:"MD_fontFamily"});$$("option",{value:"\u5b8b\u4f53",style:{fontFamily:"\u5b8b\u4f53"},innerHTML:"\u5b8b\u4f53"},a);$$("option",{value:"sans-serif",style:{fontFamily:"sans-serif"},innerHTML:"sans-serif"},a);$$("option",{value:"\u5fae\u8f6f\u96c5\u9ed1",style:{fontFamily:"\u5fae\u8f6f\u96c5\u9ed1"},innerHTML:"\u5fae\u8f6f\u96c5\u9ed1"},a);$$("option",{value:"\u6977\u4f53",style:{fontFamily:"\u6977\u4f53"},innerHTML:"\u6977\u4f53"},a);$$("option",{value:"\u9ed1\u4f53",style:{fontFamily:"\u9ed1\u4f53"},innerHTML:"\u9ed1\u4f53"},a);$$("option",{value:"\u96b6\u4e66",style:{fontFamily:"\u96b6\u4e66"},innerHTML:"\u96b6\u4e66"},a);$$("option",{value:"andale mono",style:{fontFamily:"andale mono"},innerHTML:"andale mono"},a);$$("option",{value:"arial black",style:{fontFamily:"arial black"},innerHTML:"arial black"},a);return a};U.MD.UI.WordSize=function(){var a=$$("select",{className:"MD_fontSize"});$$("option",{value:"56px",style:{fontSize:"14px"},innerHTML:"\u521d\u53f7"},a);$$("option",{value:"48px",style:{fontSize:"14px"},innerHTML:"\u5c0f\u521d"},a);$$("option",{value:"34.7px",style:{fontSize:"14px"},innerHTML:"\u4e00\u53f7"},a);$$("option",{value:"32px",style:{fontSize:"14px"},innerHTML:"\u5c0f\u4e00"},a);$$("option",{value:"29.3px",style:{fontSize:"14px"},innerHTML:"\u4e8c\u53f7"},a);$$("option",{value:"24px",style:{fontSize:"14px"},innerHTML:"\u5c0f\u4e8c"},a);$$("option",{value:"21.3px",style:{fontSize:"14px"},innerHTML:"\u4e09\u53f7"},a);$$("option",{value:"20px",style:{fontSize:"14px"},innerHTML:"\u5c0f\u4e09"},a);$$("option",{value:"18.7px",style:{fontSize:"14px"},innerHTML:"\u56db\u53f7"},a);$$("option",{value:"16px",style:{fontSize:"14px"},innerHTML:"\u5c0f\u56db"},a);$$("option",{value:"14px",style:{fontSize:"14px"},innerHTML:"\u4e94\u53f7"},a);$$("option",{value:"12px",style:{fontSize:"14px"},innerHTML:"\u5c0f\u4e94"},a);$$("option",{value:"10px",style:{fontSize:"14px"},innerHTML:"10"},a);$$("option",{value:"12px",style:{fontSize:"14px"},innerHTML:"12"},a);$$("option",{value:"14px",style:{fontSize:"14px"},innerHTML:"14"},a);$$("option",{value:"16px",style:{fontSize:"14px"},innerHTML:"16"},a);$$("option",{value:"18px",style:{fontSize:"14px"},innerHTML:"18"},a);$$("option",{value:"20px",style:{fontSize:"14px"},innerHTML:"20"},a);$$("option",{value:"22px",style:{fontSize:"14px"},innerHTML:"22"},a);$$("option",{value:"24px",style:{fontSize:"14px"},innerHTML:"24"},a);$$("option",{value:"26px",style:{fontSize:"14px"},innerHTML:"26"},a);$$("option",{value:"28px",style:{fontSize:"14px"},innerHTML:"28"},a);$$("option",{value:"36px",style:{fontSize:"14px"},innerHTML:"36"},a);$$("option",{value:"42px",style:{fontSize:"14px"},innerHTML:"42"},a);$$("option",{value:"48px",style:{fontSize:"14px"},innerHTML:"48"},a);$$("option",{value:"72px",style:{fontSize:"14px"},innerHTML:"72"},a);return a};Namespace.register("U.UF.UI");U.UF.UI.Confirm=U.UF.UI.confirm=function(a,b,c){var d=$$("div",{style:{cssText:"width: 100%; background: rgb(255,255,255);overflow:hidden; "}}),e=$$("div",{style:{cssText:"width: 100%;"}},d);U.UF.C.isElement(a)?$(e).append(a):(e.style.cssText="text-align: center; margin: 10px;",e.innerHTML=a||"\u5185\u5bb9");a=$$("div",{style:{cssText:"height:28px; margin:14px 0;"}},d);$$("div",{style:{cssText:"text-align: center; color: rgb(255,255,255); width: 92px; line-height:28px; background: rgb(48,126,208); border-radius: 5px;float: right; margin-right:29px; "},innerHTML:"\u786e\u5b9a",onclick:function(){var a=!0;U.UF.C.isFunction(b)&&(a=b());!1!==a&&U.UF.F.closeWindow(f.form)}},a);$$("div",{style:{cssText:"text-align: center; color: rgb(255,255,255); width: 92px; line-height:28px; background: rgb(48,126,208); border-radius: 5px;background: rgb(170,170,170); float: right; margin-right:21px;margin-left:29px;"},innerHTML:"\u53d6\u6d88",onclick:function(){U.UF.C.isFunction(c)&&c();U.UF.F.closeWindow(f.form)}},a);var f=new U.UF.UI.form("\u63d0\u793a",d,{style:{cssText:"font-size: 14px; background: rgb(255,255,255); width: 310px; position: fixed; box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"}},{istop:!0,isenlarge:!1,isstretching:!1,isnarrow:!1},{style:{cssText:" background: rgb(59,88,120); padding: 5px; color: rgb(255,255,255); "}});return f};U.UF.UI.Dialog=U.UF.UI.Dialog=function(a,b){var c=$$("div",{style:{cssText:"width: 100%; background: #fff; overflow:hidden; "}}),d=$$("div",{style:{cssText:"text-align: center; margin: 30px 20px 30px 20px; "}},c);U.UF.C.isElement(a)?$(d).append(a):d.innerHTML=a||"\u5185\u5bb9";var d=$$("div",{style:{cssText:"height:45px;"}},c),e=new U.UF.UI.form("\u63d0\u793a\u6846",c,{style:{cssText:"font-size: 14px; 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:"\u786e\u5b9a",onclick:function(){U.UF.C.isFunction(b)&&b();U.UF.F.closeWindow(e.form)}},d)};U.UF.UI.alertClick=function(a,b){var c=$$("div",{"class":"USBalert_text",style:{width:"100%"}});U.UF.C.isElement(a)?$(c).append(a):$$("div",{style:{cssText:"text-align:center;padding:10px; margin:10px auto; word-break:break-word;"},innerHTML:a||"\u5185\u5bb9"},c);var d=$$("div",{"class":"USBalert_onclicks",style:{height:"43px"}},c),e=new U.UF.UI.form("\u63d0\u793a\u6846",c,{style:{cssText:"font-size: 16px; width:320px; background: rgb(255,255,255);box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"}},{isnarrow:!1,isenlarge:!1,isstretching:!1},{style:{cssText:"background: rgb(59,88,120); padding: 10px; color: rgb(255,255,255);"}});$$("div",{style:{cssText:"text-align: center; color: #fff; width: 30%;max-width:150px; padding: 5px; background: #307ed0; border-radius: 5px;float: right; margin: 0 12px 12px 0;"},innerHTML:"\u786e\u5b9a",onclick:function(){U.UF.F.closeWindow(e.form)}},d)};U.Alert=U.alert=function(a,b){b?"":b=3E3;var c=$$("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; word-break: break-word; "},innerHTML:a},document.body);U.UF.F.topWindow(c);setTimeout(function(){c.parentNode.removeChild(c)},b)};Namespace.register("U.MD.UI.email");U.MD.UI.email=function(){};Namespace.register("U.MD.UI.face");U.MD.UI.face=function(a,b){var c,d,e;if($("#U_MD_UI_face")[0])"none"==$("#U_MD_UI_face")[0].style.display?$("#U_MD_UI_face")[0].style.display="block":$("#U_MD_UI_face")[0].style.display="none";else{c=$$("div",{style:{position:"relative"}},$(a)[0]);d=$$("div",{id:"U_MD_UI_face",className:"U_MD_UI_face",onmousedown:U.UF.EV.stopBubble},c);e=$$("div",{className:"U_MD_UI_face_H"},d);for(c=0;104>=c;c++)$$("button",{className:"U_MD_UI_face_C",style:{opacity:"0"},onclick:U.UF.C.closure(function(a){U.UF.EV.stopBubble();U.MD.UI.face.printEmoticon(d,a,U.UF.E.getRangeAt(),b)},[c])},e);$("body").unbind("click",U.MD.UI.face.externalClick);$("body").bind("click",U.MD.UI.face.externalClick)}b.focus()};U.MD.UI.face.externalClick=function(a){"BUTTON"!=window.event.srcElement.tagName&&$("#U_MD_UI_face")[0]&&($("#U_MD_UI_face")[0].style.display="none")};U.MD.UI.face.printEmoticon=function(a,b,c,d){b="/img/ChatingFaceGif/[face]("+b+").gif";c?U.UF.E.addRange('\x3cimg contentEditable\x3d"true" src\x3d"'+b+'"\x3e',null,!0):$$("img",{onerror:U.MD.C.imgError,src:b,contentEditable:"true"},$(d)[0]);$(a)[0].style.display="none"};Namespace.register("U.UF.UI");U.UF.UI.form=function(a,b,c,d,e,f,h,g){var k=this;c&&U.UF.UI.form.allForm[c.id]?k=U.UF.UI.form.allForm[c.id]:(this.id=c&&c.id?c.id:Guid.newGuid(),U.UF.UI.form.allForm[this.id]=this);k.form;k.header;k.middle;k.title=a;k.content=b;k.formattr=c;k.headattr=e;k.contentattr=f;k.headbottomattr=h;null==d&&(d={});k.istop=null;null!=d.istop&&(k.istop=d.istop);k.isdrag=!0;null!=d.isdrag&&(k.isdrag=d.isdrag);k.isstretching=!0;null!=d.isstretching&&(k.isstretching=d.isstretching);k.isenlarge=!0;null!=d.isenlarge&&(k.isenlarge=d.isenlarge);k.isnarrow=!0;null!=d.isnarrow&&(k.isnarrow=d.isnarrow);k.isclose=!0;k.closecallback=d.closecallback;null!=d.isclose&&(k.isclose=d.isclose);k.parentel=g||document.body;k.create();return k};U.UF.UI.form.allForm={};U.UF.UI.form.prototype={create:function(){var a,b,c,d,e,f,h,g,k;e=this.formattr||{};var l=this.headattr||{};f=this.contentattr||{};var m=U.UF.UI.form.allForm[e.id]?U.UF.UI.form.allForm[e.id].form:null;e.style?(e.style.cssText=e.style.cssText||"",e.style.cssText="width: 70%; position: fixed; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -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;"+e.style.cssText):e.style={cssText:"width: 70%; position: fixed; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -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;"};e.close=U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form)});e.usform="true";e.id=e.id||"";e.style=e.style||{};e.onresize?(b=e.onresize,k=e.onmousedown,e.onresize=U.UF.C.apply(this,function(){this.size();b&&b()}),e.onmousedown=U.UF.C.apply(this,function(){!1!==this.istop&&this.top();k&&k()})):!1!==e.onresize&&(e.onresize=U.UF.C.apply(this,function(){this.size()}));c=$$("div",this.formattr);!0===this.istop?(c.style.zIndex="9999",c.__top__="false"):!1===this.istop&&(c.__top__="false");this.form=c;!1!==this.title&&(l.style?(l.style.cssText=l.style.cssText||"",l.style.cssText="text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 30px; background-color: #2967A7; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "+l.style.cssText):l.style={cssText:"text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 30px; background-color: #2967A7; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "},this.isdrag&&(l.onmousedown=function(){U.UF.F.drag(c)}),d=$$("div",l,c),U.UF.C.isString(this.title)?d.innerHTML=this.title:U.UF.C.isElement(this.title)&&d.appendChild(this.title),this.header=d);e=$$("div",{style:{cssText:"width: 100%; height:100%; position: relative;"}},c);f.usbody="true";f.style?(f.style.cssText=f.style.cssText||"",f.style.cssText="text-align: left; overflow: hidden;"+f.style.cssText):f.style={cssText:"text-align: left; overflow: auto;"};f=$$("div",f,e);U.UF.C.isString(this.content)?f.innerHTML=this.content:U.UF.C.isElement(this.content)&&f.appendChild(this.content);this.middle=f;!1===this.title&&this.isdrag&&(e.onmousedown=function(){U.UF.F.drag(c)});if(!1!==this.isstretching)for(a in f=$$("div",{style:{cssText:"display: block;"}},c),e={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;"},e)$$("div",{style:{cssText:"position: absolute; overflow: hidden; display: block; z-index: 10;"+e[a]},onmousedown:U.UF.C.closure(function(a,b){U.UF.F.stretching(c,b,U.UF.C.apply(a,a.size))},[this,a])},f);!1!==this.title&&(h=$$("div",{style:{cssText:"position: absolute; top: 3px; right: 0px; width: 80px; display: table-cell; vertical-align: middle;"}},c));!1!==this.isclose&&$$("div",{style:{cssText:"background-image:url(/img/close.png); _background-image:url(/img/close.png);width: 20px; height: 20px; background-position: -120px -61px; background-size: 100%; float: right; margin-right: 3px; cursor: pointer;"},title:"\u70b9\u51fb\u5173\u95ed",onmousedown:U.UF.EV.stopBubble,onclick:U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form);try{U.MD.D.T.taskbar.close&&(U.MD.D.T.taskbar.close({forms:c}),U.MD.N.urlWrite("","\u4e91\u7aef - 1473"))}catch(n){}U.UF.C.isFunction(this.closecallback)&&this.closecallback()})},h);!1!==this.isenlarge&&(g=$$("div",{style:{cssText:"background-image:url(/img/max.png); _background-image:url(/img/max.png);background-position: -598px -240px; background-size: 100%; float: right; margin-right: 7px; width: 20px; height: 20px; cursor: pointer;"},title:"\u6700\u5927\u5316",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowZooming(c)}},h),d&&(d.ondblclick=U.UF.C.apply(d,function(){if(event.srcElement==this||U.UF.EL.isChild(this,event.srcElement))g.onclick()})));!1!==this.isnarrow&&$$("div",{style:{cssText:"background-image:url(/img/min.png); _background-image:url(/img/min.png);background-position: -617px -240px; background-size: 100%; float: right; margin-right: 10px; width: 20px; height: 20px; cursor: pointer;"},title:"\u6700\u5c0f\u5316",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowMinimize(c)}},h);m&&null!=m.parentNode?m.parentNode.replaceChild(c,m):this.parentel.appendChild(c);""==c.style.top&&""==c.style.left&&""==c.style.right&&""==c.style.bottom?U.UF.F.windowTopCenter(c):U.UF.F.topWindow(c);this.size()},top:function(){U.UF.F.topWindow(this.form)},size:function(){this.middle.style.height=this.header?this.form.clientHeight-this.header.clientHeight+"px":this.form.clientHeight+"px"}};U.UF.UI.form.windowResize=function(){var a,b,c=US.width,d=US.height,e,f,h,g=U.UF.UI.form.allForm;for(a in g)if(h=g[a].form,"none"!=$(h).css("display")){b={};e=$(h).css("width");f=$(h).css("height");e=-1<e.indexOf("%")?e.toInt()/100:h.offsetWidth/c;f=-1<f.indexOf("%")?f.toInt()/100:h.offsetWidth/d;if(""==h.style.right||"auto"==h.style.right)b.left=h.offsetLeft+(1-e)/2*(document.body.offsetWidth-c)+"px";if(""==h.style.bottom||"auto"==h.style.bottom)b.top=h.offsetTop+(1-f)/2*(document.body.offsetHeight-d)+"px";$(h).addAttrArray({style:b})}};U.UF.UI.form.closeWindows=function(){for(var a in U.UF.UI.form.allForm)U.UF.UI.form.allForm[a].isclose&&U.UF.UI.form.allForm[a].form.close()};Namespace.register("U.MD.UI.music");U.MD.UI.music=function(a,b,c,d){var e=U.MD.UI.music,f;(f=$("#U_MD_UI_music_musicBox")[0])&&f.remove();e.create(d);e.Attr={musicList:a,musicIndex:b,autoplay:c,currentTime:null,endTime:null};e.init()};U.MD.UI.music.Attr=null;U.MD.UI.music.htmlTemplate=' \x3cdiv class\x3d"U_MD_UI_music_leftCont"\x3e\n \x3cdiv class\x3d"U_MD_UI_music_CoverBox"\x3e\n \x3cimg src\x3d"/img/Controls/Audio/pc/\u7535\u8111\u56fe\u6807.png" alt\x3d"" id\x3d"U_MD_UI_music_Cover"\x3e\n \x3c/div\x3e \x3c!-- \u97f3\u4e50\u5c01\u9762\u56fe\u7247 --\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"U_MD_UI_music_rightCont"\x3e\n \x3cdiv class\x3d"U_MD_UI_music_Name" id\x3d"U_MD_UI_music_Name"\x3e\x3c/div\x3e \x3c!-- \u97f3\u4e50\u540d\u5b57 --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_leftBtn" id\x3d"U_MD_UI_music_leftBtn"\x3e\x3c/div\x3e \x3c!-- \u5de6\u6309\u94ae --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_pauseBtn U_MD_UI_music_playBtn" id\x3d"U_MD_UI_music_playBtn"\x3e\x3c/div\x3e \x3c!-- \u64ad\u653e/\u6682\u505c \u6309\u94ae --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_rightBtn" id\x3d"U_MD_UI_music_rightBtn"\x3e\x3c/div\x3e \x3c!-- \u53f3\u6309\u94ae --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_soundOpen" id\x3d"U_MD_UI_music_soundSwitch"\x3e\x3c/div\x3e \x3c!-- \u58f0\u97f3\u5f00\u5173\u6309\u94ae --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_soundBox" id\x3d"U_MD_UI_music_soundBox"\x3e \x3c!-- \u58f0\u97f3\u6761\u76d2\u5b50\u8282\u70b9 --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_soundBar" id\x3d"U_MD_UI_music_soundBar" style\x3d"width: 31px;"\x3e\x3c/div\x3e \x3c!-- \u58f0\u97f3\u6761 --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_soundBall" id\x3d"U_MD_UI_music_soundBall" style\x3d"left: 31px;"\x3e\x3c/div\x3e \x3c!-- \u58f0\u97f3\u7403 --\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"U_MD_UI_music_listBtn"\x3e\x3c/div\x3e \x3c!-- \u53f3\u4e0a\u89d2\u7684\u5217\u8868\u6309\u94ae --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_shrinkBtn" id\x3d"U_MD_UI_music_shrinkBtn"\x3e\x3c/div\x3e \x3c!-- \u53f3\u4e0a\u89d2\u7684\u7f29\u5c0f\u6309\u94ae --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_closeBtn" id\x3d"U_MD_UI_music_closeBtn"\x3e\x3c/div\x3e \x3c!-- \u53f3\u4e0a\u89d2\u7684\u5173\u95ed\u6309\u94ae --\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"U_MD_UI_music_progressBox" id\x3d"U_MD_UI_music_progressBox"\x3e \x3c!-- \u65f6\u95f4\u6761\u76d2\u5b50\u8282\u70b9 --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_progressBar" id\x3d"U_MD_UI_music_progressBar" style\x3d"width: 0.64px;"\x3e\x3c/div\x3e \x3c!-- \u65f6\u95f4\u6761 --\x3e\n \x3cdiv class\x3d"U_MD_UI_music_progressBall" id\x3d"U_MD_UI_music_progressBall" style\x3d"left: 0.64px;"\x3e\x3c/div\x3e \x3c!-- \u65f6\u95f4\u7403 --\x3e\n \x3c/div\x3e\n \x3caudio id\x3d"U_MD_UI_music_audio" autoplay\x3d"" src\x3d""\x3e\x3c/audio\x3e';U.MD.UI.music.create=function(a){U.MD.UI.music.player=new U.UF.UI.form(!1,U.MD.UI.music.htmlTemplate,{style:{border:"none"},id:"U_MD_UI_music_musicBox",className:"U_MD_UI_music_musicBox"},{isclose:!1,isstretching:!1,isenlarge:!1,isnarrow:!1},{style:{height:"13px","background-color":"#cc5b5b"}});$("#U_MD_UI_music_musicBox")[0].style.overflow=""};U.MD.UI.music.init=function(){var a=U.MD.UI.music,b=a.Attr,c=$("#U_MD_UI_music_audio"),d=b.musicList,e=b.musicIndex;c[0].src=d[e].src;$("#U_MD_UI_music_playBtn");var f=$("#U_MD_UI_music_Name");$("#U_MD_UI_music_Cover");b.autoplay||c[0].pause();a.openBtnEvent();a.shrinkBtnEvent();a.soundControl();a.playEvent();a.switchMusic();a.progressControl();c.bind("durationchange",function(){b.endTime=this.duration;e=b.musicIndex;f[0].innerText=d[e].title});c.bind("ended",function(){e=b.musicIndex;e===d.length-1?b.musicIndex=0:b.musicIndex++;e=b.musicIndex;c[0].src=d[e].src})};U.MD.UI.music.openBtnEvent=function(){var a=U.MD.UI.music;$("#U_MD_UI_music_closeBtn").bind("click",function(){var b=$("#U_MD_UI_music_audio");b[0].paused||($("#U_MD_UI_music_playBtn").addClass("U_MD_UI_music_playBtn"),b[0].pause());U.UF.F.closeWindow(a.player.form);$("#U_MD_D_T_taskbar_music").remove()})};U.MD.UI.music.shrinkBtnEvent=function(){$("#U_MD_UI_music_shrinkBtn").bind("click",function(){U.UF.F.windowMinimize(U.MD.UI.music.player.form)})};U.MD.UI.music.playEvent=function(){var a=$("#U_MD_UI_music_playBtn"),b=$("#U_MD_UI_music_audio");a.bind("click",function(){b[0].paused?(a.removeClass("U_MD_UI_music_playBtn"),b[0].play()):(a.addClass("U_MD_UI_music_playBtn"),b[0].pause())})};U.MD.UI.music.switchMusic=function(){var a=U.MD.UI.music.Attr,b=$("#U_MD_UI_music_audio"),c=$("#U_MD_UI_music_rightBtn"),d=$("#U_MD_UI_music_leftBtn"),e=a.musicList,f=a.musicIndex,h=e.length-1;c.bind("click",function(){f=a.musicIndex;f===h?a.musicIndex=0:a.musicIndex++;f=a.musicIndex;b[0].src=e[f].src});d.bind("click",function(){f=a.musicIndex;0===f?a.musicIndex=h:a.musicIndex--;f=a.musicIndex;b[0].src=e[f].src})};U.MD.UI.music.soundControl=function(){var a=U.MD.UI.music,b=$("#U_MD_UI_music_audio"),c=$("#U_MD_UI_music_soundBox"),d=$("#U_MD_UI_music_soundBall"),e=$("#U_MD_UI_music_soundBar"),f=c[0].clientWidth,h=.5,g=$("#U_MD_UI_music_soundSwitch");b[0].volume=h;d[0].style.left=f*h+"px";e[0].style.width=f*h+"px";g.bind("click",function(){a.toggleClass(this,"U_MD_UI_music_soundClose");$(this).hasClass("U_MD_UI_music_soundClose")?(this._volume=b[0].volume,this._soundBallX=parseFloat(d.css("left")),this._soundBarW=parseFloat(e.css("width")),d[0].style.left=0,e[0].style.width=0,b[0].volume=0):this._volume&&(b[0].volume=this._volume,d[0].style.left=this._soundBallX+"px",e[0].style.width=this._soundBarW+"px")});c.bind("mousedown",function(c){var k=a.getOffsetLeft(this),m=k+f;c=c.pageX;c=Math.max(c,k);c=Math.min(c,m);h=Math.round(100*parseFloat((c-k)/f))/100;d[0].style.left=f*h+"px";e[0].style.width=f*h+"px";b[0].volume=h;0>=b[0].volume?g.addClass("U_MD_UI_music_soundClose"):g.removeClass("U_MD_UI_music_soundClose")});d.bind("mousedown",function(a){U.UF.EV.stopBubble(a);var c=a.pageX,k=function(a){U.UF.EV.stopDefault(a);a=a.pageX-c+q;a=Math.max(0,a);a=Math.min(f,a);d[0].style.left=a+"px";e[0].style.width=a+"px";h=Math.round(100*parseFloat(a/f))/100;b[0].volume=h;0>=b[0].volume?g.addClass("U_MD_UI_music_soundClose"):g.removeClass("U_MD_UI_music_soundClose")},n=function(){$(document).unbind("mousemove",k);$(document).unbind("mouseup",n)},q=parseFloat(d.css("left"));$(document).bind("mousemove",k);$(document).bind("mouseup",n)})};U.MD.UI.music.progressControl=function(){var a=U.MD.UI.music,b=a.Attr,c=$("#U_MD_UI_music_audio"),d=$("#U_MD_UI_music_progressBox"),e=$("#U_MD_UI_music_progressBall"),f=$("#U_MD_UI_music_progressBar"),h=$("#U_MD_UI_music_playBtn"),g=d[0].clientWidth,k=!0,l;c.bind("timeupdate",function(){this.paused?h.addClass("U_MD_UI_music_playBtn"):h.removeClass("U_MD_UI_music_playBtn");if(k){l=this.currentTime;var a=Math.round(1E4*parseFloat(l/b.endTime))/1E4;e[0].style.left=g*a+"px";f[0].style.width=g*a+"px"}});d.bind("mousedown",function(d){var h=a.getOffsetLeft(this),k=h+g;d=d.pageX;d=Math.max(d,h);d=Math.min(d,k);_speed=Math.round(1E4*parseFloat((d-h)/g))/1E4;e[0].style.left=g*_speed+"px";f[0].style.width=g*_speed+"px";c[0].currentTime=b.endTime*_speed});e.bind("mousedown",function(a){k=!1;U.UF.EV.stopBubble(a);var d=a.pageX,h=function(a){U.UF.EV.stopDefault(a);a=a.pageX-d+w;a=Math.max(0,a);a=Math.min(g,a);e[0].style.left=a+"px";f[0].style.width=a+"px";_speed=Math.round(1E4*parseFloat(a/g))/1E4;e[0].style.left=g*_speed+"px";f[0].style.width=g*_speed+"px";l=b.endTime*_speed},m=function(){k=!0;c[0].currentTime=l;$(document).unbind("mousemove",h);$(document).unbind("mouseup",m)},w=parseFloat(e.css("left"));$(document).bind("mousemove",h);$(document).bind("mouseup",m)})};U.MD.UI.music.getOffsetLeft=function(a){var b=a.offsetLeft;for(a=a.offsetParent;null!=a;)b+=a.offsetLeft,a=a.offsetParent;return b};U.MD.UI.music.secondToDate=function(a){var b=Math.floor(a/60%60);a=Math.floor(a%60);10>b&&(b="0"+b);10>a&&(a="0"+a);return b+":"+a};U.MD.UI.music.toggleClass=function(a,b){$(a).hasClass(b)?$(a).removeClass(b):$(a).addClass(b)};Namespace.register("U.UF.P");U.UF.P.apply=function(a,b,c){return function(){a.apply(c,b)}};U.UF.P.pagepId=0;U.UF.P.PPage=U.UF.P.page=function(a,b,c,d,e){this.Pageall=this.Index=this.PageNum=0;this.init(a,b,c,d,e)};U.UF.P.page.prototype={init:function(a,b,c,d,e){this.PageNum=d;this.Index=d-1;a=$(a)[0];var f=Math.ceil(b/c);this.Pageall=f;if(a.getElementsByClassName("U_MD_F_Y")[0])return!1;U.UF.P.pagepId++;var h=$$("div",{className:"U_MD_F_Y"},a),g=$$("div",{className:"U_MD_F_YL"},h);b=$$("div",{className:"U_MD_F_YLO U_MD_F_Y_Button",innerHTML:"\u9996\u9875",title:"\u9996\u9875",pid:U.UF.P.pagepId+"1"},g);c=$$("div",{className:"U_MD_F_YLT U_MD_F_Y_Button",title:"\u4e0a\u4e00\u9875",pid:U.UF.P.pagepId+"3"},g);var k=$$("div",{className:"U_MD_F_YN"},g),l;a=Math.min(f,Math.max(d+5,10));for(l=Math.max(1,Math.min(d-5,f-10));l<=a;l++)(function(a,b){var c=$$("div",{innerHTML:a,pid:U.UF.P.pagepId+"5"},k);a==d&&(c.className="U_MD_F_Y_Button_Active");c.onclick=U.UF.P.apply(function(a){U.UF.P.centerEle(b,c)},[l],b)})(l,this);a=$$("div",{className:"U_MD_F_YLS U_MD_F_Y_Button",title:"\u4e0b\u4e00\u9875",pid:U.UF.P.pagepId+"4"},g);var g=$$("div",{className:"U_MD_F_YLF U_MD_F_Y_Button",innerHTML:"\u5c3e\u9875",title:"\u5c3e\u9875",pid:U.UF.P.pagepId+"2"},g),m=$$("div",{className:"U_MD_F_YR"},h);$$("span",{innerHTML:"\u5230"},m);h=$$("input",{type:"text"},m);$$("span",{innerHTML:"\u9875"},m);var n=$$("div",{className:"U_MD_F_YRZ",pid:U.UF.P.pagepId+"6",innerHTML:"\u786e\u5b9a"},m);if(this.PageNum<f+1)for(var m=$(".list"+U.UF.P.pagepId),q=1;q<m.length+1;q++)this.PageNum==q&&$(m[this.PageNum-1]).addClass("U_MD_F_Y_Button_Active");b.onclick=U.UF.P.apply(this.fPage,[b,f,e],this);c.onclick=U.UF.P.apply(this.fPage,[c,f,e],this);U.UF.P.centerEle=function(a,b){U.UF.P.apply(a.fPage,[b,f,e],a)()};a.onclick=U.UF.P.apply(this.fPage,[a,f,e],this);g.onclick=U.UF.P.apply(this.fPage,[g,f,e],this);n.onclick=U.UF.P.apply(this.fPage,[n,f,e,h],this);h.onkeyup=function(){if("13"==event.keyCode)n.onclick()}},fPage:function(a,b,c,d){_el1=a.pid;_el=_el1.charAt(_el1.length-1);_list=5==_el?$($(a).Parent()).Parent().children[2].children:6==_el?$($(a).Parent()).Parent().children[0].children[2].children:$(a).Parent().children[2].children;$(".U_MD_F_Y_Button_Active").removeClass("U_MD_F_Y_Button_Active");1==_el?(0==this.Index&&this.Index++,1<this.PageNum?($(_list[0]).addClass("U_MD_F_Y_Button_Active"),this.Index=0,this.PageNum=1,this.pagefun(this.PageNum,_list),c(this.PageNum)):$(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active")):2==_el?this.PageNum<this.Pageall?(this.Index=b,this.PageNum=this.Pageall,this.pagefun(this.PageNum,_list),c(this.PageNum)):$(_list[this.Index]).addClass("U_MD_F_Y_Button_Active"):3==_el?0<this.Index?($(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active"),this.PageNum--,this.pagefun(this.PageNum,_list),c(this.PageNum)):$(_list[this.Index]).addClass("U_MD_F_Y_Button_Active"):4==_el?this.PageNum<this.Pageall?($(_list[++this.Index]).addClass("U_MD_F_Y_Button_Active"),this.PageNum++,this.pagefun(this.PageNum,_list),c(this.PageNum)):$(_list[this.Index]).addClass("U_MD_F_Y_Button_Active"):5==_el?(this.pagefun(a,_list),c(this.PageNum)):6==_el&&d.value.match(/^[0-9]*$/)&&(1<=d.value&&d.value<=this.Pageall?(this.PageNum=d.value,this.pagefun(this.PageNum,_list),c(this.PageNum)):(U.alert("\u65e0\u6548\u7684\u8f93\u5165"),$(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")))},pagefun:function(a,b){var c=parseInt(a.innerHTML)||a;$(".U_MD_F_Y_Button_Active").removeClass("U_MD_F_Y_Button_Active");var d=Math.ceil(b.length/2),e,f=null,h=parseInt($(b)[$(b).length-1].innerText);if(c<d||c>this.Pageall-d&&c<=this.Pageall)if(c>this.Pageall-d&&c<=this.Pageall){var g=this;[].__proto__.forEach.apply($(b),[function(a,b,c){a.innerText=g.Pageall+1-c.length+b}])}else c<d&&[].__proto__.forEach.apply($(b),[function(a,b,c){a.innerText=b+1}]);else f=c-parseInt(b[d-1].innerText),[].__proto__.forEach.apply($(b),[function(a,b,c){a.innerText=parseInt(a.innerText)+f}]),this.Index=d-1;[].__proto__.forEach.apply(b,[function(a,b,d){parseInt(a.innerHTML)==c&&(e=b)}]);this.Index=e;this.PageNum=c;$(b[this.Index]).addClass("U_MD_F_Y_Button_Active")}};Namespace.register("U.MD.UI.picture");U.MD.UI.picture=function(a,b){$("#U_MD_UI_PictureForm")[0]?("none"===$("#U_MD_UI_PictureForm")[0].style.display&&($("#U_MD_UI_PictureForm")[0].style.display="block"),U.MD.UI.picture.DIVBOX={USERPICS:a,PICAREA:$("#U_MD_UI_Picture_picArea")[0],PICBOX:$("#U_MD_UI_Picture_picBox")[0],FA:$("#U_MD_UI_Picture_fa")[0]},U.MD.UI.picture.initloadPic(a,b)):a.length&&(U.MD.UI.picture.create(a,b),U.MD.UI.picture.DIVBOX.PICAREA.onmousedown=function(a){U.MD.UI.picture.mDown(U.MD.UI.picture.DIVBOX.PICAREA,U.MD.UI.picture.DIVBOX.PICBOX,a)},U.MD.UI.picture.wheel())};U.MD.UI.picture.FA=[{src:"/img/pictureView/add.png",id:"U_MD_UI_Picture_add"},{src:"/img/pictureView/narrow.png",id:"U_MD_UI_Picture_narrow"},{src:"/img/pictureView/prev.png",id:"U_MD_UI_Picture_prev"},{src:"/img/pictureView/next.png",id:"U_MD_UI_Picture_next"},{src:"/img/pictureView/turnLeft.png",id:"U_MD_UI_Picture_turnLeft"},{src:"/img/pictureView/turnRight.png",id:"U_MD_UI_Picture_turnRight"}];U.MD.UI.picture.picnumber=0;U.MD.UI.picture.rotatenum=0;U.MD.UI.picture.originalSize=[];U.MD.UI.picture.pics=[];U.MD.UI.picture.scalingvalue=50;U.MD.UI.picture.focuspicsrc="";U.MD.UI.picture.focuspicsize="";U.MD.UI.picture.create=function(a,b){var c=$$("div",{style:{height:"100%",overflow:"hidden"},id:"U_MD_UI_Picture_bossBox"}),d=$$("div",{id:"U_MD_UI_Picture_picBox",className:"U_MD_UI_Picture_picBox"},c);$$("div",{id:"U_MD_UI_Picture_picArea",className:"U_MD_UI_Picture_picArea"},d);$$("div",{style:{height:"60px",width:"100%",position:"absolute",bottom:"0","background-color":"#ffffff","text-align":"center"},id:"U_MD_UI_Picture_fa"},c);new U.UF.UI.form("\x3cspan id\x3d'U_MD_UI_Picture_imgInfo'\x3e\x3c/span\x3e - \x3cspan id\x3d'U_MD_UI_Picture_r'\x3e100%\x3c/span\x3e",c,{style:{width:document.documentElement.clientWidth/1.5+"px",height:document.documentElement.clientHeight/1.5+"px",position:"absolute"},id:"U_MD_UI_PictureForm"},{isdrag:!0,isstretching:!0,isenlarge:!0,isclose:!0,isnarrow:!0},{style:{padding:"10px","background-color":"#22508c"}});d.style.height=d.clientHeight-60+"px";U.MD.UI.picture.DIVBOX={USERPICS:a,PICAREA:$("#U_MD_UI_Picture_picArea")[0],PICBOX:$("#U_MD_UI_Picture_picBox")[0],FA:$("#U_MD_UI_Picture_fa")[0]};for(var e=$$("div",{style:{display:"inline-block","line-height":"40px","margin-top":"10px"}},U.MD.UI.picture.DIVBOX.FA),f=0;f<U.MD.UI.picture.FA.length;f++)$$("span",{style:{"background-image":"url("+U.MD.UI.picture.FA[f].src+")",width:"40px",height:"40px",display:"inline-block",margin:"0 15px"},id:U.MD.UI.picture.FA[f].id},e);U.MD.UI.picture.initloadPic(null,b);$("#U_MD_UI_Picture_add")[0].onclick=U.UF.C.apply(this,function(){this.changeSize(U.MD.UI.picture.scalingvalue,U.MD.UI.picture.rotatenum)});$("#U_MD_UI_Picture_narrow")[0].onclick=U.UF.C.apply(this,function(){this.changeSize(-U.MD.UI.picture.scalingvalue,U.MD.UI.picture.rotatenum)});$("#U_MD_UI_Picture_prev")[0].onclick=U.UF.C.apply(this,function(){this.prevPic(0)});$("#U_MD_UI_Picture_next")[0].onclick=U.UF.C.apply(this,function(){this.prevPic(1)});$("#U_MD_UI_Picture_turnLeft")[0].onclick=U.UF.C.apply(this,function(){this.turn(1)});$("#U_MD_UI_Picture_turnRight")[0].onclick=U.UF.C.apply(this,function(){this.turn(0)});c.onresize=function(){d.style.height=c.clientHeight-60+"px"};d.onresize=function(){U.MD.UI.picture.checkHeight()}};U.MD.UI.picture.initloadPic=function(a,b){a?(U.MD.UI.picture.DIVBOX.PICAREA.innerHTML="",U.MD.UI.picture.DIVBOX.PICAREA.style=null,U.MD.UI.picture.picnumber=b||0,U.MD.UI.picture.rotatenum=0,U.MD.UI.picture.DIVBOX.USERPICS=a):U.MD.UI.picture.picnumber=0<=b?b:0;U.MD.UI.picture.createPic();U.MD.UI.picture.pics=$("#U_MD_UI_Picture_picArea \x3e ul \x3e li \x3e img");U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].onload=U.UF.C.apply(this,function(){this.originalSize=this.getImgNaturalDimensions(U.MD.UI.picture.pics[U.MD.UI.picture.picnumber]);this.checkHeight()})};U.MD.UI.picture.createPic=function(){for(var a=$$("ul",{id:"ul"},U.MD.UI.picture.DIVBOX.PICAREA),b=0;b<U.MD.UI.picture.DIVBOX.USERPICS.length;b++){var c=$$("li",{},a);"object"===typeof U.MD.UI.picture.DIVBOX.USERPICS[b]?b===U.MD.UI.picture.picnumber?($$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[b].src},c),U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[b].src,U.MD.UI.picture.DIVBOX.USERPICS[b].size&&(U.MD.UI.picture.focuspicsize=U.MD.UI.picture.DIVBOX.USERPICS[b].size)):$$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[b].src,style:{display:"none"}},c):"string"===typeof U.MD.UI.picture.DIVBOX.USERPICS[b]&&(b===U.MD.UI.picture.picnumber?($$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[b]},c),U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[b]):$$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[b],style:{display:"none"}},c))}};U.MD.UI.picture.turn=function(a){a?(U.MD.UI.picture.rotatenum--,0>U.MD.UI.picture.rotatenum?U.MD.UI.picture.rotatenum=3:U.MD.UI.picture.rotatenum):(U.MD.UI.picture.rotatenum++,3<U.MD.UI.picture.rotatenum?U.MD.UI.picture.rotatenum=0:U.MD.UI.picture.rotatenum);U.MD.UI.picture.rotating()};U.MD.UI.picture.rotating=function(){var a="rotate("+90*U.MD.UI.picture.rotatenum+"deg)";if(0!==U.MD.UI.picture.rotatenum%2){if(U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-20+"px",U.MD.UI.picture.compatibleRotate(U.MD.UI.picture.DIVBOX.PICAREA,a),U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+10+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2+"px","Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))U.MD.UI.picture.DIVBOX.PICAREA.style.top="10px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+"px"}else U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style",""),U.MD.UI.picture.compatibleRotate(U.MD.UI.picture.DIVBOX.PICAREA,a),U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.originalSize[0]>U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150?"1290px":U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150,U.MD.UI.picture.checkHeight();$("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"};U.MD.UI.picture.compatibleRotate=function(a,b){a.style.webkitTransform=b;a.style.MozTransform=b;a.style.mturnsTransform=b;a.style.OTransform=b;a.style.transform=b;if("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))a.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation\x3d"+Math.abs(U.MD.UI.picture.rotatenum)+")"};U.MD.UI.picture.prevPic=function(a){U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="none";a?(U.MD.UI.picture.picnumber++,U.MD.UI.picture.picnumber>U.MD.UI.picture.pics.length-1&&(U.MD.UI.picture.picnumber=0)):(U.MD.UI.picture.picnumber--,0>U.MD.UI.picture.picnumber&&(U.MD.UI.picture.picnumber=U.MD.UI.picture.pics.length-1));U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size&&(U.MD.UI.picture.focuspicsize=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size);U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src&&(U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src);U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="block";U.MD.UI.picture.originalSize=U.MD.UI.picture.getImgNaturalDimensions(U.MD.UI.picture.pics[U.MD.UI.picture.picnumber]);U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style","");U.MD.UI.picture.checkHeight();U.MD.UI.picture.rotatenum=0};U.MD.UI.picture.checkHeight=function(){var a=U.MD.UI.picture.originalSize[0]/U.MD.UI.picture.originalSize[1];U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.originalSize[1]>U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40||U.MD.UI.picture.originalSize[0]>U.MD.UI.picture.DIVBOX.PICBOX.clientWidth?Math.floor((U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40)*a)+"px":U.MD.UI.picture.originalSize[0]+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.left=(U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.top=(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px";"object"===typeof U.MD.UI.picture.DIVBOX.USERPICS[0]?$("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.focuspicsrc.toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px "+U.MD.UI.picture.focuspicsize+")":"string"===typeof U.MD.UI.picture.DIVBOX.USERPICS[0]&&($("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px)");$("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"};U.MD.UI.picture.getImgNaturalDimensions=function(a){var b;if(a.naturalWidth)b=a.naturalWidth,a=a.naturalHeight;else{var c=new Image;c.src=a.src;b=c.width;a=c.height}return[b,a]};U.MD.UI.picture.drag=function(a,b){a.onmousedown=function(c){U.MD.UI.picture.mDown(a,b,c)}};U.MD.UI.picture.mDown=function(a,b,c){c=c||window.event;var d=c.clientX-a.offsetLeft,e=c.clientY-a.offsetTop;b.onmousemove=function(c){U.MD.UI.picture.mMove(a,b,d,e,c)};b.onmouseup=function(a){b.onmousemove=null;b.onmouseup=null};c.preventDefault?c.preventDefault():(a.ondragstart=function(){return!1},a.onselectstart=function(){return!1})};U.MD.UI.picture.mMove=function(a,b,c,d,e){e=e||window.event;c=e.clientX-c;d=e.clientY-d;c=0===U.MD.UI.picture.rotatenum%2?Math.min(b.clientWidth-b.clientWidth/8,c):Math.min(b.clientWidth-b.clientWidth/8-a.clientWidth/2+a.clientHeight/2,c);c=0===U.MD.UI.picture.rotatenum%2?Math.max(-a.clientWidth+b.clientWidth/8,c):Math.max(-a.clientWidth+b.clientWidth/8+a.clientWidth/2-a.clientHeight/2,c);d=0===U.MD.UI.picture.rotatenum%2?Math.min(b.clientHeight-b.clientHeight/8,d):Math.min(b.clientHeight-b.clientHeight/8+(a.clientWidth-a.clientHeight)/2,d);d=0===U.MD.UI.picture.rotatenum%2?Math.max(-a.clientHeight+b.clientHeight/8,d):Math.max(-a.clientHeight+b.clientHeight/8-(a.clientWidth-a.clientHeight)/2,d);a.style.left=c+"px";a.style.top=d+"px"};U.MD.UI.picture.wheel=function(){U.MD.UI.picture.DIVBOX.PICBOX.onmousewheel=function(){this.getWheelDalta()}.bind(this)};U.MD.UI.picture.getWheelDalta=function(a){a=a||window.event;var b=0;a.wheelDelta?(b=a.wheelDelta/120,window.opera&&(b=-b)):a.detail&&(b=-a.detail/3);0<b?U.MD.UI.picture.changeSize(U.MD.UI.picture.scalingvalue):U.MD.UI.picture.changeSize(-U.MD.UI.picture.scalingvalue);a=event;a.preventDefault?a.preventDefault():a.returnValue=!1};U.MD.UI.picture.changeSize=function(a){var b,c,d;c=U.MD.UI.picture.DIVBOX.PICAREA.clientHeight;d=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth;b=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+a;if(!(20>b/U.MD.UI.picture.originalSize[0]*100&&200>b||1E3<(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+a)/U.MD.UI.picture.originalSize[1]*100)){U.MD.UI.picture.DIVBOX.PICAREA.style.width=b+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight-c)/2+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-a/2+"px";("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&0!==U.MD.UI.picture.rotatenum%2&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/2-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2+"px");a=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop>=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||Math.abs(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetTop)<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&0!==U.MD.UI.picture.rotatenum%2;b=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+(U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2)<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&0!==U.MD.UI.picture.rotatenum%2;var e=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft>=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&0!==U.MD.UI.picture.rotatenum%2;if(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&0!==U.MD.UI.picture.rotatenum%2)U.MD.UI.picture.DIVBOX.PICAREA.style.top=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px";a&&(U.MD.UI.picture.DIVBOX.PICAREA.style.top=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px");b&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px");e&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px");$("#U_MD_UI_Picture_r")[0].innerText=Math.floor(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/U.MD.UI.picture.originalSize[0]*100)+"%"}};Namespace.register("U.MD.UI.video");U.MD.UI.video=function(a,b,c,d,e){a=U.MD.UI.video.appendEle(a,b,c,d||!1,e);U.MD.UI.video.addEvent(a,null,null,!1,c,b,!1);return a};U.MD.UI.video.appendEle=function(a,b,c,d,e){var f={};f.videoDiv=$$("div",{className:"U_MD_UI_video_VideoDiv",style:{width:b+"px",height:c+"px"}},e);f.video=$$("video",{src:a,className:"U_MD_UI_video_VideoMain",autoplay:d,preload:"auto"},f.videoDiv);f.controls=$$("div",{className:"U_MD_UI_video_VideoControls"},f.videoDiv);f.playPauseBtn=$$("div",{className:"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"},f.controls);f.currentTimeDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00"},f.controls);f.progress=$$("div",{className:"U_MD_UI_video_Progress"},f.controls);f.progressCurrentTime=$$("div",{className:"U_MD_UI_video_ProgressCurrentTime"},f.progress);f.progressCircle=$$("div",{className:"U_MD_UI_video_ProgressCircle"},f.progressCurrentTime);f.DurationDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00",onselectstart:"return false;"},f.controls);f.soundControls=$$("div",{className:"U_MD_UI_video_SoundControls"},f.controls);f.soundProgress=$$("div",{className:"U_MD_UI_video_SoundProgress"},f.controls);f.soundProgressCurrent=$$("div",{className:"U_MD_UI_video_SoundProgressCurrent",style:{width:"100%"}},f.soundProgress);f.fullScreenBtn=$$("div",{className:"U_MD_UI_video_FullScreen"},f.controls);return f};U.MD.UI.video.addEvent=function(a,b,c,d,e,f,h){a.playPauseBtn.onclick=function(b){U.MD.UI.playPauseBtnClick(b,a)};void 0!==a.videoDiv.onwebkitfullscreenchange?a.videoDiv.onwebkitfullscreenchange=function(){var b=U.MD.UI.video.fullscreenChange(h,e,f,a);h=b[0];e=b[1];f=b[2]}:void 0!==a.videoDiv.onfullscreenchange?a.videoDiv.onfullscreenchange=function(){var b=U.MD.UI.video.fullscreenChange(h,e,f,a);h=b[0];e=b[1];f=b[2]}:void 0!==a.videoDiv.onmozfullscreenchange&&(a.videoDiv.onmozfullscreenchange=function(){var b=U.MD.UI.video.fullscreenChange(h,e,f,a);h=b[0];e=b[1];f=b[2]});a.fullScreenBtn.onclick=function(){U.MD.UI.video.fullscreenClick(h,a)};a.progressCircle.onmousedown=function(b){U.MD.UI.video.circleMove(b,d,a)};a.soundProgress.onmousedown=function(b){U.MD.UI.video.soundProgressMove(b,a,d)};a.progress.onmousedown=function(b){U.MD.UI.video.progressMove(b,a,d)};a.video.onpause=function(){a.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon";clearInterval(b)};a.video.onplay=function(){a.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PauseIcon";b=U.MD.UI.video.setInterval(d,a)};a.video.oncanplay=function(){U.MD.UI.video.flushInfo(d,a.currentTimeDiv,a.DurationDiv,a.progressCurrentTime,a.soundProgressCurrent,a.video)};a.soundControls.onclick=function(){c=U.MD.UI.video.muteClick(a,c,d)};a.videoDiv.onclick=function(){}};U.MD.UI.video.displayControls=function(a,b){var c=a.target;if(c===b.video||c===b.videoDiv)b.controls.style.display="none"===b.controls.style.display?"block":"none"};U.MD.UI.playPauseBtnClick=function(a,b){"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"===a.target.className?b.video.play():b.video.pause()};U.MD.UI.video.muteClick=function(a,b,c){0!==a.video.volume?(b=a.video.volume,a.video.volume=0,U.MD.UI.video.flushInfo(c,a.currentTimeDiv,a.DurationDiv,a.progressCurrentTime,a.soundProgressCurrent,a.video)):0===a.video.volume&&null!==b&&(a.video.volume=b,b=null,U.MD.UI.video.flushInfo(c,a.currentTimeDiv,a.DurationDiv,a.progressCurrentTime,a.soundProgressCurrent,a.video));return b};U.MD.UI.video.fullscreenClick=function(a,b){a?document.exitFullScreen?document.exitFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozExitFullScreen&&document.mozExitFullScreen():b.videoDiv.requestFullScreen?b.videoDiv.requestFullScreen():b.videoDiv.webkitRequestFullScreen?b.videoDiv.webkitRequestFullScreen():b.videoDiv.mozRequestFullScreen&&b.videoDiv.mozRequestFullScreen()};U.MD.UI.video.fullscreenChange=function(a,b,c,d){a?(d.videoDiv.style.height=b+"px",d.videoDiv.style.width=c+"px",d.videoDiv.style.position="",d.videoDiv.style.top="",d.videoDiv.style.left="",d.videoDiv.style.zIndex=""):(d.videoDiv.style.height="100vh",d.videoDiv.style.width="100vw",d.videoDiv.style.position="absolute",d.videoDiv.style.top="0",d.videoDiv.style.left="0",d.videoDiv.style.zIndex="999");return[!a,b,c]};U.MD.UI.video.timeFormat=function(a){var b=parseInt(a%60);a=parseInt(parseInt(a)/60);10>b?b="0"+b:b;10>a?a="0"+a:a;return a+":"+b};U.MD.UI.video.flushInfo=function(a,b,c,d,e,f){a||(b.innerHTML=U.MD.UI.video.timeFormat(f.currentTime),c.innerHTML=U.MD.UI.video.timeFormat(f.duration),d.style.width=f.currentTime/f.duration*100+"%",e.style.width=100*f.volume+"%")};U.MD.UI.video.getScreenLeft=function(a){var b=a.offsetLeft;for(a=a.offsetParent;null!=a;)b+=a.offsetLeft,a=a.offsetParent;return b};U.MD.UI.video.setInterval=function(a,b){return setInterval(function(){U.MD.UI.video.flushInfo(a,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video)},500)};U.MD.UI.video.circleMove=function(a,b,c){var d=a.pageX,e=a.currentTarget.parentElement,f=e.parentElement;c.videoDiv.onmousemove=function(a){if(!(0>a.pageX-U.MD.UI.video.getScreenLeft(f)||a.pageX-U.MD.UI.video.getScreenLeft(f)>f.offsetWidth)){var b=a.pageX-d;!(e.offsetWidth+b>f.offsetWidth||0>e.offsetWidth+b)&&a.currentTarget.children[0].offsetWidth<=a.currentTarget.children[0].offsetWidth&&(e.style.width=(e.offsetWidth+b)/f.offsetWidth*100+"%",c.video.currentTime=(e.offsetWidth+b)/f.offsetWidth*c.video.duration);d=a.pageX}};c.videoDiv.onmouseup=function(){c.videoDiv.onmousemove=function(){};c.videoDiv.onmouseup=function(){}}};U.MD.UI.video.soundProgressMove=function(a,b,c){a.preventDefault();var d=a.currentTarget,e=a.pageX,f=b.soundProgressCurrent;b.video.volume=a.offsetX/d.offsetWidth;U.MD.UI.video.flushInfo(c,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video);b.videoDiv.onmousemove=function(a){if(!(0>a.pageX-U.MD.UI.video.getScreenLeft(b.soundProgress)||a.pageX-U.MD.UI.video.getScreenLeft(b.soundProgress)>b.soundProgress.offsetWidth)){var c=a.pageX-e;f.offsetWidth+c>d.offsetWidth||0>f.offsetWidth+c||(f.style.width=(f.offsetWidth+c)/d.offsetWidth*100+"%",b.video.volume=f.offsetWidth/d.offsetWidth);e=a.pageX}};b.videoDiv.onmouseup=function(a){b.videoDiv.onmousemove=function(){};b.videoDiv.onmouseup=function(){}}};U.MD.UI.video.progressMove=function(a,b,c){a.preventDefault();if("U_MD_UI_video_ProgressCircle"!==a.target.className){var d=a.pageX,e=b.progressCurrentTime;b.video.currentTime=(a.layerX||a.offsetX)/a.currentTarget.offsetWidth*b.video.duration;U.MD.UI.video.flushInfo(c,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video);b.videoDiv.onmousemove=function(a){if(!(0>a.pageX-U.MD.UI.video.getScreenLeft(b.progress)||a.pageX-U.MD.UI.video.getScreenLeft(b.progress)>b.progress.offsetWidth)){c=!0;var f=a.pageX-d;e.offsetWidth+f>b.progress.offsetWidth||0>e.offsetWidth+f||(e.style.width=(e.offsetWidth+f)/b.progress.offsetWidth*100+"%",b.video.currentTime=(e.offsetWidth+f)/b.progress.offsetWidth*b.video.duration);d=a.pageX}};b.videoDiv.onmouseup=function(){c=!1;U.MD.UI.video.flushInfo(c,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video);b.videoDiv.onmousemove=function(){};b.videoDiv.onmouseup=function(){}}}};Namespace.register("U.MD.UI.BTree");U.MD.UI.BTree=function(a,b,c,d,e,f,h,g,k,l,m){U.MD.UI.BTree.jsonStartLeft(a,f[0],b);U.MD.UI.BTree.jsonStartRight(f[1],b,c,d,e,h,g,k,l,m)};U.MD.UI.BTree.treeCreate=function(a,b,c){for(var d=0;d<a.length;d++){var e=$$("ul",{className:"U_MD_UI_Tree_a "+a[d].parentID},b),f=$$("li",{id:a[d].id,parentid:a[d].parentid,className:"U_MD_UI_Tree_listyle",parentid:a[d].id,deep:a[d].deep},e),h=$$("img",{onerror:U.MD.C.imgError,src:a[d].img_url,className:"U_MD_UI_Tree_imgstyle"},f);$$("span",{innerHTML:a[d].name,className:"spanstyle"},f);e.style.display="none";"1"==a[d].deep&&(e.style.display="block");h.aa=!1;var g=document.getElementsByClassName("U_MD_UI_Tree_a "+a[d].parentID)[0];e.style.display=g.style.display;f.onclick=function(){c(this);g=document.getElementsByClassName("U_MD_UI_Tree_a "+this.parentid);if(!0===h.aa){h.aa=!1;for(var a=0;a<g.length;a++)g[a].style.display="none"}else for(h.aa=!0,a=0;a<g.length;a++)g[a].style.display="block"};a[d].child&&U.MD.UI.BTree.treeCreate(a[d].child,e,c)}};U.MD.UI.BTree.JsonSelect=function(a,b){var c;for(c=0;c<a.length;c++){if(0==b)return a;if(a[c].id==b)return c=a[c].child;if(a[c].child)var d=U.MD.UI.BTree.JsonSelect(a[c].child,b)}return d};U.MD.UI.BTree.DirectoryCreate=function(a,b,c,d,e,f,h,g,k,l,m){0==l?(c[1].style.display="none",c[2].style.display="none"):(c[2].style.display="none",c[l].style.display="block");var n="\u4fee\u6539",q="\u5220\u9664";g&&k&&(q=n="");b[l].innerHTML="";c[l].parentID=d;c[l].deep=l+1;m&&(b[m].innerHTML="");if(a)for(var u=0;u<a.length;u++){var w=$$("ul",{className:"U_MD_UI_Tree_styleul",parentid:a[u].parentID,deep:a[u].deep},b[l]),p=$$("li",{className:"U_MD_UI_Tree_styleli",innerHTML:a[u].name,parentid:a[u].id},w),y=$$("input",{type:"button",pid:a[u].id,parentid:a[u].parentID,innerHTML:n,className:"U_MD_UI_Tree_button"},w),w=$$("input",{type:"button",pid:a[u].id,parentid:a[u].parentID,innerHTML:q,className:"U_MD_UI_Tree_button1"},w);y.onclick=function(){f(this,b,c,d,e,f,h,g,k,l)};w.onclick=function(){e(this,b,c,d,e,f,h,g,k,l)};p.onclick=function(){m?U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(a,this.parentid),b,c,this.parentid,e,f,h,g,k,m):2!=l&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(a,this.parentid),b,c,this.parentid,e,f,h,g,k,1,2)}}n=$(".U_MD_UI_Tree_add");n[l]&&c[l].removeChild(n[l]);$$("div",{className:"U_MD_UI_Tree_add",innerHTML:"\u6dfb\u52a0\u65b0\u5206\u7c7b"},c[l]).onclick=function(){h(this,b,c,d,e,f,h,g,k,l)}};U.MD.UI.BTree.jsonAdd=function(a,b){var c=b.parentID;if("0"==c)return a[a.length]=b,a;for(var d=0;d<a.length;d++){if(a[d].id==c){a[d].child||(a[d].child=[]);a[d].child[a[d].child.length]=b;break}if(a[d].child){var e=U.MD.UI.BTree.jsonAdd(a[d].child,b);a[d].child=e}}return a};U.MD.UI.BTree.jsonStartA=function(a,b,c,d,e,f,h,g,k,l,m){json=[];for(var n=0;n<a.length;n++)U.MD.UI.BTree.jsonAdd(json,a[n]);f.innerHTML="";U.MD.UI.BTree.jsonStartRight(f,b,c,d,e,h,g,k,l,m)};U.MD.UI.BTree.jsonStartRight=function(a,b,c,d,e,f,h,g,k,l){a=$$("ul",{className:"U_MD_UI_Tree_a "},a);a=$$("li",{className:"U_MD_UI_Tree_listyle",yid:"1"},a);$$("img",{onerror:U.MD.C.imgError,src:g,className:"U_MD_UI_Tree_imgstyle"},a);$$("span",{innerHTML:"\u76ee\u5f55\u7ba1\u7406",className:"U_MD_UI_Tree_spanstyle"},a);a.onclick=function(){b(this);U.MD.UI.BTree.DirectoryCreate(json,f,h,0,function(a,b,d,e,f,g,h,k,l,v){if(c(a.pid)){json=U.MD.UI.BTree.jsonDelete(json,a.pid);var m=$("#"+a.pid)[0];m&&m.parentNode.remove();1==v&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,a.parentid),b,d,e,f,g,h,k,l,1,2);2==v&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,a.parentid),b,d,e,f,g,h,k,l,2);0==v&&U.MD.UI.BTree.DirectoryCreate(json,b,d,e,f,g,h,k,l,0)}},function(a,b,c,e,f,g,h,k,l,v){var m=d(U.MD.UI.BTree.jsonSelectA(json,a.pid));json=U.MD.UI.BTree.jsonUpdate(json,m);var n=$("#"+a.pid)[0];n&&(n.childNodes[0].src=m.img_url,n.childNodes[1].innerHTML=m.name);1==v&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,a.parentid),b,c,e,f,g,h,k,l,1,2);2==v&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,a.parentid),b,c,e,f,g,h,k,l,2);0==v&&U.MD.UI.BTree.DirectoryCreate(json,b,c,e,f,g,h,k,l,0)},function(a,c,d,f,g,h,k,l,r,v){var m={};m.parentID=a.parentNode.parentID;m.deep=a.parentNode.deep;a=e(m);var n;if(a){if(n=$(".U_MD_UI_Tree_a")[1])n=0==a.parentID?$(".U_MD_UI_Tree_a")[0].parentNode:$("#"+a.parentID)[0].parentNode,_js=[],_js[0]=a,U.MD.UI.BTree.treeCreate(_js,n,b);json=U.MD.UI.BTree.jsonAdd(json,a);1==v&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,m.parentID),c,d,f,g,h,k,l,r,1,2);2==v&&U.MD.UI.BTree.DirectoryCreate(U.MD.UI.BTree.JsonSelect(json,m.parentID),c,d,f,g,h,k,l,r,2);0==v&&U.MD.UI.BTree.DirectoryCreate(json,c,d,f,g,h,k,l,r,0)}},k,l,0)}};U.MD.UI.BTree.jsonStartLeft=function(a,b,c){json=[];for(var d=0;d<a.length;d++)U.MD.UI.BTree.jsonAdd(json,a[d]);b.innerHTML="";U.MD.UI.BTree.treeCreate(json,b,c)};U.MD.UI.BTree.jsonDelete=function(a,b){for(var c=0;c<a.length;c++)if(a[c].id==b){a.splice(c,1);break}else a[c].child&&(a[c].child=U.MD.UI.BTree.jsonDelete(a[c].child,b));return a};U.MD.UI.BTree.jsonSelectA=function(a,b){for(var c=0;c<a.length;c++){if(a[c].id==b)return a[c];if(a[c].child){var d=U.MD.UI.BTree.jsonSelectA(a[c].child,b);if(d)return d}}return!1};U.MD.UI.BTree.jsonUpdate=function(a,b){for(var c=0;c<a.length;c++){if(a[c].id==b.id)return a[c]=b,a;if(a[c].child){var d=U.MD.UI.BTree.jsonUpdate(a[c].child,b);if(d)return a[c].child=d,a}}return!1};U.MD.UI.BTree.createID=function(a){for(var b=0,c=0;c<a.length;c++)parseInt(a[c].id)>b&&(b=parseInt(a[c].id));return b};Namespace.register("U.MD.UI.editor");U.MD.UI.Editor=U.MD.UI.editor=function(a,b){U.UF.DL.asynLoadCss({rel:"stylesheet",type:"text/css",href:"/css/Controls/Complex/Editor.css"});U.MD.UI.editor.createEditor(a);U.UF.E.initEditor($(".editor",a)[0],b);U.MD.UI.editor.EditorEventBind(a);U.MD.UI.editor.operateJson.editor=$(".editor",a)[0];return U.MD.UI.editor.operateJson};U.MD.UI.editor.operateJson={loadContent:function(a){this.editor.focus();U.UF.E.onpaste(null,this.editor,a)},getContent:function(){return this.editor.innerHTML}};U.MD.UI.editor.createEditor=function(a){a.innerHTML='\x3cdiv class\x3d\'toolbar\' style\x3d"width: 788px;background-color: #f5f5f5;border: 1px solid #c7d3e1;line-height: 0;padding: 6px;height: 25px;"\x3e\n \x3cbutton class\x3d"last" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/left.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"future" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/right.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n\x3cdiv class\x3d\'setFont\' style\x3d\'float: left;margin: 0 3px;position: relative;padding:0px\'\x3e\x3c/div\x3e \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n\x3cdiv class\x3d\'setSize\' style\x3d\'float: left;margin: 0 3px;position: relative;padding:0px\'\x3e\x3c/div\x3e \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3clabel style\x3d"float: left;margin: 0 3px;position: relative;"\x3e\n \x3cbutton class\x3d"pic" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/pic.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cinput multiple accept\x3d\'image/*\' type\x3d\'file\' class\x3d\'picUpload\' style\x3d\'display: none;\' /\x3e\n \x3c/label\x3e\n \x3clabel style\x3d"float: left;margin: 0 3px;position: relative;"\x3e\n \x3cbutton class\x3d"attachment" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;width: 25px;height: 25px;background: url(/img/YS2017.png) no-repeat;background-position: -1054px -593.5px;"\x3e\x3c/button\x3e\n \x3cinput multiple\x3d"" type\x3d"file" class\x3d"attachmentUpload" style\x3d"display: none;"\x3e\n \x3c/label\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cdiv style\x3d"float: left;margin: 0 3px;position: relative;padding:0px"\x3e\n \x3cbutton class\x3d"fontColor" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/fontColor.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cdiv class\x3d\'fontColorBar colorBar\' style\x3d\'display:none;position: absolute;\'\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cdiv style\x3d"float: left;margin: 0 3px;position: relative;padding:0px"\x3e\n \x3cbutton class\x3d"backgroundColor" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/blockColor.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cdiv class\x3d\'backgroundColorBar colorBar\' style\x3d\'display:none;position: absolute;\'\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cbutton class\x3d"bIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/strong.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"iIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/i.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"UIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/x.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"SIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/-S-.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cbutton class\x3d"textLeft" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textLeft.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"textCenter" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textCenter.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"textRight" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textRight.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;" \x3e\n\n \x3c/i\x3e\n \x3cbutton class\x3d"a" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/a.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"b" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/b.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"c" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/c.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"editor" contenteditable\x3d"true" style\x3d"width: 800px;min-height: 300px;border: 1px solid #E6E5E5;overflow: auto;"\x3e\n \x3c/div\x3e';$('input.picUpload[type\x3d"file"]',a)[0].onchange=function(){U.UF.E.picture(this,$(".editor",a)[0])};$('input.attachmentUpload[type\x3d"file"]',a)[0].onchange=function(){U.UF.E.attachment(this,$(".editor",a)[0])}};U.MD.UI.editor.EditorEventBind=function(a){var b=U.MD.UI.Font();b.style.cssText+="vertical-align: super;";var c=U.MD.UI.WordSize();c.style.cssText+="vertical-align: super;";$(".setFont",a).append(b);b.onchange=function(){U.UF.E.setRangeStyle({"font-family":b.value})};$(".setSize",a).append(c);c.onchange=function(){U.UF.E.setRangeStyle({"font-size":c.value})};$(".pic",a)[0].onclick=function(){$(".picUpload",a)[0].click()};$(".attachment",a)[0].onclick=function(){$(".attachmentUpload",a)[0].click()};$(".bIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"font-weight":"bold"})};$(".iIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"font-style":"italic"})};$(".UIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"underline"})};$(".SIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"line-through"})};$(".fontColor",a).bind("click",function(){"none"==$(".fontColorBar",a).css("display")&&(U.MD.UI.colorPicker($(".fontColorBar",a)[0],function(b){$(".MD_ColorPicker",$(".fontColorBar",a)[0]).remove();$(".fontColorBar",a).hide();U.UF.E.setRangeStyle({color:b})}),$(".fontColorBar",a).show())});$(".backgroundColor",a).bind("click",function(){"none"==$(".backgroundColorBar",a).css("display")&&(U.MD.UI.colorPicker($(".backgroundColorBar",a)[0],function(b){$(".MD_ColorPicker",$(".backgroundColorBar",a)[0]).remove();$(".backgroundColorBar",a).hide();U.UF.E.setRangeStyle({backgroundColor:b})}),$(".backgroundColorBar",a).show())});$(".a",a).bind("click",function(){U.UF.E.addHref()});$(".c",a).bind("click",function(){U.UF.E.clearStyle(U.UF.E.getRangeAt())});$(".textLeft",a).bind("click",function(){U.UF.E.setLineStyle({"text-align":"left"})});$(".textCenter",a).bind("click",function(){U.UF.E.setLineStyle({"text-align":"center"})});$(".textRight",a).bind("click",function(){U.UF.E.setLineStyle({"text-align":"right"})})};U.MD.UI.editor.Select=function(a,b,c,d){var e="";b.id&&(e=b.id)&&delete b.id;d=$$("div",{id:e},d||null);var e=$$("div",b,d),f=$$("div",{},e);$$("div",{style:{cssText:"border-width: 6px 4px; border-style: solid; border-color: rgb(166, 178, 192) transparent transparent; width: 0; position: absolute; right: 4px; top: 50%; margin-top: -3px"}},e);var h=$$("div",{datacontent:"",style:{cssText:"display: none;position: absolute; margin-top:-1px; min-width: 100%; max-width: 280px; max-height: 200px ;border: 1px solid silver; overflow-x: hidden; cursor: pointer;"}},d),g;b.style&&!b.style.position?d.style.position="relative":"";b.style&&!b.style.textIndent?f.style.textIndent="6px":"";f.style.whiteSpace="pre";f.style.overflow="hidden";f.style.width=d.offsetWidth-15+"px";for(var k in a)$$("div",{value:k,innerText:a[k],style:{cssText:"padding: 4px 6px; background: #fff"},onmouseover:function(){this.style.background="#ccc"},onmouseout:function(){this.style.background="#fff"},onclick:function(){f.innerText=this.innerText;U.UF.E.reSelectRange(g);c(this.value||this.innerText)}},h);for(k in a){f.innerText=a[k];break}f.style.lineHeight=parseInt(f.style.height)+"px";d.onclick=function(){var a=this.querySelector("div[datacontent]");U.UF.E.reSelectRange(g);"block"===a.style.display?a.style.display="none":a.style.display="block"};$(document).bind("click",function(){"none"!=h.style.display&&(h.style.display="none");$(".BD_BorderPicker")[0]&&"none"!=$(".BD_BorderPicker")[0].style.display&&($(".BD_BorderPicker")[0].style.display="none")},!1);$(d).bind("click",function(a){U.UF.EV.stopBubble(a)});d.onmousedown=function(){g=U.UF.E.getRangeAt()};return d};Namespace.register("U.MD.UI.excel");Namespace.register("U.MD.R");U.MD.R.data={PID:"",AID:"",URL:"",PageIndex:1,PageSize:20,AllCount:"",CB:null};U.MD.R.reply=function(a){U.MD.R.login.cookieLogin(function(){var b=a.type,c=a.el,d=a.cb;U.MD.R.data.PID=a.pid;U.MD.R.data.AID=U.MD.R.reply.getUrlHash();U.MD.R.data.URL=U.MD.R.reply.getUrl();U.MD.R.data.CB=d;b||(c=(new U.UF.UI.form("",$$("div"),{style:{width:"800px",height:"800px"}})).content);U.MD.R.reply.init(c);U.UF.DL.asynLoadCss({href:"/css/Controls/Basic/Picture.css",type:"text/css",rel:"stylesheet"});U.UF.DL.asynLoadJs({type:"text/javascript",src:"/js/Controls/Basic/Picture.js"})})};U.MD.R.reply.init=function(a){var b=U.MD.R.data.PageIndex,c=U.MD.R.data.PageSize;U.MD.R.initPrintHtml(a);U.MD.R.getReplyData(b,c,function(a){U.MD.R.data.AllCount=a[0][0]?Math.ceil(a[0][0].allcount/U.MD.R.data.PageSize):"";U.MD.R.printComment($("#U_MD_R_content_user_comment")[0],1,a,!1,!1,!1);U.MD.R.initLoadMoreBtn(a[0])})};U.MD.R.reply.getUrl=function(){return window.location.href};U.MD.R.reply.getUrlHash=function(){return U.UF.EC.SparkMD5.hash(window.location.href)};U.MD.R.getReplyData=function(a,b,c){U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","test",U.MD.R.data.AID,"1","",a,b],function(a){c&&c(a.value)})};U.MD.R.initPrintHtml=function(a){var b,c,d,e;a=$$("div",{className:"U_MD_R_comment"},a);a=$$("div",{className:"U_MD_R_content"},a);b=$$("div",{className:"U_MD_R_content_operation"},a);c=$$("div",{className:"U_MD_R_content_operation_userhead U_MD_R_Reply_Header"},b);c=$$("img",{className:"img",src:"/img/UserHead/UseHead.jpg",onerror:function(){this.src="/img/UserHead/UseHead.jpg"}},c);d=$$("div",{className:"U_MD_R_content_operation_right",style:{width:"calc(100% - 40px - 20px )"}},b);$(d).attr({"data-RPID":null,"data-RD":1,"data-RPUID":null});b=$$("div",{innerHTML:"\u767b\u5f55/\u6ce8\u518c",className:"U_MD_R_content_operation_userlogin U_MD_R_Reply_Name"},d);US.userInfo.userid?(b.innerHTML=US.userInfo.UserName,c.src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead):b.onclick=function(){U.MD.R.login()};b=$$("div",{id:"editorbox",className:"U_MD_R_Reply_Content",contenteditable:"true",style:{"min-height":"100px",background:"#fff",border:"1px solid black"}},d);c=document.documentElement.scrollTop;U.UF.E.initEditor(b);document.documentElement.scrollTop=c;b=$$("div",{className:"U_MD_R_content_operation_right_bottom"},d);$$("div",{className:"U_MD_R_content_operation_right_bottom_emoji",onclick:function(){U.UF.EV.stopBubble();U.MD.UI.face(this,$("#editorbox")[0]);$("#U_MD_UI_face").css({position:"relative",height:"140px","overflow-y":"scroll",top:"-150px",width:"450px",display:"block"})}},b);c=$$("div",{className:"U_MD_R_content_operation_right_bottom_picturewarp"},b);$$("img",{src:"/img/reply/img.png"},c);c=$$("input",{type:"file"},c);$$("div",{className:"U_MD_R_content_operation_right_bottom_release",innerHTML:"\u53d1\u8868\u8bc4\u8bba"},b).onclick=function(){""!=$(".U_MD_R_Reply_Content")[0].textContent||""!=$(".U_MD_R_Reply_Content")[0].innerHTML?U.MD.R.release(d,1,!1,1):U.alert("\u8bc4\u8bba\u4e0d\u80fd\u4e3a\u7a7a\uff01")};e=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox U_MD_R_Reply_Image"},d);$$("div",{className:"U_MD_R_content_comment",id:"U_MD_R_content_user_comment"},a);c.onchange=function(){U.MD.R.uploadImages(this,e)};U.MD.R.data.CB&&U.MD.R.data.CB()};U.MD.R.initLoadMoreBtn=function(a){var b=$$("div",{className:"U_MD_R_content_loading"},$(".U_MD_R_comment")[0]);0<a.length&&U.MD.R.data.PageIndex<U.MD.R.data.AllCount&&(b.innerHTML="\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a\u8bc4\u8bba",b.onclick=function(){var a=++U.MD.R.data.PageIndex,d=U.MD.R.data.PageSize;U.MD.R.data.PageIndex<=U.MD.R.data.AllCount?U.MD.R.getReplyData(a,d,function(a){U.MD.R.data.AllCount=Math.ceil(a[0][0].allcount/U.MD.R.data.PageSize);U.MD.R.printComment($("#U_MD_R_content_user_comment")[0],1,a,!1,!1,!1)}):$(b).hide()})};U.MD.R.printComment=function(a,b,c,d,e,f){if(1==U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","Reply_SelectTypeReplyEnable",U.MD.R.data.PID]).value[0].ProjectReplyEnable)for(var h,g=0;g<c[0].length;g++)h=f?c[0][g].TopReplyNum:0<U.Json.select(c[2],{ReplyID:c[0][g].ReplyID}).length?U.Json.select(c[2],{ReplyID:c[0][g].ReplyID})[0].AllReplyNum:"0",U.MD.R.printCommentHtml(a,b,{rid:c[0][g].ReplyID,rpid:c[0][g].ReplyParentID,deep:c[0][g].ReplyDeep,topid:c[0][g].ReplyID,uid:c[0][g].UserID,un:c[0][g].UserName,tx:c[0][g].ReplyUserThumbnailImageHead,time:c[0][g].ReplyAddTime,content:c[0][g].ReplyContent,shownum:h,likesnum:2==b?U.Json.select(c[4],{ReplyID:c[0][g].ReplyID})[0]:U.Json.select(c[1],{ReplyID:c[0][g].ReplyID})[0]},d,e,f);else $$("div",{className:"U_MD_R_content_loading"},$(".U_MD_R_comment")[0]).innerHTML="\u8be5\u8bc4\u8bba\u7cfb\u7edf\u5df2\u5173\u95ed",$("#U_MD_R_content_loading")[0].innerHTML=""};U.MD.R.viewComment=function(a,b){if(US.userInfo.userid){var c,d,e,f,h;c=new U.UF.UI.form("",$$("div",{style:{padding:"20px"}}),{style:{width:"800px",height:"600px"}});U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","Reply_SelectThisReply",a],function(a){d=a.value;U.MD.R.printComment(c.content,2,d,!0,!0,!0);b&&$(c.content).find(".U_MD_R_content_box_content_edit").show();e=$$("div",{className:"U_MD_R_content_warp_box"},c.content);for(a=0;a<d[1].length;a++){f=U.MD.R.printCommentHtml(e,2,{rid:d[1][a].ReplyID,rpid:d[1][a].ReplyParentID,deep:d[1][a].ReplyDeep,topid:d[1][a].ReplyTopID,uid:d[1][a].UserID,tx:d[1][a].ReplyUserThumbnailImageHead,un:d[1][a].UserName,time:d[1][a].ReplyAddTime,content:d[1][a].ReplyContent,likesnum:U.Json.select(d[3],{ReplyID:d[1][a].ReplyID})[0]},!1,!0,!0);h=$$("div",{className:"U_MD_R_content_warp_box"},f);$(h).attr({"data-replyid":d[1][a].ReplyID});for(var g=0;g<d[2].length;g++)d[1][a].ReplyID==d[2][g].ReplyParentID&&U.MD.R.printCommentHtml(h,3,{rid:d[2][g].ReplyID,rpid:d[2][g].ReplyParentID,deep:d[2][g].ReplyDeep,topid:d[2][g].ReplyTopID,uid:d[2][g].UserID,tx:d[2][g].ReplyUserThumbnailImageHead,un:d[2][g].UserName,time:d[2][g].ReplyAddTime,content:d[2][g].ReplyContent,likesnum:U.Json.select(d[3],{ReplyID:d[2][g].ReplyID})[0],replyinfo:{uid:d[2][g].uid,un:d[2][g].un,tx:d[2][g].tx}},!1,!0,!0)}})}else U.Alert("\u8bf7\u5148\u767b\u5f55")};U.MD.R.printCommentHtml=function(a,b,c,d,e,f){var h=c.rid,g=c.rpid,k=c.deep,l=c.topid,m=c.uid,n=c.tx,q=c.un,u=c.time,w=c.content,p=c.likesnum;e=c.shownum;var y=c.replyinfo?c.replyinfo.un:"",x,r,v,z,A;c=$$("div",{className:"U_MD_R_content_box"});d?$(a).append(c,0,$(a)[0].firstChild):$(a).append(c);x=$$("div",{className:"U_MD_R_content_box_warp"},c);$(x).attr({"data-rid":h,"data-RPID":g,"data-RD":k,"data-RBID":l,"data-RPUID":m});a=$$("div",{className:"U_MD_R_content_box_userhead"},x);$$("img",{src:n,onerror:"U.MD.R.imgError(this)"},a);a=$$("div",{className:"U_MD_R_content_box_content",style:{width:"calc(100% - 40px - 20px )"}},x);d=$$("div",{className:"U_MD_R_content_box_content_top"},a);n=$$("div",{className:"U_MD_R_content_box_content_top_name",innerHTML:q},d);3==b&&(n.innerHTML=q+"\u56de\u590d@"+y);$$("div",{className:"U_MD_R_content_box_content_top_time",innerHTML:u},d);q=$$("div",{className:"U_MD_R_content_box_content_text",innerHTML:w},a);0<$(q).find("img").length&&($(q).find("img")[0].onclick=function(){U.MD.UI.picture([this.src],0);$("#U_MD_UI_PictureForm").css("position","fixed");U.UF.F.topWindow($("#U_MD_UI_PictureForm")[0],!0)});q=$$("div",{className:"U_MD_R_content_box_content_bottom"},a);u=$$("div",{className:"U_MD_R_content_box_content_bottom_likeswarp"},q);u.onclick=function(){U.MD.R.like(this,h,US.userInfo.userid)};r=$$("img",{src:"/img/reply/NOFabulous.png"},u);u=$$("div",{className:"U_MD_R_content_box_content_bottom_likeswarp_text",innerHTML:0},u);p&&(u.innerHTML=p.ReplyNum,U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_SelectRepeatLikes_Moblie",h,US.userInfo.userid],function(a){r.src=1==a.value[0].mode?"/img/reply/NOFabulous.png":0==a.value[0].mode?"/img/reply/Fabulous.png":"/img/reply/NOFabulous.png"}));p=$$("div",{className:"U_MD_R_content_box_content_bottom_replywarp"},q);p.onclick=f?function(){U.MD.R.subsetReply(this)}:function(){U.MD.R.viewComment(h,!0)};$$("img",{src:"/img/reply/reply.png"},p);$$("div",{innerHTML:"\u56de\u590d",className:"U_MD_R_content_box_content_bottom_replywarp_text"},p);1==b&&(p=$$("div",{className:"U_MD_R_content_box_content_bottom_showmorewarp"},q),$$("img",{src:"/img/reply/list.png"},p),q=$$("div",{className:"U_MD_R_content_box_content_bottom_showmore_text"},p),f?(q.className="U_MD_R_content_box_content_bottom_showmore_text U_MD_R_content_box_content_bottom_showmore_text_secondary",q.innerHTML=e?"\u5171\u6709\uff08\x3cspan\x3e"+e+"\x3c/span\x3e\uff09\u6761\u8bc4\u8bba":"\u6ca1\u6709\u8bc4\u8bba(\x3cspan\x3e0\x3c/span\x3e)"):(q.className="U_MD_R_content_box_content_bottom_showmore_text U_MD_R_content_box_content_bottom_showmore_text_important",q.innerHTML=e?"\u67e5\u770b\u66f4\u591a\uff08\x3cspan\x3e"+e+"\x3c/span\x3e\uff09":"\u67e5\u770b\u66f4\u591a(\x3cspan\x3e0\x3c/span\x3e\uff09",p.onclick=function(){U.MD.R.viewComment(h,!1)}));1==b&&!f&&$(".U_MD_R_content_loading")[0]&&(U.MD.R.data.PageIndex<U.MD.R.data.AllCount?$(".U_MD_R_content_loading")[0].innerHTML="\u70b9\u51fb\u52a0\u8f7d\u66f4\u591a\u8bc4\u8bba":$(".U_MD_R_content_loading").hide());if(2==b||3==b||1==b&&f)return f=$$("div",{className:"U_MD_R_content_box_content_edit",style:{display:"none"}},a),_replyinput=$$("div",{className:"U_MD_R_Reply_Content",contenteditable:"true"},f),e=$$("div",{className:"U_MD_R_content_operation_right_bottom"},f),$$("div",{className:"U_MD_R_content_operation_right_bottom_emoji",onclick:function(){U.UF.EV.stopBubble();U.MD.UI.face(this,_replyinput);$(this)[0].append($("#U_MD_UI_face")[0]);$("#U_MD_UI_face").css({position:"relative",height:"140px","overflow-y":"scroll",top:"-150px",width:"450px",display:"block"})}},e),p=$$("div",{className:"U_MD_R_content_operation_right_bottom_picturewarp"},e),$$("img",{src:"/img/reply/img.png"},p),p=$$("input",{type:"file"},p),p.onchange=function(){U.MD.R.uploadImages(this,z)},e=$$("div",{className:"U_MD_R_content_operation_right_bottom_release",innerHTML:"\u53d1\u8868\u8bc4\u8bba"},e),e.onclick=function(){1==b?v=2:2==b?v=3:3==b&&(v=4);U.MD.R.release(x,b,!1,v)},z=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox U_MD_R_Reply_Image"},f),3!=b&&(A=$$("div",{className:"U_MD_R_content_comment"},c)),A};U.MD.R.uploadImages=function(a,b){var c,d,e=/.*(jpg|png|gif|jpeg|JPG|PNG|GIF|JPEG)$/;$(b)[0].innerHTML="";c=$$("div",{},b);$$("img",{src:"/img/Reply/loading.gif",style:{width:"100px",height:"100px","margin-right":"10px"}},c);U.UF.UP.inputUpload([a],"http://disk.1473.cn/USUpfile.ashx?typename\x3dUseStudioEditor\x26UserId\x3dFA92AAC5-4134-449F-9659-0DC12F4F68E9",function(a){d=a.value[0].split(".")[1];d.match(e)?($(c).remove(),c=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox_warp"},b),$$("img",{src:"http://fs.1473.cn/"+a.value[0]},c),$$("div",{className:"closebtn",onclick:"U.MD.R.uploadImages.close(this)"},c),U.alert("\u4e0a\u4f20\u6210\u529f")):U.alert("\u8bf7\u4e0a\u4f20\u56fe\u7247\u6587\u4ef6")},[])};U.MD.R.uploadImages.close=function(a){$(a).Parent().remove()};U.MD.R.subsetReply=function(a){a=$($(a).Parent(2)).find(".U_MD_R_content_box_content_edit");"block"==a[0].style.display?a.hide():a.show()};U.MD.R.release=function(a,b,c,d){if(US.userInfo.userid){var e=a,f=b,h=$(e).find(".U_MD_R_Reply_Content")[0];b=$(e).find(".U_MD_R_Reply_Image");var g=US.userInfo.userid,k=US.userInfo.UserName,l="http://fs.1473.cn/"+US.userInfo.UserImageHead;if(""!=h.innerHTML.trim()||0<b.find("img").length){var m=Guid.newGuid(),n=$(a).attr("data-rid"),q=U.MD.R.data.PID,u=U.MD.R.data.AID,w="",p=US.userInfo.RegisterIP,y=U.MD.R.data.URL,x=$(a).attr("data-rd");$(a).attr("data-rbid");var r=$(a).attr("data-rpuid");1==d?x=1:2==d||3==d?x=parseInt($(a).attr("data-rd"))+1:(x=3,n=$(a).attr("data-rpid"));w=0<$(b).find("img").length?h.innerHTML.trim()+b.find("img")[0].outerHTML:h.innerHTML;U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_InsertReply",m,n,q,u,g,k,l,w,p,y,null,x,r,1,U.MD.R.getNowFormatDate()],function(a){a=a.value[0];var b,g,k=$("div[data-rid\x3d'"+a.ReplyParentID+"']").find(".U_MD_R_content_box_content_bottom_showmore_text_important span")[0];$("div[data-rid\x3d'"+a.ReplyParentID+"']").find(".U_MD_R_content_box_content_bottom_showmore_text_secondary span");$(e).find(".U_MD_R_Reply_Content")[0].innerHTML="";U.UF.E.initEditor($(e).find(".U_MD_R_Reply_Content")[0]);$(e).find(".U_MD_R_Reply_Image")[0].innerHTML="";1==d?(g=!1,b=!0,e=$("#U_MD_R_content_user_comment")[0]):(g=!0,_val=k.innerText,2==d&&(e=$(e).Parent().nextSibling,f=2,b=!0),3==d&&(e=0<$($(e)[0].nextSibling).find(".U_MD_R_content_warp_box").length?$($(e)[0].nextSibling).find(".U_MD_R_content_warp_box"):$$("div",{className:"U_MD_R_content_warp_box"},$($(e)[0].nextSibling)[0]),f=2),4==d&&(e=$($(e).Parent()).Parent(),f=3),k.innerText=++_val,$($(h).Parent()).hide());U.MD.R.printCommentHtml(e,f,{rid:a.ReplyID,rpid:a.ReplyParentID,deep:a.ReplyDeep,topid:a.ReplyTopID,uid:a.UserID,tx:a.ReplyUserThumbnailImageHead,un:a.UserName,time:U.MD.R.getNowFormatDate()+".0",content:a.ReplyContent,replyinfo:{uid:a.uid,un:a.un,tx:a.tx}},b,c,g);U.alert("\u8bc4\u8bba\u6210\u529f")})}else U.alert("\u8bf7\u8f93\u5165\u8bc4\u8bba\u5185\u5bb9")}else U.Alert("\u8bf7\u5148\u767b\u5f55")};U.MD.R.like=function(a,b,c){US.userInfo.userid?U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_SelectRepeatLikes",b,c],function(b){var c=$(a).find("img")[0],d=$(a).find(".U_MD_R_content_box_content_bottom_likeswarp_text")[0],h=parseInt(d.innerHTML);0==b.value[0].mode?(c.src="/img/reply/NOFabulous.png",d.innerHTML=--h):(c.src="/img/reply/Fabulous.png",d.innerHTML=++h)}):U.Alert("\u8bf7\u5148\u767b\u5f55")};U.MD.R.imgError=function(a){$(a)[0].src="/img/UserHead/UseHead.jpg"};U.MD.R.login=function(){$("#U_MD_HomeC_Pop")[0]?U.UF.F.windowTopCenter($("#U_MD_HomeC_Pop")[0]):(U.UF.CD.loadPageCrossDomain(function(){}),U.MD.U.L.setLoginCallBack(function(){U.MD.R.login.cb()}))};U.MD.R.login.cookieLogin=function(a){U.UF.Cookie.get("usestudiosso")&&U.UF.Cookie.get("usestudiosso","userid")[0]?U.UF.CD.loadPageCrossDomain(function(){U.MD.U.L.loginCallBack=function(){a&&a();$(".U_MD_R_content_operation_userhead img")[0].src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead;$(".U_MD_R_content_operation_userlogin")[0].innerHTML=US.userInfo.UserName}}):a&&a()};U.MD.R.login.cb=function(){$(".U_MD_R_content_operation_userhead img")[0].src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead;$(".U_MD_R_content_operation_userlogin")[0].innerHTML=US.userInfo.UserName};U.MD.R.getNowFormatDate=function(){var a=new Date,b=a.getMonth()+1,c=a.getDate();1<=b&&9>=b&&(b="0"+b);0<=c&&9>=c&&(c="0"+c);return a.getFullYear()+"-"+b+"-"+c+" "+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()};Namespace.register("U.MD.UI.table");U.MD.UI.table=function(a,b,c,d){U.MD.UI.table.thead(a,b,c,d)};U.MD.UI.table.thead=function(a,b,c,d,e,f){e||(e=1,f=a.length);var h,g;d=$$("table",{style:{"text-align":"center",position:"relative",width:" 100%","border-collapse":" collapse","border-width":" 1px","border-style":" solid","border-color":" rgb(213, 213, 213)","border-image":" initial",display:"table"}},d);h=$$("thead",{},d);h=$$("tr",{},h);for(g in b)"object"===typeof b[g]?$$("th",{innerHTML:b[g].name,style:{cssText:c[g],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},h):$$("th",{innerHTML:b[g],style:{cssText:c[g],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},h);g=$$("tbody",{style:{cssText:"width:100%;"},id:"tbody"},d);U.MD.UI.table.tbody(g,a,b,c,e,f);return g};U.MD.UI.table.tbody=function(a,b,c,d,e,f){for(var h,g,k,l=(e-1)*f;l<e*f&&l<b.length;l++){h=0!=l%2?$$("tr",{style:{cssText:"background-color: #FFF;"},id:"tr"},a):$$("tr",{style:{cssText:"background-color: #dde4ee;"},id:"tr"},a);for(var m in c)if(g=$$("td",{id:"td"},h),c[m].content)for(var n=0;n<c[m].content.length;n++){if(k=U.MD.UI.table.printDiv(g,c[m].content[n]),c[m].content[n].onclick)U.MD.UI.table.onclick(k,b[l],c[m].content[n].onclick)}else k=$$("div",{innerHTML:b[l][m],style:{overflow:"hidden",cssText:d[m]}},g),c[m].id&&(k.id=b[l][c[m].id])}};U.MD.UI.table.pageTable=function(a,b,c,d,e,f){f=$$("div",{style:{left:"0px",right:"0px",width:"100%",margin:"0 auto",top:"200px"}},f);var h=$$("div",{},f),g=U.MD.UI.table.thead(a,b,c,h,e,d);f=$$("div",{style:{width:"650px",margin:"20px auto 0 auto"}},f);new U.UF.P.page(f,a.length,d,e,function(e){U.MD.UI.table.delChild(g);U.MD.UI.table.tbody(g,a,b,c,e,d)})};U.MD.UI.table.delChild=function(a){for(var b=a.children.length-1;0<=b;b--)a.removeChild(a.children[b])};U.MD.UI.table.onclick=function(a,b,c){a.onclick=function(){c(b)}};U.MD.UI.table.printDiv=function(a,b){var c;"string"==typeof b.name&&(c=$$("div",{innerHTML:b.name},a));"object"==typeof b.name&&(c=b.name.cloneNode(!0),a.appendChild(c));return c};Namespace.register("U.MD.UI.Tree");U.MD.UI.Tree=function(a,b,c,d){json=[];for(var e=0;e<a.length;e++)U.MD.UI.Tree.jsonAdd(json,a[e]);b.innerHTML="";U.MD.UI.Tree.treeCreate(json,b,c);b.oncontextmenu=function(a){a.preventDefault()};b.onmousedown=function(a){2==a.button&&d(a,c)}};U.MD.UI.Tree.treeCreate=function(a,b,c){for(var d=0;d<a.length;d++){var e=$$("ul",{className:"U_MD_UI_Tree_a "+a[d].parentID},b),f=$$("li",{id:a[d].id,parentid:a[d].parentid,className:"U_MD_UI_Tree_listyle",parentid:a[d].id,deep:a[d].deep},e),h=$$("img",{onerror:U.MD.C.imgError,src:a[d].img_url,className:"U_MD_UI_Tree_imgstyle"},f);$$("span",{innerHTML:a[d].name,className:"spanstyle"},f);e.style.display="none";"1"==a[d].deep&&(e.style.display="block");h.aa=!1;var g=document.getElementsByClassName("U_MD_UI_Tree_a "+a[d].parentID)[0];e.style.display=g.style.display;f.onclick=function(){c(this);g=document.getElementsByClassName("U_MD_UI_Tree_a "+this.parentid);if(!0===h.aa){h.aa=!1;for(var a=0;a<g.length;a++)g[a].style.display="none"}else for(h.aa=!0,a=0;a<g.length;a++)g[a].style.display="block"};a[d].child&&U.MD.UI.Tree.treeCreate(a[d].child,e,c)}};U.MD.UI.Tree.jsonAdd=function(a,b){var c=b.parentID;if("0"==c)return a[a.length]=b,a;for(var d=0;d<a.length;d++){if(a[d].id==c){a[d].child||(a[d].child=[]);a[d].child[a[d].child.length]=b;break}if(a[d].child){var e=U.MD.UI.Tree.jsonAdd(a[d].child,b);a[d].child=e}}return a};U.MD.UI.Tree.rightOnclick=function(a,b){var c=$$("li",{className:"U_MD_UI_Tree_rightli",innerHTML:"\u65b0\u5efa\u6587\u4ef6\u5939",parentid:b.path[1].parentid,deep:parseInt(b.path[1].deep)+1},a),d=$$("li",{className:"U_MD_UI_Tree_rightli",innerHTML:"\u91cd\u547d\u540d",parentid:b.path[1].parentid,deep:parseInt(b.path[1].deep)+1},a),e=$$("li",{className:"U_MD_UI_Tree_rightli",innerHTML:"\u5220\u9664",parentid:b.path[1].parentid,deep:parseInt(b.path[1].deep+1)},a),f=[];f[0]=c;f[1]=d;f[2]=e;return f};U.MD.UI.Tree.createID=function(a){for(var b=0,c=0;c<a.length;c++)parseInt(a[c].id)>b&&(b=parseInt(a[c].id));return b};Namespace.register("U.MD.UI.txt");
|