/*	Copyright:Copyright2006 Sohu.com Inc. All rights reserved.	Author:lijian	LastModified:	*/

	var engineurl = 'http://lspengine4.go2map.com/WebSite/Engine';
	var savemapengine = 'http://lspengine4.go2map.com/MapRendition/Engine';
	var addlabelengine ="http://map.sogou.com/signandreport/searchSignData";
	var detailengine = 'http://key.go2map.com/showdetail/Engine';
	var classlib = 'http://lib.go2map.com/c/';
	var cmoudles='panbone=3.05!!component=3.01!!entiremap=3.0!!zoomin=2.0!!zoomout=2.0!!whereiscenter=3.0!!mypushpin=3.0!!savemap=3.0!!highlight=2.0!!detail=3.0!!bus=3.01!!localsearch=3.0!!ruler=3.0!!panbone=3.01!!addlabel=3.0!!navigation=3.0.htm';
	var MapDataRoot = 'http://pic1.go2map.com/seamless/';
	var VmpDataRoot = 'http://pic1.go2map.com/seamless/';
	var MapImageType = 'GIF';
	var SPInfo = '1,1';
	var UserInfo = ',,';
	var StyleLibraryRoot = "lib/style/";
	var _scroll;
	var _perNum=5;
    var _startFeature,_endFeature;
    var _bustranscity='1421';
	function _splitResult(a,b,c)
	{
		var d=_splitBy(a,b);
		var e=_getItemArrayFromRet(d,c);
		return e;
	}
	function _splitBy( a, b )
	{
		return a.split(b);
	}
	function _getItemArrayFromRet( a, b ) 
	{
		var c;
		var d=[];
		if(a.length<=0) return '';
		for(var i=0;i<a.length;++i ) 
		{
			c=a[i].split( b );
			d[c[0]]=c[1];
		}
		return d;
	}
	var _wls=window.location.search;
	_wls=_wls.replace(/[?]/g,'');
	
	_wls=_splitResult(_wls,"&","=")
	
	var _submitParam="";
	
	if (_wls["debug"])
	{
		if (_wls["debug"]=="go2maplsp")
		{
			_scroll=true;
		}
	}
	
	if (_wls["c"])
	{   
		var _temp=_wls["c"].split(",");
		_submitParam='mapc.coordRecenterTo("'+_temp[0]+'","'+_temp[1]+'","'+_temp[2]+'");';
	}
    
    
	var APPID=1851;	

	function toCityXYAndLevel()
	{    
	     if(typeof(Def_CITY)!='undefined'){
		  var City = Def_CITY.split(",");
	      if(City.length>2) {
		    var CityXY =new Array();
			CityXY[0]=City[0];
			CityXY[1]=City[1];
			recenterToCity(CityXY,City[2]);
		  }
		} 
	 }   
	    		
