// NewAmerica.net Custom JavaScript

// JS for hiding and showing program menu

function expandcollapse (programmenu) { 
   changer = document.getElementById(programmenu); 
   if (changer.className=="shown") { 
      changer.className="hidden"; 
   } 
   else { 
      changer.className="shown"; 
   } 
} 

// JS for swapping tab image

var ImgPath='http://devsite.newamerica.net/themes/naf1/images/';
function imageflip (toggleimage) {
	tab = document.getElementById(toggleimage);
	if (tab.src.match('show.gif')) {
	   tab.src=ImgPath+'hide.gif';
	}
	else {
	   tab.src=ImgPath+'show.gif';
	}
}
