/* body classname */
var path = location.pathname.split( '/' );
var className = '';
for( var i=1; i<path.length; i++ ){
	className += path[i].replace( '.php', '' ) + ' ';
}
document.body.className = className;

/* nav rollovers */
var current;
var over;
function nav1Over( who ){
	current=who.id.substr(5);
	document.getElementById('nav').className = current;
	over = current;
}
function navOut( who ){
	over = null;
	if( window.checkNavTimeout ){
		clearTimeout( window.checkNavTimeout );
	}
	window.checkNavTimeout = setTimeout( 'checkNav()', 50 );
}
function checkNav(){
	if( current && current != over ){
		document.getElementById('nav').className = '';
		current = over = null;		
	}
}
function nav2Over( who ){
	over = who.id.substr(5);
}