PageSourceSearch

https://shannan.gov.cn/irs-c-web/libs/obox-min.js?v20210104

js shannan.gov.cn collected 2026-10-02 16:51:04 UTC 77,321 bytes, 3 lines download raw bytes

1function oLoadSrc(t){var n,o,e=t.src,s=void 0!=t.doc?t.doc:document;t.doc?(n=t.doc.createElement("script"),n.type="text/javascript",o=t.doc.createElement("link"),o.rel="stylesheet"):(n=document.createElement("script"),n.type="text/javascript",o=document.createElement("link"),o.rel="stylesheet"),"js"==e.substr(e.length-2,2)?(t.callback&&(n.readyState?n.onreadystatechange=function(){"loaded"!=n.readyState&&"complete"!=n.readyState||(n.onreadystatechange=null,t.callback())}:n.onload=function(){t.callback()}),n.src=e,s.body.appendChild(n)):"ss"==e.substr(e.length-2,2)&&(o.href=e,s.body.appendChild(o))}function getUrlParm(t,n){var o=new RegExp("(^|&)"+t+"=([^&]*)(&|$)");if(void 0!==n)var e=n.location.search.substr(1).match(o);else var e=window.location.search.substr(1).match(o);return null!==e?unescape(e[2]):null}function isLanguageFn(t){var n=window.navigator.language;return n||(n=window.navigator.browserLanguage),n=n.toLowerCase(),n===t}function oDecodeing(t){var n={lt:"<",gt:">",nbsp:" ",amp:"&",quot:'"'},o=t.replace(/&(lt|gt|nbsp|amp|quot);/gi,function(t,o){return n[o]});return o}function oCodeing(t){return text=t.replace(/[<>&"]/g,function(t){return{"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[t]}),text}function isEmptyObj(t){for(var n in t)return!1;return!0}function oPreventScroll(t){var n=t;return navigator.userAgent.indexOf("Firefox")>0?n.addEventListener("DOMMouseScroll",function(t){n.scrollTop+=t.detail>0?60:-60,t.preventDefault()},!1):(n.onmousewheel=function(t){return t=t||window.event,n.scrollTop+=t.wheelDelta>0?-60:60,!1},$(t).on("touchmove",function(t){return n.scrollTop+=t.wheelDelta>0?-60:60,!1})),this}oPoint={sm:543,md:699,lg:991,xl:1199},oPopupIndex=99,Array.prototype.cleanEmpty=function(){for(var t=[],n=0;n<this.length;n++)""!==this[n]&&void 0!==this[n]&&t.push(this[n]);return t},Array.prototype.remove=function(t){var n=this.indexOf(t);n>-1&&this.splice(n,1)},function(win,doc,$){function ie11(){return!(!Object.hasOwnProperty.call(win,"ActiveXObject")||win.ActiveXObject)}function isFoxFn(){return navigator.userAgent.indexOf("Firefox")>=0}function canTouch(){var t={};return t.isSupportTouch="ontouchend"in doc,t.isEvent=t.isSupportTouch?"touchstart":"click","touchstart"==t.isEvent}function isUCFn(){var t=navigator.userAgent;return navigator.userAgent.indexOf("UCBrowser")>-1||t.indexOf("Android")>-1||t.indexOf("Linux")>-1}function isPCFn(){for(var t=navigator.userAgent,n=new Array("Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"),o=!0,e=0;e<n.length;e++)if(t.indexOf(n[e])>0){o=!1;break}return o}function getPoint(){var t=$("<div class='sm'></div>"),n=$("<div class='md'></div>"),o=$("<div class='lg'></div>"),e=$("<div class='xl'></div>"),s=$("<div class='sf'></div>");$("body").append(t),$("body").append(n),$("body").append(o),$("body").append(e),$("body").append(s),oPoint.sm=t.width(),t.html(oPoint.sm),oPoint.md=n.width(),n.html(oPoint.md),oPoint.lg=o.width(),o.html(oPoint.lg),oPoint.xl=e.width(),e.html(oPoint.xl)}isIe=navigator.userAgent.indexOf("MSIE")>=0&&navigator.userAgent.indexOf("Opera")<0,isIe11=ie11(),isIe8=isIe&&navigator.userAgent.indexOf("MSIE 8.0")>0&&!isIe11,isIe9=isIe&&navigator.userAgent.indexOf("MSIE 9.0")>0&&!isIe11,isPC=isPCFn(),isUC=isUCFn(),isFirefox=isFoxFn(),isTouch=canTouch(),isEn=isLanguageFn("zh-en"),isCn=isLanguageFn("zh-cn"),getPoint(),String.prototype.cutUrl=function(t){var n=win.doc.createElement("a");return n.href=this,null!=n[t]?n[t]:null},String.prototype.getParm=function(t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)");if(null!=this.match(n)){var o=this.match(n);return unescape(o[2])}if(null!=this.substr(1).match(n)){var o=this.substr(1).match(n);return unescape(o[2])}return null},$.fn.oClear=function(){$(this).contents().filter(function(){3===$(this)[0].nodeType&&$(this).remove()})},$.fn.oInput=function(){var t=$(this).attr("autotext");""==$(this).val()&&($(this).val(t),$(this).addClass("emt")),$(this).focus(function(){$(this).removeClass("emt"),$(this).addClass("full"),$(this).parent().addClass("cur"),$(this).val()==t&&$(this).attr("value","")}),$(this).blur(function(){$(this).parent().removeClass("cur"),""===$(this).val()&&($(this).val(t),$(this).removeClass("full"),$(this).addClass("emt"))})},$.fn.oTextarea=function(){var t=$(this).attr("autotext");""==$(this).val()&&($(this).val(t),$(this).addClass("emt")),$(this).focus(function(){$(this).removeClass("emt"),$(this).addClass("full"),$(this).parent().addClass("cur"),$(this).val()===t&&$(this).val("")}
1),$(this).blur(function(){$(this).parent().removeClass("cur"),""===$(this).val()&&($(this).val(t),$(this).removeClass("full"),$(this).addClass("emt"))})},$.fn.oTab=function(){var t={};return t.tabbox=$(this),t.tab=t.tabbox.find("li"),t.targets=$(t.tabbox.attr("o-target")),t.i=0,!!t.targets&&(t.tab.each(function(){$(this).hasClass("cur")&&(t.i=t.tab.index(this))}),t.targets.css("display","none").eq(t.i).css("display","block"),t.tab.on("click",function(){return t.i=t.tab.index(this),t.tab.eq(t.i).addClass("cur").siblings().removeClass("cur"),t.targets.css("display","none").eq(t.i).css("display","block"),t}),void 0)},$.fn.oRadio=function(){var t=$(this),n=t.attr("name"),o=$(".o_radio[name='"+n+"']");t.on("click",function(){if(t.hasClass("lose"))return!1;if(t.hasClass("cur")){if(t.attr("required"))return!1;t.removeClass("cur")}else o.removeClass("cur"),t.addClass("cur")})},$.fn.oCheckbox=function(t){var n={openFn:null,closeFn:null},o=$.extend(n,t),e=$(this);e.openFn="function"==typeof o.openFn?o.openFn:null,e.closeFn="function"==typeof o.closeFn?o.closeFn:null,e.on("click",function(){return!e.hasClass("lose")&&void(e.hasClass("cur")?(e.removeClass("cur"),e.closeFn&&e.closeFn($(this))):(e.addClass("cur"),e.openFn&&e.openFn($(this))))})},$.fn.oAutoH=function(t){var n,o={targetObj:window,inner:!1,callback:function(){},resize:!0,minH:!1},e=$.extend(o,t),s=$(this),i=$(e.targetObj),a=s.parent(),l=s.siblings(".o_fixH"),r=l,c=s.find(".o_H100");return e.inner&&(i=a),s.init=function(){a.oClear(),n=i.height(),r.length>0&&r.each(function(){"none"!==$(this).css("display")&&(n-=$(this).height())}),e.minH?s.css({"min-height":n+"px"}):s.css({"min-height":n+"px",height:n+"px"}),c.each(function(){$(this).css("height",n+"px")}),e.callback()},$(win).resize(function(){e.resize&&!isUC&&s.init()}),s},$.fn.oAutoW=function(t){var n,o={obj1:$(this).prev(),obj2:$(this).next(),targetObj:$(this).parent(),callback:function(){},resize:!0},e=$.extend(o,t),s=$(this),i=(e.obj1?$(e.obj1):0,e.obj2?$(e.obj2):0,$(e.targetObj)),a=s.parent(),l=s.siblings(".o_fixW"),r=l;return s.init=function(){a.oClear(),n=Math.floor(i.width()-3),r.each(function(){"none"!==$(this).css("display")&&(n-=Math.ceil($(this).width())),n=Math.floor(n),s.css({width:n+"px"})}),e.callback()},$(win).resize(function(){e.resize&&s.init()}),s},$.fn.oHrel=function(p){var ele=$(this),backEle=[];ele.each(function(){var defaults={resize:!0,obj:null},$p=$.extend(defaults,p),$this={};$this.obj=$(this),null!==$this.obj.attr("obj")&&($this.target=$($this.obj.attr("obj"))),null!==$p.obj&&($this.target=eval($p.obj)),$this.h=0,$this.init=function(){$this.h=$this.target.height(),$this.obj.css("height",$this.h+"px")},$p.resize&&$(win).resize(function(){$this.init()}),backEle.push($this)});var $backEle=$(backEle);return $backEle.init=function(t){t?backEle[t].init():$backEle.each(function(t){backEle[t].init()})},$backEle},$.fn.oCss=function(t,n){var o={},e=$(this),s=t,i=void 0!=e.attr("style")?e.attr("style"):"",a=/transform|transform-origin|transition/,l=["-webkit-","-o-","-moz-"],r={},c={},p="";o.strToJson=function(t){var n=t.replace(/\:/g,";").split(";"),o={};n=n.cleanEmpty();for(var e=0;e<n.length;e++)if(e%2===0)if(n[e].match(/transform/)){var s=n[e+1].match(/[a-z]*/),i=n[e+1].match(/\(.*\)/);o[n[e]+":"+s]=i}else o[n[e]]=n[e+1];return o},""!==i&&(c=o.strToJson(i)),"string"==typeof s&&(s=o.strToJson(s));for(var d in s)if(null!=d.match(a)){r[d]=s[d];for(var h=0;h<l.length;h++)r[l[h]+d]=s[d]}else r[d]=s[d];r=$.extend(c,r);for(d in r)p+=d.match(/transform/)?d+r[d]+";":d+":"+r[d]+";";e.attr("style",p)},$.fn.oRotate=function(t){var n=$(this);if(isIe8){var o=Math.cos(t),e=-Math.sin(t),s=Math.sin(t),i=Math.cos(t),a=n.width(),l=n.height(),r=-a/2*Math.cos(t)+l/2*Math.sin(t)+a/2,c=-a/2*Math.sin(t)-l/2*Math.cos(t)+l/2,p=n.attr("style");p+=";filter:progid:DXImageTransform.Microsoft.Matrix(Dx="+r+",Dy="+c+"+,M11="+o+",M12="+e+",M21="+s+",M22="+i+",SizingMethod='auto expand');",n.attr("style",p)}else n.oCss({"transform:rotate":"("+t+"deg)"},!1)},$.fn.oNoSelect=function(){isIe?isPC&&($(this).on("selectstart",function(){return!1}),$(this).on("drag",function(){return!1})):$(this).oCss({"user-select":"none"})},$.fn.oTouch=function(t){function n(t){var n=t.originalEvent.targetTouches[0];a=n.pageX,l=n.pageY,u({self:h,startX:a,startY:l}),null!==y&&(j=setTimeout(function(){p||d||y({self:h,startX:a,startY:l})},800))}function o(t){F&&(t.stopPropagation(),t.preventDefault());var n=t.originalEvent.targetTouches[0];p=n.pageX,d=n.pageY,null!==f&&f({self:h,startX:a,startY:l,moveX:p,moveY:d}),null!==g&&Math.abs(p-a)>Math.abs(d-l)&&Math.abs(p-a)>1&&(g({self:h,startX:a,startY:l,moveX:p,moveY:d}),t.stopPropagation(),t.preventDefault()),null!==m&&Math.abs(p-a)<Math.abs(d-l)&&Math.abs(d-l)>1&&(m({self:h,startX:a,startY:l,moveX:p,moveY:d}),t.stopPropagation(),t.preventDefault())}function e(t){var n=t.originalEvent.changedTouches[0];r=n.pageX,c=n.pageY,_&&(a-r<-1&&x({self:h,startX:a,endX:r,startY:l,endY:c}),a-r>1&&b({self:h,startX:a,endX:r,startY:l,endY:c}),l-c>1&&v({self:h,startX:a,endX:r,startY:l,endY:c}),l-c<-1&&w({self:h,startX:a,endX:r,startY:l,endY:c}),C({self:h,startX:a,endX:r,startY:l,endY:c}),clearTimeout(j))}function s(t){p=t.pageX,d=t.pageY,(p-a>10||p-a<-10)&&h.on("click",function(){return!1}),null!==f&&(f({self:h,startX:a,startY:l,moveX:p,moveY:d}),t.stopPropagation(),t.preventDefault()),null!==g&&Math.abs(p-a)>Math.abs(d-l)&&Math.abs(p-a)>10&&(g({self:h,startX:a,startY:l,moveX:p,moveY:d}),t.stopPropagation(),t.preventDefault()),null!==m&&Math.abs(p-a)<Math.abs(d-l)&&Math.abs(d-l)>10&&(m({self:h,startX:a,startY:l,moveX:p,moveY:d}),t.stopPropagation(),t.preventDefault())}function i(t){$("body,html").off("mousemove"),$("body,html").off("mouseup"),r=t.pageX,c=t.pageY,a-r<-1&&x({self:h,startX:a,endX:r,startY:l,endY:c}),a-r>1&&b({self:h,startX:a,endX:r,startY:l,endY:c}),l-c>1&&v({self:h,startX:a,endX:r,startY:l,endY:c}),l-c<-1&&w({self:h,startX:a,endX:r,startY:l,endY:c}),C({self:h,startX:a,endX:r,startY:l,endY:c}
1),setTimeout(function(){h.off("click")},10),clearTimeout(j)}defaults={clearE:!1,touchStart:function(){},touchMove:null,touchMoveH:null,touchMoveV:null,touchLeft:function(){},touchRight:function(){},touchUp:function(){},touchDown:function(){},touchEnd:function(){},touchLongtime:function(){}},t=$.extend(defaults,t);var a,l,r,c,p,d,h=$(this),u=t.touchStart,f=t.touchMove,g=t.touchMoveH,m=t.touchMoveV,b=t.touchLeft,x=t.touchRight,v=t.touchUp,w=t.touchDown,C=t.touchEnd,y=t.touchLongtime,_=!0,F=t.clearE,j={};return h.length&&(isPC?h.on("mousedown",function(t){return a=t.pageX,l=t.pageY,u({self:h,startX:a,startY:l}),$("body,html").bind("mousemove",function(t){return s(t),!1}),$("body,html").bind("mouseup",function(t){return i(t),!1}),null!==y&&(j=setTimeout(function(){p||d||y({self:h,startX:a,startY:l})},800)),!1}):(h.on("touchstart",function(t){n(t)}),h.on("touchmove",function(t){o(t)}),h.on("touchend",function(t){e(t)}))),h.touchClear=function(){isPC?h.off("mousedown"):(h[0].removeEventListener("touchstart",n,!1),h[0].removeEventListener("touchmove",o,!1),h[0].removeEventListener("touchend",e,!1))},h},$.fn.oToggle=function(t,n){var o={};return o.obj=$(this),o.f1=t,o.f2=n,o.obj.each(function(){$(this).on("click",function(){return"0"===$(this).attr("auto")||void 0===$(this).attr("auto")?(o.f1($(this)),$(this).attr("auto","1")):"1"==$(this).attr("auto")&&(o.f2($(this)),$(this).attr("auto","0")),!1})}),o},$.fn.oToggleAll=function(t){defaults={fn1:function(){},fn2:function(){},target:"",door:function(){return!0}},$p=$.extend(defaults,t);var n=$(this),o=$p.target,e=$p.fn1,s=$p.fn2,i=$p.door;n.on("click",o,function(){if(i()){var t=$(this).attr("auto");"0"===t||void 0===t?(e($(this)),$(this).attr("auto","1")):"1"===t&&(s($(this)),$(this).attr("auto","0"))}})},mousewheel="onmousewheel"in doc?"mousewheel":"DOMMouseScroll",$.fn.oScrollFn=function(t){defaults={upFn:function(){},downFn:function(){},go:!0},t=$.extend(defaults,t);var n=$(this),o=t.upFn,e=t.downFn,s="onmousewheel"in doc?"mousewheel":"DOMMouseScroll";$t1=0,$t2=0,n.scrollfun=function(t){return ev=t.originalEvent,(new Date).getTime()-$t1>40?($t1=(new Date).getTime(),d=parseInt(ev.wheelDelta||-ev.detail),d>0?o():e()):$t1=(new Date).getTime()-10,t.stopPropagation(),t.preventDefault(),!1},$.event.remove(n[0],s),$.event.add(n[0],s,n.scrollfun,!1)},$.fn.oEventStop=function(){$(this).on("touchmove",function(){return!1}),$(this).oScrollFn()},$.fn.oScrollBar=function(t){var n={step:15,surplus:7,vShowBar:!0,vPScroll:!0,topFn:null,downFn:null,moveFn:null};t=$.extend(n,t);var o=$(this);return o.obj=$(this),o.parent=o.obj.parent(),o.win=$("<div class='o_scrollWin'>"),o.body=$("<div class='o_scrollbody'>"),o.barbox=$("<div class='o_barbox'>"),o.line=$("<span>"),o.step=t.step,o.bar=$("<div class='o_bar'>"),o.winH=null,o.bodyH=null,o.barH=null,o.barboxH=null,o.cha=0,o.sScale=1,o.sTop=0,o.sTop_next=null,o.barT=null,o.topFn=t.topFn,o.downFn=t.downFn,o.moveFn=t.moveFn,o.bindtouched=!1,o.bar.appendTo(o.barbox),o.line.appendTo(o.barbox),o.barbox.appendTo(o.win),o.obj.appendTo(o.body),o.body.appendTo(o.win),o.win.appendTo(o.parent),o.moveCallback=function(){o.moveFn&&o.moveFn(parseInt(Math.abs(o.sTop_next)))},o["goto"]=function(t){o.sTop=t,o.bar.css("top",o.sTop+"px"),o.body.css("margin-top",o.sTop),o.win.css("padding-right",o.barbox.width()+"px"),o.change()},o.init=function(){o["goto"](0)},o.change=function(){o.winH=o.win.height(),o.bodyH=o.body.height(),o.barboxH=o.barbox.height(),o.sScale=o.barboxH/o.bodyH,o.cha=o.bodyH-o.winH,o.barH=o.barbox.height()/Math.max(o.bodyH/o.winH,1),o.bar.css("height",o.barH+"px"),o.bar.css("top",-o.sTop*o.sScale+"px"),o.bodyH>o.winH&&-o.sTop+o.winH>o.bodyH&&(o.sTop=o.winH-o.bodyH,o.bar.css("top",-o.sTop*o.sScale+"px"),o.body.css("margin-top",o.sTop)),o.cal()},o.off=function(){o.barbox.hide(),o.win.css("padding-right","0px"),o.sTop=0,o.body.css("margin-top",o.sTop)},o.cal=function(){o.cha<=0?o.off():(o.barbox.show(),isPC?(o.scrollDown=function(){o.bodyH>o.winH&&(o.sTop_next=o.sTop-o.step,-o.sTop_next+o.winH>o.bodyH?(o.sTop_next=o.winH-o.bodyH,o.downFn&&o.downFn()):o.moveCallback(),o.sTop=o.sTop_next,o.bar.css("top",-o.sTop_next*o.sScale+"px"),o.body.css("margin-top",o.sTop_next))},o.scrollUp=function(){o.bodyH>o.winH&&(o.sTop_next=o.sTop+o.step,o.sTop_next>0?(o.sTop_next=0,o.topFn&&o.topFn()):o.moveCallback(),o.sTop=o.sTop_next,o.bar.css("top",-o.sTop_next*o.sScale+"px"),o.body.css("margin-top",o.sTop_next))},o.win.oScrollFn({upFn:function(){o.scrollUp()},downFn:function(){o.scrollDown()}})):o.bindtouched||(o.bindtouched=!0,o.body.oTouch({touchStart:function(t){},touchMove:function(t){o.sTop_next=o.sTop+(t.moveY-t.startY),o.sTop_next>0?(o.sTop_next=0,null!==o.topFn&&o.topFn()):-o.sTop_next+o.winH>o.bodyH&&(o.sTop_next=o.winH-o.bodyH,null!==o.downFn&&o.downFn()),o.bar.css("top",-o.sTop_next*o.sScale+"px"),o.body.css("margin-top",o.sTop_next),o.moveCallback()},touchEnd:function(){o.sTop=o.sTop_next},clearE:!0}),o.body.oEventStop()))},o.bar.oTouch({touchStart:function(t){},touchMove:function(t){moveH=t.moveY-t.startY,o.sTop_next=o.sTop-moveH/o.sScale,o.sTop_next>0?o.sTop_next=0:-o.sTop_next+o.winH>o.bodyH&&(o.sTop_next=o.winH-o.bodyH),o.body.css("margin-top",o.sTop_next),o.bar.css("top",-o.sTop_next*o.sScale+"px"),o.moveCallback()},touchEnd:function(t){o.sTop=o.sTop_next},clearE:!0}),o.lose=function(){o.obj.appendTo(o.parent),o.win.remove()},o},$.fn.oBgCover=function(){var t=$(this),n=[];t.each(function(){var t=$(this);t.obj=$(this),t.parent=t.obj.parent(),t.parent.css({position:"relative",overflow:"hidden"}),t.pw=0,t.ph=0,t.w1=0,t.h1=0,t.loaded=!1,t.obj.css({width:"1px",height:"1px"}),t.res=function(){t.obj.show(),t.obj.css({width:"auto",height:"auto",position:"absolute"}),t.pw=t.parent.width(),t.ph=t.parent.height(),t.w1=t.obj.width(),t.h1=t.obj.height(),t.pw/t.w1>t.ph/t.h1?(t.css({width:t.pw+"px",height:"auto",position:"absolute"}),t.css({"margin-left":-t.obj.width()/2+"px",left:"50%",top:"50%","margin-top":-t.obj.height()/2+"px"})):(t.css({height:t.ph+"px",width:"auto",position:"absolute"}),t.css({"margin-left":-t.obj.width()/2+"px",left:"50%",top:"50%","margin-top":-t.obj.height()/2+"px"}))},t.init=function(){t.loaded||t.obj.load(function(){t.loaded=!0,t.res()}),t.res()},isPC&&$(win).resize(function(){t.res()}),n.push(t)});var o=$(n);return o.init=function(t){t?n[t].init():o.each(function(t){n[t].init()})},o},$.fn.oBoxCenter=function(){var t=$(this),n=[];t.each(function(){var t=$(this);t.obj=$(this),t.parent=t.obj.parent(),t.w=0,t.h=0,t.init=function(){t.w=t.obj.width(),t.h=t.obj.height(),t.parent.css("position","relative"),t.obj.css({position:"absolute",top:"50%",left:"50%","margin-top":-t.h/2+"px","margin-left":-t.
1w/2+"px"})},isPC&&$(win).resize(function(){t.init()}),n.push(t)});var o=$(n);return o.init=function(t){t?n[t].init():o.each(function(t){n[t].init()})},o},$.fn.oScale=function(t){var n=$(this),o=[],e=t;n.each(function(){defaults={w:1,h:1,base:"width"};var t=$.extend(defaults,e),n=$(this);n.obj=$(this),n.w=t.w,n.h=t.h,n.base=t.base,n.obj.attr("w")&&(n.w=parseInt(n.obj.attr("w"))),n.obj.attr("h")&&(n.h=parseInt(n.attr("h"))),n.obj.attr("base")&&(n.base=n.attr("base")),n.init=function(){if("width"==n.base){if(0===n.obj.width())return!1;n.width=n.obj.width(),n.height=Math.round(n.width/n.w*n.h),n.css("height",n.height+"px")}else if("height"===n.base){if(0===n.obj.height())return!1;n.height=n.obj.height(),n.width=Math.round(n.height/n.h*n.w),n.css("width",n.width+"px")}},isPC&&$(win).resize(function(){n.init()}),o.push(n)});var s=$(o);return s.init=function(t){t?o[t].init():s.each(function(t){o[t].init()})},s},$.fn.oGetScale=function(t){var n={};return n.ogj=$(this),n.w=n.ogj.width(),n.h=n.ogj.height(),n.w<2400?(n.bl=Math.ceil(2400/n.w),n.w=2400,n.h=n.h*n.bl):(n.bl=2400/n.w,n.w=2400,n.h=n.h*n.bl),[n.w,n.h]},$.fn.oVal=function(t){if(!t){var n=$(this).val();return n=oCodeing(n)}var n=oDecodeing(t);$(this).val(n)},$.fn.oHtml=function(t){if(!t){var n=$(this).html();return n=oCodeing(n)}var n=oDecodeing(t);$(this).text(n)},$.fn.oPopupFn=function(t){defaults={zzClose:!1};var n=$.extend(defaults,t),o={};return o.target=null,o.zz=$("<div class='o_shade'></div>"),o.closeFn=null,o.openFn=null,o.top=0,o.absolute=!1,o.closebtn=null,o.opened=!1,o.zzClose=n.zzClose,o.box=$("<div style='padding:20px 0;position:fixed;top:0;left:-30px;bottom:0;right:-30px;overflow:scroll;display:none;z-home:99999'></div>"),o.box.appendTo("body"),o.open=function(t){return oPopupIndex++,o.closeFn=null,o.absolute=!1,o.absolute=null,o.closebtn=null,void 0!==t.target&&(o.target="string"===$.type(t.target)?$(t.target):t.target,o.target.appendTo(o.box),o.box.show(),o.closebtn=!!o.target.find(".js_popupClose")&&o.target.find(".js_popupClose"),o.closebtn&&o.closebtn.on("click",function(){o.close()}),o.zzClose&&o.zz.on("click",function(){o.close()}),t.closeFn&&(o.closeFn=t.closeFn),t.openFn&&(o.openFn=t.openFn),t.absolute&&(o.absolute=t.absolute),o.zz.appendTo($("body")).addClass("show").css("z-index",oPopupIndex),o.target.show().addClass("show").css("z-index",oPopupIndex+1),t.openFn&&o.openFn(o.target),o.init(),o.opened=!0,void 0)},o.close=function(){o.target.addClass("hide"),o.zz.removeClass("show"),setTimeout(function(){o.zz.detach(),o.box.hide(),o.target.removeClass("hide").removeClass("show").hide(),null!==o.closeFn&&o.closeFn(o.target)},300),o.opened=!1},o.init=function(){var t=$(win).height(),n=($(doc).height(),o.target.width()),e=($(win).scrollTop(),o.target.height());o.target.css("margin-left","-"+parseInt(n/2)+"px"),e<=t?(o.top=(t-e)/2,o.target.css("top",o.top).css("margin-bottom",o.top).css("position","relative")):(o.top="20px",o.target.css("top",o.top).css("margin-bottom",o.top).css("position","relative"))},$(win).resize(function(){o.opened&&o.init()}),o},$.fn.oPopupObj=function(t){var n={closeFn:null,openFn:null,absolute:!1};$p=$.extend(n,t);var o={};return o.target=$(this),o.zz=$("<div class='o_shade'></div>"),o.closeFn="function"==typeof $p.closeFn?$p.closeFn:null,o.openFn="function"==typeof $p.openFn?$p.openFn:null,o.top=0,o.absolute=$p.absolute,o.closebtn=o.target.find(".js_popupClose"),o.opened=!1,o.box=$("<div style='padding:20px 0;position:fixed;top:0;left:-30px;bottom:0;right:-30px;overflow:scroll;display:none;z-home:99999'></div>"),o.box.appendTo("body"),o.target.appendTo(o.box),o.closebtn&&o.closebtn.on("click",function(){o.close()}),o.open=function(){oPopupIndex++,o.zz.appendTo($("body")).addClass("show").css("z-index",99999+oPopupIndex-1),o.box.css("z-index",99999+oPopupIndex).show(),o.target.show().addClass("show").css("z-index",oPopupIndex+1),null!==o.openFn&&"function"==typeof o.openFn&&o.openFn(o.target),o.init(),o.opened=!0},o.close=function(){o.target.addClass("hide"),o.zz.removeClass("show"),setTimeout(function(){o.zz.detach(),o.box.hide(),o.target.removeClass("hide").removeClass("show").hide(),null!==o.closeFn&&"function"==typeof o.closeFn&&o.closeFn(o.target)},300),o.opened=!1},o.init=function(){var t=$(win).height(),n=($(doc).height(),o.target.width()),e=($(win).scrollTop(),o.target.height());o.target.css("margin-left","-"+parseInt(n/2)+"px"),e<=t?(o.top=(t-e)/2,o.target.css("top",o.top).css("margin-bottom",o.top).css("position","relative")):(o.top="20px",o.target.css("top",o.top).css("margin-bottom",o.top).css("position","relative"))},$(win).resize(function(){o.init()}),o},$.fn.oGroupCall=function(fn){var fn=fn,$this={};return $this.zu=[],$this.obj=$(this),$this.obj.each(function(){$this.zu.push(eval("$(this)."+fn))}),$this.init=function(){for(i=0;i<$this.zu.length;i++)$this.zu[i].init()},$this},$(document).ready(function(){if($(".o_autoH").each(function(){$(this).oAutoH().init()}),$(".o_main").oAutoH({minH:!0}).init(),$(".o_tab").each(function(){$(this).oTab()}),$(".o_autoW").each(function(){$(this).oAutoW().init()}),$(".o_input").each(function(){$(this).oInput()}),$(".o_textarea").each(function(){$(this).oTextarea()}),$(".o_checkbox").each(function(){$(this).oCheckbox()}),$(".o_radio").each(function(){$(this).oRadio()}),isIe&&$(".o_noselect").each(function(){$(this).oNoSelect()}),$(".o_g").oClear(),$(".o_main").oClear(),$(".o_autoH").oClear(),$(".o_imgLazy").length>0){$(".o_imgLazy").oGroupCall("oPicturLazy()")}})}(window,document,jQuery),$.fn.oCountTo=function(t){var n=$(this),o=[];
1n.each(function(){var n={from:0,to:0,time:2e3,jia:100,jiangeNum:3,speed:1e3,beautiful:!1},e=$.extend(n,t),s={};s.obj=$(this),s.from=e.from,s.to=e.to,s.time=e.time,s.jia=e.jia,s.numStr="",s.jiange=e.jiangeNum,s.yu=0,s.showStr="",s.t=function(){},s.speed=e.speed,s.callback=e.callback,s.beautiful=e.beautiful,s.obj.attr("o-to")&&(s.to=parseInt(s.obj.attr("o-to"))),s.obj.attr("o-from")&&(s.from=parseInt(s.obj.attr("o-from"))),s.obj.attr("o-time")&&(s.time=parseInt(s.obj.attr("o-time"))),s.obj.attr("o-speed")&&(s.speed=parseInt(s.obj.attr("o-speed"))),s.curNum=s.from,s.jia=parseInt((s.to-s.from)/(s.time/s.speed)),s.cal=function(){s.curNum+=s.jia,s.jia>0?s.curNum>s.to&&(s.curNum=s.to,clearInterval(s.t),s.callback&&s.callback(s.obj)):s.curNum<s.to&&(s.curNum=s.to,clearInterval(s.t),s.callback&&s.callback(s.obj)),s.cutStr()},s.cutStr=function(){if(s.numStr=s.curNum.toString(),s.showStr="",s.beautiful&&s.numStr.length>s.jiange){s.yu=s.numStr.length%s.jiange,0!==s.yu&&(s.showStr=s.numStr.substring(0,s.yu)+",");for(var t=s.yu;t<=s.numStr.length-3;t+=3)s.showStr=s.showStr+s.numStr.substring(t,t+3)+",";s.showStr=s.showStr.substring(0,s.showStr.length-1)}else s.showStr=s.numStr;s.whiteStr()},s.whiteStr=function(){s.obj.html(s.showStr)},s.init=function(){s.curNum=s.from,s.obj.html(s.curNum),clearInterval(s.t),s.t=setInterval(function(){s.cal()},s.speed)},o.push(s)});var e=$(o);return e.init=function(t){t?o[t].init():e.each(function(t){o[t].init()})},e},$.fn.oSlider=function(t){function n(t){return Math.floor(t)===t}defaults={showBoxClass:"showbox",autoWidth:!1,loop:!1,directionVertical:!1,scrollbar:!1,windowResize:!0,pager:".pager",pagerHover:!1,touch:!0,speed:!1,moveSpeed:500,pagerShow:!1,touchClear:!1,nextFn:null,prevFn:null,moveOne:!1,moveTouch:!1,playFn:null,btnHobj:null,startFn:null,firstPlayFn:null},$p=$.extend(defaults,t),$(this).oCss({"transform:translateZ":"(0)"}),$(this).oClear(),$(this).find("ul").oClear(),$(this).find("."+$p.showBoxClass).oClear();var o,e=$(this),s=e.find("."+$p.showBoxClass),a=$(this).height(),l=s.children("ul"),r=l.children("li");r.css("vertical-align","top"),e.amount_yuan=r.length,e.t=null;var c,p,d,h,u,f,g,m=r.length,b=$p.moveOne,x=$p.moveTouch,v=null,w=$("<div>"),C=$p.directionVertical,y="left",_=$p.scrollbar,F=$p.autoWidth,j=e.find($p.pager),T=$p.pagerHover,P=$p.pagerShow,L=!0,z=$("<li></li>"),S=$p.windowResize,I=$p.touch,M=$p.moveSpeed,k=M/1e3+"s",X=null,B=!0,Y=!1,H=1,A=!1,E=!1,D=$p.btnHobj;if(e.playFn=$p.playFn,e.nextFn=$p.nextFn,e.prevFn=$p.prevFn,e.startFn=$p.startFn,e.firstPlayFn=$p.firstPlayFn,e.oneState=!1,e.$loop=$p.loop,e.$speed=$p.speed,e.inited=!1,e.imgLazys=[],C&&e.oCss({height:a+"px"}),r.oCss({display:"inline-block"}),C?(y="top",l.oCss({"font-size":"0",width:"100%",display:"inline-block"})):l.oCss({"font-size":"0","white-space":"nowrap",width:"100%",display:"inline"}),e.oCss({position:"relative"}),s.css({overflow:"hidden",position:"relative"}),e.showAmt=0,e.i=0,e.prevBtn=$("<span class='btn_prev'></span>"),e.nextBtn=$("<span class='btn_next'></span>"),e.clickI=null,l.appendTo(w),w.appendTo(s),r.on("click",function(){e.clickI=r.index(this)}),e.$loop){w.addClass("o_font0");var O=l.clone(),V=O.find("li"),q=V.clone();V.on("click",function(){e.clickI=V.index(this)}),q.on("click",function(){e.clickI=q.index(this)})}else e.prevBtn.addClass("o_lose");if(e.prepend(e.prevBtn),e.prepend(e.nextBtn),e.reset=function(){s.css("width","");for(var t=0;t<r.length;t++)if(!r.eq(t).hasClass("o_cur")){o=r.eq(t);break}return void 0!==o&&(C?e.showAmt=Math.round(s.height()/(o.height()+parseInt(o.css("padding-top"))+parseInt(o.css("padding-bottom")))-.4):e.showAmt=Math.round(s.width()/(o.width()+parseInt(o.css("padding-left"))+parseInt(o.css("padding-right")))-.4),void(C?s.height(Math.floor(r.eq(0).height()*e.showAmt)):s.width(Math.floor(r.eq(0).width()*e.showAmt))))},e.init=function(){if(e.inited=!0,e.i=0,e.width()>0){if(C&&(a=s.height(),e.css("height",a+"px")),w.attr("style",""),l.css("margin-"+y,"0"),e.prevBtn.css({display:"inline-block",position:"absolute","z-index":1}),e.nextBtn.css({display:"inline-block",position:"absolute","z-index":1}),h=e.width()-e.prevBtn.width()-e.nextBtn.width(),u=C?e.height()-e.prevBtn.height()-e.nextBtn.height():s.height(),e.reset(),$showPage=Math.ceil(m/e.showAmt),w.css({position:"relative",left:"0px",top:"0px"}),n(e.$speed)&&m>e.showAmt&&isPC&&e.hover(function(){e.stop()},function(){e.play(e.$speed)}),m<=e.showAmt)return h=e.width(),s.css("width",""),e.prevBtn.hide(),e.nextBtn.hide(),clearInterval(e.t),I&&null!==X&&(X.touchClear(),I=!1,X=null),j.empty(),!1;if(I=!0,b||x?L=!1:m%e.showAmt===0?L=!1:(L=!0,e.prevBtn.addClass("o_lose")),F&&(C?(s.css({height:u+"px"}
1),h=s.width(),l.find("li").css("height",Math.ceil(u/e.showAmt)+"px"),e.showHeightFn()):(s.css({width:h+"px"}),e.prevBtn.css({position:"relative","float":"left"}),e.nextBtn.css({position:"relative","float":"right"}),u=s.height(),e.showWidthFn())),C?null===D?(e.prevBtn.css({width:s.width()+"px"}),e.nextBtn.css({width:s.width()+"px"})):(e.prevBtn.css({width:e.find(D).eq(0).width()+"px"}),e.nextBtn.css({width:e.find(D).eq(0).width()+"px"})):null===D?(e.prevBtn.css({height:u+"px","line-height":u+"px"}),e.nextBtn.css({height:u+"px","line-height":u+"px"})):(e.prevBtn.css({height:e.find(D).eq(0).height()+"px","line-height":e.find(D).eq(0).height()+"px"}),e.nextBtn.css({height:e.find(D).eq(0).height()+"px","line-height":e.find(D).eq(0).height()+"px"})),f=x||b?C?Math.ceil(o.height()+parseInt(o.css("padding-top"))+parseInt(o.css("padding-bottom"))):Math.ceil(o.width()+parseInt(o.css("padding-left"))+parseInt(o.css("padding-right"))):C?s.height():s.width(),b||x?e.showAmt>1&&!e.$loop?(d=Math.ceil(m-e.showAmt+1),p=m):(d=m,p=m):(d=Math.ceil(m/e.showAmt),p=d),b&&(v=o.width()),e.$loop&&!L?(l.find("li").length==m&&(e.removeLi(),e.addLi()),g=C?-m*(o.height()+parseInt(o.css("padding-top"))+parseInt(o.css("padding-bottom")))+"px":-m*(o.width()+parseInt(o.css("padding-left"))+parseInt(o.css("padding-right")))+"px",l.css("margin-"+y,g)):(l.find("li").length>m&&e.removeLi(),l.css("margin-"+y,"0px")),j){for(j.empty(),i=0;i<p;i++)if(P){var t=z.clone(),c=r.eq(i).html();t.html(c),j.append(t)}else j.append(z.clone());j.find("li").eq(0).addClass("cur")}T?j.find("li").hover(function(){var t=j.find("li").index($(this));t>d-1&&(t=d-1),e["goto"](t)},function(){}):j.find("li").on("click",function(){var t=j.find("li").index($(this));t>d-1&&(t=d-1),e["goto"](t)}),n(e.$speed)&&!A&&e.play(e.$speed),I&&null===X&&(X=C?s.oTouch({touchStart:function(t){n(e.$speed)&&A&&e.stop(),E=!0,e.oneState||e.first()},touchMoveV:function(t){d>1&&(isIe8||isIe9||isUC?null===v?w.oCss({top:-e.i*f+(t.moveY-t.startY)+"px"}):e.showAmt+e.i>=m?w.oCss({top:-e.i*v+(t.moveY-t.startY)+"px"}):w.oCss({top:-e.i*v+(t.moveY-t.startY)+"px"}):null===v?w.oCss({"transform:translate3d":"(0px,"+-(e.i*f+(t.startY-t.moveY))+"px,0px)","transition-duration":"0s"}):e.showAmt+e.i>=m?w.oCss({"transform:translate3d":"(0px,"+-(e.i*v+(t.startY-t.moveY))+"px,0px)","transition-duration":"0s"}):w.oCss({"transform:translate3d":"(0px,"+-(e.i*v+(t.startY-t.moveY))+"px,0px)","transition-duration":"0s"}))},touchUp:function(t){d>1&&(t.startY-t.endY>20&&B?(H=Math.abs(Math.ceil((t.startY-t.endY)/f)),e.next()):isIe8||isIe9||isUC?null===v?w.stop().animate({top:-e.i*f+"px"},M):w.stop().animate({top:-e.i*v+"px"},M):null===v?w.oCss({"transform:translate3d":"(0px,"+-(e.i*f)+"px,0px)","transition-duration":k}):w.oCss({"transform:translate3d":"(0px,"+-(e.i*v)+"px,0px)","transition-duration":k}))},touchDown:function(t){d>1&&(t.startY-t.endY<-20&&B?(H=Math.abs(Math.ceil((t.endY-t.startY)/f)),e.prev()):isIe8||isIe9||isUC?null===v?w.stop().animate({top:-e.i*f+"px"},M):w.stop().animate({top:-e.i*v+"px"},M):null===v?w.oCss({"transform:translate3d":"(0px,"+-(e.i*f)+"px,0px)","transition-duration":k}):w.oCss({"transform:translate3d":"(0px,"+-(e.i*v)+"px,0px)","transition-duration":k}))},touchEnd:function(){isPC||n(e.$speed)&&!A&&e.play(e.$speed)}}):s.oTouch({touchStart:function(){n(e.$speed)&&A&&e.stop(),E=!0,e.oneState||e.first()},touchMoveH:function(t){d>1&&(isIe8||isIe9||isUC?null===v?w.oCss({left:-e.i*f+(t.moveX-t.startX)+"px"}):e.showAmt+e.i>=m?w.oCss({left:-e.i*v+(t.moveX-t.startX)+"px"}):w.oCss({left:-e.i*v+(t.moveX-t.startX)+"px"}):null===v?w.oCss({"transform:translate3d":"("+-(e.i*f+(t.startX-t.moveX))+"px,0px,0px)","transition-duration":"0s"}):e.showAmt+e.i>=m?w.oCss({"transform:translate3d":"("+-(e.i*v+(t.startX-t.moveX))+"px,0px,0px)","transition-duration":"0s"}):w.oCss({"transform:translate3d":"("+-(e.i*v+(t.startX-t.moveX))+"px,0px,0px)","transition-duration":"0s"}))},touchLeft:function(t){d>1&&(t.startX-t.endX>50&&B?(H=Math.abs(Math.ceil((t.startX-t.endX)/f)),e.next()):isIe8||isIe9||isUC?null===v?w.stop().animate({left:-e.i*f+"px"},M):w.stop().animate({left:-e.i*v+"px"},M):null===v?w.oCss({"transform:translate3d":"("+-(e.i*f)+"px,0px,0px)","transition-duration":k}):w.oCss({"transform:translate3d":"("+-(e.i*v)+"px,0px,0px)","transition-duration":k}))},touchRight:function(t){d>1&&(t.startX-t.endX<-50&&B?(H=Math.abs(Math.ceil((t.endX-t.startX)/f)),e.prev()):isIe8||isIe9||isUC?null===v?w.stop().animate({left:-e.i*f+"px"},M):w.stop().animate({left:-e.i*v+"px"},M):null===v?w.oCss({
2"transform:translate3d":"("+-(e.i*f)+"px,0px,0px)","transition-duration":k}):w.oCss({"transform: translate3d":"("+-(e.i*v)+"px,0px,0px)","transition-duration":k}))}
2,touchEnd:function(){isPC||n(e.$speed)&&!A&&e.play(e.$speed)}})),$p.touchClear&&s.oTouch({clearE:!0}),e.pagerlist()}e.startFn&&"function"==typeof e.startFn&&e.startFn(),e.btnState()},e.first=function(){e.oneState=!0,null!==e.firstPlayFn&&"function"==typeof e.firstPlayFn&&e.firstPlayFn({i:e.i,next:e.nextBtn,prev:e.prevBtn}),e.imgLazys.length>=0&&e.imgLazys.each(function(t){$(this).oPicture().init()})},e.play=function(t){t&&e.$speed&&(clearInterval(e.t),e.t=setInterval(function(){e.next()},t),A=!0)},e.showWidthFn=function(){h%o.width()!==0&&(h=Math.floor(o.width())*e.showAmt,s.oCss({width:h+"px"}),F&&(e.prevBtn.oCss({width:Math.floor((e.width()-h)/2)+"px"}),e.nextBtn.oCss({width:Math.floor((e.width()-h)/2)+"px"})))},e.showHeightFn=function(){u%o.height()!==0&&(u=Math.floor(o.height())*e.showAmt,s.oCss({height:u+"px"}),F&&(e.prevBtn.oCss({height:Math.floor((a-u)/2)+"px"}),e.nextBtn.oCss({height:Math.floor((a-u)/2)+"px"}),s.oCss({top:Math.floor((a-u)/2)+"px"})))},e.stop=function(){clearInterval(e.t),A=!1},e.change=function(){e.oneState=!1,e.imgLazys=[],r=s.find("li"),m=r.length,l=s.find("ul"),e.$loop&&(O=l.clone(),V=O.find("li"),q=V.clone()),e.init(
2)},e["goto"]=function(t){e.oneState||e.first(),B=!1,e.$loop&&!L?(c=null===v?-t*f+"px":-t*v+"px",e.i=t,isIe8||isIe9||isUC?C?w.stop().animate({top:c},M,function(){t>=d?w.oCss({top:-e.i*f}):t<=-1&&w.oCss({top:-e.i*f})}):w.stop().animate({left:c},M,function(){t>=d?w.oCss({left:-e.i*f}):t<=-1&&w.oCss({left:-e.i*f})}):C?w.oCss({"transform:translate3d":"(0px,"+c+",0px)","transition-duration":k}):w.oCss({"transform:translate3d":"("+c+",0px,0px)","transition-duration":k}),t>=d?(e.i=t-d,setTimeout(function(){isIe8||isIe9||isUC||(C?w.oCss({"transform:translate3d":"(0px,"+-e.i*f+"px,0px)","transition-duration":"0s"}):w.oCss({"transform:translate3d":"("+-e.i*f+"px,0px,0px)","transition-duration":"0s"})),!n(e.$speed)||isPC||A||e.play(e.$speed)},M)):t<=-1?(e.i=d+t,setTimeout(function(){isIe8||isIe9||isUC||(C?w.oCss({"transform:translate3d":"(0px,"+-e.i*f+"px,0px)","transition-duration":"0s"}):w.oCss({"transform: translate3d":"("+-e.i*f+"px,0px,0px)","transition-duration":"0s"})),!n(e.$speed)||isPC||A||e.play(e.$speed)},M)):setTimeout(function(){!n(e.$speed)||isPC||A||e.play(e.$speed)},M),setTimeout(function(){B=!0},M)):(null===v?c=t*f+"px":(c=t*v+"px",e.showAmt+t>m&&(c=(m-e.showAmt)/v+"px")),e.i=t,isIe8||isIe9||isUC?C?w.stop().animate({top:"-"+c},M,function(){}):w.stop().animate({left:"-"+c},M,function(){}):C?w.oCss({"transform:translate3d":"(0px,-"+c+",0px)","transition-duration":k}):w.oCss({"transform:translate3d":"(-"+c+",0px,0px)","transition-duration":k}),setTimeout(function(){B=!0,!n(e.$speed)||isPC||A||e.play(e.$speed)},M)),e.prevOrNextFn(),null!==e.playFn&&"function"==typeof e.playFn&&e.playFn({i:e.i,next:e.nextBtn,prev:e.prevBtn}),e.pagerlist(),e.btnState()},e.prevOrNextFn=function(){null!==e.nextFn&&$next&&"function"==typeof e.nextFn?e.nextFn(e.i):null!==e.prevFn&&$prev&&"function"==typeof e.prevFn&&e.prevFn(e.i)},e.btnState=function(){e.i>=d-1?e.$loop&&!L||(e.i=d-1,e.nextBtn.addClass("o_lose")):e.nextBtn.removeClass("o_lose"),e.i<=0?e.$loop&&!L||(e.i=0,e.prevBtn.addClass("o_lose")):e.prevBtn.removeClass("o_lose")},e.pagerlist=function(){if(e.showAmt>1)if(x||b)if(e.$loop){j.find("li").removeClass("cur").removeClass("firstcur");for(var t=0;t<e.showAmt;t++)e.i+t>=m?j.find("li").eq(e.i-m+t).addClass("cur"):j.find("li").eq(e.i+t).addClass("cur");j.find("li").eq(e.i).addClass("firstcur")}else{for(j.find("li").removeClass("cur").removeClass("firstcur"),t=0;t<e.showAmt;t++)e.i>m-e.showAmt?j.find("li").eq(m-e.showAmt+t).addClass("cur"):j.find("li").eq(e.i+t).addClass("cur");j.find("li").eq(e.i).addClass("firstcur")}else j.find("li").eq(e.i).addClass("cur").siblings().removeClass("cur");else j.find("li").eq(e.i).addClass("cur").siblings().removeClass("cur");e.$loop&&(V.removeClass("o_cur").eq(e.i).addClass("o_cur"),q.removeClass("o_cur").eq(e.i).addClass("o_cur")),r.removeClass("o_cur").eq(e.i).addClass("o_cur"),H=1},_){var N=$("<div class='scroll'></div>"),U=$("<span></span>");N.append(U)}return e.addLi=function(){Y===!1&&(V.appendTo(l),q.appendTo(l),V.on("click",function(){e.clickI=V.index(this)}),q.on("click",function(){e.clickI=q.index(this)}),Y=!0,e.imgLazys=s.find(".o_lazy"))},e.removeLi=function(){Y===!0&&(V.remove(),q.remove(),Y=!1)},e.prevBtn.click(function(){e.prevBtn.hasClass("o_lose")||e.prev()}),e.prev=function(){$next=!1,$prev=!0,B&&(b?e.i--:(H>e.showAmt?e.showAmt:H,e.i-=H),e.nextBtn.removeClass("o_lose"),e.$loop&&!L?e["goto"](e.i):e.i<0?(e.$loop&&!L||(E?(b?e.i++:e.i=0,$prev=!1,E=!1):e.i=d-1),e["goto"](e.i)):e["goto"](e.i))},e.nextBtn.click(function(){e.nextBtn.hasClass("o_lose")||e.next()}),e.next=function(){$next=!0,$prev=!1,B&&(B=!1,b?e.i++:(H>e.showAmt?e.showAmt:H,e.i+=H),e.prevBtn.removeClass("o_lose"),e.$loop&&!L?(e["goto"](e.i),null!==e.nextFn&&"function"==typeof e.nextFn&&e.nextFn(e.i)):e.i>d-1?(e.$loop&&!L||(E?(b?e.i--:e.i=d-1,$next=!1,E=!1):e.i=0),e["goto"](e.i)):e["goto"](e.i))},e.cleanup=function(){e.$loop=!1,e.$speed=!1,clearInterval(e.t),e.i=0,e.init(),e.stop(),null!==X&&X.touchClear()},S&&$(window).resize(function(){e.inited&&e.init()}),e},$.fn.oMenu=function(t){var n,o,e,s,i,a={menu:"",mainbox:".o_main",linkage:!0,btnbox:$(this),zztop:0,openfn:null,closefn:null,initfn:null,openFn:null,closeFn:null,initFn:null,menuwidth:null,zzclass:"o_m_zz"},l=$.extend(a,t),r=$(this),c=$(l.mainbox),p=$("<div><div style='height:9999999999px'></div></div>").addClass(l.zzclass),d=l.linkage,h=$(l.btnbox),u=$(l.menu),f=!0,g=l.menuwidth?l.menuwidth:u.width(),m=("onmousewheel"in document?"mousewheel":"DOMMouseScroll",null==l.closefn?l.closeFn:l.closefn),b=null==l.openfn?l.openFn:l.openfn,x=null==l.initfn?l.initFn:l.initfn;return u.css("z-index","160"),r.on("click",function(){p.css({"margin-top":l.zztop+"px",overflow:"scroll",opacity:.5}).height($(window).height()+10),o=Math.abs(parseFloat(c.css("left"))),e=Math.abs(parseFloat(c.css("right"))),s=parseFloat(u.css("left")),i=parseFloat(u.css("right")),f&&(f=!1,d?o>0||e>0?r.close():r.open():0===s||0===i?r.close():r.open(),setTimeout(function(){f=!0},500))}),r.open=function(){d?(i<0?(c.oCss({"transform:translate3d":"("+-Math.abs(i)+"px,0px,0px)","transition-duration":"0.3s"},!1),u.css({height:$(window).height()}),setTimeout(function(){c.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0.0s"},!1),c.css({right:Math.abs(i)+"px",position:"relative"}),n="right"},500),c.append(p),b&&b(r)):s<0&&(c.oCss({"transform:translate3d":"("+Math.abs(s)+"px,0px,0px)","transition-duration":"0.3s"},!1),u.css({height:$(window).height()}),setTimeout(function(){c.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0.0s"},!1),c.css({left:Math.abs(s)+"px",position:"relative"}),n="left"},500),c.append(p),b&&b(r)),r.addClass("cur")):(i<0?(u.oCss({"transform:translate3d":"(-100%,0px,0px)","transition-duration":"0.3s",height:$(window).height()+"px"},!1),setTimeout(function(){u.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0s",height:$(window).height()+"px"},!1),u.css({right:"0px"}),n="right"},300),h&&h.stop().animate({marginRight:g},300),c.append(p),b&&b(r)):s<0&&(u.oCss({"transform:translate3d":"(100%,0px,0px)","transition-duration":"0.3s",height:$(window).height()+"px"},!1),setTimeout(function(){u.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0s",height:$(window).height()+"px"},!1),u.css({left:"0px"}),n="left"},300),h&&h.stop().animate({marginLeft:g},300),c.append(p),b&&b(r)),r.addClass("cur")),oPreventScroll(p[0])}
2,r.close=function(){d?("left"==n?(c.oCss({"transform:translate3d":"( "+Math.abs(s)+"px,0px,0px)","transition-duration":"0s"},!1),c.css({left:"0px"}),setTimeout(function(){c.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0.3s"},!1)},10),r.removezz(),m&&m(r)):"right"==n&&(c.oCss({"transform:translate3d":"("+-Math.abs(i)+"px,0px,0px)","transition-duration":"0s"},!1),c.css({right:"0px"}),setTimeout(function(){c.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0.3s"},!1)},10),r.removezz(),m&&m(r)),r.removeClass("cur")):(g=l.menuwidth?l.menuwidth:u.width(),"left"==n?(u.oCss({"transform:translate3d":"(100%,0px,0px)","transition-duration":"0s"},!1),u.css({left:"-"+g+"px"}),setTimeout(function(){u.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0.3s"},!1)},10),h&&h.stop().animate({marginLeft:0},300),r.removezz(),m&&m(r)):"right"==n&&(u.oCss({"transform:translate3d":"(-100%,0px,0px)","transition-duration":"0s"},!1),u.css({right:"-"+g+"px"}),setTimeout(function(){u.oCss({"transform:translate3d":"(0px,0px,0px)","transition-duration":"0.3s"},!1)},10),h&&h.stop().animate({marginRight:0},300),r.removezz(),m&&m(r)),r.removeClass("cur"))},r.init=function(){d?c.attr("style",""):(h&&h.attr("style",""),u.attr("style","")),x&&x(r),r.removeClass("cur").removezz()},$(window).resize(function(){r.init()}),r.removezz=function(){p.oCss({opacity:0,"transition-duration":"0.5s"},!1),setTimeout(function(){p.detach()},500)},p.click(function(){r.click()}),r.allback=function(){d?(c.animate({right:"0px"},300),p.detach(),r.removeClass("cur")):("left"==n?(u.stop().animate({left:"-"+g},300),h.stop().animate({marginLeft:"0px"},300),p.detach()):"right"==n&&(u.stop().animate({right:"-"+g},300),h.stop().animate({marginRight:"0px"},300),p.detach()),r.removeClass("cur"))},r.menuback=function(){d?(c.animate({right:"0px"},300),p.remove(),r.removeClass("cur")):("left"==n?(u.stop().animate({opacity:"0.5"},300,function(){u.css({left:"-"+g,opacity:"1"})}),p.detach()):"right"==n&&(u.stop().animate({opacity:"0.5"},300,function(){u.css({right:"-"+g,opacity:"1"})}),p.detach()),r.removeClass("cur"))},r},$.fn.oCutText=function(t){var n,o={smPoint:oPoint.sm,mdPoint:oPoint.md,lgPoint:oPoint.lg,xlPoint:oPoint.xl},e=$.extend(o,t),s=$(this),i=e.smPoint,a=e.mdPoint,l=e.lgPoint,r=e.xlPoint;s.each(function(){var t=$(this);t.self=$(this),t.info=t.attr("title")||t.attr("data-title"),t.infoM=t.info.split(""),t.len_df=60,t.len_xs=0,t.len_sm=0,t.len_md=0,t.len_lg=0,t.len_xl=0,t.self.attr("df")?t.len_df=1*t.self.attr("df"):t.len_df=60,t.self.attr("xs")?t.len_xs=1*t.self.attr("xs"):t.len_xs=0,t.self.attr("sm")?t.len_sm=1*t.self.attr("sm"):t.len_sm=0,t.self.attr("md")?t.len_md=1*t.self.attr("md"):t.len_md=0,t.self.attr("lg")?t.len_lg=1*t.self.attr("lg"):t.len_lg=0,t.self.attr("xl")?t.len_xl=1*t.self.attr("xl"):t.len_xl=0,t.cut=function(n){for(var o=0,e=0,s=0;s<t.info.length;s++)if(t.infoM[s].charCodeAt(0)<299){if(o++,o>n){o--,e=s-1;break}}else if(o+=2,o>n){o-=1.5,e=s-1;break}e?t.html(t.info.substring(0,e)+"..."):t.html(t.info)},t.init=function(){n=$(window).width(),n<=i-1&&0!==t.len_xs?t.cut(t.len_xs):n>i&&n<=a&&0!==t.len_sm?t.cut(t.len_sm):n>a&&n<=l&&0!==t.len_md?t.cut(t.len_md):n>l&&n<=r&&0!==t.len_lg?t.cut(t.len_lg):n>r&&0!==t.len_xl?t.cut(t.len_xl):t.cut(t.len_df)},t.init(),$(window).resize(function(){t.init()})})},$.fn.oHoverMove=function(t){function n(t){a=t.pageX,l=t.pageY,b&&(d=a,h=l),g({self:u,startX:s,startY:i,moveX:a,moveY:l})}function o(t){r=t.pageX,c=t.pageY,b&&clearInterval(p),m({self:u,startX:s,startY:i,leaveX:r,leaveY:c})}function e(){return d===a&&h===l&&void b({self:u,startX:s,startY:i,moveX:a,moveY:l})}if(isPC){defaults={clearE:!1,mouseStart:function(){},mouseMove:function(){},mouseLeave:function(){},mouseStopFn:null,stopTime:1e3},t=$.extend(defaults,t);var s,i,a,l,r,c,p,d,h,u=$(this),f=t.mouseStart,g=t.mouseMove,m=t.mouseLeave,b=t.mouseStopFn,x=t.stopTime;return u.on("mouseenter",function(t){s=t.pageX,i=t.pageY,b&&(p=setInterval(function(){e()},x)),f({self:u,startX:s,startY:i}),u.bind("mousemove",function(t){return n(t),!1}),u.bind("mouseleave",function(t){o(t),u.off("mousemove"),u.off("mouseleave")})}),u}},$.fn.oLoading=function(t){defaults={showNum:!0,speed:200,loadFn:null,auto:!0},$p=$.extend(defaults,t);var n={};return n.target=$(this),n.box=$("<div class='o_loadingBox'>"),n.p1=$("<span class='o1'>"),n.p2=$("<span class='o2'>"),n.p3=$("<span class='o3'>"),n.p4=$("<span class='o4'>"),n.p5=$("<span class='o5'>"),n.p6=$("<span class='o6'>"),n.p7=$("<span class='o7'>"),n.p8=$("<span class='o8'>"),n.text=$("<i class='tt'>"),n.num=0,n.auto=$p.auto,n.loadFn=$p.loadFn,n.t={},n.zz=$("<div class='o_shade_loading'>"),n.target.css("position","relative"),n.target.append(),n.box.append(n.p1).append(n.p2).append(n.p3).append(n.p4).append(n.p5).append(n.p6).append(n.p7).append(n.p8),$p.showNum&&n.box.append(n.text),n.start=function(){$p.showNum&&(n.num=0,n.text.html(n.num+"%"),n.auto&&n.goNum()),n.target.append(n.zz).append(n.box)},n.goNum=function(){n.t=setInterval(function(){"function"!=typeof n.loadFn?(n.num+=8,n.num>=99&&(n.num=99),n.text.html(n.num+"%")):(n.loadFn(n),n.num>100&&(n.num=100,n.end()),n.text.html(n.num+"%"))},$p.speed)},n.change=function(t){return n.num=parseInt(t),n.num>100?(n.num=100,n.end(),!1):void n.text.html(n.num+"%")},n.end=function(){$p.showNum&&(clearInterval(n.t),n.text.html("100%")),n.zz.remove(),n.box.remove()},n},$.fn.oPicture=function(t){var n,o={sm:oPoint.sm,md:oPoint.md,lg:oPoint.lg,xl:oPoint.xl},e=$.extend(o,t),s={};return s.obj=$(this),s.sm=e.sm,s.md=e.md,s.lg=e.lg,s.xl=e.xl,s.state=!1,s.change=function(t){return t!==s.obj.attr("src")&&void s.obj.attr("src",t)},s.init=function(){return s.state=!0,s.xsImg=s.obj.attr("xs"),s.smImg=s.obj.attr("sm"),s.mdImg=s.obj.attr("md"),s.lgImg=s.obj.attr("lg"),s.xlImg=s.obj.attr("xl"),s.dfImg=s.obj.attr("df"),s.ie8Img=s.obj.attr("ie8"),n=$(window).width(),s.hasDf=void 0!==s.dfImg&&""!==s.dfImg,isIe8&&void 0!==s.ie8Img&&""!==s.ie8Img?(s.change(s.ie8Img),
2!1):void(n<=s.sm?void 0===s.xsImg||""===s.xsImg?s.hasDf&&s.change(s.dfImg):s.change(s.xsImg):n>s.sm&&n<=s.md?void 0===s.smImg||""===s.smImg?s.hasDf&&s.change(s.dfImg):s.change(s.smImg):n>s.md&&n<=s.lg?void 0===s.mdImg||""===s.mdImg?s.hasDf&&s.change(s.dfImg):s.change(s.mdImg):n>s.lg&&n<=s.xl?void 0===s.lgImg||""===s.lgImg?s.hasDf&&s.change(s.dfImg):s.change(s.lgImg):n>s.xl&&(void 0===s.xlImg||""===s.xlImg?s.hasDf&&s.change(s.dfImg):s.change(s.xlImg)))},$(window).resize(function(){s.state&&s.init()}),s},$.fn.oPicturLazy=function(t){var n={range:200,window:$(window)},o=$.extend(n,t),e={};return e.obj=$(this),e.range=parseInt(e.obj.attr("range"))||o.range,e.opicture=e.obj.oPicture(),e.state=!1,e.window=o.window,e.init=function(){e.opicture.init(),e.state=!0},e.window.scroll(function(){if(!e.state){var t=e.window.scrollTop();e.top=e.obj.position().top,e.top<=t+e.range+$(window).height()&&e.init()}}),e},$.fn.oPopup=function(t){defaults={confirm:".js_confirm",confirmFn:null,zz:"<div class='o_shade'></div>",closeFn:null,absolute:!1,openFn:null,shadeClose:!1},$p=$.extend(defaults,t);var n=$(this);return n.obj=$(this),n.target=null,null!==$(this).attr("oData-popup")&&(n.target=$($(this).attr("oData-popup"))),n.zz=$($p.zz),n.confirm=n.target.find($p.confirm),n.closebtn=n.target.find(".js_popupClose"),n.confirmFn=$p.confirmFn,n.closeFn=$p.closeFn,n.absolute=$p.absolute,n.top=0,n.shadeClose=$p.shadeClose,n.openFn=$p.openFn,n.absolute&&n.target.addClass("absolute"),n.hasClass("o_body")||n.on("click",function(){n.open()}),n.open=function(t){oPopupIndex++,n.zz.appendTo($("body")).addClass("show").css("z-index",oPopupIndex),n.target.show().addClass("show").css("z-index",oPopupIndex+1),n.confirm.length>0&&(n.confirm.off(),n.confirm.on("click",function(){n.closebtn.click(),n.confirmFn&&n.confirmFn({selfEle:n.obj,targetEle:n.target,self:n})})),n.init(),n.openFn&&n.openFn(),n.shadeClose&&n.zz.on("click",function(){n.close()})},n.closebtn.on("click",function(){n.close()}),n.close=function(){n.target.addClass("hide"),n.zz.removeClass("show"),setTimeout(function(){n.zz.detach(),n.target.removeClass("hide").removeClass("show").hide(),null!==n.closeFn&&n.closeFn(n.target)},300)},n.init=function(){var t=$(window).height(),o=$(document).height(),e=$(window).scrollTop(),s=n.target.height();n.absolute?s<=t?(n.top=e+(t-s)/2,n.target.css("top",n.top)):e+s+30>o?(e=o-(s+60),$("html,body").animate({scrollTop:e},200),n.top=e+30,n.target.css("top",n.top).addClass("absolute")):(n.top=e+30,n.target.css("top",n.top)):s<=t?(n.top=(t-s)/2,n.target.css("top",n.top).removeClass("absolute")):e+s+30>o?(e=o-(s+60),$("html,body").animate({scrollTop:e},200),n.top=e+30,n.target.css("top",n.top).addClass("absolute")):(n.top=e+30,n.target.css("top",n.top).addClass("absolute"))},isPC&&$(window).resize(function(){n.init()}),n},$.fn.oAlert=function(t){var n={info:"没有定义信息",btnCloseClass:"iconfont",btnConfirmClass:"o_bgbtn1 o_btn_df-sm",btnConfirmText:"确定",before:null,after:null},o=$.extend(n,t),e=$(".o_body"),s={};return s.autoInfo=o.info,s.newClass="",s.box=$("<div class='o_popup o_alert js_alertbox'></div>"),s.closeBtn=$("<span class='o_popupclose "+o.btnCloseClass+" js_popupClose'></span>"),s.contbox=$("<div class='cont'>"),s.tool=$("<div class='tool'></div>"),s.confirmBtn=$("<div class='btn "+o.btnConfirmClass+" js_popupClose'><span>"+o.btnConfirmText+"</span></div>"),s.closeBtn.appendTo(s.box),s.contbox.appendTo(s.box),s.confirmBtn.appendTo(s.tool),s.tool.appendTo(s.box),e.after(s.box),s.popupObj=s.box.oPopupObj({closeFn:function(){s.box.removeClass(s.newClass)}}),"string"==typeof o.before&&s.contbox.before(o.before),"string"==typeof o.after&&s.contbox.append(o.after),s.open=function(t){s.closeFn=null,s.box.removeClass(s.newClass),t.info?s.contbox.html(t.info):s.contbox.html(s.autoInfo),"function"==typeof t.closeFn?s.closeFn=t.closeFn:s.closeFn=function(){},t.addClass?(s.newClass=t.addClass,s.box.addClass(s.newClass)):s.newClass="",s.popupObj.open()},s.confirmBtn.off().on("click",function(){s.closeFn(),s.popupObj.close()}),s.closeBtn.off().on("click",function(){s.closeFn(),s.popupObj.close()}),s},$.fn.oConfirm=function(t){var n={info:"没有定义信息",btnCloseClass:"iconfont",btnConfirmClass:"o_bgbtn1 o_btn_df-sm",btnCancelClass:"o_linebtn1 o_btn_df-sm",btnConfirmText:"确定",btnCancelText:"取消",before:null,after:null},o=$.extend(n,t),e=$(".o_body"),s={};return s.autoInfo=o.info,s.callbackFn=null,s.targetEle=null,s.newClass="",s.box=$("<div class='o_popup o_confirm js_confirmbox'></div>"),s.closeBtn=$("<span class='o_popupclose "+o.btnCloseClass+" js_popupClose'><span>"),s.contbox=$("<div class='cont'>"),s.tool=$("<div class='tool'></div>
2"),s.confirmBtn=$("<div class='btn "+o.btnConfirmClass+" js_confirm'><span>"+o.btnConfirmText+"</span></div>"),s.cancelBtn=$("<div class=' btn "+o.btnCancelClass+" js_popupClose'><span>"+o.btnCancelText+"</span></div>"),s.closeBtn.appendTo(s.box),s.contbox.appendTo(s.box),s.confirmBtn.appendTo(s.tool),s.cancelBtn.appendTo(s.tool),s.tool.appendTo(s.box),e.after(s.box),s.popupObj=s.box.oPopupObj(),"string"==typeof o.before&&s.contbox.before(o.before),"string"==typeof o.after&&s.contbox.append(o.after),s.open=function(t){s.successFn=null,s.cancelFn=null,s.box.removeClass(s.newClass),t?(t.info?s.contbox.html(t.info):s.contbox.html(s.autoInfo),t.ele?s.targetEle=t.ele:s.targetEle=null,"function"==typeof t.successFn?s.successFn=t.successFn:s.successFn=function(){},"function"==typeof t.cancelFn?s.cancelFn=t.cancelFn:s.cancelFn=function(){},t.addClass?(s.newClass=t.addClass,s.box.addClass(s.newClass)):s.newClass=""):s.contbox.html(s.autoInfo),s.popupObj.open(),s.cancelBtn.off().on("click",function(){s.cancelFn(s.targetEle),s.popupObj.close()}),s.confirmBtn.off().on("click",function(){s.successFn(s.targetEle),s.popupObj.close()})},s},$.fn.oSelect=function(t){var n={go:!0,showLenght:5,hover:!1,cont:$(this).parent(),openFn:function(){},closeFn:function(){},scrollbarStep:20},o=$.extend(n,t),e=$(this);return e.obj=$(this),e.width=$(this).attr("style")&&0==$(this).attr("style").indexOf("width")?e.obj.css("width"):"auto",e.autotext=e.obj.attr("autotext"),e.cont=o.cont,e.hover=o.hover,e.step=o.scrollbarStep,e.body=$("<div>").addClass("o_DropdownBody"),e.box=$("<div>").addClass("o_Dropdown"),e.ico=$("<i>").addClass("i_down"),e.name=$("<span>").addClass("name").html(e.autotext),e.listbody=$("<div>").addClass("listbox"),e.listbox=$("<div>").addClass("list"),e.ul=$("<ul>"),e.option=e.obj.find("option"),e.optGroup=e.obj.find("optgroup"),e.li=$("<li>"),e.h2=$("<h2>"),e.span=$("<span>"),e.showLenght=o.showLenght,e.autoi,e.openfn=o.openFn,e.closefn=o.closeFn,e.go=o.go,e.box.css({cursor:"default",width:e.width}),e.cont.css({position:"relative","z-index":"0"}),e.option.each(function(t){if($(this).attr("selected")){var n=$(this).html();return e.name.html(n).attr("otitle",n),!1}}),e.ul.appendTo(e.listbox),e.listbox.appendTo(e.listbody),e.box.append(e.ico).append(e.name).append(e.listbody),e.body.append(e.box),e.obj.before(e.body).css("display","none"),e.obj.appendTo(e.box),e.bar=e.ul.oScrollBar({step:e.step}),e.box.addClass("lose"),e.init=function(){e.lose(),e.ul.find("li").on("click",function(t){$(this).addClass("cur").siblings().removeClass("cur"),$i=e.ul.find("li").index(this),e.option=e.find("option"),e.option.attr("selected",!1).eq($i).attr("selected",!0),$val=$(this).find("span").html(),e.listbody.css("display","none"),e.name.html($val).attr("otitle",$val),e.obj.change(),t.stopPropagation()}),isPC||e.box.on("change","select",function(t){var n=$(this).find("option:selected").html();e.name.html(n).attr("otitle",n)}),e.resetting(),e.box.removeClass("lose")},e.lose=function(){e.box.addClass("lose"),e.box.attr("style",""),e.option=e.find("option"),e.optGroup=e.find("optgroup"),e.ul.html(""),e.name.html(e.autotext),e.optGroup.length>0?e.optGroup.each(function(){var t=$(this).attr("label"),n=e.h2.clone();n.html(t),e.ul.append(n),$(this).find("option").each(function(){var t=$(this).html(),n=e.li.clone(),o=e.span.clone();$(this).attr("selected")&&(t=$(this).html(),e.name.html(t).attr("otitle",t),e.autoi=e.option.index(this),n.addClass("cur")),o.html(t),n.append(o),e.ul.append(n)})}):e.option.each(function(t){var n=$(this).html(),o=e.li.clone(),s=e.span.clone();$(this).attr("selected")&&(n=$(this).html(),e.name.html(n).attr("otitle",n),e.autoi=e.option.index(this),o.addClass("cur")),s.html(n),o.append(s),e.ul.append(o)}),e.name.off(),e.box.css({cursor:"default",width:e.width}),e.obj.css({display:"none"})},e.resetting=function(){isPC?(e.hover&&e.name.hover(function(){e.listbody.css("display","inline-block"),e.cont.css({"z-index":"1"}),e.body.css({"z-index":"1"}),e.ul.height()<=200?e.listbox.css("height",e.ul.height()):e.listbox.css("height","200px"),e.body.addClass("open"),e.openfn(e.body),e.bar.init()}),e.name.on("click",function(){e.listbody.css("display","inline-block"),e.cont.css({"z-index":"1"}),e.body.css({"z-index":"1"}),e.ul.height()<=200?e.listbox.css("height",e.ul.height()):e.listbox.css("height","200px"),e.body.addClass("open"),e.openfn(e.body),e.bar.init()}),e.box.hover(function(){},function(){e.listbody.css("display","none"),e.cont.css({"z-index":"0"}),e.body.css({"z-index":"0"}),e.body.removeClass("open"),e.closefn(e.body)}),e.obj.css({display:"none"})):(e.name.off(),e.obj.css({display:"block"}))},e},$.fn.oSelectClean=function(t){var n={go:!0,showLenght:5,hover:!0,clean:!0,cont:$(this).parent(),openFn:function(){},closeFn:function(){},scrollbarStep:20},o=$.extend(n,t),e=$(this);
2return e.obj=$(this),e.width=$(this).attr("style")&&0==$(this).attr("style").indexOf("width")?e.obj.css("width"):"auto",e.autotext=e.obj.attr("autotext"),e.cont=o.cont,e.hover=o.hover,e.step=o.scrollbarStep,e.body=$("<div>").addClass("o_DropdownBody"),e.box=$("<div>").addClass("o_Dropdown"),e.ico=$("<i>").addClass("i_down"),e.name=$("<span>").addClass("name").html(e.autotext),e.listbody=$("<div>").addClass("listbox"),e.listbox=$("<div>").addClass("list"),e.listbox2=$("<div>").addClass("oDropdownlist").addClass("o_popup"),e.ul=$("<ul>"),e.ul2=$("<ul>"),e.option=e.obj.find("option"),e.optGroup=e.obj.find("optgroup"),e.li=$("<li>"),e.h2=$("<h2>"),e.span=$("<span>"),e.showLenght=o.showLenght,e.autoi=null,e.openfn=o.openFn,e.closefn=o.closeFn,e.go=o.go,e.box.css({cursor:"default",width:e.width}),e.popup=null,e.bar=null,e.bar2=null,e.clean=o.clean,e.cont.css({position:"relative","z-index":"0"}),e.ul.appendTo(e.listbox),e.ul2.appendTo(e.listbox2),$(".o_body").after(e.listbox2),e.listbox.appendTo(e.listbody),e.box.append(e.ico).append(e.name).append(e.listbody),e.body.append(e.box),e.obj.before(e.body).css("display","none"),e.obj.appendTo(e.box),e.bar=e.ul.oScrollBar({step:e.step}),e.bar2=e.ul2.oScrollBar({step:e.step}),e.box.addClass("lose"),e.init=function(){e.lose(),e.ul.find("li").on("click",function(t){$(this).addClass("cur").siblings().removeClass("cur"),$i=$(this).parent().find("li").index(this),e.option=e.find("option"),e.option.attr("selected",!1).eq($i).attr("selected",!0),e.val=$(this).find("span").html(),e.listbody.css("display","none"),e.name.html(e.val).attr("otitle",e.val),e.change(),t.stopPropagation(),isPC||e.popup.close()}),e.ul2.empty(),e.ul.find("li").each(function(){e.ul2.append($(this).clone(!0))}),isPC||(e.popup=$("o_body").oPopupFn({zzClose:!0}),e.listbody.addClass("o_popup")),e.resetting(),e.box.removeClass("lose")},e.lose=function(){e.box.addClass("lose"),e.box.attr("style",""),e.option=e.find("option"),e.optGroup=e.find("optgroup"),e.ul.html(""),e.name.html(e.autotext),e.optGroup.length>0?e.optGroup.each(function(){var t=$(this).attr("label"),n=e.h2.clone();n.html(t),e.ul.append(n),$(this).find("option").each(function(){var t=$(this).html(),n=e.li.clone(),o=e.span.clone();$(this).attr("selected")&&(t=$(this).html(),e.name.html(t).attr("otitle",t),e.autoi=e.option.index(this),n.addClass("cur")),e.clean||(e.val=$(this).html(),e.name.html(e.val).attr("otitle",e.val),e.autoi=e.option.index(this),n.addClass("cur")),o.html(e.val),n.append(o),e.ul.append(n)})}):e.option.each(function(t){e.val=$(this).html();var n=e.li.clone(),o=e.span.clone();$(this).attr("selected")&&(e.clean||(e.val=$(this).html(),e.name.html(e.val).attr("otitle",e.val),e.autoi=e.option.index(this),n.addClass("cur"))),o.html(e.val),n.append(o),e.ul.append(n)}),e.name.off(),e.box.css({cursor:"default",width:e.width}),e.obj.css({display:"none"})},e.resetting=function(){isPC?(e.hover&&e.name.hover(function(){e.listbody.css("display","inline-block"),e.cont.css({"z-index":"1"}),e.body.css({"z-index":"1"}),e.ul.height()<=200?e.listbox.css("height",e.ul.height()):e.listbox.css("height","200px"),e.body.addClass("open"),e.openfn(e.body),e.bar.init()}),e.name.on("click",function(){e.listbody.css("display","inline-block"),e.cont.css({"z-index":"1"}),e.body.css({"z-index":"1"}),e.ul.height()<=200?e.listbox.css("height",e.ul.height()):e.listbox.css("height","200px"),e.body.addClass("open"),e.openfn(e.body),e.bar.init()}),e.box.hover(function(){},function(){e.listbody.css("display","none"),e.cont.css({"z-index":"0"}),e.body.css({"z-index":"0"}),e.body.removeClass("open"),e.closefn(e.body)}),e.obj.css({display:"none"})):e.name.on("click",function(){e.popup.open({target:e.listbox2,openFn:function(){e.ul2.height()<=400?e.listbox2.css("height",e.ul2.height()):e.listbox2.css("height","400px"),e.bar2.init()}})})},e},$.fn.oInputSelect=function(t){var n={go:!0,showLenght:5,hover:!0,clean:!0,cont:$(this).parent(),openFn:function(){},closeFn:function(){},inputFn:function(t){},callbackFn:function(t){}},o=$.extend(n,t),e={};
2return e.obj=$(this),e.width=$(this).attr("style")&&0==$(this).attr("style").indexOf("width")?e.obj.css("width"):"auto",e.autotext=e.obj.attr("autotext"),e.inputFn=o.inputFn,e.callbackFn=o.callbackFn,e.cont=o.cont,e.hover=o.hover,e.body=$("<div>").addClass("o_DropdownBody"),e.box=$("<div>").addClass("o_InputSelectBox"),e.ico=$("<i>").addClass("i_down"),e.name=$("<span>").addClass("name").html(e.autotext),e.listbody=$("<div>").addClass("listbox"),e.listbox=$("<div>").addClass("list"),e.ul=$("<ul>"),e.ul2=$("<ul>"),e.option=e.obj.find("option"),e.optGroup=e.obj.find("optgroup"),e.li=$("<li>"),e.h2=$("<h2>"),e.span=$("<span>"),e.showLenght=o.showLenght,e.autoi=null,e.openfn=o.openFn,e.closefn=o.closeFn,e.go=o.go,e.box.css({cursor:"default",width:e.width}),e.popup=null,e.bar=null,e.bar2=null,e.clean=o.clean,e.cont.css({position:"relative","z-index":"0"}),e.changelist=function(t){e.box.attr("style",""),e.ul.html("");for(var n=0;n<t.length;n++){var o=e.li.clone(!0),s=e.span.clone(!0).html(t[n]);o.append(s),e.ul.append(o)}e.openlist()},e.obj.on("blur",function(){setTimeout(function(){e.listbody.css("display","none"),e.cont.css({"z-index":"0"}),e.body.css({"z-index":"0"}),e.val=e.obj.val(),e.callbackFn(e.val)},300),e.obj.parents(".ui_input").removeClass("cur")}),e.obj.on("focus",function(){e.val=e.obj.val(),e.obj.parents(".ui_input").addClass("cur")}),e.obj.on("keyup",function(){var t=e.obj.val();e.inputFn(t)}),e.ul.appendTo(e.listbox),e.listbox.appendTo(e.listbody),e.box.append(e.listbody),e.body.append(e.box),e.obj.before(e.body),e.obj.appendTo(e.box),e.bar=e.ul.oScrollBar(),e.init=function(){},e.li.on("click",function(){e.obj.val($(this).find("span").text())}),e.openlist=function(){e.listbody.css("display","inline-block"),e.cont.css({"z-index":"1"}),e.body.css({"z-index":"1"}),e.ul.height()<=200?e.listbox.css("height",e.ul.height()):e.listbox.css("height","200px"),e.body.addClass("open"),e.openfn(e.body),e.bar.init()},e},$.fn.oPager=function(t){var n={prevText:"上一页",nextText:"下一页",btnLength:3,btnLength_sm:null,btnLength_md:null,btnLength_xs:null,showJump:!0,jumpAddClass:"o_sm-hide o_xs-hide",jumpText:"跳转到",jumpText2:"页",submitText:"确定",goPageFn:null,showLast:!0},o=$.extend(n,t),e={};return e.pageCount=0,e.pageSize=0,e.curPager=0,e.obj=$(this),e.btnLength_df=o.btnLength,e.btnLength_md=null!=o.btnLength_md?o.btnLength_md:o.btnLength,e.btnLength_sm=null!=o.btnLength_sm?o.btnLength_sm:o.btnLength,e.btnLength_xs=null!==o.btnLength_xs?o.btnLength_xs:o.btnLength,e.showJump=o.showJump,e.goPageFn=o.goPageFn,e.showLast=o.showLast,e.box=$('<div class="oPager"></div>'),e.prev=$('<a href="javascript:;" class="prev"></a>'),e.next=$('<a href="javascript:;" class="next"></a>'),e.pager=$('<a href="javascript:;" class="js_pageI"></a>'),e.jumpbox=$('<div class="jumpbox"></div>'),e.input=$('<input type="text" class="text" />'),e.jumpbtn=$('<a href="javascript:;" class="jump">'+o.submitText+"</a>"),e.last=e.pager.clone(),e.point=$("<span>...</span>"),e.start=0,e.end=0,e.goNum=0,e.yu=!1,e.curLast=!1,e.listLast=null,e.curLastone=!1,e.prev.html(o.prevText),e.next.html(o.nextText),e.jumpbox.append($("<span>"+o.jumpText+"</span>")).append(e.input).append($("<span>"+o.jumpText2+"</span>")).append(e.jumpbtn),e.obj.append(e.box),e.obj.oNoSelect(),e.clean=function(){e.jumpbox.remove(),e.prev.remove(),e.next.remove(),e.point.remove().attr("class",""),e.last.remove().attr("class",""),e.box.html(""),e.btnLength_df=o.btnLength,e.btnLength_md=o.btnLength_md,e.btnLength_sm=o.btnLength_sm,e.btnLength_xs=o.btnLength_xs},e.init=function(t){if(e.yu=!1,e.clean(),e.curPager=parseInt(t.curPager),e.pageCount=parseInt(t.pageCount),e.pageSize=parseInt(t.pageSize),0==e.pageCount)return!1;e.curPager==e.pageCount?e.lastt=!0:e.lastt=!1,e.btnLength_df=e.pageCount>e.btnLength_df?e.btnLength_df:e.pageCount,e.btnLength_md=e.pageCount>e.btnLength_md?e.btnLength_md:e.pageCount,e.btnLength_sm=e.pageCount>e.btnLength_sm?e.btnLength_sm:e.pageCount,e.btnLength_xs=e.pageCount>e.btnLength_xs?e.btnLength_xs:e.pageCount,e.btnLength=Math.max(e.btnLength_df,e.btnLength_md,e.btnLength_sm,e.btnLength_xs),e.curPager<1&&(e.curPager=1),e.start=Math.max(1,e.btnLength>=3?e.curPager-1:e.curPager),e.start+(e.btnLength-1)>=e.pageCount?(e.curLast=!0,e.start=e.pageCount-(e.btnLength-1),e.yu=!1,e.curLastone=!1):e.start+(e.btnLength-1)==e.pageCount-1?(e.curLastone=!0,e.curLast=!1,e.yu=!0):(e.curLast=!1,e.curLastone=!1,e.start+e.btnLength<=e.pageCount&&(e.yu=!0)),e.end=Math.max(e.start+e.btnLength-1,e.start+e.btnLength_md-1,e.start+e.btnLength_sm-1,e.start+e.btnLength_xs-1),e.curPager>1?(e.box.append(e.prev.removeClass("lose")),e.prev.on("click",function(){
3e.goPageFn(e.curPager-1)})):(e.box.append(e.prev.addClass("lose")),e.prev.unbind("click"));var n=e.pager.clone().html(1);n.bind("click",function(){e.goPageFn(parseInt($(this).html()))}),2==e.start?e.box.append(n):e.start>2&&(e.box.append(n),e.box.append(e.point.clone()));for(var s=e.start;s<=e.end;s++){var i=e.pager.clone();i.html(s),s==e.curPager&&i.addClass("cur");var a=e.end-e.start+1;e.lastt||e.curPager+1==e.pageCount?(s!==e.curPager&&(e.btnLength_df>1?s<=e.end-e.btnLength_df&&e.hidebtn(i,"df"):s!==e.btnLength_df&&e.hidebtn(i,"df"),s<=e.end-e.btnLength_md&&e.hidebtn(i,"md"),s<=e.end-e.btnLength_sm&&e.hidebtn(i,"sm"),s<=e.end-e.btnLength_xs&&e.hidebtn(i,"xs")),e.page1(s,i)):1==e.curPager?(s!==e.curPager&&(s>e.end-(a-e.btnLength_df)&&e.hidebtn(i,"df"),s>e.end-(a-e.btnLength_md)&&e.hidebtn(i,"md"),s>e.end-(a-e.btnLength_sm)&&e.hidebtn(i,"sm"),s>e.end-(a-e.btnLength_xs)&&e.hidebtn(i,"xs")),e.page1(s,i)):e.pageCount-e.curPager>=e.btnLength-2?(s!==e.curPager&&((s<e.curPager-1||s>
3e.curPager+(e.btnLength_df-2))&&e.hidebtn(i,"df"),(s<e.curPager-1||s>e.curPager+(e.btnLength_md-2))&&e.hidebtn(i,"md"),(s<e.curPager-1||s>e.curPager+(e.btnLength_sm-2))&&e.hidebtn(i,"sm"),(s<e.curPager-1||s>e.curPager+(e.btnLength_xs-2))&&e.hidebtn(i,"xs")),e.page1(s,i)):(s!==e.curPager&&((s<e.start+Math.floor((e.btnLength-e.btnLength_df)/2)||s>e.end-Math.ceil((e.btnLength-e.btnLength_df)/2))&&e.hidebtn(i,"df"),(s<e.start+Math.floor((e.btnLength-e.btnLength_md)/2)||s>e.end-Math.ceil((e.btnLength-e.btnLength_md)/2))&&e.hidebtn(i,"md"),(s<e.start+Math.floor((e.btnLength-e.btnLength_sm)/2)||s>e.end-Math.ceil((e.btnLength-e.btnLength_sm)/2))&&e.hidebtn(i,"sm"),(s<e.start+Math.floor((e.btnLength-e.btnLength_xs)/2)||s>e.end-Math.ceil((e.btnLength-e.btnLength_xs)/2))&&e.hidebtn(i,"xs")),e.page1(s,i)),i.bind("click",function(){e.goPageFn(parseInt($(this).html()))}),e.box.append(i),s==e.pageCount&&(e.listLast=i)}e.showLast&&(e.last.html(e.pageCount),e.curLast?e.lastt||e.curPager+1==e.pageCount?(e.lastAddClass("o_df-hide"),e.curPager+1==e.pageCount&&1==e.btnLength_df&&e.lastAddClass("o_df-show"),e.curPager+1==e.pageCount&&1==e.btnLength_md&&e.lastAddClass("o_md-show"),e.curPager+1==e.pageCount&&1==e.btnLength_sm&&e.lastAddClass("o_sm-show"),e.curPager+1==e.pageCount&&1==e.btnLength_xs&&e.lastAddClass("o_xs-show")):(e.btnLength_df>=e.btnLength?e.lastAddClass("o_df-hide"):e.lastAddClass("o_df-show"),e.btnLength_md<e.btnLength?e.lastAddClass("o_md-show"):e.lastAddClass("o_md-hide"),e.btnLength_sm<e.btnLength?e.lastAddClass("o_sm-show"):e.lastAddClass("o_sm-hide"),e.btnLength_xs<e.btnLength?e.lastAddClass("o_xs-show"):e.lastAddClass("o_xs-hide")):e.curLastone&&e.point.addClass("o_df-hide"),e.last.bind("click",function(){e.goPageFn(parseInt($(this).html()))}),e.box.append(e.point).append(e.last)),e.showJump&&(e.jumpbox.addClass(o.jumpAddClass),e.box.append(e.jumpbox),e.input.on("keyup",function(){$(this).val($(this).val().replace(/[^0-9-]+/,""))}),e.input.on("blur",function(){$(this).val($(this).val().replace(/[^0-9-]+/,"")),$(this).val()>e.pageCount&&$(this).val(e.pageCount)}),e.jumpbtn.on("click",function(){e.input.val()?(e.goPageFn(e.input.val()),e.input.val("")):e.input.focus()})),e.curPager<e.pageCount?(e.box.append(e.next.removeClass("lose")),e.next.on("click",function(){e.goPageFn(e.curPager+1)})):(e.box.append(e.next.addClass("lose")),e.next.unbind("click"))},e.hidebtn=function(t,n){"df"==n?t.addClass("o_df-hide o_md-show o_sm-show o_md-show o_xs-show"):"md"==n?(t.addClass("o_md-hide"),t.removeClass("o_md-show")):"sm"==n?(t.addClass("o_sm-hide"),t.removeClass("o_sm-show")):"xs"==n&&(t.addClass("o_xs-hide"),t.removeClass("o_xs-show"))},e.lastAddClass=function(t){e.last.addClass(t),e.point.addClass(t)},e.page1=function(t,n){1==e.btnLength_df&&t!==e.curPager&&(n.addClass("o_df-hide"),n.removeClass("o_df-show")),1==e.btnLength_md&&t!==e.curPager&&(n.addClass("o_md-hide"),n.removeClass("o_md-show")),1==e.btnLength_sm&&t!==e.curPager&&(n.addClass("o_sm-hide"),n.removeClass("o_sm-show")),1==e.btnLength_xs&&t!==e.curPager&&(n.addClass("o_xs-hide"),n.removeClass("o_xs-show"))},e},$.fn.oScrollLoad=function(t){defaults={df:!0,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,BottomFn:null,TopFn:null,smPoint:oPoint.sm,mdPoint:oPoint.md,lgPoint:oPoint.lg,xlPoint:oPoint.xl},$p=$.extend(defaults,t);var n,o=$(this),e=$p.smPoint,s=$p.mdPoint,i=$p.lgPoint,a=$p.xlPoint,l=$p.df,r=$p.xs,c=$p.sm,p=$p.md,d=$p.lg,h=$p.xl;return o.obj=$(this),o.inner=!o.obj[0].window,o.go=!0,o.stop=!0,o.BottomFn=$p.BottomFn,o.TopFn=$p.TopFn,o.contobj={},o.inner?(o.contbox=$("<div>"),o.cont=o.obj.html(),o.contbox.html(o.cont),o.obj.html("").append(o.contbox),o.contobj=o.contbox):o.contobj=$(".o_body"),o.monitorScroll=function(){o.stop=!1,o.inner?(o.bar=o.contobj.oScrollBar({downFn:function(){o.gotoBottom()},topFn:function(){o.gotoTop()}}),o.bar.init()):o.obj.scroll(function(){var t=o.contobj.height(),n=$(window).height(),e=o.scrollTop();e>=t-n?o.gotoBottom():e<=0&&o.gotoTop()})},o.unbindScroll=function(){o.stop=!0,o.inner?o.bar.lose():o.contobj.off()},o.gotoBottom=function(){o.go&&null!==o.BottomFn&&(o.go=!1,o.BottomFn(),o.inner&&o.bar.init(),setTimeout(function(){o.go=!0},1e3))},o.gotoTop=function(){o.go&&null!==o.TopFn&&(o.go=!1,o.TopFn(),setTimeout(function(){o.go=!0},1e3))},l||r||c||p||d||h||alert("err:oScrollLoad()参数 df/xs/sm/md/lg/xl 必须有一个为true"),o.init=function(){n=$(window).width(),n<=e&&r?o.stop&&o.monitorScroll():n>e&&n<=s&&c?o.stop&&o.monitorScroll():n>s&&n<=i&&p?o.stop&&o.monitorScroll():n>i&&n<=a&&d?o.stop&&o.monitorScroll():n>a&&h?o.stop&&o.monitorScroll():l?o.stop&&o.monitorScroll():o.stop||o.unbindScroll()},o.init(),$(window).resize(function(){o.init()}),o},$.fn.oStyle=function(t){var n,o={sm:oPoint.sm,md:oPoint.md,lg:oPoint.lg,xl:oPoint.xl},e=$.extend(o,t),s=$(this),i=e.sm,a=e.md,l=e.lg,r=e.xl;return s.init=function(){return s.xsStyle=s.attr("xs_style"),s.smStyle=s.attr("sm_style"),s.mdStyle=s.attr("md_style"),s.lgStyle=s.attr("lg_style"),s.xlStyle=s.attr("xl_style"),s.dfStyle=s.attr("df_Style"),s.ie8Style=s.attr("ie8_style")?JSON.parse(s.attr("ie8_style")):void 0,n=$(window).width(),isIe8&&void 0!==s.ie8Style&&""!==s.ie8Style?(s.oCss(s.ie8Style),!1):void(n<=i?void 0===s.xsStyle||""==s.xsStyle?s.oCss(s.dfStyle):s.oCss(s.xsStyle):n>i&&n<=a?void 0===s.smStyle||""==s.smStyle?s.oCss(s.dfStyle):s.oCss(s.smStyle):n>a&&n<=l?void 0===s.mdStyle||""==s.mdStyle?s.oCss(s.dfStyle):s.oCss(s.mdStyle):n>l&&n<=r?void 0===s.lgStyle||""==s.lgStyle?s.oCss(s.dfStyle):s.oCss(s.lgStyle):n>r&&(void 0===s.xlStyle||""==s.xlStyle?s.oCss(s.dfStyle):s.oCss(s.xlStyle)))},$(window).resize(function(){s.init()}),s.init(),s},$.fn.oVideo=function(t){var n,o={sm:oPoint.sm,md:oPoint.md,lg:oPoint.lg,xl:oPoint.xl},e=$.extend(o,t),s={};return s.obj=$(this),s.sm=e.sm,s.md=e.md,s.lg=e.lg,s.xl=e.xl,s.change=function(t,n){t!==s.obj.attr("src")&&s.obj.attr("src",t),n!==s.obj.attr("poster")&&""!==n&&void 0!==n&&s.obj.attr("poster",n)},s.source=s.obj.find("source").eq(0),s.init=function(){return s.xsVideo=s.source.attr("xs"),s.smVideo=s.source.attr("sm"),s.mdVideo=s.source.attr("md"),s.lgVideo=s.source.attr("lg"),s.xlVideo=s.source.attr("xl"),s.dfVideo=s.source.attr("df"),s.ie8Video=s.source.attr("ie8"),s.xsPic=void 0!==s.source.attr("xspic")?s.source.attr("xspic"):"",s.smPic=void 0!==s.source.attr("smpic")?s.source.attr("smpic"):"",s.mdPic=void 0!==s.source.attr("mdpic")?s.source.attr("mdpic"):"",s.lgPic=void 0!==s.source.attr("lgpic")?s.source.attr("lgpic"):"",s.xlPic=void 0!==s.source.attr("xlpic")?s.source.attr("xlpic"):"",s.dfPic=void 0!==s.source.attr("dfpic")?s.source.attr("dfpic"):"",s.ie8Pic=void 0!==s.source.attr("ie8pic")?s.source.attr("ie8pic"):"",s.hasDf=void 0!==s.dfVideo&&""!==s.dfVideo,n=$(window).width(),isIe8&&void 0!==s.ie8Video&&""!==s.ie8Video?(s.change(s.ie8Video,s.ie8Pic),!1):void(n<=s.sm?void 0===s.xsVideo||""===s.xsVideo?s.hasDf&&s.change(s.dfVideo,s.dfPic):s.change(s.xsVideo,s.xsPic):n>s.sm&&n<=s.md?void 0===s.smVideo||""===s.smVideo?s.hasDf&&s.change(s.dfVideo,s.dfPic):s.change(s.smVideo,s.smPic):n>s.md&&n<=s.lg?void 0===s.mdVideo||""===s.mdVideo?s.hasDf&&s.change(s.dfVideo,s.dfPic):s.change(s.mdVideo,s.mdPic):n>s.lg&&n<=s.xl?void 0===s.lgVideo||""===s.lgVideo?s.hasDf&&s.change(s.dfVideo,s.dfPic):s.change(s.lgVideo,s.lgPic):n>s.xl&&(void 0===s.xlVideo||""===s.xlVideo?s.hasDf&&s.change(s.dfVideo,s.dfPic):s.change(s.xlVideo,s.xlPic)))},$(window).resize(function(){s.init()}),s},$.fn.oCutImg=function(t){defaults={imgurl:[],showimg:"",min:50,windowResize:!0,scale:{w:1,h:1}},$p=$.extend(defaults,t);var n,o,e,s,i,a,l,r,c,p,d,h=$(this),u=$p.imgurl,f=$p.min,g=$($p.showimg),m=$("<div class='o_cutimgbox'>"),b=$("<div class='bgbox'>
3"),x=$("<div class='imgbox'>"),v=$("<div class='cutbox'>"),w=$("<div class='box'>"),C=$("<div class='controlbox'>"),y=$("<div class='control'>"),_=$("<div class='resize'>"),F=$("<img>"),j=h.height(),T=h.width(),P=0;h.scale=$p.scale,F.attr("src",u[0]);var L=F.clone(!0);return h.changeImg=function(t){P=0,u=t,F.attr("src",u[0]),L.attr("src",u[0])},h.rotate=function(){P++,P>3&&(P=0),F.attr("src",u[P]),L.attr("src",u[P])},h.calFactory=function(){"width"==c?($colH=o-20,s=$colH/h.scale.h*h.scale.w,s>T&&(s=Math.min(T-20),$colH=s/h.scale.w*h.scale.h)):"height"==c&&(s=e-20,$colH=s/h.scale.w*h.scale.h,$colH>j&&($colH=Math.min(j-20),s=$colH/h.scale.h*h.scale.w))},h.colResize=function(t){},h.reset=function(){F.appendTo(x),x.appendTo(b),L.appendTo(w),w.appendTo(v),_.appendTo(y),y.appendTo(C),m.append(b).append(v).append(C),h.append(m),x.attr("style",""),L.attr("style",""),x.attr("style",""),F.attr("style",""),n=L.height(),e=F.width(),o=F.height(),F.height()>h.height()&&(o=h.height(),x.height(o),F.height(o),L.height(o),e=F.width()),c=e>=o?"width":"height",isIe&&(F.attr("style",""),x.attr("style",""),"height"==c?F.height()>j&&(F.height(j),x.css({height:F.height(),width:"auto"})):"width"==c&&F.width()>T&&(F.width(T),x.css({width:F.width(),height:"auto"})),e=F.width(),o=F.height()),h.calFactory(),i=-Math.round((e-s)/2),a=-Math.round((o-$colH)/2),L.css({width:e,height:o,left:i,top:a}),isIe8?(x.css({width:e,height:o}),v.css({width:e,height:o,"margin-left":-Math.floor(e/2),"margin-top":-Math.floor(o/2)}),C.css({width:e,height:o,"margin-left":-Math.floor(e/2),"margin-top":-Math.floor(o/2)})):(x.css({width:e,height:o}),v.css({width:e,height:o,"margin-left":-Math.round(e/2),"margin-top":-Math.floor(o/2)}),C.css({width:e,height:o,"margin-left":-Math.round(e/2),"margin-top":-Math.floor(o/2)})),l=Math.round((e-s)/2),r=Math.round((o-$colH)/2),y.css({width:s,height:$colH,left:l,top:r}),w.css({width:s,height:$colH,left:l,top:r}),"width"==c?p=o/s:"height"==c&&(p=e/s),g.each(function(){var t=$(this).parent().width(),n=$(this).parent().height(),o=t/s,e=Math.min(t,n/h.scale.h*h.scale.w),i=Math.min(n,t/h.scale.w*h.scale.h);$(this).parent().css({position:"relative",overflow:"hidden","-webkit-transform":"translateZ(0)","-webkit-backface-visiblity":"hidden"}),"width"==c?($(this).parent().css({height:i,width:i/h.scale.h*h.scale.x}),$(this).attr("src",u[P]).css({position:"absolute",height:$(this).parent().width()*p,width:"auto",left:-l*o,top:-r*o})):"height"==c&&($(this).parent().css({height:e/h.scale.w*h.scale.h,width:e}),$(this).attr("src",u[P]).css({position:"absolute",width:$(this).parent().width()*p,height:"auto",left:-l*o,top:-r*o}))})},y.oTouch({touchStart:function(){},touchMove:function(t){var n=l+(t.moveX-t.startX),c=r+(t.moveY-t.startY);n>=0&&n+s<=e?(w.css({left:n+"px"}),y.css({left:n+"px"}),L.css({left:i-(t.moveX-t.startX)+"px"})):n<0?(w.css({left:"0px"}),y.css({left:"0px"}),L.css({left:"0px"})):n+s>e&&(w.css({left:e-s+"px"}),y.css({left:e-s+"px"}),L.css({left:-(e-s)+"px"})),c>=0&&c+$colH<=o?(w.css({top:c+"px"}),y.css({top:c+"px"}),L.css({top:a-(t.moveY-t.startY)+"px"})):c<0?(w.css({top:"0px"}),y.css({top:"0px"}),L.css({top:"0px"})):c+$colH>o&&(w.css({top:o-$colH+"px"}),y.css({top:o-$colH+"px"}),L.css({top:-(o-$colH)+"px"})),g.each(function(){$(this).css({left:L.position().left*($(this).width()/L.width()),top:L.position().top*($(this).width()/L.width())})})},touchEnd:function(t){l=y.position().left,r=y.position().top,i=L.position().left,a=L.position().top},clearE:!0}),_.oTouch({touchStart:function(t){},touchMove:function(t){var n,i,a=t.moveX-t.startX;Math.abs(t.moveX-t.startX)>Math.abs(t.moveY-t.startY)?"width":"height";n=s+a,i=Math.round(n/h.scale.w*h.scale.h),n+l<=e&&i+r<=o&&n>=f?(y.css({width:n,height:i}),w.css({width:n,height:i})):n<f&&(y.css({width:f,height:f/h.scale.w*h.scale.h}),w.css({width:f,height:f/h.scale.w*h.scale.h})),p=e/y.width(),g.each(function(){var t=$(this).parent().width()/y.width();$(this).css({width:$(this).parent().width()*p,height:"auto",left:L.position().left*t,top:L.position().top*t})})},touchEnd:function(){s=y.width(),$colH=y.height()},clearE:!0}),h.init=function(){F.load(function(){h.reset()})},$p.windowResize&&$(window).resize(function(){h.reset()}),h.count=function(t){if(t%h.scale.w==0)return t;var n=t-1;return h.count(n)},h.cut=function(){var t=n/F.height(),o=Math.floor(y.width()*t);return o=h.count(o),d={url:u[P]+"",x:Math.floor(y.position().left*t),y:Math.floor(y.position().top*t),width:o,height:o/h.scale.w*h.scale.h}},h.init(),h};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.