////////////////////////////
// go 
// open url in new window

function go(loc)
{
	window.open("http://www."+loc)
}

function go_r(loc)
{
	location.href="http://www."+loc
}

function go_nowww(loc)
{
	window.open("http://"+loc)
}

////////////////////////////
// Mail2com

// send mail to .com address
function Mail2com(domain,rec)
{
	self.location="mailto:"+rec+"@"+domain+".com"
}

///////////////////////////////////////////
// menu

function DisplayMenuItem(shref,sText,sSel)
{
	if (shref==sSel || (shref=="index.shtml" && sSel=="")) {
		document.write('<b>');
	}							
	document.write('<a href="' + shref + '">' + sText + '</a>');
	if (shref==sSel || (shref=="index.shtml" && sSel=="")) {
		document.write('</b>');
		document.write('<img src="img/sel.gif" hspace="6"/>');
	}							
	document.write('<br/>');
	document.write('<br/>');
}

function DisplayMenu(sPage)
{
  var n=sPage.lastIndexOf("/");
  if (n>=0) {
    sPage=sPage.substr(n+1,sPage.length-n-1);
  }
	document.write('<p><br/>');
	DisplayMenuItem("index.shtml",                    "3D Bewegungsanalyse",     sPage);
	DisplayMenuItem("kinematik_dynamik.shtml",        "Kinematik/Dynamik",       sPage);
	DisplayMenuItem("statische_kinematik.shtml",      "Statische Kinematik",     sPage);
	DisplayMenuItem("dynamische_kinematik.shtml",     "Dynamische Kinematik",    sPage);
	DisplayMenuItem("analog_digital_wandler.shtml",   "A/D Wandler",             sPage);
	DisplayMenuItem("bewegungsanalyse_web.shtml",     "Bewegungsanalyse Web",      sPage);
	document.write('</p>');
}

