<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="ISync_MainFrame.lua"/>
	
	<Frame name="ISync_MainFrame" inherits="ISyncFrame_MainTemplate" hidden="true" parent="UIParent">
			<Size>
				<AbsDimension x="360" y="495"/>
			</Size>
			<Anchors>
	 			<Anchor point="TOPLEFT">
	 				<Offset>
	 					<AbsDimension x="0" y="-104"/>
	 				</Offset>
	 			</Anchor>
			</Anchors>
			<Layers>
				<Layer level="ARTWORK">
					<FontString name="$parentUpdate" inherits="GameFontNormalSmall" justifyH="LEFT" text="ISYNC_NEWITEMS" hidden="true">
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="0" y="230"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
					
				</Layer>
			</Layers>
			<Frames>
				<Button name="ISync_MainFrame_DropDown" inherits="UIDropDownMenuTemplate">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="24" y="-40"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Scripts>
						<OnLoad>
							if(ISync) then
								ISync:Main_DD_Load();
							end
						</OnLoad>
					</Scripts>
				</Button>
				<Button name="ISync_MainView_HelpButton" virtual="true" hidden="false">
					<Size>
						<AbsDimension x="25" y="25"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="40" y="-10"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Layers>
						<Layer level="OVERLAY">
							<FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="ISYNC_HELPBUTTON">
								<Anchors>
									<Anchor point="RIGHT">
										<Offset>
											<AbsDimension x="0" y="0"/>
										</Offset>
									</Anchor>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>
					<Scripts>
						<OnEnter>
							getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
							GameTooltip:SetOwner(this, "ANCHOR_LEFT");
							GameTooltip:SetText(ISYNC_HELPPANEL_TOOLTIP, 1, 0.72, 0, nil, 1);
							GameTooltip:Show();
						</OnEnter>
						<OnLeave>
							getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
							GameTooltip:Hide();						
						</OnLeave>
						<OnClick>
							    if ISync_HelpFrame:IsVisible() then
								HideUIPanel(ISync_HelpFrame);
							    else
								ShowUIPanel(ISync_HelpFrame);
							    end
						</OnClick>
					</Scripts>
				</Button>
				<CheckButton name="ISync_MainFrame_ShowInvalid" virtual="true">
					<Size>
					    <AbsDimension x="20" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="325" y="-50"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Layers>
					    <Layer level="ARTWORK">
						<FontString inherits="GameFontHighlightSmall" text="ISYNC_SHOWINVALID_BUTTON">
						    <Anchors>
							<Anchor point="RIGHT" relativePoint="LEFT">
							    <Offset>
								<AbsDimension x="0" y="1"/>
							    </Offset>
							</Anchor>
						    </Anchors>
						</FontString>
					    </Layer>
					</Layers>
					<Scripts>
					    <OnLoad>

					    </OnLoad>
					    <OnClick>
						if (this:GetChecked()) then
						    PlaySound("igMainMenuOptionCheckBoxOff");
						    ISYNC_SHOWINVALID_CHK = 1;
						    ISYNC_SHOWSEARCH_CHK = 0;
						else
						    PlaySound("igMainMenuOptionCheckBoxOn");
						    ISYNC_SHOWINVALID_CHK = 0;
						    ISYNC_SHOWSEARCH_CHK = 0;
						end

						ISync:Main_Refresh();

					    </OnClick>
					</Scripts>
					<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
					<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
					<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
					<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
					<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
				</CheckButton>

				<CheckButton name="ISync_Tab1" inherits="ISync_TabTemplate" id="1" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-3" y="-65"/>
							</Offset>
						</Anchor>
					</Anchors>
				</CheckButton>
				<CheckButton name="ISync_Tab2" inherits="ISync_TabTemplate" id="2" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_Tab1" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</CheckButton>
				<CheckButton name="ISync_Tab3" inherits="ISync_TabTemplate" id="3" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_Tab2" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</CheckButton>
				<CheckButton name="ISync_Tab4" inherits="ISync_TabTemplate" id="4" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_Tab3" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</CheckButton>
				
				<CheckButton name="ISync_Tab5" inherits="ISync_TabTemplate" id="5" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_Tab4" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</CheckButton>
			
				<CheckButton name="ISync_Tab6" inherits="ISync_TabTemplate" id="6" hidden="false">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_Tab5" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</CheckButton>
				
				
				<Button name="ISyncItem1" inherits="ISyncItemButtonTemplate" id="1" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_MainFrame">
							<Offset>
								<AbsDimension x="19" y="-75"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>

					    <Frame name="ISync_ItemIDGB_Button1" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem1" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem2" inherits="ISyncItemButtonTemplate" id="2" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem1" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button2" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem2" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem3" inherits="ISyncItemButtonTemplate" id="3" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem2" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button3" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem3" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem4" inherits="ISyncItemButtonTemplate" id="4" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem3" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button4" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem4" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem5" inherits="ISyncItemButtonTemplate" id="5" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem4" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button5" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem5" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem6" inherits="ISyncItemButtonTemplate" id="6" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem5" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button6" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem6" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem7" inherits="ISyncItemButtonTemplate" id="7" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem6" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>

					    <Frame name="ISync_ItemIDGB_Button7" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem7" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem8" inherits="ISyncItemButtonTemplate" id="8" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem7" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button8" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem8" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem9" inherits="ISyncItemButtonTemplate" id="9" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem8" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button9" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem9" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem10" inherits="ISyncItemButtonTemplate" id="10" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem9" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>

					    <Frame name="ISync_ItemIDGB_Button10" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem10" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem11" inherits="ISyncItemButtonTemplate" id="11" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem10" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button11" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem11" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem12" inherits="ISyncItemButtonTemplate" id="12" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem11" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button12" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem12" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem13" inherits="ISyncItemButtonTemplate" id="13" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem12" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button13" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem13" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    

				<Button name="ISyncItem14" inherits="ISyncItemButtonTemplate" id="14" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem13" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button14" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem14" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem15" inherits="ISyncItemButtonTemplate" id="15" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem14" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button15" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem15" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem16" inherits="ISyncItemButtonTemplate" id="16" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem15" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button16" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem16" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem17" inherits="ISyncItemButtonTemplate" id="17" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem16" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button17" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem17" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem18" inherits="ISyncItemButtonTemplate" id="18" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem17" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button18" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem18" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem19" inherits="ISyncItemButtonTemplate" id="19" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem18" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button19" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem19" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem20" inherits="ISyncItemButtonTemplate" id="20" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem19" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button20" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem20" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem21" inherits="ISyncItemButtonTemplate" id="21" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem20" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button21" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem21" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem22" inherits="ISyncItemButtonTemplate" id="22" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem21" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>

					    <Frame name="ISync_ItemIDGB_Button22" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem22" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<Button name="ISyncItem23" inherits="ISyncItemButtonTemplate" id="23" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISyncItem22" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Button>
				
					    <Frame name="ISync_ItemIDGB_Button23" inherits="ISync_GB_Template" hidden="true">
						<Anchors>
						    <Anchor point="LEFT" relativeTo="ISyncItem23" relativePoint="LEFT">
							<Offset>
							    <AbsDimension x="13" y="-1"/>
							</Offset>
						    </Anchor>
						</Anchors>
					    </Frame>
					    
				<ScrollFrame name="ISync_MainFrame_ListScrollFrame" inherits="FauxScrollFrameTemplate">
					<Size>
						<AbsDimension x="296" y="354"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_MainFrame">
							<Offset>
								<AbsDimension x="19" y="-75"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Layers>
						<Layer level="ARTWORK">
							<Texture name="$parentScrollBarTop">
								<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>
								<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>
							if(ISync) then
								FauxScrollFrame_OnVerticalScroll(16, ISync.UpdateScrollFrame);
							end
						</OnVerticalScroll>
					</Scripts>
				</ScrollFrame>
				
				
				<Frame name="ISYNC_MainQuickSearch" inherits="OptionFrameBoxTemplate">
					<Size>
						<AbsDimension x="335" y="50"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="ISync_MainFrame" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="13" y="65"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Layers>
						<Layer level="BACKGROUND">
							<FontString inherits="GameFontNormalSmall" text="ISYNC_BT_QUICKSEARCH">
								<Anchors>
									<Anchor point="TOPLEFT"> 
										<Offset>
											<AbsDimension x="20" y="-5"/>
										</Offset>
									</Anchor>
								</Anchors>
							</FontString>
						</Layer>
					</Layers>

					<Frames>
						<EditBox name="ISync_QuickSearch" inherits="ISync_SearchBoxTemplate" autoFocus="false">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="20" y="-20"/>
									</Offset>
								</Anchor>
							</Anchors>
						</EditBox>
						
						<Button name="ISync_QuickSearchClear" toplevel="true">
							<Size>
								<AbsDimension x="32" y="32"/>
							</Size>
							<HitRectInsets>
								<AbsInset left="9" right="7" top="-7" bottom="10"/>
							</HitRectInsets>
							<Anchors>
								<Anchor point="RIGHT" relativeTo="ISync_QuickSearch" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="30" y="-1"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Scripts>
								<OnClick>
									ISync_QuickSearch:SetText("");
								</OnClick>
							</Scripts>
							<NormalTexture file="Interface\Buttons\CancelButton-Up"/>
							<PushedTexture file="Interface\Buttons\CancelButton-Down"/>
							<HighlightTexture file="Interface\Buttons\CancelButton-Highlight" alphaMode="ADD"/>
						</Button>
						

					</Frames>

					<Scripts>
						<OnLoad>
							this:SetBackdropBorderColor(0.4, 0.4, 0.4);
							this:SetBackdropColor(0.15, 0.15, 0.15);
						</OnLoad>
					</Scripts>
				</Frame>

				<Button name="ISyncMainFrame_ButtonFrameRefreshButton" inherits="UIPanelButtonTemplate">
					<Size>
						<AbsDimension x="70" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-20" y="28"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Scripts>
						<OnLoad>
							this:SetText(ISYNC_BT_REFRESH);
						</OnLoad>
						<OnClick>
							if(ISync) then ISYNC_SHOWSEARCH_CHK = 0; ISync:Main_Refresh(); end
						</OnClick>
					</Scripts>
				</Button>
				
				
				
			</Frames>
 
 			<Scripts>
   				<OnLoad>	
 						ISync_MainFrameHeader_Box:SetBackdropBorderColor(0.4, 0.4, 0.4);
 						ISync_MainFrameHeader_Box:SetBackdropColor(162/255, 217/255, 111/255, 0.7);
   						
   						if(ISync) then ISync:MainFrame_OnLoad(); end 
 				</OnLoad>
 				<OnShow>	

 						if(ISync and not ISync_SortIndex) then 
 							ISync:Main_Refresh();
 						end 
 						
 						PlaySound("igMainMenuOpen");
 						ISync_MainFrameHeader_BoxText:SetText("ItemSync (V:"..ISYNC_VERSION..")");
 						
						--show required update if we need to
						if(ISync:SetVar({"REQUIRED","REFRESH"}, 1, "COMPARE")) then
							ISync_MainFrameUpdate:Show();
						else
							ISync_MainFrameUpdate:Hide();
						end
	
 				</OnShow>
 				
 				<OnHide> if(GameTooltip:IsVisible()) then GameTooltip:Hide(); end PlaySound("igMainMenuClose"); ISync_QuickSearch:SetText("");</OnHide>
		      		<OnLeave>ISync_QuickSearch:ClearFocus();</OnLeave>
 			</Scripts>
	
	</Frame>


	<Frame name="ISync_ID_Frame" toplevel="true" enableMouse="true" movable = "true" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="120" y="23"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
			</Anchor>
		</Anchors>
		
		<TitleRegion/>
		<Backdrop name="ISync_ID_Frame_Backdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="ISync_ID_Frame_Text" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP"> 
							<Offset>
								<AbsDimension x="0" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Scripts>
						<OnLoad>ISync_ID_Frame:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp", "Button4Up", "Button5Up");</OnLoad>
						<OnClick>
							if(ISync) then ISync:MainFrame_Binding(); end
						</OnClick>

					</Scripts>
		
				</FontString>
				
			</Layer>
		</Layers>
		
		<Frames>
		</Frames>
		
		<Scripts>
			<OnShow>if(ISync) then ISync:ItemDisplay_Update(); end</OnShow>
			<OnHide>if(ISync) then ISync:ItemDisplay_Update(); end</OnHide>					
			<OnMouseDown> this:StartMoving();  </OnMouseDown>
			<OnMouseUp>  this:StopMovingOrSizing(); </OnMouseUp>
			<OnDragStop> this:StopMovingOrSizing(); </OnDragStop>
		</Scripts>
		
		
	</Frame>
	
	
	
	
 	<!-- Special thanks to Bastian Pflieger the creator of ItemMagic whoms code resides below -->
	<!-- The search function was placed in the filter.lua -->
	  <Frame name="ISync_ItemIDFrame"  toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="310" y="120"/>
		</Size>
		<Anchors>
			<Anchor point="TOP" relativeTo="ISync_MainFrame" relativePoint="TOP">
				<Offset>
					<AbsDimension x="0" y="140"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
	    <Layers>
		      <Layer level="ARTWORK">

			<FontString name="ISync_ItemIDFrameLabel" inherits="GameFontNormal" text="item:">
			  <Anchors>
			    <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
			      <Offset>
				<AbsDimension x="20" y="-35"/>
			      </Offset>
			    </Anchor>
			  </Anchors>
			</FontString>
			<FontString inherits="GameFontNormal" text="ISYNC_ITEMIDFRAME_WARNING">
				<Anchors>
					<Anchor point="TOP"> 
						<Offset>
							<AbsDimension x="0" y="-58"/>
						</Offset>
					</Anchor>
				</Anchors>
			</FontString>
		      </Layer>
	    </Layers>
	    <Frames>
		<Frame name="ISync_ItemIDFrame_HeaderBox" inherits="OptionFrameBoxTemplate">
				<Size>
					<AbsDimension x="285" y="30"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativeTo="ISync_ItemIDFrame" relativePoint="CENTER">
						<Offset>
							<AbsDimension x="0" y="68"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="ISync_ItemIDFrame_HeaderBox_Text" inherits="GameFontNormal" text="ISYNC_BT_ITEMID">
							<Anchors>
								<Anchor point="CENTER"> 
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
						this:SetBackdropColor(153/255, 102/255, 1, 0.7);
					</OnLoad>
					<OnMouseDown>
						if( arg1 == "LeftButton" ) then
							GameTooltip:Hide();
							getglobal(this:GetParent():GetName()):StartMoving();
						end
					</OnMouseDown>
					<OnMouseUp>
						getglobal(this:GetParent():GetName()):StopMovingOrSizing();
					</OnMouseUp>
				</Scripts>
			</Frame>
			<Button name="ISync_ItemIDFrameClose" inherits="UIPanelCloseButton" toplevel="true">
				<Anchors>
					<Anchor point="CENTER" relativeTo="ISync_ItemIDFrame_HeaderBox" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-17" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		      <EditBox name="ISync_ItemIDFrameEdit" inherits="InputBoxTemplate" letters="16" historyLines="10" multiLine="false" autoFocus="false">
			<Size>
			  <AbsDimension x="110" y="30"/>
			</Size>
			<Anchors>
			  <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="ISync_ItemIDFrameLabel">
			    <Offset>
			      <AbsDimension x="10" y="8"/>
			    </Offset>
			  </Anchor>
			</Anchors>
			<Scripts>
			  <OnEnterPressed>
			    if(ISync and ISync.ItemIDSearch) then ISync:ItemIDSearch(); end
			  </OnEnterPressed>
			</Scripts>
		      </EditBox>
		      <Button name="ISync_ItemIDFrameSearchButton" inherits="OptionsButtonTemplate">
			<Size>
			  <AbsDimension x="100" y="21"/>
			</Size>
			<Anchors>
			  <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="ISync_ItemIDFrameEdit">
			    <Offset>
			      <AbsDimension x="0" y="-6"/>
			    </Offset>
			  </Anchor>
			</Anchors>
			<Scripts>
			  <OnLoad>
			    this:SetText(ISYNC_BT_SEARCH);
			  </OnLoad>
			  <OnClick>
			    if(ISync and ISync.ItemIDSearch) then ISync:ItemIDSearch(); end
			  </OnClick>
			</Scripts>
		      </Button>
		</Frames>
		    <Scripts>
			<OnMouseDown> this:StartMoving();  </OnMouseDown>
			<OnMouseUp>  this:StopMovingOrSizing(); </OnMouseUp>
			<OnDragStop> this:StopMovingOrSizing(); </OnDragStop>
		    </Scripts>
	  </Frame>
	  
	  
	  
	<Frame name="ISync_HelpFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="ISync_MainFrame">
			<Size>
				<AbsDimension x="360" y="400"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="ISync_MainFrame" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="-730" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			
			
			<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
				<BackgroundInsets>
					<AbsInset left="11" right="12" top="12" bottom="11"/>
				</BackgroundInsets>
				<TileSize>
					<AbsValue val="32"/>
				</TileSize>
				<EdgeSize>
					<AbsValue val="32"/>
				</EdgeSize>
			</Backdrop>
			<Layers>
			</Layers>
			<Frames>


  			<Frame name="ISync_HelpFrame_HeaderBox" inherits="OptionFrameBoxTemplate">
  				<Size>
  					<AbsDimension x="335" y="30"/>
  				</Size>
  				<Anchors>
  					<Anchor point="CENTER" relativeTo="ISync_HelpFrame" relativePoint="CENTER">
  						<Offset>
  							<AbsDimension x="0" y="208"/>
  						</Offset>
  					</Anchor>
  				</Anchors>
  				<Layers>
  					<Layer level="BACKGROUND">
  						<FontString name="ISync_HelpFrame_HeaderBox_Text" inherits="GameFontNormal" text="ISYNC_HELPBUTTON">
  							<Anchors>
  								<Anchor point="CENTER"> 
  									<Offset>
  										<AbsDimension x="0" y="0"/>
  									</Offset>
  								</Anchor>
  							</Anchors>
  						</FontString>
  					</Layer>
  				</Layers>
  				<Scripts>
  					<OnLoad>
  						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
  						this:SetBackdropColor(1, 1, 0, 0.7);
  					</OnLoad>
 					<OnMouseDown>
 						if( arg1 == "LeftButton" ) then
 							GameTooltip:Hide();
 							getglobal(this:GetParent():GetName()):StartMoving();
 						end
 					</OnMouseDown>
 					<OnMouseUp>
 						getglobal(this:GetParent():GetName()):StopMovingOrSizing();
 					</OnMouseUp>
  				</Scripts>
  			</Frame>
  
 			
 			<Button name="ISync_HelpFrameClose" inherits="UIPanelCloseButton" toplevel="true">
 				<Anchors>
 					<Anchor point="CENTER" relativeTo="ISync_HelpFrame_HeaderBox" relativePoint="RIGHT">
 						<Offset>
 							<AbsDimension x="-17" y="0"/>
 						</Offset>
 					</Anchor>
 				</Anchors>
			</Button>
			
			


  			<Frame name="ISync_HelpFrameDescFrame" hidden="false">
   				<Layers>
   					<Layer level="ARTWORK">
   					</Layer>
   				</Layers>
   				<Frames>
   					<ScrollFrame name="ISync_HelpFrameDescFrameScrollFrame" inherits="UIPanelScrollFrameTemplate">
   						<Size>
   							<AbsDimension x="300" y="334"/>
   						</Size>
   						<Anchors>
   							<Anchor point="TOPLEFT" relativeTo="ISync_HelpFrame">
   								<Offset>
   									<AbsDimension x="23" y="-45"/>
   								</Offset>
   							</Anchor>
   						</Anchors>
   						<Scripts>
   							<OnShow>
   								this:UpdateScrollChildRect();
   							</OnShow>
   						</Scripts>
   						<ScrollChild>
   							<Frame name="ISync_HelpFrameDescFrameScrollChildFrame">
   								<Size>
   									<AbsDimension x="300" y="334"/>
   								</Size>
   								<Layers>
   									<Layer>
   										<FontString name="ISync_HelpFrameText" inherits="GameFontNormal" justifyH="LEFT">
   											<Size>
   												<AbsDimension x="270" y="0"/>
   											</Size>
   											<Anchors>
   												<Anchor point="TOPLEFT">
   													<Offset>
   														<AbsDimension x="10" y="-10"/>
   													</Offset>
   												</Anchor>
   											</Anchors>
   										</FontString>
   									</Layer>
   								</Layers>
   								<Frames>
   								</Frames>
   							</Frame>
   						</ScrollChild>
   					</ScrollFrame>
   					
				</Frames>
			</Frame>
		</Frames>

 
		<Scripts>
			<OnLoad>ISync_HelpFrameText:SetText("|c00FFFFFF"..ISYNC_HELPPANEL_DESC.."|r");</OnLoad>
			<OnShow>PlaySound("igMainMenuOpen");</OnShow>
			<OnHide>PlaySound("igMainMenuClose"); </OnHide>
			<OnMouseDown> this:StartMoving();  </OnMouseDown>
			<OnMouseUp>  this:StopMovingOrSizing(); </OnMouseUp>
			<OnDragStop> this:StopMovingOrSizing(); </OnDragStop>
		</Scripts>
	
	</Frame>
	
  
</Ui>