/* 	Bournville Community Website
	created by David Smith 
	Copyright 2003
	www.bournville-web.net
	email: david@bournville-web.net
	
	If you make use of this script please 
	leave in this header note, provide a 
	link to and acknowledge 
	www.Bournville-Web.net
	
	file created 16-April-03
        'Views around Bournville Village' javascript
*/

<!--

for (var i=0;i<pic.length;i++){
  preload[i]=new Image();
  preload[i].src=pic[i];
  preload_[i]=new Image();
  preload_[i].src=pic_[i];
} 

function windowOpener(http_addr) {
      var NewWinposX=10;
      var NewWinposY=10;
      if(true){
        wdth=450; hght=400;
	httpWindow=window.open(http_addr,'httpWindow',config='height=hght,width=wdth,toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no, status=no');
      }
 
      httpWindow.focus();
}

// function next picture
function next_picture() { 
  var e=document.getElementsByTagName("tt");
  if(index==pic.length-1){
    index=0;
  }
  else {
    index ++;
  }
  document.images.picture.src=pic[index];
  e[1].firstChild.nodeValue=description[index];
  e[0].firstChild.nodeValue=titles[index];  
  return true;
}

// function previous picture
function previous_picture(){
  var e=document.getElementsByTagName("tt");
  if(index<=0){
    index=pic.length-1;
  }
  else {
    index --;
  }
  document.images.picture.src=pic[index];
  e[1].firstChild.nodeValue=description[index];
  e[0].firstChild.nodeValue=titles[index];
  return true;
}

// function to flip over to alternative view
function flip_over(){
  if(index==-1) return true;
  document.images.picture.src=pic_[index];   
  window.status='alternative picture view';
  return true;
}

// function to flip back to normal picture
function flip_back(){
  if(index==-1) return true;
  document.images.picture.src=pic[index];   
  window.status=' ';
  return true;
}

-->
