function move(e,t,i){clearInterval(e.timer),e.timer=setInterval(function(){var n=!0;for(var l in t){var r=null;r="opacity"==l?100*getStyle(e,l):parseInt(getStyle(e,l))||0;var a=t[l],o=.2*(a-r);o=o>0?Math.ceil(o):Math.floor(o),r!=a&&("opacity"==l?(e.style.filter="alpha(opacity = "+(r+o)+")",e.style[l]=(r+o)/100):e.style[l]=r+o+"px",n=!1)}n&&(clearInterval(e.timer),i&&i.call(e))},100/3)}function getStyle(e,t){return e.currentStyle?e.currentStyle[t]:getComputedStyle(e,null)[t]}Namespace.register("U.MD.UI.slider"),U.MD.UI.slider=function(e,t,i){function n(){h=++h%f,v++,v%=y,h==f-1?move(D,{left:-p*h},function(){h=1,this.style.left=-h*p+"px"}):move(D,{left:-p*h}),l(v),c&&c(v+1)}function l(e){for(var t=0;t"},d),$$("ul",{className:"U_MD_UI_slider_Point"},e));for(E=0;E500&&(h--,v--,0==h?move(D,{left:-p*h},function(){h=f-2,this.style.left=-h*p+"px"}):move(D,{left:-p*h}),v=-1==v?y-1:v,l(v),c&&c(v+1)),C=new Date},m[1].onclick=function(){var e=new Date;e-C>500&&(h++,v++,v%=y,h==f-1?move(D,{left:-p*h},function(){h=1,this.style.left=-h*p+"px"}):move(D,{left:-p*h}),l(v),c&&c(v+1)),C=new Date},x=setInterval(n,r),0==v&&console.log(v+1);for(E=0;E
关闭
','
    ','','','选择时间
    清空
    现在
    确定
    ',''],U.MD.UI.calendar.create=function(e,t){if(e!=U.MD.UI.calendar.fouseinp||"block"!=U.MD.UI.calendar.board.style.display){t&&U.MD.UI.calendar.board&&(U.MD.UI.calendar.board.parentNode.removeChild(U.MD.UI.calendar.board),U.MD.UI.calendar.board=null);var i=document.documentElement.scrollTop||document.body.scrollTop,n=document.documentElement.scrollLeft||document.body.scrollLeft,l=[Math.abs(e.getBoundingClientRect().left)+n,Math.abs(e.getBoundingClientRect().top)+i];U.MD.UI.calendar.fouseinp=e,U.MD.UI.calendar.board?U.MD.UI.calendar.resetData(l):U.MD.UI.calendar.showBoard(e,l,t),U.MD.UI.calendar.showDay()}},U.MD.UI.calendar.toggleChooseText=function(e){var t=U.selectEl(".U_MD_UI_calendar_c_a")[0].children,i=t.length;if("返回日期"==e.innerText)return U.MD.UI.calendar.changeDisplay(_lastTemplate,t[i-1]),e.innerText="选择时间",void U.selectEl(e).removeClass("U_MD_UI_calendar_timeTextClick");for(var n=0;n ul > li"),_titInp=U.selectEl("#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],U.selectEl("#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],U.selectEl("#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(e){switch(e.keyCode){case 13:var t=U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block");t[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)}},_titInp.onblur=function(){var e=U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block");e[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)},U.selectEl("#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)},U.selectEl("#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(var a=0;a<_mc.length;a++)_mc[a].onclick=function(){U.MD.UI.calendar.changeDisplay($("#calendar_day")[0],U.selectEl("#calendar_month")[0]),U.MD.UI.calendar.month=parseInt(this.innerText)-1,U.MD.UI.calendar.showDay(),U.MD.UI.calendar.mark=1};U.selectEl("#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=(_t=_monthFristDay+_fullDay)%7==0?_t:_t+(7-_t%7),_dayC=U.selectEl("#calendar_week_c")[0],_dayC.innerHTML="";for(var e=0;e<_totalDay;e++)if(_li=$$("li",{},_dayC),e<_monthFristDay)$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_lastMonthDay-_monthFristDay+e+1},_li);else if(e<_fullDay+_monthFristDay){var t=e-_monthFristDay+1,i=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,t).getDay(),n=U.MD.UI.calendar.NOW.getDate()===t&&U.MD.UI.calendar.CURRENTMONTH===U.MD.UI.calendar.month&&U.MD.UI.calendar.CURRENTYEAR===U.MD.UI.calendar.year;_dayV=t,6===i||0===i?n?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today U_MD_UI_calendar_weekend",innerText:t,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:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):n?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):$$("span",{className:"U_MD_UI_calendar_day",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li)}else $$("span",{className:"U_MD_UI_calendar_unavailable",innerText:e-(_fullDay+_monthFristDay)+1},_li);U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year+"-"+(U.MD.UI.calendar.month+1)+"月"},U.MD.UI.calendar.fullDate=function(e,t){var i=(_n=Math.abs(e)/12)>=1?_n>>>0:0,n=Math.abs(e)%12;!t&&(n=-n),!t&&(i=-i),U.MD.UI.calendar.month+=n,U.MD.UI.calendar.year+=i,t?U.MD.UI.calendar.month>11&&(U.MD.UI.calendar.month=0,U.MD.UI.calendar.year++):U.MD.UI.calendar.month<0&&(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(e,t){var i,n,l,r,a,o;i=e||"-",n=t?U.MD.UI.calendar.CURRENTYEAR:U.MD.UI.calendar.year,a=t?U.MD.UI.calendar.CURRENTMONTH+1:U.MD.UI.calendar.month+1,l=t?U.MD.UI.calendar.CURRENTDAY:U.MD.UI.calendar.day,a=a.toString()[1]?a:"0"+a,l=l.toString()[1]?l:"0"+l;var c=n+i+a+i+l;if("boolean"==typeof U.MD.UI.calendar.datetimeformat&&U.MD.UI.calendar.datetimeformat){if(t){var s=new Date;U.MD.UI.calendar.hour=s.getHours(),U.MD.UI.calendar.minute=s.getMinutes(),U.MD.UI.calendar.second=s.getSeconds()}r=U.MD.UI.calendar.hour.toString()[1]?U.MD.UI.calendar.hour:"0"+U.MD.UI.calendar.hour,a=U.MD.UI.calendar.minute.toString()[1]?U.MD.UI.calendar.minute:"0"+U.MD.UI.calendar.minute,o=U.MD.UI.calendar.second.toString()[1]?U.MD.UI.calendar.second:"0"+U.MD.UI.calendar.second,c+=" "+r+":"+a+":"+o}return c},U.MD.UI.calendar.outPutDate=function(e){"INPUT"===U.MD.UI.calendar.fouseinp.tagName?U.MD.UI.calendar.fouseinp.value=U.MD.UI.calendar.formartDate("-",e):U.MD.UI.calendar.fouseinp.innerText=U.MD.UI.calendar.formartDate("-",e),U.MD.UI.calendar.CheckedDay&&U.MD.UI.calendar.CheckedDay(),U.MD.UI.calendar.board.style.display="none"},U.MD.UI.calendar.changeDisplay=function(e,t,i){return i=i||"block",e&&"object"==typeof e&&e.setAttribute("style","display:"+i),t&&"object"==typeof t&&t.setAttribute("style","display:none"),[e,t]},U.MD.UI.calendar.dateTenYear=function(){_yearArr=U.selectEl("#calendar_year > ul > li"),_startYear=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10;for(var e=0;e<_yearArr.length;e++)_yearArr[e].onclick=function(){U.MD.UI.calendar.mark=2,U.MD.UI.calendar.year=parseInt(this.innerText),U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],U.selectEl("#calendar_year")[0]),U.MD.UI.calendar.tit.innerText=this.innerText},_yearArr[e].innerHTML="",0==e||e==_yearArr.length-1?$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_startYear+e-1},_yearArr[e]):_startYear+e-1===U.MD.UI.calendar.CURRENTYEAR?$$("span",{style:{"background-color":"#eed1bc"},innerText:_startYear+e-1},_yearArr[e]):$$("span",{innerText:_startYear+e-1},_yearArr[e]);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(e){U.MD.UI.calendar.datetimeformat?(e&&(U.MD.UI.calendar.hour="00",U.MD.UI.calendar.minute="00",U.MD.UI.calendar.second="00",U.selectEl(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])),U.selectEl("#calendar_time")[0].style.display="block",U.selectEl("#calendar_timeChoose")[0].style.display="none",U.selectEl("#U_MD_UI_calendar_timeText")[0].innerText="选择时间",U.selectEl("#U_MD_UI_calendar_timeText").removeClass("U_MD_UI_calendar_timeTextClick")):(U.selectEl("#calendar_time")[0].style.display="none",U.selectEl("#calendar_timeChoose")[0].style.display="none")},U.MD.UI.calendar.SetCallBack=function(e,t){if("function"!=typeof t||!"CheckedDay ".match(e+" "))return 0;U.MD.UI.calendar[e]=t},Namespace.register("U.MD.UI.city"),U.MD.UI.city=function(e){if(U.UF.EV.stopBubble(),e&&e.tagName){if(_cityBox=U.selectEl("#U_MD_UI_city_cityBox")[0]){var t=e.getBoundingClientRect();return _cityBox.style.top=t.top+t.height+document.documentElement.scrollTop+"px",_cityBox.style.left=t.left+document.documentElement.scrollLeft+"px",U.selectEl(_cityBox).removeClass("U_MD_UI_city_hidden"),void(U.MD.UI.city.Attr.inputNode=e)}var i=U.MD.UI.city;i.create(e),i.Attr={inputNode:e},i.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='
      \n\n \n \n \n
    • \n 常用市\n
    • \n\n
    • \n 省/直辖市\n
    • \n\n
    • \n 请选择\n
    • \n\n
    • \n 请选择\n
    • \n
    \n\n\n \n \n
      \n
    • 光明新区
    • \n \n \n
    \n\n\n
      \n
    \n\n\n
      \n
    \n\n\n
      \n
    ',U.MD.UI.city.create=function(e){var t=$$("div",{id:"U_MD_UI_city_cityBox",className:"U_MD_UI_city_cityBox U_MD_UI_city_hidden"},document.body);t.innerHTML+=U.MD.UI.city.htmlTemplate;var i=e.getBoundingClientRect();t.style.top=i.top+i.height+document.documentElement.scrollTop+"px",t.style.left=i.left+document.documentElement.scrollLeft+"px",U.MD.UI.city.Attr.inputNode=e,U.selectEl(t).removeClass("U_MD_UI_city_hidden")},U.MD.UI.city.init=function(){var e=U.MD.UI.city;e.getUsedCity(),e.inputEvent(),e.menuEvent()},U.MD.UI.city.inputEvent=function(){var e=U.MD.UI.city,t=(e.Attr,"U_MD_UI_city_hidden"),i=U.selectEl("#U_MD_UI_city_cityBox")[0];U.selectEl(document).bind("click",function(){U.selectEl(i).addClass(t)},!1),U.selectEl(i).bind("click",function(e){U.UF.EV.stopBubble(e)}),U.selectEl("#U_MD_UI_city_areaCont")[0].onclick=function(){$("#U_MD_UI_city_areaCont")[0]&&(U.selectEl("#U_MD_UI_city_cityBox")[0].style.display="none")}},U.MD.UI.city.menuEvent=function(){for(var e=U.MD.UI.city,t=(e.Attr,U.selectEl("[data-city-mark]")),i="U_MD_UI_city_hidden",n=0,l=t.length;n';U.UF.E.addRange(r,null,!0)}else $$("img",{onerror:U.MD.C.imgError,src:l,contentEditable:"true"},U.selectEl(n)[0]);U.selectEl(e)[0].style.display="none"},Namespace.register("U.UF.UI"),U.UF.UI.form=function(e,t,i,n,l,r,a,o){var c=this;if(i&&U.UF.UI.form.allForm[i.id])c=U.UF.UI.form.allForm[i.id];else this.id=i&&i.id?i.id:Guid.newGuid(),U.UF.UI.form.allForm[this.id]=this;return c.form,c.header,c.middle,c.title=e,c.content=t,c.formattr=i,c.headattr=l,c.contentattr=r,c.headbottomattr=a,null==n&&(n={}),c.istop=null,null!=n.istop&&(c.istop=n.istop),c.isdrag=!0,null!=n.isdrag&&(c.isdrag=n.isdrag),c.isstretching=!0,null!=n.isstretching&&(c.isstretching=n.isstretching),c.isenlarge=!0,null!=n.isenlarge&&(c.isenlarge=n.isenlarge),c.isnarrow=!0,null!=n.isnarrow&&(c.isnarrow=n.isnarrow),c.isclose=!0,c.closecallback=n.closecallback,null!=n.isclose&&(c.isclose=n.isclose),c.parentel=o||document.body,c.create(),c},U.UF.UI.form.allForm={},U.UF.UI.form.prototype={create:function(){var e,t,i,n,l,r,a,o,c,s,d=this.formattr||{},_=this.headattr||{},p=this.contentattr||{},u=U.UF.UI.form.allForm[d.id]?U.UF.UI.form.allForm[d.id].form:null;d.style?(d.style.cssText=d.style.cssText||"",d.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;"+d.style.cssText):d.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;"},d.close=U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form)}),d.usform="true",d.id=d.id||"",d.style=d.style||{},d.onresize?(t=d.onresize,s=d.onmousedown,d.onresize=U.UF.C.apply(this,function(){this.size(),t&&t()}),d.onmousedown=U.UF.C.apply(this,function(){!1!==this.istop&&this.top(),s&&s()})):!1!==d.onresize&&(d.onresize=U.UF.C.apply(this,function(){this.size()}));var D=$$("div",this.formattr);if(!0===this.istop?(D.style.zIndex="9999",D.__top__="false"):!1===this.istop&&(D.__top__="false"),this.form=D,!1!==this.title&&(_.style?(_.style.cssText=_.style.cssText||"",_.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; "+_.style.cssText):_.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&&(_.onmousedown=function(){U.UF.F.drag(D)}),i=$$("div",_,D),U.UF.C.isString(this.title)?i.innerHTML=this.title:U.UF.C.isElement(this.title)&&i.appendChild(this.title),this.header=i),n=$$("div",{style:{cssText:"width: 100%; height:100%; position: relative;"}},D),p.usbody="true",p.style?(p.style.cssText=p.style.cssText||"",p.style.cssText="text-align: left; overflow: hidden;"+p.style.cssText):p.style={cssText:"text-align: left; overflow: auto;"},l=$$("div",p,n),U.UF.C.isString(this.content)?l.innerHTML=this.content:U.UF.C.isElement(this.content)&&l.appendChild(this.content),this.middle=l,!1===this.title&&this.isdrag&&(n.onmousedown=function(){U.UF.F.drag(D)}),!1!==this.isstretching)for(e in r=$$("div",{style:{cssText:"display: block;"}},D),a={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;"},a)$$("div",{style:{cssText:"position: absolute; overflow: hidden; display: block; z-index: 10;"+a[e]},onmousedown:U.UF.C.closure(function(e,t){U.UF.F.stretching(D,t,U.UF.C.apply(e,e.size))},[this,e])},r);!1!==this.title&&(o=$$("div",{style:{cssText:"position: absolute; top: 3px; right: 0px; width: 80px; display: table-cell; vertical-align: middle;"}},D)),!1!==this.isclose&&$$("div",{style:{cssText:"background-image:url(../../../img/close.png); _background-image:url(/img/close.png);width: 14px; height: 14px; background-repeat: no-repeat; background-size: 100%; float: right; margin-right: 5px;margin-top:6px; cursor: pointer;"},title:"点击关闭",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:D}),U.MD.N.urlWrite("","智慧课堂平台"))}catch(e){}U.UF.C.isFunction(this.closecallback)&&this.closecallback()})},o),!1!==this.isenlarge&&(c=$$("div",{style:{cssText:"background-image:url(../../../img/max.png); _background-image:url(/img/max.png); background-size: 100%; float: right; margin-right: 10px; width: 17px; height: 17px; cursor: pointer;margin-top: 4px;"},title:"最大化",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowZooming(D)}},o),i&&(i.ondblclick=U.UF.C.apply(i,function(){(event.srcElement==this||U.UF.EL.isChild(this,event.srcElement))&&c.onclick()}))),!1!==this.isnarrow&&$$("div",{style:{cssText:"background-image:url(../../../img/min.png); _background-image:url(/img/min.png);background-size: 100%; float: right; margin-right: 10px; margin-top: 3px; width: 20px; height: 20px; cursor: pointer;background-repeat: no-repeat;"},title:"最小化",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowMinimize(D)}},o),u&&null!=u.parentNode?u.parentNode.replaceChild(D,u):this.parentel.appendChild(D),""==D.style.top&&""==D.style.left&&""==D.style.right&&""==D.style.bottom?U.UF.F.windowTopCenter(D):U.UF.F.topWindow(D),this.size()},top:function(){U.UF.F.topWindow(this.form)},size:function(){this.header&&this.header.clientHeight,this.header?this.middle.style.height=this.form.clientHeight-this.header.clientHeight+"px":this.middle.style.height=this.form.clientHeight+"px"}},U.UF.UI.form.windowResize=function(){var e,t,i,n,l,r=US.width,a=US.height,o=U.UF.UI.form.allForm;for(e in o)l=o[e].form,"none"!=$(l).css("display")&&(t={},i=U.selectEl(l).css("width"),n=U.selectEl(l).css("height"),i=i.indexOf("%")>-1?i.toInt()/100:l.offsetWidth/r,n=n.indexOf("%")>-1?n.toInt()/100:l.offsetWidth/a,""!=l.style.right&&"auto"!=l.style.right||(t.left=l.offsetLeft+(document.body.offsetWidth-r)*((1-i)/2)+"px"),""!=l.style.bottom&&"auto"!=l.style.bottom||(t.top=l.offsetTop+(document.body.offsetHeight-a)*((1-n)/2)+"px"),U.selectEl(l).addAttrArray({style:t}))},U.UF.UI.form.closeWindows=function(){var e;for(e in U.UF.UI.form.allForm)U.UF.UI.form.allForm[e].isclose&&U.UF.UI.form.allForm[e].form.close()},Namespace.register("U.MD.UI.music"),U.MD.UI.music=function(e,t,i,n){var l,r=U.MD.UI.music;(l=U.selectEl("#U_MD_UI_music_musicBox")[0])&&l.remove(),r.create(n),r.Attr={musicList:e,musicIndex:t,autoplay:i,currentTime:null,endTime:null},r.init()},U.MD.UI.music.Attr=null,U.MD.UI.music.htmlTemplate='
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n ',U.MD.UI.music.create=function(e){e||document.body;var t={style:{border:"none"},id:"U_MD_UI_music_musicBox",className:"U_MD_UI_music_musicBox"},i={isclose:!1,isstretching:!1,isenlarge:!1,isnarrow:!1},n={style:{height:"13px","background-color":"#cc5b5b"}};U.MD.UI.music.player=new U.UF.UI.form(!1,U.MD.UI.music.htmlTemplate,t,i,n),U.selectEl("#U_MD_UI_music_musicBox")[0].style.overflow=""},U.MD.UI.music.init=function(){var e=U.MD.UI.music,t=e.Attr,i=U.selectEl("#U_MD_UI_music_audio"),n=t.musicList,l=t.musicIndex;i[0].src=n[l].src;U.selectEl("#U_MD_UI_music_playBtn");var r=U.selectEl("#U_MD_UI_music_Name");U.selectEl("#U_MD_UI_music_Cover");t.autoplay||i[0].pause(),e.openBtnEvent(),e.shrinkBtnEvent(),e.soundControl(),e.playEvent(),e.switchMusic(),e.progressControl(),i.bind("durationchange",function(){t.endTime=this.duration,l=t.musicIndex,r[0].innerText=n[l].title}),i.bind("ended",function(){l=t.musicIndex;var e=n.length-1;l===e?(t.musicIndex=0,l=t.musicIndex,i[0].src=n[l].src):(t.musicIndex++,l=t.musicIndex,i[0].src=n[l].src)})},U.MD.UI.music.openBtnEvent=function(){var e=U.MD.UI.music;U.selectEl("#U_MD_UI_music_closeBtn").bind("click",function(){var t=U.selectEl("#U_MD_UI_music_audio");t[0].paused||(U.selectEl("#U_MD_UI_music_playBtn").addClass("U_MD_UI_music_playBtn"),t[0].pause()),U.UF.F.closeWindow(e.player.form),U.selectEl("#U_MD_D_T_taskbar_music").remove()})},U.MD.UI.music.shrinkBtnEvent=function(){U.selectEl("#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 e=U.MD.UI.music,t=(e.Attr,U.selectEl("#U_MD_UI_music_playBtn")),i=U.selectEl("#U_MD_UI_music_audio");t.bind("click",function(){i[0].paused?(t.removeClass("U_MD_UI_music_playBtn"),i[0].play()):(t.addClass("U_MD_UI_music_playBtn"),i[0].pause())})},U.MD.UI.music.switchMusic=function(){var e=U.MD.UI.music,t=e.Attr,i=U.selectEl("#U_MD_UI_music_audio"),n=U.selectEl("#U_MD_UI_music_rightBtn"),l=U.selectEl("#U_MD_UI_music_leftBtn"),r=t.musicList,a=t.musicIndex,o=r.length-1;n.bind("click",function(){a=t.musicIndex,a===o?(t.musicIndex=0,a=t.musicIndex,i[0].src=r[a].src):(t.musicIndex++,a=t.musicIndex,i[0].src=r[a].src)}),l.bind("click",function(){a=t.musicIndex,0===a?(t.musicIndex=o,a=t.musicIndex,i[0].src=r[a].src):(t.musicIndex--,a=t.musicIndex,i[0].src=r[a].src)})},U.MD.UI.music.soundControl=function(){var e=U.MD.UI.music,t=U.selectEl("#U_MD_UI_music_audio"),i=U.selectEl("#U_MD_UI_music_soundBox"),n=U.selectEl("#U_MD_UI_music_soundBall"),l=U.selectEl("#U_MD_UI_music_soundBar"),r=i[0].clientWidth,a=.5,o=U.selectEl("#U_MD_UI_music_soundSwitch");t[0].volume=a,n[0].style.left=r*a+"px",l[0].style.width=r*a+"px",o.bind("click",function(){if(e.toggleClass(this,"U_MD_UI_music_soundClose"),$(this).hasClass("U_MD_UI_music_soundClose"))this._volume=t[0].volume,this._soundBallX=parseFloat(n.css("left")),this._soundBarW=parseFloat(l.css("width")),n[0].style.left=0,l[0].style.width=0,t[0].volume=0;else{if(!this._volume)return;t[0].volume=this._volume,n[0].style.left=this._soundBallX+"px",l[0].style.width=this._soundBarW+"px"}}),i.bind("mousedown",function(i){var c=e.getOffsetLeft(this),s=c+r,U=i.pageX;U=Math.max(U,c),U=Math.min(U,s);var d=U-c;a=Math.round(100*parseFloat(d/r))/100,n[0].style.left=r*a+"px",l[0].style.width=r*a+"px",t[0].volume=a,t[0].volume<=0?o.addClass("U_MD_UI_music_soundClose"):o.removeClass("U_MD_UI_music_soundClose")}),n.bind("mousedown",function(e){U.UF.EV.stopBubble(e);var i=e.pageX,c=function(e){U.UF.EV.stopDefault(e);var c=e.pageX,s=c-i+d;s=Math.max(0,s),s=Math.min(r,s),n[0].style.left=s+"px",l[0].style.width=s+"px",a=Math.round(100*parseFloat(s/r))/100,t[0].volume=a,t[0].volume<=0?o.addClass("U_MD_UI_music_soundClose"):o.removeClass("U_MD_UI_music_soundClose")},s=function(){U.selectEl(document).unbind("mousemove",c),U.selectEl(document).unbind("mouseup",s)},d=parseFloat(n.css("left"));U.selectEl(document).bind("mousemove",c),U.selectEl(document).bind("mouseup",s)})},U.MD.UI.music.progressControl=function(){var e,t=U.MD.UI.music,i=t.Attr,n=U.selectEl("#U_MD_UI_music_audio"),l=U.selectEl("#U_MD_UI_music_progressBox"),r=U.selectEl("#U_MD_UI_music_progressBall"),a=U.selectEl("#U_MD_UI_music_progressBar"),o=U.selectEl("#U_MD_UI_music_playBtn"),c=l[0].clientWidth,s=!0;n.bind("timeupdate",function(){if(this.paused?o.addClass("U_MD_UI_music_playBtn"):o.removeClass("U_MD_UI_music_playBtn"),s){e=this.currentTime;var t=Math.round(1e4*parseFloat(e/i.endTime))/1e4;r[0].style.left=c*t+"px",a[0].style.width=c*t+"px"}}),l.bind("mousedown",function(e){var l=t.getOffsetLeft(this),o=l+c,s=e.pageX;s=Math.max(s,l),s=Math.min(s,o);var U=s-l;_speed=Math.round(1e4*parseFloat(U/c))/1e4,r[0].style.left=c*_speed+"px",a[0].style.width=c*_speed+"px",n[0].currentTime=i.endTime*_speed}),r.bind("mousedown",function(t){s=!1,U.UF.EV.stopBubble(t);var l=t.pageX,o=function(t){U.UF.EV.stopDefault(t);var n=t.pageX,o=n-l+_;o=Math.max(0,o),o=Math.min(c,o),r[0].style.left=o+"px",a[0].style.width=o+"px",_speed=Math.round(1e4*parseFloat(o/c))/1e4,r[0].style.left=c*_speed+"px",a[0].style.width=c*_speed+"px",e=i.endTime*_speed},d=function(){s=!0,n[0].currentTime=e,U.selectEl(document).unbind("mousemove",o),U.selectEl(document).unbind("mouseup",d)},_=parseFloat(r.css("left"));U.selectEl(document).bind("mousemove",o),U.selectEl(document).bind("mouseup",d)})},U.MD.UI.music.getOffsetLeft=function(e){for(var t=e.offsetLeft,i=e.offsetParent;null!=i;)t+=i.offsetLeft,i=i.offsetParent;return t},U.MD.UI.music.secondToDate=function(e){var t=Math.floor(e/60%60),i=Math.floor(e%60);return t<10&&(t="0"+t),i<10&&(i="0"+i),t+":"+i},U.MD.UI.music.toggleClass=function(e,t){$(e).hasClass(t)?U.selectEl(e).removeClass(t):U.selectEl(e).addClass(t)},Namespace.register("U.UF.P"),U.UF.P.apply=function(e,t,i){return function(){e.apply(i,t)}},U.UF.P.pagepId=0,U.UF.P.PPage=U.UF.P.page=function(e,t,i,n,l){this.PageNum=0,this.Index=0,this.Pageall=0,this.init(e,t,i,n,l)},U.UF.P.page.prototype={init:function(e,t,i,n,l){this.PageNum=n,this.Index=n-1;var r=U.selectEl(e)[0],a=Math.ceil(t/i);if(this.Pageall=a,r.getElementsByClassName("U_MD_F_Y")[0])return!1;U.UF.P.pagepId++;var o,c=$$("div",{className:"U_MD_F_Y"},r),s=$$("div",{className:"U_MD_F_YL"},c),d=$$("div",{className:"U_MD_F_YLO U_MD_F_Y_Button",innerHTML:"首页",title:"首页",pid:U.UF.P.pagepId+"1"},s),_=$$("div",{className:"U_MD_F_YLT U_MD_F_Y_Button",title:"上一页",pid:U.UF.P.pagepId+"3"},s),p=$$("div",{className:"U_MD_F_YN"},s),u=Math.min(a,Math.max(n+5,10));for(o=Math.max(1,Math.min(n-5,a-10));o<=u;o++)(function(e,t){var i=$$("div",{innerHTML:e,pid:U.UF.P.pagepId+"5"},p);e==n&&(i.className="U_MD_F_Y_Button_Active"),i.onclick=U.UF.P.apply(function(e){U.UF.P.centerEle(t,i)},[o],t)})(o,this);var D=$$("div",{className:"U_MD_F_YLS U_MD_F_Y_Button",title:"下一页",pid:U.UF.P.pagepId+"4"},s),I=$$("div",{className:"U_MD_F_YLF U_MD_F_Y_Button",innerHTML:"尾页",title:"尾页",pid:U.UF.P.pagepId+"2"},s),M=$$("div",{className:"U_MD_F_YR"},c);$$("span",{innerHTML:"到"},M);var m=$$("input",{type:"text"},M);$$("span",{innerHTML:"页"},M);var f=$$("div",{className:"U_MD_F_YRZ",pid:U.UF.P.pagepId+"6",innerHTML:"确定"},M);if(this.PageNum1)return U.selectEl(_list[0]).addClass("U_MD_F_Y_Button_Active"),this.Index=0,this.PageNum=1,this.pagefun(this.PageNum,_list),void i(this.PageNum);U.selectEl(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(2==_el){if(this.PageNum0)return U.selectEl(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active"),this.PageNum--,this.pagefun(this.PageNum,_list),void i(this.PageNum);U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(4==_el){if(this.PageNum=1&&n.value<=this.Pageall?(this.PageNum=n.value,this.pagefun(this.PageNum,_list),i(this.PageNum)):(U.alert("无效的输入"),U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")))}}},pagefun:function(e,t){var i=t,n=parseInt(e.innerHTML)||e;U.selectEl(".U_MD_F_Y_Button_Active").removeClass("U_MD_F_Y_Button_Active");var l,r=Math.ceil(i.length/2),a=(this.Index,null),o=parseInt($(i)[$(i).length-1].innerText);if(nthis.Pageall-r&&n<=this.Pageall)if(n>this.Pageall-r&&n<=this.Pageall){var c=this;[].__proto__.forEach.apply($(i),[function(e,t,i){e.innerText=c.Pageall+1-i.length+t}])}else n - 100%",i,{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"}}),n.style.height=n.clientHeight-60+"px",U.MD.UI.picture.DIVBOX={USERPICS:e,PICAREA:U.selectEl("#U_MD_UI_Picture_picArea")[0],PICBOX:U.selectEl("#U_MD_UI_Picture_picBox")[0],FA:U.selectEl("#U_MD_UI_Picture_fa")[0]};for(var l=$$("div",{style:{display:"inline-block","line-height":"40px","margin-top":"10px"}},U.MD.UI.picture.DIVBOX.FA),r=0;r=0?t:0,U.MD.UI.picture.createPic(),U.MD.UI.picture.pics=U.selectEl("#U_MD_UI_Picture_picArea > ul > li > 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 e=$$("ul",{id:"ul"},U.MD.UI.picture.DIVBOX.PICAREA),t=0;t3?U.MD.UI.picture.rotatenum=0:U.MD.UI.picture.rotatenum),U.MD.UI.picture.rotating()},U.MD.UI.picture.rotating=function(){var e="rotate("+90*U.MD.UI.picture.rotatenum+"deg)";U.MD.UI.picture.rotatenum%2!=0?(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,e),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")):(U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style",""),U.MD.UI.picture.compatibleRotate(U.MD.UI.picture.DIVBOX.PICAREA,e),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.selectEl("#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(e,t){e.style.webkitTransform=t,e.style.MozTransform=t,e.style.mturnsTransform=t,e.style.OTransform=t,e.style.transform=t,("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&(e.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.abs(U.MD.UI.picture.rotatenum)+")")},U.MD.UI.picture.prevPic=function(e){U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="none",e?(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--,U.MD.UI.picture.picnumber<0&&(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 e=U.MD.UI.picture.originalSize[0]/U.MD.UI.picture.originalSize[1];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?U.MD.UI.picture.DIVBOX.PICAREA.style.width=Math.floor((U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40)*e)+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.width=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.selectEl("#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.selectEl("#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.selectEl("#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(e){var t,i;if(e.naturalWidth)t=e.naturalWidth,i=e.naturalHeight;else{var n=new Image;n.src=e.src,t=n.width,i=n.height}return[t,i]},U.MD.UI.picture.drag=function(e,t){e.onmousedown=function(i){U.MD.UI.picture.mDown(e,t,i)}},U.MD.UI.picture.mDown=function(e,t,i){i=i||window.event;var n=i.clientX-e.offsetLeft,l=i.clientY-e.offsetTop;t.onmousemove=function(i){U.MD.UI.picture.mMove(e,t,n,l,i)},t.onmouseup=function(e){t.onmousemove=null,t.onmouseup=null},i.preventDefault?i.preventDefault():(e.ondragstart=function(){return!1},e.onselectstart=function(){return!1})},U.MD.UI.picture.mMove=function(e,t,i,n,l){l=l||window.event;var r=l.clientX-i,a=l.clientY-n ;r=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientWidth-t.clientWidth/8,r):Math.min(t.clientWidth-t.clientWidth/8-e.clientWidth/2+e.clientHeight/2,r),r=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientWidth+t.clientWidth/8,r):Math.max(-e.clientWidth+t.clientWidth/8+e.clientWidth/2-e.clientHeight/2,r),a=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientHeight-t.clientHeight/8,a):Math.min(t.clientHeight-t.clientHeight/8+(e.clientWidth-e.clientHeight)/2,a),a=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientHeight+t.clientHeight/8,a):Math.max(-e.clientHeight+t.clientHeight/8-(e.clientWidth-e.clientHeight)/2,a),e.style.left=r+"px",e.style.top=a+"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(e){function t(e){e.preventDefault?e.preventDefault():e.returnValue=!1}e=e||window.event;var i=0;e.wheelDelta?(i=e.wheelDelta/120,window.opera&&(i=-i)):e.detail&&(i=-e.detail/3),i>0?U.MD.UI.picture.changeSize(U.MD.UI.picture.scalingvalue):U.MD.UI.picture.changeSize(-U.MD.UI.picture.scalingvalue),t(event)},U.MD.UI.picture.changeSize=function(e){var t,i,n;if(i=U.MD.UI.picture.DIVBOX.PICAREA.clientHeight,n=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth,t=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+e,!(t/U.MD.UI.picture.originalSize[0]*100<20&&t<200||(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+e)/U.MD.UI.picture.originalSize[1]*100>1e3)){U.MD.UI.picture.DIVBOX.PICAREA.style.width=t+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight-i)/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-e/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.rotatenum%2!=0&&(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");var l=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&&U.MD.UI.picture.rotatenum%2!=0,r=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&&U.MD.UI.picture.rotatenum%2!=0,a=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&&U.MD.UI.picture.rotatenum%2!=0,o=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&&U.MD.UI.picture.rotatenum%2!=0;l&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px"),r&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px"),a&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px"),o&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px"),U.selectEl("#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(e,t,i,n,l){var r=n||!1,a=null,o=null,c=!1,s=!1,d=U.MD.UI.video.appendEle(e,t,i,r,l);return U.MD.UI.video.addEvent(d,a,o,c,i,t,s),d},U.MD.UI.video.appendEle=function(e,t,i,n,l){var r={};return r.videoDiv=$$("div",{className:"U_MD_UI_video_VideoDiv",style:{width:t+"px",height:i+"px"}},l),r.video=$$("video",{src:e,className:"U_MD_UI_video_VideoMain",autoplay:n,preload:"auto"},r.videoDiv),r.controls=$$("div",{className:"U_MD_UI_video_VideoControls"},r.videoDiv),r.playPauseBtn=$$("div",{className:"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"},r.controls),r.currentTimeDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00"},r.controls),r.progress=$$("div",{className:"U_MD_UI_video_Progress"},r.controls),r.progressCurrentTime=$$("div",{className:"U_MD_UI_video_ProgressCurrentTime"},r.progress),r.progressCircle=$$("div",{className:"U_MD_UI_video_ProgressCircle"},r.progressCurrentTime),r.DurationDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00",onselectstart:"return false;"},r.controls),r.soundControls=$$("div",{className:"U_MD_UI_video_SoundControls"},r.controls),r.soundProgress=$$("div",{className:"U_MD_UI_video_SoundProgress"},r.controls),r.soundProgressCurrent=$$("div",{className:"U_MD_UI_video_SoundProgressCurrent",style:{width:"100%"}},r.soundProgress),r.fullScreenBtn=$$("div",{className:"U_MD_UI_video_FullScreen"},r.controls),r},U.MD.UI.video.addEvent=function(e,t,i,n,l,r,a){e.playPauseBtn.onclick=function(t){U.MD.UI.playPauseBtnClick(t,e)},void 0!==e.videoDiv.onwebkitfullscreenchange?e.videoDiv.onwebkitfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(a,l,r,e);a=t[0],l=t[1],r=t[2]}:void 0!==e.videoDiv.onfullscreenchange?e.videoDiv.onfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(a,l,r,e);a=t[0],l=t[1],r=t[2]}:void 0!==e.videoDiv.onmozfullscreenchange&&(e.videoDiv.onmozfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(a,l,r,e);a=t[0],l=t[1],r=t[2]}),e.fullScreenBtn.onclick=function(){U.MD.UI.video.fullscreenClick(a,e)},e.progressCircle.onmousedown=function(t){U.MD.UI.video.circleMove(t,n,e)},e.soundProgress.onmousedown=function(t){U.MD.UI.video.soundProgressMove(t,e,n)},e.progress.onmousedown=function(t){U.MD.UI.video.progressMove(t,e,n)},e.video.onpause=function(){e.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon",clearInterval(t)},e.video.onplay=function(){e.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PauseIcon",t=U.MD.UI.video.setInterval(n,e)},e.video.oncanplay=function(){U.MD.UI.video.flushInfo(n,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)},e.soundControls.onclick=function(){i=U.MD.UI.video.muteClick(e,i,n)},e.videoDiv.onclick=function(){}},U.MD.UI.video.displayControls=function(e,t){var i=e.target;i!==t.video&&i!==t.videoDiv||("none"===t.controls.style.display?t.controls.style.display="block":t.controls.style.display="none")},U.MD.UI.playPauseBtnClick=function(e,t){var i=e.target;"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"===i.className?t.video.play():t.video.pause()},U.MD.UI.video.muteClick=function(e,t,i){return 0!==e.video.volume?(t=e.video.volume,e.video.volume=0,U.MD.UI.video.flushInfo(i,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)):0===e.video.volume&&null!==t&&(e.video.volume=t,t=null,U.MD.UI.video.flushInfo(i,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)),t},U.MD.UI.video.fullscreenClick=function(e,t){e?document.exitFullScreen?document.exitFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozExitFullScreen&&document.mozExitFullScreen():t.videoDiv.requestFullScreen?t.videoDiv.requestFullScreen():t.videoDiv.webkitRequestFullScreen?t.videoDiv.webkitRequestFullScreen():t.videoDiv.mozRequestFullScreen&&t.videoDiv.mozRequestFullScreen()},U.MD.UI.video.fullscreenChange=function(e,t,i,n){return e?(n.videoDiv.style.height=t+"px",n.videoDiv.style.width=i+"px",n.videoDiv.style.position="",n.videoDiv.style.top="",n.videoDiv.style.left="",n.videoDiv.style.zIndex=""):(n.videoDiv.style.height="100vh",n.videoDiv.style.width="100vw",n.videoDiv.style.position="absolute",n.videoDiv.style.top="0",n.videoDiv.style.left="0",n.videoDiv.style.zIndex="999"),e=!e,[e,t,i]},U.MD.UI.video.timeFormat=function(e){var t=parseInt(e%60),i=parseInt(parseInt(e)/60);return t<10&&(t="0"+t),i<10&&(i="0"+i),i+":"+t},U.MD.UI.video.flushInfo=function(e,t,i,n,l,r){e||(t.innerHTML=U.MD.UI.video.timeFormat(r.currentTime),i.innerHTML=U.MD.UI.video.timeFormat(r.duration),n.style.width=r.currentTime/r.duration*100+"%",l.style.width=100*r.volume+"%")},U.MD.UI.video.getScreenLeft=function(e){for(var t=e.offsetLeft,i=e.offsetParent;null!=i;)t+=i.offsetLeft,i=i.offsetParent;return t},U.MD.UI.video.setInterval=function(e,t){return setInterval(function(){U.MD.UI.video.flushInfo(e,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video)},500)},U.MD.UI.video.circleMove=function(e,t,i){var n=e,l=e.currentTarget,r=n.pageX,a=l.parentElement,o=a.parentElement;i.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(o)<0||e.pageX-U.MD.UI.video.getScreenLeft(o)>o.offsetWidth)){var t=e.pageX-r;!(a.offsetWidth+t>o.offsetWidth||a.offsetWidth+t<0)&&e.currentTarget.children[0].offsetWidth<=e.currentTarget.children[0].offsetWidth&&(a.style.width=(a.offsetWidth+t)/o.offsetWidth*100+"%",i.video.currentTime=(a.offsetWidth+t)/o.offsetWidth*i.video.duration),r=e.pageX}},i.videoDiv.onmouseup=function(){!1,i.videoDiv.onmousemove=function(){},i.videoDiv.onmouseup=function(){}}},U.MD.UI.video.soundProgressMove=function(e,t,i){e.preventDefault();var n=e,l=e.currentTarget,r=n.pageX,a=t.soundProgressCurrent,o=e.offsetX,c=l.offsetWidth;t.video.volume=o/c,U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(t.soundProgress)<0||e.pageX-U.MD.UI.video.getScreenLeft(t.soundProgress)>t.soundProgress.offsetWidth)){var i=e.pageX-r;a.offsetWidth+i>l.offsetWidth||a.offsetWidth+i<0||(a.style.width=(a.offsetWidth+i)/l.offsetWidth*100+"%",t.video.volume=a.offsetWidth/l.offsetWidth),r=e.pageX}},t.videoDiv.onmouseup=function(e){t.videoDiv.onmousemove=function(){},t.videoDiv.onmouseup=function(){}}},U.MD.UI.video.progressMove=function(e,t,i){if(e.preventDefault(),"U_MD_UI_video_ProgressCircle"!==e.target.className){var n=e,l=e.currentTarget,r=n.pageX,a=t.progressCurrentTime,o=e.layerX||e.offsetX,c=l.offsetWidth;t.video.currentTime=t.video.duration*(o/c),U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(t.progress)<0||e.pageX-U.MD.UI.video.getScreenLeft(t.progress)>t.progress.offsetWidth)){i=!0;var n=e.pageX-r;a.offsetWidth+n>t.progress.offsetWidth||a.offsetWidth+n<0||(a.style.width=(a.offsetWidth+n)/t.progress.offsetWidth*100+"%",t.video.currentTime=(a.offsetWidth+n)/t.progress.offsetWidth*t.video.duration),r=e.pageX}},t.videoDiv.onmouseup=function(){i=!1,U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(){},t.videoDiv.onmouseup=function(){}}}},Namespace.register("U.MD.UI.BTree"),U.MD.UI.BTree=function(e,t,i,n,l,r,a,o,c,s,d){U.MD.UI.BTree.jsonStartLeft(e,r[0],t),U.MD.UI.BTree.jsonStartRight(r[1],t,i,n,l,a,o,c,s,d)},U.MD.UI.BTree.treeCreate=function(e,t,i){for(var n=0;nt&&(t=parseInt(e[i].id));return t},Namespace.register("U.MD.UI.editor"),U.MD.UI.Editor=U.MD.UI.editor=function(e,t){return U.UF.DL.asynLoadCss({rel:"stylesheet",type:"text/css",href:"/css/Controls/Complex/Editor.css"}),U.MD.UI.editor.createEditor(e),U.UF.E.initEditor($(".editor",e)[0],t),U.MD.UI.editor.EditorEventBind(e),U.MD.UI.editor.operateJson.editor=U.selectEl(".editor",e)[0],U.MD.UI.editor.operateJson},U.MD.UI.editor.operateJson={loadContent:function(e){this.editor.focus(),U.UF.E.onpaste(null,this.editor,e)},getContent:function(){return this.editor.innerHTML}},U.MD.UI.editor.createEditor=function(e){e.innerHTML='
    \n \n \n \n\n \n
    \n\n \n
    \n\n \n \n \n \n\n \n
    \n \n
    \n
    \n
    \n \n\n \n
    \n \n
    \n
    \n
    \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n
    \n
    \n
    ',U.selectEl('input.picUpload[type="file"]',e)[0].onchange=function(){U.UF.E.picture(this,U.selectEl(".editor",e)[0])},U.selectEl('input.attachmentUpload[type="file"]',e)[0].onchange=function(){U.UF.E.attachment(this,U.selectEl(".editor",e)[0])}},U.MD.UI.editor.EditorEventBind=function(e){var t=U.MD.UI.Font();t.style.cssText+="vertical-align: super;";var i=U.MD.UI.WordSize();i.style.cssText+="vertical-align: super;",U.selectEl(".setFont",e).append(t),t.onchange=function(){U.UF.E.setRangeStyle({"font-family":t.value})},U.selectEl(".setSize",e).append(i),i.onchange=function(){U.UF.E.setRangeStyle({"font-size":i.value})},U.selectEl(".pic",e)[0].onclick=function(){U.selectEl(".picUpload",e)[0].click()},U.selectEl(".attachment",e)[0].onclick=function(){U.selectEl(".attachmentUpload",e)[0].click()},U.selectEl(".bIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"font-weight":"bold"})},U.selectEl(".iIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"font-style":"italic"})},U.selectEl(".UIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"underline"})},U.selectEl(".SIcon",e)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"line-through"})},U.selectEl(".fontColor",e).bind("click",function(){"none"==$(".fontColorBar",e).css("display")&&(U.MD.UI.colorPicker($(".fontColorBar",e)[0],function(t){U.selectEl(".MD_ColorPicker",U.selectEl(".fontColorBar",e)[0]).remove(),U.selectEl(".fontColorBar",e).hide(),U.UF.E.setRangeStyle({color:t})}),U.selectEl(".fontColorBar",e).show())}),U.selectEl(".backgroundColor",e).bind("click",function(){"none"==$(".backgroundColorBar",e).css("display")&&(U.MD.UI.colorPicker($(".backgroundColorBar",e)[0],function(t){U.selectEl(".MD_ColorPicker",U.selectEl(".backgroundColorBar",e)[0]).remove(),U.selectEl(".backgroundColorBar",e).hide(),U.UF.E.setRangeStyle({backgroundColor:t})}),U.selectEl(".backgroundColorBar",e).show())}),U.selectEl(".a",e).bind("click",function(){U.UF.E.addHref()}),U.selectEl(".c",e).bind("click",function(){U.UF.E.clearStyle(U.UF.E.getRangeAt())}),U.selectEl(".textLeft",e).bind("click",function(){U.UF.E.setLineStyle({"text-align":"left"})}),U.selectEl(".textCenter",e).bind("click",function(){U.UF.E.setLineStyle({"text-align":"center"})}),U.selectEl(".textRight",e).bind("click",function(){U.UF.E.setLineStyle({"text-align":"right"})})},U.MD.UI.editor.Select=function(e,t,i,n){var l="";t.id&&(l=t.id)&&delete t.id;var r=$$("div",{id:l},n||null),a=$$("div",t,r),o=$$("div",{},a);$$("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"}},a);var c,s=$$("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;"}},r);for(var d in t.style&&!t.style.position&&(r.style.position="relative"),t.style&&!t.style.textIndent&&(o.style.textIndent="6px"),o.style.whiteSpace="pre",o.style.overflow="hidden",o.style.width=r.offsetWidth-15+"px",e)$$("div",{value:d,innerText:e[d],style:{cssText:"padding: 4px 6px; background: #fff"},onmouseover:function(){this.style.background="#ccc"},onmouseout:function(){this.style.background="#fff"},onclick:function(){o.innerText=this.innerText,U.UF.E.reSelectRange(c),i(this.value||this.innerText)}},s);for(var d in e){o.innerText=e[d];break}return o.style.lineHeight=parseInt(o.style.height)+"px",r.onclick=function(){var e=this.querySelector("div[datacontent]");U.UF.E.reSelectRange(c),"block"===e.style.display?e.style.display="none":e.style.display="block"},U.selectEl(document).bind("click",function(){"none"!=s.style.display&&(s.style.display="none"),$(".BD_BorderPicker")[0]&&"none"!=$(".BD_BorderPicker")[0].style.display&&(U.selectEl(".BD_BorderPicker")[0].style.display="none")},!1),U.selectEl(r).bind("click",function(e){U.UF.EV.stopBubble(e)}),r.onmousedown=function(){c=U.UF.E.getRangeAt()},r},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(e){U.MD.R.login.cookieLogin(function(){var t=e.type,i=e.el,n=e.cb;U.MD.R.data.PID=e.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=n,t||(i=new U.UF.UI.form("",$$("div"),{style:{width:"800px",height:"800px"}}).content),U.MD.R.reply.init(i),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(e){var t=U.MD.R.data.PageIndex,i=U.MD.R.data.PageSize;U.MD.R.initPrintHtml(e),U.MD.R.getReplyData(t,i,function(e){U.MD.R.data.AllCount=e[0][0]?Math.ceil(e[0][0].allcount/U.MD.R.data.PageSize):"",U.MD.R.printComment($("#U_MD_R_content_user_comment")[0],1,e,!1,!1,!1),U.MD.R.initLoadMoreBtn(e[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(e,t,i){U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","test",U.MD.R.data.AID,"1","",e,t],function(e){i&&i(e.value)})},U.MD.R.initPrintHtml=function(e){var t,i,n,l,r,a,o,c,s,d,_,p,u,D=e;t=$$("div",{className:"U_MD_R_comment"},D),i=$$("div",{className:"U_MD_R_content"},t),n=$$("div",{className:"U_MD_R_content_operation"},i),l=$$("div",{className:"U_MD_R_content_operation_userhead U_MD_R_Reply_Header"},n),r=$$("img",{className:"img",src:"/img/UserHead/UseHead.jpg",onerror:function(){this.src="/img/UserHead/UseHead.jpg"}},l),a=$$("div",{className:"U_MD_R_content_operation_right",style:{width:"calc(100% - 40px - 20px )"}},n),U.selectEl(a).attr({"data-RPID":null,"data-RD":1,"data-RPUID":null}),o=$$("div",{innerHTML:"登录/注册",className:"U_MD_R_content_operation_userlogin U_MD_R_Reply_Name"},a),US.userInfo.userid?(o.innerHTML=US.userInfo.username,r.src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead):o.onclick=function(){U.MD.R.login()},c=$$("div",{id:"editorbox",className:"U_MD_R_Reply_Content",contenteditable:"true",style:{"min-height":"100px",background:"#fff",border:"1px solid black"}},a);var I=document.documentElement.scrollTop;U.UF.E.initEditor(c),document.documentElement.scrollTop=I,s=$$("div",{className:"U_MD_R_content_operation_right_bottom"},a),$$("div",{className:"U_MD_R_content_operation_right_bottom_emoji",onclick:function(){U.UF.EV.stopBubble(), U.MD.UI.face(this,U.selectEl("#editorbox")[0]),U.selectEl("#U_MD_UI_face").css({position:"relative",height:"140px","overflow-y":"scroll",top:"-150px",width:"450px",display:"block"})}},s),d=$$("div",{className:"U_MD_R_content_operation_right_bottom_picturewarp"},s),$$("img",{src:"/img/reply/img.png"},d),_=$$("input",{type:"file"},d),p=$$("div",{className:"U_MD_R_content_operation_right_bottom_release",innerHTML:"发表评论"},s),p.onclick=function(){""!=$(".U_MD_R_Reply_Content")[0].textContent||""!=U.selectEl(".U_MD_R_Reply_Content")[0].innerHTML?U.MD.R.release(a,1,!1,1):U.alert("评论不能为空!")},u=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox U_MD_R_Reply_Image"},a),$$("div",{className:"U_MD_R_content_comment",id:"U_MD_R_content_user_comment"},i),_.onchange=function(){U.MD.R.uploadImages(this,u)},U.MD.R.data.CB&&U.MD.R.data.CB()},U.MD.R.initLoadMoreBtn=function(e){var t=$$("div",{className:"U_MD_R_content_loading"},U.selectEl(".U_MD_R_comment")[0]);e.length>0&&U.MD.R.data.PageIndex0?U.Json.select(d[2],{ReplyID:d[0][D].ReplyID})[0].AllReplyNum:"0",U.MD.R.printCommentHtml(c,s,{rid:d[0][D].ReplyID,rpid:d[0][D].ReplyParentID,deep:d[0][D].ReplyDeep,topid:d[0][D].ReplyID,uid:d[0][D].UserID,un:d[0][D].UserName,tx:d[0][D].ReplyUserThumbnailImageHead,time:d[0][D].ReplyAddTime,content:d[0][D].ReplyContent,shownum:o,likesnum:2==s?U.Json.select(d[4],{ReplyID:d[0][D].ReplyID})[0]:U.Json.select(d[1],{ReplyID:d[0][D].ReplyID})[0]},_,p,u);else{var I=$$("div",{className:"U_MD_R_content_loading"},U.selectEl(".U_MD_R_comment")[0]);I.innerHTML="该评论系统已关闭",U.selectEl("#U_MD_R_content_loading")[0].innerHTML=""}},U.MD.R.viewComment=function(e,t){if(US.userInfo.userid){var i,n,l,r,a,o=e,c=t;i=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",o],function(e){n=e.value,U.MD.R.printComment(i.content,2,n,!0,!0,!0),c&&U.selectEl(i.content).find(".U_MD_R_content_box_content_edit").show(),l=$$("div",{className:"U_MD_R_content_warp_box"},i.content);for(var t=0;t0&&(U.selectEl(p).find("img")[0].onclick=function(){U.MD.UI.picture([this.src],0),U.selectEl("#U_MD_UI_PictureForm").css("position","fixed"),U.UF.F.topWindow($("#U_MD_UI_PictureForm")[0],!0)}),u=$$("div",{className:"U_MD_R_content_box_content_bottom"},s),D=$$("div",{className:"U_MD_R_content_box_content_bottom_likeswarp"},u),D.onclick=function(){U.MD.R.like(this,k,US.userInfo.userid)},I=$$("img",{src:"/img/reply/NOFabulous.png"},D),M=$$("div",{className:"U_MD_R_content_box_content_bottom_likeswarp_text",innerHTML:0},D),O&&(M.innerHTML=O.ReplyNum,U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_SelectRepeatLikes_Moblie",k,US.userInfo.userid],function(e){1==e.value[0].mode?I.src="/img/reply/NOFabulous.png":0==e.value[0].mode?I.src="/img/reply/Fabulous.png":I.src="/img/reply/NOFabulous.png"})),m=$$("div",{className:"U_MD_R_content_box_content_bottom_replywarp"},u),m.onclick=j?function(){U.MD.R.subsetReply(this)}:function(){U.MD.R.viewComment(k,!0)},$$("img",{src:"/img/reply/reply.png"},m),$$("div",{innerHTML:"回复",className:"U_MD_R_content_box_content_bottom_replywarp_text"},m),1==P&&(f=$$("div",{className:"U_MD_R_content_box_content_bottom_showmorewarp"},u),$$("img",{src:"/img/reply/list.png"},f),h=$$("div",{className:"U_MD_R_content_box_content_bottom_showmore_text"},f),j?(h.className="U_MD_R_content_box_content_bottom_showmore_text U_MD_R_content_box_content_bottom_showmore_text_secondary",h.innerHTML=V?"共有("+V+")条评论":"没有评论(0)"):(h.className="U_MD_R_content_box_content_bottom_showmore_text U_MD_R_content_box_content_bottom_showmore_text_important",h.innerHTML=V?"查看更多("+V+")":"查看更多(0)",f.onclick=function(){U.MD.R.viewComment(k,!1)})),1==P&&!r&&U.selectEl(".U_MD_R_content_loading")[0]&&(U.MD.R.data.PageIndex0){var u=Guid.newGuid(),D=U.selectEl(e).attr("data-rid"),I=U.MD.R.data.PID,M=U.MD.R.data.AID,m="",f=US.userInfo.RegisterIP,h=U.MD.R.data.URL,g=null,y=U.selectEl(e).attr("data-rd"),v=(U.selectEl(e).attr("data-rbid"),U.selectEl(e).attr("data-rpuid")),x=1;1==n?y=1:2==n||3==n?y=parseInt($(e).attr("data-rd"))+1:(y=3,D=U.selectEl(e).attr("data-rpid")),m=$(s).find("img").length>0?c.innerHTML.trim()+s.find("img")[0].outerHTML:c.innerHTML,U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_InsertReply",u,D,I,M,d,_,p,m,f,h,g,y,v,x,U.MD.R.getNowFormatDate()],function(e){var t,i,n=e.value[0],s=U.selectEl("div[data-rid='"+n.ReplyParentID+"']").find(".U_MD_R_content_box_content_bottom_showmore_text_important span")[0];U.selectEl("div[data-rid='"+n.ReplyParentID+"']").find(".U_MD_R_content_box_content_bottom_showmore_text_secondary span")[0];U.selectEl(l).find(".U_MD_R_Reply_Content")[0].innerHTML="",U.UF.E.initEditor($(l).find(".U_MD_R_Reply_Content")[0]),U.selectEl(l).find(".U_MD_R_Reply_Image")[0].innerHTML="",1==o?(i=!1,t=!0,l=U.selectEl("#U_MD_R_content_user_comment")[0]):(i=!0,_val=s.innerText,2==o&&(l=U.selectEl(l).Parent().nextSibling,r=2,t=!0),3==o&&(l=$($(l)[0].nextSibling).find(".U_MD_R_content_warp_box").length>0?U.selectEl($(l)[0].nextSibling).find(".U_MD_R_content_warp_box"):$$("div",{className:"U_MD_R_content_warp_box"},U.selectEl($(l)[0].nextSibling)[0]),r=2),4==o&&(l=U.selectEl($(l).Parent()).Parent(),r=3),s.innerText=++_val,U.selectEl($(c).Parent()).hide());U.MD.R.printCommentHtml(l,r,{rid:n.ReplyID,rpid:n.ReplyParentID,deep:n.ReplyDeep,topid:n.ReplyTopID,uid:n.UserID,tx:n.ReplyUserThumbnailImageHead,un:n.UserName,time:U.MD.R.getNowFormatDate()+".0",content:n.ReplyContent,replyinfo:{uid:n.uid,un:n.un,tx:n.tx}},t,a,i);U.alert("评论成功")})}else U.alert("请输入评论内容")}else U.Alert("请先登录")},U.MD.R.like=function(e,t,i){if(US.userInfo.userid){var n=e,l=t,r=i;U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_Reply","Reply_SelectRepeatLikes",l,r],function(e){var t=U.selectEl(n).find("img")[0],i=U.selectEl(n).find(".U_MD_R_content_box_content_bottom_likeswarp_text")[0],l=parseInt(i.innerHTML);0==e.value[0].mode?(t.src="/img/reply/NOFabulous.png",i.innerHTML=--l):(t.src="/img/reply/Fabulous.png",i.innerHTML=++l)})}else U.Alert("请先登录")},U.MD.R.imgError=function(e){U.selectEl(e)[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(e){U.UF.Cookie.get("usestudiosso")&&U.UF.Cookie.get("usestudiosso","userid")[0]?U.UF.CD.loadPageCrossDomain(function(){U.MD.U.L.loginCallBack=function(){e&&e(),U.selectEl(".U_MD_R_content_operation_userhead img")[0].src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead,U.selectEl(".U_MD_R_content_operation_userlogin")[0].innerHTML=US.userInfo.username}}):e&&e()},U.MD.R.login.cb=function(){U.selectEl(".U_MD_R_content_operation_userhead img")[0].src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead,U.selectEl(".U_MD_R_content_operation_userlogin")[0].innerHTML=US.userInfo.username},U.MD.R.getNowFormatDate=function(){var e=new Date,t="-",i=":",n=e.getMonth()+1,l=e.getDate();n>=1&&n<=9&&(n="0"+n),l>=0&&l<=9&&(l="0"+l);var r=e.getFullYear()+t+n+t+l+" "+e.getHours()+i+e.getMinutes()+i+e.getSeconds();return r},Namespace.register("U.MD.UI.table"),U.MD.UI.table=function(e,t,i,n){U.MD.UI.table.thead(e,t,i,n)},U.MD.UI.table.thead=function(e,t,i,n,l,r){var a,o,c,s;for(var d in l||(l=1,r=e.length),a=$$("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"}},n),o=$$("thead",{},a),c=$$("tr",{},o),t)"object"==typeof t[d]?$$("th",{innerHTML:t[d].name,style:{cssText:i[d],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},c):$$("th",{innerHTML:t[d],style:{cssText:i[d],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},c);return s=$$("tbody",{style:{cssText:"width:100%;"},id:"tbody"},a),U.MD.UI.table.tbody(s,e,t,i,l,r),s},U.MD.UI.table.tbody=function(e,t,i,n,l,r){for(var a,o,c,s=(l-1)*r;s=0;t--)e.removeChild(e.children[t])},U.MD.UI.table.onclick=function(e,t,i){e.onclick=function(){i(t)}},U.MD.UI.table.printDiv=function(e,t){var i;if("string"==typeof t.name&&(i=$$("div",{innerHTML:t.name},e)),"object"==typeof t.name){var n=t.name.cloneNode(!0);e.appendChild(n),i=n}return i},Namespace.register("U.MD.UI.Tree"),U.MD.UI.Tree=function(e,t,i,n){json=[];for(var l=e,r=0;rt&&(t=parseInt(e[i].id));return t},Namespace.register("U.MD.UI.txt");