scripted_gui = {
		open_istoria_window = {	#open_istoria_window	
			context_type = player_context		#player_context
			parent_window_token = top_bar	#удалить чуть что
			window_name = "open_istoria_window"		#open_istoria_window	
			visible = {
				is_ai = no			
			}			
			effects = {
				open_istoria_window_button_click = {
					if = {
						limit = {
							check_variable = { show_istoria = 1 }
						}
						set_variable = { show_istoria = 0 }		# выключаем все открытые статьи
						set_variable = { show_statistika_demogr = 0 }
						set_variable = { show_black_dekada = 0 }
						set_variable = { show_greatwar = 0 }
						set_variable = { show_romanimp = 0 }
						set_variable = { show_persia = 0 }
						set_variable = { show_slaviane = 0 }
						set_variable = { show_nova_terra = 0 }
						set_variable = { show_omniparism = 0 }
						set_variable = { show_irokez = 0 }
						set_variable = { show_germantsy = 0 }
						set_variable = { show_branden = 0 }
						set_variable = { show_minchina = 0 }
						set_variable = { show_haaan = 0 }
						set_variable = { show_vyzan = 0 }
						set_variable = { show_japaaan = 0 }
						set_variable = { show_vietind = 0 }
						set_variable = { show_atlandia = 0 }
						set_variable = { show_sredasiadekada = 0 }
						set_variable = { show_khazaria = 0 }
						set_variable = { show_turanibashkiryone = 0 }
						set_variable = { show_turanibashkirytwo = 0 }
						set_variable = { show_britannia = 0 }
						set_variable = { show_vened = 0 }
					}
					else = {
						set_variable = { show_istoria = 1 }
					}
#					set_temp_variable = { show = 1 }
#					subtract_from_temp_variable = { show = show_istoria }
#					set_variable = { show_istoria = show }
					set_variable = { show_zri_spravka = 1 }	# риму курсор на 1 раздел
				}
				open_istoria_window_button_right_click = {
					set_temp_variable = { show = 1 }						# выкл
					subtract_from_temp_variable = { show = show_cheatlol }	# выкл
					set_variable = { show_cheatlol = show }					# выкл
					clear_array = democratura_alignment_array	
					clear_array = pattern_alignment_array
					clear_array = omniki_alignment_array
					clear_array = konservy_alignment_array
					every_country = { # демократура grid
						limit = {
							OR = {
								AND = {
									is_puppet = no
									is_in_faction = yes
								}
								AND = {
									is_puppet = no
									num_of_factories > 4
								}
								AND = {
									is_puppet = yes 
									num_of_factories > 9 # No Super weak Tags on grid
								}
							}	
							exists = yes	
							has_government = democratic 
							democratic > 0.49
						}
						add_to_array = { ROOT.democratura_alignment_array = THIS }
					}
					every_country = { # патерны grid
						limit = {
							OR = {
								AND = {
									is_puppet = no
									is_in_faction = yes
								}
								AND = {
									is_puppet = no
									num_of_factories > 4
								}
								AND = {
									is_puppet = yes 
									num_of_factories > 9 # No Super weak Tags on grid
								}
							}
							exists = yes
							has_government = fascism
							fascism > 0.49
						}
						add_to_array = { ROOT.pattern_alignment_array = THIS }
					}				
					every_country = { # омники grid
						limit = {
							OR = {
								AND = {
									is_puppet = no
									is_in_faction = yes
								}
								AND = {
									is_puppet = no
									num_of_factories > 4
								}
								AND = {
									is_puppet = yes 
									num_of_factories > 9 # No Super weak Tags on grid
								}
							}	
							exists = yes	
							has_government = communism 
							communism > 0.49
						}
						add_to_array = { ROOT.omniki_alignment_array = THIS }
					}				
					every_country = { # консервы nation grid
						limit = {
							OR = {
								AND = {
									is_puppet = no
									is_in_faction = yes
								}
								AND = {
									is_puppet = no
									num_of_factories > 4
								}
								AND = {
									is_puppet = yes 
									num_of_factories > 9 # No Super weak Tags on grid
								}
							}	
							exists = yes	
							has_government = neutrality 
							neutrality > 0.49
						}
						add_to_array = { ROOT.konservy_alignment_array = THIS }
					}
				}
			}
			triggers = {			
			}		
		}
		istoria_window = {
			context_type = player_context		
			window_name = "istoria_window"		
			visible = {					
				check_variable = { show_istoria > 0 }				
			}
			effects = {
				istoria_close_button_click = {	#выход
					set_variable = { show_istoria = 0 }
					set_variable = { show_zri_spravka = 1 }	# риму курсор на 1 раздел
					set_variable = { show_zsl_spravka = 1 }	# слвянам курсор на 1 раздел
					set_variable = { show_zmn_spravka = 1 }	# чунго курсор на 1 раздел
					set_variable = { show_zkr_spravka = 1 }	# Хазария курсор на 1 раздел
					set_variable = { show_turanibashkir_spravka = 1 }	# turanibashkir курсор на 1 раздел
					set_variable = { show_germantsy_spravka = 1 } # германцы на раздел 1
				}
				statistika_demogr_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_statistika_demogr }
					set_variable = { show_statistika_demogr = show }
					set_variable = { global.manp_summa_var_2 = 0 }
					set_variable = { global.izmenenie_1986_to_now = 0 }
					every_country = {
						set_variable = { k_naselenie_vsego = max_manpower_k }
						divide_variable = {
							var = k_naselenie_vsego
							value = 1000
						}
						round_variable = k_naselenie_vsego
						add_to_variable = { global.manp_summa_var_2 = k_naselenie_vsego }
					}
					set_variable = { global.izmenenie_1986_to_now = global.manp_summa_var_2 }
					subtract_from_variable = {
						var = global.izmenenie_1986_to_now
						value = global.manp_summa_var_1986
					}
				}
				black_dekada_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_black_dekada }
					set_variable = { show_black_dekada = show }
				}
				greatwar_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_greatwar }
					set_variable = { show_greatwar = show }
				}
				romanimp_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_romanimp }
					set_variable = { show_romanimp = show }
					set_variable = { show_zri_spravka = 1 }	# риму курсор на 1 раздел
				}
				persia_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_persia }
					set_variable = { show_persia = show }
				}
				slaviane_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_slaviane }
					set_variable = { show_slaviane = show }
					set_variable = { show_zsl_spravka = 1 }	# слвянам курсор на 1 раздел
				}
				nova_terra_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_nova_terra }
					set_variable = { show_nova_terra = show }
				}
				omniparism_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_omniparism }
					set_variable = { show_omniparism = show }
				}
				irokez_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_irokez }
					set_variable = { show_irokez = show }
				}
				germantsy_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_germantsy }
					set_variable = { show_germantsy = show }
					set_variable = { show_germantsy_spravka = 1 }	# германцам курсор на 1 раздел
				}
				branden_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_branden }
					set_variable = { show_branden = show }
				}
				minchina_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_minchina }
					set_variable = { show_minchina = show }
					set_variable = { show_zmn_spravka = 1 }	# чунго курсор на 1 раздел
				}
				haaan_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_haaan }
					set_variable = { show_haaan = show }
				}
				vyzan_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_vyzan }
					set_variable = { show_vyzan = show }
				}
				japaaan_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_japaaan }
					set_variable = { show_japaaan = show }
				}
				vietind_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_vietind }
					set_variable = { show_vietind = show }
				}
				atlandia_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_atlandia }
					set_variable = { show_atlandia = show }
				}
				sredasiadekada_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_sredasiadekada }
					set_variable = { show_sredasiadekada = show }
				}
				khazaria_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_khazaria }
					set_variable = { show_khazaria = show }
					set_variable = { show_zkr_spravka = 1 }	# Хазария курсор на 1 раздел
				}
				turanibashkiryone_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_turanibashkiryone }
					set_variable = { show_turanibashkiryone = show }
					set_variable = { show_turanibashkir_spravka = 1 }	# turanibashkir курсор на 1 раздел
				}
				turanibashkirytwo_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_turanibashkirytwo }
					set_variable = { show_turanibashkirytwo = show }
				}
				britannia_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_britannia }
					set_variable = { show_britannia = show }
				}
				vened_istoria_button_click = {
					set_temp_variable = { show = 1 }
					subtract_from_temp_variable = { show = show_vened }
					set_variable = { show_vened = show }
				}				
				
			}
		}
		cheatlol_window = {
			context_type = player_context		
			window_name = "cheatlol_window"		
			visible = {					
				check_variable = { show_cheatlol > 0 }				
			}
			dynamic_lists = {
				spisok_ideoligiy_tags_grid = {
					array = democratura_alignment_array
					change_scope = yes
					entry_container = ideoligii_spisok_tag_entry
				}				
				spisok_ideoligiy_tags_grid1 = {
					array = pattern_alignment_array
					change_scope = yes
					entry_container = ideoligii_spisok_tag_entry
				}
				spisok_ideoligiy_tags_grid2 = {
					array = omniki_alignment_array
					change_scope = yes
					entry_container = ideoligii_spisok_tag_entry
				}
				spisok_ideoligiy_tags_grid3 = {
					array = konservy_alignment_array
					change_scope = yes
					entry_container = ideoligii_spisok_tag_entry
				}
			}
			effects = {
				cheatlol_pp_button_click = {
					add_political_power = 100
				}
				cheatlol_stab_button_click = {
					add_stability = 0.1
				}
				cheatlol_stab2_button_click = {
					add_stability = -0.1
				}
				cheatlol_warsupp_button_click = {
					add_war_support = 0.1
				}
				cheatlol_warsupp2_button_click = {
					add_war_support = -0.1
				}
				cheatlol_manpow_button_click = {
					add_manpower = 100000
				}
				cheatlol_expa_button_click = {
					army_experience = 50
					navy_experience = 50
					air_experience = 50
				}
				
				cheatlol_nazi_button_click = {
					add_popularity = {
						ideology = fascism
						popularity = 0.1
					}
				}
				cheatlol_omnipar_button_click = {
					add_popularity = {
						ideology = communism
						popularity = 0.1
					}
				}
				cheatlol_demok_button_click = {
					add_popularity = {
						ideology = democratic
						popularity = 0.1
					}
				}
				cheatlol_neutr_button_click = {
					add_popularity = {
						ideology = neutrality
						popularity = 0.1
					}
				}
				cheatlol_vlast_nazi_button_click = {
					add_popularity = {
						ideology = fascism
						popularity = 0.5
					}
					set_politics = {												
						ruling_party = fascism
					}					
				}
				cheatlol_vlast_omnipar_button_click = {
					add_popularity = {
						ideology = communism
						popularity = 0.5
					}
					set_politics = {												
						ruling_party = communism
					}					
				}
				cheatlol_vlast_democr_button_click = {
					add_popularity = {
						ideology = democratic
						popularity = 0.5
					}
					set_politics = {												
						ruling_party = democratic
					}					
				}
				cheatlol_vlast_neutr_button_click = {
					add_popularity = {
						ideology = neutrality
						popularity = 0.5
					}
					set_politics = {												
						ruling_party = neutrality
					}					
				}
				
				cheatlol_integrat_button_click = {
					every_other_country = {
						limit = {
							is_puppet_of = ROOT
						}
						add_autonomy_ratio = {
							value = -0.15
							localization = cheatlol_integrat
						}
					}					
				}
				cheatlol_threattt_button_click = {
					if = {
						limit = {  country_exists = ZCY  }
						ZCY = {
							add_named_threat = { threat = 10 name = iamacheater_1 }
						}
					}					
				}
				
				cheatlol_close_button_click = {
					set_variable = { show_cheatlol = 0 }
					clear_array = democratura_alignment_array
					clear_array = pattern_alignment_array
					clear_array = omniki_alignment_array
					clear_array = konservy_alignment_array
				}				
			}
			properties = {
				flag = {
					image = "[This.GetFlag]"
				}
			}
		}
#####
		statistika_demogr_window = {
			context_type = player_context		
			window_name = "statistika_demogr_window"		
			visible = {					
				check_variable = { show_statistika_demogr > 0 }				
			}
			effects = {					
				statistika_demogr_close_button_click = {
					set_variable = { show_statistika_demogr = 0 }
				}				
			}
		}		
#################################################################################################		
		black_dekada_istoria_window = {
			context_type = player_context		
			window_name = "black_dekada_istoria_window"		
			visible = {					
				check_variable = { show_black_dekada > 0 }				
			}
			effects = {
				black_dekada_istoria_close_button_click = {
					set_variable = { show_black_dekada = 0 }
				}				
			}
		}
		greatwar_istoria_window = {
			context_type = player_context		
			window_name = "greatwar_istoria_window"		
			visible = {					
				check_variable = { show_greatwar > 0 }				
			}
			effects = {
				greatwar_istoria_close_button_click = {
					set_variable = { show_greatwar = 0 }
				}				
			}
		}
		romanimp_istoria_window = {
			context_type = player_context		
			window_name = "romanimp_istoria_window"		
			visible = {					
				check_variable = { show_romanimp > 0 }				
			}
			effects = {
				zri_spravka_spisok_razdelov_1_button_click = {
					set_variable = { show_zri_spravka = 1 }	# риму курсор на 1 раздел
				}
				zri_spravka_spisok_razdelov_2_button_click = {
					set_variable = { show_zri_spravka = 2 }	# риму курсор на 2 раздел
				}
				zri_spravka_spisok_razdelov_3_button_click = {
					set_variable = { show_zri_spravka = 3 }	# риму курсор на 3 раздел
				}
				zri_spravka_spisok_razdelov_4_button_click = {
					set_variable = { show_zri_spravka = 4 }	# риму курсор на 4 раздел
				}
				zri_spravka_spisok_razdelov_5_button_click = {
					set_variable = { show_zri_spravka = 5 }	# риму курсор на 5 раздел
				}
				zri_spravka_spisok_razdelov_6_button_click = {
					set_variable = { show_zri_spravka = 6 }	# риму курсор на 6 раздел
				}
				zri_spravka_spisok_razdelov_7_button_click = {
					set_variable = { show_zri_spravka = 7 }	# риму курсор на 7 раздел
				}
				# zri_spravka_spisok_razdelov_8_button_click = {
					# set_variable = { show_zri_spravka = 8 }	# риму курсор на 8 раздел
				# }
				# zri_spravka_spisok_razdelov_9_button_click = {
					# set_variable = { show_zri_spravka = 9 }	# риму курсор на 9 раздел
				# }
				romanimp_istoria_close_button_click = {
					set_variable = { show_romanimp = 0 }
					set_variable = { show_zri_spravka = 1 }	# риму курсор на 1 раздел
				}
				
			}
		}
		persia_istoria_window = {
			context_type = player_context		
			window_name = "persia_istoria_window"		
			visible = {					
				check_variable = { show_persia > 0 }				
			}
			effects = {
				persia_istoria_close_button_click = {
					set_variable = { show_persia = 0 }
				}				
			}
		}
		slaviane_istoria_window = {
			context_type = player_context		
			window_name = "slaviane_istoria_window"		
			visible = {					
				check_variable = { show_slaviane > 0 }				
			}
			effects = {
				zsl_spravka_spisok_razdelov_1_button_click = {
					set_variable = { show_zsl_spravka = 1 }	# слвянам курсор на 1 раздел
				}
				zsl_spravka_spisok_razdelov_2_button_click = {
					set_variable = { show_zsl_spravka = 2 }	# слвянам курсор на 2 раздел
				}
				zsl_spravka_spisok_razdelov_3_button_click = {
					set_variable = { show_zsl_spravka = 3 }	# слвянам курсор на 3 раздел
				}
				zsl_spravka_spisok_razdelov_4_button_click = {
					set_variable = { show_zsl_spravka = 4 }	# слвянам курсор на 4 раздел
				}
				zsl_spravka_spisok_razdelov_5_button_click = {
					set_variable = { show_zsl_spravka = 5 }	# слвянам курсор на 5 раздел
				}
				zsl_spravka_spisok_razdelov_6_button_click = {
					set_variable = { show_zsl_spravka = 6 }	# слвянам курсор на 6 раздел
				}
				zsl_spravka_spisok_razdelov_7_button_click = {
					set_variable = { show_zsl_spravka = 7 }	# слвянам курсор на 7 раздел
				}
				zsl_spravka_spisok_razdelov_8_button_click = {
					set_variable = { show_zsl_spravka = 8 }	# слвянам курсор на 8 раздел
				}
				zsl_spravka_spisok_razdelov_9_button_click = {
					set_variable = { show_zsl_spravka = 9 }	# слвянам курсор на 9 раздел
				}
#				zsl_spravka_spisok_razdelov_10_button_click = {
#					set_variable = { show_zsl_spravka = 10 }	# слвянам курсор на 10 раздел
#				}
				slaviane_istoria_close_button_click = {
					set_variable = { show_slaviane = 0 }
					set_variable = { show_zsl_spravka = 1 }	# слвянам курсор на 1 раздел
				}				
			}
		}
		nova_terra_istoria_window = {
			context_type = player_context		
			window_name = "nova_terra_istoria_window"		
			visible = {					
				check_variable = { show_nova_terra > 0 }				
			}
			effects = {
				nova_terra_istoria_close_button_click = {
					set_variable = { show_nova_terra = 0 }
				}				
			}
		}
		omniparism_istoria_window = {
			context_type = player_context		
			window_name = "omniparism_istoria_window"		
			visible = {					
				check_variable = { show_omniparism > 0 }				
			}
			effects = {
				omniparism_istoria_close_button_click = {
					set_variable = { show_omniparism = 0 }
				}				
			}
		}
		irokez_istoria_window = {
			context_type = player_context		
			window_name = "irokez_istoria_window"		
			visible = {					
				check_variable = { show_irokez > 0 }				
			}
			effects = {
				irokez_istoria_close_button_click = {
					set_variable = { show_irokez = 0 }
				}				
			}
		}
		germantsy_istoria_window = {
			context_type = player_context		
			window_name = "germantsy_istoria_window"		
			visible = {					
				check_variable = { show_germantsy > 0 }				
			}
			effects = {
				germantsy_spravka_spisok_razdelov_1_button_click = {
					set_variable = { show_germantsy_spravka = 1 }	# германцам курсор на 1 раздел
				}
				germantsy_spravka_spisok_razdelov_2_button_click = {
					set_variable = { show_germantsy_spravka = 2 }
				}
				germantsy_spravka_spisok_razdelov_3_button_click = {
					set_variable = { show_germantsy_spravka = 3 }
				}
				germantsy_spravka_spisok_razdelov_4_button_click = {
					set_variable = { show_germantsy_spravka = 4 }
				}
				germantsy_spravka_spisok_razdelov_5_button_click = {
					set_variable = { show_germantsy_spravka = 5 }
				}
				germantsy_spravka_spisok_razdelov_6_button_click = {
					set_variable = { show_germantsy_spravka = 6 }
				}
				germantsy_spravka_spisok_razdelov_7_button_click = {
					set_variable = { show_germantsy_spravka = 7 }
				}
				germantsy_spravka_spisok_razdelov_8_button_click = {
					set_variable = { show_germantsy_spravka = 8 }
				}
				germantsy_istoria_close_button_click = {
					set_variable = { show_germantsy = 0 }
					set_variable = { show_germantsy_spravka = 1 }
				}				
			}
		}
		branden_istoria_window = {
			context_type = player_context		
			window_name = "branden_istoria_window"		
			visible = {					
				check_variable = { show_branden > 0 }				
			}
			effects = {
				branden_istoria_close_button_click = {
					set_variable = { show_branden = 0 }
				}				
			}
		}
		minchina_istoria_window = {
			context_type = player_context		
			window_name = "minchina_istoria_window"		
			visible = {					
				check_variable = { show_minchina > 0 }				
			}
			effects = {
				minchina_istoria_close_button_click = {
					set_variable = { show_minchina = 0 }
					set_variable = { show_zmn_spravka = 1 }	# чунго курсор на 1 раздел
				}	
				zmn_spravka_spisok_razdelov_1_button_click = {
					set_variable = { show_zmn_spravka = 1 }	# чунго курсор на 1 раздел
				}
				zmn_spravka_spisok_razdelov_2_button_click = {
					set_variable = { show_zmn_spravka = 2 }	# чунго курсор на 2 раздел
				}
				zmn_spravka_spisok_razdelov_3_button_click = {
					set_variable = { show_zmn_spravka = 3 }	# чунго курсор на 3
				}
				zmn_spravka_spisok_razdelov_4_button_click = {
					set_variable = { show_zmn_spravka = 4 }	# чунго курсор на 4 раздел
				}
				zmn_spravka_spisok_razdelov_5_button_click = {
					set_variable = { show_zmn_spravka = 5 }	# чунго курсор на 5 раздел
				}
				zmn_spravka_spisok_razdelov_6_button_click = {
					set_variable = { show_zmn_spravka = 6 }	# чунго курсор на 6 раздел
				}
			}
		}
		haaan_istoria_window = {
			context_type = player_context		
			window_name = "haaan_istoria_window"		
			visible = {					
				check_variable = { show_haaan > 0 }				
			}
			effects = {
				haaan_istoria_close_button_click = {
					set_variable = { show_haaan = 0 }
				}				
			}
		}
		vyzan_istoria_window = {
			context_type = player_context		
			window_name = "vyzan_istoria_window"		
			visible = {					
				check_variable = { show_vyzan > 0 }				
			}
			effects = {
				vyzan_istoria_close_button_click = {
					set_variable = { show_vyzan = 0 }
				}				
			}
		}
		vened_istoria_window = {
			context_type = player_context		
			window_name = "vened_istoria_window"		
			visible = {					
				check_variable = { show_vened > 0 }				
			}
			effects = {
				vened_istoria_close_button_click = {
					set_variable = { show_vened = 0 }
				}				
			}
		}
		japaaan_istoria_window = {
			context_type = player_context		
			window_name = "japaaan_istoria_window"		
			visible = {					
				check_variable = { show_japaaan > 0 }				
			}
			effects = {
				japaaan_istoria_close_button_click = {
					set_variable = { show_japaaan = 0 }
				}				
			}
		}
		vietind_istoria_window = {
			context_type = player_context		
			window_name = "vietind_istoria_window"		
			visible = {					
				check_variable = { show_vietind > 0 }				
			}
			effects = {
				vietind_istoria_close_button_click = {
					set_variable = { show_vietind = 0 }
				}				
			}
		}
		atlandia_istoria_window = {
			context_type = player_context		
			window_name = "atlandia_istoria_window"		
			visible = {					
				check_variable = { show_atlandia > 0 }				
			}
			effects = {
				atlandia_istoria_close_button_click = {
					set_variable = { show_atlandia = 0 }
				}				
			}
		}
		sredasiadekada_istoria_window = {
			context_type = player_context		
			window_name = "sredasiadekada_istoria_window"		
			visible = {					
				check_variable = { show_sredasiadekada > 0 }				
			}
			effects = {
				sredasiadekada_istoria_close_button_click = {
					set_variable = { show_sredasiadekada = 0 }
				}				
			}
		}
		khazaria_istoria_window = {
			context_type = player_context		
			window_name = "khazaria_istoria_window"		
			visible = {					
				check_variable = { show_khazaria > 0 }				
			}
			effects = {
				khazaria_istoria_close_button_click = {
					set_variable = { show_khazaria = 0 }
					set_variable = { show_zkr_spravka = 1 }	# Хазария курсор на 1 раздел
				}
				zkr_spravka_spisok_razdelov_1_button_click = {
					set_variable = { show_zkr_spravka = 1 }	# Хазария курсор на 1 раздел
				}
				zkr_spravka_spisok_razdelov_2_button_click = {
					set_variable = { show_zkr_spravka = 2 }	# Хазария курсор на 2 раздел
				}
				zkr_spravka_spisok_razdelov_3_button_click = {
					set_variable = { show_zkr_spravka = 3 }	# Хазария курсор на 3 раздел
				}
				zkr_spravka_spisok_razdelov_4_button_click = {
					set_variable = { show_zkr_spravka = 4 }	# Хазария курсор на 4 раздел
				}
			}
		}
		turanibashkiryone_istoria_window = {
			context_type = player_context		
			window_name = "turanibashkiryone_istoria_window"		
			visible = {					
				check_variable = { show_turanibashkiryone > 0 }				
			}
			effects = {
				turanibashkiryone_istoria_close_button_click = {
					set_variable = { show_turanibashkiryone = 0 }
					set_variable = { show_turanibashkir_spravka = 1 }	# turanibashkir курсор на 1 раздел
				}	
				turanibashkir_spravka_spisok_razdelov_1_button_click = {
					set_variable = { show_turanibashkir_spravka = 1 }	# turanibashkir курсор на 1 раздел
				}
				turanibashkir_spravka_spisok_razdelov_2_button_click = {
					set_variable = { show_turanibashkir_spravka = 2 }	# turanibashkir курсор на 2 раздел
				}
				turanibashkir_spravka_spisok_razdelov_3_button_click = {
					set_variable = { show_turanibashkir_spravka = 3 }	# turanibashkir курсор на 3 раздел
				}
				turanibashkir_spravka_spisok_razdelov_4_button_click = {
					set_variable = { show_turanibashkir_spravka = 4 }	# turanibashkir курсор на 4 раздел
				}
				turanibashkir_spravka_spisok_razdelov_5_button_click = {
					set_variable = { show_turanibashkir_spravka = 5 }	# turanibashkir курсор на 5 раздел
				}
				turanibashkir_spravka_spisok_razdelov_6_button_click = {
					set_variable = { show_turanibashkir_spravka = 6 }	# turanibashkir курсор на 6 раздел
				}
				turanibashkir_spravka_spisok_razdelov_7_button_click = {
					set_variable = { show_turanibashkir_spravka = 7 }	# turanibashkir курсор на 7 раздел
				}
				turanibashkir_spravka_spisok_razdelov_8_button_click = {
					set_variable = { show_turanibashkir_spravka = 8 }	# turanibashkir курсор на 8 раздел
				}
				turanibashkir_spravka_spisok_razdelov_9_button_click = {
					set_variable = { show_turanibashkir_spravka = 9 }	# turanibashkir курсор на 9 раздел
				}
				turanibashkir_spravka_spisok_razdelov_10_button_click = {
					set_variable = { show_turanibashkir_spravka = 10 }	# turanibashkir курсор на 10 раздел
				}
				turanibashkir_spravka_spisok_razdelov_11_button_click = {
					set_variable = { show_turanibashkir_spravka = 11 }	# turanibashkir курсор на 11 раздел
				}
				turanibashkir_spravka_spisok_razdelov_12_button_click = {
					set_variable = { show_turanibashkir_spravka = 12 }	# turanibashkir курсор на 12 раздел
				}
				turanibashkir_spravka_spisok_razdelov_13_button_click = {
					set_variable = { show_turanibashkir_spravka = 13 }	# turanibashkir курсор на 13 раздел
				}
				turanibashkir_spravka_spisok_razdelov_14_button_click = {
					set_variable = { show_turanibashkir_spravka = 14 }	# turanibashkir курсор на 14 раздел
				}				
			}
		}
		turanibashkirytwo_istoria_window = {
			context_type = player_context		
			window_name = "turanibashkirytwo_istoria_window"		
			visible = {					
				check_variable = { show_turanibashkirytwo > 0 }				
			}
			effects = {
				turanibashkirytwo_istoria_close_button_click = {
					set_variable = { show_turanibashkirytwo = 0 }
				}				
			}
		}
		britannia_istoria_window = {
			context_type = player_context		
			window_name = "britannia_istoria_window"		
			visible = {					
				check_variable = { show_britannia > 0 }				
			}
			effects = {
				britannia_istoria_close_button_click = {
					set_variable = { show_britannia = 0 }
				}				
			}
		}



}