function RenderHeader(pageName) {
	document.write('<a name="Top">');
	document.write('<div id="header"><center>');
	/*
	if (pageName == 'home') {
		document.write('<a href="/about/about.htm"><img src="/images/HDHome.jpg" width="857" height="116" border="0" alt="Gale Ranch Middle School" title="Gale Ranch Middle School" /></a>');
		document.write('<br/><img src="/images/HDInfo.jpg" width="1000" height="26" border="0" />');
	} else {
		document.write('<a href="/"><img src="/images/HDHome.jpg" width="857" height="116" border="0" alt="Gale Ranch Middle School" title="Gale Ranch Middle School" /></a>');
		document.write('<br/><img src="/images/HDInfo.jpg" width="1000" height="26" border="0" />');
	}
	*/
	if (pageName == 'home') {
		document.write('<img src="/images/HDHome.jpg" width="724" height="90" border="0" alt="Lam&#39;s Web Site" title="Lam&#39;s Web Site" />');
	} else {
		document.write('<a href="/"><img src="/images/HDHome.jpg" width="724" height="90" border="0" alt="Lam&#39;s Web Site" title="Lam&#39;s Web Site" /></a>');
	}
		
	document.write('<div class="invertedshiftdown">');

	document.write('	<ul>');
	
	if (pageName != 'home') {
		document.write('		<li><a href="/" title="Home">Home</a></li>');
	}
	/*
	if (pageName != 'news') {
		document.write('		<li><a href="/news/news.htm" title="News">News</a></li>');
	} else {
		document.write('		<li class="current"><a href="/news/news.htm" title="News">News</a></li>');
	}
	if (pageName != 'events') {
		document.write('		<li><a href="/events/events.htm" title="Events">Events</a></li>');
	} else {
		document.write('		<li class="current"><a href="/events/events.htm" title="Events">Events</a></li>');
	}
	*/
	if (pageName != 'education') {
		document.write('		<li><a href="/education/education.htm" title="Education">Education</a></li>');
	} else {
		document.write('		<li class="current"><a href="/education/education.htm" title="Education">Education</a></li>');
	}
	if (pageName != 'christianity') {
		document.write('		<li><a href="/christianity/christianity.htm" title="Christianity">Christianity</a></li>');
	} else {
		document.write('		<li class="current"><a href="/christianity/christianity.htm" title="Christianity">Christianity</a></li>');
	}
	if (pageName != 'family') {
		document.write('		<li><a href="/family/family.htm" title="Family">Family</a></li>');
	} else {
		document.write('		<li class="current"><a href="/family/family.htm" title="Family">Family</a></li>');
	}
	if (pageName != 'resources') {
		document.write('		<li><a href="/resources/resources.htm" title="Resources">Resources</a></li>');
	} else {
		document.write('		<li class="current"><a href="/resources/resources.htm" title="Resources">Resources</a></li>');
	}
	/*
	if (pageName != 'about') {
		document.write('		<li><a href="/about/about.htm" title="About">About</a></li>');
	} else {
		document.write('		<li class="current"><a href="/about/about.htm" title="About">About</a></li>');
	}
	if (pageName != 'contact') {
		document.write('		<li><a href="/contact/contact.htm" title="Contact">Contact</a></li>');
	} else {
		document.write('		<li class="current"><a href="/contact/contact.htm" title="Contact">Contact</a></li>');
	}
	*/
	document.write('	</ul>');

	document.write('	<script language="JavaScript" type="text/javascript">');
	document.write('		RenderSearchBox();');
	document.write('	</script>');

	document.write('</div>');

	document.write('</center></div>');

	// buttons under the header
	document.write('<div id="header-buttons">');

	// AddThis
	/*
	document.write('	<!-- AddThis Button BEGIN -->');
	document.write('	<script type="text/javascript">addthis_pub  = \'minglam\';</script>');
	document.write('	<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/button1-addthis.gif" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>');
	document.write('	<!-- AddThis Button END -->');
	*/
	
	// ShareThis
	document.write('	<script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cpost%2Cemail&amp;charset=utf-8&amp;style=rotate&amp;publisher=5432ae29-8935-4478-90ce-69a2b5c1f959"></script>');

	document.write('&nbsp;');
	
	// ConveyThis
	document.write('	<!-- Begin ConveyThis Button -->');
	document.write('		<script type="text/javascript">');
	document.write('			convey_source   = "English";');
	document.write('			convey_user     = "minglam";');
	document.write('		</script>');
	document.write('		<a href="http://www.translation-services-usa.com/" id="conveythis_image" title="translation services" onmouseover="conveythis_show(this)" onmouseout="conveythis_start_timer()" onclick="return conveythis_prepWindow(this)" >');
	document.write('		<img src="http://e1.conveythis.com/kern_e1/images/translate1.gif" style="border-style: none;" /></a>');
	document.write('		<script type="text/javascript" src="http://e1.conveythis.com/kern_e1/javascript/e1_1.js"></script>');
	document.write('		</a>');
	document.write('	<!-- End ConveyThis Button -->');

	document.write('&nbsp;');

	document.write('	<a href="javascript:location.href=\'http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL=\'+encodeURIComponent(document.location.href)+\'&author_id=49F2A705-B18F-4425-A2B9-58B799639DFC\'+\'&pageOrientation=1\'" target="_blank"><img src="/images/acrobat.gif" width="16" height="16" border="0" alt="Save as PDF" title="Save as PDF"></a>');
	
	document.write('</div>');
}	// RenderHeader
	
function RenderSearchBox() {		
	document.write('	<div class="searchBox">');

	/* http://www.google.com/coop/manage/cse/code?cx=004251841726718845230:zjxtghjtrzm&sig=__q3zkKqqHsVP66B6_QRviSDA7LnA= */
	document.write('	<form action="http://www.google.com/cse" id="cse-search-box">');
	document.write('	  <div>');
	document.write('	    <input type="hidden" name="cx" value="004251841726718845230:zjxtghjtrzm" />');
	document.write('	    <input type="hidden" name="ie" value="UTF-8" />');
	document.write('	    <input type="text" name="q" size="31" />');
	document.write('	    <input type="submit" name="sa" value="Search" />');
	document.write('	  </div>');
	document.write('	</form>');
	document.write('	<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>');
	
	document.write('	</div>');
}	// RenderSearchBox

function RenderContentDisclaimer(pageName) {
	document.write('	<br /><hr />');
	document.write('	<table border="0" align="center">');
	document.write('	<tbody>');
	document.write('	<tr>');
	document.write('	<td valign="top" nowrap="nowrap" align="left">');
	document.write('	<span style="font-family: Arial,Helvetica,Verdana; font-weight: bold; font-style: italic; font-size: smaller; color: #000000;">');
	document.write('	Disclaimer:');
	document.write('	</span>');
	document.write('	</td>');
	document.write('	<td valign="top" align="left">');
	document.write('	<span style="font-family: Arial,Helvetica,Verdana; font-style: italic; font-size: smaller; color: #000000;">');
	document.write('	By providing links to other sites, we do not guarantee,');
	document.write('	approve or endorse the information or products available at these');
	document.write('	sites, nor does a link indicate any association with or endorsement');
	document.write('	by the linked site to Lam&rsquo;s Web Site.');
	document.write('	We cannot be responsible for accuracy of information at these sites.');
	document.write('	Please use all information gathered over the Internet with caution.');
	document.write('	</span>');
	document.write('	</td>');
	document.write('	</tr>');
	document.write('	</tbody>');
	document.write('	</table>');
}	// RenderContentDisclaimer

function RenderContentPageBottom(pageName) {
	document.write('<div id="PrintExclude">');
	document.write('	<br />');
	document.write('<div id="line1">');
	/*	
	// JS-Kit’s Reviews
	document.write('	<br /><br />');
	document.write('	<div class="js-kit-rating"></div>');
	document.write('	<div class="js-kit-comments"></div>');
	document.write('	<script src="http://js-kit.com/reviews.js"></script>');
	*/
	
	// JS-Kit’s Reviews
	document.write('	<div align="center" width="50%">');
	document.write('	<div class="js-kit-comments" permalink="" paginate="10" backwards="yes" style="text-align: center"></div>');
	document.write('	<script src="http://js-kit.com/comments.js"></script>');
	document.write('	</div>');

	document.write('</div>');
	document.write('</div>');
}	// RenderContentPageBottom

function RenderFooter(pageName) {
	document.write('<div id="footer">');
	/*
	document.write('	<br />');
	document.write('	<p>');
	document.write('		<a href="#Top">Back to Top</a>');
	document.write('		<br />');
	document.write('	</p>');
	*/
	document.write('		<script language="JavaScript" type="text/javascript">');
	document.write('			backToTop("center");');
	document.write('		</script>');

	document.write('	<div id="PrintExclude">');
	document.write('	<p>');
	document.write('		<a href="/">Home</a> |');
	/*document.write('		<a href="/news/news.htm">News</a> |');
	document.write('		<a href="/events/events.htm">Events</a> |'); */
	document.write('		<a href="/education/education.htm">Education</a> |');
	document.write('		<a href="/christianity/christianity.htm">Christianity</a> |');
	document.write('		<a href="/resources/resources.htm">Resources</a> |');
	/* document.write('		<a href="/about/about.htm">About</a> |');
	document.write('		<a href="/contact/contact.htm">Contact</a><br />'); */
	document.write('	</p>');
	document.write('	</div>');
	
	document.write('	<p class="LastModified">This page was last updated:');
	document.write('	<script language="JavaScript" type="text/javascript">');
	document.write('	document.write(lastMod());');
	document.write('	</script>');
	document.write('	</p>');

	// get the current year
	copyright=new Date();
	update=copyright.getFullYear();
	
	document.write('	<p>');
	//document.write('		Copyright &copy;&nbsp; 2008-' + update + '&nbsp;<a href="/">Gale Ranch Middle School</a>.  All Rights Reserved.<br />');
	document.write('		Copyright &copy;&nbsp; ' + update + '&nbsp;<a href="/">Lak Ming Lam, USA</a>.  All Rights Reserved.<br />');
	//document.write('		<a href="mailto:wrmswm@gmail.com">Click here</a> to send questions, comments, or suggestions regarding to this website.');
	document.write('		<script language="JavaScript" type="text/javascript">');
	document.write('		document.write(GenerateEmailAddress("minglam", "gmail.com", "Lam\'s%20Web%20Site", "Click here"));');
	document.write('		</script>');
	document.write('		to send questions, comments, or suggestions regarding to this website.');
	document.write('		<br />');

	document.write('	</p>');
	
	// MyBlogLog
	document.write('	<script type="text/javascript" src="http://track.mybloglog.com/js/jsserv.php?mblID=2008102211522249"></script>');

	document.write('	<!-- Site Meter -->');
	document.write('	<script type="text/javascript" src="http://s32.sitemeter.com/js/counter.js?site=s32minglam">');
	document.write('	</script>');
	document.write('	<noscript>');
	document.write('	<a href="http://s32.sitemeter.com/stats.asp?site=s32minglam" target="_top">');
	document.write('	<img src="http://s32.sitemeter.com/meter.asp?site=s32minglam" alt="Site Meter" border="0"/></a>');
	document.write('	</noscript>');
	document.write('	<!-- Copyright (c)2006 Site Meter -->');
	
	/* staging site
	document.write('<!-- Start of StatCounter Code -->');
	document.write('<script type="text/javascript">');
	document.write('var sc_project=780332;');
	document.write('var sc_partition=6;');
	document.write('var sc_security="4706a5d1";');
	document.write('var sc_invisible=1;');
	document.write('</script>');

	document.write('<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c7.statcounter.com/counter.php?sc_project=780332&amp;amp;java=0&amp;amp;security=4706a5d1&amp;amp;invisible=1" alt="free counter with statistics" /></a></div></noscript>');
	document.write('<!-- End of StatCounter Code -->');
	
	document.write('<!-- Start of StatCounter Code -->');
	document.write('<script type="text/javascript" language="javascript">');
	document.write('var sc_project=849392;');
	document.write('var sc_partition=6;'); 
	document.write('var sc_security="a2e4fea8";'); 
	document.write('var sc_invisible=1;');
	document.write('</script>');

	document.write('<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c7.statcounter.com/counter.php?sc_project=849392&amp;amp;java=0&amp;amp;security=a2e4fea8" alt="hidden hit counter" border="0"></a> </noscript>');
	document.write('<!-- End of StatCounter Code -->');
	*/

	document.write('</div>');
}	// RenderFooter

function RenderSidebar() {
	document.write('<div id="sidebar">');
	document.write('	<center>');

	/*
	document.write('	<!-- Free Analog Web Clock -->');
	document.write('	<!-- http://www.worldtimeserver.com/clocks/wtsclock001.aspx -->');
	document.write('	<script type="text/javascript" src="http://www.worldtimeserver.com/clocks/embed.js"></script><script type="text/javascript" language="JavaScript">objUSCA=new Object;objUSCA.wtsclock="wtsclock001.swf";objUSCA.color="FFC726";objUSCA.wtsid="US-CA";objUSCA.width=100;objUSCA.height=100;objUSCA.wmode="transparent";showClock(objUSCA);</script>');
	*/

	document.write('	<!-- Free Google Clock -->');
	document.write('	<!-- http://www.gmodules.com/ig/creator?synd=open&url=http%3A//www.matt.org/modules/GoogleClock.xml&pt=%26context%3Db%26synd%3Dopen%26lang%3Den%26.lang%3Den%26country%3Dus%26.country%3Dus%26cat%3Dall%26num%3D24%26start%3D0%26cols%3D4%26objs%3DOVJ%2CFoc%2CUQJ%2CXtm%2C33G%2Cjyq%2CpV%2CRB%2COUg%2Cw%2Cc17%2CgP1%2CFrT%2CI6Q%2COC%2CpFi%2C7Wu%2Crpeu%2Cevi%2CUvgp%2Cs%2CWXnd%2CbZ3%2CUAc&sn=Xtm&lang=en -->');
	document.write('	<script src="http://www.gmodules.com/ig/ifr?url=http://www.labpixies.com/campaigns/weather/weather.xml&amp;up_degree_unit_type=0&amp;up_first_load=1&amp;up_locations=0&amp;up_zip_code=94582&amp;up_city_code=0&amp;up_disable_os=0&amp;synd=open&amp;w=280&amp;h=250&amp;title=Live+Weather&amp;lang=all&amp;country=ALL&amp;border=%23ffffff%7C0px%2C1px+solid+%23ffdd00%7C0px%2C2px+solid+%23ffdd33%7C0px%2C2px+solid+%23ffee99&amp;output=js"></script>');

	document.write('	<br /><br /><b>Today is<br />');
	document.write('	<script language="JavaScript" type="text/javascript">');
	document.write('	document.write(getTodaysDate());');
	document.write('	</script></b>');
	
	/*
	document.write('	<!-- Site Meter XHTML Strict 1.0 -->');
	document.write('	<script type="text/javascript">var site="s17wrms-srca"</script>');
	document.write('	<script type="text/javascript" src="http://s17.sitemeter.com/js/counter.js?site=s17wrms-srca">');
	document.write('	</script>');
	document.write('	<noscript><div>');
	document.write('	<a href="http://s17.sitemeter.com/stats.asp?site=s17wrms-srca" target="_blank">');
	document.write('	<img src="http://s17.sitemeter.com/meter.asp?site=s17wrms-srca" alt="Site Meter" /></a>');
	document.write('	</div></noscript>');
	*/

	/*
	document.write('	<div id="wx_module_4143">');
	document.write('	   <a href="http://www.weather.com/weather/local/USCA1012">San Ramon Weather Forecast, CA</a>');
	document.write('	</div>');

	document.write('	<script type="text/javascript">
	*/
	
	/* Locations can be edited manually by updating 'wx_locID' below.  Please also update */
	/* the location name and link in the above div (wx_module) to reflect any changes made. */
	/*
	document.write('	   var wx_locID = 'USCA1012';');
	*/

	/* If you are editing locations manually and are adding multiple modules to one page, each */
	/* module must have a unique div id.  Please append a unique # to the div above, as well */
	/* as the one referenced just below.  If you use the builder to create individual modules  */
	/* you will not need to edit these parameters. */
	/*
	document.write('	   var wx_targetDiv = 'wx_module_4143';');
	*/

   /* Please do not change the configuration value [wx_config] manually - your module */
   /* will no longer function if you do.  If at any time you wish to modify this */
   /* configuration please use the graphical configuration tool found at */
   /* https://registration.weather.com/ursa/wow/step2 */
   /*
	document.write('	   var wx_config='SZ=728x90*WX=FHW*LNK=SSNL*UNT=F*BGI=winter*MAP=CSC|null*DN=http';');

	document.write('       <scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
	document.write('	</script>');
	*/
	
	document.write('	</center>');

	document.write('</div>');
}	// RenderSidebar

function RenderLeftNav(pageName, sectionName) {
	document.write('<div class="nav">');
	
	/* Home */
	document.write('	<a href="/" class="leftnav0"><img src="/images/homeicon.gif" width="16" height="16" border="0" align="absmiddle" alt="Gale Ranch Middle School" title="Gale Ranch Middle School"/>&nbsp;Home</a>');
	
	/* News */
	/*
	if (pageName == 'news') {
		if (sectionName == 'news') {
			document.write('	<a href="/news/news.htm" class="leftnavcur1">News</a>');
		}
		else {
			document.write('	<a href="/news/news.htm" class="leftnav1">News</a>');
		}
		if (sectionName == 'principal-messages') {
			document.write('	<a href="/news/principal-messages.htm" class="leftnavcur1">Principal Messages</a>');
		}
		else {
			document.write('	<a href="/news/principal-messages.htm" class="leftnav1">Principal Messages</a>');
		}
		if (sectionName == 'assistant-principal-messages') {
			document.write('	<a href="/news/assistant-principal-messages.htm" class="leftnavlongcur1">Assistant Principal Messages</a>');
		}
		else {
			document.write('	<a href="/news/assistant-principal-messages.htm" class="leftnavlong1">Assistant Principal Messages</a>');
		}
		if (sectionName == 'counselor-messages') {
			document.write('	<a href="/news/counselor-messages.htm" class="leftnavcur1">Counselor Messages</a>');
		}
		else {
			document.write('	<a href="/news/counselor-messages.htm" class="leftnav1">Counselor Messages</a>');
		}
		LeftNavWidgets();
		document.write('</div>	<!-- sidebar -->');
		
		return true;
	}	// News
	*/
	
	/* Events */
	/*
	if (pageName == 'events') {
		if (sectionName == 'events') {
			document.write('	<a href="/events/events.htm" class="leftnavcur1">Events</a>');
		}
		else {
			document.write('	<a href="/events/events.htm" class="leftnav1">Events</a>');
		}
		if (sectionName == 'calendar') {
			document.write('	<a href="/events/calendar.htm" class="leftnavcur1">Calendar</a>');
		}
		else {
			document.write('	<a href="/events/calendar.htm" class="leftnav1">Calendar</a>');
		}
		if (sectionName == 'schedule') {
			document.write('	<a href="/events/schedule.htm" class="leftnavcur1">Schedule</a>');
		}
		else {
			document.write('	<a href="/events/schedule.htm" class="leftnav1">Schedule</a>');
		}
		LeftNavWidgets();
		document.write('</div>	<!-- sidebar -->');
		
		return true;
	}	// Events
	*/
	
	/* Education */
	if (pageName == 'education') {
		if (sectionName == 'education') {
			document.write('	<a href="/education/education.htm" class="leftnavcur1">Education</a>');
		}
		else {
			document.write('	<a href="/education/education.htm" class="leftnav1">Education</a>');
		}
		if (sectionName == 'college-planning') {
			document.write('	<a href="/education/college-planning.htm" class="leftnavcur1">College Planning</a>');
		}
		else {
			document.write('	<a href="/education/college-planning.htm" class="leftnav1">College Planning</a>');
		}
		if (sectionName == 'music') {
			document.write('	<a href="/education/music.htm" class="leftnavcur1">Music</a>');
		}
		else {
			document.write('	<a href="/education/music.htm" class="leftnav1">Music</a>');
		}
		LeftNavWidgets();
		document.write('</div>	<!-- sidebar -->');
		
		return true;
	}	// Education
	
	/* Christianity */
	if (pageName == 'christianity') {
		if (sectionName == 'christianity') {
			document.write('	<a href="/christianity/christianity.htm" class="leftnavcur1">Christianity</a>');
		}
		else {
			document.write('	<a href="/christianity/christianity.htm" class="leftnav1">Christianity</a>');
		}
		if (sectionName == 'christianity-resources') {
			document.write('	<a href="/christianity/christianity-resources.htm" class="leftnavcur1">Resources</a>');
		}
		else {
			document.write('	<a href="/christianity/christianity-resources.htm" class="leftnav1">Resources</a>');
		}
		LeftNavWidgets();
		document.write('</div>	<!-- sidebar -->');
		
		return true;
	}	// Christianity
	
	/* Family */
	if (pageName == 'family') {
		if (sectionName == 'family') {
			document.write('	<a href="/family/family.htm" class="leftnavcur1">Family</a>');
		}
		else {
			document.write('	<a href="/family/family.htm" class="leftnav1">Family</a>');
		}
		if (sectionName == 'parenting') {
			document.write('	<a href="/family/parenting.htm" class="leftnavcur1">Parenting</a>');
		}
		else {
			document.write('	<a href="/family/parenting.htm" class="leftnav1">Parenting</a>');
		}
		LeftNavWidgets();
		document.write('</div>	<!-- sidebar -->');
		
		return true;
	}	// Family
	
	/* Resources */
	if (pageName == 'resources') {
		if (sectionName == 'resources') {
			document.write('	<a href="/resources/resources.htm" class="leftnavcur1">Resources</a>');
		}
		else {
			document.write('	<a href="/resources/resources.htm" class="leftnav1">Resources</a>');
		}
		if (sectionName == 'research') {
			document.write('	<a href="/resources/research.htm" class="leftnavcur1">Research</a>');
		}
		else {
			document.write('	<a href="/resources/research.htm" class="leftnav1">Research</a>');
		}
		if (sectionName == 'internet') {
			document.write('	<a href="/resources/internet.htm" class="leftnavcur1">Internet</a>');
		}
		else {
			document.write('	<a href="/resources/internet.htm" class="leftnav1">Internet</a>');
		}
		if (sectionName == 'software') {
			document.write('	<a href="/resources/software.htm" class="leftnavcur1">Software</a>');
		}
		else {
			document.write('	<a href="/resources/software.htm" class="leftnav1">Software</a>');
		}
		if (sectionName == 'entertainment') {
			document.write('	<a href="/resources/entertainment.htm" class="leftnavcur1">Entertainment</a>');
		}
		else {
			document.write('	<a href="/resources/entertainment.htm" class="leftnav1">Entertainment</a>');
		}
		if (sectionName == 'shopping') {
			document.write('	<a href="/resources/shopping.htm" class="leftnavcur1">Shopping</a>');
		}
		else {
			document.write('	<a href="/resources/shopping.htm" class="leftnav1">Shopping</a>');
		}
		if (sectionName == 'finance') {
			document.write('	<a href="/resources/finance.htm" class="leftnavcur1">Finance</a>');
		}
		else {
			document.write('	<a href="/resources/finance.htm" class="leftnav1">Finance</a>');
		}
		if (sectionName == 'reference') {
			document.write('	<a href="/resources/reference.htm" class="leftnavcur1">Reference</a>');
		}
		else {
			document.write('	<a href="/resources/reference.htm" class="leftnav1">Reference</a>');
		}
		LeftNavWidgets();
		document.write('</div>	<!-- sidebar -->');
		
		return true;
	}	// Resources
	
}	// RenderLeftNav

function LeftNavWidgets() {
		/* Google Translate Gadget */
		document.write('	<div class="navwidget"><br />');
		document.write('	<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script><br /></div>');
}

function GenerateEventCalendar(events, month, year) {
	var dayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	var monArray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	
	var calendar = new Date();
	
	var nowDate = calendar.getDate();
	var nowMonth = calendar.getMonth();
	var nowYear = calendar.getYear();
	
	var prevDate = 0;
	
	calendar.setDate(1);
	calendar.setMonth(month - 1);
	calendar.setYear(year);
	
	document.write('<table class="cal_border">');
	document.write('<tr><td class="cal_month" colspan="7">' + monArray[calendar.getMonth()] + ' ' + year + '</td></tr>');
	document.write('<tr>');
	
	for(i = 0; i < 7; i++) {
		document.write('<td class="cal_day" width="14%">' + dayArray[i] + '</td>');
	}
	
	document.write('</tr>');
	
	for(i = 0; i < calendar.getDay(); i++) {
		document.write('<td class="cal_spacerdate" height="100">&nbsp;</td>');
	}
	
	for(i = 0; i < 31; i++) {
		if(calendar.getDate() > i) {
			if(calendar.getDay() == 0) {
				document.write('<tr>');
			}

			if(nowYear == calendar.getYear() && nowMonth == calendar.getMonth() && nowDate == calendar.getDate()) {
				document.write('<td class="cal_curdate" height="100">' + calendar.getDate() + '<br><br>');
			} else {
				document.write('<td class="cal_date" height="100">' + calendar.getDate() + '<br><br>');
			}
			
			// Pull day's info from array...
			
			for(j = 0; j < events.length; j++) {
				if(events[j][0] == calendar.getDate()) {
					if(prevDate == calendar.getDate()) {
						document.write("<p/>");
					}
					
					document.write(events[j][1]);
					
					prevDate = calendar.getDate();
				}
			}
			
			document.write('</td>');
		
			if(calendar.getDay() == 6) {
				document.write('</tr>');
			}
		
			calendar.setDate(calendar.getDate() + 1);
		}
	}
	
	// Finish calendar grid

	for(i = calendar.getDay(); i < 7; i++) {
		document.write('<td class="cal_spacerdate" height="100">&nbsp;</td>');
	}
	
	document.write('</tr>');
	document.write('</table>');
}

function GenerateWeekdayEventCalendar(events, month, year) {
	var dayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	var monArray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	
	var calendar = new Date();
	
	var nowDate = calendar.getDate();
	var nowMonth = calendar.getMonth();
	var nowYear = calendar.getYear();
	
	var prevDate = 0;
	
	calendar.setDate(1);
	calendar.setMonth(month - 1);
	calendar.setYear(year);
	
	document.write('<table class="cal_border">');
	document.write('<tr><td class="cal_month" colspan="5">' + monArray[calendar.getMonth()] + ' ' + year + '</td></tr>');
	document.write('<tr>');
	
	for(i = 1; i < 6; i++) {
		document.write('<td class="cal_day" width="14%">' + dayArray[i] + '</td>');
	}
	
	document.write('</tr>');
	
	for(i = 1; i < calendar.getDay(); i++) {
		document.write('<td class="cal_spacerdate" height="100">&nbsp;</td>');
	}
	
	for(i = 0; i < 31; i++) {
		if(calendar.getDate() > i) {
		    if(calendar.getDay() != 0 && calendar.getDay() != 6) {

				if(calendar.getDay() == 1) {
					document.write('<tr>');
				}

				if(nowYear == calendar.getYear() && nowMonth == calendar.getMonth() && nowDate == calendar.getDate()) {
					document.write('<td class="cal_curdate" height="100">' + calendar.getDate() + '<br><br>');
				} else {
					document.write('<td class="cal_date" height="100">' + calendar.getDate() + '<br><br>');
				}
			
				// Pull day's info from array...
			
				for(j = 0; j < events.length; j++) {
					if(events[j][0] == calendar.getDate()) {
						if(prevDate == calendar.getDate()) {
							document.write("<p/>");
						}
					
						document.write(events[j][1]);
					
						prevDate = calendar.getDate();
					}
				}
			
				document.write('</td>');
		
				if(calendar.getDay() == 5) {
					document.write('</tr>');
				}
			}
		
			calendar.setDate(calendar.getDate() + 1);
		}
	}
	
	// Finish calendar grid
	
	if(calendar.getDay() > 1) {
		for(i = calendar.getDay(); i < 6; i++) {
			document.write('<td class="cal_spacerdate" height="100">&nbsp;</td>');
		}
	}
	
	document.write('</tr>');
	document.write('</table>');
}

function popupWindow(url, width, height) {
	newWin = window.open(url, 'popupWindow', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,height=' + height + ',width=' + width);
}

var aMonthName = new Array (
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
    "July",
    "August",
    "September",
    "October",
    "November",
    "December"
)
var aMonthShortName = new Array (
    "Jan",
    "Feb",
    "Mar",
    "Apr",
    "May",
    "Jun",
    "Jul",
    "Aug",
    "Sep",
    "Oct",
    "Nov",
    "Dec"
)

var aDayName = new Array (
    "Sunday",
    "Monday",
    "Tuesday",
    "Wednesday",
    "Thursday",
    "Friday",
    "Saturday"
)

var aDayShortName = new Array (
    "Sun",
    "Mon",
    "Tue",
    "Wed",
    "Thu",
    "Fri",
    "Sat"
)

function appendZero(sItem) {
    sItem<=9?sItem="0"+sItem:null;
    return sItem;
}

function lastMod() {
    objDate = new Date(document.lastModified);
    sDay = aDayName[objDate.getDay()];
    sMonth = aMonthName[objDate.getMonth()];
    sDate = appendZero(objDate.getDate());
    sYear = objDate.getFullYear();
    iHour = objDate.getHours();
    if (iHour > 12)
        sHour = appendZero(iHour - 12);
    else
        sHour = appendZero(iHour);
    sMin = appendZero(objDate.getMinutes());
    sLongDate = sDay + ", " + sMonth + " " + sDate + ", " + sYear + " at " + sHour + ":" + sMin;
    if (iHour > 11)
        sLongDate = sLongDate + " PM";
    else
        sLongDate = sLongDate + " AM";
    sLongDate = sLongDate +  " PST";
    return sLongDate;
}

function lastModShort() {
    objDate = new Date(document.lastModified);
    sMonth = aMonthName[objDate.getMonth()];
    sDate = appendZero(objDate.getDate());
    sYear = objDate.getFullYear();
    sShortDate = sMonth + " " + sDate + ", " + sYear;
    return sShortDate;
}

<!-- http://www.opensolaris.org/js/tonic.js -->
function openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function openPopWindow(theURL,winName) {
  window.open(theURL,winName,'scrollbars=yes,resizable=yes,width=600,height=500').focus();
}

// http://www.evolt.org/article/Breadcrumbs_in_Javascript/17/15480/
function breadcrumbs1(){
  sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<A HREF=\"/\">Home</A> | ";

  sURL = location.href;
  sURL = sURL.slice(8,sURL.length);
  chunkStart = sURL.indexOf("/");
  sURL = sURL.slice(chunkStart+1,sURL.length)

  while(!stop){
    chunkStart = sURL.indexOf("/");
    if (chunkStart != -1){
      bits[x] = sURL.slice(0,chunkStart)
      sURL = sURL.slice(chunkStart+1,sURL.length);
    }else{
      stop = 1;
    }
    x++;
  }

  for(var i in bits){
    output += "<A HREF=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += bits[i] + "/\">" + bits[i] + "</A> | ";
  }
  document.write(output + document.title);
}

function breadcrumbs2(sClass, sDelimiter)
{
  if(!sDelimiter) sDelimiter = '|';
  var sURL = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
      sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
  var aURL = sURL.split('/');
  if(aURL)
  {
    var sOutput = '<a href="/">Home</a> ' + sDelimiter + ' ';
    var sPath = '/';
    for(var i = 0; i < aURL.length; i++)
    {
      sPath += aURL[i] + '/';
      sOutput += '<a href="' + sPath + '"';
      if(sClass) sOutput += ' class="' + sClass +'"';
      sOutput += '>' + aURL[i] + '</a>';
      sOutput += ' ' + sDelimiter + ' ';
    }
    sOutput += document.title;
    document.write(sOutput);
  }
}

function breadcrumbs3 () {
	var sURL   = window.location.href;
	var sURLen = sURL.length;
	var aURL   = new Array();
	var aURLoc = new Array();
	var aURLen = 0;
	var letter = '';
	var word   = '';
	var output = '<div class="navbreadcrumbs"> ';
	var theend = 'index.html';
	var begin  = 'www.geocities.com';
	var now    = (theend != '') ? 0 : 1;
	var sl     = '/';
	var home   = 'nullvectorus';

	for (i=0; i < sURLen; i++) {
		justbeforeme = sURLen - i;
		fromme       = justbeforeme - 1;
		letter       = sURL.substring(fromme,justbeforeme);

		if (letter != sl) word = letter + word;
		if (((letter == sl) || (i == sURLen-1)) && (word != '')) {
			aURL[aURLen]   = word;
			aURLoc[aURLen] = sURL.substring(0,justbeforeme) + word;
			word = '';
			aURLen++;
		}
	}

	for (i=aURLen-1; i > 0; i--) {
		word = aURL[i];
		loc  = aURLoc[i];
		if (word == theend) now = 0;
		if (now  == 1) {
			if (word == home )
				output = output + '<a href="' + loc + '">home</a>' + ' &gt; ';
			else
				output = output + '<a href="' + loc + '">' + word + '</a>' + ' &gt; ';
		}
		if (word == begin)  now = 1;
	}
	document.write(output + 'here.</div>');
}

var dList = new Array();
var nList = new Array();

// dir staging to This is a test
dList[0] = 'staging';
nList[0] = 'This is a test';

function breadcrumbs(sClass, sDelimiter)
{
    if(!sDelimiter) sDelimiter = '|';
    var sURL = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
        sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
    var aURL = sURL.split('/');
    if(aURL)
    {
      var sOutput = '<a href="/">Home</a> ' + sDelimiter + ' ';
      var sPath = '/';
      for(var i = 0; i < aURL.length; i++)
      {
        if(aURL[i].indexOf('.html')!=-1)continue;
        sPath += aURL[i] + '/';
        for(var s = 0; s < dList.length; s++)if(aURL[i]==dList[s])aURL[i]=nList[s];        
        sOutput += '<a href="' + sPath + '"';
        if(sClass) sOutput += ' class="' + sClass +'"';
        sOutput += '>' + aURL[i] + '</a>';
        sOutput += ' ' + sDelimiter + ' ';
      }
      sOutput += document.title;
      document.write(sOutput);
    }
}

// http://svcs.trellixff1.business.earthlink.net/svcs/tell_a_friend_form.jsp
function IsEmail( string )
{
   if( string.search( /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/ ) != -1 )
	  return true;
   else
	  return false;
}

function ValidateForm()
{
  if( document.main.To.value == '' || document.main.To.value == null ) {
	 alert( 'Please specify a To value.' );
	 document.main.To.focus( );
	 return;
  }
	
  if( document.main.To.value.search(/@[^,@]+@/) != -1 ) {
	 alert( 'Please separate each email address with a comma.' );
	 document.main.To.focus( );
	 return;
  }
  
  var addrs = document.main.To.value.split( /\s*,\s*/ );
  var badAddrs = '';
  for( addr in addrs ) {
	 if( !IsEmail( addrs[ addr ] ) ) {
	 badAddrs += '\n' + addrs[ addr ];
	 }
  }
	
  if( badAddrs != '' ) {
	 alert( 'Please specify a valid email address.' );
	 document.main.To.focus( );
	 return;
  }
  
  if( document.main.SenderEmail.value == '' || document.main.SenderEmail.value == null ) {
	 alert( 'Please specify a From value.' );
	 document.main.SenderEmail.focus( );
	 return;
  }
	
  if( !IsEmail( document.main.SenderEmail.value ) ) {
	 alert( 'Please specify a valid email address' );
	 document.main.SenderEmail.focus( );
	 return;
  }
  
  document.main.submit();
}

// http://www.piedmont.k12.ca.us/
function GenerateEmailAddress(sUser, sSite, sSubject, sLabel)
{
	var sEmail; 

	if (sUser)
	{
		sEmail = '<a href="mailto:';
		sEmail += sUser + '&#64;' + sSite;
		if (sSubject)
		{
			sEmail += '?Subject=' + sSubject;
			sEmail += '&body=' + document.URL;
		}
		else
		{
			sEmail += '?&body=' + document.URL;
		}
		sEmail += '">' + sLabel + '</a>';
	}
	else
	{
		sEmail = '&nbsp;';
	}

	return(sEmail);
}

// http://www.chalcedony.com/seminars/seattle/beyondrollovers/WBO/animated_jpegs.html
// This script copyright 1999 Dori Smith

/* Need to put into the title/script section of the page
browserRev = parseInt(navigator.appVersion)			// Are we Mozilla 3 compatible? (or later)
thumbnailCount = 34									// how many images do we have?
displayTime = 3										// Change the image every 3 seconds

if (document.images) {
	nextThumb = new Image
	imageNo = Math.floor(Math.random() * thumbnailCount)
	nextThumb.src = "images/thumbnails" + imageNo + ".jpg"
}

<BODY BGCOLOR=WHITE onLoad="if (document.images) animate()">
<H1>Check out some of our collection of images:</H1>
<!-- The next image will get replaced by animation -->
<IMG SRC="images/spacer.gif" HEIGHT=95 WIDTH=438 NAME="thumbnail" ALT="Animation"> 

function animate() {
	if (getNext()) {
		document.thumbnail.src = nextThumb.src		// Set the thumbnail image
		imageNo++
		if (imageNo == thumbnailCount)
			imageNo = 0
		nextThumb.src = "images/thumbnails" + imageNo + ".jpg"
	}
	setTimeout("animate()", displayTime * 1000) 	// And wait till we go around again
}

function getNext() {
	if (browserRev == 3 && nextThumb.complete)
		return true;
	if (browserRev >= 4 && document.thumbnail.complete)
		return true;
	return false;
}
*/

// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************

// Calculate four digit year.
function fourdigits(number) {
	return (number < 1000) ? number + 1900 : number;
}

function getTodaysDate() {
	// Get today's current date.
	var now = new Date();
	
	// Calculate the number of the current day in the week.
	var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
	
	// Join it all together
	// Sample output: Friday, October 28, 2005
	today =  aDayName[now.getDay()] + "<br />" +
				aMonthName[now.getMonth()] + " " +
				date + ", " +
				(now.getFullYear());
				
	return today;
}	// getTodaysDate

function getTodaysDate1() {
	// Get today's current date.
	var now = new Date();
	
	// Calculate the number of the current day in the week.
	var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
	
	// Join it all together
	// Sample output: Friday, October 28, 2005
	today =  aDayName[now.getDay()] + ", " +
				aMonthName[now.getMonth()] + " " +
				date + ", " +
				(now.getFullYear());
				
	return today;
}	// getTodaysDate1

function showTodaysDate() {
	// Get today's current date.
	var now = new Date();
	
	// Calculate the number of the current day in the week.
	var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
	
	// e.g. MAR 10
	//       MON
	today = '<div class="date"><p><span class="day"> ' +
			aMonthShortName[now.getMonth()] + ' ' + date + ' </span><span class="week"> ' +
			aDayShortName[now.getDay()] + '</span></p></div>';

	return today;
}	// showTodaysDate

function backToTop(alignment) {
	document.write('<div id="PrintExclude">');
	document.write('	<p align="' + alignment + '">');
	document.write('	<a href="#Top"><img src="/images/gotop.gif" border="0" width="55" height="17"></a>');
	document.write('	</p>');
	document.write('</div>');
}	// backToTop