<!--
function SermonAudio(sURL) {
/* ==============================================
   link to sermon audio
   ============================================== */		
	var html = '<style> .sermonAudioLink { text-decoration: underline; font-size: small } </style>';
	html += '<div class="colorBox"';
	html += ' style="float: right; text-align: center; width: 16em; margin: .5em">';
	html += '<a class="sermonAudioLink" href="' + sURL + '">';
	html += 'Listen to this sermon</a>'
	html += '<p><a href="../syndication.html">Subscribe to the sermon podcast</a></p>';
	html += '</div>';
	
	document.write(html);
}

function SermonLinks(sURL, sermonDate) {
/* ==============================================
   link to sermon audio
   ============================================== */		
	var html = '<style> .sermonLink { text-decoration: underline; font-size: small } </style>';
	html += '<div style="float: right; text-align: center; width: 16em; margin: .5em">';
	html += '<div class="colorBox">';
	
	if (sURL.length > 0)
    {
	    html += '<div style="margin-bottom: 1em">';
    	html += '<a class="sermonLink" href="' + sURL + '">';
    	html += 'Listen to this sermon</a></div>';
	    html += '<div style="margin-bottom: 1em">';
	    html += '<img src="../images/feed-icon-16x16.jpg" alt="RSS" />';
	    html += '<a class="sermonLink" href="../syndication.html">Subscribe to the<br/>sermon podcast</a>';
	    html += '</div>';
	}
	
	if (sermonDate)
	{
	    // 2007/Bulletin20070218.pdf
	
	    var year = sermonDate.substring(0, 4);
	    
	    html += '<div>';
	    html += '<a class="sermonLink" href="../news/';
	    html += year;
	    html += '/Bulletin';
	    html += sermonDate; 
	    html += '.pdf">Read the bulletin</a></div>';  
    }
    
    html += '</div></div>';
	
	document.write(html);
}

//-->

