// run through all the links, if we are where we are
// then add a class of "insection" to the links
function createHereLinks()
{
	a_hrefs = document.getElementsByTagName('a');
	for(i=0;i<a_hrefs.length;i++)
		if(a_hrefs[i].href == location.href)
			a_hrefs[i].className += ' insection';
}

// a catchall init() function. if you need other things fired
// onload, put them in here
function init()
{
	createHereLinks();
}

// this glue that attaches the init() function to the body
window.onload = init;