// j_collection.js
// collection of javascript functions used
//===============================================================
// Summary:
//  function event_title(eventtitle,eventdatevenue)
//  function openWindow(picImage,textDesc,eventtitle)
//  function LoadDateToday()
//  function DateToday()
//  function LoadTopLinks()
//  function LoadbottomLinks()
//


// JS script for top buttons rollover

	if (document.images)
	{ image1_a= new Image;  image1_i= new Image;
   	  image2_a= new Image;  image2_i= new Image;
   	  image3_a= new Image;  image3_i= new Image;
   	  image4_a= new Image;  image4_i= new Image;
   	  image5_a= new Image;  image5_i= new Image;
   	  image6_a= new Image;  image6_i= new Image;
   	  image7_a= new Image;  image7_i= new Image;
   	  image8_a= new Image;  image8_i= new Image;

	  image1_a.src="images/b_home.gif"; 	image1_i.src="images/b_home_i.gif";
	  image2_a.src="images/b_clps.gif"; 	image2_i.src="images/b_clps_i.gif";
	  image3_a.src="images/b_contacts.gif"; image3_i.src="images/b_contacts_i.gif";
	  image4_a.src="images/b_calendar.gif"; image4_i.src="images/b_calendar_i.gif";
	  image5_a.src="images/b_about.gif"; image5_i.src="images/b_about_i.gif";
	  image6_a.src="images/b_gallery.gif"; 	image6_i.src="images/b_gallery_i.gif";
	  image7_a.src="images/b_sites.gif"; 	image7_i.src="images/b_sites_i.gif";
	  image8_a.src="images/b_announce.gif"; 	image8_i.src="images/b_announce_i.gif";
	}
	else 
	{
	  image1_a="";	  image1_i="";	  document.image1="";	  
	  image2_a="";	  image2_i="";	  document.image2="";	  
	  image3_a="";	  image3_i="";	  document.image3="";	  
	  image4_a="";	  image4_i="";	  document.image4="";	  
	  image5_a="";	  image5_i="";	  document.image5="";	  
	  image6_a="";	  image6_i="";	  document.image6="";	  
	  image7_a="";	  image7_i="";	  document.image7="";	  
	  image8_a="";	  image8_i="";	  document.image8="";	  


	}
	//end top links buttons rollover

// Function that will display the title of the event used by p_<desc>.htm 
//function event_title(eventtitle,eventdatevenue)
//{
//   document.write("<P CLASS='TITLE'> "+eventtitle+"</P>");
//   document.write("<P CLASS='CAPTION'> "+eventdatevenue+"</P>");
//
//}
// Function that will create a dynamic html script for each image file selected in HREF
//function openWindow(picImage,textDesc,eventtitle)
//{
//  newWindow1 = window.open('','mapWin',"scrollbars=yes");
//  newWindow1.document.write('<HTML><HEAD><TITLE>'+eventtitle+'<\/TITLE><link REL="stylesheet" HREF="style1.css" TYPE="text/css"><\/HEAD><BODY BGCOLOR="#FFFFFF">');
//  newWindow1.document.write('<CENTER><IMG SRC='+picImage+'><P CLASS=Caption2>'+textDesc+'<\/P></CENTER>');
//  newWindow1.focus();
//  newWindow1.document.close();
//}


var TodayIs
function LoadDateToday()
  {
    DateToday(); 
    document.write("<P CLASS='VERSE2'>" + TodayIs +"</P>");
  }

function DateToday()
{
     var dayName=new Array("Sunday", "Monday", "Tuesday","Wednesday","Thursday","Friday","Saturday");
     var monthName= new Array("January","February", "March","April", "May","June", "July","August",

"September","October","November", "December");
     var now=new Date();
     var day_month=now.getDate();
     var day_week=now.getDay();
     var month=now.getMonth();
     var year=now.getFullYear();
     var min=now.getMinutes();
     var hr=now.getHours();
     var normhr=parseInt(hr);
     var normMin=min;
     if (min <= 9)
     { normMin="0"+min};
     month=month+1;
     timesuffix=" AM";
     if (normhr >= 12)
     {
     timesuffix=" PM";
        normhr=normhr-12;
     };
     TodayIs=dayName[day_week]+", "+month+"/"+day_month+"/"+year+" "+normhr+":"+normMin+timesuffix+" ";
     document.write(TodayIs);
}

function LoadMainLinks()
{
/*
document.write('<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=750>');
document.write('<TR>');
document.write('   <TD WIDTH=20 HEIGHT=67 VALIGN=TOP>');
document.write('	<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>');
document.write('	<TR><TD WIDTH=20 HEIGHT=20 BACKGROUND="images/i_corner1_solid20x20.gif"></TD>');
document.write('	   </TR>');
document.write('	<TR><TD WIDTH=20 HEIGHT=47 BACKGROUND="images/i_line20x1.gif"></TD>');
document.write('	    </TD></TR>');
document.write('	</TABLE>');
document.write('   </TD>	');
document.write('   <TD WIDTH=730 HEIGHT=67>');
document.write('	<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 >');
document.write('	<TR><TD WIDTH=692 HEIGHT=67 BACKGROUND="images/i_cfc_top692x67.jpg"></TD>');
document.write('	    <TD WIDTH=20 BGCOLOR="#000000"></TD></TR>');
document.write('	</TABLE>');
document.write('   </TD>');
document.write('   <TD WIDTH=20 HEIGHT=67 VALIGN=TOP>');
document.write('	<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>');
document.write('	<TR><TD WIDTH=20 HEIGHT=20 BACKGROUND="images/i_corner2_solid20x20.gif"></TD></TR>');
document.write('	<TR><TD WIDTH=20 HEIGHT=47 BACKGROUND="images/i_line20x1.gif"></TD></TR>');
document.write('	</TABLE>');
document.write('   </TD>	');
document.write('</TR>');
document.write('<TR><TD COLSPAN=3 HEIGHT=5 BGCOLOR="#00A5C6"></TD></TR>');
document.write('<TR><TD COLSPAN=3 HEIGHT=5 BACKGROUND="images/i_line20x2.gif" ALIGN="CENTER"></TD></TR>');
document.write('</TABLE>');

*/

/* 2008 Banner */

document.write('<TABLE CELLSPACING=0 HEIGHT=178 CELLPADDING=0 BORDER=0 WIDTH=100% BGCOLOR=#000066>');
document.write('<TR>');
document.write('   <TD VALIGN=TOP BACKGROUND=images/subtitles/bg_top.jpg><IMG SRC=images/top_2008a.jpg  BORDER=0></TD></TR></TABLE>')
/* 2008banner.jpg */

/* ===== Links Section ====== */
document.write('<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=750>');
document.write('<TR>');
document.write('  <!==== (1) LINKS SECTION>');
document.write('  <TD WIDTH=150 BACKGROUND="images/b_blue_stripe_all.gif" VALIGN=TOP>');

document.write('<TABLE BORDER=0 WIDTH=110 HEIGHT=391 CELLSPACING=0 CELLPADDING=0><TR><TD BACKGROUND="images/b_blue_stripe.gif" VALIGN=TOP>');
document.write('<A HREF="index.htm" target="_parent" onMouseover="document.image1.src=image1_a.src" onMouseout="document.image1.src=image1_i.src"><IMG SRC="images/b_home_i.gif" border=0 name="image1"></A><BR>');
document.write('<A HREF="a_announcements.htm" target="_parent" onMouseover="document.image8.src=image8_a.src" onMouseout="document.image8.src=image8_i.src"><IMG SRC="images/b_announce_i.gif" border=0 name="image8"></A><BR>');
document.write('<A HREF="a_contacts.htm" target="_parent"  onMouseover="document.image3.src=image3_a.src" onMouseout="document.image3.src=image3_i.src"><IMG SRC="images/b_contacts_i.gif" border=0 name="image3"></A><BR>');
document.write('<A HREF="a_calendar.htm" target="_parent"  onMouseover="document.image4.src=image4_a.src" onMouseout="document.image4.src=image4_i.src"><IMG SRC="images/b_calendar_i.gif" border=0 name="image4"></A><BR>');
document.write('<A HREF="a_about.htm" target="_parent"  onMouseover="document.image5.src=image5_a.src" onMouseout="document.image5.src=image5_i.src"><IMG SRC="images/b_about_i.gif" border=0 name="image5"></A><BR>');
document.write('<A HREF="a_sites.htm" target="_parent"  onMouseover="document.image7.src=image7_a.src" onMouseout="document.image7.src=image7_i.src"><IMG SRC="images/b_sites_i.gif" border=0 name="image7"></A><BR>');

document.write('<A HREF="a_gallery.htm" target="_parent"  onMouseover="document.image6.src=image6_a.src" onMouseout="document.image6.src=image6_i.src"><IMG SRC="images/b_gallery_i.gif" border=0 name="image6"></A><BR>');
document.write('<A HREF="a_clp.htm" target="_parent"  onMouseover="document.image2.src=image2_a.src" onMouseout="document.image2.src=image2_i.src"><IMG SRC="images/b_clps_i.gif" border=0 name="image2"></A><BR>');

Bulletins();
document.write('<P CLASS="VERSE"><FONT COLOR="#FFFFFF">&nbsp;&nbsp;This website,');
document.write('<BR><B>&nbsp;&nbsp;www.cfc-pa.us</B>');
document.write('<BR>&nbsp;&nbsp;is a private non-profit');
document.write('<BR>&nbsp;&nbsp;religious organization.');
document.write('<BR><FONT COLOR="YELLOW">&nbsp;&nbsp;All rights reserved.');
document.write('<BR>&nbsp;&nbsp;Copyright © 2001.');
document.write('  </TD></TR><TR><TD BACKGROUND="images/b_blue_bar.gif" VALIGN=TOP HEIGHT=60></TD></TR>');
document.write('  <TR><TD BACKGROUND="images/b_blue_stripe_all.gif" VALIGN=TOP></TD></TR></TABLE>');
document.write('  </TD>');
}
function Bulletins()
{


/*
		document.write('<P CLASS=VERSE><FONT COLOR=#FFFFFF><B>&nbsp;&nbsp;BULLETIN BOARDS</B><BR>&nbsp;&nbsp;Services Team<BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_pfo.htm">PFO Updates</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_music.htm">Music Ministry</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_secretariat.htm">Secretariat</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_gk.htm">GK Updates</A><BR>');

		document.write('<FONT COLOR=#FFFFFF><BR>&nbsp;&nbsp;Units and Ministries<BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_hh1.htm">CFC Unit 1</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_hh2.htm">CFC Unit 2</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_hold.htm">HOLD Corner</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_yfc.htm">YFC Corner</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_sfc.htm">SFC Corner</A><BR>');
		document.write('&nbsp;&nbsp;-<A CLASS=TYPE2 HREF="000_bulletin_prolife.htm">Pro-Life Updates</A><BR>');
*/
}

function LoadRightMargins()
{
//document.write('   </TD>');
document.write('   <!==== (5) SPACE >');
document.write('   <TD WIDTH=15 BGCOLOR="#FFFFFF"></TD>');
document.write('   <!==== (6) BORDER>');
document.write('   <TD WIDTH=5 BACKGROUND="images/i_line20x2.gif"></TD>');
document.write('</TR>');
document.write('</TABLE> <! end body>');
}


function LoadBottomLinks()
{
document.write('<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=750>');
document.write('<TR><TD COLSPAN=3 HEIGHT=5 BACKGROUND="images/i_line20x2.gif" ALIGN="CENTER"></TD></TR>');
document.write('<TR><TD ALIGN=CENTER>');
document.write('<A CLASS="TYPE3" HREF="index.htm"> Home</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_announcements.htm"> Announcements</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_clp.htm"> On-going CLPs</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_contacts.htm"> Change of Information</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_calendar.htm"> CFC Calendar</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_babies.htm"> New Babies</A><BR>');

document.write('<A CLASS="TYPE3" HREF="a_mission.htm"> Mission & Philosophy</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_faq.htm"> FAQs</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_ministry.htm"> CFC Ministries</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_gallery.htm"> Photo Gallery</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_sites.htm"> Other Sites</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_links.htm"> Links</A><BR>');

document.write('<A CLASS="TYPE3" HREF="a_blessings.htm"> Blessings Corner</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_events.htm"> Featured Events</A> <IMG SRC=images/i_button_blue.jpg>');
//document.write('<A CLASS="TYPE3" HREF="a_cfc_conf.htm"> CFC Conference</A> <IMG SRC=images/i_button_blue.jpg>');
//document.write('<A CLASS="TYPE3" HREF="a_sfc_conf.htm"> SFC Conference</A><BR>');

document.write('<A CLASS="TYPE3" HREF="000_org.htm"> View Members</A> <IMG SRC=images/i_button_blue.jpg>');
document.write('<A CLASS="TYPE3" HREF="a_webteam.htm"> CFC WebTeam</A>');


document.write('<P CLASS="CAPTION2"><B>This site is best viewed in Internet Explorer</P></B>');
document.write('<font face="ARIAL" size = 1 color="NAVY">');
document.write('Send your questions and suggestions to your <BR>');
GetContactInfoWebmaster();
document.write('<P CLASS="CAPTION2<font face="ARIAL" size = 1 color="BLACK">');
document.write('Couples For Christ Pennsylvania, USA <BR>Established in 1998');

document.write('</TD>');
document.write('</TR>');
document.write('</TABLE> ');

}
function LoadPageLinks()
{
document.write('<TR><TD HEIGHT="3" COLSPAN="8" BGCOLOR="#00A5C6"> </TD> </TR>');
document.write('<TR ALIGN="CENTER"><TD BGCOLOR="#000000">');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="index.htm">[ Home ]</A>&nbsp;');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="a_announcements.htm">[ Announcements ]</A>&nbsp;');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="a_clp.htm">[On-going CLPs ]</A>&nbsp;');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="a_contacts.htm">[ Contacts ]</A>&nbsp;');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="a_calendar.htm"> [ Calendar ]</A>&nbsp;');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="a_faq.htm">[ FAQs ]</A>&nbsp;');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="a_gallery.htm">[ Gallery ]</A>&nbsp;');
document.write('&nbsp; &nbsp; <A CLASS="TYPE2" HREF="a_sites.htm">[ CFC Sites ]</A>&nbsp;');
document.write('</TR>');
document.write('<TR><TD HEIGHT="3" COLSPAN="8" BGCOLOR="#000000"> </TD> </TR>');
}

function LoadTopLinks()
{
document.write('<A name=top>');
document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="720">');
document.write('<TR><TD COLSPAN="8" BGCOLOR="#000000" ALIGN="CENTER" >');
document.write('<IMG SRC="images/cfc_top.jpg"></TD> </TR>');
LoadPageLinks();
document.write('</TABLE>');
}

function GetContactInfoFinances()
{
document.write('<BR><A HREF=mailto:lemdeguzman@gmail.com>Lem De Guzman<BR>CFC Secretariat/Finances</A>');
}

function GetContactInfoFlame()
{
document.write('<BR><A HREF=mailto:Laura.I.aquino@hotmail.com>Norman & Laura Aquino<BR>CFC Flame/Events</A>');
}

function GetContactInfoWebmaster()
{
document.write('<BR><A HREF=mailto:Laura.I.aquino@hotmail.com>CFC Webmaster<BR>Laura Aquino</A>');
}

function GetContactInfoMusic()
{
document.write('<BR><A HREF=mailto:rickatrose@rcn.com>Ricky and Rose Makasakit<BR>CFC Music Ministry</A>');
}