<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">
	
 	<Frame name="ISync_OptionsCleanFrame"  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_OptionsCleanFrameHeader" 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_MAIN_HEADER_OPTIONSCLEAN">
  					<Anchors>
  						<Anchor point="TOP"> 
  							<Offset>
  								<AbsDimension x="0" y="0"/>
  							</Offset>
  						</Anchor>
  					</Anchors>
  				</FontString>
  				
  			</Layer>
  		</Layers>
  		<Frames>
  
   	
   			<Frame name="ISYNC_Options_Clean_Optimize" inherits="OptionFrameBoxTemplate">
   				<Size>
   					<AbsDimension x="335" y="40"/>
   				</Size>
   				<Anchors>
   					<Anchor point="TOPLEFT" relativeTo="ISync_OptionsCleanFrame" relativePoint="BOTTOMLEFT">
   						<Offset>
   							<AbsDimension x="13" y="410"/>
   						</Offset>
   					</Anchor>
   				</Anchors>
   				<Layers>
   					<Layer level="BACKGROUND">
 
   					</Layer>
   				</Layers>
   
   				<Frames>
   				
   					<Button name="ISync_OptionsOptimizeButton" inherits="UIPanelButtonTemplate" text="ISYNC_OPTIONS_OPTIMIZE">
   						<Size>
   							<AbsDimension x="90" y="21"/>
   						</Size>
   						<Anchors>
   							<Anchor point="CENTER" relativePoint="CENTER">
   								<Offset>
   									<AbsDimension x="0" y="0"/>
   								</Offset>
   							</Anchor>
   						</Anchors>
   						<Scripts>
   							<OnClick>
   
   								StaticPopup_Show("ISYNC_OPTIMIZE_CONFIRM");
   							</OnClick>
   						</Scripts>
   					</Button>
   					
      					<Button name="ISync_Options_Regular_Help9" 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_SUB9, 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_OPTIONS_HEADER4);
   					</OnLoad>
   				</Scripts>
 			</Frame>
   			
    
    
   			<Frame name="ISYNC_Options_Clean_CleanFrame" inherits="OptionFrameBoxTemplate">
   				<Size>
   					<AbsDimension x="335" y="40"/>
   				</Size>
   				<Anchors>
   					<Anchor point="TOPLEFT" relativeTo="ISync_OptionsCleanFrame" relativePoint="BOTTOMLEFT">
   						<Offset>
   							<AbsDimension x="13" y="345"/>
   						</Offset>
   					</Anchor>
   				</Anchors>
   				<Layers>
   					<Layer level="BACKGROUND">
 
   					</Layer>
   				</Layers>
   
   				<Frames>
   					<Button name="ISYNC_Options_Clean_CleanButton" inherits="UIPanelButtonTemplate" text="ISYNC_CLEANDB">
 						<Size>
 							<AbsDimension x="90" y="21"/>
 						</Size>
 						<Anchors>
 							<Anchor point="CENTER" relativePoint="CENTER">
 								<Offset>
 									<AbsDimension x="0" y="0"/>
 								</Offset>
 							</Anchor>
 						</Anchors>
 						<Scripts>
 							<OnClick>
 
 							    if ISync.CleanDatabase then
 								ISync:CleanDatabase(1);
 							    end
 							    
 							</OnClick>
 						</Scripts>
 					</Button>
 
 					<Button name="ISync_Options_Regular_Help_Clean" 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_CLEANDB_TOOLTIP, 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_CLEANDB_HEADER);
   					</OnLoad>
   				</Scripts>
   			</Frame>
 
 			
 			
 			
 			
 
    
   			<Frame name="ISYNC_Options_PurgeDB_CleanFrame" inherits="OptionFrameBoxTemplate">
   				<Size>
   					<AbsDimension x="335" y="40"/>
   				</Size>
   				<Anchors>
   					<Anchor point="TOPLEFT" relativeTo="ISync_OptionsCleanFrame" relativePoint="BOTTOMLEFT">
   						<Offset>
   							<AbsDimension x="13" y="280"/>
   						</Offset>
   					</Anchor>
   				</Anchors>
   				<Layers>
   					<Layer level="BACKGROUND">
 
   					</Layer>
   				</Layers>
   
   				<Frames>
   					<Button name="ISYNC_Options_Clean_PurgeDBButton" inherits="UIPanelButtonTemplate" text="ISYNC_PURGEDB">
 						<Size>
 							<AbsDimension x="140" y="21"/>
 						</Size>
 						<Anchors>
 							<Anchor point="CENTER" relativePoint="CENTER">
 								<Offset>
 									<AbsDimension x="0" y="0"/>
 								</Offset>
 							</Anchor>
 						</Anchors>
 						<Scripts>
 							<OnClick>
 								
 								StaticPopup_Show("ISYNC_PURGE1_CONFIRM");
 							    
 							</OnClick>
 						</Scripts>
 					</Button>
 
 					<Button name="ISync_Options_Regular_Help_PurgeDB" 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_PURGEDB_TOOLTIP, 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_PURGEDB_HEADER);
   					</OnLoad>
   				</Scripts>
   			</Frame>
   			
 			
 			
 			
 			
 			
    			<Frame name="ISYNC_Options_Cleaner_CleanFrame" inherits="OptionFrameBoxTemplate">
    				<Size>
    					<AbsDimension x="335" y="40"/>
    				</Size>
    				<Anchors>
    					<Anchor point="TOPLEFT" relativeTo="ISync_OptionsCleanFrame" relativePoint="BOTTOMLEFT">
    						<Offset>
    							<AbsDimension x="13" y="55"/>
    						</Offset>
    					</Anchor>
    				</Anchors>
    				<Layers>
    					<Layer level="BACKGROUND">
  
    					</Layer>
    				</Layers>
    
    				<Frames>
    					<Button name="ISYNC_Options_CleanerButton" inherits="UIPanelButtonTemplate" text="ISYNC_CLEANER_BUTTON">
  						<Size>
  							<AbsDimension x="140" y="21"/>
  						</Size>
  						<Anchors>
  							<Anchor point="CENTER" relativePoint="CENTER">
  								<Offset>
  									<AbsDimension x="0" y="0"/>
  								</Offset>
  							</Anchor>
  						</Anchors>
  						<Scripts>
  							<OnClick>
  								
  								StaticPopup_Show("ISYNC_CLEANER_CONFIRM");
  							    
  							</OnClick>
  						</Scripts>
  					</Button>
  
  					<Button name="ISync_Options_Regular_Help_Cleaner" 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_CLEANER_TOOLTIP, 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(string.upper(ISYNC_CLEANER_HEADER));
    					</OnLoad>
    				</Scripts>
   			</Frame>
   			
   			
 
 					
 					<Button name="ISYNC_Options_Clean_CloseButton" inherits="UIPanelCloseButton">
 						<Anchors>
 							<Anchor point="TOPRIGHT" relativeTo="ISync_OptionsCleanFrame" relativePoint="TOPRIGHT">
 								<Offset>
 									<AbsDimension x="-5" y="-7"/>
 								</Offset>
 							</Anchor>
 						</Anchors>
 					</Button>
 					
 					
 					
 			<Frame name="ISyncOptionsCleanFrame_ButtonFrame" frameStrata="DIALOG" movable="false" enableMouse="false" hidden="false" parent="ISync_OptionsCleanFrame">
 					<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>
 					<Size>
 						<AbsDimension x="360" y="50"/>
 					</Size>
 					<Anchors>
 						<Anchor point="BOTTOMLEFT">
 							<Offset>
 								<AbsDimension x="0" y="-40"/>
 							</Offset>
 						</Anchor>
 					</Anchors>
 					<Frames>
 
 						<Button name="ISyncOptionsCleanFrame_ButtonFrameMainButton" inherits="UIPanelButtonTemplate">
 							<Size>
 								<AbsDimension x="70" y="24"/>
 							</Size>
 							<Anchors>
 								<Anchor point="TOPLEFT">
 									<Offset>
 										<AbsDimension x="15" y="-13"/>
 									</Offset>
 								</Anchor>
 							</Anchors>
 							<Scripts>
 								<OnLoad>
 									this:SetText(ISYNC_BT_MAIN);
 								</OnLoad>
 								<OnClick>
 
 										ShowUIPanel(ISync_OptionsFrame);
 										HideUIPanel(ISync_FilterFrame);
 										HideUIPanel(ISync_OptionsFrameMods);
 										HideUIPanel(ISync_SearchFrame);
 										HideUIPanel(ISync_OptionsFrameGeneral);
 										HideUIPanel(ISync_OptionsCleanFrame);
 
 								</OnClick>
 							</Scripts>
 						</Button>
 						
 					</Frames>
 			</Frame>
 
 	
  					
  		</Frames>
  
  			<Scripts>
  				<OnShow>
 
 
  				</OnShow>
 
  				<OnHide>
  				</OnHide>
  			</Scripts>
	</Frame>
	


</Ui>
