function lightLink() { 
	if ( document.documentElement )
	{
	document.getElementById('nP').style.backgroundColor = "#ffffcc";
	document.getElementById('nP').style.color = "#0000ff";
	document.getElementById('nL').style.backgroundColor = "#ffffff";
	document.getElementById('nL').style.color = "#0000ff";
	}
	else { return false; }
}

function darkLink() { 
	if ( document.documentElement )
	{
	document.getElementById('nP').style.backgroundColor = "#eff0f5";
	document.getElementById('nP').style.color = "#0000ff";
	document.getElementById('nL').style.backgroundColor = "#eff0f5";
	document.getElementById('nL').style.color = "#0000ff";
	}
	else { return false; }
}


<!--------- Mzi.js ----->

function thisNt()
{
	if (document.documentElement)
	{
	document.write("<div id\=\"thisNoteB\">");
	document.write("The object <span class\=\"eg\"><em>document.documentElement<\/em><\/span> is the top object of the DOM tree structure.");
	document.write("<br \/>\x20<br \/>Browsers such as NetNav4 and Opera6, etc., will not recognize it and should jump over this part of the script.");
	document.write("<p class\=\"c6\" style\=\"font-size\:100\%\;\">\x5B<a style\=\"background-color\:\#ffffcc\;\" ");
	document.write("href\=\"javascript\:void\(0\)\;\" onclick\=\"closeNote\(\)\;\" keypress\=\"closeNote\(\)\;\">");
	document.write("Close this Note<\/a>\x5D<\/p>");
	document.write("<\/div>");
	return;
	}
}

function closeNote()
{
	document.getElementById("thisNoteB").style.display="none";
}

function tellIF() 
{
	if (document.documentElement)
	{
	document.getElementById("thisNoteB").style.display="block";
	return; 
	}

	else
	{
	alert("The object \"document.documentElement\" is the top object of the DOM tree structure.\n\nBrowsers such as NetNav4 and Opera6, etc., will not recognize it and should jump over this part of the script.");
	}
}

function tellELSE() 
{
	alert("Earlier browsers should jump into the ELSE of the script. The javascript alert object is an early javascript object, processed by nearly all browsers.\n\nWe can write the same material into an alert message as we would write into our DOM handled element. Visitors with earlier browsers should therefore obtain the same content, or so we should hope.");
}



<!--------- examples begin ----->

function showOurExample4() 
{
	if ( document.documentElement )
		{ 
		document.getElementById("ourExample4").style.display="block"; 
		setTimeout("document.getElementById('ourExample4').style.display='none';",2000);
		return;
		}
	else
		{ 
		alert("The effects can be seen through MSIE5.5\+, Net6\+, and Opera7\+."); 
		}
}

function showOurExample5() 
{
	if ( document.documentElement )
		{ 
		document.getElementById("ourExample5").style.display="block"; 
		setTimeout("document.getElementById('ourExample5').style.display='none';",4000);
		return;
		}
	else
		{ 
		alert("The effects can be seen through MSIE5.5\+, Net6\+, and Opera7\+."); 
		}
}

function showOurExample6() 
{
	if ( document.documentElement )
		{ 
		document.getElementById("ourExample6").style.display="block"; 
		setTimeout("document.getElementById('ourExample6').style.display='none';",3000);
		return;
		}
	else
		{ 
		alert("The effects can be seen through MSIE5.5\+, Net6\+, and Opera7\+."); 
		}
}
