var city = {
    citylist: [{
        cName: "北京",
        eName: "beijing",
        latter: "A-G",
        hot: true,
        id: 45700
    }, {
        cName: "上海",
        eName: "shanghai",
        latter: "M-T",
        hot: true,
        id: 86726
    }, {
        cName: "天津",
        eName: "tianjin",
        latter: "M-T",
        hot: true,
        id: 45701
    }, {
        cName: "大连",
        eName: "dalian",
        latter: "A-G",
        hot: true,
        id: 86704
    }, {
        cName: "杭州",
        eName: "hangzhou",
        latter: "H-L",
        hot: true,
        id: 88224
    }, {
        cName: "南京",
        eName: "nanjing",
        latter: "M-T",
        hot: true,
        id: 88213
    }, {
        cName: "重庆",
        eName: "chongqing",
        latter: "A-G",
        hot: true,
        id: 89601
    }, {
        cName: "西安",
        eName: "xian",
        latter: "W-Z",
        hot: true,
        id: 89693
    }, {
        cName: "成都",
        eName: "chengdu",
        latter: "A-G",
        hot: true,
        id: 89651
    }, {
        cName: "济南",
        eName: "jinan",
        latter: "H-L",
        hot: true,
        id: 88445
    }, {
        cName: "武汉",
        eName: "wuhan",
        latter: "W-Z",
        hot: true,
        id: 88457
    }, {
        cName: "郑州",
        eName: "zhengzhou",
        latter: "W-Z",
        hot: true,
        id: 88428
    }, {
        cName: "广州",
        eName: "guangzhou",
        latter: "A-G",
        hot: true,
        id: 89582
    }, {
        cName: "珠海",
        eName: "zhuhai",
        latter: "W-Z",
        hot: true,
        id: 89579
    }, {
        cName: "深圳",
        eName: "shenzhen",
        latter: "M-T",
        hot: true,
        id: 89580
    }, {
        cName: "沈阳",
        eName: "shenyang",
        latter: "M-T",
        hot: true,
        id: 86705
    }, {
        cName: "昆明",
        eName: "kunming",
        latter: "H-L",
        hot: true,
        id: 89676
    }, {
        cName: "桂林",
        eName: "guilin",
        latter: "A-G",
        hot: true,
        id: 89591
    }, {
        cName: "青岛",
        eName: "qingdao",
        latter: "M-T",
        hot: true,
        id: 88444
    }, {
        cName: "威海",
        eName: "weihai",
        latter: "W-Z",
        hot: true,
        id: 88436
    }, {
        cName: "长沙",
        eName: "changsha",
        latter: "A-G",
        hot: true,
        id: 89563
    }, {
        cName: "苏州",
        eName: "suzhou",
        latter: "M-T",
        hot: true,
        id: 88209
    }, {
        cName: "长春",
        eName: "changchun",
        latter: "A-G",
        hot: true,
        id: 86713
    }, {
        cName: "锦州",
        eName: "jinzhous",
        latter: "H-L",
        hot: true,
        id: 66434
    }, {
        cName: "无锡",
        eName: "wuxi",
        latter: "W-Z",
        hot: true,
        id: 88212
    }, {
        cName: "厦门",
        eName: "xiamen",
        latter: "W-Z",
        hot: true,
        id: 88400
    }, {
        cName: "三亚",
        eName: "sanya",
        latter: "M-T",
        hot: true,
        id: 89599
    }, {
        cName: "福州",
        eName: "fuzhou",
        latter: "A-G",
        hot: true,
        id: 88401
    }
    , {
        cName: "哈尔滨",
        eName: "haerbin",
        latter: "H-L",
        hot: true,
        id: 88200
    }
    , {
        cName: "宁波",
        eName: "ningbo",
        latter: "M-T",
        hot: true,
        id: 88223
    }
	, {
	    cName: "全国",
	    eName: "quanguo",
	    latter: "M-T",
	    hot: true,
	    id: 2
}]
};
function getCityCName(A) {
	var B = "";
	$.each(city.citylist, function(C) {
		if (this.eName == A) {
			B = this.cName;
			return false
		}
	});
	if (B == "") {
		B = "全国"
	}
	return B
}
function getCityId(A) {
	var B = "";
	$.each(city.citylist, function(C) {
		if (this.eName == A) {
			B = this.id;
			return false
		}
	});
	return B
}
function IsCityCode(A) {
	var B = "";
	$.each(city.citylist, function(C) {
		if (this.eName == A) {
			B = this.cName
		}
	});
	return B
}
function getCityEName(B) {
	var A = "";
	$.each(city.citylist, function(C) {
		if (this.cName.indexOf(B) != -1) {
			A = this.eName;
			return false
		}
	});
	if (B == "") {
		B = "quanguo"
	}
	return A
}
function goToCity() {
	var A = $("#seCity").val();
	top.location.href = "/" + A + "/"
}
function addCity(B) {
	var A = [];
	$.each(city.citylist, function() {
		if (B == this.parentId) {
			A.push("<option value='" + this.eName + "'>" + this.cName
					+ "</option>")
		}
	});
	A = A.join("");
	$("#seCity").empty().append(A)
};
