<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
	<Script file="DuelFrame.lua"/>
	
	<!-- ============================================================================================= -->
	<!-- Templates                                                                                     -->
	<!-- ============================================================================================= -->
	<FontString name="DuelFrame_DuelFontRedSmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="8"/>
		</FontHeight>
		<Color r="1.0" g="0.1" b="0.1"/>
	</FontString>
	
	<FontString name="DuelFrame_DuelFontDarkGraySmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="8"/>
		</FontHeight>
		<Color r="0.35" g="0.35" b="0.35"/>
	</FontString>
	
	<FontString name="DuelFrame_DuelFontGreenSmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="8"/>
		</FontHeight>
		<Color r="0.1" g="1.0" b="0.1"/>
	</FontString>
	
	<Button name="DuelFrameSortButtonTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="5" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.078125" top="0" bottom="0.59375"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="4" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.90625" right="0.96875" top="0" bottom="0.59375"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="10" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.078125" right="0.90625" top="0" bottom="0.59375"/>
				</Texture>
			</Layer>
		</Layers>
		<NormalText name="$parentText" inherits="GameFontHighlightSmall">
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="8" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalText>
		<NormalTexture name="$parentArrow" file="Interface\Buttons\UI-SortArrow">
			<Size>
				<AbsDimension x="9" y="8"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentText" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="3" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
			<TexCoords left="0" right="0.5625" top="0" bottom="1.0"/>
		</NormalTexture>
		<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="5" y="24"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
				<Anchor point="RIGHT">
					<Offset>
						<AbsDimension x="4" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>		
	</Button>
	
	<Button name="DuelFrameButtonTemplate" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="620" y="19"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentOpponent" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="140" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentGuild" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="150" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="131" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentLevel" inherits="GameFontHighlightSmall">
					<Size>
						<AbsDimension x="57" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="281" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentRace" inherits="GameFontHighlightSmall">
					<Size>
						<AbsDimension x="91" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="331" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentClass" inherits="GameFontHighlightSmall">
					<Size>
						<AbsDimension x="76" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="421" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentResult" inherits="GameFontHighlightSmall">
					<Size>
						<AbsDimension x="57" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="495" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentScore" inherits="GameFontHighlightSmall">
					<Size>
						<AbsDimension x="77" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="527" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
		  </Layer>
		</Layers>
		<HighlightTexture name="$parentHighlight" file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="620" y="15"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="0" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
			<TexCoords left="0" right="1.0" top="0" bottom="0.578125"/>
		</HighlightTexture>
		<Scripts>
			<OnClick>
				DuelFrame_LoadDuel();
			</OnClick>
		</Scripts>
	</Button>
		
	<Button name="DuelFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				DuelFrameTab_OnClick();
			</OnClick>
		</Scripts>
	</Button>

	<!-- ============================================================================================= -->
	<!-- Main Frame                                                                                    -->
	<!-- ============================================================================================= -->

	<Frame name="DuelFrame" toplevel="true" parent="UIParent" enableMouse="true" hidden="true" movable="false">
		<Size>
			<AbsDimension x="832" y="447"/>
		</Size>
		<Anchors>
 			<Anchor point="TOPLEFT">
 				<Offset>
 					<AbsDimension x="0" y="-104"/>
 				</Offset>
 			</Anchor>
 		</Anchors>
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="70"/>
		</HitRectInsets>
		
		<!-- ============================================================================================= -->
		<!-- Layers                                                                                        -->
		<!-- ============================================================================================= -->
		
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="DuelFramePortrait" file="Interface\Icons\Ability_DualWield">
					<Size>
						<AbsDimension x="58" y="58"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="9" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
        </Texture>
      </Layer>
      
      <!-- ============================================================================================= -->
			<!-- Layout                                                                                        -->
			<!-- ============================================================================================= -->
      
			<Layer level="ARTWORK">
				<Texture name="$parentTopLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentTop" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-Top">
					<Size>
						<AbsDimension x="320" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentTopRight" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-TopRight">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBotLeft" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBot" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-Bot">
					<Size>
						<AbsDimension x="320" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="256" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBotRight" file="Interface\AuctionFrame\UI-AuctionFrame-Browse-BotRight">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBot" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="DuelFrameTitleText" inherits="GameFontHighlight" text="DuelFrame_TITLE">
					<Size>
						<AbsDimension x="300" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-18"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameVersionText" inherits="GameFontHighlight" text="DUELDATABASE_SHOW_VERSION">
					<Size>
						<AbsDimension x="150" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="20" y="33"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameWinText" inherits="GameFontHighlight" text="DuelFrame_WINS">
					<Size>
						<AbsDimension x="150" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-133" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameLossText" inherits="GameFontHighlight" text="DuelFrame_LOSSES">
					<Size>
						<AbsDimension x="150" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-52" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFramePctText" inherits="GameFontHighlight" text="DuelFrame_PCT">
					<Size>
						<AbsDimension x="150" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="27" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsText" inherits="GameFontHighlightSmall" text="DuelFrame_DUEL">
					<Anchors>
						<Anchor point="TOP" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="85" y="-85"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<!-- ============================================================================================= -->
			  <!-- Duel Details                                                                                  -->
			  <!-- ============================================================================================= -->
				
				<FontString name="DuelFrameDetailsPlayerText" inherits="GameFontGreen" text="">				  					
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="30" y="-103"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>				
				<FontString name="DuelFrameDetailsVsText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILVERSUS">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="23" y="-115"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>				
				<FontString name="DuelFrameDetailsOpponentText" inherits="GameFontRed" text="">				  					
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="30" y="-125"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<FontString name="DuelFrameDetailsGuildText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILGUILD">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsVsText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>				
				<FontString name="DuelFrameDetailsGuildPlayerText" inherits="DuelFrame_DuelFontGreenSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsGuildText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsGuildOpponentText" inherits="DuelFrame_DuelFontRedSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsGuildText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<FontString name="DuelFrameDetailsLevelText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILLEVEL">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsGuildText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-25"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsLevelPlayerText" inherits="GameFontGreen" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLevelText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsLevelOpponentText" inherits="GameFontRed" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLevelText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-13"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsLevelDiffText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILDIFF">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLevelText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="90" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsLevelDiffValueText" inherits="GameFontNormalSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLevelDiffText" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsLevelMultiText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILMULTIPLIER">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLevelDiffText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsLevelMultiValue" inherits="GameFontNormalSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLevelMultiText" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>			
				
				<FontString name="DuelFrameDetailsRaceText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILRACE">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLevelText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-25"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsRacePlayerText" inherits="GameFontGreen" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsRaceText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsRaceOpponentText" inherits="GameFontRed" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsRaceText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-13"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				
				<FontString name="DuelFrameDetailsClassText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILCLASS">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsRaceText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-25"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsClassPlayerText" inherits="GameFontGreen" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsClassText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsClassOpponentText" inherits="GameFontRed" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsClassText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-13"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<FontString name="DuelFrameDetailsHealthText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILHEALTH">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsClassText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-25"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsHealthPlayerText" inherits="DuelFrame_DuelFontGreenSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsHealthText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsHealthOpponentText" inherits="DuelFrame_DuelFontRedSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsHealthText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-13"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsHealthDiffText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILDIFF">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsHealthText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="90" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsHealthDiffValue" inherits="GameFontNormalSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsHealthDiffText" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsHealthMultiText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILMULTIPLIER">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsHealthDiffText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsHealthMultiValue" inherits="GameFontNormalSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsHealthMultiText" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<FontString name="DuelFrameDetailsLocationText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILLOCATION">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsHealthText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-25"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsMainLocationText" inherits="GameFontGreen" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLocationText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsSubLocationText" inherits="GameFontRed" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLocationText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-13"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<FontString name="DuelFrameDetailsOther" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILOTHER">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsLocationText" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-25"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsDuelsText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILDUELS">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsOther" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsDuelsValue" inherits="GameFontNormalSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsDuelsText" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsOverviewText" inherits="GameFontDarkGraySmall" text="DuelFrame_DETAILOVERVIEW">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsOther" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="10" y="-13"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsDuelsWonValue" inherits="GameFontGreenSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsOverviewText" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsDuelsSep" inherits="GameFontDarkGraySmall" text=" / ">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsDuelsWonValue" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameDetailsDuelsLossValue" inherits="GameFontRedSmall" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="DuelFrameDetailsDuelsSep" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<!-- ============================================================================================= -->
			  <!-- Criteria Labels                                                                               -->
			  <!-- ============================================================================================= -->
								
				<FontString name="DuelFrameOpponentText" inherits="GameFontHighlightSmall" text="DuelFrame_COL_OPPONENT">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="80" y="-41"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="DuelFrameGuildText" inherits="GameFontHighlightSmall" text="DuelFrame_COL_GUILD">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="180" y="-41"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>		
				<FontString name="DuelFrameLevelText" inherits="GameFontHighlightSmall" text="DuelFrame_COL_LEVEL">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="330" y="-41"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>				
			</Layer>
		</Layers>
		
		<!-- ============================================================================================= -->
		<!-- Child Frames & Buttons                                                                        -->
		<!-- ============================================================================================= -->		
		
		<Frames>
			<Button name="DuelFrameCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="DuelFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="3" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			
			<!-- ============================================================================================= -->
		  <!-- Criteria Buttons                                                                              -->
		  <!-- ============================================================================================= -->
			
			<EditBox name="DuelFrameOpponentName" letters="12" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="95" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrameOpponentText" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="3" y="-7"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnTabPressed>
						DuelFrameGuild:SetFocus();
					</OnTabPressed>
					<OnEnterPressed>
						this:ClearFocus();
					</OnEnterPressed>
				</Scripts>
				<FontString inherits="ChatFontNormal" bytes="64"/>
			</EditBox>
			
			<EditBox name="DuelFrameGuild" letters="24" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="140" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrameGuildText" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="3" y="-7"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnTabPressed>
						if ( IsShiftKeyDown() ) then
							DuelFrameOpponentName:SetFocus();
						else
							DuelFrameMinLevel:SetFocus();
						end
					</OnTabPressed>
					<OnEnterPressed>
						this:ClearFocus();
					</OnEnterPressed>
				</Scripts>
				<FontString inherits="ChatFontNormal" bytes="64"/>
			</EditBox>
			
			<EditBox name="DuelFrameMinLevel" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="30" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrameLevelText" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="3" y="-7"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString inherits="GameFontHighlightSmall" text="-">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="-5" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnTabPressed>
						if ( IsShiftKeyDown() ) then
							DuelFrameGuild:SetFocus();
						else
							DuelFrameMaxLevel:SetFocus();
						end
					</OnTabPressed>
					<OnEnterPressed>
						this:ClearFocus();
					</OnEnterPressed>
				</Scripts>
			</EditBox>			
			
			<EditBox name="DuelFrameMaxLevel" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="30" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrameLevelText" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="30" y="-7"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnTabPressed>
						if ( IsShiftKeyDown() ) then
							DuelFrameMinLevel:SetFocus();
						end
					</OnTabPressed>
					<OnEnterPressed>
						this:ClearFocus();
					</OnEnterPressed>
				</Scripts>
			</EditBox>			
			
			<Frame name="DuelFrameRaceDropDown" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrameMaxLevel" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="8"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString inherits="GameFontHighlightSmall" text="DuelFrame_COL_RACE">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="20" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						DuelFrameRaceDropDown_OnLoad();
					</OnLoad>
					<OnShow>
						DuelFrameRaceDropDown_OnLoad();
					</OnShow>
				</Scripts>
			</Frame>
			
			<Frame name="DuelFrameClassDropDown" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrameRaceDropDown" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="120" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString inherits="GameFontHighlightSmall" text="DuelFrame_COL_CLASS">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="20" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						DuelFrameClassDropDown_OnLoad();
					</OnLoad>
					<OnShow>
						DuelFrameClassDropDown_OnLoad();
					</OnShow>
				</Scripts>
			</Frame>
			
			<Button name="DuelFrameSearchButton" inherits="UIPanelButtonTemplate" text="DuelFrame_SEARCH">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DuelFrameClassDropDown" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="130" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_Search();							
					</OnClick>
				</Scripts>
			</Button>
			
			<!-- ============================================================================================= -->
			<!-- Tab Buttons                                                                                   -->
			<!-- ============================================================================================= -->
			
			<Button name="DuelFrameTab1" inherits="DuelFrameTabTemplate" id="1" text="DuelFrame_TAB_WINS">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="15" y="11"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrameTab2" inherits="DuelFrameTabTemplate" id="2" text="DuelFrame_TAB_LOSSES">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrameTab1" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-8" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

			<!-- ============================================================================================= -->
			<!-- Scroll Frame                                                                                  -->
			<!-- ============================================================================================= -->
			
			<ScrollFrame name="DuelFrame_DuelScrollFrame" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="465" y="306"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-34" y="-105"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="256"/>
							</Size>
							<Anchors>
								<Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton">
									<Offset>
										<AbsDimension x="0" y="5"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="106"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton">
									<Offset>
										<AbsDimension x="0" y="-2"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(DuelFrame_ITEM_HEIGHT, DuelFrame_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			
			<!-- ============================================================================================= -->
			<!-- Columns                                                                                       -->
			<!-- ============================================================================================= -->
			
			<Button name="DuelFrame_name" inherits="DuelFrameSortButtonTemplate" text="DuelFrame_COL_OPPONENT">
				<Size>
					<AbsDimension x="140" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="186" y="-82"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_SortBy("name");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="DuelFrame_guild" inherits="DuelFrameSortButtonTemplate" text="DuelFrame_COL_GUILD">
				<Size>
					<AbsDimension x="150" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DuelFrame_name" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_SortBy("guild");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="DuelFrame_level" inherits="DuelFrameSortButtonTemplate" text="DuelFrame_COL_LEVEL">
				<Size>
					<AbsDimension x="57" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DuelFrame_guild" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_SortBy("level");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="DuelFrame_race" inherits="DuelFrameSortButtonTemplate" text="DuelFrame_COL_RACE">
				<Size>
					<AbsDimension x="91" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DuelFrame_level" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_SortBy("race");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="DuelFrame_class" inherits="DuelFrameSortButtonTemplate" text="DuelFrame_COL_CLASS">
				<Size>
					<AbsDimension x="76" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DuelFrame_race" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_SortBy("class");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="DuelFrame_result" inherits="DuelFrameSortButtonTemplate" text="DuelFrame_COL_PCT">
				<Size>
					<AbsDimension x="57" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DuelFrame_class" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_SortBy("result");
					</OnClick>
				</Scripts>
			</Button>
			<Button name="DuelFrame_score" inherits="DuelFrameSortButtonTemplate" text="DuelFrame_COL_SCORE">
				<Size>
					<AbsDimension x="77" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DuelFrame_result" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DuelFrame_SortBy("score");
					</OnClick>
				</Scripts>
			</Button>
			
			<!-- ============================================================================================= -->
			<!-- Place Holder Buttons                                                                          -->
			<!-- ============================================================================================= -->
		
			<Button name="DuelFrame_Duel1" inherits="DuelFrameButtonTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="195" y="-110"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel2" inherits="DuelFrameButtonTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel3" inherits="DuelFrameButtonTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel4" inherits="DuelFrameButtonTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel5" inherits="DuelFrameButtonTemplate" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel6" inherits="DuelFrameButtonTemplate" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel7" inherits="DuelFrameButtonTemplate" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel8" inherits="DuelFrameButtonTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel9" inherits="DuelFrameButtonTemplate" id="9">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel10" inherits="DuelFrameButtonTemplate" id="10">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel9" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel11" inherits="DuelFrameButtonTemplate" id="11">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel10" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel12" inherits="DuelFrameButtonTemplate" id="12">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel11" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel13" inherits="DuelFrameButtonTemplate" id="13">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel12" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel14" inherits="DuelFrameButtonTemplate" id="14">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel13" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="DuelFrame_Duel15" inherits="DuelFrameButtonTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="DuelFrame_Duel14" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>						
		</Frames>
		
		<!-- ============================================================================================= -->
		<!-- Events                                                                                        -->
		<!-- ============================================================================================= -->
		
		<Scripts>
		  <OnLoad>
		    this:RegisterEvent("DUEL_FINISHED");
		  	DuelFrame_OnLoad();
		  </OnLoad>
		  <OnEvent>
		  	if (event == "DUEL_FINISHED") then
		  		DuelFrame_Update();
		  	end
		  </OnEvent>
		  <OnShow>	    
				PlaySound("igBackPackOpen");
		  </OnShow>
		  <OnHide>
		  	PlaySound("igBackPackClose");
		  </OnHide>
		</Scripts>
	</Frame>
	
</Ui>