//  var lang = ""
//  var lang_txt=  "<font size=2>Choose language: <face='Arial, Helvetica, sans-serif' color=0000A0><a href=javascript:langsel('uk')>English</a> <a href=javascript:langsel('fr')>French</a> <a href=javascript:langsel('de')>German</a> <a href=javascript:langsel('po')>Portuguese</a> <a href=javascript:langsel('es')>Spanish</a> </font></font>"
//-- displays welcome text on opening or refreshing homepage (index1 and index2)
//  var pecname = "Putney Evangelical Church";
//  var lpecname = "Putney Evangelical Church";
//  var alerts = 0;
//  var refresh_opentxt = "<a onMouseOver=callpopup(2)>Thank you for visiting us. May you know the Lord's blessing upon you. Call again soon.</a>"
//  var just_opentxt = "Please use the navigator to move around our site. "
//-- status bar message
//  var mssg="In Jesus's name we welcome you to the home page of " + pecname + "."
//-- favourites message
//  var mssgfav = "Add to favourites"
//  var welcome_txt = "Welcome to the <a href=mailto:elders@putneyevangelicalchurch.org.uk alt='Mail to the elders'>" + pecname + "'s</a> home page."
//  var desc_txt = "independent, baptistic and reformed"
//  var marquee_txt =" Set your mind on the things above, not on things on the earth Colossians 3:2 "
//  var marquee_txt =" Be anxious for nothing, but in everything by prayer and supplication with thanksgiving, let your request be made known to God. Philippians 4:6 "
//  var music_txt ="Our music: "
//  var who_txt = "<table style='font:bold italic'><tr><td><p align=left><img src=images/eagle.jpg width=217 height=158 border=0 alt='They shall mount up with wings as eagles'><td>" + pecname + " is a group of believers who seek to worship and serve God in his strength<ul><li>to fulfil the ordinances of the Christian faith,<li>to grow in grace and in the knowledge of God,<li>to serve one another, and<li>to proclaim the gospel.</ul><tr><td valign=top align=right>Documents:<td><ul><li><a href='fiecbass.htm' alt='Basis of faith'>Our basis of faith</a> <li><a href='pecconst.htm' alt='Constitution'>Our constitution</a><li><a href='peccpp.htm' alt='Child protection policy'>Child protection policy</a><li><a href='peccrb.htm' alt='Criminal Records Bureau policy'>Criminal Records Bureau policy</a><li><a href='peceop.htm' alt='Equal opportunities policy'>Equal opportunities policy</a><li><a href='pecapp.htm' alt='Application form'>Application for membership</a><li><a href='pecnotes.htm' alt='Notes for visitors'>Notes for visitors</a><li><a href='pecspeakers.htm' alt='Notes for speakers'>Notes for speakers</a></ul></table><hr><i><B><font size=-1>To contact " + pecname + " please e-mail us at <A HREF='mailto:elders@putneyevangelicalchurch.org.uk' alt='Mail to the elders'>elders@putneyevangelicalchurch.org.uk</A></font>"
//  var thought_txt = "Thought for the month"
//  var o_txt = "Gal 5:11, 1 Cor 1:23, 1 Peter 2:8 "
//  var spigot_txt_ie ="We are grateful to <a href='http://antimony69.tripod.com/dg_info.html' target='NewWindow'>David Griffiths</a> for the use of the buttons, and to <script>freeparking(0)</script> for the domain name hosting."
//  var spigot_txt_ff ="We are grateful to <script>freeparking(0)</script> for the domain name hosting."
//  ceased to use spigots April 2005 as some security features in IE disabled them
spigot_txt_ie = spigot_txt_ff

var just_open = 1;
var refresh_open = 0;
var pecmusic = "music/pecmusic.mid";
var timerId;
var counter = 0;
var url="http://putneyevangelicalchurch.org.uk";
var title= pecname + " - Home page";
var NavApp = navigator.appName;
var NavIsIE =  (NavApp == "Microsoft Internet Explorer");
var refresh_closetxt = ""
var close_langtxt = ""

// alert(parent.document.all.tags("HEAD")[0].id);
// alert(window.parent.frames.length)
if(window != top && window.parent.frames.length > 1)
{
if (parent.document.all.tags("HEAD")[0].id == "De")
  {
//    lang_de();
// NB This does not work for the htm docs in the sub folders!
    document.all.myscript.src="../bin/script_de.js";
  }
if (parent.document.all.tags("HEAD")[0].id == "Fr")
  {
//    lang_fr();
    document.all.myscript.src="../bin/script_fr.js";
  }
if (parent.document.all.tags("HEAD")[0].id == "Po")
  {
//    lang_po();
    document.all.myscript.src="../bin/script_po.js";
  }
if (parent.document.all.tags("HEAD")[0].id == "Es")
  {
//    lang_es();
    document.all.myscript.src="../bin/script_es.js";
  }
}

if(window == top && opener && opener != opener.top)
{
  if (opener.document.all.tags("HEAD")[0].id == "De")
  {
//    lang_de()
  }
  if (opener.document.all.tags("HEAD")[0].id == "Fr")
  {
//    lang_fr()
  }
  if (opener.document.all.tags("HEAD")[0].id == "Po")
  {
//    lang_po()
  }
  if (opener.document.all.tags("HEAD")[0].id == "Es")
  {
//    lang_es()
  }
}

if(window == top && opener && opener == opener.top && window.name=="PECPopupwhydoIneedthis")
{
  window.close();
}

function lang_de()
{
  lang = "de_";
  pecname = "Putney Evangelische Kirche";
  lpecname = "Putney Evangelische Kirche";
  lang_txt=  "<font size=2>Wählen Sie Sprache: <face='Arial, Helvetica, sans-serif' color=0000A0><a href=javascript:langsel('uk')>Englisches</a> <a href=javascript:langsel('fr')>Französisches</a> <a href=javascript:langsel('de')>Deutsches</a> <a href=javascript:langsel('po')>Portugiesisches</a> <a href=javascript:langsel('es')>Spanisch</a> </font></font>"
  refresh_opentxt = "<a onMouseOver=callpopup(2)>Danke für Ihr Besuchen. Mögen Sie den Segnen des Herrn über Ihnen kennen. Anruf wieder bald. </a>"
  just_opentxt = "Benutzen Sie bitte den Nautiker, um um unseren Aufstellungsort zu bewegen "
  mssg="Im Namen Jesu begrüßen wir Sie zum Hauptseite " + pecname + "."
  mssgfav = "Fügen Sie Lieblingen hinzu"
  welcome_txt="Willkommen zum Home Page von <a href=mailto:elders@putneyevangelicalchurch.org.uk alt='Mail to the elders'>" + pecname + "</a>."
  desc_txt = "unabhängig, baptistic und verbessert"
  marquee_txt=" Trachtet nach dem, was droben ist, nicht nach dem, was auf Erden ist Kolosser 61:2 "
  marquee_txt=" Sorget nichts! sondern in allen Dingen lasset eure Bitten im Gebet und Flehen mit Danksagung vor Gott kund werden. Philipper 4:6"
  music_txt="Unsere Musik: "
  spigot_txt_ie = "Wir sind zu <a href='http://www.spigots.com' target='Mainframe'>David Griffiths</a> für den Gebrauch der Tasten dankbar, und zum <script>freeparking(0)</script> für die Domain Namebewirtung."
  spigot_txt_ff = "Wir sind zu <script>freeparking(0)</script> für die Domain Namebewirtung dankbar."
  spigot_txt_ie = spigot_txt_ff
  who_txt ="<i><B><br><p>Putney Evangelische Kirche ist eine Gemeinde der Jünger Jesu Christ, die suchen, Gott in seiner Stärke anzubeten und zu dienen<ul><li>die Befehle des christlichen Glaubens erfüllen,<li>in der Anmut und im Wissen des Gottes wachsen,<li>ein anders zu dienen und<li>das Evangelium zu predigen.</ul><p>Möchten Sie <a href='fiecbass.htm' alt='Basis of faith'>unsere Grundlage des Glaubens</a> oder <a href='pecconst.htm' alt='Constitution'>unserer Beschaffenheit</a> sehen?<hr><font size=-1>E-mail " + pecname + " an <A HREF='mailto:elders@putneyevangelicalchurch.org.uk' alt='Mail to the elders'>elders@putneyevangelicalchurch.org.uk</A> bitte in Verbindung treten</font>"
  thought_txt = "Gedanken für den Monat"
}

function lang_fr()
{
  lang = "fr_";
  pecname = "église évangélique de Putney";
  lpecname = "L'église évangélique de Putney";
  lang_txt=  "<font size=2>Choisissez la langue: <face='Arial, Helvetica, sans-serif' color=0000A0><a href=javascript:langsel('uk')>Anglais</a> <a href=javascript:langsel('fr')>Français</a> <a href=javascript:langsel('de')>Allemand</a> <a href=javascript:langsel('po')>Portugais</a> <a href=javascript:langsel('es')>Espagnol</a> </font></font>"
  refresh_opentxt = "<a onMouseOver=callpopup(2)>Merci de nous rendre visite. Pouvez vous savoir la bénédiction du seigneur sur vous. Appel encore bientôt. </a>"
  just_opentxt = "Veuillez employer le navigateur pour se déplacer autour de notre emplacement. "
  mssg="En nom de Jésus nous vous souhaitons la bienvenue au Home Page de l'" + pecname + "."
  mssgfav = "Ajoutez aux favoris"
  welcome_txt="Bienvenue au Home Page de <a href=mailto:elders@putneyevangelicalchurch.org.uk alt='Mail to the elders'>l'" + pecname + "</a>."
  desc_txt = "indépendant, baptistic et reformé"
  marquee_txt=" Affectionnez-vous aux choses d’en haut, et non à celles qui sont sur la terre Colossians 3:2 "
  marquee_txt= " Ne vous inquiétez de rien; mais en toute chose faites connaître vos besoins à Dieu par des prières et des supplications, avec des actions de grâces. Phil 4:6"
  music_txt="Notre musique: "
  spigot_txt_ie ="Nous sommes reconnaissants à <a href='http://www.spigots.com' target='Mainframe'>David Griffiths</a> pour l'usage des boutons, et au <script>freeparking(0)</script> pour l'accueil de domain name."
  spigot_txt_ff ="Nous sommes reconnaissants à <script>freeparking(0)</script> pour l'accueil de domain name."
  spigot_txt_ie = spigot_txt_ff
  who_txt ="<i><B><br><p>L'" + pecname + " est une école des fideles qui cherchent à adorer et servir Dieu dans sa force<ul><li>pour accomplir les ordonnances de la foi chrétienne,<li>pour se développer dans la grace et dans la connaissance de Dieu,<li>pour servir un un autre, et<li>pour proclamer le gospel.</ul><p>Voulez-vous voir <a href='fiecbass.htm' alt='Basis of faith'>notre base de la foi</a> ou <a href='pecconst.htm' alt='Constitution'>de notre constitution?</a><hr><font size=-1>Pour entrer en contact avec le E-mail d'" + pecname + " svp nous à <A HREF='mailto:elders@putneyevangelicalchurch.org.uk' alt='Mail to the elders'>elders@putneyevangelicalchurch.org.uk</A></font>"
  thought_txt = "Pensé pour le mois"
}

function lang_po()
{
  lang = "po_";
  pecname = "igreja evangelical de Putney";
  pecname = "La igreja evangelical de Putney";
  lang_txt=  "<font size=2>Escolha a língua: <face='Arial, Helvetica, sans-serif' color=0000A0><a href=javascript:langsel('uk')>Inglês</a> <a href=javascript:langsel('fr')>Francês</a> <a href=javascript:langsel('de')>Alemão</a> <a href=javascript:langsel('po')>Português</a> <a href=javascript:langsel('es')>Espanhol</a> </font></font>"
  refresh_opentxt = "<a onMouseOver=callpopup(2)>Obrigado visitando nos. Pode você saber o blessing do senhor em cima de você. Chamada outra vez logo. </a>"
  just_opentxt = "Use por favor o navegador mover-se em torno de nosso local. "
  mssg="No nome de Jesus nós damos-lhe boas-vindas ao Home Page da " + pecname + "."
  mssgfav = "Adicione aos favoritos"
  welcome_txt="Po Boa vinda ao Home Page da <a href=mailto:elders@putneyevangelicalchurch.org.uk alt='Mail to the elders'>" + pecname + "</a>."
  desc_txt = "independente, baptistic e reformado "
  marquee_txt=" Ajuste sua mente nas coisas acima, não nas coisas da terra - col 3:2 "
  marquee_txt=" Seja ansioso para nada, mas em tudo pelo orações e pela petição com acções de graças, deixe seu pedido ser tornado conhecido ao deus ---- Não preocupa nada; mas em qualquer coisa indicada as vossas necessidades à Deus por orações e supplicationes, com acções de graças. Phil 4:6 "
  music_txt="Nossa música: "
  spigot_txt_ie ="Nós somos gratos a <a href='http://www.spigots.com' target='Mainframe'>David Griffiths</a> para o uso das teclas, e ao <script>freeparking(0)</script> para hospedar do domain name."
  spigot_txt_ff ="Nós somos gratos a <script>freeparking(0)</script> para hospedar do domain name."
  spigot_txt_ie = spigot_txt_ff
  who_txt ="<i><B><br><p>A " + pecname + " é um grupo dos believers que procuram adorar e servir ao deus em sua força<ul><li>para cumprir os ordinances da fé christian,<li>para crescer no grace e no conhecimento do deus,<li>para servir a um outro,e<li>para proclamar o gospel.</ul><p>Você quer ver <a href='fiecbass.htm' alt='Basis of faith'>nossa base da fé</a> ou <a href='pecconst.htm' alt='Constitution'>do nosso constitution?</a><hr><font size=-1>Para contatar por favor o E-mail da " + pecname + " nós em <A HREF='mailto:elders@putneyevangelicalchurch.org.uk' alt='Mail to the elders'>elders@putneyevangelicalchurch.org.uk</A></font>"
  thought_txt = "Pensaram para o mês"
}

function lang_es()
{
  lang = "es_";
  pecname = "iglesia evangélica de Putney";
  pecname = "La iglesia evangélica de Putney";
  lang_txt=  "<font size=2>Elija la lengua: <face='Arial, Helvetica, sans-serif' color=0000A0><a href=javascript:langsel('uk')>Inglés</a> <a href=javascript:langsel('fr')>Francés</a> <a href=javascript:langsel('de')>Alemán</a> <a href=javascript:langsel('po')>Portugués</a> <a href=javascript:langsel('es')>Español</a> </font></font>"
  refresh_opentxt = "<a onMouseOver=callpopup(2)>Gracias por visitarnos. Puede usted saber la bendición del señor sobre usted. Llamada otra vez pronto. </a>"
  just_opentxt = "Utilice por favor el navegador para moverse alrededor de nuestro sitio. "
  mssg="En el nombre de Jesús le damos la bienvenida al Home Page de la " + pecname + "."
  mssgfav = "Agregue a los favoritos"
  welcome_txt="Es Recepción al Home Page de <a href=mailto:elders@putneyevangelicalchurch.org.uk alt='Mail to the elders'>la " + pecname + "</a>"
  desc_txt = "independiente, baptistic y reformado"
  marquee_txt=" Poned la mira en las cosas de arriba, no en las de la tierra - col 3:2 "
  marquee_txt= " Por nada estéis afanosos; sino sean notorias vuestras peticiones delante de Dios en toda oración y ruego, con hacimiento de gracias. Phil 4:6 "
  music_txt="Nuestra música: "
  spigot_txt_ie ="Somos agradecidos a <a href='http://www.spigots.com' target='Mainframe'>David Griffiths</a> para el uso de los botones, y al <script>freeparking(0)</script> para el recibimiento del domain name."
  spigot_txt_ff ="Somos agradecidos a <script>freeparking(0)</script> para el recibimiento del domain name."
  spigot_txt_ie = spigot_txt_ff
  who_txt = "<i><B><br><p>La " + pecname + " es un grupo de los believers que intentan adorar y servir a dios en su fuerza<ul><li>para satisfacer las ordenanzas de la fe cristiana,<li>para crecer en tolerancia y en el conocimiento del dios,<li>para servir uno otro, y <li>para proclamar el gospel.</ul><p>¿Usted desea ver <a href='fiecbass.htm' alt='Basis of faith'>nuestra base de la fe</a> o <a href='pecconst.htm' alt='Constitution'>de nuestra constitución?</a><hr><font size=-1>Para entrar en contacto con E-mail de " + pecname + " por favor nosotros en <A HREF='mailto:elders@putneyevangelicalchurch.org.uk' alt='Mail to the elders'>elders@putneyevangelicalchurch.org.uk</A></font>"
  thought_txt = "Pensaron para el mes"
}

function langsel(ln)
{
  //  alert(ln)
  lang = ln + "_"
  if (lang == "uk_") lang = "";
  parent.location.href= "../" + lang + "index.htm"
// The following code is required as it runs before the language has been changed
  signal = "Please let us know where we have abused your language."
  if (ln=="de")
  {
    signal = "Bitte, korrigieren Sie unser Deutsch."
  }
  if (ln=="fr")
  {
    signal = "Svp, ne nous reportez pas à l'Acadamie, mais nous écrivez avec notre péché"
  }
  if (ln=="po")
  {
    signal = "Deixe-nos por favor saber onde nós abusamos sua língua"
  }
  if (ln=="es")
  {
    signal = "Por favor sepamos dónde hemos abusado de su lengua"
  }
  if ( !NavIsIE )
  {
    signal = "Language support is not yet enabled in none MS browsers, sorry"
  }
  alert(signal)
}

function langsel2(ln)
{
//  lang = ln + "_"
//  if (lang == "uk_") lang = "";
}

function favourites()
{
  if (document.all)
  {
    document.write("<br><font size=-2 face='Arial, Helvetica, sans-serif' color=0000A0><a href='javascript:addfavourites()' onMouseOver='javascript:favstatus(); return true'>" + mssgfav + "</a></font>")
  }
  else
  {
    document.write("<br><font size=-2 face='Arial, Helvetica, sans-serif' color=0000A0>Press <B>Ctrl-D</B> to add this page to your bookmarks.</font>")
  }
}

function favstatus()
{
  window.status = mssgfav
}

function addfavourites()
{
  if (document.all)
  {
    window.external.AddFavorite(url,title);
  }
}

function s_multiframe(s_f,multi_txt)
{
  if (s_f)
  {
    document.write(multi_txt)
  }
}

function s_frame2(s_f)
{
  if (s_f)
  {
    document.write(lang_txt)
  }
  else
  {
    document.write(close_langtxt)
  }
}

function s_frame(s_f)
{
    if (s_f)
    {
       document.write(just_opentxt)
    }
    else
    {
       document.write(refresh_opentxt)
    }
}

function scroll()
{
  if (timerId != null) // is the timer already running?
  clearTimeout(timerId);
  scroll2()
}

function scroll2()
{
  newMsg = pad() + mssg + " ";
  window.status = newMsg.substring(counter,newMsg.length);
  if (counter == newMsg.length)
  {
    counter = 0;
  }
  counter ++;
  timerId = setTimeout("scroll()",150); // 0.1 seconds
  return true;
}

function pad()
{
  var padding = "";
  for (var n=0; n<=(89); n++)
    padding += " ";
    return(padding);
}

function ShowMonth()
{
  ShowDate(0)
  document.write(month+" "+year)
}

function ShowDate(PrintDate)
{
// Used by LoadDates(allahead)
// PrintDate is either 0 (do not print) or 1 (print)
  today = new Date(); day = days[today.getDay() + 1]
  month = months[today.getMonth() + 1]
  monthn = today.getMonth()+1
  date = today.getDate()
  year=today.getYear()
  nextyear = Date();
  if (year < 2000)
  {
    year = year + 1900;
  }
  if (PrintDate)
  {
    document.write ("<font size=-2 face='Arial, Helvetica, sans-serif' color=0000A0> "+ day + " " + date + "&nbsp;" + month + ",&nbsp;" + year + "</font><br>")
  }
}

function LoadDates(allahead)
{
// allahead is either 0 (next 30 days) or 1 (as much as is available)
  SetupDayText(allahead)
  SetupCalendarArray()
  if (allahead)
  {
    document.write("<BODY BACKGROUND=../images/paper1.gif BGCOLOR=#FFFFFF bgproperties=fixed>")
  }

  document.write ("<p align=left><font face='MS Sans Serif, Arial, Helvetica, sans-serif' size=1><strong><br>" + prog$)
  document.write ("<hr></p><table border = 0 align=left width = 100%>")
  i = 1;
  j = 0;
  textNN = 0
  month$ = "";
  monthc$ = "";
  monthl$ = "";
  notdone$ = 1;
  while ( i < items + 1)
  {
    textNN = 0;
    monthl$ = monthc$;
    month$ = months[tmon$[i]]
    if ( text$[i] != "")
    {
	  textNN = 1;
	  monthc$ = month$;
    }
    if ( monthc$ == monthl$ && j > 0 )
    {
	  month$ = "";
    }
    if ((date - 1 < tdat$[i] && monthn == tmon$[i]) || (date + 1 > tdat$[i] && monthn + 1 == tmon$[i]))
    {
	  if (textNN)
	  {
	    document.write ("<tr><td align=left valign=top width=10%>" + font$ + month$ + "</td><td width=10% align=left valign=top>" + font$ + tdat$[i] +"</td><td width=80% align=left valign=top>" + font$ + text$[i] + "</td></tr>")
	    j = j + 1
	  }
	  notdone$ = 0;
    }
    if (allahead && notdone$ && monthn < tmon$[i])
    {
	  if (textNN)
	  {
	    document.write ("<tr><td align=left width=10% valign=top>" + font$ + month$ + "</td><td width=10% align=left valign=top>" + font$ + tdat$[i] +"</td><td width=80% align=left valign=top>" + font$ + text$[i] + "</td></tr>")
      }
    }
    i = i + 1
    notdone$ = 1
  }
  if (allahead)
  {
    document.write("<tr><td>" + font$ +"<a href=dates.htm>" + goBack + "</a></td></tr>")
  }
  document.write ("</table>")
}

function SetupDayText(prog)
{
// Called by LoadDates(allahead)
  prog$ = nextMonth$
  if (prog)
  {
    prog$ = nextYear$
  }
}

function old_items()
{

}

function SetupCalendarArray()
{
// Called by LoadDates(allahead)
  items = 500
  text$ = new Array(items)
  tdat$ = new Array(items)
  tmon$ = new Array(items)
  html$url = "";
  preacher$ = "";
  church$ = "";
  spec$ = "";
// for meeting point on second Tuesday
  tuesday_found = 0;
  new_month = 1;
  i = 0
  j = 5 ;// Sunday offset from zero
  k = 1 ;// January
  l = 1 ;// Day of month
  m = 1 ;// Is the first Thursday odd?
  n = 0 ;// For leap years set n == 1
  // this is not corrected for leap years
  // this is now (16 Feb 2004) corrected for leap years but will not for normal years
  while (i < 370 )
  {
    i = i + 1
    if ( (k == 2) && (l == 29 + n ))
    {
      l = 1;
      k = k + 1;
      tuesday_found = 0;
      new_month = 1;
    }
    if ( (k == 4 || k == 6 || k == 9 || k == 11 ) && (l == 31))
    {
      l = 1;
      k = k + 1;
      tuesday_found = 0;
      new_month = 1;
    }
    if ( (k == 1 || k == 3 || k == 5 || k == 7 || k == 8 || k == 10 || k == 12) && (l == 32))
    {
      l = 1;
      k = k + 1;
      tuesday_found = 0;
      new_month = 1;
    }
    if ( k > 12)
    {
      k = 1
    }
    tmon$[i] = k;
    tdat$[i] = l;
    l = l + 1;
    text$[i] = ""
    if (Math.round((i + j) / 7) * 7 == i + j)
    {
      text$[i] = sunday$;
    }
    if (Math.round((i + j + 5) / 7) * 7 == i + j + 5)
    {
      if (new_month && tuesday_found)
      {
	    text$[i] = tuesday$;
	    new_month = 0;
      }
      tuesday_found = 1;
    }
    if (Math.round((i + j + 4) / 7) * 7 == i + j + 4)
    {
      text$[i] = wednesday$;
    }
    if ((Math.round((i + j + 3) / 7) * 7 == i + j + 3) && (Math.round((i + m)/2) * 2 == i + m))
    {
      text$[i] = thursday$;
    }
    if ((Math.round((i + j + 2) / 7) * 7 == i + j + 2) && (Math.round((i + m)/2) * 2 == i + m))
    {
      text$[i] = friday$;
    }
  }
// Special dates
  text$[14] = "New year party 7:00pm"
  text$[274] = "Harvest Supper 6:00pm"
// February 1 = 32
// March 1 = 60
// April 1 = 91
  text$[100] = text$[100] + "Baptismal Service 11:00am"
// May 1 = 121
// June 1 = 152
// July 1 = 182
// August 1 = 213
// September 1 = 244
// October 1 = 274
// November 1 = 305
// December 1 = 335
// January 1 = 366
}

function PECShowPopup(showme,lang)
{
  if(showme)
  {
    var bName=navigator.appName;
    var bVer=parseInt(navigator.appVersion);
    var now = new Date();
    var popupURL = "htm/popup.htm";
    var popupName = "PECPopup"+lang;

    if (bName=="Netscape" && bVer<=3)
    {
      var popup = window.open("", popupName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=614,height=150');
    }
    else
    {
      var popup = window.open("", popupName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=604,height=140');
    }
  popup.location = popupURL;
  }
}

function PECInConvPopup(showme)
{if(showme)
  {
    var bName=navigator.appName;
    var bVer=parseInt(navigator.appVersion);
    var now = new Date();
    var popupURL = "PECinconv.htm";
    var popupName = "PECinconv";

    if (bName=="Netscape" && bVer<=3)
    {
      var popup = window.open("", popupName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=411,height=440");
    }
    else
    {
      var popup = window.open("",popupName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=401,height=430");
    }
    popup.location = popupURL;
  }
}


function nothing()
{;}

function callpopup(showme)
{
  if (showme)
  {
  setuppopup(showme)
  var winheight=430;
  if (browsertype=="MSIE3"||browsertype=="NN3") var xMax = 640, yMax=480;
  else
  {
    if (document.all) var xMax = screen.width, yMax = screen.height
    else if (document.layers) var xMax = window.outerWidth, yMax = window.outerHeight
    else var xMax = 640, yMax=480;
  }
  var xOffset = (xMax-300)*0.1, yOffset = (yMax-winheight)/2+110;
  glossWindow=window.open("" ,"glossarybox","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=401,height="+winheight+",screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset);
  glossWindow.document.open();
  glossWindow.document.write(mt_hdr);
  glossWindow.document.write('<BODY onBlur=\"self.close()\">');
  glossWindow.document.write("<form method=\"POST\">");
  glossWindow.document.write("<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100%\">");
  glossWindow.document.write("<font face=\"MS Sans Serif, Arial, Helvetica, sans-serif\" size=\"2\"><strong>");
  glossWindow.document.write(messageheader);
  glossWindow.document.write("</font><font face=\"MS Sans Serif, Arial, Helvetica, sans-serif\" size=\"1\">");
  glossWindow.document.write(messagetext1+"<br>&nbsp;<br>"+messagetext2+"<br>&nbsp;<br>"+messagetext3+"<br>&nbsp;<br>"+messagetext4+"<br>&nbsp;<br>"+messagetext5+"<br>&nbsp;<br>"+messagetext6+"<br>&nbsp;<br>"+messagetext7+"<br>&nbsp;<br>"+messagetext8+"<br></font>");

  glossWindow.document.write("</td></tr><tr><td width=\"100%\"  align=\"right\">");
  glossWindow.document.write("<input type=\"button\" value=\"Close\" name=\"Close\" onClick=\"window.close();\">&nbsp;&nbsp;&nbsp;&nbsp;</p>");
  glossWindow.document.write("</td></tr></table></form>");
  glossWindow.document.write("<\/BODY>");
  glossWindow.document.write("<\/HTML>");
  glossWindow.document.bgColor="FFFFC4";
  glossWindow.document.close();
  }
}

function setuppopup(txtitem)
{
 mt_hdr = "<HTML><HEAD><TITLE>" + pecname + ": In conversation with....<\/TITLE><\/HEAD>"
 mt0 = "Geoff Coyne - our new minister"
 mt1 = "Geoff Coyne has, for some years, been ministering to a number of churches in and around London and the South East."
 mt2 = "During that time I felt a call to the full time ministry of the Word."
 mt3 = "Geoff began to seriously explore his calling about the same time that we began to seek a new pastor."
 mt4 = "It was not an easy exploration and in discussions with Putney a number of issues had to be faced and resolved."
 mt5 = "Whilst we recognised Geoff's very valuable ministry - indeed as an elder of Merton Evangelical Church he was providing a substantial amount of cover for us whilst we had no full time elder (pastor) - and his calling to the ministry of the Word, we were not convinced of his calling to a single church. We believed Geoff had a ministry to the wider church and we rejoiced in that ministry."
 mt6 = "The time we spent in negotiation with Putney caused me to really work through what I believed my calling to be and to face issues which may have otherwise been overlooked."
 mt7 = "We, too, needed to think through a number of issues. Discussions with other men helped to clarify these issues and we were led by the Lord, as a fellowship, to come back to Geoff."
 mt8 = "My wife, Eileen, and I look forward to joining the fellowship at Putney. We look forward to working with the church to make Jesus Christ known and to build up a strong congregation of the Lord's people."
 mtfont = "<font color=\"600000\">&quot;"
 mtfontend = "&quot;</font>"
 if (txtitem == 2)
 {
// mtrefurl = "http://bible.gospelcom.net/bible?language=English&version=NKJV&passage="
 mtrefurl = "http://bible.gospelcom.net/passage/?search="
 mtrefver = ";&version=50;"
   if (lang == "fr_") mtrefver = ";&version=2;";
   if (lang == "de_") mtrefver = ";&version=10;";
   if (lang == "po_") mtrefver = ";&version=36;" ;
   if (lang == "es_") mtrefver = ";&version=42;" ;
 mt_hdr = "<HTML><HEAD><TITLE>" + pecname + ": <\/TITLE><\/HEAD>"
 mt0 = ""
 mt1 = "Before you leave us: "
  if (lang == "fr_") mt1 = "Avant vous laissez-nous: ";
  if (lang == "de_") mt1 = "Vor Ihnen lassen Sie uns: ";
  if (lang == "po_") mt1 = "Antes de você deixe-nos: " ;
  if (lang == "es_") mt1 = "Antes de usted déjenos: " ;
 mt2 = "Finally, my brethren rejoice in the Lord. For me it is not tedious to write the same things to you, but for you it is safe."
  if (lang == "fr_") mt2 = "En conclusion, mon rejoice de frères dans le seigneur. Que j'il n'est pas pénible vous écrive les mêmes choses, mais pour vous il est sûr. ";
  if (lang == "de_") mt2 = "Schließlich mein Bruder freut euch im Herrn. Für mich ist es nicht langwierig, die gleichen Sachen zu schreiben Ihnen, aber für Sie ist es sicher. ";
  if (lang == "po_") mt2 = "Finalmente, meu rejoice dos irmãos no senhor. Para mim não é tedious escrever-lhe as mesmas coisas, mas para você é seguro. " ;
  if (lang == "es_") mt2 = "Finalmente, mi rejoice de los brethren en el señor. Que no es aburrido le escriba las mismas cosas, sino que para usted es seguro. " ;
 mt3 = "<A href='" + mtrefurl + "Phil+3:1" + mtrefver + "' target=NewWindow>Philippians 3:1</A></P>"
 mt4 = "Yes, we think it is right, so long as we are here, to stir you up, by reminding you. "
  if (lang == "fr_") mt4 = "Oui, il le pense a raison, à condition que nous soyons ici, nous remuer vous, en vous rappelant. ";
  if (lang == "de_") mt4 = "Ja denken wir es haben Recht, solange wir hier sind, Sie oben zu rühren, indem wir Sie erinnern. ";
  if (lang == "po_") mt4 = "Sim, nós pensamos d somos direita, assim que enquanto nós estamos aqui, agitá-lo por muito tempo acima, lembrando o. " ;
  if (lang == "es_") mt4 = "Sí, lo pensamos tenemos razón, siempre y cuando estamos aquí, de revolverle para arriba, recordándole. " ;
 mt5 = "<A href='" + mtrefurl + "1Pet+1:12" + mtrefver + "' target=NewWindow>2 Peter 1:12</A></P>"
 mt6 = "Look to Jesus, the author and finisher of our faith, who for the joy that was set before him endured the cross, despising the shame, and has sat down at the right hand of the throne of God."
  if (lang == "fr_") mt6 = "Regardez à Jésus, à l'auteur et au module de finition de notre foi, qui pour la joie qui a été placée avant qu'il ait supporté la croix, dédaignant la honte, et se soit assis à la main droite du trône de Dieu. ";
  if (lang == "de_") mt6 = "Schauen Sie zu Jesus, zum Autor und zum EBB unseres Glaubens, der für die Freude, die eingestellt wurde, bevor er das Kreuz aushielt und die Schande verachtete, und an der rechten Hand des Throne des Gottes hingesessen hat. ";
  if (lang == "po_") mt6 = "Olhe a Jesus, ao autor e à estação de acabamento de nossa fé, que para a alegria que foi ajustada antes que resistiu a cruz, despising o shame, e se sentasse para baixo na mão direita do throne do deus. " ;
  if (lang == "es_") mt6 = "Mire a Jesús, al autor y a la acabadora de nuestra fe, que para la alegría que fue fijada antes de que él aguantara la cruz, desdeñando la vergüenza, y se haya sentado abajo en la mano derecha del trono del dios. " ;
 mt7 = "<A href='" + mtrefurl + "Heb+12:2" + mtrefver + "' target=NewWindow>Hebrews 12:2</A></P>"
 mt8 = "The Lord be with you. "
  if (lang == "fr_") mt8 = "Le seigneur soit avec vous.";
  if (lang == "de_") mt8 = "Der Herr sei mit Ihnen. ";
  if (lang == "po_") mt8 = "O senhor seja com você." ;
  if (lang == "es_") mt8 = "El señor esté con usted. " ;
 mtfont = "<font color=\"600000\">"
 mtfontend = "</font>"
 }

 hscriptload=false;
 imageroll=false;
 browsertype="undetected";
   messageheader= mt0 + "</strong><br>"
   messagetext1= mt1 + "";
   messagetext2= mtfont + mt2 + mtfontend;
   messagetext3= mt3+"";
   messagetext4= mtfont + mt4 + mtfontend;
   messagetext5= mt5+"";
   messagetext6= mtfont + mt6 + mtfontend;
   messagetext7= mt7+"";
   messagetext8= mtfont + mt8 + mtfontend;

if (document.images) imageroll=true;
if ((navigator.appName.indexOf('Netscape')>=0)&&(navigator.appVersion >= '3')) browsertype="NN3";
if ((navigator.appName.indexOf('Netscape')>=0)&&(navigator.appVersion >= '4')) browsertype="NN4";
if ((navigator.appName.indexOf('Microsoft')>=0)&&(navigator.appVersion >='3')) browsertype="MSIE4";
if ((navigator.appName.indexOf('Microsoft')>=0)&&(navigator.appVersion < '3')) browsertype="MSIE3"
}

function PrintDateHere()
{
    // -- made by A1javascripts.com, please keep these credits when using this script
    // -- I have split this into two:
    //     - to setup the arrays (and use them elsewhere)
    //     - to show the date (or just calculate its parts for use elsewhere)
    days = new Array(7)
    days[1] = "Sunday";
    days[2] = "Monday";
    days[3] = "Tuesday";
    days[4] = "Wednesday";
    days[5] = "Thursday";
    days[6] = "Friday";
    days[7] = "Saturday";
    months = new Array(12)
    months[1] = "January";
    months[2] = "February";
    months[3] = "March";
    months[4] = "April";
    months[5] = "May";
    months[6] = "June";
    months[7] = "July";
    months[8] = "August";
    months[9] = "September";
    months[10] = "October";
    months[11] = "November";
    months[12] = "December";
    today = new Date();
    day = days[today.getDay() + 1]
    month = months[today.getMonth() + 1]
    date = today.getDate()
    year=today.getYear();
    if (year < 2000)
      {
      year = year + 1900;
      }
    document.write ("<font size=-2 face='Arial, Helvetica, sans-serif' color=0000A0> "+ day + ", " + month + " " + date + ", " + year + "</font>")
    // -- end hiding
}


function OtherShowPopUp()
{
   var bName=navigator.appName;
   var bVer=parseInt(navigator.appVersion);
   var now = new Date();
   var popupURL = "fiecbass.htm";
   var popupName = "OtherPopup";

   if (bName=="Netscape" && bVer<=3)
   {
      var popup = window.open("",popupName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=614,height=150");
   }
   else
   {
      var popup = window.open("",popupName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=604,height=140");
   }
   popup.location = popupURL;
}

 function showPic(picid,pic,vb)
 {
   with (picid)
   {
   newpic=pic
   if (vb) style.visibility="hidden";
   src=newpic
   filters.item(0).apply()
   style.visibility="visible"
   filters.item(0).play()
   }
 }

function freeparking (i)
{
i$ = ""
if (i == 2)
{
i$ = i$ + "<hr><table width=155 align=left border=0 cellpadding=0 cellspacing=0>"
i$ = i$ + "<tr>"
i$ = i$ + "  <td width=155 align=left>"
i$ = i$ + "   <font face=arial size=0 color=#0000FF>"
i$ = i$ + "    Is your domain name available?"
i$ = i$ + "     <form action='http://www.freeparking.co.uk/affiliates/checkdomain.asp' method='post' target='newwhoiswin'>"
i$ = i$ + "      <input type='text' name='domainname' size=9>"
i$ = i$ + "      <select name='tld'>"
i$ = i$ + "       <option value=1>.com"
i$ = i$ + "       <option value=2>.org"
i$ = i$ + "       <option value=3>.net"
i$ = i$ + "       <option value=4>.co.uk"
i$ = i$ + "       <option value=5>.org.uk"
i$ = i$ + "       <option value=6>.uk.com"
i$ = i$ + "       <option value=7>.uk.net"
i$ = i$ + "       <option value=8>.gb.com"
i$ = i$ + "       <option value=9>.gb.net"
i$ = i$ + "      </select>"
i$ = i$ + "      <input type='hidden' name='referrer' value='40403'>"
i$ = i$ + "      <input type='image' src='http://www.freeparking.co.uk/affiliates/images/fpaff.gif' width=95%>"
i$ = i$ + "     </form>"
i$ = i$ + "    </td>"
i$ = i$ + "   </tr>"
i$ = i$ + "  </table> "
}
if (i == 1)
{
i$ = i$ + "<table width=155 align=center border=0 cellpadding=0 cellspacing=0>"
i$ = i$ + " <tr>"
i$ = i$ + "  <td width=155 align=left>"
i$ = i$ + "   <font face=arial size=0>"
i$ = i$ + "    <form action='http://www.freeparking.co.uk/default.asp' method='post'>"
i$ = i$ + "     <input type='hidden' name='referrer' value='40403'>"
i$ = i$ + "     <input type='image' src='http://www.freeparking.co.uk/affiliates/images/fpaff.gif' width=95%>"
i$ = i$ + "    </form>"
i$ = i$ + "   </td>"
i$ = i$ + "  </tr>"
i$ = i$ + " </table><hr>"
}
else
{
//  i$ = i$ + "<div style=position:absolute><span style='height:10px;position:absolute;bottom:0px;clip:rect(10%,100%,17px,0px)'><form action='http://www.freeparking.co.uk/default.asp' method='post' target=NewWindow>"
  i$ = i$ + "<form action='http://www.freeparking.co.uk/default.asp' method='post' target=NewWindow>"
  i$ = i$ + "<input type='hidden' name='referrer' value='40403'>"
  i$ = i$ + "Freeparking<input type='image' src='images/bullet1.gif' height=8px>"
  i$ = i$ + "</form>"
}
document.write(i$)
}

function empty()
{
alert("done")
// function null()
{
//-- <script src=script.js></script> On every sheet
}
}

function applet_code()
{
  if (NavIsIE)
  {
//    if (isObject(document.all.altmenu))
//    {
      altmenu.innerHTML="<hr>";
//    }
      c_ap_tr = '<tr style=cursor:hand onClick=parent.document.all.Mainframe.src="'
      c_ap_img0 = '"><td width=12><img src=../images/ball1.gif border=0 height=11 '
      c_ap_img1 = 'onMouseOver=src="../images/redball.gif"; onMouseOut=src="../images/ball1.gif";>'
      c_ap_img2 = '</td><td align=right style="border:groove 2px;background-color:#B0B0B0" '
      c_ap_img3 = 'onMouseOver=style.background="#A0A0A0" onMouseOut=style.background="#B0B0B0">'
      c_ap_img = c_ap_img0 + c_ap_img1 + c_ap_img2 + c_ap_img3

      c_ap_tre = '</td></tr>'
      c_ap_style = 'style="font-face:Arial;font-size:9pt;background-color:#C0C0C0;border: groove 2px"'
      c_ap = '<table width=100% align=top ' + c_ap_style + '>'
      c_ap = c_ap + c_ap_tr + t_1 + c_ap_img + c_1 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_2 + c_ap_img + c_2 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_3 + c_ap_img + c_3 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_4 + c_ap_img + c_4 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_5 + c_ap_img + c_5 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_6 + c_ap_img + c_6 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_7 + c_ap_img + c_7 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_8 + c_ap_img + c_8 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_9 + c_ap_img + c_9 + c_ap_tre
      c_ap = c_ap + c_ap_tr + t_10 + c_ap_img + c_10 + c_ap_tre
      c_ap = c_ap + '</table>'
      document.write(c_ap)
  }
}

function write_frame()
{
  pec_frames = "";
  pec_frames = pec_frames + "<bgsound id=pecmus src=" + pecmusic + " loop=0 volume=-3000>"
  pec_frames = pec_frames + "<frameset rows=20%,80% frameborder=0 framespacing=0 border=0><frame name=Topframe src=htm/topframe.htm marginwidth=20 marginheight=0 frameborder=0 noresize><frameset cols=20%,80% frameborder=0 framespacing=0 border=0><frame name=Sidebar src=htm/sidebar.htm marginwidth=20 marginheight=0 frameborder=0 noresize><frame name=Mainframe src=htm/index1.htm marginwidth=20 marginheight=0 frameborder=0 noresize></frameset><noframes><a href=htm/index1.htm>seftonhall.org.uk</a></noframes></frameset>"
  document.write(pec_frames);
}
