window.thumbnails = {};
thumbnails[8356592] = clik.newPhoto({"link":"#","caption":"The Hague","height":83,"id":8356592,"server_id":31,"src":"grandparents_6784_lr_thumb.jpg","galleries_id":"","width":130});
thumbnails[8381029] = clik.newPhoto({"link":"#","caption":"Amsterdam","height":94,"id":8381029,"server_id":31,"src":"gijsbert_hanekroot_westerpark_4847_thumb.jpg","galleries_id":"","width":130});
thumbnails[8143135] = clik.newPhoto({"link":"#","caption":"Leiden","height":110,"id":8143135,"server_id":31,"src":"abbatozappa_leiden_lowres_thumb.jpg","galleries_id":"","width":130});
thumbnails[8399552] = clik.newPhoto({"link":"#","caption":"Shanghai","height":87,"id":8399552,"server_id":31,"src":"28110075shanghai_market_lr_thumb.jpg","galleries_id":"","width":130});
thumbnails[8103260] = clik.newPhoto({"link":"photo_8103260.html","caption":"Amsterdam","height":86,"id":8103260,"server_id":31,"src":"gijsbert_hanekroot_damrak_6586_thumb.jpg","galleries_id":433845,"width":130});
thumbnails[8180609] = clik.newPhoto({"link":"photo_8180609.html","caption":"Belgium","height":86,"id":8180609,"server_id":31,"src":"gijsbert_hanekroot_mas_6546_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[8103265] = clik.newPhoto({"link":"photo_8103265.html","caption":"Venezuela","height":87,"id":8103265,"server_id":31,"src":"gijsbert_hanekroot_plaza_bolivar_4019_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[8004727] = clik.newPhoto({"link":"photo_8004727.html","caption":"Shanghai","height":100,"id":8004727,"server_id":31,"src":"gijsbert_hanekroot_shanghai_3601_thumb.jpg","galleries_id":429375,"width":130});
thumbnails[8180568] = clik.newPhoto({"link":"photo_8180568.html","caption":"Amsterdam","height":87,"id":8180568,"server_id":31,"src":"gijsbert_hanekroot_ij_2134_thumb.jpg","galleries_id":433845,"width":130});
thumbnails[8180573] = clik.newPhoto({"link":"photo_8180573.html","caption":"Amsterdam","height":78,"id":8180573,"server_id":31,"src":"gijsbert_hanekroot_cruquiuskade_2066_thumb.jpg","galleries_id":433845,"width":130});
thumbnails[8004707] = clik.newPhoto({"link":"photo_8004707.html","caption":"Shanghai","height":87,"id":8004707,"server_id":31,"src":"gijsbert_hanekroot_expo2010_uk_1725_thumb.jpg","galleries_id":429375,"width":130});
thumbnails[8004713] = clik.newPhoto({"link":"photo_8004713.html","caption":"Shanghai","height":87,"id":8004713,"server_id":31,"src":"gijsbert_hanekroot_nanjing_eastrd_1677_thumb.jpg","galleries_id":429375,"width":130});
thumbnails[8004719] = clik.newPhoto({"link":"photo_8004719.html","caption":"Shanghai","height":86,"id":8004719,"server_id":31,"src":"gijsbert_hanekroot_pudong_4699_thumb.jpg","galleries_id":429375,"width":130});
thumbnails[8004722] = clik.newPhoto({"link":"photo_8004722.html","caption":"Shanghai","height":110,"id":8004722,"server_id":31,"src":"gijsbert_hanekroot_shanghai_1799_thumb.jpg","galleries_id":429375,"width":130});
thumbnails[8038037] = clik.newPhoto({"link":"photo_8038037.html","caption":"Detroit, MI","height":91,"id":8038037,"server_id":31,"src":"detroit_bancruptcy_smaller_3370_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037886] = clik.newPhoto({"link":"photo_8037886.html","caption":"Lake Erie, OH","height":76,"id":8037886,"server_id":31,"src":"chevrolet_smaller_3339_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037877] = clik.newPhoto({"link":"photo_8037877.html","caption":"Braddock, PA","height":86,"id":8037877,"server_id":31,"src":"braddock_child_smaller_3230_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038190] = clik.newPhoto({"link":"photo_8038190.html","caption":"Pittsburgh, PA","height":83,"id":8038190,"server_id":31,"src":"pittsburgh_hobos_smaller_3196_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037981] = clik.newPhoto({"link":"photo_8037981.html","caption":"Columbus, OH","height":87,"id":8037981,"server_id":31,"src":"columbus_high_st_smaller_3130_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037979] = clik.newPhoto({"link":"photo_8037979.html","caption":"Cincinnati, OH","height":84,"id":8037979,"server_id":31,"src":"cincinnati_sandwich_window_smaller_2978_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038185] = clik.newPhoto({"link":"photo_8038185.html","caption":"Nashville, TN","height":69,"id":8038185,"server_id":31,"src":"nashville_nelson_small-2749_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038181] = clik.newPhoto({"link":"photo_8038181.html","caption":"Memphis, TN","height":90,"id":8038181,"server_id":31,"src":"memphis_sun_smal_2386_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038166] = clik.newPhoto({"link":"photo_8038166.html","caption":"Memphis, TN","height":86,"id":8038166,"server_id":31,"src":"memphis_girl_small_2335_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038209] = clik.newPhoto({"link":"photo_8038209.html","caption":"Schoolbus, Wisconsin","height":82,"id":8038209,"server_id":31,"src":"schoolbus_small2127_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038260] = clik.newPhoto({"link":"photo_8038260.html","caption":"Long and winding road","height":86,"id":8038260,"server_id":31,"src":"ontheroad_small2121_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037944] = clik.newPhoto({"link":"photo_8037944.html","caption":"Chicago, IL","height":86,"id":8037944,"server_id":31,"src":"Chicago_chat_small_1884_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037902] = clik.newPhoto({"link":"photo_8037902.html","caption":"Chicago, IL","height":86,"id":8037902,"server_id":31,"src":"chicago_amtrak_smaller_2031_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037972] = clik.newPhoto({"link":"photo_8037972.html","caption":"Chicago, IL","height":84,"id":8037972,"server_id":31,"src":"chicago_family_smaller_1945_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037974] = clik.newPhoto({"link":"photo_8037974.html","caption":"Chicago, IL","height":196,"id":8037974,"server_id":31,"src":"chicago_milwaukee_smaller_1890_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8037887] = clik.newPhoto({"link":"photo_8037887.html","caption":"Chicago, IL","height":86,"id":8037887,"server_id":31,"src":"chicago_95_dan_ryan_smal_1977_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038228] = clik.newPhoto({"link":"photo_8038228.html","caption":"We are the best","height":89,"id":8038228,"server_id":31,"src":"we_are_the_best_small_1705_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038031] = clik.newPhoto({"link":"photo_8038031.html","caption":"Detroit, MI","height":87,"id":8038031,"server_id":31,"src":"detroit__redevelopment_small_1579_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8038045] = clik.newPhoto({"link":"photo_8038045.html","caption":"Detroit, MI","height":87,"id":8038045,"server_id":31,"src":"detroit_train_station_small_thumb.jpg","galleries_id":431339,"width":130});
thumbnails[8099963] = clik.newPhoto({"link":"photo_8099963.html","caption":"Sardegna","height":86,"id":8099963,"server_id":31,"src":"Sardegna_orgosolo38_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[7985887] = clik.newPhoto({"link":"photo_7985887.html","caption":"Bangalore","height":100,"id":7985887,"server_id":31,"src":"bangalore_03_0062_thumb.jpg","galleries_id":429376,"width":130});
thumbnails[8099611] = clik.newPhoto({"link":"photo_8099611.html","caption":"Bangla Desh","height":85,"id":8099611,"server_id":31,"src":"reizen204_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[8099635] = clik.newPhoto({"link":"photo_8099635.html","caption":"Bangla Desh","height":85,"id":8099635,"server_id":31,"src":"reizen1102_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[8099636] = clik.newPhoto({"link":"photo_8099636.html","caption":"Bangla Desh","height":86,"id":8099636,"server_id":31,"src":"reizen303_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[8099961] = clik.newPhoto({"link":"photo_8099961.html","caption":"Bangla Desh","height":193,"id":8099961,"server_id":31,"src":"reizen704_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[8099975] = clik.newPhoto({"link":"photo_8099975.html","caption":"Bangla Desh","height":78,"id":8099975,"server_id":31,"src":"reizen1104_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[7983578] = clik.newPhoto({"link":"photo_7983578.html","caption":"David Byrne, Talking Heads","height":174,"id":7983578,"server_id":31,"src":"byrne_david-oor2363_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[8099617] = clik.newPhoto({"link":"photo_8099617.html","caption":"Benin","height":87,"id":8099617,"server_id":31,"src":"reizen1006_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[8099614] = clik.newPhoto({"link":"photo_8099614.html","caption":"Vietnam","height":88,"id":8099614,"server_id":31,"src":"reizen_hanekrootfinal_thumb.jpg","galleries_id":433461,"width":130});
thumbnails[7917064] = clik.newPhoto({"link":"photo_7917064.html","caption":"Bob Marley","height":94,"id":7917064,"server_id":31,"src":"marley_bob-oor1417_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7963426] = clik.newPhoto({"link":"photo_7963426.html","caption":"David Bowie","height":162,"id":7963426,"server_id":31,"src":"bowie_david-626_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985854] = clik.newPhoto({"link":"photo_7985854.html","caption":"Keith Richards","height":88,"id":7985854,"server_id":31,"src":"Richard-Keith-Brussels-1976_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985858] = clik.newPhoto({"link":"photo_7985858.html","caption":"Carlos Santana","height":192,"id":7985858,"server_id":31,"src":"santana_carlos_k465_ams_7_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[8197621] = clik.newPhoto({"link":"photo_8197621.html","caption":"Herman Brood","height":103,"id":8197621,"server_id":31,"src":"brood_herman-oor234_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985857] = clik.newPhoto({"link":"photo_7985857.html","caption":"Todd Rundgren","height":97,"id":7985857,"server_id":31,"src":"rundgren_todd-oor2079_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7983570] = clik.newPhoto({"link":"photo_7983570.html","caption":"Dennis Wilson, Beach Boys","height":198,"id":7983570,"server_id":31,"src":"beach_boys_the-459_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985842] = clik.newPhoto({"link":"photo_7985842.html","caption":"Elton John","height":193,"id":7985842,"server_id":31,"src":"john_elton-oor1094_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985848] = clik.newPhoto({"link":"photo_7985848.html","caption":"Jerry Lee Lewis","height":165,"id":7985848,"server_id":31,"src":"lewis_jerry_lee-oor1367_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985853] = clik.newPhoto({"link":"photo_7985853.html","caption":"Bonnie Raitt","height":104,"id":7985853,"server_id":31,"src":"raitt_bonnie-oor675_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985890] = clik.newPhoto({"link":"photo_7985890.html","caption":"Bangalore","height":86,"id":7985890,"server_id":31,"src":"bangalore_03_0076_thumb.jpg","galleries_id":429376,"width":130});
thumbnails[7983581] = clik.newPhoto({"link":"photo_7983581.html","caption":"Captain Beefheart, (Don van Vliet)","height":84,"id":7983581,"server_id":31,"src":"captain_beefheart_k288_1971_ams_3_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985833] = clik.newPhoto({"link":"photo_7985833.html","caption":"Rory Gallagher","height":164,"id":7985833,"server_id":31,"src":"gallagher_rory-oor910_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985862] = clik.newPhoto({"link":"photo_7985862.html","caption":"John Entwhistle, The Who","height":93,"id":7985862,"server_id":31,"src":"who_the-Entwhistle_John__1971-HANEKROOT_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985794] = clik.newPhoto({"link":"photo_7985794.html","caption":"Roger Daltrey, The Who","height":94,"id":7985794,"server_id":31,"src":"daltrey_roger_-the_who062_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985845] = clik.newPhoto({"link":"photo_7985845.html","caption":"John Lennon","height":88,"id":7985845,"server_id":31,"src":"lennon_john_London_9_zw-w_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985851] = clik.newPhoto({"link":"photo_7985851.html","caption":"Joni Mitchell","height":96,"id":7985851,"server_id":31,"src":"MITCHEL_Joni_Amsterdam_1971-HANEKROOT_s_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985855] = clik.newPhoto({"link":"photo_7985855.html","caption":"Robbie Robertson, The Band","height":101,"id":7985855,"server_id":31,"src":"robertson_robbie-469_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985859] = clik.newPhoto({"link":"photo_7985859.html","caption":"Muddy Waters","height":100,"id":7985859,"server_id":31,"src":"waters_muddy-oor689_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985863] = clik.newPhoto({"link":"photo_7985863.html","caption":"Stev Winwood, Traffic","height":91,"id":7985863,"server_id":31,"src":"WINDWOOD_Amsterdam_1970-HANEKROOT_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985837] = clik.newPhoto({"link":"photo_7985837.html","caption":"Richie Havens","height":91,"id":7985837,"server_id":31,"src":"HAVENS_Richie_1970-HANEKROOT_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985841] = clik.newPhoto({"link":"photo_7985841.html","caption":"Grace Slick, Jefferson Airplan","height":101,"id":7985841,"server_id":31,"src":"jefferson_airplane-oor1129_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985830] = clik.newPhoto({"link":"photo_7985830.html","caption":"Brian Eno","height":160,"id":7985830,"server_id":31,"src":"eno_brian-758_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985821] = clik.newPhoto({"link":"photo_7985821.html","caption":"Bo Diddley","height":88,"id":7985821,"server_id":31,"src":"diddley_bo_k355__1971_ams_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985843] = clik.newPhoto({"link":"photo_7985843.html","caption":"Jimmy Page, Led Zeppelin","height":104,"id":7985843,"server_id":31,"src":"led_zeppelin-oor1357_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985839] = clik.newPhoto({"link":"photo_7985839.html","caption":"Mick Jagger, Rolling Stones","height":97,"id":7985839,"server_id":31,"src":"jagger_mick_401_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985865] = clik.newPhoto({"link":"photo_7985865.html","caption":"Neil Young, Crazy Horse","height":192,"id":7985865,"server_id":31,"src":"YOUNG_NEIL_-_HANEKROOT_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985849] = clik.newPhoto({"link":"photo_7985849.html","caption":"Udo Lindenberg","height":100,"id":7985849,"server_id":31,"src":"lindenberg_udo-oor1387_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985852] = clik.newPhoto({"link":"photo_7985852.html","caption":"Yoko Ono","height":96,"id":7985852,"server_id":31,"src":"ono_yoko_London_7_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985778] = clik.newPhoto({"link":"photo_7985778.html","caption":"Joe Cocker","height":117,"id":7985778,"server_id":31,"src":"COCKER_Joe_London_1971-HANEKROOT_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7983561] = clik.newPhoto({"link":"photo_7983561.html","caption":"Chat Baker","height":195,"id":7983561,"server_id":31,"src":"baker_chet04_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985832] = clik.newPhoto({"link":"photo_7985832.html","caption":"Jan Akkerman, Focus","height":103,"id":7985832,"server_id":31,"src":"focus_jan_akkerman-oor812_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985834] = clik.newPhoto({"link":"photo_7985834.html","caption":"Jerry Garcia, Greatfull Dead","height":87,"id":7985834,"server_id":31,"src":"garcia_jerry_K291_1971_copenhagen_1_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985827] = clik.newPhoto({"link":"photo_7985827.html","caption":"Fats Domino","height":87,"id":7985827,"server_id":31,"src":"domino_fats_montreux_K612_1973_8_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[7985783] = clik.newPhoto({"link":"photo_7985783.html","caption":"John Fogerty, Creedence Clearwater Revival","height":90,"id":7985783,"server_id":31,"src":"CREEDENCE_Amsterdam_1970-HANEKROOT2_thumb.jpg","galleries_id":428989,"width":130});
thumbnails[9116682] = clik.newPhoto({"link":"photo_9116682.html","caption":"Berlin","height":88,"id":9116682,"server_id":31,"src":"gijsbert_hanekroot_berlin_Friedrich_Seidenstucker_5485_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8373374] = clik.newPhoto({"link":"photo_8373374.html","caption":"Laren","height":107,"id":8373374,"server_id":31,"src":"gijsbert_hanekroot_zhao_nengzhi_15.33.50_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8293079] = clik.newPhoto({"link":"photo_8293079.html","caption":"Shanghai","height":81,"id":8293079,"server_id":31,"src":"shanghai_lr_5001_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8142381] = clik.newPhoto({"link":"photo_8142381.html","caption":"Rotterdam","height":102,"id":8142381,"server_id":31,"src":"condo_lr_141334_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8142379] = clik.newPhoto({"link":"photo_8142379.html","caption":"Amsterdam","height":100,"id":8142379,"server_id":31,"src":"gijsbert_hanekroot_foam_144447_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8142377] = clik.newPhoto({"link":"photo_8142377.html","caption":"Rotterdam","height":79,"id":8142377,"server_id":31,"src":"gijsbert_hanekroot_kunsthal_4222_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8142613] = clik.newPhoto({"link":"photo_8142613.html","caption":"Rotterdam","height":89,"id":8142613,"server_id":31,"src":"gijsbert_hanekroot_boymans_3024_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8142375] = clik.newPhoto({"link":"photo_8142375.html","caption":"Paris","height":94,"id":8142375,"server_id":31,"src":"gijsbert_hanekroot_yoshida_2567_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8198322] = clik.newPhoto({"link":"photo_8198322.html","caption":"North Adams, MA","height":94,"id":8198322,"server_id":31,"src":"moca_lewitt_3450_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8374549] = clik.newPhoto({"link":"photo_8374549.html","caption":"Boston","height":81,"id":8374549,"server_id":31,"src":"boston_mfa_3428_lr_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8198291] = clik.newPhoto({"link":"photo_8198291.html","caption":"London","height":113,"id":8198291,"server_id":31,"src":"art_consumption_0727_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8388186] = clik.newPhoto({"link":"photo_8388186.html","caption":"Shanghai","height":104,"id":8388186,"server_id":31,"src":"shanghai_moganshan_road_art_centre_3_lr_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8400617] = clik.newPhoto({"link":"photo_8400617.html","caption":"Beijing","height":94,"id":8400617,"server_id":31,"src":"beijing_798_art_village_lr_thumb.jpg","galleries_id":435358,"width":130});
thumbnails[8577967] = clik.newPhoto({"link":"photo_8577967.html","caption":"Syracusa","height":87,"id":8577967,"server_id":31,"src":"syracusa_lr_5328_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8572727] = clik.newPhoto({"link":"photo_8572727.html","caption":"Syracusa","height":89,"id":8572727,"server_id":31,"src":"gijsbert_hanekroot_syracuse_5295_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8467204] = clik.newPhoto({"link":"photo_8467204.html","caption":"Stansted, UK","height":129,"id":8467204,"server_id":31,"src":"gijsbert_hanekroot_stansted_5182_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8356554] = clik.newPhoto({"link":"photo_8356554.html","caption":"The Hague","height":111,"id":8356554,"server_id":31,"src":"gijsbert_hanekroot_fred_6785_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8303754] = clik.newPhoto({"link":"photo_8303754.html","caption":"Shanghai","height":87,"id":8303754,"server_id":31,"src":"gijsbert_hanekroot_huaihai_rd_6781_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8292815] = clik.newPhoto({"link":"photo_8292815.html","caption":"Shanghai","height":87,"id":8292815,"server_id":31,"src":"sh_railwaystation_lr_4989_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8142393] = clik.newPhoto({"link":"photo_8142393.html","caption":"Barberino di Mugello","height":207,"id":8142393,"server_id":31,"src":"gijsbert_hanekroot_shopping_6453_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8142394] = clik.newPhoto({"link":"photo_8142394.html","caption":"Caracas","height":101,"id":8142394,"server_id":31,"src":"gijsbert_hanekroot_caracas_4047_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8142389] = clik.newPhoto({"link":"photo_8142389.html","caption":"Paris","height":88,"id":8142389,"server_id":31,"src":"paris_lr_2626_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8142656] = clik.newPhoto({"link":"photo_8142656.html","caption":"Amsterdam","height":175,"id":8142656,"server_id":31,"src":"gijsbert_hanekroot_cs_1576_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8400608] = clik.newPhoto({"link":"photo_8400608.html","caption":"Shanghai","height":87,"id":8400608,"server_id":31,"src":"shanghai_shopping_2_lr_thumb.jpg","galleries_id":435359,"width":130});
thumbnails[8530804] = clik.newPhoto({"link":"photo_8530804.html","caption":"Groningen","height":85,"id":8530804,"server_id":31,"src":"public_toilet_lr_5214_thumb.jpg","galleries_id":444602,"width":130});
thumbnails[8530816] = clik.newPhoto({"link":"photo_8530816.html","caption":"Groningen","height":87,"id":8530816,"server_id":31,"src":"de_brink_lr_5236_thumb.jpg","galleries_id":444602,"width":130});
thumbnails[8500198] = clik.newPhoto({"link":"photo_8500198.html","caption":"Amsterdam","height":85,"id":8500198,"server_id":31,"src":"bijzantium_lr_5188_thumb.jpg","galleries_id":444602,"width":130});
thumbnails[8493738] = clik.newPhoto({"link":"photo_8493738.html","caption":"Rotterdam","height":87,"id":8493738,"server_id":31,"src":"kunsthal_lr_4202_thumb.jpg","galleries_id":444602,"width":130});
thumbnails[8493719] = clik.newPhoto({"link":"photo_8493719.html","caption":"Beijing","height":90,"id":8493719,"server_id":31,"src":"beijing-China_Central_Television_Headquarters_by_Rem_Koolhaas_and_Ole_Scheeren_lr_3_thumb.jpg","galleries_id":444602,"width":130});
thumbnails[8493454] = clik.newPhoto({"link":"photo_8493454.html","caption":"Berlin","height":86,"id":8493454,"server_id":31,"src":"ambassade_lr_0454_thumb.jpg","galleries_id":444602,"width":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[435358] = clik.newGallery({"photoIDs":[9116682,8373374,8293079,8142381,8142379,8142377,8142613,8142375,8198322,8374549,8198291,8388186,8400617],"link":"section522845.html","skipIndex":0,"section_code":"section522845","id":435358,"parentGallery":"","featured_images":"9116682,8400617,8388186,8374549,8373374,8293079,8198322,8198291,8142613,8142381","maxRecords":0,"usePopups":false,"singleSection":true,"title":"extra1"});galleries[435359] = clik.newGallery({"photoIDs":[8577967,8572727,8467204,8356554,8303754,8292815,8142393,8142394,8142389,8142656,8400608],"link":"section522846.html","skipIndex":0,"section_code":"section522846","id":435359,"parentGallery":"","featured_images":"8577967,8572727,8467204,8400608,8356554,8303754,8292815,8142656,8142394,8142393","maxRecords":0,"usePopups":false,"singleSection":true,"title":"extra2"});galleries[444602] = clik.newGallery({"photoIDs":[8530804,8530816,8500198,8493738,8493719,8493454],"link":"section534221.html","skipIndex":0,"section_code":"section534221","id":444602,"parentGallery":"","featured_images":"8530816,8530804,8500198,8493738,8493719,8493454","maxRecords":0,"usePopups":false,"singleSection":true,"title":"extra3"});galleries[428989] = clik.newGallery({"photoIDs":[7983578,7917064,7963426,7985854,7985858,8197621,7985857,7983570,7985842,7985848,7985853,7983581,7985833,7985862,7985794,7985845,7985851,7985855,7985859,7985863,7985837,7985841,7985830,7985821,7985843,7985839,7985865,7985849,7985852,7985778,7983561,7985832,7985834,7985827,7985783],"link":"gallery_428989.html","skipIndex":0,"section_code":"gallery","id":428989,"parentGallery":"","featured_images":"8197621,7985865,7985863,7985862,7985859,7985858,7985857,7985855,7985854,7985853","maxRecords":0,"usePopups":false,"singleSection":false,"title":"music"});galleries[431339] = clik.newGallery({"photoIDs":[8038037,8037886,8037877,8038190,8037981,8037979,8038185,8038181,8038166,8038209,8038260,8037944,8037902,8037972,8037974,8037887,8038228,8038031,8038045],"link":"gallery_431339.html","skipIndex":0,"section_code":"gallery","id":431339,"parentGallery":"","featured_images":"8038260,8038228,8038209,8038190,8038185,8038181,8038166,8038045,8038037,8038031","maxRecords":0,"usePopups":false,"singleSection":false,"title":"usa"});galleries[429375] = clik.newGallery({"photoIDs":[8004727,8004707,8004713,8004719,8004722],"link":"gallery_429375.html","skipIndex":0,"section_code":"gallery","id":429375,"parentGallery":"","featured_images":"8004727,8004722,8004719,8004713,8004707","maxRecords":0,"usePopups":false,"singleSection":false,"title":"china"});galleries[429376] = clik.newGallery({"photoIDs":[7985887,7985890],"link":"gallery_429376.html","skipIndex":0,"section_code":"gallery","id":429376,"parentGallery":"","featured_images":"7985890,7985887","maxRecords":0,"usePopups":false,"singleSection":false,"title":"india"});galleries[433845] = clik.newGallery({"photoIDs":[8103260,8180568,8180573],"link":"gallery_433845.html","skipIndex":0,"section_code":"gallery","id":433845,"parentGallery":"","featured_images":"8180573,8180568,8103260","maxRecords":0,"usePopups":false,"singleSection":false,"title":"netherlands"});galleries[433461] = clik.newGallery({"photoIDs":[8180609,8103265,8099963,8099611,8099635,8099636,8099961,8099975,8099617,8099614],"link":"gallery_433461.html","skipIndex":0,"section_code":"gallery","id":433461,"parentGallery":"","featured_images":"8180609,8103265,8099975,8099963,8099961,8099636,8099635,8099617,8099614,8099611","maxRecords":0,"usePopups":false,"singleSection":false,"title":"other countries"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '9116682,8577967,8572727,8530816,8530804,8500198,8493738,8493719,8493454,8467204,8400617,8400608,8399552,8388186,8381029,8374549,8373374,8356592,8356554,8303754,8293079,8292815,8198322,8198291,8197621,8180609,8180573,8180568,8143135,8142656,8142613,8142394,8142393,8142389,8142381,8142379,8142377,8142375,8103265,8103260,8099975,8099963,8099961,8099636,8099635,8099617,8099614,8099611,8038260,8038228';
imageSets[1] = '9116682,8577967,8572727,8530816,8530804,8500198,8493738,8493719,8493454,8467204,8400617,8400608,8399552,8388186,8381029,8374549,8373374,8356592,8356554,8303754,8293079,8292815,8198322,8198291,8197621,8180609,8180573,8180568,8143135,8142656,8142613,8142394,8142393,8142389,8142381,8142379,8142377,8142375,8103265,8103260,8099975,8099963,8099961,8099636,8099635,8099617,8099614,8099611,8038260,8038228';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/gwh45/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/gwh45/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/gwh45/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/gwh45/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/gwh45/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/gwh45/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/gwh45/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/gwh45/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 = 'Gijsbert Hanekroot Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
			
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

