var blcok_switchCityBox = null;
//点击首页进出深圳栏目页签下的“出发城市”、“到达城市”，调用此方法查询对应的城市信息
function showSwitchCityBoxBlockParent(rootpath,switchFlag){
	
    blcok_switchCityBox = new MapSwitchCityBoxBlock("路况详细信息",null,switchFlag);
    var divSwitch_weather=document.getElementById("divSwitch_block");
    if( divSwitch_weather!=null ){
        divSwitch_weather.innerHTML=blcok_switchCityBox.get( );
        divSwitch_weather.style.display='block';
        var o = divSwitch_weather.style; 
	    var iWidth = divSwitch_weather.clientWidth;
	    var iHeight = divSwitch_weather.clientHeight;
	    //解决了在火狐浏览器下弹出窗口居中显示问题
	    var iTop = ((window.screen.availHeight - 20 - iHeight) / 2)+600;
	    var iLeft = ((window.screen.availWidth - 10 - iWidth) / 2)+200;
	    o.top = iTop+'px';
	    o.left = iLeft+'px';
    }
    
}

function closeSwitchSubwayBox_block(){
    var divSwitch_block=document.getElementById('divSwitch_block');
    if(divSwitch_block!=null){
    	divSwitch_block.style.display='none';
    }
    return false;
}
