var date = new Date();

var month = date.getMonth();

var day = date.getDate();

var weekday = date.getDay();

var year = date.getFullYear();



var m = ["1", "32", "60", "91", "121", "152", "182", "213", "244", "274", "305", "335"];

var w = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];



var mydate = m[month] - 1;



var julian = mydate + day;



function events() 

{

	if ((julian <= 31) && (year < 2007)) {

		document.write("<p>Sunday, January 13, 2005<br> <b><font face='arial' size='3' color='ccffff'>Youth Staff Meeting</font></b> - 12:00 pm. at Safeway/Starbucks.  A very important lunch meeting with all adult youth leaders. We will be planning for the first quarter of 2005. You MUST contact Pastor Rob if you can not attend.</p>" +
		
		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 21) && (year < 2007)) {

		document.write("<p>Friday/Saturday, January 20-21, 2005<br> <b><font face='arial' size='3' color='ccffff'>Monarch Retreat</font></b> - Overnight Ski Trip. WE OPTED OUT</p>" +
		
		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 21) && (year < 2007)) {

		document.write("<p>Saturday, January 21, 2005<br> <b><font face='arial' size='3' color='ccffff'>Bible Quiz Meet</font></b> - 9 a.m. to 3 p.m. at Praise Assembly of God. Come and root for Sarah and her team! </p>" +
		
		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 21) && (year < 2007)) {

		document.write("<p>Saturday, January 21, 2005<br> <b><font face='arial' size='3' color='ccffff'>Men's Breakfast</font></b> - 8 a.m. at Solid Ground Cafe. Speaker: Chester Everetts</p>" +
		
		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 25) && (year < 2007)) {

		document.write("<p>Wednesday, January 25, 2005<br> <b><font face='arial' size='3' color='ccffff'>Special Speaker: Alex Jackson!</font></b> - Our own Alex Jackson is a dynamic teacher who will share the Word at TASK-FORCE 20:24. Bring a friend! 7 p.m. at The Liberty Point Rec Center. </p>" +
		
		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 32) && (year < 2007)) {

		document.write("<p>Wednesday, February 1, 2005<br> <b><font face='arial' size='3' color='ccffff'>Special Dance Routine</font></b> - Brooke and Olivia will perform a special dance routine for TASK-FORCE 20:24. Come and check it out! 7 p.m. at The Liberty Point Rec Center.</p>" +
		
		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 36) && (year < 2007)) {

		document.write("<p>Wednesday, February 5, 2005<br> <b><font face='arial' size='3' color='ccffff'>Superbowl Party!</font></b> - 3 to 7 p.m. at the Jackson's crib. Cost is $2 per teenager. Call Pastor Rob for more info!</p>" +
		
		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 327) && (year < 2007)) {

		document.write("November 23, 2006<br> <b><font face='arial' size='4' color='ccffff'>Thanksgiving</font></b><br>Your chance to get all thick!!" +

		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 360) && (year < 2007)) {

		document.write("December 25, 2006<br> <b><font face='arial' size='4' color='ccffff'>Merry Christmas!</font></b><br>Happy Birthday, Jesus!" +

		"<P><HR size='1' color='669999'></P>");

	}

	if ((julian <= 365) && (year < 2007)) {

		document.write("December 31, 2006<br> <b><font face='arial' size='4' color='ccffff'>New Years Eve All Nighter!</font></b><br>Details to be announced." +

		"<P><HR size='1' color='669999'></P>");

	}



}



/*

	IMAGE ROLL INDEX 

*/

function image_roll() {    
	
	var var_images = new Array("agf-photo-01.jpg", "agf-photo-02.jpg", "agf-photo-03.jpg", "agf-photo-04.jpg", "agf-photo-05.jpg", "agf-photo-06.jpg", "agf-photo-07.jpg", "agf-photo-08.jpg", "agf-photo-09.jpg", "agf-photo-10.jpg", "agf-photo-11.jpg", "agf-photo-12.jpg", "agf-photo-13.jpg", "agf-photo-14.jpg", "agf-photo-15.jpg", "agf-photo-16.jpg", "agf-photo-17.jpg", "agf-photo-18.jpg", "agf-photo-19.jpg", "agf-photo-20.jpg", "agf-photo-21.jpg", "agf-photo-22.jpg", "agf-photo-23.jpg", "agf-photo-24.jpg", "agf-photo-25.jpg", "agf-photo-26.jpg", "agf-photo-27.jpg", "agf-photo-28.jpg", "agf-photo-29.jpg", "agf-photo-30.jpg");
	
	today2=new Date();
    len=30;
    today=today2.getTime()/30;
    rnd=today%len;

    document.write("<img src='photos/" + var_images[Math.floor(rnd)] + "'>");
}



/*

	IMAGE ROLL SECONDARY PAGES 

*/

function image_roll2() {    
	
	var var_images = new Array("tf-photo2-01.jpg", "tf-photo2-02.jpg", "tf-photo2-03.jpg", "tf-photo2-04.jpg", "tf-photo2-05.jpg", "tf-photo2-06.jpg", "tf-photo2-07.jpg", "tf-photo2-08.jpg", "tf-photo2-09.jpg", "tf-photo2-10.jpg", "tf-photo2-11.jpg", "tf-photo2-12.jpg", "tf-photo2-13.jpg", "tf-photo2-14.jpg", "tf-photo2-15.jpg", "tf-photo2-16.jpg", "tf-photo2-17.jpg", "tf-photo2-18.jpg", "tf-photo2-19.jpg", "tf-photo2-20.jpg", "tf-photo2-21.jpg", "tf-photo2-22.jpg", "tf-photo2-23.jpg", "tf-photo2-24.jpg", "tf-photo2-25.jpg", "tf-photo2-26.jpg", "tf-photo2-27.jpg", "tf-photo2-28.jpg", "tf-photo2-29.jpg", "tf-photo2-30.jpg");
	
	today2=new Date();
    len=30;
    today=today2.getTime()/30;
    rnd=today%len;

    document.write("<img src='photos/" + var_images[Math.floor(rnd)] + "'>");
}



function sidebar2() {

document.write(

	"<img src='images/tf-hdr-features-150.gif' width=150 height=24 border=0 alt='Sidebar2'><br>" +

	"<table width='100%' cellpadding=3 cellspacing=0 border=0>" +

	"<tr><td bgcolor='#ccffff'><font color='#000000' size=2 face='arial'>" +
	
		"<li><a href='new.htm'><font color='000000'>New Here?</font></a></li><br>" +

		"<li><a href='bible.htm'><font color='000000'>1 Year Bible <img src='images/tf-hot.gif' border='0' width='32' height='12' alt='new'></font></a></li><br>" +

		"<li><a href='jesus.htm'><font color='000000'><b>Jesus?</b></font></a></li><br>" +

		"<li><a href='chat.htm'><font color='000000'>Chat Room <img src='images/tf-hot.gif' border='0' width='32' height='12' alt='new'></font></a></li><br>" +
		
		"<li><a href='newsletter.htm'><font color='000000'>Join Mailing List!</font></a></li><br>" +
		
		"<li><a href='schools.htm'><font color='000000'>Pray for our Schools</font></a></li><br>" +

		"<li><a href='totm.htm'><font color='000000'>TASKer of the Month</font></a></li><br>" +

		"<li><a href='starwars.htm'><font color='000000'>Star Wars</font></a></li><br>" +

		"</font>" +

	"</td></tr>" +

	"</table>");

}



function photoalbums() {

document.write(

	"<p><font color='#CCFFFF' size='4'><b>Other Photo Albums</b></font></p>" +

	"<table width='100%' cellpadding=3 cellspacing=0 border=0>" +

	"<tr><td bgcolor='#000000' valign='top'><font color='#FFFFFF' size=2 face='arial'>" +
	
		"<li><a href='photos-2004-youth.htm'>The 'Real' Real World 2004</a></li>" +

		"<li><a href='photos-2004-camp.htm'>Youth Camp 2004 </a></li>" +

		"<li><a href='photos-2004-taco.htm'>Taco Eating Contest 2004</a></li>" +
		
		"<li><a href='photos-2004-nws.htm'>Natural Water Slide 2004 </a></li>" +
		
		"<li><a href='photos-2004-conv.htm'>Youth Convention 2004 </a></li>" +

		"<li><a href='photos-2004-40days.htm'>40 Days of Purpose 2004</a></li>" +
						
		"<li><a href='photos-2004-phone.htm'>Camera Phone Pics 2004-2005</a></li>" +

		"<li><a href='photos-2005-nye.htm'>New Year's Eve All-Nighter 2005</a></li>" +

		"<li><a href='photos-2005-drink.htm'>Get Your Drink On!</a></li>" +
		
		"<li><a href='photos-2005-playground.htm'>Playground 2005 </a></li>" +

		"<li><a href='photos-2005-lprc.htm'>New Youth Facility! </a></li>" +

		"</font>" +

	"</td>" +

	"<td bgcolor='#000000' valign='top'><font color='#FFFFFF' size=2 face='arial'>" +

		"<li><a href='photos-2005-skillet.htm'>Skillet Concert</a></li>" +

		"<li><a href='photos-2005-superbowl.htm'>Superbowl Party 2005</a></li>" +

		"<li><a href='photos-2005-gocarts.htm'>Big Daddy's Fast Track</a></li>" +

		"<li><a href='photos-2005-gc.htm'>General Council denver05</a></li>" +

		"<li><a href='photos-2005-elitchs.htm'>Six Flags Mystery Weekend 2005</a></li>" +

		"<li><a href='photos-2005-b2sb.htm'>Back 2 School Bash 2005</a></li>" +

		"<li><a href='photos-20051228-beards.htm'>Santa Beards 12/2005</a></li>" +

		"<li><a href='photos-20060101-nye.htm'>New Year's Eve at Mr. Bigg's</a></li>" +

		"<li><a href='photos-20060205-superbowl.htm'>Superbowl Party 2006</a></li>" +

		"<li><a href='photos-20060310-hs-outing.htm'>High School Outing</a></li>" +

		"</font>" +

	"</td></tr>" +


	"</table>");

}

