/* This doesn't work for IE 5. You really need a better browser. */
function attach_menu() {
if ((navigator.appName.indexOf("Internet Explorer") != -1) && (navigator.appVersion.charAt(0) == '4')) return;
x = '';
x += '<ul><li class="mtop"><a href="/">Home<!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/faq/"><span class="nodrop">F.A.Q.</span></a></li>\n';
x += '<li><a href="/terms-and-conditions/"><span class="nodrop">T & C</span></a></li>\n';
x += '<li><a href="/site-map/"><span class="nodrop">Site map</span></a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul><ul><li class="mtop"><a href="/translation/">Translation<!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/translation/free/"><span class="nodrop">Free translation</span></a></li>\n';
x += '<li><a href="/translation/business-card/"><span class="drop"><span>Business cards</span>&raquo;</span><!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/translation/business-card/printing/">&nbsp;Printing your cards</a></li>\n';
x += '<li><a href="/translation/business-card/qr-code/">&nbsp;QR codes</a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li>\n';
x += '<li><a href="/translation/pricing/"><span class="nodrop">Translation pricing</span></a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul><ul><li class="mtop"><a href="/typesetting/">Typesetting<!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/typesetting/japanese-fonts/"><span class="nodrop">Japanese fonts</span></a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul><ul><li class="mtop"><a href="/portfolio/">Portfolio<!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/portfolio/sudoku/"><span class="drop"><span>Sudoku</span>&raquo;</span><!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/portfolio/sudoku/solver/">&nbsp;Sudoku solver</a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li>\n';
x += '<li><a href="/portfolio/playstation-symbols/"><span class="nodrop">"Playstation" symbols</span></a></li>\n';
x += '<li><a href="/portfolio/question-of-sport/"><span class="nodrop">A Question of Sport</span></a></li>\n';
x += '<li><a href="/portfolio/rebus/"><span class="nodrop">Word puzzle</span></a></li>\n';
x += '<li><a href="/portfolio/song-sheet/"><span class="nodrop">Bilingual song sheet</span></a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul><ul><li class="mtop"><a href="/dictionaries/">Dictionaries<!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/your-name-in-japanese/"><span class="nodrop">Your name in Japanese</span></a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul><ul><li class="mtop"><a href="/contact/">Contact<!--[if gt IE 6]><!--></a><!--<![endif]--><!--[if lte IE 6]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]--><ul>\n';
x += '<li><a href="/contact/public-key/"><span class="nodrop">PGP public key</span></a></li>\n';
x += '</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul>\n';

thispage = new RegExp('(<a href="' + location.pathname + '")[^>]*>','gim');
youarehere = "$1 id=\"yah\" title=\"(You are here)\" onclick=\"return false\">";
x = x.replace(thispage,youarehere);
document.getElementById('menu').innerHTML = x;
if (navigator.appName.indexOf("Opera") != -1) fixOperaCollapsingWidths();

}
function fixOperaCollapsingWidths()
{
	n = document.getElementById('menu');
	c = n.childNodes;
	for (i=c.length-1; i>0; i--) {
		if (c[i].firstChild) {
			c[i].firstChild.style.left = c[i].firstChild.offsetLeft + 'px';
			c[i].firstChild.style.position = 'absolute';
		}
	}
}
