window.thumbnails = {};
															thumbnails[3862279] = clik.newPhoto({"id":3862279,"src":"DSC_0398_as2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":102});
															thumbnails[3862283] = clik.newPhoto({"id":3862283,"src":"composite_as_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":60});
															thumbnails[3862294] = clik.newPhoto({"id":3862294,"src":"DSC_0392_as_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":94});
															thumbnails[5446672] = clik.newPhoto({"id":5446672,"src":"DSC_2288bs_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":118});
															thumbnails[3771845] = clik.newPhoto({"id":3771845,"src":"DSC_0398as_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3771845.html","width":130,"caption":"","height":171});
															thumbnails[3771981] = clik.newPhoto({"id":3771981,"src":"DSC_0484_as_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3771981.html","width":130,"caption":"","height":163});
															thumbnails[4554033] = clik.newPhoto({"id":4554033,"src":"DSC_8275as_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_4554033.html","width":130,"caption":"","height":173});
															thumbnails[4553977] = clik.newPhoto({"id":4553977,"src":"dsc_7853s_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_4553977.html","width":130,"caption":"","height":179});
															thumbnails[4554031] = clik.newPhoto({"id":4554031,"src":"DSC_8257bs_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_4554031.html","width":130,"caption":"","height":174});
															thumbnails[4553971] = clik.newPhoto({"id":4553971,"src":"DSC_7831bs_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_4553971.html","width":130,"caption":"","height":107});
															thumbnails[5368172] = clik.newPhoto({"id":5368172,"src":"DSC_1776a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5368172.html","width":130,"caption":"","height":105});
															thumbnails[4553974] = clik.newPhoto({"id":4553974,"src":"2pearls2bbs_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_4553974.html","width":130,"caption":"","height":91});
															thumbnails[4642800] = clik.newPhoto({"id":4642800,"src":"1463_tm90_bws_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4642800.html","width":130,"caption":"","height":87});
															thumbnails[5253866] = clik.newPhoto({"id":5253866,"src":"DSC_1170as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5253866.html","width":130,"caption":"","height":109});
															thumbnails[6389523] = clik.newPhoto({"id":6389523,"src":"000013_bw_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389523.html","width":130,"caption":"","height":86});
															thumbnails[4553972] = clik.newPhoto({"id":4553972,"src":"DSC_8242as_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_4553972.html","width":130,"caption":"","height":108});
															thumbnails[3771723] = clik.newPhoto({"id":3771723,"src":"necklace3_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_3771723.html","width":130,"caption":"","height":86});
															thumbnails[4554456] = clik.newPhoto({"id":4554456,"src":"bluestone_bs_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_4554456.html","width":130,"caption":"","height":84});
															thumbnails[5368176] = clik.newPhoto({"id":5368176,"src":"DSC_1788a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5368176.html","width":130,"caption":"","height":105});
															thumbnails[5211976] = clik.newPhoto({"id":5211976,"src":"DSC_0949bs_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5211976.html","width":130,"caption":"","height":134});
															thumbnails[4302603] = clik.newPhoto({"id":4302603,"src":"5941_2_tm90ds_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4302603.html","width":130,"caption":"","height":75});
															thumbnails[3789851] = clik.newPhoto({"id":3789851,"src":"ring_drips1as_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_3789851.html","width":130,"caption":"","height":89});
															thumbnails[6389561] = clik.newPhoto({"id":6389561,"src":"0016_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389561.html","width":130,"caption":"","height":87});
															thumbnails[6389702] = clik.newPhoto({"id":6389702,"src":"000022_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6389702.html","width":130,"caption":"","height":113});
															thumbnails[6389805] = clik.newPhoto({"id":6389805,"src":"page1ss_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6389805.html","width":130,"caption":"","height":92});
															thumbnails[5368179] = clik.newPhoto({"id":5368179,"src":"DSC_1795a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5368179.html","width":130,"caption":"","height":105});
															thumbnails[3862270] = clik.newPhoto({"id":3862270,"src":"DSC_0060_as2_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3862270.html","width":130,"caption":"","height":98});
															thumbnails[4642930] = clik.newPhoto({"id":4642930,"src":"1255_tm80_bws_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4642930.html","width":130,"caption":"","height":87});
															thumbnails[5253861] = clik.newPhoto({"id":5253861,"src":"DSC_0467as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5253861.html","width":130,"caption":"","height":160});
															thumbnails[6389566] = clik.newPhoto({"id":6389566,"src":"000038_bw_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389566.html","width":130,"caption":"","height":87});
															thumbnails[6389812] = clik.newPhoto({"id":6389812,"src":"page3ss_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6389812.html","width":130,"caption":"","height":90});
															thumbnails[5444268] = clik.newPhoto({"id":5444268,"src":"DSC_1993as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5444268.html","width":130,"caption":"","height":186});
															thumbnails[5368181] = clik.newPhoto({"id":5368181,"src":"DSC_1807a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5368181.html","width":130,"caption":"","height":105});
															thumbnails[3877404] = clik.newPhoto({"id":3877404,"src":"dsc_0110_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3877404.html","width":130,"caption":"","height":194});
															thumbnails[4642938] = clik.newPhoto({"id":4642938,"src":"4810_5_tm80_bws_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4642938.html","width":130,"caption":"","height":195});
															thumbnails[6389568] = clik.newPhoto({"id":6389568,"src":"000026_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389568.html","width":130,"caption":"","height":89});
															thumbnails[6389874] = clik.newPhoto({"id":6389874,"src":"000129_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6389874.html","width":130,"caption":"","height":131});
															thumbnails[5368183] = clik.newPhoto({"id":5368183,"src":"DSC_1792a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5368183.html","width":130,"caption":"","height":105});
															thumbnails[5253887] = clik.newPhoto({"id":5253887,"src":"DSC_1090s_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5253887.html","width":130,"caption":"","height":169});
															thumbnails[3684101] = clik.newPhoto({"id":3684101,"src":"dsc_0212_s_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3684101.html","width":130,"caption":"","height":194});
															thumbnails[4642945] = clik.newPhoto({"id":4642945,"src":"DSC_7049_bw3s_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4642945.html","width":130,"caption":"","height":195});
															thumbnails[6389570] = clik.newPhoto({"id":6389570,"src":"000043_bw_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389570.html","width":130,"caption":"","height":89});
															thumbnails[6389882] = clik.newPhoto({"id":6389882,"src":"page4ss_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6389882.html","width":130,"caption":"","height":87});
															thumbnails[5368185] = clik.newPhoto({"id":5368185,"src":"DSC_1900a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5368185.html","width":130,"caption":"","height":94});
															thumbnails[5217209] = clik.newPhoto({"id":5217209,"src":"DSC_1036a_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5217209.html","width":130,"caption":"","height":195});
															thumbnails[3877380] = clik.newPhoto({"id":3877380,"src":"aDSC_0201_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3877380.html","width":130,"caption":"","height":194});
															thumbnails[4642967] = clik.newPhoto({"id":4642967,"src":"4798_5_tm80_bws_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4642967.html","width":130,"caption":"","height":195});
															thumbnails[6389571] = clik.newPhoto({"id":6389571,"src":"000058_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389571.html","width":130,"caption":"","height":86});
															thumbnails[6399739] = clik.newPhoto({"id":6399739,"src":"000012_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399739.html","width":130,"caption":"","height":183});
															thumbnails[5368187] = clik.newPhoto({"id":5368187,"src":"DSC_1850a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5368187.html","width":130,"caption":"","height":152});
															thumbnails[5097842] = clik.newPhoto({"id":5097842,"src":"347_3_tm80_bw_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_5097842.html","width":130,"caption":"","height":85});
															thumbnails[5001386] = clik.newPhoto({"id":5001386,"src":"Ilaria1_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5001386.html","width":130,"caption":"","height":206});
															thumbnails[3877390] = clik.newPhoto({"id":3877390,"src":"aDSC_0338_thumb.JPG","galleries_id":225065,"server_id":15,"link":"photo_3877390.html","width":130,"caption":"","height":152});
															thumbnails[6389576] = clik.newPhoto({"id":6389576,"src":"000056_bw_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389576.html","width":130,"caption":"","height":95});
															thumbnails[6399742] = clik.newPhoto({"id":6399742,"src":"000029_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399742.html","width":130,"caption":"","height":181});
															thumbnails[5097845] = clik.newPhoto({"id":5097845,"src":"302_4_tm70_bw_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_5097845.html","width":130,"caption":"","height":86});
															thumbnails[3771813] = clik.newPhoto({"id":3771813,"src":"DSC_2346s_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_3771813.html","width":130,"caption":"","height":195});
															thumbnails[3771695] = clik.newPhoto({"id":3771695,"src":"sequence2_s1_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3771695.html","width":130,"caption":"","height":124});
															thumbnails[5217330] = clik.newPhoto({"id":5217330,"src":"DSC_0257_3ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5217330.html","width":130,"caption":"","height":112});
															thumbnails[6389618] = clik.newPhoto({"id":6389618,"src":"000051_bw_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389618.html","width":130,"caption":"","height":87});
															thumbnails[6399744] = clik.newPhoto({"id":6399744,"src":"041_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399744.html","width":130,"caption":"","height":185});
															thumbnails[5217291] = clik.newPhoto({"id":5217291,"src":"DSC_0989_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5217291.html","width":130,"caption":"","height":117});
															thumbnails[5097850] = clik.newPhoto({"id":5097850,"src":"337_3_tm80_bw_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_5097850.html","width":130,"caption":"","height":86});
															thumbnails[3771991] = clik.newPhoto({"id":3771991,"src":"24x36_c_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3771991.html","width":130,"caption":"","height":194});
															thumbnails[3771817] = clik.newPhoto({"id":3771817,"src":"DSC_0465as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_3771817.html","width":130,"caption":"","height":87});
															thumbnails[6389580] = clik.newPhoto({"id":6389580,"src":"000065_bw_3Ds_thumb.jpg","galleries_id":353275,"server_id":15,"link":"photo_6389580.html","width":130,"caption":"","height":88});
															thumbnails[6399747] = clik.newPhoto({"id":6399747,"src":"000031_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399747.html","width":130,"caption":"","height":168});
															thumbnails[5444290] = clik.newPhoto({"id":5444290,"src":"DSC_1989s_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5444290.html","width":130,"caption":"","height":195});
															thumbnails[5223913] = clik.newPhoto({"id":5223913,"src":"DSC_1059_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5223913.html","width":130,"caption":"","height":142});
															thumbnails[3771388] = clik.newPhoto({"id":3771388,"src":"necklace2_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3771388.html","width":130,"caption":"","height":198});
															thumbnails[4643116] = clik.newPhoto({"id":4643116,"src":"1033_tm80_bws_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4643116.html","width":130,"caption":"","height":87});
															thumbnails[5446681] = clik.newPhoto({"id":5446681,"src":"DSC_2288bs1_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_5446681.html","width":130,"caption":"","height":118});
															thumbnails[6399796] = clik.newPhoto({"id":6399796,"src":"000014_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399796.html","width":130,"caption":"","height":136});
															thumbnails[3771690] = clik.newPhoto({"id":3771690,"src":"necklace1_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_3771690.html","width":130,"caption":"","height":130});
															thumbnails[4643170] = clik.newPhoto({"id":4643170,"src":"145_tm80_bw2s_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_4643170.html","width":130,"caption":"","height":87});
															thumbnails[5446674] = clik.newPhoto({"id":5446674,"src":"DSC_2275s_thumb.jpg","galleries_id":230044,"server_id":15,"link":"photo_5446674.html","width":130,"caption":"","height":86});
															thumbnails[5446698] = clik.newPhoto({"id":5446698,"src":"DSC_2221_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5446698.html","width":130,"caption":"","height":108});
															thumbnails[6399804] = clik.newPhoto({"id":6399804,"src":"000048_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399804.html","width":130,"caption":"","height":182});
															thumbnails[5444313] = clik.newPhoto({"id":5444313,"src":"DSC_2093as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5444313.html","width":130,"caption":"","height":141});
															thumbnails[5097856] = clik.newPhoto({"id":5097856,"src":"312_3_tm70_bw_thumb.jpg","galleries_id":267840,"server_id":15,"link":"photo_5097856.html","width":130,"caption":"","height":86});
															thumbnails[3771804] = clik.newPhoto({"id":3771804,"src":"DSC_0447as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_3771804.html","width":130,"caption":"","height":194});
															thumbnails[5368256] = clik.newPhoto({"id":5368256,"src":"family4s_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_5368256.html","width":130,"caption":"","height":124});
															thumbnails[5446713] = clik.newPhoto({"id":5446713,"src":"DSC_2267b_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_5446713.html","width":130,"caption":"","height":113});
															thumbnails[6399809] = clik.newPhoto({"id":6399809,"src":"000041_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399809.html","width":130,"caption":"","height":158});
															thumbnails[3684087] = clik.newPhoto({"id":3684087,"src":"DSC_0513a_ss_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_3684087.html","width":130,"caption":"","height":194});
															thumbnails[5256820] = clik.newPhoto({"id":5256820,"src":"blue_drops_s_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_5256820.html","width":130,"caption":"","height":65});
															thumbnails[6388813] = clik.newPhoto({"id":6388813,"src":"DSC_2410_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388813.html","width":130,"caption":"","height":110});
															thumbnails[6399811] = clik.newPhoto({"id":6399811,"src":"000020_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399811.html","width":130,"caption":"","height":154});
															thumbnails[5444256] = clik.newPhoto({"id":5444256,"src":"DSC_2038as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5444256.html","width":130,"caption":"","height":179});
															thumbnails[5256822] = clik.newPhoto({"id":5256822,"src":"montage_s_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_5256822.html","width":130,"caption":"","height":97});
															thumbnails[6388833] = clik.newPhoto({"id":6388833,"src":"DSC_4037_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388833.html","width":130,"caption":"","height":89});
															thumbnails[6399836] = clik.newPhoto({"id":6399836,"src":"000031_bw_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399836.html","width":130,"caption":"","height":142});
															thumbnails[5444263] = clik.newPhoto({"id":5444263,"src":"DSC_1979as_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5444263.html","width":130,"caption":"","height":188});
															thumbnails[6388853] = clik.newPhoto({"id":6388853,"src":"DSC_5486_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388853.html","width":130,"caption":"","height":97});
															thumbnails[6399854] = clik.newPhoto({"id":6399854,"src":"000035_3Das_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6399854.html","width":130,"caption":"","height":90});
															thumbnails[8932772] = clik.newPhoto({"id":8932772,"src":"DSC_0069cs_thumb.jpg","galleries_id":225065,"server_id":15,"link":"photo_8932772.html","width":130,"caption":"","height":135});
															thumbnails[3849554] = clik.newPhoto({"id":3849554,"src":"dsc_3705s_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_3849554.html","width":130,"caption":"","height":93});
															thumbnails[6388856] = clik.newPhoto({"id":6388856,"src":"DSC_5495_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388856.html","width":130,"caption":"","height":83});
															thumbnails[6784084] = clik.newPhoto({"id":6784084,"src":"000007_bw_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6784084.html","width":130,"caption":"","height":129});
															thumbnails[3857314] = clik.newPhoto({"id":3857314,"src":"DSC_0400s_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_3857314.html","width":130,"caption":"","height":86});
															thumbnails[6388857] = clik.newPhoto({"id":6388857,"src":"DSC_5497_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388857.html","width":130,"caption":"","height":120});
															thumbnails[6784094] = clik.newPhoto({"id":6784094,"src":"000056_bw2_3Ds_thumb.jpg","galleries_id":353287,"server_id":15,"link":"photo_6784094.html","width":130,"caption":"","height":172});
															thumbnails[3771819] = clik.newPhoto({"id":3771819,"src":"DSC_0477as1_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_3771819.html","width":130,"caption":"","height":92});
															thumbnails[6388858] = clik.newPhoto({"id":6388858,"src":"DSC_5506_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388858.html","width":130,"caption":"","height":104});
															thumbnails[5546607] = clik.newPhoto({"id":5546607,"src":"DSC_2639cs_thumb.jpg","galleries_id":225064,"server_id":15,"link":"photo_5546607.html","width":130,"caption":"","height":195});
															thumbnails[6388867] = clik.newPhoto({"id":6388867,"src":"DSC_5515_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388867.html","width":130,"caption":"","height":123});
															thumbnails[6388900] = clik.newPhoto({"id":6388900,"src":"DSC_5539a_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388900.html","width":130,"caption":"","height":112});
															thumbnails[6388902] = clik.newPhoto({"id":6388902,"src":"DSC_5549_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388902.html","width":130,"caption":"","height":93});
															thumbnails[6388920] = clik.newPhoto({"id":6388920,"src":"DSC_5565_3Ds_thumb.jpg","galleries_id":294383,"server_id":15,"link":"photo_6388920.html","width":130,"caption":"","height":105});
															thumbnails[3914088] = clik.newPhoto({"id":3914088,"src":"DSC_0196as_thumb.jpg","galleries_id":237602,"server_id":15,"link":"photo_3914088.html","width":130,"caption":"","height":87});
															thumbnails[6635669] = clik.newPhoto({"id":6635669,"src":"invite_small_a_thumb.jpg","galleries_id":353669,"server_id":15,"link":"photo_6635669.html","width":130,"caption":"","height":184});
															thumbnails[6783573] = clik.newPhoto({"id":6783573,"src":"DSC_6688s_thumb.jpg","galleries_id":353669,"server_id":15,"link":"photo_6783573.html","width":130,"caption":"","height":86});
															thumbnails[6783896] = clik.newPhoto({"id":6783896,"src":"DSC_6694s_thumb.jpg","galleries_id":353669,"server_id":15,"link":"photo_6783896.html","width":130,"caption":"","height":86});
															thumbnails[6783932] = clik.newPhoto({"id":6783932,"src":"DSC_6699s_thumb.jpg","galleries_id":353669,"server_id":15,"link":"photo_6783932.html","width":130,"caption":"","height":86});
															thumbnails[6783938] = clik.newPhoto({"id":6783938,"src":"DSC_6701s_thumb.jpg","galleries_id":353669,"server_id":15,"link":"photo_6783938.html","width":130,"caption":"","height":86});
															thumbnails[3923161] = clik.newPhoto({"id":3923161,"src":"_ZA03165s_thumb.jpg","galleries_id":237602,"server_id":15,"link":"photo_3923161.html","width":130,"caption":"","height":175});
															thumbnails[3923165] = clik.newPhoto({"id":3923165,"src":"_ZA03164s_thumb.jpg","galleries_id":237602,"server_id":15,"link":"photo_3923165.html","width":130,"caption":"","height":86});
															thumbnails[3923182] = clik.newPhoto({"id":3923182,"src":"_ZA03167s_thumb.jpg","galleries_id":237602,"server_id":15,"link":"photo_3923182.html","width":130,"caption":"","height":80});
															thumbnails[3928209] = clik.newPhoto({"id":3928209,"src":"_ZA03161as_thumb.jpg","galleries_id":237602,"server_id":15,"link":"photo_3928209.html","width":130,"caption":"","height":83});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[353287] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3D people","link":"gallery_353287.html","maxRecords":0.0,"photoIDs":[6389702.0,6389805.0,6389812.0,6389874.0,6389882.0,6399739.0,6399742.0,6399744.0,6399747.0,6399796.0,6399804.0,6399809.0,6399811.0,6399836.0,6399854.0,6784084.0,6784094.0],"skipIndex":0,"section_code":"gallery","featured_images":6389874.0,"id":353287,"singleSection":false});				  						galleries[353275] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3D landscapes","link":"gallery_353275.html","maxRecords":0.0,"photoIDs":[6389523.0,6389561.0,6389566.0,6389568.0,6389570.0,6389571.0,6389576.0,6389618.0,6389580.0],"skipIndex":0,"section_code":"gallery","featured_images":6389576.0,"id":353275,"singleSection":false});				  						galleries[353669] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3D!","link":"section289390_353669.html","maxRecords":0.0,"photoIDs":[6635669.0,6783573.0,6783896.0,6783932.0,6783938.0],"skipIndex":0,"section_code":"section289390","featured_images":6635669.0,"id":353669,"singleSection":false});				  						galleries[294383] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"3D Jewellery","link":"gallery_294383.html","maxRecords":0.0,"photoIDs":[5368172.0,5368176.0,5368179.0,5368181.0,5368183.0,5368185.0,5368187.0,5217330.0,5217291.0,5223913.0,5446698.0,5446713.0,6388813.0,6388833.0,6388853.0,6388856.0,6388857.0,6388858.0,6388867.0,6388900.0,6388902.0,6388920.0],"skipIndex":0,"section_code":"gallery","featured_images":5217291.0,"id":294383,"singleSection":false});				  						galleries[353271] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2D photos","link":"gallery_353271.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5217209,4642938,4553977,3771695,3771690","id":353271,"singleSection":false});				  						galleries[230044] = clik.newGallery({"parentGallery":353271,"usePopups":false,"title":"Jewellery","link":"gallery_230044.html","maxRecords":0.0,"photoIDs":[4554033.0,4553977.0,4554031.0,4553971.0,4553974.0,4553972.0,3771723.0,4554456.0,3789851.0,5446681.0,5446674.0],"skipIndex":0,"section_code":"gallery","featured_images":4553977.0,"id":230044,"singleSection":false});				  						galleries[237602] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Perle d'Acqua","link":"section289390_237602.html","maxRecords":0.0,"photoIDs":[3914088.0,3923161.0,3923165.0,3923182.0,3928209.0],"skipIndex":0,"section_code":"section289390","featured_images":3923161.0,"id":237602,"singleSection":false});				  						galleries[225065] = clik.newGallery({"parentGallery":353271,"usePopups":false,"title":"Water drops","link":"gallery_225065.html","maxRecords":0.0,"photoIDs":[3771845.0,3771981.0,3862270.0,3877404.0,3684101.0,3877380.0,3877390.0,3771695.0,3771991.0,3771388.0,3771690.0,5368256.0,5256820.0,5256822.0,8932772.0],"skipIndex":0,"section_code":"gallery","featured_images":"3771695,3771690","id":225065,"singleSection":false});				  						galleries[267840] = clik.newGallery({"parentGallery":353271,"usePopups":false,"title":"Verona","link":"gallery_267840.html","maxRecords":0.0,"photoIDs":[4642800.0,4302603.0,4642930.0,4642938.0,4642945.0,4642967.0,5097842.0,5097845.0,5097850.0,4643116.0,4643170.0,5097856.0],"skipIndex":0,"section_code":"gallery","featured_images":4642938.0,"id":267840,"singleSection":false});				  						galleries[225064] = clik.newGallery({"parentGallery":353271,"usePopups":false,"title":"Portraits","link":"gallery_225064.html","maxRecords":0.0,"photoIDs":[5253866.0,5211976.0,5253861.0,5444268.0,5253887.0,5217209.0,5001386.0,3771813.0,3771817.0,5444290.0,5444313.0,3771804.0,3684087.0,5444256.0,5444263.0,3849554.0,3857314.0,3771819.0,5546607.0],"skipIndex":0,"section_code":"gallery","featured_images":5217209.0,"id":225064,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6389805,6389882';
imageSets[2] = '4553977,6635669,6389874,4642938,5217209,6389576,3771695,5217291,3923161,3771690';
imageSets[3] = '8932772,6784094,6784084,6783938,6783932,6783896,6783573,6635669,6399854,6399836,6399811,6399809,6399804,6399796,6399747,6399744,6399742,6399739,6389882,6389874,6389812,6389805,6389702,6389618,6389580,6389576,6389571,6389570,6389568,6389566,6389561,6389523,6388920,6388902,6388900,6388867,6388858,6388857,6388856,6388853,6388833,6388813,5546607,5446713,5446698,5446681,5446674,5446672,5444313,5444290';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/marcel/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/marcel/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/marcel/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/marcel/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/marcel/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/marcel/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/marcel/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/marcel/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 = 'marcel clemens 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>';
	}
				
				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;
	}
}

			

