//
//  navifold.js - Provides for Hiding/Showing of 2+ DIVs Separately
//
//    Example of HTML usage: 
//	  In between the <head> tags: <script type="text/javascript" src="code/navifold.js"></script>
//    Links: <a href="#" onclick="newIssuesClick('0'); searchClick('0'); return false;">This is a Link</a>
//    <DIV> tags: <div id="navBox">Hide Me!</div>
//
//	  Extensively modified from source located at: http://www.codetoad.com/
//

function hideLayer(whichLayer) {
if (document.getElementById) {
// Standards-Compliant
document.getElementById(whichLayer).style.display = "none";
}
else if (document.all) {
// MSIE (Old Versions)
document.all[whichlayer].style.display = "none";
}
else if (document.layers) {
// Netscape 4.x
document.layers[whichLayer].display = "none";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// Standards-Compliant
document.getElementById(whichLayer).style.display = "block";
} else if (document.all) {
// MSIE (Old Versions)
document.all[whichlayer].style.display = "block";
} else if (document.layers) {
// Netscape 4.x
document.layers[whichLayer].display = "block";
}

}

function allClick(whichClick) {
	if (whichClick == "1") {
		// Hide Layer
		hideLayer("comment");
	} else if (whichClick == "0") {
		// Show Layer
		showLayer("comment");
	}
}


