window.thumbnails = {};
															thumbnails[879089] = clik.newPhoto({"id":879089,"src":"Nightshift1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NIGHT SHIFT","height":107});
															thumbnails[1315586] = clik.newPhoto({"id":1315586,"src":"lowres side shadows1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SIDE SHADOWS","height":98});
															thumbnails[1315591] = clik.newPhoto({"id":1315591,"src":"lowres jack1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"21 MOSLEY STREET","height":98});
															thumbnails[1315593] = clik.newPhoto({"id":1315593,"src":"lowres john1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"MORNING PAPER","height":98});
															thumbnails[1315595] = clik.newPhoto({"id":1315595,"src":"lowres under bridge_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"UNDER THE BRIDGE","height":98});
															thumbnails[1690606] = clik.newPhoto({"id":1690606,"src":"web app_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"APPROACHING DESTINATION","height":104});
															thumbnails[1690612] = clik.newPhoto({"id":1690612,"src":"The Passenger_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"THE PASSENGER","height":98});
															thumbnails[1915368] = clik.newPhoto({"id":1915368,"src":"webWATCHING LONELY STREETS_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"WATCHING LONELY STREETS","height":104});
															thumbnails[1915408] = clik.newPhoto({"id":1915408,"src":"passing stranger_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"PASSING STRANGER","height":98});
															thumbnails[1915483] = clik.newPhoto({"id":1915483,"src":"languished thoughts_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"LANGUISHED THOUGHTS","height":99});
															thumbnails[1915495] = clik.newPhoto({"id":1915495,"src":"pic2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"STREET SCENE","height":98});
															thumbnails[1915786] = clik.newPhoto({"id":1915786,"src":"web LAST EXIT TO BROOKLYN_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"LAST EXIT TO BROOKLYN","height":104});
															thumbnails[2015597] = clik.newPhoto({"id":2015597,"src":"nude study I_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NUDE STUDY I ","height":184});
															thumbnails[2015605] = clik.newPhoto({"id":2015605,"src":"nude study II_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NUDE STUDY II ","height":181});
															thumbnails[2015609] = clik.newPhoto({"id":2015609,"src":"nude study III_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NUDE STUDY III ","height":173});
															thumbnails[2186302] = clik.newPhoto({"id":2186302,"src":"sit & wait_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SIT & WAIT","height":98});
															thumbnails[2187450] = clik.newPhoto({"id":2187450,"src":"ROOFTOPS LIGHTS15X10_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"ROOFTOPS & LIGHTS ","height":96});
															thumbnails[2198505] = clik.newPhoto({"id":2198505,"src":"nsp_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NUDE STUDY IV","height":54});
															thumbnails[2411452] = clik.newPhoto({"id":2411452,"src":"webNIGHT DREAMING_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NIGHT DREAMING","height":104});
															thumbnails[2411454] = clik.newPhoto({"id":2411454,"src":"webSTEEL & STONE_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"STEEL & STONE","height":104});
															thumbnails[2438351] = clik.newPhoto({"id":2438351,"src":"websteel sky_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"STEEL SKY","height":104});
															thumbnails[2452041] = clik.newPhoto({"id":2452041,"src":"web station light_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"STATION LIGHT","height":104});
															thumbnails[2609295] = clik.newPhoto({"id":2609295,"src":"webhotel lounge_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"HOTEL LOUNGE","height":104});
															thumbnails[2609300] = clik.newPhoto({"id":2609300,"src":"webthoughts underway_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"THOUGHTS UNDERWAY","height":104});
															thumbnails[2609304] = clik.newPhoto({"id":2609304,"src":"webthe meeting place_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"THE MEETING PLACE","height":104});
															thumbnails[2667835] = clik.newPhoto({"id":2667835,"src":"intheshade_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"IN THE SHADE","height":104});
															thumbnails[2706741] = clik.newPhoto({"id":2706741,"src":"nud_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NUDE STUDY V","height":177});
															thumbnails[3004666] = clik.newPhoto({"id":3004666,"src":"cara1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"WINDOW TABLE  ","height":95});
															thumbnails[3004713] = clik.newPhoto({"id":3004713,"src":"Dsc00413_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"HALF EMPTY ","height":92});
															thumbnails[3004753] = clik.newPhoto({"id":3004753,"src":"table by the stairs_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"TABLE BY THE STAIRS","height":96});
															thumbnails[3004768] = clik.newPhoto({"id":3004768,"src":"ps lghts_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"PASSING LIGHTS","height":103});
															thumbnails[3004782] = clik.newPhoto({"id":3004782,"src":"watching_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"WATCHING STUDY","height":95});
															thumbnails[3026107] = clik.newPhoto({"id":3026107,"src":"sit & wonder_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SIT & WONDER","height":98});
															thumbnails[3026184] = clik.newPhoto({"id":3026184,"src":"miday waitress1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"MORNING WAITRESS","height":89});
															thumbnails[3061813] = clik.newPhoto({"id":3061813,"src":"dark was the night_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"DARK WAS THE NIGHT","height":101});
															thumbnails[3061828] = clik.newPhoto({"id":3061828,"src":"across the bay_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"ACROSS THE BAY","height":100});
															thumbnails[3106219] = clik.newPhoto({"id":3106219,"src":"bh1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"THE WATERS EDGE","height":100});
															thumbnails[3171014] = clik.newPhoto({"id":3171014,"src":"sisters 0_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SISTERS","height":89});
															thumbnails[3566177] = clik.newPhoto({"id":3566177,"src":"window_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"TABLE FOR ONE","height":98});
															thumbnails[3694033] = clik.newPhoto({"id":3694033,"src":"Flames_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"FLAMES","height":87});
															thumbnails[3968708] = clik.newPhoto({"id":3968708,"src":"dream1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"THEATRE DREAM 1","height":96});
															thumbnails[3968719] = clik.newPhoto({"id":3968719,"src":"tdream2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"THEATRE DREAM II","height":97});
															thumbnails[3970741] = clik.newPhoto({"id":3970741,"src":"performance_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"PERFORMANCE I","height":172});
															thumbnails[3970752] = clik.newPhoto({"id":3970752,"src":"performance_II_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"PERFORMANCE II","height":165});
															thumbnails[4707688] = clik.newPhoto({"id":4707688,"src":"Passengersweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"PASSENGERS","height":98});
															thumbnails[4707693] = clik.newPhoto({"id":4707693,"src":"by_the_fire_web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"By The Fire","height":98});
															thumbnails[5021026] = clik.newPhoto({"id":5021026,"src":"facade_study_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Facade Study","height":182});
															thumbnails[5021043] = clik.newPhoto({"id":5021043,"src":"one_day_lk_this_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"One Day Like This","height":109});
															thumbnails[5456753] = clik.newPhoto({"id":5456753,"src":"Running_Late_w_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Running Late","height":87});
															thumbnails[5459917] = clik.newPhoto({"id":5459917,"src":"by_the_bar_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Centurion Bar ","height":98});
															thumbnails[5500834] = clik.newPhoto({"id":5500834,"src":"Northbound_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Northbound","height":104});
															thumbnails[5500835] = clik.newPhoto({"id":5500835,"src":"rondevouzw_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Rondezvous","height":88});
															thumbnails[5500837] = clik.newPhoto({"id":5500837,"src":"Dsc02718w_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Whisper","height":102});
															thumbnails[5629229] = clik.newPhoto({"id":5629229,"src":"Under_a_Lamp_w_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Under A Lamp","height":101});
															thumbnails[5716638] = clik.newPhoto({"id":5716638,"src":"Return_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Return","height":98});
															thumbnails[5788012] = clik.newPhoto({"id":5788012,"src":"nude_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Nude Study X","height":173});
															thumbnails[5829140] = clik.newPhoto({"id":5829140,"src":"arm_rest_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Profile","height":173});
															thumbnails[5829146] = clik.newPhoto({"id":5829146,"src":"nude_9_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Nude Study VIII","height":98});
															thumbnails[6624240] = clik.newPhoto({"id":6624240,"src":"ed_exhibition_013_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Road Study","height":156});
															thumbnails[6645298] = clik.newPhoto({"id":6645298,"src":"ed_exhibition_006_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"White Coat","height":168});
															thumbnails[6648658] = clik.newPhoto({"id":6648658,"src":"the_book_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Book","height":98});
															thumbnails[6691247] = clik.newPhoto({"id":6691247,"src":"ed_exhibition_010_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Setting Sun Study","height":130});
															thumbnails[8454430] = clik.newPhoto({"id":8454430,"src":"background_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":101});
															thumbnails[2305000] = clik.newPhoto({"id":2305000,"src":"web candlelight_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"CANDLE LIGHT","height":104});
															thumbnails[4679897] = clik.newPhoto({"id":4679897,"src":"protection_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"PROTECTION","height":94});
															thumbnails[6624242] = clik.newPhoto({"id":6624242,"src":"ed_exhibition_011_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Self Portrait","height":108});
															thumbnails[6775345] = clik.newPhoto({"id":6775345,"src":"061dw_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Met You On The Corner","height":106});
															thumbnails[2069894] = clik.newPhoto({"id":2069894,"src":"webMEMORIES OF GIANTS_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"MEMORIES OF GIANTS","height":104});
															thumbnails[2304998] = clik.newPhoto({"id":2304998,"src":"high and dry_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"HIGH & DRY","height":102});
															thumbnails[4683053] = clik.newPhoto({"id":4683053,"src":"mornin_coffee_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"MORNING COFFEE","height":95});
															thumbnails[4555041] = clik.newPhoto({"id":4555041,"src":"no1qeenstreet_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"No 1 QUEEN STREET","height":86});
															thumbnails[4555033] = clik.newPhoto({"id":4555033,"src":"trainspotting_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"TRAINSPOTTING","height":97});
															thumbnails[6554299] = clik.newPhoto({"id":6554299,"src":"electric_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Euphonic","height":108});
															thumbnails[4647497] = clik.newPhoto({"id":4647497,"src":"city_reflections_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"CITY REFLECTIONS","height":86});
															thumbnails[6554287] = clik.newPhoto({"id":6554287,"src":"corridor_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Lost Track of Time","height":103});
															thumbnails[2214116] = clik.newPhoto({"id":2214116,"src":"saturday afternoon_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SATURDAY AFTERNOON","height":98});
															thumbnails[3566167] = clik.newPhoto({"id":3566167,"src":"Fieside_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"FIRESIDE","height":104});
															thumbnails[3694061] = clik.newPhoto({"id":3694061,"src":"Coffee__Lights_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"COFFEE & LIGHTS","height":105});
															thumbnails[3694055] = clik.newPhoto({"id":3694055,"src":"Jounys_End_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"JOURNEY'S END","height":105});
															thumbnails[3566174] = clik.newPhoto({"id":3566174,"src":"nude6_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"NUDE STUDY VII","height":85});
															thumbnails[4707779] = clik.newPhoto({"id":4707779,"src":"Edge_of_Darkness_web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"EDGE OF DARKNESS","height":98});
															thumbnails[5500838] = clik.newPhoto({"id":5500838,"src":"by_the_bar_II_w_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_5500838.html","width":130,"caption":"Tenterhooks","height":98});
															thumbnails[5500839] = clik.newPhoto({"id":5500839,"src":"Dsc02721w_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_5500839.html","width":130,"caption":"In A Lake","height":118});
															thumbnails[5686190] = clik.newPhoto({"id":5686190,"src":"back_to_front_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_5686190.html","width":130,"caption":"Back to Front","height":97});
															thumbnails[5686197] = clik.newPhoto({"id":5686197,"src":"Bar_Reflections_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_5686197.html","width":130,"caption":"Bar Reflections","height":104});
															thumbnails[5686201] = clik.newPhoto({"id":5686201,"src":"desire_atmosphere_web_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_5686201.html","width":130,"caption":"Desire Atmosphere","height":98});
															thumbnails[5695933] = clik.newPhoto({"id":5695933,"src":"Home_Tomweb_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_5695933.html","width":130,"caption":"Home","height":97});
															thumbnails[5788010] = clik.newPhoto({"id":5788010,"src":"barcelona_bar_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_5788010.html","width":130,"caption":"Barcelona Cafe","height":98});
															thumbnails[6624159] = clik.newPhoto({"id":6624159,"src":"ed_exhibition_005_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_6624159.html","width":130,"caption":"Furry Hat","height":179});
															thumbnails[6624168] = clik.newPhoto({"id":6624168,"src":"teardrop_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_6624168.html","width":130,"caption":"Teardrop","height":152});
															thumbnails[6624214] = clik.newPhoto({"id":6624214,"src":"street_watching_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6624214.html","width":130,"caption":"The Observer","height":170});
															thumbnails[6645293] = clik.newPhoto({"id":6645293,"src":"enroute_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6645293.html","width":130,"caption":"En Route","height":98});
															thumbnails[7026369] = clik.newPhoto({"id":7026369,"src":"Closing_Time_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_7026369.html","width":130,"caption":"","height":102});
															thumbnails[7659197] = clik.newPhoto({"id":7659197,"src":"068_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_7659197.html","width":130,"caption":"","height":98});
															thumbnails[7707371] = clik.newPhoto({"id":7707371,"src":"April2011_138_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7707371.html","width":130,"caption":"Misty Lake","height":93});
															thumbnails[7707373] = clik.newPhoto({"id":7707373,"src":"April2011_140_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7707373.html","width":130,"caption":"Distant Lights","height":88});
															thumbnails[7707374] = clik.newPhoto({"id":7707374,"src":"April2011_142_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7707374.html","width":130,"caption":"Collar Up","height":162});
															thumbnails[7966920] = clik.newPhoto({"id":7966920,"src":"jan2011_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_7966920.html","width":130,"caption":"Erin","height":139});
															thumbnails[7967119] = clik.newPhoto({"id":7967119,"src":"mr_and_mrs_moffit_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_7967119.html","width":130,"caption":"","height":98});
															thumbnails[7996882] = clik.newPhoto({"id":7996882,"src":"lucca_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_7996882.html","width":130,"caption":"","height":165});
															thumbnails[7996884] = clik.newPhoto({"id":7996884,"src":"jean_paul_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_7996884.html","width":130,"caption":"","height":179});
															thumbnails[8355620] = clik.newPhoto({"id":8355620,"src":"079_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8355620.html","width":130,"caption":"Thoughts Elsewhere","height":104});
															thumbnails[8355621] = clik.newPhoto({"id":8355621,"src":"080_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8355621.html","width":130,"caption":"Embrace","height":104});
															thumbnails[8434469] = clik.newPhoto({"id":8434469,"src":"084t_cinima_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8434469.html","width":130,"caption":"Tyneside Cinima","height":185});
															thumbnails[8434480] = clik.newPhoto({"id":8434480,"src":"085marthas_web_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8434480.html","width":130,"caption":"Marthas","height":101});
															thumbnails[8434484] = clik.newPhoto({"id":8434484,"src":"086greystweb_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8434484.html","width":130,"caption":"Grey Street","height":110});
															thumbnails[7564435] = clik.newPhoto({"id":7564435,"src":"063_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_7564435.html","width":130,"caption":"","height":84});
															thumbnails[8396062] = clik.newPhoto({"id":8396062,"src":"083_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8396062.html","width":130,"caption":"All You Need","height":101});
															thumbnails[8978963] = clik.newPhoto({"id":8978963,"src":"Drifting_thumb.jpg","galleries_id":472866,"server_id":1,"link":"photo_8978963.html","width":130,"caption":"Drifting","height":103});
															thumbnails[7026368] = clik.newPhoto({"id":7026368,"src":"walk_on_the_beach_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_7026368.html","width":130,"caption":"Walk On The Beach","height":101});
															thumbnails[8978950] = clik.newPhoto({"id":8978950,"src":"festival_002_thumb.jpg","galleries_id":472866,"server_id":1,"link":"photo_8978950.html","width":130,"caption":"Festival","height":171});
															thumbnails[6775359] = clik.newPhoto({"id":6775359,"src":"062dw_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6775359.html","width":130,"caption":"Saw You On The Corner","height":106});
															thumbnails[7564439] = clik.newPhoto({"id":7564439,"src":"064_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_7564439.html","width":130,"caption":"The Jetty","height":98});
															thumbnails[7564479] = clik.newPhoto({"id":7564479,"src":"Kiss_For_Mam____16x20in41x51cm_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7564479.html","width":130,"caption":"Kiss For Mam","height":103});
															thumbnails[6554288] = clik.newPhoto({"id":6554288,"src":"day_dream_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6554288.html","width":130,"caption":"Day Dreaming","height":101});
															thumbnails[7966724] = clik.newPhoto({"id":7966724,"src":"brook_and_jack_002_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_7966724.html","width":130,"caption":"","height":180});
															thumbnails[6554289] = clik.newPhoto({"id":6554289,"src":"doorway_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6554289.html","width":130,"caption":"Doorway","height":104});
															thumbnails[6554305] = clik.newPhoto({"id":6554305,"src":"road1_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6554305.html","width":130,"caption":"Setting Sun","height":98});
															thumbnails[8355615] = clik.newPhoto({"id":8355615,"src":"077_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8355615.html","width":130,"caption":"Window Shopping","height":104});
															thumbnails[5686194] = clik.newPhoto({"id":5686194,"src":"cafe_thoughts_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_5686194.html","width":130,"caption":"Cafe Thoughts","height":161});
															thumbnails[6554301] = clik.newPhoto({"id":6554301,"src":"electric_echoe_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_6554301.html","width":130,"caption":"A Northern Soul","height":105});
															thumbnails[7564472] = clik.newPhoto({"id":7564472,"src":"066_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7564472.html","width":130,"caption":"Reflections","height":108});
															thumbnails[7659210] = clik.newPhoto({"id":7659210,"src":"070_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7659210.html","width":130,"caption":"Bar Lights","height":168});
															thumbnails[7659204] = clik.newPhoto({"id":7659204,"src":"069_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7659204.html","width":130,"caption":"Bridge & Lights","height":102});
															thumbnails[7707369] = clik.newPhoto({"id":7707369,"src":"082_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7707369.html","width":130,"caption":"Carra Profile","height":131});
															thumbnails[8355616] = clik.newPhoto({"id":8355616,"src":"078_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_8355616.html","width":130,"caption":"Red Bus","height":104});
															thumbnails[4682332] = clik.newPhoto({"id":4682332,"src":"passing_by_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_4682332.html","width":130,"caption":"PASSING BY","height":98});
															thumbnails[6554307] = clik.newPhoto({"id":6554307,"src":"road2_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6554307.html","width":130,"caption":"The Road","height":87});
															thumbnails[7564469] = clik.newPhoto({"id":7564469,"src":"065_thumb.jpg","galleries_id":445356,"server_id":1,"link":"photo_7564469.html","width":130,"caption":"Patience","height":104});
															thumbnails[6554286] = clik.newPhoto({"id":6554286,"src":"cold_mountain_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6554286.html","width":130,"caption":"Cold Mountain","height":101});
															thumbnails[6554303] = clik.newPhoto({"id":6554303,"src":"menu_study_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6554303.html","width":130,"caption":"Sunlit Diner","height":168});
															thumbnails[3594565] = clik.newPhoto({"id":3594565,"src":"j2_thumb.jpg","galleries_id":119618,"server_id":1,"link":"photo_3594565.html","width":130,"caption":"PORTRAIT OF A WOMAN","height":161});
															thumbnails[6554316] = clik.newPhoto({"id":6554316,"src":"055_thumb.jpg","galleries_id":410109,"server_id":1,"link":"photo_6554316.html","width":130,"caption":"The Waiting Game","height":103});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[472866] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New","link":"gallery_472866.html","maxRecords":0.0,"photoIDs":[8978963.0,8978950.0],"skipIndex":0,"section_code":"gallery","featured_images":"8978963,8978950","id":472866,"singleSection":false});				  						galleries[445356] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PAINTINGS I","link":"gallery_445356.html","maxRecords":0.0,"photoIDs":[7707371.0,7707373.0,7707374.0,8355620.0,8355621.0,8434469.0,8434480.0,8434484.0,8396062.0,7564479.0,8355615.0,7564472.0,7659210.0,7659204.0,7707369.0,8355616.0,7564469.0],"skipIndex":0,"section_code":"gallery","featured_images":"8396062,7659204","id":445356,"singleSection":false});				  						galleries[410109] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings II","link":"gallery_410109.html","maxRecords":0.0,"photoIDs":[5500838.0,5500839.0,5686190.0,5686197.0,5686201.0,5788010.0,6624214.0,6645293.0,7026369.0,7659197.0,7564435.0,7026368.0,6775359.0,7564439.0,6554288.0,6554289.0,6554305.0,5686194.0,4682332.0,6554307.0,6554286.0,6554303.0,6554316.0],"skipIndex":0,"section_code":"gallery","featured_images":"7659197,7564439,7564435,7026369,7026368,6775359,6645293,6624214,6554316,6554307","id":410109,"singleSection":false});				  						galleries[119618] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_119618.html","maxRecords":0.0,"photoIDs":[5695933.0,6624159.0,6624168.0,7966920.0,7967119.0,7996882.0,7996884.0,7966724.0,6554301.0,3594565.0],"skipIndex":0,"section_code":"gallery","featured_images":"7966724,3594565","id":119618,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8434484,8434480,8355620,8978963,8396062,8978950,7564479,8355615,7659210,7564472,8355616,7707369,7659204,7564469';
imageSets[2] = '5456753,5021026,4707693,3061828,3061813,3026184,3004666,1915786,1915483,1690612,1690606,8396062,4679897,7966724,4555033,7659204,4647497,3694061,3594565';
imageSets[3] = '8454430,5686201,5686197,5686190,5500835,5456753';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/kevday/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/kevday/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/kevday/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/kevday/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/kevday/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/kevday/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/kevday/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/kevday/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 = 'Kevin Day: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

