window.thumbnails = {};
															thumbnails[2796587] = clik.newPhoto({"id":2796587,"src":"_DSC0542 copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2799413] = clik.newPhoto({"id":2799413,"src":"_DSC0541_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2796697] = clik.newPhoto({"id":2796697,"src":"_DSC0691 copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":70});
															thumbnails[3935894] = clik.newPhoto({"id":3935894,"src":"_DSC0031_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935894.html","width":130,"caption":"","height":86});
															thumbnails[3935896] = clik.newPhoto({"id":3935896,"src":"_DSC0034_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935896.html","width":130,"caption":"","height":127});
															thumbnails[3935898] = clik.newPhoto({"id":3935898,"src":"Birmingham_Cathedral_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935898.html","width":130,"caption":"","height":86});
															thumbnails[3935899] = clik.newPhoto({"id":3935899,"src":"Bottles_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935899.html","width":130,"caption":"","height":134});
															thumbnails[3935901] = clik.newPhoto({"id":3935901,"src":"Cannock_Chase_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935901.html","width":130,"caption":"","height":76});
															thumbnails[3935902] = clik.newPhoto({"id":3935902,"src":"Guitar_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935902.html","width":130,"caption":"","height":91});
															thumbnails[3935907] = clik.newPhoto({"id":3935907,"src":"Selfridges_Birmingham_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935907.html","width":130,"caption":"","height":86});
															thumbnails[3935908] = clik.newPhoto({"id":3935908,"src":"Sunset8_thumb.jpg","galleries_id":238737,"server_id":32,"link":"photo_3935908.html","width":130,"caption":"","height":87});
															thumbnails[3935926] = clik.newPhoto({"id":3935926,"src":"_DSC1666_copy_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935926.html","width":130,"caption":"","height":110});
															thumbnails[3935928] = clik.newPhoto({"id":3935928,"src":"_DSC1681_copy_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935928.html","width":130,"caption":"","height":86});
															thumbnails[3935933] = clik.newPhoto({"id":3935933,"src":"_DSC1681d_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935933.html","width":130,"caption":"","height":195});
															thumbnails[3935935] = clik.newPhoto({"id":3935935,"src":"_DSC1700_copy_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935935.html","width":130,"caption":"","height":86});
															thumbnails[3935942] = clik.newPhoto({"id":3935942,"src":"_DSC1713_copy_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935942.html","width":130,"caption":"","height":86});
															thumbnails[3935944] = clik.newPhoto({"id":3935944,"src":"_DSC1718_copy_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935944.html","width":130,"caption":"","height":86});
															thumbnails[3935948] = clik.newPhoto({"id":3935948,"src":"_DSC1718d1_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935948.html","width":130,"caption":"","height":195});
															thumbnails[3935949] = clik.newPhoto({"id":3935949,"src":"_DSC1719_copy_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935949.html","width":130,"caption":"","height":86});
															thumbnails[3935951] = clik.newPhoto({"id":3935951,"src":"_DSC1719d_thumb.jpg","galleries_id":238743,"server_id":32,"link":"photo_3935951.html","width":130,"caption":"","height":86});
															thumbnails[2783207] = clik.newPhoto({"id":2783207,"src":"_DSC0224adt copy1_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2783207.html","width":130,"caption":"","height":195});
															thumbnails[3935905] = clik.newPhoto({"id":3935905,"src":"Kitty_thumb.jpg","galleries_id":241008,"server_id":32,"link":"photo_3935905.html","width":130,"caption":"","height":95});
															thumbnails[2777930] = clik.newPhoto({"id":2777930,"src":"_DSC0239w1_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777930.html","width":130,"caption":"","height":87});
															thumbnails[2791607] = clik.newPhoto({"id":2791607,"src":"Justine - EPV00501_thumb.jpg","galleries_id":174606,"server_id":32,"link":"photo_2791607.html","width":130,"caption":"","height":196});
															thumbnails[9057916] = clik.newPhoto({"id":9057916,"src":"DogEPV0043_thumb.jpg","galleries_id":241008,"server_id":32,"link":"photo_9057916.html","width":260,"caption":"Marions Scotties","height":247});
															thumbnails[9088894] = clik.newPhoto({"id":9088894,"src":"wtc_top_Oil_Paint_2_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088894.html","width":260,"caption":"World Trade Centre - Rest In Peace","height":176});
															thumbnails[9046739] = clik.newPhoto({"id":9046739,"src":"_DSC3790_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046739.html","width":260,"caption":"Leo & Mom","height":173});
															thumbnails[2777932] = clik.newPhoto({"id":2777932,"src":"_DSC0240w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777932.html","width":130,"caption":"","height":195});
															thumbnails[9057920] = clik.newPhoto({"id":9057920,"src":"DogEPV0045_thumb.jpg","galleries_id":241008,"server_id":32,"link":"photo_9057920.html","width":260,"caption":"Marions Scotties","height":213});
															thumbnails[9088851] = clik.newPhoto({"id":9088851,"src":"_DSC2536_0122_Flower_3_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088851.html","width":260,"caption":"","height":343});
															thumbnails[9057903] = clik.newPhoto({"id":9057903,"src":"LOREN_DBE81FC7-1EC9-DFB6-09E025B266F7E3AB_thumb.jpg","galleries_id":174606,"server_id":32,"link":"photo_9057903.html","width":260,"caption":"","height":342});
															thumbnails[9046741] = clik.newPhoto({"id":9046741,"src":"_DSC3795_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046741.html","width":260,"caption":"","height":301});
															thumbnails[2777933] = clik.newPhoto({"id":2777933,"src":"_DSC0241w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777933.html","width":130,"caption":"","height":195});
															thumbnails[9088854] = clik.newPhoto({"id":9088854,"src":"_DSC2540_0126_Oil_Paint_Flower_2_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088854.html","width":260,"caption":"","height":350});
															thumbnails[9046742] = clik.newPhoto({"id":9046742,"src":"_DSC3798_bw_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046742.html","width":260,"caption":"Leo","height":316});
															thumbnails[2777939] = clik.newPhoto({"id":2777939,"src":"_DSC0243w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777939.html","width":130,"caption":"","height":195});
															thumbnails[9088856] = clik.newPhoto({"id":9088856,"src":"_DSC2564_0153_Oil_Paint_Busy_Bee_1_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088856.html","width":260,"caption":"Busy Bee","height":342});
															thumbnails[9046743] = clik.newPhoto({"id":9046743,"src":"_DSC3798_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046743.html","width":260,"caption":"Leo","height":316});
															thumbnails[2777941] = clik.newPhoto({"id":2777941,"src":"_DSC0244w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777941.html","width":130,"caption":"","height":87});
															thumbnails[9088859] = clik.newPhoto({"id":9088859,"src":"027_Oilpaint_Effect_Gull_4_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088859.html","width":260,"caption":"Seagull","height":167});
															thumbnails[9046744] = clik.newPhoto({"id":9046744,"src":"_DSC3802_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046744.html","width":260,"caption":"Leo","height":333});
															thumbnails[2777944] = clik.newPhoto({"id":2777944,"src":"_DSC0246w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777944.html","width":130,"caption":"","height":195});
															thumbnails[9088861] = clik.newPhoto({"id":9088861,"src":"0051_Oilpaint_Gull_3_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088861.html","width":260,"caption":"Seagull","height":167});
															thumbnails[9046745] = clik.newPhoto({"id":9046745,"src":"_DSC3810_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046745.html","width":260,"caption":"Leo","height":368});
															thumbnails[2777948] = clik.newPhoto({"id":2777948,"src":"_DSC0252w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777948.html","width":130,"caption":"","height":195});
															thumbnails[2797427] = clik.newPhoto({"id":2797427,"src":"Jack_thumb.jpg","galleries_id":174606,"server_id":32,"link":"photo_2797427.html","width":130,"caption":"","height":101});
															thumbnails[9088872] = clik.newPhoto({"id":9088872,"src":"DSC_0056_Paint_Effect_Gull_2_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088872.html","width":260,"caption":"Home from the Sea","height":169});
															thumbnails[9046746] = clik.newPhoto({"id":9046746,"src":"_DSC3816_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046746.html","width":260,"caption":"Leo","height":355});
															thumbnails[2777949] = clik.newPhoto({"id":2777949,"src":"_DSC0255w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777949.html","width":130,"caption":"","height":195});
															thumbnails[9088878] = clik.newPhoto({"id":9088878,"src":"UB40_SLIDES229_NORMAN_1_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088878.html","width":260,"caption":"On Stage","height":172});
															thumbnails[9046756] = clik.newPhoto({"id":9046756,"src":"_DSC3823_bw_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046756.html","width":260,"caption":"Leo","height":354});
															thumbnails[2777952] = clik.newPhoto({"id":2777952,"src":"_DSC0259w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777952.html","width":130,"caption":"","height":195});
															thumbnails[9088883] = clik.newPhoto({"id":9088883,"src":"UB40_SLIDES240_ASTRO_1_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088883.html","width":260,"caption":"On Stage","height":378});
															thumbnails[9046769] = clik.newPhoto({"id":9046769,"src":"_DSC3823_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046769.html","width":260,"caption":"Leo","height":354});
															thumbnails[2777956] = clik.newPhoto({"id":2777956,"src":"_DSC0263w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777956.html","width":130,"caption":"","height":195});
															thumbnails[9088886] = clik.newPhoto({"id":9088886,"src":"URNS_Oil_Paint_1_thumb.jpg","galleries_id":477540,"server_id":37,"link":"photo_9088886.html","width":260,"caption":"Urns","height":262});
															thumbnails[9046825] = clik.newPhoto({"id":9046825,"src":"_DSC3825_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046825.html","width":260,"caption":"Leo","height":360});
															thumbnails[2777959] = clik.newPhoto({"id":2777959,"src":"_DSC0266w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777959.html","width":130,"caption":"","height":87});
															thumbnails[9046842] = clik.newPhoto({"id":9046842,"src":"_DSC3830_bw_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046842.html","width":260,"caption":"Leo","height":391});
															thumbnails[2777964] = clik.newPhoto({"id":2777964,"src":"_DSC0268w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777964.html","width":130,"caption":"","height":87});
															thumbnails[9046852] = clik.newPhoto({"id":9046852,"src":"_DSC3830_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046852.html","width":260,"caption":"Leo","height":391});
															thumbnails[2777967] = clik.newPhoto({"id":2777967,"src":"_DSC0270w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777967.html","width":130,"caption":"","height":195});
															thumbnails[9046866] = clik.newPhoto({"id":9046866,"src":"_DSC3835_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046866.html","width":260,"caption":"Leo","height":413});
															thumbnails[2777969] = clik.newPhoto({"id":2777969,"src":"_DSC0274w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777969.html","width":130,"caption":"","height":195});
															thumbnails[9046875] = clik.newPhoto({"id":9046875,"src":"_DSC3838_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046875.html","width":260,"caption":"Leo","height":252});
															thumbnails[2777972] = clik.newPhoto({"id":2777972,"src":"_DSC0275w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777972.html","width":130,"caption":"","height":87});
															thumbnails[9046876] = clik.newPhoto({"id":9046876,"src":"_DSC3843_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046876.html","width":260,"caption":"Leo","height":290});
															thumbnails[2778707] = clik.newPhoto({"id":2778707,"src":"_DSC0284w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778707.html","width":130,"caption":"","height":195});
															thumbnails[9046877] = clik.newPhoto({"id":9046877,"src":"_DSC3845_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046877.html","width":260,"caption":"Leo","height":283});
															thumbnails[2778708] = clik.newPhoto({"id":2778708,"src":"_DSC0285w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778708.html","width":130,"caption":"","height":195});
															thumbnails[9046879] = clik.newPhoto({"id":9046879,"src":"_DSC3846_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046879.html","width":260,"caption":"Leo","height":280});
															thumbnails[2778709] = clik.newPhoto({"id":2778709,"src":"_DSC0286w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778709.html","width":130,"caption":"","height":195});
															thumbnails[9046880] = clik.newPhoto({"id":9046880,"src":"_DSC3847_bw_thumb.jpg","galleries_id":174606,"server_id":32,"link":"photo_9046880.html","width":260,"caption":"Leo","height":269});
															thumbnails[2777975] = clik.newPhoto({"id":2777975,"src":"_DSC0279w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2777975.html","width":130,"caption":"","height":87});
															thumbnails[9046881] = clik.newPhoto({"id":9046881,"src":"_DSC3847_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046881.html","width":260,"caption":"Leo","height":269});
															thumbnails[2778710] = clik.newPhoto({"id":2778710,"src":"_DSC0287w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778710.html","width":130,"caption":"","height":195});
															thumbnails[9046882] = clik.newPhoto({"id":9046882,"src":"_DSC3858_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046882.html","width":260,"caption":"Leo","height":212});
															thumbnails[2778711] = clik.newPhoto({"id":2778711,"src":"_DSC0292w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778711.html","width":130,"caption":"","height":195});
															thumbnails[9046883] = clik.newPhoto({"id":9046883,"src":"_DSC3860_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046883.html","width":260,"caption":"Leo","height":247});
															thumbnails[2778717] = clik.newPhoto({"id":2778717,"src":"_DSC0296w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778717.html","width":130,"caption":"","height":87});
															thumbnails[9046884] = clik.newPhoto({"id":9046884,"src":"_DSC3863_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046884.html","width":260,"caption":"Leo","height":244});
															thumbnails[9046885] = clik.newPhoto({"id":9046885,"src":"_DSC3872_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046885.html","width":260,"caption":"Leo","height":380});
															thumbnails[2778715] = clik.newPhoto({"id":2778715,"src":"_DSC0294w1_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778715.html","width":130,"caption":"","height":87});
															thumbnails[9046886] = clik.newPhoto({"id":9046886,"src":"_DSC3874_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046886.html","width":260,"caption":"Leo","height":358});
															thumbnails[2778720] = clik.newPhoto({"id":2778720,"src":"_DSC0297w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778720.html","width":130,"caption":"","height":87});
															thumbnails[9046887] = clik.newPhoto({"id":9046887,"src":"_DSC3895_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046887.html","width":260,"caption":"Leo","height":361});
															thumbnails[2778721] = clik.newPhoto({"id":2778721,"src":"_DSC0298w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778721.html","width":130,"caption":"","height":87});
															thumbnails[9046888] = clik.newPhoto({"id":9046888,"src":"_DSC3897_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046888.html","width":260,"caption":"Leo","height":361});
															thumbnails[2778723] = clik.newPhoto({"id":2778723,"src":"_DSC0299w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778723.html","width":130,"caption":"","height":87});
															thumbnails[9046889] = clik.newPhoto({"id":9046889,"src":"_DSC3900_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046889.html","width":260,"caption":"Leo","height":340});
															thumbnails[2778726] = clik.newPhoto({"id":2778726,"src":"_DSC0304w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778726.html","width":130,"caption":"","height":87});
															thumbnails[9046890] = clik.newPhoto({"id":9046890,"src":"_DSC3902_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046890.html","width":260,"caption":"Leo","height":423});
															thumbnails[2778727] = clik.newPhoto({"id":2778727,"src":"_DSC0306w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778727.html","width":130,"caption":"","height":195});
															thumbnails[9046892] = clik.newPhoto({"id":9046892,"src":"_DSC3903_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046892.html","width":260,"caption":"Leo","height":394});
															thumbnails[2778728] = clik.newPhoto({"id":2778728,"src":"_DSC0307w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778728.html","width":130,"caption":"","height":87});
															thumbnails[9046893] = clik.newPhoto({"id":9046893,"src":"_DSC3905_bw_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046893.html","width":260,"caption":"Leo","height":336});
															thumbnails[2778730] = clik.newPhoto({"id":2778730,"src":"_DSC0309w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778730.html","width":130,"caption":"","height":87});
															thumbnails[2778771] = clik.newPhoto({"id":2778771,"src":"_DSC0399w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778771.html","width":130,"caption":"","height":87});
															thumbnails[2778795] = clik.newPhoto({"id":2778795,"src":"_DSC0438w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778795.html","width":130,"caption":"","height":87});
															thumbnails[9046895] = clik.newPhoto({"id":9046895,"src":"_DSC3905_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046895.html","width":260,"caption":"Leo","height":336});
															thumbnails[2778731] = clik.newPhoto({"id":2778731,"src":"_DSC0311w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778731.html","width":130,"caption":"","height":87});
															thumbnails[2864180] = clik.newPhoto({"id":2864180,"src":"_DSC0519_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2864180.html","width":130,"caption":"","height":195});
															thumbnails[9046737] = clik.newPhoto({"id":9046737,"src":"_DSC3907_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046737.html","width":260,"caption":"Leo ","height":391});
															thumbnails[2778725] = clik.newPhoto({"id":2778725,"src":"_DSC0303w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778725.html","width":130,"caption":"","height":195});
															thumbnails[9046913] = clik.newPhoto({"id":9046913,"src":"LOREN_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046913.html","width":260,"caption":"Loren - Leo's Dad as a Boy","height":342});
															thumbnails[2778724] = clik.newPhoto({"id":2778724,"src":"_DSC0301w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778724.html","width":130,"caption":"","height":195});
															thumbnails[9046918] = clik.newPhoto({"id":9046918,"src":"loren1_thumb.jpg","galleries_id":237609,"server_id":32,"link":"photo_9046918.html","width":260,"caption":"Loren - Leo's Dad as a boy","height":403});
															thumbnails[2778732] = clik.newPhoto({"id":2778732,"src":"_DSC0312w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778732.html","width":130,"caption":"","height":195});
															thumbnails[2778735] = clik.newPhoto({"id":2778735,"src":"_DSC0316w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778735.html","width":130,"caption":"","height":87});
															thumbnails[2778734] = clik.newPhoto({"id":2778734,"src":"_DSC0313w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778734.html","width":130,"caption":"","height":87});
															thumbnails[2778736] = clik.newPhoto({"id":2778736,"src":"_DSC0318w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778736.html","width":130,"caption":"","height":87});
															thumbnails[2778738] = clik.newPhoto({"id":2778738,"src":"_DSC0320w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778738.html","width":130,"caption":"","height":87});
															thumbnails[2778739] = clik.newPhoto({"id":2778739,"src":"_DSC0323w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778739.html","width":130,"caption":"","height":87});
															thumbnails[2778741] = clik.newPhoto({"id":2778741,"src":"_DSC0324w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778741.html","width":130,"caption":"","height":87});
															thumbnails[2778742] = clik.newPhoto({"id":2778742,"src":"_DSC0326w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778742.html","width":130,"caption":"","height":87});
															thumbnails[2778745] = clik.newPhoto({"id":2778745,"src":"_DSC0327w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778745.html","width":130,"caption":"","height":87});
															thumbnails[2778746] = clik.newPhoto({"id":2778746,"src":"_DSC0328w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778746.html","width":130,"caption":"","height":87});
															thumbnails[2778747] = clik.newPhoto({"id":2778747,"src":"_DSC0331w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778747.html","width":130,"caption":"","height":87});
															thumbnails[2778748] = clik.newPhoto({"id":2778748,"src":"_DSC0334w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778748.html","width":130,"caption":"","height":87});
															thumbnails[2778749] = clik.newPhoto({"id":2778749,"src":"_DSC0337w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778749.html","width":130,"caption":"","height":87});
															thumbnails[2778767] = clik.newPhoto({"id":2778767,"src":"_DSC0388w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778767.html","width":130,"caption":"","height":87});
															thumbnails[2864173] = clik.newPhoto({"id":2864173,"src":"_DSC0417_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2864173.html","width":130,"caption":"","height":84});
															thumbnails[2778770] = clik.newPhoto({"id":2778770,"src":"_DSC0395w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778770.html","width":130,"caption":"","height":87});
															thumbnails[2778769] = clik.newPhoto({"id":2778769,"src":"_DSC0394w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778769.html","width":130,"caption":"","height":87});
															thumbnails[2778788] = clik.newPhoto({"id":2778788,"src":"_DSC0423w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778788.html","width":130,"caption":"","height":195});
															thumbnails[2778789] = clik.newPhoto({"id":2778789,"src":"_DSC0425w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778789.html","width":130,"caption":"","height":87});
															thumbnails[2778796] = clik.newPhoto({"id":2778796,"src":"_DSC0439w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778796.html","width":130,"caption":"","height":87});
															thumbnails[2778768] = clik.newPhoto({"id":2778768,"src":"_DSC0391w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778768.html","width":130,"caption":"","height":195});
															thumbnails[2778765] = clik.newPhoto({"id":2778765,"src":"_DSC0387w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778765.html","width":130,"caption":"","height":195});
															thumbnails[2778775] = clik.newPhoto({"id":2778775,"src":"_DSC0404w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778775.html","width":130,"caption":"","height":87});
															thumbnails[2778777] = clik.newPhoto({"id":2778777,"src":"_DSC0405w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778777.html","width":130,"caption":"","height":87});
															thumbnails[2778778] = clik.newPhoto({"id":2778778,"src":"_DSC0407w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778778.html","width":130,"caption":"","height":195});
															thumbnails[2778780] = clik.newPhoto({"id":2778780,"src":"_DSC0410w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778780.html","width":130,"caption":"","height":87});
															thumbnails[2778774] = clik.newPhoto({"id":2778774,"src":"_DSC0403w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778774.html","width":130,"caption":"","height":87});
															thumbnails[2778772] = clik.newPhoto({"id":2778772,"src":"_DSC0400w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778772.html","width":130,"caption":"","height":195});
															thumbnails[2778791] = clik.newPhoto({"id":2778791,"src":"_DSC0428w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778791.html","width":130,"caption":"","height":87});
															thumbnails[2778752] = clik.newPhoto({"id":2778752,"src":"_DSC0340w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778752.html","width":130,"caption":"","height":195});
															thumbnails[2778753] = clik.newPhoto({"id":2778753,"src":"_DSC0341w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778753.html","width":130,"caption":"","height":195});
															thumbnails[2778754] = clik.newPhoto({"id":2778754,"src":"_DSC0346w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778754.html","width":130,"caption":"","height":195});
															thumbnails[2778756] = clik.newPhoto({"id":2778756,"src":"_DSC0353w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778756.html","width":130,"caption":"","height":195});
															thumbnails[2778758] = clik.newPhoto({"id":2778758,"src":"_DSC0367w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778758.html","width":130,"caption":"","height":87});
															thumbnails[2778757] = clik.newPhoto({"id":2778757,"src":"_DSC0362w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778757.html","width":130,"caption":"","height":195});
															thumbnails[2782388] = clik.newPhoto({"id":2782388,"src":"_DSC0375w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2782388.html","width":130,"caption":"","height":195});
															thumbnails[2778759] = clik.newPhoto({"id":2778759,"src":"_DSC0369w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778759.html","width":130,"caption":"","height":87});
															thumbnails[2778760] = clik.newPhoto({"id":2778760,"src":"_DSC0374w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778760.html","width":130,"caption":"","height":87});
															thumbnails[2778762] = clik.newPhoto({"id":2778762,"src":"_DSC0379w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778762.html","width":130,"caption":"","height":195});
															thumbnails[2778763] = clik.newPhoto({"id":2778763,"src":"_DSC0380w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778763.html","width":130,"caption":"","height":195});
															thumbnails[2778782] = clik.newPhoto({"id":2778782,"src":"_DSC0415w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778782.html","width":130,"caption":"","height":87});
															thumbnails[2778797] = clik.newPhoto({"id":2778797,"src":"_DSC0445w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778797.html","width":130,"caption":"","height":87});
															thumbnails[2778781] = clik.newPhoto({"id":2778781,"src":"_DSC0413w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778781.html","width":130,"caption":"","height":87});
															thumbnails[2778783] = clik.newPhoto({"id":2778783,"src":"_DSC0420w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778783.html","width":130,"caption":"","height":195});
															thumbnails[2778784] = clik.newPhoto({"id":2778784,"src":"_DSC0421w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778784.html","width":130,"caption":"","height":87});
															thumbnails[2778798] = clik.newPhoto({"id":2778798,"src":"_DSC0449w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778798.html","width":130,"caption":"","height":195});
															thumbnails[2778799] = clik.newPhoto({"id":2778799,"src":"_DSC0451w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778799.html","width":130,"caption":"","height":195});
															thumbnails[2778800] = clik.newPhoto({"id":2778800,"src":"_DSC0456w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778800.html","width":130,"caption":"","height":195});
															thumbnails[2778801] = clik.newPhoto({"id":2778801,"src":"_DSC0460w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778801.html","width":130,"caption":"","height":87});
															thumbnails[2778802] = clik.newPhoto({"id":2778802,"src":"_DSC0462w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778802.html","width":130,"caption":"","height":87});
															thumbnails[2778803] = clik.newPhoto({"id":2778803,"src":"_DSC0464w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778803.html","width":130,"caption":"","height":87});
															thumbnails[2778804] = clik.newPhoto({"id":2778804,"src":"_DSC0466w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778804.html","width":130,"caption":"","height":87});
															thumbnails[2778806] = clik.newPhoto({"id":2778806,"src":"_DSC0468w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778806.html","width":130,"caption":"","height":87});
															thumbnails[2778808] = clik.newPhoto({"id":2778808,"src":"_DSC0469w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778808.html","width":130,"caption":"","height":87});
															thumbnails[2778809] = clik.newPhoto({"id":2778809,"src":"_DSC0472w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778809.html","width":130,"caption":"","height":87});
															thumbnails[2778811] = clik.newPhoto({"id":2778811,"src":"_DSC0474w1_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778811.html","width":130,"caption":"","height":87});
															thumbnails[2778812] = clik.newPhoto({"id":2778812,"src":"_DSC0476w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778812.html","width":130,"caption":"","height":87});
															thumbnails[2778813] = clik.newPhoto({"id":2778813,"src":"_DSC0477w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778813.html","width":130,"caption":"","height":87});
															thumbnails[2778814] = clik.newPhoto({"id":2778814,"src":"_DSC0478w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778814.html","width":130,"caption":"","height":87});
															thumbnails[2778815] = clik.newPhoto({"id":2778815,"src":"_DSC0479w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778815.html","width":130,"caption":"","height":87});
															thumbnails[2864184] = clik.newPhoto({"id":2864184,"src":"_DSC0521_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2864184.html","width":129,"caption":"","height":182});
															thumbnails[2778879] = clik.newPhoto({"id":2778879,"src":"_DSC0524w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778879.html","width":130,"caption":"","height":195});
															thumbnails[2778792] = clik.newPhoto({"id":2778792,"src":"_DSC0429w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778792.html","width":130,"caption":"","height":87});
															thumbnails[2778878] = clik.newPhoto({"id":2778878,"src":"_DSC0524closew_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778878.html","width":130,"caption":"","height":100});
															thumbnails[2778793] = clik.newPhoto({"id":2778793,"src":"_DSC0432w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778793.html","width":130,"caption":"","height":87});
															thumbnails[2778794] = clik.newPhoto({"id":2778794,"src":"_DSC0433w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778794.html","width":130,"caption":"","height":87});
															thumbnails[2778817] = clik.newPhoto({"id":2778817,"src":"_DSC0484w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778817.html","width":130,"caption":"","height":195});
															thumbnails[2778818] = clik.newPhoto({"id":2778818,"src":"_DSC0485w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778818.html","width":130,"caption":"","height":195});
															thumbnails[2778820] = clik.newPhoto({"id":2778820,"src":"_DSC0488w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778820.html","width":130,"caption":"","height":87});
															thumbnails[2785985] = clik.newPhoto({"id":2785985,"src":"_DSC0492w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2785985.html","width":130,"caption":"","height":87});
															thumbnails[2778871] = clik.newPhoto({"id":2778871,"src":"_DSC0490w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778871.html","width":130,"caption":"","height":87});
															thumbnails[2778872] = clik.newPhoto({"id":2778872,"src":"_DSC0495w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778872.html","width":130,"caption":"","height":87});
															thumbnails[2778874] = clik.newPhoto({"id":2778874,"src":"_DSC0496w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778874.html","width":130,"caption":"","height":87});
															thumbnails[2778875] = clik.newPhoto({"id":2778875,"src":"_DSC0502w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778875.html","width":130,"caption":"","height":195});
															thumbnails[2864181] = clik.newPhoto({"id":2864181,"src":"_DSC0512_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2864181.html","width":130,"caption":"","height":92});
															thumbnails[2778876] = clik.newPhoto({"id":2778876,"src":"_DSC0511w_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2778876.html","width":130,"caption":"","height":87});
															thumbnails[2783209] = clik.newPhoto({"id":2783209,"src":"_DSC0231adj_thumb.jpg","galleries_id":173993,"server_id":32,"link":"photo_2783209.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[238737] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Out & About","link":"gallery_238737.html","maxRecords":0.0,"photoIDs":[3935894.0,3935896.0,3935898.0,3935899.0,3935901.0,3935902.0,3935907.0,3935908.0],"skipIndex":0,"section_code":"gallery","featured_images":"3935908,3935907,3935902,3935901,3935899,3935898,3935896,3935894","id":238737,"singleSection":false});				  						galleries[241008] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pets and Animals","link":"gallery_241008.html","maxRecords":0.0,"photoIDs":[3935905.0,9057916.0,9057920.0],"skipIndex":0,"section_code":"gallery","featured_images":3935905.0,"id":241008,"singleSection":false});				  						galleries[238743] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Smoke","link":"gallery_238743.html","maxRecords":0.0,"photoIDs":[3935926.0,3935928.0,3935933.0,3935935.0,3935942.0,3935944.0,3935948.0,3935949.0,3935951.0],"skipIndex":0,"section_code":"gallery","featured_images":3935926.0,"id":238743,"singleSection":false});				  						galleries[174606] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_174606.html","maxRecords":0.0,"photoIDs":[2791607.0,9057903.0,2797427.0,9046880.0],"skipIndex":0,"section_code":"gallery","featured_images":2791607.0,"id":174606,"singleSection":false});				  						galleries[173993] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Des & Ria - Wedding Day","link":"gallery_173993.html","maxRecords":0.0,"photoIDs":[2783207.0,2777930.0,2777932.0,2777933.0,2777939.0,2777941.0,2777944.0,2777948.0,2777949.0,2777952.0,2777956.0,2777959.0,2777964.0,2777967.0,2777969.0,2777972.0,2778707.0,2778708.0,2778709.0,2777975.0,2778710.0,2778711.0,2778717.0,2778715.0,2778720.0,2778721.0,2778723.0,2778726.0,2778727.0,2778728.0,2778730.0,2778771.0,2778795.0,2778731.0,2864180.0,2778725.0,2778724.0,2778732.0,2778735.0,2778734.0,2778736.0,2778738.0,2778739.0,2778741.0,2778742.0,2778745.0,2778746.0,2778747.0,2778748.0,2778749.0,2778767.0,2864173.0,2778770.0,2778769.0,2778788.0,2778789.0,2778796.0,2778768.0,2778765.0,2778775.0,2778777.0,2778778.0,2778780.0,2778774.0,2778772.0,2778791.0,2778752.0,2778753.0,2778754.0,2778756.0,2778758.0,2778757.0,2782388.0,2778759.0,2778760.0,2778762.0,2778763.0,2778782.0,2778797.0,2778781.0,2778783.0,2778784.0,2778798.0,2778799.0,2778800.0,2778801.0,2778802.0,2778803.0,2778804.0,2778806.0,2778808.0,2778809.0,2778811.0,2778812.0,2778813.0,2778814.0,2778815.0,2864184.0,2778879.0,2778792.0,2778878.0,2778793.0,2778794.0,2778817.0,2778818.0,2778820.0,2785985.0,2778871.0,2778872.0,2778874.0,2778875.0,2864181.0,2778876.0,2783209.0],"skipIndex":0,"section_code":"gallery","featured_images":2778782.0,"id":173993,"singleSection":false});				  						galleries[477540] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Oil Paint effect","link":"gallery_477540.html","maxRecords":0.0,"photoIDs":[9088894.0,9088851.0,9088854.0,9088856.0,9088859.0,9088861.0,9088872.0,9088878.0,9088883.0,9088886.0],"skipIndex":0,"section_code":"gallery","featured_images":"9088894,9088886,9088883,9088878,9088872,9088861,9088859,9088856,9088854,9088851","id":477540,"singleSection":false});				  						galleries[237609] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Leo","link":"gallery_237609.html","maxRecords":0.0,"photoIDs":[9046739.0,9046741.0,9046742.0,9046743.0,9046744.0,9046745.0,9046746.0,9046756.0,9046769.0,9046825.0,9046842.0,9046852.0,9046866.0,9046875.0,9046876.0,9046877.0,9046879.0,9046881.0,9046882.0,9046883.0,9046884.0,9046885.0,9046886.0,9046887.0,9046888.0,9046889.0,9046890.0,9046892.0,9046893.0,9046895.0,9046737.0,9046913.0,9046918.0],"skipIndex":0,"section_code":"gallery","featured_images":"9046918,9046913,9046895,9046893,9046892,9046890,9046889,9046888,9046887,9046886","id":237609,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2791607,9046880';
imageSets[2] = '3935926,3935905,2791607,2796587,2778782';
imageSets[3] = '9088894,9088886,9088883,9088878,9088872,9088861,9088859,9088856,9088854,9088851,9057920,9057916,9057903,9046880,3935951,3935949,3935948,3935944,3935942,3935935,3935933,3935928,3935926,3935908,3935907,3935905,3935902,3935901,3935899,3935898,3935896,3935894,2799413,2797427,2796697,2796587,2791607';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/pauldavies/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/pauldavies/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 = 'Activities In Focus: ' + 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;
	}
}

			

