var flist=new Array();
flist=[
      "views.htm",
      "view0.htm",
      "view1.htm",
      "view2.htm",
      "view3.htm",
      "view4.htm",
      "view5.htm",
      "view6.htm",
      "view7.htm"
      ];

var photo=new Array();
photo=[
      "Photos/cwm.jpg",
      "Photos/fort.jpg",
      "Photos/1.jpg",
      "Photos/2.jpg",
      "Photos/3.jpg",
      "Photos/4.jpg",
      "Photos/5.jpg",
      "Photos/s1.jpg",
      "Photos/s2.jpg"
      ];

var comment=new Array();
comment=[
        "<b>Lowertown, Fishguard </b>from the Marine Walk<br>&copy; 2001 M.J.Wilson",
        "<B>The Fort</B>, overlooking Lowertown and guarding Fishguard from pirates and assorted invaders<br>&copy; 2002 S.J.Wilson",
        "<B>Sunshine and sea mist</B><br>A typical view from the Pembrokeshire Coast Path<br>&copy; 1999 M.J.Wilson",
        "<B>Pwllgwaelod,</b> at the western foot of Dinas head<br>&copy; 1999 M.J.Wilson",
        "<B>The Parrog at Newport Pembrokshire</b> with Dinas head in the background</b> &copy; 1999 M.J.Wilson",
        "<B>Traeth Mawr, Newport Pembrokshire</b><br>The &quot;Great Beach&quot; is also known as Newport Sands<br>&copy; 1999 M.J.Wilson",
        "<b>Pentre Ifan,</b> neolithic burial(?) chamber near Newport</b><br>&copy; 1999 M.J.Wilson",
        "<b>Sunset from the Parrog, Newport, Pembrokeshire</b><br>&copy; 1999 M.J.Wilson",
        "<b>Another sunset</b> from the Parrog,<br>Newport Pembrokeshire<br>&copy; 1999 M.J.Wilson"
        ];


var NF=flist.length-1;

var nmess="Next";
var nicon="Pics/next.gif"

var pmess="Prev.";
var picon="Pics/prev.gif";

var first=flist[0];
var last=flist[NF];

function which(surl){

 p=0;
 while((p<NF)&&(surl.indexOf(flist[p])==-1)){
  p++;
 }
 return p;

}
