window.thumbnails = {};
															thumbnails[4292513] = clik.newPhoto({"id":4292513,"src":"ostriche_200cmx200cm_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ostrich","height":139});
															thumbnails[4372079] = clik.newPhoto({"id":4372079,"src":"pic_4_leopard_man_42cm_x_30cm_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"shot\/infected","height":193});
															thumbnails[4372194] = clik.newPhoto({"id":4372194,"src":"lash_charcoal_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"lash","height":183});
															thumbnails[4372228] = clik.newPhoto({"id":4372228,"src":"feast_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"In memory of neglected danger","height":87});
															thumbnails[4383100] = clik.newPhoto({"id":4383100,"src":"FLYER1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"nurse with scissor legs(flier)","height":184});
															thumbnails[4383870] = clik.newPhoto({"id":4383870,"src":"Nothing_we_shall_see_50_x_40CM_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"'nothing we shall see'","height":92});
															thumbnails[4383900] = clik.newPhoto({"id":4383900,"src":"zebra_for_francois_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"zebra","height":89});
															thumbnails[4383954] = clik.newPhoto({"id":4383954,"src":"cow_french_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"cow","height":90});
															thumbnails[4383963] = clik.newPhoto({"id":4383963,"src":"pencil_pig3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"pig","height":89});
															thumbnails[4383976] = clik.newPhoto({"id":4383976,"src":"cobra_and_scorpion_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"cobra v scorpion","height":172});
															thumbnails[4384258] = clik.newPhoto({"id":4384258,"src":"elephant_ink1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"elephant","height":186});
															thumbnails[4390339] = clik.newPhoto({"id":4390339,"src":"_On_account_of_a_knife_50_x_40CM_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"'on account of a knife'","height":184});
															thumbnails[4390343] = clik.newPhoto({"id":4390343,"src":"_Cart_loads_for_the_cemetery_50_x_40CM_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"'Cart loads for the cemetery'","height":184});
															thumbnails[4390349] = clik.newPhoto({"id":4390349,"src":"_Perhaps_they_are_another_breed_40_x_50C_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"'Perhaps they are another breed'","height":184});
															thumbnails[4390362] = clik.newPhoto({"id":4390362,"src":"_The_sound_and_the_sick_Swastika_40_x_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"'The sound and the sick'","height":184});
															thumbnails[4398076] = clik.newPhoto({"id":4398076,"src":"darker_cock_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"cockerel","height":190});
															thumbnails[5456776] = clik.newPhoto({"id":5456776,"src":"hyena_smaller_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"hyena, laughter and carnage","height":76});
															thumbnails[5458113] = clik.newPhoto({"id":5458113,"src":"nurse_scissors_sketch1web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":96});
															thumbnails[5458208] = clik.newPhoto({"id":5458208,"src":"nursewcissdraw4web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[5458211] = clik.newPhoto({"id":5458211,"src":"nursescissdraw6web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[5458212] = clik.newPhoto({"id":5458212,"src":"nursescissdraw7web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5458215] = clik.newPhoto({"id":5458215,"src":"nursescissdraw9web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5458221] = clik.newPhoto({"id":5458221,"src":"nursescissdraw11web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":99});
															thumbnails[5589657] = clik.newPhoto({"id":5589657,"src":"sphinx_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The sphinx","height":85});
															thumbnails[7202190] = clik.newPhoto({"id":7202190,"src":"bed.13cmx8._thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":90});
															thumbnails[7361266] = clik.newPhoto({"id":7361266,"src":"girk_and_doll_etch_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Girl and doll","height":180});
															thumbnails[4931942] = clik.newPhoto({"id":4931942,"src":"vulture_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"vulture on carrion","height":95});
															thumbnails[7202184] = clik.newPhoto({"id":7202184,"src":"chimp_in_a_circle_of_flies.17cmx22._thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[4398077] = clik.newPhoto({"id":4398077,"src":"love_potion_160x120cm09_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"potion","height":182});
															thumbnails[7202226] = clik.newPhoto({"id":7202226,"src":"bandaged_figure.10cmx14cm_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":169});
															thumbnails[4292308] = clik.newPhoto({"id":4292308,"src":"bandagedchest__thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":" bed sheet for a bandage","height":171});
															thumbnails[7202175] = clik.newPhoto({"id":7202175,"src":"girl_with_doll.29.5cmx21cm._thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Girl with Doll.1st state","height":185});
															thumbnails[7202207] = clik.newPhoto({"id":7202207,"src":"chimp_with_fire.18cmx14.5cm_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":107});
															thumbnails[7202217] = clik.newPhoto({"id":7202217,"src":"promenade.stage_set.21cmx18cm_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":114});
															thumbnails[4371097] = clik.newPhoto({"id":4371097,"src":"body_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"body","height":186});
															thumbnails[4382991] = clik.newPhoto({"id":4382991,"src":"Skeleton1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":" portrait of the artist","height":318});
															thumbnails[4382963] = clik.newPhoto({"id":4382963,"src":"Bandaged_head_150x100cm_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"bandaged head","height":190});
															thumbnails[4390360] = clik.newPhoto({"id":4390360,"src":"_The_truth_has_died_40_x_50CM_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"pregnant form","height":184});
															thumbnails[6578664] = clik.newPhoto({"id":6578664,"src":"suicidepuppetweb_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"suicide puppet show","height":191});
															thumbnails[4292467] = clik.newPhoto({"id":4292467,"src":"pig__oil_on_canvas_200cm_x_150cm_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4292467.html","width":130,"caption":"Porcile","height":98});
															thumbnails[4292484] = clik.newPhoto({"id":4292484,"src":"frenchhyena_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4292484.html","width":130,"caption":"laughing, spitting hyena","height":81});
															thumbnails[4292507] = clik.newPhoto({"id":4292507,"src":"hyena_filthy_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4292507.html","width":130,"caption":"filthy hyena","height":92});
															thumbnails[4371060] = clik.newPhoto({"id":4371060,"src":"chimp_on_hind_legs_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4371060.html","width":130,"caption":"chimp","height":184});
															thumbnails[4371063] = clik.newPhoto({"id":4371063,"src":"chimp_with_branch_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4371063.html","width":130,"caption":"chimp","height":100});
															thumbnails[4371067] = clik.newPhoto({"id":4371067,"src":"cock_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4371067.html","width":130,"caption":"cock","height":184});
															thumbnails[4371069] = clik.newPhoto({"id":4371069,"src":"giraffe_mean_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4371069.html","width":130,"caption":"giraffe","height":187});
															thumbnails[4371084] = clik.newPhoto({"id":4371084,"src":"chris_web_page_1_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4371084.html","width":130,"caption":"mules","height":175});
															thumbnails[4372214] = clik.newPhoto({"id":4372214,"src":"invisable_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4372214.html","width":130,"caption":"full bandaged man","height":189});
															thumbnails[4390832] = clik.newPhoto({"id":4390832,"src":"dogs_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4390832.html","width":130,"caption":"stray mutts","height":62});
															thumbnails[5458252] = clik.newPhoto({"id":5458252,"src":"vultureweb2_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_5458252.html","width":130,"caption":"vulture on bones","height":161});
															thumbnails[7202182] = clik.newPhoto({"id":7202182,"src":"ambulance1st.10.5cmx7cm._thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7202182.html","width":130,"caption":"","height":82});
															thumbnails[7612075] = clik.newPhoto({"id":7612075,"src":"colour_surg_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7612075.html","width":130,"caption":"Sterelise","height":185});
															thumbnails[7705151] = clik.newPhoto({"id":7705151,"src":"etch_web2_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7705151.html","width":130,"caption":"Nurse with ripped uniform and syringe. Etching","height":176});
															thumbnails[7705155] = clik.newPhoto({"id":7705155,"src":"etch_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7705155.html","width":130,"caption":"Medication time.","height":177});
															thumbnails[9041774] = clik.newPhoto({"id":9041774,"src":"The_Caretaker_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_9041774.html","width":130,"caption":"","height":217});
															thumbnails[6557955] = clik.newPhoto({"id":6557955,"src":"scissor_nurseweb_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_6557955.html","width":130,"caption":"reclining nurse with scissor form body","height":85});
															thumbnails[6578594] = clik.newPhoto({"id":6578594,"src":"poloroid_of_promweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6578594.html","width":130,"caption":"poloroid of the Promenade and front door.","height":162});
															thumbnails[4289900] = clik.newPhoto({"id":4289900,"src":"nurse_with_syringe_200cm_x_130cm_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4289900.html","width":130,"caption":"nurse with syringe","height":199});
															thumbnails[4292327] = clik.newPhoto({"id":4292327,"src":"nursesyringesmall_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4292327.html","width":130,"caption":"Nurse with syringe. ","height":183});
															thumbnails[4372265] = clik.newPhoto({"id":4372265,"src":"sling_sonnys_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4372265.html","width":130,"caption":"sling","height":176});
															thumbnails[5427306] = clik.newPhoto({"id":5427306,"src":"vulture_small_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_5427306.html","width":130,"caption":"vulture on a body","height":193});
															thumbnails[8443293] = clik.newPhoto({"id":8443293,"src":"surgeon_last_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_8443293.html","width":130,"caption":"Welcome.We are very pleased to meet you","height":190});
															thumbnails[8443298] = clik.newPhoto({"id":8443298,"src":"removing_something_degeneratestagesweb_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_8443298.html","width":130,"caption":"painting in stages","height":20});
															thumbnails[7611008] = clik.newPhoto({"id":7611008,"src":"hobo_time_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611008.html","width":130,"caption":"Hobo time","height":133});
															thumbnails[7611049] = clik.newPhoto({"id":7611049,"src":"BLINDMAN_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611049.html","width":130,"caption":"Blindman on the Prom","height":131});
															thumbnails[4382983] = clik.newPhoto({"id":4382983,"src":"nurse_and_baby_oil_150x50cm_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4382983.html","width":130,"caption":"nurse applying nappy","height":276});
															thumbnails[4383094] = clik.newPhoto({"id":4383094,"src":"nurse_bathing_baby_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4383094.html","width":130,"caption":"nurse washing baby","height":185});
															thumbnails[6428601] = clik.newPhoto({"id":6428601,"src":"boy_with_the_cadmium_blues_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6428601.html","width":130,"caption":"Boy with the cadmium blues","height":221});
															thumbnails[7382912] = clik.newPhoto({"id":7382912,"src":"ambulance_web_01AD6770-24E8-5EC4-4F8F29171D696F0F_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7382912.html","width":130,"caption":"Ambulance","height":80});
															thumbnails[4292324] = clik.newPhoto({"id":4292324,"src":"Blindman__thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4292324.html","width":130,"caption":"portrait of a blind man","height":165});
															thumbnails[5151934] = clik.newPhoto({"id":5151934,"src":"chimp_fire_09_for_web1_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_5151934.html","width":130,"caption":"chimp with fire","height":92});
															thumbnails[7202196] = clik.newPhoto({"id":7202196,"src":"nurse_with_syringe.22cmx12cm._thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7202196.html","width":130,"caption":"","height":228});
															thumbnails[7382915] = clik.newPhoto({"id":7382915,"src":"the_local_stigmatic_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7382915.html","width":130,"caption":"The local stigmatic (at no.14)","height":199});
															thumbnails[7382918] = clik.newPhoto({"id":7382918,"src":"scissor_etch_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7382918.html","width":130,"caption":"","height":117});
															thumbnails[7705181] = clik.newPhoto({"id":7705181,"src":"1st_nurse_scissors_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7705181.html","width":130,"caption":"Nurse scissor form body","height":160});
															thumbnails[7940439] = clik.newPhoto({"id":7940439,"src":"something_degenerate_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_7940439.html","width":130,"caption":"","height":79});
															thumbnails[8569552] = clik.newPhoto({"id":8569552,"src":"the_kids_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_8569552.html","width":130,"caption":"Meet me at the swings","height":70});
															thumbnails[4372048] = clik.newPhoto({"id":4372048,"src":"charcoal_blindman_2_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4372048.html","width":130,"caption":"blind man","height":229});
															thumbnails[4383045] = clik.newPhoto({"id":4383045,"src":"pram_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4383045.html","width":130,"caption":"baby and runaway pram","height":100});
															thumbnails[4457635] = clik.newPhoto({"id":4457635,"src":"bandaged_body_200cmx150cm_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4457635.html","width":130,"caption":"Bandaging chest with a bedsheet","height":166});
															thumbnails[5985637] = clik.newPhoto({"id":5985637,"src":"dandelion_13_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_5985637.html","width":130,"caption":"Dandelions","height":162});
															thumbnails[7611100] = clik.newPhoto({"id":7611100,"src":"lovers_on_the_street_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611100.html","width":130,"caption":"doomed lovers on the Prom","height":105});
															thumbnails[5771886] = clik.newPhoto({"id":5771886,"src":"hyena_web_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_5771886.html","width":130,"caption":"hyena.self portrait.","height":77});
															thumbnails[6559960] = clik.newPhoto({"id":6559960,"src":"girl_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6559960.html","width":130,"caption":"reclining nude","height":190});
															thumbnails[7202228] = clik.newPhoto({"id":7202228,"src":"test_chimp.14cmx9cm_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7202228.html","width":130,"caption":"","height":198});
															thumbnails[5591798] = clik.newPhoto({"id":5591798,"src":"the_agony_of_the_big_girl_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_5591798.html","width":130,"caption":"The agony of the big girl","height":201});
															thumbnails[6558081] = clik.newPhoto({"id":6558081,"src":"girl_and_baby_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6558081.html","width":130,"caption":"girl playing nurse","height":191});
															thumbnails[7202209] = clik.newPhoto({"id":7202209,"src":"mule.21cmx29.5._thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7202209.html","width":130,"caption":"","height":179});
															thumbnails[7221247] = clik.newPhoto({"id":7221247,"src":"front_door_etch_for_website_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7221247.html","width":130,"caption":"Front door","height":208});
															thumbnails[7361268] = clik.newPhoto({"id":7361268,"src":"elephant_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7361268.html","width":130,"caption":"Elephant","height":174});
															thumbnails[7940436] = clik.newPhoto({"id":7940436,"src":"animal_composite_web_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7940436.html","width":130,"caption":"","height":190});
															thumbnails[4292510] = clik.newPhoto({"id":4292510,"src":"chimp_200x130_cm2008_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4292510.html","width":130,"caption":"chimp","height":186});
															thumbnails[4383112] = clik.newPhoto({"id":4383112,"src":"set_of_picts_029_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4383112.html","width":130,"caption":"nurse and baby","height":178});
															thumbnails[4384223] = clik.newPhoto({"id":4384223,"src":"ostriche_pencil_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4384223.html","width":130,"caption":"ostrich","height":192});
															thumbnails[5988878] = clik.newPhoto({"id":5988878,"src":"old_dandelion_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_5988878.html","width":130,"caption":"","height":183});
															thumbnails[6578668] = clik.newPhoto({"id":6578668,"src":"baby_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_6578668.html","width":130,"caption":"baby rattle and dummy","height":186});
															thumbnails[7361275] = clik.newPhoto({"id":7361275,"src":"prom.babies1_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7361275.html","width":130,"caption":"","height":126});
															thumbnails[7611652] = clik.newPhoto({"id":7611652,"src":"baby_with_bottle_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611652.html","width":130,"caption":"Baby on the bottle","height":90});
															thumbnails[7611689] = clik.newPhoto({"id":7611689,"src":"cow_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7611689.html","width":130,"caption":"cow","height":112});
															thumbnails[7940435] = clik.newPhoto({"id":7940435,"src":"web_death_car_composite_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7940435.html","width":130,"caption":"Death Car","height":184});
															thumbnails[4372196] = clik.newPhoto({"id":4372196,"src":"nurse_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4372196.html","width":130,"caption":"nurse","height":203});
															thumbnails[4372230] = clik.newPhoto({"id":4372230,"src":"pram_sketch6_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4372230.html","width":130,"caption":"pram","height":94});
															thumbnails[4398088] = clik.newPhoto({"id":4398088,"src":"nurse_and_baby_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4398088.html","width":130,"caption":"nurse applying saftey pin, baby feeding","height":196});
															thumbnails[5458210] = clik.newPhoto({"id":5458210,"src":"nursescissdraw5web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_5458210.html","width":130,"caption":"scissor form nurse in birthing position","height":97});
															thumbnails[7202177] = clik.newPhoto({"id":7202177,"src":"ambulance.18cmx12cm._thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7202177.html","width":130,"caption":"","height":95});
															thumbnails[7361269] = clik.newPhoto({"id":7361269,"src":"hyena_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7361269.html","width":130,"caption":"Hyena","height":96});
															thumbnails[7611687] = clik.newPhoto({"id":7611687,"src":"bonnie_n_clyde_ecto_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611687.html","width":130,"caption":"Ecto skeleton of lovers","height":92});
															thumbnails[7707219] = clik.newPhoto({"id":7707219,"src":"lagoonn2web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7707219.html","width":130,"caption":"Boy in the lagoon","height":215});
															thumbnails[4372102] = clik.newPhoto({"id":4372102,"src":"nurse_with_syringe_drawin_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4372102.html","width":130,"caption":"nurse with syringe","height":183});
															thumbnails[4383046] = clik.newPhoto({"id":4383046,"src":"dandelions_200x150cm_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4383046.html","width":130,"caption":"dandelions","height":170});
															thumbnails[5458117] = clik.newPhoto({"id":5458117,"src":"nursescissdraw2web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_5458117.html","width":130,"caption":"recumbant nurse with scissor legs","height":99});
															thumbnails[7361270] = clik.newPhoto({"id":7361270,"src":"kangaroo_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7361270.html","width":130,"caption":"Kangaroo","height":193});
															thumbnails[7611690] = clik.newPhoto({"id":7611690,"src":"death_car_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611690.html","width":130,"caption":"Burnt out car of love","height":136});
															thumbnails[4371076] = clik.newPhoto({"id":4371076,"src":"vulture2_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4371076.html","width":130,"caption":"vulture","height":181});
															thumbnails[4372247] = clik.newPhoto({"id":4372247,"src":"big_cross_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4372247.html","width":130,"caption":"nurse with syringe","height":182});
															thumbnails[4383071] = clik.newPhoto({"id":4383071,"src":"promenade_crack_head_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4383071.html","width":130,"caption":"girl for sale","height":232});
															thumbnails[4292502] = clik.newPhoto({"id":4292502,"src":"threaddog_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4292502.html","width":130,"caption":"blue stray dog","height":159});
															thumbnails[7202216] = clik.newPhoto({"id":7202216,"src":"Promenade.agony_of_the_big_girl.19cmx20.5_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7202216.html","width":130,"caption":"","height":125});
															thumbnails[4383108] = clik.newPhoto({"id":4383108,"src":"File0013_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4383108.html","width":130,"caption":"nurse and baby","height":211});
															thumbnails[6558136] = clik.newPhoto({"id":6558136,"src":"bed_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6558136.html","width":130,"caption":"bed","height":83});
															thumbnails[6578114] = clik.newPhoto({"id":6578114,"src":"self_portrait_standinweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6578114.html","width":130,"caption":"figure I can only determine as a self portrait","height":238});
															thumbnails[6578573] = clik.newPhoto({"id":6578573,"src":"pram_sideweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6578573.html","width":130,"caption":"pram","height":194});
															thumbnails[7202194] = clik.newPhoto({"id":7202194,"src":"crime_and_punishment1.20cmx30cm._thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7202194.html","width":130,"caption":"","height":192});
															thumbnails[7361271] = clik.newPhoto({"id":7361271,"src":"mule_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7361271.html","width":130,"caption":"Mule","height":184});
															thumbnails[6563136] = clik.newPhoto({"id":6563136,"src":"broken_manweb_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_6563136.html","width":130,"caption":"dirty bandaged man","height":190});
															thumbnails[7361272] = clik.newPhoto({"id":7361272,"src":"sow_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_7361272.html","width":130,"caption":"Sow","height":102});
															thumbnails[7611691] = clik.newPhoto({"id":7611691,"src":"f_off_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611691.html","width":130,"caption":"Leave us alone","height":143});
															thumbnails[4292518] = clik.newPhoto({"id":4292518,"src":"crocodile_200x130cm_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4292518.html","width":130,"caption":"crocodile","height":83});
															thumbnails[4372253] = clik.newPhoto({"id":4372253,"src":"blineink_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_4372253.html","width":130,"caption":"blind man","height":183});
															thumbnails[7707220] = clik.newPhoto({"id":7707220,"src":"blindmanweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7707220.html","width":130,"caption":"Blindman","height":195});
															thumbnails[4383919] = clik.newPhoto({"id":4383919,"src":"Bandaged_head1_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4383919.html","width":130,"caption":"bandaged boys head","height":188});
															thumbnails[6392866] = clik.newPhoto({"id":6392866,"src":"oil_pig_last_for_web_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_6392866.html","width":130,"caption":"little oil pig","height":97});
															thumbnails[7611723] = clik.newPhoto({"id":7611723,"src":"puppet_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611723.html","width":130,"caption":"The puppet","height":182});
															thumbnails[4934881] = clik.newPhoto({"id":4934881,"src":"chimp_splash_for_web_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4934881.html","width":130,"caption":"chimp","height":203});
															thumbnails[6052287] = clik.newPhoto({"id":6052287,"src":"thin_cat_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6052287.html","width":130,"caption":"Thin river st cat","height":214});
															thumbnails[7611686] = clik.newPhoto({"id":7611686,"src":"bed_room_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_7611686.html","width":130,"caption":"Love nest","height":96});
															thumbnails[5985485] = clik.newPhoto({"id":5985485,"src":"dandelion3_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_5985485.html","width":130,"caption":"","height":187});
															thumbnails[6461978] = clik.newPhoto({"id":6461978,"src":"dandelions_oil_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6461978.html","width":130,"caption":"Blood in the Dandelions","height":193});
															thumbnails[8570108] = clik.newPhoto({"id":8570108,"src":"no_rent_darker_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_8570108.html","width":130,"caption":"No money for rent","height":94});
															thumbnails[4292291] = clik.newPhoto({"id":4292291,"src":"filthybandagedman_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4292291.html","width":130,"caption":"full bandaged body <br>\r\n","height":202});
															thumbnails[4292522] = clik.newPhoto({"id":4292522,"src":"Chimp_with_fire_blind_eye_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4292522.html","width":130,"caption":"chimp with fire","height":96});
															thumbnails[4371073] = clik.newPhoto({"id":4371073,"src":"gorilla_3_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4371073.html","width":130,"caption":"neanderthal","height":93});
															thumbnails[6578726] = clik.newPhoto({"id":6578726,"src":"tree_and_kidsweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6578726.html","width":130,"caption":"tree with heart carving and children playing","height":188});
															thumbnails[6557695] = clik.newPhoto({"id":6557695,"src":"love_heart_drinker_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6557695.html","width":130,"caption":"figure drinking ","height":182});
															thumbnails[4457633] = clik.newPhoto({"id":4457633,"src":"nurse_with_scissor_body200x130cm_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4457633.html","width":130,"caption":"reclining nurse with scissor body","height":95});
															thumbnails[6557942] = clik.newPhoto({"id":6557942,"src":"girl_shoes_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6557942.html","width":130,"caption":"big girl","height":181});
															thumbnails[6560608] = clik.newPhoto({"id":6560608,"src":"hagfaceweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6560608.html","width":130,"caption":"girls face for sale","height":185});
															thumbnails[6563167] = clik.newPhoto({"id":6563167,"src":"bandaged_gutsweb_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_6563167.html","width":130,"caption":"stomache bandaged with sheet","height":173});
															thumbnails[6564044] = clik.newPhoto({"id":6564044,"src":"child_careweb1_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6564044.html","width":130,"caption":"girl with her doll","height":191});
															thumbnails[6557949] = clik.newPhoto({"id":6557949,"src":"woodcut_drinkin_man_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6557949.html","width":130,"caption":"drinking man","height":186});
															thumbnails[6559931] = clik.newPhoto({"id":6559931,"src":"snakeman_web_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_6559931.html","width":130,"caption":"snake and man","height":189});
															thumbnails[4384210] = clik.newPhoto({"id":4384210,"src":"ostriche_girl_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4384210.html","width":130,"caption":"ostrich","height":184});
															thumbnails[6563162] = clik.newPhoto({"id":6563162,"src":"nazi_gren_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6563162.html","width":130,"caption":"childs plastic nazi","height":188});
															thumbnails[6563169] = clik.newPhoto({"id":6563169,"src":"heroin_heronweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6563169.html","width":130,"caption":"junky on one leg","height":191});
															thumbnails[4383980] = clik.newPhoto({"id":4383980,"src":"croco_1_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4383980.html","width":130,"caption":"crocodile","height":92});
															thumbnails[4384240] = clik.newPhoto({"id":4384240,"src":"marabou_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4384240.html","width":130,"caption":"marabou","height":184});
															thumbnails[4446277] = clik.newPhoto({"id":4446277,"src":"scissors_nurse_ink_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4446277.html","width":130,"caption":" nurse with scissor body giving birth","height":92});
															thumbnails[4551599] = clik.newPhoto({"id":4551599,"src":"paintedoverbody_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_4551599.html","width":130,"caption":" Bed sheet for a stomach wound","height":201});
															thumbnails[6559941] = clik.newPhoto({"id":6559941,"src":"bandaged_man_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6559941.html","width":130,"caption":"fighting old man","height":181});
															thumbnails[6578718] = clik.newPhoto({"id":6578718,"src":"drunk_inkweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6578718.html","width":130,"caption":"tattooed drinker","height":188});
															thumbnails[6557957] = clik.newPhoto({"id":6557957,"src":"violent_night_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6557957.html","width":130,"caption":"violent night","height":193});
															thumbnails[6563145] = clik.newPhoto({"id":6563145,"src":"skeltetonweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6563145.html","width":130,"caption":"thin man","height":202});
															thumbnails[5458108] = clik.newPhoto({"id":5458108,"src":"Abweb_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_5458108.html","width":130,"caption":" head injury","height":161});
															thumbnails[4699641] = clik.newPhoto({"id":4699641,"src":"dog_wi_tongue_smaller_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4699641.html","width":130,"caption":"stray mutt with tongue hanging","height":173});
															thumbnails[6578728] = clik.newPhoto({"id":6578728,"src":"smokinweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6578728.html","width":130,"caption":"vacant stare","height":187});
															thumbnails[6557863] = clik.newPhoto({"id":6557863,"src":"tattooed_man_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6557863.html","width":130,"caption":"figure displaying his tattoo","height":181});
															thumbnails[6557976] = clik.newPhoto({"id":6557976,"src":"figure_tat_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6557976.html","width":130,"caption":"man gazing into nowhere","height":183});
															thumbnails[6559938] = clik.newPhoto({"id":6559938,"src":"bandaged_body_web_thumb.jpg","galleries_id":359856,"server_id":18,"link":"photo_6559938.html","width":130,"caption":"full bandage","height":188});
															thumbnails[6557961] = clik.newPhoto({"id":6557961,"src":"legs_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6557961.html","width":130,"caption":"legs","height":180});
															thumbnails[5547200] = clik.newPhoto({"id":5547200,"src":"webbandaged_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_5547200.html","width":130,"caption":"figures bandaged in bedsheets","height":82});
															thumbnails[6563141] = clik.newPhoto({"id":6563141,"src":"old_man_web_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6563141.html","width":130,"caption":"old drunk","height":178});
															thumbnails[6563155] = clik.newPhoto({"id":6563155,"src":"faceweb_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6563155.html","width":130,"caption":"mans face","height":221});
															thumbnails[6565146] = clik.newPhoto({"id":6565146,"src":"crime_and_punishment_thumb.jpg","galleries_id":339944,"server_id":18,"link":"photo_6565146.html","width":130,"caption":"Guilty man","height":370});
															thumbnails[4383604] = clik.newPhoto({"id":4383604,"src":"_The_Carnivorous_Vulture_II_50_x_40CM_200_thumb.jpg","galleries_id":252659,"server_id":18,"link":"photo_4383604.html","width":130,"caption":"vulture on skull","height":184});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[339944] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Promenade","link":"gallery_339944.html","maxRecords":0.0,"photoIDs":[6578594.0,7611008.0,7611049.0,6428601.0,7382912.0,4292324.0,7382915.0,8569552.0,4372048.0,4383045.0,5985637.0,7611100.0,6559960.0,5591798.0,6558081.0,7221247.0,5988878.0,7361275.0,7611652.0,7940435.0,4372230.0,7202177.0,7611687.0,7707219.0,4383046.0,7611690.0,4383071.0,4292502.0,7202216.0,6558136.0,6578114.0,6578573.0,7202194.0,7611691.0,4372253.0,7707220.0,7611723.0,6052287.0,7611686.0,5985485.0,6461978.0,8570108.0,6578726.0,6557695.0,6557942.0,6560608.0,6564044.0,6557949.0,6563162.0,6563169.0,6559941.0,6578718.0,6557957.0,6563145.0,6578728.0,6557863.0,6557976.0,6557961.0,5547200.0,6563141.0,6563155.0,6565146.0],"skipIndex":0,"section_code":"gallery","featured_images":"8570108,8569552,7940435,7707220,7707219,7611723,7611691,7611690,7611687,7611686","id":339944,"singleSection":false});				  						galleries[359856] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Angel Heart Hotel","link":"gallery_359856.html","maxRecords":0.0,"photoIDs":[4372214.0,7202182.0,7612075.0,7705151.0,7705155.0,9041774.0,6557955.0,4289900.0,4292327.0,4372265.0,8443293.0,8443298.0,4382983.0,4383094.0,7202196.0,7382918.0,7705181.0,7940439.0,4457635.0,4383112.0,6578668.0,4372196.0,4398088.0,5458210.0,4372102.0,5458117.0,4372247.0,4383108.0,6563136.0,4383919.0,4292291.0,4457633.0,6563167.0,4446277.0,4551599.0,5458108.0,6559938.0],"skipIndex":0,"section_code":"gallery","featured_images":"9041774,8443298,8443293,7940439,7705181,7705155,7705151,7612075,7382918,7202196","id":359856,"singleSection":false});				  						galleries[252659] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Animals","link":"gallery_252659.html","maxRecords":0.0,"photoIDs":[4292467.0,4292484.0,4292507.0,4371060.0,4371063.0,4371067.0,4371069.0,4371084.0,4390832.0,5458252.0,5427306.0,5151934.0,5771886.0,7202228.0,7202209.0,7361268.0,7940436.0,4292510.0,4384223.0,7611689.0,7361269.0,7361270.0,4371076.0,7361271.0,7361272.0,4292518.0,6392866.0,4934881.0,4292522.0,4371073.0,6559931.0,4384210.0,4383980.0,4384240.0,4699641.0,4383604.0],"skipIndex":0,"section_code":"gallery","featured_images":"7940436,7611689,7361272,7361271,7361270,7361269,7361268,7202228,7202209,6559931","id":252659,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[236926] = '5151934,6392866,4371073,4384210,4383980,4384240,4699641,4383604';
imageSets[236927] = '6559960,4383046,6557942,6557949,6557863,6557961';
imageSets[1] = '9041774,8570108,8569552,8443298,8443293,7940439,7940436,7940435,7707220,7707219,7705181,7705155,7705151,7612075,7611723,7611691,7611690,7611689,7611687,7611686,7611652,7611100,7611049,7611008,7382918,7382915,7382912,7361275,7361272,7361271,7361270,7361269,7361268,7361266,7221247,7202228,7202226,7202217,7202216,7202209,7202207,7202196,7202194,7202190,7202184,7202182,7202177,7202175,6578728,6578726';
imageSets[3] = '9041774,8570108,8569552,8443298,8443293,7940439,7940436,7940435,7707220,7707219,7705181,7705155,7705151,7612075,7611723,7611691,7611690,7611689,7611687,7611686,7611652,7611100,7611049,7611008,7382918,7382915,7382912,7361275,7361272,7361271,7361270,7361269,7361268,7361266,7221247,7202228,7202226,7202217,7202216,7202209,7202207,7202196,7202194,7202190,7202184,7202182,7202177,7202175,6578728,6578726';
imageSets[236925] = '4289900,4457635,4382963,4551599';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chrisb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chrisb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chrisb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chrisb/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chrisb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chrisb/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chrisb/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chrisb/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 = 'Chris Burns : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this piece online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="CHRISB">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

