
<!--
function cOn1(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#cccccc";
}
}

function cOut1(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FFFFFF";
}
}
//-->

//** Drop Nav Centered on Site **//
// IE and Mozilla friendly way to get id's
function findId(id) {
	if (document.getElementById) {
		return document.getElementById(id);
	} else if (document.all) {
		return document.all.id;
	}
}

tdLastId = "";
tdCurrentId = "";
waiting = 0;
waitTime = 50;
timeoutId = "";

function navFlip(id, that, xOffset, yPos) {
	//alert(xOffset)
	xOffset  = 0;
	if (!xOffset) xOffset = 0;
	if (!yPos) yPos = 0;
	if (waiting) {
		if (id != tdLastId) {
			clearTimeout(timeoutId);
			that_saved = that;
			timeoutId = setTimeout('clearWait(' + xOffset + ', ' + yPos + ')', waitTime);
		}
		tdLastId = id;
		return;
	}

	if (tdCurrentId != id) {
		if (id) {
			lyr = findId(id);

			if (that) {
				lyr.style.left = findPosX(that) + xOffset;
				if (yPos) {
					lyr.style.top = yPos;
				}
			}

			lyr.style.visibility = "visible";

			waiting = id;
		}

		if (tdCurrentId) {
			//alert('dis: ' + tdCurrentId + ' waiting:' + waiting);

			lyr = findId(tdCurrentId);

			lyr.style.visibility = "hidden";
		}
		tdCurrentId = id;
	}
	tdLastId = id;
}

function clearWait(xOffset, yPos) {
	//alert('clearing: ' + waiting);
	waiting = 0;
	navFlip(tdLastId, that_saved, xOffset, yPos);
}

// Functions to find positions of static images
function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	} else if (obj.x) {
		curleft += obj.x;
	}

	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	} else if (obj.y) {
		curtop += obj.y;
	}

	return curtop;
}


<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";

/*These will be the variables holding the info of which browser the user is using*/
	var isNew = 0;
	var isNS4 = 0;
	var isIE4 = 0;
	
	/*This sets the above browser variables*/
	var brows=((navigator.appName)+(parseInt(navigator.appVersion)));
	if(parseInt(navigator.appVersion)>=5) 
		isNew=1;
	else if (brows=="Netscape4") 
		isNS4=1;
	else if (brows=="Microsoft Internet Explorer4") 
		isIE4=1;

// mouseover script
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}
//-->

//popup window
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->

//show hide layer for 105th Boston Marathon Page (105thMarathon.asp)
<!--
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

//SLIDESHOW **************************
var photos=new Array()
var photoscaption=new Array()
var which=0

//define images. You can have as many as you want. Images MUST be of the same dimensions (for NS's sake)
//IMAGES ARE DEFINED WITHIN THE ACTUAL PAGE
function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}

function backward(){
	if (which>0){
		which--
		//applyeffect()
		document.images.photoslider.src=photos[which]
		//document.slide.photoscaption.value=photos[which]
		//playeffect()
		keeptrack()
	}
}

function forward(){
	if (which<photos.length-1){
		which++
		//applyeffect()
		document.images.photoslider.src=photos[which]
		//document.slide.photoscaption.value=photos[which]
		//playeffect()
		keeptrack()
	}
}
//END SLIDESHOW **************************


function CheckAll(mycheckbox)
{
	for (var i=0;i<document.PageForm.elements.length;i++)
	{
		var e = document.PageForm.elements[i];
		str=e.name.substring(0,13);
		if ((e.name != 'allbox1') && (e.name != 'ReceiveEmails') && (str != 'ResultsDelete') && (e.type=='checkbox'))
		e.checked = document.PageForm.allbox1.checked;
	}
}

function CheckCheckAll()
{
	var TotalBoxes = 0;
	var TotalOn = 0;
	for (var i=0;i<document.PageForm.elements.length;i++)
	{
		var e = document.PageForm.elements[i];
		str=e.name.substring(0,13);
		if ((e.name != 'allbox1') && (e.name != 'ReceiveEmails') && (str != 'ResultsDelete') && (e.type=='checkbox'))
		{
			TotalBoxes++;
		if (e.checked)
		{
			TotalOn++;
		}
		}
	}
	if (TotalBoxes==TotalOn)
	{
	document.PageForm.allbox1.checked=true;
	}
	else
	{
	document.PageForm.allbox1.checked=false;
	}
}



function SetFormValue(formStr,field,value) {
	
	form=(MM_findObj(formStr))
	
	if (form) {
		if (null != (form.elements[field])) {
			if ((browser == netscape)&&(form.elements[field].type=='select-one')){
				sellength=form.elements[field].length;
				for (i=0; i< sellength; i++) {
					if (form.elements[field].options[i].value==value)
						form.elements[field].options[i].selected=true;
				}
			} 
			else 
				form.elements[field].value=value;
		}		
	}
}

function SubmitForm(formStr) {
	form=(MM_findObj(formStr))
	if(form) form.submit();
}