function show_hide(id, show) {
        if (el = document.getElementById('hidden'+id)) {
				ln = document.getElementById('link'+id);

				if (null==show) show = el.style.display=='none';
                el.style.display = (show ? '' : 'none');
				ln.innerHTML = (show ? '[Less...]' : '[More...]');
        }
}

function rewrite(id) {
	var elem = document.getElementById(id);
	elem.innerHTML = elem.innerHTML;	
}


activateLinks = function() {
	var navroot = document.getElementById('container2');
	var lis=navroot.getElementsByTagName("A");  
	for (i=0; i<lis.length; i++) {
		if (lis[i].getAttribute('href').indexOf("poisons.co.nz")==-1 &&
			lis[i].getAttribute('href').indexOf("poison.co.nz")==-1 &&
			lis[i].getAttribute('href').indexOf("poisons.prosouth.co.nz")==-1 &&
			lis[i].getAttribute('href').indexOf("://")>-1)
		{
			lis[i].onclick=function() {	
				return confirm('You are being directed to a page outside of the National Poisons Centre site.\n\nAccuracy of information on this site cannot be guaranteed by the NPC. Linking to this site does not constitute endorsement of, or agreement with the site, or the information presented within the site.\n\nAre you sure you wish to proceed?')
			} //nav
		} //if
	} //for
} //function



