<!--
	function addFuncs()
	{
		// Add attachment hide/show functionality.
		// li.entry > div.body > div = attachment
		var div = document.getElementsByTagName("DIV");
		var bodies = new Array();
		var i, j, k;
		for ( i = 0; i < div.length; i++ )
		{
			if ( div[i].className == "body" )
				bodies[bodies.length] = div[i];
		}
		for ( i = 0; i < bodies.length; i++ )
		{
			var attachments = bodies[i].getElementsByTagName("DIV");
			for ( j = 0; j < attachments.length; j++ )
			{
				// Add a toggle event.
				attachments[j].onclick	=	function()
											{
												var img = this.getElementsByTagName("IMG");
												for ( var i = 0; i < img.length; i++ )
												{
													if (( img[i].style.display == "none" ) || ( img[i].style.display == "" ))
														img[i].style.display = "inline";
													else
														img[i].style.display = "none";
												}
											}
				// Fix CSS in IE.
				if ( document.all )
				{
					attachments[j].onmouseover 	= function() { this.className = "over"; }
					attachments[j].onmouseout 	= function() { this.className = "out"; }
				}
				// Add some usage information to the title block.
				var span = attachments[j].getElementsByTagName("SPAN");
				if ( span.length > 0 )
				{
					var newspan = document.createElement("SPAN");
					newspan.className = "screenOnly";
					newspan.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(click to toggle the display of this attachment)";
					span[0].appendChild(newspan);
				}
			}
		}
	}
	function addLinks()
	{
		var div = document.getElementsByTagName("LI");
		var entries = new Array();
		var i, j, k;
		// Grab all entries.
		for ( i = 0; i < div.length; i++ )
		{
			if ( div[i].className == "entry" )
				entries[entries.length] = div[i];
		}
		// Search for links.
		for ( i = 0; i < entries.length; i++ )
		{
			var children = entries[i].getElementsByTagName("*");	
			var links = new Array();
			// Find links.
			for ( j = 0; j < children.length; j++ )
			{
				if ( children[j].getAttribute("href") || children[j].getAttribute("cite") )
				{
					var address;
					if ( children[j].getAttribute("href") )
						address = children[j].href;
					else 
						address = children[j].cite;
					links[links.length] = address;
					var note = document.createElement("SUP");
					note.className = "printOnly";
					note.appendChild(document.createTextNode(links.length));
					children[j].appendChild(note);
				}
			}
			// Create links section.
			if ( links.length > 0 )
			{
				var newdiv = document.createElement("DIV");
				newdiv.className = "links printOnly";
				var list = document.createElement("OL");
				for ( k = 0; k < links.length; k++ )
				{
					var li = document.createElement("LI");
					var thelink = links[k];
					if ( thelink.length > 140 )
						thelink = thelink.substring(0,140) + "<br/>" + thelink.substring(140,thelink.length);
					li.innerHTML = thelink;
					list.appendChild(li);
				}
				newdiv.appendChild(list);
				entries[i].appendChild(newdiv);
			}
		}
	}
	function process()
	{
		addFuncs();	
		addLinks();
	}
	window.onload = process;
//-->
