scripted_gui = {

	nideas_open = {
		context_type = player_context
		
		window_name = "nideas_open_button_container"
		parent_window_token = politics_tab
		
		visible = {
            always = yes
		}
		
		effects = {
			nideas_open_button1_click = {
				if = {
					limit = { NOT = { has_country_flag = nideas_open_cflag } }
					set_country_flag = nideas_open_cflag
				}
				else = {
					clr_country_flag = nideas_open_cflag
				}
				if = {
					limit = { NOT = { has_country_flag = nideas_ideas_taken_variables_set_cflag } }
					set_variable = { var = ROOT.national_ideas_taken value = 0 }
					set_variable = { var = ROOT.idea_group1_taken value = 0 }
					set_variable = { var = ROOT.idea_group2_taken value = 0 }
					set_variable = { var = ROOT.idea_group3_taken value = 0 }
					set_variable = { var = ROOT.idea_group4_taken value = 0 }
					set_variable = { var = ROOT.idea_group5_taken value = 0 }
					set_variable = { var = ROOT.idea_group6_taken value = 0 }
					set_variable = { var = ROOT.idea_group7_taken value = 0 }
					set_variable = { var = ROOT.idea_group8_taken value = 0 }
					set_variable = { var = ROOT.idea_group9_taken value = 0 }
					set_country_flag = nideas_ideas_taken_variables_set_cflag
				}
			}
			nideas_open_button2_click = {
				if = {
					limit = { NOT = { has_country_flag = nideas_open_cflag } }
					set_country_flag = nideas_open_cflag
				}
				else = {
					clr_country_flag = nideas_open_cflag
				}
				if = {
					limit = { NOT = { has_country_flag = nideas_ideas_taken_variables_set_cflag } }
					set_variable = { var = ROOT.idea_group1_taken value = 0 }
					set_variable = { var = ROOT.idea_group2_taken value = 0 }
					set_variable = { var = ROOT.idea_group3_taken value = 0 }
					set_variable = { var = ROOT.idea_group4_taken value = 0 }
					set_variable = { var = ROOT.idea_group5_taken value = 0 }
					set_variable = { var = ROOT.idea_group6_taken value = 0 }
					set_variable = { var = ROOT.idea_group7_taken value = 0 }
					set_variable = { var = ROOT.idea_group8_taken value = 0 }
					set_variable = { var = ROOT.idea_group9_taken value = 0 }
					set_country_flag = nideas_ideas_taken_variables_set_cflag
				}
			}
		}
		
		triggers = {
			nideas_open_button1_visible = { # can't take ideas
				if = {
					limit = {
						has_country_flag = nideas_idea_cost_reduced_cflag
						check_variable = { ROOT.national_ideas_taken < 54 }
					}
					OR = {
						AND = {	check_variable = { ROOT.idea_group1_taken < 6 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group2_taken < 6 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group3_taken < 6 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group4_taken < 6 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group5_taken < 6 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group6_taken < 6 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken = 0 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken = 0 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken = 0 }   has_political_power < 99.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power < 99.99   has_army_experience < 24.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power < 99.99   has_navy_experience < 24.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power < 99.99   has_air_experience  < 24.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power > 99.99   has_army_experience < 24.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power > 99.99   has_navy_experience < 24.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power > 99.99   has_air_experience  < 24.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power < 99.99   has_army_experience > 24.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power < 99.99   has_navy_experience > 24.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power < 99.99   has_air_experience  > 24.99 }
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = nideas_idea_cost_reduced_cflag }
						check_variable = { ROOT.national_ideas_taken < 54 }
					}
					OR = {
						AND = {	check_variable = { ROOT.idea_group1_taken < 6 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group2_taken < 6 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group3_taken < 6 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group4_taken < 6 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group5_taken < 6 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group6_taken < 6 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken = 0 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken = 0 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken = 0 }   has_political_power < 149.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power < 149.99   has_army_experience < 49.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power < 149.99   has_navy_experience < 49.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power < 149.99   has_air_experience  < 49.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power > 149.99   has_army_experience < 49.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power > 149.99   has_navy_experience < 49.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power > 149.99   has_air_experience  < 49.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power < 149.99   has_army_experience > 49.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power < 149.99   has_navy_experience > 49.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power < 149.99   has_air_experience  > 49.99 }
					}
				}
				else = {
					check_variable = { ROOT.national_ideas_taken = 54 }
				}
			}
			nideas_open_button2_visible = { # can take ideas
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					OR = {
						AND = {	check_variable = { ROOT.idea_group1_taken < 6 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group2_taken < 6 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group3_taken < 6 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group4_taken < 6 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group5_taken < 6 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group6_taken < 6 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken = 0 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken = 0 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken = 0 }   has_political_power > 99.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power > 99.99   has_army_experience > 24.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power > 99.99   has_navy_experience > 24.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power > 99.99   has_air_experience  > 24.99 }
					}
				}
				else_if = {
					limit = { NOT = { has_country_flag = nideas_idea_cost_reduced_cflag } }
					OR = {
						AND = {	check_variable = { ROOT.idea_group1_taken < 6 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group2_taken < 6 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group3_taken < 6 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group4_taken < 6 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group5_taken < 6 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group6_taken < 6 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken = 0 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken = 0 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken = 0 }   has_political_power > 149.99 }
						AND = {	check_variable = { ROOT.idea_group7_taken < 6 }   has_political_power > 149.99   has_army_experience > 49.99 }
						AND = {	check_variable = { ROOT.idea_group8_taken < 6 }   has_political_power > 149.99   has_navy_experience > 49.99 }
						AND = {	check_variable = { ROOT.idea_group9_taken < 6 }   has_political_power > 149.99   has_air_experience  > 49.99 }
					}
				}
			}
		}
		
		ai_test_interval = 300
		ai_test_variance = 0.1
		ai_max_weight_taken_per_test = 2
		
		ai_enabled = {
            always = yes
		}
		
		ai_check = {
			has_political_power > 300
		}
		
		ai_weights = {
			nideas_open_button1_click = {
				weight = 1.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_open_button2_click = {
				weight = 1.0
				ai_will_do = {
					factor = 1
				}
			}
		}
	}



	nideas_main = {
		context_type = player_context

		window_name = "nideas_main_container"

		visible = {
            has_country_flag = nideas_open_cflag
		}

		effects = {
			nideas_main_close_button_click = {
				clr_country_flag = nideas_open_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 1 - POLITICAL - TOP LEFT
		
		#IDEA 1
			nideas_idea_group1_button1_available_click = {
				set_country_flag = nideas_idea_group1_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT1
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group1_button2_available_click = {
				set_country_flag = nideas_idea_group1_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT2
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group1_button3_available_click = {
				set_country_flag = nideas_idea_group1_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT3
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group1_button4_available_click = {
				set_country_flag = nideas_idea_group1_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT4
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 5
			nideas_idea_group1_button5_available_click = {
				set_country_flag = nideas_idea_group1_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT5
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group1_button6_available_click = {
				set_country_flag = nideas_idea_group1_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT_SPEC1
				remove_ideas = {
					NIDEAS_IDEA_GROUP1_SPIRIT1
					NIDEAS_IDEA_GROUP1_SPIRIT2
					NIDEAS_IDEA_GROUP1_SPIRIT3
					NIDEAS_IDEA_GROUP1_SPIRIT4
					NIDEAS_IDEA_GROUP1_SPIRIT5
				}
				if = {
					limit = { has_elections = no }
					if = {
						limit = { has_government = var:communism }
						set_politics = { ruling_party = var:communism   elections_allowed = yes   election_frequency = 48 }
					}
					if = {
						limit = { has_government = var:fascism }
						set_politics = { ruling_party = var:fascism   elections_allowed = yes   election_frequency = 48 }
					}
					if = {
						limit = { has_government = var:democratic }
						set_politics = { ruling_party = var:democratic   elections_allowed = yes   election_frequency = 48 }
					}
					if = {
						limit = { has_government = var:neutrality }
						set_politics = { ruling_party = var:neutrality   elections_allowed = yes   election_frequency = 48 }
					}
					if = {
						limit = { has_government = var:technocracy   }
						set_politics = { ruling_party = var:technocracy   elections_allowed = yes   election_frequency = 48 }
					}
					if = {
						limit = { has_government = var:trozkism }
						set_politics = { ruling_party = var:trozkism   elections_allowed = yes   election_frequency = 48 }
					}
					if = {
						limit = { has_government = var:monarchy }
						set_politics = { ruling_party = var:monarchy   elections_allowed = yes   election_frequency = 48 }
					}
					if = {
						limit = { has_government = var:anarchism }
						set_politics = { ruling_party = var:anarchism   elections_allowed = yes   election_frequency = 48 }
					}
				}
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				#set_country_flag = nideas_coring_cost_reduced_cflag
			}

		#IDEA 7
			nideas_idea_group1_button7_available_click = {
				set_country_flag = nideas_idea_group1_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT7
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group1_button8_available_click = {
				set_country_flag = nideas_idea_group1_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP1_SPIRIT_SPEC2
				remove_ideas = {
					NIDEAS_IDEA_GROUP1_SPIRIT1
					NIDEAS_IDEA_GROUP1_SPIRIT2
					NIDEAS_IDEA_GROUP1_SPIRIT3
					NIDEAS_IDEA_GROUP1_SPIRIT4
					NIDEAS_IDEA_GROUP1_SPIRIT7
				}
				if = {
					limit = { has_elections = yes }
					if = {
						limit = { has_government = var:communism }
						set_politics = { ruling_party = var:communism   elections_allowed = no }
					}
					if = {
						limit = { has_government = var:fascism }
						set_politics = { ruling_party = var:fascism   elections_allowed = no }
					}
					if = {
						limit = { has_government = var:democratic }
						set_politics = { ruling_party = var:democratic   elections_allowed = no }
					}
					if = {
						limit = { has_government = var:neutrality }
						set_politics = { ruling_party = var:neutrality   elections_allowed = no }
					}
					if = {
						limit = { has_government = var:technocracy   }
						set_politics = { ruling_party = var:technocracy   elections_allowed = no }
					}
					if = {
						limit = { has_government = var:trozkism }
						set_politics = { ruling_party = var:trozkism   elections_allowed = no }
					}
					if = {
						limit = { has_government = var:monarchy }
						set_politics = { ruling_party = var:monarchy   elections_allowed = no }
					}
					if = {
						limit = { has_government = var:anarchism }
						set_politics = { ruling_party = var:anarchism   elections_allowed = no }
					}
				}
				add_to_variable = { var = ROOT.idea_group1_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				#set_country_flag = nideas_border_war_cooldown_reduced_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 2 - DIPLOMACY - MID LEFT

		#IDEA 1
			nideas_idea_group2_button1_available_click = {
				set_country_flag = nideas_idea_group2_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT1
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				#set_country_flag = nideas_trade_agreement_cost_reduced_cflag
			}
		
		#IDEA 2
			nideas_idea_group2_button2_available_click = {
				set_country_flag = nideas_idea_group2_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT2
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group2_button3_available_click = {
				set_country_flag = nideas_idea_group2_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT3
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group2_button4_available_click = {
				set_country_flag = nideas_idea_group2_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT4
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				#set_country_flag = nideas_defense_agreement_cost_reduced_cflag
			}

		#IDEA 5
			nideas_idea_group2_button5_available_click = {
				set_country_flag = nideas_idea_group2_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT5
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group2_button6_available_click = {
				set_country_flag = nideas_idea_group2_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT_SPEC1
				remove_ideas = {
					NIDEAS_IDEA_GROUP2_SPIRIT1
					NIDEAS_IDEA_GROUP2_SPIRIT2
					NIDEAS_IDEA_GROUP2_SPIRIT3
					NIDEAS_IDEA_GROUP2_SPIRIT4
					NIDEAS_IDEA_GROUP2_SPIRIT5
				}
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group2_button7_available_click = {
				set_country_flag = nideas_idea_group2_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT7
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group2_button8_available_click = {
				set_country_flag = nideas_idea_group2_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP2_SPIRIT_SPEC2
				remove_ideas = {
					NIDEAS_IDEA_GROUP2_SPIRIT1
					NIDEAS_IDEA_GROUP2_SPIRIT2
					NIDEAS_IDEA_GROUP2_SPIRIT3
					NIDEAS_IDEA_GROUP2_SPIRIT4
					NIDEAS_IDEA_GROUP2_SPIRIT7
				}
				add_to_variable = { var = ROOT.idea_group2_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 3 - ECONOMY - BOT LEFT
		
		#IDEA 1
			nideas_idea_group3_button1_available_click = {
				set_country_flag = nideas_idea_group3_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT1
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group3_button2_available_click = {
				set_country_flag = nideas_idea_group3_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT2
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group3_button3_available_click = {
				set_country_flag = nideas_idea_group3_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT3
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group3_button4_available_click = {
				set_country_flag = nideas_idea_group3_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT4
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 5
			nideas_idea_group3_button5_available_click = {
				set_country_flag = nideas_idea_group3_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT5
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group3_button6_available_click = {
				set_country_flag = nideas_idea_group3_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT_SPEC1
				remove_ideas = {
					NIDEAS_IDEA_GROUP3_SPIRIT1
					NIDEAS_IDEA_GROUP3_SPIRIT2
					NIDEAS_IDEA_GROUP3_SPIRIT3
					NIDEAS_IDEA_GROUP3_SPIRIT4
					NIDEAS_IDEA_GROUP3_SPIRIT5
				}
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group3_button7_available_click = {
				set_country_flag = nideas_idea_group3_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT7
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group3_button8_available_click = {
				set_country_flag = nideas_idea_group3_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP3_SPIRIT_SPEC2
				remove_ideas = {
					NIDEAS_IDEA_GROUP3_SPIRIT1
					NIDEAS_IDEA_GROUP3_SPIRIT2
					NIDEAS_IDEA_GROUP3_SPIRIT3
					NIDEAS_IDEA_GROUP3_SPIRIT4
					NIDEAS_IDEA_GROUP3_SPIRIT7
				}
				add_to_variable = { var = ROOT.idea_group3_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 4 - EXPANSION - TOP TOP
		
		#IDEA 1
			nideas_idea_group4_button1_available_click = {
				set_country_flag = nideas_idea_group4_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT1
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group4_button2_available_click = {
				set_country_flag = nideas_idea_group4_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT2
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group4_button3_available_click = {
				set_country_flag = nideas_idea_group4_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT3
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				#set_country_flag = nideas_formable_allowed_cflag
			}

		#IDEA 4
			nideas_idea_group4_button4_available_click = {
				set_country_flag = nideas_idea_group4_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group4_idea6_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP4_SPIRIT1
						NIDEAS_IDEA_GROUP4_SPIRIT2
						NIDEAS_IDEA_GROUP4_SPIRIT3
						NIDEAS_IDEA_GROUP4_SPIRIT5
						NIDEAS_IDEA_GROUP4_SPIRIT6
					}
				}
				else_if = {
					limit = { has_country_flag = nideas_idea_group4_idea8_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP4_SPIRIT1
						NIDEAS_IDEA_GROUP4_SPIRIT2
						NIDEAS_IDEA_GROUP4_SPIRIT3
						NIDEAS_IDEA_GROUP4_SPIRIT7
						NIDEAS_IDEA_GROUP4_SPIRIT8
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT4
				}
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				#set_country_flag = nideas_no_formable_debuffs_cflag
			}

		#IDEA 5
			nideas_idea_group4_button5_available_click = {
				set_country_flag = nideas_idea_group4_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT5
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group4_button6_available_click = {
				set_country_flag = nideas_idea_group4_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group4_idea4_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP4_SPIRIT1
						NIDEAS_IDEA_GROUP4_SPIRIT2
						NIDEAS_IDEA_GROUP4_SPIRIT3
						NIDEAS_IDEA_GROUP4_SPIRIT4
						NIDEAS_IDEA_GROUP4_SPIRIT5
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT6
				}
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group4_button7_available_click = {
				set_country_flag = nideas_idea_group4_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT7
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group4_button8_available_click = {
				set_country_flag = nideas_idea_group4_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group4_idea4_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP4_SPIRIT1
						NIDEAS_IDEA_GROUP4_SPIRIT2
						NIDEAS_IDEA_GROUP4_SPIRIT3
						NIDEAS_IDEA_GROUP4_SPIRIT4
						NIDEAS_IDEA_GROUP4_SPIRIT7
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP4_SPIRIT8
				}
				add_to_variable = { var = ROOT.idea_group4_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				#set_country_flag = nideas_claimed_state_coring_cost_reduced_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 5 - ESPIONAGE - MID MID
		
		#IDEA 1
			nideas_idea_group5_button1_available_click = {
				set_country_flag = nideas_idea_group5_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT1
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group5_button2_available_click = {
				set_country_flag = nideas_idea_group5_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT2
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group5_button3_available_click = {
				set_country_flag = nideas_idea_group5_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT3
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group5_button4_available_click = {
				set_country_flag = nideas_idea_group5_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group5_idea6_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP5_SPIRIT1
						NIDEAS_IDEA_GROUP5_SPIRIT2
						NIDEAS_IDEA_GROUP5_SPIRIT3
						NIDEAS_IDEA_GROUP5_SPIRIT5
						NIDEAS_IDEA_GROUP5_SPIRIT6
					}
				}
				else_if = {
					limit = { has_country_flag = nideas_idea_group5_idea8_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP5_SPIRIT1
						NIDEAS_IDEA_GROUP5_SPIRIT2
						NIDEAS_IDEA_GROUP5_SPIRIT3
						NIDEAS_IDEA_GROUP5_SPIRIT7
						NIDEAS_IDEA_GROUP5_SPIRIT8
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT4
				}
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 5
			nideas_idea_group5_button5_available_click = {
				set_country_flag = nideas_idea_group5_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT5
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group5_button6_available_click = {
				set_country_flag = nideas_idea_group5_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group5_idea4_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP5_SPIRIT1
						NIDEAS_IDEA_GROUP5_SPIRIT2
						NIDEAS_IDEA_GROUP5_SPIRIT3
						NIDEAS_IDEA_GROUP5_SPIRIT4
						NIDEAS_IDEA_GROUP5_SPIRIT5
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT6
				}
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group5_button7_available_click = {
				set_country_flag = nideas_idea_group5_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT7
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group5_button8_available_click = {
				set_country_flag = nideas_idea_group5_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group5_idea4_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP5_SPIRIT1
						NIDEAS_IDEA_GROUP5_SPIRIT2
						NIDEAS_IDEA_GROUP5_SPIRIT3
						NIDEAS_IDEA_GROUP5_SPIRIT4
						NIDEAS_IDEA_GROUP5_SPIRIT7
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP5_SPIRIT8
				}
				add_to_variable = { var = ROOT.idea_group5_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 6 - INNOVATION - BOT MID
		
		#IDEA 1
			nideas_idea_group6_button1_available_click = {
				set_country_flag = nideas_idea_group6_idea1_complete_cflag
				add_political_power = -150
				add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT1
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group6_button2_available_click = {
				set_country_flag = nideas_idea_group6_idea2_complete_cflag
				add_political_power = -150
				add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT2
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group6_button3_available_click = {
				set_country_flag = nideas_idea_group6_idea3_complete_cflag
				add_political_power = -150
				add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT3
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group6_button4_available_click = {
				set_country_flag = nideas_idea_group6_idea4_complete_cflag
				add_political_power = -150
				if = {
					limit = { has_country_flag = nideas_idea_group6_idea6_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP6_SPIRIT1
						NIDEAS_IDEA_GROUP6_SPIRIT2
						NIDEAS_IDEA_GROUP6_SPIRIT3
						NIDEAS_IDEA_GROUP6_SPIRIT5
						NIDEAS_IDEA_GROUP6_SPIRIT6
					}
				}
				else_if = {
					limit = { has_country_flag = nideas_idea_group6_idea8_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP6_SPIRIT1
						NIDEAS_IDEA_GROUP6_SPIRIT2
						NIDEAS_IDEA_GROUP6_SPIRIT3
						NIDEAS_IDEA_GROUP6_SPIRIT7
						NIDEAS_IDEA_GROUP6_SPIRIT8
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT4
				}
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
				set_country_flag = nideas_idea_cost_reduced_cflag
			}

		#IDEA 5
			nideas_idea_group6_button5_available_click = {
				set_country_flag = nideas_idea_group6_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT5
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group6_button6_available_click = {
				set_country_flag = nideas_idea_group6_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group6_idea4_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP6_SPIRIT1
						NIDEAS_IDEA_GROUP6_SPIRIT2
						NIDEAS_IDEA_GROUP6_SPIRIT3
						NIDEAS_IDEA_GROUP6_SPIRIT4
						NIDEAS_IDEA_GROUP6_SPIRIT5
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT6
				}
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group6_button7_available_click = {
				set_country_flag = nideas_idea_group6_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT7
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group6_button8_available_click = {
				set_country_flag = nideas_idea_group6_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				if = {
					limit = { has_country_flag = nideas_idea_group6_idea4_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP6_SPIRIT1
						NIDEAS_IDEA_GROUP6_SPIRIT2
						NIDEAS_IDEA_GROUP6_SPIRIT3
						NIDEAS_IDEA_GROUP6_SPIRIT4
						NIDEAS_IDEA_GROUP6_SPIRIT7
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP6_SPIRIT8
				}
				add_to_variable = { var = ROOT.idea_group6_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 7 - ARMY - TOP RIGHT

		#IDEA 1
			nideas_idea_group7_button1_available_click = {
				set_country_flag = nideas_idea_group7_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT1
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group7_button2_available_click = {
				set_country_flag = nideas_idea_group7_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT2
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group7_button3_available_click = {
				set_country_flag = nideas_idea_group7_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				if = {
					limit = { has_country_flag = nideas_idea_group7_idea6_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP7_SPIRIT1
						NIDEAS_IDEA_GROUP7_SPIRIT2
						NIDEAS_IDEA_GROUP7_SPIRIT4
						NIDEAS_IDEA_GROUP7_SPIRIT5
						NIDEAS_IDEA_GROUP7_SPIRIT6
					}
				}
				else_if = {
					limit = { has_country_flag = nideas_idea_group7_idea9_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP7_SPIRIT1
						NIDEAS_IDEA_GROUP7_SPIRIT2
						NIDEAS_IDEA_GROUP7_SPIRIT7
						NIDEAS_IDEA_GROUP7_SPIRIT8
						NIDEAS_IDEA_GROUP7_SPIRIT9
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT3
				}
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group7_button4_available_click = {
				set_country_flag = nideas_idea_group7_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT4
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 5
			nideas_idea_group7_button5_available_click = {
				set_country_flag = nideas_idea_group7_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT5
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group7_button6_available_click = {
				set_country_flag = nideas_idea_group7_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT6
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group7_button7_available_click = {
				set_country_flag = nideas_idea_group7_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT7
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group7_button8_available_click = {
				set_country_flag = nideas_idea_group7_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT8
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 9
			nideas_idea_group7_button9_available_click = {
				set_country_flag = nideas_idea_group7_idea9_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					army_experience = -25
				}
				else = {
					add_political_power = -150
					army_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP7_SPIRIT9
				add_to_variable = { var = ROOT.idea_group7_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 8 - NAVY - MID RIGHT
		
		#IDEA 1
			nideas_idea_group8_button1_available_click = {
				set_country_flag = nideas_idea_group8_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT1
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group8_button2_available_click = {
				set_country_flag = nideas_idea_group8_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT2
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group8_button3_available_click = {
				set_country_flag = nideas_idea_group8_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				if = {
					limit = { has_country_flag = nideas_idea_group8_idea6_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP8_SPIRIT1
						NIDEAS_IDEA_GROUP8_SPIRIT2
						NIDEAS_IDEA_GROUP8_SPIRIT4
						NIDEAS_IDEA_GROUP8_SPIRIT5
						NIDEAS_IDEA_GROUP8_SPIRIT6
					}
				}
				else_if = {
					limit = { has_country_flag = nideas_idea_group8_idea9_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP8_SPIRIT1
						NIDEAS_IDEA_GROUP8_SPIRIT2
						NIDEAS_IDEA_GROUP8_SPIRIT7
						NIDEAS_IDEA_GROUP8_SPIRIT8
						NIDEAS_IDEA_GROUP8_SPIRIT9
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT3
				}
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group8_button4_available_click = {
				set_country_flag = nideas_idea_group8_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT4
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 5
			nideas_idea_group8_button5_available_click = {
				set_country_flag = nideas_idea_group8_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT5
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group8_button6_available_click = {
				set_country_flag = nideas_idea_group8_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT6
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group8_button7_available_click = {
				set_country_flag = nideas_idea_group8_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT7
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group8_button8_available_click = {
				set_country_flag = nideas_idea_group8_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT8
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 9
			nideas_idea_group8_button9_available_click = {
				set_country_flag = nideas_idea_group8_idea9_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					navy_experience = -25
				}
				else = {
					add_political_power = -150
					navy_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP8_SPIRIT9
				add_to_variable = { var = ROOT.idea_group8_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 9 - AIR - BOT RIGHT
		
		#IDEA 1
			nideas_idea_group9_button1_available_click = {
				set_country_flag = nideas_idea_group9_idea1_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
				}
				else = {
					add_political_power = -150
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT1
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 2
			nideas_idea_group9_button2_available_click = {
				set_country_flag = nideas_idea_group9_idea2_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT2
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		
		#IDEA 3
			nideas_idea_group9_button3_available_click = {
				set_country_flag = nideas_idea_group9_idea3_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				if = {
					limit = { has_country_flag = nideas_idea_group9_idea6_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT_SPEC1
					remove_ideas = {
						NIDEAS_IDEA_GROUP9_SPIRIT1
						NIDEAS_IDEA_GROUP9_SPIRIT2
						NIDEAS_IDEA_GROUP9_SPIRIT4
						NIDEAS_IDEA_GROUP9_SPIRIT5
						NIDEAS_IDEA_GROUP9_SPIRIT6
					}
				}
				else_if = {
					limit = { has_country_flag = nideas_idea_group9_idea9_complete_cflag }
					add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT_SPEC2
					remove_ideas = {
						NIDEAS_IDEA_GROUP9_SPIRIT1
						NIDEAS_IDEA_GROUP9_SPIRIT2
						NIDEAS_IDEA_GROUP9_SPIRIT7
						NIDEAS_IDEA_GROUP9_SPIRIT8
						NIDEAS_IDEA_GROUP9_SPIRIT9
					}
				}
				else = {
					add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT3
				}
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 4
			nideas_idea_group9_button4_available_click = {
				set_country_flag = nideas_idea_group9_idea4_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT4
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 5
			nideas_idea_group9_button5_available_click = {
				set_country_flag = nideas_idea_group9_idea5_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT5
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 6
			nideas_idea_group9_button6_available_click = {
				set_country_flag = nideas_idea_group9_idea6_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT6
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 7
			nideas_idea_group9_button7_available_click = {
				set_country_flag = nideas_idea_group9_idea7_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT7
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 8
			nideas_idea_group9_button8_available_click = {
				set_country_flag = nideas_idea_group9_idea8_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT8
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}

		#IDEA 9
			nideas_idea_group9_button9_available_click = {
				set_country_flag = nideas_idea_group9_idea9_complete_cflag
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					add_political_power = -100
					air_experience = -25
				}
				else = {
					add_political_power = -150
					air_experience = -50
				}
				add_ideas = NIDEAS_IDEA_GROUP9_SPIRIT9
				add_to_variable = { var = ROOT.idea_group9_taken value = 1 }
				add_to_variable = { var = ROOT.national_ideas_taken value = 1 }
			}
		}


		triggers = {

			nideas_cw_icon_visible = {
				has_country_flag = nideas_cw_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 1 - POLITICAL - TOP LEFT

		#COMPLETE OVERLAY
			nideas_idea_group1_complete_visible = {
				OR = {
					has_country_flag = nideas_idea_group1_idea6_complete_cflag
					has_country_flag = nideas_idea_group1_idea8_complete_cflag
				}
			}

		#IDEA 1
			#Button1
			nideas_idea_group1_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea1_complete_cflag }
			}
			nideas_idea_group1_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group1_idea1_complete_cflag }
			}
			nideas_idea_group1_button1_complete_visible = {
				has_country_flag = nideas_idea_group1_idea1_complete_cflag
			}

		#IDEA 2
			nideas_idea_group1_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea2_complete_cflag }
			}
			nideas_idea_group1_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group1_idea2_complete_cflag }
			}
			nideas_idea_group1_button2_complete_visible = {
				has_country_flag = nideas_idea_group1_idea2_complete_cflag
			}

		#IDEA 3
			nideas_idea_group1_button3_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea3_complete_cflag }
			}
			nideas_idea_group1_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group1_idea3_complete_cflag }
			}
			nideas_idea_group1_button3_complete_visible = {
				has_country_flag = nideas_idea_group1_idea3_complete_cflag
			}

		#IDEA 4 + PRECEEDING BRANCHES + OR
			nideas_idea_group1_button4_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_idea_group1_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea1_complete_cflag
				has_country_flag = nideas_idea_group1_idea2_complete_cflag
				has_country_flag = nideas_idea_group1_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_idea_group1_button4_complete_visible = {
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
			}
			
			#Button1 -> Button4
			nideas_branch_group1_corner_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_branch_group1_corner_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_branch_group1_corner_top_complete1_visible = {
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
			}
			
			#Button2 -> Button4
			nideas_branch_group1_straight2_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_branch_group1_straight2_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_branch_group1_straight2_complete1_visible = {
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
			}
			
			#Button3 -> Button4
			nideas_branch_group1_corner_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_branch_group1_corner_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea4_complete_cflag }
			}
			nideas_branch_group1_corner_bot_complete1_visible = {
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
			}
			
			#Button4 -> OR
			nideas_branch_group1_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
				}
			}
			nideas_branch_group1_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
				}
			}
			nideas_branch_group1_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group1_idea5_complete_cflag
					has_country_flag = nideas_idea_group1_idea7_complete_cflag
				}
			}

		#IDEA 5 + PRECEEDING BRANCH
			nideas_idea_group1_button5_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group1_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_idea_group1_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_idea_group1_button5_complete_visible = {
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_idea_group1_button5_blocked_visible = {
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
			}

			#OR -> Button5
			nideas_branch_group1_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_branch_group1_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_branch_group1_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_branch_group1_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			nideas_idea_group1_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_idea_group1_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_idea_group1_button6_complete_visible = {
				has_country_flag = nideas_idea_group1_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_idea_group1_button6_blocked_visible = {
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group1_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_branch_group1_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_branch_group1_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group1_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
			}
			nideas_branch_group1_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCH
			nideas_idea_group1_button7_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group1_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_idea_group1_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_idea_group1_button7_complete_visible = {
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_idea_group1_button7_blocked_visible = {
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group1_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_branch_group1_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_branch_group1_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_branch_group1_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
			}
			
		#IDEA 8 + PRECEEDING BRANCH
			nideas_idea_group1_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_idea_group1_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_idea_group1_button8_complete_visible = {
				has_country_flag = nideas_idea_group1_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_idea_group1_button8_blocked_visible = {
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group1_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group1_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_branch_group1_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_branch_group1_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group1_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group1_idea5_complete_cflag }
			}
			nideas_branch_group1_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group1_idea5_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 2 - DIPLOMACY - MID LEFT

		#COMPLETE OVERLAY
			nideas_idea_group2_complete_visible = {
				OR = {
					has_country_flag = nideas_idea_group2_idea6_complete_cflag
					has_country_flag = nideas_idea_group2_idea8_complete_cflag
				}
			}

		#IDEA 1
			#Button1
			nideas_idea_group2_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea1_complete_cflag }
			}
			nideas_idea_group2_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group2_idea1_complete_cflag }
			}
			nideas_idea_group2_button1_complete_visible = {
				has_country_flag = nideas_idea_group2_idea1_complete_cflag
			}

		#IDEA 2
			nideas_idea_group2_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea2_complete_cflag }
			}
			nideas_idea_group2_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group2_idea2_complete_cflag }
			}
			nideas_idea_group2_button2_complete_visible = {
				has_country_flag = nideas_idea_group2_idea2_complete_cflag
			}

		#IDEA 3
			nideas_idea_group2_button3_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea3_complete_cflag }
			}
			nideas_idea_group2_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group2_idea3_complete_cflag }
			}
			nideas_idea_group2_button3_complete_visible = {
				has_country_flag = nideas_idea_group2_idea3_complete_cflag
			}

		#IDEA 4 + PRECEEDING BRANCHES + OR
			nideas_idea_group2_button4_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_idea_group2_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea1_complete_cflag
				has_country_flag = nideas_idea_group2_idea2_complete_cflag
				has_country_flag = nideas_idea_group2_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_idea_group2_button4_complete_visible = {
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
			}
			
			#Button1 -> Button4
			nideas_branch_group2_corner_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_branch_group2_corner_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_branch_group2_corner_top_complete1_visible = {
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
			}
			
			#Button2 -> Button4
			nideas_branch_group2_straight2_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_branch_group2_straight2_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_branch_group2_straight2_complete1_visible = {
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
			}
			
			#Button3 -> Button4
			nideas_branch_group2_corner_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_branch_group2_corner_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea4_complete_cflag }
			}
			nideas_branch_group2_corner_bot_complete1_visible = {
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
			}
			
			#Button4 -> OR
			nideas_branch_group2_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
				}
			}
			nideas_branch_group2_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
				}
			}
			nideas_branch_group2_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group2_idea5_complete_cflag
					has_country_flag = nideas_idea_group2_idea7_complete_cflag
				}
			}

		#IDEA 5 + PRECEEDING BRANCH
			nideas_idea_group2_button5_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group2_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_idea_group2_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_idea_group2_button5_complete_visible = {
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_idea_group2_button5_blocked_visible = {
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
			}

			#OR -> Button5
			nideas_branch_group2_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_branch_group2_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_branch_group2_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_branch_group2_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			nideas_idea_group2_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_idea_group2_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_idea_group2_button6_complete_visible = {
				has_country_flag = nideas_idea_group2_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_idea_group2_button6_blocked_visible = {
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group2_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_branch_group2_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_branch_group2_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group2_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
			}
			nideas_branch_group2_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCH
			nideas_idea_group2_button7_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group2_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_idea_group2_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_idea_group2_button7_complete_visible = {
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_idea_group2_button7_blocked_visible = {
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group2_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_branch_group2_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_branch_group2_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_branch_group2_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
			}
			
		#IDEA 8 + PRECEEDING BRANCH
			nideas_idea_group2_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_idea_group2_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_idea_group2_button8_complete_visible = {
				has_country_flag = nideas_idea_group2_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_idea_group2_button8_blocked_visible = {
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group2_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group2_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_branch_group2_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_branch_group2_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group2_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group2_idea5_complete_cflag }
			}
			nideas_branch_group2_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group2_idea5_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 3 - ECONOMY - BOT LEFT

		#COMPLETE OVERLAY
			nideas_idea_group3_complete_visible = {
				OR = {
					has_country_flag = nideas_idea_group3_idea6_complete_cflag
					has_country_flag = nideas_idea_group3_idea8_complete_cflag
				}
			}

		#IDEA 1
			#Button1
			nideas_idea_group3_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea1_complete_cflag }
			}
			nideas_idea_group3_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group3_idea1_complete_cflag }
			}
			nideas_idea_group3_button1_complete_visible = {
				has_country_flag = nideas_idea_group3_idea1_complete_cflag
			}

		#IDEA 2
			nideas_idea_group3_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea2_complete_cflag }
			}
			nideas_idea_group3_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group3_idea2_complete_cflag }
			}
			nideas_idea_group3_button2_complete_visible = {
				has_country_flag = nideas_idea_group3_idea2_complete_cflag
			}

		#IDEA 3
			nideas_idea_group3_button3_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea3_complete_cflag }
			}
			nideas_idea_group3_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group3_idea3_complete_cflag }
			}
			nideas_idea_group3_button3_complete_visible = {
				has_country_flag = nideas_idea_group3_idea3_complete_cflag
			}

		#IDEA 4 + PRECEEDING BRANCHES + OR
			nideas_idea_group3_button4_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_idea_group3_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea1_complete_cflag
				has_country_flag = nideas_idea_group3_idea2_complete_cflag
				has_country_flag = nideas_idea_group3_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_idea_group3_button4_complete_visible = {
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
			}
			
			#Button1 -> Button4
			nideas_branch_group3_corner_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_branch_group3_corner_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_branch_group3_corner_top_complete1_visible = {
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
			}
			
			#Button2 -> Button4
			nideas_branch_group3_straight2_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_branch_group3_straight2_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_branch_group3_straight2_complete1_visible = {
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
			}
			
			#Button3 -> Button4
			nideas_branch_group3_corner_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_branch_group3_corner_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea4_complete_cflag }
			}
			nideas_branch_group3_corner_bot_complete1_visible = {
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
			}
			
			#Button4 -> OR
			nideas_branch_group3_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
				}
			}
			nideas_branch_group3_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
				}
			}
			nideas_branch_group3_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group3_idea5_complete_cflag
					has_country_flag = nideas_idea_group3_idea7_complete_cflag
				}
			}

		#IDEA 5 + PRECEEDING BRANCH
			nideas_idea_group3_button5_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group3_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_idea_group3_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_idea_group3_button5_complete_visible = {
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_idea_group3_button5_blocked_visible = {
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
			}

			#OR -> Button5
			nideas_branch_group3_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_branch_group3_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_branch_group3_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_branch_group3_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			nideas_idea_group3_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_idea_group3_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_idea_group3_button6_complete_visible = {
				has_country_flag = nideas_idea_group3_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_idea_group3_button6_blocked_visible = {
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group3_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_branch_group3_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_branch_group3_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group3_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
			}
			nideas_branch_group3_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCH
			nideas_idea_group3_button7_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group3_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_idea_group3_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_idea_group3_button7_complete_visible = {
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_idea_group3_button7_blocked_visible = {
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group3_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_branch_group3_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_branch_group3_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_branch_group3_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
			}
			
		#IDEA 8 + PRECEEDING BRANCH
			nideas_idea_group3_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_idea_group3_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_idea_group3_button8_complete_visible = {
				has_country_flag = nideas_idea_group3_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_idea_group3_button8_blocked_visible = {
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group3_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group3_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_branch_group3_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_branch_group3_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group3_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group3_idea5_complete_cflag }
			}
			nideas_branch_group3_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group3_idea5_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 4 - EXPANSION - TOP MID

		#COMPLETE OVERLAY
			nideas_idea_group4_complete_visible = {
				has_country_flag = nideas_idea_group4_idea4_complete_cflag
				OR = {
					has_country_flag = nideas_idea_group4_idea6_complete_cflag
					has_country_flag = nideas_idea_group4_idea8_complete_cflag
				}
			}

		#IDEA 1
			#Button1
			nideas_idea_group4_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea1_complete_cflag }
			}
			nideas_idea_group4_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group4_idea1_complete_cflag }
			}
			nideas_idea_group4_button1_complete_visible = {
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
			}

		#IDEA 2
			#Button2
			nideas_idea_group4_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea2_complete_cflag }
			}
			nideas_idea_group4_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group4_idea2_complete_cflag }
			}
			nideas_idea_group4_button2_complete_visible = {
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
			}
			
		#IDEA 3 + PRECEEDING BRANCHES + OR
			#Button3
			nideas_idea_group4_button3_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group4_idea3_complete_cflag }
			}
			nideas_idea_group4_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea3_complete_cflag }
			}
			nideas_idea_group4_button3_complete_visible = {
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
			}
			
			#Button1 -> Button3
			nideas_branch_group4_corner_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea3_complete_cflag }
			}
			nideas_branch_group4_corner_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea3_complete_cflag }
			}
			nideas_branch_group4_corner_top_complete1_visible = {
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
			}
			
			#Button2 -> Button3
			nideas_branch_group4_corner_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea3_complete_cflag }
			}
			nideas_branch_group4_corner_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea1_complete_cflag
				has_country_flag = nideas_idea_group4_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea3_complete_cflag }
			}
			nideas_branch_group4_corner_bot_complete1_visible = {
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
			}
			
			#Button3 -> OR
			nideas_branch_group4_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group4_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
				}
			}
			nideas_branch_group4_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group4_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
				}
			}
			nideas_branch_group4_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group4_idea4_complete_cflag
					has_country_flag = nideas_idea_group4_idea5_complete_cflag
					has_country_flag = nideas_idea_group4_idea7_complete_cflag
				}
			}

		#IDEA 4 + PRECEEDING BRANCH
			nideas_idea_group4_button4_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea4_complete_cflag }
			}
			nideas_idea_group4_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea4_complete_cflag }
			}
			nideas_idea_group4_button4_complete_visible = {
				has_country_flag = nideas_idea_group4_idea4_complete_cflag
			}
			
			#OR -> Button4
			nideas_branch_group4_straight3_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea4_complete_cflag }
			}
			nideas_branch_group4_straight3_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group4_straight3_complete1_visible = {
				has_country_flag = nideas_idea_group4_idea4_complete_cflag
			}
			

		#IDEA 5 + PRECEEDING BRANCH
			nideas_idea_group4_button5_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group4_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_idea_group4_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_idea_group4_button5_complete_visible = {
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_idea_group4_button5_blocked_visible = {
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
			}

			#OR -> Button5
			nideas_branch_group4_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_branch_group4_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_branch_group4_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_branch_group4_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			nideas_idea_group4_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_idea_group4_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_idea_group4_button6_complete_visible = {
				has_country_flag = nideas_idea_group4_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_idea_group4_button6_blocked_visible = {
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group4_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_branch_group4_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_branch_group4_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group4_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
			}
			nideas_branch_group4_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCH
			nideas_idea_group4_button7_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_idea_group4_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_idea_group4_button7_complete_visible = {
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_idea_group4_button7_blocked_visible = {
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group4_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_branch_group4_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_branch_group4_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_branch_group4_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
			}
			
		#IDEA 8 + PRECEEDING BRANCH
			nideas_idea_group4_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_idea_group4_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_idea_group4_button8_complete_visible = {
				has_country_flag = nideas_idea_group4_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_idea_group4_button8_blocked_visible = {
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group4_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group4_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_branch_group4_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group4_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_branch_group4_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group4_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group4_idea5_complete_cflag }
			}
			nideas_branch_group4_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group4_idea5_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 5 - ESPIONAGE - MID MID

		#COMPLETE OVERLAY
			nideas_idea_group5_complete_visible = {
				has_country_flag = nideas_idea_group5_idea4_complete_cflag
				OR = {
					has_country_flag = nideas_idea_group5_idea6_complete_cflag
					has_country_flag = nideas_idea_group5_idea8_complete_cflag
				}
			}

		#IDEA 1
			#Button1
			nideas_idea_group5_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea1_complete_cflag }
			}
			nideas_idea_group5_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group5_idea1_complete_cflag }
			}
			nideas_idea_group5_button1_complete_visible = {
				has_country_flag = nideas_idea_group5_idea1_complete_cflag
			}

		#IDEA 2
			#Button2
			nideas_idea_group5_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea2_complete_cflag }
			}
			nideas_idea_group5_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group5_idea2_complete_cflag }
			}
			nideas_idea_group5_button2_complete_visible = {
				has_country_flag = nideas_idea_group5_idea2_complete_cflag
			}
			
		#IDEA 3 + PRECEEDING BRANCHES + OR
			#Button3
			nideas_idea_group5_button3_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group5_idea3_complete_cflag }
			}
			nideas_idea_group5_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea1_complete_cflag
				has_country_flag = nideas_idea_group5_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea3_complete_cflag }
			}
			nideas_idea_group5_button3_complete_visible = {
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
			}
			
			#Button1 -> Button3
			nideas_branch_group5_corner_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea3_complete_cflag }
			}
			nideas_branch_group5_corner_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea1_complete_cflag
				has_country_flag = nideas_idea_group5_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea3_complete_cflag }
			}
			nideas_branch_group5_corner_top_complete1_visible = {
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
			}
			
			#Button2 -> Button3
			nideas_branch_group5_corner_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea3_complete_cflag }
			}
			nideas_branch_group5_corner_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea1_complete_cflag
				has_country_flag = nideas_idea_group5_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea3_complete_cflag }
			}
			nideas_branch_group5_corner_bot_complete1_visible = {
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
			}
			
			#Button3 -> OR
			nideas_branch_group5_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group5_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
				}
			}
			nideas_branch_group5_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group5_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
				}
			}
			nideas_branch_group5_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group5_idea4_complete_cflag
					has_country_flag = nideas_idea_group5_idea5_complete_cflag
					has_country_flag = nideas_idea_group5_idea7_complete_cflag
				}
			}

		#IDEA 4 + PRECEEDING BRANCH
			nideas_idea_group5_button4_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea4_complete_cflag }
			}
			nideas_idea_group5_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea4_complete_cflag }
			}
			nideas_idea_group5_button4_complete_visible = {
				has_country_flag = nideas_idea_group5_idea4_complete_cflag
			}
			
			#OR -> Button4
			nideas_branch_group5_straight3_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea4_complete_cflag }
			}
			nideas_branch_group5_straight3_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group5_straight3_complete1_visible = {
				has_country_flag = nideas_idea_group5_idea4_complete_cflag
			}
			

		#IDEA 5 + PRECEEDING BRANCH
			nideas_idea_group5_button5_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group5_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_idea_group5_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_idea_group5_button5_complete_visible = {
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_idea_group5_button5_blocked_visible = {
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
			}

			#OR -> Button5
			nideas_branch_group5_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_branch_group5_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_branch_group5_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_branch_group5_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			nideas_idea_group5_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_idea_group5_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_idea_group5_button6_complete_visible = {
				has_country_flag = nideas_idea_group5_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_idea_group5_button6_blocked_visible = {
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group5_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_branch_group5_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_branch_group5_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group5_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
			}
			nideas_branch_group5_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCH
			nideas_idea_group5_button7_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_idea_group5_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_idea_group5_button7_complete_visible = {
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_idea_group5_button7_blocked_visible = {
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group5_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_branch_group5_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_branch_group5_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_branch_group5_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
			}
			
		#IDEA 8 + PRECEEDING BRANCH
			nideas_idea_group5_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_idea_group5_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_idea_group5_button8_complete_visible = {
				has_country_flag = nideas_idea_group5_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_idea_group5_button8_blocked_visible = {
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group5_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group5_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_branch_group5_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group5_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_branch_group5_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group5_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group5_idea5_complete_cflag }
			}
			nideas_branch_group5_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group5_idea5_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 6 - INNOVATION - BOT MID

		#COMPLETE OVERLAY
			nideas_idea_group6_complete_visible = {
				has_country_flag = nideas_idea_group6_idea4_complete_cflag
				OR = {
					has_country_flag = nideas_idea_group6_idea6_complete_cflag
					has_country_flag = nideas_idea_group6_idea8_complete_cflag
				}
			}

		#IDEA 1
			#Button1
			nideas_idea_group6_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea1_complete_cflag }
			}
			nideas_idea_group6_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group6_idea1_complete_cflag }
			}
			nideas_idea_group6_button1_complete_visible = {
				has_country_flag = nideas_idea_group6_idea1_complete_cflag
			}

		#IDEA 2
			#Button2
			nideas_idea_group6_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea2_complete_cflag }
			}
			nideas_idea_group6_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group6_idea2_complete_cflag }
			}
			nideas_idea_group6_button2_complete_visible = {
				has_country_flag = nideas_idea_group6_idea2_complete_cflag
			}
			
		#IDEA 3 + PRECEEDING BRANCHES + OR
			#Button3
			nideas_idea_group6_button3_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group6_idea3_complete_cflag }
			}
			nideas_idea_group6_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea1_complete_cflag
				has_country_flag = nideas_idea_group6_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea3_complete_cflag }
			}
			nideas_idea_group6_button3_complete_visible = {
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
			}
			
			#Button1 -> Button3
			nideas_branch_group6_corner_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea3_complete_cflag }
			}
			nideas_branch_group6_corner_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea1_complete_cflag
				has_country_flag = nideas_idea_group6_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea3_complete_cflag }
			}
			nideas_branch_group6_corner_top_complete1_visible = {
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
			}
			
			#Button2 -> Button3
			nideas_branch_group6_corner_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea3_complete_cflag }
			}
			nideas_branch_group6_corner_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea1_complete_cflag
				has_country_flag = nideas_idea_group6_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea3_complete_cflag }
			}
			nideas_branch_group6_corner_bot_complete1_visible = {
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
			}
			
			#Button3 -> OR
			nideas_branch_group6_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group6_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
				}
			}
			nideas_branch_group6_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group6_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
				}
			}
			nideas_branch_group6_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group6_idea4_complete_cflag
					has_country_flag = nideas_idea_group6_idea5_complete_cflag
					has_country_flag = nideas_idea_group6_idea7_complete_cflag
				}
			}

		#IDEA 4 + PRECEEDING BRANCH
			nideas_idea_group6_button4_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea4_complete_cflag }
			}
			nideas_idea_group6_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea4_complete_cflag }
			}
			nideas_idea_group6_button4_complete_visible = {
				has_country_flag = nideas_idea_group6_idea4_complete_cflag
			}
			
			#OR -> Button4
			nideas_branch_group6_straight3_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea4_complete_cflag }
			}
			nideas_branch_group6_straight3_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group6_straight3_complete1_visible = {
				has_country_flag = nideas_idea_group6_idea4_complete_cflag
			}
			

		#IDEA 5 + PRECEEDING BRANCH
			nideas_idea_group6_button5_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group6_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_idea_group6_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_idea_group6_button5_complete_visible = {
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_idea_group6_button5_blocked_visible = {
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
			}

			#OR -> Button5
			nideas_branch_group6_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_branch_group6_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_branch_group6_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_branch_group6_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			nideas_idea_group6_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_idea_group6_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_idea_group6_button6_complete_visible = {
				has_country_flag = nideas_idea_group6_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_idea_group6_button6_blocked_visible = {
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group6_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_branch_group6_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_branch_group6_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group6_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
			}
			nideas_branch_group6_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCH
			nideas_idea_group6_button7_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_idea_group6_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_idea_group6_button7_complete_visible = {
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_idea_group6_button7_blocked_visible = {
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group6_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_branch_group6_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_branch_group6_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_branch_group6_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
			}
			
		#IDEA 8 + PRECEEDING BRANCH
			nideas_idea_group6_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_idea_group6_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_idea_group6_button8_complete_visible = {
				has_country_flag = nideas_idea_group6_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_idea_group6_button8_blocked_visible = {
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group6_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group6_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_branch_group6_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				has_country_flag = nideas_idea_group6_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_branch_group6_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group6_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group6_idea5_complete_cflag }
			}
			nideas_branch_group6_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group6_idea5_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 7 - ARMY - TOP RIGHT

		#COMPLETE OVERLAY
			nideas_idea_group7_complete_visible = {
				has_country_flag = nideas_idea_group7_idea3_complete_cflag
			}

		#IDEA 1 + OR
			#Button1
			nideas_idea_group7_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea1_complete_cflag }
			}
			nideas_idea_group7_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group7_idea1_complete_cflag }
			}
			nideas_idea_group7_button1_complete_visible = {
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
			}

			#Button1 -> OR
			nideas_branch_group7_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group7_idea2_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
				}
			}
			nideas_branch_group7_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group7_idea2_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
				}
			}
			nideas_branch_group7_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group7_idea2_complete_cflag
					has_country_flag = nideas_idea_group7_idea4_complete_cflag
					has_country_flag = nideas_idea_group7_idea7_complete_cflag
				}
			}

		#IDEA 2 + PRECEEDING BRANCH
			#Button2
			nideas_idea_group7_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea2_complete_cflag }
			}
			nideas_idea_group7_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea2_complete_cflag }
			}
			nideas_idea_group7_button2_complete_visible = {
				has_country_flag = nideas_idea_group7_idea2_complete_cflag
			}

			#OR -> Button2
			nideas_branch_group7_straight1_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea2_complete_cflag }
			}
			nideas_branch_group7_straight1_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea2_complete_cflag }
			}
			nideas_branch_group7_straight1_complete2_visible = {
				has_country_flag = nideas_idea_group7_idea2_complete_cflag
			}

		#IDEA 3 + PRECEEDING BRANCH
			#Button3
			nideas_idea_group7_button3_unavailable_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group7_idea6_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group7_idea9_complete_cflag }
				}
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
			}
			nideas_idea_group7_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea2_complete_cflag
				OR = {
					has_country_flag = nideas_idea_group7_idea6_complete_cflag
					has_country_flag = nideas_idea_group7_idea9_complete_cflag
				}
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
			}
			nideas_idea_group7_button3_complete_visible = {
				has_country_flag = nideas_idea_group7_idea3_complete_cflag
			}

			#Button2 -> Button3
			nideas_branch_group7_straight5_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
			}
			nideas_branch_group7_straight5_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
				OR = {
					has_country_flag = nideas_idea_group7_idea6_complete_cflag
					has_country_flag = nideas_idea_group7_idea9_complete_cflag
				}
			}
			nideas_branch_group7_straight5_complete1_visible = {
				has_country_flag = nideas_idea_group7_idea3_complete_cflag
			}

			#Button6 -> Button3
			nideas_branch_group7_straight4_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight4_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea2_complete_cflag
				has_country_flag = nideas_idea_group7_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight4_complete1_visible = {
				has_country_flag = nideas_idea_group7_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight4_blocked1_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
			}

			#Button9 -> Button3
			nideas_branch_group7_straight4_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight4_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea2_complete_cflag
				has_country_flag = nideas_idea_group7_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight4_complete2_visible = {
				has_country_flag = nideas_idea_group7_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight4_blocked2_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
			}

		#IDEA 4 + PRECEEDING BRANCHES
			#Button4
			nideas_idea_group7_button4_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group7_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button4_complete_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button4_blocked_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
			}

			#OR -> Button4
			nideas_branch_group7_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
			}

		#IDEA 5 + PRECEEDING BRANCH
			#Button5
			nideas_idea_group7_button5_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button5_complete_visible = {
				has_country_flag = nideas_idea_group7_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button5_blocked_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
			}

			#Button4 -> Button5
			nideas_branch_group7_straight2_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight2_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight2_complete1_visible = {
				has_country_flag = nideas_idea_group7_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight2_blocked1_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			#Button6
			nideas_idea_group7_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button6_complete_visible = {
				has_country_flag = nideas_idea_group7_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_idea_group7_button6_blocked_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group7_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group7_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
			}
			nideas_branch_group7_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCHES
			#Button7
			nideas_idea_group7_button7_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group7_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button7_complete_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button7_blocked_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group7_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
			}

		#IDEA 8 + PRECEEDING BRANCH
			#Button8
			nideas_idea_group7_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button8_complete_visible = {
				has_country_flag = nideas_idea_group7_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button8_blocked_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group7_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group7_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
			}

		#IDEA 9 + PRECEEDING BRANCH
			#Button9
			nideas_idea_group7_button9_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button9_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button9_complete_visible = {
				has_country_flag = nideas_idea_group7_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_idea_group7_button9_blocked_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group7_straight2_incomplete4_visible = {
				NOT = { has_country_flag = nideas_idea_group7_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight2_available4_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_army_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_army_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group7_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight2_complete4_visible = {
				has_country_flag = nideas_idea_group7_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group7_idea4_complete_cflag }
			}
			nideas_branch_group7_straight2_blocked4_visible = {
				has_country_flag = nideas_idea_group7_idea4_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 8 - NAVY - MID RIGHT

		#COMPLETE OVERLAY
			nideas_idea_group8_complete_visible = {
				has_country_flag = nideas_idea_group8_idea3_complete_cflag
			}

		#IDEA 1 + OR
			#Button1
			nideas_idea_group8_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea1_complete_cflag }
			}
			nideas_idea_group8_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group8_idea1_complete_cflag }
			}
			nideas_idea_group8_button1_complete_visible = {
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
			}

			#Button1 -> OR
			nideas_branch_group8_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group8_idea2_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
				}
			}
			nideas_branch_group8_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group8_idea2_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
				}
			}
			nideas_branch_group8_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group8_idea2_complete_cflag
					has_country_flag = nideas_idea_group8_idea4_complete_cflag
					has_country_flag = nideas_idea_group8_idea7_complete_cflag
				}
			}

		#IDEA 2 + PRECEEDING BRANCH
			#Button2
			nideas_idea_group8_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea2_complete_cflag }
			}
			nideas_idea_group8_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea2_complete_cflag }
			}
			nideas_idea_group8_button2_complete_visible = {
				has_country_flag = nideas_idea_group8_idea2_complete_cflag
			}

			#OR -> Button2
			nideas_branch_group8_straight1_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea2_complete_cflag }
			}
			nideas_branch_group8_straight1_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea2_complete_cflag }
			}
			nideas_branch_group8_straight1_complete2_visible = {
				has_country_flag = nideas_idea_group8_idea2_complete_cflag
			}

		#IDEA 3 + PRECEEDING BRANCH
			#Button3
			nideas_idea_group8_button3_unavailable_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group8_idea6_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group8_idea9_complete_cflag }
				}
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
			}
			nideas_idea_group8_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea2_complete_cflag
				OR = {
					has_country_flag = nideas_idea_group8_idea6_complete_cflag
					has_country_flag = nideas_idea_group8_idea9_complete_cflag
				}
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
			}
			nideas_idea_group8_button3_complete_visible = {
				has_country_flag = nideas_idea_group8_idea3_complete_cflag
			}

			#Button2 -> Button3
			nideas_branch_group8_straight5_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
			}
			nideas_branch_group8_straight5_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
				OR = {
					has_country_flag = nideas_idea_group8_idea6_complete_cflag
					has_country_flag = nideas_idea_group8_idea9_complete_cflag
				}
			}
			nideas_branch_group8_straight5_complete1_visible = {
				has_country_flag = nideas_idea_group8_idea3_complete_cflag
			}

			#Button6 -> Button3
			nideas_branch_group8_straight4_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight4_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea2_complete_cflag
				has_country_flag = nideas_idea_group8_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight4_complete1_visible = {
				has_country_flag = nideas_idea_group8_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight4_blocked1_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
			}

			#Button9 -> Button3
			nideas_branch_group8_straight4_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight4_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea2_complete_cflag
				has_country_flag = nideas_idea_group8_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight4_complete2_visible = {
				has_country_flag = nideas_idea_group8_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight4_blocked2_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
			}

		#IDEA 4 + PRECEEDING BRANCHES
			#Button4
			nideas_idea_group8_button4_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group8_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button4_complete_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button4_blocked_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
			}

			#OR -> Button4
			nideas_branch_group8_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
			}

		#IDEA 5 + PRECEEDING BRANCH
			#Button5
			nideas_idea_group8_button5_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button5_complete_visible = {
				has_country_flag = nideas_idea_group8_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button5_blocked_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
			}

			#Button4 -> Button5
			nideas_branch_group8_straight2_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight2_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight2_complete1_visible = {
				has_country_flag = nideas_idea_group8_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight2_blocked1_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			#Button6
			nideas_idea_group8_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button6_complete_visible = {
				has_country_flag = nideas_idea_group8_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_idea_group8_button6_blocked_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group8_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group8_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
			}
			nideas_branch_group8_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCHES
			#Button7
			nideas_idea_group8_button7_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group8_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button7_complete_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button7_blocked_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group8_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
			}

		#IDEA 8 + PRECEEDING BRANCH
			#Button8
			nideas_idea_group8_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button8_complete_visible = {
				has_country_flag = nideas_idea_group8_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button8_blocked_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group8_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group8_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
			}

		#IDEA 9 + PRECEEDING BRANCH
			#Button9
			nideas_idea_group8_button9_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button9_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button9_complete_visible = {
				has_country_flag = nideas_idea_group8_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_idea_group8_button9_blocked_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group8_straight2_incomplete4_visible = {
				NOT = { has_country_flag = nideas_idea_group8_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight2_available4_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_navy_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_navy_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group8_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight2_complete4_visible = {
				has_country_flag = nideas_idea_group8_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group8_idea4_complete_cflag }
			}
			nideas_branch_group8_straight2_blocked4_visible = {
				has_country_flag = nideas_idea_group8_idea4_complete_cflag
			}

######################################################################
######################################################################
######################################################################

	### IDEA GROUP 9 - AIR - BOT RIGHT

		#COMPLETE OVERLAY
			nideas_idea_group9_complete_visible = {
				has_country_flag = nideas_idea_group9_idea3_complete_cflag
			}

		#IDEA 1 + OR
			#Button1
			nideas_idea_group9_button1_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea1_complete_cflag }
			}
			nideas_idea_group9_button1_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					has_political_power > 99.99
				}
				else = {
					has_political_power > 149.99
				}
				NOT = { has_country_flag = nideas_idea_group9_idea1_complete_cflag }
			}
			nideas_idea_group9_button1_complete_visible = {
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
			}

			#Button1 -> OR
			nideas_branch_group9_straight1_incomplete1_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group9_idea2_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
				}
			}
			nideas_branch_group9_straight1_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
				OR = {
					NOT = { has_country_flag = nideas_idea_group9_idea2_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
				}
			}
			nideas_branch_group9_straight1_complete1_visible = {
				OR = {
					has_country_flag = nideas_idea_group9_idea2_complete_cflag
					has_country_flag = nideas_idea_group9_idea4_complete_cflag
					has_country_flag = nideas_idea_group9_idea7_complete_cflag
				}
			}

		#IDEA 2 + PRECEEDING BRANCH
			#Button2
			nideas_idea_group9_button2_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea2_complete_cflag }
			}
			nideas_idea_group9_button2_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea2_complete_cflag }
			}
			nideas_idea_group9_button2_complete_visible = {
				has_country_flag = nideas_idea_group9_idea2_complete_cflag
			}

			#OR -> Button2
			nideas_branch_group9_straight1_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea2_complete_cflag }
			}
			nideas_branch_group9_straight1_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea2_complete_cflag }
			}
			nideas_branch_group9_straight1_complete2_visible = {
				has_country_flag = nideas_idea_group9_idea2_complete_cflag
			}

		#IDEA 3 + PRECEEDING BRANCH
			#Button3
			nideas_idea_group9_button3_unavailable_visible = {
				OR = {
					NOT = { has_country_flag = nideas_idea_group9_idea6_complete_cflag }
					NOT = { has_country_flag = nideas_idea_group9_idea9_complete_cflag }
				}
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
			}
			nideas_idea_group9_button3_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea2_complete_cflag
				OR = {
					has_country_flag = nideas_idea_group9_idea6_complete_cflag
					has_country_flag = nideas_idea_group9_idea9_complete_cflag
				}
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
			}
			nideas_idea_group9_button3_complete_visible = {
				has_country_flag = nideas_idea_group9_idea3_complete_cflag
			}

			#Button2 -> Button3
			nideas_branch_group9_straight5_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
			}
			nideas_branch_group9_straight5_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea2_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
				OR = {
					has_country_flag = nideas_idea_group9_idea6_complete_cflag
					has_country_flag = nideas_idea_group9_idea9_complete_cflag
				}
			}
			nideas_branch_group9_straight5_complete1_visible = {
				has_country_flag = nideas_idea_group9_idea3_complete_cflag
			}

			#Button6 -> Button3
			nideas_branch_group9_straight4_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight4_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea2_complete_cflag
				has_country_flag = nideas_idea_group9_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight4_complete1_visible = {
				has_country_flag = nideas_idea_group9_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight4_blocked1_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
			}

			#Button9 -> Button3
			nideas_branch_group9_straight4_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight4_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea2_complete_cflag
				has_country_flag = nideas_idea_group9_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea3_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight4_complete2_visible = {
				has_country_flag = nideas_idea_group9_idea3_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight4_blocked2_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
			}

		#IDEA 4 + PRECEEDING BRANCHES
			#Button4
			nideas_idea_group9_button4_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group9_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button4_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button4_complete_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button4_blocked_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
			}

			#OR -> Button4
			nideas_branch_group9_or_top_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_or_top_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_or_top_complete1_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_or_top_blocked1_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
			}

		#IDEA 5 + PRECEEDING BRANCH
			#Button5
			nideas_idea_group9_button5_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button5_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button5_complete_visible = {
				has_country_flag = nideas_idea_group9_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button5_blocked_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
			}

			#Button4 -> Button5
			nideas_branch_group9_straight2_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight2_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea5_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight2_complete1_visible = {
				has_country_flag = nideas_idea_group9_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight2_blocked1_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
			}

		#IDEA 6 + PRECEEDING BRANCH
			#Button6
			nideas_idea_group9_button6_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button6_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button6_complete_visible = {
				has_country_flag = nideas_idea_group9_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_idea_group9_button6_blocked_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group9_straight2_incomplete2_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight2_available2_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea5_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea6_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight2_complete2_visible = {
				has_country_flag = nideas_idea_group9_idea6_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
			}
			nideas_branch_group9_straight2_blocked2_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
			}

		#IDEA 7 + PRECEEDING BRANCHES
			#Button7
			nideas_idea_group9_button7_unavailable_visible = {
				NOT = {	has_country_flag = nideas_idea_group9_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button7_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button7_complete_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button7_blocked_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
			}

			#OR -> Button7
			nideas_branch_group9_or_bot_incomplete1_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_or_bot_available1_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea1_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea7_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_or_bot_complete1_visible = {
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_or_bot_blocked1_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
			}

		#IDEA 8 + PRECEEDING BRANCH
			#Button8
			nideas_idea_group9_button8_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button8_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button8_complete_visible = {
				has_country_flag = nideas_idea_group9_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button8_blocked_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
			}

			#Button7 -> Button8
			nideas_branch_group9_straight2_incomplete3_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight2_available3_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea7_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea8_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight2_complete3_visible = {
				has_country_flag = nideas_idea_group9_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight2_blocked3_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
			}

		#IDEA 9 + PRECEEDING BRANCH
			#Button9
			nideas_idea_group9_button9_unavailable_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button9_available_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button9_complete_visible = {
				has_country_flag = nideas_idea_group9_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_idea_group9_button9_blocked_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
			}

			#Button5 -> Button6
			nideas_branch_group9_straight2_incomplete4_visible = {
				NOT = { has_country_flag = nideas_idea_group9_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight2_available4_visible = {
				NOT = { has_country_flag = nideas_cw_cflag }
				if = {
					limit = { has_country_flag = nideas_idea_cost_reduced_cflag }
					AND = { has_political_power > 99.99   has_air_experience > 24.99 }
				}
				else = {
					AND = { has_political_power > 149.99   has_air_experience > 49.99 }
				}
				has_country_flag = nideas_idea_group9_idea8_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea9_complete_cflag }
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight2_complete4_visible = {
				has_country_flag = nideas_idea_group9_idea9_complete_cflag
				NOT = { has_country_flag = nideas_idea_group9_idea4_complete_cflag }
			}
			nideas_branch_group9_straight2_blocked4_visible = {
				has_country_flag = nideas_idea_group9_idea4_complete_cflag
			}
		}

		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 = {
			nideas_idea_group1_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group1_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group1_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group1_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group1_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group1_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group1_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group1_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group2_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group3_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group4_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group5_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group6_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group7_button9_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group8_button9_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button1_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button2_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button3_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button4_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button5_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button6_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button7_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button8_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
			nideas_idea_group9_button9_available_click = {
				weight = 2.0
				ai_will_do = {
					factor = 1
				}
			}
		}
	}
}