/***************************************************************************
* 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[4471643] = new photo(4471643,'260363','','gallery','IMGP1494web.jpg',532,800,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471645] = new photo(4471645,'260363','','gallery','IMGP1494web1.jpg',532,800,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471661] = new photo(4471661,'260363','','gallery','IMGP1418crweb.jpg',800,571,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471664] = new photo(4471664,'260363','','gallery','IMGP1384web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471665] = new photo(4471665,'260363','','gallery','IMGP1300web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471668] = new photo(4471668,'260363','','gallery','IMGP1272web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471669] = new photo(4471669,'260363','','gallery','IMGP1250web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471670] = new photo(4471670,'260363','','gallery','IMGP1067web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471673] = new photo(4471673,'260363','','gallery','IMGP0558web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																																																																																																																			backgrounds[4471787] = new photo(4471787,'260360','','gallery','_IGP4025web.jpg',532,800,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471789] = new photo(4471789,'260360','','gallery','_IGP4045web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471793] = new photo(4471793,'260360','','gallery','_IGP4153web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471795] = new photo(4471795,'260360','','gallery','_IGP4400web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471797] = new photo(4471797,'260360','','gallery','_IGP4460web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471799] = new photo(4471799,'260360','','gallery','_IGP4609web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471801] = new photo(4471801,'260360','','gallery','_IGP4652web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471803] = new photo(4471803,'260360','','gallery','_IGP4660web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471804] = new photo(4471804,'260360','','gallery','_IGP4705web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471808] = new photo(4471808,'260360','','gallery','_IGP4730web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471811] = new photo(4471811,'260360','','gallery','_IGP4737web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471812] = new photo(4471812,'260360','','gallery','_IGP4787web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471816] = new photo(4471816,'260360','','gallery','_IGP4960web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471820] = new photo(4471820,'260360','','gallery','_IGP5059web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471823] = new photo(4471823,'260360','','gallery','_IGP5139web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471827] = new photo(4471827,'260360','','gallery','_IGP5143web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471680] = new photo(4471680,'260359','','gallery','_IGP5515web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471682] = new photo(4471682,'260359','','gallery','_IGP5538cweb.jpg',800,507,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471683] = new photo(4471683,'260359','','gallery','_IGP5545web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471687] = new photo(4471687,'260359','','gallery','_IGP5723web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471690] = new photo(4471690,'260359','','gallery','_IGP5765web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471691] = new photo(4471691,'260359','','gallery','_IGP5829web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																																																												backgrounds[4472086] = new photo(4472086,'210755','','gallery','_IGP6748web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472092] = new photo(4472092,'210755','','gallery','_IGP6800web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472094] = new photo(4472094,'210755','','gallery','_IGP6931web_copy.jpg',800,483,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472095] = new photo(4472095,'210755','','gallery','_IGP6949web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472097] = new photo(4472097,'210755','','gallery','_IGP6961web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472114] = new photo(4472114,'210755','','gallery','_IGP6993web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472116] = new photo(4472116,'210755','','gallery','_IGP7037web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472119] = new photo(4472119,'210755','','gallery','_IGP7093cweb_copy.jpg',800,510,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472123] = new photo(4472123,'210755','','gallery','_IGP7134web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4472125] = new photo(4472125,'210755','','gallery','_IGP7201web_copy.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																																			backgrounds[4471625] = new photo(4471625,'260355','','gallery','_IGP7439web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471627] = new photo(4471627,'260355','','gallery','_IGP7465web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471629] = new photo(4471629,'260355','','gallery','_IGP7486web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471630] = new photo(4471630,'260355','','gallery','_IGP7493web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471632] = new photo(4471632,'260355','','gallery','_IGP7575web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471634] = new photo(4471634,'260355','','gallery','_IGP7600web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471635] = new photo(4471635,'260355','','gallery','_IGP7796web.jpg',800,530,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471638] = new photo(4471638,'260355','','gallery','_IGP7826web.jpg',800,532,'',0, 0,'','','','','','','',18);
																																																																																				backgrounds[4471640] = new photo(4471640,'260355','','gallery','_IGP7845web.jpg',800,532,'',0, 0,'','','','','','','',18);
									

