// Copyright At Hand Creations

var welcome=0;

bgHCol="#B8A0B4";

var qs=String(document.referrer);
var qr=qe="";
var qx="&";
var qq="q="; qTry("alltheweb"); qTry("altavista"); qTry("ask"); qTry("live"); qTry("msn"); qTry("google");
qq="p="; qTry("yahoo");
qq="query="; qTry("aol"); qTry("hotbot"); qTry("lycos"); qTry("netscape");
qq="/search/web/"; qx="/"; qTry("dogpile"); qTry("excite");
if(qe)
{
  qr=qr.toLowerCase();
  welcome=2;
  if(qr.indexOf("nitiative")>0||qr.indexOf("ying.i")>0) welcome=1;
}
var u=decodeURI(location.search);
if(u!=encodeURI(u)) u="";
if(u.indexOf("@")>0) wrCookie(".bb",u)
else u=rdCookie("bb");
var ce='';
var caddr='';
var cname;
var i=u.indexOf("/");
if(i>1)
{
  ce=u.substr(i+1);
  u=u.substr(1,i-1);
  i=ce.indexOf("@");
  if(i>=0)
  {
    var c=ce.substr(i+1);
    caddr=c?'http://'+c:'javascript:window.close()';
    cname=u.replace(/_/g,"&nbsp;");
    ce=ce.substr(0,i);
    document.title="praying.it";
    if(c)
    {
      welcome=3;
      document.title+=" with "+u.replace(/_/g," ");
    }
  }
}

function qTry(e)
{
  var i=qs.indexOf("."+e+".");
  if(i<1) return;
  i=qs.indexOf(qq);
  if(i<0) return;
  qe=e;
  qr=qs.substr(i+qq.length);
  i=qr.indexOf(qx);
  if(i>0) qr=qr.substr(0,i); 
}

menuAddr=new Array("index.html","guide.htm","part.htm","resource.htm","service.htm");
menuName=new Array("praying.what","prayer.guide","take.part","where.now","@ your service");
menuOver=new Array("*QPW","*QHW","*QTP","*QMI","*QLI");

function drMenu(m)
{
  var i=0;
  document.write('<tr><td align=center>');
  while(i<5)
  {
    var u=menuName[i];
    var t=menuAddr[i];
    if(i==m) u='<span class="opth">'+u+'</span>';
    document.write('<a href="go.htm?['+menuOver[i]+']'+t+'" class="opt">'+u+'</a>');
    i++;    
  }
  document.write('</td></tr>');
}

function WrEnd()
{
  document.write('<center><hr color=#CDCDDD>');
  if(caddr)
  {
    ClkMe("location='"+caddr+"'");
    document.write(" to return to "+cname+"<p>");
  }
  document.write('Copyright &copy; <b><A HREF="http:\/\/www.athand.org">At Hand Creations<\/A><\/b><\/center>');
}

document.write('<div id="QPW" class="bubsty">'
+'What is <i>.it<\/i> that\'s being prayed?'
+'<br>Click to find out...'
+'<\/div>'
+'<div id="QHW" class="bubsty">'
+'Features of the initiative and  their purpose'
+'<br>Click to investigate'
+'<\/div>'
+'<div id="QTP" class="bubsty">'
+'Click to join in the <i>praying.it<\/i> initiative and'
+'<br>choose your free email address @<i>praying.it<\/i>'
+'<\/div>'
+'<div id="QMI" class="bubsty">'
+'Your comments'
+'<br>Our contact details'
+'<br>Click here'
+'<\/div>'
+'<div id="QLI" class="bubsty">'
+"Click to access and use<br>the initiative's facilities"
+'<\/div>');

