

// HIDE EMAIL ADDRESSES FROM WEB CRAWLERS
function MAILTO(E) { return "<A HREF='mailto:" + E + "'>" + E + "</A>"; }
EME = "DrEddieHyatt";
EMC = "@msn.com"; EMC = "cwspdirector" + EMC;
EMI = "@gmail.com"; EME += EMI; GMS = EMS = "DrSueHyatt"; GMS = EMS + "@live.com"; EMS = GMS;
EME = MAILTO(EME);
EMC = MAILTO(EMC);
EMS = MAILTO(EMS);
EMI = MAILTO("");
GMS = MAILTO(GMS);

// WE CAN MAKE PRINTER-FRIENDLY PAGES...
BARE = (location.search.toUpperCase() == "?BARE") ? 1 : 0;


function LinkBack(L)
{
  L = L.split(":");
  if (!BARE) document.write("<CENTER><BR><BR>[ <A HREF='" + L[0] + "'>Back to " + L[1] + "</A> ]</CENTER>");
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/*             I M P O R T A N T   F U N C T I O N S                 */

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

// CREATE LINK FOR HIM BROADCAST WINDOW
function startAV()
{
  WHIM = window.open("http://www.christiannetcast.com/watch/viewer.asp?station=HIM", "player", "HEIGHT=325 WIDTH=790 TOOLBAR=0 SCROLLBARS=0 STATUSBAR=0 MENUBAR=0 RESIZABLE=0 LEFT=20 TOP=20 SCREENX=20 SCREENY=20");
}

function Streaming() { startAV(); }


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/*                          H E A D I N G                            */

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


///////////////////////////////////////////////////////////////////
// Extract file name and search string from location.href

           P = location.href.lastIndexOf("/");
if (P < 0) P = location.href.lastIndexOf("\\");
if (P < 0) P = 0; P++;
SELF = unescape(location.href.substr(P));     // SELF = document name + search string

// Extract file name from location.href
           P = SELF.indexOf("#");
if (P < 0) P = SELF.indexOf("?");
if (P < 0) P = SELF.length;
NAME = SELF.substr(0, P).toUpperCase();       // NAME = DOCUMENT NAME ONLY

///////////////////////////////////////////////////////////////////
// File name associations for menu fuctionality

SITEMAP =

	"index.html",

	"overview.html",

	"inductees.html,fuschia-pickett.html,maria-woodworth-etter.html,",

	"courses.html",

	"editorials.html, article-quakers.html, article-choice.html, article-willofgod.html, article-move.html, article-definitions.html, article-secret.html, article-seeking.html, article-contemplative-spirituality.html, article-1timothy.html, article-women-pastors.html, article-women-and-silence.html",

	"bookstore.html",

	"news.html",

	"donations.html";

///////////////////////////////////////////////////////////////////
// Create menu map...

MENUMAP = "<MAP NAME=MENU>\
<AREA HREF='index.html' SHAPE=RECT COORDS='75,25,150,45' ALT='Home'>\
<AREA HREF='courses.html' SHAPE=RECT COORDS='20,55,150,75' ALT='Basic Course'>\
<AREA HREF='hall.html' SHAPE=RECT COORDS='35,85,150,105' ALT='Hall of Fame'>\
<AREA HREF='cws.html' SHAPE=RECT COORDS='5,115,150,135' ALT='Christian Women's Studies Program'>\
<AREA HREF='about.html' SHAPE=RECT COORDS='15,140,150,160' ALT='History Project'>\
<AREA HREF='news.html' SHAPE=RECT COORDS='15,170,150,190' ALT='News & Events'>\
<AREA HREF='founder.html' SHAPE=RECT COORDS='60,200,150,215' ALT='About the Founder'>\
<AREA HREF='editorials.html' SHAPE=RECT COORDS='50,225,150,245' ALT='Editorials'>\
<AREA HREF='bookstore.html' SHAPE=RECT COORDS='75,255,150,275' ALT='Bookstore'>\
<AREA HREF='donations.html' SHAPE=RECT COORDS='45,285,150,305' ALT='Donations'>\
<AREA HREF='sponsors.html' SHAPE=RECT COORDS='50,315,150,333' ALT='Business Sponsosrs'>\
<AREA HREF='http://www.eddiehyatt.com/live' SHAPE=RECT COORDS='15,358,135,400' ALT='HIM Streaming'>\
<AREA HREF='http://www.christiannetcast.com/listen/dynamicasx.asp?station=him2' SHAPE=RECT COORDS='15,415,136,455' ALT='AUDIO ONLY Streaming'>\
</MAP>";


if (BARE)
  document.write("<BODY LINK=999999 ALINK=999999 VLINK=999999><STYLE> H2 { TEXT-ALIGN:CENTER; } H3 { TEXT-ALIGN:CENTER; FONT-SIZE:90%; } H4 { FONT-SIZE:70%; } </STYLE>");

else

  document.write("\
\
<BODY TOPMARGIN=0 LEFTMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 BACKGROUND='bg1.jpg' LINK=660000 ALINK=660000 VLINK=660000><CENTER><BR>\
<STYLE> H2 { TEXT-ALIGN:CENTER; } H3 { TEXT-ALIGN:CENTER; COLOR:996666; FONT-SIZE:90%; } H4 { COLOR:996666; FONT-SIZE:70%; } </STYLE>\
\
<BR>\
\
<IMG SRC='heading.jpg'><TABLE BGCOLOR=FFF0D8 CELLSPACING=0 CELLPADDING=0 BACKGROUND='bg2.jpg' WIDTH=620>\
<TR><TD>\
<IMG SRC='menu.jpg' BORDER=0 ALIGN=LEFT USEMAP='#MENU' STYLE='POSITION:RELATIVE; LEFT:-3;'>" + MENUMAP + "\
\
<DIV STYLE='MARGIN-LEFT:40; MARGIN-RIGHT:40; MARGIN-TOP:30; MARGIN-BOTTOM:20; FONT-FAMILY:GARAMOND;'>\
\
");



/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/*                            F O O T                                */

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

function Copyright()
{

  if (BARE)
    document.write("<P><CENTER>Copyright © 2011 ICWHP All Right Reserved.");

  else

    document.write("\
\
</TABLE><TABLE CELLSPACING=20 CELLPADDING=0 BACKGROUND='foot.jpg' WIDTH=620 HEIGHT=89>\
\
<TR>\
<TD WIDTH=30><TD><FONT FACE=ARIAL SIZE=1>[ <A TARGET='_blank' HREF='?bare'>open printer-friendly page</A> ]\
<TD ALIGN=RIGHT><FONT FACE=ARIAL SIZE=1>[ <A HREF='javascript:window.scrollTo(0, 0);'>Jump to Top of Page</A> ]\
<TD WIDTH=5>\
<TR><TD COLSPAN=4 VALIGN=BOTTOM>\
<FONT FACE=VERDANA SIZE=1 COLOR=996633><CENTER>Copyright © 2009 ICWHP All Right Reserved.</CENTER>\
</TABLE><BR><BR>\
<a href=\"http://www3.clustrmaps.com/user/456e7f80\"><img src=\"http://www3.clustrmaps.com/stats/maps-no_clusters/www.icwhp.org-thumb.jpg\" alt=\"Locations of visitors to this page\" />\
</a>\
\
</BODY></HTML>");

}
