<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="Pets.lua"></Script>
	
	<CheckButton name="AltoPetButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="37" y="37"/>
		</Size>
		<DisabledTexture file="Interface\PetPaperDollFrame\UI-PetFrame-Slots-Companions">
			<TexCoords left="0.203125" right="0.765625" top="0.203125" bottom="0.7625625"/>
		</DisabledTexture>
		<HighlightTexture name="$parentHighlight" file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
		<Scripts>
			<OnEnter>
				Altoholic.Pets:OnEnter(self)
			</OnEnter>
			<OnLeave>
				AltoTooltip:Hide();
			</OnLeave>
			<OnClick>
				Altoholic.Pets:OnClick(self, button)
			</OnClick>
		</Scripts>
	</CheckButton>
	
	<Frame name="AltoholicFramePets" parent="AltoholicTabCharacters" hidden="true">
		<Size>
			<AbsDimension x="615" y="414"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT">
				<Offset>
					<AbsDimension x="39" y="-105"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText1" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="60" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="AltoholicFrameSearchLabel" relativePoint="RIGHT" >
							<Offset x="60" y="-5" />
						</Anchor>
					</Anchors>
					<Color r="255" g="255" b="255" />
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parent_SelectPetView" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentText1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-25" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						UIDropDownMenu_SetWidth(self, 100) 
						UIDropDownMenu_SetButtonWidth(self, 20)
						UIDropDownMenu_SetSelectedValue(self, 1);
						UIDropDownMenu_SetText(self, COMPANIONS)
						UIDropDownMenu_Initialize(self, Altoholic.Pets.DropDownPets_Initialize)
					</OnLoad>
				</Scripts>
			</Frame>
		
			<Frame name="$parentNormal">
				<Size>
					<AbsDimension x="615" y="306"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$Parent_PageNumber" inherits="GameFontHighlightSmallOutline" text="Page 1 of 2">
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="445" y="93"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="ARTWORK">
						<FontString name="$Parent_PetName" inherits="DialogButtonNormalText" justifyH="Center">
							<Size>
								<AbsDimension x="318" />
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="25" y="25"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<PlayerModel name="$Parent_ModelFrame">
						<Size>
							<AbsDimension x="318" y="220"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="25" y="-25"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								Model_OnLoad(self);
								self:RegisterEvent("DISPLAY_SIZE_CHANGED");
							</OnLoad>
							<OnEvent>
								self:RefreshUnit();
							</OnEvent>
							<OnUpdate>
								Model_OnUpdate(self, elapsed);
							</OnUpdate>
						</Scripts>
						<Frames>
							<Button name="$ParentRotateLeftButton">
								<Size>
									<AbsDimension x="35" y="35"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-10"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnLoad>
										self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
									</OnLoad>
									<OnClick>
										Model_RotateLeft(self:GetParent());
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up"/>
								<PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down"/>
								<HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
							</Button>
							<Button name="$ParentRotateRightButton">
								<Size>
									<AbsDimension x="35" y="35"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$ParentRotateLeftButton" relativePoint="TOPRIGHT"/>
								</Anchors>
								<Scripts>
									<OnLoad>
										self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
									</OnLoad>
									<OnClick>
										Model_RotateRight(self:GetParent());
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-RotationRight-Button-Up"/>
								<PushedTexture file="Interface\Buttons\UI-RotationRight-Button-Down"/>
								<HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
							</Button>
						</Frames>
					</PlayerModel>
				
					<CheckButton name="$Parent_Button1" inherits="AltoPetButtonTemplate" id="1">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="360" y="-100"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button2" inherits="AltoPetButtonTemplate" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button3" inherits="AltoPetButtonTemplate" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button4" inherits="AltoPetButtonTemplate" id="4">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button3" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button5" inherits="AltoPetButtonTemplate" id="5">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button4" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button6" inherits="AltoPetButtonTemplate" id="6">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button5" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button7" inherits="AltoPetButtonTemplate" id="7">
						<Anchors>
							<Anchor point="TOP" relativeTo="$Parent_Button1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-5"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button8" inherits="AltoPetButtonTemplate" id="8">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button7" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button9" inherits="AltoPetButtonTemplate" id="9">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button8" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button10" inherits="AltoPetButtonTemplate" id="10">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button9" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button11" inherits="AltoPetButtonTemplate" id="11">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button10" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button12" inherits="AltoPetButtonTemplate" id="12">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button11" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="4" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
				
					<Button name="$ParentPrevPage">
						<Size>
							<AbsDimension x="32" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="410" y="83"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								Altoholic.Pets:GoToPreviousPage()
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
					<Button name="$ParentNextPage">
						<Size>
							<AbsDimension x="32" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="$ParentPrevPage" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="80" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								Altoholic.Pets:GoToNextPage()
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
				</Frames>
			</Frame>
		
			<Frame name="$parentAllInOne" hidden="true">
				<Size>
					<AbsDimension x="615" y="414"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>
					<ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" />
							<Anchor point="BOTTOMRIGHT" />
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
									<Size>
										<AbsDimension x="31" y="256"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
											<Offset>
												<AbsDimension x="-2" 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="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
											<Offset>
												<AbsDimension x="-2" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(self, offset, 41, Altoholic.Pets.UpdatePetsAllInOne)
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
					
					<Button name="$parentEntry1" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentScrollFrame" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="3" y="3"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="$parentEntry2" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry1" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry3" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry2" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry4" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry3" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry5" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry4" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry6" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry5" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry7" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry6" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry8" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry7" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry9" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry8" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>
					<Button name="$parentEntry10" inherits="AltoIconListtEntryTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentEntry9" relativePoint="BOTTOMLEFT" />
						</Anchors>
					</Button>

				</Frames>
			</Frame>
		</Frames>
	</Frame>

</Ui>