	var colora = "white";
	var colorb = "#c5d3d6";
	var colorc = "gray";
	var colord = "#f9dab1";
	var timeout = null;
	var current = 0;
	var waittime = 3000;
	var preLoad = new Array();
	var LoadCpt = 0;
	var spot = 1;
	var mailat = "@";
	var IEincl = 'class="menu100"';
	if (navigator.appName == "Microsoft Internet Explorer")
		{	
		IEincl = 'class="menu100"';
		}
	else {		
		IEincl = ' ';
		}
	
function wrthead () {
	document.write('<TABLE CELLSPACING="0" CELLPADDING="0" ALIGN=CENTER WIDTH=100% border=0 bgcolor='+colorb+'> <tr>\n');
	document.write('<TD HEIGHT="80" WIDTH="20"></TD>\n');
	document.write('<TD><IMG border=0 SRC="images/topbar.gif" align="right"><font size=+2><img src="images/spacer.gif" height=5 border=0><br><b>GLADSTONE, OREGON</b><br></font><font size=+1>Home of the Pow Wow Tree</font></TD>\n');
	document.write('</TD><td width=80>&nbsp;</td></tr>\n');
	document.write('<tr><td bgcolor=red height=2 colspan=3><img src=images/spacer.gif></td></tr></table>\n');
	}
		
function wrtmenu () {
	document.write('<TABLE CELLSPACING="0" CELLPADDING="0" border=0 ALIGN=CENTER HEIGHT=600 WIDTH=100%> <tr>\n');
	document.write('<TD valign=top width="200" bgcolor='+colorb+'>&nbsp;\n');
	document.write('<font size=+1 color=red><br><i>QUICK</i> Links</font><br>\n');
	document.write('<img src="images/spacer.gif" height="5"><br>\n');
	document.write('<script language="javascript" src="menu.js"></script>\n');
	document.write('<br><br><td>\n');
	document.write('<td bgcolor=red width=1 ><img src=images/spacer.gif></td>\n');
	document.write('<td bgcolor='+colora+' width=15 ><img src=images/spacer.gif></td><TD valign="top" bgcolor="white"><br>\n');
	}

				
function wrtend () {
	document.write('</TD><td bgcolor='+colora+' width=15 ><img src=images/spacer.gif></td><TD valign=top width="180" bgcolor='+colorb+'>\n');
	document.write('<iframe name=float1 src="news.html" height=100% width=100% frameborder=0></iframe>\n');	
	document.write('</TD></tr>\n');
	document.write('<tr><td bgcolor=red height=1 colspan=7><img src=images/spacer.gif></td></tr></table>\n');
	document.write('<table CELLSPACING="0" CELLPADDING="0" ALIGN=CENTER WIDTH=757 border=0>\n');
	document.write('<tr><td class="left">\n');
	document.write('<font color=#000033 size=-1><i>CITY OF GLADSTONE</I><br>525 Portland Ave. Gladstone, OR 97027\n');
	document.write('<br>Telephone 503-656-5225 Email: <a HREF="mailto:bannick'+mailat+'ci.gladstone.or.us">bannick'+mailat+'ci.gladstone.or.us</a></font>\n');
	document.write('</TD>\n');
	document.write('<td class="right">\n');
	document.write('<font color=#000033 size=-1><br>Read <a HREF="policy.html">Liability Statement</a>\n');
	document.write('<br>©copyright 1996- 2007 City of Gladstone </font>\n');
	document.write('</TD></tr></table>\n');
	}

function menuad1 (boxtext,wherego,whereput) {
	document.write('<br><TABLE align=center cellSpacing=1 cellPadding=2 width="95%" border=0>\n');
	document.write('<TR><TD vAlign=center align=middle bgcolor='+colorb+'>\n');
	document.write('<TABLE cellSpacing=1 cellPadding=2 width="100%" align=center  bgColor='+colorb+' border=0>\n');
  	document.write('<TR><TD bgcolor="#000033">\n');
	document.write('<TABLE cellSpacing=1 cellPadding=8 width="100%" align=center  bgColor=white border=0>\n');
  	document.write('<TR><TD bgcolor='+colorb+'>\n');
	document.write('<a HREF='+wherego+' target='+whereput+'><P class="center">\n');
	document.write(' <FONT face="serif" color=#000033>'+ boxtext + '</FONT><BR>\n');                
	document.write('  </a></TD></TR></TABLE>\n');  
	document.write('  </TD></TR></TABLE>\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=white><p class="000033S">'+add_who+'</font></td>\n');
	document.write('<td><font color=white><p class="000033S">'+add_nbr+'</font></td>\n');
	document.write('<td><font color=white><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=white><p class="000033S">'+add_who+'</font></td>\n');
	document.write('<td><font color=white><p class="000033S">'+add_nbr+'</font></td>\n');
	document.write('<td><font color=white><p class="000033S"><a class=sublink href="http://'+thelink+'" target="_blank"><u>'+thelink+'</u></a></font></td></tr>\n');
	}
