function initRoot(){
var loc = location.href.toLowerCase();
if (loc.indexOf("http://www.thompsonelementary.com/")!=-1){root = "http://www.thompsonelementary.com/";} // Live site
else if (loc.indexOf("http://thompsonelementary.com/")!=-1){root = "http://thompsonelementary.com/";} // Test site 2
else if (loc.indexOf("http://home.comcast.net/~manion/thompson/")!=-1){root = "http://home.comcast.net/~manion/thompson/";} // Test site 2
else if (loc.indexOf("")!=-1){root = "";} // Test site 3
return root;
}
var root = initRoot();
var doNews=false;

document.write('<SCRIPT LANGUAGE="JavaScript1.2" SRC="'+root+'scripts/mainMenu.js" TYPE="text/javascript"><\/SCRIPT>');
document.write('<SCRIPT LANGUAGE="JavaScript1.2" SRC="'+root+'scripts/subMenu.js" TYPE="text/javascript"><\/SCRIPT>');
document.write('<SCRIPT LANGUAGE="JavaScript1.2" SRC="'+root+'scripts/newsScroller.js" TYPE="text/javascript"><\/SCRIPT>');

// COLORS: red: 940203; orange: EF8C00; purple: 7B15D9
var primBGColor = "";
var primHeadingColor = "#7B15D9";
var navFontSize = "124%";
var navFontColor = "#EF8C00";
var navFontWeight = "bold";
var navFontColorOn = "#7B15D9";
var navSubFontSize = "80%";
var navSubFontColor = navFontColorOn;
var navSubFontColorOn = "#888888";
var lineColor = "#cccccc";

// Adjust font sizes for NS
if (navigator.appName == "Netscape"){
var bodySz = "small";
var tdSz = "small";
var mainSz = "small";
var titleSz = "155%";
var h3Sz = "133%";
var otherSz = "108%";
var smTextSz = "x-small";
var navFontSize = "134%";
var navSubFontSize = "85%";
	}else{
var bodySz = "x-small";
var tdSz = "x-small";
var mainSz = "x-small";
var titleSz = "150%";
var h3Sz = "130%";
var otherSz = "105%";
var smTextSz = "xx-small";
}

document.write('<style>');

document.write('body{font-family: verdana; font-size: '+bodySz+'; margin-top: 7px}');
document.write('td,p,tt{font-family: verdana; font-size: '+tdSz+'}');
document.write('th{font-family: verdana; font-size: '+tdSz+'; font-weight: bold; color: #ffffff; background-color: #666666}');
document.write('.mainContent{font-family: verdana; font-size: '+mainSz+' !important}');
document.write('.pageTitle{margin-top: 0px; color: '+primHeadingColor+'; font-size: '+titleSz+'; font-weight: normal !important}');
document.write('h3{color: #940203; font-size: '+h3Sz+'; font-weight: normal !important}');
document.write('.otherTitle{color: #000000; font-size: '+otherSz+'; font-weight: normal !important}');
document.write('ul{list-style-position: outside; list-style-image: url("'+root+'images/listMarker.gif"); vertical-align:text-top !important}');
document.write('ul.snow{list-style-position: outside; list-style-image: url("'+root+'images/listMarkerSnow.gif"); vertical-align:text-top !important}');
document.write('ol{list-style-type: decimal !important}');
document.write('.smallText{color: #555555; font-size: '+smTextSz+' !important}');
document.write('.smallTextReg{color: #000000; font-size: '+smTextSz+' !important}');
document.write('input.smallText{font-family: verdana; color: #555555; font-size: '+smTextSz+' !important}');
document.write('.startPageContent{position: relative; top: 15px; left: 15px; width: 96% !important}');
document.write('h2{font-size: medium; letter-spacing: 0px; font-weight: normal; color: #000000 !important}');
document.write('.special{border: dashed 2px #940203; background-color: #FFFFCC !important}');
document.write('.news{margin-bottom: 5px; padding-bottom: 5px; border-bottom: solid 1px #dddddd !important}');
document.write('.top{position: relative; top: -60px; line-height: -10px !important}');
document.write('.calDivide{color: '+navFontColor+'; text-align: center; font-size: '+smTextSz+' !important}');

// Calendar
document.write('.dayHead{font-size: 95%; text-align: center; font-weight: bold; border: solid 0px #666666; width: 125px; height: 35; background-color: transparent; color: #cc0000; background-image: url("'+root+'images/cal/calTop_September.gif"); background-repeat: no-repeat}');
document.write('.SpellE{font-size:10px; font-weight:normal;font-family:verdana;color:#ffff00;filter:Glow(color=#000000,strength=3);height:14px; }');/* Spanish Weekday Text */
document.write('td.dayText{padding: 4px; font-family: verdana; font-size: xx-small; border: solid 1px #cccccc; width: 125px; height: 100px  !important}');
document.write('.number{position: relative; top: -3px; left: 0px; text-align: left; font-weight: bold; color: #EF8C00;}');
// Thompson News Notes
document.write('.insetText {float: right; margin-left: 0px; margin-bottom: 0px; position: relative; top: -10px}');
document.write('.newsbody{padding: 8px; font-size: 8.5pt; padding-left: 15px; padding-right: 15px; background-color: #FFFFCC; }');
document.write('.newsindent{color: #940203; text-align: center; font-size: xx-small; padding-left: 15px; padding-right: 15px; padding-top: 5px; padding-bottom: 5px}');
document.write('.newsHead{padding: 3px; border-bottom: groove 1px #000000; font-size: 11pt; font-weight: bold; color: #FFFFFF; background-color: '+navFontColor+' !important}');
document.write('.newsText{background-color: #ffffff; color: #555555; font-size: '+smTextSz+'; padding: 7px; padding-top: 0px}');
document.write('.newsLink{font-size: xx-small; font-weight: bold; margin-left: 3px; padding-top: 5px; padding-bottom: 5px}');
document.write('a.newsLink:link {color: #0000cc !important}');
document.write('a.newsLink:visited {color: #0000cc !important}');
document.write('a.newsLink:active {text-decoration: none; color: #0000cc !important}');
document.write('a.newsLink:hover {text-decoration: none; color: '+navFontColor+' !important}');
document.write('.newsTable{border: groove 1px #000000; background-color: #ffffff !important}');
document.write('.moreLink{text-align: right !important}');
// Search
document.write('.searchP{font-size: x-small !important}');
document.write('.searchNum{color: '+navFontColor+' !important}');
document.write('.searchTitle{color: #940203 !important}');
document.write('.searchHref{font-size: '+tdSz+' !important}');
document.write('a.searchHref:link {color: #0000cc !important}');
document.write('a.searchHref:visited {color: #0000cc !important}');
document.write('a.searchHref:active {text-decoration: none; color: #0000cc !important}');
document.write('a.searchHref:hover {text-decoration: none; color: '+navFontColor+' !important}');
document.write('.searchDesc{color: #000000; margin-left: 18px; font-size: x-small; padding: 4px; font-weight: normal !important}');
document.write('.searchLM{margin-left: 18px; font-size: xx-small; color: #666666 !important}');
document.write('.searchMatch{background-color: #FCFE56; color: #bb0000; text-transform: uppercase !important}');
document.write('.input{border: solid 0px #888888; font-family: verdana; font-size: xx-small !important}');
document.write('.searchInput{padding-top: 1px; padding-left: 3px; border: solid 1px #888888; background-image: url("'+root+'images/inputBG.gif"); background-repeat: no-repeat; background-position: top left; background-color: transparent; font-family: verdana; font-size: xx-small !important}');
document.write('.searchButton{line-height: 13pt; font-weight: bold; text-transform: uppercase; cursor: hand; font-family: verdana; color: #ffffff; font-size: x-small; border: solid 1px #000000; background-color: #940203 !important}');
// image links
document.write('.img {border: solid 1px #000000 !important}');
document.write('a.img:link {color: #000000 !important}');
document.write('a.img:visited {color: #000000 !important}');
document.write('a.img:active {color: #000000 !important}');
document.write('a.img:hover {text-decoration: none; color: #000000 !important}');
// default link
document.write('a:link {color: #0000EE !important}');
document.write('a:visited {color: #0000EE !important}');
document.write('a:active {color: #0000EE !important}');
document.write('a:hover {text-decoration: none; color: '+navFontColor+' !important}');
// default menu link
document.write('a.mainNav:link {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColor+' !important}');
document.write('a.mainNav:visited {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColor+' !important}');
document.write('a.mainNav:active {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColor+' !important}');
document.write('a.mainNav:hover {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColorOn+' !important}');
// default selected menu link
document.write('a.mainNavOn:link {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColorOn+' !important}');
document.write('a.mainNavOn:visited {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColorOn+' !important}');
document.write('a.mainNavOn:active {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColorOn+' !important}');
document.write('a.mainNavOn:hover {font-size: '+navFontSize+'; font-weight: '+navFontWeight+'; text-decoration: none; color: '+navFontColorOn+' !important}');
// default sub-link
document.write('a.subNav:link {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColor+' !important}');
document.write('a.subNav:visited {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColor+' !important}');
document.write('a.subNav:active {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColor+' !important}');
document.write('a.subNav:hover {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColorOn+' !important}');
// default selected sub-link
document.write('a.subNavOn:link {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColorOn+' !important}');
document.write('a.subNavOn:visited {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColorOn+' !important}');
document.write('a.subNavOn:active {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColorOn+' !important}');
document.write('a.subNavOn:hover {font-size: '+navSubFontSize+'; font-weight: normal; text-decoration: none; color: '+navSubFontColorOn+' !important}');
document.write('.subNavOn {font-size: 70%; font-weight: normal; text-decoration: none; color: '+navSubFontColorOn+' !important}');
// sub-link icon mouseover
document.write('.pic, a.pic, a.pic img {');
document.write('filter: Alpha(opacity=100); ');/* IE */ 
document.write('-moz-opacity: 1.0;'); /* Mozilla */ 
document.write('}');
document.write('a.pic:hover, a.pic:hover img {');
document.write('filter: Alpha(opacity=30); ');
document.write('-moz-opacity: .3; ');
document.write('}');

// sub-link icon mouseover [non-href]
document.write('.picOff {');
document.write('filter: Alpha(opacity=100); ');/* IE */ 
document.write('-moz-opacity: 1.0;'); /* Mozilla */ 
document.write('}');
document.write('.picOn {');
document.write('filter: Alpha(opacity=30); ');
document.write('-moz-opacity: .3; ');
document.write('}');

// hide for printing
document.write('@MEDIA PRINT {.noprint {display: none}}');
document.write('@MEDIA PRINT {#noprint {display: none}}');
document.write('@MEDIA PRINT {.dayHead{font-size: 10pt; text-align: center; font-weight: bold; border: solid 0px #666666; width: 130px; height: 0px; background-color: #666666; color: #FFFFFF; background-image: url("'+root+'images/cal/.gif"); background-repeat: no-repeat}}');
document.write('@MEDIA PRINT {.SpellE{font-size: 8pt; font-weight: normal; color: #FFFFFF; filter:None(color=#000000,strength=0);height:14px;}}');/* Spanish Weekday Text */
document.write('@MEDIA PRINT {td.dayText{padding: 4px; font-family: verdana; font-size: xx-small; border: solid 1px #cccccc; width: 0px; height: 0px}}');
document.write('@MEDIA PRINT {.number{position: relative; top: -3px; left: 0px; text-align: left; font-weight: bold; color: #DF8200}}');
document.write('<\/style>');

// Print Preview: for testing what a printed page will look like, WITHOUT actually printing it (user can print from there)
function printpr(){
var OLECMDID = 7; // 6=print; 7=print preview; 1=open window; 4=Save As
var PROMPT = 1; // 2 DONTPROMPTUSER 
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser); 
WebBrowser1.ExecWB(OLECMDID, PROMPT);
WebBrowser1.outerHTML = "";
}
var printPreview = "true"; // ON="true", OFF="false"
// Bookmark/Favorites
var bookmarkurl=location.href;
var bookmarktitle=document.title;
function addbookmark(){
if (document.all){
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
}
// Date Script
function makeArray0() {
for (i = 0; i<makeArray0.arguments.length; i++)
this[i] = makeArray0.arguments[i];
}
var days = new makeArray0("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var months = new makeArray0('January','February','March','April','May','June','July','August','September','October','November','December');
function nths(day) {
if (day == 1 || day == 21 || day == 31) return 'st';
if (day == 2 || day == 22) return 'nd';
if (day == 3 || day == 23) return 'rd';
return 'th';
}
function getCorrectedYear(year) {
year = year - 0;
if (year < 70) return (2000 + year);
if (year < 1900) return (1900 + year);
return year;
}
function y2k(number) { return (number < 1000) ? number + 1900 : number; }
// Last Modified
var last = document.lastModified;
var date = new Date(last);
var dateY2K = new Date(getCorrectedYear(date.getYear()),date.getMonth(),date.getDate());
// Current Date
var now = new Date();
var currentdate = new Date(now);
var currentdateY2K = new Date(getCorrectedYear(currentdate.getYear()),currentdate.getMonth(),currentdate.getDate());

// Image Gallery Popup Windows
var w; 
function ShowPic(url) { 
if (w != undefined) w.close(); 
w = window.open('', 'pic', 'width=250, height=10, top=0, left=0, scrollbars=yes, resizable=yes'); 
w.document.writeln('<html><head>');

w.document.writeln('<style>');
w.document.writeln('body,a {font-family: verdana; font-size: xx-small; background-color: #666666 !important}');
w.document.writeln('div {line-height: 25px; color: #FFFFFF !important}');
w.document.writeln('a:link {text-decoration: none; color: yellow !important}');
w.document.writeln('a:visited {text-decoration: none; color: yellow !important}');
w.document.writeln('a:active {text-decoration: none; color: yellow !important}');
w.document.writeln('a:hover {text-decoration: none; color: #EF8C00 !important}');
w.document.writeln('</style>');

w.document.writeln('<title>L O A D I N G . . . .</title></head><body topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0 onLoad="FitPic();">');

w.document.writeln('<script language="javascript">'); 
w.document.writeln("var NS = (navigator.appName==\"Netscape\")?true:false;"); 
w.document.writeln("function FitPic() { "); 
w.document.writeln("iWidth = (NS)?window.innerWidth:document.body.clientWidth;"); 
w.document.writeln("iHeight = (NS)?window.innerHeight:document.body.clientHeight;"); 
w.document.writeln("iWidth = document.images[0].width - iWidth;"); 
w.document.writeln("iHeight = (document.images[0].height - iHeight > 800 ? 800 : document.images[0].height - iHeight);");

w.document.writeln("window.resizeBy(iWidth, iHeight + 25);"); 

w.document.writeln("self.focus();"); 
w.document.writeln("document.title='Thompson Event Gallery';"); 
w.document.writeln("}"); 
w.document.writeln("setTimeout('FitPic()', 1000);"); 
w.document.writeln("<\/script>"); 
w.document.writeln('<img src="' + url + '"><br>'); 
w.document.writeln('<div align="right">[ <a href="javascript:void(0)" onclick="self.close()">close window</a> ]&nbsp;&nbsp;</div>'); 
w.document.writeln("</body></html>"); 
} 

// onError/Reload
function killErrors() {
return true;
}
window.onerror = killErrors;
// add functions(); as needed below
window.onload = function() {
loadScroller();
document.searchThomp.search.focus();
}

//
function calBreak(){
document.write("<div align='center' style='color:#7B15D9; font-family:verdana; font-size: xx-small; line-height: 20px; text-align: center; align: center'>~~~~~~~~~~~~~</div>");
}

// Banner
function banner(){
document.write('<div align="center">');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr>');
document.write('<td valign="top" class="smallText"><a href="'+root+'index.htm" title="Return to Home" onFocus="this.blur()"><img class="noprint" src="'+root+'images/logo1.gif"  border="0"></a>');

document.write('<img src="'+root+'images/1px.gif" width="1" height="5" border="0"></td>');
document.write('<td class="smallText" NOWRAP align="center" width="100%">');
// Mission Statement
document.write('<span class="noprint" style="color: #940203; text-align: left; letter-spacing: 5px; font-size: 110%">Learning &#183; Respect &#183; Responsibility &#183; Community</span>');
document.write('</td>');
document.write('<td align="right">');
// Business Card
document.write('<table cellspacing="0" cellpadding="0" class="noprint">');
document.write('<tr>');
document.write('<td align="right" class="smallText" NOWRAP>');
document.write('Thompson Elementary School&nbsp;<br>');
document.write('60 N. Union St.&nbsp;<br>Arlington, MA 02474&nbsp;<br>');
// added until new info is provided
document.write('Telephone: 781-316-3768&nbsp;');

document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="right" class="smallText"><img src="'+root+'images/1px.gif" width="1" height="5" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
//ommitted until new info is provided
//document.write('<td align="right" class="smallText" bgcolor='+lineColor+' NOWRAP><img src="'+root+'images/1px.gif" width="1" height="1" border="0"></td>');
document.write('<td align="right" class="smallText" NOWRAP></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="right" class="smallText"><img src="'+root+'images/1px.gif" width="1" height="5" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="right" class="smallText" NOWRAP>');
//ommitted until new info is provided
//document.write('Principal: Michael F. McCabe&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="right" class="smallText">');
//ommitted until new info is provided
//document.write('Secretary: Susan E. Annis&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="right" class="smallText">');
//ommitted until new info is provided
//document.write('Telephone: 781-316-3768&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td NOWRAP valign="absbottom">');
/*
var loc = location.href.toLowerCase();
// newsScroller
if ((doNews==true)&&(loc.indexOf("whatsup.htm")!=-1)){// hide from What's Up page...there's a bug
null
}else if ((doNews==true)&&(loc.indexOf("whatsup.htm")==-1)){
document.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td NOWRAP><img src="'+root+'images/newsCap.gif" border="0"></td><td NOWRAP>');
window.buildScroller();
document.write('</td><td NOWRAP><a href="#"onClick="stopScroller();" title="Click to slow down or stop scrolling" onFocus="this.blur()"><img src="'+root+'images/scrollPause.gif" border="0"></a><a href="#" onClick="setWidth()" title="Click until desired scrolling speed" onFocus="this.blur()"><img src="'+root+'images/scrollPlay.gif" border="0"></a></td></tr></table>');
}else{null}
*/
document.write('</td>');
document.write('<td align="right" colspan="2">');

document.write('<span class=noprint>');
// main navigation
window.mainNav();
document.write('</span>');

document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
//<!-- spacer -->
document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
document.write('<tr>');
document.write('<td bgcolor="FFFFFF"><img src="'+root+'images/1px.gif"  height="6" width="1" border="0"></td>');
document.write('</tr>');
document.write('</table>');

document.write('<span class=noprint>');
document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
document.write('<tr>');
document.write('<td bgcolor='+lineColor+'><img src="'+root+'images/1px.gif"  border="0"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</span>');

document.write('<span class=noprint>');
document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
document.write('<tr>');
document.write('<td>');
window.subNav();
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</span>');

//document.write('<div class=noprint style="text-align: right;">');
// sub navigation
//window.subNav();
//document.write('</div>');
// Changed position to relative -20 to move content closer to banner
document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%" style="position: relative; top: -20px">');
document.write('<tr>');

// Onresize Reload (for SITE WINDOW), forces page to take up entire screen
var origWidth, origHeight;
if (document.layers) {
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
  onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight){ location.reload(); }}
}
else if (document.all){ onresize = function() { window.location.reload();}}
// force height function
var height;
if(navigator.appName == 'Microsoft Internet Explorer'){
height = document.body.offsetHeight-300 // Adjust for banner and footer height in IE
}else{
height = window.innerHeight-295 // "" in NS and other
}

document.write('<td valign="top"><img src="'+root+'images/1px.gif"  border="0" width="10" height='+height+'>');
document.write('<td valign="top">');

document.write('</td>');
// Content Begins Here
document.write('<td valign="top" width="100%">');

// Replaces "text" found within "string" with "by".
// Without this, menu item "About Us" (i.e.), would only display "About" onMouseOver.
function replace(string,text,by) {
var strLength = string.length, txtLength = text.length;
if ((strLength == 0) || (txtLength == 0)) return string;
var i = string.indexOf(text);
if ((!i) && (text != string.substring(0,txtLength))) return string;
if (i == -1) return string;
var newstr = string.substring(0,i) + by;
if (i+txtLength < strLength)
newstr += replace(string.substring(i+txtLength,strLength),text,by);
return newstr;
}	
var caption = document.title;
var mycaption = replace(caption,'Thompson Elementary School - ','&nbsp;');

document.write('<table cellspacing="0" cellpadding="0" border="0">');
document.write('<tr>');
document.write('<td class="pageTitle" valign="bottom">');
// Uses document title for page title. Above script removes redundant string.
document.write(mycaption);
document.write('</td>');
document.write('<td align="right">');

document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('<div style="margin-left: 20px" class="mainContent"><br>');
}
// Footer
function footer(){

document.write('</div></td>');
document.write('<td><img src="'+root+'images/1px.gif"  border="0" width="20"></td>');
document.write('</tr>');
document.write('</table>');

document.write('<img src="'+root+'images/1px.gif"  border="0" height="37"><br><span class=noprint>');
//document.write('<b style="color:#7B15D9">An Equal Opportunity School System with a High Commitment to Diversity.</b><br><br>');
document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
document.write('<tr>');
document.write('<td bgcolor='+lineColor+'><img src="'+root+'images/1px.gif"  border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><img src="'+root+'images/1px.gif"  height="10" border="0"></td>');
document.write('</tr>');
document.write('</table>');

document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
document.write('<tr>');
document.write('<td class="smallText" width="33.3%">');
document.write("&nbsp;Last Updated: " + months[dateY2K.getMonth()] + " " +dateY2K.getDate() + nths(dateY2K.getDate()) + ", " +(y2k(dateY2K.getYear())) + "<br>");

document.write("&nbsp;<img src="+root+"images/icon_emailSm.gif border=0 align=absmiddle>&nbsp;<a style=text-decoration:none href="+root+"comments.htm>Contact Webmaster</a>");
document.write('</td>');

document.write('<td align="center" class="smallText" width="33.3%">');
document.write('<i style="color: #bb0000">Not An Arlington Public Schools Official Web Page</i>');
document.write('</td>');

document.write('<td class="smallText" align="right" valign="top" NOWRAP width="33.3%">');
document.write('&copy; copyright ' +(y2k(currentdateY2K.getYear())) + ' &#183; Thompson Elementary School&nbsp;<br>All rights reserved&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</span>');
document.write('</div>');

// T.O.P. Image/Link
var topOfPageMsg='<div class="top" id="noprint" align="right"><a href="#" onFocus="this.blur()" target="_self"><img src="'+root+'images/top.gif" border="0" alt="Return to Top of Page"></a></div>';

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;
var ns4=document.layers;
lC=(ie4)? document.body.scrollHeight : document.height;
rC=(ie4)? document.body.clientHeight : window.innerHeight-20;
if(lC>rC) {
document.write(topOfPageMsg);
}
var agt=navigator.userAgent.toLowerCase();
function nsReload() { window.location.reload(); }
function reLoad() {
if (ns4&&(agt.indexOf("win")!=-1)) {
setTimeout("window.onresize=nsReload", 500);
}
}
if(ns4) {
reLoad();
}
else if(ie4) {
window.onresize=new Function("window.location.reload()");
}
}

