// JavaScript Document
function homepath1(){			
					document.write("<a href='http://wcgsouthbay.org/index1.html'><h1></h1></a>");
}


						
var gnav = [["Home","home"],["About Us","about_us"],["Resources","resources"],["Activities","activities"],["Youth","youth"],["Contact Us","contact_us"]];



	function gnav1(){
var i = 0;
		document.write("<ul class='menu'><li  id='gn" + i + "' style='background:none; padding-left:40px;'><a href='../" + gnav[0][1] + "/" + gnav[0][1] + ".html'>" + 		gnav[0][0] + "</a></li>");

		for (i=1;i<=gnav.length-1;i++) {
			document.write("<li id='gn" + i + "'><a href='../" + gnav[i][1] + "/" + gnav[i][1] + ".html'>" + gnav[i][0] + "</a></li>");
						}
			document.write("</ul>");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
 window.open(theURL,winName,features);
}

function copywrite1(){
	document.write("2011 | <a href=\"http://wcgsouthbay.org/about_us/privacy_policy.html\">Privacy Policy</a> | <a href=\"http://wcgsouthbay.org/index1.html\">Home</a>");
}
 

var walkingInTheValleys = [
						   //["Welcome to the Valley","April 22, 2001","010422"],
							//["Render Unto Caesar","April 29, 2001","010429"],
							//["A Man Such As This","May 6, 2001","010506"],
							//["Neurotherology","May 13, 2001","010513"],
							//["\"Helloo Dalai\"","May 20, 2001","010520"],
							//["Fighting the Good Fight","May 27, 2001","010527"],
							//["If You Can't Stand the Heat... Have a Drink of Water!","June 3, 2001","010603"],
							//["Not-So-Common Sense","June 10, 2001","010610"],
							["Unity of the Faith","September 16, 2008","080916"]];

var aboutUs = [["Core Values","core_values"],
				["Mission & Vision","mission_and_vision_statements"],
				["Affiliation","affiliation"], ["Privacy Policy","privacy_policy"]
//				,["Pastoral Staff","pastoral_staff"]
				];


var activities = [["Bible Classes","bible_classes"],["Photo Album","photo_album"],["Bible Studies","small_group_bible_studies"]];


////Photo Album
var events = [["Mount Madonna","photo_album_thumbnails.html?3"],
				 ["Toy Room with Tyler","photo_album_thumbnails.html?2"],
				 ["Another Church Event","photo_album_thumbnails.html?1"]];

function events1(){
			document.write("<ul>");
			for (i=0;i<=resources.length-1;i++) {
			document.write("<li><a href='../activities/" + events[i][1] + "'>" + events[i][0] + "</a></li>");
															   }
													        document.write("</ul>");
									}
									
var resources = [["Bulletin","xslt.php?xsl=bulletin.xsl&xml=bulletin-feed.xml"],
				["Calendar","xslt.php?xsl=pdf.xsl&xml=calendar-feed.xml"],
				["New Sermons","sermon-feed.php?xsl=sermon-feed.xsl&xml=sermon-feed.xml"],
				["Sermon Archive 2010","sermon-feed10.php?xsl=sermon-feed10.xsl&xml=sermon-feed10.xml"],
				["Sermon Archive 2009","sermon-feed09.php?xsl=sermon-feed09.xsl&xml=sermon-feed09.xml"],
				["Sermon Archive 2008","sermon-feed08.php?xsl=sermon-feed08.xsl&xml=sermon-feed08.xml"]];

	function resources1(){
			document.write("<ul id='featured1'>");
			for (i=0;i<=resources.length-1;i++) {
			document.write("<li><a href='../resources/" + resources[i][1] + "'>" + resources[i][0] + "</a></li>");
															   }
													        document.write("</ul>");
									}

function event(path,title,date,count) {
	this.path = path;
	this.title = title;
	this.date = date;
	this.count = count;
}

var bulletins = ["July 26","August 2","August 9","August 16","August 23","August 30","September 6","September 13"];

eventList = new Array()
eventList[1] = new event("another_church_event","Another Church Event","April 12, 2008","6");
eventList[2] = new event("toy_room_with_tyler","Toy Room with Tyler","June 14, 2008","17");
eventList[3] = new event("mount_madonna_campout","Mount Madonna Campout","July 18-20, 2008","62");

var newsletters = [["Vol. 12 No. 3","Summer 2008"]];

function newsletter1(){
	  for (i=newsletters.length-1;i>=0;i--) {
												  	document.write("<div id='newsletterArchive'><a href='pdfs/A Light in the Valley- " + newsletters[i][0] + ", " + newsletters[i][1] + ".pdf' target='_blank'><img src='../images/download_icon.gif'><h3>" + newsletters[i][0] + "</h3></a>" + newsletters[i][1] + "</div>");
													}
													
}
													
var smallGroups = [["Comparitive Religions","Second and fourth Wednesdays, 7:30 pm","Brad Mann's home","Brad Mann",""],
					["Discovery Series","First and third Tuesdays, 4:00 pm","Alicia Carrillo's home","Alicia Carrillo",""],
					["The Epistles of Paul","","Brad Mann's home","Brad Mann",""],
					["James 4","Mondays, 7:00 pm","Mission House<br />3471 Marten Ave.<br />San Jose","Pastor Mel Dahlgren",""],
					["Parables of Jesus","Second and fourth Saturdays, 1:30 pm","Larry Shamus' home","Larry Shamus","The English word \"parable\" comes from the Greek word parabole, which literally means \"to place alongside\". So, a parable compares one thing to another. In the Gospels, they are specifically used to compare some aspect of common, everyday life with some truth about the Kingdom of God. This will enable us to consider what they say to us about how to live out our faith as Christians.<br /><br />Like any good art, however, the parables communicate beyond their original audience. While rooted in the life and times of Jesus, the realities about God and discipleship that the parables present transcend that culture, and speak to us today in images that are still powerful. The parables are word pictures Jesus painted in order to teach us theology in a way that would stick with us. Once a parable is heard, it is etched in the mind, where the Spirit of God can, over time, reveal its deeper implications. \"Anyone who has ears to hear should listen!\" (Mark 4:9)"],
					["1st Timothy & Titus","First and third Saturdays","Edrie Felts' home","Anthony Garside","These letters, along with 2 Timothy, are often called the \"Pastoral Epistles\" because they are concerned with the pastoral care and oversight of local churches. Paul addresses six main topics that he wants Timothy to relate to the churches.<br /><br /><ul><li>How to keep doctrine uncorrupted by false teaching.</li><li>The role of public worship along with the roles of men and women in the conduct of it.</li><li>The conditions of eligibility for pastors, elders and deacons.</li><li>Instructions for local leadership, especially younger leaders.</li><li>The church's social responsibility to widows, elders and slaves.</li><li>The church's attitude toward material possessions.</li></ul>The three chapters of Titus relate to the three main contexts of Christians living, namely the church, the home and the world. In all three, Paul emphasized the relationship between doctrine and duty, belief and behavior."]]

var bibleClasses = [["Bible Class","Saturdays, 9:30 am","Fellowship Hall","Cleveland Vivian",""],
					["Preschool Class","Saturdays, just before the sermon","Fellowship Hall","Brenda Ely",""],
					["Pre-Teen Bible Class","Saturdays, just before the sermon","Fellowship Hall","Brenda Ely",""]]
