[Templates]
$PolicyEditDlg		= $Dlg sz(395,400) text($SettingsS + " : " + switch(name, "ProfileName"))
$PolicyPropPage		= a(la) sz(p,p) alias(settingsview)
$LockButton			= t(lockbutton) sz(14,14) bg("LockButton,0,1,2,3")

;------------------------------------------ LB Fields ---
$ProductFields			= "RunAtSystemStartup,AVService.DetectTypeMask2,AVService.DetectTypeMask3,AVService.DetectTypeMask4,AVService.DetectTypeMask5,AVService.PackerTypeMask,AVService.UseActiveDisinfection,AVService.Excludes,ProcMon.aItems"
$ProtectionLevelFields	= "level,ScanFilter,ScanPacked,ScanArchived,ScanSFXArchived,ScanMailBases,ScanPlainMail,ScanOLE,DetectMask,UseIChecker,UseMSVerify,UseIStreams,ABSNumber,TryDeleteContainer,AskPassword,RegisterThreats,UseSizeLimit,SizeLimit,UseTimeLimit,TimeLimit,ExcludeByMask,ExcludeList,IncludeByMask,IncludeList,DetectByMaskAction,DetectMasksList,TimeoutForCancelRequest,ScanUnchangedObjects,MandatoryScanPeriod,EmulEnable,EmulValue,EmulScriptEnable,EmulScriptValue"
$SleepModeFields		= "smode.EnablePeriod,smode.From,smode.To,smode.EnableAppList,smode.AppList"
$ScanObjectsLevelFields	= $ProtectionLevelFields + ",ScanRemovable,ScanFixed,ScanNetwork,ScanSectors,WorkingMode," + $SleepModeFields
$OdsLevelFields			= $ScanObjectsLevelFields + ",ForUnchangedObjects,ScanMemory,ScanStartUpObjects,ScanMail,ScanNTFSStreams,CountProgress,SyncPostponeProcess"
$OasLevelFields			= $ScanObjectsLevelFields + ",ForUnchangedObjects,ScanObjects,UseCompoundPostponeSize,CompoundPostponeSize"
$McLevelFields			= $ProtectionLevelFields + ",CheckIncomingMessagesOnly,SetOulookPluginParams,UseWMUF,UseAntiphishing"
$ScLevelFields			= $ProtectionLevelFields + ",TrustedSites,HTTPSettings"
$AsLevelFields			= "level,users,UseWhiteAddresses,UseBlackAddresses,UseWhiteWords,UseBlackWords,UseBayesian,ProbableSpamHighLevel,ProbableSpamLowLevel,UseGSG,UsePDB,UseRecentTerms,UseOptionalRecentTermsBases,AddSenderToWhiteListOnTrain,CheckIncomingMessagesOnly,UseWMUF,UseAntiphishing"
$ScanActionFields		= "ScanAction,TryDisinfect,TryDelete"
$OasActionFields		= $ScanActionFields + ",BanUser,BanUserPeriod,SendTemplate"
$McActionFields			= $ScanActionFields + "," + $McConnectivityFields
$UpdaterProxyFields		= "UseProxy,UseIEProxySettings,ProxyHost,ProxyPort,ProxyAuth,UseNTLMAuth,UseProxyCredentials,ProxyLogin,ProxyPassword,BypassProxyForLocalServer"
$UpdaterLANFields		= $UpdaterProxyFields + ",FTPPassive,FTPConnTimeout,Sources,SrcKLPos,SrcAKPos,UseRegion,Region"
$UpdaterRetrFields		= "UseRetr2,RetrPath"
$AsConnectivityFields	= "SetOfExternalASPlugins,CheckTrafficMonitorMessages"
$McConnectivityFields	= "SetOfExternalPlugins,CheckTrafficMonitorMessages,CheckMessangersTraffic"
$BB2Pdm2Fields			= "pdm2.bWatchSystemAccount,pdm2.bAutoRollback,pdm2.Set"
$BB2Regguard2Fields		= "regguard2.vGroupList"
;$WebCtlFields			= "WebCtl.DataBase,WebCtl.DatabaseRecCount,WebCtl.UpdateCategory,WebCtl.FilterMsgClass,WebCtl.UseHeuristic,WebCtl.UseHeuristicOnly,WebCtl.UseHeuristicContentDescr,WebCtl.UseHeuristicContentUrls,WebCtl.CacheCount,WebCtl.CacheTTL,WebCtl.CacheErrTTL,WebCtl.MaxHeuristicDataSize,WebCtl.TranspMaxCount,WebCtl.TranspNetTimeout,WebCtl.UseProfiles,WebCtl.Profiles,WebCtl.Filter,WebCtl.AskActionDef,WebCtl.LoadHTTPTrafMon,WebCtl.SearchOptions,WebCtl.UseFilters,WebCtl.UseExtensionFilter,WebCtl.ExtensionFilter,WebCtl.UseContentFilter,WebCtl.ContentFilter,WebCtl.UseDatabase"
$DLFields				= "Device_Locker.Devices,Device_Locker.DisableAutorun,Device_Locker.DisableAutorunInf"
$FWLevelFields			= "fw.enabled,fw.ProtectionLevel,fw.PortRules,fw.KnownNetworks,fw.InetStealthed,fw.RefreshIPTimeout,fw.NdisCheckTdi,ids.enabled,ids.EnableBan,ids.BanTimeout"


;------------------------------------------ lock buttons style
[PolicyLockButton]
@ = $LockButton xy(,,4)

[PolicyLockButton.check]
@ = $LockButton a(rt) xy(2,2) 

[PolicyLockButton.group]
@ = $LockButton a(rt) xy(0,-21)

[PolicyLockButton.box]
@ = $LockButton a(rt) xy(0,-25)

[PolicyLockButton.DelimiterLine]
@ = $LockButton a(rs) xy(0,-7)

;------------------------------------------ PolicyProtectionAK ---
[AK_PolicyProtection]
@ = t(propsheetpage) sz(385,460) mg(10,7)
PageCombo = [AK_PolicyProtection_Combo]

[AK_PolicyProtection_Combo]
@ = t(combo) sz(p) dl(20)
Protection		= v("Protection") text($AkRootProfile) at(default)
File_Monitoring = v("File_Monitoring") text($File_Monitoring)
Mail_Monitoring = v("Mail_Monitoring") text($Mail_Monitoring)
Web_Monitoring  = v("Web_Monitoring") text($Web_Monitoring)
IM_Monitoring   = v("IM_Monitoring") text($IM_Monitoring)
HipsTask        = v("Hips") text($Hips)
Firewall        = v("Firewall") text($Firewall)
pdm             = v("Pdm") text($Pdm)
ids             = v("Ids") text($ids)
Anti_Spam       = v("Anti_Spam") text($Anti_Spam)
AdBlocker       = v("AdBlocker") text($AdBlocker)
ParCtl          = v("ParCtl") text($ParCtl)

;------------------------------------------ AK_PolicySettings ----
[AK_PolicySettings]
@ = t(propsheetpage) sz(385,360) mg(10,7) h(8151)
PageCombo = [AK_PolicySettings_Combo]

[AK_PolicySettings_Combo]
@ = t(combo) sz(p) dl(20)
Options			= v("Appearance") text($AkOptions) at(default)
Reports			= v("Reports") text($AkReports)
Traffic			= v("Traffic") text($AkTraffic)
AKUserInteract	= v("AKUserInteract") text($AkAKUserInteract)

;------------------------------------------- AK_ProductSettings --------
[AK_ProductSettings]
@ = t(propsheetpage) sz(385,460) mg(10,7)
PageCombo = [AK_ProductSettings_Combo]

[AK_ProductSettings_Combo]
@ = t(combo) sz(p) dl(20)
Protection		= v("Protection") text($AkRootProfile) at(default)
File_Monitoring = v("File_Monitoring") text($File_Monitoring)
Mail_Monitoring = v("Mail_Monitoring") text($Mail_Monitoring)
Web_Monitoring  = v("Web_Monitoring") text($Web_Monitoring)
IM_Monitoring   = v("IM_Monitoring") text($IM_Monitoring)
HipsTask        = v("Hips") text($Hips)
Firewall        = v("Firewall") text($Firewall)
pdm             = v("Pdm") text($Pdm)
ids             = v("Ids") text($ids)
Anti_Spam       = v("Anti_Spam") text($Anti_Spam)
AdBlocker       = v("AdBlocker") text($AdBlocker)
ParCtl          = v("ParCtl") text($ParCtl)
Options			= v("Appearance") text($AkOptions)
Reports			= v("Reports") text($AkReports)
Traffic			= v("Traffic") text($AkTraffic)
AKUserInteract	= v("AKUserInteract") text($AkAKUserInteract)

;------------------------------------------ AK_PolicyProtection common ---
[AK_PolicyProtection_Body]
$shift_m    = xy(,10)
@			= a(la) sz(p,a) a(lt)
Base		= [AK_PolicyProtection_General]
Exclusions  = [OptionsWindow_Navigator_WorkArea_Threats_Body_Exclusions] $shift_m
Threats     = [OptionsWindow_Navigator_WorkArea_Threats_Body_Threats] $shift_m

[AK_PolicyProtection_General]
@               = $SettingsGroup xy(0,10) lb(v(lockFld(state.ser(), "enabled,RunAtSystemStartup,AVService.UseActiveDisinfection")))
EnableProt      = $Check xy(10,9) f("Header0n") v(enabled) use(!$IsProtectionNotInstalled)
RunOnStartup    = $Check xy(10,7) v(RunAtSystemStartup) use(!$IsRD)

;------------------------------------------ AK_PolicyProtection pages ---
[AK_Settings.Protection]
@    = $PolicyPropPage
Body = [AK_PolicyProtection_Body]

[AK_Settings.File_Monitoring]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] mg(2,2) subst(Caption() Level(lb(v(lockLevelFld(flags.ser(),$OasLevelFields)))) Action(lb(v(lockFld(flags.ser(),$OasActionFields)))))

[AK_Settings.Mail_Monitoring]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] mg(2,2) subst(Caption() Level(lb(v(lockLevelFld(flags.ser(),$McLevelFields)))) Action(lb(v(lockFld(flags.ser(),$McActionFields)))))

[AK_Settings.Web_Monitoring]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] mg(2,2) subst(Caption() Action(subst(gr([WMTreat_Group]) OnDetection(subst(Val(ns(httpscan) alias(taskview))) ))) ))

[AK_Settings.IM_Monitoring]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_ContentFilter_Body_IM_Monitoring] use(1) text("") mg(2,2)

[AK_Settings.Hips]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_SystemWatch_Body_HipsTask] sz(p,p) use(1) text("") mg(2,2)

[AK_Settings.Firewall]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_SystemWatch_Body_Firewall] sz(p,p) use(1) text("") mg(2,2)

[AK_Settings.Pdm]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_SystemWatch_Body_pdm] sz(p,p) use(1) text("") mg(2,2)

[AK_Settings.Ids]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_OnlineSecurity_Body_ids] sz(p,p) use(1) text("") mg(2,2)

[AK_Settings.Anti_Spam]
@	 = $PolicyPropPage
;Body = [OptionsWindow_Navigator_WorkArea_3level_settings] subst(Caption() Action(use(0)) BottomPlace([custom_Anti_Spam_footer]) h(14652)
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] subst(Caption() Action(use(0)) ) h(14652)
BottomPlace = [custom_Anti_Spam_footer] a(la) 
;Training = [custom_Anti_Spam_footer_Training]

[AK_Settings.AdBlocker]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_ContentFilter_Body_AdBlocker] sz(p,p) use(1) text("") mg(2,2)

[AK_Settings.ParCtl]
@	 = $PolicyPropPage
Body = [OptionsWindow_Navigator_WorkArea_ContentFilter_Body_ParCtl] sz(p,p) use(1) text("") mg(2,2)

;------------------------------------------ AK_PolicySettings ----
[AK_Settings.Appearance]
@    = $PolicyPropPage h(14892)
;Body = [OptionsWindow_Navigator_WorkArea_Appearance_Body]

[AK_Settings.Reports]
@    = $PolicyPropPage h(14892)
Body = [OptionsWindow_Navigator_WorkArea_Reports_Body]

[AK_Settings.Traffic]
@    = $PolicyPropPage h(14892)
Body = [OptionsWindow_Navigator_WorkArea_Traffic_Body]

[AK_Settings.AKUserInteract]
@    = $PolicyPropPage h(7996)
Body = [AK_PolicySettings_AKInteractionUser_Body]

[AK_PolicySettings_AKInteractionUser_Body]
@=$SettingsBodyAttr
Password_Group=[Password_Group] usefor($($IsAK))
UserInteraction_Group=[AKUserInteraction_Group]

;[UserSettings_Group]
;props=$SettingsGroupNext sz(p,a) lb(v($(flags,fld(EnableNotifications,NSettings,SystemEventLog,MailFrom,SMTPServer,SMTPPort,UsrAccount,PSEM,MailTo,CurrentSendMode,mail_schedule,EnableTrayIconAnimation,EnableLoginShow))))
;EnableNotifications=$Checkbox $First_Control xy(0,0,0,0) v($(EnableNotifications))	tt($(EnableNotifications, Notifications_Group_EnableNotifications))
;ConfigureNotifications=$Button_Medium a(rt) v(dialog:SettingsWindow.ConfigureNotifications)	disable($(EnableNotifications,EnableIfNotZero)) 	tt($Notifications_Group_ConfigureNotifications)
;IconAnimation    = $Checkbox $Next_Control v($(EnableTrayIconAnimation))
;LoginShow        = $Checkbox $Next_Control v($(EnableLoginShow)) usefor($($IsWinNTExtendedOS,OrAK)) usefor($IsNotSOS) hide($($IsVistaOs,OrNotAK,ShowIfZero))

;[AKUserInteraction_Group]
;props=$SettingsGroupNext sz(p,a) lb(v($(flags,fld(EnableInteraction,ShowInStartMenu,ShowInAddRemovePrograms,SupportCustom,EnableNotifications,NSettings,SystemEventLog,MailFrom,SMTPServer,SMTPPort,UsrAccount,PSEM,MailTo,CurrentSendMode,mail_schedule,ShowTrayIcon,EnableTrayIconAnimation,EnableLoginShow,AKStateFilterMask,BasesNotActualPeriod,BasesOutOfDatePeriod))))
;Interaction=$Checkbox $First_Control v($(EnableInteraction))
;EnableNotifications=$Checkbox $Next_Control v($(EnableNotifications))
;ConfigureNotifications=$Button_Medium a(rs) xy(,-4,,0) v(dialog:SettingsWindow.ConfigureNotifications)	disable($(EnableNotifications,EnableIfNotZero))
;ShowTrayIcon=$Checkbox $Next_Control v($(ShowTrayIcon))
;IconAnimation=$Checkbox $Next_Control xy(15,$Control_Shift) v($(EnableTrayIconAnimation)) disable($(ShowTrayIcon,EnableIfNotZero))
;LoginShow=$Checkbox  $Next_Control v($(EnableLoginShow))
;ShowInStartMenu=$Checkbox  $Next_Control v($(ShowInStartMenu))
;ShowInAddRemovePrograms=$Checkbox  $Next_Control v($(ShowInAddRemovePrograms))
;StateNotificationsText=$Next_Control sz(220,a)
;StateNotificationsSettings=$Button_Medium a(rs) v(dialog:SettingsWindow.ConfigureStateNotifications)
;ApperanceText=$Next_Control sz(220,a)
;Apperance=$Button_Medium a(rs) xy(,-4,,0) v(dialog:SettingsWindow.Protection.Apperance)

[WizardPagesAK]
@ = t(propsheetpage) sz(395,400) mg(10,7) h(8151)

[TaskSettingsAK]
;$SettingsViewPanelAttr=a(la) sz(p,p)
;$SettingsViewPanel=alias(taskview) $SettingsViewPanelAttr
@ = t(propsheetpage) sz(385,380) mg(10,7) h(8151)


;------------------------------------------ PolicyEditAK dialogs ----
[PolicyEditAK.Protection]
@  = [StyledWindowT_Small] at(dragable,a_ok,a_cancel) subst( BodyEx( [AK_PolicyProtection_Body] ) ) sz(395,a) text($SettingsS + " : " + name) 

[PolicyEditAK.File_Monitoring]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] subst(Enable(text(f_EnableProfile(name))) Level(lb(v(lockLevelFld(flags.ser(),$OasLevelFields)))) Action(lb(v(lockFld(flags.ser(),$OasActionFields)))))

[PolicyEditAK.Mail_Monitoring]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] subst(Enable(text(f_EnableProfile(name))) Level(lb(v(lockLevelFld(flags.ser(),$McLevelFields)))) Action(lb(v(lockFld(flags.ser(),$McActionFields)))))

[PolicyEditAK.Web_Monitoring]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] subst(Enable(text(f_EnableProfile(name))) Action(subst(gr([WMTreat_Group]) OnDetection(subst(Val(ns(httpscan) alias(taskview))) ))) ))

[PolicyEditAK.IM_Monitoring]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_ContentFilter_Body_IM_Monitoring] use(1) text("") mg(2,2)

[PolicyEditAK.HipsTask]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_SystemWatch_Body_HipsTask] sz(p,p) use(1) text("") mg(2,2)

[PolicyEditAK.Firewall]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_SystemWatch_Body_Firewall] sz(p,p) use(1) text("") mg(2,2)

[PolicyEditAK.pdm]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_SystemWatch_Body_pdm] sz(p,p) use(1) text("") mg(2,2)

[PolicyEditAK.ids]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_OnlineSecurity_Body_ids] sz(p,p) use(1) text("") mg(2,2)

[PolicyEditAK.Anti_Spam]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] subst(Caption() Action(use(0)) ) h(14652)
BottomPlace = [custom_Anti_Spam_footer] a(la) 

[PolicyEditAK.AdBlocker]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_ContentFilter_Body_AdBlocker] sz(p,p) use(1) text("") mg(2,2)

[PolicyEditAK.ParCtl]
@	 = $PolicyEditDlg
Body = [OptionsWindow_Navigator_WorkArea_ContentFilter_Body_ParCtl] sz(p,p) use(1) text("") mg(2,2)


;--------------------------------------------- Policy wizard Page 1 ------
[SettingsWindow.Prepare.Policy]
@		= a(la) sz(p,p) alias(importcfg) h(8128)
Label	= a(la) sz(p) 
Group	= [Prepare.Policy.Wizard.Group]

[Prepare.Policy.Wizard.Group]
@		= a(la) sz(p,a) xy(,$Control_Shift)
PathCfg	= t(edit) at(rememberdata) a(lt) sz(p) xy(,1,110) v(MsgParams.strVal1)
LoadCfg	= $Button_Medium a(r) onclick(browsefileopen(ctl.PathCfg.value, $BrowseForConfig, "cfg"))

;--------------------------------------------- Policy wizard Page 2 ------
[SettingsWindow.Product.Policy]
@			= a(la) sz(p,p) h(7899)
Group		= [Protection.Policy.Wizard.Group] alias(policytree)

[Protection.Policy.Wizard.Group]
@			= sz(p,p)
Tree		= [Protection.Policy.Wizard.Tree] 

[Protection.Policy.Wizard.Tree]
@		= $List a(la) sz(p,p) at(noheader,noplus,checked) v(PolicyTreeItems) alias(tree) childs(Children) 
Name	= at(noplus) text(Name) i(s_LockedIcon(Locked)) ia(lc) at(checked) v(Enabled)
footer	= [Protection_Policy_Footer]

[Protection_Policy_Footer]
@      = f("GridGroup") sz(p,22) rs(100,0) ext(1)
Edit   = $Link a(lc) xy(7) i("listctrls,1") enable(depend(canEdit())) onclick(edit((editProfileAdm(Locked.ser()), true)))
;onclick( edit(editProfileAdm(Locked.ser()) )
Lock   = $Link a(ac) xy(17) i(f_locked_icon(!Locked,canEdit())) text(s_LockBn(Locked)) enable(depend(canEdit())) onclick(edit((Locked = !Locked, lockProfileAdm(Locked.ser()), true)))
border = a(lt) sz(p,2) bg("GridGroup")

[AkPolicyTreeProfiles]
Protection		= "enabled," + $ProductFields
File_Monitoring = "enabled," + $OasLevelFields + "," + $OasActionFields
Mail_Monitoring = "enabled," + $McLevelFields + "," + $McActionFields
Web_Monitoring  = "enabled," + $ScLevelFields + "," + $ScanActionFields
IM_Monitoring   = "enabled"
HipsTask        = "enabled"
Firewall        = "enabled," + $FWLevelFields
pdm             = "enabled"
ids             = "enabled"
Anti_Spam       = "enabled," + $AsLevelFields + "," + $AsConnectivityFields
AdBlocker       = "enabled"
ParCtl          = "enabled"

;--------------------------------------------- Policy wizard Page 3 ------
[SettingsWindow.Password.Policy.Wizard]
@	 = a(la) sz(p,p) h(7843)
Body = [Password.Policy.Wizard.Body]

[Password.Policy.Wizard.Body]
@           = sz(p,p) alias(policypasswd)
;$DlgPIWInnerAttr
EnablePassword	= $Checkbox $Next_Control xy(5,-4) v($(EnablePswrdProtect)) 
PswdText        = $Next_Control xy(20,4)
Pswd            = t(edit) at(passwordset) a(asr) sz(150) xy(5,-3) v($(NewPswdr)) disable($(EnablePswrdProtect,EnableIfNotZero))
ConfPswdText    = $Next_Control xy(20,4)
ConfPswd        = t(edit) at(passwordset) a(asr) sz(150) xy(5,-2) v($(NewPswdr2)) disable($(EnablePswrdProtect,EnableIfNotZero))
AskPswrdSettings=[AskPswrdSettingsGroup_Group] xy(,-1) disable($(EnablePswrdProtect,EnableIfNotZero))

;--------------------------------------------- Policy wizard Page 4 ------
[SettingsWindow.ThrustedZone.Policy]
@	 = a(la) sz(p,p) alias(akthrustedzone) h(7794)
Body = [ThrustedZone.Policy.Wizard.Body]

[ThrustedZone.Policy.Wizard.Body]
@			= sz(p,p) 
Caption		= a(la)
PmAppsList  = [ThrustedZone.Policy.Wizard.ProtectionAppsList]

[ThrustedZone.Policy.Wizard.ProtectionAppsList]
@	 = $List at(noheader,checked,sorted) a(la) sz(p,p) xy(,$Control_Shift) v(ThrustedApps) alias(vector)
Name = at(checked) text(Name) v(Enabled) i("file")


;------------------------------------------- SettingsWindow.LicMgr --------
[SettingsWindow.LicMgr]
@		= sz(p,a)  alias(licmgr)
KeyFile = [LicenseKeyFile] $GroupBox
KeyInfo = [ConfigureWizard.ActivationChooseKey_Info_KeyInfo] $GroupBox ns(LicInfo)

[LicenseKeyFile]
@			= a(la) sz(p,a) xy(,$Control_Shift) mg(20,7)
KeyPath		= t(edit) at(nofocus,compresspath,readonly) a(lt) sz(p,a) xy(,2,80)  v(FileName) 
KeyBrowse	= $Button a(r) text($Browse) onclick(browsefileopen(FileName, $BrowseForKey, "key"))
Secondary	= t(check) a(la) sz(p,a) xy(,$Control_Shift) v(Secondary)

;------------------------------------------- Updater task Wizard --------
[SettingsWindow.Updater.Wizard]
@	 = sz(p,a) alias(settingsview) h(7950)
List = [UpdaterSettings_Tab_Source_List]

;------------------------------------------- Updater task Properties --------
[SettingsWindow.Updater]
@		 = sz(p,a) alias(settingsview) mg(0, 0) h(7950)
Settings = [OptionsWindow_Navigator_WorkArea_Updater_Body_Settings]
Misc     = [OptionsWindow_Navigator_WorkArea_Updater_Body_Misc]

;------------------------------------------- Scan task Wizard --------
[SettingsWindow.Scan_Objects]
@		 = $PolicyPropPage h(7978)
ListArea = [ScanGroup_Body_ScanObjects_ListArea]

[SettingsWindow.Scan_Objects_Scope]
@	   = $PolicyPropPage h(7797)
Action = [OptionsWindow_Navigator_WorkArea_3level_Action]
; $GroupBox

;------------------------------------------- Scan task properties --------
[SettingsWindow.Scan_Objects_Objects]
@	 = $PolicyPropPage h(7978)
Body = [OptionsWindow_Navigator_WorkArea_3level_settings] subst(Enable()) extprm(1)


;------------------------------------------- AkStatistics --------
[AkStatistics]
Protection        = [AkStatistics.Protection]  text(" " + $AkRootProfile)
FileMonitor       = [AkStatistics.FileMonitor] text($File_Monitoring)	use(bindok(File_Monitoring.enabled))
MailMonitor       = [AkStatistics.MailMonitor] text($Mail_Monitoring)	use(bindok(Mail_Monitoring.enabled))
WebMonitor        = [AkStatistics.WebMonitor]  text($Web_Monitoring)	use(bindok(Web_Monitoring.enabled))
;BehaviourBlocking2= [AkStatistics.BehaviorMonitor2] use(bindok(Behavior_Blocking2.enabled))
;AntiSpy           = [AkStatistics.AntiSpy]         use(bindok(Anti_Spy.enabled))
;AntiHacker        = [AkStatistics.AntiHacker]      use(bindok(Anti_Hacker.enabled))
;AntiSpam          = [AkStatistics.AntiSpam]        use(bindok(Anti_Spam.enabled))
;;LockControl       = [AkStatistics.LockControl]     use(bindok(Lock_Control.enabled))

[AkStatistics.Protection]
PublishDate			= v(datetime(AVService.BasesDate)) t(v)
SignaturesCount		= v(AVService.NumRecords) t(v)
LastUpdate			= v(datetime(Product.LastSuccessfulUpdate)) t(v)
LastFullscan		= v(datetime(Product.LastSuccessfulFullScan)) t(v)
TotalChecked		= v(AVService.NumGenericScaned) t(v)
ThreatsDetected		= v(AVService.NumThreats) t(v)
ThreatsUntreated	= v(AVService.NumUntreated) t(v)
AttacksDetected		= v(ids.AttacksDetected) usefor(ids.enabled) t(v)
SpamDetected		= v(Anti_Spam.MailSpamCount) usefor(Anti_Spam.enabled) t(v)

[AkStatistics.FileMonitor]
TotalChecked		= v(File_Monitoring.NumScaned) t(v)
LastChecked			= v(File_Monitoring.CurObject) t(v)
ThreatsDetected		= v(File_Monitoring.NumThreats) t(v)
SuspiciousDetected	= v(File_Monitoring.NumDetectedSusp) t(v)
ThreatsDisinfected	= v(File_Monitoring.NumDisinfected) t(v)
ThreatsDeleted		= v(File_Monitoring.NumDeleted) t(v)
ThreatsQuarantined	= v(File_Monitoring.NumQuarantined) t(v)
ThreatsUntreated	= v(File_Monitoring.NumUntreated) t(v)
ScanErrors			= v(File_Monitoring.NumScanErrors) t(v)
;BanUsers			= v(File_Monitoring.BanList.Users,size,CheckBanUsers)) t(v) use($IsFS)

[AkStatistics.MailMonitor]
TotalChecked		= v(Mail_Monitoring.NumScaned) t(v)
ThreatsDetected		= v(Mail_Monitoring.NumThreats) t(v)
SuspiciousDetected	= v(Mail_Monitoring.NumDetectedSusp) t(v)
ThreatsDisinfected	= v(Mail_Monitoring.NumDisinfected) t(v)
ThreatsDeleted		= v(Mail_Monitoring.NumDeleted) t(v)
ThreatsQuarantined	= v(Mail_Monitoring.NumQuarantined) t(v)
ThreatsUntreated	= v(Mail_Monitoring.NumUntreated) t(v)
ScanErrors			= v(Mail_Monitoring.NumScanErrors) t(v)

[AkStatistics.WebMonitor]
DetectedOnTraff		= v(NumDetected) t(v)

	[AkStatistics.BehaviorMonitor2]
	TotalChecked=v($(pdm2.nTreats))
	TreatsBlocked=v($(pdm2.nTreatsBlocked))

	[AkStatistics.AntiSpy]
	;PhishingAttemptsBlocked=v($(antiphishing.nURLsDetected))
	DialAttemptsBlocked=v($(antidial.nDialsBlocked))

	[AkStatistics.AntiHacker]
	AttacksDetected=v($(ids.AttacksDetected))
	LastAttackTime=v($(ids.AttackLastTime,datetime))

	[AkStatistics.AntiSpam]
	TotalChecked=v($(Anti_Spam.MailCount))
	SpamDetected=v($(Anti_Spam.MailSpamCount))
	SpamBaseSize=v($(Anti_Spam.SpamBaseSize))
	HamBaseSize=v($(Anti_Spam.HamBaseSize))

	[AkStatistics.ScanObjects]
	TotalChecked=v($(NumScaned))
	LastChecked=v($(CurObject))
	ThreatsDetected=v($(NumThreats))
	DetectedExact=v($(NumDetectedExact))
	SuspiciousDetected=v($(NumDetectedSusp))
	ThreatsDisinfected=v($(NumDisinfected))
	ThreatsDeleted=v($(NumDeleted))
	ThreatsQuarantined=v($(NumQuarantined))
	ThreatsUntreated=v($(NumUntreated))
	ScanErrors=v($(NumScanErrors))

	[AkStatistics.LockControl]
	ViolationsBlocked=v($(WebCtl.nURLsDetected))


;====================  prev realization  =================================




	;------------- Page 5 -----------

	[SettingsWindow.UserInteraction.Policy.Wizard]
	@=$SettingsViewPanel h(13017)
	Body=[UserInteraction.Policy.Wizard.Body]

	[UserInteraction.Policy.Wizard.Body]
	@=$SettingsBodyAttr
	Interaction=$Checkbox $First_Control v($(EnableInteraction))
	EnableNotifications=$Checkbox $Next_Control v($(EnableNotifications))
	ConfigureNotifications=$Button_Medium a(rs) xy(,-4) v(dialog:SettingsWindow.ConfigureNotifications)	disable($(EnableNotifications,EnableIfNotZero))
	ShowTrayIcon=$Checkbox $Next_Control v($(ShowTrayIcon))
	IconAnimation=$Checkbox $Next_Control xy(15,$Control_Shift) v($(EnableTrayIconAnimation)) disable($(ShowTrayIcon,EnableIfNotZero))
	LoginShow=$Checkbox $Next_Control v($(EnableLoginShow))
	ShowInStartMenu=$Checkbox $Next_Control v($(ShowInStartMenu))
	ShowInAddRemovePrograms=$Checkbox $Next_Control v($(ShowInAddRemovePrograms))
	StateNotificationsText=$Next_Control xy(,12)
	StateNotificationsSettings=$Button_Medium a(rs) xy(,-4) v(dialog:SettingsWindow.ConfigureStateNotifications)
	ApperanceText=$Next_Control
	Apperance=$Button_Medium a(rs) xy(,-4,,0) v(dialog:SettingsWindow.Protection.Apperance)



; ------------- SettingsWindow.InstallPrepare -----------
; __DELETE__ проверить(нет ссылок на [SettingsWindow.InstallPrepare])

[SettingsWindow.InstallPrepare]
@=$SettingsViewPanel alias(wksinstall) h(7940)
Body=[SettingsWindow.InstallPrepare_Body]

[SettingsWindow.InstallPrepare_Body]
@=$SettingsBodyAttr
ComponentsLable   = $First_Control usefor($IsNotSOS)
Components        = t(list) alias(flagslist) a(la) sz(p,180) at(checked,noheader) v($(nVal1)) usefor($IsNotSOS)
InstallPathLable  = $Next_Control usefor($IsNotSOS)
InstallPathLable  = $First_Control usefor($IsSOS)
InstallPath       = t(edit) at(rememberdata) a(la) sz(p) v($(strVal1))
ConfigLable       = $Next_Control
ConfigPath        = t(edit) at(rememberdata) a(la) sz(p) xy(,,$ButtonsLineSizeX) v($(strVal2))
ConfigPathBrowse  = $Button a(rs) xy(,-1) v(browse:fileopen(strVal2,BrowseForCfg) flt(cfg)) text($Browse)
UseEnvironment    = $Checkbox $Next_Control bits(#iciEnvironment) v($(nVal1))
UseMsExclusions   = $Checkbox $Next_Control bits(#iciMsExclusions) v($(nVal1)) usefor($IsFS)
Troubleshooting   = $Button_Medium a(ra) xy(0,7) v(dialog:SettingsWindow.InstallPrepare_Body.Troubleshooting) usefor($IsWKS) disable($(nVal1,bits(#iciFileMonitor|#iciMailMonitor|#iciWebMonitor|#iciPdm|#iciAntiSpy|#iciAntiHacker|#iciAntiSpam|#iciLockControl),EnableIfNotZero))

[SettingsWindow.InstallPrepare_Body.Components.items]
FileMonitor    = v(#iciFileMonitor)    text($File_Monitor)     usefor($IsNotSOS)
MailMonitor    = v(#iciMailMonitor)    text($Mail_Monitor)     usefor($IsWKS)
WebMonitor     = v(#iciWebMonitor)     text($Web_Monitor)      usefor($IsWKS)
Pdm            = v(#iciPdm)            text($Behavior_Monitor) usefor($IsWKS)
AntiSpy        = v(#iciAntiSpy)        text($Anti_Spy)         usefor($IsWKS)
AntiHacker     = v(#iciAntiHacker)     text($Anti_Hacker)      usefor($IsWKS)
AntiSpam       = v(#iciAntiSpam)       text($Anti_Spam)        usefor($IsWKS)
LockControl    = v(#iciLockControl)    text($Lock_Control)     usefor($IsWKS)

[SettingsWindow.InstallPrepare_Body.Troubleshooting]
@  = [StyledWindowT_Small] at(dragable,a_ok,a_cancel) subst( BodyEx( [SettingsWindow.InstallPrepare_Body.Troubleshooting_Body] ) ) sz(a,100) h(7934)

[SettingsWindow.InstallPrepare_Body.Troubleshooting_Body]
NoKLIM5           = $Checkbox $First_Control bits(#iciNoKLIM5) v($(nVal1))
NoSelfProtection  = $Checkbox at(invert) $Next_Control bits(#iciSelfProtection) v($(nVal1)) usefor($IsNotSOS)


