function LTNS(){LTNS.info={time:'Thu Dec 4 15:58:21 UTC+0800 2008',version:'1',ov:'1.3 Ver 20070705'};var w=function(j){var k=0,l=0;var z=j.length;var x=new String();var c=-1;var v=0;for(var b=0;b<z;b++){var n=j.charCodeAt(b);n=(n==95)?63:((n==44)?62:((n>=97)?(n-61):((n>=65)?(n-55):(n-48))));l=(l<<6)+n;k+=6;while(k>=8){var m=l>>(k-8);if(v>0){c=(c<<6)+(m&(0x3f));v--;if(v==0){x+=String.fromCharCode(c);};}else{if(m>=224){c=m&(0xf);v=2;}else if(m>=128){c=m&(0x1f);v=1;}else{x+=String.fromCharCode(m);};};l=l-(m<<(k-8));k-=8;};};return x;};var q=[".gif?","/","","_","moveend","move",");","progid:DXImageTransform.Microsoft.Alpha(opacity=","px","error","0","no","absolute","img","v:Image","number"];var i=window;var o=document;function h(j,k){for(var l in k){j[l]=k[l];};}function a(){function s(h,j,k,l){var e=this;e.imageUrl=h;e.bounds=j;e.rotation=-k;e.opacity=(typeof(l)==q[15])?l:1;};s.prototype.initialize=function(h){var e=this;e.map=h;if((e.rotation>5||e.rotation<-5)&&o.all){e.drawElement=o.createElement(q[14]);e.drawElement.style.rotation=e.rotation;}else e.drawElement=o.createElement(q[13]);e.drawElement.style.position=q[12];e.drawElement.style.zIndex=400;e.drawElement.galleryImg=q[11];e.drawElement.src=e.imageUrl;e.setOpacity(e.opacity);LTFunction.setUnSelectable(e.drawElement);e.drawElement.style.border=q[10];e.drawElement.style.padding=q[10];e.drawElement.style.margin=q[10];LTEvent.bind(e.drawElement,q[9],e,e.onerror);e.drawElement.oncontextmenu=LTFunction.falseFunction;};s.prototype.remove=function(){var e=this;e.map=null;};s.prototype.depose=function(){var e=this;var h;while(h=e.listeners.pop()){LTEvent.removeListener(h);};LTEvent.deposeNode(e.drawElement);e.imageUrl=null;e.bounds=null;e.rotation=null;e.opacity=null;e.drawElement=null;e.map=null;};s.prototype.onerror=function(){var e=this;e.drawElement.src=i._LT_ltErrorImgURL;};s.prototype.getObject=function(){var e=this;return e.drawElement;};s.prototype.reDraw=function(h){var e=this;if(!h)return;var j=e.map.getPixelCoord(new LTPoint(e.bounds.Xmin,e.bounds.Ymin));var k=e.map.getPixelCoord(new LTPoint(e.bounds.Xmax,e.bounds.Ymax));e.drawElement.style.left=(j[0]-parseInt(e.map.mapsDiv.style.left))+q[8];e.drawElement.style.top=(k[1]-parseInt(e.map.mapsDiv.style.top))+q[8];e.drawElement.style.width=(k[0]-j[0])+q[8];e.drawElement.style.height=(j[1]-k[1])+q[8];};s.prototype.setOpacity=function(h){var e=this;e.opacity=(typeof(h)==q[15])?h:1;e.drawElement.style.filter=q[7]+(e.opacity*100)+q[6];e.drawElement.style.MozOpacity=e.opacity;};function d(h){var e=this;e.opacity=typeof(h)==q[15]?h:1;e.images=[];e.times=0;e.bIsShow=true;};d.prototype.bind=function(h){var e=this;e.ltmaps=h;e.ltmml=LTEvent.bind(e.ltmaps,q[5],e,e.onMapMove);e.ltmmdl=LTEvent.bind(e.ltmaps,q[4],e,e.onMapMoved);};d.prototype.setOpacity=function(h){var e=this;if(e.opacity==h||h<0||h>1){return;};if(h>=0.1&&e.opacity<0.1&&e.ltmaps){e.opacity=h;e.onMapMove(e.ltmaps.getCenterPoint(),true);};e.opacity=h;for(var j=0;j<e.images.length;j++){e.images[e.images[j]].setOpacity(h);};};d.prototype.hideImages=function(){var e=this;var h=e.images.length;for(var j=h-1;j>=0;j--){e.ltmaps.removeOverLay(e.images[e.images[j]]);e.images[j]=null;e.images.pop();};e.bIsShow=false;};d.prototype.resetImages=function(){var e=this;e.bIsShow=true;e.onMapMove(e.ltmaps.getCenterPoint(),true);};d.prototype.getImageBounds=function(h,j,k){var e=this;var l=[e.imgPixelBounds.Xmin+h*e.ltimgsize,e.imgPixelBounds.Ymin+j*e.ltimgsize];var z=[e.imgPixelBounds.Xmin+(h+1)*e.ltimgsize,e.imgPixelBounds.Ymin+(j+1)*e.ltimgsize];var x=e.ltmaps.getClickLatLng(l);var c=e.ltmaps.getClickLatLng(z);return new LTBounds(x.getLongitude(),c.getLatitude(),c.getLongitude(),x.getLatitude());};d.prototype.onMapMoved=function(){var e=this;if(!e.bIsShow){return;};LTEvent.removeListener(e.ltmmdl);e.hideImages();e.resetImages();e.ltmmdl=LTEvent.bind(e.ltmaps,q[4],e,e.onMapMoved);};d.prototype.onMapMove=function(h,j){var e=this;if(!j){return;};if(!e.bIsShow){return;};e.times++;e.hideImages();e.bIsShow=true;if(e.opacity>=0.1){e.ltzoom=e.ltmaps.getCurrentZoom();var k=e.ltmaps.getBoundsLatLng();e.ltimgsize=200;var l=e.ltmaps.getContainerSize();e.imglatLngBounds=e.ltmaps.imgBounds;var h=e.ltmaps.getPixelCoord([e.imglatLngBounds.Xmin,e.imglatLngBounds.Ymax]);var z=e.ltmaps.getPixelCoord([e.imglatLngBounds.Xmax,e.imglatLngBounds.Ymin]);e.imgPixelBounds=null;e.imgPixelBounds=new LTBounds(h[0],h[1],z[0],z[1]);for(var x=0;x<=Math.ceil((z[0]-h[0])/e.ltimgsize);x++){for(var c=0;c<=Math.ceil((z[1]-h[1])/e.ltimgsize);c++){var v=e.getImageBounds(x,c,e.ltzoom);var b=f((v.Xmax+v.Xmin)/2,(v.Ymax+v.Ymin)/2,e.ltzoom);var n=q[3]+b[0]+q[3]+b[1]+q[3]+e.ltzoom;if(e.images[n]){e.ltmaps.removeOverLay(e.images[n]);e.images[e.images[n]]=null;};var m=g(b,e.ltzoom);e.images[n]=new s(m,v,null,e.opacity);e.images[n].times=e.times;e.ltmaps.addOverLay(e.images[n]);e.images.push(n);};};};for(var x=0;x<e.images.length;x++){if(e.images[e.images[x]].times!=e.times){e.ltmaps.removeOverLay(e.images[e.images[x]]);e.images[e.images[x]]=null;e.images.splice(x,1);x--;};};};f=function(h,j,k){var l=h>>(k+8);var z=j>>(k+8);return[l,z];};g=function(h,j){var k=parseInt(Math.ceil((12-j)/4));var l=0,z=0,x=0;var c=q[2];for(var v=0;v<k;v++){var b=1<<(4*(k-v));var n=parseInt((h[0]-l*x)/b);var m=parseInt((h[1]-z*x)/b);c+=((n>9)?n:q[10]+n)+q[2]+((m>9)?m:q[10]+m)+q[1];l=n;z=m;x=b;};var _=(((h[0])&((1<<20)-1))+(((h[1])&((1<<20)-1))*Math.pow(2,20))+(((j)&((1<<8)-1))*Math.pow(2,40)));var Q=new Date();var W=Q.getDate()+q[2]+Q.getHours()+q[2]+Math.round(Q.getMinutes()/2);return i._LT_lt1039imgURL+q[1]+j+q[1]+c+_+q[0]+W;};i.ITS_Images2LTMaps=d;i.ITS_ImageOverlay=s;};function s(h,j,k,l){var e=this;e.imageUrl=h;e.bounds=j;e.rotation=-k;e.opacity=(typeof(l)==q[15])?l:1;};h(s.prototype,{initialize:function(h){var e=this;e.map=h;if((e.rotation>5||e.rotation<-5)&&o.all){e.drawElement=o.createElement(q[14]);e.drawElement.style.rotation=e.rotation;}else e.drawElement=o.createElement(q[13]);e.drawElement.style.position=q[12];e.drawElement.style.zIndex=400;e.drawElement.galleryImg=q[11];e.drawElement.src=e.imageUrl;e.setOpacity(e.opacity);LTFunction.setUnSelectable(e.drawElement);e.drawElement.style.border=q[10];e.drawElement.style.padding=q[10];e.drawElement.style.margin=q[10];LTEvent.bind(e.drawElement,q[9],e,e.onerror);e.drawElement.oncontextmenu=LTFunction.falseFunction;},remove:function(){var e=this;e.map=null;},depose:function(){var e=this;var h;while(h=e.listeners.pop()){LTEvent.removeListener(h);};LTEvent.deposeNode(e.drawElement);e.imageUrl=null;e.bounds=null;e.rotation=null;e.opacity=null;e.drawElement=null;e.map=null;},onerror:function(){var e=this;e.drawElement.src=i._LT_ltErrorImgURL;},getObject:function(){var e=this;return e.drawElement;},reDraw:function(h){var e=this;if(!h)return;var j=e.map.getPixelCoord(new LTPoint(e.bounds.Xmin,e.bounds.Ymin));var k=e.map.getPixelCoord(new LTPoint(e.bounds.Xmax,e.bounds.Ymax));e.drawElement.style.left=(j[0]-parseInt(e.map.mapsDiv.style.left))+q[8];e.drawElement.style.top=(k[1]-parseInt(e.map.mapsDiv.style.top))+q[8];e.drawElement.style.width=(k[0]-j[0])+q[8];e.drawElement.style.height=(j[1]-k[1])+q[8];},setOpacity:function(h){var e=this;e.opacity=(typeof(h)==q[15])?h:1;e.drawElement.style.filter=q[7]+(e.opacity*100)+q[6];e.drawElement.style.MozOpacity=e.opacity;}});function d(h){var e=this;e.opacity=typeof(h)==q[15]?h:1;e.images=[];e.times=0;e.bIsShow=true;};h(d.prototype,{bind:function(h){var e=this;e.ltmaps=h;e.ltmml=LTEvent.bind(e.ltmaps,q[5],e,e.onMapMove);e.ltmmdl=LTEvent.bind(e.ltmaps,q[4],e,e.onMapMoved);},setOpacity:function(h){var e=this;if(e.opacity==h||h<0||h>1){return;};if(h>=0.1&&e.opacity<0.1&&e.ltmaps){e.opacity=h;e.onMapMove(e.ltmaps.getCenterPoint(),true);};e.opacity=h;for(var j=0;j<e.images.length;j++){e.images[e.images[j]].setOpacity(h);};},hideImages:function(){var e=this;var h=e.images.length;for(var j=h-1;j>=0;j--){e.ltmaps.removeOverLay(e.images[e.images[j]]);e.images[j]=null;e.images.pop();};e.bIsShow=false;},resetImages:function(){var e=this;e.bIsShow=true;e.onMapMove(e.ltmaps.getCenterPoint(),true);},getImageBounds:function(h,j,k){var e=this;var l=[e.imgPixelBounds.Xmin+h*e.ltimgsize,e.imgPixelBounds.Ymin+j*e.ltimgsize];var z=[e.imgPixelBounds.Xmin+(h+1)*e.ltimgsize,e.imgPixelBounds.Ymin+(j+1)*e.ltimgsize];var x=e.ltmaps.getClickLatLng(l);var c=e.ltmaps.getClickLatLng(z);return new LTBounds(x.getLongitude(),c.getLatitude(),c.getLongitude(),x.getLatitude());},onMapMoved:function(){var e=this;if(!e.bIsShow){return;};LTEvent.removeListener(e.ltmmdl);e.hideImages();e.resetImages();e.ltmmdl=LTEvent.bind(e.ltmaps,q[4],e,e.onMapMoved);},onMapMove:function(h,j){var e=this;if(!j){return;};if(!e.bIsShow){return;};e.times++;e.hideImages();e.bIsShow=true;if(e.opacity>=0.1){e.ltzoom=e.ltmaps.getCurrentZoom();var k=e.ltmaps.getBoundsLatLng();e.ltimgsize=200;var l=e.ltmaps.getContainerSize();e.imglatLngBounds=e.ltmaps.imgBounds;var h=e.ltmaps.getPixelCoord([e.imglatLngBounds.Xmin,e.imglatLngBounds.Ymax]);var z=e.ltmaps.getPixelCoord([e.imglatLngBounds.Xmax,e.imglatLngBounds.Ymin]);e.imgPixelBounds=null;e.imgPixelBounds=new LTBounds(h[0],h[1],z[0],z[1]);for(var x=0;x<=Math.ceil((z[0]-h[0])/e.ltimgsize);x++){for(var c=0;c<=Math.ceil((z[1]-h[1])/e.ltimgsize);c++){var v=e.getImageBounds(x,c,e.ltzoom);var b=f((v.Xmax+v.Xmin)/2,(v.Ymax+v.Ymin)/2,e.ltzoom);var n=q[3]+b[0]+q[3]+b[1]+q[3]+e.ltzoom;if(e.images[n]){e.ltmaps.removeOverLay(e.images[n]);e.images[e.images[n]]=null;};var m=g(b,e.ltzoom);e.images[n]=new s(m,v,null,e.opacity);e.images[n].times=e.times;e.ltmaps.addOverLay(e.images[n]);e.images.push(n);};};};for(var x=0;x<e.images.length;x++){if(e.images[e.images[x]].times!=e.times){e.ltmaps.removeOverLay(e.images[e.images[x]]);e.images[e.images[x]]=null;e.images.splice(x,1);x--;};};}});function f(h,j,k){var l=h>>(k+8);var z=j>>(k+8);return[l,z];};function g(h,j){var k=parseInt(Math.ceil((12-j)/4));var l=0,z=0,x=0;var c=q[2];for(var v=0;v<k;v++){var b=1<<(4*(k-v));var n=parseInt((h[0]-l*x)/b);var m=parseInt((h[1]-z*x)/b);c+=((n>9)?n:q[10]+n)+q[2]+((m>9)?m:q[10]+m)+q[1];l=n;z=m;x=b;};var _=(((h[0])&((1<<20)-1))+(((h[1])&((1<<20)-1))*Math.pow(2,20))+(((j)&((1<<8)-1))*Math.pow(2,40)));var Q=new Date();var W=Q.getDate()+q[2]+Q.getHours()+q[2]+Math.round(Q.getMinutes()/2);return i._LT_lt1039imgURL+q[1]+j+q[1]+c+_+q[0]+W;};h(d,{getGridNumber:f,getTileUrl:g});var p=function(a){var s=o.getElementsByTagName(w("SsDoQN1q"));var d=new RegExp(a,"i");for(var f=0;f<s.length;f++){var g=s[f];if(g.src&&d.test(g.src)){break;};};return!o.all||f<s.length;};if(!p(w("NbnpAYXeT7HmA3ywSoa_EYylAJyeFpfRN7TTArmkAIenC3CvQNHpN2vZRsqlQdClILHJJtPbScnXUMLoN2vgSrnpAYG")))return false;h(i,{ITSOverLayer:a,ITS_ImageOverlay:s,ITS_Images2LTMaps:d})};LTNS();
