

//modified javascript from example at http://www.zeldman.com/j/nu.js
//and http://www.pennlinepublishing.com/articles/menuTree/menuTree.htm#
//i can not take any credit for the genius of this script
// toggle visibility



/*
this function accepts four variables:
id - id of the block level element you want to expand (this block's default css should be display:none
button_id - id of the toggle button
expand - this is the text you want for (+)
contract - text to represent contraction (-)
*/ 



function toggle(id,button_id,expand,contract) {

    if (document.getElementById) {
    var links = document.getElementById(id);
    var toggleButton = document.getElementById(button_id);

        if (links) {
            if (links.style.display != "block") {
				links.style.display = "block";
				toggleButton.innerHTML=(contract);
			}
            else {
				links.style.display = "none";
				toggleButton.innerHTML=(expand);
            }
        }    
	}
}