function inherit(child, parent)
{
   var tmp = function()
   {
   };
   tmp.prototype = parent.prototype;
   child.prototype = new tmp;
}

function getElement(e)
{
   return(document.getElementById ? document.getElementById(e) : (document.all ? document.all[e] : document.layers[e]))
}

function C(a, b, c, d, e)
{
   var f =
   {
      maxResolution : c, minResolution : 0, tileSize : d, errorMessage : "Out of range", alt : "Show " + e + " imagery"
   }
   ;
   return new GMapType([a], b, e, f)
}

function D(a, b, c, d, e)
{
   var f = new GCopyrightCollection();
   var g = new GLatLngBounds(new GLatLng( - 90, - 180), new GLatLng(90, 180));
   f.addCopyright(new GCopyright(1, g, 0, e + " Images"));
   var h = new a(f, b);
   return C(h, b, c, d, e)
}

function initMap(div, mtypes)
{
   var map = new GMap2(div,
   {
      draggableCursor : 'default', draggingCursor : '-moz-grabbing', mapTypes : mtypes
   }
   );
   map.addControl(new GMapTypeControl());
   map.addControl(new GLargeMapControl());
   map.addControl(new GScaleControl());
   return map
}

function F(a, b, c)
{
   var d = document.createElement(b);
   G(d, c);
   a.appendChild(d);
   return d
}

function G(a, b)
{
   if( ! a)return;
   for(var c in b)
   {
      if(c == "style")
        for(var d in b[c])a.style[d] = b[c][d]; 
     else 
        a[c] = b[c]
   }
}

function Z(a)
{
   var b =
   {
      x : 0, y : 0
   }
   ;
   while(a)
   {
      b.x += a.offsetLeft;
      b.y += a.offsetTop;
      a = a.offsetParent
   }
   return b
}

function H(a, b)
{
   if( ! a)a = window.event;
   var c =
   {
      x : 0, y : 0
   }
   ;
   if(a.pageX)
   {
      c.x = a.pageX;
      c.y = a.pageY
   }
   else
   {
      var d = document.documentElement || document.body;
      c.x = a.clientX + d.scrollLeft;
      c.y = a.clientY + d.scrollTop
   }
   if(b)
   {
      var d = Z(b);
      c.x -= d.x;
      c.y -= d.y
   }
   return c
}

function YMProjection(a)
{
   if( ! a)a = 313;
   var b = this;
   b.Ee = [];
   b.Fe = [];
   b.Ce = [];
   b.De = [];
   var c = a;
   for(var d = 0; d < 19; d ++ )
   {
      var e = Math.round(c / 2);
      b.Ee.push(c / 360);
      b.Fe.push(c / (2 * Math.PI));
      b.Ce.push(new GPoint(e, e));
      b.De.push(Math.round(c));
      c *= 2
   }
}

YMProjection.prototype = new GProjection;
YMProjection.prototype.fromLatLngToPixel = function(a, b)
{
   var c = this;
   var d = c.Ce[b];
   var e = Math.round(d.x + a.lng() * c.Ee[b]);
   var f = Math.min(Math.max(Math.sin(a.lat() * Math.PI / 180), - 0.9999), 0.9999);
   var g = Math.round(d.y + 0.5 * Math.log((1 + f) / (1 - f)) * - c.Fe[b]);
   return new GPoint(e, g)
}
;
YMProjection.prototype.fromPixelToLatLng = function(a, b, c)
{
   var d = this;
   var e = d.Ce[b];
   var f = (a.x - e.x) / d.Ee[b];
   var g = (a.y - e.y) / - d.Fe[b];
   var h = (2 * Math.atan(Math.exp(g)) - Math.PI / 2) / (Math.PI / 180);
   return new GLatLng(h, f, c)
}

YMProjection.prototype.tileCheckRange = function(a, b, c)
{
   var d = this.De[b];
   if(a.y < 0 || a.y * c >= d)
   {
      return false
   }
   if(a.x < 0 || a.x * c >= d)
   {
      var e = Math.floor(d / c);
      a.x = a.x % e;
      if(a.x < 0)
      {
         a.x += e
      }
   }
   return true
}

YMProjection.prototype.getWrapWidth = function(a)
{
   return this.De[a]
}

J = C(G_SATELLITE_MAP.getTileLayers()[0], new YMProjection(), 18, 313, "Satellite");

inherit(Go2MapProjection, YMProjection);

function Go2MapProjection()
{
   var a = 313.089281;
   this.A = [];
   this.B = [];
   for(var b = 0, c = a / 2; b < 19; b ++ , c *= 2)
   {
      this.A.push((256 - c % 256) % 256);
      this.B.push(Math.ceil(c / 128))
   }
   YMProjection.call(this, a)
}

Go2MapProjection.prototype.fromLatLngToPixel = function(a, b)
{
   a = new GLatLng(a.lat() * (0.9901256 + 0.00010871 * a.lat()) + 0.0298866, a.lng());
   var c = YMProjection.prototype.fromLatLngToPixel.call(this, a, b);
   var d = this.A[b];
   return new GPoint(c.x + d, c.y + d)
}

Go2MapProjection.prototype.fromPixelToLatLng = function(a, b, c)
{
   var d = this.A[b];
   a = new GPoint(a.x - d, a.y - d);
   var e = YMProjection.prototype.fromPixelToLatLng.call(this, a, b, c);
   return new GLatLng(e.lat() * (1.0099008 - 0.00010956 * e.lat()) - 0.0293630, e.lng())
}

Go2MapProjection.prototype.tileCheckRange = function(a, b, c)
{
   var d = this.B[b];
   return(a.y >= 0 && a.y <= d && a.x >= 0 && a.x <= d)
}

inherit(YMTileLayer, GTileLayer);
function YMTileLayer(a, b)
{
   this.A = b;
   this.B = 1;
   GTileLayer.call(this, a, 0, 18)
}

YMTileLayer.prototype.getOpacity = function()
{
   return this.B
}

YMTileLayer.prototype.getTileUrl = function(a, b)
{
   var c = Math.ceil(this.A.B[b] / 2);
   var d = a.x - c, e = c - a.y - 1;
   var f = Math.floor(d / 200), g = Math.floor(e / 200);
   if(d < 0)
   {
      f = "M" + ( - f);
      d = "M" + ( - d)
   }
   if(e < 0)
   {
      g = "M" + ( - g);
      e = "M" + ( - e)
   }
   return"http://pic1.go2map.com/seamless/0/174/" + (728 - b) + "/" + f + "/" + g + "/" + d + "_" + e + ".GIF"
}

M = D(YMTileLayer, new Go2MapProjection(), 18, 256, "ChinaMaps");


function LockControl(a)
{
   this.A = a
}

LockControl.prototype = new GControl();
LockControl.prototype.initialize = function(a)
{
   var b = this, c = 0, d = 115;
   var e = F(a.getContainer(), 'div',
   {
      style :
      {
         width : '19px', height : '140px'
      }
   }
   );
   var f = F(e, 'img',
   {
      src : 'lock.png', title : 'Lock/Unlock'
   }
   );
   if(typeof ActiveXObject == 'undefined')
   {
      var g = F(e, 'div',
      {
         style :
         {
            top : '25px', width : '19px', height : '85px', position : 'absolute'
         }
      }
      );
      var h = F(g, 'img',
      {
         src : 'lmc.png'
      }
      );
      var i = F(g, 'img',
      {
         style :
         {
            left : '0px'
         }
         , src : 'slider.png', title : 'Drag the slider to set map opacity'
      }
      );
      b.B = new GDraggableObject(i,
      {
         container : g
      }
      );
      b.B.A = i;
      b.C(b.A.getTileLayers()[0].B * 74);
      GEvent.addListener(b.B, "dragend", function()
      {
         b.A.G(i.offsetTop / 74)
      }
      );
      GEvent.addDomListener(h, "click", function(j)
      {
         if( ! j)j = window.event;
         y = b.C(H(j, h).y);
         b.A.G(y / 74)
      }
      )
   }
   else d = 25;
   var k = F(e, 'img',
   {
      style :
      {
         left : '0px', top : d + 'px', position : 'absolute'
      }
      , src : 'undod.png', title : 'Restore'
   }
   );
   GEvent.addDomListener(f, "click", function()
   {
      c = ( ++ c) % 2;
      f.src = c ? "unlock.png" : "lock.png";
      k.src = c ? "undoe.png" : "undod.png";
      b.A.J()
   }
   );
   GEvent.addDomListener(k, "click", function()
   {
      b.A.K()
   }
   );
   return e
}

LockControl.prototype.getDefaultPosition = function()
{
   return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(7, 37))
}

LockControl.prototype.C = function(a)
{
   a = Math.max(0, Math.min(a, 74));
   this.B.top = a;
   this.B.A.style.top = a + "px";
   return a
}


function O(a)
{
   var b = D(YMTileLayer, M.getProjection(), 18, 256, "ChinaMixed");
   if(typeof ActiveXObject == 'undefined')
     b.getTileLayers()[0].B = a;
     
   b.A = new GLatLng(0, 0);
   b.B = true;
   b.C = new LockControl(b);
   b.D = function(c, d)
   {
      b.E = c;
      c.getContainer().style.backgroundColor = '';
      d.style.display = "block";
      var e = c.getZoom();
      b.H(e);
      b.L = new GMap2(d,
      {
         draggableCursor : 'default', draggingCursor : '-moz-grabbing', mapTypes : [J]
      }
      );
      b.B = false;
      b.L.setCenter(c.getCenter(), e);
      b.B = true
   }
   ;
   b.F = function()
   {
      b.E.getContainer().style.filter = "";
      b.L.getContainer().style.display = "none";
      b.L = null
   }
   ;
   b.G = function(c)
   {
      var d = b.E.getContainer().getElementsByTagName("img");
      b.getTileLayers()[0].B = c;
      for(var e = 0; e < d.length; e ++ )if(d[e].src.match(/go2map\.com/i))d[e].style.opacity = c
   }
   ;
   b.H = function(c)
   {
      if(typeof ActiveXObject == 'undefined')return;
      var d = " progid:DXImageTransform.Microsoft"; var e = d + ".Chroma"; var f = e + "(color=#EDEAE2)";
      f += e + "(color=#6E9BC7)";
      if(c > 7)
      {
         f += e + "(color=#B0D5ED)";
         if(c == 8)
         {
            f += e + "(color=#FFFFFF)";
            f += d + ".BasicImage(invert=1)"
         }
         else if(c == 9)f += e + "(color=#DBC6A6)";
         else f += e + "(color=#98CB7F)"
      }
      else if(c > 4)
      {
         f += e + "(color=#DDB87F)";
         f += e + "(color=#FFDC70)"
      }
      b.E.getContainer().style.filter = f + ";"
   }
   ;
   b.I = function(c)
   {
      return new GLatLng(c.lat() - b.A.lat(), c.lng() - b.A.lng())
   }
   ;
   b.J = function()
   {
      b.B = ! b.B;
      if(b.B)
      {
         var c = b.E.getCenter();
         b.A = new GLatLng(c.lat() - b.cc.lat(), c.lng() - b.cc.lng())
      }
      else b.cc = b.L.getCenter()
   }
   ;
   b.K = function()
   {
      if( ! b.B)
      {
         b.A = new GLatLng(0, 0);
         b.E.setCenter(b.cc)
      }
   }
   ;
   return b
}

P = O(0.5);

	function K_JsLoader(parseHandle)
	{
		this.parseHandle=parseHandle;
	}
	K_JsLoader.prototype.load=function(src)
	{
		if(!this.jsFile)
		{
			this.jsFile=document.createElement("script");
			this.jsFile.type="text/javascript";
			this.jsFile.defer=true;
			document.body.insertBefore(this.jsFile,document.body.firstChild);
			GEvent.bindDom(this.jsFile,"readystatechange",this,this.onReadyStateChange);
			GEvent.bindDom(this.jsFile,"load",this,this.onLoad);
		}
		this.jsFile.src=src;
		this.running=true;
	}
	K_JsLoader.prototype.onLoad=function(e)
	{
		if(window._OLR)
		{
			GEvent.trigger(this,"loaded",K_JsLoader.parseObject(window._OLR));
			if(this.parseHandle)
				this.parseHandle.call(null,window._OLR);
		}
		else
		{
			GEvent.trigger(this,"error");
		}
		window._OLR=null;
		if(!document.all && this.jsFile && this.jsFile.parentNode==document.body)
		{
			this.jsFile.removeAttribute("src");
			document.body.removeChild(this.jsFile);
			delete this.jsFile;
		}
		this.running=false;
	}
	K_JsLoader.parseObject=function(obj)
	{
		return obj;
	}
	K_JsLoader.prototype.onReadyStateChange=function(e)
	{
		if(!this.jsFile || this.jsFile.readyState!="loaded")
		{
			return;
		}
		this.onLoad();
	}
	K_JsLoader.getChild=function(arr,name)
	{
		for(var i=0;i<arr.childNodes.length;i++)
		{
			if(arr.childNodes[i].name==name)
			{
				return arr.childNodes[i];
			}
		}
	}  

inherit(K_51dituProjection, YMProjection);
function K_51dituProjection()
	{   this.imgSize=200;
		this.imgNtuSize=256;}
	K_51dituProjection.prototype=new GProjection(); 
	K_51dituProjection.load=function(latlng)
	{  
		K_51dituProjection.loading=true;
		K_51dituProjection._latlng=[latlng[0],latlng[1]];
		if(!K_51dituProjection.loader)
		{
			K_51dituProjection.loader=new K_JsLoader();
			GEvent.addListener(K_51dituProjection.loader,"loaded",K_51dituProjection.onLoad);
		}
		K_51dituProjection.loader.load("http://www.step1.cn/51ditu/services/NTL.aspx?ps="+latlng[0]+","+latlng[1]+"");
	}
	K_51dituProjection.onLoad=function(points)
	{
		if(points.length==1)
		{
			K_51dituProjection.spLatlng=K_51dituProjection._latlng;
			K_51dituProjection._latlng=null;
			K_51dituProjection.spNtu=points[0];
			GEvent.trigger(K_51dituProjection,"change");
			K_51dituProjection.loading=false;
		}
	}
	K_51dituProjection.LatlngToNtu=function(latlng)
	{
		if(K_51dituProjection.spLatlng)
		{
			if(Math.pow(K_51dituProjection.spLatlng[0]-latlng[0],2)+Math.pow(K_51dituProjection.spLatlng[1]-latlng[1],2)>100000000 && !K_51dituProjection.loading)
			{
				K_51dituProjection.load(latlng);
			}
			return [latlng[0]-K_51dituProjection.spLatlng[0]+K_51dituProjection.spNtu[0],latlng[1]-K_51dituProjection.spLatlng[1]+K_51dituProjection.spNtu[1]];
		}
		else
		{
			if(!K_51dituProjection.loading)
			{
				K_51dituProjection.load(latlng);
			}
			return [latlng[0],latlng[1]];
		}
	}
	K_51dituProjection.NtuToLatlng=function(ntu)
	{
		if(K_51dituProjection.spLatlng)
		{
			if(Math.pow(K_51dituProjection.spLatlng[0]-ntu[0],2)+Math.pow(K_51dituProjection.spLatlng[1]-ntu[1],2)>100000000 && !K_51dituProjection.loading)
			{
				K_51dituProjection.load(ntu);
			}
			return [ntu[0]+K_51dituProjection.spLatlng[0]-K_51dituProjection.spNtu[0],ntu[1]+K_51dituProjection.spLatlng[1]-K_51dituProjection.spNtu[1]];
		}
		else
		{
			if(!K_51dituProjection.loading)
			{
				K_51dituProjection.load(ntu);
			}
			return [ntu[0],ntu[1]];
		}
	}
	K_51dituProjection.get51dituZoom=function(zoom)
	{
		return 17-zoom;
	}
	K_51dituProjection.prototype.fromLatLngToPixel=function(point,zoom)
	{
		var zoomUnits=Math.pow(2,K_51dituProjection.get51dituZoom(zoom))*this.imgNtuSize/this.imgSize;
		var ntu=K_51dituProjection.LatlngToNtu([point.lng()*100000,point.lat()*100000]);
		return new GPoint(ntu[0]/zoomUnits,-ntu[1]/zoomUnits)
	};
	K_51dituProjection.prototype.fromPixelToLatLng=function(point,zoom,flag)
	{
		var zoomUnits=Math.pow(2,K_51dituProjection.get51dituZoom(zoom))*this.imgNtuSize/this.imgSize;
		var latlng=K_51dituProjection.NtuToLatlng([point.x*zoomUnits,-point.y*zoomUnits]);
		return new GLatLng(latlng[1]/parseFloat(100000),latlng[0]/parseFloat(100000),flag)
	};
	K_51dituProjection.prototype.tileCheckRange=function(tile,zoom,tilesize)
	{
		return true;
	};

	K_51dituProjection.prototype.getWrapWidth=function(zoom)
	{
		return Math.pow(2,zoom+8);
	};                                  



inherit(ltTileLayer, GTileLayer);
function ltTileLayer(a, b)
{
   this.A = b;
   this.B = 1;

   	GTileLayer.call(this,new GCopyrightCollection("51ditu.com"),3,17);
 

     this.imgURL=["http://gimg.51ditu.com/"];
 
}

ltTileLayer.prototype.getOpacity = function()
{
   return this.B
}
/*********************51ditutile url   *********************/

	ltTileLayer.prototype.getTileUrl=function(point,zoom)
	{  
		var z=K_51dituProjection.get51dituZoom(zoom);
		var nGrade=parseInt(Math.ceil((12-z)/4));
		var nPreRow=0,nPreCol=0,nPreSize=0;  
		var path="";
		for(var i=0;i<nGrade;i++)
		{
			var nSize=1<<(4*(nGrade-i));
			var nRow =parseInt((point.x-nPreRow*nPreSize)/nSize);
			var nCol =parseInt((-point.y-1-nPreCol*nPreSize)/nSize);
			path+=((nRow>9)?nRow:"0"+nRow)+""+((nCol>9)?nCol:"0"+nCol)+"/";
			nPreRow = nRow;
			nPreCol = nCol;
			nPreSize = nSize;
		}
		var id=(((point.x)&((1<<20)-1))+(((-point.y-1)&((1<<20)-1))*Math.pow(2,20))+(((z)&((1<<8)-1))*Math.pow(2,40)));
		return this.imgURL[(point.x+point.y)%this.imgURL.length]+z+"/"+path+id+".png";
	}
  ltTileLayer.prototype.isPng=function(){return true;}
LINGTU = D(ltTileLayer, new  K_51dituProjection(), 17, 200, "LINGTU");


function MixLingTu(a)
{
   var b = D(ltTileLayer, LINGTU.getProjection(), 18, 200, "MIXED");
   if(typeof ActiveXObject == 'undefined')
     b.getTileLayers()[0].B = a;
     
   b.A = new GLatLng(0, 0);
   b.B = true;
   b.C = new LockControl(b);
   b.D = function(c, d)
   {
      b.E = c;
      c.getContainer().style.backgroundColor = '';
      d.style.display = "block";
      var e = c.getZoom();
      b.H(e);
      b.L = new GMap2(d,
      {
         draggableCursor : 'default', draggingCursor : '-moz-grabbing', mapTypes : [LINGTU]
      }
      );
      b.B = false;
      b.L.setCenter(c.getCenter(), e);
      b.B = true
   }
   ;
   b.F = function()
   {
      b.E.getContainer().style.filter = "";
      b.L.getContainer().style.display = "none";
      b.L = null
   }
   ;
   b.G = function(c)
   {
      var d = b.E.getContainer().getElementsByTagName("img");
      b.getTileLayers()[0].B = c;
      for(var e = 0; e < d.length; e ++ )if(d[e].src.match(/go2map\.com/i))d[e].style.opacity = c
   }
   ;
   b.H = function(c)
   {
      if(typeof ActiveXObject == 'undefined')return;
      var d = " progid:DXImageTransform.Microsoft"; var e = d + ".Chroma";var f = e + "(color=#F3F3FB)";
    f += e + "(color=#EDEEEF)";  f += e + "(color=#EFECE5)"; if(c<7) { f += e + "(color=#E6E6E6)"; f += e + "(color=#DFE0E1)"; }
     if(c>=10)
     	{          f += e + "(color=#E9E4E4)";  
     	}
     
    if(c > 7)
      {
    
         if(c == 8)
         {
            f += e + "(color=#FFFFFF)";
            f += d + ".BasicImage(invert=1)"
         }
         else if(c == 9)f += e + "(color=#DBC6A6)";
         else f += e + "(color=#98CB7F)"
      }
      else if(c > 4)
      {
         f += e + "(color=#DDB87F)";
         f += e + "(color=#FFDC70)"
      } 
      
      b.E.getContainer().style.filter = f + ";"
   }
   ;
   b.I = function(c)
   {
      return new GLatLng(c.lat() - b.A.lat(), c.lng() - b.A.lng())
   }
   ;
   b.J = function()
   {
      b.B = ! b.B;
      if(b.B)
      {
         var c = b.E.getCenter();
         b.A = new GLatLng(c.lat() - b.cc.lat(), c.lng() - b.cc.lng())
      }
      else b.cc = b.L.getCenter()
   }
   ;
   b.K = function()
   {
      if( ! b.B)
      {
         b.A = new GLatLng(0, 0);
         b.E.setCenter(b.cc)
      }
   }
   ;
   return b
}

MIXLT= MixLingTu(0.5);



var map;

function main(fmQJY1, dTkCuDXl2)
{
   if( ! GBrowserIsCompatible())return;
   map = initMap(fmQJY1, [G_NORMAL_MAP,M,LINGTU,MIXLT,P,G_HYBRID_MAP,J]);
   R = M;
   map["\x73\x65\x74\x43\x65\x6e\x74\x65\x72"](new GLatLng(33.901099, 116.391735), 4);
   
 
   	map["\x73\x65\x74\x4d\x61\x70\x54\x79\x70\x65"](P);
   	 var hjcNU3 = map["\x67\x65\x74\x43\x75\x72\x72\x65\x6e\x74\x4d\x61\x70\x54\x79\x70\x65"](), soscu4 = R;
         hjcNU3["\x44"](map, dTkCuDXl2);
      GEvent["\x61\x64\x64\x4c\x69\x73\x74\x65\x6e\x65\x72"](map, "\x6d\x6f\x76\x65", function()
         {
            if(hjcNU3["\x4c"] && hjcNU3["\x42"])
            {
               hjcNU3["\x4c"]["\x73\x65\x74\x43\x65\x6e\x74\x65\x72"](hjcNU3["\x49"](map["\x67\x65\x74\x43\x65\x6e\x74\x65\x72"]()))
            }
         }
         );
         GEvent["\x61\x64\x64\x4c\x69\x73\x74\x65\x6e\x65\x72"](map, "\x7a\x6f\x6f\x6d\x65\x6e\x64", function(hYkJfbGAa5, BPwMMiOe6)
         {
            if(hjcNU3["\x4c"])
            {
               hjcNU3["\x4c"]["\x73\x65\x74\x5a\x6f\x6f\x6d"](BPwMMiOe6);
               hjcNU3["\x48"](BPwMMiOe6)
            }
         }
         );
          if(soscu4 == P)soscu4["\x46"]();
      R = hjcNU3;
     
   GEvent["\x61\x64\x64\x4c\x69\x73\x74\x65\x6e\x65\x72"](map, "\x6d\x61\x70\x74\x79\x70\x65\x63\x68\x61\x6e\x67\x65\x64", function()
   {
      var Ec_7 = map["\x67\x65\x74\x43\x75\x72\x72\x65\x6e\x74\x4d\x61\x70\x54\x79\x70\x65"](), bLQyVW8 = R;
   if(Ec_7["\x43"])
    map["\x61\x64\x64\x43\x6f\x6e\x74\x72\x6f\x6c"](Ec_7["\x43"]);
     if(bLQyVW8["\x43"])
      map["\x72\x65\x6d\x6f\x76\x65\x43\x6f\x6e\x74\x72\x6f\x6c"](bLQyVW8["\x43"]);
      if(Ec_7 == P)
      {
         Ec_7["\x44"](map, dTkCuDXl2);
         GEvent["\x61\x64\x64\x4c\x69\x73\x74\x65\x6e\x65\x72"](map, "\x6d\x6f\x76\x65", function()
         {
            if(Ec_7["\x4c"] && Ec_7["\x42"])
            {
               Ec_7["\x4c"]["\x73\x65\x74\x43\x65\x6e\x74\x65\x72"](Ec_7["\x49"](map["\x67\x65\x74\x43\x65\x6e\x74\x65\x72"]()))
            }
         }
         );
         GEvent["\x61\x64\x64\x4c\x69\x73\x74\x65\x6e\x65\x72"](map, "\x7a\x6f\x6f\x6d\x65\x6e\x64", function(pCyEkQUZZ9, IGlZS10)
         {
            if(Ec_7["\x4c"])
            {
               Ec_7["\x4c"]["\x73\x65\x74\x5a\x6f\x6f\x6d"](IGlZS10);
               Ec_7["\x48"](IGlZS10)
            }
         }
         )
      }
      if(bLQyVW8 == P)bLQyVW8["\x46"]();
      R = Ec_7
   }
   )
}

GEvent["\x61\x64\x64\x44\x6f\x6d\x4c\x69\x73\x74\x65\x6e\x65\x72"](window, "\x6c\x6f\x61\x64", function()
{
   main(getElement('\x6d\x61\x70\x31'), getElement('\x6d\x61\x70\x32'));
  load2() 
}
);


function JSONscriptRequest(PnpS1) {

    this["\x66\x75\x6c\x6c\x55\x72\x6c"] = PnpS1; 

    this["\x6e\x6f\x43\x61\x63\x68\x65\x49\x45"] = '\x26\x6e\x6f\x43\x61\x63\x68\x65\x49\x45\x3d' + (new window["\x44\x61\x74\x65"]())["\x67\x65\x74\x54\x69\x6d\x65"]();
   
    this["\x68\x65\x61\x64\x4c\x6f\x63"] = window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x73\x42\x79\x54\x61\x67\x4e\x61\x6d\x65"]("\x68\x65\x61\x64")["\x69\x74\x65\x6d"](0);
  
    this["\x73\x63\x72\x69\x70\x74\x49\x64"] = '\x59\x4a\x73\x63\x72\x69\x70\x74\x49\x64' + JSONscriptRequest["\x73\x63\x72\x69\x70\x74\x43\x6f\x75\x6e\x74\x65\x72"]++;
}


JSONscriptRequest.scriptCounter = 1;


JSONscriptRequest.prototype.buildScriptTag = function () {

 
    this.scriptObj = document.createElement("script");
    
  
    this.scriptObj.setAttribute("type", "text/javascript");
    this.scriptObj.setAttribute("src", this.fullUrl + this.noCacheIE);
    this.scriptObj.setAttribute("id", this.scriptId);
}
 

JSONscriptRequest.prototype.removeScriptTag = function () {

    this.headLoc.removeChild(this.scriptObj);  
}

JSONscriptRequest.prototype.addScriptTag = function () {

    this.headLoc.appendChild(this.scriptObj);
}

var search_query = null;


function getLocation(LlTz1) {
  if (LlTz1 == null) {
    geocoder = new GClientGeocoder();   
    showGoogleAddress(search_query);   
  }

  var Pr2 = '';
  var lpnHvRo3 = LlTz1["\x67\x65\x6f\x6e\x61\x6d\x65\x73"];
  for (i=0;i< lpnHvRo3["\x6c\x65\x6e\x67\x74\x68"];i++) {
     var Th4 = lpnHvRo3[i];
    
     Pr2 = Pr2 + '\x3c\x61 \x68\x72\x65\x66\x3d\x22\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a\x63\x65\x6e\x74\x65\x72\x28' + Th4["\x6c\x61\x74"] +'\x2c' + Th4["\x6c\x6e\x67"] + '\x29\x3b\x22\x3e' + Th4["\x6e\x61\x6d\x65"] +' \x28\x78\x3d'+ Th4["\x6c\x61\x74"] +'\x2c\x79\x3d'+ Th4["\x6c\x6e\x67"] + '\x29\x3c\x2f\x61\x3e\x3c\x62\x72\x3e';
  }
  if(Pr2!='') {    if(i!=1)
  	  {	 
    window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]("\x72\x65\x73\x75\x6c\x74\x44\x69\x76")["\x73\x74\x79\x6c\x65"]["\x64\x69\x73\x70\x6c\x61\x79"] = "\x62\x6c\x6f\x63\x6b";
    window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]('\x72\x65\x73\x75\x6c\x74\x44\x69\x76\x5f\x63\x6f\x6e\x74\x65\x6e\x74')["\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c"] = Pr2;  }
    center(lpnHvRo3[0]["\x6c\x61\x74"],lpnHvRo3[0]["\x6c\x6e\x67"]); 
  }
  else {   
    geocoder = new GClientGeocoder();   
    showGoogleAddress(search_query);  
  }
}



function center(lat,lng,zoom){
  var point = new GLatLng(lat,lng);
  if(!zoom)
  map.setCenter(point,13);
  else  map.setCenter(point,zoom);
  
   var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(point.x+point.y);
}


function searchLocation(DuT7) 
{    
    search_query = DuT7;
    
    request = '\x68\x74\x74\x70\x3a\x2f\x2f\x77\x73\x2e\x67\x65\x6f\x6e\x61\x6d\x65\x73\x2e\x6f\x72\x67\x2f\x73\x65\x61\x72\x63\x68\x4a\x53\x4f\x4e\x3f\x71\x3d' +  encodeURIComponent(DuT7)  + '\x26\x6d\x61\x78\x52\x6f\x77\x73\x3d\x32\x30\x26\x63\x61\x6c\x6c\x62\x61\x63\x6b\x3d\x67\x65\x74\x4c\x6f\x63\x61\x74\x69\x6f\x6e';

  
    aObj = new JSONscriptRequest(request);

    aObj["\x62\x75\x69\x6c\x64\x53\x63\x72\x69\x70\x74\x54\x61\x67"]();

    aObj["\x61\x64\x64\x53\x63\x72\x69\x70\x74\x54\x61\x67"]();
   
}    	 

function showGoogleAddress(YY8) 
{
    if (geocoder) {
        geocoder["\x67\x65\x74\x4c\x61\x74\x4c\x6e\x67"](
            YY8,
          function(D_hEF9) {
            if (!D_hEF9) {
              window["\x61\x6c\x65\x72\x74"]("\x53\x6f\x72\x72\x79\x2c"+YY8 + " \x6e\x6f\x74 \x66\x6f\x75\x6e\x64\x2c\x74\x72\x79 \x6f\x74\x68\x65\x72 \x77\x6f\x72\x64\x73");
            } 
            else { 
                map["\x73\x65\x74\x43\x65\x6e\x74\x65\x72"](D_hEF9, 13);
            
          var wyFiaHhAX10 = new GMarker(D_hEF9);
              map["\x61\x64\x64\x4f\x76\x65\x72\x6c\x61\x79"](wyFiaHhAX10);
              wyFiaHhAX10["\x6f\x70\x65\x6e\x49\x6e\x66\x6f\x57\x69\x6e\x64\x6f\x77\x48\x74\x6d\x6c"](YY8+D_hEF9["\x78"]+D_hEF9["\x79"]);
            
            }
          }
        );
    }
}
    
    
    
    
  function showdiv(yavzPW11)
{ window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"](yavzPW11)["\x73\x74\x79\x6c\x65"]["\x64\x69\x73\x70\x6c\x61\x79"] = "\x62\x6c\x6f\x63\x6b";}
function hidediv(mdYTWdc12)
{ window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"](mdYTWdc12)["\x73\x74\x79\x6c\x65"]["\x64\x69\x73\x70\x6c\x61\x79"] = "\x6e\x6f\x6e\x65"; }  
    
    
    
   
function startMove(dMOlrnnGG13)
{
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x61\x74\x74\x61\x63\x68\x45\x76\x65\x6e\x74"]("\x6f\x6e\x6d\x6f\x75\x73\x65\x6d\x6f\x76\x65",moveDiv);
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x61\x74\x74\x61\x63\x68\x45\x76\x65\x6e\x74"]("\x6f\x6e\x6d\x6f\x75\x73\x65\x75\x70",endMove);
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x61\x74\x74\x61\x63\x68\x45\x76\x65\x6e\x74"]("\x6f\x6e\x73\x65\x6c\x65\x63\x74\x73\x74\x61\x72\x74",selectNo);
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x6d\x6f\x76\x65\x44\x69\x76"] = dMOlrnnGG13;
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x73\x74\x61\x72\x74\x58"] = event["\x78"];
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x73\x74\x61\x72\x74\x59"] = event["\x79"];
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x6f\x6c\x64\x58"] = dMOlrnnGG13["\x67\x65\x74\x42\x6f\x75\x6e\x64\x69\x6e\x67\x43\x6c\x69\x65\x6e\x74\x52\x65\x63\x74"]()["\x6c\x65\x66\x74"];
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x6f\x6c\x64\x59"] = dMOlrnnGG13["\x67\x65\x74\x42\x6f\x75\x6e\x64\x69\x6e\x67\x43\x6c\x69\x65\x6e\x74\x52\x65\x63\x74"]()["\x74\x6f\x70"];
}
function moveDiv()
{

 var vhoGFXP14 = window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x6d\x6f\x76\x65\x44\x69\x76"];
 if(vhoGFXP14)
 {
  var C15 = window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x6f\x6c\x64\x58"];
  var rNGP16 = window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x6f\x6c\x64\x59"];
  vhoGFXP14["\x73\x74\x79\x6c\x65"]["\x70\x6f\x73\x69\x74\x69\x6f\x6e"] = "\x61\x62\x73\x6f\x6c\x75\x74\x65";
  vhoGFXP14["\x73\x74\x79\x6c\x65"]["\x6c\x65\x66\x74"] = C15 + (event["\x78"]-window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x73\x74\x61\x72\x74\x58"]);
  vhoGFXP14["\x73\x74\x79\x6c\x65"]["\x74\x6f\x70"] = rNGP16 + (event["\x79"]-window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x73\x74\x61\x72\x74\x59"]);
 }

}
function endMove()
{
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x64\x65\x74\x61\x63\x68\x45\x76\x65\x6e\x74"]("\x6f\x6e\x6d\x6f\x75\x73\x65\x6d\x6f\x76\x65",moveDiv);
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x64\x65\x74\x61\x63\x68\x45\x76\x65\x6e\x74"]("\x6f\x6e\x6d\x6f\x75\x73\x65\x75\x70",endMove);
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x64\x65\x74\x61\x63\x68\x45\x76\x65\x6e\x74"]("\x6f\x6e\x73\x65\x6c\x65\x63\x74\x73\x74\x61\x72\x74",selectNo);
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x6d\x6f\x76\x65\x44\x69\x76"] = null;
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x73\x74\x61\x72\x74\x58"] = null;
 window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x73\x74\x61\x72\x74\x59"] = null;
}
function selectNo()
{ return false; }