
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Ultimater, Mr J :: http://www.webdeveloper.com/forum/showthread.php?t=77389 */

// this is run after onclick()
// if className is shown-para then switch to hidden-para & force display off
// otherwise switch to shown-para and force display on 

function toggleMe(a)
	{
	 var e=document.getElementById(a);
	 if(!e){return true;}
	 
	 if( e.nodeName != 'A' )
		{
		if(e.className=="shown-para")
			{
			e.className="hidden-para"
			e.style.display="none"
			}
		else	
			{
			e.className="shown-para"
			e.style.display="block"
			}
		}
  	return true;
	}


function setDivOn(c)
	{
	if (document.getElementById(c).className=="hidden-para")
		{
		document.getElementById(c).style.display="block"
		}
	}

function setDivOff(c)
	{
	if (document.getElementById(c).className=="hidden-para")
		{
		document.getElementById(c).style.display="none"
		}
	}

