jQuery.extend(Array.prototype, {
	remove : function(item) {
		var array = this.clone();
		this.length = 0;
		for ( var i = 0; i < array.length; i++) {
			if (array[i].id != item)
				this.push(array[i]);
		}
		return this;
	},
	has : function(item) {
		for ( var i = 0; i < this.length; i++) {
			if (this[i] == item)
				return true;
			if (typeof item == "object" && this[i].id == item.id)
				return true;
		}
		return false;
	},
	GetFather : function(item) {
		for ( var i = 0; i < this.length; i++) {
			if (this[i].parObj == null)
				continue;
			if (this[i].parObj.id == item.id)
				return true;
			if (typeof item == "object" && this[i].id == item.id)
				return true;
		}
		return false;
	},
	findById : function(id) {
		for ( var i = 0; i < this.length; i++) {
			if (this[i].id == id)
				return this[i];
		}
		return null;
	},
	clear : function() {
		this.length = 0;
		return this;
	},
	clone : function() {
		return [].concat(this);
	}
});
var requestFromStr = {
	QueryString : function(Str, val) {
		var uri = Str.substring(0, 1) == "?" ? Str : "?" + Str;
		var re = new RegExp("[&?]" + val + "=([^&?]*)", "ig");
		return ((uri.match(re)) ? (uri.match(re)[0].substr(val.length + 2))
				: "");
	}
};
function locConverter(locIDs) {
	var arrLoc = locIDs.split(",");
	var temp = [];
	for ( var i = 0; i < arrLoc.length; i++) {
		temp.push(ConverterLoc(arrLoc[i]));
	}
	return temp;
}
function traversal(id, items) {
	var p = items.findById(id);
	if (p != null) {
		return {
			id :p.id,
			name :p.name,
			parObj :null
		};
	} else {
		var subItems, c;
		for ( var i = 0; i < items.length; i++) {
			p = items[i];
			c = p.subItems.findById(id);
			if (c != null)
				return {
					id :c.id,
					name :c.name,
					parObj : {
						id :p.id,
						name :p.name,
						parObj :null
					}
				};
		}
	}
	return null;
}
function dbcToSbc(str) {
	return str.replace(/（/g, "(").replace(/）/g, ")");
}
var PopupSelector = {
	loadSelected : function(url) {
		var temp = [];
		var selCatParentIDs = requestFromStr
				.QueryString(url, "occParentIDList");
		if (selCatParentIDs.indexOf(",") > 0)
			selCatParentIDs = selCatParentIDs.split(",");
		else {
			selCatParentIDs = selCatParentIDs.replace(/%2C/g, "%2c");
			selCatParentIDs = selCatParentIDs.split("%2c");
		}
		var selCatIDs = requestFromStr.QueryString(url, "occIDList");
		if (selCatIDs.indexOf(",") > 0)
			selCatIDs = selCatIDs.split(",");
		else {
			selCatIDs = selCatIDs.replace(/%2C/g, "%2c");
			selCatIDs = selCatIDs.split("%2c");
		}
		var addCatID = requestFromStr.QueryString(url, "addOccIDList");
		if (addCatID != "") {
			selCatIDs.clear();
			selCatIDs[0] = addCatID;
		}
		this._selItems["cat"].clear();
		var allCats = getCat();
		if (addCatID != "" || selCatParentIDs == "") {
			var catItem;
			for ( var i = 0; i < selCatIDs.length; i++) {
				catItem = traversal(selCatIDs[i], allCats);
				if (catItem != null) {
					this._selItems["cat"].push(catItem);
					temp.push(catItem.name);
				}
			}
		}
		if (selCatIDs.length > 0 && selCatIDs[0] != "" && selCatParentIDs != ""
				&& addCatID == "") {
			for ( var i = 0; i < selCatParentIDs.length; i++) {
				if (selCatParentIDs[i] == selCatIDs[i]) {
					if (selCatIDs[i] != 255) {
						var catItem = allCats.findById(selCatIDs[i]);
						this._selItems["cat"].push( {
							id :catItem.id,
							name :catItem.name,
							parObj :null
						});
						temp.push(catItem.name);
					}
				} else {
					var parCatItem = allCats.findById(selCatParentIDs[i]);
					var subCatItem = parCatItem.subItems.findById(selCatIDs[i]);
					this._selItems["cat"].push( {
						id :subCatItem.id,
						name :subCatItem.name,
						parObj : {
							id :parCatItem.id,
							name :parCatItem.name,
							parObj :null
						}
					});
					temp.push(subCatItem.name);
				}
			}
		}
		if (temp.length != 0) {
			$("#txtCat").removeClass("inp_txt inp_txtsel inp_wl inp_cue");
			$("#txtCat").addClass("inp_txt inp_txtsel inp_wl");
			$("#txtCat").val(temp.join("+"));
		} else {
			$("#txtCat").removeClass("inp_txt inp_txtsel inp_wl");
			$("#txtCat").addClass("inp_txt inp_txtsel inp_wl inp_cue");
			$("#txtCat").val("请选择职业类别");
		}
		temp.length = 0;
		var selLocParentIDs = requestFromStr.QueryString(url,
				"myLocParentIDList");
		selLocParentIDs = locConverter(selLocParentIDs.replace(/%2C/g, "%2c")
				.replace(/%2c/g, ","));
		var selLocIDs = requestFromStr.QueryString(url, "myLocIDList");
		selLocIDs = locConverter(selLocIDs.replace(/%2C/g, "%2c").replace(
				/%2c/g, ","));
		var addLocID = requestFromStr.QueryString(url, "addLocIDList");
		if (addLocID != "") {
			selLocIDs.clear();
			selLocIDs[0] = addLocID;
		}
		this._selItems["loc"].clear();
		var allLocs = getLoc();
		if (addLocID != "" || selLocParentIDs == "") {
			var locItem;
			for ( var i = 0; i < selLocIDs.length; i++) {
				locItem = traversal(selLocIDs[i], allLocs);
				if (locItem != null) {
					this._selItems["loc"].push(locItem);
					temp.push(locItem.name);
				}
			}
		}
		if (selLocIDs.length > 0 && selLocIDs[0] != "" && selLocParentIDs != ""
				&& addLocID == "") {
			for ( var i = 0; i < selLocParentIDs.length; i++) {
				if (selLocParentIDs[i] == selLocIDs[i]) {
					if (selLocIDs[i] != 255) {
						var locItem = allLocs.findById(selLocIDs[i]);
						this._selItems["loc"].push( {
							id :locItem.id,
							name :locItem.name,
							parObj :null
						});
						temp.push(locItem.name);
					}
				} else {
					if (selLocParentIDs[i] != "-1") {
						var parLocItem = allLocs.findById(selLocParentIDs[i]);
						var subLocItem = parLocItem.subItems
								.findById(selLocIDs[i]);
						this._selItems["loc"].push( {
							id :subLocItem.id,
							name :subLocItem.name,
							parObj : {
								id :parLocItem.id,
								name :parLocItem.name,
								parObj :null
							}
						});
						temp.push(subLocItem.name);
					} else {
						locItem = traversal(selLocIDs[i], allLocs);
						if (locItem != null) {
							this._selItems["loc"].push(locItem);
							temp.push(locItem.name);
						}
					}
				}
			}
		}
		if (temp.length != 0) {
			$("#txtLoc").removeClass("inp_txt inp_txtsel inp_wm inp_cue");
			$("#txtLoc").addClass("inp_txt inp_txtsel inp_wm");
			$("#txtLoc").val(temp.join("+"));
		} else {
			$("#txtLoc").removeClass("inp_txt inp_txtsel inp_wm");
			$("#txtLoc").addClass("inp_txt inp_txtsel inp_wm inp_cue");
			$("#txtLoc").val("请选择工作地点");
		}
		temp.length = 0;
		var selIndIDs = requestFromStr.QueryString(url, "indIDList");
		selIndIDs = ConverterInd(
				selIndIDs.replace(/%2C/g, "%2c").replace(/%2c/g, ",")).split(
				",");
		var addIndID = requestFromStr.QueryString(url, "addIndIDList");
		var allInds = getInd();
		var addIndItem = allInds.findById(addIndID);
		this._selItems["ind"].clear();
		if (addIndItem != null) {
			this._selItems["ind"].push( {
				id :addIndItem.id,
				name :addIndItem.name,
				parObj :null
			});
			temp.push(addIndItem.name);
		}
		if (selIndIDs.length > 0 && selIndIDs[0] != "" && addIndItem == null) {
			for ( var i = 0; i < selIndIDs.length; i++) {
				if (selIndIDs[i] != 255) {
					var indItem = allInds.findById(selIndIDs[i]);
					if (indItem == null)
						continue;
					this._selItems["ind"].push( {
						id :indItem.id,
						name :indItem.name,
						parObj :null
					});
					temp.push(indItem.name);
				}
			}
		}
		if (temp.length != 0) {
			$("#txtInd").removeClass("inp_txt inp_txtsel inp_wm  inp_cue");
			$("#txtInd").addClass("inp_txt inp_txtsel inp_wm");
			$("#txtInd").val(temp.join("+"));
		} else {
			$("#txtInd").removeClass("inp_txt inp_txtsel inp_wm");
			$("#txtInd").addClass("inp_txt inp_txtsel inp_wm inp_cue");
			$("#txtInd").val("请选择行业类别");
		}
		temp.length = 0;
	},
	popup : function(type, ref) {
		if (this._box == null)
			this._box = $("#popupSelector");
		if (this._subBox == null)
			this._subBox = document.getElementById("subItems");
		this._ref = ref;
		this._type = type.toString().toLowerCase();
		this._curItems = this._selItems[this._type].clone();
		var offset = $(ref).offset();
		this._style.left = offset.left;
		this._style.top = offset.top;
		this.render();
	},
	render : function() {
		var pos = {
			top :(this._style.top + this._style.offset.levelOne.Y),
			left :this._style.left + this._style.offset.levelOne.X
		};
		if (this._type != "cat" && this._type != "comptype") {
			if (document.location.href.toLowerCase().indexOf(
					"searchjob.chinahr.com") > -1)
				pos.left -= (this._style.width[this._type] - 384);
			else if (this._type == "ind")
				pos.left = $($("#txtCat")[0]).offset().left;
			else if (this._type == "loc")
				pos.left = this._style.left - 162;
		}
		var remainHeight = $(window).height() - pos.top
				+ document.documentElement.scrollTop;
		if (remainHeight < this._style.height[this._type])
			pos.top = pos.top - (this._style.height[this._type] - remainHeight);
		if (this._style.height[this._type] > $(window).height())
			pos.top = document.documentElement.scrollTop;
		var pslayer = $("#pslayer");
		for ( var i = 0; i < this._types.length; i++) {
			pslayer.removeClass(this._style.className.levelOne[this._types[i]]);
		}
		pslayer.addClass(this._style.className.levelOne[this._type]);
		$("#selectingHeader").html(this._gtYourSelected[this._type]);
		$("#psHeader").html(this._gtPopupSelectorHeader[this._type]);
		var html = [];
		var parItems = this.allItems[this._type]();
		var start = 0;
		var end = parItems.length;
		if (this._type == "loc") {
			start = 1;
			end = 36;
			$("#subHeader1").html("<span>所有省市：</span>");
			$("#subHeader2").html("<span>其它国家和地区：</span>").show();
			for ( var i = end; i < parItems.length; i++) {
				html.push("<li id=$" + i + " class=\"nonelay\" name="
						+ parItems[i].id + "><a href=\"###\">");
				html.push("<label for=\"pcbx");
				html.push(parItems[i].id);
				html.push("\">");
				html.push("<input id=\"pcbx");
				html.push(parItems[i].id);
				html.push("\" type=\"checkbox\" value=\"");
				html.push(parItems[i].id);
				html.push("@");
				html.push(parItems[i].name);
				html.push("\"");
				if (this._curItems.has( {
					id :parItems[i].id,
					name :parItems[i].name,
					parObj :null
				}))
					html.push(" checked");
				html.push(" onclick=\"PopupSelector.click(" + i
						+ ",this, null," + parItems[i].id + ")\" />");
				html.push(parItems[i].name);
				html.push("</label>");
				html.push("</a></li>");
			}
			$("#subHeader1").show();
			$("#subHeader2").show();
			$("#allItems2").html(html.join("")).show();
		} else {
			$("#subHeader1").hide();
			$("#subHeader2").hide();
			$("#allItems2").hide();
		}
		html = [];
		for ( var i = start; i < end; i++) {
			var parItem = parItems[i];
			if (parItem.subItems && parItem.subItems.length > 1) {
				if (this._type != "ind") {
					if (this._curItems.has( {
						id :parItem.id,
						name :parItem.name,
						parObj :null
					}) || this._curItems.GetFather( {
						id :parItem.id,
						name :parItem.name,
						parObj :null
					}))
						html
								.push("<li id=$"
										+ i
										+ " name="
										+ parItem.id
										+ " class=\"layicon\" onmouseover=\"PopupSelector.showSubItems(");
					else
						html.push("<li id=$" + i + " name=" + parItem.id
								+ " onmouseover=\"PopupSelector.showSubItems(");
				} else
					html.push("<li id=$" + i + " name=" + parItem.id
							+ " onmouseover=\"PopupSelector.showSubItems(");
				html.push(i);
				html
						.push(", this, true)\" onmouseout=\"PopupSelector.hideSubItems(this)\">");
			} else {
				if (this._curItems.has( {
					id :parItem.id,
					name :parItem.name,
					parObj :null
				}))
					html.push("<li id=$" + i + " name=" + parItem.id
							+ " class=\"layon\">");
				else
					html.push("<li id=$" + i + " name=" + parItem.id
							+ " class=\"nonelay\">");
			}
			html.push("<a href=\"###\">");
			if (this._type == "ind"
					|| (this._type == "loc" && parItem.subItems.length == 1)) {
				html.push("<label for=\"pcbx");
				html.push(parItem.id);
				html.push("\">");
			}
			html.push("<input id=\"pcbx");
			html.push(parItem.id);
			html.push("\" type=\"checkbox\" value=\"");
			html.push(parItem.id);
			html.push("@");
			html.push(parItem.name);
			html.push("\"");
			if (this._curItems.has( {
				id :parItem.id,
				name :parItem.name,
				parObj :null
			}))
				html.push(" checked");
			html.push(" onclick=\"PopupSelector.click(");
			html.push(i + ",this, null," + parItem.id + ")\" />");
			html.push(dbcToSbc(parItem.name));
			if (this._type == "ind"
					|| (this._type == "loc" && parItem.subItems.length == 1)) {
				html.push("</label>");
			}
			html.push("</a></li>");
		}
		$("#allItems1").html(html.join("").toString());
		html.length = 0;
		$("#divSelecting").css("display",
				(this._curItems.length == 0) ? "none" : "block");
		var displayNoSelected = (this._curItems.length == 0) ? "block" : "none";
		if (this._type == "cat") {
			$("#noSelectedCat").css("display", displayNoSelected);
			$("#noSelectedLoc").hide();
		} else if (this._type == "loc") {
			$("#noSelectedLoc").css("display", displayNoSelected);
			$("#noSelectedCat").hide();
		} else {
			$("#noSelectedCat").hide();
			$("#noSelectedLoc").hide();
		}
		for ( var i = 0; i < this._curItems.length; i++) {
			html.push("<li id=\"");
			html.push(this._curItems[i].id);
			html.push("\"><a href=\"###\" onclick=\"PopupSelector.remove(");
			html.push(this._curItems[i].id);
			if (this._curItems[i].parObj != null)
				html.push("," + this._curItems[i].parObj.id + ")\">");
			else
				html.push(")\">");
			html.push(dbcToSbc(this._curItems[i].name));
			html.push("</a></li>");
		}
		$("#selecting").html(html.join(""));
		if (this._type == "ind") {
			$("#divSelecting").show();
			$("#selecting").hide();
		} else
			$("#selecting").show();
		$("#shield").width(this._style.width[this._type]).height(
				this._style.height[this._type]);
		$(this._box).css(pos).show();
		$("#mask").height($(document).height()).show();
	},
	close : function() {
		$("#mask").hide();
		this._ref = null;
		$(this._box).hide();
	},
	OK : function() {
		var temp = [];
		jQuery.each(this._curItems, function() {
			temp.push(this.name);
		});
		if (temp.length != 0) {
			if (this._type == "cat") {
				$("#txtCat").removeClass("inp_txt inp_txtsel inp_wl inp_cue");
				$("#txtCat").addClass("inp_txt inp_txtsel inp_wl");
			}
			if (this._type == "loc" || this._type == "ind") {
				$(this._ref).removeClass("inp_txt inp_txtsel inp_wm inp_cue");
				$(this._ref).addClass("inp_txt inp_txtsel inp_wm");
			}
			if (this._type == "loc" || this._type == "date") {
				$(this._ref).removeClass("inp_txt inp_txtsel inp_wm inp_cue");
				$(this._ref).addClass("inp_txt inp_txtsel inp_wm");
			}
			$(this._ref).val(dbcToSbc(temp.join("+")));
		} else {
			if (this._type == "cat") {
				$("#txtCat").removeClass("inp_txt inp_txtsel inp_wl");
				$("#txtCat").addClass("inp_txt inp_txtsel inp_wl inp_cue");
				$(this._ref).val("请选择职业类别");
			}
			if (this._type == "loc") {
				$("#txtLoc").removeClass("inp_txt inp_txtsel inp_wm");
				$("#txtLoc").addClass("inp_txt inp_txtsel inp_wm inp_cue");
				$(this._ref).val("请选择工作地点");
			}
			if (this._type == "ind") {
				$("#txtInd").removeClass("inp_txt inp_txtsel inp_wm");
				$("#txtInd").addClass("inp_txt inp_txtsel inp_wm inp_cue");
				$(this._ref).val("请选择行业类别");
			}
			if (this._type == "date") {
				$("#txtDate").removeClass("inp_txt inp_txtsel inp_wm");
				$("#txtDate").addClass("inp_txt inp_txtsel inp_wm inp_cue");
				$(this._ref).val("发布时间");
			}
		}
		this._ref = null;
		this._selItems[this._type] = this._curItems.clone();
		this._curItems.clear();
		$("#selecting").html("");
		$("#mask").hide();
		$(this._box).hide();
	},
	empty : function() {
		$("#selecting").html("");
		$("#allItems1 input").each( function(i) {
			this.checked = false;
		});
		$("#allItems2 input").each( function(i) {
			this.checked = false;
		});
		$("#allItems1 li").each( function(i) {
			if (this.className == "layicon")
				this.className = "";
			if (this.className == "layon")
				this.className = "nonelay";
		});
		this._curItems.clear();
		PopupSelector.showtips();
	},
	click : function(ref, cbx, parObj) {
		if (cbx.checked && this._curItems.length == this._maxSize) {
			alert(this._gtMaxLimit);
			cbx.checked = false;
			return;
		}
		var item = {
			id :cbx.value.split("@")[0],
			name :cbx.value.split("@")[1],
			parObj :parObj
		};
		var selecting = document.getElementById("selecting");
		var selItem = null;
		if (cbx.checked) {
			selItem = document.createElement("li");
			selItem.id = item.id;
			if (parObj == null)
				selItem.innerHTML = "<a href=\"###\" onclick=\"PopupSelector.remove("
						+ item.id + ",null);\">" + dbcToSbc(item.name) + "</a>";
			else
				selItem.innerHTML = "<a href=\"###\" onclick=\"PopupSelector.remove("
						+ item.id
						+ ","
						+ parObj.id
						+ ");\">"
						+ dbcToSbc(item.name) + "</a>";
			selecting.appendChild(selItem);
			this._curItems.push(item);
			if (parObj != null) {
				document.getElementById('^' + ref).className = "layon";
				var id = parObj.id;
				$("li[@name=" + id + "]").addClass("layicon");
			}
			this.showHideSelecting(this);
		} else {
			selItem = document.getElementById(item.id);
			selecting.removeChild(selItem);
			this._curItems.remove(item.id);
			if (parObj != null) {
				document.getElementById('^' + ref).className = "";
				var id = parObj.id;
				if ($("#subItems ol").html().indexOf('CHECKED') < 0)
					$("li[@name=" + id + "]").removeClass("layicon");
			}
			PopupSelector.showtips();
		}
		if (parObj == null) {
			var parItems = this.allItems[this._type]();
			parItem = parItems[ref];
			if (cbx.checked) {
				if (parItem.subItems && parItem.subItems.length > 1)
					document.getElementById('$' + ref).className = "layicon";
				else
					document.getElementById('$' + ref).className = "layon";
			} else {
				if ((parItem.subItems && parItem.subItems.length > 1))
					document.getElementById('$' + ref).className = "";
				else
					document.getElementById('$' + ref).className = "nonelay";
			}
			var array = this._curItems.clone();
			this._curItems.clear();
			for ( var i = 0; i < array.length; i++) {
				if (array[i].parObj != null && array[i].parObj.id == item.id) {
					selecting.removeChild(document.getElementById(array[i].id));
				} else {
					this._curItems.push(array[i]);
				}
			}
			$("#subItems input").each( function(i) {
				this.checked = this.disabled = cbx.checked;
			});
			if (cbx.checked)
				$("#subItems li").each( function(i) {
					this.className = "layon";
				});
			else
				$("#subItems li").each( function(i) {
					this.className = "";
				});
		}
	},
	showtips : function() {
		if (this._curItems.length == 0) {
			if (this._type != "ind")
				$("#divSelecting").css("display", "none");
			if (this._type == "cat") {
				$("#noSelectedLoc").hide();
				$("#noSelectedCat").show();
			}
			if (this._type == "loc") {
				$("#noSelectedCat").hide();
				$("#noSelectedLoc").show();
			}
		}
	},
	showtips : function() {
		if (this._curItems.length == 0) {
			if (this._type != "date")
				$("#divSelecting").css("display", "none");
			if (this._type == "cat") {
				$("#noSelectedLoc").hide();
				$("#noSelectedCat").show();
			}
			if (this._type == "loc") {
				$("#noSelectedCat").hide();
				$("#noSelectedLoc").show();
			}
		}
	},
	remove : function(id, parObj) {
		document.getElementById("selecting").removeChild(
				document.getElementById(id));
		var pcbx = document.getElementById("pcbx" + id);
		if (pcbx)
			pcbx.checked = false;
		var pc = document.getElementById(id);
		if (pc)
			pcbx.checked = false;
		var array = this._curItems.clone();
		this._curItems.clear();
		for ( var i = 0; i < array.length; i++) {
			if (array[i].id != id)
				this._curItems.push(array[i]);
		}
		if (parObj == null) {
			$("li[@name=" + id + "]").removeClass("layicon");
			$("li[@name=" + id + "]").removeClass("layon");
			var parItems = this.allItems[this._type]();
			for ( var j = 0; j < parItems.length; j++) {
				var parItem = parItems[j];
				if (parItem.id == id) {
					if (parItem.subItems && parItem.subItems.length == 1)
						$("li[@name=" + id + "]").addClass("nonelay");
				}
			}
		} else if (!(this._curItems.GetFather( {
			id :parObj,
			name :null,
			parObj :null
		})))
			$("li[@name=" + parObj + "]").removeClass("layicon");
		PopupSelector.showtips();
	},
	showHideSelecting : function(selector) {
		$("#noSelectedCat").hide();
		$("#noSelectedLoc").hide();
		if (selector._curItems.length > 0) {
			$("#divSelecting").show();
		}
	},
	showSubItems : function(index, ref, isDelay, ev) {
		var subItems = $("#subItems");
		if (this._hideTimer)
			clearTimeout(this._hideTimer);
		if (this._showTimer)
			clearTimeout(this._showTimer);
		if (index == this._lastPopupIndex && subItems.css("display") == "block") {
			$(ref).addClass("layshow");
			return;
		}
		if (!isDelay)
			loadSubItems(index, ref, this);
		var self = this;
		this._showTimer = setTimeout( function() {
			loadSubItems(index, ref, self);
		}, this._delay);
		function loadSubItems(index, ref, self) {
			var parItem = self.allItems[self._type]()[index];
			var offset = $(ref).offset();
			var pos = {
				top :offset.top + self._style.offset.levelTwo[self._type].Y,
				left :offset.left + self._style.offset.levelTwo[self._type].X
			};
			var actualSubItemCount = parItem.subItems.length - 1;
			var calItemCount = (actualSubItemCount % 2 == 0) ? actualSubItemCount / 2
					: (actualSubItemCount / 2 + 1);
			if (actualSubItemCount <= self._oneColumnLimit[self._type])
				calItemCount = actualSubItemCount;
			var subBoxHeight = self._style.lineHeight * parseInt(calItemCount)
					+ self._style.topBottomMargin;
			var winHeight = $(window).height();
			var remainHeight = winHeight - pos.top
					+ document.documentElement.scrollTop;
			if (remainHeight < subBoxHeight)
				pos.top = pos.top - (subBoxHeight - remainHeight);
			if (subBoxHeight > winHeight)
				pos.top = document.documentElement.scrollTop;
			var parentChecked = (ref.getElementsByTagName("input")[0].checked == true) ? " checked disabled "
					: "";
			var item = {
				id :parItem.id,
				name :parItem.name,
				parObj :null
			};
			var html = [];
			html.push("<ol >");
			for ( var i = 1; i < parItem.subItems.length; i++) {
				var subItem = parItem.subItems[i];
				subItem.parObj = item;
				if (ref.getElementsByTagName("input")[0].checked == true
						|| self._curItems.has(subItem)) {
					html.push("<li id=^" + i + " class=\"layon\"  >");
				} else
					html.push("<li id=^" + i + "  >");
				html.push("<a href=\"###\"><label for=\"scbx");
				html.push(subItem.id);
				html.push("\"><input id=\"scbx");
				html.push(subItem.id);
				html.push("\" type=\"checkbox\" value=\"");
				html.push(subItem.id);
				html.push("@");
				html.push(subItem.name);
				html.push("\"");
				html.push(parentChecked);
				if (self._curItems.has(subItem))
					html.push(" checked");
				html.push(" onclick=\"PopupSelector.click(" + i
						+ ",this, { id: ");
				html.push(parItem.id);
				html.push(", name: '");
				html.push(parItem.name);
				html.push("', parObj: null }");
				html.push(",'')\" />");
				html.push(dbcToSbc(subItem.name));
				html.push("</label></a></li>");
			}
			html.push("</ol>");
			var subBox = $("#subBox");
			for ( var i = 0; i < self._types.length; i++) {
				subItems
						.removeClass(self._style.className.levelTwo1[self._types[i]]);
				subItems
						.removeClass(self._style.className.levelTwo2[self._types[i]]);
			}
			var levelTwo = (actualSubItemCount > self._oneColumnLimit[self._type]) ? self._style.className.levelTwo2[self._type]
					: self._style.className.levelTwo1[self._type];
			if (self._type == "loc") {
				if (parItem.id == "8000" || parItem.id == "15000") {
					levelTwo = self._style.className.levelTwo1[self._type];
				}
			}
			self._lastPopupIndex = index;
			$("#subItems").hover( function(e) {
				self.showSubItems(index, ref, true, e);
			}, function(e) {
				self.hideSubItems(ref);
			});
			subBox.html(html.join(""));
			subItems.addClass(levelTwo).css(pos).show();
		}
	},
	hideSubItems : function(ref) {
		$(ref).removeClass("layshow");
		if (this._showTimer)
			clearTimeout(this._showTimer);
		if (this._hideTimer)
			clearTimeout(this._hideTimer);
		this._hideTimer = setTimeout( function() {
			$("#subItems").hide();
		}, 100);
	},
	_showTimer :null,
	_hideTimer :null,
	_lastPopupIndex :null,
	_box :null,
	_subbox :null,
	_ref :null,
	_type :null,
	_types : [ "cat", "ind","date", "loc", "comptype" ],
	_maxSize :5,
	_curItems : [],
	_selItems : {
		cat : [],
		loc : [],
		ind : [],
		date : [],
		comptype : []
	},
	_gtMaxLimit :"对不起,您的已选项已经达到了5项.请减少已选项,再继续选择",
	_gtYourSelected : {
		cat :"您选择的职位类别是：",
		ind :"您最多可以选择５个行业类别",
		date :"您最多可以选择5个",
		loc :"您选择的工作地点是：",
		comptype :"您选择的公司性质是："
	},
	_gtPopupSelectorHeader : {
		cat :"职位类别",
		ind :"行业类别",
		date :"发布时间",
		loc :"地点",
		comptype :"公司性质"
	},
	_oneColumnLimit : {
		cat :12,
		loc :11
	},
	_delay :500,
	_style : {
		className : {
			levelOne : {
				"cat" :"lay_wl",
				"loc" :"lay_wls",
				"ind" :"lay_wll",
				"date" : "lay_wll",
				"comptype" :"lay_wms"
			},
			levelTwo1 : {
				"cat" :"lay_wm",
				"loc" :"lay_wss",
				"ind" :"",
				"date" : "",
				"comptype" :""
			},
			levelTwo2 : {
				"cat" :"lay_wl2",
				"loc" :"lay_ws",
				"ind" :"",
				"date" : "",
				"comptype" :""
			}
		},
		left :0,
		top :0,
		width : {
			"cat" :594,
			"loc" :466,
			"ind" :360,
			"date" : 360,
			"comptype" :360
		},
		height : {
			"cat" :517,
			"loc" :419,
			"ind" :360,
			"date" : 360,
			"comptype" :173
		},
		lineHeight :20,
		topBottomMargin :17,
		offset : {
			levelOne : {
				X :0,
				Y :20
			},
			levelTwo : {
				"cat" : {
					X :284,
					Y :0
				},
				"loc" : {
					X :85,
					Y :0
				}
			}
		}
	},
	allItems : {
		cat : function() {
			return getCat();
		},
		ind : function() {
			return getInd();
		},
		date : function() {
			return getDate();
		},
		loc : function() {
			return getLoc();
		},
		comptype : function() {
			return getCompanyType();
		}
	}
};
$(document).ready( function() {
	$("#txtCat").click( function() {
		PopupSelector.popup("cat", this);
	});
	$("#txtInd").click( function() {
		PopupSelector.popup("ind", this);
	});
	$("#txtDate").click( function() {
		PopupSelector.popup("date", this);
	});
	
	$("#txtLoc").click( function() {
		PopupSelector.popup("loc", this);
	});
	$("#txtCatDrop").click( function() {
		PopupSelector.popup("cat", $("#txtCat")[0]);
	});
	$("#txtIndDrop").click( function() {
		PopupSelector.popup("ind", $("#txtInd")[0]);
	});
	$("#txtDateDrop").click( function() {
		PopupSelector.popup("date", $("#txtDate")[0]);
	});
	$("#txtLocDrop").click( function() {
		PopupSelector.popup("loc", $("#txtLoc")[0]);
	});
	$("#lnkEmpty").click( function() {
		PopupSelector.empty();
	});
	$("#lnkCancel").click( function() {
		PopupSelector.cancel();
	});
	$("#lnkOK").click( function() {
		PopupSelector.OK();
	});
	$("#btnOk").click( function() {
		PopupSelector.OK();
	});
	$("#btnOkLoc").click( function() {
		PopupSelector.OK();
	});
	$("#imgClose").click( function() {
		PopupSelector.close();
	});
});
function getJobType() {
	return [ {
		id :"1",
		name :"全职"
	}, {
		id :"2",
		name :"兼职"
	}, {
		id :"4",
		name :"临时"
	}, {
		id :"8",
		name :"实习"
	} ];
}
function getPostDate() {
	return [ {
		id :"1",
		name :"当天"
	}, {
		id :"3",
		name :"3天"
	}, {
		id :"7",
		name :"7天"
	}, {
		id :"15",
		name :"15天"
	}, {
		id :"30",
		name :"30天"
	}, {
		id :"60",
		name :"60天"
	}, {
		id :"90",
		name :"90天"
	} ];
}
function getWorkExp() {
	return [ {
		id :"0",
		name :"一年以下"
	}, {
		id :"1",
		name :"1-2年"
	}, {
		id :"4",
		name :"3-5年"
	}, {
		id :"6",
		name :"6-7年"
	}, {
		id :"8",
		name :"8-10年及以上"
	} ];
}
function getCompanyType() {
	return [ {
		id :"10",
		name :"外商独资·外企办事处"
	}, {
		id :"20",
		name :"中外合营(合资·合作)"
	}, {
		id :"21",
		name :"股份制企业"
	}, {
		id :"50",
		name :"国内上市公司"
	}, {
		id :"30",
		name :"私营·民营企业"
	}, {
		id :"40",
		name :"国有企业"
	}, {
		id :"60",
		name :"政府机关/非营利机构"
	}, {
		id :"70",
		name :"事业单位"
	} ];
}
function getCompanySize() {
	return [ {
		id :"1",
		name :"1-49人"
	}, {
		id :"50",
		name :"50-99人"
	}, {
		id :"100",
		name :"100-499人"
	}, {
		id :"500",
		name :"500-999人"
	}, {
		id :"1000",
		name :"1000人以上"
	} ];
}
function getDegree() {
	return [ {
		id :"6",
		name :"博士"
	}, {
		id :"5",
		name :"MBA"
	}, {
		id :"4",
		name :"硕士"
	}, {
		id :"3",
		name :"本科"
	}, {
		id :"2",
		name :"大专"
	}, {
		id :"1",
		name :"中专"
	}, {
		id :"-5",
		name :"中技"
	}, {
		id :"-10",
		name :"高中"
	}, {
		id :"-15",
		name :"初中"
	} ];
}
function getSalary() {
	return [ {
		id :"600",
		name :"1000以下"
	}, {
		id :"700",
		name :"1000～1999"
	}, {
		id :"800",
		name :"2000～2999"
	}, {
		id :"900",
		name :"3000～3999"
	}, {
		id :"1000",
		name :"4000～5999"
	}, {
		id :"1100",
		name :"6000～7999"
	}, {
		id :"1200",
		name :"8000～9999"
	}, {
		id :"1300",
		name :"10000～14999"
	}, {
		id :"1400",
		name :"15000～19999"
	}, {
		id :"1500",
		name :"20000～29999"
	}, {
		id :"1600",
		name :"30000～49999"
	}, {
		id :"1700",
		name :"50000+"
	} ];
}
function getCat() {
	return [ {
		id :"600",
		name :"销售/市场营销",
		subItems : [ {
			id :"600",
			name :"销售/市场营销"
		}, {
			id :"1001015",
			name :"销售代表"
		}, {
			id :"1001028",
			name :"销售主管/经理"
		}, {
			id :"1001029",
			name :"销售总监"
		}, {
			id :"1001026",
			name :"同行销售"
		}, {
			id :"1001003",
			name :"电话销售"
		}, {
			id :"1001016",
			name :"海外拓展"
		}, {
			id :"1001017",
			name :"外贸业务员"
		}, {
			id :"1001129",
			name :"市场专员"
		}, {
			id :"608",
			name :"市场主管/经理"
		}, {
			id :"1001014",
			name :"市场总监"
		} ]
	}, {
		id :"1035000",
		name :"人力资源",
		subItems : [ {
			id :"1035000",
			name :"人力资源"
		}, {
			id :"1035001",
			name :"招聘专员"
		}, {
			id :"1035002",
			name :"培训专员"
		}, {
			id :"1035003",
			name :"绩效考核专员"
		}, {
			id :"1035004",
			name :"薪酬专员"
		}, {
			id :"1035005",
			name :"人事专员"
		}, {
			id :"1035006",
			name :"人力资源助理"
		}, {
			id :"1035007",
			name :"人力资源主管/经理"
		}, {
			id :"1035999",
			name :"人力资源总监"
		}, {
			id :"1039",
			name :"员工关系专员"
		} ]
	}, {
		id :"700",
		name :"操作/客服/单证",
		subItems : [ {
			id :"700",
			name :"操作/客服/单证"
		}, {
			id :"1002001",
			name :"订舱专员"
		}, {
			id :"1002002",
			name :"客服代表"
		}, {
			id :"1002003",
			name :"客服助理"
		}, {
			id :"1002015",
			name :"客服经理"
		}, {
			id :"1002004",
			name :"操作文员"
		}, {
			id :"1002005",
			name :"货代操作"
		}, {
			id :"1002024",
			name :"拼箱操作"
		}, {
			id :"1002007",
			name :"码头操作"
		}, {
			id :"1002008",
			name :"物流操作"
		}, {
			id :"1002009",
			name :"操作经理"
		}, {
			id :"1002010",
			name :"报关主管"
		}, {
			id :"1002012",
			name :"报关员"
		}, {
			id :"1002016",
			name :"单证员"
		}, {
			id :"1002014",
			name :"跟单员"
		}, {
			id :"1002013",
			name :"打单员"
		}]
	}, {
		id :"1016001",
		name :"财务",
		subItems : [ {
			id :"1016001",
			name :"财务"
		}, {
			id :"1801",
			name :"出纳"
		}, {
			id :"1802",
			name :"会计"
		}, {
			id :"1803",
			name :"财务"
		}, {
			id :"1804",
			name :"财务助理"
		}, {
			id :"1805",
			name :"财务主管/经理"
		}, {
			id :"1806",
			name :"财务总监"
		}]
	}, {
		id :"100",
		name :"仓储/运输/配送",
		subItems : [ {
			id :"100",
			name :"仓储/运输/配送"
		}, {
			id :"1005017",
			name :"物流专员"
		}, {
			id :"1005009",
			name :"理货员"
		}, {
			id :"1005018",
			name :"仓库管理员"
		}, {
			id :"1005010",
			name :"仓库主管"
		}, {
			id :"1005019",
			name :"保安"
		}, {
			id :"1005011",
			name :"车队队长"
		}, {
			id :"1005023",
			name :"调度专员"
		}, {
			id :"1005012",
			name :"配送经理 "
		}, {
			id :"1005020",
			name :"营运负责人"
		}, {
			id :"1005006",
			name :"运输经理"
		}, {
			id :"1005013",
			name :"叉车司机"
		}, {
			id :"1005014",
			name :"司机"
		}, {
			id :"1005015",
			name :"搬运工"
		}, {
			id :"1005016",
			name :"快递员/配送员"
		}]
	}, {
		id :"900",
		name :"行政管理",
		subItems : [ {
			id :"900",
			name :"行政管理"
		}, {
			id :"1007008",
			name :"总经理秘书"
		}, {
			id :"1007010",
			name :"办公室管理人员"
		}, {
			id :"1007002",
			name :"内勤"
		}, {
			id :"1007003",
			name :"前台"
		}, {
			id :"1007011",
			name :"文员"
		}, {
			id :"1007009",
			name :"行政助理"
		}, {
			id :"1007006",
			name :"行政经理"
		} ]
	}, {
		id :"3600",
		name :"高级管理部门",
		subItems : [ {
			id :"3600",
			name :"高级管理部门"
		}, {
			id :"1008032",
			name :"商务经理"
		}, {
			id :"1008033",
			name :"物流经理"
		}, {
			id :"1008007",
			name :"物流总监"
		}, {
			id :"1008029",
			name :"总裁/副总裁"
		}, {
			id :"1008030",
			name :"总经理"
		}, {
			id :"3630",
			name :"海运经理"
		}, {
			id :"1008011",
			name :"空运经理"
		}, {
			id :"1008012",
			name :"航线经理"
		}, {
			id :"1008008",
			name :"总经理助理"
		}, {
			id :"1008005",
			name :"分公司经理"
		}, {
			id :"1008026",
			name :"供应链经理"
		}, {
			id :"1008027",
			name :"供应链总监"
		}, {
			id :"1008022",
			name :"项目经理"
		}]
	}, {
		id :"2100",
		name :"采购",
		subItems : [ {
			id :"2100",
			name :"采购"
		}, {
			id :"1010004",
			name :"跟单员"
		}, {
			id :"1010009",
			name :"采购工程师"
		}, {
			id :"1010010",
			name :"采购主管"
		}, {
			id :"1010011",
			name :"采购助理"
		}, {
			id :"1010006",
			name :"采购经理"
		}, {
			id :"1010007",
			name :"采购总监"
		}]
	}, {
		id :"400",
		name :"其他",
		subItems : [ {
			id :"400",
			name :"储备干部"
		}, {
			id :"1012024",
			name :"法务专员"
		}, {
			id :"1012011",
			name :"实习生"
		}, {
			id :"1012012",
			name :"网络管理员"
		}, {
			id :"1012002",
			name :"外语人才"
		}, {
			id :"1012013",
			name :"船长"
		}, {
			id :"1012014",
			name :"船员"
		} ]
	}];
}
function getLoc() {
	return [ {
		id :"-1",
		name :"请选择工作地点",
		subItems : [ {
			id :"-1",
			name :"请选择工作地点"
		} ]
	}, {
		id :"30000",
		name :"北京",
		subItems : [ {
			id :"30000",
			name :"北京"
		} ]
	}, {
		id :"31000",
		name :"上海",
		subItems : [ {
			id :"31000",
			name :"上海"
		} ]
	}, {
		id :"32000",
		name :"青岛",
		subItems : [ {
			id :"32000",
			name :"青岛"
		} ]
	}, {
		id :"33000",
		name :"大连",
		subItems : [ {
			id :"33000",
			name :"大连"
		} ]
	}, {
		id :"7000",
		name :"宁波",
		subItems : [ {
			id :"7000",
			name :"宁波"
		}]
	}, {
		id :"16000",
		name :"厦门",
		subItems : [ {
			id :"16000",
			name :"厦门"
		}]
	}, {
		id :"12000",
		name :"武汉",
		subItems : [ {
			id :"12000",
			name :"武汉"
		}]
	}, {
		id :"8000",
		name :"天津",
		subItems : [ {
			id :"8000",
			name :"天津"
		} ]
	}, {
		id :"5000",
		name :"广州",
		subItems : [ {
			id :"5000",
			name :"广州"
		}]
	}, {
		id :"6000",
		name :"深圳",
		subItems : [ {
			id :"6000",
			name :"深圳"
		}, {
			id :"60",
			name :"哈尔滨"
		}, {
			id :"6030",
			name :"大庆"
		}, {
			id :"6040",
			name :"佳木斯"
		}, {
			id :"6050",
			name :"牡丹江"
		}, {
			id :"6020",
			name :"齐齐哈尔"
		} ]
	}, {
		id :"9000",
		name :"安徽",
		subItems : [ {
			id :"9000",
			name :"安徽"
		}, {
			id :"65",
			name :"合肥"
		}, {
			id :"9040",
			name :"安庆"
		}, {
			id :"9030",
			name :"蚌埠"
		}, {
			id :"9020",
			name :"芜湖"
		}, {
			id :"9050",
			name :"宁国"
		} ]
	}, {
		id :"10000",
		name :"福建",
		subItems : [ {
			id :"10000",
			name :"福建"
		}, {
			id :"35",
			name :"福州"
		}, {
			id :"10030",
			name :"泉州"
		}, {
			id :"155",
			name :"厦门"
		}, {
			id :"10040",
			name :"漳州"
		}, {
			id :"10050",
			name :"莆田"
		}, {
			id :"10010",
			name :"福安"
		}, {
			id :"10020",
			name :"龙岩"
		}, {
			id :"10060",
			name :"宁德"
		}, {
			id :"10070",
			name :"南平"
		}, {
			id :"10080",
			name :"三明"
		} ]
	}, {
		id :"11000",
		name :"江西",
		subItems : [ {
			id :"11000",
			name :"江西"
		}, {
			id :"95",
			name :"南昌"
		}, {
			id :"11020",
			name :"九江"
		}, {
			id :"11030",
			name :"景德镇"
		}, {
			id :"11040",
			name :"新余"
		}, {
			id :"11050",
			name :"鹰潭"
		}, {
			id :"11060",
			name :"上饶"
		}, {
			id :"11070",
			name :"萍乡"
		}, {
			id :"11080",
			name :"吉安"
		}, {
			id :"11090",
			name :"赣州"
		} ]
	}, {
		id :"13000",
		name :"河南",
		subItems : [ {
			id :"13000",
			name :"河南"
		}, {
			id :"175",
			name :"郑州"
		}, {
			id :"78",
			name :"开封"
		}, {
			id :"92",
			name :"洛阳"
		} ]
	}, {
		id :"14000",
		name :"湖北",
		subItems : [ {
			id :"14000",
			name :"湖北"
		}, {
			id :"150",
			name :"武汉"
		}, {
			id :"14020",
			name :"十堰"
		}, {
			id :"14040",
			name :"襄樊"
		}, {
			id :"14030",
			name :"宜昌"
		}, {
			id :"14050",
			name :"潜江"
		}, {
			id :"14060",
			name :"荆门"
		}, {
			id :"14070",
			name :"荆州"
		}, {
			id :"14080",
			name :"黄石"
		}, {
			id :"14090",
			name :"鄂州"
		}, {
			id :"14100",
			name :"咸宁"
		}, {
			id :"14110",
			name :"麻城"
		}, {
			id :"14120",
			name :"孝感"
		}, {
			id :"14130",
			name :"随州"
		}, {
			id :"14140",
			name :"恩施"
		} ]
	}, {
		id :"15000",
		name :"湖南",
		subItems : [ {
			id :"15000",
			name :"湖南"
		}, {
			id :"15",
			name :"长沙"
		}, {
			id :"15030",
			name :"湘潭"
		}, {
			id :"15020",
			name :"株洲"
		}, {
			id :"15040",
			name :"常德"
		}, {
			id :"15050",
			name :"衡阳"
		}, {
			id :"15060",
			name :"益阳"
		}, {
			id :"15070",
			name :"郴州"
		}, {
			id :"15080",
			name :"岳阳"
		}, {
			id :"15090",
			name :"张家界"
		}, {
			id :"15100",
			name :"永州"
		}, {
			id :"15110",
			name :"吉首"
		}, {
			id :"15120",
			name :"娄底"
		}, {
			id :"15130",
			name :"怀化"
		}, {
			id :"15140",
			name :"邵阳"
		} ]
	}, {
		id :"1000",
		name :"河北",
		subItems : [ {
			id :"1000",
			name :"河北"
		}, {
			id :"130",
			name :"石家庄"
		}, {
			id :"7",
			name :"保定"
		}, {
			id :"1070",
			name :"承德"
		}, {
			id :"53",
			name :"邯郸"
		}, {
			id :"1080",
			name :"廊坊"
		}, {
			id :"1030",
			name :"秦皇岛"
		}, {
			id :"1020",
			name :"唐山"
		}, {
			id :"1060",
			name :"张家口"
		}, {
			id :"1090",
			name :"沧州"
		}, {
			id :"1100",
			name :"邢台"
		} ]
	}, {
		id :"4000",
		name :"辽宁",
		subItems : [ {
			id :"4000",
			name :"辽宁"
		}, {
			id :"120",
			name :"沈阳"
		}, {
			id :"4030",
			name :"鞍山"
		}, {
			id :"30",
			name :"大连"
		}, {
			id :"4040",
			name :"葫芦岛"
		}, {
			id :"4050",
			name :"营口"
		} ]
	}, {
		id :"19000",
		name :"四川",
		subItems : [ {
			id :"19000",
			name :"四川"
		}, {
			id :"20",
			name :"成都"
		}, {
			id :"19060",
			name :"乐山"
		}, {
			id :"19030",
			name :"泸州"
		}, {
			id :"19040",
			name :"绵阳"
		}, {
			id :"19050",
			name :"内江"
		}, {
			id :"19070",
			name :"宜宾"
		}, {
			id :"19020",
			name :"自贡"
		}, {
			id :"19080",
			name :"攀枝花"
		}, {
			id :"19090",
			name :"德阳"
		}, {
			id :"19100",
			name :"广元"
		}, {
			id :"19110",
			name :"遂宁"
		}, {
			id :"19120",
			name :"南充"
		}, {
			id :"19130",
			name :"广安"
		}, {
			id :"19140",
			name :"达州"
		}, {
			id :"19150",
			name :"巴中"
		}, {
			id :"19160",
			name :"雅安"
		}, {
			id :"19170",
			name :"眉山"
		}, {
			id :"19180",
			name :"资阳"
		}, {
			id :"19190",
			name :"阿坝"
		}, {
			id :"19200",
			name :"甘孜"
		}, {
			id :"19210",
			name :"凉山"
		} ]
	}, {
		id :"17000",
		name :"广西",
		subItems : [ {
			id :"17000",
			name :"广西"
		}, {
			id :"105",
			name :"南宁"
		}, {
			id :"17040",
			name :"北海"
		}, {
			id :"42",
			name :"桂林"
		}, {
			id :"17020",
			name :"柳州"
		}, {
			id :"17050",
			name :"玉林"
		} ]
	}, {
		id :"20000",
		name :"贵州",
		subItems : [ {
			id :"20000",
			name :"贵州"
		}, {
			id :"45",
			name :"贵阳"
		}, {
			id :"20020",
			name :"遵义"
		} ]
	}, {
		id :"22000",
		name :"西藏",
		subItems : [ {
			id :"22000",
			name :"西藏"
		}, {
			id :"90",
			name :"拉萨"
		}, {
			id :"22020",
			name :"日喀则"
		} ]
	}, {
		id :"2000",
		name :"山西",
		subItems : [ {
			id :"2000",
			name :"山西"
		}, {
			id :"135",
			name :"太原"
		}, {
			id :"2010",
			name :"大同"
		}, {
			id :"2020",
			name :"临汾"
		}, {
			id :"2030",
			name :"运城"
		} ]
	}, {
		id :"24000",
		name :"甘肃",
		subItems : [ {
			id :"24000",
			name :"甘肃"
		}, {
			id :"85",
			name :"兰州"
		}, {
			id :"24020",
			name :"嘉峪关"
		}, {
			id :"24030",
			name :"酒泉"
		} ]
	}, {
		id :"18000",
		name :"海南",
		subItems : [ {
			id :"18000",
			name :"海南"
		}, {
			id :"50",
			name :"海口"
		}, {
			id :"18020",
			name :"三亚"
		} ]
	}, {
		id :"21000",
		name :"云南",
		subItems : [ {
			id :"21000",
			name :"云南"
		}, {
			id :"80",
			name :"昆明"
		}, {
			id :"21030",
			name :"大理"
		}, {
			id :"21040",
			name :"丽江"
		}, {
			id :"21020",
			name :"玉溪"
		} ]
	}, {
		id :"27000",
		name :"新疆",
		subItems : [ {
			id :"27000",
			name :"新疆"
		}, {
			id :"145",
			name :"乌鲁木齐"
		}, {
			id :"27030",
			name :"喀什"
		}, {
			id :"27020",
			name :"克拉玛依"
		}, {
			id :"27040",
			name :"伊犁"
		} ]
	}, {
		id :"23000",
		name :"陕西",
		subItems : [ {
			id :"23000",
			name :"陕西"
		}, {
			id :"160",
			name :"西安"
		}, {
			id :"23010",
			name :"宝鸡"
		}, {
			id :"23020",
			name :"咸阳"
		} ]
	}, {
		id :"3000",
		name :"内蒙古",
		subItems : [ {
			id :"3000",
			name :"内蒙古"
		}, {
			id :"70",
			name :"呼和浩特"
		}, {
			id :"3020",
			name :"包头"
		}, {
			id :"3030",
			name :"赤峰"
		} ]
	}, {
		id :"25000",
		name :"青海",
		subItems : [ {
			id :"25000",
			name :"青海"
		}, {
			id :"165",
			name :"西宁"
		} ]
	}, {
		id :"26000",
		name :"宁夏",
		subItems : [ {
			id :"26000",
			name :"宁夏"
		}, {
			id :"170",
			name :"银川"
		} ]
	}, {
		id :"34000",
		name :"香港",
		subItems : [ {
			id :"34000",
			name :"香港"
		} ]
	}, {
		id :"35000",
		name :"澳门",
		subItems : [ {
			id :"35000",
			name :"澳门"
		} ]
	}, {
		id :"36000",
		name :"台湾",
		subItems : [ {
			id :"36000",
			name :"台湾"
		} ]
	}, {
		id :"37000",
		name :"其他亚洲国家",
		subItems : [ {
			id :"37000",
			name :"其他亚洲国家"
		} ]
	}, {
		id :"38000",
		name :"北美洲",
		subItems : [ {
			id :"38000",
			name :"北美洲"
		} ]
	}, {
		id :"41000",
		name :"南美洲",
		subItems : [ {
			id :"41000",
			name :"南美洲"
		} ]
	}, {
		id :"39000",
		name :"大洋洲",
		subItems : [ {
			id :"39000",
			name :"大洋洲"
		} ]
	}, {
		id :"40000",
		name :"欧洲",
		subItems : [ {
			id :"40000",
			name :"欧洲"
		} ]
	}, {
		id :"42000",
		name :"非洲",
		subItems : [ {
			id :"42000",
			name :"非洲"
		} ]
	} ];
}
function getInd() {
	return [ {
		id :"100",
		name :"海上运输",
		subItems : [ {
			id :"100",
			name :"海上运输"
		}, {
			id :"101",
			name :"集装箱运输"
		}, {
			id :"102",
			name :"散杂货运输"
		} ]
	}, {
		id :"3600",
		name :"航空运输",
		subItems : [ {
			id :"3600",
			name :"航空运输"
		}, {
			id :"3601",
			name :"国际运输"
		}, {
			id :"3602",
			name :"国内运输"
		} ]
	}, {
		id :"1123000",
		name :"国际联合运输",
		subItems : [ {
			id :"1123000",
			name :"国际联合运输"
		}, {
			id :"1123001",
			name :"海空联合运输"
		}, {
			id :"1123002",
			name :"船务"
		} ]
	}, {
		id :"300",
		name :"第三方物流",
		subItems : [ {
			id :"300",
			name :"第三方物流"
		}, {
			id :"301",
			name :"公路运输"
		}, {
			id :"302",
			name :"仓储运输"
		}, {
			id :"303",
			name :"铁路运输"
		}, {
			id :"304",
			name :"拖车运输"
		} ]
	}, {
		id :"400",
		name :"快递配送",
		subItems : [ {
			id :"400",
			name :"快递配送"
		}, {
			id :"401",
			name :"快递"
		}, {
			id :"402",
			name :"城市配送"
		} ]
	}, {
		id :"800",
		name :"其他类型",
		subItems : [ {
			id :"800",
			name :"其他类型"
		}, {
			id :"801",
			name :"内河运输"
		}, {
			id :"802",
			name :"物流设备"
		}, {
			id :"803",
			name :"第四方物流"
		} ]
	}, {
		id :"1100",
		name :"所有类型"
	}];
}


function getDate() {
	return [ {
		id :"100",
		name :"不限"
	}, {
		id :"3600",
		name :"近一天"
	}, {
		id :"1123000",
		name :"近三天"
	}, {
		id :"300",
		name :"近一周"
	}, {
		id :"400",
		name :"近两周"
	}, {
		id :"800",
		name :"近一月"
	}, {
		id :"80000",
		name :"近三月"
	}, {
		id :"800000",
		name :"近半年"
	}, {
		id :"8000000",
		name :"近一年"
	}];
}