Geocode plugin & page redirection
<p>I got the following code but the "if" part is not working, anyone can help me? Many thanks~</p>

<pre><code>&lt;!-- auto detect visitor ip and redirect start --&gt;
&lt;script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"&gt;&lt;/script&gt;
&lt;script language="Javascript"&gt; 
    var mylocation=geoplugin_countryCode();
    if (mylocation="AU") {
    window.location.href='http://www.propertyhere.com/Country/AU/search-to-buy'}
    else if (mylocation="CA") {
    window.location.href='http://www.propertyhere.com/Country/CA/search-to-buy'}
    else if (mylocation="CN") {
    window.location.href='http://www.propertyhere.com/Country/CN/search-to-buy'}
    else if (mylocation="NZ") {
    window.location.href='http://www.propertyhere.com/Country/NZ/search-to-buy'}
    else if (mylocation="RU") {
    window.location.href='http://www.propertyhere.com/Country/RU/search-to-buy'}
    else if (mylocation="US") {
    window.location.href='http://www.propertyhere.com/Country/US/search-to-buy'}
    else {
    window.location.href='http://www.propertyhere.com/network'}
&lt;/script&gt;
&lt;!-- auto detect visitor ip and redirect end --&gt;
</code></pre>
