startList = function() {
	
	if (document.all && document.getElementsByTagName  ) {
	
		var nav =  document.getElementById( "nav" );
		
		if( !nav ) {
			return;
		}
		
		var lis = nav.getElementsByTagName( "TD" );
		var first = true; 
		
		for (i=0; i < lis.length; i++) {

			var node = lis.item(i);
			
			if (node.nodeName=="TD") {
				
				if( first && window.print ) {			
					node.className += " first";
					first = false;
				}	

				node.onmouseover = function() {
					this.className+=" over";
				}


				node.onmouseout = function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
		
	}

}

window.onload = function() {
	startList();
	
	if( (foot = document.getElementById( "footer" ) ) ) {
		foot.style.bottom = "0px";
	}
	if( typeof switch_section == 'function' ) {		
		switch_section();
	}
	if( typeof switch_question == 'function' ) {		
		switch_question();
	}
	if( typeof page == 'function' ) {
		page();
	}
	document.getElementById("content").style.display="block";
}


