// JavaScript Document. © 2008 Corvidae Limited. All Rights Reserved.
// NTVT v31kb

// TOUR PARAMETERS - Dunham smaller

roomArray = ["inner", "saloon", "hall", "chapel", "parlour", "dining", "billiard", "stairs", "silk", "summer", "gallery", "anne", "tea", "rose", "stamford", "oak", "library", "study", "court", "kitchen", "butler", "larders", "laundry", "maid", "mangle", "wash"];
mapArray = ["map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-first", "map-first", "map-first", "map-first", "map-first", "map-first", "map-first", "map-first", "map-first", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground", "map-ground"];
roomNameArray = ["Inner Courtyard", "The Saloon", "The Great Hall", "The Chapel", "The Stone Parlour", "Dining Room", "Billiard Room", "The Grand Staircse", "Green Silk Room", "The Summer Parlour", "The Great Gallery", "The Queen Anne Room", "The Tea Room", "The Rose Room", "The Stamford Gallery", "The Oak Room", "The Library", "The Study", "Kitchen Courtyard", "Kitchen", "Butler's Pantry", "Chef's Room and Larders", "Dry Laundry", "Head Laundrymaid's Bedroom", "Mangle Room", "Wash House"];
roomNameArraySecond = ["Inner Courtyard WELSH", "The Saloon WELSH", "The Great Hall WELSH", "The Chapel WELSH", "The Stone Parlour WELSH", "Dining Room WELSH", "Billiard Room WELSH", "The Grand Staircse WELSH", "Green Silk Room WELSH", "The Summer Parlour WELSH", "The Great Gallery WELSH", "The Queen Anne Room WELSH", "The Tea Room WELSH", "The Rose Room WELSH", "The Stamford Gallery WELSH", "The Oak Room WELSH", "The Library WELSH", "The Study WELSH", "Kitchen Courtyard WELSH", "Kitchen WELSH", "Butler's Pantry WELSH", "Chef's Room and Larders WELSH", "Dry Laundry WELSH", "Head Laundrymaid's Bedroom WELSH", "Mangle Room WELSH", "Wash House	WELSH"];

// Ensure following line is commented out before delivery of tour!
//if (roomArray.length != mapArray.length) alert("Navigation array mismatch!");

buttonBg = "chroma(color=#1b3930)";
bBarCol = "chroma(color=#1b3930)";
buttonUp = "#410546";
buttonHi = "#19057D";
buttonHover = "#87003C";
buttonHelper = "#FF6A0B";
meterTime = "10";

// Minimum FOV, i.e. how far you can zoom in (usually 24, older tours 20)
zoomLimit = 24;
// Location of POI close up images (first option for older tours, second for newer ones)
//pcuFolder = "media\/";
pcuFolder = "images\/";

//Second language if applicable
secondLang = "-welsh";

// Slideshow strings
sM1 = "Slideshow of ";
sM2 = " images. Click the image or press 'P' to pause.";
sC1 = "Slideshow of ";
sC2 = " images paused. Click the image or press 'P' to play.";

// Slideshow strings - second language
sM1dl = "Sioe sleidiau o ";
sM2dl = " o ddelweddau. Cliciwch â’r ddelwedd i oedi.";
sC1dl = "Sioe sleidiau o ";
sC2dl = " o ddelweddau wedi oedi. Cliciwch â’r ddelwedd i’w chwarae.";

//Slideshow image duration
ssDur = 6000;

// The following paramaters should only change with different CSS layouts

// Panorama left position and height
panoLeft = "12px";
panoHeight = "450px";
panoWidth = "780px";
// Position and height for hidden panorama
panoOffLeft = "-950px";
panoOffHeight = "1px";
// Position for hidden BSL video
bslOffScreen = "295px";
// Number of POI thumbs visible at at time in the POI thumbnail area
poiThumbCount = 6;
// Width of the POI thumbnail area in pixels
poiThumbWidth = 780;
// Number of moves of 10 pixels for autogallery scroll (i.e. height of gallery thumbnail area/10 (80 for full-size tours, 66 for small);
agScrollValue = 66;

//iPhone scroll parameters
if(navigator.userAgent.indexOf("iPhone") != -1) {
	// Number of POI thumbs visible at at time in the POI thumbnail area
	poiThumbCount = 3;
	// Width of the POI thumbnail area in pixels
	poiThumbWidth = 390;
	// Number of moves of 10 pixels for autogallery scroll (i.e. height of gallery thumbnail area/10 (80 for full-size tours, 66 for small);
	agScrollValue = 40;
}

//End of tour parameters

// New help section strings
helpStringArray = ["Help", "This section will give you information about how to use the features available on each page as you move through the tour.", "To hear the on-screen text as audio, click the loudspeaker icon in the bottom right corner.", "Four buttons will appear that let you pause...", "skip back 5 seconds...", "change the volume...", "and stop altogether.", "To return to the start of the tour at any time, click on 'Home' in the top bar.", "You can look around this room or area by clicking the arrows on the circular controller, to the right of the image. To zoom in and out, click + and -. To change speed, click an arrow again. You can also look around by clicking in the image and dragging slowly with your mouse.", "To explore the highlights of this room or area, click 'Points of Interest' to see thumbnails of the things you can explore. To find out more about a highlight, click its thumbnail. To browse the highlights, click 'first', 'next' or 'previous'.", "The panorama will turn and zoom to show the location of each highlight. To stop this movement, click the square stop button in the centre of the panorama controller.", " If there's a magnifying glass icon in the corner of a point of interest picture, click it to enlarge the image or begin a slide show. Click it again to return to the panorama.", "When you're ready to move on, click 'next' to the right of the main image to continue the tour. To see a map, plan or menu that lets you choose what you'd like to see next. click 'Choose a room'.", "To close the help section, click 'Help' again.", "Panoramic images", "Points of interest", "Audio narration", "Navigating the tour"]
helpStringArraySecond = ["Cymorth", "This section will give you information about how to use the features available on each page as you move through the tour WELSH.", "I glywed y testun ar y sgrîn, cliciwch yr eicon uchel-seinydd ar waelod y ffenest yn y gornel dde. ", "Bydd pedwar botwm yn ymddangos bydd yn gadael i chi gael saib...", "sgipio’n ôl 5 eiliad...", "newid lefel y sain...", "a stopio’n gyfangwbl.", "I ddychwelyd i ddechrau’r daith ar unrhywbryd, cliciwch ar Dechrau.", "Gallwch edrych o gwmpas yr ystafell neu ardal hon drwy clicio ar y saethau ar y rheolwr cylchol, i’r dde o’r ddelwedd.  I symud i mewn ac allan, cliciwch yr arwydd plws a’r arwydd tynnu.  I newid cyflymder, cliciwch ar saeth eto.", "I edrych o gwmpas uchafbwyntiau’r ystafell hon neu ardal, cliciwch Pwyntiau o Ddiddordeb i weld delweddau bychain o’r pethau gallwch eu gweld.  I ffeindio mwy allan am uchafbwynt, cliciwch ar ei delwedd bychain.  I bori trwy’r uchafbwyntiau, clicwch Cyntaf, Nesaf neu Blaenorol.", "The panorama will turn and zoom to show the location of each highlight. To stop this movement, click the square stop button in the centre of the panorama controller WELSH.", " Mae gan rai ddelweddau ‘Pwyntiau o Ddiddordeb’ eicon drych-wydr yn y gornel.  I wneud y ddelwedd yn fwy neu i gychwyn sioe sleidiau, cliciwch ar y drych-wydr.  Cliciwch arno eto i ddychwelyd at y ystafell.", "When you're ready to move on, click 'next' to the right of the main image to continue the tour. To see a map, plan or menu that lets you choose what you'd like to see next. click 'Choose a room'. WELSH ", "To close the help section, click 'Help' again. WELSH", "Panoramic images WELSH", "Points of interest WELSH", "Audio narration WELSH", "Navigating the tour WELSH"]
altArray = ["look up", "zoom in", "look left", "stop", "look right", "look down", "zoom out", "previous room or area", "next room or area", "previous point of interest", "first point of interest", "next point of interest", "listen to a recorded version of this text", "pause or play", "skip back 5 seconds", "change volume", "stop", "view the index", "previous item", "next item", "scroll left to more points of interest", "scroll right to more points of interest", "Show or hide a close up view or slide show of images of this object", "Make the panorama fill the screen", "loaded", "To explore the panorama, you can either - <br>- Use the arrow buttons to the right<br>- Click, hold and slowly move your mouse.", "drag the panorama to look around", "turn screen left to view panorama, right to view text", "return to the tour", "Y dudalen hon yn Gymraeg"];
altArraySecond = ["look up WELSH", "zoom in WELSH", "look left WELSH", "stopio", "look right WELSH", "look down WELSH", "zoom out WELSH", "previous room or area WELSH", "next room or area WELSH", "previous point of interest WELSH", "first point of interest WELSH", "next point of interest WELSH", "Gwrandewch ar recordiad o’r testun hwn", "bydd yn gadael i chi gael saib", "sgipio’n ôl 5 eiliad", "newid lefel y sain ", "stopio", "view the index WELSH", "blaenorol", "nesaf", "scroll left to more points of interest WELSH", "scroll right to more points of interest WELSH", "Show or hide a close up view or slide show of images of this object WELSH", "Make the panorama fill the screen WELSH", "o lwytho", "To explore the panorama, you can either - <br>- Use the arrow buttons to the right<br>- Click, hold and slowly move your mouse.  WELSH", "drag the panorama to look around WELSH", "turn screen left to view panorama, right to view text WELSH", "return to the tour WELSH", "View this page in English"];

