/*
startList = function() {
// Required update: if the page has no primary nav, don't do anything, don't give an error.
  if (document.all&&document.getElementById) {
    navRoot = document.getElementById("navbar");
    if (navRoot) {
      navRoot = navRoot.childNodes[0]; // switch to <ul>
      for (var i=0; i < navRoot.childNodes.length; i++) {
        node = navRoot.childNodes[i];
        if (node.nodeName=="LI") {
          node.onmouseover=function() {
            this.className+="over";
          }
          node.onmouseout=function() {
            this.className=this.className.replace("over", "");
          }
} } } } }


execOnLoad = function() {
 startList();
}

window.onload=execOnLoad;
*/
/** ------------------------ Utilities functions ----------------------------- */

function emailAddress(host, user) {
	document.write(user + '@' + host);
}

/**
 * Writes out email address.
 * @param host the host name
 * @param user the user name
 * @param returnOnly if true, return the email address instead of write it out
 * @return the email address
 */
function emailAddress(host, user, returnOnly) {
	if(! returnOnly) {
		document.write("<a href='mailto:");
		document.write(user + '@' + host);
		document.write("'>");
		document.write(user + '@' + host);
		document.write("</a>");
	}
	return user + '@' + host;
}

function emailSG(returnOnly) {
	emailAddress('insprise.com', 'asia', returnOnly);
}

function emailCN(returnOnly) {
	emailAddress('insprise.com', 'china', returnOnly);
}

function emailIE(returnOnly) {
	emailAddress('insprise.com', 'europe', returnOnly);
}

function emailHr(returnOnly) {
	emailAddress('insprise.com', 'hr', returnOnly);
}

