window.thumbnails = {};
															thumbnails[1095272] = clik.newPhoto({"id":1095272,"src":"Mountain top path_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Mountain path","height":98});
															thumbnails[493143] = clik.newPhoto({"id":493143,"src":"Melbreak from Rannerdale_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Melbreak from Rannerdale Knotts","height":87});
															thumbnails[5913892] = clik.newPhoto({"id":5913892,"src":"through_the_window_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_5913892.html","width":130,"caption":"Through the window","height":189});
															thumbnails[5913899] = clik.newPhoto({"id":5913899,"src":"piss_take_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_5913899.html","width":130,"caption":"left behind","height":87});
															thumbnails[4824124] = clik.newPhoto({"id":4824124,"src":"rainbow_foam_thumb.jpg","galleries_id":374390,"server_id":1,"link":"photo_4824124.html","width":130,"caption":"Rainbow foam","height":87});
															thumbnails[4000127] = clik.newPhoto({"id":4000127,"src":"light_on_wall_thumb.jpg","galleries_id":374382,"server_id":1,"link":"photo_4000127.html","width":130,"caption":"Emerging Colours","height":195});
															thumbnails[4009783] = clik.newPhoto({"id":4009783,"src":"face1_thumb.jpg","galleries_id":374743,"server_id":1,"link":"photo_4009783.html","width":130,"caption":"","height":87});
															thumbnails[3448285] = clik.newPhoto({"id":3448285,"src":"material_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3448285.html","width":130,"caption":"","height":195});
															thumbnails[3480692] = clik.newPhoto({"id":3480692,"src":"twig_thumb.jpg","galleries_id":374398,"server_id":1,"link":"photo_3480692.html","width":130,"caption":"","height":85});
															thumbnails[3480706] = clik.newPhoto({"id":3480706,"src":"statue1_thumb.jpg","galleries_id":374398,"server_id":1,"link":"photo_3480706.html","width":130,"caption":"","height":173});
															thumbnails[3262347] = clik.newPhoto({"id":3262347,"src":"orange sky_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_3262347.html","width":130,"caption":"Orange sky","height":93});
															thumbnails[3262350] = clik.newPhoto({"id":3262350,"src":"black chimneys_thumb.jpg","galleries_id":374741,"server_id":1,"link":"photo_3262350.html","width":130,"caption":"Black chimneys","height":98});
															thumbnails[2642114] = clik.newPhoto({"id":2642114,"src":"whitby boats_thumb.jpg","galleries_id":374392,"server_id":1,"link":"photo_2642114.html","width":130,"caption":"Whitby boats","height":87});
															thumbnails[2374957] = clik.newPhoto({"id":2374957,"src":"red square_1_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_2374957.html","width":130,"caption":"Red square","height":93});
															thumbnails[1084751] = clik.newPhoto({"id":1084751,"src":"Path of graves_thumb.jpg","galleries_id":374742,"server_id":1,"link":"photo_1084751.html","width":130,"caption":"Grave path","height":195});
															thumbnails[976358] = clik.newPhoto({"id":976358,"src":"gnome window_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_976358.html","width":130,"caption":"A new addition, May 2007","height":98});
															thumbnails[651093] = clik.newPhoto({"id":651093,"src":"Golden leaf_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_651093.html","width":130,"caption":"Gutter light","height":98});
															thumbnails[457053] = clik.newPhoto({"id":457053,"src":"cell window_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_457053.html","width":130,"caption":"","height":195});
															thumbnails[457058] = clik.newPhoto({"id":457058,"src":"open door_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_457058.html","width":130,"caption":"","height":87});
															thumbnails[475568] = clik.newPhoto({"id":475568,"src":"room wth a view_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_475568.html","width":130,"caption":"Room with a view","height":87});
															thumbnails[490632] = clik.newPhoto({"id":490632,"src":"stone steps_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_490632.html","width":130,"caption":"Locked up ","height":195});
															thumbnails[457302] = clik.newPhoto({"id":457302,"src":"CRUCIBLE_thumb.jpg","galleries_id":374742,"server_id":1,"link":"photo_457302.html","width":130,"caption":"Crucible Theatre, Sheffield","height":98});
															thumbnails[442981] = clik.newPhoto({"id":442981,"src":"CAT_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_442981.html","width":130,"caption":"Cat painted on the cell wall in the children's ward","height":87});
															thumbnails[443350] = clik.newPhoto({"id":443350,"src":"door in corridor_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_443350.html","width":130,"caption":"deserted","height":87});
															thumbnails[443352] = clik.newPhoto({"id":443352,"src":"blue window and door_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_443352.html","width":130,"caption":"Blue","height":87});
															thumbnails[445336] = clik.newPhoto({"id":445336,"src":"door on floortif_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_445336.html","width":130,"caption":"Rest in peace","height":87});
															thumbnails[445339] = clik.newPhoto({"id":445339,"src":"happy child_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_445339.html","width":130,"caption":"Happy little girl","height":87});
															thumbnails[445344] = clik.newPhoto({"id":445344,"src":"red and blue flakes_thumb.jpg","galleries_id":374382,"server_id":1,"link":"photo_445344.html","width":130,"caption":"Peeling blue paint","height":87});
															thumbnails[448073] = clik.newPhoto({"id":448073,"src":"Stairs_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_448073.html","width":130,"caption":"Stairs leading down to the main entrance hall","height":195});
															thumbnails[449259] = clik.newPhoto({"id":449259,"src":"Stage_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_449259.html","width":130,"caption":"The old ballroom","height":195});
															thumbnails[450636] = clik.newPhoto({"id":450636,"src":"door in corridor2_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_450636.html","width":130,"caption":"no end","height":195});
															thumbnails[451084] = clik.newPhoto({"id":451084,"src":"frame in corridor_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_451084.html","width":130,"caption":"corridor light","height":86});
															thumbnails[452250] = clik.newPhoto({"id":452250,"src":"me_thumb.jpg","galleries_id":375058,"server_id":1,"link":"photo_452250.html","width":130,"caption":"The photographer","height":87});
															thumbnails[452681] = clik.newPhoto({"id":452681,"src":"windows and steps_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_452681.html","width":130,"caption":"","height":87});
															thumbnails[430621] = clik.newPhoto({"id":430621,"src":"Satan is a jew_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_430621.html","width":130,"caption":"Broken","height":87});
															thumbnails[432594] = clik.newPhoto({"id":432594,"src":"smiley kite_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_432594.html","width":130,"caption":"High","height":80});
															thumbnails[438596] = clik.newPhoto({"id":438596,"src":"wallpaper_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_438596.html","width":130,"caption":"Holes","height":87});
															thumbnails[425144] = clik.newPhoto({"id":425144,"src":"CANDLES_thumb.jpg","galleries_id":375058,"server_id":1,"link":"photo_425144.html","width":130,"caption":"Church Candles","height":87});
															thumbnails[244071] = clik.newPhoto({"id":244071,"src":"b and w tree_thumb.jpg","galleries_id":374741,"server_id":1,"link":"photo_244071.html","width":130,"caption":"Arboretum, Lincoln","height":98});
															thumbnails[244091] = clik.newPhoto({"id":244091,"src":"ice van2_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_244091.html","width":130,"caption":"Ice cream van, Robin Hoods Bay","height":87});
															thumbnails[244379] = clik.newPhoto({"id":244379,"src":"self2_thumb.jpg","galleries_id":375058,"server_id":1,"link":"photo_244379.html","width":130,"caption":"Self portrait","height":98});
															thumbnails[374947] = clik.newPhoto({"id":374947,"src":"Purple House_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_374947.html","width":130,"caption":"Purple House","height":87});
															thumbnails[536688] = clik.newPhoto({"id":536688,"src":"Bills window1_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_536688.html","width":130,"caption":"Bill's bathroom window","height":195});
															thumbnails[700975] = clik.newPhoto({"id":700975,"src":"Rigg beck FP_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_700975.html","width":130,"caption":"Rigg Beck, a few years ago","height":98});
															thumbnails[1150383] = clik.newPhoto({"id":1150383,"src":"birds_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_1150383.html","width":130,"caption":"Birds and roses","height":95});
															thumbnails[1163333] = clik.newPhoto({"id":1163333,"src":"through the gate_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_1163333.html","width":130,"caption":"Gate, St Johns","height":87});
															thumbnails[1640227] = clik.newPhoto({"id":1640227,"src":"NW_thumb.jpg","galleries_id":374742,"server_id":1,"link":"photo_1640227.html","width":130,"caption":"THIS ONE'S CALLED BETTER DAYS To Blades no explanation needed!","height":217});
															thumbnails[1640231] = clik.newPhoto({"id":1640231,"src":"Way in_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_1640231.html","width":130,"caption":"Way in, St John's","height":91});
															thumbnails[1640252] = clik.newPhoto({"id":1640252,"src":"entrance hall_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_1640252.html","width":130,"caption":"Entrance hall, St Johns","height":195});
															thumbnails[1669803] = clik.newPhoto({"id":1669803,"src":"Pink  umbrella_thumb.jpg","galleries_id":374742,"server_id":1,"link":"photo_1669803.html","width":130,"caption":"","height":98});
															thumbnails[1669806] = clik.newPhoto({"id":1669806,"src":"City Light RTP(7715)_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_1669806.html","width":130,"caption":"City light","height":98});
															thumbnails[1709989] = clik.newPhoto({"id":1709989,"src":"St Johns outtside_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_1709989.html","width":130,"caption":"","height":87});
															thumbnails[1756408] = clik.newPhoto({"id":1756408,"src":"keep out_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_1756408.html","width":130,"caption":"St Johns","height":84});
															thumbnails[1850111] = clik.newPhoto({"id":1850111,"src":"the singing artist_thumb.jpg","galleries_id":375058,"server_id":1,"link":"photo_1850111.html","width":130,"caption":"The singing artist Bill Becker","height":210});
															thumbnails[1925466] = clik.newPhoto({"id":1925466,"src":"steamy window_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_1925466.html","width":130,"caption":"Dinner party","height":86});
															thumbnails[1981914] = clik.newPhoto({"id":1981914,"src":"Mermaid_thumb.jpg","galleries_id":374392,"server_id":1,"link":"photo_1981914.html","width":130,"caption":"Mermaid","height":91});
															thumbnails[2453131] = clik.newPhoto({"id":2453131,"src":"Penny from hell_thumb.jpg","galleries_id":374382,"server_id":1,"link":"photo_2453131.html","width":130,"caption":"Penny Farthing","height":91});
															thumbnails[2782281] = clik.newPhoto({"id":2782281,"src":"dark door_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_2782281.html","width":130,"caption":"","height":104});
															thumbnails[3264041] = clik.newPhoto({"id":3264041,"src":"Matilda is dead_thumb.jpg","galleries_id":374742,"server_id":1,"link":"photo_3264041.html","width":130,"caption":"Who is Matilda?","height":98});
															thumbnails[3542515] = clik.newPhoto({"id":3542515,"src":"blocks_thumb.jpg","galleries_id":374396,"server_id":1,"link":"photo_3542515.html","width":130,"caption":"","height":93});
															thumbnails[5870850] = clik.newPhoto({"id":5870850,"src":"Black_stripe_un_sharpened_thumb.jpg","galleries_id":374780,"server_id":1,"link":"photo_5870850.html","width":130,"caption":"Black Stripe","height":78});
															thumbnails[5870853] = clik.newPhoto({"id":5870853,"src":"black_plant_unsharpened_thumb.jpg","galleries_id":374780,"server_id":1,"link":"photo_5870853.html","width":130,"caption":"Black Plant","height":87});
															thumbnails[5934960] = clik.newPhoto({"id":5934960,"src":"inside_out_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_5934960.html","width":130,"caption":"Inside out","height":91});
															thumbnails[5935651] = clik.newPhoto({"id":5935651,"src":"Tree_828D570E-24E8-5EC4-4FDF1C9C6AB13F69_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_5935651.html","width":130,"caption":"Family tree","height":85});
															thumbnails[5945274] = clik.newPhoto({"id":5945274,"src":"through_the_roof_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_5945274.html","width":130,"caption":"Through the roof","height":87});
															thumbnails[6446106] = clik.newPhoto({"id":6446106,"src":"Beauty_PCM_MATTE_thumb.jpg","galleries_id":374743,"server_id":1,"link":"photo_6446106.html","width":130,"caption":"Beauty is a Beast","height":83});
															thumbnails[6446116] = clik.newPhoto({"id":6446116,"src":"Bus_nearest_PCM_matte_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_6446116.html","width":130,"caption":"Yellow Bus, St John's Hospital, Lincoln","height":85});
															thumbnails[6446121] = clik.newPhoto({"id":6446121,"src":"cash_till_pcm_matte_thumb.jpg","galleries_id":374741,"server_id":1,"link":"photo_6446121.html","width":130,"caption":"Sinking","height":82});
															thumbnails[6446152] = clik.newPhoto({"id":6446152,"src":"Dividing_lines_PCM_matte_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_6446152.html","width":130,"caption":"Dividing Lines","height":195});
															thumbnails[6446160] = clik.newPhoto({"id":6446160,"src":"Hot_plant_apple_RGB_RGB_thumb.jpg","galleries_id":374780,"server_id":1,"link":"photo_6446160.html","width":130,"caption":"Hot Plant","height":87});
															thumbnails[6446162] = clik.newPhoto({"id":6446162,"src":"houses_generic_matte_thumb.jpg","galleries_id":374393,"server_id":1,"link":"photo_6446162.html","width":130,"caption":"By the sea","height":83});
															thumbnails[6446171] = clik.newPhoto({"id":6446171,"src":"PIER_WHITBY__thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_6446171.html","width":130,"caption":"Whitby Pier","height":86});
															thumbnails[6446180] = clik.newPhoto({"id":6446180,"src":"ring_on_sea_generic_matte_thumb.jpg","galleries_id":374390,"server_id":1,"link":"photo_6446180.html","width":130,"caption":"Out to sea","height":86});
															thumbnails[6446183] = clik.newPhoto({"id":6446183,"src":"ripple_PCM_matte_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_6446183.html","width":130,"caption":"Ripples","height":198});
															thumbnails[6446186] = clik.newPhoto({"id":6446186,"src":"SPIDER_PLANT_PCM_matte_thumb.jpg","galleries_id":375058,"server_id":1,"link":"photo_6446186.html","width":130,"caption":"Spider Plant","height":87});
															thumbnails[6446192] = clik.newPhoto({"id":6446192,"src":"stairs_PCM_matte_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_6446192.html","width":130,"caption":"Stair Shadows","height":87});
															thumbnails[6446198] = clik.newPhoto({"id":6446198,"src":"We_all_fade_PCM_matte_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_6446198.html","width":130,"caption":"We all do fade (as a leaf)  LIMITED EDITION (out of 50)","height":89});
															thumbnails[6825794] = clik.newPhoto({"id":6825794,"src":"through_broken_gate_thumb.jpg","galleries_id":374390,"server_id":1,"link":"photo_6825794.html","width":130,"caption":"Broken","height":90});
															thumbnails[6879964] = clik.newPhoto({"id":6879964,"src":"remains_of_church_thumb.jpg","galleries_id":374390,"server_id":1,"link":"photo_6879964.html","width":130,"caption":"Church remains","height":87});
															thumbnails[6914524] = clik.newPhoto({"id":6914524,"src":"Beauty_PCM_MATTE_C0214E86-24E8-5EC4-4F67A4C7A80B2DE1_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_6914524.html","width":130,"caption":"Beauty is a Beast","height":83});
															thumbnails[7062876] = clik.newPhoto({"id":7062876,"src":"colourful_puddle_copy12_thumb.jpg","galleries_id":419476,"server_id":1,"link":"photo_7062876.html","width":130,"caption":"Colourful Puddle","height":76});
															thumbnails[7759317] = clik.newPhoto({"id":7759317,"src":"BLUE_TREES_thumb.jpg","galleries_id":419476,"server_id":1,"link":"photo_7759317.html","width":130,"caption":"Blue","height":194});
															thumbnails[8192440] = clik.newPhoto({"id":8192440,"src":"yellow_boat_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192440.html","width":130,"caption":"Harbour Light","height":87});
															thumbnails[8217875] = clik.newPhoto({"id":8217875,"src":"rope_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217875.html","width":130,"caption":"Sea Blue","height":87});
															thumbnails[8217876] = clik.newPhoto({"id":8217876,"src":"Lighthouse_reflection_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217876.html","width":130,"caption":"In the Sea, Jersey","height":87});
															thumbnails[8217877] = clik.newPhoto({"id":8217877,"src":"green_and_blue_bark_apple_full_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217877.html","width":130,"caption":"Lime Tree","height":84});
															thumbnails[8217881] = clik.newPhoto({"id":8217881,"src":"urban_daffodils_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217881.html","width":130,"caption":"Urban Daffodils","height":96});
															thumbnails[8217884] = clik.newPhoto({"id":8217884,"src":"river_walk_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217884.html","width":130,"caption":"River Walk","height":98});
															thumbnails[8217885] = clik.newPhoto({"id":8217885,"src":"Matilda_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217885.html","width":130,"caption":"My Dream House","height":101});
															thumbnails[8217886] = clik.newPhoto({"id":8217886,"src":"two_dolls_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217886.html","width":130,"caption":"Untitled","height":88});
															thumbnails[8217889] = clik.newPhoto({"id":8217889,"src":"Leave_the_lights_on_if.._thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8217889.html","width":130,"caption":"Leave the Lights On......","height":87});
															thumbnails[8217978] = clik.newPhoto({"id":8217978,"src":"fluffy_thumb.jpg","galleries_id":375058,"server_id":1,"link":"photo_8217978.html","width":130,"caption":"Explosions in the Sky","height":98});
															thumbnails[8231217] = clik.newPhoto({"id":8231217,"src":"common_view_of_cath_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8231217.html","width":130,"caption":"A Common View","height":82});
															thumbnails[8963178] = clik.newPhoto({"id":8963178,"src":"all_yellow_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963178.html","width":130,"caption":"All Yellow","height":87});
															thumbnails[8963182] = clik.newPhoto({"id":8963182,"src":"birdy_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963182.html","width":130,"caption":"Babybird","height":87});
															thumbnails[8963183] = clik.newPhoto({"id":8963183,"src":"brick_petal_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963183.html","width":130,"caption":"","height":96});
															thumbnails[8963185] = clik.newPhoto({"id":8963185,"src":"funeral_blues_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963185.html","width":130,"caption":"Funeral Blues, Pinhole","height":195});
															thumbnails[8963187] = clik.newPhoto({"id":8963187,"src":"Last_Christmas_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963187.html","width":130,"caption":"Last Christmas","height":84});
															thumbnails[8963189] = clik.newPhoto({"id":8963189,"src":"leaf_on_tree_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963189.html","width":130,"caption":"Forest leaf","height":90});
															thumbnails[8963191] = clik.newPhoto({"id":8963191,"src":"love_is_pilling_over_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963191.html","width":130,"caption":"My Love is spilling over","height":98});
															thumbnails[8963193] = clik.newPhoto({"id":8963193,"src":"NBT_leaves_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963193.html","width":130,"caption":"against the wall","height":87});
															thumbnails[8963196] = clik.newPhoto({"id":8963196,"src":"The_colour_black_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963196.html","width":130,"caption":"Black","height":86});
															thumbnails[8963199] = clik.newPhoto({"id":8963199,"src":"the_day_the_music_died_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963199.html","width":130,"caption":"The day the music died","height":88});
															thumbnails[8963204] = clik.newPhoto({"id":8963204,"src":"The_light_behind_you_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963204.html","width":130,"caption":"The unbearable lightness of being","height":173});
															thumbnails[8963223] = clik.newPhoto({"id":8963223,"src":"wild_beauty_thumb.jpg","galleries_id":374383,"server_id":1,"link":"photo_8963223.html","width":130,"caption":"Wild Beauty","height":86});
															thumbnails[3447253] = clik.newPhoto({"id":3447253,"src":"Tower_2_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3447253.html","width":130,"caption":"","height":212});
															thumbnails[3448304] = clik.newPhoto({"id":3448304,"src":"ArbeitDPP_0010_thumb.jpg","galleries_id":374396,"server_id":1,"link":"photo_3448304.html","width":130,"caption":"Work brings freedom","height":87});
															thumbnails[3448121] = clik.newPhoto({"id":3448121,"src":"tracks2_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3448121.html","width":130,"caption":"","height":195});
															thumbnails[3447219] = clik.newPhoto({"id":3447219,"src":"path_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3447219.html","width":130,"caption":"","height":87});
															thumbnails[3448289] = clik.newPhoto({"id":3448289,"src":"HaltDPP_0057_thumb.jpg","galleries_id":374396,"server_id":1,"link":"photo_3448289.html","width":130,"caption":"","height":87});
															thumbnails[3428419] = clik.newPhoto({"id":3428419,"src":"sign_thumb.jpg","galleries_id":374396,"server_id":1,"link":"photo_3428419.html","width":130,"caption":"Danger of death","height":87});
															thumbnails[430433] = clik.newPhoto({"id":430433,"src":"CW 1_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_430433.html","width":130,"caption":"Children's ward","height":87});
															thumbnails[244015] = clik.newPhoto({"id":244015,"src":"dreams 2_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_244015.html","width":130,"caption":"demolished dream","height":87});
															thumbnails[244088] = clik.newPhoto({"id":244088,"src":"Granny papers window_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_244088.html","width":130,"caption":"Valentines","height":98});
															thumbnails[3439595] = clik.newPhoto({"id":3439595,"src":"two trees b and w_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3439595.html","width":130,"caption":"","height":87});
															thumbnails[3439594] = clik.newPhoto({"id":3439594,"src":"tree_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3439594.html","width":130,"caption":"","height":200});
															thumbnails[285645] = clik.newPhoto({"id":285645,"src":"poppy_thumb.jpg","galleries_id":375058,"server_id":1,"link":"photo_285645.html","width":130,"caption":"Poppy","height":87});
															thumbnails[244399] = clik.newPhoto({"id":244399,"src":"whitby cross_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_244399.html","width":130,"caption":"Whitby cross","height":98});
															thumbnails[3437600] = clik.newPhoto({"id":3437600,"src":"gates_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3437600.html","width":130,"caption":"","height":195});
															thumbnails[2220093] = clik.newPhoto({"id":2220093,"src":"washing out_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_2220093.html","width":130,"caption":"hanging the washing out","height":88});
															thumbnails[270668] = clik.newPhoto({"id":270668,"src":"spring_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_270668.html","width":130,"caption":"Spring","height":98});
															thumbnails[8192388] = clik.newPhoto({"id":8192388,"src":"sky_turns_black1_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192388.html","width":130,"caption":"The Sky Turns Black......","height":87});
															thumbnails[3446533] = clik.newPhoto({"id":3446533,"src":"electrics_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3446533.html","width":130,"caption":"","height":195});
															thumbnails[2220119] = clik.newPhoto({"id":2220119,"src":"corner chair_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_2220119.html","width":130,"caption":"Corner chair","height":87});
															thumbnails[3428407] = clik.newPhoto({"id":3428407,"src":"Chimneys_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3428407.html","width":130,"caption":"","height":89});
															thumbnails[270663] = clik.newPhoto({"id":270663,"src":"Easter_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_270663.html","width":130,"caption":"Easter","height":98});
															thumbnails[3147633] = clik.newPhoto({"id":3147633,"src":"Lincoln Corridor_1_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_3147633.html","width":130,"caption":"Lincoln corridor","height":87});
															thumbnails[8192389] = clik.newPhoto({"id":8192389,"src":"Steel_bars_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192389.html","width":130,"caption":"Steel bars","height":89});
															thumbnails[3428405] = clik.newPhoto({"id":3428405,"src":"dark sky_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3428405.html","width":130,"caption":"","height":87});
															thumbnails[3428411] = clik.newPhoto({"id":3428411,"src":"bars_thumb.jpg","galleries_id":374396,"server_id":1,"link":"photo_3428411.html","width":130,"caption":"","height":88});
															thumbnails[2220113] = clik.newPhoto({"id":2220113,"src":"mattress_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_2220113.html","width":130,"caption":"Bed","height":87});
															thumbnails[316567] = clik.newPhoto({"id":316567,"src":"ENGLAND1_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_316567.html","width":130,"caption":"World Cup 2006 ","height":98});
															thumbnails[244419] = clik.newPhoto({"id":244419,"src":"Can_thumb.jpg","galleries_id":374382,"server_id":1,"link":"photo_244419.html","width":130,"caption":"Old Can","height":87});
															thumbnails[3437583] = clik.newPhoto({"id":3437583,"src":"fence2_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3437583.html","width":130,"caption":"","height":87});
															thumbnails[2220105] = clik.newPhoto({"id":2220105,"src":"Pink room_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_2220105.html","width":130,"caption":"Pink room","height":87});
															thumbnails[355932] = clik.newPhoto({"id":355932,"src":"Summer GP_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_355932.html","width":130,"caption":"Summer ","height":99});
															thumbnails[333429] = clik.newPhoto({"id":333429,"src":"leaves3_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_333429.html","width":130,"caption":"Summer Leaves","height":98});
															thumbnails[3147733] = clik.newPhoto({"id":3147733,"src":"Pillar_1_thumb.jpg","galleries_id":374744,"server_id":1,"link":"photo_3147733.html","width":130,"caption":"Pillar","height":87});
															thumbnails[8192413] = clik.newPhoto({"id":8192413,"src":"common_tree_colour_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192413.html","width":130,"caption":"Common Tree 2","height":89});
															thumbnails[3439592] = clik.newPhoto({"id":3439592,"src":"bunks slanted_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3439592.html","width":130,"caption":"","height":93});
															thumbnails[536721] = clik.newPhoto({"id":536721,"src":"HALLOWEEN_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_536721.html","width":130,"caption":"Halloween","height":98});
															thumbnails[244375] = clik.newPhoto({"id":244375,"src":"Red Optics2_thumb.jpg","galleries_id":375043,"server_id":1,"link":"photo_244375.html","width":130,"caption":"Empty","height":87});
															thumbnails[8192390] = clik.newPhoto({"id":8192390,"src":"Urban_storm_print_RGB_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192390.html","width":130,"caption":"Urban Storm ","height":81});
															thumbnails[3446566] = clik.newPhoto({"id":3446566,"src":"Hoess execution_thumb.jpg","galleries_id":374396,"server_id":1,"link":"photo_3446566.html","width":130,"caption":"Hoess was taken back to Auschwitz to be executed here","height":87});
															thumbnails[3446599] = clik.newPhoto({"id":3446599,"src":"huts1_thumb.jpg","galleries_id":374397,"server_id":1,"link":"photo_3446599.html","width":130,"caption":"","height":87});
															thumbnails[3147685] = clik.newPhoto({"id":3147685,"src":" red_thumb.jpg","galleries_id":375043,"server_id":2,"link":"photo_3147685.html","width":130,"caption":"Red Roger","height":98});
															thumbnails[8192391] = clik.newPhoto({"id":8192391,"src":"windows_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192391.html","width":130,"caption":"Hiding","height":87});
															thumbnails[8192415] = clik.newPhoto({"id":8192415,"src":"glass_mountains_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192415.html","width":130,"caption":"Glass Mountains","height":87});
															thumbnails[244086] = clik.newPhoto({"id":244086,"src":"glass bubbles_thumb.jpg","galleries_id":374382,"server_id":1,"link":"photo_244086.html","width":130,"caption":"Glass bubbles","height":99});
															thumbnails[2225842] = clik.newPhoto({"id":2225842,"src":"BOOKS_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_2225842.html","width":130,"caption":"","height":84});
															thumbnails[668871] = clik.newPhoto({"id":668871,"src":"Christmas in GP window_thumb.jpg","galleries_id":374956,"server_id":1,"link":"photo_668871.html","width":130,"caption":"Christmas...the year is complete!!","height":97});
															thumbnails[244358] = clik.newPhoto({"id":244358,"src":"light_thumb.jpg","galleries_id":374979,"server_id":1,"link":"photo_244358.html","width":130,"caption":"Light","height":86});
															thumbnails[309177] = clik.newPhoto({"id":309177,"src":"cathedral view_thumb.jpg","galleries_id":374741,"server_id":1,"link":"photo_309177.html","width":130,"caption":"Cathedral View","height":87});
															thumbnails[3147717] = clik.newPhoto({"id":3147717,"src":"pot in window1_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_3147717.html","width":130,"caption":"Window Pot","height":195});
															thumbnails[8192423] = clik.newPhoto({"id":8192423,"src":"piss_take_5D05ED20-24E8-5EC4-4F56A727C7413314_thumb.jpg","galleries_id":437260,"server_id":1,"link":"photo_8192423.html","width":130,"caption":"piss take","height":87});
															thumbnails[2222407] = clik.newPhoto({"id":2222407,"src":"settee_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_2222407.html","width":130,"caption":"settee","height":188});
															thumbnails[2239008] = clik.newPhoto({"id":2239008,"src":"Vandalised dreams_thumb.jpg","galleries_id":374745,"server_id":1,"link":"photo_2239008.html","width":130,"caption":"Vandals have ruined my photo! ( My demolished dreams in projects-beautiful things)","height":88});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[374396] = clik.newGallery({"parentGallery":374395,"usePopups":false,"title":"Auschwitz I","link":"gallery_374396.html","maxRecords":0.0,"photoIDs":[3542515.0,3448304.0,3448289.0,3428419.0,3428411.0,3446566.0],"skipIndex":0,"section_code":"gallery","featured_images":"3542515,3448304,3448289,3446566,3428419,3428411","id":374396,"singleSection":false});				  						galleries[374397] = clik.newGallery({"parentGallery":374395,"usePopups":false,"title":"Auschwitz II Birkenau","link":"gallery_374397.html","maxRecords":0.0,"photoIDs":[3448285.0,3447253.0,3448121.0,3447219.0,3439595.0,3439594.0,3437600.0,3446533.0,3428407.0,3428405.0,3437583.0,3439592.0,3446599.0],"skipIndex":0,"section_code":"gallery","featured_images":"3447253,3446533,3439595,3439594,3439592,3437600,3437583,3428407,3428405","id":374397,"singleSection":false});				  						galleries[374393] = clik.newGallery({"parentGallery":374389,"usePopups":false,"title":"Cumbrian Coast","link":"gallery_374393.html","maxRecords":0.0,"photoIDs":[6446162.0],"skipIndex":0,"section_code":"gallery","featured_images":6446162.0,"id":374393,"singleSection":false});				  						galleries[437260] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibition\"Common Beauty\"","link":"gallery_437260.html","maxRecords":0.0,"photoIDs":[8192440.0,8217875.0,8217876.0,8217877.0,8217881.0,8217884.0,8217885.0,8217886.0,8217889.0,8231217.0,8192388.0,8192389.0,8192413.0,8192390.0,8192391.0,8192415.0,8192423.0],"skipIndex":0,"section_code":"gallery","featured_images":"8217886,8217885,8217884,8217877,8217876,8192423,8192415,8192413,8192391,8192388","id":437260,"singleSection":false});				  						galleries[374780] = clik.newGallery({"parentGallery":374779,"usePopups":false,"title":"Hot Plant","link":"gallery_374780.html","maxRecords":0.0,"photoIDs":[5870850.0,5870853.0,6446160.0],"skipIndex":0,"section_code":"gallery","featured_images":6446160.0,"id":374780,"singleSection":false});				  						galleries[374398] = clik.newGallery({"parentGallery":374395,"usePopups":false,"title":"KRAKOW","link":"gallery_374398.html","maxRecords":0.0,"photoIDs":[3480692.0,3480706.0],"skipIndex":0,"section_code":"gallery","featured_images":"3480706,3480692","id":374398,"singleSection":false});				  						galleries[374741] = clik.newGallery({"parentGallery":374381,"usePopups":false,"title":"Lincolnshire","link":"gallery_374741.html","maxRecords":0.0,"photoIDs":[3262350.0,244071.0,6446121.0,309177.0],"skipIndex":0,"section_code":"gallery","featured_images":"6446121,3262350,309177","id":374741,"singleSection":false});				  						galleries[374391] = clik.newGallery({"parentGallery":374389,"usePopups":false,"title":"Lincolnshire Coast","link":"gallery_374391.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":374391,"singleSection":false});				  						galleries[374390] = clik.newGallery({"parentGallery":374389,"usePopups":false,"title":"Pembrokeshire","link":"gallery_374390.html","maxRecords":0.0,"photoIDs":[4824124.0,6446180.0,6825794.0,6879964.0],"skipIndex":0,"section_code":"gallery","featured_images":"6879964,6825794,6446180","id":374390,"singleSection":false});				  						galleries[374979] = clik.newGallery({"parentGallery":374779,"usePopups":false,"title":"Red and blue light","link":"gallery_374979.html","maxRecords":0.0,"photoIDs":[244358.0],"skipIndex":0,"section_code":"gallery","featured_images":244358.0,"id":374979,"singleSection":false});				  						galleries[374742] = clik.newGallery({"parentGallery":374381,"usePopups":false,"title":"Sheffield","link":"gallery_374742.html","maxRecords":0.0,"photoIDs":[1084751.0,457302.0,1640227.0,1669803.0,3264041.0],"skipIndex":0,"section_code":"gallery","featured_images":"3264041,1669803,1640227,457302","id":374742,"singleSection":false});				  						galleries[374744] = clik.newGallery({"parentGallery":374381,"usePopups":false,"title":"St John's mental asylum","link":"gallery_374744.html","maxRecords":0.0,"photoIDs":[5913892.0,5913899.0,457053.0,457058.0,442981.0,443350.0,443352.0,445336.0,445339.0,448073.0,449259.0,450636.0,451084.0,452681.0,430621.0,432594.0,438596.0,1163333.0,1640231.0,1640252.0,1709989.0,1756408.0,2782281.0,5934960.0,5935651.0,5945274.0,6446192.0,430433.0,3147733.0],"skipIndex":0,"section_code":"gallery","featured_images":"6446192,5945274,5935651,5913899,5913892,3147733,2782281,1756408,1709989,1640252,1640231,1163333,457058,457053,452681,451084,450636,449259,445339,445336,443352,443350,442981,438596,432594,430433","id":374744,"singleSection":false});				  						galleries[374745] = clik.newGallery({"parentGallery":374381,"usePopups":false,"title":"The Purple House, Rigg Beck","link":"gallery_374745.html","maxRecords":0.0,"photoIDs":[374947.0,700975.0,1150383.0,2220093.0,2220119.0,2220113.0,2220105.0,2225842.0,3147717.0,2222407.0,2239008.0],"skipIndex":0,"section_code":"gallery","featured_images":"2239008,2225842,2222407,2220119,2220113,2220105,2220093,1150383,700975,374947","id":374745,"singleSection":false});				  						galleries[374743] = clik.newGallery({"parentGallery":374381,"usePopups":false,"title":"Urban decay","link":"gallery_374743.html","maxRecords":0.0,"photoIDs":[4009783.0,6446106.0],"skipIndex":0,"section_code":"gallery","featured_images":"6446106,4009783","id":374743,"singleSection":false});				  						galleries[374956] = clik.newGallery({"parentGallery":374381,"usePopups":false,"title":"Year in a shop window","link":"gallery_374956.html","maxRecords":0.0,"photoIDs":[976358.0,244088.0,270668.0,270663.0,316567.0,355932.0,536721.0,668871.0],"skipIndex":0,"section_code":"gallery","featured_images":"976358,668871,536721,355932,316567,270668,270663,244088","id":374956,"singleSection":false});				  						galleries[374392] = clik.newGallery({"parentGallery":374389,"usePopups":false,"title":"Yorkshire Coast","link":"gallery_374392.html","maxRecords":0.0,"photoIDs":[2642114.0,1981914.0],"skipIndex":0,"section_code":"gallery","featured_images":1981914.0,"id":374392,"singleSection":false});				  						galleries[374383] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"RECENT WORK","link":"gallery_374383.html","maxRecords":0.0,"photoIDs":[8963178.0,8963182.0,8963183.0,8963185.0,8963187.0,8963189.0,8963191.0,8963193.0,8963196.0,8963199.0,8963204.0,8963223.0],"skipIndex":0,"section_code":"gallery","featured_images":"8963223,8963204,8963199,8963196,8963193,8963191,8963189,8963183,8963182,8963178","id":374383,"singleSection":false});				  						galleries[375043] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FAVOURITES","link":"gallery_375043.html","maxRecords":0.0,"photoIDs":[3262347.0,2374957.0,651093.0,475568.0,490632.0,244091.0,536688.0,1669806.0,1925466.0,6446116.0,6446152.0,6446171.0,6446183.0,6446198.0,6914524.0,244015.0,244399.0,3147633.0,333429.0,244375.0,3147685.0],"skipIndex":0,"section_code":"gallery","featured_images":"6446198,6446183,6446171,6446152,6446116,3262347,3147685,3147633,2374957,1925466,1669806,651093,536688,490632,475568,333429,244399,244375,244015","id":375043,"singleSection":false});				  						galleries[419476] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature, trees etc","link":"gallery_419476.html","maxRecords":0.0,"photoIDs":[7062876.0,7759317.0],"skipIndex":0,"section_code":"gallery","featured_images":"7759317,7062876","id":419476,"singleSection":false});				  						galleries[374382] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ABSTRACT IMAGES","link":"gallery_374382.html","maxRecords":0.0,"photoIDs":[4000127.0,445344.0,2453131.0,244419.0,244086.0],"skipIndex":0,"section_code":"gallery","featured_images":"4000127,2453131,445344,244419,244086","id":374382,"singleSection":false});				  						galleries[374389] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"COAST","link":"gallery_374389.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6879964,6825794,6446180,6446162,1981914","id":374389,"singleSection":false});				  						galleries[374779] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PANELS","link":"gallery_374779.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6446160,244358","id":374779,"singleSection":false});				  						galleries[375058] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"THIS N THAT","link":"gallery_375058.html","maxRecords":0.0,"photoIDs":[452250.0,425144.0,244379.0,1850111.0,6446186.0,8217978.0,285645.0],"skipIndex":0,"section_code":"gallery","featured_images":"8217978,6446186,1850111,452250,425144,285645,244379","id":375058,"singleSection":false});				  						galleries[374395] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"TRAVEL","link":"gallery_374395.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3542515,3448304,3448289,3447253,3446566,3446533,3439595,3439594,3439592,3437600,3437583,3428419,3428411,3428407,3428405","id":374395,"singleSection":false});				  						galleries[374381] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"URBAN\/STREET","link":"gallery_374381.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6446192,6446121,6446106,5945274,5935651,5913899,5913892,4009783,3264041,3262350,3147733,2782281,2239008,2225842,2222407,2220119,2220113,2220105,2220093,1756408,1709989,1669803,1640252,1640231,1640227,1163333,1150383,976358,700975,668871,536721,457302,457058,457053,452681,451084,450636,449259,445339,445336,443352,443350,442981,438596,432594,430433,374947,355932,316567,309177,270668,270663,244088","id":374381,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8963223,8963204,8963199,8963196,8963193,8963191,8963189,8963183,8963182,8963178,8217978,8217886,8217885,8217884,8217877,8217876,7759317,7062876,6879964,6825794,6446198,6446192,6446186,6446183,6446180,6446171,6446162,6446160,6446152,6446121,6446116,6446106,5945274,5935651,5913899,5913892,4009783,4000127,3542515,3264041,3262350,3262347,2782281,2453131,2374957,1981914,1925466,1850111,1756408,1709989,1669806,1669803,1640231,1163333,1150383,976358,700975,651093,493143,490632,475568,457302,457058,457053,452681,452250,451084,450636,445344,445339,445336,443352,443350,442981,438596,432594,425144,374947,244379,3448304,430433,244015,285645,8192388,3437600,2220093,270668,3446533,2220119,3428407,3147633,270663,3428411,3428405,2220113,316567,8192413,3437583,3147733,2220105,355932,8192415,8192391,3147685,244086,2225842,244358,309177,8192423,2222407,2239008';
imageSets[2] = '8963223,8963204,8963199,8963196,8963193,8963191,8963189,8963183,8963182,8963178,8217978,8217886,8217885,8217884,8217877,8217876,7759317,7062876,6879964,6825794,6446198,6446192,6446186,6446183,6446180,6446171,6446162,6446160,6446152,6446121,6446116,6446106,5945274,5935651,5913899,5913892,4009783,4000127,3542515,3264041,3262350,3262347,2782281,2453131,2374957,1981914,1925466,1850111,1756408,1709989,1669806,1669803,1640252,1640231,1640227,1163333,1150383,976358,700975,651093,536688,493143,490632,475568,457302,457058,457053,452681,452250,451084,450636,449259,445344,445339,445336,443352,443350,442981,438596,432594,425144,374947,244379,3448304,3447253,3448289,3428419,430433,244088,244015,3439595,3439594,285645,244399,8192388,3437600,2220093,270668,3446533,2220119,3428407,3147633,270663,3428411,3428405,2220113,316567,244419,8192413,3437583,3147733,2220105,355932,333429,3439592,536721,244375,8192415,8192391,3446566,3147685,244086,2225842,668871,244358,309177,8192423,2222407,2239008';
imageSets[3] = '6446198,6446192,6446186,6446183,6446180,6446171,6446162,6446160,6446152,6446121,6446116,6446106,5945274,5935651,5934960,5913899,5913892,5870853,4009783';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/JANEWRIGHT/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/JANEWRIGHT/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 = 'Jane Wright 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.item_price !== '') {
																		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="janehurd@ntlworld.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="janehurd@ntlworld.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;
	}
}

			

