	var colora = "#000033";
	var timeout = null;
	var current = 0;
	var waittime = 3000;
	var preLoad = new Array();
	var LoadCpt = 0;
	var spot = 1;
	var mailat = "@";
			
function wrthead () {
	document.write('<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH=950 border=0 align=center> <tr>\n');
	document.write('<TD HEIGHT="60" WIDTH="1" ></TD>\n');
	document.write('<TD HEIGHT="60"><a href="index.html" target="_parent"><IMG border=0 SRC="images/topbar.gif"></a></TD></tr>\n');
	document.write('<tr><TD width="1"> \n');
	document.write('</TD></tr></table>\n');
	}
		
function wrtmenu () {
	document.write('<TABLE CELLSPACING="0" CELLPADDING="0" border=0 WIDTH=950 align=center> <tr>\n');
	document.write('<TD  class="left" valign=top width="150" bgcolor=white>&nbsp;\n');
	document.write('<br><br><font size=+1 color=red>&nbsp;&nbsp;Links</font><br>\n');
	document.write('<img src="images/spacer.gif" border=0 height="5"><br>\n');
	document.write('&nbsp;&nbsp;<a HREF="index.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Home</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="news.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Newsletter</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="tram.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Transportation</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="rent.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Bldg Rental</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="food.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Nutrition</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="service.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Services</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="activities.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Activities</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="volunteer.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Volunteer</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="fundraiser.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Fund&nbsp;Raisers</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="foundation.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Foundation</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="sponsors.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Our Sponsors</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="25year.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;25 Years</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="contact.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Contact Us</a>&nbsp;\n');
	document.write('<br>&nbsp;&nbsp;<a HREF="map.html"><img src="images/triangle.gif" border=0>&nbsp;&nbsp;Directions</a>&nbsp;\n');
	document.write('<br><br>\n');
	make_donation();
	document.write('</TD><TD valign="top">\n');
	}

				
function wrtend () {
	document.write('</td></tr></table>\n');
	document.write('<hr>\n');
	document.write('<table CELLSPACING="0" CELLPADDING="0" WIDTH=950 border=0 align=center> <tr>\n');
	document.write('<td class="left">\n');
	document.write('<font color=black size=-1><i>Gladstone Senior Center</I><br>1050 Portland Avenue  Gladstone, OR 97027\n');
	document.write('<br>Telephone (503) 655-7701  </font>\n');
	document.write('</TD>\n');
	document.write('<td class="right">\n');
	document.write('<font color=black size=-1>Read <a HREF="policy.html">Liability Statement</a>\n');
	document.write('<font color=black size=-1><br>Email: <a HREF="mailto:office'+mailat+'gladstoneseniors.org">office'+mailat+'gladstoneseniors.org</a>\n');
	document.write('<br>©copyright 2004-2010 Gladstone Senior Center </font>\n');
	document.write('</TD></tr></table>\n');
	}
	

function startup() {
	try  {	
		for (i = Pix.length-4; i < Pix.length-1; i=i+2)
		   {
		   preLoad[i] = new Image();
		   preLoad[i].src = "images/"+Pix[i];
		   }
		preLoad[0] = new Image();
		preLoad[0].src = "images/"+Pix[0];
		nextpic();
		}
	catch (e)
		{
		//alert(e.description);
		}
	}


function nextpic() {
	if (preLoad[current].complete)
		{
		if (spot == 1)
		    {document.images.show1.src = preLoad[current].src;
	    	 document.intro.desc1.value = Pix[current+1];
	   		 }
		if (spot == 2)
	    	{document.images.show1.src = preLoad[current].src;
	    	 document.intro.desc1.value = Pix[current+1];
	    	}
		if (spot == 3)
	    	{document.images.show1.src = preLoad[current].src;
	    	 document.intro.desc1.value = Pix[current+1];
	    	} 
		if (spot == 3)
		    {spot = 1;}
		else
	    	{spot += 1;}
		if (current < Pix.length-2)
	    	{current += 2;}
	 	else 
	    	{current = 0; LoadCpt = 1;}

		if (LoadCpt == 0)
		   {
		   preLoad[current] = new Image();
		   preLoad[current].src = "images/"+Pix[current];
		   }
	    	}    
		   
	timeout = setTimeout('nextpic()',waittime);
	}

function emailer(add_email1,add_where) {
	document.write('<a class=sublink HREF="mailto:'+add_email1+'@'+add_where+'">'+add_email1+'@'+add_where+'</a>\n');
	}
	
function addrbook(add_who,add_nbr,add_email1,add_where) {
	document.write('<tr><td><font color=#000033><p class="000033S">'+add_who+'</font></td>\n');
	document.write('<td><font color=#000033><p class="000033S">'+add_nbr+'</font></td>\n');
	document.write('<td><font color=#000033><p class="000033S"><a class=sublink HREF="mailto:'+add_email1+'@'+add_where+'">'+add_email1+'@'+add_where+'</a></font></td></tr>\n');
	}	
function linker(add_who,add_nbr,thelink) {
	document.write('<tr><td><font color=#000033><p class="000033S">'+add_who+'</font></td>\n');
	document.write('<td><font color=#000033><p class="000033S">'+add_nbr+'</font></td>\n');
	document.write('<td><font color=#000033><p class="000033S"><a class=sublink href="http://'+thelink+'" target="_blank"><u>'+thelink+'</u></a></font></td></tr>\n');
	}

function make_donation() {
document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target=_blank>\n');
document.write('<input type="hidden" name="cmd" value="_s-xclick">\n');
document.write('<input type="hidden" name="hosted_button_id" value="W4EJMCK5K5NEY">\n');
document.write('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" \n');
document.write('alt="PayPal - The safer, easier way to pay online!">\n');
document.write('<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">\n');
document.write('</form>\n');
	}

var today = new Date();
var chkdate = new Date();
var showflag = "Y";
function checkdate(chkYYYY,chkMM,chkDD) {
	chkdate.setFullYear(chkYYYY);
	chkMM -= 1;
	chkdate.setMonth(chkMM);
	chkdate.setDate(chkDD);
	if (today > chkdate) {showflag = "N";}
	else {showflag = "Y";}
	}

