// &copy; Copyright 2001, 2002 Richard Ishida. All rights reserved. 
//<HTML><HEAD><TITLE>none</TITLE></HEAD><BODY> 
//<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"><![CDATA[


// Remove the elements following the target node from the screen
// and set the event handlers appropriatly
function removeChildrenFromScreen(e) {
	var node = e.nextSibling;
	while (node != null) {
	   	if (node.nodeType == 1) {
			node.style.display = "none";
	    		}
	   	node = node.nextSibling;
		}
	// replace the "- " with "+ "
	e.replaceChild(document.createTextNode('+ '), e.firstChild);

	// add the activation of addChildrenOnScreen
//alert(e.childNodes[1].nodeName);
	e.childNodes[1].onmousedown = function() {displayChildrenOnScreen(this.parentNode);};
	}

// Redisplay the elements following the target node on the screen
// and set the event handlers appropriatly
function displayChildrenOnScreen(e) {
	var node = e.nextSibling;
	while (node != null) {
	   	if (node.nodeType == 1) {
			// assume all are block-level
			node.style.display = "block";
	   		}
	  	node = node.nextSibling;
		}
	// replace the "+ " with "- "
	e.replaceChild(document.createTextNode('-  '), e.firstChild);
	 
	// add the activation of removeChildrenFromScreen
	e.childNodes[1].onmousedown = function() { removeChildrenFromScreen(this.parentNode); };
	}


function expandall () {
		var h2s = document.getElementsByTagName("h2");
		var h3s = document.getElementsByTagName("h3");
	
		// add the event handler on each h2 and h3
		var i = 0; var h2;
		while (i < h2s.length) {
			h2 = h2s.item(i);
			displayChildrenOnScreen(h2);
	   		h2.style.cursor = "pointer";
	   		i ++;
			}      
		i = 0; var h3;
		while (i < h3s.length) {
		 	h3 = h3s.item(i);
			displayChildrenOnScreen(h3);
	   		h3.style.cursor = "pointer";
	   		i ++;
			}      
		}


function hideall () {
		var h1s = document.getElementsByTagName("div");

		// add the event handler on each toc1
		var i = 0; var h1;
		while (i < h1s.length) {
		 	h1 = h1s.item(i);
			if (h1.className == 'toc1') { 
				removeChildrenFromScreen(h1); 
   				h1.style.cursor = "pointer";
				}
   			i ++;
			}      
		}

var tablesShowing = true;

function hideShowExtras () {
		var tables = document.getElementsByTagName("table");

		// show or hide each table
		var i = 0; var table;
		while (i < tables.length) {
		 	table = tables.item(i);
			if (table.className == 'extras') { 
				if ( tablesShowing ) { 
					table.style.display = 'none'; 
					}
				else { 	table.style.display = ''; 
					}
				}
   			i ++;
			}      
		if (tablesShowing) { tablesShowing = false; }
		else { tablesShowing = true; }
		}
	


	
function init () {
	// Should check that this browser can handle the scripting		
	hideall();
	hideShowExtras();
	}
		
// ]]></SCRIPT></BODY></HTML> 
