function jumpTo(URL_List){
   var URL = URL_List.options[URL_List.selectedIndex].value;
   window.location.href = URL;
}

function sermonPage(sermonTitle,movFile,mp3File,sermonDate,sermonPreacher,sermonSummary,sermonTime) {
HTMLstring='<HTML>\n';
HTMLstring+='<HEAD>\n';
HTMLstring+='	<TITLE>'+sermonTitle+' - '+sermonPreacher+'</TITLE>\n';
HTMLstring+='	<LINK REL=STYLESHEET TYPE="text/css" HREF="http://www.gracecommunity.info/gcc.css">\n';
HTMLstring+='</HEAD>\n';
HTMLstring+='<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>\n';
HTMLstring+='		<div align="center">\n';
HTMLstring+='			<TABLE WIDTH=370 BORDER=0 CELLPADDING=0 CELLSPACING=0>\n';
HTMLstring+='				<tr height="8">\n';
HTMLstring+='					<td colspan="3" align=TOP width="375" height="8"></td>\n';
HTMLstring+='				</tr>\n';
HTMLstring+='				<TR>\n';
HTMLstring+='					<TD WIDTH=40 ALIGN=TOP BGCOLOR="#DCDCDC"><IMG SRC="http://www.gracecommunity.info/images/spacer.gif" WIDTH=40 HEIGHT=4></TD>\n';
HTMLstring+='					<TD WIDTH=295 ALIGN=TOP BGCOLOR="#DCDCDC">\n';
HTMLstring+='							<table width=277 border=0 cellpadding=0 cellspacing=0>\n';
HTMLstring+='								<tr>\n';
HTMLstring+='									<td width=277 align=TOP bgcolor="#DCDCDC">\n';
HTMLstring+='										<marquee class="mousetype" behavior="scroll" height="15" loop="2" scrollamount="2" width="295">\n';
HTMLstring+='											This audio file will start playing automatically. On some systems, it may take a few minutes before the file is ready to start playing. You may continue to browse other pages and leave this window open in the background. Closing this window will stop playback. \n';
HTMLstring+='										</marquee></td>\n';
HTMLstring+='								</tr>\n';
HTMLstring+='							</table>\n';
HTMLstring+='					</TD>\n';
HTMLstring+='					<TD WIDTH=40 ALIGN=TOP BGCOLOR="#DCDCDC"><IMG SRC="http://www.gracecommunity.info/images/spacer.gif" WIDTH=40 HEIGHT=4></TD>\n';
HTMLstring+='				</TR>\n';
HTMLstring+='				<TR>\n';
HTMLstring+='					<TD COLSPAN=3 ALIGN=CENTER VALIGN=top width="375">\n';
HTMLstring+='						<CENTER>\n';
HTMLstring+='							<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="24" width="295">\n';
HTMLstring+='								<param name="cache" value="true">\n';
HTMLstring+='								<param name="starttime" value="00:05">\n';
HTMLstring+='								<param name="volume" value="100">\n';
HTMLstring+='								<param name="controls" value="smallconsole">\n';
HTMLstring+='								<param name="autostart" value="true">\n';
HTMLstring+='								<param name="src" value="http://www.gracecommunity.info/audio-sermons/mov/'+movFile+'">\n';
HTMLstring+='								<param name="autoplay" value="true">\n';
HTMLstring+='								<param name="controller" value="true">\n';
HTMLstring+='								<embed height="38" pluginspage="http://www.apple.com/quicktime/download/" src="http://www.gracecommunity.info/audio-sermons/mov/'+movFile+'" type="video/quicktime" width="295" controller="true" autoplay="true" autostart="true" controls="smallconsole" volume="100" starttime="00:05" cache="true">\n'; 
HTMLstring+='							</object><BR><IMG SRC="http://www.gracecommunity.info/images/spacer.gif" WIDTH=335 HEIGHT=7></CENTER>\n';
HTMLstring+='					</TD>\n';
HTMLstring+='				</TR>\n';
HTMLstring+='				<TR>\n';
HTMLstring+='					<TD WIDTH=40 ALIGN=TOP><IMG SRC="http://www.gracecommunity.info/images/spacer.gif" WIDTH=40 HEIGHT=1></TD>\n';
HTMLstring+='					<TD COLSPAN=2 ALIGN=LEFT VALIGN=TOP width="295">\n';
HTMLstring+='						<div align="left">\n';
HTMLstring+='							<table width="294" border="0" cellspacing="2" cellpadding="0">\n';
HTMLstring+='								<tr>\n';
HTMLstring+='									<td><b>'+sermonTitle+'</b>, '+sermonDate+'<br>\n';
HTMLstring+='										<i>'+sermonPreacher+' ('+sermonTime+') </i><br>\n';
HTMLstring+='										<p>'+sermonSummary+'</P>\n';
HTMLstring+='									</td>\n';
HTMLstring+='								</tr>\n';
HTMLstring+='							</table>\n';
HTMLstring+='						</div>\n';
HTMLstring+='					</TD>\n';
HTMLstring+='				</TR>\n';
HTMLstring+='				<tr>\n';
HTMLstring+='					<td width=40 align=TOP></td>\n';
HTMLstring+='					<td align=LEFT valign=TOP width="295"><br>\n';
HTMLstring+='					</td>\n';
HTMLstring+='					<td width=40 align=TOP></td>\n';
HTMLstring+='				</tr>\n';
HTMLstring+='			</TABLE>\n';
HTMLstring+='			<TABLE WIDTH=370 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="50">\n';
HTMLstring+='				<TR>\n';
HTMLstring+='					<td align=center valign="middle" width="40"><img src="http://www.gracecommunity.info/images/spacer.gif" alt="" height="1" width="40" border="0"></td>\n';
HTMLstring+='					<TD  ALIGN=left valign="middle" width="240"><br>\n';
HTMLstring+='						<P>\n';
HTMLstring+='							<a class="captions" href="http://www.gracecommunity.info/audio-nav/audio-help.html" target="_blank">Help</a> | \n';
HTMLstring+='							<a class="captions" href="javascript:window.close()">Stop - Close this window</a></P>\n';
HTMLstring+='						<P>\n';
HTMLstring+='							<a class="mousetype" href="http://www.gracecommunity.info" target="_blank">&copy; Grace Community Church, New Canaan, CT</TD>\n';
HTMLstring+='					<TD valign="top" WIDTH=90 ALIGN=left><a href="http://www.gracecommunity.info" target="_blank"><IMG SRC="http://www.gracecommunity.info/audio-nav/images/GraceLogoQTPlayer.gif" WIDTH=90 HEIGHT=56 border="0"></a></TD>\n';
HTMLstring+='				</TR>\n';
HTMLstring+='			</TABLE>\n';
HTMLstring+='</BODY>\n';
HTMLstring+='</HTML>';
newwindow=window.open('','','left=100,top=30,width=400,height=350');
newdocument=newwindow.document;
newdocument.write(HTMLstring);
}

function dateCode() {
dateCode="040704"
HTMLstring='<p>'+dateCode+'-wma.html</p>\n';
document.write(HTMLstring);
}


// popup window
function openPopUp(popURL)
			{   // use these to set the height and width of the window
				if (openPopUp.arguments[1]) popWidth=openPopUp.arguments[1];
					else popWidth  = 700;
				if (openPopUp.arguments[2]) popHeight=openPopUp.arguments[2];
					else popHeight = 550;
			
			     // see if we've got a mac
			    if (navigator.userAgent.indexOf("Mac") >= 0 || navigator.userAgent.indexOf("PPC") >= 0)
					 menuVar = 'yes';
			    else menuVar = 'no';
			
			     // make the call to create the new window
			    myNewPopUp = open(popURL,"myPopUp","outerwidth="+popWidth+",outerheight="+popHeight
						+",width=" + popWidth + ",height=" + popHeight + ",menubar=" + menuVar
						+",toolbar=no,location=no,directories=no,status=no,"
						+"scrollbars=yes,resizable=yes");
			    if (myNewPopUp.opener == null) myNewPopUp.opener = window;
			    myNewPopUp.opener.name = "origPopUp";
			    myNewPopUp.focus(); 
				
			}


// -->