/* Copyright (c) 2006 Andy Black
 * All Rights Reserved.
 * 
 * This software is the confidential and proprietary information
 * of <Andy Black>. You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with Andy Black
 * Author:				Andy Black
 * Last modified by:	$Author: Andy $
 * Date:				$Date: 2006/07/26 05:41:13 $
 * File:				$RCSfile: ferniehaugh.js,v $
 * Revision:			$Revision: 1.2 $
 * Purpose:				Ferniehaugh specific functions
 */
 
//a check to make sure all images have been preloaded for the nav 
var imagesLoadedPhotos = false;

//rollover global path, off , on, or whatever
var imageStatesPhotos = new Array('kitchen', 'across_the_pond', 'outside_drive', 'living_room', 'master_bedroom', 'steading_and_lawn');
var globalpathPhotos = 'img/steading_cottage_pics/';

//name, off, on
var imageListPhotos = new Array('mainPhotoImage','kitchen_large.jpg','across_the_pond_large.jpg','outside_drive_large.jpg','living_room_large.jpg','master_bedroom_large.jpg', 'steading_and_lawn_large.jpg');


//preload images
function loadPhotos()	{
	imagesLoadedPhotos = preloadImages(imageStatesPhotos, imageListPhotos, globalpathPhotos);
}

var photos = new Array();
photos.Objs = new Array('imageName','description');
photos.Add = defineObj;

photos.Add('kitchen','Kitchen');
photos.Add('across_the_pond','View from across the pond to Steading Cottage');
photos.Add('outside_drive','Cottage');
photos.Add('living_room','Living room');
photos.Add('master_bedroom','Master bedroom');
photos.Add('steading_and_lawn','Cottage and lawn');

function returnPhotoDescription(photo) {
	for (var i=0; i < photos.length; i++) {
		var photoObj = photos[i];
		if (photoObj.imageName == photo) {
			return photoObj.description;
			break;
		}
	}
}