
document.write('<div id="home_nav">');
document.write('<ul>');

var navlink = location.href;

if(navlink.indexOf("/whatsnew/")!= -1){
	document.write('<li class="n1_active"><a href="/eng/whatsnew/index.html"></a></li>');
}else{
	document.write('<li class="n1"><span></span><a href="/eng/whatsnew/index.html"></a></li>');
}

if(navlink.indexOf("/getting_around/")!= -1 || navlink.indexOf("/lr_bus/")!= -1 || navlink.indexOf("/jplanner/")!= -1){
	document.write('<li class="n2_active"><a href="/eng/getting_around/index.html"></a></li>');
}else{
	document.write('<li class="n2"><span></span><a href="/eng/getting_around/index.html"></a></li>');
}


if(navlink.indexOf("/fares_tickets/")!= -1 || navlink.indexOf("/ael/")!= -1){
	document.write('<li class="n3_active"><a href="/eng/fares_tickets/index.html"></a></li>');
}else{
	document.write('<li class="n3"><span></span><a href="/eng/fares_tickets/index.html"></a></li>');
}

if(navlink.indexOf("/tourist/")!= -1){
	document.write('<li class="n4_active"><a href="/eng/tourist/index.html"></a></li>');
}else{
	document.write('<li class="n4"><span></span><a href="/eng/tourist/index.html"></a></li>');
}

if(navlink.indexOf("/mtrclub/")!= -1){
	document.write('<li class="n5_active"><a href="/mtrclub/index.php?lang=eng"></a></li>');
}else{
	document.write('<li class="n5"><span></span><a href="/mtrclub/index.php?lang=eng"></a></li>');
}

if(navlink.indexOf("/shopping/")!= -1 || navlink.indexOf("/mtrshop_engine/")!= -1){
	document.write('<li class="n6_active"><a href="/eng/shopping/index.html"></a></li>');
}else{
	document.write('<li class="n6"><span></span><a href="/eng/shopping/index.html"></a></li>');
}

if(navlink.indexOf("/community/")!= -1){
	document.write('<li class="n7_active"><a href="/eng/community/index.html"></a></li>');
}else{
	document.write('<li class="n7"><span></span><a href="/eng/community/index.html"></a></li>');
}

document.write('</ul>');
document.write('</div>');


if(navlink.indexOf("/mtrclub/")!= -1 || navlink.indexOf("/ael/")!= -1){
	if (location.protocol == "http:") {
	  path = 'https'+location.href.substring(4);
		window.location.replace(path);
	}
} else {
	if (location.protocol == "https:") {
	  path = 'http'+location.href.substring(5);
		window.location.replace(path);
	}
}
