window.thumbnails = {};
															thumbnails[5922717] = clik.newPhoto({"id":5922717,"src":"WebWed_1_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5922717.html","width":130,"caption":"","height":87});
															thumbnails[8763474] = clik.newPhoto({"id":8763474,"src":"KM1_thumb.JPG","galleries_id":257517,"server_id":18,"link":"photo_8763474.html","width":130,"caption":"","height":195});
															thumbnails[5922718] = clik.newPhoto({"id":5922718,"src":"WebWed_2_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5922718.html","width":130,"caption":"","height":163});
															thumbnails[8763476] = clik.newPhoto({"id":8763476,"src":"KM2_thumb.JPG","galleries_id":257517,"server_id":18,"link":"photo_8763476.html","width":130,"caption":"","height":195});
															thumbnails[5922719] = clik.newPhoto({"id":5922719,"src":"WebWed_3_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5922719.html","width":130,"caption":"","height":195});
															thumbnails[8763477] = clik.newPhoto({"id":8763477,"src":"KM3_thumb.JPG","galleries_id":257517,"server_id":18,"link":"photo_8763477.html","width":130,"caption":"","height":163});
															thumbnails[5922720] = clik.newPhoto({"id":5922720,"src":"WebWed_4_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5922720.html","width":130,"caption":"","height":87});
															thumbnails[8763479] = clik.newPhoto({"id":8763479,"src":"KM004_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_8763479.html","width":130,"caption":"","height":166});
															thumbnails[4418611] = clik.newPhoto({"id":4418611,"src":"Viol__002_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4418611.html","width":130,"caption":"","height":195});
															thumbnails[9035630] = clik.newPhoto({"id":9035630,"src":"MG_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9035630.html","width":130,"caption":"","height":195});
															thumbnails[9035631] = clik.newPhoto({"id":9035631,"src":"MG_3_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9035631.html","width":130,"caption":"","height":104});
															thumbnails[9035632] = clik.newPhoto({"id":9035632,"src":"MG_5_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9035632.html","width":130,"caption":"","height":163});
															thumbnails[9035633] = clik.newPhoto({"id":9035633,"src":"MG_2_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9035633.html","width":130,"caption":"","height":87});
															thumbnails[4388862] = clik.newPhoto({"id":4388862,"src":"Crucifixus_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4388862.html","width":130,"caption":"Crucifixus","height":195});
															thumbnails[4388885] = clik.newPhoto({"id":4388885,"src":"Requiem_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4388885.html","width":130,"caption":"Requiem","height":195});
															thumbnails[4388956] = clik.newPhoto({"id":4388956,"src":"Tryst1_thumb.JPG","galleries_id":257523,"server_id":18,"link":"photo_4388956.html","width":130,"caption":"","height":195});
															thumbnails[4388983] = clik.newPhoto({"id":4388983,"src":"10_Tinderbox_Homestead_thumb.JPG","galleries_id":257524,"server_id":18,"link":"photo_4388983.html","width":130,"caption":"","height":87});
															thumbnails[4388985] = clik.newPhoto({"id":4388985,"src":"10_Preoccupied_thumb.JPG","galleries_id":257517,"server_id":18,"link":"photo_4388985.html","width":130,"caption":"","height":187});
															thumbnails[4388999] = clik.newPhoto({"id":4388999,"src":"10_Elli_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4388999.html","width":130,"caption":"","height":87});
															thumbnails[4389002] = clik.newPhoto({"id":4389002,"src":"WeddPort1_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4389002.html","width":130,"caption":"","height":96});
															thumbnails[4403445] = clik.newPhoto({"id":4403445,"src":"10Windswept_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4403445.html","width":130,"caption":"","height":87});
															thumbnails[4388991] = clik.newPhoto({"id":4388991,"src":"20_Consecration_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4388991.html","width":130,"caption":"","height":194});
															thumbnails[4403111] = clik.newPhoto({"id":4403111,"src":"20Door_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4403111.html","width":130,"caption":"","height":195});
															thumbnails[4403224] = clik.newPhoto({"id":4403224,"src":"PErinn_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4403224.html","width":130,"caption":"","height":195});
															thumbnails[4403229] = clik.newPhoto({"id":4403229,"src":"20Swordplay_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403229.html","width":130,"caption":"","height":87});
															thumbnails[4403247] = clik.newPhoto({"id":4403247,"src":"20Falls_thumb.JPG","galleries_id":257523,"server_id":18,"link":"photo_4403247.html","width":130,"caption":"","height":195});
															thumbnails[4403446] = clik.newPhoto({"id":4403446,"src":"TWeb_thumb.jpg","galleries_id":257516,"server_id":18,"link":"photo_4403446.html","width":130,"caption":"","height":104});
															thumbnails[4637214] = clik.newPhoto({"id":4637214,"src":"20Wedding_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637214.html","width":130,"caption":"","height":87});
															thumbnails[4388865] = clik.newPhoto({"id":4388865,"src":"HWeb_thumb.jpg","galleries_id":257516,"server_id":18,"link":"photo_4388865.html","width":130,"caption":"","height":104});
															thumbnails[4388951] = clik.newPhoto({"id":4388951,"src":"Tunnel_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4388951.html","width":130,"caption":"","height":87});
															thumbnails[4388994] = clik.newPhoto({"id":4388994,"src":"30_Our_Lady_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4388994.html","width":130,"caption":"","height":195});
															thumbnails[4403125] = clik.newPhoto({"id":4403125,"src":"30Altar_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4403125.html","width":130,"caption":"","height":195});
															thumbnails[4403190] = clik.newPhoto({"id":4403190,"src":"30Gothic_thumb.JPG","galleries_id":257524,"server_id":18,"link":"photo_4403190.html","width":130,"caption":"","height":87});
															thumbnails[4403227] = clik.newPhoto({"id":4403227,"src":"40Keith_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4403227.html","width":130,"caption":"","height":195});
															thumbnails[4403249] = clik.newPhoto({"id":4403249,"src":"30Abbey_thumb.JPG","galleries_id":257523,"server_id":18,"link":"photo_4403249.html","width":130,"caption":"","height":195});
															thumbnails[4637215] = clik.newPhoto({"id":4637215,"src":"30Wedding_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637215.html","width":130,"caption":"","height":87});
															thumbnails[4388864] = clik.newPhoto({"id":4388864,"src":"40Maddie_thumb.jpg","galleries_id":257516,"server_id":18,"link":"photo_4388864.html","width":130,"caption":"","height":87});
															thumbnails[4388997] = clik.newPhoto({"id":4388997,"src":"40_St_Pat_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4388997.html","width":130,"caption":"","height":195});
															thumbnails[4398095] = clik.newPhoto({"id":4398095,"src":"40SHand_thumb.JPG","galleries_id":257517,"server_id":18,"link":"photo_4398095.html","width":130,"caption":"","height":195});
															thumbnails[4403128] = clik.newPhoto({"id":4403128,"src":"40Coffin_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4403128.html","width":130,"caption":"","height":195});
															thumbnails[4403232] = clik.newPhoto({"id":4403232,"src":"Christening_1_thumb.jpg","galleries_id":257519,"server_id":18,"link":"photo_4403232.html","width":130,"caption":"","height":87});
															thumbnails[4403253] = clik.newPhoto({"id":4403253,"src":"Bandstand__002_thumb.jpg","galleries_id":257523,"server_id":18,"link":"photo_4403253.html","width":130,"caption":"","height":195});
															thumbnails[4637216] = clik.newPhoto({"id":4637216,"src":"WeddPort2_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637216.html","width":130,"caption":"","height":118});
															thumbnails[4388998] = clik.newPhoto({"id":4388998,"src":"50_Sanctuary_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4388998.html","width":130,"caption":"","height":87});
															thumbnails[4403132] = clik.newPhoto({"id":4403132,"src":"50Flowers_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4403132.html","width":130,"caption":"","height":87});
															thumbnails[4403211] = clik.newPhoto({"id":4403211,"src":"70HouseP_thumb.jpg","galleries_id":257524,"server_id":18,"link":"photo_4403211.html","width":130,"caption":"","height":87});
															thumbnails[4403234] = clik.newPhoto({"id":4403234,"src":"60Bond_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403234.html","width":130,"caption":"","height":182});
															thumbnails[4403448] = clik.newPhoto({"id":4403448,"src":"50_Snowdonia_thumb.JPG","galleries_id":257523,"server_id":18,"link":"photo_4403448.html","width":130,"caption":"","height":98});
															thumbnails[4414096] = clik.newPhoto({"id":4414096,"src":"T2Web_thumb.jpg","galleries_id":257516,"server_id":18,"link":"photo_4414096.html","width":130,"caption":"","height":104});
															thumbnails[4637217] = clik.newPhoto({"id":4637217,"src":"50Wedding_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637217.html","width":130,"caption":"","height":195});
															thumbnails[4414098] = clik.newPhoto({"id":4414098,"src":"113_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4414098.html","width":130,"caption":"","height":87});
															thumbnails[4398082] = clik.newPhoto({"id":4398082,"src":"H2Web_thumb.jpg","galleries_id":257516,"server_id":18,"link":"photo_4398082.html","width":130,"caption":"","height":87});
															thumbnails[4388948] = clik.newPhoto({"id":4388948,"src":"Matthew_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4388948.html","width":130,"caption":"","height":87});
															thumbnails[4388950] = clik.newPhoto({"id":4388950,"src":"Charlotte_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4388950.html","width":130,"caption":"","height":87});
															thumbnails[4403139] = clik.newPhoto({"id":4403139,"src":"60Church_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4403139.html","width":130,"caption":"","height":87});
															thumbnails[4403257] = clik.newPhoto({"id":4403257,"src":"60TBeach_thumb.JPG","galleries_id":257523,"server_id":18,"link":"photo_4403257.html","width":130,"caption":"","height":87});
															thumbnails[4403264] = clik.newPhoto({"id":4403264,"src":"60Supper_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4403264.html","width":130,"caption":"","height":75});
															thumbnails[4637218] = clik.newPhoto({"id":4637218,"src":"FB_04_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637218.html","width":130,"caption":"","height":195});
															thumbnails[4388863] = clik.newPhoto({"id":4388863,"src":"Cheeky_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4388863.html","width":130,"caption":"","height":87});
															thumbnails[4388957] = clik.newPhoto({"id":4388957,"src":"Rattle_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4388957.html","width":130,"caption":"","height":87});
															thumbnails[4398079] = clik.newPhoto({"id":4398079,"src":"70Charlotte_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4398079.html","width":130,"caption":"","height":87});
															thumbnails[4403216] = clik.newPhoto({"id":4403216,"src":"STWeb_thumb.jpg","galleries_id":257524,"server_id":18,"link":"photo_4403216.html","width":130,"caption":"","height":87});
															thumbnails[4403238] = clik.newPhoto({"id":4403238,"src":"70Jacobite_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403238.html","width":130,"caption":"","height":195});
															thumbnails[4403259] = clik.newPhoto({"id":4403259,"src":"70Eucalypt_thumb.JPG","galleries_id":257523,"server_id":18,"link":"photo_4403259.html","width":130,"caption":"","height":87});
															thumbnails[4403266] = clik.newPhoto({"id":4403266,"src":"70Pauls_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4403266.html","width":130,"caption":"","height":87});
															thumbnails[4637220] = clik.newPhoto({"id":4637220,"src":"WeddPort3_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637220.html","width":130,"caption":"","height":214});
															thumbnails[4403574] = clik.newPhoto({"id":4403574,"src":"97_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403574.html","width":130,"caption":"","height":195});
															thumbnails[4388858] = clik.newPhoto({"id":4388858,"src":"90Maddie_thumb.jpg","galleries_id":257516,"server_id":18,"link":"photo_4388858.html","width":130,"caption":"","height":195});
															thumbnails[4403261] = clik.newPhoto({"id":4403261,"src":"80Presence_thumb.JPG","galleries_id":257523,"server_id":18,"link":"photo_4403261.html","width":130,"caption":"","height":91});
															thumbnails[4403267] = clik.newPhoto({"id":4403267,"src":"80Pugin_thumb.JPG","galleries_id":257522,"server_id":18,"link":"photo_4403267.html","width":130,"caption":"","height":87});
															thumbnails[4489887] = clik.newPhoto({"id":4489887,"src":"Gerard_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4489887.html","width":130,"caption":"","height":195});
															thumbnails[4637221] = clik.newPhoto({"id":4637221,"src":"WebWed_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637221.html","width":130,"caption":"","height":195});
															thumbnails[4403241] = clik.newPhoto({"id":4403241,"src":"85PalmSun_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403241.html","width":130,"caption":"","height":195});
															thumbnails[4403566] = clik.newPhoto({"id":4403566,"src":"86_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403566.html","width":130,"caption":"","height":87});
															thumbnails[4403567] = clik.newPhoto({"id":4403567,"src":"Baptism_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403567.html","width":130,"caption":"","height":87});
															thumbnails[4403568] = clik.newPhoto({"id":4403568,"src":"88_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403568.html","width":130,"caption":"","height":87});
															thumbnails[4403569] = clik.newPhoto({"id":4403569,"src":"Baptism_2_thumb.JPG","galleries_id":257519,"server_id":18,"link":"photo_4403569.html","width":130,"caption":"","height":87});
															thumbnails[4388866] = clik.newPhoto({"id":4388866,"src":"Teresa_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4388866.html","width":130,"caption":"","height":195});
															thumbnails[4403144] = clik.newPhoto({"id":4403144,"src":"70Prayer_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4403144.html","width":130,"caption":"","height":87});
															thumbnails[4403149] = clik.newPhoto({"id":4403149,"src":"80gravestone_thumb.JPG","galleries_id":257521,"server_id":18,"link":"photo_4403149.html","width":130,"caption":"","height":87});
															thumbnails[4637222] = clik.newPhoto({"id":4637222,"src":"90Wedding_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637222.html","width":130,"caption":"","height":87});
															thumbnails[4398091] = clik.newPhoto({"id":4398091,"src":"120Diana_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4398091.html","width":130,"caption":"","height":188});
															thumbnails[4398093] = clik.newPhoto({"id":4398093,"src":"150Flower_thumb.JPG","galleries_id":257516,"server_id":18,"link":"photo_4398093.html","width":130,"caption":"","height":195});
															thumbnails[4555579] = clik.newPhoto({"id":4555579,"src":"TK__002_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4555579.html","width":130,"caption":"","height":195});
															thumbnails[4495695] = clik.newPhoto({"id":4495695,"src":"PSean_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4495695.html","width":130,"caption":"","height":195});
															thumbnails[4594865] = clik.newPhoto({"id":4594865,"src":"PMaddie_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4594865.html","width":130,"caption":"","height":195});
															thumbnails[4637223] = clik.newPhoto({"id":4637223,"src":"FB_12_Mono_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637223.html","width":130,"caption":"","height":104});
															thumbnails[4594866] = clik.newPhoto({"id":4594866,"src":"PSimon_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4594866.html","width":130,"caption":"","height":195});
															thumbnails[4594867] = clik.newPhoto({"id":4594867,"src":"PAnna_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4594867.html","width":130,"caption":"","height":195});
															thumbnails[4594869] = clik.newPhoto({"id":4594869,"src":"PCaitlin_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_4594869.html","width":130,"caption":"","height":195});
															thumbnails[4637224] = clik.newPhoto({"id":4637224,"src":"WeddPort_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637224.html","width":130,"caption":"","height":87});
															thumbnails[4637225] = clik.newPhoto({"id":4637225,"src":"WeddPort6_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_4637225.html","width":130,"caption":"","height":88});
															thumbnails[5181243] = clik.newPhoto({"id":5181243,"src":"WeddPort7_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5181243.html","width":130,"caption":"","height":124});
															thumbnails[5181245] = clik.newPhoto({"id":5181245,"src":"WeddPort8_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5181245.html","width":130,"caption":"","height":154});
															thumbnails[5181246] = clik.newPhoto({"id":5181246,"src":"WeddPort4_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5181246.html","width":130,"caption":"","height":110});
															thumbnails[5181247] = clik.newPhoto({"id":5181247,"src":"WeddPort5_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5181247.html","width":130,"caption":"","height":137});
															thumbnails[5453038] = clik.newPhoto({"id":5453038,"src":"FB_14_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453038.html","width":130,"caption":"","height":195});
															thumbnails[5453051] = clik.newPhoto({"id":5453051,"src":"iPh_2_2_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453051.html","width":130,"caption":"","height":195});
															thumbnails[5453061] = clik.newPhoto({"id":5453061,"src":"FB13Mono_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453061.html","width":130,"caption":"","height":163});
															thumbnails[5453068] = clik.newPhoto({"id":5453068,"src":"FB_10_Crop_2_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453068.html","width":130,"caption":"","height":195});
															thumbnails[5453079] = clik.newPhoto({"id":5453079,"src":"DANCE_HDR_FINAL_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453079.html","width":130,"caption":"","height":195});
															thumbnails[5453085] = clik.newPhoto({"id":5453085,"src":"FB02_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453085.html","width":130,"caption":"","height":163});
															thumbnails[5453091] = clik.newPhoto({"id":5453091,"src":"FB19Cr_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453091.html","width":130,"caption":"","height":163});
															thumbnails[9035636] = clik.newPhoto({"id":9035636,"src":"MG_1_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_9035636.html","width":130,"caption":"","height":163});
															thumbnails[5453096] = clik.newPhoto({"id":5453096,"src":"HDRCars_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_5453096.html","width":130,"caption":"","height":195});
															thumbnails[9035634] = clik.newPhoto({"id":9035634,"src":"MG_4_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9035634.html","width":130,"caption":"","height":195});
															thumbnails[9035637] = clik.newPhoto({"id":9035637,"src":"MG_8_thumb.jpg","galleries_id":257517,"server_id":18,"link":"photo_9035637.html","width":130,"caption":"","height":163});
															thumbnails[9035635] = clik.newPhoto({"id":9035635,"src":"MG_9_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9035635.html","width":130,"caption":"","height":163});
															thumbnails[9035638] = clik.newPhoto({"id":9035638,"src":"MG_7_thumb.jpg","galleries_id":257519,"server_id":18,"link":"photo_9035638.html","width":130,"caption":"","height":104});
															thumbnails[9035639] = clik.newPhoto({"id":9035639,"src":"MG_6_thumb.jpg","galleries_id":257519,"server_id":18,"link":"photo_9035639.html","width":130,"caption":"","height":195});
															thumbnails[9045920] = clik.newPhoto({"id":9045920,"src":"Wed_1_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9045920.html","width":130,"caption":"","height":195});
															thumbnails[9045925] = clik.newPhoto({"id":9045925,"src":"Wed2_thumb.jpg","galleries_id":257520,"server_id":18,"link":"photo_9045925.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[257516] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Babies & Children","link":"gallery_257516.html","maxRecords":0.0,"photoIDs":[4403445.0,4403446.0,4388865.0,4388864.0,4414096.0,4414098.0,4398082.0,4388948.0,4388950.0,4388863.0,4388957.0,4398079.0,4388858.0,4388866.0,4398091.0,4398093.0],"skipIndex":0,"section_code":"gallery","featured_images":4403446.0,"id":257516,"singleSection":false});				  						galleries[257519] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special Events","link":"gallery_257519.html","maxRecords":0.0,"photoIDs":[4388999.0,4403229.0,4388951.0,4403232.0,4403234.0,4403238.0,4403574.0,4403241.0,4403566.0,4403567.0,4403568.0,4403569.0,9035638.0,9035639.0],"skipIndex":0,"section_code":"gallery","featured_images":4388999.0,"id":257519,"singleSection":false});				  						galleries[257520] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_257520.html","maxRecords":0.0,"photoIDs":[5922717.0,5922718.0,5922719.0,5922720.0,9035630.0,9035631.0,9035632.0,9035633.0,4389002.0,4637214.0,4637215.0,4637216.0,4637217.0,4637218.0,4637220.0,4637221.0,4637222.0,4637223.0,4637224.0,4637225.0,5181243.0,5181245.0,5181246.0,5181247.0,5453038.0,5453051.0,5453061.0,5453068.0,5453079.0,5453085.0,5453091.0,5453096.0,9035634.0,9035635.0,9045920.0,9045925.0],"skipIndex":0,"section_code":"gallery","featured_images":"4637223,4389002","id":257520,"singleSection":false});				  						galleries[257524] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"House Portraits","link":"gallery_257524.html","maxRecords":0.0,"photoIDs":[4388983.0,4403190.0,4403211.0,4403216.0],"skipIndex":0,"section_code":"gallery","featured_images":4388983.0,"id":257524,"singleSection":false});				  						galleries[257523] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wall Art","link":"gallery_257523.html","maxRecords":0.0,"photoIDs":[4388956.0,4403247.0,4403249.0,4403253.0,4403448.0,4403257.0,4403259.0,4403261.0],"skipIndex":0,"section_code":"gallery","featured_images":4388956.0,"id":257523,"singleSection":false});				  						galleries[257521] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Final Farewells","link":"gallery_257521.html","maxRecords":0.0,"photoIDs":[4388885.0,4403111.0,4403125.0,4403128.0,4403132.0,4403139.0,4403144.0,4403149.0],"skipIndex":0,"section_code":"gallery","featured_images":4388885.0,"id":257521,"singleSection":false});				  						galleries[257522] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Religious Art","link":"gallery_257522.html","maxRecords":0.0,"photoIDs":[4388862.0,4388991.0,4388994.0,4388997.0,4388998.0,4403264.0,4403266.0,4403267.0],"skipIndex":0,"section_code":"gallery","featured_images":4388862.0,"id":257522,"singleSection":false});				  						galleries[257517] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_257517.html","maxRecords":0.0,"photoIDs":[8763474.0,8763476.0,8763477.0,8763479.0,4418611.0,4388985.0,4403224.0,4403227.0,4398095.0,4489887.0,4555579.0,4495695.0,4594865.0,4594866.0,4594867.0,4594869.0,9035636.0,9035637.0],"skipIndex":0,"section_code":"gallery","featured_images":4418611.0,"id":257517,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[231729] = '8763474,4389002,4388885,4388862,4637223,5181243';
imageSets[1] = '8763474,9035631,9035633,4403445,4388885,4403446,4403247,4403448,4403257,4403139,4403261,4555579,4637223,9035638';
imageSets[2] = '4418611,4389002,4388999,4388983,4388956,4388885,4388862,4403446,4637223';
imageSets[3] = '4388865,4388864,4388858,4388866';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mishka/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mishka/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mishka/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mishka/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mishka/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/mishka/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mishka/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mishka/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 = 'Mishka Góra, Writer and Photographer: ' + 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.item_price !== '') {
			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;
	}
}

			

