Change a link domain extenstion based on location
<p>Ok this is a getting a bit outside of my jQuery knowledge but I have managed to get the country of the person visiting the website:</p>

<pre><code>&lt;script type='text/javascript'&gt;
$(window).load(function(){
$.getJSON('http://api.wipmania.com/jsonp?callback=?', function (data) {
  $("#hello").html(
        'Country: ' + data.address.country);
});
});
&lt;/script&gt;

&lt;p id="hello"&gt;&lt;/p&gt;
</code></pre>

<p>Now what I'm struggling with is I have a basic link</p>

<pre><code>&lt;a href="http://www.google.com" id="global"&gt;Google&lt;/a&gt;
</code></pre>

<p>and I want to change the url's extension based on location e.g. </p>

<pre><code>if data.address.country = Australia change "www.google.com" to "www.google.com.au"
or if data.address.country = New Zealand change "www.google.com" to "www.google.co.nz"
or if data.address.country = Any thing else leave it as is "www.google.com"
</code></pre>

<p>I know that's no real code but hopefully its clear enough that you know where i'm coming from, possibly make the code generic so I can add other locations in the future.</p>
