<!--
var thecountry=geoip_country_code();

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

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";

// 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') {
    //  allow us to see this (2011-10-11)
	//location.href='http://www.accountedge.com/';
}
else if (thecountry=='CA') {
    // do nothing
   //location.href='http://ca.acclivitysoftware.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';  
}

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

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

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

//-->
 
