﻿var skina = "<img alt='' height='125' src='images/";var skinb = "' onclick='pop(\"images/";var skinc = "\", ";var skind = ")' border='0' />";var images = new Array();var pages = new Array();var wide = new Array();var width = 0;function shw(file, page, size) {    images.push(file);    pages.push(page);    if (size == "w") { width = 800 } else { width = 533; };    wide.push(width)} 
var loc = window.location.href; var pagenum = 0;if (loc.indexOf("index.htm") != -1) pagenum = 0;if (loc.indexOf("tariff.htm") != -1) pagenum = 1; if (loc.indexOf("rooms.htm") != -1) pagenum = 2; if (loc.indexOf("breakfast.htm") != -1) pagenum = 3; if (loc.indexOf("meals.htm") != -1) pagenum = 4; if (loc.indexOf("findus.htm") != -1) pagenum = 5; if (loc.indexOf("bookings.htm") != -1) pagenum = 6; if (loc.indexOf("enquiry.htm") != -1) pagenum = 7; if (loc.indexOf("wycliffe.htm") != -1) pagenum = 8; if (loc.indexOf("links.htm") != -1) pagenum = 9;
////////////////////////////////////////////////////////////////////////////
//Barrie: To add a photo to a page add a line to the list below.
////////////////////////////////////////////////////////////////////////////
shw("harbour.jpg", 0, "w");
shw("Porthmeor & highland cattle 017.jpg", 0, "w");
shw("stives may 20th may 07 035.jpg", 0, "w");
shw("porthmeor sept 06 016.jpg", 0, "w");
shw("IMG_3776.JPG", 1, "w");
shw("Porthmeor & highland cattle 032.jpg", 1, "t");
shw("The Mount & porthmeor (july 07) 034.jpg", 1, "w");
shw("porthmeor sept 06 067.jpg", 1, "w");
shw("IMG_3760.JPG", 3, "w");
shw("porthmeor (april 07) 004.jpg", 3, "t");
shw("porthmeor sept 06 068.jpg", 3, "w");
shw("rainbow_sennon cove_cot valley jan 07 003.jpg", 3, "t");
shw("sunrise.jpg", 4, "t");
shw("porthmeor 5th Aug 06 008.jpg", 4, "w");
shw("porthmeor beach  aug 06 021.jpg", 4, "t");
shw("st.ives dec 06 029.jpg", 4, "w");
shw("sunset.jpg", 5, "w");
shw("porthmeor 5th Aug 06 019.jpg", 5, "w");
shw("porthmeor beach  aug 06 029.jpg", 5, "w");
shw("st.ives from rm5.jpg", 5, "w");
shw("IMG_4833.JPG", 6, "t");
shw("stives may 20th may 07 007.jpg", 6, "w");
shw("porthmeor beach  aug 06 080.jpg", 6, "t");
shw("st.ives(harbour) nov 06 062.jpg", 6, "w");
shw("IMG_4890.JPG", 7, "w");
shw("stives may 20th may 07 012.jpg", 7, "w");
shw("porthmeor beach  aug 06 142.jpg", 7, "w");
shw("st.ives(harbour) nov 06 080.jpg", 7, "t");
shw("IMG_4980.JPG", 8, "w");
shw("stives may 20th may 07 033.jpg", 8, "w");
shw("porthmeor nov 06 021.jpg", 8, "w");
shw("st.ives(harbour) nov 06 098.jpg", 8, "t");
shw("IMG_6652.JPG", 9, "w");
shw("stives may 20th may 07 035.jpg", 9, "w");
shw("porthmeor sept 06 010.jpg", 9, "w");
shw("st.ives(harbour) nov 06 099.jpg", 9, "w");
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
document.write("<marquee behavior=slide scrollamount='4' onmouseover='this.stop()' onmouseout='this.start()'>");for (i = 0; i < images.length; i++) {    if (pages[i] == pagenum)    {            document.write(skina + images[i] + skinb + images[i] + skinc + wide[i] + skind);        }}document.write("</marquee>");