			var imglist = new Array (
"../images/v1.gif",
"../images/parson.gif",
"../images/p1.jpg",
"../images/p8.jpg",
"../images/p2.jpg",
"../images/p3.jpg",
"../images/p4.jpg",
"../images/p5.jpg",
"../images/p9.jpg",
"../images/p14.jpg",
"../images/p6.jpg",
"../images/p7.jpg",
"../images/p10.jpg",
"../images/p11.jpg",
"../images/p12.jpg",
"../images/p13.jpg",
"../images/p1_l.jpg",
"../images/p8_l.jpg",
"../images/p2_l.jpg",
"../images/p3_l.jpg",
"../images/p4_l.jpg",
"../images/p5_l.jpg"
);

var imgs = new Array();

var count
if (document.images)

 for (count=0; count<imglist.length; count++)
   {imgs[count]=new Image(); imgs[count].src=imglist[count];}


		
		
		
		

function breadcrumbs(){
    sURL = new String;
    bits = new Object;
    var x = 0;
    var stop = 0;
    var output = "<A HREF=\"/\">home</A> | ";

    sURL = location.href;
    sURL = sURL.slice(8,sURL.length);
    chunkStart = sURL.indexOf("/");
    sURL = sURL.slice(chunkStart+1,sURL.length)

    while(!stop){
      chunkStart = sURL.indexOf("/");
      if (chunkStart != -1){
        bits[x] = sURL.slice(0,chunkStart)
        sURL = sURL.slice(chunkStart+1,sURL.length);
      }else{
        stop = 1;
      }
      x++;
    }

    for(var i in bits){
      output += "<A HREF=\"";
      for(y=1;y<x-i;y++){
        output += "../";
      }
      output += bits[i] + "/\">" + bits[i] + "</A> | ";
    }
    document.write(output + document.title);
  }





      
	var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url; 
    newwindow.focus(); } 
else { 
    newwindow=window.open(url,'htmlname','width=600,height=500,resizable=1');} 
}


function tidy() {
if (newwindow.location && !newwindow.closed) { 
   newwindow.close(); } 
}






function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageTable = new Array();

function ChangeImage(fFwd)
{
if (fFwd)
{
if (++g_iimg==g_imax)
g_iimg=0;
}
else
{
if (g_iimg==0)
g_iimg=g_imax;
g_iimg--;
}
Update();
}

function getobject(obj){
if (document.getElementById)
return document.getElementById(obj)
else if (document.all)
return document.all[obj]
}

function Update(){
getobject("Ath_Slide").src = g_ImageTable[g_iimg][0];
getobject("Ath_FileName").innerHTML = g_ImageTable[g_iimg][1];
getobject("Ath_Img_X").innerHTML = g_iimg + 1;
getobject("Ath_Img_N").innerHTML = g_imax;
}


function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = true;
Next();
}
else 
{
getobject("btnPrev").disabled = getobject("btnNext").disabled = false;

}
}
function OnImgLoad()
{
if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1000);
}
function Tick() 
{
if (g_fPlayMode)
Next();
}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}

g_ImageTable[g_imax++] = new Array ("../images/p9.jpg", "Contemplating the next sermon");
g_ImageTable[g_imax++] = new Array ("../images/p14.jpg", "Rev Nicholas Martin with Children's Choir");
g_ImageTable[g_imax++] = new Array ("../images/p6.jpg", "David King and 'Dougal'");
g_ImageTable[g_imax++] = new Array ("../images/p7.jpg", "To bed - On a full stomach!");
g_ImageTable[g_imax++] = new Array ("../images/p10.jpg", "Philip Sulley as the Rev George Herbert");
g_ImageTable[g_imax++] = new Array ("../images/p11.jpg", "Costume check for Philip Sulley");
g_ImageTable[g_imax++] = new Array ("../images/p12.jpg", "Make-up call for Philip Sulley");
g_ImageTable[g_imax++] = new Array ("../images/p13.jpg", "The Heavenly Twins - Gladys and Dorrie");

g_dwTimeOutSec=4

if (document.getElementById||document.all)
window.onload=Play




