var IS_DHTML_BROWSER = true,
		theAgent = navigator.userAgent.toLowerCase(),
		isAOL = ( theAgent.indexOf( "aol" ) != -1 ) || ( theAgent.indexOf( "iweng" ) != -1 ),
		isOpera = ( theAgent.indexOf( "opera" ) != -1 ),
		isWebTV = ( theAgent.indexOf( "webtv" ) != -1 ),
		IS_STANDARD = false,
		IS_NS4 = false,
		IS_IE4 = false;


if ( isWebTV )
	IS_DHTML_BROWSER = false;

if ( ( navigator.appVersion.indexOf( "3." ) != 0 ) &&
	  ( navigator.appVersion.indexOf( "2." ) != 0 ) &&
	  ( navigator.appVersion.indexOf( "1." ) != 0 ) &&
	  IS_DHTML_BROWSER ) {

	if ( ( navigator.appName.indexOf( 'Netscape' ) == 0 ) && 
	  	  ( navigator.appVersion.indexOf( "4." ) == 0 ) ) 
		IS_NS4 = true;

	if ( navigator.userAgent.indexOf( "MSIE 4" ) == -1 ) {

		if ( IS_NS4 == false ) {

			if ( document.getElementsByTagName("*") )
				IS_STANDARD = true;
			else {

				IS_IE4 = true;
			}
		}
	}
	else { // IE4:

		IS_IE4 = true;
	}
}
else {

	IS_DHTML_BROWSER = false;
}


function SetLayerColor( lay, col ) {

	if ( IS_DHTML_BROWSER ) {

		if ( IS_STANDARD || isOpera )
			eval( "document.getElementById( '" + lay + "' ).style.color = '" + col + "';" );
//		else if ( IS_NS4 )
//			eval( "document.menu.document." + lay + ".color = '" + col + "';" );
		else if ( IS_IE4 )
			eval( "document.all." + lay + ".style.color = '" + col + "';" );
	}
}

var numMenuItems = 1;
var currentItem = 0;
function hl( num ) {

	for ( var i = 1; i <= numMenuItems; i++ ) 
		if ( i == num )
			SetLayerColor( 'm' + i.toString(), '#ffcc33' );
		else
			SetLayerColor( 'm' + i.toString(), '#ffffff' );
	currentItem = num;
}

function over( num ) {

	SetLayerColor( 'm' + num.toString(), '#ffcc33' );
}

function out( num ) {

	if ( num != currentItem )
	        SetLayerColor( 'm' + num.toString(), '#ffffff' );
}


