﻿// JavaScript Document


// Path transformation
// Modified by NSH, dated April 21 2008
//

  var loc = location.href;
  var path = location.pathname;

  if (loc.indexOf("#") != -1) {
    loc = loc.substr(0,loc.indexOf("#"));
  }
  if (path == "/") { 
    locationJpn =loc + "jpn/";
    locationChi =loc + "zh/";
  } else {
    locationJpn =loc.replace(path,"/jpn"+path);
    locationChi =loc.replace(path,"/zh"+path);
  }

with (document) {
	write('<li><a href="' + locationJpn + '" lang="ja">日本語</a></li>');
	write('<li><a href="' + locationChi + '" lang="zh">中国语</a></li>');
}
