function LSouSouSMapMenuSelect(x,y){
	var self = this;
	base(self,LSprite,[]);
	LSouSouObject.sMap.setLocation();
	if(LSouSouObject.charaSNow.belong == LSouSouObject.BELONG_SELF){
		self.addMenuOur(x,y);
	}else{
		
	}
}
LSouSouSMapMenuSelect.prototype.addMenuOur = function(x,y){
	var self = this;
	LSouSouObject.sMap.smapClick.removeClickEvent(); 
	var menuLayer = new LSprite();
	var buttonMove = new LButtonSample1("武将移动");
	buttonMove.x = 15;
	buttonMove.y = 15;
	menuLayer.addChild(buttonMove);
	var buttonDetailed = new LButtonSample1("武将情报");
	buttonDetailed.x = 15;
	buttonDetailed.y = buttonMove.getHeight() + buttonMove.y;
	menuLayer.addChild(buttonDetailed);
	var buttonStandby = new LButtonSample1("原地待命");
	buttonStandby.x = 15;
	buttonStandby.y = buttonMove.getHeight()*2 + buttonMove.y;
	menuLayer.addChild(buttonStandby);
	var buttonCancel = new LButtonSample1("行动取消");
	buttonCancel.x = 15;
	buttonCancel.y = buttonMove.getHeight()*3 + buttonMove.y;
	menuLayer.addChild(buttonCancel);
	var selfWidth = buttonMove.getWidth()+30;
	var selfHeight = buttonMove.getHeight()*4+30;
        var bar = LSouSouObject.getBar(selfWidth,selfHeight);
	menuLayer.addChild(bar);
	self.addChild(menuLayer);
	x += LSouSouObject.sMap.nodeLength;
	if(x + LSouSouObject.sMap.backLayer.x + selfWidth > LSouSouObject.sMap.SCREEN_WIDTH){
		x -= (selfWidth + LSouSouObject.sMap.nodeLength); 
	}
	if(y + LSouSouObject.sMap.backLayer.y + selfHeight > LSouSouObject.sMap.SCREEN_HEIGHT){
		y = LSouSouObject.sMap.SCREEN_HEIGHT - selfHeight - LSouSouObject.sMap.backLayer.y;
	}
	self.x = x + LSouSouObject.sMap.backLayer.x;
	self.y = y + LSouSouObject.sMap.backLayer.y;
	
	buttonMove.addEventListener(LMouseEvent.MOUSE_UP,self.onclickMove);
};
LSouSouSMapMenuSelect.prototype.onclickMove = function(e){
	LSouSouObject.sMap.roadList = LSouSouObject.sQuery.makePath(LSouSouObject.charaSNow);
	var i,nodeChild;
	for(i=0;i<LSouSouObject.sMap.roadList.length;i++){
		nodeChild = LSouSouObject.sMap.roadList[i];
		LSouSouObject.sMap.roadLayer.graphics.drawRect(1,"#000000",[nodeChild.x*LSouSouObject.sMap.nodeLength,nodeChild.y*LSouSouObject.sMap.nodeLength,LSouSouObject.sMap.nodeLength,LSouSouObject.sMap.nodeLength],true,"#FFFFFF");
	}
	LSouSouObject.sMap.menuLayer.removeChild(LSouSouObject.sMap.menu);
	LSouSouObject.sMap.menu = null;
	LSouSouObject.sMap.smapClick.setClickEvent(); 
};