function TTLFNewsChooser() {
	var prefix = "../../" ;
	var section = "" ;
	if ( document.location.pathname.search( /.*\/ttlf\/news.html/ ) >= 0 ) {
		prefix = "news/" ;
	}
	else {
		var sectregexp = new RegExp( "^.*/([^/]+/[^/]+)/[^/]*$", "" ) ;
		var matches = sectregexp.exec( document.location.pathname ) ;
		if ( matches != null ) section = matches[1] ;
	}

	function menuitem( s, n ) {
		if ( section == s ) {
			document.writeln( "<li class=\"ttlf_sidebar_highlight\">" + n + "</li>" ) ;
		}
		else {
			document.writeln( "<li><a href=\"" + prefix + s + "/\">" + n + "</a></li>" ) ;
		}
	}
	document.write(	
		"<h2>EU Technology Law</h2>\n",
		"<ul>\n"
	) ;
	menuitem( "eu/bi", "Biotechnology" ) ;
	menuitem( "eu/it", "Information Technology" ) ;
	menuitem( "eu/ip", "Intellectual Property" ) ;
	menuitem( "eu/na", "Nanotechnology" ) ;
	menuitem( "eu/sp", "Space" ) ;
	document.write(	
		"</ul>\n",
		"<h2 class=\"divider\">US Technology Law</h2>\n",
		"<ul>\n"
	) ;
	menuitem( "us/bi", "Biotechnology" ) ;
	menuitem( "us/it", "Information Technology" ) ;
	menuitem( "us/ip", "Intellectual Property" ) ;
	menuitem( "us/na", "Nanotechnology" ) ;
	menuitem( "us/sp", "Space" ) ;
	document.write(
		"</ul>\n"
	) ;
}

function TTLFNewsLink() {
	var e = document.getElementById("ttlfnewslink") ;
	if ( e ) e.style["fontWeight"] = "bold" ;
}