<!--
var thecountry=geoip_country_code();

if (thecountry==null) {
  thecountry='US';
}

if (thecountry=='--') {
  thecountry='ZZ';
}


if (thecountry!='ZZ') {

var OSName="Unknown OS";
if (navigator.platform.indexOf("Win")!=-1) OSName="Windows";
else if (navigator.platform.indexOf("Mac")!=-1) OSName="MacOS";
else if (navigator.platform.indexOf("iPad")!=-1) OSName="MacOS";
else if (navigator.platform.indexOf("iPhone")!=-1) OSName="MacOS";
else if (navigator.platform.indexOf("iPod")!=-1) OSName="MacOS";

if (thecountry=='CA') {
  OSName='MacOS';
}

// all from UK should go to UK, windows or mac (2011/8/2)
if (thecountry=='GB' || thecountry=='IE' || thecountry=='GG' || thecountry=='IM' || thecountry=='JE') {
    OSName="MacOS";
}


if (OSName=='MacOS') {


if (thecountry=='US' || thecountry=='AS' || thecountry=='UM' || thecountry=='VI' || thecountry=='PR') {
    // do nothing
	//location.href='http://www.google.com/';
}
else if (thecountry=='CA') {
   location.href='http://ca.accountedge.com/';
}
else if (thecountry=='GB' || thecountry=='IE' || thecountry=='GG' || thecountry=='IM' || thecountry=='JE') {
    location.href='http://acclivitysoftware.com/uk-redirect/';
}


else if (thecountry=='AU') {
   location.href='http://acclivitysoftware.com/au-redirect/';
}

else if (thecountry=='NZ') {
   location.href='http://acclivitysoftware.com/nz-redirect/';
}

else if (thecountry=='MY' || thecountry=='PH') {
  location.href='http://110.4.40.114/~myobcom1/myob.com.my/productdetails.php?id=6';  
}

else if (thecountry=='SG' || thecountry=='ID') {
   location.href='http://www.myob.com.sg/productdetails.php?id=7';  
}

else if (thecountry=='HK') {
   location.href='http://www.myob.com.hk/productdetails.php?id=9';  
}


else if (thecountry=='ZA' || thecountry=='KE' || thecountry=='NG') {
   location.href='http://www.sa.accountingmadeclear.com/';  
}


else if (thecountry=='AE' || thecountry=='OM' || thecountry=='SA' || thecountry=='QA' || thecountry=='BH') {
   location.href='http://www.uae.accountingmadeclear.com/';  
}


//ROW, in this case international
else {
   location.href='http://intl.accountedge.com/'; 
}

} // end of if (OSName=='MacOS') {

} // end of if (thecountry!='ZZ') {

//-->
 
