function hideDrop () {
	for ( i = 0 ; i < sections . length ; i ++ ) {
		if ( sections [ i ] . drop ) {
			sections [ i ] . drop . style . display = 'none' ;
		}
	}
}

function showDrop () {
	hideDrop () ;
	if ( sections [ this . order ] . drop ) {
		sections [ this . order ] . drop . style . display = 'block' ;
	}
}

function init () {
	function getFirst ( parent , tag ) {
		re = parent . getElementsByTagName ( tag ) ;
		re = re [ 0 ] ;
		return re ;
	}
	menu = document . getElementById ( 'menu' ) ;
	sections = menu . getElementsByTagName ( 'td' ) ;
	for ( i = 0 ; i < sections . length ; i ++ ) {
		sections [ i ] . h = getFirst ( sections [ i ] , 'a' ) ;
		sections [ i ] . drop = getFirst ( sections [ i ] , 'ul' ) ;
		with ( sections [ i ] ) {
			if ( h ) {
				h . onmouseover = showDrop ;
				h . order = i ;
			}
		}
		if ( sections [ i ] . drop ) {
			sections [ i ] . drop . style . width = sections [ i ] . h . clientWidth + 'px' ;
		}
	}
	document . getElementById ( 'toprow' ) . onmouseover = hideDrop ;
	document . getElementById ( 'header' ) . onmouseover = hideDrop ;
	document . getElementById ( 'content' ) . onmouseover = hideDrop ;
}

var menu , sections ;
window . onload = init ;
