﻿IMPORTED_CLASSES=new Array();
JS_SERVER='/maps/';
XML_SERVER='/maps/';
JS_SERVER='/maps/';
XML_SERVER='/maps/';

	
//切换城市盒子
function MapSwitchCityBox( )
{
  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;
  
  this.bgWidth = document.body.clientWidth > window.screen.availWidth ? document.body.clientWidth : window.screen.availWidth;
  this.bgHeight = document.body.clientHeight > window.screen.availHeight ? document.body.clientHeight : window.screen.availHeight;
  

//  this.innerHTML = '<div id="divSwitchCityBg" style="width:'
//                   + this.bgWidth
//                   + 'px;height:'
//                   + this.bgHeight
//                   + 'px"></div>'
    this.innerHTML = '<div id="divSwitchCityContent">'
                   + '<table class="tbWindowTitle" style="background-image:url(/Img/co/switch city/city_bg.gif);">'
                   + '<tr valign="top">'
                   + '<td class="tdWindowTitleLeft" style="border-left:solid 0px black;">&nbsp; &nbsp;切换城市</td>'
                   + '<td class="tdWindowTitleRight" style="border-left:solid 0px black;">'
                   + '<span class="spanClose" onclick="closeSwitchCityBox()">关闭 </span>&nbsp; &nbsp;'
                   + '</td></tr></table>'
                   + '<iframe id="ifrSwitchCity" frameborder="0" src="/Maps/MapSwitchCity/SelectCity.htm"></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;
  }
}
