window.thumbnails = {};
															thumbnails[3432277] = clik.newPhoto({"id":3432277,"src":"DSC_02364_thumb.jpg","galleries_id":210367,"server_id":15,"link":"photo_3432277.html","width":130,"caption":"","height":130});
															thumbnails[3432288] = clik.newPhoto({"id":3432288,"src":"Paul and Michelle 24th May 2008 1231_thumb.jpg","galleries_id":210367,"server_id":15,"link":"photo_3432288.html","width":130,"caption":"","height":130});
															thumbnails[3432307] = clik.newPhoto({"id":3432307,"src":"Paul and Michelle 24th May 2008 3761_thumb.jpg","galleries_id":210367,"server_id":15,"link":"photo_3432307.html","width":130,"caption":"","height":130});
															thumbnails[3432309] = clik.newPhoto({"id":3432309,"src":"Paul and Michelle 24th May 2008 4111_thumb.jpg","galleries_id":210367,"server_id":15,"link":"photo_3432309.html","width":130,"caption":"","height":130});
															thumbnails[3432322] = clik.newPhoto({"id":3432322,"src":"DSC_07533_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432322.html","width":130,"caption":"","height":130});
															thumbnails[3432323] = clik.newPhoto({"id":3432323,"src":"DSC_07632_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432323.html","width":130,"caption":"","height":130});
															thumbnails[3432324] = clik.newPhoto({"id":3432324,"src":"DSC_07722_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432324.html","width":130,"caption":"","height":130});
															thumbnails[3432328] = clik.newPhoto({"id":3432328,"src":"DSC_08212_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432328.html","width":130,"caption":"","height":130});
															thumbnails[3432329] = clik.newPhoto({"id":3432329,"src":"DSC_08323_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432329.html","width":130,"caption":"","height":130});
															thumbnails[3432336] = clik.newPhoto({"id":3432336,"src":"DSC_09071_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432336.html","width":130,"caption":"","height":130});
															thumbnails[3432339] = clik.newPhoto({"id":3432339,"src":"DSC_09671_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432339.html","width":130,"caption":"","height":130});
															thumbnails[3432341] = clik.newPhoto({"id":3432341,"src":"DSC_10451_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3432341.html","width":130,"caption":"","height":130});
															thumbnails[3433201] = clik.newPhoto({"id":3433201,"src":"DSC_11391_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3433201.html","width":130,"caption":"","height":130});
															thumbnails[3433227] = clik.newPhoto({"id":3433227,"src":"DSC_11401_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3433227.html","width":130,"caption":"","height":130});
															thumbnails[3433228] = clik.newPhoto({"id":3433228,"src":"DSC_11503_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3433228.html","width":130,"caption":"","height":130});
															thumbnails[3433232] = clik.newPhoto({"id":3433232,"src":"DSC_12201_thumb.jpg","galleries_id":210379,"server_id":15,"link":"photo_3433232.html","width":130,"caption":"","height":130});
															thumbnails[3433471] = clik.newPhoto({"id":3433471,"src":"DSC_14971_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3433471.html","width":130,"caption":"","height":130});
															thumbnails[3433484] = clik.newPhoto({"id":3433484,"src":"DSC_15631_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3433484.html","width":130,"caption":"","height":130});
															thumbnails[3433486] = clik.newPhoto({"id":3433486,"src":"DSC_15891_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3433486.html","width":130,"caption":"","height":130});
															thumbnails[3433492] = clik.newPhoto({"id":3433492,"src":"DSC_16221_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3433492.html","width":130,"caption":"","height":130});
															thumbnails[3433495] = clik.newPhoto({"id":3433495,"src":"DSC_16511_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3433495.html","width":130,"caption":"","height":130});
															thumbnails[3435951] = clik.newPhoto({"id":3435951,"src":"DSC_16911_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3435951.html","width":130,"caption":"","height":130});
															thumbnails[3435955] = clik.newPhoto({"id":3435955,"src":"DSC_17191_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3435955.html","width":130,"caption":"","height":130});
															thumbnails[3435958] = clik.newPhoto({"id":3435958,"src":"DSC_18081_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3435958.html","width":130,"caption":"","height":130});
															thumbnails[3435960] = clik.newPhoto({"id":3435960,"src":"DSC_1843_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3435960.html","width":130,"caption":"","height":130});
															thumbnails[3435961] = clik.newPhoto({"id":3435961,"src":"DSC_1882_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3435961.html","width":130,"caption":"","height":130});
															thumbnails[3435964] = clik.newPhoto({"id":3435964,"src":"DSC_2029_thumb.jpg","galleries_id":210376,"server_id":15,"link":"photo_3435964.html","width":130,"caption":"","height":130});
															thumbnails[3435992] = clik.newPhoto({"id":3435992,"src":"DSC_3115_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3435992.html","width":130,"caption":"","height":130});
															thumbnails[3435996] = clik.newPhoto({"id":3435996,"src":"DSC_3155_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3435996.html","width":130,"caption":"","height":130});
															thumbnails[3435997] = clik.newPhoto({"id":3435997,"src":"DSC_3202_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3435997.html","width":130,"caption":"","height":130});
															thumbnails[3435999] = clik.newPhoto({"id":3435999,"src":"DSC_3354_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3435999.html","width":130,"caption":"","height":130});
															thumbnails[3436000] = clik.newPhoto({"id":3436000,"src":"DSC_3419_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436000.html","width":130,"caption":"","height":130});
															thumbnails[3436001] = clik.newPhoto({"id":3436001,"src":"DSC_3426_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436001.html","width":130,"caption":"","height":130});
															thumbnails[3436003] = clik.newPhoto({"id":3436003,"src":"DSC_3559_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436003.html","width":130,"caption":"","height":130});
															thumbnails[3436004] = clik.newPhoto({"id":3436004,"src":"DSC_3672_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436004.html","width":130,"caption":"","height":130});
															thumbnails[3436006] = clik.newPhoto({"id":3436006,"src":"DSC_3833_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436006.html","width":130,"caption":"","height":130});
															thumbnails[3436007] = clik.newPhoto({"id":3436007,"src":"DSC_3896_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436007.html","width":130,"caption":"","height":130});
															thumbnails[3436008] = clik.newPhoto({"id":3436008,"src":"DSC_3928_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436008.html","width":130,"caption":"","height":130});
															thumbnails[3436009] = clik.newPhoto({"id":3436009,"src":"DSC_3941_thumb.jpg","galleries_id":210375,"server_id":15,"link":"photo_3436009.html","width":130,"caption":"","height":130});
															thumbnails[3437013] = clik.newPhoto({"id":3437013,"src":"DSC_46843_thumb.jpg","galleries_id":209619,"server_id":15,"link":"photo_3437013.html","width":130,"caption":"","height":130});
															thumbnails[3437018] = clik.newPhoto({"id":3437018,"src":"DSC_4708_thumb.jpg","galleries_id":209619,"server_id":15,"link":"photo_3437018.html","width":130,"caption":"","height":130});
															thumbnails[3438190] = clik.newPhoto({"id":3438190,"src":"DSC_13122_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438190.html","width":130,"caption":"","height":130});
															thumbnails[3438192] = clik.newPhoto({"id":3438192,"src":"DSC_13252_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438192.html","width":130,"caption":"","height":130});
															thumbnails[3438196] = clik.newPhoto({"id":3438196,"src":"DSC_41364_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438196.html","width":130,"caption":"","height":130});
															thumbnails[3438208] = clik.newPhoto({"id":3438208,"src":"DSC_41532_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438208.html","width":130,"caption":"","height":130});
															thumbnails[3438211] = clik.newPhoto({"id":3438211,"src":"DSC_41991_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438211.html","width":130,"caption":"","height":130});
															thumbnails[3438250] = clik.newPhoto({"id":3438250,"src":"DSC_43541_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438250.html","width":130,"caption":"","height":130});
															thumbnails[3438253] = clik.newPhoto({"id":3438253,"src":"DSC_44071_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438253.html","width":130,"caption":"","height":130});
															thumbnails[3438256] = clik.newPhoto({"id":3438256,"src":"DSC_44351_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3438256.html","width":130,"caption":"","height":130});
															thumbnails[3438599] = clik.newPhoto({"id":3438599,"src":"DSC_0716_thumb.jpg","galleries_id":209619,"server_id":15,"link":"photo_3438599.html","width":130,"caption":"","height":130});
															thumbnails[3438600] = clik.newPhoto({"id":3438600,"src":"DSC_0730_thumb.jpg","galleries_id":209619,"server_id":15,"link":"photo_3438600.html","width":130,"caption":"","height":130});
															thumbnails[3438601] = clik.newPhoto({"id":3438601,"src":"DSC_4724_thumb.jpg","galleries_id":209619,"server_id":15,"link":"photo_3438601.html","width":130,"caption":"","height":130});
															thumbnails[3439295] = clik.newPhoto({"id":3439295,"src":"DSC_2243_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3439295.html","width":130,"caption":"","height":130});
															thumbnails[3439300] = clik.newPhoto({"id":3439300,"src":"DSC_2341_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3439300.html","width":130,"caption":"","height":130});
															thumbnails[3439303] = clik.newPhoto({"id":3439303,"src":"DSC_2687_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_3439303.html","width":130,"caption":"","height":130});
															thumbnails[3439314] = clik.newPhoto({"id":3439314,"src":"DSC_0010_thumb.jpg","galleries_id":209619,"server_id":15,"link":"photo_3439314.html","width":130,"caption":"","height":130});
															thumbnails[4885919] = clik.newPhoto({"id":4885919,"src":"DSC_0115-52_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4885919.html","width":130,"caption":"","height":130});
															thumbnails[4885933] = clik.newPhoto({"id":4885933,"src":"DSC_0479-10_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4885933.html","width":130,"caption":"","height":130});
															thumbnails[4885988] = clik.newPhoto({"id":4885988,"src":"DSC_0732-11_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4885988.html","width":130,"caption":"","height":130});
															thumbnails[4886014] = clik.newPhoto({"id":4886014,"src":"DSC_0735-12_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886014.html","width":130,"caption":"","height":130});
															thumbnails[4886019] = clik.newPhoto({"id":4886019,"src":"DSC_0749-13_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886019.html","width":130,"caption":"","height":130});
															thumbnails[4886023] = clik.newPhoto({"id":4886023,"src":"DSC_2604-4_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886023.html","width":130,"caption":"","height":130});
															thumbnails[4886025] = clik.newPhoto({"id":4886025,"src":"DSC_2875-6_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886025.html","width":130,"caption":"","height":130});
															thumbnails[4886027] = clik.newPhoto({"id":4886027,"src":"DSC_2996-7_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886027.html","width":130,"caption":"","height":130});
															thumbnails[4886030] = clik.newPhoto({"id":4886030,"src":"DSC_3030-8_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886030.html","width":130,"caption":"","height":130});
															thumbnails[4886035] = clik.newPhoto({"id":4886035,"src":"DSC_3079-9_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886035.html","width":130,"caption":"","height":130});
															thumbnails[4886045] = clik.newPhoto({"id":4886045,"src":"DSC_3143-14_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886045.html","width":130,"caption":"","height":130});
															thumbnails[4886207] = clik.newPhoto({"id":4886207,"src":"DSC_3598_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886207.html","width":130,"caption":"","height":130});
															thumbnails[4886209] = clik.newPhoto({"id":4886209,"src":"DSC_3684_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886209.html","width":130,"caption":"","height":130});
															thumbnails[4886211] = clik.newPhoto({"id":4886211,"src":"DSC_3791_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886211.html","width":130,"caption":"","height":130});
															thumbnails[4886213] = clik.newPhoto({"id":4886213,"src":"DSC_3814_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886213.html","width":130,"caption":"","height":130});
															thumbnails[4886218] = clik.newPhoto({"id":4886218,"src":"DSC_4087_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886218.html","width":130,"caption":"","height":130});
															thumbnails[4886223] = clik.newPhoto({"id":4886223,"src":"DSC_4254_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886223.html","width":130,"caption":"","height":130});
															thumbnails[4886231] = clik.newPhoto({"id":4886231,"src":"DSC_4304_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886231.html","width":130,"caption":"","height":130});
															thumbnails[4886236] = clik.newPhoto({"id":4886236,"src":"DSC_5277_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886236.html","width":130,"caption":"","height":130});
															thumbnails[4886243] = clik.newPhoto({"id":4886243,"src":"DSC_5284_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886243.html","width":130,"caption":"","height":130});
															thumbnails[4886246] = clik.newPhoto({"id":4886246,"src":"DSC_5349_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886246.html","width":130,"caption":"","height":130});
															thumbnails[4886253] = clik.newPhoto({"id":4886253,"src":"DSC_5360_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886253.html","width":130,"caption":"","height":130});
															thumbnails[4886300] = clik.newPhoto({"id":4886300,"src":"DSC_4134_thumb.jpg","galleries_id":278663,"server_id":15,"link":"photo_4886300.html","width":130,"caption":"","height":130});
															thumbnails[4886317] = clik.newPhoto({"id":4886317,"src":"DSC_0146_thumb.jpg","galleries_id":278634,"server_id":15,"link":"photo_4886317.html","width":130,"caption":"","height":130});
															thumbnails[4886562] = clik.newPhoto({"id":4886562,"src":"DSC_4629_thumb.jpg","galleries_id":278679,"server_id":15,"link":"photo_4886562.html","width":130,"caption":"","height":130});
															thumbnails[4886567] = clik.newPhoto({"id":4886567,"src":"DSC_4760_thumb.jpg","galleries_id":278679,"server_id":15,"link":"photo_4886567.html","width":130,"caption":"","height":130});
															thumbnails[4886572] = clik.newPhoto({"id":4886572,"src":"DSC_4792_thumb.jpg","galleries_id":278679,"server_id":15,"link":"photo_4886572.html","width":130,"caption":"","height":130});
															thumbnails[4886578] = clik.newPhoto({"id":4886578,"src":"DSC_4916_thumb.jpg","galleries_id":278679,"server_id":15,"link":"photo_4886578.html","width":130,"caption":"","height":130});
															thumbnails[4886583] = clik.newPhoto({"id":4886583,"src":"DSC_5042_thumb.jpg","galleries_id":278679,"server_id":15,"link":"photo_4886583.html","width":130,"caption":"","height":130});
															thumbnails[4886586] = clik.newPhoto({"id":4886586,"src":"DSC_5056_thumb.jpg","galleries_id":278679,"server_id":15,"link":"photo_4886586.html","width":130,"caption":"","height":130});
															thumbnails[4886589] = clik.newPhoto({"id":4886589,"src":"DSC_5474_thumb.jpg","galleries_id":278679,"server_id":15,"link":"photo_4886589.html","width":130,"caption":"","height":130});
															thumbnails[4942114] = clik.newPhoto({"id":4942114,"src":"DSC_5135_thumb.jpg","galleries_id":201820,"server_id":15,"link":"photo_4942114.html","width":130,"caption":"","height":130});
															thumbnails[4942121] = clik.newPhoto({"id":4942121,"src":"DSC_5535_thumb.jpg","galleries_id":281128,"server_id":15,"link":"photo_4942121.html","width":130,"caption":"","height":130});
															thumbnails[4942122] = clik.newPhoto({"id":4942122,"src":"DSC_5770-1_thumb.jpg","galleries_id":281128,"server_id":15,"link":"photo_4942122.html","width":130,"caption":"","height":130});
															thumbnails[4942123] = clik.newPhoto({"id":4942123,"src":"DSC_5897_thumb.jpg","galleries_id":281128,"server_id":15,"link":"photo_4942123.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[278663] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Anthony & Heidi","link":"gallery_278663.html","maxRecords":0.0,"photoIDs":[4886207.0,4886209.0,4886211.0,4886213.0,4886218.0,4886223.0,4886231.0,4886236.0,4886243.0,4886246.0,4886253.0,4886300.0],"skipIndex":0,"section_code":"gallery","featured_images":"4886300,4886253,4886246,4886243,4886236,4886231,4886223,4886218,4886213,4886211","id":278663,"singleSection":false});				  						galleries[278634] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Darren & Nicola","link":"gallery_278634.html","maxRecords":0.0,"photoIDs":[4885919.0,4885933.0,4885988.0,4886014.0,4886019.0,4886023.0,4886025.0,4886027.0,4886030.0,4886035.0,4886045.0,4886317.0],"skipIndex":0,"section_code":"gallery","featured_images":"4886317,4886045,4886035,4886030,4886027,4886025,4886023,4886019,4886014,4885988","id":278634,"singleSection":false});				  						galleries[210379] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Dave & Viv","link":"gallery_210379.html","maxRecords":0.0,"photoIDs":[3432322.0,3432323.0,3432324.0,3432328.0,3432329.0,3432336.0,3432339.0,3432341.0,3433201.0,3433227.0,3433228.0,3433232.0],"skipIndex":0,"section_code":"gallery","featured_images":3433228.0,"id":210379,"singleSection":false});				  						galleries[210376] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Gareth & Rebecca","link":"gallery_210376.html","maxRecords":0.0,"photoIDs":[3433471.0,3433484.0,3433486.0,3433492.0,3433495.0,3435951.0,3435955.0,3435958.0,3435960.0,3435961.0,3435964.0],"skipIndex":0,"section_code":"gallery","featured_images":3435964.0,"id":210376,"singleSection":false});				  						galleries[281128] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Lee & Laura","link":"gallery_281128.html","maxRecords":0.0,"photoIDs":[4942121.0,4942122.0,4942123.0],"skipIndex":0,"section_code":"gallery","featured_images":"4942123,4942122,4942121","id":281128,"singleSection":false});				  						galleries[210367] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Paul & Michelle","link":"gallery_210367.html","maxRecords":0.0,"photoIDs":[3432277.0,3432288.0,3432307.0,3432309.0],"skipIndex":0,"section_code":"gallery","featured_images":3432277.0,"id":210367,"singleSection":false});				  						galleries[210375] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Tyfion & Tracy","link":"gallery_210375.html","maxRecords":0.0,"photoIDs":[3435992.0,3435996.0,3435997.0,3435999.0,3436000.0,3436001.0,3436003.0,3436004.0,3436006.0,3436007.0,3436008.0,3436009.0],"skipIndex":0,"section_code":"gallery","featured_images":3436000.0,"id":210375,"singleSection":false});				  						galleries[278679] = clik.newGallery({"parentGallery":210370,"usePopups":false,"title":"Warren & Silvi","link":"gallery_278679.html","maxRecords":0.0,"photoIDs":[4886562.0,4886567.0,4886572.0,4886578.0,4886583.0,4886586.0,4886589.0],"skipIndex":0,"section_code":"gallery","featured_images":"4886589,4886586,4886583,4886578,4886572,4886567,4886562","id":278679,"singleSection":false});				  						galleries[210370] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings ","link":"gallery_210370.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3436000,3435964,3433228,3432277","id":210370,"singleSection":false});				  						galleries[201820] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_201820.html","maxRecords":0.0,"photoIDs":[3438190.0,3438192.0,3438196.0,3438208.0,3438211.0,3438250.0,3438253.0,3438256.0,3439295.0,3439300.0,3439303.0,4942114.0],"skipIndex":0,"section_code":"gallery","featured_images":3439300.0,"id":201820,"singleSection":false});				  						galleries[209619] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"gallery_209619.html","maxRecords":0.0,"photoIDs":[3437013.0,3437018.0,3438599.0,3438600.0,3438601.0,3439314.0],"skipIndex":0,"section_code":"gallery","featured_images":3438600.0,"id":209619,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4942123,4942122,4942121,4942114,4886589,4886586,4886583,4886578,4886572,4886567,4886562,4886317,4886300,4886253,4886246,4886243,4886236,4886231,4886223,4886218,4886213,4886211,4886209,4886207,4886045,4886035,4886030,4886027,4886025,4886023,4886019,4886014,4885988,4885933,4885919,3439314,3439303,3439300,3439295,3438601,3438600,3438599,3438256,3438253,3438250,3438211,3438208,3438196,3438192,3438190';
imageSets[2] = '3439300,3438600,3436000,3435964,3433228,3432277';
imageSets[3] = '4942123,4942122,4942121,4942114,4886589,4886586,4886583,4886578,4886572,4886567,4886562,4886317,4886300,4886253,4886246,4886243,4886236,4886231,4886223,4886218,4886213,4886211,4886209,4886207,4886045,4886035,4886030,4886027,4886025,4886023,4886019,4886014,4885988,4885933,4885919,3439314,3439303,3439300,3439295,3438601,3438600,3438599,3438256,3438253,3438250,3438211,3438208,3438196,3438192,3438190';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/DavidMear/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/DavidMear/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 && backgrounds[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 = '.: ' + 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>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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 += '<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;
	}
}

			

