function move(e,t,i){clearInterval(e.timer),e.timer=setInterval(function(){var n=!0;for(var l in t){var a=null;a="opacity"==l?100*getStyle(e,l):parseInt(getStyle(e,l))||0;var c=t[l],r=.2*(c-a);r=r>0?Math.ceil(r):Math.floor(r),a!=c&&("opacity"==l?(e.style.filter="alpha(opacity = "+(a+r)+")",e.style[l]=(a+r)/100):e.style[l]=a+r+"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,g++,g%=v,h==f-1?move(I,{left:-_*h},function(){h=1,this.style.left=-h*_+"px"}):move(I,{left:-_*h}),l(g),s&&s(g+1)}function l(e){for(var t=0;t"},d),$$("ul",{className:"U_MD_UI_slider_Point"},e));for(E=0;E500&&(h--,g--,0==h?move(I,{left:-_*h},function(){h=f-2,this.style.left=-h*_+"px"}):move(I,{left:-_*h}),g=-1==g?v-1:g,l(g),s&&s(g+1)),P=new Date},m[1].onclick=function(){var e=new Date;e-P>500&&(h++,g++,g%=v,h==f-1?move(I,{left:-_*h},function(){h=1,this.style.left=-h*_+"px"}):move(I,{left:-_*h}),l(g),s&&s(g+1)),P=new Date},x=setInterval(n,a),0==g&&console.log(g+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 c=0;c<_mc.length;c++)_mc[c].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,a,c,r;i=e||"-",n=t?U.MD.UI.calendar.CURRENTYEAR:U.MD.UI.calendar.year,c=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,c=c.toString()[1]?c:"0"+c,l=l.toString()[1]?l:"0"+l;var s=n+i+c+i+l;if("boolean"==typeof U.MD.UI.calendar.datetimeformat&&U.MD.UI.calendar.datetimeformat){if(t){var o=new Date;U.MD.UI.calendar.hour=o.getHours(),U.MD.UI.calendar.minute=o.getMinutes(),U.MD.UI.calendar.second=o.getSeconds()}a=U.MD.UI.calendar.hour.toString()[1]?U.MD.UI.calendar.hour:"0"+U.MD.UI.calendar.hour,c=U.MD.UI.calendar.minute.toString()[1]?U.MD.UI.calendar.minute:"0"+U.MD.UI.calendar.minute,r=U.MD.UI.calendar.second.toString()[1]?U.MD.UI.calendar.second:"0"+U.MD.UI.calendar.second,s+=" "+a+":"+c+":"+r}return s},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(a,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,a,c,r){var s=this;if(i&&U.UF.UI.form.allForm[i.id])s=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 s.ififrame=U.UF.C.isElement(s.content)&&("IFRAME"==s.content.tagName&&s.content.src==t.src||$("iframe",s.content)[0]&&$("iframe",s.content)[0].src==$("iframe",t)[0].src),s.form,s.header,s.middle,s.title=e,s.content=s.ififrame?s.content:t,s.formattr=i,s.headattr=l,s.contentattr=a,s.headbottomattr=c,null==n&&(n={}),s.istop=null,null!=n.istop&&(s.istop=n.istop),s.isdrag=!0,null!=n.isdrag&&(s.isdrag=n.isdrag),s.isstretching=!0,null!=n.isstretching&&(s.isstretching=n.isstretching),s.isenlarge=!0,null!=n.isenlarge&&(s.isenlarge=n.isenlarge),s.isnarrow=!0,s.narrowcallback=n.narrowcallback,null!=n.isnarrow&&(s.isnarrow=n.isnarrow),s.isclose=!0,s.closecallback=n.closecallback,null!=n.isclose&&(s.isclose=n.isclose),s.parentel=r||document.body,s.create(),s},U.UF.UI.form.allForm={},U.UF.UI.form.prototype={create:function(){var e,t,i,n,l,a,c,r,s,o,d=this.formattr||{},u=this.headattr||{},_=this.contentattr||{},p=U.UF.UI.form.allForm[d.id]?U.UF.UI.form.allForm[d.id].form:null;if(this.ififrame){if(this.closecallback&&"close"==this.windowstate)try{"IFRAME"==this.content.tagName?this.content.src+="":$("iframe",_this.content)[0].src+=""}catch(e){}I=p}else{d.style?(d.style.cssText=d.style.cssText||"",d.style.cssText="width: 70%; position: absolute; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz- -webkit- border-radius:5px;"+d.style.cssText):d.style={cssText:"width: 70%; position: absolute; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz- -webkit- 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,o=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(),o&&o()})):!1!==d.onresize&&(d.onresize=U.UF.C.apply(this,function(){this.size()}));var I=$$("div",this.formattr);if(!0===this.istop?(I.style.zIndex="9999",I.__top__="false"):!1===this.istop&&(I.__top__="false"),this.form=I,!1!==this.title&&(u.style?(u.style.cssText=u.style.cssText||"",u.style.cssText="text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 36px; background-color: rgb(48 48 48); overflow: hidden; color: White; font-size: 14px; overflow: hidden; "+u.style.cssText):u.style={cssText:"text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 36px; background-color: rgb(48 48 48); overflow: hidden; color: White; font-size: 14px; overflow: hidden; "},this.isdrag&&(u.onmousedown=function(){U.UF.F.drag(I)}),i=$$("div",u,I),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%; position: relative;"}}),_.usbody="true",_.style?(_.style.cssText=_.style.cssText||"",_.style.cssText="text-align: left; overflow: hidden;"+_.style.cssText):_.style={cssText:"text-align: left; "},l=$$("div",_,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(I)}),!1!==this.isstretching)for(e in a=$$("div",{style:{cssText:"display: block;"}},I),c={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;"},c)$$("div",{style:{cssText:"position: absolute; overflow: hidden; display: block; z-index: 10;"+c[e]},onmousedown:U.UF.C.closure(function(e,t){U.UF.F.stretching(I,t,U.UF.C.apply(e,e.size))},[this,e])},a);!1!==this.title&&(r=$$("div",{style:{cssText:"position: absolute; top: 5px; right: 0px; width: 80px; display: table-cell; vertical-align: middle;"}},I)),!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(){this.windowstate="close",U.UF.F.closeWindow(this.form);try{U.MD.D.T.taskbar.close&&(U.MD.D.T.taskbar.close({forms:I}),U.MD.N.urlWrite("","智慧课堂平台"))}catch(e){}U.UF.C.isFunction(this.closecallback)&&this.closecallback()})},r),!1!==this.isenlarge&&(s=$$("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(){this.windowstate="max",U.UF.F.windowZooming(I)}},r),i&&(i.ondblclick=U.UF.C.apply(i,function(){U.UF.EV.stopBubble(event),(event.srcElement==this||U.UF.EL.isChild(this,event.srcElement))&&s.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:U.UF.C.apply(this,function(){this.windowstate="min",U.UF.F.windowMinimize(I),U.UF.C.isFunction(this.narrowcallback)&&this.narrowcallback()})},r),p&&null!=p.parentNode?p.parentNode.replaceChild(I,p):this.parentel.appendChild(I),I.appendChild(n)}""==I.style.top&&""==I.style.left&&""==I.style.right&&""==I.style.bottom?U.UF.F.windowTopCenter(I):U.UF.F.topWindow(I),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,a=US.width,c=US.height,r=U.UF.UI.form.allForm;for(e in r)l=r[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/a,n=n.indexOf("%")>-1?n.toInt()/100:l.offsetWidth/c,""!=l.style.right&&"auto"!=l.style.right||(t.left=l.offsetLeft+(document.body.offsetWidth-a)*((1-i)/2)+"px"),""!=l.style.bottom&&"auto"!=l.style.bottom||(t.top=l.offsetTop+(document.body.offsetHeight-c)*((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,a=U.MD.UI.music;(l=U.selectEl("#U_MD_UI_music_musicBox")[0])&&l.remove(),a.create(n),a.Attr={musicList:e,musicIndex:t,autoplay:i,currentTime:null,endTime:null},a.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 a=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,a[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"),a=t.musicList,c=t.musicIndex,r=a.length-1;n.bind("click",function(){c=t.musicIndex,c===r?(t.musicIndex=0,c=t.musicIndex,i[0].src=a[c].src):(t.musicIndex++,c=t.musicIndex,i[0].src=a[c].src)}),l.bind("click",function(){c=t.musicIndex,0===c?(t.musicIndex=r,c=t.musicIndex,i[0].src=a[c].src):(t.musicIndex--,c=t.musicIndex,i[0].src=a[c].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"),a=i[0].clientWidth,c=.5,r=U.selectEl("#U_MD_UI_music_soundSwitch");t[0].volume=c,n[0].style.left=a*c+"px",l[0].style.width=a*c+"px",r.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 s=e.getOffsetLeft(this),U=s+a,o=i.pageX;o=Math.max(o,s),o=Math.min(o,U);var d=o-s;c=Math.round(100*parseFloat(d/a))/100,n[0].style.left=a*c+"px",l[0].style.width=a*c+"px",t[0].volume=c,t[0].volume<=0?r.addClass("U_MD_UI_music_soundClose"):r.removeClass("U_MD_UI_music_soundClose")}),n.bind("mousedown",function(e){U.UF.EV.stopBubble(e);var i=e.pageX,s=function(e){U.UF.EV.stopDefault(e);var s=e.pageX,o=s-i+d;o=Math.max(0,o),o=Math.min(a,o),n[0].style.left=o+"px",l[0].style.width=o+"px",c=Math.round(100*parseFloat(o/a))/100,t[0].volume=c,t[0].volume<=0?r.addClass("U_MD_UI_music_soundClose"):r.removeClass("U_MD_UI_music_soundClose")},o=function(){U.selectEl(document).unbind("mousemove",s),U.selectEl(document).unbind("mouseup",o)},d=parseFloat(n.css("left"));U.selectEl(document).bind("mousemove",s),U.selectEl(document).bind("mouseup",o)})},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"),a=U.selectEl("#U_MD_UI_music_progressBall"),c=U.selectEl("#U_MD_UI_music_progressBar"),r=U.selectEl("#U_MD_UI_music_playBtn"),s=l[0].clientWidth,o=!0;n.bind("timeupdate",function(){if(this.paused?r.addClass("U_MD_UI_music_playBtn"):r.removeClass("U_MD_UI_music_playBtn"),o){e=this.currentTime;var t=Math.round(1e4*parseFloat(e/i.endTime))/1e4;a[0].style.left=s*t+"px",c[0].style.width=s*t+"px"}}),l.bind("mousedown",function(e){var l=t.getOffsetLeft(this),r=l+s,U=e.pageX;U=Math.max(U,l),U=Math.min(U,r);var o=U-l;_speed=Math.round(1e4*parseFloat(o/s))/1e4,a[0].style.left=s*_speed+"px",c[0].style.width=s*_speed+"px",n[0].currentTime=i.endTime*_speed}),a.bind("mousedown",function(t){o=!1,U.UF.EV.stopBubble(t);var l=t.pageX,r=function(t){U.UF.EV.stopDefault(t);var n=t.pageX,r=n-l+u;r=Math.max(0,r),r=Math.min(s,r),a[0].style.left=r+"px",c[0].style.width=r+"px",_speed=Math.round(1e4*parseFloat(r/s))/1e4,a[0].style.left=s*_speed+"px",c[0].style.width=s*_speed+"px",e=i.endTime*_speed},d=function(){o=!0,n[0].currentTime=e,U.selectEl(document).unbind("mousemove",r),U.selectEl(document).unbind("mouseup",d)},u=parseFloat(a.css("left"));U.selectEl(document).bind("mousemove",r),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 a=U.selectEl(e)[0],c=Math.ceil(t/i);if(this.Pageall=c,a.getElementsByClassName("U_MD_F_Y")[0])return!1;U.UF.P.pagepId++;var r,s=$$("div",{className:"U_MD_F_Y"},a),o=$$("div",{className:"U_MD_F_YL"},s),d=$$("div",{className:"U_MD_F_YLO U_MD_F_Y_Button",innerHTML:"首页",title:"首页",pid:U.UF.P.pagepId+"1"},o),u=$$("div",{className:"U_MD_F_YLT U_MD_F_Y_Button",title:"上一页",pid:U.UF.P.pagepId+"3"},o),_=$$("div",{className:"U_MD_F_YN"},o),p=Math.min(c,Math.max(n+5,10));for(r=Math.max(1,Math.min(n-5,c-10));r<=p;r++)(function(e,t){var i=$$("div",{innerHTML:e,pid:U.UF.P.pagepId+"5"},_);e==n&&(i.className="U_MD_F_Y_Button_Active"),i.onclick=U.UF.P.apply(function(e){U.UF.P.centerEle(t,i)},[r],t)})(r,this);var I=$$("div",{className:"U_MD_F_YLS U_MD_F_Y_Button",title:"下一页",pid:U.UF.P.pagepId+"4"},o),D=$$("div",{className:"U_MD_F_YLF U_MD_F_Y_Button",innerHTML:"尾页",title:"尾页",pid:U.UF.P.pagepId+"2"},o),M=$$("div",{className:"U_MD_F_YR"},s);$$("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,e),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,e),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,e),i(this.PageNum)):(U.alert("无效的输入"),U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")))}}},pagefun:function(e,t,i){var n=t,l=parseInt(e.innerHTML)||e;U.selectEl(".U_MD_F_Y_Button_Active",i).removeClass("U_MD_F_Y_Button_Active");var a,c=Math.ceil(n.length/2),r=(this.Index,null),s=parseInt($(n)[$(n).length-1].innerText);if(lthis.Pageall-c&&l<=this.Pageall)if(l>this.Pageall-c&&l<=this.Pageall){var o=this;[].__proto__.forEach.apply($(n),[function(e,t,i){e.innerText=o.Pageall+1-i.length+t}])}else l - 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),a=0;a=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 a=l.clientX-i,c=l.clientY-n;a=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientWidth-t.clientWidth/8,a):Math.min(t.clientWidth-t.clientWidth/8-e.clientWidth/2+e.clientHeight/2,a),a=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientWidth+t.clientWidth/8,a):Math.max(-e.clientWidth+t.clientWidth/8+e.clientWidth/2-e.clientHeight/2,a),c=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientHeight-t.clientHeight/8,c):Math.min(t.clientHeight-t.clientHeight/8+(e.clientWidth-e.clientHeight)/2,c),c=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientHeight+t.clientHeight/8,c):Math.max(-e.clientHeight+t.clientHeight/8-(e.clientWidth-e.clientHeight)/2,c),e.style.left=a+"px",e.style.top=c+"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,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&&U.MD.UI.picture.rotatenum%2!=0,c=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,r=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"),a&&(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"),c&&(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"),r&&(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 a=n||!1,c=null,r=null,s=!1,o=!1,d=U.MD.UI.video.appendEle(e,t,i,a,l);return U.MD.UI.video.addEvent(d,c,r,s,i,t,o),d},U.MD.UI.video.appendEle=function(e,t,i,n,l){var a={};return a.videoDiv=$$("div",{className:"U_MD_UI_video_VideoDiv",style:{width:t+"px",height:i+"px"}},l),a.video=$$("video",{src:e,className:"U_MD_UI_video_VideoMain",autoplay:n,preload:"auto"},a.videoDiv),a.controls=$$("div",{className:"U_MD_UI_video_VideoControls"},a.videoDiv),a.playPauseBtn=$$("div",{className:"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"},a.controls),a.currentTimeDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00"},a.controls),a.progress=$$("div",{className:"U_MD_UI_video_Progress"},a.controls),a.progressCurrentTime=$$("div",{className:"U_MD_UI_video_ProgressCurrentTime"},a.progress),a.progressCircle=$$("div",{className:"U_MD_UI_video_ProgressCircle"},a.progressCurrentTime),a.DurationDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00",onselectstart:"return false;"},a.controls),a.soundControls=$$("div",{className:"U_MD_UI_video_SoundControls"},a.controls),a.soundProgress=$$("div",{className:"U_MD_UI_video_SoundProgress"},a.controls),a.soundProgressCurrent=$$("div",{className:"U_MD_UI_video_SoundProgressCurrent",style:{width:"100%"}},a.soundProgress),a.fullScreenBtn=$$("div",{className:"U_MD_UI_video_FullScreen"},a.controls),a},U.MD.UI.video.addEvent=function(e,t,i,n,l,a,c){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(c,l,a,e);c=t[0],l=t[1],a=t[2]}:void 0!==e.videoDiv.onfullscreenchange?e.videoDiv.onfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(c,l,a,e);c=t[0],l=t[1],a=t[2]}:void 0!==e.videoDiv.onmozfullscreenchange&&(e.videoDiv.onmozfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(c,l,a,e);c=t[0],l=t[1],a=t[2]}),e.fullScreenBtn.onclick=function(){U.MD.UI.video.fullscreenClick(c,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,a){e||(t.innerHTML=U.MD.UI.video.timeFormat(a.currentTime),i.innerHTML=U.MD.UI.video.timeFormat(a.duration),n.style.width=a.currentTime/a.duration*100+"%",l.style.width=100*a.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,a=n.pageX,c=l.parentElement,r=c.parentElement;i.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(r)<0||e.pageX-U.MD.UI.video.getScreenLeft(r)>r.offsetWidth)){var t=e.pageX-a;!(c.offsetWidth+t>r.offsetWidth||c.offsetWidth+t<0)&&e.currentTarget.children[0].offsetWidth<=e.currentTarget.children[0].offsetWidth&&(c.style.width=(c.offsetWidth+t)/r.offsetWidth*100+"%",i.video.currentTime=(c.offsetWidth+t)/r.offsetWidth*i.video.duration),a=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,a=n.pageX,c=t.soundProgressCurrent,r=e.offsetX,s=l.offsetWidth;t.video.volume=r/s,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-a;c.offsetWidth+i>l.offsetWidth||c.offsetWidth+i<0||(c.style.width=(c.offsetWidth+i)/l.offsetWidth*100+"%",t.video.volume=c.offsetWidth/l.offsetWidth),a=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,a=n.pageX,c=t.progressCurrentTime,r=e.layerX||e.offsetX,s=l.offsetWidth;t.video.currentTime=t.video.duration*(r/s),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-a;c.offsetWidth+n>t.progress.offsetWidth||c.offsetWidth+n<0||(c.style.width=(c.offsetWidth+n)/t.progress.offsetWidth*100+"%",t.video.currentTime=(c.offsetWidth+n)/t.progress.offsetWidth*t.video.duration),a=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(){}}}};