function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
if (style2.display == "none") {style2.display = "block";}
else if (style2.display == "block") {style2.display = "none";}
else if (style2.display == "") {style2.display = "block";}
// style2.display = style2.display? :"block";

}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
if (style2.display == "none") {style2.display = "block";}
else if (style2.display == "block") {style2.display = "none";}
else if (style2.display == "") {style2.display = "block";}
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
if (style2.display == "none") {style2.display = "block";}
else if (style2.display == "block") {style2.display = "none";}
else if (style2.display == "") {style2.display = "block";}
}

}



function showall(showOrHide){
	//subsitute show and hide for ease
	if (showOrHide == 'show'){showOrHide = "block";}//toggleLayer('hideAllLink');
	else if (showOrHide == 'hide'){showOrHide = "none";}//toggleLayer('showAllLink');
	else {showOrHide = "block";}// the default case if bad argument

	// toggle the showall and hideall links
	
	
	
	//loop through and hide OR show all as told
	for (i=0;i<=70;i++) {
		var thisdiv = 'showhide'+i;
				
		//standards
		if (document.getElementById){
			// show/hide the dive 1..20
			if (document.getElementById(thisdiv)){
			var style2 = document.getElementById(thisdiv).style;
			style2.display = showOrHide;
			}
		}
		else if (document.all){
			if (document.all[thisdiv]){
			// this is the way old msie versions work
			var style2 = document.all[thisdiv].style;
			style2.display = showOrHide;
			}
		
		}
		else if (document.layers){
			if (document.layers[thisdiv]){
			// this is the way nn4 works
			var style2 = document.layers[whichLayer].style;
			style2.display = showOrHide;
			}
		
		}
	}


}

function showTarget(whichLayer) {
	//call showAllHideAll to loop through and hide all
	showall('hide');
	/*
	toggleLayer(whichLayer);
	*/	

		if (document.getElementById)
		{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = "block";
		}
		else if (document.all)
		{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = "block";	
		}
		else if (document.layers)
		{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = "block";
		}
	

}




