	var timeout = null;
	var current = 0;
	var waittime = 3000;
	var preLoad = new Array();
	var LoadCpt = 0;
	var spot = 1;

function wrthead () {
	document.write('<TABLE CELLSPACING="0" CELLPADDING="0" ALIGN=CENTER WIDTH=900 border=0 background="images/topbarbg.jpg"> <tr>\n');
	document.write('<TD><font color="#421b04" size=+3><center><b>GLADSTONE COMMUNITY CLUB<font size=+2><br>255 E. Exeter St, Gladstone, Oregon</font></center></b></font>\n');
	document.write('</TD></tr><tr><td ><center><br>\n');
	document.write('<a  class="submenu" HREF="index.html">&nbsp;&nbsp;Home</a>&nbsp;\n');
	document.write('&nbsp;&nbsp;&nbsp;<a  class="submenu" HREF="contact.html">&nbsp;&nbsp;Contact&nbsp;Us</a>&nbsp;\n');
	document.write('&nbsp;&nbsp;&nbsp;<a  class="submenu" HREF="rental.html">&nbsp;&nbsp;Rental&nbsp;Info</a>&nbsp;\n');
	document.write('&nbsp;&nbsp;&nbsp;<a  class="submenu" HREF="calendar.html">&nbsp;&nbsp;Rental&nbsp;Calendar</a>&nbsp;\n');
	document.write('<br>&nbsp;\n');
	document.write('</TD></tr></table>\n');

	document.write('<TABLE CELLSPACING="0" CELLPADDING="30" border=0 ALIGN=CENTER WIDTH=900 height=100%> <tr>\n');
	document.write('<TD valign="top" bgcolor=white>\n');
	}

function menubrk () {
	document.write('<img src="images/spacer.gif">\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 wrtend () {
	document.write('</td></tr><tr><td><center>\n');
	document.write('<BR>&copy;2010 Gladstone Community Club. All Rights Reserved.<BR>\n');
	document.write('Web design by </FONT><A href="http://www.northwestpages.com/" target="new">\n');
	document.write('NorthWestPages.com </FONT></A>\n');
	document.write('</TD></tr></table>\n');
	}
	


function emailer(add_email1,add_where) {
	document.write('<a class=sublink HREF="mailto:'+add_email1+'@'+add_where+'">'+add_email1+'@'+add_where+'</a>\n');
	}