//电脑端banner滑块控件命名空间 //色板 //工具空间,宝航字体、字号。。。 //字体 //#region alert弹窗代码、confirm对话框 //UI窗体区域 //电脑端banner滑块控件命名空间 //PC端表情包 //#region 窗体 //UI窗体区域 //窗体功能命名空间 //编辑器 //excel控件 //编辑器 Namespace.register("U.MD.UI.slider");U.MD.UI.slider=function(a,b,c){function d(){p=++p%w;r++;r%=x;p==w-1?move(q,{left:-n*p},function(){p=1;this.style.left=-p*n+"px"}):move(q,{left:-n*p});e(r);k&&k(r+1)}function e(a){for(var b=0;b>>0:0,d=Math.abs(a)%12;!b&&(d=-d);!b&&(c=-c);U.MD.UI.calendar.month+=d;U.MD.UI.calendar.year+=c;b?11U.MD.UI.calendar.month&&(U.MD.UI.calendar.month=11,U.MD.UI.calendar.year--);1==U.MD.UI.calendar.mark&&U.MD.UI.calendar.showDay();2==U.MD.UI.calendar.mark&&(U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year);3==U.MD.UI.calendar.mark&&U.MD.UI.calendar.dateTenYear()};U.MD.UI.calendar.formartDate=function(a,b){var c,d,e,f;c=a||"-";d=b?U.MD.UI.calendar.CURRENTYEAR:U.MD.UI.calendar.year;e=b?U.MD.UI.calendar.CURRENTMONTH+1:U.MD.UI.calendar.month+1;f=b?U.MD.UI.calendar.CURRENTDAY:U.MD.UI.calendar.day;e=e.toString()[1]?e:"0"+e;f=f.toString()[1]?f:"0"+f;c=d+c+e+c+f;"boolean"==typeof U.MD.UI.calendar.datetimeformat&&U.MD.UI.calendar.datetimeformat&&(b&&(e=new Date,U.MD.UI.calendar.hour=e.getHours(),U.MD.UI.calendar.minute=e.getMinutes(),U.MD.UI.calendar.second=e.getSeconds()),d=U.MD.UI.calendar.hour.toString()[1]?U.MD.UI.calendar.hour:"0"+U.MD.UI.calendar.hour,e=U.MD.UI.calendar.minute.toString()[1]?U.MD.UI.calendar.minute:"0"+U.MD.UI.calendar.minute,f=U.MD.UI.calendar.second.toString()[1]?U.MD.UI.calendar.second:"0"+U.MD.UI.calendar.second,c+=" "+d+":"+e+":"+f);return c};U.MD.UI.calendar.outPutDate=function(a){"INPUT"===U.MD.UI.calendar.fouseinp.tagName?U.MD.UI.calendar.fouseinp.value=U.MD.UI.calendar.formartDate("-",a):U.MD.UI.calendar.fouseinp.innerText=U.MD.UI.calendar.formartDate("-",a);U.MD.UI.calendar.CheckedDay&&U.MD.UI.calendar.CheckedDay();U.MD.UI.calendar.board.style.display="none"};U.MD.UI.calendar.changeDisplay=function(a,b,c){a&&"object"===typeof a&&a.setAttribute("style","display:"+(c||"block"));b&&"object"===typeof b&&b.setAttribute("style","display:none");return[a,b]};U.MD.UI.calendar.dateTenYear=function(){_yearArr=$("#calendar_year \x3e ul \x3e li");_startYear=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10;for(var a=0;a<_yearArr.length;a++)_yearArr[a].onclick=function(){U.MD.UI.calendar.mark=2;U.MD.UI.calendar.year=parseInt(this.innerText);U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],$("#calendar_year")[0]);U.MD.UI.calendar.tit.innerText=this.innerText},_yearArr[a].innerHTML="",0==a||a==_yearArr.length-1?$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_startYear+a-1},_yearArr[a]):_startYear+a-1===U.MD.UI.calendar.CURRENTYEAR?$$("span",{style:{"background-color":"#eed1bc"},innerText:_startYear+a-1},_yearArr[a]):$$("span",{innerText:_startYear+a-1},_yearArr[a]);U.MD.UI.calendar.tit.innerText=(t=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10)+"-"+(t+9)};U.MD.UI.calendar.ChooseDefault=function(a){U.MD.UI.calendar.datetimeformat?(a&&(U.MD.UI.calendar.hour="00",U.MD.UI.calendar.minute="00",U.MD.UI.calendar.second="00",$(U.MD.UI.calendar.board).find(".U_MD_UI_calendar_timeRowActive").removeClass("U_MD_UI_calendar_timeRowActive"),!$("#U_MD_UI_calendar_timeText").length&&U.MD.UI.calendar.createChooseTime($("#calendar_timeChoose")[0])),$("#calendar_time")[0].style.display="block",$("#calendar_timeChoose")[0].style.display="none",$("#U_MD_UI_calendar_timeText")[0].innerText="\u9009\u62e9\u65f6\u95f4",$("#U_MD_UI_calendar_timeText").removeClass("U_MD_UI_calendar_timeTextClick")):($("#calendar_time")[0].style.display="none",$("#calendar_timeChoose")[0].style.display="none")};U.MD.UI.calendar.SetCallBack=function(a,b){if("function"!=typeof b||!"CheckedDay ".match(a+" "))return 0;U.MD.UI.calendar[a]=b};Namespace.register("U.MD.UI.city");U.MD.UI.city=function(a){U.UF.EV.stopBubble();if(a&&a.tagName)if(_cityBox=$("#U_MD_UI_city_cityBox")[0]){var b=a.getBoundingClientRect();_cityBox.style.top=b.top+b.height+document.documentElement.scrollTop+"px";_cityBox.style.left=b.left+document.documentElement.scrollLeft+"px";$(_cityBox).removeClass("U_MD_UI_city_hidden");U.MD.UI.city.Attr.inputNode=a}else b=U.MD.UI.city,b.create(a),b.Attr={inputNode:a},b.init()};U.MD.UI.city.Attr={};U.MD.UI.city.usedCity=null;U.MD.UI.city.province=null;U.MD.UI.city.city={};U.MD.UI.city.area={};U.MD.UI.city.htmlTemplate=' \x3cul class\x3d"U_MD_UI_city_menuBox"\x3e \x3c!--\u63a7\u4ef6\u7684\u5934\u90e8--\x3e\n\n \x3c!--U_MD_UI_city_menuChecked \u9009\u4e2d\u83dc\u5355\u7684\u6309\u94ae\u65f6\u6240\u7528\u7684"className":\u7ea2\u8272--\x3e\n \x3c!--U_MD_UI_city_filled \u8868\u793a\u5f85\u586b\u5199class \u4e3a\u589e\u5220class\u5360\u4f4d\u7f6e \u9632\u51fa\u9519 \u4ee5\u4e0b\u90fd\u662f--\x3e\n \x3c!--U_MD_UI_city_menuoChecked \u9009\u62e9\u57ce\u5e02\u540e\u6240\u6dfb\u52a0\u7684class \u7ea2\u8272\u5c0f\u5706\u70b9--\x3e\n \x3cli id\x3d"U_MD_UI_city_usedCityMenu" data-city-mark\x3d"U_MD_UI_city_usedCityCont" class\x3d"U_MD_UI_city_menuChecked" data-city-res\x3d""\x3e\n \x3cspan\x3e\u5e38\u7528\u5e02\x3c/span\x3e\n \x3c/li\x3e\n\n \x3cli id\x3d"U_MD_UI_city_provinceMenu" data-city-mark\x3d"U_MD_UI_city_provinceCont" class\x3d"U_MD_UI_city_filled" data-city-res\x3d""\x3e\n \x3cspan\x3e\u7701/\u76f4\u8f96\u5e02\x3c/span\x3e\n \x3c/li\x3e\n\n \x3cli id\x3d"U_MD_UI_city_cityMenu" data-city-mark\x3d"U_MD_UI_city_cityCont" class\x3d"U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res\x3d""\x3e\n \x3cspan\x3e\u8bf7\u9009\u62e9\x3c/span\x3e\n \x3c/li\x3e\n\n \x3cli id\x3d"U_MD_UI_city_areaMenu" data-city-mark\x3d"U_MD_UI_city_areaCont" class\x3d"U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res\x3d""\x3e\n \x3cspan\x3e\u8bf7\u9009\u62e9\x3c/span\x3e\n \x3c/li\x3e\n \x3c/ul\x3e\n\n\n \x3c!--\u4ee5\u4e0b\u4e3a\u4e3b\u8981\u5185\u5bb9\u533a\u57df--\x3e\n \x3c!-- ----------------------------------------------------------------------------- --\x3e\n \x3cul id\x3d"U_MD_UI_city_usedCityCont" class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5e38\u7528\u57ce\u5e02\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3cli id\x3d"U_MD_UI_city_liTemplate"\x3e\x3cspan\x3e\u5149\u660e\u65b0\u533a\x3c/span\x3e\x3c/li\x3e\n \x3c!-- U_MD_UI_city_liTemplate \u4e3a\u5185\u5bb9\u533a\u57df\u7684li\u7684\u6a21\u677f \u53ef\u65e0\u89c6 \u5df2display\u4e3anone --\x3e\n \x3c!--U_MD_UI_city_Cont_ochecked \u9009\u4e2d\u57ce\u5e02\u7684\u6309\u94ae\u65f6\u6240\u7528\u7684"className":\u7ea2\u8272--\x3e\n \x3c/ul\x3e\n\n\n \x3cul class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id\x3d"U_MD_UI_city_provinceCont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5b58\u653e\u7701\u7684\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3c/ul\x3e\n\n\n \x3cul class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id\x3d"U_MD_UI_city_cityCont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5b58\u653e\u5e02\u7684\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3c/ul\x3e\n\n\n \x3cul class\x3d"U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id\x3d"U_MD_UI_city_areaCont"\x3e \x3c!-- \x26lt;!\x26ndash;\u5b58\u653e\u5730\u533a\u7684\u76d2\u5b50\u8282\u70b9\x26ndash;\x26gt; --\x3e\n \x3c/ul\x3e';U.MD.UI.city.create=function(a){var b=$$("div",{id:"U_MD_UI_city_cityBox",className:"U_MD_UI_city_cityBox U_MD_UI_city_hidden"},document.body);b.innerHTML+=U.MD.UI.city.htmlTemplate;var c=a.getBoundingClientRect();b.style.top=c.top+c.height+document.documentElement.scrollTop+"px";b.style.left=c.left+document.documentElement.scrollLeft+"px";U.MD.UI.city.Attr.inputNode=a;$(b).removeClass("U_MD_UI_city_hidden")};U.MD.UI.city.init=function(){var a=U.MD.UI.city;a.getUsedCity();a.inputEvent();a.menuEvent()};U.MD.UI.city.inputEvent=function(){var a=$("#U_MD_UI_city_cityBox")[0];$(document).bind("click",function(){$(a).addClass("U_MD_UI_city_hidden")},!1);$(a).bind("click",function(a){U.UF.EV.stopBubble(a)});$("#U_MD_UI_city_areaCont")[0].onclick=function(){$("#U_MD_UI_city_areaCont")[0]&&($("#U_MD_UI_city_cityBox")[0].style.display="none")}};U.MD.UI.city.menuEvent=function(){for(var a=U.MD.UI.city,b=$("[data-city-mark]"),c=0,d=b.length;c=c;c++)$$("button",{className:"U_MD_UI_face_C",style:{opacity:"0"},onclick:U.UF.C.closure(function(a){U.UF.EV.stopBubble();U.MD.UI.face.printEmoticon(d,a,U.UF.E.getRangeAt(),b)},[c])},e);$("body").unbind("click",U.MD.UI.face.externalClick);$("body").bind("click",U.MD.UI.face.externalClick)}b.focus()};U.MD.UI.face.externalClick=function(a){"BUTTON"!=window.event.srcElement.tagName&&$("#U_MD_UI_face")[0]&&($("#U_MD_UI_face")[0].style.display="none")};U.MD.UI.face.printEmoticon=function(a,b,c,d){b="/img/ChatingFaceGif/[face]("+b+").gif";c?U.UF.E.addRange('\x3cimg contentEditable\x3d"true" src\x3d"'+b+'"\x3e',null,!0):$$("img",{onerror:U.MD.C.imgError,src:b,contentEditable:"true"},$(d)[0]);$(a)[0].style.display="none"};Namespace.register("U.UF.UI");U.UF.UI.form=function(a,b,c,d,e,f,h,g){var k=this;c&&U.UF.UI.form.allForm[c.id]?k=U.UF.UI.form.allForm[c.id]:(this.id=c&&c.id?c.id:Guid.newGuid(),U.UF.UI.form.allForm[this.id]=this);k.form;k.header;k.middle;k.title=a;k.content=b;k.formattr=c;k.headattr=e;k.contentattr=f;k.headbottomattr=h;null==d&&(d={});k.istop=null;null!=d.istop&&(k.istop=d.istop);k.isdrag=!0;null!=d.isdrag&&(k.isdrag=d.isdrag);k.isstretching=!0;null!=d.isstretching&&(k.isstretching=d.isstretching);k.isenlarge=!0;null!=d.isenlarge&&(k.isenlarge=d.isenlarge);k.isnarrow=!0;null!=d.isnarrow&&(k.isnarrow=d.isnarrow);k.isclose=!0;k.closecallback=d.closecallback;null!=d.isclose&&(k.isclose=d.isclose);k.parentel=g||document.body;k.create();return k};U.UF.UI.form.allForm={};U.UF.UI.form.prototype={create:function(){var a,b,c,d,e,f,h,g,k;e=this.formattr||{};var l=this.headattr||{};f=this.contentattr||{};var m=U.UF.UI.form.allForm[e.id]?U.UF.UI.form.allForm[e.id].form:null;e.style?(e.style.cssText=e.style.cssText||"",e.style.cssText="width: 70%; position: fixed; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:0 0 30px 5px #555; -webkit-box-shadow:0 0 30px 5px #555; box-shadow:0 0 30px 5px #555; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"+e.style.cssText):e.style={cssText:"width: 70%; position: fixed; border: 1px solid #444; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:0 0 30px 5px #555; -webkit-box-shadow:0 0 30px 5px #555; box-shadow:0 0 30px 5px #555; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"};e.close=U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form)});e.usform="true";e.id=e.id||"";e.style=e.style||{};e.onresize?(b=e.onresize,k=e.onmousedown,e.onresize=U.UF.C.apply(this,function(){this.size();b&&b()}),e.onmousedown=U.UF.C.apply(this,function(){!1!==this.istop&&this.top();k&&k()})):!1!==e.onresize&&(e.onresize=U.UF.C.apply(this,function(){this.size()}));c=$$("div",this.formattr);!0===this.istop?(c.style.zIndex="9999",c.__top__="false"):!1===this.istop&&(c.__top__="false");this.form=c;!1!==this.title&&(l.style?(l.style.cssText=l.style.cssText||"",l.style.cssText="text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 30px; background-color: #2967A7; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "+l.style.cssText):l.style={cssText:"text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 30px; background-color: #2967A7; overflow: hidden; color: White; font-size: 14px; overflow: hidden; "},this.isdrag&&(l.onmousedown=function(){U.UF.F.drag(c)}),d=$$("div",l,c),U.UF.C.isString(this.title)?d.innerHTML=this.title:U.UF.C.isElement(this.title)&&d.appendChild(this.title),this.header=d);e=$$("div",{style:{cssText:"width: 100%; height:100%; position: relative;"}},c);f.usbody="true";f.style?(f.style.cssText=f.style.cssText||"",f.style.cssText="text-align: left; overflow: hidden;"+f.style.cssText):f.style={cssText:"text-align: left; overflow: auto;"};f=$$("div",f,e);U.UF.C.isString(this.content)?f.innerHTML=this.content:U.UF.C.isElement(this.content)&&f.appendChild(this.content);this.middle=f;!1===this.title&&this.isdrag&&(e.onmousedown=function(){U.UF.F.drag(c)});if(!1!==this.isstretching)for(a in f=$$("div",{style:{cssText:"display: block;"}},c),e={top:"cursor: n-resize; left: 0px; top: 0px; width: 100%; height: 5px;",rightTop:"cursor: ne-resize; right: -2px; top: -2px; width: 12px; height: 12px;",leftTop:"cursor: nw-resize; top: 0px; left: 0px; width: 12px; height: 12px;",left:"cursor: w-resize; left: 0px; top: 0px; width: 5px; height: 100%;",right:"cursor: e-resize; right: 0px; top: 0px; width: 5px; height: 100%;",bottom:"cursor: s-resize; left: 0px; bottom: 0px; width: 100%; height: 5px;",leftBottom:"cursor: sw-resize; left: -2px; bottom: -2px; width: 12px; height: 12px;",rightBottom:"cursor: se-resize; right: -2px; bottom: -2px; width: 12px; height: 12px;"},e)$$("div",{style:{cssText:"position: absolute; overflow: hidden; display: block; z-index: 10;"+e[a]},onmousedown:U.UF.C.closure(function(a,b){U.UF.F.stretching(c,b,U.UF.C.apply(a,a.size))},[this,a])},f);!1!==this.title&&(h=$$("div",{style:{cssText:"position: absolute; top: 3px; right: 0px; width: 80px; display: table-cell; vertical-align: middle;"}},c));!1!==this.isclose&&$$("div",{style:{cssText:"background-image:url(/img/close.png); _background-image:url(/img/close.png);width: 20px; height: 20px; background-position: -120px -61px; background-size: 100%; float: right; margin-right: 3px; cursor: pointer;"},title:"\u70b9\u51fb\u5173\u95ed",onmousedown:U.UF.EV.stopBubble,onclick:U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form);try{U.MD.D.T.taskbar.close&&(U.MD.D.T.taskbar.close({forms:c}),U.MD.N.urlWrite("","\u4e91\u7aef - 1473"))}catch(n){}U.UF.C.isFunction(this.closecallback)&&this.closecallback()})},h);!1!==this.isenlarge&&(g=$$("div",{style:{cssText:"background-image:url(/img/max.png); _background-image:url(/img/max.png);background-position: -598px -240px; background-size: 100%; float: right; margin-right: 7px; width: 20px; height: 20px; cursor: pointer;"},title:"\u6700\u5927\u5316",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowZooming(c)}},h),d&&(d.ondblclick=U.UF.C.apply(d,function(){if(event.srcElement==this||U.UF.EL.isChild(this,event.srcElement))g.onclick()})));!1!==this.isnarrow&&$$("div",{style:{cssText:"background-image:url(/img/min.png); _background-image:url(/img/min.png);background-position: -617px -240px; background-size: 100%; float: right; margin-right: 10px; width: 20px; height: 20px; cursor: pointer;"},title:"\u6700\u5c0f\u5316",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowMinimize(c)}},h);m&&null!=m.parentNode?m.parentNode.replaceChild(c,m):this.parentel.appendChild(c);""==c.style.top&&""==c.style.left&&""==c.style.right&&""==c.style.bottom?U.UF.F.windowTopCenter(c):U.UF.F.topWindow(c);this.size()},top:function(){U.UF.F.topWindow(this.form)},size:function(){this.middle.style.height=this.header?this.form.clientHeight-this.header.clientHeight+"px":this.form.clientHeight+"px"}};U.UF.UI.form.windowResize=function(){var a,b,c=US.width,d=US.height,e,f,h,g=U.UF.UI.form.allForm;for(a in g)if(h=g[a].form,"none"!=$(h).css("display")){b={};e=$(h).css("width");f=$(h).css("height");e=-1=b[0].volume?g.addClass("U_MD_UI_music_soundClose"):g.removeClass("U_MD_UI_music_soundClose")});d.bind("mousedown",function(a){U.UF.EV.stopBubble(a);var c=a.pageX,k=function(a){U.UF.EV.stopDefault(a);a=a.pageX-c+q;a=Math.max(0,a);a=Math.min(f,a);d[0].style.left=a+"px";e[0].style.width=a+"px";h=Math.round(100*parseFloat(a/f))/100;b[0].volume=h;0>=b[0].volume?g.addClass("U_MD_UI_music_soundClose"):g.removeClass("U_MD_UI_music_soundClose")},n=function(){$(document).unbind("mousemove",k);$(document).unbind("mouseup",n)},q=parseFloat(d.css("left"));$(document).bind("mousemove",k);$(document).bind("mouseup",n)})};U.MD.UI.music.progressControl=function(){var a=U.MD.UI.music,b=a.Attr,c=$("#U_MD_UI_music_audio"),d=$("#U_MD_UI_music_progressBox"),e=$("#U_MD_UI_music_progressBall"),f=$("#U_MD_UI_music_progressBar"),h=$("#U_MD_UI_music_playBtn"),g=d[0].clientWidth,k=!0,l;c.bind("timeupdate",function(){this.paused?h.addClass("U_MD_UI_music_playBtn"):h.removeClass("U_MD_UI_music_playBtn");if(k){l=this.currentTime;var a=Math.round(1E4*parseFloat(l/b.endTime))/1E4;e[0].style.left=g*a+"px";f[0].style.width=g*a+"px"}});d.bind("mousedown",function(d){var h=a.getOffsetLeft(this),k=h+g;d=d.pageX;d=Math.max(d,h);d=Math.min(d,k);_speed=Math.round(1E4*parseFloat((d-h)/g))/1E4;e[0].style.left=g*_speed+"px";f[0].style.width=g*_speed+"px";c[0].currentTime=b.endTime*_speed});e.bind("mousedown",function(a){k=!1;U.UF.EV.stopBubble(a);var d=a.pageX,h=function(a){U.UF.EV.stopDefault(a);a=a.pageX-d+w;a=Math.max(0,a);a=Math.min(g,a);e[0].style.left=a+"px";f[0].style.width=a+"px";_speed=Math.round(1E4*parseFloat(a/g))/1E4;e[0].style.left=g*_speed+"px";f[0].style.width=g*_speed+"px";l=b.endTime*_speed},m=function(){k=!0;c[0].currentTime=l;$(document).unbind("mousemove",h);$(document).unbind("mouseup",m)},w=parseFloat(e.css("left"));$(document).bind("mousemove",h);$(document).bind("mouseup",m)})};U.MD.UI.music.getOffsetLeft=function(a){var b=a.offsetLeft;for(a=a.offsetParent;null!=a;)b+=a.offsetLeft,a=a.offsetParent;return b};U.MD.UI.music.secondToDate=function(a){var b=Math.floor(a/60%60);a=Math.floor(a%60);10>b&&(b="0"+b);10>a&&(a="0"+a);return b+":"+a};U.MD.UI.music.toggleClass=function(a,b){$(a).hasClass(b)?$(a).removeClass(b):$(a).addClass(b)};Namespace.register("U.UF.P");U.UF.P.apply=function(a,b,c){return function(){a.apply(c,b)}};U.UF.P.pagepId=0;U.UF.P.PPage=U.UF.P.page=function(a,b,c,d,e){this.Pageall=this.Index=this.PageNum=0;this.init(a,b,c,d,e)};U.UF.P.page.prototype={init:function(a,b,c,d,e){this.PageNum=d;this.Index=d-1;a=$(a)[0];var f=Math.ceil(b/c);this.Pageall=f;if(a.getElementsByClassName("U_MD_F_Y")[0])return!1;U.UF.P.pagepId++;var h=$$("div",{className:"U_MD_F_Y"},a),g=$$("div",{className:"U_MD_F_YL"},h);b=$$("div",{className:"U_MD_F_YLO U_MD_F_Y_Button",innerHTML:"\u9996\u9875",title:"\u9996\u9875",pid:U.UF.P.pagepId+"1"},g);c=$$("div",{className:"U_MD_F_YLT U_MD_F_Y_Button",title:"\u4e0a\u4e00\u9875",pid:U.UF.P.pagepId+"3"},g);var k=$$("div",{className:"U_MD_F_YN"},g),l;a=Math.min(f,Math.max(d+5,10));for(l=Math.max(1,Math.min(d-5,f-10));l<=a;l++)(function(a,b){var c=$$("div",{innerHTML:a,pid:U.UF.P.pagepId+"5"},k);a==d&&(c.className="U_MD_F_Y_Button_Active");c.onclick=U.UF.P.apply(function(a){U.UF.P.centerEle(b,c)},[l],b)})(l,this);a=$$("div",{className:"U_MD_F_YLS U_MD_F_Y_Button",title:"\u4e0b\u4e00\u9875",pid:U.UF.P.pagepId+"4"},g);var g=$$("div",{className:"U_MD_F_YLF U_MD_F_Y_Button",innerHTML:"\u5c3e\u9875",title:"\u5c3e\u9875",pid:U.UF.P.pagepId+"2"},g),m=$$("div",{className:"U_MD_F_YR"},h);$$("span",{innerHTML:"\u5230"},m);h=$$("input",{type:"text"},m);$$("span",{innerHTML:"\u9875"},m);var n=$$("div",{className:"U_MD_F_YRZ",pid:U.UF.P.pagepId+"6",innerHTML:"\u786e\u5b9a"},m);if(this.PageNumthis.Pageall-d&&c<=this.Pageall)if(c>this.Pageall-d&&c<=this.Pageall){var g=this;[].__proto__.forEach.apply($(b),[function(a,b,c){a.innerText=g.Pageall+1-c.length+b}])}else cU.MD.UI.picture.rotatenum?U.MD.UI.picture.rotatenum=3:U.MD.UI.picture.rotatenum):(U.MD.UI.picture.rotatenum++,3U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150?"1290px":U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150,U.MD.UI.picture.checkHeight();$("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"};U.MD.UI.picture.compatibleRotate=function(a,b){a.style.webkitTransform=b;a.style.MozTransform=b;a.style.mturnsTransform=b;a.style.OTransform=b;a.style.transform=b;if("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))a.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation\x3d"+Math.abs(U.MD.UI.picture.rotatenum)+")"};U.MD.UI.picture.prevPic=function(a){U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="none";a?(U.MD.UI.picture.picnumber++,U.MD.UI.picture.picnumber>U.MD.UI.picture.pics.length-1&&(U.MD.UI.picture.picnumber=0)):(U.MD.UI.picture.picnumber--,0>U.MD.UI.picture.picnumber&&(U.MD.UI.picture.picnumber=U.MD.UI.picture.pics.length-1));U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size&&(U.MD.UI.picture.focuspicsize=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size);U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src&&(U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src);U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="block";U.MD.UI.picture.originalSize=U.MD.UI.picture.getImgNaturalDimensions(U.MD.UI.picture.pics[U.MD.UI.picture.picnumber]);U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style","");U.MD.UI.picture.checkHeight();U.MD.UI.picture.rotatenum=0};U.MD.UI.picture.checkHeight=function(){var a=U.MD.UI.picture.originalSize[0]/U.MD.UI.picture.originalSize[1];U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.originalSize[1]>U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40||U.MD.UI.picture.originalSize[0]>U.MD.UI.picture.DIVBOX.PICBOX.clientWidth?Math.floor((U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40)*a)+"px":U.MD.UI.picture.originalSize[0]+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.left=(U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.top=(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px";"object"===typeof U.MD.UI.picture.DIVBOX.USERPICS[0]?$("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.focuspicsrc.toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px "+U.MD.UI.picture.focuspicsize+")":"string"===typeof U.MD.UI.picture.DIVBOX.USERPICS[0]&&($("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px)");$("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"};U.MD.UI.picture.getImgNaturalDimensions=function(a){var b;if(a.naturalWidth)b=a.naturalWidth,a=a.naturalHeight;else{var c=new Image;c.src=a.src;b=c.width;a=c.height}return[b,a]};U.MD.UI.picture.drag=function(a,b){a.onmousedown=function(c){U.MD.UI.picture.mDown(a,b,c)}};U.MD.UI.picture.mDown=function(a,b,c){c=c||window.event;var d=c.clientX-a.offsetLeft,e=c.clientY-a.offsetTop;b.onmousemove=function(c){U.MD.UI.picture.mMove(a,b,d,e,c)};b.onmouseup=function(a){b.onmousemove=null;b.onmouseup=null};c.preventDefault?c.preventDefault():(a.ondragstart=function(){return!1},a.onselectstart=function(){return!1})};U.MD.UI.picture.mMove=function(a,b,c,d,e){e=e||window.event;c=e.clientX-c;d=e.clientY-d;c=0===U.MD.UI.picture.rotatenum%2?Math.min(b.clientWidth-b.clientWidth/8,c):Math.min(b.clientWidth-b.clientWidth/8-a.clientWidth/2+a.clientHeight/2,c);c=0===U.MD.UI.picture.rotatenum%2?Math.max(-a.clientWidth+b.clientWidth/8,c):Math.max(-a.clientWidth+b.clientWidth/8+a.clientWidth/2-a.clientHeight/2,c);d=0===U.MD.UI.picture.rotatenum%2?Math.min(b.clientHeight-b.clientHeight/8,d):Math.min(b.clientHeight-b.clientHeight/8+(a.clientWidth-a.clientHeight)/2,d);d=0===U.MD.UI.picture.rotatenum%2?Math.max(-a.clientHeight+b.clientHeight/8,d):Math.max(-a.clientHeight+b.clientHeight/8-(a.clientWidth-a.clientHeight)/2,d);a.style.left=c+"px";a.style.top=d+"px"};U.MD.UI.picture.wheel=function(){U.MD.UI.picture.DIVBOX.PICBOX.onmousewheel=function(){this.getWheelDalta()}.bind(this)};U.MD.UI.picture.getWheelDalta=function(a){a=a||window.event;var b=0;a.wheelDelta?(b=a.wheelDelta/120,window.opera&&(b=-b)):a.detail&&(b=-a.detail/3);0b/U.MD.UI.picture.originalSize[0]*100&&200>b||1E3<(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+a)/U.MD.UI.picture.originalSize[1]*100)){U.MD.UI.picture.DIVBOX.PICAREA.style.width=b+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight-c)/2+"px";U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-a/2+"px";("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&0!==U.MD.UI.picture.rotatenum%2&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/2-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2+"px");a=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop>=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||Math.abs(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetTop)<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&0!==U.MD.UI.picture.rotatenum%2;b=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+(U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2)<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&0!==U.MD.UI.picture.rotatenum%2;var e=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft>=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&0!==U.MD.UI.picture.rotatenum%2;if(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&0!==U.MD.UI.picture.rotatenum%2)U.MD.UI.picture.DIVBOX.PICAREA.style.top=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px";a&&(U.MD.UI.picture.DIVBOX.PICAREA.style.top=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px");b&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px");e&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=0===U.MD.UI.picture.rotatenum%2?U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(d-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(c-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px");$("#U_MD_UI_Picture_r")[0].innerText=Math.floor(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/U.MD.UI.picture.originalSize[0]*100)+"%"}};Namespace.register("U.MD.UI.video");U.MD.UI.video=function(a,b,c,d,e){a=U.MD.UI.video.appendEle(a,b,c,d||!1,e);U.MD.UI.video.addEvent(a,null,null,!1,c,b,!1);return a};U.MD.UI.video.appendEle=function(a,b,c,d,e){var f={};f.videoDiv=$$("div",{className:"U_MD_UI_video_VideoDiv",style:{width:b+"px",height:c+"px"}},e);f.video=$$("video",{src:a,className:"U_MD_UI_video_VideoMain",autoplay:d,preload:"auto"},f.videoDiv);f.controls=$$("div",{className:"U_MD_UI_video_VideoControls"},f.videoDiv);f.playPauseBtn=$$("div",{className:"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"},f.controls);f.currentTimeDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00"},f.controls);f.progress=$$("div",{className:"U_MD_UI_video_Progress"},f.controls);f.progressCurrentTime=$$("div",{className:"U_MD_UI_video_ProgressCurrentTime"},f.progress);f.progressCircle=$$("div",{className:"U_MD_UI_video_ProgressCircle"},f.progressCurrentTime);f.DurationDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00",onselectstart:"return false;"},f.controls);f.soundControls=$$("div",{className:"U_MD_UI_video_SoundControls"},f.controls);f.soundProgress=$$("div",{className:"U_MD_UI_video_SoundProgress"},f.controls);f.soundProgressCurrent=$$("div",{className:"U_MD_UI_video_SoundProgressCurrent",style:{width:"100%"}},f.soundProgress);f.fullScreenBtn=$$("div",{className:"U_MD_UI_video_FullScreen"},f.controls);return f};U.MD.UI.video.addEvent=function(a,b,c,d,e,f,h){a.playPauseBtn.onclick=function(b){U.MD.UI.playPauseBtnClick(b,a)};void 0!==a.videoDiv.onwebkitfullscreenchange?a.videoDiv.onwebkitfullscreenchange=function(){var b=U.MD.UI.video.fullscreenChange(h,e,f,a);h=b[0];e=b[1];f=b[2]}:void 0!==a.videoDiv.onfullscreenchange?a.videoDiv.onfullscreenchange=function(){var b=U.MD.UI.video.fullscreenChange(h,e,f,a);h=b[0];e=b[1];f=b[2]}:void 0!==a.videoDiv.onmozfullscreenchange&&(a.videoDiv.onmozfullscreenchange=function(){var b=U.MD.UI.video.fullscreenChange(h,e,f,a);h=b[0];e=b[1];f=b[2]});a.fullScreenBtn.onclick=function(){U.MD.UI.video.fullscreenClick(h,a)};a.progressCircle.onmousedown=function(b){U.MD.UI.video.circleMove(b,d,a)};a.soundProgress.onmousedown=function(b){U.MD.UI.video.soundProgressMove(b,a,d)};a.progress.onmousedown=function(b){U.MD.UI.video.progressMove(b,a,d)};a.video.onpause=function(){a.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon";clearInterval(b)};a.video.onplay=function(){a.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PauseIcon";b=U.MD.UI.video.setInterval(d,a)};a.video.oncanplay=function(){U.MD.UI.video.flushInfo(d,a.currentTimeDiv,a.DurationDiv,a.progressCurrentTime,a.soundProgressCurrent,a.video)};a.soundControls.onclick=function(){c=U.MD.UI.video.muteClick(a,c,d)};a.videoDiv.onclick=function(){}};U.MD.UI.video.displayControls=function(a,b){var c=a.target;if(c===b.video||c===b.videoDiv)b.controls.style.display="none"===b.controls.style.display?"block":"none"};U.MD.UI.playPauseBtnClick=function(a,b){"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"===a.target.className?b.video.play():b.video.pause()};U.MD.UI.video.muteClick=function(a,b,c){0!==a.video.volume?(b=a.video.volume,a.video.volume=0,U.MD.UI.video.flushInfo(c,a.currentTimeDiv,a.DurationDiv,a.progressCurrentTime,a.soundProgressCurrent,a.video)):0===a.video.volume&&null!==b&&(a.video.volume=b,b=null,U.MD.UI.video.flushInfo(c,a.currentTimeDiv,a.DurationDiv,a.progressCurrentTime,a.soundProgressCurrent,a.video));return b};U.MD.UI.video.fullscreenClick=function(a,b){a?document.exitFullScreen?document.exitFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozExitFullScreen&&document.mozExitFullScreen():b.videoDiv.requestFullScreen?b.videoDiv.requestFullScreen():b.videoDiv.webkitRequestFullScreen?b.videoDiv.webkitRequestFullScreen():b.videoDiv.mozRequestFullScreen&&b.videoDiv.mozRequestFullScreen()};U.MD.UI.video.fullscreenChange=function(a,b,c,d){a?(d.videoDiv.style.height=b+"px",d.videoDiv.style.width=c+"px",d.videoDiv.style.position="",d.videoDiv.style.top="",d.videoDiv.style.left="",d.videoDiv.style.zIndex=""):(d.videoDiv.style.height="100vh",d.videoDiv.style.width="100vw",d.videoDiv.style.position="absolute",d.videoDiv.style.top="0",d.videoDiv.style.left="0",d.videoDiv.style.zIndex="999");return[!a,b,c]};U.MD.UI.video.timeFormat=function(a){var b=parseInt(a%60);a=parseInt(parseInt(a)/60);10>b?b="0"+b:b;10>a?a="0"+a:a;return a+":"+b};U.MD.UI.video.flushInfo=function(a,b,c,d,e,f){a||(b.innerHTML=U.MD.UI.video.timeFormat(f.currentTime),c.innerHTML=U.MD.UI.video.timeFormat(f.duration),d.style.width=f.currentTime/f.duration*100+"%",e.style.width=100*f.volume+"%")};U.MD.UI.video.getScreenLeft=function(a){var b=a.offsetLeft;for(a=a.offsetParent;null!=a;)b+=a.offsetLeft,a=a.offsetParent;return b};U.MD.UI.video.setInterval=function(a,b){return setInterval(function(){U.MD.UI.video.flushInfo(a,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video)},500)};U.MD.UI.video.circleMove=function(a,b,c){var d=a.pageX,e=a.currentTarget.parentElement,f=e.parentElement;c.videoDiv.onmousemove=function(a){if(!(0>a.pageX-U.MD.UI.video.getScreenLeft(f)||a.pageX-U.MD.UI.video.getScreenLeft(f)>f.offsetWidth)){var b=a.pageX-d;!(e.offsetWidth+b>f.offsetWidth||0>e.offsetWidth+b)&&a.currentTarget.children[0].offsetWidth<=a.currentTarget.children[0].offsetWidth&&(e.style.width=(e.offsetWidth+b)/f.offsetWidth*100+"%",c.video.currentTime=(e.offsetWidth+b)/f.offsetWidth*c.video.duration);d=a.pageX}};c.videoDiv.onmouseup=function(){c.videoDiv.onmousemove=function(){};c.videoDiv.onmouseup=function(){}}};U.MD.UI.video.soundProgressMove=function(a,b,c){a.preventDefault();var d=a.currentTarget,e=a.pageX,f=b.soundProgressCurrent;b.video.volume=a.offsetX/d.offsetWidth;U.MD.UI.video.flushInfo(c,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video);b.videoDiv.onmousemove=function(a){if(!(0>a.pageX-U.MD.UI.video.getScreenLeft(b.soundProgress)||a.pageX-U.MD.UI.video.getScreenLeft(b.soundProgress)>b.soundProgress.offsetWidth)){var c=a.pageX-e;f.offsetWidth+c>d.offsetWidth||0>f.offsetWidth+c||(f.style.width=(f.offsetWidth+c)/d.offsetWidth*100+"%",b.video.volume=f.offsetWidth/d.offsetWidth);e=a.pageX}};b.videoDiv.onmouseup=function(a){b.videoDiv.onmousemove=function(){};b.videoDiv.onmouseup=function(){}}};U.MD.UI.video.progressMove=function(a,b,c){a.preventDefault();if("U_MD_UI_video_ProgressCircle"!==a.target.className){var d=a.pageX,e=b.progressCurrentTime;b.video.currentTime=(a.layerX||a.offsetX)/a.currentTarget.offsetWidth*b.video.duration;U.MD.UI.video.flushInfo(c,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video);b.videoDiv.onmousemove=function(a){if(!(0>a.pageX-U.MD.UI.video.getScreenLeft(b.progress)||a.pageX-U.MD.UI.video.getScreenLeft(b.progress)>b.progress.offsetWidth)){c=!0;var f=a.pageX-d;e.offsetWidth+f>b.progress.offsetWidth||0>e.offsetWidth+f||(e.style.width=(e.offsetWidth+f)/b.progress.offsetWidth*100+"%",b.video.currentTime=(e.offsetWidth+f)/b.progress.offsetWidth*b.video.duration);d=a.pageX}};b.videoDiv.onmouseup=function(){c=!1;U.MD.UI.video.flushInfo(c,b.currentTimeDiv,b.DurationDiv,b.progressCurrentTime,b.soundProgressCurrent,b.video);b.videoDiv.onmousemove=function(){};b.videoDiv.onmouseup=function(){}}}};Namespace.register("U.MD.UI.BTree");U.MD.UI.BTree=function(a,b,c,d,e,f,h,g,k,l,m){U.MD.UI.BTree.jsonStartLeft(a,f[0],b);U.MD.UI.BTree.jsonStartRight(f[1],b,c,d,e,h,g,k,l,m)};U.MD.UI.BTree.treeCreate=function(a,b,c){for(var d=0;db&&(b=parseInt(a[c].id));return b};Namespace.register("U.MD.UI.editor");U.MD.UI.Editor=U.MD.UI.editor=function(a,b){U.UF.DL.asynLoadCss({rel:"stylesheet",type:"text/css",href:"/css/Controls/Complex/Editor.css"});U.MD.UI.editor.createEditor(a);U.UF.E.initEditor($(".editor",a)[0],b);U.MD.UI.editor.EditorEventBind(a);U.MD.UI.editor.operateJson.editor=$(".editor",a)[0];return U.MD.UI.editor.operateJson};U.MD.UI.editor.operateJson={loadContent:function(a){this.editor.focus();U.UF.E.onpaste(null,this.editor,a)},getContent:function(){return this.editor.innerHTML}};U.MD.UI.editor.createEditor=function(a){a.innerHTML='\x3cdiv class\x3d\'toolbar\' style\x3d"width: 788px;background-color: #f5f5f5;border: 1px solid #c7d3e1;line-height: 0;padding: 6px;height: 25px;"\x3e\n \x3cbutton class\x3d"last" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/left.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"future" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/right.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n\x3cdiv class\x3d\'setFont\' style\x3d\'float: left;margin: 0 3px;position: relative;padding:0px\'\x3e\x3c/div\x3e \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n\x3cdiv class\x3d\'setSize\' style\x3d\'float: left;margin: 0 3px;position: relative;padding:0px\'\x3e\x3c/div\x3e \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3clabel style\x3d"float: left;margin: 0 3px;position: relative;"\x3e\n \x3cbutton class\x3d"pic" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/pic.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cinput multiple accept\x3d\'image/*\' type\x3d\'file\' class\x3d\'picUpload\' style\x3d\'display: none;\' /\x3e\n \x3c/label\x3e\n \x3clabel style\x3d"float: left;margin: 0 3px;position: relative;"\x3e\n \x3cbutton class\x3d"attachment" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;width: 25px;height: 25px;background: url(/img/YS2017.png) no-repeat;background-position: -1054px -593.5px;"\x3e\x3c/button\x3e\n \x3cinput multiple\x3d"" type\x3d"file" class\x3d"attachmentUpload" style\x3d"display: none;"\x3e\n \x3c/label\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cdiv style\x3d"float: left;margin: 0 3px;position: relative;padding:0px"\x3e\n \x3cbutton class\x3d"fontColor" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/fontColor.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cdiv class\x3d\'fontColorBar colorBar\' style\x3d\'display:none;position: absolute;\'\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cdiv style\x3d"float: left;margin: 0 3px;position: relative;padding:0px"\x3e\n \x3cbutton class\x3d"backgroundColor" style\x3d"outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/blockColor.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cdiv class\x3d\'backgroundColorBar colorBar\' style\x3d\'display:none;position: absolute;\'\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cbutton class\x3d"bIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/strong.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"iIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/i.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"UIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/x.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"SIcon" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/-S-.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;"\x3e\n\n \x3c/i\x3e\n \x3cbutton class\x3d"textLeft" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textLeft.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"textCenter" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textCenter.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"textRight" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/textRight.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3ci style\x3d"display: inline-block;width: 1px;height: 22px;background-color: #bcbcbc;float: left;margin: 0 3px;position: relative;" \x3e\n\n \x3c/i\x3e\n \x3cbutton class\x3d"a" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/a.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"b" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/b.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d"c" style\x3d"float: left;margin: 0 3px;position: relative;outline: none;cursor: pointer;border: 1px solid transparent;height: 25px;width: 25px;background: url(\'/EditorImage/c.png\') no-repeat center;"\x3e\n \x3c/button\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"editor" contenteditable\x3d"true" style\x3d"width: 800px;min-height: 300px;border: 1px solid #E6E5E5;overflow: auto;"\x3e\n \x3c/div\x3e';$('input.picUpload[type\x3d"file"]',a)[0].onchange=function(){U.UF.E.picture(this,$(".editor",a)[0])};$('input.attachmentUpload[type\x3d"file"]',a)[0].onchange=function(){U.UF.E.attachment(this,$(".editor",a)[0])}};U.MD.UI.editor.EditorEventBind=function(a){var b=U.MD.UI.Font();b.style.cssText+="vertical-align: super;";var c=U.MD.UI.WordSize();c.style.cssText+="vertical-align: super;";$(".setFont",a).append(b);b.onchange=function(){U.UF.E.setRangeStyle({"font-family":b.value})};$(".setSize",a).append(c);c.onchange=function(){U.UF.E.setRangeStyle({"font-size":c.value})};$(".pic",a)[0].onclick=function(){$(".picUpload",a)[0].click()};$(".attachment",a)[0].onclick=function(){$(".attachmentUpload",a)[0].click()};$(".bIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"font-weight":"bold"})};$(".iIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"font-style":"italic"})};$(".UIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"underline"})};$(".SIcon",a)[0].onclick=function(){U.UF.E.setRangeStyle({"text-decoration":"line-through"})};$(".fontColor",a).bind("click",function(){"none"==$(".fontColorBar",a).css("display")&&(U.MD.UI.colorPicker($(".fontColorBar",a)[0],function(b){$(".MD_ColorPicker",$(".fontColorBar",a)[0]).remove();$(".fontColorBar",a).hide();U.UF.E.setRangeStyle({color:b})}),$(".fontColorBar",a).show())});$(".backgroundColor",a).bind("click",function(){"none"==$(".backgroundColorBar",a).css("display")&&(U.MD.UI.colorPicker($(".backgroundColorBar",a)[0],function(b){$(".MD_ColorPicker",$(".backgroundColorBar",a)[0]).remove();$(".backgroundColorBar",a).hide();U.UF.E.setRangeStyle({backgroundColor:b})}),$(".backgroundColorBar",a).show())});$(".a",a).bind("click",function(){U.UF.E.addHref()});$(".c",a).bind("click",function(){U.UF.E.clearStyle(U.UF.E.getRangeAt())});$(".textLeft",a).bind("click",function(){U.UF.E.setLineStyle({"text-align":"left"})});$(".textCenter",a).bind("click",function(){U.UF.E.setLineStyle({"text-align":"center"})});$(".textRight",a).bind("click",function(){U.UF.E.setLineStyle({"text-align":"right"})})};U.MD.UI.editor.Select=function(a,b,c,d){var e="";b.id&&(e=b.id)&&delete b.id;d=$$("div",{id:e},d||null);var e=$$("div",b,d),f=$$("div",{},e);$$("div",{style:{cssText:"border-width: 6px 4px; border-style: solid; border-color: rgb(166, 178, 192) transparent transparent; width: 0; position: absolute; right: 4px; top: 50%; margin-top: -3px"}},e);var h=$$("div",{datacontent:"",style:{cssText:"display: none;position: absolute; margin-top:-1px; min-width: 100%; max-width: 280px; max-height: 200px ;border: 1px solid silver; overflow-x: hidden; cursor: pointer;"}},d),g;b.style&&!b.style.position?d.style.position="relative":"";b.style&&!b.style.textIndent?f.style.textIndent="6px":"";f.style.whiteSpace="pre";f.style.overflow="hidden";f.style.width=d.offsetWidth-15+"px";for(var k in a)$$("div",{value:k,innerText:a[k],style:{cssText:"padding: 4px 6px; background: #fff"},onmouseover:function(){this.style.background="#ccc"},onmouseout:function(){this.style.background="#fff"},onclick:function(){f.innerText=this.innerText;U.UF.E.reSelectRange(g);c(this.value||this.innerText)}},h);for(k in a){f.innerText=a[k];break}f.style.lineHeight=parseInt(f.style.height)+"px";d.onclick=function(){var a=this.querySelector("div[datacontent]");U.UF.E.reSelectRange(g);"block"===a.style.display?a.style.display="none":a.style.display="block"};$(document).bind("click",function(){"none"!=h.style.display&&(h.style.display="none");$(".BD_BorderPicker")[0]&&"none"!=$(".BD_BorderPicker")[0].style.display&&($(".BD_BorderPicker")[0].style.display="none")},!1);$(d).bind("click",function(a){U.UF.EV.stopBubble(a)});d.onmousedown=function(){g=U.UF.E.getRangeAt()};return d};Namespace.register("U.MD.UI.excel");Namespace.register("U.MD.R");U.MD.R.data={PID:"",AID:"",URL:"",PageIndex:1,PageSize:20,AllCount:"",CB:null};U.MD.R.reply=function(a){U.MD.R.login.cookieLogin(function(){var b=a.type,c=a.el,d=a.cb;U.MD.R.data.PID=a.pid;U.MD.R.data.AID=U.MD.R.reply.getUrlHash();U.MD.R.data.URL=U.MD.R.reply.getUrl();U.MD.R.data.CB=d;b||(c=(new U.UF.UI.form("",$$("div"),{style:{width:"800px",height:"800px"}})).content);U.MD.R.reply.init(c);U.UF.DL.asynLoadCss({href:"/css/Controls/Basic/Picture.css",type:"text/css",rel:"stylesheet"});U.UF.DL.asynLoadJs({type:"text/javascript",src:"/js/Controls/Basic/Picture.js"})})};U.MD.R.reply.init=function(a){var b=U.MD.R.data.PageIndex,c=U.MD.R.data.PageSize;U.MD.R.initPrintHtml(a);U.MD.R.getReplyData(b,c,function(a){U.MD.R.data.AllCount=a[0][0]?Math.ceil(a[0][0].allcount/U.MD.R.data.PageSize):"";U.MD.R.printComment($("#U_MD_R_content_user_comment")[0],1,a,!1,!1,!1);U.MD.R.initLoadMoreBtn(a[0])})};U.MD.R.reply.getUrl=function(){return window.location.href};U.MD.R.reply.getUrlHash=function(){return U.UF.EC.SparkMD5.hash(window.location.href)};U.MD.R.getReplyData=function(a,b,c){U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Reply","test",U.MD.R.data.AID,"1","",a,b],function(a){c&&c(a.value)})};U.MD.R.initPrintHtml=function(a){var b,c,d,e;a=$$("div",{className:"U_MD_R_comment"},a);a=$$("div",{className:"U_MD_R_content"},a);b=$$("div",{className:"U_MD_R_content_operation"},a);c=$$("div",{className:"U_MD_R_content_operation_userhead U_MD_R_Reply_Header"},b);c=$$("img",{className:"img",src:"/img/UserHead/UseHead.jpg",onerror:function(){this.src="/img/UserHead/UseHead.jpg"}},c);d=$$("div",{className:"U_MD_R_content_operation_right",style:{width:"calc(100% - 40px - 20px )"}},b);$(d).attr({"data-RPID":null,"data-RD":1,"data-RPUID":null});b=$$("div",{innerHTML:"\u767b\u5f55/\u6ce8\u518c",className:"U_MD_R_content_operation_userlogin U_MD_R_Reply_Name"},d);US.userInfo.userid?(b.innerHTML=US.userInfo.UserName,c.src="http://fs.1473.cn/"+US.userInfo.UserThumbnailImageHead):b.onclick=function(){U.MD.R.login()};b=$$("div",{id:"editorbox",className:"U_MD_R_Reply_Content",contenteditable:"true",style:{"min-height":"100px",background:"#fff",border:"1px solid black"}},d);c=document.documentElement.scrollTop;U.UF.E.initEditor(b);document.documentElement.scrollTop=c;b=$$("div",{className:"U_MD_R_content_operation_right_bottom"},d);$$("div",{className:"U_MD_R_content_operation_right_bottom_emoji",onclick:function(){U.UF.EV.stopBubble();U.MD.UI.face(this,$("#editorbox")[0]);$("#U_MD_UI_face").css({position:"relative",height:"140px","overflow-y":"scroll",top:"-150px",width:"450px",display:"block"})}},b);c=$$("div",{className:"U_MD_R_content_operation_right_bottom_picturewarp"},b);$$("img",{src:"/img/reply/img.png"},c);c=$$("input",{type:"file"},c);$$("div",{className:"U_MD_R_content_operation_right_bottom_release",innerHTML:"\u53d1\u8868\u8bc4\u8bba"},b).onclick=function(){""!=$(".U_MD_R_Reply_Content")[0].textContent||""!=$(".U_MD_R_Reply_Content")[0].innerHTML?U.MD.R.release(d,1,!1,1):U.alert("\u8bc4\u8bba\u4e0d\u80fd\u4e3a\u7a7a\uff01")};e=$$("div",{className:"U_MD_R_content_operation_right_bottom_imgloadbox U_MD_R_Reply_Image"},d);$$("div",{className:"U_MD_R_content_comment",id:"U_MD_R_content_user_comment"},a);c.onchange=function(){U.MD.R.uploadImages(this,e)};U.MD.R.data.CB&&U.MD.R.data.CB()};U.MD.R.initLoadMoreBtn=function(a){var b=$$("div",{className:"U_MD_R_content_loading"},$(".U_MD_R_comment")[0]);0=b&&(b="0"+b);0<=c&&9>=c&&(c="0"+c);return a.getFullYear()+"-"+b+"-"+c+" "+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()};Namespace.register("U.MD.UI.table");U.MD.UI.table=function(a,b,c,d){U.MD.UI.table.thead(a,b,c,d)};U.MD.UI.table.thead=function(a,b,c,d,e,f){e||(e=1,f=a.length);var h,g;d=$$("table",{style:{"text-align":"center",position:"relative",width:" 100%","border-collapse":" collapse","border-width":" 1px","border-style":" solid","border-color":" rgb(213, 213, 213)","border-image":" initial",display:"table"}},d);h=$$("thead",{},d);h=$$("tr",{},h);for(g in b)"object"===typeof b[g]?$$("th",{innerHTML:b[g].name,style:{cssText:c[g],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},h):$$("th",{innerHTML:b[g],style:{cssText:c[g],padding:"10px 0","font-weight":"normal",border:"1px solid #d5d5d5"},id:"th"},h);g=$$("tbody",{style:{cssText:"width:100%;"},id:"tbody"},d);U.MD.UI.table.tbody(g,a,b,c,e,f);return g};U.MD.UI.table.tbody=function(a,b,c,d,e,f){for(var h,g,k,l=(e-1)*f;lb&&(b=parseInt(a[c].id));return b};Namespace.register("U.MD.UI.txt");