<?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<menu_bar name="Main Menu" drop_shadow="false" follows="left|top|right"
          opaque="false" tear_off="false">


  <!-- FILE -->

  <menu name="File" create_jump_keys="true" label="File"
        opaque="true" tear_off="true">
    <menu label="Upload" create_jump_keys="true" name="Upload"
          opaque="true" tear_off="true">
      <menu_item_call name="Upload Image"
                      label="Upload Image ([UPLOADFEE])..."
                      shortcut="control|U">
        <on_click function="File.UploadImage" userdata="" />
        <on_enable function="File.EnableUpload" />
      </menu_item_call>
      <menu_item_call name="Upload Sound"
                      label="Upload Sound ([UPLOADFEE])...">
        <on_click function="File.UploadSound" userdata="" />
        <on_enable function="File.EnableUpload" />
      </menu_item_call>
      <menu_item_call name="Upload Animation"
                      label="Upload Animation ([UPLOADFEE])...">
        <on_click function="File.UploadAnim" userdata="" />
        <on_enable function="File.EnableUpload" />
      </menu_item_call>
      <menu_item_call name="Bulk Upload"
                      label="Bulk Upload ([UPLOADFEE] per file)...">
        <on_click function="File.UploadBulk" userdata="" />
      </menu_item_call>
      <menu_item_separator />
      <menu_item_call name="perm prefs" label="Set Default Permissions...">
        <on_click function="ShowFloater" userdata="perm prefs" />
      </menu_item_call>
    </menu>
    <menu_item_separator />
	  <menu_item_call name="Import" label="Import Object..." enabled="false">
      <on_click function="Object.Import" />
      <on_enable function="Object.EnableImport" />
    </menu_item_call>
    <menu_item_call name="ImportUpload"
                    label="Import + Upload...  ([UPLOADFEE] per texture)"
                    enabled="false">
      <on_click function="Object.ImportUpload" />
      <on_enable function="Object.EnableImport" />
    </menu_item_call>
    <menu_item_call name="Export" label="Export Selected Objects..."
                    enabled="false">
      <on_click function="Object.Export" />
      <on_enable function="Object.EnableExport" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Minimize All Windows"
                label="Minimize All Windows">
      <on_click function="File.MinimizeAllWindows"
                userdata="" />
    </menu_item_call>
    <menu_item_call name="Close Window"
                    label="Close Window"
                    shortcut="control|W">
      <on_click function="File.CloseWindow"
                userdata="" />
      <on_enable function="File.EnableCloseWindow"
                 userdata="" />
    </menu_item_call>
    <menu_item_call name="Close All Windows"
                    label="Close All Windows"
                    shortcut="control|shift|W">
      <on_click function="File.CloseAllWindows"
                userdata="" />
      <on_enable function="File.EnableCloseAllWindows"
                 userdata="" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Save Texture As..."
                    label="Save Texture As...">
      <on_click function="File.SaveTexture" userdata="" />
      <on_enable function="File.EnableSaveAs" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Take Snapshot"
                    label="Take Snapshot"
                    shortcut="control|shift|S">
      <on_click function="File.TakeSnapshot" userdata="" />
    </menu_item_call>
    <menu_item_call name="Snapshot to Disk"
                    label="Snapshot to Disk"
                    shortcut="control|`" useMacCtrl="true">
      <on_click function="File.TakeSnapshotToDisk"
                userdata="" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Quit" label="Quit"
                    shortcut="control|Q">
      <on_click function="File.Quit" userdata="" />
    </menu_item_call>
  </menu>



  <!-- EDIT -->

  <menu name="Edit" create_jump_keys="true" label="Edit"
        opaque="true" tear_off="true">
    <menu_item_call name="Undo" enabled="false" label="Undo"
                    shortcut="control|Z">
      <on_click function="Edit.Undo" userdata="" />
      <on_enable function="Edit.EnableUndo" />
    </menu_item_call>
    <menu_item_call name="Redo" enabled="false" label="Redo"
                    shortcut="control|Y">
      <on_click function="Edit.Redo" userdata="" />
      <on_enable function="Edit.EnableRedo" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Cut" enabled="false" label="Cut"
                    shortcut="control|X">
      <on_click function="Edit.Cut" userdata="" />
      <on_enable function="Edit.EnableCut" />
    </menu_item_call>
    <menu_item_call name="Copy" enabled="false" label="Copy"
                    shortcut="control|C">
      <on_click function="Edit.Copy" userdata="" />
      <on_enable function="Edit.EnableCopy" />
    </menu_item_call>
    <menu_item_call name="Paste" enabled="false" label="Paste"
                    shortcut="control|V">
      <on_click function="Edit.Paste" userdata="" />
      <on_enable function="Edit.EnablePaste" />
    </menu_item_call>
    <menu_item_call name="Delete" enabled="false" label="Delete"
                    shortcut="Del">
      <on_click function="Edit.Delete" userdata="" />
      <on_enable function="Edit.EnableDelete" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Search..." label="Search..."
                    shortcut="control|F">
      <on_click function="Edit.Search" userdata="" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Select All" enabled="false"
                    label="Select All"
                    shortcut="control|A">
      <on_click function="Edit.SelectAll" userdata="" />
      <on_enable function="Edit.EnableSelectAll" />
    </menu_item_call>
    <menu_item_call name="Deselect" enabled="false"
                    label="Deselect"
                    shortcut="control|E">
      <on_click function="Edit.Deselect" userdata="" />
      <on_enable function="Edit.EnableDeselect" />
    </menu_item_call>
    <menu_item_separator />

    <menu name="Attach Object" create_jump_keys="true"
          label="Attach Object" opaque="true" tear_off="true" />

    <menu name="Detach Object" create_jump_keys="true"
          label="Detach Object" opaque="true" tear_off="true" />


    <menu name="Take Off Clothing" create_jump_keys="true"
          label="Take Off Clothing" opaque="true" tear_off="true">

      <menu_item_call name="Shirt" enabled="false" label="Shirt">
        <on_click function="Edit.TakeOff"
                  userdata="shirt" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="shirt" />
      </menu_item_call>
      <menu_item_call name="Pants" enabled="false" label="Pants">
        <on_click function="Edit.TakeOff"
                  userdata="pants" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="pants" />
      </menu_item_call>
      <menu_item_call name="Shoes" enabled="false" label="Shoes">
        <on_click function="Edit.TakeOff"
                  userdata="shoes" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="shoes" />
      </menu_item_call>
      <menu_item_call name="Socks" enabled="false" label="Socks">
        <on_click function="Edit.TakeOff"
                  userdata="socks" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="socks" />
      </menu_item_call>
      <menu_item_call name="Jacket" enabled="false" label="Jacket">
        <on_click function="Edit.TakeOff"
                  userdata="jacket" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="jacket" />
      </menu_item_call>
      <menu_item_call name="Gloves" enabled="false" label="Gloves">
        <on_click function="Edit.TakeOff"
                  userdata="gloves" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="gloves" />
      </menu_item_call>
      <menu_item_call name="Menu Undershirt" enabled="false"
                      label="Undershirt">
        <on_click function="Edit.TakeOff"
                  userdata="undershirt" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="undershirt" />
      </menu_item_call>
      <menu_item_call name="Menu Underpants" enabled="false"
                      label="Underpants">
        <on_click function="Edit.TakeOff"
                  userdata="underpants" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="underpants" />
      </menu_item_call>
      <menu_item_call name="Skirt" enabled="false" label="Skirt">
        <on_click function="Edit.TakeOff"
                  userdata="skirt" />
        <on_enable function="Edit.EnableTakeOff"
                   userdata="skirt" />
      </menu_item_call>
      <menu_item_call enabled="false" label="Tattoo" name="Tattoo">
        <on_click function="Edit.TakeOff" 
                  userdata="tattoo" />
        <on_enable function="Edit.EnableTakeOff" 
                   userdata="tattoo" />
      </menu_item_call>
      <menu_item_call enabled="false" label="Alpha" name="Alpha">
        <on_click function="Edit.TakeOff" 
                  userdata="alpha" />
        <on_enable function="Edit.EnableTakeOff" 
                   userdata="alpha" />
      </menu_item_call>
      <menu_item_call name="All Clothes" label="All Clothes">
        <on_click function="Edit.TakeOff"
                  userdata="all" />
      </menu_item_call>
    </menu>
      <menu_item_call name="Refresh Appearance"
                      label="Refresh Appearance"
                      shortcut="control|alt|R">
        <on_click function="Advanced.RebakeTextures"
                  userdata="" />
      </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Gestures" label="Gestures"
                    shortcut="control|G">
      <on_click function="ShowFloater"
                userdata="gestures" />
    </menu_item_call>
    <menu_item_call name="Profile..." label="Profile...">
      <on_click function="ShowAgentProfile"
                userdata="agent" />
    </menu_item_call>
    <menu_item_call name="Appearance..." label="Appearance...">
      <on_click function="ShowFloater"
                userdata="appearance" />
      <on_enable function="Edit.EnableCustomizeAvatar" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_check name="Friends" label="Friends"
                     shortcut="control|shift|F">
      <on_click function="ShowFloater"
                userdata="friends" />
      <on_check function="FloaterVisible"
                userdata="friends" />
    </menu_item_check>
    <menu_item_call name="Groups" label="Groups">
      <on_click function="ShowAgentGroups"
                userdata="agent" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Preferences..." label="Preferences..."
                    shortcut="control|P">
      <on_click function="ShowFloater"
                userdata="preferences" />
    </menu_item_call>
  </menu>



  <!-- VIEW -->

  <menu name="View" create_jump_keys="true" label="View"
        opaque="true" tear_off="true">
    <menu_item_call name="Mouselook" label="Mouselook"
                    shortcut="M">
      <on_click function="View.Mouselook" userdata="" />
      <on_enable function="View.EnableMouselook" />
    </menu_item_call>
    <menu_item_check name="Build" label="Build"
                     shortcut="B">
      <on_click function="View.BuildMode" userdata="" />
      <on_check function="View.CheckBuildMode" />
    </menu_item_check>
    <menu_item_check name="Joystick Flycam" label="Joystick Flycam"
                     shortcut="alt|shift|F">
      <on_click function="View.JoystickFlycam" userdata="" />
      <on_check function="View.CheckJoystickFlycam" />
      <on_enable function="View.EnableJoystickFlycam" />
    </menu_item_check>
    <menu_item_call name="Reset View" label="Reset View"
                    shortcut="Esc">
      <on_click function="View.ResetView" userdata="" />
    </menu_item_call>
    <menu_item_call name="Look at Last Chatter" enabled="false"
                    label="Look at Last Chatter" shortcut="control|\">
      <on_click function="View.LookAtLastChatter" userdata="" />
      <on_enable function="View.EnableLastChatter" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Web Browser" label="Web Browser"
                    shortcut="control|B">
      <on_click function="ShowFloater" userdata="inworld browser" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_check name="Toolbar" label="Toolbar">
      <on_click function="ShowFloater" userdata="toolbar" />
      <on_check function="FloaterVisible" userdata="toolbar" />
    </menu_item_check>
    <menu_item_check name="Chat History" label="Local Chat"
                     shortcut="control|H">
      <on_click function="ShowFloater" userdata="chat history" />
      <on_check function="FloaterVisible" userdata="chat history" />
    </menu_item_check>
    <menu_item_check name="Instant Message" label="Communicate"
                     shortcut="control|T">
      <on_click function="View.Communicate"/>
      <on_check function="FloaterVisible" userdata="communicate" />
    </menu_item_check>
    <menu_item_call name="Inventory" label="Inventory"
                    shortcut="control|I">
      <on_click function="ShowFloater" userdata="inventory" />
      <on_check function="FloaterVisible" userdata="inventory" />
    </menu_item_call>
    <menu_item_check name="Active Speakers" label="Active Speakers">
      <on_click function="ShowFloater" userdata="active speakers" />
      <on_check function="FloaterVisible" userdata="active speakers" />
    </menu_item_check>
    <menu_item_check name="Mute List" label="Mute List">
      <on_click function="ShowFloater" userdata="mute list" />
      <on_check function="FloaterVisible" userdata="mute list" />
    </menu_item_check>
	  <menu_item_check name="Teleport History" label="Teleport History"
                     shortcut="alt|H">
		  <on_click function="ShowFloater" userdata="teleport history" />
		  <on_check function="FloaterVisible" userdata="teleport history" />
	  </menu_item_check>
    <menu_item_separator />
    <menu_item_check name="Camera Controls" label="Camera Controls">
      <on_click function="ShowFloater" userdata="camera controls" />
      <on_check function="FloaterVisible" userdata="camera controls" />
    </menu_item_check>
    <menu_item_check name="Movement Controls" label="Movement Controls">
      <on_click function="ShowFloater" userdata="movement controls" />
      <on_check function="FloaterVisible" userdata="movement controls" />
    </menu_item_check>
    <menu_item_check name="World Map" label="World Map"
                     shortcut="control|M">
      <on_click function="ShowFloater" userdata="world map" />
      <on_check control="ShowWorldMap" />
    </menu_item_check>
    <menu_item_check name="Mini-Map" label="Mini-Map"
                     shortcut="control|shift|M">
      <on_click function="ShowFloater" userdata="mini map" />
      <on_check control="ShowMiniMap" />
    </menu_item_check>
    <menu_item_separator />
    <menu_item_check label="Animation Overrider" name="AO" 
                     shortcut="control|shift|O">
      <on_click function="View.ToggleAO" userdata="" />
      <on_check function="View.CheckAO" />
    </menu_item_check>
    <menu_item_separator />
    <menu_item_check name="Statistics Bar" label="Statistics Bar"
                     shortcut="control|shift|1">
      <on_click function="ShowFloater" userdata="stat bar" />
      <on_check function="FloaterVisible" userdata="stat bar" />
    </menu_item_check>
    <menu_item_check name="Property Lines" label="Property Lines"
                     shortcut="control|alt|shift|P">
      <on_click function="ToggleControl" userdata="ShowPropertyLines" />
      <on_check control="ShowPropertyLines" />
    </menu_item_check>
		<menu_item_check label="Banlines" enabled="true" name="Banlines">
			<on_click function="ToggleControl" userdata="ShowBanLines" />
			<on_check control="ShowBanLines" />
		</menu_item_check>
    <menu_item_check name="Land Owners" label="Land Owners">
      <on_click function="ToggleControl" userdata="ShowParcelOwners" />
      <on_check control="ShowParcelOwners" />
    </menu_item_check>
    <menu_item_separator />
    <menu name="Hover Tips" create_jump_keys="true" label="Hover Tips"
          opaque="true" tear_off="true">
      <menu_item_check name="Show Tips" label="Show Tips"
                       shortcut="control|shift|T">
        <on_click function="View.ShowHoverTips" userdata="" />
        <on_check function="View.CheckShowHoverTips" />
      </menu_item_check>
      <menu_item_separator />
      <menu_item_check name="Land Tips" label="Land Tips">
        <on_click function="ToggleControl"
                  userdata="ShowLandHoverTip" />
        <on_enable function="View.CheckShowHoverTips" />
        <on_check control="ShowLandHoverTip" />
      </menu_item_check>
      <menu_item_check name="Tips On All Objects"
                       label="Tips On All Objects">
        <on_click function="ToggleControl"
                  userdata="ShowAllObjectHoverTip" />
        <on_enable function="View.CheckShowHoverTips" />
        <on_check control="ShowAllObjectHoverTip" />
      </menu_item_check>
    </menu>
    <menu_item_check name="Highlight Transparent"
                     label="Highlight Transparent"
                     shortcut="control|alt|T">
      <on_click function="View.HighlightTransparent" userdata="" />
      <on_check function="View.CheckHighlightTransparent" />
    </menu_item_check>
    <menu_item_check name="beacons" label="Beacons"
                     shortcut="control|alt|shift|N">
      <on_click function="ShowFloater" userdata="beacons" />
      <on_check function="FloaterVisible" userdata="beacons" />
    </menu_item_check>
    <menu_item_check name="Hide Particles" label="Hide Particles"
                     shortcut="control|alt|shift|=">
      <on_click function="View.ToggleRenderType" userdata="hideparticles" />
      <on_check function="View.CheckRenderType" userdata="hideparticles" />
    </menu_item_check>
    <menu_item_check name="Show HUD Attachments" label="Show HUD Attachments"
                     shortcut="alt|shift|H">
      <on_click function="View.ShowHUDAttachments" userdata="" />
      <on_check function="View.CheckHUDAttachments" />
    </menu_item_check>
    <menu_item_separator />
    <menu name="Zoom Level" create_jump_keys="true"
            label="Zoom Level" opaque="true" tear_off="true">
      <menu_item_call name="Zoom In" label="Zoom In"
                      shortcut="control|0">
        <on_click function="View.ZoomIn" userdata="" />
      </menu_item_call>
      <menu_item_call name="Zoom Default" label="Zoom Default"
                      shortcut="control|9">
        <on_click function="View.ZoomDefault" userdata="" />
      </menu_item_call>
      <menu_item_call name="Zoom Out" label="Zoom Out"
                      shortcut="control|8">
        <on_click function="View.ZoomOut" userdata="" />
      </menu_item_call>
    </menu>
    <menu_item_call name="Toggle Fullscreen" label="Toggle Fullscreen"
                    shortcut="alt|Enter">
      <on_click function="View.Fullscreen" userdata="" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_check name="Toggle Advanced Menu" 
                    label="Advanced Menu"
                    shortcut="control|alt|D"
                    shortcut_linux="control|alt|shift|D">
      <on_click function="View.ToggleAdvanced" userdata="" />
      <on_check function="View.CheckAdvanced" />
    </menu_item_check>
  </menu>



  <!-- WORLD -->

  <menu name="World" create_jump_keys="true" label="World"
        opaque="true" tear_off="true">
    <menu_item_call name="Chat" label="Chat" shortcut="">
      <on_click function="World.Chat" userdata="" />
    </menu_item_call>
    <menu_item_check name="Always Run" label="Always Run"
                     shortcut="control|R">
      <on_click function="World.AlwaysRun" userdata="" />
      <on_check function="World.CheckAlwaysRun" userdata="" />
    </menu_item_check>
    <menu_item_check name="Fly" label="Fly" shortcut="Home">
      <on_click function="World.Fly" userdata="" />
      <on_enable function="World.EnableFly" />
      <on_check control="FlyBtnState" />
    </menu_item_check>
    <menu_item_separator />
    <menu_item_call name="Create Landmark Here" label="Create Landmark Here"
                    shortcut="control|shift|D">
      <on_click function="World.CreateLandmark" userdata="" />
      <on_enable function="World.EnableCreateLandmark" userdata="" />
    </menu_item_call>
    <menu_item_call name="Set Home to Here" label="Set Home to Here">
      <on_click function="World.SetHomeLocation" userdata="" />
      <on_enable function="World.EnableSetHomeLocation" userdata="" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Teleport Home" label="Teleport Home"
                    shortcut="control|shift|H">
      <on_click function="World.TeleportHome" userdata="" />
      <on_enable function="World.EnableTeleportHome" userdata="" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Set Away" label="Set Away">
      <on_click function="World.SetAway" userdata="" />
    </menu_item_call>
    <menu_item_call name="Set Busy" label="Set Busy">
      <on_click function="World.SetBusy" userdata="" />
    </menu_item_call>
    <menu_item_check name="Auto-Respond to IMs" label="Auto-Respond to IMs">
      <on_click function="World.ToggleAutoResponse" userdata="" />
      <on_check function="World.CheckAutoResponse" userdata="" />
    </menu_item_check>
    <menu_item_separator />
    <menu_item_call name="Stop Animating My Avatar" enabled="false"
                    label="Stop Animating My Avatar">
      <on_click function="Tools.StopAllAnimations" userdata="" />
    </menu_item_call>
    <menu_item_call name="Release Keys" enabled="false" label="Release Keys">
      <on_click function="Tools.ReleaseKeys" userdata="" />
      <on_enable function="Tools.EnableReleaseKeys" userdata="" />
		</menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Account History..."
                    label="Account History...">
      <on_click function="PromptShowURL" name="AccountHistory_url"
                userdata="WebLaunchAccountHistory,http://secondlife.com/account/transactions.php" />
    </menu_item_call>
    <menu_item_call name="Manage My Account..."
                    label="Manage My Account...">
      <on_click function="PromptShowURL" name="ManageMyAccount_url"
                userdata="WebLaunchJoinNow,http://secondlife.com/account/" />
    </menu_item_call>
    <menu_item_call name="Buy and Sell L$..." label="Buy [CURRENCY]...">
      <on_click function="ShowFloater" userdata="buy currency" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="My Land" label="My Land">
      <on_click function="ShowFloater" userdata="my land" />
    </menu_item_call>
    <menu_item_call name="About Land" label="About Land">
      <on_click function="ShowFloater" userdata="about land" />
    </menu_item_call>
    <menu_item_call name="Buy Land..." label="Buy Land...">
      <on_click function="ShowFloater" userdata="buy land" />
      <on_enable function="World.EnableBuyLand" />
    </menu_item_call>
    <menu_item_call name="Region/Estate" label="Region/Estate">
      <on_click function="ShowFloater" userdata="about region" />
    </menu_item_call>
    <menu_item_separator />
    <menu name="Environment Settings" create_jump_keys="true"
          label="Environment Settings" opaque="true" tear_off="true">
      <menu_item_call name="Sunrise" label="Sunrise">
        <on_click function="World.EnvSettings" userdata="sunrise" />
      </menu_item_call>
      <menu_item_call name="Noon" label="Midday"
                      shortcut="control|shift|Y">
        <on_click function="World.EnvSettings" userdata="noon" />
      </menu_item_call>
      <menu_item_call name="Sunset" label="Sunset"
                      shortcut="control|shift|N">
        <on_click function="World.EnvSettings" userdata="sunset" />
      </menu_item_call>
      <menu_item_call name="Midnight" label="Midnight">
        <on_click function="World.EnvSettings" userdata="midnight" />
      </menu_item_call>
      <menu_item_call name="Revert to Region Default" enabled="false"
                      label="Revert to Region Default">
        <on_click function="World.EnvSettings" userdata="default" />
      </menu_item_call>
      <menu_item_separator />
      <menu_item_call name="Environment Editor" enabled="false"
                      label="Environment Editor">
        <on_click function="World.EnvSettings" userdata="editor" />
      </menu_item_call>
    </menu>
  </menu>



  <!-- TOOLS -->

  <menu name="Tools" create_jump_keys="true" label="Tools"
        opaque="true" tear_off="true" visible="false">
    <menu name="Select Tool" create_jump_keys="true" label="Choose Tool"
          opaque="true" tear_off="true">
      <menu_item_call name="Focus" label="Focus" shortcut="control|1">
        <on_click function="Tools.SelectTool" userdata="focus" />
      </menu_item_call>
      <menu_item_call name="Move" label="Move" shortcut="control|2">
        <on_click function="Tools.SelectTool" userdata="move" />
      </menu_item_call>
      <menu_item_call name="Edit" label="Edit" shortcut="control|3">
        <on_click function="Tools.SelectTool" userdata="edit" />
      </menu_item_call>
      <menu_item_call name="Create" label="Create" shortcut="control|4">
        <on_click function="Tools.SelectTool" userdata="create" />
      </menu_item_call>
      <menu_item_call name="Land" label="Land" shortcut="control|5">
        <on_click function="Tools.SelectTool" userdata="land" />
      </menu_item_call>
    </menu>
    <menu_item_separator />
    <menu_item_call name="Focus on Selection" enabled="false"
                    label="Focus on Selection" shortcut="H">
      <on_click function="Tools.LookAtSelection" userdata="focus" />
      <on_enable function="Tools.SomethingSelectedNoHUD" />
    </menu_item_call>
    <menu_item_call name="Zoom to Selection" enabled="false"
                    label="Zoom to Selection" shortcut="shift|H">
      <on_click function="Tools.LookAtSelection" userdata="zoom" />
      <on_enable function="Tools.SomethingSelectedNoHUD" />
    </menu_item_call>
    <menu name="Selection Options" label="Selection Options"
          create_jump_keys="true" opaque="true" tear_off="true">
      <menu_item_check name="Select Only My Objects"
                       label="Select Only My Objects">
        <on_click function="Tools.SelectOnlyMyObjects"
                  userdata="agents" />
        <on_check control="SelectOwnedOnly" />
      </menu_item_check>
      <menu_item_check name="Select Only Movable Objects"
                       label="Select Only Movable Objects">
        <on_click function="Tools.SelectOnlyMovableObjects"
                  userdata="movable" />
        <on_check control="SelectMovableOnly" />
      </menu_item_check>
      <menu_item_check name="Select Only Copyable Objects"
                       label="Select Only Copyable Objects">
        <on_click function="Tools.SelectOnlyCopyableObjects"
                  userdata="copyable" />
        <on_check control="SelectCopyableOnly" />
      </menu_item_check>
      <menu_item_check name="Select By Surrounding"
                       label="Select By Surrounding">
        <on_click function="Tools.SelectBySurrounding"
                  userdata="" />
        <on_check control="RectangleSelectInclusive" />
      </menu_item_check>
      <menu_item_separator />
      <menu_item_check name="Show Hidden Selection"
                       label="Show Hidden Selection">
        <on_click function="Tools.ShowHiddenSelection"
                  userdata="" />
        <on_check control="RenderHiddenSelections" />
      </menu_item_check>
      <menu_item_check name="Show Light Radius for Selection"
                       label="Show Light Radius for Selection">
        <on_click function="Tools.ShowSelectionLightRadius"
                  userdata="" />
        <on_check control="RenderLightRadius" />
      </menu_item_check>
      <menu_item_check label="Show Selection Outlines"
                       name="Show Selection Outlines">
        <on_click function="Tools.ShowSelectionHighlights" userdata="" />
        <on_check control="RenderHighlightSelections" />
      </menu_item_check>
      <menu_item_check name="Show Selection Beam"
                       label="Show Selection Beam">
        <on_click function="ToggleControl"
                  userdata="ShowSelectionBeam" />
        <on_check control="ShowSelectionBeam" />
      </menu_item_check>
    </menu>
    <menu_item_separator />
    <menu_item_check name="Snap to Grid" enabled="false"
                     label="Snap to Grid" shortcut="G">
      <on_click function="ToggleControl"
                userdata="SnapEnabled" />
      <on_check control="SnapEnabled" />
      <on_enable function="Tools.EnableToolNotPie" />
    </menu_item_check>
    <menu_item_call name="Snap Object XY to Grid" enabled="false"
                    label="Snap Object XY to Grid" shortcut="shift|X">
      <on_click function="Tools.SnapObjectXY" userdata="" />
      <on_enable function="Tools.EnableToolNotPie" />
    </menu_item_call>
    <menu_item_call name="Use Selection for Grid" enabled="false"
                    label="Use Selection for Grid" shortcut="shift|G">
      <on_click function="Tools.UseSelectionForGrid" userdata="" />
      <on_enable function="SomethingSelected" />
    </menu_item_call>
    <menu_item_call name="Advanced Build Options..." enabled="false"
                    label="Advanced Build Options..." shortcut="control|shift|B">
      <on_click function="ShowFloater" userdata="grid options" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_check name="Edit Linked Parts" enabled="false"
                     label="Edit Linked Parts" shortcut="">
      <on_click function="ToggleControl" userdata="EditLinkedParts" />
      <on_click function="Tools.EditLinkedParts" userdata="" />
      <on_check control="EditLinkedParts" />
      <on_enable function="Tools.EnableToolNotPie" />
    </menu_item_check>
    <menu create_jump_keys="true" drop_shadow="true" enabled="true" label="Select Linked Parts"
			 mouse_opaque="false" name="Select Linked Parts" opaque="true" tear_off="true">
			<menu_item_call enabled="false" label="Select Next Part" mouse_opaque="true"
				 name="Select Next Part" shortcut="control|.">
				<on_click function="Tools.SelectNextPart" userdata="next" />
				<on_enable function="Tools.EnableSelectNextPart" />
      </menu_item_call>
			<menu_item_call enabled="false" label="Select Previous Part" mouse_opaque="true"
				 name="Select Previous Part" shortcut="control|,">
				<on_click function="Tools.SelectNextPart" userdata="previous" />
				<on_enable function="Tools.EnableSelectNextPart" />
      </menu_item_call>
			<menu_item_call enabled="false" label="Include Next Part" mouse_opaque="true"
				 name="Include Next Part" shortcut="control|shift|.">
				<on_click function="Tools.SelectNextPart" userdata="includenext" />
				<on_enable function="Tools.EnableSelectNextPart" />
      </menu_item_call>
			<menu_item_call enabled="false" label="Include Previous Part" mouse_opaque="true"
				 name="Include Previous Part" shortcut="control|shift|,">
				<on_click function="Tools.SelectNextPart" userdata="includeprevious" />
				<on_enable function="Tools.EnableSelectNextPart" />
      </menu_item_call>
    </menu>
    <menu_item_call name="Link" enabled="false" label="Link"
                    shortcut="control|L">
      <on_click function="Tools.Link" userdata="" />
      <on_enable function="Tools.EnableLink" />
    </menu_item_call>
    <menu_item_call name="Unlink" enabled="false" label="Unlink"
                    shortcut="control|shift|L">
      <on_click function="Tools.Unlink" userdata="" />
      <on_enable function="Tools.EnableUnlink" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Duplicate" enabled="false"
                    label="Duplicate" shortcut="control|D">
      <on_click function="Edit.Duplicate" userdata="" />
      <on_enable function="Edit.EnableDuplicate" />
    </menu_item_call>
    <menu_item_call name="Menu Object Take" enabled="false"
                    label="Take" visible="false">
      <on_click function="Tools.Take" userdata=""/>
      <on_enable function="Tools.EnableTake" name="EnableTake"/>
    </menu_item_call>
    <menu_item_call name="Take Copy" enabled="false"
                    label="Take Copy">
      <on_click function="Tools.TakeCopy" userdata="" />
      <on_enable function="Tools.EnableTakeCopy" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Return..." enabled="false"
                    label="Return Object">
      <on_click function="Object.Return" />
      <on_enable function="Object.EnableReturn" />
    </menu_item_call>
    <menu_item_call name="Save Object Back to Object Contents"
                    enabled="false"
                    label="Save Object Back to Object Contents">
      <on_click function="Tools.SaveToObjectInventory" userdata="" />
      <on_enable function="Tools.EnableSaveToObjectInventory" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Show Script Warning/Error Window"
                    label="Show Script Warning/Error Window">
      <on_click function="ShowFloater" userdata="script errors" />
    </menu_item_call>
		<menu name="Recompile Scripts in Selection" create_jump_keys="true"
		      label="Recompile Scripts in Selection" opaque="true"
          tear_off="true">
		  <menu_item_call name="Mono" label="Mono">
			  <on_click function="Tools.SelectedScriptAction"
                  userdata="compile mono" />
			  <on_enable function="EditableSelectedMono" />
		  </menu_item_call>
		  <menu_item_call name="LSL" label="LSL">
			  <on_click function="Tools.SelectedScriptAction"
                  userdata="compile lsl" />
			  <on_enable function="EditableSelected" />
		  </menu_item_call>
		</menu>
    <menu_item_call name="Reset Scripts in Selection" enabled="false"
                    label="Reset Scripts in Selection">
      <on_click function="Tools.SelectedScriptAction"
                userdata="reset" />
      <on_enable function="EditableSelected" />
    </menu_item_call>
    <menu_item_call name="Set Scripts to Running in Selection"
                    enabled="false"
                    label="Set Scripts to Running in Selection">
      <on_click function="Tools.SelectedScriptAction"
                userdata="start" />
      <on_enable function="EditableSelected" />
    </menu_item_call>
    <menu_item_call name="Set Scripts to Not Running in Selection"
                    enabled="false"
                    label="Set Scripts to Not Running in Selection">
      <on_click function="Tools.SelectedScriptAction"
                userdata="stop" />
      <on_enable function="EditableSelected" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Set permissions on selected task inventory"
                    enabled="false"
                    label="Bulk Set Permissions">
      <on_click function="Tools.SetBulkPerms" userdata="" />
      <on_enable function="EditableSelected" />
    </menu_item_call>
  </menu>



  <!-- HELP -->

  <menu name="Help" create_jump_keys="true" label="Help"
        opaque="true" tear_off="true">
    <menu_item_call name="Grid Help" label="Grid Help"
                    shortcut="F1">
      <on_click function="ShowFloater" userdata="help f1" />
    </menu_item_call>
    <menu_item_call name="Tutorial" label="Tutorial">
      <on_click function="ShowFloater" userdata="help tutorial" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Imprudence Blog"
                    label="Imprudence Blog">
      <on_click function="PromptShowURL"
                userdata="WebLaunchImprudenceBlog,http://imprudenceviewer.org/" />
    </menu_item_call>
    <menu_item_call name="Imprudence Forums"
                    label="Imprudence Forums">
      <on_click function="PromptShowURL"
                userdata="WebLaunchImprudenceForums,http://imprudenceviewer.org/forums/" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Scripting Portal"
                    label="Scripting Portal">
      <on_click function="PromptShowURL" name="ScriptingPortal_url"
                userdata="WebLaunchLSLWiki,http://wiki.secondlife.com/wiki/LSL_Portal" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="Report Abuse..." label="Report Abuse...">
      <on_click function="ShowFloater"
                userdata="complaint reporter" />
    </menu_item_call>
    <menu_item_call name="Bumps, Pushes &amp;amp; Hits"
                    label="Bumps, Pushes &amp; Hits">
      <on_click function="ShowFloater" userdata="mean events" />
    </menu_item_call>
    <menu_item_call name="Lag Meter" label="Lag Meter">
      <on_click function="ShowFloater" userdata="lag meter" />
    </menu_item_call>
    <menu_item_separator />
    <menu_item_call name="About Imprudence"
                    label="About Imprudence">
      <on_click function="ShowFloater" userdata="about" />
    </menu_item_call>
  </menu>



  <!-- ADVANCED -->

  <menu name="Advanced" drop_shadow="true"
        opaque="true" tear_off="true">


    <!-- CONSOLES -->

    <menu name="Consoles" drop_shadow="true"
          opaque="true" tear_off="true">
      <menu_item_check name="Frame Console" label="Frame Console"
                       shortcut="control|shift|2">
        <on_click function="Advanced.ToggleConsole"
                  userdata="frame" />
        <on_check function="Advanced.CheckConsole"
                  userdata="frame" />
      </menu_item_check>
      <menu_item_check name="Texture Console" label="Texture Console"
                       shortcut="control|shift|3">
        <on_click function="Advanced.ToggleConsole"
                  userdata="texture" />
        <on_check function="Advanced.CheckConsole"
                  userdata="texture" />
      </menu_item_check>
      <menu_item_check name="Debug Console" label="Debug Console"
                       shortcut="control|shift|4">
        <on_click function="Advanced.ToggleConsole"
                  userdata="debug" />
        <on_check function="Advanced.CheckConsole"
                  userdata="debug" />
      </menu_item_check>
      <menu_item_check name="Fast Timers" label="Fast Timers"
                       shortcut="control|shift|9">
        <on_click function="Advanced.ToggleConsole"
                  userdata="fast timers" />
        <on_check function="Advanced.CheckConsole"
                  userdata="fast timers" />
      </menu_item_check>
      <!-- Requires compiled-in support, I think?
      <menu_item_check name="Memory" label="Memory"
                       shortcut="control|shift|0">
        <on_click function="Advanced.ToggleConsole"
                  userdata="memory" />
        <on_check function="Advanced.CheckConsole"
                  userdata="memory" />
      </menu_item_check>
      -->
      <menu_item_separator />
      <menu_item_call name="Notifications Console" label="Notifications Console"
                       shortcut="control|shift|5">
        <on_click function="Advanced.ToggleConsole"
                  userdata="notifications" />
      </menu_item_call>
      <menu_item_separator />
      <menu_item_call name="Region Info to Debug Console"
                      label="Region Info to Debug Console">
        <on_click function="Advanced.DumpInfoToConsole"
                  userdata="region" />
      </menu_item_call>
      <menu_item_call name="Group Info to Debug Console"
                      label="Group Info to Debug Console">
        <on_click function="Advanced.DumpInfoToConsole"
                  userdata="group" />
      </menu_item_call>
      <menu_item_call name="Capabilities Info to Debug Console"
                      label="Capabilities Info to Debug Console">
        <on_click function="Advanced.DumpInfoToConsole"
                  userdata="capabilities" />
      </menu_item_call>
    
    </menu>


    <menu_item_call name="Reload personal setting overrides"
                    label="Reload personal settings overrides"
                    shortcut="control|shift|F2">
      <on_click function="Advanced.ReloadSettingsOverrides" userdata="" />
    </menu_item_call>



    <!-- HUD INFO -->

    <menu name="HUD Info" drop_shadow="true"
          opaque="true" tear_off="true">
      <menu_item_check name="Velocity" label="Velocity">
        <on_click function="Advanced.ToggleHUDInfo"
                  userdata="velocity" />
        <on_check function="Advanced.CheckHUDInfo"
                  userdata="velocity" />
      </menu_item_check>
      <menu_item_check name="Camera" label="Camera">
        <on_click function="Advanced.ToggleHUDInfo"
                  userdata="camera" />
        <on_check function="Advanced.CheckHUDInfo"
                  userdata="camera" />
      </menu_item_check>
      <menu_item_check name="Wind" label="Wind">
        <on_click function="Advanced.ToggleHUDInfo"
                  userdata="wind" />
        <on_check function="Advanced.CheckHUDInfo"
                  userdata="wind" />
      </menu_item_check>
      <menu_item_check name="FOV" label="FOV">
        <on_click function="Advanced.ToggleHUDInfo"
                  userdata="fov" />
        <on_check function="Advanced.CheckHUDInfo"
                  userdata="fov" />
      </menu_item_check>
    </menu>


    <menu_item_separator />


    <menu_item_call label="Ground Sit" name="Ground Sit" 
                    shortcut="control|alt|s">
      <on_click function="Advanced.ToggleSit" userdata="" />
      <on_Check function="Advanced.CheckSit" userdata="" />
    </menu_item_call>
    <menu_item_call name="Teleport to Ground" label="Teleport to Ground">
      <on_click function="Advanced.TPToGround" userdata="" />
    </menu_item_call>
    <menu_item_check label="Phantom Avatar" name="Phantom" 
                     shortcut="control|alt|p">
      <on_click function="Advanced.TogglePhantom" userdata="" />
      <on_check function="Advanced.CheckPhantom" userdata="" />
    </menu_item_check>
    <menu_item_check label="Animation List" name="Animation List">
      <on_click function="ShowFloater" userdata="animation list" />
      <on_check function="FloaterVisible" userdata="animation list" />
    </menu_item_check>
		<menu_item_check label="Area Object Search" name="Area Object Search" shortcut="control|shift|A">
			<on_click function="ShowFloater" userdata="areasearch" />
			<on_check function="FloaterVisible" userdata="areasearch" />
    </menu_item_check>
    <menu_item_check label="Asset Browser" name="asset browser" 
                     shortcut="alt|shift|a">
      <on_click function="Advanced.ToggleAssetBrowser" userdata="" />
      <on_check function="Advanced.CheckAssetBrowser" userdata="" />
    </menu_item_check>
    <menu_item_separator />



    <!-- RENDERING -->

    <menu name="Rendering" drop_shadow="true"
          opaque="true" tear_off="true">

      <!-- TYPES -->
      <menu name="Types" drop_shadow="true"
            opaque="true" tear_off="true">
        <menu_item_check name="Simple" label="Simple"
                         shortcut="control|alt|shift|1">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="simple" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="simple" />
        </menu_item_check>
        <menu_item_check name="Alpha" label="Alpha"
                         shortcut="control|alt|shift|2">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="alpha" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="alpha" />
        </menu_item_check>
        <menu_item_check name="Tree" label="Tree"
                         shortcut="control|alt|shift|3">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="tree" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="tree" />
        </menu_item_check>
        <menu_item_check name="Character" label="Character"
                         shortcut="control|alt|shift|4">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="avatar" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="avatar" />
        </menu_item_check>
        <menu_item_check name="SurfacePatch" label="SurfacePatch"
                         shortcut="control|alt|shift|5">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="terrain" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="terrain" />
        </menu_item_check>
        <menu_item_check name="Sky" label="Sky"
                         shortcut="control|alt|shift|6">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="sky" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="sky" />
        </menu_item_check>
        <menu_item_check name="Water" label="Water"
                         shortcut="control|alt|shift|7">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="water" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="water" />
        </menu_item_check>
        <menu_item_check name="Ground" label="Ground"
                         shortcut="control|alt|shift|8">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="ground" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="ground" />
        </menu_item_check>
        <menu_item_check name="Volume" label="Volume"
                         shortcut="control|alt|shift|9">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="volume" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="volume" />
        </menu_item_check>
        <menu_item_check name="Grass" label="Grass"
                         shortcut="control|alt|shift|0">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="grass" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="grass" />
        </menu_item_check>
        <menu_item_check name="Clouds" label="Clouds"
                         shortcut="control|alt|shift|-">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="clouds" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="clouds" />
        </menu_item_check>
        <menu_item_check name="Particles" label="Particles"
                         shortcut="control|alt|shift|=">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="particles" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="particles" />
        </menu_item_check>
        <menu_item_check name="Bump" label="Bump"
                         shortcut="control|alt|shift|\">
          <on_click function="Advanced.ToggleRenderType"
                    userdata="bump" />
          <on_check function="Advanced.CheckRenderType"
                    userdata="bump" />
        </menu_item_check>
      </menu>


      <!-- FEATURES -->
      <menu name="Features" drop_shadow="true"
            opaque="true" tear_off="true">
        <menu_item_check name="UI" label="UI"
                         shortcut="alt|shift|F1">
          <on_click function="Advanced.ToggleFeature"
                    userdata="ui" />
          <on_check function="Advanced.CheckFeature"
                    userdata="ui" />
        </menu_item_check>
        <menu_item_check name="Selected" label="Selected"
                         shortcut="alt|shift|F2">
          <on_click function="Advanced.ToggleFeature"
                    userdata="selected" />
          <on_check function="Advanced.CheckFeature"
                    userdata="selected" />
        </menu_item_check>
        <menu_item_check name="Highlighted" label="Highlighted"
                         shortcut="alt|shift|F3">
          <on_click function="Advanced.ToggleFeature"
                    userdata="highlighted" />
          <on_check function="Advanced.CheckFeature"
                    userdata="highlighted" />
        </menu_item_check>
        <menu_item_check name="Dynamic Textures" label="Dynamic Textures"
                         shortcut="alt|shift|F4">
          <on_click function="Advanced.ToggleFeature"
                    userdata="dynamic textures" />
          <on_check function="Advanced.CheckFeature"
                    userdata="dynamic textures" />
        </menu_item_check>
        <menu_item_check name="Foot Shadows" label="Foot Shadows"
                         shortcut="alt|shift|F5">
          <on_click function="Advanced.ToggleFeature"
                    userdata="foot shadows" />
          <on_check function="Advanced.CheckFeature"
                    userdata="foot shadows" />
        </menu_item_check>
        <menu_item_check name="Fog" label="Fog"
                         shortcut="alt|shift|F6">
          <on_click function="Advanced.ToggleFeature"
                    userdata="fog" />
          <on_check function="Advanced.CheckFeature"
                    userdata="fog" />
        </menu_item_check>
        <menu_item_check name="Test FRInfo" label="Test FRInfo"
                         shortcut="alt|shift|F8">
          <on_click function="Advanced.ToggleFeature"
                    userdata="fr info" />
          <on_check function="Advanced.CheckFeature"
                    userdata="fr info" />
        </menu_item_check>
        <menu_item_check name="Flexible Objects"
                         label="Flexible Objects"
                         shortcut="alt|shift|F9">
          <on_click function="Advanced.ToggleFeature"
                    userdata="flexible" />
          <on_check function="Advanced.CheckFeature"
                    userdata="flexible" />
        </menu_item_check>
      </menu>


      <!-- INFO DISPLAYS -->
      <menu name="Info Displays" drop_shadow="true"
            opaque="true" tear_off="true">
        <menu_item_check name="Verify" label="Verify">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="verify" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="verify" />
        </menu_item_check>
        <menu_item_check name="BBoxes" label="BBoxes">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="bboxes" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="bboxes" />
        </menu_item_check>
        <menu_item_check name="Points" label="Points">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="points" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="points" />
        </menu_item_check>
        <menu_item_check name="Octree" label="Octree">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="octree" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="octree" />
        </menu_item_check>
        <menu_item_check name="Occlusion" label="Occlusion">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="occlusion" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="occlusion" />
        </menu_item_check>
        <menu_item_check name="Render Batches"
                         label="Render Batches">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="render batches" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="render batches" />
        </menu_item_check>
        <menu_item_check name="Animated Textures"
                         label="Animated Textures">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="texture anim" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="texture anim" />
        </menu_item_check>
        <menu_item_check name="Texture Priority"
                         label="Texture Priority">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="texture priority" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="texture priority" />
        </menu_item_check>
        <menu_item_check name="Avatar Rendering Cost"
                         label="Avatar Rendering Cost">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="shame" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="shame" />
        </menu_item_check>
        <menu_item_check name="Texture Area (sqrt(A))"
                         label="Texture Area (sqrt(A))">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="texture area" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="texture area" />
        </menu_item_check>
        <menu_item_check name="Face Area (sqrt(A))"
                         label="Face Area (sqrt(A))">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="face area" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="face area" />
        </menu_item_check>
        <menu_item_check name="Pick Render" label="Pick Render">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="picking" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="picking" />
        </menu_item_check>
        <menu_item_check name="Lights" label="Lights">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="lights" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="lights" />
        </menu_item_check>
        <menu_item_check name="Particles" label="Particles">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="particles" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="particles" />
        </menu_item_check>
        <menu_item_check name="Composition"
                         label="Composition">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="composition" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="composition" />
        </menu_item_check>
        <menu_item_check name="Glow" label="Glow">
          <on_click function="Advanced.ToggleInfoDisplay"
                    userdata="glow" />
          <on_check function="Advanced.CheckInfoDisplay"
                    userdata="glow" />
        </menu_item_check>
        <menu_item_check name="Vectorize Perf Test"
                         label="Vectorize Perf Test">
          <on_click function="ToggleControl"
                    userdata="VectorizePerfTest" />
          <on_check control="VectorizePerfTest" />
        </menu_item_check>
      </menu>


      <!-- RENDER TESTS -->
      <menu name="Render Tests" drop_shadow="true"
            opaque="true" tear_off="true">
        <menu_item_check name="Camera Offset" label="Camera Offset">
          <on_click function="ToggleControl"
                    userdata="CameraOffset" />
          <on_check control="CameraOffset" />
        </menu_item_check>
        <menu_item_check name="Randomize Framerate"
                         label="Randomize Framerate">
          <on_click function="Advanced.ToggleRandomizeFramerate"
                    userdata="" />
          <on_check function="Advanced.CheckRandomizeFramerate"
                    userdata="" />
        </menu_item_check>
        <menu_item_check name="Periodic Slow Frame"
                         label="Periodic Slow Frame">
          <on_click function="Advanced.TogglePeriodicSlowFrame"
                    userdata="" />
          <on_check function="Advanced.CheckPeriodicSlowFrame"
                    userdata="" />
        </menu_item_check>
        <menu_item_check name="Frame Test" label="Frame Test">
          <on_click function="Advanced.ToggleFrameTest"
                    userdata="" />
          <on_check function="Advanced.CheckFrameTest"
                    userdata="" />
        </menu_item_check>
      </menu>


      <menu_item_separator />

      <menu_item_check name="Axes" label="Axes">
        <on_click function="ToggleControl" userdata="ShowAxes" />
        <on_check control="ShowAxes" />
      </menu_item_check>

      <menu_item_separator />

      <menu_item_check name="Hide Selected" label="Hide Selected">
        <on_click function="Advanced.ToggleHideSelectedObjects"
                  userdata="" />
        <on_check function="Advanced.CheckHideSelectedObjects"
                  userdata="" />
      </menu_item_check>

      <menu_item_separator />

      <menu_item_check name="Tangent Basis" label="Tangent Basis">
        <on_click function="ToggleControl"
                  userdata="ShowTangentBasis" />
        <on_check control="ShowTangentBasis" />
      </menu_item_check>
      <menu_item_call name="Selected Texture Info"
                      label="Selected Texture Info"
                      shortcut="control|alt|shift|T">
        <on_click function="Advanced.SelectedTextureInfo"
                  userdata="" />
      </menu_item_call>
      <menu_item_check name="Wireframe" label="Wireframe"
                       shortcut="control|shift|R">
        <on_click function="Advanced.ToggleWireframe" userdata="" />
        <on_check function="Advanced.CheckWireframe" userdata="" />
      </menu_item_check>
      <menu_item_check name="Object-Object Occlusion"
                       label="Object-Object Occlusion">
        <on_click function="ToggleControl"
                  userdata="UseOcclusion" />
        <on_check control="UseOcclusion" />
      </menu_item_check>
      <menu_item_check name="Debug GL" label="Debug GL">
        <on_click function="ToggleControl"
                  userdata="RenderDebugGL" />
        <on_check control="RenderDebugGL" />
      </menu_item_check>
      <menu_item_check name="Debug Pipeline" label="Debug Pipeline">
        <on_click function="ToggleControl"
                  userdata="RenderDebugPipeline" />
        <on_check control="RenderDebugPipeline" />
      </menu_item_check>
      <menu_item_check name="Fast Alpha" label="Fast Alpha">
        <on_click function="ToggleControl"
                  userdata="RenderFastAlpha" />
        <on_check control="RenderFastAlpha" />
      </menu_item_check>
      <menu_item_check name="Animate Trees"
                 label="Animate Trees">
        <on_click function="ToggleControl"
                  userdata="RenderAnimateTrees" />
        <on_check control="RenderAnimateTrees" />
      </menu_item_check>
      <menu_item_check name="Animate Textures"
                       label="Animate Textures">
        <on_click function="ToggleControl"
                  userdata="AnimateTextures" />
        <on_check control="AnimateTextures" />
      </menu_item_check>
      <menu_item_check name="Disable Textures"
                       label="Disable Textures">
        <on_click function="Advanced.ToggleDisableTextures"
                  userdata="" />
        <on_check function="Advanced.CheckDisableTextures"
                  userdata="" />
      </menu_item_check>
      <!-- Disabled because it doesn't seem to be used anymore.
      <menu_item_check name="HTTP Get Textures"
                       label="HTTP Get Textures">
        <on_click function="ToggleControl"
                  userdata="ImagePipelineUseHTTP" />
        <on_check control="ImagePipelineUseHTTP" />
      </menu_item_check>
      -->
      <menu_item_check name="Run Multiple Threads"
                       label="Run Multiple Threads">
        <on_click function="ToggleControl"
                  userdata="RunMultipleThreads" />
        <on_check control="RunMultipleThreads" />
      </menu_item_check>
      <!-- Disabled because it doesn't work very well?
      <menu_item_check name="Dynamic Reflections"
                       label="Dynamic Reflections">
        <on_click function="ToggleControl"
                  userdata="RenderDynamicReflections" />
        <on_check control="RenderDynamicReflections" />
      </menu_item_check>
      -->
      <menu_item_check name="Cheesy Beacon" label="Cheesy Beacon">
        <on_click function="ToggleControl"
                  userdata="CheesyBeacon" />
        <on_check control="CheesyBeacon" />
      </menu_item_check>
      <menu_item_check name="Attached Lights" label="Attached Lights">
        <on_click function="ToggleRenderAttachedLights" />
        <on_check control="RenderAttachedLights" />
      </menu_item_check>
      <menu_item_check name="Attached Particles" label="Attached Particles">
        <on_click function="ToggleRenderAttachedParticles" />
        <on_check control="RenderAttachedParticles" />
      </menu_item_check>
    </menu>



    <!-- WORLD -->

    <menu name="World" drop_shadow="true"
          opaque="true" tear_off="true">
      <!-- Disabled because you can't do this in Windlight.
      <menu_item_check name="Mouse Moves Sun"
                       label="Mouse Moves Sun"
                       shortcut="control|alt|M">
        <on_click function="ToggleControl" userdata="MouseSun" />
        <on_check control="MouseSun" />
      </menu_item_check>
      -->
      <menu_item_check name="Sim Sun Override"
                       label="Sim Sun Override">
        <on_click function="ToggleControl"
                  userdata="SkyOverrideSimSunPosition" />
        <on_check control="SkyOverrideSimSunPosition" />
      </menu_item_check>
      <menu_item_call name="Dump Scripted Camera"
                      label="Dump Scripted Camera">
        <on_click function="Advanced.DumpScriptedCamera"
                  userdata="" />
      </menu_item_call>
      <menu_item_check name="Fixed Weather" label="Fixed Weather">
        <on_click function="ToggleControl"
                  userdata="FixedWeather" />
        <on_check control="FixedWeather" />
      </menu_item_check>
      <menu_item_call name="Dump Region Object Cache"
                      label="Dump Region Object Cache">
        <on_click function="Advanced.DumpRegionObjectCache"
                  userdata="" />
      </menu_item_call>
    </menu>


    <!-- RLVa -->

    <menu name="RLVa" drop_shadow="true" opaque="true" tear_off="true">

      <menu name="Debug" drop_shadow="true" opaque="true" tear_off="true">

        <menu_item_check name="Show Debug Messages"
                         label="Show Debug Messages">
          <on_click function="ToggleControl" userdata="RestrainedLifeDebug" />
          <on_check control="RestrainedLifeDebug" />
        </menu_item_check>

        <menu_item_separator />

        <menu_item_check name="Enable Legacy Naming"
                         label="Enable Legacy Naming">
          <on_click function="ToggleControl" userdata="RLVaEnableLegacyNaming" />
          <on_check control="RLVaEnableLegacyNaming" />
        </menu_item_check>

      </menu>

      <menu_item_separator />

      <menu_item_check name="Enable Wear" label="Enable Wear">
        <on_click function="ToggleControl" userdata="RLVaEnableWear" />
        <on_check control="RLVaEnableWear" />
      </menu_item_check>

      <menu_item_separator />

      <menu_item_check name="Hide locked layers" label="Hide locked layers">
        <on_click function="ToggleControl" userdata="RLVaHideLockedLayers" />
        <on_check control="RLVaHideLockedLayers" />
      </menu_item_check>
      
      <menu_item_check name="Hide locked attachments"
                       label="Hide locked attachments">
        <on_click function="ToggleControl"
                  userdata="RLVaHideLockedAttachments" />
        <on_check control="RLVaHideLockedAttachments" />
      </menu_item_check>
      
      <!--
      <menu_item_check name="Hide locked inventory"
                       label="Hide locked inventory">
        <on_click function="ToggleControl"
                  userdata="RLVaHideLockedInventory" />
        <on_check control="RLVaHideLockedInventory" />
      </menu_item_check>
      -->

      <menu_item_separator />

      <menu_item_check name="Forbid Give to #RLV" label="Forbid Give to #RLV">
        <on_click function="ToggleControl"
                  userdata="RestrainedLifeForbidGiveToRLV" />
        <on_check control="RestrainedLifeForbidGiveToRLV" />
      </menu_item_check>

      <menu_item_check name="Show Name Tags" label="Show Name Tags">
        <on_click function="ToggleControl"
                  userdata="RLVaShowNameTags" />
        <on_check control="RLVaShowNameTags" />
      </menu_item_check>

      <menu_item_separator />

      <menu_item_call name="Restrictions..." label="Restrictions...">
        <on_click function="RLVa.Behaviors.Show" userdata="" />
      </menu_item_call>

    </menu>


    <!-- UI -->

    <menu name="UI" drop_shadow="true"
          opaque="true" tear_off="true">

      
      <menu_item_check name="Use default system color picker"
                       label="Use default system color picker">
        <on_click function="ToggleControl"
                  userdata="UseDefaultColorPicker" />
        <on_check control="UseDefaultColorPicker" />
      </menu_item_check>

      <menu_item_check name="Show search panel in overlay bar"
                       label="Show search panel in overlay bar">
        <on_click function="ToggleControl"
                  userdata="ShowSearchBar" />
        <on_check control="ShowSearchBar" />
      </menu_item_check>

      <menu_item_separator />

      <menu_item_call name="Web Browser Test" label="Web Browser Test">
        <on_click function="Advanced.WebBrowserTest" userdata="" />
      </menu_item_call>

      <!--
           *TODO: Make this a proper toggle item with the "X" indicator.
           1. Add a "Advanced.CheckEditableUI" function in llviewermenu.cpp.
           2. Change this surrounding menu_item_call to a menu_item_check.
           3. Uncomment the "on_check" line below.
        -->
      <menu_item_call name="Editable UI" label="Editable UI">
        <on_click function="Advanced.ToggleEditableUI" userdata="" />
        <!--
        <on_check function="Advanced.CheckEditableUI" userdata="" />
        -->
      </menu_item_call>

      <menu_item_call name="Dump SelectMgr" label="Dump SelectMgr">
        <on_click function="Advanced.DumpSelectMgr" userdata="" />
      </menu_item_call>
      <menu_item_call name="Dump Inventory" label="Dump Inventory">
        <on_click function="Advanced.DumpInventory" userdata="" />
      </menu_item_call>
      <menu_item_call name="Dump Focus Holder"
                      label="Dump Focus Holder"
                      shortcut="control|alt|F">
        <on_click function="Advanced.DumpFocusHolder" userdata="" />
      </menu_item_call>
      <menu_item_call name="Print Selected Object Info"
                      label="Print Selected Object Info"
                      shortcut="control|shift|P">
        <on_click function="Advanced.PrintSelectedObjectInfo"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Print Agent Info"
                      label="Print Agent Info" shortcut="shift|P">
        <on_click function="Advanced.PrintAgentInfo" userdata="" />
      </menu_item_call>
      <menu_item_call name="Memory Stats" label="Memory Stats"
                      shortcut="control|alt|shift|M">
        <on_click function="Advanced.PrintTextureMemoryStats"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Clear Cached Group Info"
                  label="Clear Cached Group Info">
        <on_click function="Advanced.ClearGroupCache"
                  userdata="" />
      </menu_item_call>
      <menu_item_separator />
      <menu_item_check name="Debug SelectMgr"
                       label="Debug SelectMgr">
        <on_click function="Advanced.ToggleDebugSelectMgr"
                  userdata="" />
        <on_check function="Advanced.CheckDebugSelectMgr"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug Clicks"
                       label="Debug Click">
        <on_click function="Advanced.ToggleDebugClicks"
                  userdata="" />
        <on_check function="Advanced.CheckDebugClicks"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug Views"
                       label="Debug Views">
        <on_click function="Advanced.ToggleDebugViews"
                  userdata="" />
        <on_check function="Advanced.CheckDebugViews"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Show Name Tooltips"
                       label="Show Name Tooltips">
        <on_click function="Advanced.ToggleXUINameTooltips"
                  userdata="" />
        <on_check function="Advanced.CheckXUINameTooltips"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug Mouse Events"
                       label="Debug Mouse Events">
        <on_click function="Advanced.ToggleDebugMouseEvents"
                  userdata="" />
        <on_check function="Advanced.CheckDebugMouseEvents"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug Keys"
                       label="Debug Keys">
        <on_click function="Advanced.ToggleDebugKeys"
                  userdata="" />
        <on_check function="Advanced.CheckDebugKeys"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug WindowProc"
                       label="Debug WindowProc">
        <on_click function="Advanced.ToggleDebugWindowProc"
                  userdata="" />
        <on_check function="Advanced.CheckDebugWindowProc"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug Text Editor Tips"
                       label="Debug Text Editor Tips">
        <on_click function="Advanced.ToggleDebugTextEditorTips"
                  userdata="" />
        <on_check function="Advanced.CheckDebugTextEditorTips"
                  userdata="" />
      </menu_item_check>
      <menu_item_separator />
      <menu_item_check name="Show Time"
                       label="Show Time">
        <on_click function="ToggleControl"
                  userdata="DebugShowTime" />
        <on_check control="DebugShowTime" />
      </menu_item_check>
      <menu_item_check name="Show Render Info"
                       label="Show Render Info">
        <on_click function="ToggleControl"
                  userdata="DebugShowRenderInfo" />
        <on_check control="DebugShowRenderInfo" />
      </menu_item_check>
      <menu_item_check name="Show Matrices"
                       label="Show Matrices">
        <on_click function="ToggleControl"
                  userdata="DebugShowRenderMatrices" />
        <on_check control="DebugShowRenderMatrices" />
      </menu_item_check>
      <menu_item_check name="Show Color Under Cursor"
                       label="Show Color Under Cursor">
        <on_click function="ToggleControl"
                  userdata="DebugShowColor" />
        <on_check control="DebugShowColor" />
      </menu_item_check>
    </menu>



    <!-- XUI -->

    <menu name="XUI" drop_shadow="true"
          opaque="true" tear_off="true">
      <menu_item_call name="Floater Test"
                      label="Floater Test">
        <on_click function="Advanced.ShowFloaterTest"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Font Test"
                      label="Font Test">
        <on_click function="Advanced.ShowFontTest"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Export Menus to XML..."
                      label="Export Menus to XML...">
        <on_click function="Advanced.ExportMenusToXML"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Edit UI..."
                      label="Edit UI...">
        <on_click function="Advanced.EditUI"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Load from XML..."
                      label="Load from XML...">
        <on_click function="Advanced.LoadUIFromXML"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Save to XML..."
                      label="Save to XML...">
        <on_click function="Advanced.SaveUIToXML"
                  userdata="" />
      </menu_item_call>
      <menu_item_check name="Show XUI Names"
                       label="Show XUI Names"
                       shortcut="">
        <on_click function="Advanced.ToggleXUINames"
                  userdata="" />
        <on_check function="Advanced.CheckXUINames"
                  userdata="" />
      </menu_item_check>
    </menu>



    <!-- CHARACTER -->

    <menu name="Character" drop_shadow="true"
          opaque="true" tear_off="true">

      <menu name="Grab Baked Texture" drop_shadow="true"
            opaque="true" tear_off="true">

        <menu_item_call name="Iris" enabled="false"
                        label="Iris">
          <on_click function="Advanced.GrabBakedTexture"
                    userdata="eyes" />
          <on_enable function="Advanced.EnableGrabBakedTexture"
                     userdata="eyes" />
        </menu_item_call>
        <menu_item_call name="Head" enabled="false"
                        label="Head">
          <on_click function="Advanced.GrabBakedTexture"
                    userdata="head" />
          <on_enable function="Advanced.EnableGrabBakedTexture"
                     userdata="head" />
        </menu_item_call>
        <menu_item_call name="Upper Body" enabled="false"
                        label="Upper Body">
          <on_click function="Advanced.GrabBakedTexture"
                    userdata="upper" />
          <on_enable function="Advanced.EnableGrabBakedTexture"
                     userdata="upper" />
        </menu_item_call>
        <menu_item_call name="Lower Body" enabled="false"
                        label="Lower Body">
          <on_click function="Advanced.GrabBakedTexture"
                    userdata="lower" />
          <on_enable function="Advanced.EnableGrabBakedTexture"
                     userdata="lower" />
        </menu_item_call>
        <menu_item_call name="Skirt" enabled="false"
                        label="Skirt">
          <on_click function="Advanced.GrabBakedTexture"
                    userdata="skirt" />
          <on_enable function="Advanced.EnableGrabBakedTexture"
                     userdata="skirt" />
        </menu_item_call>
      </menu>

      <!-- CHARACTER TESTS -->
      <menu name="Character Tests" drop_shadow="true"
            opaque="true" tear_off="true">
        <menu_item_call name="Appearance To XML"
                        label="Appearance To XML">
          <on_click function="Advanced.ToggleAppearanceToXML"
                    userdata="" />
        </menu_item_call>
        <menu_item_call name="Toggle Character Geometry"
                        enabled="false"
                        label="Toggle Character Geometry">
          <on_click function="Advanced.ToggleCharacterGeometry"
                    userdata="" />
          <on_enable function="EnableGodCustomerService"
                     userdata="" />
        </menu_item_call>
        <menu_item_call name="Test Male" label="Test Male">
          <on_click function="Advanced.TestMale" userdata="" />
        </menu_item_call>
        <menu_item_call name="Test Female" label="Test Female">
          <on_click function="Advanced.TestFemale" userdata="" />
        </menu_item_call>
        <menu_item_call name="Toggle PG" label="Toggle PG">
          <on_click function="Advanced.TogglePG" userdata="" />
        </menu_item_call>
        <menu_item_check name="Allow Select Avatar"
                         label="Allow Select Avatar">
          <on_click function="Advanced.ToggleAllowSelectAvatar"
                    userdata="" />
          <on_check function="Advanced.CheckAllowSelectAvatar"
                    userdata="" />
        </menu_item_check>
      </menu>

      <menu_item_check name="Enable Lip Sync (Beta)"
                       label="Enable Lip Sync (Beta)">
        <on_click function="ToggleControl"
                  userdata="LipSyncEnabled" />
        <on_check control="LipSyncEnabled" />
      </menu_item_check>
      <menu_item_check name="Tap-Tap-Hold To Run"
                       label="Tap-Tap-Hold To Run">
        <on_click function="Advanced.ToggleAllowTapTapHoldRun"
                  userdata="" />
        <on_check function="Advanced.CheckAllowTapTapHoldRun"
                  userdata="" />
      </menu_item_check>
      <menu_item_call name="Force Params to Default"
                      label="Force Params to Default">
        <on_click function="Advanced.ForceParamsToDefault"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Reload Vertex Shader"
                      label="Reload Vertex Shader">
        <on_click function="Advanced.ReloadVertexShader"
                  userdata="" />
      </menu_item_call>
      <menu_item_check label="Animation Info"
                       name="Animation Info">
        <on_click function="Advanced.ToggleAnimationInfo"
                  userdata="" />
        <on_check function="Advanced.CheckAnimationInfo"
                  userdata="" />
      </menu_item_check>

      <!--
           *TODO: Make this a proper toggle item with the "X" indicator.
           1. Add a "Advanced.CheckSlowmotionAnimation" function in
           llviewermenu.cpp.
           2. Change this surrounding menu_item_call to a menu_item_check.
           3. Uncomment the "on_check" line below.
      -->
      <menu_item_call name="Slow Motion Animations"
                      label="Slow Motion Animations">
        <on_click function="Advanced.ToggleSlowMotionAnimations"
                  userdata="" />
        <!--
        <on_check function="Advanced.CheckSlowMotionAnimations"
                  userdata="" />
        -->
      </menu_item_call>

      <menu_item_check name="Show Look At"
                       label="Show Look At">
        <on_click function="Advanced.ToggleShowLookAt"
                  userdata="" />
        <on_check function="Advanced.CheckShowLookAt"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Show Point At"
                       label="Show Point At">
        <on_click function="Advanced.ToggleShowPointAt"
                  userdata="" />
        <on_check function="Advanced.CheckShowPointAt"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Private Look At"
                       label="Private Look At">
        <on_click function="Advanced.TogglePrivateLookPointAt"
                  userdata="Look" />
        <on_check function="Advanced.CheckPrivateLookPointAt"
                  userdata="Look" />
      </menu_item_check>
      <menu_item_check name="Private Point At"
                       label="Private Point At">
        <on_click function="Advanced.TogglePrivateLookPointAt"
                  userdata="Point" />
        <on_check function="Advanced.CheckPrivateLookPointAt"
                  userdata="Point" />
      </menu_item_check>
      <menu_item_check name="Debug Joint Updates"
                       label="Debug Joint Updates">
        <on_click function="Advanced.ToggleDebugJointUpdates"
                  userdata="" />
        <on_check function="Advanced.CheckDebugJointUpdates"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Disable LOD"
                       label="Disable LOD">
        <on_click function="Advanced.ToggleDisableLOD"
                  userdata="" />
        <on_check function="Advanced.CheckDisableLOD"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug Character Vis"
                       label="Debug Character Vis">
        <on_click function="Advanced.ToggleDebugCharacterVis"
                  userdata="" />
        <on_check function="Advanced.CheckDebugCharacterVis"
                  userdata="" />
      </menu_item_check>

      <!--  Disabled. See DEV-14477
      <menu_item_check name="Show Collision Plane"
                       label="Show Collision Plane">
        <on_click function="Advanced.ToggleShowCollisionPlane"
                  userdata="" />
        <on_check function="Advanced.CheckShowCollisionPlane"
                  userdata="" />
      </menu_item_check>
      -->

      <menu_item_check name="Show Collision Skeleton"
                       label="Show Collision Skeleton">
        <on_click function="Advanced.ToggleShowCollisionSkeleton"
                  userdata="" />
        <on_check function="Advanced.CheckShowCollisionSkeleton"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Display Agent Target"
                       label="Display Agent Target">
        <on_click function="Advanced.ToggleDisplayAgentTarget"
                  userdata="" />
        <on_check function="Advanced.CheckDisplayAgentTarget"
                  userdata="" />
      </menu_item_check>
      <menu_item_check name="Debug Rotation"
                       label="Debug Rotation">
        <on_click function="Advanced.ToggleDebugAvatarRotation"
                  userdata="" />
        <on_check function="Advanced.CheckDebugAvatarRotation"
                  userdata="" />
      </menu_item_check>
      <menu_item_call name="Dump Attachments"
                      label="Dump Attachments">
        <on_click function="Advanced.DumpAttachments"
                  userdata="" />
      </menu_item_call>
    </menu>

    <!-- CRASH -->

    <menu name="Crash" drop_shadow="true"
          opaque="true" tear_off="true">
      <menu_item_call name="Force Bad Memory Access"
                      label="Force Bad Memory Access">
        <on_click function="Advanced.Crash"
                  userdata="deadbeefcrash" />
      </menu_item_call>
      <menu_item_call name="Force LLError And Crash"
                      label="Force LLError And Crash">
        <on_click function="Advanced.Crash"
                  userdata="llerrcrash" />
      </menu_item_call>
      <menu_item_call name="Force Infinite Loop"
                      label="Force Infinite Loop">
        <on_click function="Advanced.Crash"
                  userdata="infiniteloopcrash" />
      </menu_item_call>
      <menu_item_call name="Force Driver Crash"
                      label="Force Driver Crash">
        <on_click function="Advanced.Crash"
                  userdata="drivercrash" />
      </menu_item_call>
      <menu_item_call name="Force Disconnect Viewer"
                      label="Force Disconnect Viewer">
        <on_click function="Advanced.Crash"
                  userdata="forcedisconnect" />
      </menu_item_call>
      <menu_item_separator />
      <menu_item_check name="Output Debug Minidump"
                 label="Output Debug Minidump">
        <on_click function="ToggleControl"
                  userdata="SaveMinidump" />
        <on_check control="SaveMinidump" />
      </menu_item_check>
    </menu>

    <!-- NETWORK -->

    <menu name="Network" drop_shadow="true"
          opaque="true" tear_off="true">
      <menu_item_call name="Enable Message Log"
                      label="Enable Message Log">
        <on_click function="Advanced.EnableMessageLog"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Disable Message Log"
                      label="Disable Message Log">
        <on_click function="Advanced.DisableMessageLog"
                  userdata="" />
      </menu_item_call>
      <menu_item_separator />
      <menu_item_check name="Velocity Interpolate Objects"
                       label="Velocity Interpolate Objects">
        <on_click function="ToggleControl"
                  userdata="VelocityInterpolate" />
        <on_check control="VelocityInterpolate" />
      </menu_item_check>
      <menu_item_check name="Ping Interpolate Object Positions"
                       label="Ping Interpolate Object Positions">
        <on_click function="ToggleControl"
                  userdata="PingInterpolate" />
        <on_check control="PingInterpolate" />
      </menu_item_check>
      <menu_item_separator />
      <menu_item_call name="Drop a Packet" label="Drop a Packet"
                      shortcut="control|alt|L">
        <on_click function="Advanced.DropPacket"
                  userdata="" />
      </menu_item_call>
    </menu>



    <!-- RECORDER -->

    <menu name="Recorder" drop_shadow="true"
          opaque="true" tear_off="true">
      <menu_item_check name="Full Session Logging"
                       label="Full Session Logging">
        <on_click function="ToggleControl"
                  userdata="StatsSessionTrackFrameStats" />
        <on_check control="StatsSessionTrackFrameStats" />
      </menu_item_check>
      <menu_item_call name="Start Logging" label="Start Logging">
        <on_click function="Advanced.FrameStatsLogging"
                  userdata="start logging" />
      </menu_item_call>
      <menu_item_call name="Stop Logging" label="Stop Logging">
        <on_click function="Advanced.FrameStatsLogging"
                  userdata="stop logging" />
      </menu_item_call>
      <menu_item_call name="Log 10 Seconds" label="Log 10 Seconds">
        <on_click function="Advanced.FrameStatsLogging"
                  userdata="timed logging 10" />
      </menu_item_call>
      <menu_item_call name="Log 30 Seconds" label="Log 30 Seconds">
        <on_click function="Advanced.FrameStatsLogging"
                  userdata="timed logging 30" />
      </menu_item_call>
      <menu_item_call name="Log 60 Seconds" label="Log 60 Seconds">
        <on_click function="Advanced.FrameStatsLogging"
                  userdata="timed logging 60" />
      </menu_item_call>

      <menu_item_separator />

      <menu_item_call name="Start Playback" label="Start Playback">
        <on_click function="Advanced.AgentPilot"
                  userdata="start playback" />
      </menu_item_call>
      <menu_item_call name="Stop Playback" label="Stop Playback">
        <on_click function="Advanced.AgentPilot"
                  userdata="stop playback" />
      </menu_item_call>
      <menu_item_check name="Loop Playback" label="Loop Playback">
        <on_click function="Advanced.ToggleAgentPilotLoop"
                  userdata="" />
        <on_check function="Advanced.CheckAgentPilotLoop"
                  userdata="" />
      </menu_item_check>
      <menu_item_call name="Start Record" label="Start Record">
        <on_click function="Advanced.AgentPilot"
                  userdata="start record" />
      </menu_item_call>
      <menu_item_call name="Stop Record" label="Stop Record">
        <on_click function="Advanced.AgentPilot"
                  userdata="stop record" />
      </menu_item_call>
    </menu>
    
    
    <!-- ADMIN OPTIONS -->

    <menu name="Admin Options" drop_shadow="true"
          opaque="true" tear_off="true">
      <menu_item_check name="View Admin Options"
                   label="View Admin Options"
                   shortcut="control|alt|V">
        <on_click function="Advanced.ToggleViewAdminOptions"
                  userdata="" />
        <on_check function="Advanced.CheckViewAdminOptions"
                  userdata="" />
      </menu_item_check>
      <menu_item_call name="Request Admin Status"
                      label="Request Admin Status"
                      shortcut="control|alt|G">
        <on_click function="Advanced.RequestAdminStatus"
                  userdata="" />
      </menu_item_call>
      <menu_item_call name="Leave Admin Status"
                      label="Leave Admin Status"
                      shortcut="control|alt|shift|G">
        <on_click function="Advanced.LeaveAdminStatus"
                  userdata="" />
      </menu_item_call>
    </menu>


    <menu_item_separator />


    <menu_item_check name="Show Updates" label="Show Updates">
      <on_click function="Advanced.ToggleShowObjectUpdates"
                userdata="" />
      <on_check function="Advanced.CheckShowObjectUpdates"
                userdata="" />
    </menu_item_check>

    <menu_item_separator />

    <menu_item_check name="Quiet Snapshots to Disk"
                 label="Quiet Snapshots to Disk">
      <on_click function="ToggleControl"
                userdata="QuietSnapshotsToDisk" />
      <on_check control="QuietSnapshotsToDisk" />
    </menu_item_check>
    <menu_item_call name="Compress Image..."
                    label="Compress Image...">
      <on_click function="Advanced.CompressImage"
                userdata="" />
    </menu_item_call>
    <menu_item_check name="Disable Max Build Constraints"
           label="Disable Max Build Constraints">
      <on_click function="Advanced.ToggleMaxBuildConstraints"
                userdata="" />
      <on_check function="Advanced.CheckMaxBuildConstraints"
                userdata="" />
    </menu_item_check>
    <menu_item_check name="Debug Permissions"
                 label="Debug Permissions">
      <on_click function="ToggleControl"
                userdata="DebugPermissions" />
      <on_check control="DebugPermissions" />
    </menu_item_check>
    <menu_item_check name="Mouse Smoothing"
                     label="Mouse Smoothing">
      <on_click function="ToggleControl"
                userdata="MouseSmooth" />
      <on_check control="MouseSmooth" />
    </menu_item_check>
    <menu_item_check name="Show Mouselook Crosshairs"
                 label="Show Mouselook Crosshairs">
      <on_click function="ToggleControl"
                userdata="ShowCrosshairs" />
      <on_check control="ShowCrosshairs" />
    </menu_item_check>

    <menu_item_separator />

    <menu_item_check name="Console Window"
                     label="Console Window">
      <on_click function="ToggleControl"
                userdata="ShowConsoleWindow" />
      <on_check control="ShowConsoleWindow" />
    </menu_item_check>

    <menu_item_check name="Restrained Love Support"
                     label="Restrained Love Support">
      <on_click function="RLVa.Main.Toggle" />
      <on_check function="RLVa.Main.Enabled" />
    </menu_item_check>

    <menu_item_check name="Allow Multiple Instances"
            label="Allow Multiple Instances">
      <on_click function="Advanced.ToggleMultipleViewers"
                userdata="" />
      <on_check function="Advanced.CheckMultipleViewers"
                userdata="" />
    </menu_item_check>
    <menu_item_call name="Logout" label="Logout (unstable)">
      <on_click function="File.Logout" userdata="" />
    </menu_item_call>
    <menu_item_call name="Debug Settings"
                    label="Debug Settings">
      <on_click function="Advanced.ShowDebugSettings"
                userdata="" />
    </menu_item_call>

  </menu>

</menu_bar>
