<Bindings>
	<!-- User interface key bindings -->
	<Binding name="MOVEANDSTEER" runOnUp="true" header="MOVEMENT">
		if ( keystate == "down" ) then
			MoveAndSteerStart();
		else
			MoveAndSteerStop();
		end
	</Binding>
	<Binding name="MOVEFORWARD" runOnUp="true">
		if ( keystate == "down" ) then
			MoveForwardStart();
		else
			MoveForwardStop();
		end
	</Binding>
	<Binding name="MOVEBACKWARD" runOnUp="true">
		if ( keystate == "down" ) then
			MoveBackwardStart();
		else
			MoveBackwardStop();
		end
	</Binding>
	<Binding name="TURNLEFT" runOnUp="true">
		if ( keystate == "down" ) then
			TurnLeftStart();
		else
			TurnLeftStop();
		end
	</Binding>
	<Binding name="TURNRIGHT" runOnUp="true">
		if ( keystate == "down" ) then
			TurnRightStart();
		else
			TurnRightStop();
		end
	</Binding>
	<Binding name="STRAFELEFT" runOnUp="true">
		if ( keystate == "down" ) then
			StrafeLeftStart();
		else
			StrafeLeftStop();
		end
	</Binding>
	<Binding name="STRAFERIGHT" runOnUp="true">
		if ( keystate == "down" ) then
			StrafeRightStart();
		else
			StrafeRightStop();
		end
	</Binding>
	<Binding name="JUMP" runOnUp="true">
		if ( keystate == "down" ) then
			JumpOrAscendStart();
		else
			AscendStop();
		end
	</Binding>
	<Binding name="SITORSTAND" runOnUp="true">
		if ( keystate == "down" ) then
			SitStandOrDescendStart();
		else
			DescendStop();
		end
	</Binding>
	<Binding name="TOGGLESHEATH">
		ToggleSheath();
	</Binding>
	<Binding name="TOGGLEAUTORUN">
		ToggleAutoRun();
	</Binding>
	<Binding name="PITCHUP" runOnUp="true">
		if ( keystate == "down" ) then
			PitchUpStart();
		else
			PitchUpStop();
		end
	</Binding>
	<Binding name="PITCHDOWN" runOnUp="true">
		if ( keystate == "down" ) then
			PitchDownStart();
		else
			PitchDownStop();
		end
	</Binding>
	<Binding name="TOGGLERUN">
		ToggleRun();
	</Binding>
	<Binding name="FOLLOWTARGET">
		FollowUnit("target");
	</Binding>
	<!-- Chat frame bindings -->
	<Binding name="OPENCHAT" header="CHAT">
		ChatFrame_OpenChat("");
	</Binding>
	<Binding name="OPENCHATSLASH">
		ChatFrame_OpenChat("/");
	</Binding>
	<Binding name="CHATPAGEUP">
		ChatFrame_ChatPageUp();
	</Binding>
	<Binding name="CHATPAGEDOWN">
		ChatFrame_ChatPageDown();
	</Binding>
	<Binding name="CHATBOTTOM">
		ChatFrame_ScrollToBottom();
	</Binding>
	<Binding name="REPLY">
		ChatFrame_ReplyTell();
	</Binding>
	<Binding name="REPLY2">
		ChatFrame_ReplyTell2();
	</Binding>
	<Binding name="COMBATLOGPAGEUP">
		ChatFrame2:PageUp();
	</Binding>
	<Binding name="COMBATLOGPAGEDOWN">
		ChatFrame2:PageDown();
	</Binding>
	<Binding name="COMBATLOGBOTTOM">
		ChatFrame2:ScrollToBottom();
	</Binding>
	<!-- Action bar bindings -->
	<Binding name="ACTIONBUTTON1" runOnUp="true" header="ACTIONBAR">
		if ( keystate == "down" ) then
			ActionButtonDown(1);
		else
			ActionButtonUp(1);
		end
	</Binding>
	<Binding name="ACTIONBUTTON2" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(2);
		else
			ActionButtonUp(2);
		end
	</Binding>
	<Binding name="ACTIONBUTTON3" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(3);
		else
			ActionButtonUp(3);
		end
	</Binding>
	<Binding name="ACTIONBUTTON4" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(4);
		else
			ActionButtonUp(4);
		end
	</Binding>
	<Binding name="ACTIONBUTTON5" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(5);
		else
			ActionButtonUp(5);
		end
	</Binding>
	<Binding name="ACTIONBUTTON6" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(6);
		else
			ActionButtonUp(6);
		end
	</Binding>
	<Binding name="ACTIONBUTTON7" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(7);
		else
			ActionButtonUp(7);
		end
	</Binding>
	<Binding name="ACTIONBUTTON8" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(8);
		else
			ActionButtonUp(8);
		end
	</Binding>
	<Binding name="ACTIONBUTTON9" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(9);
		else
			ActionButtonUp(9);
		end
	</Binding>
	<Binding name="ACTIONBUTTON10" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(10);
		else
			ActionButtonUp(10);
		end
	</Binding>
	<Binding name="ACTIONBUTTON11" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(11);
		else
			ActionButtonUp(11);
		end
	</Binding>
	<Binding name="ACTIONBUTTON12" runOnUp="true">
		if ( keystate == "down" ) then
			ActionButtonDown(12);
		else
			ActionButtonUp(12);
		end
	</Binding>
	
	<Binding name="EXTRAACTIONBUTTON1" runOnUp="true">
		ExtraActionButtonKey(1, keystate == "down")
	</Binding>
	
	<Binding name="SHAPESHIFTBUTTON1">
		StanceBar_Select(1)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON2">
		StanceBar_Select(2)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON3">
		StanceBar_Select(3)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON4">
		StanceBar_Select(4)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON5">
		StanceBar_Select(5)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON6">
		StanceBar_Select(6)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON7">
		StanceBar_Select(7)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON8">
		StanceBar_Select(8)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON9">
		StanceBar_Select(9)
	</Binding>
	<Binding name="SHAPESHIFTBUTTON10">
		StanceBar_Select(10)
	</Binding>

	<Binding name="BONUSACTIONBUTTON1" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(1);
			else
				PetActionButtonUp(1);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON2" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(2);
			else
				PetActionButtonUp(2);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON3" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(3);
			else
				PetActionButtonUp(3);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON4" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(4);
			else
				PetActionButtonUp(4);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON5" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(5);
			else
				PetActionButtonUp(5);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON6" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(6);
			else
				PetActionButtonUp(6);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON7" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(7);
			else
				PetActionButtonUp(7);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON8" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(8);
			else
				PetActionButtonUp(8);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON9" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(9);
			else
				PetActionButtonUp(9);
			end
		end
	</Binding>
	<Binding name="BONUSACTIONBUTTON10" runOnUp="true">
		if (PetHasActionBar()) then
			if ( keystate == "down" ) then
				PetActionButtonDown(10);
			else
				PetActionButtonUp(10);
			end
		end
	</Binding>

	<Binding name="ACTIONPAGE1">
		ChangeActionBarPage(1);
	</Binding>
	<Binding name="ACTIONPAGE2">
		ChangeActionBarPage(2);
	</Binding>
	<Binding name="ACTIONPAGE3">
		ChangeActionBarPage(3);
	</Binding>
	<Binding name="ACTIONPAGE4">
		ChangeActionBarPage(4);
	</Binding>
	<Binding name="ACTIONPAGE5">
		ChangeActionBarPage(5);
	</Binding>
	<Binding name="ACTIONPAGE6">
		ChangeActionBarPage(6);
	</Binding>
	<Binding name="PREVIOUSACTIONPAGE">
		ActionBar_PageDown();
	</Binding>
	<Binding name="NEXTACTIONPAGE">
		ActionBar_PageUp();
	</Binding>
	<Binding name="TOGGLEACTIONBARLOCK">
		if ( LOCK_ACTIONBAR == "1" ) then
			LOCK_ACTIONBAR = "0";
		else
			LOCK_ACTIONBAR = "1";
		end
	</Binding>
	<Binding name="TOGGLEAUTOSELFCAST">
		if ( GetCVar("autoSelfCast") == "1" ) then
			SetCVar("autoSelfCast", "0");
		else
			SetCVar("autoSelfCast", "1");
		end
	</Binding>

	<!-- Target function key bindings -->
	<Binding name="TARGETNEARESTENEMY" header="TARGETING">
		TargetNearestEnemy();
	</Binding>
	<Binding name="TARGETPREVIOUSENEMY">
		TargetNearestEnemy(1);	-- 1 (or "true") means reverse!
	</Binding>
	<Binding name="TARGETNEARESTFRIEND">
		TargetNearestFriend();
	</Binding>
	<Binding name="TARGETPREVIOUSFRIEND">
		TargetNearestFriend(1);	-- 1 (or "true") means reverse!
	</Binding>
	<Binding name="TARGETNEARESTENEMYPLAYER">
		TargetNearestEnemyPlayer();
	</Binding>
	<Binding name="TARGETPREVIOUSENEMYPLAYER">
		TargetNearestEnemyPlayer(1);	-- 1 (or "true") means reverse!
	</Binding>
	<Binding name="TARGETNEARESTFRIENDPLAYER">
		TargetNearestFriendPlayer();
	</Binding>
	<Binding name="TARGETPREVIOUSFRIENDPLAYER">
		TargetNearestFriendPlayer(1);	-- 1 (or "true") means reverse!
	</Binding>
<!-- These didn't end up getting used, but might be useful at some point.
	<Binding name="TARGETNEAREST">
		TargetNearest();
	</Binding>
	<Binding name="TARGETPREVIOUS">
		TargetNearest(1);
	</Binding>
-->
	<Binding name="TARGETSELF">
		if ( UnitIsUnit("player", "target") ) then
			TargetUnit("pet", 1);
		else
			TargetUnit("player");
		end
	</Binding>
	<Binding name="TARGETPARTYMEMBER1">
		if ( UnitIsUnit("party1", "target") or UnitHasVehicleUI("party1") ) then
			TargetUnit("partypet1");
		else
			TargetUnit("party1");
		end
	</Binding>
	<Binding name="TARGETPARTYMEMBER2">
		if ( UnitIsUnit("party2", "target") or UnitHasVehicleUI("party2") ) then
			TargetUnit("partypet2");
		else
			TargetUnit("party2");
		end
	</Binding>
	<Binding name="TARGETPARTYMEMBER3">
		if ( UnitIsUnit("party3", "target") or UnitHasVehicleUI("party3") ) then
			TargetUnit("partypet3");
		else
			TargetUnit("party3");
		end
	</Binding>
	<Binding name="TARGETPARTYMEMBER4">
		if ( UnitIsUnit("party4", "target") or UnitHasVehicleUI("party4") ) then
			TargetUnit("partypet4");
		else
			TargetUnit("party4");
		end
	</Binding>
	<Binding name="TARGETPET">
		TargetUnit("pet");
	</Binding>
	<Binding name="TARGETPARTYPET1">
		TargetUnit("partypet1");
	</Binding>
	<Binding name="TARGETPARTYPET2">
		TargetUnit("partypet2");
	</Binding>
	<Binding name="TARGETPARTYPET3">
		TargetUnit("partypet3");
	</Binding>
	<Binding name="TARGETPARTYPET4">
		TargetUnit("partypet4");
	</Binding>
	<Binding name="TARGETLASTHOSTILE">
		TargetLastEnemy();
	</Binding>
	<Binding name="TARGETLASTTARGET">
		TargetLastTarget();
	</Binding>
	<Binding name="TARGETARENA1">
		TargetUnit("arena1");
	</Binding>
	<Binding name="TARGETARENA2">
		TargetUnit("arena2");
	</Binding>
	<Binding name="TARGETARENA3">
		TargetUnit("arena3");
	</Binding>
	<Binding name="TARGETARENA4">
		TargetUnit("arena4");
	</Binding>
	<Binding name="TARGETARENA5">
		TargetUnit("arena5");
	</Binding>
	<Binding name="FOCUSARENA1">
		FocusUnit("arena1");
	</Binding>
	<Binding name="FOCUSARENA2">
		FocusUnit("arena2");
	</Binding>
	<Binding name="FOCUSARENA3">
		FocusUnit("arena3");
	</Binding>
	<Binding name="FOCUSARENA4">
		FocusUnit("arena4");
	</Binding>
	<Binding name="FOCUSARENA5">
		FocusUnit("arena5");
	</Binding>
	
	<Binding name="NAMEPLATES">
		local SHOW_ENEMIES = GetCVarBool("nameplateShowEnemies");
		local SHOW_FRIENDS = GetCVarBool("nameplateShowFriends");
		if ( SHOW_ENEMIES and not SHOW_FRIENDS ) then
			SetCVar("nameplateShowEnemies", 0);
		else
			SetCVar("nameplateShowEnemies", 1);
			SetCVar("nameplateShowFriends", 0);
		end
	</Binding>
	<Binding name="FRIENDNAMEPLATES">
		local SHOW_ENEMIES = GetCVarBool("nameplateShowEnemies");
		local SHOW_FRIENDS = GetCVarBool("nameplateShowFriends");
		if ( SHOW_FRIENDS and not SHOW_ENEMIES ) then
			SetCVar("nameplateShowFriends", 0);
		else
			SetCVar("nameplateShowFriends", 1);
			SetCVar("nameplateShowEnemies", 0);
		end
	</Binding>
	<Binding name="ALLNAMEPLATES">
		local SHOW_ENEMIES = GetCVarBool("nameplateShowEnemies");
		local SHOW_FRIENDS = GetCVarBool("nameplateShowFriends");
		if ( not SHOW_ENEMIES and not SHOW_FRIENDS ) then
			SetCVar("nameplateShowEnemies", 1);
			SetCVar("nameplateShowFriends", 1);
		else
			SetCVar("nameplateShowEnemies", 0);
			SetCVar("nameplateShowFriends", 0);
		end
	</Binding>
	<Binding name="INTERACTMOUSEOVER">
		if ( not InteractUnit("mouseover") ) then
			InteractUnit("target");
		end
	</Binding>
	<Binding name="INTERACTTARGET">
		InteractUnit("target");
	</Binding>
	<Binding name="ASSISTTARGET">
		AssistUnit("target");
	</Binding>
	<Binding name="ATTACKTARGET">
		AttackTarget();
	</Binding>
  <Binding name="STARTATTACK">
    StartAttack();
  </Binding>
	<Binding name="PETATTACK">
		PetAttack();
	</Binding>
	<Binding name="FOCUSTARGET">
		FocusUnit("target");
	</Binding>
	<Binding name="TARGETFOCUS">
		TargetUnit("focus");
	</Binding>
	<Binding name="TARGETMOUSEOVER">
		TargetUnit("mouseover");
	</Binding>
	<Binding name="TARGETTALKER">
		if ( #VOICECHAT_TALKERS > 0 ) then
			VoiceChatTalkers.buttons[#VOICECHAT_TALKERS].button:Click();
		end
	</Binding>

	<!-- UI Panels -->
	<Binding name="TOGGLECHARACTER0" header="INTERFACE">
		ToggleCharacter("PaperDollFrame");
	</Binding>
	<Binding name="TOGGLEBACKPACK">
		ToggleBackpack();
	</Binding>
	<Binding name="TOGGLEBAG1">
		ToggleBag(4);
	</Binding>
	<Binding name="TOGGLEBAG2">
		ToggleBag(3);
	</Binding>
	<Binding name="TOGGLEBAG3">
		ToggleBag(2);
	</Binding>
	<Binding name="TOGGLEBAG4">
		ToggleBag(1);
	</Binding>
	<Binding name="OPENALLBAGS">
		ToggleAllBags();
	</Binding>
	<Binding name="TOGGLESPELLBOOK">
		ToggleSpellBook(BOOKTYPE_SPELL);
	</Binding>
	<Binding name="TOGGLEPROFESSIONBOOK">
		ToggleSpellBook(BOOKTYPE_PROFESSION);
	</Binding>
	<Binding name="TOGGLEPETBOOK">
		ToggleSpellBook(BOOKTYPE_PET);
	</Binding>
	<Binding name="TOGGLECOREABILITIESBOOK">
		ToggleSpellBook(BOOKTYPE_CORE_ABILITIES);
	</Binding>
	<Binding name="TOGGLEWHATHASCHANGEDBOOK">
		ToggleSpellBook(BOOKTYPE_WHAT_HAS_CHANGED);
	</Binding>
	<Binding name="TOGGLEINSCRIPTION">
		ToggleGlyphFrame();
	</Binding>
	<Binding name="TOGGLETALENTS">
		ToggleTalentFrame();
	</Binding>
	<Binding name="TOGGLECHARACTER4">
		TogglePVPUI();
	</Binding>
	<Binding name="TOGGLECHARACTER3">
		ToggleCharacter("PetPaperDollFrame");
	</Binding>
	<Binding name="TOGGLECHARACTER2">
		ToggleCharacter("ReputationFrame");
	</Binding>
	<Binding name="TOGGLEQUESTLOG">
		ToggleFrame(QuestLogFrame);
	</Binding>
	<Binding name="TOGGLEGAMEMENU">
		ToggleGameMenu();
	</Binding>
	<Binding name="TOGGLEMINIMAP">
		ToggleMinimap();
	</Binding>
	<Binding name="TOGGLEWORLDMAP">
		ToggleFrame(WorldMapFrame);
	</Binding>
	<Binding name="TOGGLEWORLDMAPSIZE">
		if ( WorldMapFrame:IsShown() ) then
			WorldMapFrame_ToggleWindowSize();
		end
	</Binding>	
	<Binding name="TOGGLESOCIAL">
		ToggleFriendsFrame();
	</Binding>
	<Binding name="TOGGLEFRIENDSTAB">
		ToggleFriendsFrame(1);
	</Binding>
	<Binding name="TOGGLEWHOTAB">
		ToggleFriendsFrame(2);
	</Binding>
	<Binding name="TOGGLEGUILDTAB">
		ToggleGuildFrame();
	</Binding>
	<Binding name="TOGGLECHATTAB">
		ToggleFriendsFrame(3);
	</Binding>
	<Binding name="TOGGLERAIDFINDER">
		PVEFrame_ToggleFrame("GroupFinderFrame", RaidFinderFrame);
	</Binding>
	<Binding name="TOGGLERAIDTAB">
		ToggleRaidFrame();
	</Binding>
	<Binding name="TOGGLELFRPARENT">
		ToggleRaidBrowser();
	</Binding>
	<Binding name="TOGGLELFGPARENT"> <!--Keeping the name as the old LFG so that people's bindings aren't reset -->
		ToggleLFDParentFrame();
	</Binding>
	<Binding name="TOGGLEWORLDSTATESCORES">
		ToggleWorldStateScoreFrame();
	</Binding>
	<Binding name="TOGGLEBATTLEFIELDMINIMAP">
		ToggleBattlefieldMinimap();
	</Binding>
	<Binding name="TOGGLEMINIMAPROTATION">
		ToggleMiniMapRotation();
	</Binding>
	<Binding name="TOGGLECHANNELPULLOUT">
		ChannelPullout_ToggleDisplay();
	</Binding>
	<Binding name="TOGGLEACHIEVEMENT">
		ToggleAchievementFrame();
	</Binding>
	<Binding name="TOGGLESTATISTICS">
		ToggleAchievementFrame(1);
	</Binding>
	<Binding name="TOGGLECURRENCY">
		ToggleCharacter("TokenFrame");
	</Binding>
	<Binding name="TOGGLEENCOUNTERJOURNAL">
		ToggleEncounterJournal();
	</Binding>
	<Binding name="TOGGLEMOUNTJOURNAL">
		TogglePetJournal(1);
	</Binding>
	<Binding name="TOGGLECOMPANIONJOURNAL">
		TogglePetJournal(2);
	</Binding>
	<Binding name="TOGGLEPETJOURNAL">
		TogglePetJournal();
	</Binding>



  <!-- Misc -->
	<Binding name="STOPCASTING" header="MISC">
		SpellStopCasting();
	</Binding>
	<Binding name="STOPATTACK">
		StopAttack();
	</Binding>
	<Binding name="DISMOUNT">
		Dismount();
	</Binding>
	<Binding name="MINIMAPZOOMIN">
		Minimap_ZoomIn();
	</Binding>
	<Binding name="MINIMAPZOOMOUT">
		Minimap_ZoomOut();
	</Binding>
	<Binding name="TOGGLEMUSIC">
		Sound_ToggleMusic();
	</Binding>
	<Binding name="TOGGLESOUND">
		Sound_ToggleSound();
	</Binding>
	<Binding name="MASTERVOLUMEUP">
		Sound_MasterVolumeUp();
	</Binding>
	<Binding name="MASTERVOLUMEDOWN">
		Sound_MasterVolumeDown();
	</Binding>
	<Binding name="TOGGLESELFMUTE">
		if ( GetCVar("VoiceChatSelfMute") == "0" ) then
			SetCVar("VoiceChatSelfMute", 1);
		else
			SetCVar("VoiceChatSelfMute", 0);
		end
	</Binding>
	<Binding name="TOGGLEUI">
		if ( UIParent:IsShown() ) then
			securecall("CloseMenus");
			securecall("CloseAllWindows");
			UIParent:Hide();
			SetUIVisibility(false);
			ActionStatus_DisplayMessage(format(UI_HIDDEN, GetBindingText(GetBindingKey("TOGGLEUI"), "KEY_")))
		else
			UIParent:Show();
			SetUIVisibility(true);
		end
	</Binding>
	<Binding name="TOGGLEFPS">
		ToggleFramerate();
	</Binding>
	<Binding name="SCREENSHOT">
		TakeScreenshot();
	</Binding>

	<!-- Debug function key bindings -->
	<Binding name="TOGGLESTATS" hidden="true" debug="true">
		ToggleStats();
	</Binding>
	<Binding name="TOGGLETRIS" hidden="true" debug="true">
		ToggleTris();
	</Binding>
	<Binding name="TOGGLEPORTALS" hidden="true" debug="true">
		TogglePortals();
	</Binding>
	<Binding name="TOGGLECOLLISION" hidden="true" debug="true">
		ToggleCollision();
	</Binding>
	<Binding name="TOGGLECOLLISIONDISPLAY" hidden="true" debug="true">
		ToggleCollisionDisplay();
	</Binding>
	<Binding name="TOGGLEPLAYERBOUNDS" hidden="true" debug="true">
		TogglePlayerBounds();
	</Binding>
	<Binding name="TOGGLEPERFORMANCEDISPLAY" hidden="true" debug="true">
		TogglePerformanceDisplay();
	</Binding>
  <Binding name="TOGGLEPERFORMANCEPAUSE" hidden="true" debug="true">
    TogglePerformancePause();
  </Binding>
  <Binding name="TOGGLEPERFORMANCEVALUES" hidden="true" debug="true">
		TogglePerformanceValues();
	</Binding>
	<Binding name="RESETPERFORMANCEVALUES" hidden="true" debug="true">
		ResetPerformanceValues();
	</Binding>
	<Binding name="TOGGLEANIMKITDISPLAY" hidden="true" debug="true">
		ToggleAnimKitDisplay();
	</Binding>
	<!-- Commentator Mode Bindings -->
	<Binding name="TOGGLECOMMENTATOR" hidden="true" debug="true">
		ToggleCommentatorMode();
	</Binding>

	<!-- Camera key bindings -->
	<Binding name="NEXTVIEW" header="CAMERA">
		NextView();
	</Binding>
	<Binding name="PREVVIEW">
		PrevView();
	</Binding>
	<Binding name="CAMERAZOOMIN">
			CameraZoomIn(1.0);
	</Binding>
	<Binding name="CAMERAZOOMOUT">
			CameraZoomOut(1.0);
	</Binding>
	<Binding name="SETVIEW1">
		SetView(1);
	</Binding>
	<Binding name="SETVIEW2">
		SetView(2);
	</Binding>
	<Binding name="SETVIEW3">
		SetView(3);
	</Binding>
	<Binding name="SETVIEW4">
		SetView(4);
	</Binding>
	<Binding name="SETVIEW5">
		SetView(5);
	</Binding>
	<Binding name="SAVEVIEW1">
		SaveView(1);
	</Binding>
	<Binding name="SAVEVIEW2">
		SaveView(2);
	</Binding>
	<Binding name="SAVEVIEW3">
		SaveView(3);
	</Binding>
	<Binding name="SAVEVIEW4">
		SaveView(4);
	</Binding>
	<Binding name="SAVEVIEW5">
		SaveView(5);
	</Binding>
	<Binding name="RESETVIEW1">
		ResetView(1);
	</Binding>
	<Binding name="RESETVIEW2">
		ResetView(2);
	</Binding>
	<Binding name="RESETVIEW3">
		ResetView(3);
	</Binding>
	<Binding name="RESETVIEW4">
		ResetView(4);
	</Binding>
	<Binding name="RESETVIEW5">
		ResetView(5);
	</Binding>
	<Binding name="FLIPCAMERAYAW">
		FlipCameraYaw(180);
	</Binding>

	<!-- MultiAction bar bindings -->
	<Binding name="MULTIACTIONBAR1BUTTON1" runOnUp="true" header="MULTIACTIONBAR">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 1);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 1);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON2" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 2);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 2);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON3" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 3);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 3);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON4" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 4);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 4);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON5" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 5);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 5);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON6" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 6);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 6);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON7" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 7);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 7);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON8" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 8);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 8);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON9" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 9);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 9);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON10" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 10);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 10);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON11" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 11);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 11);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR1BUTTON12" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomLeft", 12);
		else
			MultiActionButtonUp("MultiBarBottomLeft", 12);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON1" runOnUp="true" header="BLANK4">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 1);
		else
			MultiActionButtonUp("MultiBarBottomRight", 1);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON2" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 2);
		else
			MultiActionButtonUp("MultiBarBottomRight", 2);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON3" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 3);
		else
			MultiActionButtonUp("MultiBarBottomRight", 3);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON4" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 4);
		else
			MultiActionButtonUp("MultiBarBottomRight", 4);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON5" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 5);
		else
			MultiActionButtonUp("MultiBarBottomRight", 5);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON6" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 6);
		else
			MultiActionButtonUp("MultiBarBottomRight", 6);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON7" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 7);
		else
			MultiActionButtonUp("MultiBarBottomRight", 7);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON8" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 8);
		else
			MultiActionButtonUp("MultiBarBottomRight", 8);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON9" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 9);
		else
			MultiActionButtonUp("MultiBarBottomRight", 9);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON10" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 10);
		else
			MultiActionButtonUp("MultiBarBottomRight", 10);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON11" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 11);
		else
			MultiActionButtonUp("MultiBarBottomRight", 11);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR2BUTTON12" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarBottomRight", 12);
		else
			MultiActionButtonUp("MultiBarBottomRight", 12);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON1" runOnUp="true" header="BLANK5">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 1);
		else
			MultiActionButtonUp("MultiBarRight", 1);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON2" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 2);
		else
			MultiActionButtonUp("MultiBarRight", 2);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON3" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 3);
		else
			MultiActionButtonUp("MultiBarRight", 3);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON4" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 4);
		else
			MultiActionButtonUp("MultiBarRight", 4);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON5" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 5);
		else
			MultiActionButtonUp("MultiBarRight", 5);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON6" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 6);
		else
			MultiActionButtonUp("MultiBarRight", 6);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON7" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 7);
		else
			MultiActionButtonUp("MultiBarRight", 7);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON8" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 8);
		else
			MultiActionButtonUp("MultiBarRight", 8);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON9" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 9);
		else
			MultiActionButtonUp("MultiBarRight", 9);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON10" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 10);
		else
			MultiActionButtonUp("MultiBarRight", 10);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON11" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 11);
		else
			MultiActionButtonUp("MultiBarRight", 11);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR3BUTTON12" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarRight", 12);
		else
			MultiActionButtonUp("MultiBarRight", 12);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON1" runOnUp="true" header="BLANK6">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 1);
		else
			MultiActionButtonUp("MultiBarLeft", 1);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON2" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 2);
		else
			MultiActionButtonUp("MultiBarLeft", 2);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON3" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 3);
		else
			MultiActionButtonUp("MultiBarLeft", 3);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON4" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 4);
		else
			MultiActionButtonUp("MultiBarLeft", 4);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON5" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 5);
		else
			MultiActionButtonUp("MultiBarLeft", 5);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON6" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 6);
		else
			MultiActionButtonUp("MultiBarLeft", 6);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON7" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 7);
		else
			MultiActionButtonUp("MultiBarLeft", 7);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON8" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 8);
		else
			MultiActionButtonUp("MultiBarLeft", 8);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON9" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 9);
		else
			MultiActionButtonUp("MultiBarLeft", 9);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON10" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 10);
		else
			MultiActionButtonUp("MultiBarLeft", 10);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON11" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 11);
		else
			MultiActionButtonUp("MultiBarLeft", 11);
		end
	</Binding>
	<Binding name="MULTIACTIONBAR4BUTTON12" runOnUp="true">
		if ( keystate == "down" ) then
			MultiActionButtonDown("MultiBarLeft", 12);
		else
			MultiActionButtonUp("MultiBarLeft", 12);
		end
	</Binding>
	<Binding name="RAIDTARGET1" header="RAID_TARGET">
		SetRaidTargetIcon("target", 1);
	</Binding>
	<Binding name="RAIDTARGET2">
		SetRaidTargetIcon("target", 2);
	</Binding>
	<Binding name="RAIDTARGET3">
		SetRaidTargetIcon("target", 3);
	</Binding>
	<Binding name="RAIDTARGET4">
		SetRaidTargetIcon("target", 4);
	</Binding>
	<Binding name="RAIDTARGET5">
		SetRaidTargetIcon("target", 5);
	</Binding>
	<Binding name="RAIDTARGET6">
		SetRaidTargetIcon("target", 6);
	</Binding>
	<Binding name="RAIDTARGET7">
		SetRaidTargetIcon("target", 7);
	</Binding>
	<Binding name="RAIDTARGET8">
		SetRaidTargetIcon("target", 8);
	</Binding>
	<Binding name="RAIDTARGETNONE">
		SetRaidTarget("target", 0);
	</Binding>
	<!-- Vehicle bindings -->
	<Binding name="VEHICLEEXIT" header="VEHICLE">
		VehicleExit();
	</Binding>
	<Binding name="VEHICLEPREVSEAT">
		VehiclePrevSeat();
	</Binding>
	<Binding name="VEHICLENEXTSEAT">
		VehicleNextSeat();
	</Binding>
	<Binding name="VEHICLEAIMUP" runOnUp="true">
		if ( keystate == "down" ) then
		VehicleAimUpStart();
		else
		VehicleAimUpStop();
		end
	</Binding>
	<Binding name="VEHICLEAIMDOWN" runOnUp="true">
		if ( keystate == "down" ) then
		VehicleAimDownStart();
		else
		VehicleAimDownStop();
		end
	</Binding>
	<Binding name="VEHICLEAIMINCREMENT">
		VehicleAimIncrement(0.1);
	</Binding>
	<Binding name="VEHICLEAIMDECREMENT">
		VehicleAimDecrement(0.1);
	</Binding>
	<Binding name="VEHICLECAMERAZOOMIN">
		VehicleCameraZoomIn(1.0);
	</Binding>
	<Binding name="VEHICLECAMERAZOOMOUT">
		VehicleCameraZoomOut(1.0);
	</Binding>

<!-- Hidden bindings -->
	<Binding name="TURNORACTION" runOnUp="true" hidden="true">
		if ( keystate == "down" ) then
			TurnOrActionStart();
		else
			TurnOrActionStop();
		end
	</Binding>
	<Binding name="CAMERAORSELECTORMOVE" runOnUp="true" hidden="true">
		if ( keystate == "down" ) then
			CameraOrSelectOrMoveStart();
		else
			CameraOrSelectOrMoveStop(IsModifiedClick("STICKYCAMERA"));
		end
	</Binding>

	<!-- iTunes Bindings -->
	<Binding name="ITUNES_PLAYPAUSE" header="ITUNES_REMOTE" platform="mac">
		MusicPlayer_PlayPause();
	</Binding>
	<Binding name="ITUNES_NEXTTRACK" platform="mac">
		MusicPlayer_NextTrack();
	</Binding>
	<Binding name="ITUNES_BACKTRACK" platform="mac">
		MusicPlayer_BackTrack();
	</Binding>
	<Binding name="ITUNES_VOLUMEUP" platform="mac">
		MusicPlayer_VolumeUp();
	</Binding>
	<Binding name="ITUNES_VOLUMEDOWN" platform="mac">
		MusicPlayer_VolumeDown();
	</Binding>

	<!-- Movie Recording Bindings -->
	<Binding name="MOVIE_RECORDING_STARTSTOP" header="MOVIE_RECORDING_SECTION" platform="mac">
		if (MovieRecording_IsSupported()) then
			MovieRecording_Toggle();
		end
	</Binding>
	<Binding name="MOVIE_RECORDING_CANCEL" platform="mac">
		if(MovieRecording_IsSupported() and (MovieRecording_IsRecording() or MovieRecording_IsCompressing())) then
			MacOptionsCancelFrame:Show();
		end
	</Binding>
	<Binding name="MOVIE_RECORDING_COMPRESS" platform="mac">
		if (MovieRecording_IsSupported()) then
			MovieRecording_SearchUncompressedMovie(true);
		end
	</Binding>
	<Binding name="MOVIE_RECORDING_GUI" platform="mac">
		if (MovieRecording_IsSupported()) then
			MovieRecording_ToggleGUI();
		end
	</Binding>

	<!-- Modified Click Actions -->
	<ModifiedClick action="SELFCAST" default="ALT"/>
	<ModifiedClick action="FOCUSCAST" default="NONE"/>
	<ModifiedClick action="AUTOLOOTTOGGLE" default="SHIFT"/>
	<ModifiedClick action="MAILAUTOLOOTTOGGLE" default="SHIFT"/>
	<ModifiedClick action="STICKYCAMERA" default="CTRL"/>
	<ModifiedClick action="CHATLINK" default="SHIFT-BUTTON1"/>
	<ModifiedClick action="DRESSUP" default="CTRL-BUTTON1"/>
	<ModifiedClick action="SOCKETITEM" default="SHIFT-BUTTON2"/>
	<ModifiedClick action="SPLITSTACK" default="SHIFT"/>
	<ModifiedClick action="PICKUPACTION" default="SHIFT"/>
	<ModifiedClick action="PICKUPITEM" default="SHIFT"/>
	<ModifiedClick action="COMPAREITEMS" default="SHIFT"/>
	<ModifiedClick action="OPENALLBAGS" default="SHIFT"/>
	<ModifiedClick action="QUESTWATCHTOGGLE" default="SHIFT"/>
	<ModifiedClick action="TOKENWATCHTOGGLE" default="SHIFT"/>
	<ModifiedClick action="SHOWITEMFLYOUT" default="ALT"/>
	<ModifiedClick action="SHOWMULTICASTFLYOUT" default="ALT"/>
</Bindings>