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

// 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!");

// RED BEIGE
//buttonBg = "chroma(color=#413b34)";
//bBarCol = "chroma(color=#413b34)";
// GREEN GOLD
buttonBg = "chroma(color=#1b3930)";
bBarCol = "chroma(color=#1b3930)";
buttonUp = "#410546";
buttonHi = "#19057D";
buttonHover = "#87003C";
buttonHelper = "#FF6A0B"
//BLUE AQUA
//buttonBg = "chroma(color=#1A4659)";
//bBarCol = "chroma(color=#003146)";

// 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. Cyffyrddwch â’r ddelwedd i oedi.";
sC1dl = "Sioe sleidiau o ";
sC2dl = " o ddelweddau wedi oedi. Cyffwrddwch â’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", "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 'Start' 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.", "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'.", "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 room.", "When you're ready to move on, click 'next' near the top right corner 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.", "listen to a recorded version of this text", "return to introduction", "more help", "previous help item", "Show or hide a close up view or slide show of images of this object", "Make the panorama fill the screen", "loaded", "When the panorama has loaded, click the buttons to the right to look around, or click, hold and slowly move your mouse in the panoramic image.", "drag the panorama to look around", "turn screen left to view panorama, right to view text", "return to the tour"]
helpStringArraySecond = ["Cymorth", "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.", "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.", "Pan fyddwch yn barod i symud ymlaen, cliciwch y botwm ‘Nesaf’ ger y gornel dde ucha i barhau â’r daith.  I weld cynllun llawr sy’n gadael i chi ddewis beth hoffech chi weld nesaf, cliciwch ‘Dewisiwch ystafell’. ", "Pwyswch y botwm ‘Cymorth’ i fynd allan o’r adran gymorth.", "glywed recordiad o’r testun hon", "yn ôl i’r cyflwyniad", "mwy", "yn ôl", "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", "When the panorama has loaded, click the buttons to the right to look around, or click, hold and slowly move your mouse in the panoramic image.  WELSH", "drag the panorama to look around WELSH", "drag with three fingers to scroll the page WELSH", "return to 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"];
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"];
