// JavaScript Document

// function to show / hide our sub menus
function showHideMenu( i ) {
	var target = document.getElementById( 'menu_top_' + i );
	// swap out the td class
	if( target.className == 'menu_top_item' ) {
		target.className = 'menu_top_item_hover';
	} else if( target.className == 'menu_top_item_hover' ) {
		target.className = 'menu_top_item';
	}	else if( target.className == 'menu_top_item_highlight' ) {
		target.className = 'menu_top_item_highlight_hover';
	} else if( target.className == 'menu_top_item_highlight_hover' ) {
		target.className = 'menu_top_item_highlight';
	}
	
	// handle the div menus	
	for( n=1; n<=9; n++ ) {
  	var target = document.getElementById( 'menu_drop_' + n );
  	if( target ) {
   		if( n == i ) {
				if( target.style.visibility == 'hidden' ) {
					target.style.visibility = 'visible';
				} else {
					target.style.visibility = 'hidden';
				}
   		} else {
				target.style.visibility = 'hidden';
			}
		}
	}
}

// this is for standard css styles 1 column submenus 
function highLightRow( target ) {
	if( target.className == 'menuSlice_off' ) {
		target.className = 'menuSlice_hover';
	} else if( target.className == 'menuSlice_hover' ) {
		target.className = 'menuSlice_off';
	} else if( target.className == 'menuSlice_highlight' ) {
		target.className = 'menuSlice_highlight_hover';
	} else if( target.className == 'menuSlice_highlight_hover' ) {
		target.className = 'menuSlice_highlight';
	}
}
