monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")

	var now = new Date;
	var today = new Date();
	var moNumber = today.getMonth();
	var MoName = monName[now.getMonth()];
	var dayofWeekNumber = today.getDay();
	var monthdate = today.getDate();
	var YearNumber = today.getYear();
	
	if (YearNumber < 1900) {YearNumber = YearNumber + 1900}

	var CalImg = new Image;
	CalImg.src = "Calendar/Images/Calendar_" + MoName + ".gif";


function jump_calendar()
	{
	window.location="http://www.goodshepherdonline.org/Calendar/" + YearNumber +"/" + MoName + "_" + YearNumber + ".pdf"

	//document.write("http://www.goodshepherdonline.org/Calendar/" + YearNumber +"/" + MoName + "_" + YearNumber + ".pdf")
	}

function jump_TodaysFLD()
	{
	var FLDPath
	var realmoNumber = moNumber+1
	if (realmoNumber < 10) {realmoNumber = "0" + realmoNumber}
	if (monthdate <10) {monthdate = "0" + monthdate}
	//document.write(realmoNumber + " " + monthdate + " " + YearNumber);
	FLDPath="http://www.goodshepherdonline.org/Devotion/FL_" + YearNumber + "_Archives/FL_" + YearNumber + "_" + realmoNumber + "_" + monthdate + ".htm"
	//document.write (FLDPath)
	window.location = FLDPath
	}


document.write('<div id="leftborderx" id="noprint">\
    <p id="joinus">Please Join Us!</p>\
    <p align="center" style="margin-top: 0; margin-bottom: 0" class="generaltextsmaller">\
    <b><a target="_top" href="http://www.goodshepherdonline.org/Worship%20Info/worship.htm">Summer Worship (begins June 20)</a></b></p>\
    <p align="center" style="margin-top: 3; margin-bottom: 0" class="generaltextsmaller"><b>9:00 AM</b></p>\
    <p align="center" style="margin-top: 0; margin-bottom: 0" class="generaltextsmaller"><b>Traditional</b></p>\
 	<p align="center" style="margin-top: 5; margin-bottom: 0" class="generaltextsmaller"><b>10:00 AM<br>Fellowship, Breakfast</b></p>\
	<p align="center" style="marign-top; 0; margin-bottom: 0" class="generaltextsmaller"><b>and Group Time</b></p>\
    <p align="center" style="margin-top: 5; margin-bottom: 0" class="generaltextsmaller"><b>10:45 AM<br>Contemporary</b></p>\
  	<hr color="#0000FF" width="90%" />\
	<p align="center" class="generaltextsmaller"><b>Midweek Worship<br></b>Year-Round</p>\
	<p align="center" class="generaltextsmaller"><b>Thursdays at 7PM</b></p>\
    <hr color="#0000FF" width="90%">\
    <p align="center" style="margin-top: 0; margin-bottom: 0"><a href="http://www.goodshepherdonline.org/Map/map_with_directions.htm">\
          <img id="compassicon" src="http://www.goodshepherdonline.org/Map/n_s_e_w_icon.gif" width="47" height="47"></a></p>\
    <p class="generaltextsmaller" align="center" style="margin-top: 0; margin-bottom: 3">\
          <b><a href="http://www.goodshepherdonline.org/Map/map_with_directions.htm">Directions</a></b></p>\
    <p class="generaltextsmaller" align="center"><a href="http://gsweatherupdate.blogspot.com">Weather Update</a></p>')

document.write('<ul id="nav1">\
	<li class="Mainmenu"><a href="http://www.goodshepherdonline.org/Index.htm">\
    <img border="0" src="hTTP://www.goodshepherdonline.org/images/home.gif" align="left" width="14" height="14">Home Page</a></li>')
    
document.write('<li class="Mainmenu"><a href="#">About Us</a>\
 		<ul class="Submenu1">\
 			<li><a href="http://www.goodshepherdonline.org/AboutGoodShepherd/Pastor_welcome.htm">Pastor Welcome</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/AboutGoodShepherd/About_GS.htm">FAQ\'s</a></li>\
			<li><a href="http://www.goodshepherdonline.org/AboutGoodShepherd/GS_History.htm">History</a></li>\
			<li><a href="http://www.goodshepherdonline.org/Map/map_with_directions.htm">Map and Directions</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Staff/GS_Staff.htm">Meet the Staff</a></li>\
			<li><a href="http://www.goodshepherdonline.org/AboutGoodShepherd/GS_Mission.htm">Mission</a></li>\
 		</ul>\
 	</li>')
 	
document.write('<li class="Mainmenu"><a href="#">Contact Us</a>\
 		<ul class="Submenu1">\
 		<li><a href="http://www.goodshepherdonline.org/Staff/GS_Staff.htm">Church Office</a></li>\
 		<li><a href="http://www.goodshepherdonline.org/evangelism/new%20member%20process.htm">Interested in Membership?</a></li>\
 	 	<li><a href="http://www.goodshepherdonline.org/Forms/information-request.php">Request Information</a></li>\
 		<li><a href="http://www.goodshepherdonline.org/Forms/prayer-request.php">Prayer Request</a></li>\
 		<li><a href="http://www.goodshepherdonline.org/Forms/MemberUpdate.htm">Update Member Info</a></li>\
 		<li><a href="http://www.goodshepherd.teamministry.net">Member Connect</a></li>\
 		</ul>\
 	</li>')

document.write('<li class="Mainmenu"><a href="#">Worship</a>\
 		<ul class="Submenu1">\
 			<li><a href="http://www.goodshepherdonline.org/Worship%20Info/worship.htm">Worship Times</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Worship%20Info/Worship%20Assistant%20Schedule.htm">Worship Assistant Schedule</a></li>\
			<li><a href="http://www.goodshepherdonline.org/Worship%20Info/ThursdayDevotions/ThursdayDevotions.htm">Thursday Breakfast Devotions</a></li>\
			<li><a href="http://www.goodshepherdonline.org/ChristianEd/AdultEd/WeekdayOpportunities.htm">Weekday Programs</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Sermons/Pages/SermonMinistry.htm">Sermons Online</a></li>\
 		</ul>\
 	</li>')

document.write('<li class="Mainmenu"><a href="#">Devotional Aids</a>\
 		<ul class="Submenu1">\
 			<li><a href="http://www.goodshepherdonline.org/devotion/DevotionalAids/MartinLutherSuggestions.htm">Martin Luther Suggestions</a></li>\
			<li><a href="http://www.goodshepherdonline.org/Worship%20Info/ThursdayDevotions/ThursdayDevotions.htm">Thursday Breakfast Devotions</a></li>\
			<li><a href="http://www.goodshepherdonline.org/ChristianEd/AdultEd/WeekdayOpportunities.htm">Weekday Programs</a></li>\
			<li><a href="http://fritzfoltz.com/teaching/">Frontline Study with Fritz Foltz</a></li>\
			<li><a href="http://www.goodshepherdonline.org/Devotion/DevotionalAids/DevotionalAidLinks.htm">Links to Other Resources</a></li>\
 		</ul>\
 	</li>')

document.write('<li class="Mainmenu"><a href="#">Ministries</a>\
 		<ul class="Submenu1">\
 	 		<li><a href="http://www.goodshepherdonline.org/Children%20Youth%20Family/home.htm">Children, Youth, Family</a></li>\
 	 		<li><a href="http://www.goodshepherdonline.org/ChristianEd/index.htm">Christian Education</a></li>\
 	 		<li><a href="http://www.goodshepherdonline.org/MusicMinistry/Pages/Worship_and_Music.htm">Music</a></li>\
 	 		<li><a href="http://www.goodshepherdonline.org/Preschool/preschool.htm">GS PreSchool</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Sermons/Pages/SermonMinistry.htm">Sermon Ministry</a></li>\
			<li><a href="http://www.goodshepherdonline.org/ParishLife/SmallGroupMinistries.htm">Small Groups</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/SocialMinistry/Pages/SocialMinistry.htm">Social Ministry</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Health_Ministry/stephenministry/stephenministry.htm">Stephen Ministry</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Stewardship/MinistryResourcing.htm">Stewardship</a></li>\
 		</ul>\
	</li>')	
document.write('<li class="Mainmenu"><a href="#">News & Events</a>\
 		<ul class="Submenu1">\
 	 		<li><a href="http://www.goodshepherdonline.org/Newsletter/ShepherdsLinkArchives.htm">Shepherd\'s Link News</a></li>\
			<li><a href="http://tinyurl.com/ajd3lw">Good Shepherd on Facebook</a></li>\
 	 		<li><a href="calendar/google_calendar.htm">Calendar of Events</a></li>\
 		</ul>\
	</li>')
	
document.write('<li class="Mainmenu"><a href="#">Internet Outreach</a>\
 		<ul class="Submenu1">\
 			<li><a href="http://www.goodshepherdonline.org/Devotion/Frontline_Devotions.htm">Frontline Devotions</a></li>\
 			<li><a href="http://www.goodshepherdonline.spreadtheword.com">Online Bookstore</a></li>\
			<li><a href="http://www.goodsearch.com">GoodSearch Search Engine</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Links/links.htm">Other Christian Web Sites</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Sermons/Pages/SermonMinistry.htm">Sermons</a></li>\
 			<li><a href="http://www.goodshepherdonline.org/Links/Books.htm">Books of Interest</a></li>\
 		</ul>\
 	</li>')

document.write('</ul>')
//document.write(location.href)
//Start of Big If
if (location.href == "http://www.goodshepherdonline.org/index.htm" || location.href == "http://www.goodshepherdonline.org/Index.htm" || location.href == "http://www.goodshepherdonline.org/")
{

document.write('<center>')

//Presentational Slideshow Script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for legal use

var slideshow_width='148px' //SET SLIDESHOW WIDTH (set to largest image's width if multiple dimensions exist)
var slideshow_height='184px' //SET SLIDESHOW HEIGHT (set to largest image's height if multiple dimensions exist)
var pause=3900 //SET PAUSE BETWEEN SLIDE (2000=2 seconds)
var slidebgcolor="#efefef"


var dropimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
//dropimages[0]="../images/RotatingImages/PastorsBlogAutomate2.jpg"
dropimages[0]="../images/RotatingImages/FrontLineDevotionsAutomate.jpg"
dropimages[1]="../images/RotatingImages/SimplyGivingAutomate.jpg"
dropimages[2]="../images/RotatingImages/WeeklyAnnouncementsAutomate.jpg"
dropimages[3]="../images/RotatingImages/GoodSearchAutomate.jpg"

var droplinks=new Array()
//SET IMAGE URLs. Use "" if you wish particular image to NOT be linked:
//droplinks[0]="http://www.pastordaveweeklynote.blogspot.com/"
droplinks[0]="http://www.goodshepherdonline.org/Devotion/Frontline_Devotions.htm"
droplinks[1]="https://www.thrivent.com/community/outreach/giving/simplygiving/"
droplinks[2]="http://www.goodshepherdonline.org/Forms/WeeklyAnnouncements_OptIn-Out.htm"
droplinks[3]="http://www.goodsearch.com"

////NO need to edit beyond here/////////////

var preloadedimages=new Array()
for (p=0;p<dropimages.length;p++){
preloadedimages[p]=new Image()
preloadedimages[p].src=dropimages[p]
}

var ie4=document.all
var dom=document.getElementById

if (ie4||dom)
document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';background-color:'+slidebgcolor+';left:-'+slideshow_width+'"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';background-color:'+slidebgcolor+';left:-'+slideshow_width+'"></div></div>')
else
document.write('<a href="javascript:rotatelink()"><img name="defaultslide" src="'+dropimages[0]+'" border=0></a>')

var curpos=parseInt(slideshow_width)*(-1)
var degree=10
var curcanvas="canvas0"
var curimageindex=linkindex=0
var nextimageindex=1


function movepic(){
if (curpos<0){
curpos=Math.min(curpos+degree,0)
tempobj.style.left=curpos+"px"
}
else{

clearInterval(dropslide)
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
var slideimage='<img src="'+dropimages[curimageindex]+'" border=0>'
tempobj.innerHTML=(droplinks[curimageindex]!="")? '<a href="'+droplinks[curimageindex]+'">'+slideimage+'</a>' : slideimage
nextimageindex=(nextimageindex<dropimages.length-1)? nextimageindex+1 : 0
setTimeout("rotateimage()",pause)
}
}

function rotateimage(){
if (ie4||dom){
resetit(curcanvas)
var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
var temp='setInterval("movepic()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else
document.images.defaultslide.src=dropimages[curimageindex]
linkindex=curimageindex
curimageindex=(curimageindex<dropimages.length-1)? curimageindex+1 : 0
}

function rotatelink(){
if (droplinks[linkindex]!="")
window.location=droplinks[linkindex]
}

function resetit(what){
curpos=parseInt(slideshow_width)*(-1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.left=curpos+"px"
}

function startit(){
var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.innerHTML='<a href="'+droplinks[curimageindex]+'"><img src="'+dropimages[curimageindex]+'" border=0></a>'
rotateimage()
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav1");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

if (ie4||dom) {
//document.write(document.url)
window.onload=startit
}
else 
setInterval("rotateimage()",pause)
}
//This is the end of the Big If
	if (document.all&&document.getElementById) {
	navRoot = document.getElementById("nav1");
	for (i=0; i<navRoot.childNodes.length; i++) {
	node = navRoot.childNodes[i];
	if (node.nodeName=="LI") {
	node.onmouseover=function() {
	this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
	}

document.write('</center>')
document.write('</div>')

//document.write(location.href)

document.write('</div>')
