jasite = 'www.jpl.co.jp';
ensite = 'www.jpl.com';

function QuickLink() {
	href = new Array();
	text = new Array();
	if(location.hostname == jasite) {
		href[0] = ensite;
		text[0] = 'English';
		text[1] = 'サイトマップ';
		text[2] = 'お問い合わせ';
	} else {
		href[0] = jasite;
		text[0] = 'Japanese';
		text[1] = 'Site map';
		text[2] = 'Contact us';
	}
	href[0] = 'http://' + href[0] + location.pathname;
	href[1] = '/map.html';
	href[2] = '/information/contact.html';
	document.open();
	for(i=0; i<href.length; i++) {
		if(i>0) { document.write(' | '); }
		document.write('<a href="'+href[i]+'">'+text[i]+'</a>');
	}
	document.close();
}
function QuickLink2() {
	dir = new Array();
	dir = location.pathname.split("/");
	href = new Array('/information/agent.html','/information/company.html','/products/guard/guard.html','/products/digital/DIGITAL-360.html','/products/dt/features.html','/products/smt/RF-460.html');
	if(location.hostname == jasite) {
		text = new Array('海外代理店','会社概要','徘徊性老人ガードシステム','デジタル機器','ハードディスク破壊装置','SMT関連機器');
	} else {
		text = new Array('Overseas agent','Our company','Safeguard system','Digital equipment','Hard disk Data Terminator','SMT related equipment','Site map');
	}
	if(dir.length >= 3) {
		switch(dir[2]) {
		case 'agent.html':
			num = 0; break;
		case 'company.html':
			num = 1; break;
		case 'guard':
			num = 2; break;
		case 'digital':
			num = 3; break;
		case 'dt':
			num = 4; break;
		default:
			num = 5; break;
		}
	} else { num = 6; }
	document.open();
	document.writeln('<ul>');
	for(i=0; i<=5; i++) {
		if(i != num) { document.writeln('<li><a href="'+href[i]+'">'+text[i]+'</a></li>'); }
	}
	document.writeln('</ul><br style="clear:right;">');
	document.close();
}
