//* Timers for making elements appear or disappear on the page are set by assigning a 'div' or 'span' tag with an id name equalling on1, off1, on2, off2, on3, or off3. This allows up to 3 items to have "on" switches and 3 items to have "off" switches based on the dates and times set in the body tag, e.g. onLoad="setTimers('on1: 2009,09,16,13,00','off1: 2009,09,16,13,00');". Format of dates/times is year (4 digit), month (2 digit), day of month (2 digit), military hour (2 digit, 00-23), minutes of hour (2 digit). Keep the switches in this default order even if some aren't being used in the page right now. These things are dependent on the user's own clock and intended for temporary or short term automated updates only. Note that this functionality requires the style sheet to specify the class "hide" with the rule display:none. *//

function setTimers(on1,off1,on2,off2,on3,off3){
var today= new Date();
var i=0;
for (i=0;i<=3;i++)
{
if (document.getElementById("on"+i)){
	var thisone=eval("on"+i);
	var thistime= new Date();
	thistime.setFullYear(thisone.slice(5,9),thisone.slice(10,12)-1,thisone.slice(13,15));
	thistime.setHours(thisone.slice(16,18));
	thistime.setMinutes(thisone.slice(19,21));
	thistime.setSeconds(00);
	if (today < thistime){
		document.getElementById("on"+i).setAttribute("class", "hide");
		document.getElementById("on"+i).setAttribute("className", "hide");
	}
}
if (document.getElementById("off"+i)){
	var thisone=eval("off"+i);
	var thistime= new Date();
	thistime.setFullYear(thisone.slice(6,10),thisone.slice(11,13)-1,thisone.slice(14,16));
	thistime.setHours(thisone.slice(17,19));
	thistime.setMinutes(thisone.slice(20,22));
	thistime.setSeconds(00);
	if (today > thistime){
		document.getElementById("off"+i).setAttribute("class", "hide");
		document.getElementById("off"+i).setAttribute("className", "hide");
	}
}
}

}
