window.thumbnails = {};
															thumbnails[7573197] = clik.newPhoto({"id":7573197,"src":"hg461Edinburgh_ReflectionI_Parliament70x100_cmmixedmediaoncanvas_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_7573197.html","width":130,"caption":"","height":90});
															thumbnails[7573218] = clik.newPhoto({"id":7573218,"src":"hg462EdinburghReflectionIINewTown50x70cmmixedmediaoncanvas_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_7573218.html","width":130,"caption":"","height":93});
															thumbnails[8682103] = clik.newPhoto({"id":8682103,"src":"1_if_you_can_smell__the__street__its__street__photography_bruce_gilden1.jpegJPG_thumb.jpg","galleries_id":39832,"server_id":18,"link":"photo_8682103.html","width":130,"caption":"1_if_you_can_smell _the _street _its _street _photography_bruce_gilden.jpegJPG","height":195});
															thumbnails[8682109] = clik.newPhoto({"id":8682109,"src":"7_good_bad_ugly_jens_oloflasthein.jpegJPG_thumb.jpg","galleries_id":39832,"server_id":18,"link":"photo_8682109.html","width":130,"caption":"7_good_bad_ugly_jens_oloflasthein","height":195});
															thumbnails[2179302] = clik.newPhoto({"id":2179302,"src":"construction100x120cmtecnicamistasutelahg4172008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179302.html","width":130,"caption":"Construction 100 x 120 cm mixed media on canvas ","height":87});
															thumbnails[2179308] = clik.newPhoto({"id":2179308,"src":"contained40x40cmtecnicamistasutela hg4332008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179308.html","width":130,"caption":" Contained 40 x 40 cm mixed media on canvas","height":132});
															thumbnails[2179313] = clik.newPhoto({"id":2179313,"src":"ContinuousCitytecnicamistasupannello108x130hg4162008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179313.html","width":130,"caption":"Continuous City 108 x 130 cm mixed media on board ","height":110});
															thumbnails[2179315] = clik.newPhoto({"id":2179315,"src":"EyesofLondonI40x40cmtecnicamistasu telahg4252008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179315.html","width":130,"caption":"Eyes of London I 40 x 40 cm mixed media on canvas","height":131});
															thumbnails[1778690] = clik.newPhoto({"id":1778690,"src":"stpaul'smontage_40x100cm_hg411_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_1778690.html","width":130,"caption":"St. Paul's Montage 40 x 100 cm. mixed media on board","height":51});
															thumbnails[2179318] = clik.newPhoto({"id":2179318,"src":"EyesofLondonII40x 40cmtecnicamistasupannellohg4262008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179318.html","width":130,"caption":"Eyes of London II 40 x 40 cm mixed media on board","height":130});
															thumbnails[2179322] = clik.newPhoto({"id":2179322,"src":"ForgottenI35x35cmtecnicamistasupannellohg4222008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179322.html","width":130,"caption":"Forgotten I 35 x 35 cm mixed media on board ","height":131});
															thumbnails[2179326] = clik.newPhoto({"id":2179326,"src":"ghettotecnicamistasurame35x35cm2008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179326.html","width":130,"caption":"Ghetto I 35 x 35 cm mixed media on copper and board ","height":131});
															thumbnails[2179330] = clik.newPhoto({"id":2179330,"src":"HiddenCityStudyI35x35cmtecnicamistasupannellohg4232008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179330.html","width":130,"caption":"Hidden City Study I 35 x 35 cm mixed media on board ","height":128});
															thumbnails[1778665] = clik.newPhoto({"id":1778665,"src":"bergamo 006_thumb.JPG","galleries_id":40286,"server_id":18,"link":"photo_1778665.html","width":130,"caption":"Hannah Gauntlett ","height":86});
															thumbnails[1778671] = clik.newPhoto({"id":1778671,"src":"bergamo 016_thumb.JPG","galleries_id":40286,"server_id":18,"link":"photo_1778671.html","width":130,"caption":"Hannah Gauntlett @ Magarte, Bergamo Fiera 2008","height":86});
															thumbnails[2179396] = clik.newPhoto({"id":2179396,"src":"londonskyline35x35cmtecnicamistasurame2008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179396.html","width":130,"caption":"London Skyline 35 x 35 cm mixed media on copper and board","height":129});
															thumbnails[2179404] = clik.newPhoto({"id":2179404,"src":"Monferrato Mirage, 80 x 80 cm, tecnica mista su pannello hg433_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179404.html","width":130,"caption":"Monferrato Mirage 80 x 80 cm mixed media on board ","height":130});
															thumbnails[2179407] = clik.newPhoto({"id":2179407,"src":"NocturnalCity80x 80cmtecnicamistasutelahg4242008_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179407.html","width":130,"caption":"Nocturnal City 80 x 80 cm mixed media on canvas ","height":130});
															thumbnails[2179416] = clik.newPhoto({"id":2179416,"src":"UrbanStudyVI35x35 cmtecnicamistasupannellohg4202007_thumb.JPG","galleries_id":98407,"server_id":18,"link":"photo_2179416.html","width":130,"caption":"Urban Study VI 35 x 35 cm mixed media on board ","height":130});
															thumbnails[520548] = clik.newPhoto({"id":520548,"src":"Lines_in_nature_exhib20061.jpg","galleries_id":40286,"server_id":18,"link":"photo_520548.html","width":130,"caption":"Lines in Nature 2006","height":103});
															thumbnails[8682107] = clik.newPhoto({"id":8682107,"src":"2_turn_your_attention_to_the_four_legged_population_ying_tang.jpegJPG_thumb.jpg","galleries_id":39832,"server_id":18,"link":"photo_8682107.html","width":130,"caption":"2_turn_your_attention_to_the_four_legged_population_ying_tang.jpegJPG","height":196});
															thumbnails[1455640] = clik.newPhoto({"id":1455640,"src":"Experimental Printmaking Workshop.jpg","galleries_id":40286,"server_id":18,"link":"photo_1455640.html","width":130,"caption":"Mixed Media Workshop","height":113});
															thumbnails[8682108] = clik.newPhoto({"id":8682108,"src":"3_document_some__evidence_of_human_ingenuity_that_would_otherwise_go_unnoticed_Do_it_without_including_humans_michael_wolf1.jpegJPG_thumb.jpg","galleries_id":39832,"server_id":18,"link":"photo_8682108.html","width":130,"caption":"3_document_some _evidence_of_human_ingenuity_that_would_otherwise_go_unnoticed_Do_it_without_including_humans_michael_wolf.jpegJPG","height":173});
															thumbnails[518821] = clik.newPhoto({"id":518821,"src":"Footsteps_in_the_sand_hg1131.jpg","galleries_id":458194,"server_id":18,"link":"photo_518821.html","width":130,"caption":"Footsteps in the Sand II - colour photograph","height":183});
															thumbnails[518825] = clik.newPhoto({"id":518825,"src":"Iris_hg1871.jpg","galleries_id":458194,"server_id":18,"link":"photo_518825.html","width":130,"caption":"Iris - colour photograph","height":195});
															thumbnails[518837] = clik.newPhoto({"id":518837,"src":"Islands_of_Light_swimming_on_the_grass_hg1771.jpg","galleries_id":458194,"server_id":18,"link":"photo_518837.html","width":130,"caption":"\"Islands of Light are swimming on the grass\" - colour photograph","height":175});
															thumbnails[518843] = clik.newPhoto({"id":518843,"src":"White_words_hg1811.jpg","galleries_id":458194,"server_id":18,"link":"photo_518843.html","width":130,"caption":"\"White words like stones one picks up by the seashore\" - digital colour photograph ","height":87});
															thumbnails[512114] = clik.newPhoto({"id":512114,"src":"Prelude_80x80cm_ hg355_oil_on_canvas3.jpg","galleries_id":40157,"server_id":18,"link":"photo_512114.html","width":130,"caption":"Prelude 80x80cm oil on canvas","height":130});
															thumbnails[518844] = clik.newPhoto({"id":518844,"src":"Llily_hg184b1.jpg","galleries_id":458194,"server_id":18,"link":"photo_518844.html","width":130,"caption":"Lily - digital colour photograph","height":130});
															thumbnails[520552] = clik.newPhoto({"id":520552,"src":"foto2_workshop_July2005JPG1.jpg","galleries_id":40286,"server_id":18,"link":"photo_520552.html","width":130,"caption":"Art workshop July 2005","height":62});
															thumbnails[8682110] = clik.newPhoto({"id":8682110,"src":"10_photograph_like_an_assassin_osamu_kanemura.jpegJPG_thumb.jpg","galleries_id":39832,"server_id":18,"link":"photo_8682110.html","width":130,"caption":"10_photograph_like_an_assassin_osamu_kanemura","height":195});
															thumbnails[522714] = clik.newPhoto({"id":522714,"src":"Layers_of_ Time1.jpg","galleries_id":458194,"server_id":18,"link":"photo_522714.html","width":130,"caption":"Layers of Time - colour photograph","height":127});
															thumbnails[1419152] = clik.newPhoto({"id":1419152,"src":"Notturno Londinese_70x100cm_mixedmedia on canvas_hg404JPG.jpg","galleries_id":98407,"server_id":18,"link":"photo_1419152.html","width":130,"caption":"London Nocturne 70x100cm mixedmedia on canvas","height":91});
															thumbnails[8682112] = clik.newPhoto({"id":8682112,"src":"13_look_closer_to_home_lars_turbjork.jpegJPG_thumb.jpg","galleries_id":39832,"server_id":18,"link":"photo_8682112.html","width":130,"caption":"13_look_closer_to_home_lars_turbjork","height":87});
															thumbnails[1419159] = clik.newPhoto({"id":1419159,"src":"Bridges between two worlds_40x100cm_mixedmedia on board_hg405JPG.jpg","galleries_id":98407,"server_id":18,"link":"photo_1419159.html","width":130,"caption":"Bridges between two worlds 40x100cm mixedmedia on board ","height":53});
															thumbnails[1419162] = clik.newPhoto({"id":1419162,"src":"Urban Study I_30x30cm_mixedmedia on board__hg400JPG.jpg","galleries_id":98407,"server_id":18,"link":"photo_1419162.html","width":130,"caption":"Urban Study I 30x30cm mixedmedia on board ","height":130});
															thumbnails[1419165] = clik.newPhoto({"id":1419165,"src":"Urban Study III_30x30cm_mixedmedia on board__hg402JPG.jpg","galleries_id":98407,"server_id":18,"link":"photo_1419165.html","width":130,"caption":"Urban Study III 30x30cm mixedmedia on board ","height":129});
															thumbnails[1419174] = clik.newPhoto({"id":1419174,"src":"St.Pauls study 20 x 20cm hg409JPG.jpg","galleries_id":98407,"server_id":18,"link":"photo_1419174.html","width":130,"caption":"St.Pauls study 20 x 20cm mixed media on board","height":129});
															thumbnails[1419175] = clik.newPhoto({"id":1419175,"src":"The Ongoing Moment 80 x 120cm hg410JPG.jpg","galleries_id":98407,"server_id":18,"link":"photo_1419175.html","width":130,"caption":"The Ongoing Moment 80 x 120cm mixed media on board","height":86});
															thumbnails[1419183] = clik.newPhoto({"id":1419183,"src":"Venetian Recollection_40x100cm_mixedmedia on board_hg406JPG.jpg","galleries_id":98407,"server_id":18,"link":"photo_1419183.html","width":130,"caption":"Venetian Recollection 40x100cm mixed media on board ","height":336});
															thumbnails[518529] = clik.newPhoto({"id":518529,"src":"Clear_blue_sky_35x50cm__sold1.jpg","galleries_id":458151,"server_id":18,"link":"photo_518529.html","width":130,"caption":"Clear blue sky 35x50cm mixed media","height":83});
															thumbnails[8682126] = clik.newPhoto({"id":8682126,"src":"14_show_us_the_aftermath_maciej_dakawicz.jpegJPG_thumb.jpg","galleries_id":39832,"server_id":18,"link":"photo_8682126.html","width":130,"caption":"14_show_us_the_aftermath_maciej_dakawicz","height":204});
															thumbnails[518530] = clik.newPhoto({"id":518530,"src":"Daydream_40x80cm_sold1.jpg","galleries_id":458151,"server_id":18,"link":"photo_518530.html","width":130,"caption":"Daydream 40x80cm mixed media","height":64});
															thumbnails[1452719] = clik.newPhoto({"id":1452719,"src":"Fruit_Iambic_Trimeter_100x100cm hg450JPG1.jpg","galleries_id":40157,"server_id":18,"link":"photo_1452719.html","width":130,"caption":"Fruit Iambic Trimeter 100x100cm mixed media on canvas","height":134});
															thumbnails[518553] = clik.newPhoto({"id":518553,"src":"Interrupted_Storm_25x30cm_hg007_oil_on_canvas2.jpg","galleries_id":458151,"server_id":18,"link":"photo_518553.html","width":130,"caption":"Interrupted Storm 25x30cm oil on canvas","height":91});
															thumbnails[1452740] = clik.newPhoto({"id":1452740,"src":"The_day_stirs_100x100cm_hg451JPG.jpg","galleries_id":40157,"server_id":18,"link":"photo_1452740.html","width":130,"caption":"The day stirs 100x100cm mixed media on canvas","height":131});
															thumbnails[1455651] = clik.newPhoto({"id":1455651,"src":"Holkham VI 30 x 40 cm, hg071c, soldJPG.jpg","galleries_id":458151,"server_id":18,"link":"photo_1455651.html","width":130,"caption":"Holkham VI 30 x 40 cm Oil on canvas","height":97});
															thumbnails[518509] = clik.newPhoto({"id":518509,"src":"The Waves Study III, 40 x 50 cm hg346JPG1.jpg","galleries_id":458151,"server_id":18,"link":"photo_518509.html","width":130,"caption":"The Waves Study III, 40x50cm mixed media","height":96});
															thumbnails[518505] = clik.newPhoto({"id":518505,"src":"Briccole_70x70cm_hg341_oil_on_board1.jpg","galleries_id":458151,"server_id":18,"link":"photo_518505.html","width":130,"caption":"Briccole 70x70cm oil on board","height":130});
															thumbnails[518517] = clik.newPhoto({"id":518517,"src":"The_Waves_III_50x50cm_hg351_oil_text_on_canvas1.jpg","galleries_id":40157,"server_id":18,"link":"photo_518517.html","width":130,"caption":"The Waves III 50x50cm mixed media on canvas","height":130});
															thumbnails[517392] = clik.newPhoto({"id":517392,"src":"Iris II_ mixed media on board_40x50cm_hg398JPG.jpg","galleries_id":40157,"server_id":18,"link":"photo_517392.html","width":130,"caption":"Iris II 40x50cm mixed media on board","height":164});
															thumbnails[517398] = clik.newPhoto({"id":517398,"src":"Clematis_40x50cm_hg389_mixedmedia1.jpg","galleries_id":40157,"server_id":18,"link":"photo_517398.html","width":130,"caption":"Clematis 40x50cm mixed media","height":100});
															thumbnails[517402] = clik.newPhoto({"id":517402,"src":"Helical Flowers_mixed media on board_40x50cm_hg399JPG.jpg","galleries_id":40157,"server_id":18,"link":"photo_517402.html","width":130,"caption":"Helical Flowers 40x50cm mixed media on board","height":195});
															thumbnails[517407] = clik.newPhoto({"id":517407,"src":"Lily_Image_on_Top_of_Image_24x30cm_hg367_collage1.jpg","galleries_id":40157,"server_id":18,"link":"photo_517407.html","width":130,"caption":"Lily Image on Top of Image 24x30cm collage","height":106});
															thumbnails[517417] = clik.newPhoto({"id":517417,"src":"Rain_Collage_35x35cm_hg378_collographcollage1.jpg","galleries_id":40157,"server_id":18,"link":"photo_517417.html","width":130,"caption":"Rain Collage 35x35cm collograph collage","height":120});
															thumbnails[517431] = clik.newPhoto({"id":517431,"src":"Outback_from_above_VIII_70x70cm_hg392_mixedmedia1.jpg","galleries_id":40157,"server_id":18,"link":"photo_517431.html","width":130,"caption":"Outback from above VIII 70x70cm mixedmedia","height":130});
															thumbnails[517495] = clik.newPhoto({"id":517495,"src":"Outback_from_above_V_30x40cm_hg372_collograph1.jpg","galleries_id":40157,"server_id":18,"link":"photo_517495.html","width":130,"caption":"Outback from above V 30x40cm collograph","height":94});
															thumbnails[517464] = clik.newPhoto({"id":517464,"src":"Stone_50x70cm_hg366_acrylic1.jpg","galleries_id":40157,"server_id":18,"link":"photo_517464.html","width":101,"caption":"Stone 50x70cm acrylic","height":130});
															thumbnails[514154] = clik.newPhoto({"id":514154,"src":"La_Laguna_50x70cm_ hg310_sold1.jpg","galleries_id":458151,"server_id":18,"link":"photo_514154.html","width":130,"caption":"La Laguna 50x70cm mixed media on canvas","height":93});
															thumbnails[514163] = clik.newPhoto({"id":514163,"src":"IL_Bacio_30x40cm_ hg300_sold1.jpg","galleries_id":458151,"server_id":18,"link":"photo_514163.html","width":130,"caption":"IL Bacio 30x40cm mixed media on board","height":96});
															thumbnails[514166] = clik.newPhoto({"id":514166,"src":"Ricordi_di_Venezia_30x40cm_hg301_mixedmedia1.jpg","galleries_id":458151,"server_id":18,"link":"photo_514166.html","width":91,"caption":"Ricordi di Venezia 30x40cm mixed media on canvas","height":130});
															thumbnails[514168] = clik.newPhoto({"id":514168,"src":"Riflessione_Veneziana_40x40cm_hg308_mixedmedia1.jpg","galleries_id":458151,"server_id":18,"link":"photo_514168.html","width":130,"caption":"Riflessione Veneziana 40x40cm mixed media on board","height":130});
															thumbnails[514173] = clik.newPhoto({"id":514173,"src":"Duet_I_14x25cm_hg329_monoprint1.jpg","galleries_id":458151,"server_id":18,"link":"photo_514173.html","width":75,"caption":"Duet I 14x25cm monoprint","height":130});
															thumbnails[514197] = clik.newPhoto({"id":514197,"src":"Duet_II_14x25_hg331_monoprint4.jpg","galleries_id":458151,"server_id":18,"link":"photo_514197.html","width":70,"caption":"Duet II 14x25 monoprint","height":130});
															thumbnails[514198] = clik.newPhoto({"id":514198,"src":"Corso_Semplice_24x30_hg307_collage_2.jpg","galleries_id":458151,"server_id":18,"link":"photo_514198.html","width":130,"caption":"Corso Semplice 24x30 collage","height":114});
															thumbnails[514203] = clik.newPhoto({"id":514203,"src":"60_minuti_24x30_hg326_collage1.jpg","galleries_id":458151,"server_id":18,"link":"photo_514203.html","width":130,"caption":"60 minuti 24x30 collage","height":123});
															thumbnails[514080] = clik.newPhoto({"id":514080,"src":"March_26th_40x50cm_ hg0541.jpg","galleries_id":458151,"server_id":18,"link":"photo_514080.html","width":130,"caption":"March 26th 40x50cm mixed media on canvas","height":170});
															thumbnails[513944] = clik.newPhoto({"id":513944,"src":"February_10th_35x50cm_ hg0512.jpg","galleries_id":458151,"server_id":18,"link":"photo_513944.html","width":130,"caption":"February 10th 35 x 50cm mixed media on canvas","height":173});
															thumbnails[513648] = clik.newPhoto({"id":513648,"src":"Black_Boots_ size_42_ hg0601.jpg","galleries_id":458150,"server_id":18,"link":"photo_513648.html","width":130,"caption":"Black Boots size 42 ","height":95});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[39549] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1 Mixed Media Painting","link":"gallery_39549.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"1452719,514080","id":39549,"singleSection":false});				  						galleries[458152] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2 Photography","link":"gallery_458152.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":1778665.0,"id":458152,"singleSection":false});				  						galleries[98407] = clik.newGallery({"parentGallery":39549,"usePopups":false,"title":"Cityscapes","link":"gallery_98407.html","maxRecords":0.0,"photoIDs":[7573197.0,7573218.0,2179302.0,2179308.0,2179313.0,2179315.0,1778690.0,2179318.0,2179322.0,2179326.0,2179330.0,2179396.0,2179404.0,2179407.0,2179416.0,1419152.0,1419159.0,1419162.0,1419165.0,1419174.0,1419175.0,1419183.0],"skipIndex":0,"section_code":"gallery","featured_images":"7573218,7573197,2179416,2179407,2179404,2179396,2179330,2179326,2179322,2179318","id":98407,"singleSection":false});				  						galleries[458194] = clik.newGallery({"parentGallery":458152,"usePopups":false,"title":"Lines in Nature Photography","link":"gallery_458194.html","maxRecords":0.0,"photoIDs":[518821.0,518825.0,518837.0,518843.0,518844.0,522714.0],"skipIndex":0,"section_code":"gallery","featured_images":"522714,518844,518843,518837,518825,518821","id":458194,"singleSection":false});				  						galleries[40157] = clik.newGallery({"parentGallery":39549,"usePopups":false,"title":"Lines in Nature","link":"gallery_40157.html","maxRecords":0.0,"photoIDs":[512114.0,1452719.0,1452740.0,518517.0,517392.0,517398.0,517402.0,517407.0,517417.0,517431.0,517495.0,517464.0],"skipIndex":0,"section_code":"gallery","featured_images":1452719.0,"id":40157,"singleSection":false});				  						galleries[458150] = clik.newGallery({"parentGallery":458152,"usePopups":false,"title":"Installations","link":"gallery_458150.html","maxRecords":0.0,"photoIDs":[513648.0],"skipIndex":0,"section_code":"gallery","featured_images":513648.0,"id":458150,"singleSection":false});				  						galleries[458151] = clik.newGallery({"parentGallery":39549,"usePopups":false,"title":"Early Work","link":"gallery_458151.html","maxRecords":0.0,"photoIDs":[518529.0,518530.0,518553.0,1455651.0,518509.0,518505.0,514154.0,514163.0,514166.0,514168.0,514173.0,514197.0,514198.0,514203.0,514080.0,513944.0],"skipIndex":0,"section_code":"gallery","featured_images":514080.0,"id":458151,"singleSection":false});				  						galleries[39832] = clik.newGallery({"parentGallery":458152,"usePopups":false,"title":"Street Photography","link":"gallery_39832.html","maxRecords":0.0,"photoIDs":[8682103.0,8682109.0,8682107.0,8682108.0,8682110.0,8682112.0,8682126.0],"skipIndex":0,"section_code":"gallery","featured_images":"8682126,8682112,8682110,8682109,8682108,8682107,8682103","id":39832,"singleSection":false});				  						galleries[40286] = clik.newGallery({"parentGallery":458152,"usePopups":false,"title":"Exhibition and Workshop Photos","link":"gallery_40286.html","maxRecords":0.0,"photoIDs":[1778665.0,1778671.0,520548.0,1455640.0,520552.0],"skipIndex":0,"section_code":"gallery","featured_images":1778665.0,"id":40286,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2179302,2179407,518821,512114,1419152,1419175,517392';
imageSets[2] = '1778665,1452719,514080';
imageSets[3] = '8682126,8682112,8682110,8682109,8682108,8682107,8682103,7573218,7573197,2179416,2179407,2179404,2179396,2179330,2179326,2179322,2179318,2179315,2179313,2179308,2179302,1778690,1778671,1778665,1455651,1455640,1452740,1452719,1419183,1419175,1419174,1419165,1419162,1419159,1419152,522714,520552,520548,518844,518843,518837,518825,518821,518553,518530,518529,518517,518509,518505,517495';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/gauntlett/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/gauntlett/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 && backgrounds[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 = 'Hannah Gauntlett: ' + 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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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 += '<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;
	}
}

			

