/***************************************************************************
* Create a photo object                                                    *
***************************************************************************/
function photo(id, galleries_id, photo_ref, section_code, src, width, height, caption, home, gallery, description, takendate, photographer, location, item_price, purchase_instruction, payment_groups_id, server_id) {
	this.id = id;
	this.galleries_id = galleries_id;
	this.photo_ref = photo_ref;
	this.section_code = section_code;
	this.src = src;
	this.width = width;
	this.height = height;
	this.caption = caption;
	this.home = home;
	this.gallery = gallery;
	this.description = description;
	this.takendate = takendate;
	this.photographer = photographer;
	this.location = location;
	this.item_price = item_price;
	this.purchase_instruction = purchase_instruction;
	this.payment_groups_id = payment_groups_id;
	this.server_id = server_id;
	this.src = getServerPath(this.server_id) + '/' + this.src;}
/***************************************************************************
* Create a gallery object                                                  *
***************************************************************************/

function gallery(id,featured_images,title,section_code,photoIDs) {
	this.id = id;
	this.featured_images = featured_images;
	this.title = title;
	this.section_code = section_code;	this.photoIDs = photoIDs;}

/***************************************************************************
* Create the object of Photo objects                                       *
***************************************************************************/
var backgrounds = new Object();
																																																																																																										backgrounds[1921112] = new photo(1921112,'128836','2008_02_12_0007','gallery','2008_02_12_0007.jpg',357,500,'',1, 0,'Taken to contrast the movement in the previous shot, the stillness of the fog on this cold February morning comes through in spades.','12/02/08','Scott Downes','Saffron Walden Common','','','',18);
																																																																																				backgrounds[1921113] = new photo(1921113,'128836','2008_02_26_0002.jpg','gallery','2008_02_26_0002.jpg',400,495,'',1, 1,'A skylight at the NEC provides an excellent composition of diagonals, enhanced by the many reflections.','26/02/08','Scott Downes','NEC, Birmingham','','','',18);
																																																																																																			backgrounds[2157034] = new photo(2157034,'128836','Project29_14','gallery','project29_14.jpg',333,500,'',1, 1,'Another in a series of images exploring design elements within image, particularly lines and shapes.','','Scott Downes','IWM, Duxford','','','',18);
																																																																																									backgrounds[2239738] = new photo(2239738,'128836','Relics of the Past','gallery','002Love02.jpg',400,600,'',1, 1,'For a \"My Neighbourhood Assignment\"','','Scott Downes','Henham, Herts','','','',18);
																																																																																																			backgrounds[2239751] = new photo(2239751,'128836','','gallery','Love05.jpg',400,266,'',1, 0,'Twigs and Branches - an image not used in my final \"My Neighbourhood\" assignment but one which I like. We do not look up enough, and this image captures the amazing lines of these trees just weeks before the leaves blocked out the sky. If you do one thing today, look up where you usually do not do so.','','Scott Downes','Henahm','','','',18);
																																																																																																																																	backgrounds[2945416] = new photo(2945416,'128836','2008 08 04 0037','gallery','2008_08_04_0037.jpg',400,266,'',1, 1,'Studio Lighting - highlight. Inspired by Ansel Adams','04/08/08','Scott Downes','Henham','','','',18);
																																																																																																																																																															backgrounds[1414115] = new photo(1414115,'39458','2007_06_01_0061','gallery','2007_06_01_0061.JPG',400,286,'',1, 0,'Spitfire','01/06/07','Scott Downes','IWM Duxford','','','',18);
																																																																																																																																																																																																																																																																																												backgrounds[1921168] = new photo(1921168,'39458','2007_12_13_0234.JPG','gallery','2007_12_13_0234.JPG',400,286,'',1, 1,'Tornado Sunset','13/12/07','Scott Downes','RAF Marham','','','',18);
																																																																																														backgrounds[2022797] = new photo(2022797,'39458','2008_04_01_0068.JPG','gallery','2008_04_01_0068.jpg',400,266,'',1, 1,'The Red Arrows formate with 4 Eurofighter Typhoon aircraft on 1st April to celebrate the 90th anniversary.','01/04/08','Scott Downes','RAF Coningsby','','','',18);
																																																																																																																																																																																																																																										backgrounds[508409] = new photo(508409,'39464','2006_09_19_00025','gallery','2006_09_19_00025 (1).jpg',400,267,'',1, 0,'Lewis Hamilton tests the 2006 McLaren F1 car for the first time.','19/09/06','Scott Downes','Silverstone, Northants','','','',18);
																																																																																																																																																																																																							backgrounds[2167334] = new photo(2167334,'39464','2008_05_02_0417.jpg','gallery','2008_05_02_0417.jpg',400,266,'',1, 0,'A1GP','02/05/08','Scott Downes','Brands Hatch','','','',18);
																																																																																																																																																																				backgrounds[1947196] = new photo(1947196,'130386','2008_01_22_Pan4.JPG','gallery','2008_01_22_Pan4.JPG',333,461,'',1, 0,'','','Scott Downes','Hatfield Forest','','','',18);
																																																																																																													backgrounds[2027977] = new photo(2027977,'130386','2008 03 19 052.jpg','gallery','2008 03 19 052.jpg',333,500,'',1, 0,'','19/03/08','Scott Downes','Grand Canyon, Nevada','','','',18);
																																																																																																																																	backgrounds[2167411] = new photo(2167411,'130386','2008_05_07_0038.jpg','gallery','2008_05_07_0038.jpg',400,266,'',1, 1,'Spring Colour Reflections','07/05/08','Scott Downes','Marks Hall','','','',18);
																																																																																																																																																																				backgrounds[1510172] = new photo(1510172,'143658','2007_10_18_0003','gallery','2007_10_18_0003.jpg',400,300,'',1, 0,'Avro Vulcan XH558','18/10/07','Scott Downes','Bruntingthorpe','','','',18);
																																																																																																													backgrounds[2239755] = new photo(2239755,'143658','2008_05_09_0011.jpg','gallery','2008_05_09_0011.jpg',400,261,'',1, 0,'Vulcan KH558 awaits Test Flight 5 at RAF Coningsby','09/05/08','Scott Downes','RAF Coningsby','','','',18);
																																																																																									
