global proc XFUIMenu () {

	string $xfrog4MayaOnlineHelp = "showHelp -a \"";
	$xfrog4MayaOnlineHelp += "http://www.xfrogdownloads.com/greenwebNew/support/supportStart.htm";
	$xfrog4MayaOnlineHelp += "\";\n";

	global string $gMainWindow;
	setParent $gMainWindow;
	menu -label "Xfrog4Maya" XF4MainMenu;
		menuItem -label "Unload" -command "file -f -new; unloadPlugin \"Xfrog4Maya\"; if (`window -exists \"XfrogVisor\"`) deleteUI -window \"XfrogVisor\";";
		menuItem -label "Shelf" -command "loadNewShelf shelf_XFrog4;";
		menuItem -label "XFVisor" -command "source XFVisor.mel;";
		menuItem -divider true;
		menuItem -label "Curvature" -command "XFCreateCurveNurbs;";
		menuItem -label "Branch" -command "XFCreateBranch;";
		menuItem -label "Hydra" -command "XFCreateHydra;";
		menuItem -label "Phyllotaxis" -command "XFCreatePhyllotaxis;";
		menuItem -label "Variation" -command "XFCreateVariation;";
		menuItem -label "Tropism" -command "XFCreateTropism;";
		menuItem -label "XfrogTransform" -command "if(`pluginInfo -q -l Xfrog4Maya`==1) { string $xfTransform = `createNode XfrogTransform`; string $xfTransformParent[] = `listRelatives -parent ($xfTransform)`; string $xfTransformLocator[] = `spaceLocator -p 0 0 0`; parent ($xfTransformLocator[0]) ($xfTransformParent[0]); select ($xfTransformParent[0]); }";
		menuItem -divider true;
		menuItem -label "Update" -command "XFUpdateObject;";
		menuItem -label "Free" -command "XFFreeObject;";
		menuItem -divider true;
		menuItem -label "Child" -command "XFConnectChild 0;";
		menuItem -label "Shape" -command "XFConnectChild 1;";
		menuItem -label "Head" -command "XFConnectChild 2;";
		menuItem -label "PathCurve" -command "XFConnectCurve 0;";
		menuItem -label "ShapeCurve" -command "XFConnectCurve 1;";
		menuItem -divider true;
		menuItem -label "Show Input" -command "XFInputVisibility -show;";
		menuItem -label "Hide Input" -command "XFInputVisibility -hide;";
		menuItem -label "Select Mesh" -command "XFSelect -mesh -replace;";
		menuItem -label "Select Obj" -command "XFSelect -object -replace;";
		menuItem -divider true;
		menuItem -label "About" -command "source XFAbout.mel;";
		menuItem -label "Online Help" -command $xfrog4MayaOnlineHelp;
		global string $xfrogRunningTemporary;
		if ($xfrogRunningTemporary == "true") {
			menuItem -label "Request Permanent" -command "XFRequestPermKey";
			//menuItem -label "Enter Key" -command "XFEnterKey";
			menuItem -label "Enter Key" -command "eval $xfStartupEnterAction;";
		}
	setParent -menu ..;
}