2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
|
|
/**/_jsload2&&_jsload2('oppc', 'var yh=256,zh=32;function Ah(){this.C=p}var Bh;B.Xe(function(a){if(!a.B.dy){var b=new Ah;Bb(a.Ua,b.va(a.B.Xb));b.C=a.Ua.lastChild;a.R.L0=b}}); Ah.prototype.va=function(a){a=[\'<div id=zoomer style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:\'+a+\'">\'];a.push(\'<div class="BMap_zoomer" style="top:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="top:0;right:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;right:0;"></div>\');a.push("</div>");return a.join("")}; Ah.prototype.action=function(a,b){if(!Bh){var c=this.C;if(c){var d=4/3,e=Math.ceil((b?60:120)/2),f=Math.max(15,e/d),g=c.style;g.width=2*e+"px";g.height=2*f+"px";g.visibility="visible";c=c.children;b?(c[0].style.backgroundPosition="0 0",c[1].style.backgroundPosition="-7px 0",c[2].style.backgroundPosition="0 -7px",c[3].style.backgroundPosition="-7px -7px"):(c[0].style.backgroundPosition="-7px -7px",c[1].style.backgroundPosition="0 -7px",c[2].style.backgroundPosition="-7px 0",c[3].style.backgroundPosition= "0 0");var c=p,i=a.x-e,k=a.y-f;if(!isNaN(i)&&!isNaN(k)){g.left=i+"px";g.top=k+"px";var l=Math.ceil((b?120:60)/2),m=Math.max(15,l/d),l=l-e,m=Math.ceil(m-f),n=this.C.style;Bh&&Bh.end();Bh=new ub({Hc:20,duration:240,hc:vb.sD,To:100,va:function(a){if(!(a<0.1)){var b=Math.ceil(l*a),a=Math.ceil(m*a);n.width=(e+b)*2+"px";n.height=(f+a)*2+"px";n.left=i-b+"px";n.top=k-a+"px"}},finish:function(){Bh=q;setTimeout(function(){g.visibility="hidden"},300)}})}}}};B.Xe(function(a){function b(a){if(f.B.$o){var b=new N("ondeepzoommousewheel");c(a,ma(b,a));i.C0.call(i,b);Db(a)}}function c(a,b){var c=a.srcElement||a.target,d=a.offsetX||a.layerX||0,e=a.offsetY||a.layerY||0,g=p,i=p;1!==c.nodeType&&(c=c.parentNode);for(;c&&c!==f.Ua;){c.ba&&(x.lang.Lc(c.ba)instanceof ib&&(g=x.lang.Lc(c.ba)),x.lang.Lc(c.ba)instanceof md&&(i=x.lang.Lc(c.ba)));if(!(0===c.clientWidth&&0===c.clientHeight&&c.offsetParent&&"TD"===c.offsetParent.nodeName)&&"http://www.w3.org/2000/svg"!==c.namespaceURI)d+= c.offsetLeft||0,e+=c.offsetTop||0;else if("http://www.w3.org/2000/svg"===c.namespaceURI&&B.qq){var y=B.qq.bt(f).hf;if(-1<navigator.userAgent.indexOf("Opera")&&"svg"!==c.tagName){if(c=x.lang.Lc(c.ba))c=c.Kd(),d+=f.Cc(c.xe()).x,e+=f.Cc(c.pf()).y;break}if(39<=x.da.Te||51<=x.da.Tw)d=a.layerX||0,e=a.layerY||0;if(y&&!(window.ActiveXObject||"ActiveXObject"in window))d+=parseFloat(y.style.left)+f.offsetX,e+=parseFloat(y.style.top)+f.offsetY;if(y&&((window.ActiveXObject||"ActiveXObject"in window)&&"svg"=== c.nodeName.toLowerCase())&&!c.ba)d+=parseFloat(y.style.left)+f.offsetX,e+=parseFloat(y.style.top)+f.offsetY;if((9<=x.da.ma||-1<navigator.userAgent.toLowerCase().indexOf("trident"))&&"svg"!==c.nodeName.toLowerCase()){d+=f.offsetX;e+=f.offsetY;break}if(!x.da.ma)break}c=c.offsetParent}if((65<=x.da.Tw||60<=x.da.Te)&&"ondeepzoommousewheel"===b.type){d=a.clientX+window.scrollX;e=a.clientY+window.scrollY;for(c=f.Ka();c;)d-=c.offsetLeft,e-=c.offsetTop,c=c.offsetParent}b.offsetX=d;b.offsetY=e;b.pixel=b.Wa= new R(d,e);b.pointN=b.Bg=f.Rb(b.Wa);b.point=b.point=f.Ag(b.Wa);b.overlay=b.cb=g;b.domEvent=a;b.Bb=i;return b}function d(a){var b=f.R,d=!b.ty&&!b.uy;if(b.Ky)clearTimeout(b.Ky),b.Ky=p,d&&(f.dispatchEvent(c(a,ma(new N("onrightclick"),a))),f.Sa|=yh,f.dispatchEvent(c(a,ma(new N("onrightdblclick"),a))),f.Sa^=yh);else{d&&f.dispatchEvent(c(a,ma(new N("onrightclick"),a)));var e=c(a,ma(new N("onrightclickex"),a));b.Ky=setTimeout(function(){b.Ky=p;d&&f.dispatchEvent(e)},f.B.BC)}}function e(a){if(f.B.$o){var b= f.R;b.nb&&(b.nb.stop(),b.nb=p,setTimeout(function(){f.dispatchEvent(new N("onmoveend"))},1));f.Sa|=zh;a=window.event||a;f.Mc=f.Na;b=new N("onmousewheel");b.iq=0<=a.wheelDelta||0>a.detail;var d=new Date;b.iq===o&&f.Na===f.oa().Dm()||b.iq===q&&f.Na===f.oa().hp()||220>d-g?f.Sa^=zh:(g=d,c(a,ma(b,a)),f.dispatchEvent(b),f.Sa^=zh,a.returnValue=q);Db(a)}}var f=a;f.RY=a.Wb();a.Ua.h4=ea(q);x.M(f.platform,"mousemove",function(a){0===f.Sa&&f.dispatchEvent(c(a,ma(new N("onmou
|