joint_focus = {
	id = Alais_pact
	icon = GFX_focus_generic_rubber

	x = 0
	y = 0

	offset = {
		x = 20
		y = 4
		trigger = {
			tag = USA
		}
	}
    offset = {
		x = 27
		y = 0
		trigger = {
			tag = ENG
		}
	}
    offset = {
		x = 52
		y = 0
		trigger = {
			tag = AST
		}
	}

	offset = {
		x = 36
		y = 0
		trigger = {
			tag = CAN
		}
	}

	offset = {
		x = 30
		y = 0
		trigger = {
			tag = SAF
		}
	}
	offset = {  
		x = -4
		y = 0 
		trigger = {
			tag = FRA
            has_completed_focus = FRA_appeal_to_the_french_nation
		}
	}
    
	offset = {
		x = 0
		y = 5
		trigger = {
			tag = RAJ
		}
	}

	cost = 5

	text_icon = Alais_focus_style

	available = {
        has_war_with = JAP
        JAP = { controls_state = 336 }
           OR = {
               JAP = {
                    controls_state = 672
                    controls_state = 335 
                }
                JAP = {
                    controls_state = 333
                    controls_state = 334
                } 
            }
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.1
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}
}
joint_focus = {
	id = Alais_pact2
	icon = GFX_focus_generic_rubber

	x = -1
	y = 1
	prerequisite = { focus = Alais_pact }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.1
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}
}
joint_focus = {
	id = Alais_pact3
	icon = GFX_focus_generic_rubber

	x = 1
	y = 1
	prerequisite = { focus = Alais_pact }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.1
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}
}
joint_focus = {
	id = Alais_pact4
	icon = GFX_focus_generic_rubber

	x = -4
	y = 2
	prerequisite = { focus = Alais_pact2 }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.1
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}
}
joint_focus = {
	id = Alais_pact5
	icon = GFX_focus_generic_rubber_plantations

	x = 0
	y = 2
	prerequisite = { focus = Alais_pact3 focus = Alais_pact2 }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.15
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}
	completion_reward_joint_originator = {
		random_core_state = { 
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = synthetic_refinery
					level = 3
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = USA_rubber_reserve_company
				bonus = 1.0
				uses = 1
				category = synth_resources
			}
	}

}
joint_focus = {
	id = Alais_pact6
	icon = GFX_focus_generic_rubber_plantations

	x = -2
	y = 2
	prerequisite = {  focus = Alais_pact2 }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}
	completion_reward_joint_originator = {
		random_core_state = { 
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = synthetic_refinery
					level = 3
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = USA_rubber_reserve_company
				bonus = 1.0
				uses = 1
				category = synth_resources
			}
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.15
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}
}
joint_focus = {
	id = Alais_pact7
	icon = GFX_focus_generic_rubber_plantations

	x = -3
	y = 3
	prerequisite = {  focus = Alais_pact4 focus = Alais_pact6 }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}
	completion_reward_joint_originator = {
		random_core_state = { 
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = synthetic_refinery
					level = 3
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = USA_rubber_reserve_company
				bonus = 1.0
				uses = 1
				category = synth_resources
			}
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.15
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}

}
joint_focus = {
	id = Alais_pact8
	icon = GFX_focus_generic_rubber_plantations

	x = 1
	y = 3
	prerequisite = {  focus = Alais_pact5  }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}
	completion_reward_joint_originator = {
		random_core_state = { 
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = synthetic_refinery
					level = 3
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = USA_rubber_reserve_company
				bonus = 1.0
				uses = 1
				category = synth_resources
			}
	}

	completion_reward = {
            custom_effect_tooltip =USA_civilian_offensive_info 
			add_to_variable = {
				var = USA_production_speed_synthetic_refinery_factor
				value = 0.15
				tooltip = USA_production_speed_synthetic_refinery_factor_tt
			}
	}

}
joint_focus = {
	id = Alais_pact9
	icon = GFX_focus_NORDIC_mon_materiel

	x = -1
	y = 4
	prerequisite = {  focus = Alais_pact7  }
	prerequisite = {  focus = Alais_pact8  }
	relative_position_id = Alais_pact

	cost = 5

	text_icon = Alais_focus_style

	available = {
		or = {
				date > 1942.01.01
			    if = {
			      date > 1941.01.01
				  USA = {
				  exists = no
			      }
			    }
			}
    }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = yes

	bypass = {

	}

	ai_will_do = {
		factor = 0
	}

	completion_reward = {
           	add_tech_bonus = {
			bonus = 2.0
		    uses = 2
			category = artillery
		 }
			add_tech_bonus = {
				name = armor_bonus
				bonus = 1.0
				uses = 2
				category = armor
			}
			if = {
				limit = { 
					not = {
						has_tech = amphibious_drive 
					}
				}
				set_technology = { amphibious_drive = 1 }				
			}
	}

}  