// JavaScript Document

<!--
function ReadCookie() {
var NameOfCookie="Country";
if(document.cookie.length > 0)
  {
     begin = document.cookie.indexOf(NameOfCookie+"=");
     if(begin != -1)
     {
        // our cookie was set.
        // The value stored in the cookie is returned from the function
        begin += NameOfCookie.length + 1;
        end = document.cookie.indexOf(";",begin);
        if(end == -1) end = document.cookie.length;
        country=(document.cookie.substring(begin,end));
		if (country=="HongKong")document.location.href='hk/';
		if (country=="Australia")document.location.href='au/'
		if (country=="NewZealand")document.location.href='nz/'

     }
  }
}
function SetCookie(cookieName,cookieValue) {
 var today = new Date();
 var expire = new Date();
var nDays=365
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString()+ "; path=/";
}
//-->