<!-- 

// Declare variables for the expandNav functions //////////////////////////////////////////////////////////////
		
var pcounter=-1; // Primary Nav item counter
var scounter=-1; // Secondary Nav item counter
var tcounter=-1; // Tertiary Nav item counter
var Pnav=new Array(); // Array of Primary Navigation
var Snav=new Array(); // Array of Secondary Navigation
var Tnav=new Array(); // Array of Tertiary Navigation
			
//var Pcurrent="null";
//var Scurrent="null";
//var Tcurrent="null";
var defaultExpand="null,null,null";
		
var newMenu = '';
	
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
		
// Add items to Primary Nav Array
function AddPrimaryNav(plabel,plink,pchild)
{pcounter+=1;
 Pnav[pcounter]= plabel+'|'+plink+'|'+pchild;

 if(pchild==1)
 {Snav[pcounter]=new Array();
  Tnav[pcounter]=new Array();
  scounter=-1;
 }
}
		
// Add items to Secondary Nav Array
function AddSecondaryNav(slabel,slink,schild)
{scounter+=1;
 Snav[pcounter][scounter]=slabel+'|'+slink+'|'+schild;
 
 if(schild==1)
 {Tnav[pcounter][scounter]=new Array();
  tcounter=-1;
 }
}
		
// Add items to Tertiary Nav Array
function AddTertiaryNav(tlabel,tlink,tchild)
{tcounter+=1;
 Tnav[pcounter][scounter][tcounter]=tlabel+'|'+tlink+'|'+tchild;
}


// Start outputting the menu html to the page.

function menuOut()
{//	alert('running menuOut()'); // debug alert
 //gecko = (navigator.product == 'Gecko' ? true : false)
 gecko = ((navigator.product == 'Gecko' && navigator.vendorSub < 6) || navigator.vendorSub >= 7 ? true : false)

 // Establish the layers in which the menu will reside.
 if((document.all || document.getElementById) && !gecko)
 {document.write('<DIV ID="leftnav" style="width:125px;height:100px;padding:0px"></DIV>');
 }
 else if(document.layers || gecko)
 {document.writeln('<ILAYER NAME="holdme" WIDTH="125" HEIGHT="1200" Z-INDEX="7" ID="holdme">');  	      document.writeln('<LAYER NAME="leftnav" ID="leftnav" WIDTH=125 HEIGHT=200></LAYER>');
  document.writeln('</ILAYER>');
 }
		
 // Write the menu with the current section already exapanded.
 if (document.getElementById || document.all || document.layers)
 {window.onload=setSection;
 }
 else
 {expandMenu('999,999');	// Pass 9999 for to display all menus for compatibility ////////////
 }
}

// Set the current section to be expanded based on directory
function setSection()
{//	alert('running setSection()'); // debug alert
 //	defaultExpand=Pcurrent+','+Scurrent;
		
 expandMenu(defaultExpand);
}

		
// Expand a menu branch when clicked or simply pass the url and query string for discrete items
function expandMenu(navbranch)
{//	alert('running expandMenu(' + navbranch + ')'); // debug alert
		
 newMenu = '<TABLE WIDTH="125" CELLSPACING="0" CELLPADDING="1" BORDER="0">';
		
 // Get the branches to expand/collapse
 var branch=navbranch.split(',');
 // If no PrimaryNav is open, open the current section nav
 if(branch[0]=='null')
 {branch[0]=Pcurrent;
  branch[1]=Scurrent;
  branch[2]=Tcurrent;
 }
			
 // Loop through the NAV arrays and get the branches and sub-links.
 for (var i=0; i<Pnav.length; i++)
 {// Create some variables to dynamically write the PrimaryNav
  Pattribute=Pnav[i].split('|'); 
  // attribute[0] is the label, attribute[1] is the URL and attribute[2] is a bit-value for whether that section has subsections.
  
  //var Pcurrentclass = (i==Pcurrent) ? 'class="primarynavactive"' : ' class="primarynav"' ;
  var Pcurrentclass = (Pattribute[0]==Pcurrent) ? 'class="primarynavactive"' : ' class="primarynav"' ;
				
  // Write the Primary Nav for ones without subnav.
  if(Pattribute[2]==0)
  {newMenu += '<TR><TD></TD><TD colspan="4"><A HREF="' + Pattribute[1] + 
              '" onClick="return true;" ' + Pcurrentclass +'>'+ Pattribute[0] +'</a></TD></TR>';
  }
  // Write the PRIMARY Nav for ones with subnav
  else
  {//if(i!=branch[0])
   if(Pattribute[0]!=branch[0])
   {//expandbranch = i + ',999,9999';
    expandbranch = Pattribute[0] + ',null,null';
    newMenu += '<TR><TD><A HREF="' + Pattribute[1] + 
    '" onClick="expandMenu(\'' + expandbranch + '\');return false;"><IMG SRC="' + 
    'Images/arrow_right.gif" width="15" height="15" ALT="Click to Expand" border="0"></a></TD><TD colspan="4"><A HREF="' + 
    Pattribute[1] +'" onClick="return true;" ' + Pcurrentclass +'>'+ Pattribute[0] +'</a></TD></TR>';
   }
   // Expand PRIMARY if current section or selected to expand
   else
   {//expandbranch='999,999,999';
    expandbranch='null,null,null';
    newMenu += '<TR><TD><A HREF="' + Pattribute[1] + '" onClick="expandMenu(\'' + expandbranch + '\');return false;"><IMG SRC="'
             + 'Images/arrow_down.gif" width="15" height="15" ALT="Click to Expand" border="0" class="secnav"></a></TD><TD colspan="4"><A HREF="'
             + Pattribute[1] + '" onClick="return true;" ' + Pcurrentclass +'>'+ Pattribute[0] +'</a></TD></TR>';
    
		
     // Write the SECONDARY Nav for each Primary Item
     for (var j=0; j<Snav[i].length; j++)
     {Sattribute=Snav[i][j].split('|');		// attribute[0] is the label, attribute[1] is the directory containing the file, attribute[2] is the relative URL, attribute[2] is a bit-value for whether that section has subsections.
      //var Scurrentclass = (i==Pcurrent && j==Scurrent) ? 'class="secondarynavactive"' : ' class="secondarynav"' ;
      var Scurrentclass = (Pattribute[0]==Pcurrent && Sattribute[0]==Scurrent) ? 'class="secondarynavactive"' : ' class="secondarynav"' ;	
      var Sarrowcolor = (j==Scurrent) ? 'blue' : 'gray' ;
							
      // Write the SECONDARY Nav for ones without subnav.
      if(Sattribute[2]==0)
      {newMenu += '<TR><TD></TD><TD VALIGN="top"><A HREF="' + Pattribute[2] + '" onClick="expandMenu(\'' + 
       expandbranch + '\');return false;"><IMG SRC="' + 'Images/small_arrow_down_gray.gif" width="10" height="10" ALT="Click to Expand" border="0"></a></TD><TD colspan=2><SPAN CLASS="secondarynav"><A HREF="' +  Sattribute[1] + '"' + Scurrentclass + ' onClick="return true;">' + Sattribute[0] + '</a></SPAN></TD><TD><IMG SRC="' + 'Images/spacer.gif" width="2" height="5" ALT="" border="0"></TD></TR>';
							
      }
      // Write the SECONDARY Nav for ones with subnav
      else
      {//if(j!=branch[1])
       if(Sattribute[0]!=branch[1])
       {//expandbranch = i + ',' + j + ',999';
        expandbranch = Pattribute[0] + ',' + Sattribute[0] + ',null';
        newMenu += '<TR><TD><IMG SRC="' +  'Images/spacer.gif" width="15" height="5" ALT="" border="0"></TD><TD VALIGN="top"><A HREF="' + Sattribute[1] + '" onClick="expandMenu(\'' + expandbranch + '\');return false;"><IMG SRC="' + 'Images/small_arrow_right_' + Sarrowcolor + '.gif" width="10" height="10" ALT="Click to Expand" border="0"></a></TD><TD colspan="2"><SPAN CLASS="secondarynav"><A HREF="' + Sattribute[1] + '"' + Scurrentclass + ' onClick="return true;">' + Sattribute[0] + '</a></SPAN></TD><TD><IMG SRC="' + 'Images/spacer.gif" width="2" height="5" ALT="" border="0"></TD></TR>';
								
       }
       // Expand TERTIARY if current section or selected to expand
       else
       {//expandbranch = i + ',999,999';
        expandbranch = Pattribute[0] + ',null,null';
        newMenu += '<TR><TD><IMG SRC="' + 'Images/spacer.gif" width="15" height="5" ALT="" border="0"></TD><TD VALIGN="top"><A HREF="' + Sattribute[1] + '" onClick="expandMenu(\'' + expandbranch + '\');return false;"><IMG SRC="' + 'Images/small_arrow_down_' + Sarrowcolor + '.gif" width=10 height=10 ALT="Click to Collapse" border=0></a></TD><TD colspan=2><SPAN CLASS="secondarynav"><A HREF="' +  Sattribute[1] + '"' + Scurrentclass + ' onClick="return true;">' + Sattribute[0] + '</a></SPAN></TD><TD><IMG SRC="' +  'Images/spacer.gif" width="2" height="5" ALT="" border="0"></TD></TR>';
							
		
         // Write the TERTIARY Nav for the expanded secondary item
         for (var k=0; k<Tnav[i][j].length;k++)
         {Tattribute=Tnav[i][j][k].split('|');
          // attribute[0] is the label, attribute[1] is the directory containing the file,           //attribute[2] is the relative URL, attribute[2] is a bit-value for whether that section has subsections.
	  var Tcurrentclass = (i==Pcurrent && j==Scurrent && k==Tcurrent) ? ' class="tertiarynavactive"' : ' class="tertiarynav"' ;	
          // Write the TERTIARY Nav for all tertiary items.
          newMenu += '<TR><TD><IMG SRC="' +  'Images/spacer.gif" width="15" height="5" ALT="" border="0"></TD><TD><IMG SRC="' + 'Images/spacer.gif" width="10" height="10" ALT="" border="0"></TD><TD ALIGN="center" VALIGN="top"><SPAN' + Tcurrentclass + '>&middot;</SPAN></TD><TD><SPAN' + Tcurrentclass + '><A HREF="' + Tattribute[1] + '"' + Tcurrentclass + ' onClick="return true;">' + Tattribute[0] + '</a></SPAN></TD><TD><IMG SRC="' + 'Images/spacer.gif" width="2" height="5" ALT="" border="0"></TD></TR>';
										
	 }							
        }
       }
      }
     }
    }
   }
		
 newMenu += '<TR><TD><IMG SRC="' + 'Images/spacer.gif" WIDTH="15" HEIGHT="15" ALT="" BORDER="0"></TD><TD><IMG SRC="' + 'Images/spacer.gif" WIDTH="10" HEIGHT="10" ALT="" BORDER="0"></TD><TD><IMG SRC="' + 'Images/spacer.gif" WIDTH="7" HEIGHT="5" ALT="" BORDER="0"></TD><TD><IMG SRC="' + 'Images/spacer.gif" WIDTH="91" HEIGHT="5" ALT="" BORDER="0"></TD><TD><IMG SRC="' + 'Images/spacer.gif" WIDTH="2" HEIGHT="5" ALT="" BORDER="0"></TD></TR>';
 newMenu += '</TABLE>';
			
		// End of page content
		
		
 // Write all this info to the layer on the page.
 if(document.layers)
 {document.holdme.document.leftnav.document.open();
  document.holdme.document.leftnav.document.write(newMenu);
  document.holdme.document.leftnav.document.close();
 }
 else 
  if(document.all)
  {if(navigator.appVersion.indexOf('Mac') != -1)
   {document.all.leftnav.innerHTML = '<br>' + newMenu + '<br>';
   }
   else
   {document.all.leftnav.innerHTML = newMenu;
   }
  }
  else
   if(document.getElementById)
   {document.getElementById('leftnav').innerHTML = newMenu;
   }
   else
   {document.write(newMenu);
   }
}
		
// OnResize, reload the window to reposition dynamic elements
function setResize()
{if(document.layers)
 {setTimeout("window.onresize=rePosition;",500);
 }
}
		
function rePosition()
{window.location.reload()
}
		
if(document.layers)
{window.onload=setResize;
}


//-->