more precisely based on your requirements...
Code:
<?php
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();
$geoplugin->locate();
switch ($geoplugin->countryCode) {
case 'US':
$url = 'US.html';
break;
case 'UK':
$url = 'UK.html';
break;
case 'CA':
$url = 'CA.html';
break;
default:
$url = 'default.html';
}
echo "<a href='/{$url}'>Your own country link</a>";
?>