leEditMenu($(this).text());
		    $("#topbarMenu").hide();
		}else{
			alert(lastSelectedMenuItem);
		}
		
	});
	
}

function handleEditMenu(itemText){
    var indexvalue = functionList.Edit.indexOf(itemText);
	switch (indexvalue){
		case 0:
			var id = getFocusedTab()[0];
			$("#" + id)[0].contentWindow.callUndo();
			break;
		case 1:
			var id = getFocusedTab()[0];
			$("#" + id)[0].contentWindow.callRedo();
			break;
	    case 2:
			var id = getFocusedTab()[0];
	        $("#" + id)[0].contentWindow.openI