IMPORTED_CLASSES=new Array();
JS_SERVER='';
XML_SERVER='';

//切换城市盒子
function MapSwitchCityBox(showName,rootpath)
{
  this.iCurrentCityCode = 0;
  this.strCurrentCityName = '';
  this.fCenterLng = 0.0;
  this.fCenterLat = 0.0;
  this.bgWidth = window.screen.availWidth - 21;
  this.bgHeight = window.screen.availHeight - 100;
  
  if(typeof(rootpath) == "undefined"){
	  rootpath = rootpath_js+"/jsp/index/index_jcsz/MapSwitchCity/SelectCity.jsp";
  }

  this.innerHTML = '<div id="divSwitchCityContent" style="background-color:White;position: absolute;height: 340px;width: 350px;z-index: 1000;border-style:solid;border-width:1px;border-color:Black;border:#3CBDFF solid 1px;">'
                   + '<table class="tbWindowTitle">'
                   + '<tr valign="top">'
                   + '<td class="tdWindowTitleLeft" style="border-left:solid 0px black;">&nbsp; &nbsp;<font color=white>'+showName+'</font></td>'
                   + '<td class="tdWindowTitleRight" style="border-left:solid 0px black;">'
                   + '<span class="spanClose" onclick="closeSwitchCityBox()">关闭</span>&nbsp; &nbsp;'
                   + '</td></tr></table>'
                   + '<iframe id="ifrSwitchCity" width="350px" height="320px" frameborder="0" scrolling="no" src="'+ rootpath +'"></iframe>'
                   + '</div>';                  
  this.get = function( )
  {
    return this.innerHTML;
  }
    
  this.getCurrentCityCode = function( )
  {
    return this.iCurrentCityCode;
  }
  this.getCurrentCityName = function( )
  {
    return this.strCurrentCityName;
  }
  this.getCenterLng= function(  )
  {
    return this.fCenterLng;
  }
  this.getCenterLat= function(  )
  {
    return this.fCenterLat;
  }
  
  this.setCurrentCityCode = function(iCode)
  {
    this.iCurrentCityCode = iCode;
  }

  this.setCurrentCityName = function( strName )
  {
      this.strCurrentCityName = strName;
  }
    
  this.setCurrentCity = function(iCityID, strCityName)
  {
    this.iCurrentCityCode = iCityID;
    this.strCurrentCityName = strCityName;
  }
  
  this.setCenterLngLat = function( fLng, fLat )
  {
    this.fCenterLng = fLng;
    this.fCenterLat = fLat;
  }
}
