scripted_gui = {
	TNO_OMO_territories_GUI = {
		context_type = decision_category
		parent_window_token = decision_tab
		window_name = "TNO_OMO_territories_container"

		visible = { always = yes }
		properties = {
			OMO_power_bar = {
				frame = OMO_average_faith_number
			}
			OMO_power_bar2 = {
				frame = OMO_average_fervour_number
			}
			OMO_chita = {
				frame = OMO_chita_frame
			}
			OMO_irkutsk = {
				frame = OMO_irkutsk_frame
			}
			OMO_kamchatka = {
				frame = OMO_kamchatka_frame
			}
			OMO_komi = {
				frame = OMO_komi_frame
			}
			OMO_magadan = {
				frame = OMO_magadan_frame
			}
			OMO_novosibirsk = {
				frame = OMO_novosibirsk_frame
			}
			OMO_omolon = {
				frame = OMO_omolon_frame
			}
			OMO_oyrotia = {
				frame = OMO_oyrotia_frame
			}
			OMO_sba = {
				frame = OMO_sba_frame
			}
			OMO_siberia = {
				frame = OMO_siberia_frame
			}
			OMO_tomsk = {
				frame = OMO_tomsk_frame
			}
			OMO_tyumen = {
				frame = OMO_tyumen_frame
			}
			OMO_uralleague = {
				frame = OMO_uralleague_frame
			}
			OMO_vologda = {
				frame = OMO_vologda_frame
			}
			OMO_vorkuta = {
				frame = OMO_vorkuta_frame
			}
			OMO_wrrf = {
				frame = OMO_wrrf_frame
			}
			OMO_yakutia = {
				frame = OMO_yakutia_frame
			}
			OMO_yugra = {
				frame = OMO_yugra_frame
			}
			OMO_zlatoust = {
				frame = OMO_zlatoust_frame
			}
			OMO_freeaviators = {
				frame = OMO_freeaviators_frame
			}
		}
		effects = {
			OMO_chita_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_chita_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 1 }
				}
			}
			OMO_irkutsk_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_irkutsk_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 2 }
				}
			}
			OMO_kamchatka_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_kamchatka_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 3 }
				}
			}
			OMO_komi_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_komi_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 4 }
				}
			}
			OMO_magadan_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_magadan_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 5 }
				}
			}
			OMO_novosibirsk_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_novosibirsk_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 6 }
				}
			}
			OMO_omolon_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_omolon_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 7 }
				}
			}
			OMO_oyrotia_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_oyrotia_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 8 }
				}
			}
			OMO_sba_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_sba_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 9 }
				}
			}
			OMO_siberia_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_siberia_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 10 }
				}
			}
			OMO_tomsk_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_tomsk_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 11 }
				}
			}
			OMO_tyumen_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_tyumen_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 12 }
				}
			}
			OMO_uralleague_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_uralleague_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 13 }
				}
			}
			OMO_vologda_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_vologda_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 14 }
				}
			}
			OMO_vorkuta_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_vorkuta_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 20}
				}
			}
			OMO_wrrf_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_wrrf_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 15 }
				}
			}
			OMO_yakutia_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_yakutia_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 16 }
				}
			}
			OMO_yugra_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_yugra_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 17 }
				}
			}
			OMO_zlatoust_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_zlatoust_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 18 }
				}
			}
			OMO_freeaviators_click = {
				if = {
					limit = { NOT = {check_variable = { OMO_freeaviators_frame = 1 }} }
					set_variable = { OMO_selected_area_holy_int = 19 }
				}
			}
		}
	}
}