	
	function getNames(){
		var flag = true;
		while(getter.lastIndex < recentAddrLen){
			var tempObj = getter.exec(recentAddr);
			if(tempObj != null){
				flag = false;
				var name = trimHandle(tempObj.toString());
				var nameLen = name.length;
				names.push(name);
				if(startNum == 0){
					startNum = getter.lastIndex;
					continue;
				}
				var value = recentAddr.substring(startNum,getter.lastIndex - nameLen - 2);
				
				startNum = getter.lastIndex;
				values.push(value);
			}else break;
		}
		if(!flag){
			values.push(recentAddr.substring(startNum,recentAddr.length));
		}
	}	
	function lfXYHandle(id){
		var value =	n2v(id);
		var result = "[";
		var tempArr = value.split(",");
		for(var i = 0;i< tempArr.length;i++){
			result += "\"" + tempArr[i] + "\",";
		}
		result = result.substring(0,result.length-1);
		return result+"]";
	}

	var  pointId = "1";

	function trimHandle(str){
		var result = str.substring(1,str.length);
		result = result.substring(0,str.length-2);
		return result;
	}
	var pointId = null;
	function dataPriHandle(){
		resultStr = "[";
		var sid = 1000;
		for(var a in listJson){
			var testA = listJson[a];
			for(var j = 1;j < 100;j++){
				var tempName = testA + j;
				var tempValue = n2v(tempName);
				if(tempValue == null)break;
				var tempStr = "{";
				if(a == "lList"){
					var tempLp=n2v("lp" + j).split(",");
					var lps="";
					var tempLps="";
					for(var i=0 ;i<tempLp.length;i++){
						tempLps+='"'+tempLp[i]+'",';
					}
					lps=tempLps.substring(0,tempLps.length-1);
					tempStr += '"lineColor":"' + n2v("llc" + j) + '","line_size":"' + n2v("lls" + j) 
					+ '","lineOpacity":"'	+ n2v("llo" + j) + '","serialid":"' + (sid++) + '","coordX":' 
					+		lfXYHandle("lx" + j)  + ',"coordY":' + lfXYHandle("ly" + j) 
					+ ',"titles":"' + n2v("lt" + j) + '",'
					+ '"notStyleContent":"' + n2v("lnc" + j) + '","contents":"' 
					+ n2v("lnc" + j) + '","imageContentArray":[],"imageArray":['+lps+'],"maxdisscroll":0,'
					+'"lineDashStyle":false,"setTop":true,"showTip":true,"gType":"section_mc"';
				} else if(a == "fList"){
					/*var tempFp=n2v("fp" + j).split(",");
					var fps="";
					var tempFps="";
					for(var i=0 ;i<tempFp.length;i++){
						tempFps+='"'+tempFp[i]+'",';
					}
					fps=tempFps.substring(0,tempFps.length-1);
					tempStr += '"lineColor":"' + n2v("flc" + j) + '","line_size":"' + n2v("fls" + j) 
					+ '","fillColor":"'+ n2v("ffc" + j) +'","fillOpacity":"'+ n2v("ffo" + j) +'","lineOpacity":"'	+ n2v("flo" + j) + '","serialid":"' + (sid++) + '","coordX":' 
					+ lfXYHandle("fx" + j)  + ',"coordY":' + lfXYHandle("fy" + j) 
					+ ',"titles":"' + n2v("ft" + j) + '",'
					+ '"notStyleContent":"' + n2v("fnc" + j) + '","contents":"' 
					+ n2v("fnc" + j) + '","imageContentArray":[],"imageArray":['+ fps +'],"maxdisscroll":0,'
					+'"lineDashStyle":false,"setTop":true,"showTip":true,"gType":"polygon_mc"';*/
					var tempFp= n2v("fp" + j).split(",");
					var fps="";
					var tempFps="";
					for(var i=0 ;i<tempFp.length;i++){
						tempFps+='"' + tempFp[i] + '",';
					}
					fps=tempFps.substring(0,tempFps.length - 1);
					tempStr += '"lineColor":"' + n2v("flc" + j) + '","line_size":"' + n2v("fls" + j) 
					+ '","fillColor":"'+ n2v("ffc" + j) +'","fillOpacity":"'+ n2v("ffo" + j) +'","lineOpacity":"'	+ n2v("flo" + j) + '","serialid":"' + (sid++) + '","coordX":' 
					+ lfXYHandle("fx" + j)  + ',"coordY":' + lfXYHandle("fy" + j) 
					+ ',"titles":"' + n2v("ft" + j) + '",'
					+ '"notStyleContent":"' + n2v("fnc" + j) + '","contents":"' 
					+ n2v("fnc" + j) + '","imageContentArray":[],"imageArray":['+fps+'],"maxdisscroll":0,'
					+'"lineDashStyle":false,"setTop":true,"showTip":true,"gType":"polygon_mc"';
				} else {
					var tempPp = n2v("pp" + j).split(",");
					var pps="";
					var tempPps="";
					for(var i=0 ;i<tempPp.length;i++){
						tempPps += '"'+tempPp[i]+'",';
					}
					pps = tempPps.substring(0,tempPps.length - 1);
					tempStr += '"imageContentArray":[],"coordX":"' + n2v("px" + j) +'","coordY":"'
								+ n2v("py" + j) 
								+'","contents":"'+ n2v("pnc" + j) + "<br>                <a href=\\\"javascript:setToBusEnd(\'"
								+n2v("pt" + j)+"\');\\\"><b><font color=\\\"#0033cc\\\">到那里去</font></b>" 
								+'</a>","icoUrl":"http://api.mapabc.com/fmp/v1.0/components/point/DynamicPoint/'
								+ n2v("pi" + j) + '","imageArray":['+ pps +'],"notStyleContent":"' + n2v("pnc" + j) + '",'
								+ '"serialid":"'+ (sid++) + '","titles":"' + n2v("pt" + j) + '","setTop":true,"gType":"pp_mc"';
					pointId = sid - 1;
				}
				tempStr += "},";
				resultStr += tempStr;
			}
		}
		resultStr = resultStr.substring(0,resultStr.length - 1);
		resultStr += "]";
	}

	function urlPriHandle(){
		var scriptSrcs = document.getElementsByTagName("script");
		var tempSrc = "";
		for(var i = 0;i < scriptSrcs.length;i++){
			tempSrc = scriptSrcs[i].src;
			if(tempSrc.indexOf("mapnews.js") != -1)break;
		}
		tempSrc = decodeURI(tempSrc);
		var tempArr = tempSrc.split("mapnews.js?");
		var result = "&";
		for(var i = 1;i<tempArr.length;i++){
			result += tempArr[i];
		}
		return result;
	}

	function soonjSize(){
		var mapHeight = n2v("mapHeight");
		var mapWidth = n2v("mapWidth");
		if(mapHeight == null || mapWidth ==  null){
			mapHeight = 580;
			mapWidth = 700;
		}
		$("mapObj").style.width = mapWidth + "px";
		$("mapObj").style.height = mapHeight + "px";
		$("supermapframe").style.width = mapWidth + "px";
		$("supermapframe").style.height = mapHeight + "px";
	}

	function n2v(name){
		for(var i = 0;i < names.length;i++){
			if(names[i] == name){
				return values[i];
			}
		}
		return null;
	}

	function setToBusEnd(name){
		qn_menu("3");
		$("QN_buschange_endname").value = name;
	}


	var getter = new RegExp("&{1}[a-zA-Z0-9]+\={1}","g");
	var names = new Array();
	var values = new Array();
	var startNum = 0;
	var listJson = {"lList":"llc",
					"pList":"pt",
					"fList":"flc"
	};
	var resultStr = "";	
	var recentAddr = "";
	var recentAddrLen = 0;
	recentAddr = urlPriHandle();
	recentAddrLen = recentAddr.length;
	getNames();//参数准备
	dataPriHandle();//数据准备

