User:Ccsmith/common.js

$(document).ready(function{

$("#northAmericaButton").click(function{   $("#northAmericanCountries").show;    $("#southAmericanCountries").hide;    $("#europeCountries").hide;    $("#Australia_OceaniaCountries").hide;    }); $("#southAmericaButton").click(function{   $("#southAmericanCountries").show;    $("#northAmericanCountries").hide;     $("#europeCountries").hide;    $("#Australia_OceaniaCountries").hide;  }); $("#europeButton").click(function{ 	 $("#europeCountries").show;    $("#northAmericanCountries").hide;    $("#southAmericanCountries").hide;    $("#Australia_OceaniaCountries").hide;      }); $("#Australia_OceaniaButton").click(function{ 	 $("#Australia_OceaniaCountries").show;  	 $("#northAmericanCountries").hide;    $("#southAmericanCountries").hide;    $("#europeCountries").hide;    });

$(".northAmericanExitIcon").click(function{ $("#northAmericanCountries").hide; }); $("#mexico").click(function{ 	$("#mexicoStates").show;  	$("#northAmericanCountries").hide;  }); $("#northAmericaButton").click(function{ $("this").hide; }); });