<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">
	<!-- this code is shared between the Frame and Glue -->
	<Script file="..\FrameXML\VideoOptionsPanels.lua"/>
	<Script file="..\FrameXML\GraphicsQualityLevels.lua"/>
	<Frame name="VideoOptionsDropDownMenuTemplate" inherits="DropDownMenuTemplate" virtual="true">
		<Frames>
			<Frame name="$parentWarning" enableMouse="true" hidden="true" parentKey="warning">
				<Size>
					<AbsDimension x="20" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-12" y="1" />
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew">
							<Size>
								<AbsDimension x="20" y="20"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER" />
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						if ( self.tooltip ) then
							VideoOptionsTooltip:SetOwner(self, "ANCHOR_LEFT");
							VideoOptionsTooltip:SetText(self.tooltip, 1.0, 1.0, 1.0, 1, 1);
						end
					</OnEnter>
					<OnLeave>
						VideoOptionsTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnEnter>
				-- also called by $childButton
				if(self.tooltip ~= nil) then
					VideoOptionsTooltip:SetOwner(self);
					if(self.name == nil) then
						self.name = " ";
					end
					VideoOptionsTooltip:SetText(self.name .. ":", nil, nil, nil, nil, 1);
					VideoOptionsTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1.0, 1);
					VideoOptionsTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				-- also called by $childButton
				VideoOptionsTooltip:Hide();
			</OnLeave>
			<OnLoad>
				VideoOptionsDropDown_OnLoad(self);
			</OnLoad>
		</Scripts>
	</Frame>
	<Frame name="VideoOptionsSliderTemplate" inherits="OptionsSliderTemplate" virtual="true">
		<Scripts>
			<OnEnter>
				-- also called by $childButton
				if(self.tooltip ~= nil) then
					VideoOptionsTooltip:SetOwner(self);
					if(self.name == nil) then
						self.name = " ";
					end
					VideoOptionsTooltip:SetText(self.name .. ":", nil, nil, nil, nil, 1);
					VideoOptionsTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1.0, 1);
					VideoOptionsTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				-- also called by $childButton
				VideoOptionsTooltip:Hide();
			</OnLeave>
			<OnLoad>
				VideoOptionsSlider_OnLoad(self);
			</OnLoad>
		</Scripts>
	</Frame>
	<CheckButton name="VideoOptionsSmallCheckButtonTemplate" inherits="OptionsSmallCheckButtonTemplate" virtual="true">
		<Scripts>
			<OnEnter>
				if(self.tooltip ~= nil) then
					VideoOptionsTooltip:SetOwner(self);
					if(self.name == nil) then
						self.name = " ";
					end
					VideoOptionsTooltip:SetText(self.name .. ":", nil, nil, nil, nil, 1);
					VideoOptionsTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1.0, 1);
					VideoOptionsTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				VideoOptionsTooltip:Hide();
			</OnLeave>
			<OnClick>
				if ( self:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOn");
				else
					PlaySound("igMainMenuOptionCheckBoxOff");
				end
				BlizzardOptionsPanel_CheckButton_OnClick(self); 		
				Graphics_EnableApply(self);
			</OnClick>
			<OnLoad>
				VideoOptionsCheckbox_OnLoad(self);
			</OnLoad>
		</Scripts>
	</CheckButton>
	
	<Texture name="videoUnderline" virtual="true" >
		<Size x="580" y="1"/>
		<Color r="1" g="1" b="1" a="0.2"/>
	</Texture>
	<Texture name="videoSubUnderline" virtual="true" >
		<Size x="250" y="1"/>
		<Color r="1" g="1" b="1" a="0.2"/>
	</Texture>

	<!-- Graphics Panel. Delta_y is n*30 + 16 -->
	<Frame name="Graphics_" hidden="true" parent="VideoOptionsFramePanelContainer">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentDisplayHeader" text="DISPLAY_HEADER" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="16" y="-16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentDisplayHeaderUnderline" inherits="videoUnderline">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<FontString name="$parentGraphicsHeader" text="GRAPHICS_HEADER" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeaderUnderline" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-136"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentGraphicsHeaderUnderline" inherits="videoUnderline">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentGraphicsHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<FontString name="$parentTexturesHeader" text="TEXTURES_SUBHEADER" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentGraphicsHeaderUnderline" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="20" y="-74"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentTexturesHeaderUnderline" inherits="videoSubUnderline" hidden="false" >
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTexturesHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<FontString name="$parentEnvironmentHeader" text="ENVIRONMENT_SUBHEADER" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTexturesHeaderUnderline" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-130"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentEnvironmentHeaderUnderline" inherits="videoSubUnderline" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentEnvironmentHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentEffectsHeader" text="EFFECTS_SUBHEADER" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentGraphicsHeaderUnderline" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-250" y="-74"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentEffectsHeaderUnderline" inherits="videoSubUnderline" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentEffectsHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				Graphics_OnLoad(self);
			</OnLoad>
			<OnShow function="VideoOptionsPanel_OnShow"/>
		</Scripts>  
		<Frames>
			<!-- Column A -->
			<Frame name="$parentDisplayModeDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="120" y="-4"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="DISPLAY_MODE">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentResolutionDropDown" inherits="VideoOptionsDropDownMenuTemplate" enableMouse="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentDisplayModeDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="RESOLUTION" justifyH="RIGHT">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentRefreshDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentResolutionDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="REFRESH_RATE">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>


			<!-- Column B -->
			<Frame name="$parentPrimaryMonitorDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="10" >
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parentDisplayHeaderUnderline" relativePoint="BOTTOMRIGHT">
						<Offset x="16" y="-4"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="PRIMARY_MONITOR">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentMultiSampleDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentPrimaryMonitorDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="MULTISAMPLE">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			
			<Frame name="$parentVerticalSyncDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="10">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMultiSampleDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="VERTICAL_SYNC">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<!-- Display -->
			<!-- Column A -->
			<Slider name="$parentQuality" inherits="VideoOptionsSliderTemplate" minValue="1" maxValue="5" valueStep="1" stepsPerPage="1" >
				<Size x="10" y="22"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentGraphicsHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="10" y="-17"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentLow2" inherits="OptionsFontSmall" text="VIDEO_QUALITY_LABEL1">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="1" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentFair" inherits="OptionsFontSmall" text="VIDEO_QUALITY_LABEL2">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="140" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="Graphics_RightQualityLabel" inherits="OptionsFontHighlight" text="CUSTOM" >
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset x="256" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentMed" inherits="OptionsFontSmall" text="VIDEO_QUALITY_LABEL3">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="265" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentHigh2" inherits="OptionsFontSmall" text="VIDEO_QUALITY_LABEL4">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="400" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentUltra" inherits="OptionsFontSmall" text="VIDEO_QUALITY_LABEL5">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="535" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnValueChanged>
						CloseDropDownMenus()
						if(self.onvaluechanged) then
							BlizzardOptionsPanel_Slider_OnValueChanged(self, value);
						end
					</OnValueChanged>
				</Scripts>
			</Slider>   	
			<Frame name="$parentRightQuality">
				<Size x="560" y="22"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentGraphicsHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="11" y="-17"/>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
					<EdgeSize>
						<AbsValue val="8"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="8"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="3" right="3" top="6" bottom="6"/>
					</BackgroundInsets>
				</Backdrop>
			</Frame>

			<!-- Textures -->
			<Frame name="$parentTextureResolutionDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTexturesHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="100" y="-4"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="TEXTURE_DETAIL">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentFilteringDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="14">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTextureResolutionDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="ANISOTROPIC">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentProjectedTexturesDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentFilteringDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="PROJECTED_TEXTURES" >
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<!-- Environment -->
			<Frame name="$parentViewDistanceDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="9">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEnvironmentHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="100" y="-4"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="FARCLIP">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentEnvironmentalDetailDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentViewDistanceDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="ENVIRONMENT_DETAIL">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentGroundClutterDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="14">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEnvironmentalDetailDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="GROUND_CLUTTER">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<!-- Effects -->
			<!-- Column A -->
			<Frame name="$parentShadowsDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="9">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentEffectsHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="100" y="-4"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="SHADOW_QUALITY">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentLiquidDetailDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="14">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentShadowsDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="LIQUID_DETAIL">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset x="0" y="0"/>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentSunshaftsDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentLiquidDetailDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="SUNSHAFTS">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			
			<Frame name="$parentParticleDensityDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentSunshaftsDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="PARTICLE_DENSITY">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentSSAODropDown" inherits="VideoOptionsDropDownMenuTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentParticleDensityDropDown" relativePoint="BOTTOMLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="SSAO_LABEL">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
	</Frame>	

	<!-- Advanced Panel -->
	<Frame name="Advanced_" parent="VideoOptionsFramePanelContainer" hidden="true">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentDisplayHeader" text="EFFECTS_LABEL" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="16" y="-16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentDisplayHeaderUnderline" inherits="videoUnderline">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentBufferingDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="120" y="-4"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="TRIPLE_BUFFER">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentLagDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentBufferingDropDown" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="FIX_LAG">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentHardwareCursorDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentLagDropDown" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="HARDWARE_CURSOR" >
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentGraphicsAPIDropDown" inherits="VideoOptionsDropDownMenuTemplate" id="16">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentHardwareCursorDropDown" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentLabel" inherits="OptionsFontSmall" text="GXAPI" >
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Slider name="$parentUIScaleSlider" inherits="VideoOptionsSliderTemplate" minValue="0.65" maxValue="1.15" valueStep=".05" obeyStepOnDrag="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentGraphicsAPIDropDown" relativePoint="BOTTOMLEFT">
						<Offset x="-90" y="-20"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentTick" inherits="OptionsFontHighlightSmall" text="1.0">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="138" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						if(InGlue()) then
							self:Hide();
						else
							local width = 2 * (Graphics_VerticalSyncDropDown:GetWidth() - 25 - 25);
							self:SetWidth(width );
							self.name = UI_SCALE;
							self.tooltip = OPTION_TOOLTIP_UI_SCALE;
							self.type = CONTROLTYPE_SLIDER;
							self.cvar = "uiscale";
							self.SetDisplayValue = self.SetValue;
							self.SetValue = function (self, value)
								self:SetDisplayValue(value);
								BlizzardOptionsPanel_SetCVarSafe(self.cvar, value);
							end
							local value = BlizzardOptionsPanel_GetCVarSafe("useUiScale")
							if(value ~= 0) then
								VideoOptions_Enable(self);
							else
								VideoOptions_Disable(self);
							end
							local name = self:GetName();
							_G[name.."Text"]:SetFontObject("OptionsFontSmall");
							_G[name.."Text"]:SetText(UI_SCALE);


							BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
							BlizzardOptionsPanel_SetupDependentControl(useuiscale, self);
						end
					</OnLoad>
					<OnValueChanged>
						if(userInput) then
							Graphics_EnableApply(self);
							self.newValue = value;
						end
					</OnValueChanged>
				</Scripts>
			</Slider>
			<CheckButton name="$parentUseUIScale" inherits="VideoOptionsSmallCheckButtonTemplate" >
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentUIScaleSlider" relativePoint="LEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						if(InGlue()) then
							self:Hide();
						else
							self.cvar = "useUiScale";
							self.SetValue = function (self, value)
								BlizzardOptionsPanel_SetCVarSafe(self.cvar, value);
							end
							VideoOptionsCheckbox_OnLoad(self);
						end
					</OnLoad>
					<OnClick>
						local parent = (self:GetParent()):GetName();
						local slider = _G[parent.."UIScaleSlider"];
						if ( self:GetChecked() ) then
							PlaySound("igMainMenuOptionCheckBoxOn");
							VideoOptions_Enable(slider);
						else
							PlaySound("igMainMenuOptionCheckBoxOff");
							VideoOptions_Disable(slider);
						end
						BlizzardOptionsPanel_CheckButton_OnClick(self); 		
						Graphics_EnableApply(self);
					</OnClick>
				</Scripts>
			</CheckButton>
			<!-- column B -->

			<Slider name="$parentMaxFPSSlider" inherits="VideoOptionsSliderTemplate" minValue="8" maxValue="200" valueStep="5" obeyStepOnDrag="true">
				<Size x="10" y="17"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentBufferingDropDown" relativePoint="RIGHT">
						<Offset x="80" y="-5"/>
					</Anchor>
				</Anchors>
				<Scripts>		
					<OnLoad>
						local width = 2 * (Graphics_VerticalSyncDropDown:GetWidth() - 25 - 25)
						self:SetWidth(width);
						local name = self:GetName();
						self.type = CONTROLTYPE_SLIDER;
						self.cvar = "maxfps";
						self.tooltip = OPTION_MAXFPS;
						self.name = MAXFPS;

						self.SetDisplayValue = self.SetValue;
						self.SetValue = function (self, value)
							self:SetDisplayValue(value);
							BlizzardOptionsPanel_SetCVarSafe(self.cvar, value);
						end
						self.GetCurrentValue = 
							function (self) 
								return BlizzardOptionsPanel_GetCVarSafe(self.cvar);
							end;
						
						_G[name.."Text"]:SetFontObject("OptionsFontSmall");
						_G[name.."Text"]:SetText(MAXFPS);

						local minValue = "8";
						local maxValue = "200";
						_G[name.."Low"]:SetText(minValue);
						_G[name.."High"]:SetText(maxValue);
						VideoOptionsSlider_OnLoad(self);
					</OnLoad>
					<OnValueChanged>
						if(userInput) then
							Graphics_EnableApply(self);
							self.newValue = value;
						end
					</OnValueChanged>
				</Scripts>
			</Slider>
			<CheckButton name="$parentMaxFPSCheckBox" inherits="VideoOptionsSmallCheckButtonTemplate">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentMaxFPSSlider" relativePoint="LEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = (self:GetParent()):GetName();
						local slider = _G[parent .. "MaxFPSSlider"];
						if ( self:GetChecked() ) then
							PlaySound("igMainMenuOptionCheckBoxOn");
							VideoOptions_Enable(slider);
							slider.newValue = 8;
							slider:SetDisplayValue(8);
						else
							PlaySound("igMainMenuOptionCheckBoxOff");
							VideoOptions_Disable(slider);
							slider.newValue = 0;
							slider:SetDisplayValue(0);
						end
						BlizzardOptionsPanel_CheckButton_OnClick(self); 		
						Graphics_EnableApply(self);
					</OnClick>
				</Scripts>
			</CheckButton>
			<Slider name="$parentMaxFPSBKSlider" inherits="VideoOptionsSliderTemplate" minValue="8" maxValue="200" valueStep="5" obeyStepOnDrag="true">
				<Size x="10" y="17"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMaxFPSSlider" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-25"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local width = 2 * (Graphics_VerticalSyncDropDown:GetWidth() - 25 - 25)
						self:SetWidth(width);
						local name = self:GetName();
						self.type = CONTROLTYPE_SLIDER;
						self.cvar = "maxfpsbk";
						self.tooltip = OPTION_MAXFPSBK;
						self.name = MAXFPSBK;
						self.SetDisplayValue = self.SetValue;
						self.SetValue = function (self, value)
							self:SetDisplayValue(value);
							BlizzardOptionsPanel_SetCVarSafe(self.cvar, value);
						end
						self.GetCurrentValue = 
							function (self) 
								return BlizzardOptionsPanel_GetCVarSafe(self.cvar);
							end;
						_G[name.."Text"]:SetFontObject("OptionsFontSmall");
						_G[name.."Text"]:SetText(MAXFPSBK);
						local minValue = "8";
						local maxValue = "200";
						_G[name.."Low"]:SetText(minValue);
						_G[name.."High"]:SetText(maxValue);
						VideoOptionsSlider_OnLoad(self);
					</OnLoad>
					<OnValueChanged>
						if(userInput) then
							Graphics_EnableApply(self);
							self.newValue = value;
						end
					</OnValueChanged>
				</Scripts>
			</Slider>   
			<CheckButton name="$parentMaxFPSBKCheckBox" inherits="VideoOptionsSmallCheckButtonTemplate">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentMaxFPSBKSlider" relativePoint="LEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						local parent = (self:GetParent()):GetName();
						local slider = _G[parent .. "MaxFPSBKSlider"];
						if ( self:GetChecked() ) then
							PlaySound("igMainMenuOptionCheckBoxOn");
							VideoOptions_Enable(slider);
							slider.newValue = 8;
							slider:SetDisplayValue(8);
						else
							PlaySound("igMainMenuOptionCheckBoxOff");
							VideoOptions_Disable(slider);
							slider.newValue = 0;
							slider:SetDisplayValue(0);
						end
						BlizzardOptionsPanel_CheckButton_OnClick(self); 		
						Graphics_EnableApply(self);
					</OnClick>
				</Scripts>
			</CheckButton>
			<Slider name="$parentGammaSlider" inherits="VideoOptionsSliderTemplate" minValue="-0.5" maxValue="0.5" defaultValue="0" valueStep=".1">
				<Size x="10" y="17"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMaxFPSBKSlider" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-25"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentGrayScale" file="Interface\OptionsFrame\21stepgrayscale">
							<Size x="10" y="16"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset x="0" y="-30"/>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						local width = 2 * (Graphics_VerticalSyncDropDown:GetWidth() - 25 - 25);
						self:SetWidth(width );
						_G[self:GetName() .. "GrayScale"]:SetWidth(width);
						self.label = GAMMA;
						self.SetDisplayValue = self.SetValue;
						self.SetValue = function (self, value)
							self:SetDisplayValue(value);
							SetGamma(value);
						end
						self.GetCurrentValue = function (self) return GetGamma(); end;
						_G[self:GetName().."Text"]:SetFontObject("OptionsFontSmall");
						_G[self:GetName().."Text"]:SetText(GAMMA);
						_G[self:GetName().."Low"]:SetText("-");
						_G[self:GetName().."High"]:SetText("+");
						VideoOptionsSlider_OnLoad(self);
					</OnLoad>
					<OnValueChanged>
						if(userInput) then
							Graphics_EnableApply(self);
							self.newValue = value;
							if ( self:GetParent():IsShown() ) then
								SetGamma(value);
							end
						end
					</OnValueChanged>
				</Scripts>
			</Slider>
			<CheckButton name="$parentDesktopGamma" inherits="VideoOptionsSmallCheckButtonTemplate">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentGammaSlider" relativePoint="LEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						self:onclick();
					</OnClick>
				</Scripts>
			</CheckButton>		
		</Frames>

			<!-- stereo -->
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentStereoHeader" text="STEREO_VIDEO_LABEL" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="16" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentStereoHeaderUnderline" inherits="videoUnderline">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentStereoHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton name="$parentStereoEnabled" inherits="VideoOptionsSmallCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentStereoHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
            local name = self:GetName();
            self.cvar = "gxStereoEnabled";
            self.SetValue = function (self, value)
              BlizzardOptionsPanel_SetCVarSafe(self.cvar, value);
            end
            self.restart = true;
            _G[name.."Text"]:SetText(ENABLE_STEREO_VIDEO);
            VideoOptionsCheckbox_OnLoad(self);
          </OnLoad>
				</Scripts>
			</CheckButton>
			<Slider name="$parentConvergence" inherits="VideoOptionsSliderTemplate" minValue="0.2" maxValue="50" valueStep="0.1">
				<Size x="270" y="17"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentStereoEnabled" relativePoint="BOTTOMLEFT">
						<Offset x="10" y="-15"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local name = self:GetName();
						self.type = CONTROLTYPE_SLIDER;
						self.tooltip = OPTION_STEREO_CONVERGENCE;
						self.name = DEPTH_CONVERGENCE;
						self.cvar = "gxStereoConvergence";
						self.SetDisplayValue = self.SetValue;
						self.SetValue = function (self, value)
							self:SetDisplayValue(value);
							BlizzardOptionsPanel_SetCVarSafe(self.cvar, value);
						end
						_G[name.."Text"]:SetFontObject("OptionsFontSmall");
						_G[name.."Text"]:SetText(DEPTH_CONVERGENCE);
						BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
						local parent = (self:GetParent()):GetName();
						local enabled = _G[parent.."StereoEnabled"];
						BlizzardOptionsPanel_SetupDependentControl(enabled, self);
					</OnLoad>
					<OnValueChanged>
						if(userInput) then
							Graphics_EnableApply(self);
							BlizzardOptionsPanel_SetCVarSafe(self.cvar, self:GetValue());
							self.newValue = self:GetValue();
						end
					</OnValueChanged>
				</Scripts>
			</Slider>
			<Slider name="$parentEyeSeparation" inherits="VideoOptionsSliderTemplate" minValue="0" maxValue="100" valueStep="1">
				<Size x="270" y="17"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentConvergence" relativePoint="BOTTOMLEFT">
						<Offset x="0" y="-15"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local name = self:GetName();
						self.type = CONTROLTYPE_SLIDER;
						self.cvar = "gxStereoSeparation";
						self.tooltip = OPTION_STEREO_SEPARATION;
						self.name = EYE_SEPARATION;
						self.SetDisplayValue = self.SetValue;
						self.SetValue = function (self, value)
							self:SetDisplayValue(value);
							BlizzardOptionsPanel_SetCVarSafe(self.cvar, value);
						end
						_G[name.."Text"]:SetFontObject("OptionsFontSmall");
						_G[name.."Text"]:SetText(EYE_SEPARATION);

						BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
						local parent = (self:GetParent()):GetName();
						local enabled = _G[parent.."StereoEnabled"];
						BlizzardOptionsPanel_SetupDependentControl(enabled, self);
					</OnLoad>
					<OnValueChanged>
						if(userInput) then
							Graphics_EnableApply(self);
							BlizzardOptionsPanel_SetCVarSafe(self.cvar, self:GetValue());
							self.newValue = self:GetValue();
						end
					</OnValueChanged>
				</Scripts>
			</Slider>
		</Frames>
		<Scripts>
			<OnLoad function="Advanced_OnLoad" />
			<OnShow function="VideoOptionsPanel_OnShow"/>
		</Scripts>  
	</Frame>
	
	<!-- Network Panel -->
	<Frame name="NetworkOptionsPanel" parent="VideoOptionsFramePanelContainer" hidden="true">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentDisplayHeader" text="NETWORK_LABEL" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="16" y="-16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentDisplayHeaderUnderline" inherits="videoUnderline">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeader" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton name="$parentOptimizeSpeed" inherits="OptionsCheckButtonTemplate" >
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeaderUnderline" relativePoint="BOTTOMLEFT">
						<Offset x="10" y="-8"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.type = CONTROLTYPE_CHECKBOX;
						self.cvar = "disableServerNagle";
						BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
					</OnLoad>
					<OnClick function="NetworkOptionsPanel_CheckButton_OnClick"/>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentUseIPv6" inherits="OptionsCheckButtonTemplate" motionScriptsWhileDisabled="true">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentOptimizeSpeed" relativePoint="BOTTOM">
						<Offset x="0" y="-8"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.type = CONTROLTYPE_CHECKBOX;
						self.cvar = "useIPv6";
						BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
					</OnLoad>
					<OnClick function="NetworkOptionsPanel_CheckButton_OnClick"/>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentAdvancedCombatLogging" inherits="OptionsCheckButtonTemplate" motionScriptsWhileDisabled="true">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentUseIPv6" relativePoint="BOTTOM">
						<Offset x="0" y="-8"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.type = CONTROLTYPE_CHECKBOX;
						self.cvar = "advancedCombatLogging";
						BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
					</OnLoad>
					<OnClick function="NetworkOptionsPanel_CheckButton_OnClick"/>
				</Scripts>
			</CheckButton>
		</Frames>
		<Scripts>
			<OnLoad function="NetworkOptionsPanel_OnLoad" />
			<OnShow function="VideoOptionsPanel_OnShow"/>
		</Scripts>  
	</Frame>

	<!-- Languages -->

	<Frame name="InterfaceOptionsLanguagesPanel" parent="VideoOptionsFramePanelContainer">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentDisplayHeader" text="LANGUAGES_LABEL" inherits="OptionsFontHighlight" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" x="16" y="-16"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentLocaleDropDown" inherits="DropDownMenuTemplate" enableMouse="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentDisplayHeader" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-16" y="-16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="RestartNeeded" file="Interface\Common\Lang-Alerts" hidden="true">
							<Size x="512" y="22"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="20" y="-20"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						InterfaceOptionsLanguagesPanelLocaleDropDown_OnLoad(self)
					</OnLoad>
					<OnEvent>
						InterfaceOptionsLanguagesPanelLocaleDropDown_OnEvent(self, event, ...);
					</OnEvent>
					<OnEnter>
						VideoOptionsTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
						VideoOptionsTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						VideoOptionsTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>
<!--
			<CheckButton name="$parentUseEnglishAudio" inherits="InterfaceOptionsCheckButtonTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentLocaleDropDown" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="48" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.type = CONTROLTYPE_CHECKBOX;
						self.cvar = "useEnglishAudio";
						BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
					</OnLoad>
				</Scripts>
			</CheckButton>
-->
		</Frames>
		<Scripts>
			<OnLoad>
				InterfaceOptionsLanguagesPanel_OnLoad(self);			
			</OnLoad>
		</Scripts>		
	</Frame>
</Ui>