<!--

	AtlasQuest, a World of Warcraft addon.
	Email me at mystery8@gmail.com

	This file is part of AtlasQuest.

	AtlasQuest is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	AtlasQuest is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with AtlasQuest; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

-->


<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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
------------------ FRAME INSIDE ATLAS

<!--  Fonts -->
<!-- Cause Problems with the CN font i will use blizzard default font to prevent problems! -->
<!-- Blizz Fonts (Height): -->

<!-- GameFontNormalSmall (10)  .. use instead of AQFontVERYSmall but it is smaller -->
<!-- SystemFont (15)  .. use for AQFontBIG -->
<!-- QuestFont (13)  .. use for AQFont -->
<!-- GameFontNormalLarge (16) .. perhaps useful -->
<!-- QuestFontHighlight (14)  .. perhaps useful -->

<!--
<FontString name="QuestFont" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
  <FontHeight>
    <AbsValue val="13"/>
  </FontHeight>
    <Color r="1.0" g="0.82" b="0"/>
</FontString>

<FontString name="AQFontVERYSmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
  <FontHeight>
    <AbsValue val="11"/>
    </FontHeight>
    <Color r="1.0" g="0.82" b="0"/>
</FontString>

<FontString name="SystemFont" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
  <FontHeight>
    <AbsValue val="15"/>
  </FontHeight>
    <Color r="1.0" g="0.82" b="0"/>
</FontString>

These fonts are useless atm -->


<!--  AtlasQuest Inside Atlas/AlphaMap frame -->
<Frame name="AtlasQuestInsideFrame" toplevel="true" enableMouse="true" parent="AtlasFrame" hidden="false">
   <Size>
      <AbsDimension x="510" y="510"/>
   </Size>
   <Anchors>
      <Anchor point="TOPLEFT">
 	     <Offset>
 	        <AbsDimension x="18" y="-84"/>
 	     </Offset>
 	  </Anchor>
   </Anchors>
     <Frames>
-----------------------------------------FRAME 1  --------------------------------------------------------------
        <Button name="AtlasQuestItemframe1" virtual="true" hidden="false">
          <Size>
            <AbsDimension x="236" y="30"/>
          </Size>
          <Anchors>
             <Anchor point="BOTTOMLEFT">
              <Offset>
				  <AbsDimension x="20" y="120"/>
			  </Offset>
			 </Anchor>
          </Anchors>
          <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
        <Layers>
         <Layer level="ARTWORK">
            <Texture name="AtlasQuestItemframe1_Icon">
               <Size>
                  <AbsDimension x="24" y="24"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
               </Anchors>
            </Texture>
            <FontString name="AtlasQuestItemframe1_Name" inherits="GameFontNormal" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="12"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
                     <Offset>
                        <AbsDimension x="3" y="0"/>
                     </Offset>
                  </Anchor>
               </Anchors>
            </FontString>
            <FontString name="AtlasQuestItemframe1_Extra" inherits="GameFontNormalSmall" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="10"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Name" relativePoint="BOTTOMLEFT"/>
               </Anchors>
            </FontString>
         </Layer>
      </Layers>
           <Scripts>
              <OnEnter>
                AQTHISISSHOWN = 1;
				AtlasQuestItem_OnEnter();
			  </OnEnter>
			  <OnLeave>
				AtlasQuestItem_OnLeave();
			  </OnLeave>
			  <OnClick>
				AtlasQuestItem_OnClick(arg1);
			  </OnClick>
			  <OnLoad>
                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
              </OnLoad>
              <OnShow>
	    	    this:SetFrameLevel( this:GetParent():GetFrameLevel() + 1 );
	          </OnShow>
           </Scripts>
        </Button>
----------------------------------------- FRAME 2  --------------------------------------------------------------
        <Button name="AtlasQuestItemframe2" virtual="true" hidden="false">
          <Size>
            <AbsDimension x="236" y="30"/>
          </Size>
          <Anchors>
             <Anchor point="BOTTOMLEFT">
              <Offset>
				  <AbsDimension x="266" y="120"/>
			  </Offset>
			 </Anchor>
          </Anchors>
          <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
        <Layers>
         <Layer level="ARTWORK">
            <Texture name="AtlasQuestItemframe2_Icon">
               <Size>
                  <AbsDimension x="24" y="24"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
               </Anchors>
            </Texture>
            <FontString name="AtlasQuestItemframe2_Name" inherits="GameFontNormal" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="12"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
                     <Offset>
                        <AbsDimension x="3" y="0"/>
                     </Offset>
                  </Anchor>
               </Anchors>
            </FontString>
            <FontString name="AtlasQuestItemframe2_Extra" inherits="GameFontNormalSmall" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="10"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Name" relativePoint="BOTTOMLEFT"/>
               </Anchors>
            </FontString>
         </Layer>
      </Layers>
           <Scripts>
              <OnEnter>
                AQTHISISSHOWN = 2;
				AtlasQuestItem_OnEnter();
			  </OnEnter>
			  <OnLeave>
				AtlasQuestItem_OnLeave();
			  </OnLeave>
			  <OnClick>
				AtlasQuestItem_OnClick(arg1);
			  </OnClick>
			  <OnLoad>
                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
              </OnLoad>
              <OnShow>
	    	    this:SetFrameLevel( this:GetParent():GetFrameLevel() + 1 );
	          </OnShow>
           </Scripts>
        </Button>
----------------------------------------- FRAME 3  --------------------------------------------------------------
        <Button name="AtlasQuestItemframe3" virtual="true" hidden="false">
          <Size>
            <AbsDimension x="236" y="30"/>
          </Size>
          <Anchors>
             <Anchor point="BOTTOMLEFT">
              <Offset>
				  <AbsDimension x="20" y="70"/>
			  </Offset>
			 </Anchor>
          </Anchors>
          <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
        <Layers>
         <Layer level="ARTWORK">
            <Texture name="AtlasQuestItemframe3_Icon">
               <Size>
                  <AbsDimension x="24" y="24"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
               </Anchors>
            </Texture>
            <FontString name="AtlasQuestItemframe3_Name" inherits="GameFontNormal" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="12"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
                     <Offset>
                        <AbsDimension x="3" y="0"/>
                     </Offset>
                  </Anchor>
               </Anchors>
            </FontString>
            <FontString name="AtlasQuestItemframe3_Extra" inherits="GameFontNormalSmall" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="10"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Name" relativePoint="BOTTOMLEFT"/>
               </Anchors>
            </FontString>
         </Layer>
      </Layers>
           <Scripts>
              <OnEnter>
                AQTHISISSHOWN = 3;
				AtlasQuestItem_OnEnter();
			  </OnEnter>
			  <OnLeave>
				AtlasQuestItem_OnLeave();
			  </OnLeave>
			  <OnClick>
				AtlasQuestItem_OnClick(arg1);
			  </OnClick>
			  <OnLoad>
                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
              </OnLoad>
              <OnShow>
	    	    this:SetFrameLevel( this:GetParent():GetFrameLevel() + 1 );
	          </OnShow>
           </Scripts>
        </Button>
---------------------------------------- FRAME 4  --------------------------------------------------------------
        <Button name="AtlasQuestItemframe4" virtual="true" hidden="false">
          <Size>
            <AbsDimension x="236" y="30"/>
          </Size>
          <Anchors>
             <Anchor point="BOTTOMLEFT">
              <Offset>
				  <AbsDimension x="266" y="70"/>
			  </Offset>
			 </Anchor>
          </Anchors>
          <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
        <Layers>
         <Layer level="ARTWORK">
            <Texture name="AtlasQuestItemframe4_Icon">
               <Size>
                  <AbsDimension x="24" y="24"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
               </Anchors>
            </Texture>
            <FontString name="AtlasQuestItemframe4_Name" inherits="GameFontNormal" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="12"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
                     <Offset>
                        <AbsDimension x="3" y="0"/>
                     </Offset>
                  </Anchor>
               </Anchors>
            </FontString>
            <FontString name="AtlasQuestItemframe4_Extra" inherits="GameFontNormalSmall" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="10"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Name" relativePoint="BOTTOMLEFT"/>
               </Anchors>
            </FontString>
         </Layer>
      </Layers>
           <Scripts>
              <OnEnter>
                AQTHISISSHOWN = 4;
				AtlasQuestItem_OnEnter();
			  </OnEnter>
			  <OnLeave>
				AtlasQuestItem_OnLeave();
			  </OnLeave>
			  <OnClick>
				AtlasQuestItem_OnClick(arg1);
			  </OnClick>
			  <OnLoad>
                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
              </OnLoad>
              <OnShow>
	    	    this:SetFrameLevel( this:GetParent():GetFrameLevel() + 1 );
	          </OnShow>
           </Scripts>
        </Button>
----------------------------------------- FRAME 5  --------------------------------------------------------------
        <Button name="AtlasQuestItemframe5" virtual="true" hidden="false">
          <Size>
            <AbsDimension x="236" y="30"/>
          </Size>
          <Anchors>
             <Anchor point="BOTTOMLEFT">
              <Offset>
				  <AbsDimension x="20" y="20"/>
			  </Offset>
			 </Anchor>
          </Anchors>
          <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
        <Layers>
         <Layer level="ARTWORK">
            <Texture name="AtlasQuestItemframe5_Icon">
               <Size>
                  <AbsDimension x="24" y="24"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
               </Anchors>
            </Texture>
            <FontString name="AtlasQuestItemframe5_Name" inherits="GameFontNormal" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="12"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
                     <Offset>
                        <AbsDimension x="3" y="0"/>
                     </Offset>
                  </Anchor>
               </Anchors>
            </FontString>
            <FontString name="AtlasQuestItemframe5_Extra" inherits="GameFontNormalSmall" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="10"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Name" relativePoint="BOTTOMLEFT"/>
               </Anchors>
            </FontString>
         </Layer>
      </Layers>
           <Scripts>
              <OnEnter>
                AQTHISISSHOWN = 5;
				AtlasQuestItem_OnEnter();
			  </OnEnter>
			  <OnLeave>
				AtlasQuestItem_OnLeave();
			  </OnLeave>
			  <OnClick>
				AtlasQuestItem_OnClick(arg1);
			  </OnClick>
			  <OnLoad>
                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
              </OnLoad>
              <OnShow>
	    	    this:SetFrameLevel( this:GetParent():GetFrameLevel() + 1 );
	          </OnShow>
           </Scripts>
        </Button>
----------------------------------------- FRAME 6  --------------------------------------------------------------
        <Button name="AtlasQuestItemframe6" virtual="true" hidden="false">
          <Size>
            <AbsDimension x="236" y="30"/>
          </Size>
          <Anchors>
             <Anchor point="BOTTOMLEFT">
              <Offset>
				  <AbsDimension x="266" y="20"/>
			  </Offset>
			 </Anchor>
          </Anchors>
          <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
        <Layers>
         <Layer level="ARTWORK">
            <Texture name="AtlasQuestItemframe6_Icon">
               <Size>
                  <AbsDimension x="24" y="24"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
               </Anchors>
            </Texture>
            <FontString name="AtlasQuestItemframe6_Name" inherits="GameFontNormal" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="12"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
                     <Offset>
                        <AbsDimension x="3" y="0"/>
                     </Offset>
                  </Anchor>
               </Anchors>
            </FontString>
            <FontString name="AtlasQuestItemframe6_Extra" inherits="GameFontNormalSmall" justifyH="LEFT">
               <Size>
                  <AbsDimension x="205" y="10"/>
               </Size>
               <Anchors>
                  <Anchor point="TOPLEFT" relativeTo="$parent_Name" relativePoint="BOTTOMLEFT"/>
               </Anchors>
            </FontString>
         </Layer>
      </Layers>
           <Scripts>
              <OnEnter>
                AQTHISISSHOWN = 6;
				AtlasQuestItem_OnEnter();
			  </OnEnter>
			  <OnLeave>
				AtlasQuestItem_OnLeave();
			  </OnLeave>
			  <OnClick>
				AtlasQuestItem_OnClick(arg1);
			  </OnClick>
			  <OnLoad>
                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
              </OnLoad>
              <OnShow>
	    	    this:SetFrameLevel( this:GetParent():GetFrameLevel() + 1 );
	          </OnShow>
           </Scripts>
        </Button>
--------------------------------------------FRAME ENDE-----------------------------------------------------------
		<Button name="CLOSEbutton2" inherits="UIPanelCloseButton" text="X">
          <Size>
            <AbsDimension x="30" y="30"/>
          </Size>
	      <Anchors>
		     <Anchor point="TOPRIGHT">
			   <Offset>
				  <AbsDimension x="-5" y="-3"/>
			   </Offset>
		     </Anchor>
	      </Anchors>
	      <Scripts>
		    <OnClick>
		      AQCLOSE2_OnClick();
	        </OnClick>
	        <OnShow>
		    	this:SetFrameLevel( this:GetParent():GetFrameLevel() + 1 );
		    </OnShow>
	      </Scripts>
        </Button>
        <CheckButton name="AQFinishedQuest" inherits="OptionsCheckButtonTemplate" checked="false">
         <Size>
          <AbsDimension x="25" y="25"/>
         </Size>
	     <Anchors>
		  <Anchor point="TOPRIGHT">
			  <Offset>
			    	<AbsDimension x="-65" y="-45"/>
			  </Offset>
		  </Anchor>
	     </Anchors>
	     <HitRectInsets>
           <AbsInset left="0" right="0" top="0" bottom="0"/>
         </HitRectInsets>
	     <Scripts>
		   <OnClick> AQFinishedQuest_OnClick(); </OnClick>
		   <OnShow>
	         this:SetFrameLevel( this:GetParent():GetFrameLevel() + 2 );
	       </OnShow>
	     </Scripts>
        </CheckButton>
        <Button name="AQNextPageButton_Right" inherits="" hidden="true">
          <Size>
            <AbsDimension x="40" y="40"/>
          </Size>
	      <Anchors>
		    <Anchor point="BOTTOM">
			  <Offset>
			    <AbsDimension x="45" y="10"/>
			  </Offset>
		    </Anchor>
	      </Anchors>
	     <NormalTexture file="Interface\Glues\Common\Glue-RightArrow-Button-Up"/>
		 <PushedTexture file="Interface\Glues\Common\Glue-RightArrow-Button-Down"/>
		 <HighlightTexture file="Interface\Glues\Common\Glue-RightArrow-Button-Highlight" alphaMode="ADD"/>
	      <Scripts>
		    <OnClick> AQNextPageR_OnClick(); </OnClick>
		    <OnShow>
	          this:SetFrameLevel( this:GetParent():GetFrameLevel() + 2 );
	        </OnShow>
	      </Scripts>
        </Button>
        <Button name="AQNextPageButton_Left" inherits="" hidden="true">
          <Size>
            <AbsDimension x="40" y="40"/>
          </Size>
	      <Anchors>
		    <Anchor point="BOTTOM">
			  <Offset>
			    <AbsDimension x="-45" y="10"/>
			  </Offset>
		    </Anchor>
	      </Anchors>
	      <NormalTexture file="Interface\Glues\Common\Glue-LeftArrow-Button-Up"/>
		  <PushedTexture file="Interface\Glues\Common\Glue-LeftArrow-Button-Down"/>
		  <HighlightTexture file="Interface\Glues\Common\Glue-LeftArrow-Button-Highlight" alphaMode="ADD"/>
	      <Scripts>
		    <OnClick> AQNextPageL_OnClick(); </OnClick>
		    <OnShow>
	          this:SetFrameLevel( this:GetParent():GetFrameLevel() + 2 );
	        </OnShow>
	      </Scripts>
        </Button>
     </Frames>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parent_Back">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
					<Color r="0" g="0" b="0" a="0.75"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
			  <FontString name="QuestName" inherits="GameFontNormalLarge">
                <Size>
                  <AbsDimension x="400" y="12"/>
                </Size>
                <Anchors>
                   <Anchor point="TOP">
                     <Offset>
                       <AbsDimension x="0" y="-20"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
               <FontString name="QuestLeveltext" inherits="QuestFont" justifyH = "LEFT" justifyV = "TOP">
                <Size>
                  <AbsDimension x="400" y="12"/>
                </Size>
                <Anchors>
                   <Anchor point="TOPLEFT">
                     <Offset>
                       <AbsDimension x="20" y="-50"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
               <FontString name="QuestAttainLeveltext" inherits="QuestFont" justifyH = "LEFT" justifyV="TOP">
                <Size>
                  <AbsDimension x="400" y="12"/>
                </Size>
                <Anchors>
                   <Anchor point="TOPLEFT">
                     <Offset>
                       <AbsDimension x="140" y="-50"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
               <FontString name="Prequesttext" inherits="QuestFont" maxLines="20" justifyH = "LEFT" justifyV = "TOP">
                <Size>
                  <AbsDimension x="450" y="500"/>
                </Size>
                <Anchors>
                   <Anchor point="TOPLEFT">
                     <Offset>
                       <AbsDimension x="20" y="-75"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
               <FontString name="StoryTEXT" inherits="GameFontNormalLarge" justifyH = "LEFT" justifyV = "TOP">
                <Size>
                  <AbsDimension x="410" y="450"/>
                </Size>
                <Anchors>
                   <Anchor point="TOPLEFT">
                     <Offset>
                       <AbsDimension x="50" y="-50"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
               <FontString name="REWARDstext" inherits="GameFontNormalLarge" justifyH = "LEFT" justifyV="TOP" >
                <Size>
                  <AbsDimension x="400" y="12"/>
                </Size>
                <Anchors>
                   <Anchor point="BOTTOMLEFT">
                     <Offset>
                       <AbsDimension x="20" y="155"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
               <FontString name="AQFQ_TEXT" inherits="QuestFont" justifyH = "LEFT" justifyV="TOP" text="Quest finished:">
                <Size>
                  <AbsDimension x="150" y="12"/>
                </Size>
                <Anchors>
                   <Anchor point="TOPRIGHT">
                     <Offset>
                       <AbsDimension x="-10" y="-50"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
               <FontString name="AQPageCount" inherits="GameFontNormalLarge" justifyV="TOP">
                <Size>
                  <AbsDimension x="50" y="20"/>
                </Size>
                <Anchors>
                   <Anchor point="BOTTOM">
                     <Offset>
                       <AbsDimension x="" y="18"/>
                     </Offset>
                   </Anchor>
                </Anchors>
               </FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEvent>
				AQ_OnEvent(event);
			</OnEvent>
		</Scripts>
	</Frame>

<!--          SHOW HIDE (PANEL) BUTTON            -->

	<Frame name="AtlasQuestButtonFrame" toplevel="true" enableMouse="true" parent="AtlasFrame" hidden="false">
	  <Size>
			<AbsDimension x="1" y="1"/>
		</Size>
		<Anchors>
 			<Anchor point="TOPRIGHT">
 			</Anchor>
 		</Anchors>
	  <Frames>
	  <Button name="CLOSEbutton3" inherits="UIPanelButtonTemplate2" text="AtlasQuest">
          <Size>
            <AbsDimension x="90" y="20"/>
          </Size>
	      <Anchors>
		     <Anchor point="TOPRIGHT">
			   <Offset>
				  <AbsDimension x="-115" y="-50"/>
			   </Offset>
		     </Anchor>
	      </Anchors>
	      <Scripts>
		    <OnClick>
		       AQCLOSE_OnClick();
	        </OnClick>
	        <OnUpdate>
	        	if ( AtlasFrame == nil ) then
	        		this:Hide();
	        	end
	        </OnUpdate>
	        <OnShow>
	        	if ( AtlasFrame == nil ) then
	        		this:Hide();
	        	end
	        </OnShow>
	      </Scripts>
        </Button>
        </Frames>
	</Frame>
</Ui>