<!--

var A="block"; var B="block"; var C="block";var D="block";
var E="block"; var F="block"; var G="block";var H="block";
var I="block"; var J="block"; var K="block";var L="block";
var M="block"; var N="block"; var O="block";var P="block";
var Q="block"; var R="block"; var S="block";var T="block";
var U="block"; var V="block"; var W="block";var X="block";
var Y="block"; var Z="block";
var Main="block";
	
	// MENU EXPANDER		
	// Created by Rob Reynolds, April 2004.
	//   This program allows you to display a subsection of an item.
	//	1. To reference one of the blocks you will want to set an "a" tag around the link you want for each section.
	//		Ex. 1 - <a href="javascript:MenuChange('LETTER');"></a>
	//	2. Set up the sections with div tags that are not displayed.
	//      Ex. 2 - <div id="LETTERdiv" style="DISPLAY: none"></div>
	//  3. You can also set up the top template if you want.  That allows someone to expand all columns at once.
	//      There is some extra set up coding required in the function MenuChange(divSection).
	//       It is at the bottom of the function.

/*

	//  Table setup:
		<table summary='This is a table that contains information about...' cellpadding='2' width='100%' border='0'>
			<!-- TOP TEMPLATE -->
			<tr>
				<td style="FONT-SIZE: xx-small" align="right" colSpan="2"><br>
					<br> <!-- document.execCommand('Print')-->
					<a href="javascript:window.print();" tabindex="2"><img src="images/printer.gif" border="0">Print 
					this page</a><br>
					<a href="javascript:AllChange();" tabindex="2"><span id="Allspan">Expand</span> All 
					columns</a>
					<br /><br /><br />
				</td>
			</tr>
			<!-- END TOP TEMPLATE -->
			<!-- ITEM TEMPLATE -->		
			<tr>
				<td colspan=2>
					<a href="javascript:MenuChange('LETTER')">Link Here</a>
					&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: xx-small">(Click 
					to <span id="LETTERspan">Expand</span>)</span>
				</td>
			</tr>
			<tr>
				<td width=10%></td>
				<td>
					<div id='LETTERdiv' style='DISPLAY: none'>
					</div>
				</td>
			</tr>
			<!-- END ITEM TEMPLATE -->
		</table>
*/			
			function MenuChange(divSection) {
				if (divSection == 'Main'){
					Main=MenuChange2(divSection,Main);
					//alert(Main);	
				} else if (divSection == 'A'){
					A=MenuChange2(divSection,A);
					//alert(A);	
				} else if (divSection == 'B'){
					B=MenuChange2(divSection,B);
					//alert(B);	
				} else if (divSection == 'C') {
					C=MenuChange2(divSection,C);
					//alert(C);	
				} else if (divSection == 'D'){
					D=MenuChange2(divSection,D);
					//alert(D);	
				} else if (divSection == 'E'){
					E=MenuChange2(divSection,E);
					//alert(E);	
				} else if (divSection == 'F'){
					F=MenuChange2(divSection,F);
					//alert(F);	
				} else if (divSection == 'G'){
					G=MenuChange2(divSection,G);
					//alert(G);	
				} else if (divSection == 'H'){
					H=MenuChange2(divSection,H);
					//alert(H);	
				} else if (divSection == 'I'){
					I=MenuChange2(divSection,I);
					//alert(I);	
				} else if (divSection == 'J'){
					J=MenuChange2(divSection,J);
					//alert(J);	
				} else if (divSection == 'K'){
					K=MenuChange2(divSection,K);
					//alert(K);	
				} else if (divSection == 'L'){
					L=MenuChange2(divSection,L);
					//alert(L);	
				}  else if (divSection == 'M'){
					M=MenuChange2(divSection,M);
					//alert(M);	
				}  else if (divSection == 'N'){
					N=MenuChange2(divSection,N);
					//alert(N);	
				}  else if (divSection == 'O'){
					O=MenuChange2(divSection,O);
					//alert(O);	
				}  else if (divSection == 'P'){
					P=MenuChange2(divSection,P);
					//alert(P);	
				}  else if (divSection == 'Q'){
					Q=MenuChange2(divSection,Q);
					//alert(Q);	
				}  else if (divSection == 'R'){
					R=MenuChange2(divSection,R);
					//alert(R);	
				}  else if (divSection == 'S'){
					S=MenuChange2(divSection,S);
					//alert(S);	
				}  else if (divSection == 'T'){
					T=MenuChange2(divSection,T);
					//alert(T);	
				}  else if (divSection == 'U'){
					U=MenuChange2(divSection,U);
					//alert(U);	
				}  else if (divSection == 'V'){
					V=MenuChange2(divSection,V);
					//alert(V);	
				}  else if (divSection == 'W'){
					W=MenuChange2(divSection,W);
					//alert(W);	
				}  else if (divSection == 'X'){
					X=MenuChange2(divSection,X);
					//alert(X);	
				}  else if (divSection == 'Y'){
					Y=MenuChange2(divSection,Y);
					//alert(Y);	
				}  else if (divSection == 'Z'){
					Z=MenuChange2(divSection,Z);
					//alert(Z);	
				} else {
					alert('Error: Cannot find section - ' + divSection);
				}
				//This section is for an expand all columns section to change the text from "Expand" to "Collapse" and vice versa.
				// Add an '&& Letter=="none"' for each variable your application uses.
				
				if (Main=="none" && A=="none" && B=="none" && C=="none") {
					document.getElementById('Allspan').innerText='Collapse';
				} else {
					document.getElementById('Allspan').innerText='Expand';
				}
				
			}
			
			function MenuChange2(divSection,sectionStyle) {
				if (document.getElementById(divSection + 'div') !=null) {
					document.getElementById(divSection + 'div').style.display=sectionStyle
					if (sectionStyle=="none") {
						document.getElementById(divSection + 'span').innerText = 'Expand';
						return "block";
					} else {
						document.getElementById(divSection + 'span').innerText = 'Collapse';
						return "none";
					}
				} else {
					//If the person doesn't include a <span id='LETTERspan'>Expand</span> tag.
					if (sectionStyle == "none") {
						return "block";
					} else {
						return "none";
					}
				}
			}
			
			function AllChange() {
				var strAll = document.getElementById('Allspan').innerText;
				//Main
				if (document.getElementById('Mainspan') !=null) {
					if (document.getElementById('Mainspan').innerText == strAll){
						MenuChange('Main');
					}
				}
				//For the rest of the alphabet
				var strAlphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
				for (strLetter=0;strLetter<=25;strLetter++) {
					AllChange2(strAlphabet.charAt(strLetter),strAll);
				}
				//Changes the text in the Allspan Span Tag.
				if (strAll == 'Expand') {
					document.getElementById('Allspan').innerText='Collapse';
				} else {
					document.getElementById('Allspan').innerText='Expand';
				}
			}
			
			function AllChange2(strLetter,strAll){
				
				if (document.getElementById(strLetter + 'span') !=null) {
					if (document.getElementById(strLetter + 'span').innerText == strAll){
						MenuChange(strLetter);
					}
				}
			}
			
	//-->