/****************************************************************************/
/* Central Christian Church Javascripts - Version 2.0.0 - November 5, 2006  */
/****************************************************************************/
/* allows easytithe entrance */
function popEasyTithe(id) {
sealWin=window.open("https://www.easytithe.com/g/?uid="+id,"win",'toolbar=0,location=0,top=50,left=100,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=570,height=600');
sealWin.focus();
self.name = "mainWin";
}

/* creates top navigation bar */
function getTopNav(){
	var html = '';
	
	html += '<a href="http://www.thenewcentral.com/catalog/index.php"><img src="images/ads/top_ad_01.jpg" width="765" height="110" border="0"></a>'
	html += '<br><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="765" height="115">'
  	html += '<param name="movie" value="flash/sitewide/top_nav.swf">'
  	html += '<param name="quality" value="high">'
  	html += '<embed src="flash/sitewide/top_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="765" height="115"></embed>'
	html += '</object>';
	
	document.write(html);
}

/* creates top navigation bar ad */
function getTopNavAd(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline02"><img src="images/ads/top_ad_02.jpg" width="765" height="110" border="0"></a>'
	html += '<br><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="765" height="115">'
  	html += '<param name="movie" value="flash/sitewide/top_nav.swf">'
  	html += '<param name="quality" value="high">'
  	html += '<embed src="flash/sitewide/top_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="765" height="115"></embed>'
	html += '</object>';
	
	document.write(html);
}

/* creates top navigation bar inside folder */
function getTopNavFolder(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline02"><img src="images/ads/top_ad_02.jpg" width="765" height="110" border="0"></a>'
	html += '<br><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="765" height="115">'
  	html += '<param name="movie" value="../flash/sitewide/top_nav.swf">'
  	html += '<param name="quality" value="high">'
  	html += '<embed src="../flash/sitewide/top_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="765" height="115"></embed>'
	html += '</object>';
	
	document.write(html);
}

/* creates top navigation bar ad inside folder */
function getTopNavAdFolder(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline02"><img sr c="images/ads/top_ad_02.jpg" width="765" height="110" border="0"></a>'
	html += '<br><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="765" height="115">'
  	html += '<param name="movie" value="../flash/sitewide/top_nav.swf">'
  	html += '<param name="quality" value="high">'
  	html += '<embed src="../flash/sitewide/top_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="765" height="115"></embed>'
	html += '</object>';
	
	document.write(html);
}

/*----------------------------------------------------------------------------------------------*/

/* creates botom navigation bar */
function getBottomNav(){
	var html = '';
	
	html += '<img src="images/test/bottom_nav_left.jpg" width="383" height="61"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank"><img src="images/test/bottom_nav_right.jpg" width="382" height="61" border="0"></a>';
	
	document.write(html);
}

/* creates botom navigation bar inside folder */
function getBottomNavFolder(){
	var html = '';
	
	html += '<img src="../images/test/bottom_nav_left.jpg" width="383" height="61"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank"><img src="../images/test/bottom_nav_right.jpg" width="382" height="61" border="0"></a>';
	
	document.write(html);
}

/*----------------------------------------------------------------------------------------------*/

/* sections ad */
function getSectionAds01(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline03"><img src="images/ads/section_ad_01.jpg" width="160" height="600">';
	
	document.write(html);
}

/* sections ad inside folder */
function getSectionAds01Folder(){
	var html = '';
	
	html += '<img src="../images/ads/section_ad_01.jpg" width="160" height="600">';
	
	document.write(html);
}

/*----------------------------------------------------------------------------------------------*/

/* central news headlines */
function getHeadline01home(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline01">Awesome New Lesson Series Continues This Weekend...</a>';
	
	document.write(html);
}
function getHeadline01(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline01">Awesome New Lesson Series Continues This Weekend...</a>';
	
	document.write(html);
}
function getHeadline03(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline06">Women&#146;s Breakfast Saturday, March 6, 9:00am...</a>';
	
	document.write(html);
}
function getHeadline02(){
	var html = '';
	
	html += '<a href="res_bulletin.html#headline08">Three New Small Groups Forming...</a>';
	
	document.write(html);
}

/*----------------------------------------------------------------------------------------------*/

/* small groups news headlines */
function getGroupsHeadline01(){
	var html = '';
	
	html += '<a href="min_small_groups_news.html">If you struggle with your finances, don&#146;t miss our new Crown Financial small group.</a>';
	
	document.write(html);
}
function getGroupsHeadline02(){
	var html = '';
	
	html += '<a href="min_small_groups_news.html">Are you dealing with the pain of separation, or divorce?  If so Divorce Care is for you.</a>';
	
	document.write(html);
}
function getGroupsHeadline03(){
	var html = '';
	
	html += '<a href="min_small_groups.html#SmallGroupCurriculumIdeas">Click Here For Curriculum Ideas</a>';
	
	document.write(html);
}
function getGroupsHeadlineBottom(){
	var html = '';
	
	html += '<a href="min_small_groups_news.html">NEW Small Group Studies!</a>';
	
	document.write(html);
}

/*----------------------------------------------------------------------------------------------*/

/* video window popup */
function showVideo(videoFile) {
	mainWindow = window.open(videoFile, "videoWindow", "width=1045, height=675, scrollbars=no")
	mainWindow.focus()
}

/* live video window popup */
function showVideoLive(videoFile) {
	mainWindow = window.open(videoFile, "videoWindow", "width=1045, height=675, scrollbars=no")
	mainWindow.focus()
}

/* generic video ad */
function getVideoAd(){
	var html = '';
	
	html += '<a href="http://www.thenewcentral.com/catalog/contact_us.php?osCsid=e9a2936faf9f35d7edcae4f9f7226355" target="_blank"><img src="http://www.thenewcentral.com/images/resources/video_window/video_ad_generic.jpg" width="336" height="284"></a>';
	
	document.write(html);
}

/* live video ad */
function getVideoAdLive(){
	var html = '';
	
	html += '<a href="http://www.thenewcentral.com/giveonline.html"><img src="http://www.thenewcentral.com/images/resources/video_window/video_ad_generic.jpg" width="336" height="284"></a>';
	
	document.write(html);
}

/* splash ad */
 function splashAd() {

	splashAd =window.open("splash.html",'splashAd','width=431, height=458, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1=0, resizable=0'); 

 }