<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_Filter.lua"/>
	
 	<Frame name="ISync_FilterFrame"  toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="ISync_MainFrame">
 		<Size>
 			<AbsDimension x="360" y="450"/>
 		</Size>
 		<Anchors>
 			<Anchor point="TOPLEFT" relativeTo="ISync_MainFrame" relativePoint="TOPRIGHT">
 				<Offset>
 					<AbsDimension x="10" 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>
 			<Layer level="ARTWORK">
 				<Texture name="ISync_FilterFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
 					<Size>
 						<AbsDimension x="310" y="64"/>
 					</Size>
 					<Anchors>
 						<Anchor point="TOP">
 							<Offset>
 								<AbsDimension x="0" y="12"/>
 							</Offset>
 						</Anchor>
 					</Anchors>
 				</Texture>
 				<FontString inherits="GameFontNormal" text="ISYNC_BT_FILTERS">
 					<Anchors>
 						<Anchor point="TOP"> 
 							<Offset>
 								<AbsDimension x="0" y="0"/>
 							</Offset>
 						</Anchor>
 					</Anchors>
 				</FontString>
 			</Layer>
 		</Layers>
 		<Frames>
 
 			<Frame name="ISync_Options_FilterRarityColor" inherits="OptionFrameBoxTemplate">
   				<Size>
   					<AbsDimension x="335" y="155"/>
   				</Size>
   				<Anchors>
   					<Anchor point="TOPLEFT" relativeTo="ISync_FilterFrame" relativePoint="BOTTOMLEFT">
   						<Offset>
   							<AbsDimension x="13" y="410"/>
   						</Offset>
   					</Anchor>
   				</Anchors>
  				<Layers>
  					<Layer level="BACKGROUND">
  						<FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT1">
  							<Anchors>
  								<Anchor point="TOPLEFT"> 
  									<Offset>
  										<AbsDimension x="30" y="-10"/>
  									</Offset>
  								</Anchor>
  							</Anchors>
  						</FontString>
  						<FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT2">
  							<Anchors>
  								<Anchor point="TOPLEFT"> 
  									<Offset>
  										<AbsDimension x="30" y="-30"/>
  									</Offset>
  								</Anchor>
  							</Anchors>
  						</FontString>
   						<FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT3">
   							<Anchors>
   								<Anchor point="TOPLEFT"> 
   									<Offset>
   										<AbsDimension x="30" y="-50"/>
   									</Offset>
   								</Anchor>
   							</Anchors>
  						</FontString>
   						<FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT4">
   							<Anchors>
   								<Anchor point="TOPLEFT"> 
   									<Offset>
   										<AbsDimension x="30" y="-70"/>
   									</Offset>
   								</Anchor>
   							</Anchors>
  						</FontString>
  						
    						<FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT5">
    							<Anchors>
    								<Anchor point="TOPLEFT"> 
    									<Offset>
    										<AbsDimension x="30" y="-90"/>
    									</Offset>
    								</Anchor>
    							</Anchors>
   						</FontString>
    						<FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT6">
    							<Anchors>
    								<Anchor point="TOPLEFT"> 
    									<Offset>
    										<AbsDimension x="30" y="-110"/>
    									</Offset>
    								</Anchor>
    							</Anchors>
  						</FontString>
     						<FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT7">
     							<Anchors>
     								<Anchor point="TOPLEFT"> 
     									<Offset>
     										<AbsDimension x="30" y="-130"/>
     									</Offset>
     								</Anchor>
     							</Anchors>
  						</FontString>
  					</Layer>
  				</Layers>
   		
   				<Frames>
   					<CheckButton name="ISync_Options_RarityLayoutCheckButton1" inherits="OptionsCheckButtonTemplate">
   						<Size>
   							<AbsDimension x="26" y="26"/>
   						</Size>
   						<Anchors>
   							<Anchor point="TOPLEFT">
   								<Offset>
   									<AbsDimension x="5" y="-5"/>
   								</Offset>
   							</Anchor>
   						</Anchors>
 						<Scripts>
 							<OnClick>
 								if(ISyncOpt and ISyncOpt.Filters) then
 								
 									if(this:GetChecked()) then
 									
 										--poor is zero
 										ISyncOpt.Filters[0] = 1;
 									else
 									
 										ISyncOpt.Filters[0] = 0;
 									end
 								
 								end
 							</OnClick>
 						</Scripts>
   					</CheckButton>
   					<CheckButton name="ISync_Options_RarityLayoutCheckButton2" inherits="OptionsCheckButtonTemplate">
   						<Size>
   							<AbsDimension x="26" y="26"/>
   						</Size>
   						<Anchors>
   							<Anchor point="TOP" relativeTo="ISync_Options_RarityLayoutCheckButton1" relativePoint="BOTTOM">
   								<Offset>
   									<AbsDimension x="0" y="6"/>
   								</Offset>
   							</Anchor>
   						</Anchors>
 						<Scripts>
 							<OnClick>
 								if(ISyncOpt and ISyncOpt.Filters) then
 								
 									if(this:GetChecked()) then
 									
 										--common is 1
 										ISyncOpt.Filters[1] = 1;
 									else
 										ISyncOpt.Filters[1] = 0;
 										

 									end
 								
 								end
 							</OnClick>
 						</Scripts>
   					</CheckButton>
   					
     					<CheckButton name="ISync_Options_RarityLayoutCheckButton3" inherits="OptionsCheckButtonTemplate">
     						<Size>
     							<AbsDimension x="26" y="26"/>
     						</Size>
     						<Anchors>
     							<Anchor point="TOP" relativeTo="ISync_Options_RarityLayoutCheckButton2" relativePoint="BOTTOM">
     								<Offset>
     									<AbsDimension x="0" y="6"/>
     								</Offset>
     							</Anchor>
     						</Anchors>
 						<Scripts>
 							<OnClick>
 								if(ISyncOpt and ISyncOpt.Filters) then
 								
 									if(this:GetChecked()) then
 									
 										--uncommon is 2
 										ISyncOpt.Filters[2] = 1;
 									else
 										ISyncOpt.Filters[2] = 0;
 										

 									end
 								
 								end
 							</OnClick>
 						</Scripts>
   					</CheckButton>
     					<CheckButton name="ISync_Options_RarityLayoutCheckButton4" inherits="OptionsCheckButtonTemplate">
     						<Size>
     							<AbsDimension x="26" y="26"/>
     						</Size>
     						<Anchors>
     							<Anchor point="TOP" relativeTo="ISync_Options_RarityLayoutCheckButton3" relativePoint="BOTTOM">
     								<Offset>
     									<AbsDimension x="0" y="6"/>
     								</Offset>
     							</Anchor>
     						</Anchors>
 						<Scripts>
 							<OnClick>
 								if(ISyncOpt and ISyncOpt.Filters) then
 								
 									if(this:GetChecked()) then
 									
 										--rare is 3
 										ISyncOpt.Filters[3] = 1;
 									else
 										ISyncOpt.Filters[3] = 0;
 										
 									end
 								
 								end
 							</OnClick>
 						</Scripts>
   					</CheckButton>
     					<CheckButton name="ISync_Options_RarityLayoutCheckButton5" inherits="OptionsCheckButtonTemplate">
     						<Size>
     							<AbsDimension x="26" y="26"/>
     						</Size>
     						<Anchors>
     							<Anchor point="TOP" relativeTo="ISync_Options_RarityLayoutCheckButton4" relativePoint="BOTTOM">
     								<Offset>
     									<AbsDimension x="0" y="6"/>
     								</Offset>
     							</Anchor>
     						</Anchors>
 						<Scripts>
 							<OnClick>
 								if(ISyncOpt and ISyncOpt.Filters) then
 								
 									if(this:GetChecked()) then
 									
 										--epic is 4
 										ISyncOpt.Filters[4] = 1;
 									else
 										ISyncOpt.Filters[4] = 0;
 										
 									end
 								
 								end
 							</OnClick>
 						</Scripts>
   					</CheckButton>
     					<CheckButton name="ISync_Options_RarityLayoutCheckButton6" inherits="OptionsCheckButtonTemplate">
     						<Size>
     							<AbsDimension x="26" y="26"/>
     						</Size>
     						<Anchors>
     							<Anchor point="TOP" relativeTo="ISync_Options_RarityLayoutCheckButton5" relativePoint="BOTTOM">
     								<Offset>
     									<AbsDimension x="0" y="6"/>
     								</Offset>
     							</Anchor>
     						</Anchors>
 						<Scripts>
 							<OnClick>
 								if(ISyncOpt and ISyncOpt.Filters) then
 								
 									if(this:GetChecked()) then
 									
 										--legendary is 5
 										ISyncOpt.Filters[5] = 1;
 									else
 										ISyncOpt.Filters[5] = 0;
 	
 									end
 								
 								end
 							</OnClick>
 						</Scripts>
   					</CheckButton>
   
       					<CheckButton name="ISync_Options_RarityLayoutCheckButton7" inherits="OptionsCheckButtonTemplate">
       						<Size>
       							<AbsDimension x="26" y="26"/>
       						</Size>
       						<Anchors>
       							<Anchor point="TOP" relativeTo="ISync_Options_RarityLayoutCheckButton6" relativePoint="BOTTOM">
       								<Offset>
       									<AbsDimension x="0" y="6"/>
       								</Offset>
       							</Anchor>
       						</Anchors>
   						<Scripts>
   							<OnClick>
   								if(ISyncOpt and ISyncOpt.Filters) then
   								
   									if(this:GetChecked()) then
   									
   										--unknown or other can be -1 or below so were going to use 99
   										ISyncOpt.Filters[99] = 1;
   									else
   										ISyncOpt.Filters[99] = 0;
   										
   									end
   								
   								end
   							</OnClick>
   						</Scripts>
   					</CheckButton>
   					
   					
					<Button name="ISync_Options_Filter_Help1" virtual="true" hidden="false">
						<Size>
							<AbsDimension x="18" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-8" y="-8"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
									<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_HELP_SUB1, 1, 0.72, 0, nil, 1);
								GameTooltip:Show();
							</OnEnter>
							<OnLeave>
								getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
								GameTooltip:Hide();						
							</OnLeave>
						</Scripts>
					</Button>

   					
   				</Frames>
   				
     				<Scripts>
     					<OnLoad>
     						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
     						this:SetBackdropColor(0.15, 0.15, 0.15);
     						getglobal(this:GetName().."Title"):SetText(ISYNC_FILTER_HEADER1);
     					</OnLoad>
  				</Scripts>
 			</Frame>
 	
 	
   			<Frame name="ISync_FilterFrame_Opt_PurgeDuplicate" inherits="OptionFrameBoxTemplate">
   				<Size>
   					<AbsDimension x="335" y="40"/>
   				</Size>
   				<Anchors>
   					<Anchor point="TOPLEFT" relativeTo="ISync_FilterFrame" relativePoint="BOTTOMLEFT">
   						<Offset>
   							<AbsDimension x="13" y="215"/>
   						</Offset>
   					</Anchor>
   				</Anchors>
  				<Layers>
  				</Layers>
   		
   				<Frames>
 					
 					<Button name="ISync_FilterFramePurgeDuplicateButton" inherits="UIPanelButtonTemplate" text="OK">
 						<Size>
 							<AbsDimension x="90" y="21"/>
 						</Size>
 						<Anchors>
 							<Anchor point="CENTER">
 								<Offset>
 									<AbsDimension x="0" y="0"/>
 								</Offset>
 							</Anchor>
 						</Anchors>
 						<Scripts>
 							<OnClick>
 								StaticPopup_Show("ISYNC_PURGEDUPLICATE_CONFIRM");
 							</OnClick>
 						</Scripts>
 					</Button>
 					
 					<Button name="ISync_Options_Filter_Help2" virtual="true" hidden="false">
 						<Size>
 							<AbsDimension x="18" y="16"/>
 						</Size>
 						<Anchors>
 							<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
 								<Offset>
 									<AbsDimension x="-8" y="-8"/>
 								</Offset>
 							</Anchor>
 						</Anchors>
 						<Layers>
 							<Layer level="OVERLAY">
 								<FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
 									<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_HELP_SUB2, 1, 0.72, 0, nil, 1);
 								GameTooltip:Show();
 							</OnEnter>
 							<OnLeave>
 								getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
 								GameTooltip:Hide();						
 							</OnLeave>
 						</Scripts>
					</Button>
 				
 				</Frames>
   				
     				<Scripts>
     					<OnLoad>
     						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
     						this:SetBackdropColor(0.15, 0.15, 0.15);
     						getglobal(this:GetName().."Title"):SetText(ISYNC_FILTER_HEADER4);
     					</OnLoad>
  				</Scripts>
			</Frame>
			
			
 		
  			<Frame name="ISync_FilterFrame_Opt_PurgeInvalid" inherits="OptionFrameBoxTemplate">
  				<Size>
  					<AbsDimension x="335" y="40"/>
  				</Size>
  				<Anchors>
  					<Anchor point="TOPLEFT" relativeTo="ISync_FilterFrame" relativePoint="BOTTOMLEFT">
  						<Offset>
  							<AbsDimension x="13" y="150"/>
  						</Offset>
  					</Anchor>
  				</Anchors>
 				<Layers>
 				</Layers>
  		
  				<Frames>
					
					<Button name="ISync_FilterFramePurgeInvalidButton" inherits="UIPanelButtonTemplate" text="OK">
						<Size>
							<AbsDimension x="90" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								StaticPopup_Show("ISYNC_PURGEINVALID_CONFIRM");
							</OnClick>
						</Scripts>
					</Button>
					
 					<Button name="ISync_Options_Filter_Help3" virtual="true" hidden="false">
 						<Size>
 							<AbsDimension x="18" y="16"/>
 						</Size>
 						<Anchors>
 							<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
 								<Offset>
 									<AbsDimension x="-8" y="-8"/>
 								</Offset>
 							</Anchor>
 						</Anchors>
 						<Layers>
 							<Layer level="OVERLAY">
 								<FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
 									<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_HELP_SUB3, 1, 0.72, 0, nil, 1);
 								GameTooltip:Show();
 							</OnEnter>
 							<OnLeave>
 								getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
 								GameTooltip:Hide();						
 							</OnLeave>
 						</Scripts>
					</Button>
				
				</Frames>
  				
    				<Scripts>
    					<OnLoad>
    						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
    						this:SetBackdropColor(0.15, 0.15, 0.15);
    						getglobal(this:GetName().."Title"):SetText(ISYNC_FILTER_HEADER3);
    					</OnLoad>
 				</Scripts>
			</Frame>
			
 			
 			
  			<Frame name="ISync_FilterFrame_Opt_Purge" inherits="OptionFrameBoxTemplate">
  				<Size>
  					<AbsDimension x="335" y="40"/>
  				</Size>
  				<Anchors>
  					<Anchor point="TOPLEFT" relativeTo="ISync_FilterFrame" relativePoint="BOTTOMLEFT">
  						<Offset>
  							<AbsDimension x="13" y="85"/>
  						</Offset>
  					</Anchor>
  				</Anchors>
 				<Layers>
 				</Layers>
  		
  				<Frames>
  
					<Button name="ISync_FilterPurgeRare_DropDown" inherits="UIDropDownMenuTemplate">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="5" y="-5"/>
									</Offset>
								</Anchor>
							</Anchors>
						<Scripts>
							<OnLoad>
								if(ISync) then ISync:Filter_DD_Load(); end
							</OnLoad>
						</Scripts>
					</Button>
					
					<Button name="ISync_FilterFramePurgeButton" inherits="UIPanelButtonTemplate" text="OK">
						<Size>
							<AbsDimension x="90" y="21"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="200" y="-10"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								StaticPopup_Show("ISYNC_PURGEDATA_CONFIRM");
							</OnClick>
						</Scripts>
					</Button>
					
 					<Button name="ISync_Options_Filter_Help4" virtual="true" hidden="false">
 						<Size>
 							<AbsDimension x="18" y="16"/>
 						</Size>
 						<Anchors>
 							<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
 								<Offset>
 									<AbsDimension x="-8" y="-8"/>
 								</Offset>
 							</Anchor>
 						</Anchors>
 						<Layers>
 							<Layer level="OVERLAY">
 								<FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
 									<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_HELP_SUB4, 1, 0.72, 0, nil, 1);
 								GameTooltip:Show();
 							</OnEnter>
 							<OnLeave>
 								getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
 								GameTooltip:Hide();						
 							</OnLeave>
 						</Scripts>
					</Button>
				
				</Frames>
  				
    				<Scripts>
    					<OnLoad>
    						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
    						this:SetBackdropColor(0.15, 0.15, 0.15);
    						getglobal(this:GetName().."Title"):SetText(ISYNC_FILTER_HEADER2);
    					</OnLoad>
 				</Scripts>
			</Frame>
			
			
			<Button name="ISync_FilterFrameCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="ISync_FilterFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-5" y="-7"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>		
			


 		</Frames>
 
 			<Scripts>
 				<OnShow>
					if (not ISyncOpt.Filters) then ISyncOpt.Filters = { }; end
					if (not ISyncOpt.Filters[0]) then ISyncOpt.Filters[0] = 1; end
					if (not ISyncOpt.Filters[1]) then ISyncOpt.Filters[1] = 1; end
					if (not ISyncOpt.Filters[2]) then ISyncOpt.Filters[2] = 1; end
					if (not ISyncOpt.Filters[3]) then ISyncOpt.Filters[3] = 1; end
					if (not ISyncOpt.Filters[4]) then ISyncOpt.Filters[4] = 1; end
					if (not ISyncOpt.Filters[5]) then ISyncOpt.Filters[5] = 1; end
					if (not ISyncOpt.Filters[99]) then ISyncOpt.Filters[99] = 1; end

 					if(ISyncOpt and ISyncOpt.Filters) then
 					
 						for index = 0, 5, 1 do
 						
							if(ISyncOpt.Filters[index] and ISyncOpt.Filters[index] == 1) then
 						
 								getglobal("ISync_Options_RarityLayoutCheckButton"..(index + 1)):SetChecked(1);
 							
 							end
 						
 						
 						end
 					
 						--do the unknown one
						if(ISyncOpt.Filters[99] and ISyncOpt.Filters[99] == 1) then

							getglobal("ISync_Options_RarityLayoutCheckButton7"):SetChecked(1);

						end
 							
 					
 					end
 					
 					
 				</OnShow>
 				<OnHide>
 				</OnHide>
 			</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">
			<Texture name="ISync_ItemIDFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
			  <Size>
			    <AbsDimension x="256" y="64"/>
			  </Size>
			  <Anchors>
			    <Anchor point="TOP">
			      <Offset>
				<AbsDimension x="0" y="12"/>
			      </Offset>
			    </Anchor>
			  </Anchors>
			</Texture>
			<FontString name="ISync_ItemIDFrameHeaderText" inherits="GameFontNormal" text="ISYNC_BT_ITEMID">
			  <Anchors>
			    <Anchor point="TOP" relativeTo="ISync_ItemIDFrameHeader">
			      <Offset>
				<AbsDimension x="0" y="-14"/>
			      </Offset>
			    </Anchor>
			  </Anchors>
			</FontString>
			<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>

	      <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>


	      <Button name="ISync_ItemIDFrameClose" inherits="OptionsButtonTemplate">
		<Size>
		  <AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
		  <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="ISync_ItemIDFrameSearchButton">
		    <Offset>
		      <AbsDimension x="-5" y="5"/>
		    </Offset>
		  </Anchor>
		</Anchors>
		<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
		<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
		<Scripts>
		  <OnClick>
		    ISync_ItemIDFrame:Hide();
		  </OnClick>
		</Scripts>
	      </Button>
      
      
    </Frames>

    <Scripts>
	<OnMouseDown> this:StartMoving();  </OnMouseDown>
	<OnMouseUp>  this:StopMovingOrSizing(); </OnMouseUp>
	<OnDragStop> this:StopMovingOrSizing(); </OnDragStop>
    </Scripts>
    
    
  </Frame>
  

</Ui>
