


//## toggle divs for each day off, and the show the div for the selected day.
function showdiv (currentlink,totallinks){
	for (var i=1; i<=totallinks;i++) {
		var mydiv = "div_" + i;
		if (i == currentlink) {
			toggleLayer(mydiv,"block");
		} else {
			toggleLayer(mydiv,"none");
		}
	}
}
function showrelease (currentdiv,alldivs){
	var myArray = alldivs.split(" ");
	for (key in myArray) {
		var mylink = "release_" + myArray[key];
		if (myArray[key] == currentdiv) {
			toggleLayer(mylink,"block");
		} else {
			toggleLayer(mylink,"none");
		}
	}
}


function toggleLayer(whichLayer, onoff){
	// onoff = "" - hide layer
	// onoff = "block" = show layer
	if (document.getElementById){
		// this is the way the standards work
		if(document.getElementById(whichLayer) != null){
			var style2 = document.getElementById(whichLayer).style;
			style2.display = onoff;
		}
	}else if (document.all){
		// this is the way old msie versions work
		if(document.all[whichLayer] != null){
			var style2 = document.all[whichLayer].style;
			style2.display = onoff;
		}
	}else if (document.layers){
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = onoff;
	}
}
