<?php 
	
function invicta_get_countries() {

	$countries = array();
	$countries['af'] = 'Afghanistan';
	$countries['al'] = 'Albania';
	$countries['dz'] = 'Algeria';
	$countries['as'] = 'American Samoa';
	$countries['ad'] = 'Andorra';
	$countries['ao'] = 'Angola';
	$countries['ai'] = 'Anguilla';
	$countries['aq'] = 'Antarctica';
	$countries['ag'] = 'Antigua and Barbuda';
	$countries['ar'] = 'Argentina';
	$countries['am'] = 'Armenia';
	$countries['aw'] = 'Aruba';
	$countries['au'] = 'Australia';
	$countries['at'] = 'Austria';
	$countries['az'] = 'Azerbaijan';
	$countries['bh'] = 'Bahrain';
	$countries['bd'] = 'Bangladesh';
	$countries['bb'] = 'Barbados';
	$countries['by'] = 'Belarus';
	$countries['be'] = 'Belgium';
	$countries['bz'] = 'Belize';
	$countries['bj'] = 'Benin';
	$countries['bm'] = 'Bermuda';
	$countries['bt'] = 'Bhutan';
	$countries['bo'] = 'Bolivia';
	$countries['ba'] = 'Bosnia and Herzegovina';
	$countries['bw'] = 'Botswana';
	$countries['bv'] = 'Bouvet Island';
	$countries['br'] = 'Brazil';
	$countries['io'] = 'British Indian Ocean Territory';
	$countries['vg'] = 'British Virgin Islands';
	$countries['bn'] = 'Brunei';
	$countries['bg'] = 'Bulgaria';
	$countries['bf'] = 'Burkina Faso';
	$countries['mm'] = 'Burma';
	$countries['bi'] = 'Burundi';
	$countries['kh'] = 'Cambodia';
	$countries['cm'] = 'Cameroon';
	$countries['ca'] = 'Canada';
	$countries['cv'] = 'Cape Verde';
	$countries['ky'] = 'Cayman Islands';
	$countries['cf'] = 'Central African Republic';
	$countries['td'] = 'Chad';
	$countries['cl'] = 'Chile';
	$countries['cn'] = 'China';
	$countries['cx'] = 'Christmas Island';
	$countries['cc'] = 'Cocos (Keeling) Islands';
	$countries['co'] = 'Colombia';
	$countries['km'] = 'Comoros';
	$countries['cg'] = 'Congo (Brazzaville)';
	$countries['ck'] = 'Cook Islands';
	$countries['cr'] = 'Costa Rica';
	$countries['ci'] = 'Cote d Ivoire';
	$countries['hr'] = 'Croatia';
	$countries['cu'] = 'Cuba';
	$countries['cy'] = 'Cyprus';
	$countries['cz'] = 'Czech Republic';
	$countries['cd'] = 'Democratic Republic of the Congo';
	$countries['dk'] = 'Denmark';
	$countries['dj'] = 'Djibouti';
	$countries['dm'] = 'Dominica';
	$countries['ec'] = 'Ecuador';
	$countries['eg'] = 'Egypt';
	$countries['sv'] = 'El Salvador';
	$countries['gq'] = 'Equatorial Guinea';
	$countries['er'] = 'Eritrea';
	$countries['ee'] = 'Estonia';
	$countries['et'] = 'Ethiopia';
	$countries['fk'] = 'Falkland Islands (Islas Malvinas)';
	$countries['fo'] = 'Faroe Islands';
	$countries['fm'] = 'Federated States of Micronesia';
	$countries['fj'] = 'Fiji';
	$countries['fi'] = 'Finland';
	$countries['fr'] = 'France';
	$countries['gf'] = 'French Guiana';
	$countries['pf'] = 'French Polynesia';
	$countries['tf'] = 'French Southern and Antarctic Lands';
	$countries['ga'] = 'Gabon';
	$countries['ps'] = 'Gaza Strip';
	$countries['ge'] = 'Georgia';
	$countries['de'] = 'Germany';
	$countries['gh'] = 'Ghana';
	$countries['gi'] = 'Gibraltar';
	$countries['gr'] = 'Greece';
	$countries['gl'] = 'Greenland';
	$countries['gd'] = 'Grenada';
	$countries['gu'] = 'Guam';
	$countries['gt'] = 'Guatemala';
	$countries['gg'] = 'Guernsey';
	$countries['gn'] = 'Guinea';
	$countries['gw'] = 'Guinea-Bissau';
	$countries['gy'] = 'Guyana';
	$countries['ht'] = 'Haiti';
	$countries['hm'] = 'Heard Island and McDonald Islands';
	$countries['va'] = 'Vatican City';
	$countries['hn'] = 'Honduras';
	$countries['hk'] = 'Hong Kong';
	$countries['hu'] = 'Hungary';
	$countries['is'] = 'Iceland';
	$countries['in'] = 'India';
	$countries['id'] = 'Indonesia';
	$countries['ir'] = 'Iran';
	$countries['iq'] = 'Iraq';
	$countries['ie'] = 'Ireland';
	$countries['im'] = 'Isle of Man';
	$countries['il'] = 'Israel';
	$countries['it'] = 'Italy';
	$countries['jm'] = 'Jamaica';
	$countries['jp'] = 'Japan';
	$countries['je'] = 'Jersey';
	$countries['jo'] = 'Jordan';
	$countries['kz'] = 'Kazakhstan';
	$countries['ke'] = 'Kenya';
	$countries['ki'] = 'Kiribati';
	$countries['kw'] = 'Kuwait';
	$countries['kg'] = 'Kyrgyzstan';
	$countries['la'] = 'Laos';
	$countries['lv'] = 'Latvia';
	$countries['lb'] = 'Lebanon';
	$countries['ls'] = 'Lesotho';
	$countries['lr'] = 'Liberia';
	$countries['ly'] = 'Libya';
	$countries['li'] = 'Liechtenstein';
	$countries['lt'] = 'Lithuania';
	$countries['lu'] = 'Luxembourg';
	$countries['mo'] = 'Macau';
	$countries['mk'] = 'Macedonia';
	$countries['mg'] = 'Madagascar';
	$countries['mw'] = 'Malawi';
	$countries['my'] = 'Malaysia';
	$countries['mv'] = 'Maldives';
	$countries['ml'] = 'Mali';
	$countries['mt'] = 'Malta';
	$countries['mh'] = 'Marshall Islands';
	$countries['mr'] = 'Mauritania';
	$countries['mu'] = 'Mauritius';
	$countries['yt'] = 'Mayotte';
	$countries['mx'] = 'Mexico';
	$countries['md'] = 'Moldova';
	$countries['mc'] = 'Monaco';
	$countries['mn'] = 'Mongolia';
	$countries['me'] = 'Montenegro';
	$countries['ms'] = 'Montserrat';
	$countries['ma'] = 'Morocco';
	$countries['mz'] = 'Mozambique';
	$countries['na'] = 'Namibia';
	$countries['nr'] = 'Nauru';
	$countries['np'] = 'Nepal';
	$countries['nl'] = 'Netherlands';
	$countries['an'] = 'Netherlands Antilles';
	$countries['nc'] = 'New Caledonia';
	$countries['nz'] = 'New Zealand';
	$countries['ni'] = 'Nicaragua';
	$countries['ne'] = 'Niger';
	$countries['ng'] = 'Nigeria';
	$countries['nu'] = 'Niue';
	$countries['nf'] = 'Norfolk Island';
	$countries['kp'] = 'North Korea';
	$countries['mp'] = 'Northern Mariana Islands';
	$countries['no'] = 'Norway';
	$countries['om'] = 'Oman';
	$countries['pk'] = 'Pakistan';
	$countries['pw'] = 'Palau';
	$countries['pa'] = 'Panama';
	$countries['pg'] = 'Papua New Guinea';
	$countries['py'] = 'Paraguay';
	$countries['pe'] = 'Peru';
	$countries['ph'] = 'Philippines';
	$countries['pn'] = 'Pitcairn Islands';
	$countries['pl'] = 'Poland';
	$countries['pt'] = 'Portugal';
	$countries['pr'] = 'Puerto Rico';
	$countries['qa'] = 'Qatar';
	$countries['ro'] = 'Romania';
	$countries['ru'] = 'Russia';
	$countries['rw'] = 'Rwanda';
	$countries['kn'] = 'Saint Kitts and Nevis';
	$countries['lc'] = 'Saint Lucia';
	$countries['pm'] = 'Saint Pierre and Miquelon';
	$countries['vc'] = 'Saint Vincent and the Grenadines';
	$countries['ws'] = 'Samoa';
	$countries['sm'] = 'San Marino';
	$countries['st'] = 'Sao Tome and Principe';
	$countries['sa'] = 'Saudi Arabia';
	$countries['sn'] = 'Senegal';
	$countries['rs'] = 'Serbia';
	$countries['sc'] = 'Seychelles';
	$countries['sl'] = 'Sierra Leone';
	$countries['sg'] = 'Singapore';
	$countries['sk'] = 'Slovakia';
	$countries['si'] = 'Slovenia';
	$countries['sb'] = 'Solomon Islands';
	$countries['so'] = 'Somalia';
	$countries['za'] = 'South Africa';
	$countries['gs'] = 'South Georgia and the South Sandwich Islands';
	$countries['kr'] = 'South Korea';
	$countries['es'] = 'Spain';
	$countries['lk'] = 'Sri Lanka';
	$countries['sd'] = 'Sudan';
	$countries['sr'] = 'Suriname';
	$countries['sj'] = 'Svalbard';
	$countries['sz'] = 'Swaziland';
	$countries['se'] = 'Sweden';
	$countries['ch'] = 'Switzerland';
	$countries['sy'] = 'Syria';
	$countries['tw'] = 'Taiwan';
	$countries['tj'] = 'Tajikistan';
	$countries['tz'] = 'Tanzania';
	$countries['th'] = 'Thailand';
	$countries['bs'] = 'The Bahamas';
	$countries['do'] = 'The Dominican';
	$countries['gm'] = 'The Gambia';
	$countries['tl'] = 'Timor-Leste';
	$countries['tg'] = 'Togo';
	$countries['tk'] = 'Tokelau';
	$countries['to'] = 'Tonga';
	$countries['tt'] = 'Trinidad and Tobago';
	$countries['tn'] = 'Tunisia';
	$countries['tr'] = 'Turkey';
	$countries['tm'] = 'Turkmenistan';
	$countries['tc'] = 'Turks and Caicos Islands';
	$countries['tv'] = 'Tuvalu';
	$countries['ug'] = 'Uganda';
	$countries['ua'] = 'Ukraine';
	$countries['ae'] = 'United Arab Emirates';
	$countries['gb'] = 'United Kingdom';
	$countries['us'] = 'United States';
	$countries['uy'] = 'Uruguay';
	$countries['uz'] = 'Uzbekistan';
	$countries['vu'] = 'Vanuatu';
	$countries['ve'] = 'Venezuela';
	$countries['vn'] = 'Vietnam';
	$countries['vi'] = 'Virgin Islands';
	$countries['wf'] = 'Wallis and Futuna';
	$countries['eh'] = 'Western Sahara';
	$countries['ye'] = 'Yemen';
	$countries['zm'] = 'Zambia';
	$countries['zw'] = 'Zimbabwe';
	
	$countries = apply_filters( 'invicta_countries', $countries );
	
	return $countries;
	
}

function invicta_get_countries_europe() {

	$countries = array();
	
	$countries['al'] = 'Albania';
	$countries['ad'] = 'Andorra';
	$countries['at'] = 'Austria';
	$countries['az'] = 'Azerbaijan';
	$countries['by'] = 'Belarus';
	$countries['be'] = 'Belgium';
	$countries['ba'] = 'Bosnia and Herzegovina';
	$countries['bg'] = 'Bulgaria';
	$countries['hr'] = 'Croatia';
	$countries['cy'] = 'Cyprus';
	$countries['cz'] = 'Czech Republic';
	$countries['dk'] = 'Denmark';
	$countries['ee'] = 'Estonia';
	$countries['fi'] = 'Finland';
	$countries['fr'] = 'France';
	$countries['ge'] = 'Georgia';
	$countries['de'] = 'Germany';
	$countries['gr'] = 'Greece';
	$countries['va'] = 'Vatican City';
	$countries['hu'] = 'Hungary';
	$countries['is'] = 'Iceland';
	$countries['ie'] = 'Ireland';
	$countries['it'] = 'Italy';
	$countries['lv'] = 'Latvia';
	$countries['li'] = 'Liechtenstein';
	$countries['lt'] = 'Lithuania';
	$countries['lu'] = 'Luxembourg';
	$countries['mk'] = 'Macedonia';
	$countries['mt'] = 'Malta';
	$countries['md'] = 'Moldova';
	$countries['mc'] = 'Monaco';
	$countries['me'] = 'Montenegro';
	$countries['nl'] = 'Netherlands';
	$countries['no'] = 'Norway';
	$countries['pl'] = 'Poland';
	$countries['pt'] = 'Portugal';
	$countries['ro'] = 'Romania';
	$countries['ru'] = 'Russia';
	$countries['sm'] = 'San Marino';
	$countries['rs'] = 'Serbia';
	$countries['sk'] = 'Slovakia';
	$countries['si'] = 'Slovenia';
	$countries['es'] = 'Spain';
	$countries['se'] = 'Sweden';
	$countries['ch'] = 'Switzerland';
	$countries['tr'] = 'Turkey';
	$countries['ua'] = 'Ukraine';
	$countries['gb'] = 'United Kingdom';

	$countries = apply_filters( 'invicta_countries_europe', $countries );
	
	return $countries;
	
}

function invicta_get_countries_usa() {

	$countries = array();
	
	$countries['al'] = 'Alabama';
	/* $countries['ak'] = 'Alaska'; // doesn't fit on the map */
	$countries['az'] = 'Arizona';
	$countries['ar'] = 'Arkansas';
	$countries['ca'] = 'California';
	$countries['co'] = 'Colorado';
	$countries['ct'] = 'Connecticut';
	$countries['de'] = 'Delaware';
	$countries['fl'] = 'Florida';
	$countries['ga'] = 'Georgia';
	/* $countries['hi'] = 'Hawaii'; // doesn't fit on the map */
	$countries['id'] = 'Idaho';
	$countries['il'] = 'Illinois';
	$countries['in'] = 'Indiana';
	$countries['ia'] = 'Iowa';
	$countries['ks'] = 'Kansas';
	$countries['ky'] = 'Kentucky';
	$countries['la'] = 'Louisiana';
	$countries['me'] = 'Maine';
	$countries['md'] = 'Maryland';
	$countries['ma'] = 'Massachusetts';
	$countries['mi'] = 'Michigan';
	$countries['mn'] = 'Minnesota';
	$countries['ms'] = 'Mississippi';
	$countries['mo'] = 'Missouri';
	$countries['mt'] = 'Montana';
	$countries['ne'] = 'Nebraska';
	$countries['nv'] = 'Nevada';
	$countries['nh'] = 'New Hampshire';
	$countries['nj'] = 'New Jersey';
	$countries['nm'] = 'New Mexico';
	$countries['ny'] = 'New York';
	$countries['nc'] = 'North Carolina';
	$countries['nd'] = 'North Dakota';
	$countries['oh'] = 'Ohio';
	$countries['ok'] = 'Oklahoma';
	$countries['or'] = 'Oregon';
	$countries['pa'] = 'Pennsylvania';
	$countries['ri'] = 'Rhode Island';
	$countries['sc'] = 'South Carolina';
	$countries['sd'] = 'South Dakota';
	$countries['tn'] = 'Tennessee';
	$countries['tx'] = 'Texas';
	$countries['ut'] = 'Utah';
	$countries['vt'] = 'Vermont';
	$countries['va'] = 'Virginia';
	$countries['wa'] = 'Washington';
	$countries['wv'] = 'West Virginia';
	$countries['wi'] = 'Wisconsin';
	$countries['wy'] = 'Wyoming';

	$countries = apply_filters( 'invicta_countries_usa', $countries );
	
	return $countries;
	
}
	
?>