// TTMAC Javascript functions November 2005 MKiD function toggleMenu(menuNo,state){	var theName="nav_0"+menuNo;	var theButton = eval("document.getElementById('"+theName+"')");	if(state=="1"){		var theImgURL=theButton.src;		// Avoid _over_over.gif  etc.		theImgURL = theImgURL.replace(/_over.gif$/, ".gif");		theImgURL = theImgURL.replace(/.gif$/, "_over.gif");		theButton.src=theImgURL;		var theMenu=eval("document.getElementById('menu_0"+menuNo+"')");		theMenu.style.display="block";	}else{		var theImgURL=theButton.src.replace(/_over.gif$/, ".gif");		theButton.src=theImgURL;		var theMenu=eval("document.getElementById('menu_0"+menuNo+"')");		theMenu.style.display="none";	}}// the javascript for the members areafunction toggleMenuMembers(menuNo,state){	var theName="nav_m"+menuNo;	if(state=="1"){		var theMenu=eval("document.getElementById('menu_m"+menuNo+"')");		theMenu.style.display="block";		if (document.all && document.all.hideme != null){document.all.hideme.style.visibility="hidden";} // IE burn through hack	}else{		var theMenu=eval("document.getElementById('menu_m"+menuNo+"')");		theMenu.style.display="none";		if (document.all && document.all.hideme != null){document.all.hideme.style.visibility="visible";} // IE burn through hack	}} function gatedLink(msg, linkTo){	ctrl = confirm(msg);	if ( ctrl == true )	{		location.replace(linkTo);	}}// crap...function setMenuOn(menuNo){	var thisLink = "a_menu_m"+menuNo;	/*	var chkLink;	var chkCounter = 0;	while ( eval("document.getElementById('menu_m"+chkCounter+"')") )	{		chkLink = eval("document.getElementById('menu_m"+chkCounter+"')");		if (chkLink == "subMenuItemOn")		{			chkLink.className = "subMenuItem";		}	}	*/	var theA = eval("document.getElementById('"+thisLink+"')");	theA.className = "subMenuItemOn";	}//Displays the date in the location headerfunction initArray() { for(i=0;i<initArray.arguments.length; i++)  this[i] = initArray.arguments[i];}var isnMonths=new   initArray("January","February","March","April","May","June","July","August","September","October","November","December");var isnDays= new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");today=new Date();hrs=today.getHours();min=today.getMinutes();sec=today.getSeconds();clckh=""+((hrs>12)?hrs-12:hrs); clckm=((min<10)?"0":"")+min;clcks=((sec<10)?"0":"")+sec;clck=(hrs>=12)?"p.m.":"a.m.";var stnr="";var ns="0123456789";var a="";// fixes a Netscape 2 and 3 bugfunction getFullYear(d) { // d is a date object	 yr = d.getYear();	 if (yr < 1000)	  yr+=1900;	 return yr;}function displayDate(){document.write("<span class=\"dateClass\"> "+isnDays[today.getDay()] +", "+isnMonths[today.getMonth()]+" "+today.getDate()+", " +getFullYear(today)+"</span>");}// --------to open a window (Generic)function popWin(url,name,width,height) { // opens a popup Window			var etc = "menubar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height  ;    window.open(url,name,etc);}function showDiv(divName,state){		var theItem=eval("document.getElementById('"+divName+"')");		if(state=="1"){			theItem.style.display="block";			if (document.all && document.all.hideme != null){document.all.hideme.style.visibility="hidden";} // IE burn through hack		}else{			theItem.style.display="none";			if (document.all && document.all.hideme != null){document.all.hideme.style.visibility="visible";} // IE burn through hack		}}function setSectionsVisible(ctl, idbase, offset) {	var theCtl=eval("document.getElementById('"+ctl+"')");	selectedidx = theCtl.options.selectedIndex;	if (selectedidx == -1 )	{		selectedidx = 0;		for (i=0; i < theCtl.length; i++)		{			if (theCtl.options[i].selected)			{				selectedidx = i;				break;			}		}	}		for	(i=0; i < theCtl.length; i++)	{				var theItem=eval("document.getElementById('"+idbase+(i+offset)+"')");		if	(i <= selectedidx)		{			theItem.style.display="block";					}		else		{			theItem.style.display="none";		}	}}