<!-- hide JavaScript from non-JavaScript browsers
// Last Updated 12/28/05

// Prevent foreign sites from framing our site
	function preventFraming(){
		if (window != top) {top.location.href = window.location.href;}
	}

// Check to see if the user's browser is modern enough and standard enough to display the site.  
// It is generally only called on the site home page.
	function browserAlert(){
		if (document.getElementById && document.createElement){
		//do nothing
		}else{
		document.write('     <div align\="center">');
		document.write('      <center>');
		document.write('      <table border\="1" width="400" bordercolor="#800000" cellspacing\="0" cellpadding\="5">');
		document.write('        <tr>');
		document.write('          <td width\="100%" align\="center">');
		document.write('            <h1><center>We are sorry, but your out-of-date or non-standard browser may not properly display our new site.</center></h1>');
		document.write('          </td>');
		document.write('        </tr>');
		document.write('      </table>');
		document.write('      </center>');
		document.write('     </div>');
		}
	}

// Set up Pop Up Window Functions (Must not contain any spaces or some Netscape may not fire properly)
	function popUpWindow(URL)
	{	popupstring="location=YES,scrollbars=YES,width=500,height=450,resizable=YES,toolbar=YES,status=YES,menubar=1;"
		newwin = window.open(URL,"Link",popupstring);
		newwin.focus();
	}
	function popUp(URL, theWidth, theHeight){
		popupstring="width="+theWidth+",height="+theHeight+"location=YES,scrollbars=YES,resizable=YES,toolbar=YES,status=YES,menubar=1;"
		newWindow = window.open(URL,"newWindow",popupstring);
		newWindow.focus();
	}

// Builds a date string for the date supplied by the calling code.  The returned date string is formatted to
// include the day name if the calling type is 'Long', else the day name is omitted.  
	function makeArray0() {
	  for (i = 0; i<makeArray0.arguments.length; i++)
	     this[i] = makeArray0.arguments[i];
	}
	var theDay = new makeArray0('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
	var theMonth = new makeArray0('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');

	function buildDateString(displayDate,displayType) {
		var thisDay = theDay[displayDate.getDay()]
		var thisMonth = theMonth[displayDate.getMonth()]
		var thisYear = displayDate.getYear()
		if (thisYear < 1000) {thisYear = thisYear + 1900};		// Year 2000 hack for some browsers
		if (displayType == 'Long')
			return thisDay + " " + thisMonth + " " + displayDate.getDate() + ", " + thisYear
		else
			return thisMonth + " " + displayDate.getDate() + ", " + thisYear
	}
//-->
