scripted_gui = {

	nat_ideas_main = {
		context_type = player_context
		
		window_name = "nat_ideas_main_window_container"
		
		visible = {
            has_country_flag = natideas_opened
		}
		
		effects = {
			nat_ideas_main_close_click = {
				clr_country_flag = natideas_opened
			}
			##### ECONOMIC ####
			nat_ideas_economic_1_available_click = {
				set_country_flag = natideas_economic_1_completed
				add_ideas = nateconomic_1
				add_political_power = -100
			}
			nat_ideas_economic_2_available_click = {
				set_country_flag = natideas_economic_2_completed
				swap_ideas = {
					remove_idea = nateconomic_1
					add_idea = nateconomic_2
				}
				add_political_power = -100
			}
			nat_ideas_economic_3_available_click = {
				set_country_flag = natideas_economic_3_completed
				swap_ideas = {
					remove_idea = nateconomic_2
					add_idea = nateconomic_3
				}
				add_political_power = -100
			}
			nat_ideas_economic_4_available_click = {
				set_country_flag = natideas_economic_4_completed
				swap_ideas = {
					remove_idea = nateconomic_3
					add_idea = nateconomic_4
				}
				add_political_power = -100
			}
			nat_ideas_economic_5_available_click = {
				set_country_flag = natideas_economic_5_completed
				swap_ideas = {
					remove_idea = nateconomic_4
					add_idea = nateconomic_5
				}
				add_political_power = -100
			}
			nat_ideas_economic_6_available_click = {
				set_country_flag = natideas_economic_6_completed
				swap_ideas = {
					remove_idea = nateconomic_5
					add_idea = nateconomic_6
				}
				add_political_power = -100
			}
			nat_ideas_economic_7_available_click = {
				set_country_flag = natideas_economic_7_completed
				swap_ideas = {
					remove_idea = nateconomic_6
					add_idea = nateconomic_7
				}
				add_political_power = -100
			}
			nat_ideas_economic_8_available_click = {
				set_country_flag = natideas_economic_8_completed
				swap_ideas = {
					remove_idea = nateconomic_7
					add_idea = nateconomic_8
				}
				add_political_power = -100
				
			}
			nat_ideas_economic_9_available_click = {
				set_country_flag = natideas_economic_9_completed
				swap_ideas = {
					remove_idea = nateconomic_8
					add_idea = nateconomic_9
				}
				add_political_power = -100
				
			}
			nat_ideas_economic_10_available_click = {
				set_country_flag = natideas_economic_10_completed
				swap_ideas = {
					remove_idea = nateconomic_9
					add_idea = nateconomic_10
				}
				add_political_power = -100
				modify_building_resources = {
					building = synthetic_refinery
					resource = rubber
					amount = 1
				}
			}
			################
			
			###### EXPANSION ######
			nat_ideas_expansion_1_available_click = {
				set_country_flag = natideas_expansion_1_completed
				add_ideas = natexpansion_1
				add_political_power = -100
			}
			nat_ideas_expansion_2_available_click = {
				set_country_flag = natideas_expansion_2_completed
				swap_ideas = {
					remove_idea = natexpansion_1
					add_idea = natexpansion_2
				}
				add_political_power = -100
			}
			nat_ideas_expansion_3_available_click = {
				set_country_flag = natideas_expansion_3_completed
				swap_ideas = {
					remove_idea = natexpansion_2
					add_idea = natexpansion_3
				}
				add_political_power = -100
			}
			nat_ideas_expansion_4_available_click = {
				set_country_flag = natideas_expansion_4_completed
				swap_ideas = {
					remove_idea = natexpansion_3
					add_idea = natexpansion_4
				}
				add_political_power = -100
			}
			nat_ideas_expansion_5_available_click = {
				set_country_flag = natideas_expansion_5_completed
				swap_ideas = {
					remove_idea = natexpansion_4
					add_idea = natexpansion_5
				}
				add_political_power = -100
			}
			nat_ideas_expansion_6_available_click = {
				set_country_flag = natideas_expansion_6_completed
				swap_ideas = {
					remove_idea = natexpansion_5
					add_idea = natexpansion_6
				}
				add_political_power = -100
			}
			nat_ideas_expansion_7_available_click = {
				set_country_flag = natideas_expansion_7_completed
				swap_ideas = {
					remove_idea = natexpansion_6
					add_idea = natexpansion_7
				}
				add_political_power = -100
			}
			nat_ideas_expansion_8_available_click = {
				set_country_flag = natideas_expansion_8_completed
				swap_ideas = {
					remove_idea = natexpansion_7
					add_idea = natexpansion_8
				}
				add_political_power = -100
			}
			nat_ideas_expansion_9_available_click = {
				set_country_flag = natideas_expansion_9_completed
				swap_ideas = {
					remove_idea = natexpansion_8
					add_idea = natexpansion_9
				}
				add_political_power = -100
			}
			nat_ideas_expansion_10_available_click = {
				set_country_flag = natideas_expansion_10_completed
				swap_ideas = {
					remove_idea = natexpansion_9
					add_idea = natexpansion_10
				}
				add_political_power = -100
			}
			###########
			
			###### innovation ######
			nat_ideas_innovation_1_available_click = {
				set_country_flag = natideas_innovation_1_completed
				add_ideas = natinnovation_1
				add_political_power = -100
			}
			nat_ideas_innovation_2_available_click = {
				set_country_flag = natideas_innovation_2_completed
				swap_ideas = {
					remove_idea = natinnovation_1
					add_idea = natinnovation_2
				}
				add_political_power = -100
			}
			nat_ideas_innovation_3_available_click = {
				set_country_flag = natideas_innovation_3_completed
				swap_ideas = {
					remove_idea = natinnovation_2
					add_idea = natinnovation_3
				}
				add_political_power = -100
			}
			nat_ideas_innovation_4_available_click = {
				set_country_flag = natideas_innovation_4_completed
				swap_ideas = {
					remove_idea = natinnovation_3
					add_idea = natinnovation_4
				}
				add_political_power = -100
			}
			nat_ideas_innovation_5_available_click = {
				set_country_flag = natideas_innovation_5_completed
				swap_ideas = {
					remove_idea = natinnovation_4
					add_idea = natinnovation_5
				}
				add_political_power = -100
			}
			nat_ideas_innovation_6_available_click = {
				set_country_flag = natideas_innovation_6_completed
				swap_ideas = {
					remove_idea = natinnovation_5
					add_idea = natinnovation_6
				}
				add_political_power = -100
			}
			nat_ideas_innovation_7_available_click = {
				set_country_flag = natideas_innovation_7_completed
				swap_ideas = {
					remove_idea = natinnovation_6
					add_idea = natinnovation_7
				}
				add_political_power = -100
			}
			nat_ideas_innovation_8_available_click = {
				set_country_flag = natideas_innovation_8_completed
				swap_ideas = {
					remove_idea = natinnovation_7
					add_idea = natinnovation_8
				}
				add_political_power = -100
			}
			nat_ideas_innovation_9_available_click = {
				set_country_flag = natideas_innovation_9_completed
				swap_ideas = {
					remove_idea = natinnovation_8
					add_idea = natinnovation_9
				}
				add_political_power = -100
			}
			nat_ideas_innovation_10_available_click = {
				set_country_flag = natideas_innovation_10_completed
				swap_ideas = {
					remove_idea = natinnovation_9
					add_idea = natinnovation_10
				}
				add_political_power = -100
				add_research_slot = 1

			}
			###########
			
			###### diplomatic ######
			nat_ideas_diplomatic_1_available_click = {
				set_country_flag = natideas_diplomatic_1_completed
				add_ideas = natdiplomatic_1
				add_political_power = -100
			}
			nat_ideas_diplomatic_2_available_click = {
				set_country_flag = natideas_diplomatic_2_completed
				swap_ideas = {
					remove_idea = natdiplomatic_1
					add_idea = natdiplomatic_2
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_3_available_click = {
				set_country_flag = natideas_diplomatic_3_completed
				swap_ideas = {
					remove_idea = natdiplomatic_2
					add_idea = natdiplomatic_3
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_4_available_click = {
				set_country_flag = natideas_diplomatic_4_completed
				swap_ideas = {
					remove_idea = natdiplomatic_3
					add_idea = natdiplomatic_4
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_5_available_click = {
				set_country_flag = natideas_diplomatic_5_completed
				swap_ideas = {
					remove_idea = natdiplomatic_4
					add_idea = natdiplomatic_5
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_6_available_click = {
				set_country_flag = natideas_diplomatic_6_completed
				swap_ideas = {
					remove_idea = natdiplomatic_5
					add_idea = natdiplomatic_6
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_7_available_click = {
				set_country_flag = natideas_diplomatic_7_completed
				swap_ideas = {
					remove_idea = natdiplomatic_6
					add_idea = natdiplomatic_7
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_8_available_click = {
				set_country_flag = natideas_diplomatic_8_completed
				swap_ideas = {
					remove_idea = natdiplomatic_7
					add_idea = natdiplomatic_8
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_9_available_click = {
				set_country_flag = natideas_diplomatic_9_completed
				swap_ideas = {
					remove_idea = natdiplomatic_8
					add_idea = natdiplomatic_9
				}
				add_political_power = -100
			}
			nat_ideas_diplomatic_10_available_click = {
				set_country_flag = natideas_diplomatic_10_completed
				swap_ideas = {
					remove_idea = natdiplomatic_9
					add_idea = natdiplomatic_10
				}
				add_political_power = -100

			}
			###########
			###### quality ######
			nat_ideas_quality_1_available_click = {
				set_country_flag = natideas_quality_1_completed
				add_ideas = natquality_1
				add_political_power = -100
			}
			nat_ideas_quality_2_available_click = {
				set_country_flag = natideas_quality_2_completed
				swap_ideas = {
					remove_idea = natquality_1
					add_idea = natquality_2
				}
				add_political_power = -100
			}
			nat_ideas_quality_3_available_click = {
				set_country_flag = natideas_quality_3_completed
				swap_ideas = {
					remove_idea = natquality_2
					add_idea = natquality_3
				}
				add_political_power = -100
			}
			nat_ideas_quality_4_available_click = {
				set_country_flag = natideas_quality_4_completed
				swap_ideas = {
					remove_idea = natquality_3
					add_idea = natquality_4
				}
				add_political_power = -100
			}
			nat_ideas_quality_5_available_click = {
				set_country_flag = natideas_quality_5_completed
				swap_ideas = {
					remove_idea = natquality_4
					add_idea = natquality_5
				}
				add_political_power = -100
			}
			nat_ideas_quality_6_available_click = {
				set_country_flag = natideas_quality_6_completed
				swap_ideas = {
					remove_idea = natquality_5
					add_idea = natquality_6
				}
				add_political_power = -100
			}
			nat_ideas_quality_7_available_click = {
				set_country_flag = natideas_quality_7_completed
				swap_ideas = {
					remove_idea = natquality_6
					add_idea = natquality_7
				}
				add_political_power = -100
			}
			nat_ideas_quality_8_available_click = {
				set_country_flag = natideas_quality_8_completed
				swap_ideas = {
					remove_idea = natquality_7
					add_idea = natquality_8
				}
				add_political_power = -100
			}
			nat_ideas_quality_9_available_click = {
				set_country_flag = natideas_quality_9_completed
				swap_ideas = {
					remove_idea = natquality_8
					add_idea = natquality_9
				}
				add_political_power = -100
			}
			nat_ideas_quality_10_available_click = {
				set_country_flag = natideas_quality_10_completed
				swap_ideas = {
					remove_idea = natquality_9
					add_idea = natquality_10
				}
				add_political_power = -100
			}
			###########
			###### quantity ######
			nat_ideas_quantity_1_available_click = {
				set_country_flag = natideas_quantity_1_completed
				add_ideas = natquantity_1
				add_political_power = -100
			}
			nat_ideas_quantity_2_available_click = {
				set_country_flag = natideas_quantity_2_completed
				swap_ideas = {
					remove_idea = natquantity_1
					add_idea = natquantity_2
				}
				add_political_power = -100
			}
			nat_ideas_quantity_3_available_click = {
				set_country_flag = natideas_quantity_3_completed
				swap_ideas = {
					remove_idea = natquantity_2
					add_idea = natquantity_3
				}
				add_political_power = -100
			}
			nat_ideas_quantity_4_available_click = {
				set_country_flag = natideas_quantity_4_completed
				swap_ideas = {
					remove_idea = natquantity_3
					add_idea = natquantity_4
				}
				add_political_power = -100
			}
			nat_ideas_quantity_5_available_click = {
				set_country_flag = natideas_quantity_5_completed
				swap_ideas = {
					remove_idea = natquantity_4
					add_idea = natquantity_5
				}
				add_political_power = -100
			}
			nat_ideas_quantity_6_available_click = {
				set_country_flag = natideas_quantity_6_completed
				swap_ideas = {
					remove_idea = natquantity_5
					add_idea = natquantity_6
				}
				add_political_power = -100
			}
			nat_ideas_quantity_7_available_click = {
				set_country_flag = natideas_quantity_7_completed
				swap_ideas = {
					remove_idea = natquantity_6
					add_idea = natquantity_7
				}
				add_political_power = -100
			}
			nat_ideas_quantity_8_available_click = {
				set_country_flag = natideas_quantity_8_completed
				swap_ideas = {
					remove_idea = natquantity_7
					add_idea = natquantity_8
				}
				add_political_power = -100
			}
			nat_ideas_quantity_9_available_click = {
				set_country_flag = natideas_quantity_9_completed
				swap_ideas = {
					remove_idea = natquantity_8
					add_idea = natquantity_9
				}
				add_political_power = -100
			}
			nat_ideas_quantity_10_available_click = {
				set_country_flag = natideas_quantity_10_completed
				swap_ideas = {
					remove_idea = natquantity_9
					add_idea = natquantity_10
				}
				add_political_power = -100
			}
		}
		
		triggers = {
			### ECONOMIC ###
			economic_bg_1_visible = {
				has_country_flag = natideas_economic_1_completed
				NOT = {
					has_country_flag = natideas_economic_2_completed
					has_country_flag = natideas_economic_3_completed
					has_country_flag = natideas_economic_4_completed
					has_country_flag = natideas_economic_5_completed
					has_country_flag = natideas_economic_6_completed
					has_country_flag = natideas_economic_7_completed
					has_country_flag = natideas_economic_8_completed
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_2_visible = {
				has_country_flag = natideas_economic_2_completed
				NOT = {
					has_country_flag = natideas_economic_3_completed
					has_country_flag = natideas_economic_4_completed
					has_country_flag = natideas_economic_5_completed
					has_country_flag = natideas_economic_6_completed
					has_country_flag = natideas_economic_7_completed
					has_country_flag = natideas_economic_8_completed
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_3_visible = {
				has_country_flag = natideas_economic_3_completed
				NOT = {
					has_country_flag = natideas_economic_4_completed
					has_country_flag = natideas_economic_5_completed
					has_country_flag = natideas_economic_6_completed
					has_country_flag = natideas_economic_7_completed
					has_country_flag = natideas_economic_8_completed
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_4_visible = {
				has_country_flag = natideas_economic_4_completed
				NOT = {
					has_country_flag = natideas_economic_5_completed
					has_country_flag = natideas_economic_6_completed
					has_country_flag = natideas_economic_7_completed
					has_country_flag = natideas_economic_8_completed
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_5_visible = {
				has_country_flag = natideas_economic_5_completed
				NOT = {
					has_country_flag = natideas_economic_6_completed
					has_country_flag = natideas_economic_7_completed
					has_country_flag = natideas_economic_8_completed
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_6_visible = {
				has_country_flag = natideas_economic_6_completed
				NOT = {
					has_country_flag = natideas_economic_7_completed
					has_country_flag = natideas_economic_8_completed
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_7_visible = {
				has_country_flag = natideas_economic_7_completed
				NOT = {
					has_country_flag = natideas_economic_8_completed
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_8_visible = {
				has_country_flag = natideas_economic_8_completed
				NOT = {
					has_country_flag = natideas_economic_9_completed
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_9_visible = {
				has_country_flag = natideas_economic_9_completed
				NOT = {
					has_country_flag = natideas_economic_10_completed
				}
			}
			economic_bg_10_visible = {
				has_country_flag = natideas_economic_10_completed
			}
			########
			######## EXPANSION ########
			expansion_bg_1_visible = {
				has_country_flag = natideas_expansion_1_completed
				NOT = {
					has_country_flag = natideas_expansion_2_completed
					has_country_flag = natideas_expansion_3_completed
					has_country_flag = natideas_expansion_4_completed
					has_country_flag = natideas_expansion_5_completed
					has_country_flag = natideas_expansion_6_completed
					has_country_flag = natideas_expansion_7_completed
					has_country_flag = natideas_expansion_8_completed
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_2_visible = {
				has_country_flag = natideas_expansion_2_completed
				NOT = {
					has_country_flag = natideas_expansion_3_completed
					has_country_flag = natideas_expansion_4_completed
					has_country_flag = natideas_expansion_5_completed
					has_country_flag = natideas_expansion_6_completed
					has_country_flag = natideas_expansion_7_completed
					has_country_flag = natideas_expansion_8_completed
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_3_visible = {
				has_country_flag = natideas_expansion_3_completed
				NOT = {
					has_country_flag = natideas_expansion_4_completed
					has_country_flag = natideas_expansion_5_completed
					has_country_flag = natideas_expansion_6_completed
					has_country_flag = natideas_expansion_7_completed
					has_country_flag = natideas_expansion_8_completed
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_4_visible = {
				has_country_flag = natideas_expansion_4_completed
				NOT = {
					has_country_flag = natideas_expansion_5_completed
					has_country_flag = natideas_expansion_6_completed
					has_country_flag = natideas_expansion_7_completed
					has_country_flag = natideas_expansion_8_completed
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_5_visible = {
				has_country_flag = natideas_expansion_5_completed
				NOT = {
					has_country_flag = natideas_expansion_6_completed
					has_country_flag = natideas_expansion_7_completed
					has_country_flag = natideas_expansion_8_completed
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_6_visible = {
				has_country_flag = natideas_expansion_6_completed
				NOT = {
					has_country_flag = natideas_expansion_7_completed
					has_country_flag = natideas_expansion_8_completed
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_7_visible = {
				has_country_flag = natideas_expansion_7_completed
				NOT = {
					has_country_flag = natideas_expansion_8_completed
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_8_visible = {
				has_country_flag = natideas_expansion_8_completed
				NOT = {
					has_country_flag = natideas_expansion_9_completed
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_9_visible = {
				has_country_flag = natideas_expansion_9_completed
				NOT = {
					has_country_flag = natideas_expansion_10_completed
				}
			}
			expansion_bg_10_visible = {
				has_country_flag = natideas_expansion_10_completed
			}
			#######
			######## innovation ########
			innovation_bg_1_visible = {
				has_country_flag = natideas_innovation_1_completed
				NOT = {
					has_country_flag = natideas_innovation_2_completed
					has_country_flag = natideas_innovation_3_completed
					has_country_flag = natideas_innovation_4_completed
					has_country_flag = natideas_innovation_5_completed
					has_country_flag = natideas_innovation_6_completed
					has_country_flag = natideas_innovation_7_completed
					has_country_flag = natideas_innovation_8_completed
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_2_visible = {
				has_country_flag = natideas_innovation_2_completed
				NOT = {
					has_country_flag = natideas_innovation_3_completed
					has_country_flag = natideas_innovation_4_completed
					has_country_flag = natideas_innovation_5_completed
					has_country_flag = natideas_innovation_6_completed
					has_country_flag = natideas_innovation_7_completed
					has_country_flag = natideas_innovation_8_completed
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_3_visible = {
				has_country_flag = natideas_innovation_3_completed
				NOT = {
					has_country_flag = natideas_innovation_4_completed
					has_country_flag = natideas_innovation_5_completed
					has_country_flag = natideas_innovation_6_completed
					has_country_flag = natideas_innovation_7_completed
					has_country_flag = natideas_innovation_8_completed
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_4_visible = {
				has_country_flag = natideas_innovation_4_completed
				NOT = {
					has_country_flag = natideas_innovation_5_completed
					has_country_flag = natideas_innovation_6_completed
					has_country_flag = natideas_innovation_7_completed
					has_country_flag = natideas_innovation_8_completed
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_5_visible = {
				has_country_flag = natideas_innovation_5_completed
				NOT = {
					has_country_flag = natideas_innovation_6_completed
					has_country_flag = natideas_innovation_7_completed
					has_country_flag = natideas_innovation_8_completed
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_6_visible = {
				has_country_flag = natideas_innovation_6_completed
				NOT = {
					has_country_flag = natideas_innovation_7_completed
					has_country_flag = natideas_innovation_8_completed
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_7_visible = {
				has_country_flag = natideas_innovation_7_completed
				NOT = {
					has_country_flag = natideas_innovation_8_completed
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_8_visible = {
				has_country_flag = natideas_innovation_8_completed
				NOT = {
					has_country_flag = natideas_innovation_9_completed
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_9_visible = {
				has_country_flag = natideas_innovation_9_completed
				NOT = {
					has_country_flag = natideas_innovation_10_completed
				}
			}
			innovation_bg_10_visible = {
				has_country_flag = natideas_innovation_10_completed
			}
			#######
			######## diplomatic ########
			diplomatic_bg_1_visible = {
				has_country_flag = natideas_diplomatic_1_completed
				NOT = {
					has_country_flag = natideas_diplomatic_2_completed
					has_country_flag = natideas_diplomatic_3_completed
					has_country_flag = natideas_diplomatic_4_completed
					has_country_flag = natideas_diplomatic_5_completed
					has_country_flag = natideas_diplomatic_6_completed
					has_country_flag = natideas_diplomatic_7_completed
					has_country_flag = natideas_diplomatic_8_completed
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_2_visible = {
				has_country_flag = natideas_diplomatic_2_completed
				NOT = {
					has_country_flag = natideas_diplomatic_3_completed
					has_country_flag = natideas_diplomatic_4_completed
					has_country_flag = natideas_diplomatic_5_completed
					has_country_flag = natideas_diplomatic_6_completed
					has_country_flag = natideas_diplomatic_7_completed
					has_country_flag = natideas_diplomatic_8_completed
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_3_visible = {
				has_country_flag = natideas_diplomatic_3_completed
				NOT = {
					has_country_flag = natideas_diplomatic_4_completed
					has_country_flag = natideas_diplomatic_5_completed
					has_country_flag = natideas_diplomatic_6_completed
					has_country_flag = natideas_diplomatic_7_completed
					has_country_flag = natideas_diplomatic_8_completed
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_4_visible = {
				has_country_flag = natideas_diplomatic_4_completed
				NOT = {
					has_country_flag = natideas_diplomatic_5_completed
					has_country_flag = natideas_diplomatic_6_completed
					has_country_flag = natideas_diplomatic_7_completed
					has_country_flag = natideas_diplomatic_8_completed
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_5_visible = {
				has_country_flag = natideas_diplomatic_5_completed
				NOT = {
					has_country_flag = natideas_diplomatic_6_completed
					has_country_flag = natideas_diplomatic_7_completed
					has_country_flag = natideas_diplomatic_8_completed
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_6_visible = {
				has_country_flag = natideas_diplomatic_6_completed
				NOT = {
					has_country_flag = natideas_diplomatic_7_completed
					has_country_flag = natideas_diplomatic_8_completed
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_7_visible = {
				has_country_flag = natideas_diplomatic_7_completed
				NOT = {
					has_country_flag = natideas_diplomatic_8_completed
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_8_visible = {
				has_country_flag = natideas_diplomatic_8_completed
				NOT = {
					has_country_flag = natideas_diplomatic_9_completed
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_9_visible = {
				has_country_flag = natideas_diplomatic_9_completed
				NOT = {
					has_country_flag = natideas_diplomatic_10_completed
				}
			}
			diplomatic_bg_10_visible = {
				has_country_flag = natideas_diplomatic_10_completed
			}
			#######
			######## quality ########
			quality_bg_1_visible = {
				has_country_flag = natideas_quality_1_completed
				NOT = {
					has_country_flag = natideas_quality_2_completed
					has_country_flag = natideas_quality_3_completed
					has_country_flag = natideas_quality_4_completed
					has_country_flag = natideas_quality_5_completed
					has_country_flag = natideas_quality_6_completed
					has_country_flag = natideas_quality_7_completed
					has_country_flag = natideas_quality_8_completed
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_2_visible = {
				has_country_flag = natideas_quality_2_completed
				NOT = {
					has_country_flag = natideas_quality_3_completed
					has_country_flag = natideas_quality_4_completed
					has_country_flag = natideas_quality_5_completed
					has_country_flag = natideas_quality_6_completed
					has_country_flag = natideas_quality_7_completed
					has_country_flag = natideas_quality_8_completed
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_3_visible = {
				has_country_flag = natideas_quality_3_completed
				NOT = {
					has_country_flag = natideas_quality_4_completed
					has_country_flag = natideas_quality_5_completed
					has_country_flag = natideas_quality_6_completed
					has_country_flag = natideas_quality_7_completed
					has_country_flag = natideas_quality_8_completed
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_4_visible = {
				has_country_flag = natideas_quality_4_completed
				NOT = {
					has_country_flag = natideas_quality_5_completed
					has_country_flag = natideas_quality_6_completed
					has_country_flag = natideas_quality_7_completed
					has_country_flag = natideas_quality_8_completed
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_5_visible = {
				has_country_flag = natideas_quality_5_completed
				NOT = {
					has_country_flag = natideas_quality_6_completed
					has_country_flag = natideas_quality_7_completed
					has_country_flag = natideas_quality_8_completed
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_6_visible = {
				has_country_flag = natideas_quality_6_completed
				NOT = {
					has_country_flag = natideas_quality_7_completed
					has_country_flag = natideas_quality_8_completed
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_7_visible = {
				has_country_flag = natideas_quality_7_completed
				NOT = {
					has_country_flag = natideas_quality_8_completed
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_8_visible = {
				has_country_flag = natideas_quality_8_completed
				NOT = {
					has_country_flag = natideas_quality_9_completed
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_9_visible = {
				has_country_flag = natideas_quality_9_completed
				NOT = {
					has_country_flag = natideas_quality_10_completed
				}
			}
			quality_bg_10_visible = {
				has_country_flag = natideas_quality_10_completed
			}
			#######
			######## quantity ########
			quantity_bg_1_visible = {
				has_country_flag = natideas_quantity_1_completed
				NOT = {
					has_country_flag = natideas_quantity_2_completed
					has_country_flag = natideas_quantity_3_completed
					has_country_flag = natideas_quantity_4_completed
					has_country_flag = natideas_quantity_5_completed
					has_country_flag = natideas_quantity_6_completed
					has_country_flag = natideas_quantity_7_completed
					has_country_flag = natideas_quantity_8_completed
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_2_visible = {
				has_country_flag = natideas_quantity_2_completed
				NOT = {
					has_country_flag = natideas_quantity_3_completed
					has_country_flag = natideas_quantity_4_completed
					has_country_flag = natideas_quantity_5_completed
					has_country_flag = natideas_quantity_6_completed
					has_country_flag = natideas_quantity_7_completed
					has_country_flag = natideas_quantity_8_completed
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_3_visible = {
				has_country_flag = natideas_quantity_3_completed
				NOT = {
					has_country_flag = natideas_quantity_4_completed
					has_country_flag = natideas_quantity_5_completed
					has_country_flag = natideas_quantity_6_completed
					has_country_flag = natideas_quantity_7_completed
					has_country_flag = natideas_quantity_8_completed
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_4_visible = {
				has_country_flag = natideas_quantity_4_completed
				NOT = {
					has_country_flag = natideas_quantity_5_completed
					has_country_flag = natideas_quantity_6_completed
					has_country_flag = natideas_quantity_7_completed
					has_country_flag = natideas_quantity_8_completed
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_5_visible = {
				has_country_flag = natideas_quantity_5_completed
				NOT = {
					has_country_flag = natideas_quantity_6_completed
					has_country_flag = natideas_quantity_7_completed
					has_country_flag = natideas_quantity_8_completed
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_6_visible = {
				has_country_flag = natideas_quantity_6_completed
				NOT = {
					has_country_flag = natideas_quantity_7_completed
					has_country_flag = natideas_quantity_8_completed
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_7_visible = {
				has_country_flag = natideas_quantity_7_completed
				NOT = {
					has_country_flag = natideas_quantity_8_completed
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_8_visible = {
				has_country_flag = natideas_quantity_8_completed
				NOT = {
					has_country_flag = natideas_quantity_9_completed
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_9_visible = {
				has_country_flag = natideas_quantity_9_completed
				NOT = {
					has_country_flag = natideas_quantity_10_completed
				}
			}
			quantity_bg_10_visible = {
				has_country_flag = natideas_quantity_10_completed
			}
			#######
				###ECONOMIC 1###
					nat_ideas_economic_1_unavailable_visible = {
						NOT = {
							has_country_flag = natideas_economic_1_completed
						}
						has_political_power < 100
					}
					nat_ideas_economic_1_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_1_completed
						}
						has_political_power > 99
					}
					nat_ideas_economic_1_completed_visible = {
						has_country_flag = natideas_economic_1_completed
					}
				###ECONOMIC 2###
					nat_ideas_economic_2_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_2_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_2_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_2_completed
						}
						has_country_flag = natideas_economic_1_completed
						has_political_power > 99
					}
					nat_ideas_economic_2_completed_visible = {
						has_country_flag = natideas_economic_2_completed
					}
				###ECONOMIC 3###
					nat_ideas_economic_3_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_3_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_3_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_3_completed
						}
						has_country_flag = natideas_economic_2_completed
						has_political_power > 99
					}
					nat_ideas_economic_3_completed_visible = {
						has_country_flag = natideas_economic_3_completed
					}
				###ECONOMIC 4###
					nat_ideas_economic_4_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_4_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_4_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_4_completed
						}
						has_country_flag = natideas_economic_3_completed
						has_political_power > 99
					}
					nat_ideas_economic_4_completed_visible = {
						has_country_flag = natideas_economic_4_completed
					}
				###ECONOMIC 5###
					nat_ideas_economic_5_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_5_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_5_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_5_completed
						}
						has_country_flag = natideas_economic_4_completed
						has_political_power > 99
					}
					nat_ideas_economic_5_completed_visible = {
						has_country_flag = natideas_economic_5_completed
					}
				###ECONOMIC 6###
					nat_ideas_economic_6_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_6_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_6_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_6_completed
						}
						has_country_flag = natideas_economic_5_completed
						has_political_power > 99
					}
					nat_ideas_economic_6_completed_visible = {
						has_country_flag = natideas_economic_6_completed
					}
				###ECONOMIC 7###
					nat_ideas_economic_7_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_7_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_7_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_7_completed
						}
						has_country_flag = natideas_economic_6_completed
						has_political_power > 99
					}
					nat_ideas_economic_7_completed_visible = {
						has_country_flag = natideas_economic_7_completed
					}
				###ECONOMIC 8###
					nat_ideas_economic_8_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_8_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_8_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_8_completed
						}
						has_country_flag = natideas_economic_7_completed
						has_political_power > 99
					}
					nat_ideas_economic_8_completed_visible = {
						has_country_flag = natideas_economic_8_completed
					}
				###ECONOMIC 9###
					nat_ideas_economic_9_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_9_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_9_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_9_completed
						}
						has_country_flag = natideas_economic_8_completed
						has_political_power > 99
					}
					nat_ideas_economic_9_completed_visible = {
						has_country_flag = natideas_economic_9_completed
					}
				###ECONOMIC 10###
					nat_ideas_economic_10_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_economic_10_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_economic_10_available_visible = {
						NOT = {
							has_country_flag = natideas_economic_10_completed
						}
						has_country_flag = natideas_economic_9_completed
						has_political_power > 99
					}
					nat_ideas_economic_10_completed_visible = {
						has_country_flag = natideas_economic_10_completed
					}
				##########################
				###expansion 1###
					nat_ideas_expansion_1_unavailable_visible = {
						NOT = {
							has_country_flag = natideas_expansion_1_completed
						}
						has_political_power < 100
					}
					nat_ideas_expansion_1_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_1_completed
						}
						has_political_power > 99
					}
					nat_ideas_expansion_1_completed_visible = {
						has_country_flag = natideas_expansion_1_completed
					}
				###expansion 2###
					nat_ideas_expansion_2_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_2_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_2_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_2_completed
						}
						has_country_flag = natideas_expansion_1_completed
						has_political_power > 99
					}
					nat_ideas_expansion_2_completed_visible = {
						has_country_flag = natideas_expansion_2_completed
					}
				###expansion 3###
					nat_ideas_expansion_3_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_3_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_3_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_3_completed
						}
						has_country_flag = natideas_expansion_2_completed
						has_political_power > 99
					}
					nat_ideas_expansion_3_completed_visible = {
						has_country_flag = natideas_expansion_3_completed
					}
				###expansion 4###
					nat_ideas_expansion_4_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_4_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_4_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_4_completed
						}
						has_country_flag = natideas_expansion_3_completed
						has_political_power > 99
					}
					nat_ideas_expansion_4_completed_visible = {
						has_country_flag = natideas_expansion_4_completed
					}
				###expansion 5###
					nat_ideas_expansion_5_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_5_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_5_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_5_completed
						}
						has_country_flag = natideas_expansion_4_completed
						has_political_power > 99
					}
					nat_ideas_expansion_5_completed_visible = {
						has_country_flag = natideas_expansion_5_completed
					}
				###expansion 6###
					nat_ideas_expansion_6_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_6_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_6_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_6_completed
						}
						has_country_flag = natideas_expansion_5_completed
						has_political_power > 99
					}
					nat_ideas_expansion_6_completed_visible = {
						has_country_flag = natideas_expansion_6_completed
					}
				###expansion 7###
					nat_ideas_expansion_7_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_7_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_7_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_7_completed
						}
						has_country_flag = natideas_expansion_6_completed
						has_political_power > 99
					}
					nat_ideas_expansion_7_completed_visible = {
						has_country_flag = natideas_expansion_7_completed
					}
				###expansion 8###
					nat_ideas_expansion_8_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_8_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_8_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_8_completed
						}
						has_country_flag = natideas_expansion_7_completed
						has_political_power > 99
					}
					nat_ideas_expansion_8_completed_visible = {
						has_country_flag = natideas_expansion_8_completed
					}
				###expansion 9###
					nat_ideas_expansion_9_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_9_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_9_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_9_completed
						}
						has_country_flag = natideas_expansion_8_completed
						has_political_power > 99
					}
					nat_ideas_expansion_9_completed_visible = {
						has_country_flag = natideas_expansion_9_completed
					}
				###expansion 10###
					nat_ideas_expansion_10_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_expansion_10_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_expansion_10_available_visible = {
						NOT = {
							has_country_flag = natideas_expansion_10_completed
						}
						has_country_flag = natideas_expansion_9_completed
						has_political_power > 99
					}
					nat_ideas_expansion_10_completed_visible = {
						has_country_flag = natideas_expansion_10_completed
					}
				######################
				###innovation 1###
					nat_ideas_innovation_1_unavailable_visible = {
						NOT = {
							has_country_flag = natideas_innovation_1_completed
						}
						has_political_power < 100
					}
					nat_ideas_innovation_1_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_1_completed
						}
						has_political_power > 99
					}
					nat_ideas_innovation_1_completed_visible = {
						has_country_flag = natideas_innovation_1_completed
					}
				###innovation 2###
					nat_ideas_innovation_2_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_2_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_2_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_2_completed
						}
						has_country_flag = natideas_innovation_1_completed
						has_political_power > 99
					}
					nat_ideas_innovation_2_completed_visible = {
						has_country_flag = natideas_innovation_2_completed
					}
				###innovation 3###
					nat_ideas_innovation_3_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_3_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_3_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_3_completed
						}
						has_country_flag = natideas_innovation_2_completed
						has_political_power > 99
					}
					nat_ideas_innovation_3_completed_visible = {
						has_country_flag = natideas_innovation_3_completed
					}
				###innovation 4###
					nat_ideas_innovation_4_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_4_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_4_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_4_completed
						}
						has_country_flag = natideas_innovation_3_completed
						has_political_power > 99
					}
					nat_ideas_innovation_4_completed_visible = {
						has_country_flag = natideas_innovation_4_completed
					}
				###innovation 5###
					nat_ideas_innovation_5_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_5_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_5_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_5_completed
						}
						has_country_flag = natideas_innovation_4_completed
						has_political_power > 99
					}
					nat_ideas_innovation_5_completed_visible = {
						has_country_flag = natideas_innovation_5_completed
					}
				###innovation 6###
					nat_ideas_innovation_6_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_6_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_6_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_6_completed
						}
						has_country_flag = natideas_innovation_5_completed
						has_political_power > 99
					}
					nat_ideas_innovation_6_completed_visible = {
						has_country_flag = natideas_innovation_6_completed
					}
				###innovation 7###
					nat_ideas_innovation_7_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_7_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_7_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_7_completed
						}
						has_country_flag = natideas_innovation_6_completed
						has_political_power > 99
					}
					nat_ideas_innovation_7_completed_visible = {
						has_country_flag = natideas_innovation_7_completed
					}
				###innovation 8###
					nat_ideas_innovation_8_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_8_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_8_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_8_completed
						}
						has_country_flag = natideas_innovation_7_completed
						has_political_power > 99
					}
					nat_ideas_innovation_8_completed_visible = {
						has_country_flag = natideas_innovation_8_completed
					}
				###innovation 9###
					nat_ideas_innovation_9_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_9_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_9_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_9_completed
						}
						has_country_flag = natideas_innovation_8_completed
						has_political_power > 99
					}
					nat_ideas_innovation_9_completed_visible = {
						has_country_flag = natideas_innovation_9_completed
					}
				###innovation 10###
					nat_ideas_innovation_10_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_innovation_10_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_innovation_10_available_visible = {
						NOT = {
							has_country_flag = natideas_innovation_10_completed
						}
						has_country_flag = natideas_innovation_9_completed
						has_political_power > 99
					}
					nat_ideas_innovation_10_completed_visible = {
						has_country_flag = natideas_innovation_10_completed
					}
				####################
				###diplomatic 1###
					nat_ideas_diplomatic_1_unavailable_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_1_completed
						}
						has_political_power < 100
					}
					nat_ideas_diplomatic_1_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_1_completed
						}
						has_political_power > 99
					}
					nat_ideas_diplomatic_1_completed_visible = {
						has_country_flag = natideas_diplomatic_1_completed
					}
				###diplomatic 2###
					nat_ideas_diplomatic_2_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_2_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_2_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_2_completed
						}
						has_country_flag = natideas_diplomatic_1_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_2_completed_visible = {
						has_country_flag = natideas_diplomatic_2_completed
					}
				###diplomatic 3###
					nat_ideas_diplomatic_3_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_3_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_3_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_3_completed
						}
						has_country_flag = natideas_diplomatic_2_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_3_completed_visible = {
						has_country_flag = natideas_diplomatic_3_completed
					}
				###diplomatic 4###
					nat_ideas_diplomatic_4_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_4_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_4_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_4_completed
						}
						has_country_flag = natideas_diplomatic_3_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_4_completed_visible = {
						has_country_flag = natideas_diplomatic_4_completed
					}
				###diplomatic 5###
					nat_ideas_diplomatic_5_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_5_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_5_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_5_completed
						}
						has_country_flag = natideas_diplomatic_4_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_5_completed_visible = {
						has_country_flag = natideas_diplomatic_5_completed
					}
				###diplomatic 6###
					nat_ideas_diplomatic_6_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_6_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_6_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_6_completed
						}
						has_country_flag = natideas_diplomatic_5_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_6_completed_visible = {
						has_country_flag = natideas_diplomatic_6_completed
					}
				###diplomatic 7###
					nat_ideas_diplomatic_7_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_7_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_7_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_7_completed
						}
						has_country_flag = natideas_diplomatic_6_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_7_completed_visible = {
						has_country_flag = natideas_diplomatic_7_completed
					}
				###diplomatic 8###
					nat_ideas_diplomatic_8_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_8_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_8_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_8_completed
						}
						has_country_flag = natideas_diplomatic_7_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_8_completed_visible = {
						has_country_flag = natideas_diplomatic_8_completed
					}
				###diplomatic 9###
					nat_ideas_diplomatic_9_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_9_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_9_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_9_completed
						}
						has_country_flag = natideas_diplomatic_8_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_9_completed_visible = {
						has_country_flag = natideas_diplomatic_9_completed
					}
				###diplomatic 10###
					nat_ideas_diplomatic_10_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_diplomatic_10_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_diplomatic_10_available_visible = {
						NOT = {
							has_country_flag = natideas_diplomatic_10_completed
						}
						has_country_flag = natideas_diplomatic_9_completed
						has_political_power > 99
					}
					nat_ideas_diplomatic_10_completed_visible = {
						has_country_flag = natideas_diplomatic_10_completed
					}
				##############
				###quality 1###
					nat_ideas_quality_1_unavailable_visible = {
						NOT = {
							has_country_flag = natideas_quality_1_completed
						}
						has_political_power < 100
					}
					nat_ideas_quality_1_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_1_completed
						}
						has_political_power > 99
					}
					nat_ideas_quality_1_completed_visible = {
						has_country_flag = natideas_quality_1_completed
					}
				###quality 2###
					nat_ideas_quality_2_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_2_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_2_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_2_completed
						}
						has_country_flag = natideas_quality_1_completed
						has_political_power > 99
					}
					nat_ideas_quality_2_completed_visible = {
						has_country_flag = natideas_quality_2_completed
					}
				###quality 3###
					nat_ideas_quality_3_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_3_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_3_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_3_completed
						}
						has_country_flag = natideas_quality_2_completed
						has_political_power > 99
					}
					nat_ideas_quality_3_completed_visible = {
						has_country_flag = natideas_quality_3_completed
					}
				###quality 4###
					nat_ideas_quality_4_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_4_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_4_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_4_completed
						}
						has_country_flag = natideas_quality_3_completed
						has_political_power > 99
					}
					nat_ideas_quality_4_completed_visible = {
						has_country_flag = natideas_quality_4_completed
					}
				###quality 5###
					nat_ideas_quality_5_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_5_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_5_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_5_completed
						}
						has_country_flag = natideas_quality_4_completed
						has_political_power > 99
					}
					nat_ideas_quality_5_completed_visible = {
						has_country_flag = natideas_quality_5_completed
					}
				###quality 6###
					nat_ideas_quality_6_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_6_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_6_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_6_completed
						}
						has_country_flag = natideas_quality_5_completed
						has_political_power > 99
					}
					nat_ideas_quality_6_completed_visible = {
						has_country_flag = natideas_quality_6_completed
					}
				###quality 7###
					nat_ideas_quality_7_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_7_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_7_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_7_completed
						}
						has_country_flag = natideas_quality_6_completed
						has_political_power > 99
					}
					nat_ideas_quality_7_completed_visible = {
						has_country_flag = natideas_quality_7_completed
					}
				###quality 8###
					nat_ideas_quality_8_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_8_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_8_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_8_completed
						}
						has_country_flag = natideas_quality_7_completed
						has_political_power > 99
					}
					nat_ideas_quality_8_completed_visible = {
						has_country_flag = natideas_quality_8_completed
					}
				###quality 9###
					nat_ideas_quality_9_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_9_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_9_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_9_completed
						}
						has_country_flag = natideas_quality_8_completed
						has_political_power > 99
					}
					nat_ideas_quality_9_completed_visible = {
						has_country_flag = natideas_quality_9_completed
					}
				###quality 10###
					nat_ideas_quality_10_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quality_10_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quality_10_available_visible = {
						NOT = {
							has_country_flag = natideas_quality_10_completed
						}
						has_country_flag = natideas_quality_9_completed
						has_political_power > 99
					}
					nat_ideas_quality_10_completed_visible = {
						has_country_flag = natideas_quality_10_completed
					}
				################
				###quantity 1###
					nat_ideas_quantity_1_unavailable_visible = {
						NOT = {
							has_country_flag = natideas_quantity_1_completed
						}
						has_political_power < 100
					}
					nat_ideas_quantity_1_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_1_completed
						}
						has_political_power > 99
					}
					nat_ideas_quantity_1_completed_visible = {
						has_country_flag = natideas_quantity_1_completed
					}
				###quantity 2###
					nat_ideas_quantity_2_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_2_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_2_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_2_completed
						}
						has_country_flag = natideas_quantity_1_completed
						has_political_power > 99
					}
					nat_ideas_quantity_2_completed_visible = {
						has_country_flag = natideas_quantity_2_completed
					}
				###quantity 3###
					nat_ideas_quantity_3_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_3_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_3_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_3_completed
						}
						has_country_flag = natideas_quantity_2_completed
						has_political_power > 99
					}
					nat_ideas_quantity_3_completed_visible = {
						has_country_flag = natideas_quantity_3_completed
					}
				###quantity 4###
					nat_ideas_quantity_4_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_4_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_4_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_4_completed
						}
						has_country_flag = natideas_quantity_3_completed
						has_political_power > 99
					}
					nat_ideas_quantity_4_completed_visible = {
						has_country_flag = natideas_quantity_4_completed
					}
				###quantity 5###
					nat_ideas_quantity_5_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_5_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_5_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_5_completed
						}
						has_country_flag = natideas_quantity_4_completed
						has_political_power > 99
					}
					nat_ideas_quantity_5_completed_visible = {
						has_country_flag = natideas_quantity_5_completed
					}
				###quantity 6###
					nat_ideas_quantity_6_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_6_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_6_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_6_completed
						}
						has_country_flag = natideas_quantity_5_completed
						has_political_power > 99
					}
					nat_ideas_quantity_6_completed_visible = {
						has_country_flag = natideas_quantity_6_completed
					}
				###quantity 7###
					nat_ideas_quantity_7_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_7_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_7_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_7_completed
						}
						has_country_flag = natideas_quantity_6_completed
						has_political_power > 99
					}
					nat_ideas_quantity_7_completed_visible = {
						has_country_flag = natideas_quantity_7_completed
					}
				###quantity 8###
					nat_ideas_quantity_8_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_8_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_8_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_8_completed
						}
						has_country_flag = natideas_quantity_7_completed
						has_political_power > 99
					}
					nat_ideas_quantity_8_completed_visible = {
						has_country_flag = natideas_quantity_8_completed
					}
				###quantity 9###
					nat_ideas_quantity_9_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_9_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_9_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_9_completed
						}
						has_country_flag = natideas_quantity_8_completed
						has_political_power > 99
					}
					nat_ideas_quantity_9_completed_visible = {
						has_country_flag = natideas_quantity_9_completed
					}
				###quantity 10###
					nat_ideas_quantity_10_unavailable_visible = {
						OR = {
							NOT = {
								has_country_flag = natideas_quantity_10_completed
							}
							has_political_power < 100
						}
					}
					nat_ideas_quantity_10_available_visible = {
						NOT = {
							has_country_flag = natideas_quantity_10_completed
						}
						has_country_flag = natideas_quantity_9_completed
						has_political_power > 99
					}
					nat_ideas_quantity_10_completed_visible = {
						has_country_flag = natideas_quantity_10_completed
					}
				##########################
		}
		
		ai_test_interval = 100
		ai_test_variance = 0.1
		ai_max_weight_taken_per_test = 2
		
		ai_enabled = {
			always = yes
		}
		ai_check = {
			has_political_power > 99
		}
		
		ai_weights = {
			nat_ideas_economic_1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_3_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_9_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_economic_10_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.6
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			#######################
			nat_ideas_expansion_1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.5
					}
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.5
					}
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.5
					}
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_4_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.5
					}
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_5_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.5
					}
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_6_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.5
					}
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_7_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.5
					}
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_8_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.3
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_9_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.3
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_expansion_10_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 0
				}
			}
			################
			nat_ideas_innovation_1_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_2_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_3_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_4_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_5_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_6_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_7_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_8_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_9_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_innovation_10_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.4
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			################
			nat_ideas_diplomatic_1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_2_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_3_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_4_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_5_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_6_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_7_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_8_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_9_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1.7
					
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_diplomatic_10_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 0
				}
			}
			################
			nat_ideas_quality_1_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_2_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_3_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_4_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_5_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_6_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_7_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_8_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_9_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quality_10_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			################
			nat_ideas_quantity_1_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_2_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_3_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_4_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_5_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_6_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_7_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_8_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_9_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
			nat_ideas_quantity_10_available_click = {
				weight = 2.0
				ai_will_do = {
				    
					factor = 1
					
					modifier = {
					has_war = yes
					factor = 1.3
					}
					modifier = {
					has_civil_war = yes
					factor = 0
			 	}
				}
			}
		}
	}
	
	#nat_ideas_main_close = {
	#	context_type = player_context
	#	
	#	window_name = "nat_ideas_main_window_container"
	#	
	#	visible = {
    #        has_country_flag = natideas_opened
	#	}
	#	
	#	
	#}
	
	#nat_ideas_economic = {
	#	context_type = player_context
	#	
	#	window_name = "nat_ideas_main_window_container"
	#	
	#	
	#}

}