


function navFix(){

	/*	var f= $$('div#leftColumn .Vchild, .Vgchild');
		//var f= $$('div#leftColumn .Vchild');
		var nodeValue='';
		
		
		for(i=0;i<f.length;i++){
			nodeValue=f[i].innerHTML;
		
			f[i].innerHTML='<img src="images/bullet-arrow.gif" border="0" style="margin:0;padding:0">&nbsp;'+nodeValue;
			
			
			if(f[i].className=="Vchild"){
				f[i].className='Vchild';
				
			}else
			
			if(f[i].className=="Vgchild"){
				f[i].className='Vgchild';
			}
			
			
			if(i==f.length-1){
				f[i].className="VchildLast";

			}
			
		}*/
		
		var z=$$('div#leftColumn .Vparent');
	if(z[0]){	
			z[0].style.borderTop='none';
		}


}

Event.observe(window,'load',navFix);



/*==========This is for sliding down the main content div if there's horizontal subnav=============*/

function moveMiddle(){

	if($('subnav')){
		
		$('middleColumn').style.marginTop='45px';
				//might as well restyle the last element of subnav...

		var links=$$('ul#subnav a');
		var llength=links.length-1;
	
		
		
	/*		if($('gsubnav')){
			var gLinks=$$('ul#gsubnav a');
			
			var totaltop= (links.length+1)-(gLinks.length);
			//alert('totaltop is '+totaltop);
	
			links[totaltop].style.borderRight="none";
			
			}else{*/
			links[llength].style.borderRight="none";
			
		//	}
		}
		
	if($('gsubnav')){
		
		$('middleColumn').style.marginTop='45px';
				//might as well restyle the last element of subnav...

		var links=$$('ul#subnav a');
		var llength=links.length-1;
	
		links[llength].style.borderRight="none";
		
		
		//var z=$$('ul#gsubnav a');
	/*	var z= $('gsubnav').getElementsByTagName('a');
		var zLength=z.length-1;
		
			z[zLength].style.borderBottom='none';
		*/	
		
		}
	

		
	


}

Event.observe(window,'load',moveMiddle);

/*==========This gets rid of the right-hand border on the last links =============*/


function footerNav(){


		var flinks=$$('ul#footerNav a');
		var flength=flinks.length-1;
	
	if(flinks>0){
		flinks[flength].style.borderRight="none";
	}

}

Event.observe(window,'load',footerNav);



/*===========these are the main roll overs on the home page=================*/


function onHelp(){
	$('getHelpImg').src='images/Gold-GetHelp.jpg';
	$('getHelpImg').style.width='153px';
		
	$('help').toggle();
	$('helpNav').toggle();
	
	$('HelpDiv').style.backgroundColor='#D8BE5C';
	$('l1').style.color="#FFFFFF";
	$('b1').src='images/button-yellowON.jpg';

	
}
function offHelp(){
	$('getHelpImg').src='images/Blue-GetHelp.jpg';
	$('HelpDiv').style.backgroundColor='#FFFFFF';

		$('helpNav').toggle();
		$('help').toggle();

	$('b1').src='images/button-yellow.gif';
	$('l1').style.color="#C4A432";
}
function onVolunteer(){
	$('volunteerImg').src='images/Gold-Volunteer.jpg';
	$('VolunteerDiv').style.backgroundColor='#D8BE5C';
	
	$('vol').toggle();
	$('volNav').toggle();
	
	$('b2').src='images/button-yellowON.jpg';
	$('l2').style.color="#FFFFFF";
}
function offVolunteer(){
	$('volunteerImg').src='images/Blue-Volunteer.jpg';
	$('VolunteerDiv').style.backgroundColor='#FFFFFF';
			$('volNav').toggle();
		$('vol').toggle();
	$('l2').style.color="#C4A432";
	$('b2').src='images/button-yellow.gif';

}
function onSupport(){
	$('supportImg').src='images/Gold-SupportUs.jpg';
	$('SupportDiv').style.backgroundColor='#D8BE5C';
		
	$('support').toggle();
	$('supportNav').toggle();
	
	$('b3').src='images/button-yellowON.jpg';
	$('l3').style.color="#FFFFFF";
}
function offSupport(){
	$('supportImg').src='images/Blue-SupportUs.jpg';
	$('SupportDiv').style.backgroundColor='#FFFFFF';
				$('supportNav').toggle();
		$('support').toggle();
	$('l3').style.color="#C4A432";
	$('b3').src='images/button-yellow.gif';

}

function onAction(){
	$('actionImg').src='images/Gold-TakeAction.jpg';
	$('TakeActionDiv').style.backgroundColor='#D8BE5C';
	
	$('take').toggle();
	$('takeNav').toggle();

	$('b4').src='images/button-yellowON.jpg';
	$('l4').style.color="#FFFFFF";
}
function offAction(){
	$('actionImg').src='images/Blue-TakeAction.jpg';
	$('TakeActionDiv').style.backgroundColor='#FFFFFF';
	
		$('takeNav').toggle();
		$('take').toggle();

	
	
	$('l4').style.color="#C4A432";
	$('b4').src='images/button-yellow.gif';

}



//Event.observe(window,'load',changeHelp);
