political_decisions = {
	form_Portugal-Brazil = {
		picture = upb
		potential = {
			OR = {
				tag = BRZ
				tag = POR
			}
			NOT = {
				exists = UPB
			}
		}	
		allow = {
			war = no
			BRZ = {
					OR = {
						OR = {
							owned_by = THIS
							OR = { 
								in_sphere = THIS
								vassal_of = THIS }
						}
					}
			}
			POR = {
				all_core = {
					OR = {
						OR = {
							owned_by = THIS
							OR = { 
								in_sphere = THIS
								vassal_of = THIS }
						}
					}
				}
			}
		}
		
		effect = {
			prestige = 15
			URU = {
				all_core = { add_core = THIS }
			}
			PRG = {
				all_core = { add_core = THIS }
			}
			any_country = {
				limit = {
					OR = {
						tag = BRZ
						tag = POR 
					}
					OR = { in_sphere = THIS
					vassal_of = THIS }
					NOT = {
						tag = THIS
					}
				}
				annex_to = THIS
			}
			POR = { all_core = { add_core = UPB } }	
			BRZ = { all_core = { add_core = UPB } }	
			add_accepted_culture = 	brazilian
			add_accepted_culture = portuguese
			change_tag = UPB
		}
		ai_will_do = {
			factor = 1
		}
	}
	move_capital_to_rio = {
		picture = upb
		potential = {
			tag = UPB
			NOT = { has_country_flag = moved_capital_to_rio }
			owns = 2447
		}
		allow = {
			impressionism = 1
		}
		effect = {
			capital = 2447
			prestige = 20
			set_country_flag = moved_capital_to_rio
		}
	}
	form_iberia_UPB = {
		picture = iberia
		potential = {
			tag = UPB  
			is_greater_power = yes
		}
		allow = {
			war=no
			SPA = {
                all_core = {
					OR = {
                    OR = {
                        owned_by = THIS
                        owner = {
                            in_sphere = THIS
                            OR = {
                                is_vassal = no
                                vassal_of = THIS
                            }
                        }
				        owner = {
                                vassal_of = THIS
                            }
                        }
                    }
				}
			}
			UPB = {
                all_core = {
					OR = {
                    OR = {
                        owned_by = THIS
                        owner = {
                            in_sphere = THIS
                            OR = {
                                is_vassal = no
                                vassal_of = THIS
                            }
                        }
				        owner = {
                                vassal_of = THIS
                            }
                        }
                    }
				}
			}
			nationalism_n_imperialism = 1
			is_greater_power=yes
		}
		effect = {
			prestige = 10
			change_tag = IBE
			SPA = { all_core = { limit = { continent = europe } add_core = THIS } } 
			primary_culture = portuguese
			add_accepted_culture = spanish
			add_accepted_culture = basque
			add_accepted_culture = catalan
		}
	}	
}