// JavaScript Document
	months = new Array(13);
	
	months[1] = "January";
	months[2] = "February";
	months[3] = "March";
	months[4] = "April";
	months[5] = "May";
	months[6] = "June";
	months[7] = "July";
	months[8] = "August";
	months[9] = "September";
	months[10] = "October";
	months[11] = "November";
	months[12] = "December";

	var weekday=new Array(7)
	weekday[0]="Sunday"
	weekday[1]="Monday"
	weekday[2]="Tuesday"
	weekday[3]="Wednesday"
	weekday[4]="Thursday"
	weekday[5]="Friday"
	weekday[6]="Saturday"

	dtToday = new Date();
	dtLastMod = new Date(document.lastModified);
	
function formatDate(dDateToFormat, tFormat) {
	
	var aFormats = new Array(11);
	var aValues = new Array(11);
	var dt = new Date(dDateToFormat);
	var fmt = tFormat;
	
	aFormats[0] = "%MM%";
	var iMonth = dt.getMonth()+1;
	aValues[0] = iMonth.toString();
	aFormats[1] = "%M%";
	aValues[1] = months[iMonth];
	aFormats[2] = "%Mmm%";
	aValues[2] = months[iMonth].substr(0,3);
	aFormats[3] = "%DD%";
	iDay = dt.getDate();
	aValues[3] = iDay.toString();
	aFormats[4] = "%D%";
	iDOW = dt.getDay();
	aValues[4] = weekday[iDOW];
	aFormats[5] = "%Ddd%";
	aValues[5] = weekday[iDOW].substr(0,3);
	aFormats[6] = "%Y%";
	var YYYY = dt.getFullYear();
	aValues[6] = YYYY.toString();
	YY = aValues[6] % 100;
	var cYY = YY.toString();
	var iYLen = cYY.length;
	while (iYLen < 2) {
		cYY = "0"+cYY;
		iYLen += 1;
	}
	aFormats[7] = "%YY%";
	aValues[7] = cYY;
	aFormats[8] = "%h%";
	var h = dt.getHours();
	aValues[8] = h.toString();
	aFormats[9] = "%m%";
	var m = dt.getMinutes();
	var cm = m.toString();
	var iCmLen = cm.length;
	while (iCmLen < 2) {
		cm = "0" + cm;
		iCmLen += 1;
	}
	aValues[9] = cm;
	aFormats[10] = "%s%";
	var s = dt.getSeconds();
	var cs = s.toString();
	var iCsLen = cs.length;
	while (iCsLen < 2) {
		cs = "0" + cs;
		iCsLen += 1;
	}
	aValues[10] = cs;
	
	var x;
	for (x=0;x<=10;x++) { 
		fmt = fmt.replace(aFormats[x],aValues[x]);
	}
	return fmt;
}

function jumpPage(newLoc) {

		newPage = newLoc.options[newLoc.selectedIndex].value;

		if (newPage != "") {
			
			window.parent.location.href = newPage
		}
	}

function popUpWindow(URLStr, left, top, width, height){ 
 popUpWindow = open(URLStr, 'popUpWind', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}  

function updateDateLastMod_old()
{
	var x = new String(new Date());
//	var x = new String("Tue Feb 28 10:27:00 EST 2006");
	var y = new String(document.lastModified);

//	alert(navigator.appName);
	if(navigator.appName == "Netscape"){ // Netscape
		lmString =  y.substring(5,16);
		x = "Today is " + x.substring(0,10) + ", " + x.substring(10,16);
		document.getElementById("columnLeft").style.overflow = "auto";
		document.getElementById("mainContent").style.overflow = "auto";
	}
	else { // IE
		if (x.substring(9,10) == " ") {
			x = "Today is " + x.substring(0,9) + ", " + x.substring(23,28);
		} else {
			x = "Today is " + x.substring(0,10) + ", " + x.substring(23,28);
		}
	 	var lmString = y.substring(0,10);
	 	var lmMM = parseInt(lmString.substring(0,2),10);
	 	var lmDD = lmString.substring(3,5);
	 	var lmYYYY = lmString.substring(6,10);
	 	lmString = months[lmMM] + " " + lmDD + ", " + lmYYYY;
	}
	y = "Page Last Modified:<br>" + lmString; 
	document.getElementById("DateInfo").innerHTML=x;
	document.getElementById("lastMod").innerHTML=y;
}
     
function updateDateLastMod()
{
   	argv=arguments;
   	argc=arguments.length;
   	var fmtToday=(argc>0) ? argv[0] : "%Ddd% %Mmm% %DD%, %Y%";
   	var fmtDLM=(argc>1) ? argv[1] : "%DD% %Mmm% %Y%";
	updateDate(fmtToday);
	updateLastMod(fmtDLM);
}
     
function updateDate(fmt)
{
document.getElementById("DateInfo").innerHTML = "Today is " + formatDate(dtToday,fmt);
}
     
function updateLastMod(fmt)
{
document.getElementById("lastMod").innerHTML = "Page Last Modified:<br>" + formatDate(dtLastMod,fmt);
}
     

function newWindah(opplist,oppWin, winview)  {
		oppWindah = window.open(opplist, oppWin, winview);
} 
// JavaScript Document

function setWinSize()
{
var winW;
var navType;
//var curTime as new Date();

 if (navigator.appName=="Netscape") {
  	winW = window.innerWidth - 30;
	navType = "Netscape";
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  	winW = document.body.offsetWidth - 40;
	navType = "IE";
 }
 //curTime.setTime(curTime.getTime() + 5000);
 //document.cookie = "scrWidth=" + winW +"; expires=" + curTime.toGMTString();
 document.cookie = "navType=" + navType;
 document.cookie = "scrWidth=" + winW;
}

function rollImage(imageName, fileName) {
var fullPath = "../images/directions/rest_map_" + fileName + ".gif";
	if (document.getElementById(imageName)) {
		document.getElementById(imageName).src = fullPath;
	}
}

function getColor(elementID, inColor) {
	
	document.getElementById(elementID).style.color = inColor;
	
}
function loadBanner(bannerID) {
			if(navigator.appName != "Microsoft Internet Explorer") {
				var currHTML = document.getElementById(bannerID).innerHTML;
				document.getElementById(bannerID).style.color = "#ffffff;"; //"white";
				document.getElementById("drop_shadow_text").innerHTML = currHTML;}
			}

