window.thumbnails = {};
															thumbnails[3934118] = clik.newPhoto({"id":3934118,"src":"MP_13_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3934301] = clik.newPhoto({"id":3934301,"src":"MP_182_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":194});
															thumbnails[5876360] = clik.newPhoto({"id":5876360,"src":"Portrait_Offer_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6244544] = clik.newPhoto({"id":6244544,"src":"Bump-17_thumb.jpg","galleries_id":347468,"server_id":1,"link":"photo_6244544.html","width":130,"caption":"","height":195});
															thumbnails[6245571] = clik.newPhoto({"id":6245571,"src":"P010_hannah_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_6245571.html","width":130,"caption":"","height":195});
															thumbnails[6286790] = clik.newPhoto({"id":6286790,"src":"DaniellePaul_Pre-Wedding-14_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6286790.html","width":130,"caption":"","height":195});
															thumbnails[6750993] = clik.newPhoto({"id":6750993,"src":"Mary001_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6750993.html","width":130,"caption":"","height":98});
															thumbnails[7532476] = clik.newPhoto({"id":7532476,"src":"Gift_Vouchers_thumb.jpg","galleries_id":408357,"server_id":1,"link":"photo_7532476.html","width":130,"caption":"","height":87});
															thumbnails[7706277] = clik.newPhoto({"id":7706277,"src":"Arthur-19_B7527720-1EC9-DFB6-09D49666C6CB930A_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_7706277.html","width":130,"caption":"","height":195});
															thumbnails[6244541] = clik.newPhoto({"id":6244541,"src":"Bump-01_thumb.jpg","galleries_id":347468,"server_id":1,"link":"photo_6244541.html","width":130,"caption":"","height":195});
															thumbnails[6468010] = clik.newPhoto({"id":6468010,"src":"Evanora-18_38C08F2E-1EC9-D45B-1C9190F0C17B1BA6_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6468010.html","width":130,"caption":"","height":195});
															thumbnails[6750994] = clik.newPhoto({"id":6750994,"src":"Mary002_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6750994.html","width":130,"caption":"","height":173});
															thumbnails[7706281] = clik.newPhoto({"id":7706281,"src":"Thomas-02_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_7706281.html","width":130,"caption":"","height":195});
															thumbnails[9068323] = clik.newPhoto({"id":9068323,"src":"IMG_7155_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_9068323.html","width":130,"caption":"","height":195});
															thumbnails[6244542] = clik.newPhoto({"id":6244542,"src":"Bump-04_thumb.jpg","galleries_id":347468,"server_id":1,"link":"photo_6244542.html","width":130,"caption":"","height":195});
															thumbnails[6245575] = clik.newPhoto({"id":6245575,"src":"P014_Rosa011_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6245575.html","width":130,"caption":"","height":195});
															thumbnails[6286799] = clik.newPhoto({"id":6286799,"src":"DaniellePaul_Pre-Wedding-24_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6286799.html","width":130,"caption":"","height":195});
															thumbnails[6750995] = clik.newPhoto({"id":6750995,"src":"Mary003_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6750995.html","width":130,"caption":"","height":173});
															thumbnails[9068339] = clik.newPhoto({"id":9068339,"src":"IMG_6975_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_9068339.html","width":130,"caption":"","height":195});
															thumbnails[6244543] = clik.newPhoto({"id":6244543,"src":"Bump-13_thumb.jpg","galleries_id":347468,"server_id":1,"link":"photo_6244543.html","width":130,"caption":"","height":195});
															thumbnails[6245570] = clik.newPhoto({"id":6245570,"src":"P009_holly_emma_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_6245570.html","width":130,"caption":"","height":87});
															thumbnails[6245573] = clik.newPhoto({"id":6245573,"src":"P012_Rosa006_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6245573.html","width":130,"caption":"","height":195});
															thumbnails[6468009] = clik.newPhoto({"id":6468009,"src":"Evanora-05_38C08DA8-1EC9-D45B-1C4E8C12098D2847_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6468009.html","width":130,"caption":"","height":195});
															thumbnails[6750996] = clik.newPhoto({"id":6750996,"src":"Mary004_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6750996.html","width":130,"caption":"","height":173});
															thumbnails[6244545] = clik.newPhoto({"id":6244545,"src":"Bump-18_thumb.jpg","galleries_id":347468,"server_id":1,"link":"photo_6244545.html","width":130,"caption":"","height":87});
															thumbnails[6286804] = clik.newPhoto({"id":6286804,"src":"Sara__Andrew-02_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6286804.html","width":130,"caption":"","height":195});
															thumbnails[6750997] = clik.newPhoto({"id":6750997,"src":"Mary005_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6750997.html","width":130,"caption":"","height":189});
															thumbnails[6899546] = clik.newPhoto({"id":6899546,"src":"mary_006_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6899546.html","width":130,"caption":"","height":195});
															thumbnails[9068354] = clik.newPhoto({"id":9068354,"src":"IMG_6888_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_9068354.html","width":130,"caption":"","height":87});
															thumbnails[6245569] = clik.newPhoto({"id":6245569,"src":"Baby_emma_2_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6245569.html","width":130,"caption":"","height":195});
															thumbnails[6468011] = clik.newPhoto({"id":6468011,"src":"Evanora-24_38C090C5-1EC9-D45B-1C69C72811D30146_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6468011.html","width":130,"caption":"","height":195});
															thumbnails[6750998] = clik.newPhoto({"id":6750998,"src":"Mary006_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6750998.html","width":130,"caption":"","height":98});
															thumbnails[9068360] = clik.newPhoto({"id":9068360,"src":"IMG_7030_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_9068360.html","width":130,"caption":"","height":87});
															thumbnails[6245568] = clik.newPhoto({"id":6245568,"src":"Baby_emma_1_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6245568.html","width":130,"caption":"","height":87});
															thumbnails[6286881] = clik.newPhoto({"id":6286881,"src":"Lady_In_Red_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6286881.html","width":130,"caption":"","height":87});
															thumbnails[6750999] = clik.newPhoto({"id":6750999,"src":"Mary007_1F6D8158-24E8-5EC4-4F635ECEE2B9A4CF_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6750999.html","width":130,"caption":"","height":195});
															thumbnails[9068379] = clik.newPhoto({"id":9068379,"src":"IMG_7763_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_9068379.html","width":130,"caption":"","height":195});
															thumbnails[6286889] = clik.newPhoto({"id":6286889,"src":"P002_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6286889.html","width":130,"caption":"","height":195});
															thumbnails[6751000] = clik.newPhoto({"id":6751000,"src":"Mary008_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751000.html","width":130,"caption":"","height":87});
															thumbnails[6892624] = clik.newPhoto({"id":6892624,"src":"mary_005_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6892624.html","width":130,"caption":"","height":87});
															thumbnails[9068383] = clik.newPhoto({"id":9068383,"src":"P015_BurnsFamily-08_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_9068383.html","width":130,"caption":"","height":195});
															thumbnails[6245574] = clik.newPhoto({"id":6245574,"src":"P013_Rosa046_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6245574.html","width":130,"caption":"","height":87});
															thumbnails[6286801] = clik.newPhoto({"id":6286801,"src":"Marc__Jane_Pre-Wedding-13_thumb.jpg","galleries_id":349002,"server_id":1,"link":"photo_6286801.html","width":130,"caption":"","height":195});
															thumbnails[6751001] = clik.newPhoto({"id":6751001,"src":"Mary009_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751001.html","width":130,"caption":"","height":195});
															thumbnails[7706327] = clik.newPhoto({"id":7706327,"src":"Ellie_Anna-05_B7E93B43-1EC9-DFB6-09CCDC20F9ED8BAA_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_7706327.html","width":130,"caption":"","height":195});
															thumbnails[6245579] = clik.newPhoto({"id":6245579,"src":"P016_BurnsFamily-20_thumb.jpg","galleries_id":370584,"server_id":1,"link":"photo_6245579.html","width":130,"caption":"","height":87});
															thumbnails[6751002] = clik.newPhoto({"id":6751002,"src":"Mary010_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751002.html","width":130,"caption":"","height":195});
															thumbnails[7706295] = clik.newPhoto({"id":7706295,"src":"Arthur-15_B7842853-1EC9-DFB6-093B4280828D49CB_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_7706295.html","width":130,"caption":"","height":195});
															thumbnails[6751003] = clik.newPhoto({"id":6751003,"src":"Mary011_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751003.html","width":130,"caption":"","height":195});
															thumbnails[7706304] = clik.newPhoto({"id":7706304,"src":"Thomas-08_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_7706304.html","width":130,"caption":"","height":195});
															thumbnails[6245572] = clik.newPhoto({"id":6245572,"src":"P011_Rosa003_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6245572.html","width":130,"caption":"","height":195});
															thumbnails[6751004] = clik.newPhoto({"id":6751004,"src":"Mary012_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751004.html","width":130,"caption":"","height":87});
															thumbnails[6751005] = clik.newPhoto({"id":6751005,"src":"Mary013_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751005.html","width":130,"caption":"","height":195});
															thumbnails[7706310] = clik.newPhoto({"id":7706310,"src":"Arthur-26_B799CE7D-1EC9-DFB6-092A153DF80C0086_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_7706310.html","width":130,"caption":"","height":195});
															thumbnails[6751006] = clik.newPhoto({"id":6751006,"src":"Mary014_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751006.html","width":130,"caption":"","height":87});
															thumbnails[7706311] = clik.newPhoto({"id":7706311,"src":"Thomas-04_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_7706311.html","width":130,"caption":"","height":195});
															thumbnails[6751007] = clik.newPhoto({"id":6751007,"src":"Mary015_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751007.html","width":130,"caption":"","height":195});
															thumbnails[6823959] = clik.newPhoto({"id":6823959,"src":"mary_004_thumb.jpg","galleries_id":347486,"server_id":1,"link":"photo_6823959.html","width":130,"caption":"","height":195});
															thumbnails[6751008] = clik.newPhoto({"id":6751008,"src":"Mary016_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751008.html","width":130,"caption":"","height":87});
															thumbnails[6751009] = clik.newPhoto({"id":6751009,"src":"Mary017_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751009.html","width":130,"caption":"","height":87});
															thumbnails[6751010] = clik.newPhoto({"id":6751010,"src":"Mary018_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751010.html","width":130,"caption":"","height":195});
															thumbnails[6751011] = clik.newPhoto({"id":6751011,"src":"Mary019_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751011.html","width":130,"caption":"","height":195});
															thumbnails[6751012] = clik.newPhoto({"id":6751012,"src":"Mary020_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751012.html","width":130,"caption":"","height":195});
															thumbnails[6751013] = clik.newPhoto({"id":6751013,"src":"Mary021_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751013.html","width":130,"caption":"","height":195});
															thumbnails[6751014] = clik.newPhoto({"id":6751014,"src":"Mary022_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751014.html","width":130,"caption":"","height":195});
															thumbnails[6751015] = clik.newPhoto({"id":6751015,"src":"Mary023_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751015.html","width":130,"caption":"","height":87});
															thumbnails[6751016] = clik.newPhoto({"id":6751016,"src":"Mary024_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751016.html","width":130,"caption":"","height":87});
															thumbnails[6751017] = clik.newPhoto({"id":6751017,"src":"Mary025_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751017.html","width":130,"caption":"","height":195});
															thumbnails[6751018] = clik.newPhoto({"id":6751018,"src":"Mary026_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751018.html","width":130,"caption":"","height":195});
															thumbnails[6751019] = clik.newPhoto({"id":6751019,"src":"Mary027_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751019.html","width":130,"caption":"","height":195});
															thumbnails[6751020] = clik.newPhoto({"id":6751020,"src":"Mary028_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751020.html","width":130,"caption":"","height":195});
															thumbnails[6751021] = clik.newPhoto({"id":6751021,"src":"Mary029_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751021.html","width":130,"caption":"","height":87});
															thumbnails[6751022] = clik.newPhoto({"id":6751022,"src":"Mary030_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751022.html","width":130,"caption":"","height":195});
															thumbnails[6751023] = clik.newPhoto({"id":6751023,"src":"Mary031_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751023.html","width":130,"caption":"","height":195});
															thumbnails[6751024] = clik.newPhoto({"id":6751024,"src":"Mary032_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751024.html","width":130,"caption":"","height":195});
															thumbnails[6751025] = clik.newPhoto({"id":6751025,"src":"Mary033_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751025.html","width":130,"caption":"","height":195});
															thumbnails[6751027] = clik.newPhoto({"id":6751027,"src":"Mary035_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751027.html","width":130,"caption":"","height":195});
															thumbnails[6751026] = clik.newPhoto({"id":6751026,"src":"Mary034_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751026.html","width":130,"caption":"","height":195});
															thumbnails[6751028] = clik.newPhoto({"id":6751028,"src":"Mary036_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751028.html","width":130,"caption":"","height":195});
															thumbnails[6751030] = clik.newPhoto({"id":6751030,"src":"Mary037_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751030.html","width":130,"caption":"","height":195});
															thumbnails[6751509] = clik.newPhoto({"id":6751509,"src":"Mary043_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751509.html","width":130,"caption":"","height":87});
															thumbnails[6751510] = clik.newPhoto({"id":6751510,"src":"Mary044_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751510.html","width":130,"caption":"","height":195});
															thumbnails[6751512] = clik.newPhoto({"id":6751512,"src":"Mary045_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751512.html","width":130,"caption":"","height":195});
															thumbnails[6751513] = clik.newPhoto({"id":6751513,"src":"Mary046_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751513.html","width":130,"caption":"","height":195});
															thumbnails[6751514] = clik.newPhoto({"id":6751514,"src":"Mary047_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751514.html","width":130,"caption":"","height":195});
															thumbnails[6751515] = clik.newPhoto({"id":6751515,"src":"Mary048_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751515.html","width":130,"caption":"","height":195});
															thumbnails[6751516] = clik.newPhoto({"id":6751516,"src":"Mary049_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751516.html","width":130,"caption":"","height":195});
															thumbnails[6751517] = clik.newPhoto({"id":6751517,"src":"Mary050_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751517.html","width":130,"caption":"","height":195});
															thumbnails[6751519] = clik.newPhoto({"id":6751519,"src":"Mary051_thumb.jpg","galleries_id":367764,"server_id":1,"link":"photo_6751519.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[408357] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gift Vouchers","link":"gallery_408357.html","maxRecords":0.0,"photoIDs":[7532476.0],"skipIndex":0,"section_code":"gallery","featured_images":7532476.0,"id":408357,"singleSection":false});				  						galleries[367763] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mary Ellison-Burns","link":"gallery_367763.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":6750997.0,"id":367763,"singleSection":false});				  						galleries[429946] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photo Shoot - 17th June 2011","link":"gallery_429946.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":429946,"singleSection":false});				  						galleries[347486] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby Portraits","link":"gallery_347486.html","maxRecords":0.0,"photoIDs":[7706277.0,7706281.0,6245575.0,6245573.0,6899546.0,6245569.0,6245568.0,6892624.0,6245574.0,7706295.0,7706304.0,6245572.0,7706310.0,7706311.0,6823959.0],"skipIndex":0,"section_code":"gallery","featured_images":7706277.0,"id":347486,"singleSection":false});				  						galleries[367764] = clik.newGallery({"parentGallery":367763,"usePopups":false,"title":"May\/June 2010","link":"gallery_367764.html","maxRecords":0.0,"photoIDs":[6750993.0,6750994.0,6750995.0,6750996.0,6750997.0,6750998.0,6750999.0,6751000.0,6751001.0,6751002.0,6751003.0,6751004.0,6751005.0,6751006.0,6751007.0,6751008.0,6751009.0,6751010.0,6751011.0,6751012.0,6751013.0,6751014.0,6751015.0,6751016.0,6751017.0,6751018.0,6751019.0,6751020.0,6751021.0,6751022.0,6751023.0,6751024.0,6751025.0,6751027.0,6751026.0,6751028.0,6751030.0,6751509.0,6751510.0,6751512.0,6751513.0,6751514.0,6751515.0,6751516.0,6751517.0,6751519.0],"skipIndex":0,"section_code":"gallery","featured_images":6750997.0,"id":367764,"singleSection":false});				  						galleries[370584] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_370584.html","maxRecords":0.0,"photoIDs":[6245571.0,9068323.0,9068339.0,6245570.0,9068354.0,9068360.0,9068379.0,9068383.0,7706327.0,6245579.0],"skipIndex":0,"section_code":"gallery","featured_images":9068323.0,"id":370584,"singleSection":false});				  						galleries[349002] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Family Portraits","link":"gallery_349002.html","maxRecords":0.0,"photoIDs":[6286790.0,6468010.0,6286799.0,6468009.0,6286804.0,6468011.0,6286881.0,6286889.0,6286801.0],"skipIndex":0,"section_code":"gallery","featured_images":6286799.0,"id":349002,"singleSection":false});				  						galleries[367833] = clik.newGallery({"parentGallery":367763,"usePopups":false,"title":"August 2010","link":"gallery_367833.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":367833,"singleSection":false});				  						galleries[347468] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby Bump","link":"gallery_347468.html","maxRecords":0.0,"photoIDs":[6244544.0,6244541.0,6244542.0,6244543.0,6244545.0],"skipIndex":0,"section_code":"gallery","featured_images":6244544.0,"id":347468,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7706277,6245571,9068323,7706281,9068339,6245573,6245570,9068354,6245569,9068379,6245568,6892624,7706327,6245574,7706295,7706304,7706310,7706311,6823959';
imageSets[2] = '7706277,6244544,9068323,6286799,6750997';
imageSets[3] = '9068383,9068379,9068360,9068354,9068339,9068323,7706327,7706311,7706310,7706304,7706295,7706281,7706277,6899546,6892624,6823959,6751519,6751517,6751516,6751515,6751514,6751513,6751512,6751510,6751509,6751030,6751028,6751027,6751026,6751025,6751024,6751023,6751022,6751021,6751020,6751019,6751018,6751017,6751016,6751015,6751014,6751013,6751012,6751011,6751010,6751009,6751008,6751007,6751006,6751005';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sburns59/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sburns59/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sburns59/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sburns59/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/sburns59/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/sburns59/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sburns59/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/sburns59/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Bristol Baby Portrait Photographer Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="SBURNS59">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

