<!--
// JavaScript Document


function change_language() {

var tr = window.location.pathname;
len = tr.length;
rs = 0;
for (i = len; i > 0; i--) {
vb = tr.substring(i,i+1);

if (vb == "/" && rs ==2) {
	folder2 = tr.substring(i+1,slash2);
	rs = 3;
}

if (vb == "/" && rs ==1) {
	folder1 = tr.substring(i+1,slash1);
	rs = 2;
	slash2 = i;
	folder2 = "ff";
}


if (vb == "/" && rs == 0) {
filename = tr.substring(i+1,len);
rs = 1;
slash1 = i;

if (i == (len-1)) {
	destination = "../jp/index.html";
		return destination;
}
}
}


if (folder1 == "en") {
destination = "../jp/" + filename;
}

if (folder1 == "jp") {
	destination = "../en/" + filename;
}

if (folder2 == "en") {
	destination = "../../jp/" + folder1 + "/" + filename;
	}
	
if (folder2 == "jp") {
	destination = "../../en/" + folder1 + "/" + filename;
	}


return destination;

//parent.location = destination;
}
//-->