function createContextMenu(event){
	var contextMenu = OpenLayers.Util.createDiv('contextMenu', event.xy, new OpenLayers.Size(95,50), '', 'absolute', '0px solid black', 'visible', 1.0);
	lyRouteFeatures.div.appendChild(contextMenu);
	
	var menuStart = OpenLayers.Util.createDiv('menuStart',new OpenLayers.Pixel(0,0), new OpenLayers.Size(95,25), '', 'static', '1px solid black', 'visible', 1.0);
	contextMenu.appendChild(menuStart);
	$("#menuStart").css({color: "black", background: "white"});
	//Move Point on ContextMenu -Part
	$("#menuStart").append('&nbsp<img class="smallIcon" src="./img/arrow-green.png"></img>&nbsp<span id="menuTextStart" >set Start</span>');
	$("#menuStart").hover(
		function(){	$("#menuStart").css({'background-color' : '#FEE8C8', 'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'}); },
		function(){ $("#menuStart").css({color: "black", background: "white", 'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'}); }
	);
	$("#menuStart").click(function(){
		setStatus('Start');
		handleMapEvent(event);
		disableClickEvent = true;
		lyRouteFeatures.div.removeChild(contextMenu);
		isSetStartEnd();
		mouseNotOnContext=true;
	});
	
	var menuEnd = OpenLayers.Util.createDiv('menuEnd',new OpenLayers.Pixel(0,0), new OpenLayers.Size(95,25), '', 'static', '1px solid black', 'visible', 1.0);
	contextMenu.appendChild(menuEnd);
	$("#menuEnd").css({ color: "Black", background: "white", "valign":"middle" });
	
	//Move Point on ContextMenu -Part
	$("#menuEnd").append('&nbsp<img class="smallIcon" src="./img/arrow-finish.png"></img>&nbsp<span id="menuTextEnd">set End</span>');
	$("#menuEnd").hover(
		function(){	$("#menuEnd").css({'background-color' : '#FEE8C8', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'}); },
		function(){ $("#menuEnd").css({color: "Black", background: "white",'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'}); }
	);
	$("#menuEnd").click(function(){
		setStatus('End');
		handleMapEvent(event);
		disableClickEvent = true;
		lyRouteFeatures.div.removeChild(contextMenu);
		isSetStartEnd();
		mouseNotOnContext=true;
	});
	
	var menuVia = OpenLayers.Util.createDiv('menuVia',new OpenLayers.Pixel(0,0), new OpenLayers.Size(95,25), '', 'static', '1px solid black', 'visible', 1.0);
	contextMenu.appendChild(menuVia);
	$("#menuVia").css({ color: "Black", background: "white", "valign":"middle" });
	$("#menuVia").append('&nbsp<img class="smallIcon" src="./img/arrow-orange.png"></img>&nbsp<span id="menuTextVia">add Via</span>');
	$("#menuVia").hover(
		function(){	$("#menuVia").css({'background-color' : '#FEE8C8', 'font-weight' : 'bold','font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'});
					$(".tfPoints").css('backgroundColor','#FFFFFF');
				  },
		function(){ $("#menuVia").css({color: "Black", background: "white", 'font-weight' : 'bold','font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'}); }
	);
	$("#menuVia").click(function(){
		addViaCode();
		setStatus('Via');
		handleMapEvent(event);
		lyRouteFeatures.div.removeChild(contextMenu);
		isSetStartEnd();
		mouseNotOnContext=true;
	});
	if(countVia>=1){
		var menuViaRem = OpenLayers.Util.createDiv('menuViaRem',new OpenLayers.Pixel(0,0), new OpenLayers.Size(95,25), '', 'static', '1px solid black', 'visible', 1.0);
		contextMenu.appendChild(menuViaRem);
		$("#menuViaRem").css({ color: "Black", background: "white", "valign":"middle" , 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px', 'font-weight' : 'bold'});
		$("#menuViaRem").append('&nbsp<img class="smallIcon" src="./img/arrow-orange.png"></img>&nbsp<span id="menuTextViaRem">remove Via</span>');
		$("#menuViaRem").hover(
			function(){	$("#menuViaRem").css({'background-color' : '#FEE8C8', 'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'});setStatus('Via');},
			function(){ $("#menuViaRem").css({color: "Black", background: "white", 'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'}); }
		);
		$("#menuViaRem").click(function(){
			removeViaCode();
			disableClickEvent = true;
			lyRouteFeatures.div.removeChild(contextMenu);
			isSetStartEnd();
			mouseNotOnContext=true;
		});
	}
	$("#contextMenu").bind("mouseleave",function(){lyRouteFeatures.div.removeChild(contextMenu);mouseNotOnContext=true;});
	$(".smallIcon").css({width: 16, height: 20, "padding-top": "2px"});
	$("#menuTextStart").css({ height: 18, width: 100, position: "absolute", top:"0.5em", left:"2em",'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'});
	$("#menuTextEnd").css({ height: 18, width: 100, position: "absolute", top:"2.75em", left:"2em",'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'});
	$("#menuTextVia").css({ height: 18, width: 100, position: "absolute", top:"5em", left:"2em",'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'});
	$("#menuTextViaRem").css({ height: 18, width: 100, position: "absolute", top:"7.25em", left:"2em",'font-weight' : 'bold', 'font-family':'Arial,Helvetica,sans-serif', 'font-size':'12px'});
}
