window.thumbnails = {};
															thumbnails[8588335] = clik.newPhoto({"id":8588335,"src":"2011_05_12_3719_DONARD_RIVER_edited-2_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588335.html","width":130,"caption":"Donard River, Newcastle, Co.Down","height":104});
															thumbnails[8588355] = clik.newPhoto({"id":8588355,"src":"2011_05_12_3800_HERRON_edited-1_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588355.html","width":130,"caption":"Herron","height":163});
															thumbnails[8588374] = clik.newPhoto({"id":8588374,"src":"2011_05_12_3931_NEWCASTLE_BEACH_edited-1_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588374.html","width":130,"caption":"Newcastle Sea Defences","height":163});
															thumbnails[8588390] = clik.newPhoto({"id":8588390,"src":"2011_05_12_3952_Sea_Defences_2_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588390.html","width":130,"caption":"Newcastle Sea Defences at Sunset","height":163});
															thumbnails[8588236] = clik.newPhoto({"id":8588236,"src":"2011_05_09_3286_GLENO_WATERFALL_edited-3_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588236.html","width":130,"caption":"Gleno Waterfall, Gleno, Larne","height":163});
															thumbnails[8588302] = clik.newPhoto({"id":8588302,"src":"2011_05_09_3337_MISTY_ROCKS_edited-2_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588302.html","width":130,"caption":"Misty Rocks, Co.Antrim Coast","height":104});
															thumbnails[8588313] = clik.newPhoto({"id":8588313,"src":"2011_05_09_3356-LOOK_UP_edited-2_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588313.html","width":130,"caption":"Look Up!","height":104});
															thumbnails[8588213] = clik.newPhoto({"id":8588213,"src":"2011_02_07_0058_whitehead_edited-2_-_Copy_thumb.jpg","galleries_id":232665,"server_id":35,"link":"photo_8588213.html","width":130,"caption":"Coloured Houses","height":104});
															thumbnails[8588769] = clik.newPhoto({"id":8588769,"src":"DSC_0023_Templepatrick_Churhc_edited-1_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588769.html","width":130,"caption":"Templepatrick Church, Templepatrick","height":104});
															thumbnails[8588175] = clik.newPhoto({"id":8588175,"src":"2010_12_18_7840_CF_snow_Graveyard-1_edited-2_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588175.html","width":130,"caption":"Graveyard in the Snow","height":104});
															thumbnails[8588186] = clik.newPhoto({"id":8588186,"src":"2010_12_18_7865_St_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588186.html","width":130,"caption":"St.Nicholas Church at Sunset","height":163});
															thumbnails[8588195] = clik.newPhoto({"id":8588195,"src":"2010_12_18_7902_STREET_LIGHT_edited-2_-_Copy_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588195.html","width":130,"caption":"Street Light in the Snow","height":163});
															thumbnails[8588166] = clik.newPhoto({"id":8588166,"src":"2010_12_13_7959_Ferris_Wheel_edited-2_-_Copy_thumb.jpg","galleries_id":232665,"server_id":35,"link":"photo_8588166.html","width":130,"caption":"Ferris Wheel, Christmas Market, Belfast","height":104});
															thumbnails[8588103] = clik.newPhoto({"id":8588103,"src":"2010_12_02_7326_St_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588103.html","width":130,"caption":"St.Anne's Cathedral, Belfast","height":104});
															thumbnails[8588112] = clik.newPhoto({"id":8588112,"src":"2010_12_02_7426_Obel_Tower_edited-2_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588112.html","width":130,"caption":"Obel Tower, Belfast","height":163});
															thumbnails[8588121] = clik.newPhoto({"id":8588121,"src":"2010_12_02_7428_Big_Fish_edited-2_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588121.html","width":130,"caption":"Giant Fish, Belfast","height":54});
															thumbnails[8588138] = clik.newPhoto({"id":8588138,"src":"2010_12_02_7480_Building_Blocks_edited-2_-_Copy_thumb.jpg","galleries_id":232665,"server_id":35,"link":"photo_8588138.html","width":130,"caption":"Building Blocks","height":87});
															thumbnails[8588150] = clik.newPhoto({"id":8588150,"src":"2010_12_02_7501_Sky_Reflection_edited-2_-_Copy_thumb.jpg","galleries_id":232665,"server_id":35,"link":"photo_8588150.html","width":130,"caption":"Sky Reflection","height":104});
															thumbnails[8588081] = clik.newPhoto({"id":8588081,"src":"2010_10_04_5355_BMC_Windows_edited-2_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588081.html","width":130,"caption":"Zoom Burst of Windows at BMC, College Square Campus","height":104});
															thumbnails[8587981] = clik.newPhoto({"id":8587981,"src":"2010_09_01_4506_Rashee_Graveyard_Headstones_edited-2_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8587981.html","width":130,"caption":"Rashee Graveyard at Sunset","height":163});
															thumbnails[8588074] = clik.newPhoto({"id":8588074,"src":"2010_09_01_4539_RASHEE_GRAVEYARD_edited-2_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588074.html","width":130,"caption":"Rashee Graveyard at Sunset","height":163});
															thumbnails[5669458] = clik.newPhoto({"id":5669458,"src":"2010-03-06_9571_edited-1_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_5669458.html","width":130,"caption":"Herron with dinner","height":104});
															thumbnails[8588625] = clik.newPhoto({"id":8588625,"src":"Portballintrae-Strand-Panor_thumb.jpg","galleries_id":64977,"server_id":35,"link":"photo_8588625.html","width":130,"caption":"Panoramic of Portballintrae Strand","height":52});
															thumbnails[5669420] = clik.newPhoto({"id":5669420,"src":"2010-01-17_8561_edited-BW_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_5669420.html","width":130,"caption":"Glenarrif Waterfalls","height":104});
															thumbnails[5669416] = clik.newPhoto({"id":5669416,"src":"Dark-Hedges-Stranocum_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_5669416.html","width":130,"caption":"Dark Hedges, Stranocum","height":163});
															thumbnails[5669437] = clik.newPhoto({"id":5669437,"src":"Bluebells-Portglenone-Fore_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_5669437.html","width":130,"caption":"Portglenone Bluebells","height":86});
															thumbnails[3818100] = clik.newPhoto({"id":3818100,"src":"2008-02-24-LynseyMichelle_thumb.jpg","galleries_id":64976,"server_id":15,"link":"photo_3818100.html","width":130,"caption":"Michelle - L'Oreal Hair Colour Trophy Photoshoot","height":163});
															thumbnails[3833521] = clik.newPhoto({"id":3833521,"src":"2009-02-08-060_thumb.jpg","galleries_id":64976,"server_id":15,"link":"photo_3833521.html","width":130,"caption":"Krista - L'Oreal Hair Colour Trophy Photoshoot","height":163});
															thumbnails[3833806] = clik.newPhoto({"id":3833806,"src":"Caroline-McCracken_thumb.jpg","galleries_id":232665,"server_id":15,"link":"photo_3833806.html","width":130,"caption":"Waterdrops","height":130});
															thumbnails[3833998] = clik.newPhoto({"id":3833998,"src":"2009-02-08-044---Deborah-jp_thumb.jpg","galleries_id":64976,"server_id":15,"link":"photo_3833998.html","width":130,"caption":"Debra, L'Oreal Hair Colour Trophy Photoshoot","height":163});
															thumbnails[3908899] = clik.newPhoto({"id":3908899,"src":"Aeryn-Montage-Pic_thumb.jpg","galleries_id":64975,"server_id":15,"link":"photo_3908899.html","width":130,"caption":"","height":89});
															thumbnails[3909189] = clik.newPhoto({"id":3909189,"src":"2009-02-08-048_edited-1_thumb.jpg","galleries_id":64976,"server_id":15,"link":"photo_3909189.html","width":130,"caption":"Debra, L'Oreal Hair Colour Competition Photoshoot","height":163});
															thumbnails[3909688] = clik.newPhoto({"id":3909688,"src":"2008-Oct-04-0711_thumb.jpg","galleries_id":232665,"server_id":15,"link":"photo_3909688.html","width":130,"caption":"Veins","height":163});
															thumbnails[3909819] = clik.newPhoto({"id":3909819,"src":"2009-03-29_0333_edited-21_thumb.jpg","galleries_id":64975,"server_id":15,"link":"photo_3909819.html","width":130,"caption":"","height":163});
															thumbnails[3910669] = clik.newPhoto({"id":3910669,"src":"2008-01-10-Smoke-Trails-037_thumb.jpg","galleries_id":232665,"server_id":15,"link":"photo_3910669.html","width":130,"caption":"Smoke Trails","height":195});
															thumbnails[3993931] = clik.newPhoto({"id":3993931,"src":"2009-05-30_2026_edited-1_thumb.jpg","galleries_id":64975,"server_id":15,"link":"photo_3993931.html","width":130,"caption":"","height":163});
															thumbnails[4066655] = clik.newPhoto({"id":4066655,"src":"2009-06-10_2253_edited-1_thumb.jpg","galleries_id":232665,"server_id":15,"link":"photo_4066655.html","width":130,"caption":"Keys","height":104});
															thumbnails[4066660] = clik.newPhoto({"id":4066660,"src":"2009-06-10_2292_edited-1_thumb.jpg","galleries_id":232665,"server_id":15,"link":"photo_4066660.html","width":130,"caption":"Water drops on CD","height":104});
															thumbnails[4408493] = clik.newPhoto({"id":4408493,"src":"2009-07-25_4453_edited-1_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_4408493.html","width":130,"caption":"St.Johns Point Lighthouse, Co.Down","height":163});
															thumbnails[4408500] = clik.newPhoto({"id":4408500,"src":"2009-07-25_4480_edited-1_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_4408500.html","width":130,"caption":"Sail Boat, waters of St.Johns Point Lighthouse, Co.Down","height":104});
															thumbnails[4408538] = clik.newPhoto({"id":4408538,"src":"2009-06-14_2620_edited-1_thumb.jpg","galleries_id":64975,"server_id":15,"link":"photo_4408538.html","width":130,"caption":"","height":104});
															thumbnails[4413507] = clik.newPhoto({"id":4413507,"src":"2009-07-10_4221-248_edite_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_4413507.html","width":130,"caption":"Cala Egos Bay, Mallorca","height":163});
															thumbnails[4413519] = clik.newPhoto({"id":4413519,"src":"2009-07-15_4254_edited-1_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_4413519.html","width":130,"caption":"Blackhead Lighthouse","height":163});
															thumbnails[4747593] = clik.newPhoto({"id":4747593,"src":"2008-Aug-22-020-BW_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_4747593.html","width":130,"caption":"","height":163});
															thumbnails[4747633] = clik.newPhoto({"id":4747633,"src":"B0002408_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_4747633.html","width":130,"caption":"","height":166});
															thumbnails[4976503] = clik.newPhoto({"id":4976503,"src":"2008-09-19_5837_BRIDE-IN-ST_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_4976503.html","width":130,"caption":"","height":195});
															thumbnails[4976904] = clik.newPhoto({"id":4976904,"src":"2009-09-19_6228_BRIDE-IN-DO_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_4976904.html","width":130,"caption":"","height":163});
															thumbnails[4977088] = clik.newPhoto({"id":4977088,"src":"GLENO-WATERFALL-MONTAGE_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_4977088.html","width":130,"caption":"","height":195});
															thumbnails[4977093] = clik.newPhoto({"id":4977093,"src":"2009-09-19_6248_WEDDING-PAR_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_4977093.html","width":130,"caption":"","height":54});
															thumbnails[4977169] = clik.newPhoto({"id":4977169,"src":"2009-10-02_6761_edited-4_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_4977169.html","width":130,"caption":"","height":195});
															thumbnails[5669393] = clik.newPhoto({"id":5669393,"src":"Panorama-over-Islandmagee_e_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_5669393.html","width":130,"caption":"Islandmagee Panoramic","height":39});
															thumbnails[5669400] = clik.newPhoto({"id":5669400,"src":"Rathlin-island-boat_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_5669400.html","width":130,"caption":"Rathlin Island Boat","height":87});
															thumbnails[5669413] = clik.newPhoto({"id":5669413,"src":"2008-06-05-001-02_thumb.jpg","galleries_id":64977,"server_id":15,"link":"photo_5669413.html","width":130,"caption":"Sa Coma Beach, Mallorca","height":163});
															thumbnails[6083019] = clik.newPhoto({"id":6083019,"src":"2010-04-30-_0149_Bride-wigh_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_6083019.html","width":130,"caption":"","height":104});
															thumbnails[6083028] = clik.newPhoto({"id":6083028,"src":"2010-04-30_0876_BG-in-arch_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_6083028.html","width":130,"caption":"","height":163});
															thumbnails[6083032] = clik.newPhoto({"id":6083032,"src":"2009-04-30_1218_BG-slhouet_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_6083032.html","width":130,"caption":"","height":52});
															thumbnails[6083042] = clik.newPhoto({"id":6083042,"src":"2009-04-30_1213_BG-becide-_thumb.jpg","galleries_id":272297,"server_id":15,"link":"photo_6083042.html","width":130,"caption":"","height":163});
															thumbnails[8587881] = clik.newPhoto({"id":8587881,"src":"5164_BG_with_curtain_in_background_-_Copy_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587881.html","width":130,"caption":"","height":163});
															thumbnails[8587885] = clik.newPhoto({"id":8587885,"src":"5158_BG_cutting_the_cake_-_Copy_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587885.html","width":130,"caption":"","height":163});
															thumbnails[8587887] = clik.newPhoto({"id":8587887,"src":"5122_Bride_with_horses__carriage_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587887.html","width":130,"caption":"","height":104});
															thumbnails[8587893] = clik.newPhoto({"id":8587893,"src":"5116_Bride_with_horses_BW_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587893.html","width":130,"caption":"","height":104});
															thumbnails[8587895] = clik.newPhoto({"id":8587895,"src":"5035_BG_at_sea_front_BW_with_boarder_-_Copy_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587895.html","width":130,"caption":"","height":104});
															thumbnails[8587897] = clik.newPhoto({"id":8587897,"src":"5020_BG_at_seafront_-_Copy_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587897.html","width":130,"caption":"","height":104});
															thumbnails[8587901] = clik.newPhoto({"id":8587901,"src":"5008_BG_at_castle_BW_-_Copy_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587901.html","width":130,"caption":"","height":163});
															thumbnails[8587906] = clik.newPhoto({"id":8587906,"src":"4973_BG_with_horse_and_carriage_at_castle_kissing_-_Copy_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587906.html","width":130,"caption":"","height":163});
															thumbnails[8587921] = clik.newPhoto({"id":8587921,"src":"4689_Lighting_the_Candles_-_Copy_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587921.html","width":130,"caption":"","height":163});
															thumbnails[8587924] = clik.newPhoto({"id":8587924,"src":"4672_The_Service_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587924.html","width":130,"caption":"","height":163});
															thumbnails[8587927] = clik.newPhoto({"id":8587927,"src":"4589_Bride_arriving_in_horse_at_carriage_at_Clarion_1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8587927.html","width":130,"caption":"","height":104});
															thumbnails[8587957] = clik.newPhoto({"id":8587957,"src":"kids-xmas-montage_edited-1_thumb.jpg","galleries_id":64975,"server_id":35,"link":"photo_8587957.html","width":130,"caption":"","height":104});
															thumbnails[8588746] = clik.newPhoto({"id":8588746,"src":"3095_BW_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588746.html","width":130,"caption":"","height":163});
															thumbnails[8588751] = clik.newPhoto({"id":8588751,"src":"3031_BW_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588751.html","width":130,"caption":"","height":163});
															thumbnails[8588753] = clik.newPhoto({"id":8588753,"src":"3023_BW_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588753.html","width":130,"caption":"","height":163});
															thumbnails[8588771] = clik.newPhoto({"id":8588771,"src":"Carrickfergus_Castle_Montage_edited-2_-_Copy_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588771.html","width":130,"caption":"Carrickfergus Castle Montage","height":104});
															thumbnails[8588776] = clik.newPhoto({"id":8588776,"src":"2860_infared_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588776.html","width":130,"caption":"","height":163});
															thumbnails[8588779] = clik.newPhoto({"id":8588779,"src":"2764_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588779.html","width":130,"caption":"","height":163});
															thumbnails[8588783] = clik.newPhoto({"id":8588783,"src":"2388_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588783.html","width":130,"caption":"","height":163});
															thumbnails[8588787] = clik.newPhoto({"id":8588787,"src":"2010-08-27_3493_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588787.html","width":130,"caption":"","height":163});
															thumbnails[8588795] = clik.newPhoto({"id":8588795,"src":"2010-08-27_4142_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588795.html","width":130,"caption":"","height":104});
															thumbnails[8588798] = clik.newPhoto({"id":8588798,"src":"2010-08-27_3507_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588798.html","width":130,"caption":"","height":104});
															thumbnails[8588800] = clik.newPhoto({"id":8588800,"src":"2010-08-27_3672_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588800.html","width":130,"caption":"","height":163});
															thumbnails[8588804] = clik.newPhoto({"id":8588804,"src":"2010-08-27_3714_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588804.html","width":130,"caption":"","height":104});
															thumbnails[8588806] = clik.newPhoto({"id":8588806,"src":"2010-08-27_3740_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588806.html","width":130,"caption":"","height":104});
															thumbnails[8588807] = clik.newPhoto({"id":8588807,"src":"2010-08-27_3829_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588807.html","width":130,"caption":"","height":163});
															thumbnails[8588810] = clik.newPhoto({"id":8588810,"src":"2010-08-27_3840_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588810.html","width":130,"caption":"","height":195});
															thumbnails[8588814] = clik.newPhoto({"id":8588814,"src":"2010-08-27_3884_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588814.html","width":130,"caption":"","height":163});
															thumbnails[8588819] = clik.newPhoto({"id":8588819,"src":"2010-08-27_3988_edited-1_thumb.jpg","galleries_id":272297,"server_id":35,"link":"photo_8588819.html","width":130,"caption":"","height":104});
															thumbnails[8588964] = clik.newPhoto({"id":8588964,"src":"2010-11-24_7189_edited-1_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588964.html","width":130,"caption":"","height":104});
															thumbnails[8588967] = clik.newPhoto({"id":8588967,"src":"2010-11-24_7193_edited-1_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588967.html","width":130,"caption":"","height":104});
															thumbnails[8588968] = clik.newPhoto({"id":8588968,"src":"2010-11-24_7198_edited-1_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588968.html","width":130,"caption":"","height":195});
															thumbnails[8588974] = clik.newPhoto({"id":8588974,"src":"2010-11-24_7216_edited-1_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588974.html","width":130,"caption":"","height":195});
															thumbnails[8588976] = clik.newPhoto({"id":8588976,"src":"2010-11-24_7217_edited-1_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588976.html","width":130,"caption":"","height":104});
															thumbnails[8588978] = clik.newPhoto({"id":8588978,"src":"2010-11-24_7220_edited-1_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588978.html","width":130,"caption":"","height":163});
															thumbnails[8588981] = clik.newPhoto({"id":8588981,"src":"2010-11-24_7240_edited-1_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8588981.html","width":130,"caption":"","height":86});
															thumbnails[8589013] = clik.newPhoto({"id":8589013,"src":"2010-11-24_7256_edited-2_thumb.jpg","galleries_id":454168,"server_id":35,"link":"photo_8589013.html","width":130,"caption":"","height":104});
															thumbnails[8654522] = clik.newPhoto({"id":8654522,"src":"2011_10_01_6957_chairs_thumb.jpg","galleries_id":454168,"server_id":37,"link":"photo_8654522.html","width":130,"caption":"Chairs","height":195});
															thumbnails[8654524] = clik.newPhoto({"id":8654524,"src":"2011_10_01_6977_red_chair__wallpaper_thumb.jpg","galleries_id":454168,"server_id":37,"link":"photo_8654524.html","width":130,"caption":"Waiting Area","height":195});
															thumbnails[8654525] = clik.newPhoto({"id":8654525,"src":"2011_10_01_7005_reflection_in_mirror_thumb.jpg","galleries_id":454168,"server_id":37,"link":"photo_8654525.html","width":130,"caption":"Through the Mirror","height":195});
															thumbnails[8654526] = clik.newPhoto({"id":8654526,"src":"2011_10_01_6996_washbasin_thumb.jpg","galleries_id":454168,"server_id":37,"link":"photo_8654526.html","width":130,"caption":"Wash Basins","height":195});
															thumbnails[8654529] = clik.newPhoto({"id":8654529,"src":"2011_10_01_6994_desk_thumb.jpg","galleries_id":454168,"server_id":37,"link":"photo_8654529.html","width":130,"caption":"Desk","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[454168] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHITECTURE & INTERIOR","link":"gallery_454168.html","maxRecords":0.0,"photoIDs":[8588769.0,8588175.0,8588103.0,8588112.0,8588121.0,8588081.0,8587981.0,8588074.0,8588771.0,8588964.0,8588967.0,8588968.0,8588974.0,8588976.0,8588978.0,8588981.0,8589013.0,8654522.0,8654524.0,8654525.0,8654526.0,8654529.0],"skipIndex":0,"section_code":"gallery","featured_images":"8654529,8654526,8654525,8654524,8654522,8589013,8588981,8588978,8588976,8588974","id":454168,"singleSection":false});				  						galleries[272297] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"WEDDING PHOTOGRAPHY","link":"gallery_272297.html","maxRecords":0.0,"photoIDs":[4747593.0,4747633.0,4976503.0,4976904.0,4977088.0,4977093.0,4977169.0,6083019.0,6083028.0,6083032.0,6083042.0,8587881.0,8587885.0,8587887.0,8587893.0,8587895.0,8587897.0,8587901.0,8587906.0,8587921.0,8587924.0,8587927.0,8588746.0,8588751.0,8588753.0,8588776.0,8588779.0,8588783.0,8588787.0,8588795.0,8588798.0,8588800.0,8588804.0,8588806.0,8588807.0,8588810.0,8588814.0,8588819.0],"skipIndex":0,"section_code":"gallery","featured_images":"8588819,8588814,8588810,8588807,8588806,8588804,8588800,8588798,8588795,8588787","id":272297,"singleSection":false});				  						galleries[64975] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BABY & CHILDREN PORTRAITURE","link":"gallery_64975.html","maxRecords":0.0,"photoIDs":[3908899.0,3909819.0,3993931.0,4408538.0,8587957.0],"skipIndex":0,"section_code":"gallery","featured_images":"8587957,4408538,3993931,3909819,3908899","id":64975,"singleSection":false});				  						galleries[64976] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MODEL PHOTOGRAPHY","link":"gallery_64976.html","maxRecords":0.0,"photoIDs":[3818100.0,3833521.0,3833998.0,3909189.0],"skipIndex":0,"section_code":"gallery","featured_images":"3909189,3833998,3833521,3818100","id":64976,"singleSection":false});				  						galleries[64977] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"LANDSCAPE PHOTOGRAPHY","link":"gallery_64977.html","maxRecords":0.0,"photoIDs":[8588335.0,8588355.0,8588374.0,8588390.0,8588236.0,8588302.0,8588313.0,8588186.0,8588195.0,5669458.0,8588625.0,5669420.0,5669416.0,5669437.0,4408493.0,4408500.0,4413507.0,4413519.0,5669393.0,5669400.0,5669413.0],"skipIndex":0,"section_code":"gallery","featured_images":"8588625,8588390,8588374,8588355,8588335,8588313,8588302,8588236,8588195,8588186","id":64977,"singleSection":false});				  						galleries[232665] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ABSTRACT PICTURES","link":"gallery_232665.html","maxRecords":0.0,"photoIDs":[8588213.0,8588166.0,8588138.0,8588150.0,3833806.0,3909688.0,3910669.0,4066655.0,4066660.0],"skipIndex":0,"section_code":"gallery","featured_images":"8588213,8588166,8588150,8588138,4066660,4066655,3910669,3909688,3833806","id":232665,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8654529,8654526,8654525,8654524,8654522,8589013,8588981,8588978,8588976,8588974,8588968,8588967,8588964,8588819,8588814,8588810,8588807,8588806,8588804,8588800,8588798,8588795,8588787,8588783,8588779,8588776,8588771,8588769,8588753,8588751,8588746,8588625,8588390,8588374,8588355,8588335,8588313,8588302,8588236,8588213,8588195,8588186,8588175,8588166,8588150,8588138,8588121,8588112,8588103,8588081';
imageSets[3] = '8654529,8654526,8654525,8654524,8654522,8589013,8588981,8588978,8588976,8588974,8588968,8588967,8588964,8588819,8588814,8588810,8588807,8588806,8588804,8588800,8588798,8588795,8588787,8588783,8588779,8588776,8588771,8588769,8588753,8588751,8588746,8588625,8588390,8588374,8588355,8588335,8588313,8588302,8588236,8588213,8588195,8588186,8588175,8588166,8588150,8588138,8588121,8588112,8588103,8588081';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'www.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/livinglensphotography/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/livinglensphotography/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'LIVING LENS PHOTOGRAPHY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="caroline.llp@googlemail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="caroline.llp@googlemail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

