window.thumbnails = {};
															thumbnails[3594407] = clik.newPhoto({"id":3594407,"src":"_MG_8696_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":85});
															thumbnails[3924317] = clik.newPhoto({"id":3924317,"src":"_MG_4138_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":91,"caption":"","height":130});
															thumbnails[3924326] = clik.newPhoto({"id":3924326,"src":"_MG_4176_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":86,"caption":"","height":130});
															thumbnails[3924330] = clik.newPhoto({"id":3924330,"src":"IMG_4236_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8333397] = clik.newPhoto({"id":8333397,"src":"_MG_5114_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[8333432] = clik.newPhoto({"id":8333432,"src":"IMG_5204_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887389] = clik.newPhoto({"id":3887389,"src":"IMG_8082_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490532] = clik.newPhoto({"id":2490532,"src":"_3A_00011_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887433] = clik.newPhoto({"id":3887433,"src":"IMG_8324_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490533] = clik.newPhoto({"id":2490533,"src":"_28_00311_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887437] = clik.newPhoto({"id":3887437,"src":"IMG_8150_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490667] = clik.newPhoto({"id":2490667,"src":"_29_00301_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887442] = clik.newPhoto({"id":3887442,"src":"IMG_8169_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490712] = clik.newPhoto({"id":2490712,"src":"_26_00182_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[3887448] = clik.newPhoto({"id":3887448,"src":"IMG_8329_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490669] = clik.newPhoto({"id":2490669,"src":"_25_00191_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887452] = clik.newPhoto({"id":3887452,"src":"IMG_8340_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490670] = clik.newPhoto({"id":2490670,"src":"_27_00711_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887456] = clik.newPhoto({"id":3887456,"src":"IMG_8384_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490671] = clik.newPhoto({"id":2490671,"src":"_29_00791_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3924313] = clik.newPhoto({"id":3924313,"src":"_MG_4137_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":83});
															thumbnails[3887548] = clik.newPhoto({"id":3887548,"src":"IMG_8423_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490676] = clik.newPhoto({"id":2490676,"src":"__0_00021_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887461] = clik.newPhoto({"id":3887461,"src":"IMG_8469_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490683] = clik.newPhoto({"id":2490683,"src":"_23_00951_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3549671] = clik.newPhoto({"id":3549671,"src":"IMG_8547_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[3887465] = clik.newPhoto({"id":3887465,"src":"IMG_8470_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490707] = clik.newPhoto({"id":2490707,"src":"__3_00021_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":98,"caption":"","height":130});
															thumbnails[3549652] = clik.newPhoto({"id":3549652,"src":"IMG_8540_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887470] = clik.newPhoto({"id":3887470,"src":"IMG_8503_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490684] = clik.newPhoto({"id":2490684,"src":"_24_00161_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3887474] = clik.newPhoto({"id":3887474,"src":"IMG_8504_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490701] = clik.newPhoto({"id":2490701,"src":"_35_00091_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2430233] = clik.newPhoto({"id":2430233,"src":"IMG_13373_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2497786] = clik.newPhoto({"id":2497786,"src":"__6_00103_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":86});
															thumbnails[2490512] = clik.newPhoto({"id":2490512,"src":"IMG_13402_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":79});
															thumbnails[2490700] = clik.newPhoto({"id":2490700,"src":"__1_00011_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2430196] = clik.newPhoto({"id":2430196,"src":"IMG_13661_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490704] = clik.newPhoto({"id":2490704,"src":"_25_00221_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490504] = clik.newPhoto({"id":2490504,"src":"IMG_1447_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490711] = clik.newPhoto({"id":2490711,"src":"_24_00941_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[8340473] = clik.newPhoto({"id":8340473,"src":"IMG_5204_21_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2430240] = clik.newPhoto({"id":2430240,"src":"IMG_29291_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490703] = clik.newPhoto({"id":2490703,"src":"_34_00291_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490514] = clik.newPhoto({"id":2490514,"src":"IMG_14691_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2490515] = clik.newPhoto({"id":2490515,"src":"IMG_28791_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2430225] = clik.newPhoto({"id":2430225,"src":"IMG_13841_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490505] = clik.newPhoto({"id":2490505,"src":"IMG_2887_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490809] = clik.newPhoto({"id":2490809,"src":"IMG_13951_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":89});
															thumbnails[2490841] = clik.newPhoto({"id":2490841,"src":"IMG_31252_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":87,"caption":"","height":130});
															thumbnails[2490834] = clik.newPhoto({"id":2490834,"src":"IMG_2812_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5954527] = clik.newPhoto({"id":5954527,"src":"_MG_8599_21_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954527.html","width":130,"caption":"'Dancing Lights'","height":86});
															thumbnails[2430424] = clik.newPhoto({"id":2430424,"src":"IMG_0743_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2430424.html","width":130,"caption":"","height":87});
															thumbnails[4105263] = clik.newPhoto({"id":4105263,"src":"_MG_0768_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105263.html","width":130,"caption":"","height":86});
															thumbnails[8332821] = clik.newPhoto({"id":8332821,"src":"_MG_7683_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8332821.html","width":87,"caption":"","height":130});
															thumbnails[8334110] = clik.newPhoto({"id":8334110,"src":"_MG_9948_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334110.html","width":87,"caption":"","height":130});
															thumbnails[5954544] = clik.newPhoto({"id":5954544,"src":"_MG_8607_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954544.html","width":87,"caption":"'Moon Pool'","height":130});
															thumbnails[2430428] = clik.newPhoto({"id":2430428,"src":"IMG_0657_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2430428.html","width":130,"caption":"","height":87});
															thumbnails[4105273] = clik.newPhoto({"id":4105273,"src":"_MG_0744_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105273.html","width":86,"caption":"","height":130});
															thumbnails[8332825] = clik.newPhoto({"id":8332825,"src":"_MG_7791_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8332825.html","width":87,"caption":"","height":130});
															thumbnails[8334185] = clik.newPhoto({"id":8334185,"src":"IMG_6055_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334185.html","width":130,"caption":"","height":87});
															thumbnails[5954558] = clik.newPhoto({"id":5954558,"src":"_MG_85981_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954558.html","width":130,"caption":"'Up in Space'","height":86});
															thumbnails[2430452] = clik.newPhoto({"id":2430452,"src":"IMG_0680_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2430452.html","width":130,"caption":"","height":87});
															thumbnails[4105279] = clik.newPhoto({"id":4105279,"src":"_MG_0732_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105279.html","width":130,"caption":"","height":86});
															thumbnails[8332827] = clik.newPhoto({"id":8332827,"src":"_MG_7806_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8332827.html","width":87,"caption":"","height":130});
															thumbnails[8334263] = clik.newPhoto({"id":8334263,"src":"IMG_6103_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334263.html","width":130,"caption":"","height":87});
															thumbnails[6084402] = clik.newPhoto({"id":6084402,"src":"_MG_9374_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_6084402.html","width":130,"caption":"'Root Creatures'","height":87});
															thumbnails[3597813] = clik.newPhoto({"id":3597813,"src":"IMG_52341_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_3597813.html","width":87,"caption":"","height":130});
															thumbnails[4105287] = clik.newPhoto({"id":4105287,"src":"IMG_0323_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105287.html","width":130,"caption":"","height":87});
															thumbnails[8332829] = clik.newPhoto({"id":8332829,"src":"_MG_7827_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8332829.html","width":130,"caption":"","height":87});
															thumbnails[8334341] = clik.newPhoto({"id":8334341,"src":"IMG_6109_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334341.html","width":130,"caption":"","height":87});
															thumbnails[2441222] = clik.newPhoto({"id":2441222,"src":"IMG_2058_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_2441222.html","width":130,"caption":"'Pink Flower'","height":87});
															thumbnails[3597811] = clik.newPhoto({"id":3597811,"src":"IMG_5999_21_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_3597811.html","width":130,"caption":"","height":87});
															thumbnails[4105315] = clik.newPhoto({"id":4105315,"src":"IMG_0224_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105315.html","width":130,"caption":"","height":87});
															thumbnails[8332831] = clik.newPhoto({"id":8332831,"src":"IMG_7851_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8332831.html","width":130,"caption":"","height":87});
															thumbnails[8334377] = clik.newPhoto({"id":8334377,"src":"IMG_6241_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334377.html","width":87,"caption":"","height":130});
															thumbnails[6084403] = clik.newPhoto({"id":6084403,"src":"_MG_8187_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_6084403.html","width":130,"caption":"'Texture'","height":87});
															thumbnails[2488677] = clik.newPhoto({"id":2488677,"src":"IMG_0624_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2488677.html","width":130,"caption":"","height":87});
															thumbnails[3924296] = clik.newPhoto({"id":3924296,"src":"IMG_4235_2_3_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_3924296.html","width":130,"caption":"","height":87});
															thumbnails[4105317] = clik.newPhoto({"id":4105317,"src":"IMG_0316_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105317.html","width":87,"caption":"","height":130});
															thumbnails[8334398] = clik.newPhoto({"id":8334398,"src":"IMG_6682_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334398.html","width":87,"caption":"","height":130});
															thumbnails[5954570] = clik.newPhoto({"id":5954570,"src":"_MG_8623_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954570.html","width":130,"caption":"'Mud Pattern'","height":86});
															thumbnails[2489798] = clik.newPhoto({"id":2489798,"src":"IMG_06441_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2489798.html","width":87,"caption":"","height":130});
															thumbnails[3924298] = clik.newPhoto({"id":3924298,"src":"_MG_4165_2_2_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_3924298.html","width":86,"caption":"","height":130});
															thumbnails[4105323] = clik.newPhoto({"id":4105323,"src":"IMG_0338_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105323.html","width":87,"caption":"","height":130});
															thumbnails[8336015] = clik.newPhoto({"id":8336015,"src":"IMG_6761_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8336015.html","width":130,"caption":"","height":87});
															thumbnails[2442335] = clik.newPhoto({"id":2442335,"src":"CNV00008_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_2442335.html","width":130,"caption":"'Shiny Mud Slide'","height":87});
															thumbnails[2430481] = clik.newPhoto({"id":2430481,"src":"IMG_0689_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2430481.html","width":130,"caption":"","height":87});
															thumbnails[3924303] = clik.newPhoto({"id":3924303,"src":"_MG_4168_2_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_3924303.html","width":86,"caption":"","height":130});
															thumbnails[4105329] = clik.newPhoto({"id":4105329,"src":"IMG_0349_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105329.html","width":130,"caption":"","height":87});
															thumbnails[8334378] = clik.newPhoto({"id":8334378,"src":"_MG_9988_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334378.html","width":87,"caption":"","height":130});
															thumbnails[5954590] = clik.newPhoto({"id":5954590,"src":"_MG_8691_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954590.html","width":130,"caption":"'To float'","height":86});
															thumbnails[2427560] = clik.newPhoto({"id":2427560,"src":"IMG_2639_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2427560.html","width":130,"caption":"","height":87});
															thumbnails[4105333] = clik.newPhoto({"id":4105333,"src":"IMG_0286_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105333.html","width":87,"caption":"","height":130});
															thumbnails[8336048] = clik.newPhoto({"id":8336048,"src":"_MG_0039_F11F8631-24E8-5EC4-4FD9842D8D02C4F8_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8336048.html","width":87,"caption":"","height":130});
															thumbnails[5954639] = clik.newPhoto({"id":5954639,"src":"_MG_8696_9772ADF4-24E8-5EC4-4FD13C467ECE533B_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954639.html","width":130,"caption":"'Earth Sky'","height":86});
															thumbnails[3549147] = clik.newPhoto({"id":3549147,"src":"_MG_8699_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_3549147.html","width":82,"caption":"","height":130});
															thumbnails[3597805] = clik.newPhoto({"id":3597805,"src":"IMG_57581_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_3597805.html","width":130,"caption":"","height":87});
															thumbnails[4105339] = clik.newPhoto({"id":4105339,"src":"IMG_0287_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105339.html","width":130,"caption":"","height":87});
															thumbnails[8334404] = clik.newPhoto({"id":8334404,"src":"IMG_6673_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334404.html","width":130,"caption":"","height":87});
															thumbnails[5954617] = clik.newPhoto({"id":5954617,"src":"_MG_8737_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954617.html","width":130,"caption":"'Smoothly'","height":86});
															thumbnails[2427544] = clik.newPhoto({"id":2427544,"src":"IMG_2553_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2427544.html","width":130,"caption":"","height":87});
															thumbnails[3549139] = clik.newPhoto({"id":3549139,"src":"8744_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_3549139.html","width":130,"caption":"","height":87});
															thumbnails[4105429] = clik.newPhoto({"id":4105429,"src":"IMG_0289_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105429.html","width":130,"caption":"","height":87});
															thumbnails[8334386] = clik.newPhoto({"id":8334386,"src":"IMG_6585_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334386.html","width":87,"caption":"","height":130});
															thumbnails[5954562] = clik.newPhoto({"id":5954562,"src":"_MG_8664_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954562.html","width":130,"caption":"'Standing'","height":86});
															thumbnails[2427550] = clik.newPhoto({"id":2427550,"src":"IMG_2579_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2427550.html","width":130,"caption":"","height":87});
															thumbnails[4105433] = clik.newPhoto({"id":4105433,"src":"IMG_0416_2b_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105433.html","width":87,"caption":"","height":130});
															thumbnails[8333399] = clik.newPhoto({"id":8333399,"src":"IMG_4920_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8333399.html","width":87,"caption":"","height":130});
															thumbnails[8334390] = clik.newPhoto({"id":8334390,"src":"IMG_6712_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334390.html","width":130,"caption":"","height":87});
															thumbnails[5954653] = clik.newPhoto({"id":5954653,"src":"_MG_8621_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_5954653.html","width":87,"caption":"'Walking the Earth'","height":130});
															thumbnails[2427539] = clik.newPhoto({"id":2427539,"src":"IMG_2529_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2427539.html","width":130,"caption":"","height":87});
															thumbnails[8333413] = clik.newPhoto({"id":8333413,"src":"IMG_5044_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8333413.html","width":130,"caption":"","height":87});
															thumbnails[8334391] = clik.newPhoto({"id":8334391,"src":"IMG_6677_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334391.html","width":87,"caption":"","height":130});
															thumbnails[6084409] = clik.newPhoto({"id":6084409,"src":"IMG_8013_thumb.jpg","galleries_id":144676,"server_id":32,"link":"photo_6084409.html","width":130,"caption":"'Ice Waves'","height":87});
															thumbnails[2490443] = clik.newPhoto({"id":2490443,"src":"IMG_25721_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2490443.html","width":130,"caption":"","height":87});
															thumbnails[4105663] = clik.newPhoto({"id":4105663,"src":"IMG_0464_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105663.html","width":130,"caption":"","height":87});
															thumbnails[8333421] = clik.newPhoto({"id":8333421,"src":"_MG_5118_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8333421.html","width":87,"caption":"","height":130});
															thumbnails[8334402] = clik.newPhoto({"id":8334402,"src":"IMG_7335_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334402.html","width":87,"caption":"","height":130});
															thumbnails[2441131] = clik.newPhoto({"id":2441131,"src":"IMG_2655_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2441131.html","width":130,"caption":"","height":87});
															thumbnails[4105455] = clik.newPhoto({"id":4105455,"src":"IMG_0457_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105455.html","width":130,"caption":"","height":87});
															thumbnails[4105671] = clik.newPhoto({"id":4105671,"src":"IMG_0487_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105671.html","width":87,"caption":"","height":130});
															thumbnails[8334394] = clik.newPhoto({"id":8334394,"src":"IMG_6773_thumb.jpg","galleries_id":144688,"server_id":32,"link":"photo_8334394.html","width":87,"caption":"","height":130});
															thumbnails[8340451] = clik.newPhoto({"id":8340451,"src":"_MG_5114_21_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8340451.html","width":87,"caption":"","height":130});
															thumbnails[2427526] = clik.newPhoto({"id":2427526,"src":"IMG_2540_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2427526.html","width":130,"caption":"","height":87});
															thumbnails[4105674] = clik.newPhoto({"id":4105674,"src":"_MG_0539_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105674.html","width":86,"caption":"","height":130});
															thumbnails[2427563] = clik.newPhoto({"id":2427563,"src":"IMG_2658_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2427563.html","width":130,"caption":"","height":87});
															thumbnails[4105678] = clik.newPhoto({"id":4105678,"src":"IMG_0652_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105678.html","width":130,"caption":"","height":87});
															thumbnails[8340470] = clik.newPhoto({"id":8340470,"src":"IMG_5334_2_thumb.jpg","galleries_id":430796,"server_id":32,"link":"photo_8340470.html","width":130,"caption":"","height":87});
															thumbnails[2489963] = clik.newPhoto({"id":2489963,"src":"IMG_10321_thumb.jpg","galleries_id":430799,"server_id":32,"link":"photo_2489963.html","width":87,"caption":"","height":130});
															thumbnails[4105682] = clik.newPhoto({"id":4105682,"src":"IMG_0559_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105682.html","width":130,"caption":"","height":87});
															thumbnails[4105719] = clik.newPhoto({"id":4105719,"src":"IMG_0498_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105719.html","width":130,"caption":"","height":87});
															thumbnails[4105722] = clik.newPhoto({"id":4105722,"src":"_MG_0389_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105722.html","width":86,"caption":"","height":130});
															thumbnails[4105724] = clik.newPhoto({"id":4105724,"src":"IMG_0492_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105724.html","width":130,"caption":"","height":87});
															thumbnails[4105727] = clik.newPhoto({"id":4105727,"src":"IMG_0397_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105727.html","width":87,"caption":"","height":130});
															thumbnails[4105729] = clik.newPhoto({"id":4105729,"src":"IMG_0667_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105729.html","width":130,"caption":"","height":87});
															thumbnails[4105733] = clik.newPhoto({"id":4105733,"src":"_MG_0144_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105733.html","width":86,"caption":"","height":130});
															thumbnails[4105730] = clik.newPhoto({"id":4105730,"src":"_MG_0830_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105730.html","width":86,"caption":"","height":130});
															thumbnails[4105739] = clik.newPhoto({"id":4105739,"src":"_MG_0850_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105739.html","width":130,"caption":"","height":90});
															thumbnails[4105762] = clik.newPhoto({"id":4105762,"src":"_MG_0693_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105762.html","width":86,"caption":"","height":130});
															thumbnails[4105764] = clik.newPhoto({"id":4105764,"src":"_MG_0778_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105764.html","width":86,"caption":"","height":130});
															thumbnails[4105767] = clik.newPhoto({"id":4105767,"src":"IMG_0670_2_thumb.jpg","galleries_id":430794,"server_id":32,"link":"photo_4105767.html","width":87,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[430796] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special Events, Family Ocasions","link":"gallery_430796.html","maxRecords":0.0,"photoIDs":[8332821.0,8332825.0,8332827.0,8332829.0,8332831.0,3924296.0,3924298.0,3924303.0,3549147.0,3549139.0,8333399.0,8333413.0,8333421.0,8340451.0,8340470.0],"skipIndex":0,"section_code":"gallery","featured_images":8333399.0,"id":430796,"singleSection":false});				  						galleries[144688] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"gallery_144688.html","maxRecords":0.0,"photoIDs":[8334110.0,8334185.0,8334263.0,8334341.0,8334377.0,8334398.0,8336015.0,8334378.0,8336048.0,8334404.0,8334386.0,8334390.0,8334391.0,8334402.0,8334394.0],"skipIndex":0,"section_code":"gallery","featured_images":8334391.0,"id":144688,"singleSection":false});				  						galleries[430799] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Event \/ PR","link":"gallery_430799.html","maxRecords":0.0,"photoIDs":[2430424.0,2430428.0,2430452.0,3597813.0,3597811.0,2488677.0,2489798.0,2430481.0,2427560.0,3597805.0,2427544.0,2427550.0,2427539.0,2490443.0,2441131.0,2427526.0,2427563.0,2489963.0],"skipIndex":0,"section_code":"gallery","featured_images":"3597811,2489798,2427544","id":430799,"singleSection":false});				  						galleries[430794] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding","link":"gallery_430794.html","maxRecords":0.0,"photoIDs":[4105263.0,4105273.0,4105279.0,4105287.0,4105315.0,4105317.0,4105323.0,4105329.0,4105333.0,4105339.0,4105429.0,4105433.0,4105663.0,4105455.0,4105671.0,4105674.0,4105678.0,4105682.0,4105719.0,4105722.0,4105724.0,4105727.0,4105729.0,4105733.0,4105730.0,4105739.0,4105762.0,4105764.0,4105767.0],"skipIndex":0,"section_code":"gallery","featured_images":4105273.0,"id":430794,"singleSection":false});				  						galleries[144676] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photography Projects: Nature","link":"gallery_144676.html","maxRecords":0.0,"photoIDs":[5954527.0,5954544.0,5954558.0,6084402.0,2441222.0,6084403.0,5954570.0,2442335.0,5954590.0,5954639.0,5954617.0,5954562.0,5954653.0,6084409.0],"skipIndex":0,"section_code":"gallery","featured_images":5954544.0,"id":144676,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2441222';
imageSets[2] = '2490532,5954544,4105273,3597811,2489798,2427544,8333399,8334391,2490809';
imageSets[3] = '5954527,5954544,5954558,6084402,6084403,5954570,5954590,5954562';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/christinajbaldwin/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/christinajbaldwin/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 = 'Christina J Baldwin 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 (price includes P&P):</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="CHRISTINAJBALDWIN">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

