window.thumbnails = {};
															thumbnails[9089875] = clik.newPhoto({"id":9089875,"src":"lean_1_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_9089875.html","width":130,"caption":"'Lean' inspired by a poem in a sequence, 'Without Understanding, We Have Beauty' by Jim Carruth.","height":181});
															thumbnails[9089876] = clik.newPhoto({"id":9089876,"src":"drench_2_thumb.jpg","galleries_id":250430,"server_id":35,"link":"photo_9089876.html","width":130,"caption":"'Drench' inspired by a poem from a sequence 'Without Understanding, We Have Beauty' by Jim Carruth.","height":126});
															thumbnails[9090194] = clik.newPhoto({"id":9090194,"src":"making_a_poem-house_16_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_9090194.html","width":130,"caption":"Making A 'Poem-House' Workshop, January 2012","height":98});
															thumbnails[9090238] = clik.newPhoto({"id":9090238,"src":"making_a_poem-house_4_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_9090238.html","width":130,"caption":"Making A 'Poem-House' Workshop January 2012","height":96});
															thumbnails[9090245] = clik.newPhoto({"id":9090245,"src":"making_a_poem-house_29_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_9090245.html","width":130,"caption":"Making A 'Poem-House' Workshop, January 2012","height":76});
															thumbnails[6933266] = clik.newPhoto({"id":6933266,"src":"an_attitude_of_mind_10-00011_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6933266.html","width":130,"caption":"\"an attitude of mind\"","height":182});
															thumbnails[5419834] = clik.newPhoto({"id":5419834,"src":"demo_1_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419834.html","width":130,"caption":"Workshop Demonstration No. 1","height":173});
															thumbnails[5416819] = clik.newPhoto({"id":5416819,"src":"studio_tools_1_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5416819.html","width":130,"caption":"\"Tools and Tactics\"","height":182});
															thumbnails[5417106] = clik.newPhoto({"id":5417106,"src":"When_Least_Expected_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417106.html","width":130,"caption":"\"When least expected\"","height":202});
															thumbnails[5310537] = clik.newPhoto({"id":5310537,"src":"sentince_speaking_in_blossom_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310537.html","width":130,"caption":"\"Sentience: Speaking in Blossom\"","height":199});
															thumbnails[5415845] = clik.newPhoto({"id":5415845,"src":"a_gap_in_the_moment_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5415845.html","width":130,"caption":"\"A gap in the moment...\"","height":79});
															thumbnails[5317294] = clik.newPhoto({"id":5317294,"src":"the_space_of_what_is_gone_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317294.html","width":130,"caption":"\"The space of what is gone...\" ","height":110});
															thumbnails[5310050] = clik.newPhoto({"id":5310050,"src":"book_fest_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5310050.html","width":130,"caption":"\"A place where thought happens\"","height":183});
															thumbnails[6933316] = clik.newPhoto({"id":6933316,"src":"an_attitude_of_mind_10-00021_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6933316.html","width":130,"caption":"\"without even pausing to think\"","height":92});
															thumbnails[5419838] = clik.newPhoto({"id":5419838,"src":"demo_3_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419838.html","width":130,"caption":"Workshop Demonstration No. 2","height":173});
															thumbnails[5310097] = clik.newPhoto({"id":5310097,"src":"down_and_out_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5310097.html","width":130,"caption":"\"Down and Out in Paris and London\"","height":179});
															thumbnails[5416800] = clik.newPhoto({"id":5416800,"src":"studio_roses_1_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5416800.html","width":130,"caption":"\"Roses\"","height":173});
															thumbnails[5415860] = clik.newPhoto({"id":5415860,"src":"APlaceWhereThoughtHappens_7_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5415860.html","width":130,"caption":"\"A place where thought happens...\"","height":78});
															thumbnails[5417119] = clik.newPhoto({"id":5417119,"src":"a_small_bundle_of_words_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417119.html","width":130,"caption":"\"A small bundle of words\"","height":173});
															thumbnails[5317371] = clik.newPhoto({"id":5317371,"src":"sentience_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317371.html","width":130,"caption":"\"Sentience (proportioned by the moon)\"","height":118});
															thumbnails[5309834] = clik.newPhoto({"id":5309834,"src":"a_page_of_love_1_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5309834.html","width":130,"caption":"\"A Page of Love: The Golden Chamber\"","height":175});
															thumbnails[6933352] = clik.newPhoto({"id":6933352,"src":"an_attitude_of_mind_10-00031_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6933352.html","width":130,"caption":"\"and listing deep\"","height":128});
															thumbnails[5419843] = clik.newPhoto({"id":5419843,"src":"demo_4_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419843.html","width":130,"caption":"Workshop Demonstration No. 3","height":173});
															thumbnails[5416852] = clik.newPhoto({"id":5416852,"src":"studio_gretchenhead_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5416852.html","width":130,"caption":"\"Angel and Gretchenhead\"","height":173});
															thumbnails[5415927] = clik.newPhoto({"id":5415927,"src":"a_place_1_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5415927.html","width":130,"caption":"\"A place where thought happens...\"","height":91});
															thumbnails[5417125] = clik.newPhoto({"id":5417125,"src":"two_rooms_become_one_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417125.html","width":130,"caption":"\"Two Rooms Become One\"","height":199});
															thumbnails[5312908] = clik.newPhoto({"id":5312908,"src":"tragedy_1_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5312908.html","width":130,"caption":"\"Tragedy\" ","height":111});
															thumbnails[5317390] = clik.newPhoto({"id":5317390,"src":"one_thing_we_knew_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317390.html","width":130,"caption":"\"One thing we knew...\" ","height":109});
															thumbnails[5310153] = clik.newPhoto({"id":5310153,"src":"a_page_of_love_2_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310153.html","width":130,"caption":"\"A Page of Love: The Dream\"","height":175});
															thumbnails[6933371] = clik.newPhoto({"id":6933371,"src":"an_attitude_of-mind_10-0004_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6933371.html","width":130,"caption":"\"of dirt, and spit, and poetry\"","height":132});
															thumbnails[5419844] = clik.newPhoto({"id":5419844,"src":"121_workshop_1_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419844.html","width":130,"caption":"One to One Workshop No. 1","height":173});
															thumbnails[5310474] = clik.newPhoto({"id":5310474,"src":"from_the_heart_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310474.html","width":130,"caption":"\"From The Heart\"","height":171});
															thumbnails[5416773] = clik.newPhoto({"id":5416773,"src":"brigid_angel_2_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5416773.html","width":130,"caption":"\"Angel\"","height":173});
															thumbnails[5415931] = clik.newPhoto({"id":5415931,"src":"a_place_2_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5415931.html","width":130,"caption":"\"A place where thought happens...\" (detail)","height":87});
															thumbnails[5417126] = clik.newPhoto({"id":5417126,"src":"What_But_A_Dream_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417126.html","width":130,"caption":"\"What But A Dream\"","height":173});
															thumbnails[5312804] = clik.newPhoto({"id":5312804,"src":"your_letter_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5312804.html","width":130,"caption":"\"Your Letter\"","height":163});
															thumbnails[5317426] = clik.newPhoto({"id":5317426,"src":"random_thoughts_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317426.html","width":130,"caption":"\"Random Thoughts\"","height":186});
															thumbnails[6955029] = clik.newPhoto({"id":6955029,"src":"an_attitude_of_mind_2_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6955029.html","width":130,"caption":"\"an attitude of mind\" Exhibition","height":100});
															thumbnails[5419848] = clik.newPhoto({"id":5419848,"src":"121_workshop_2_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419848.html","width":130,"caption":"One to One Workshop No. 2","height":173});
															thumbnails[5417010] = clik.newPhoto({"id":5417010,"src":"hush_1_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5417010.html","width":130,"caption":"\"Hush\"","height":173});
															thumbnails[5313003] = clik.newPhoto({"id":5313003,"src":"for_a_that_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5313003.html","width":130,"caption":"\"For A' That\"  ","height":161});
															thumbnails[5310487] = clik.newPhoto({"id":5310487,"src":"seven_changes_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310487.html","width":130,"caption":"\"Seven Changes\"","height":172});
															thumbnails[5417140] = clik.newPhoto({"id":5417140,"src":"the_dark_eclipses_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417140.html","width":130,"caption":"\"Where the dark eclipses be\"","height":171});
															thumbnails[5415950] = clik.newPhoto({"id":5415950,"src":"Poem_book_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5415950.html","width":130,"caption":"\"Poem\"","height":98});
															thumbnails[5317484] = clik.newPhoto({"id":5317484,"src":"room_to_rhyme_1_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317484.html","width":130,"caption":"\"The Self-Unseeing\" ","height":154});
															thumbnails[5419853] = clik.newPhoto({"id":5419853,"src":"121_workshop_3_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419853.html","width":130,"caption":"One to One Workshop No. 3","height":173});
															thumbnails[5416895] = clik.newPhoto({"id":5416895,"src":"contrariness_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5416895.html","width":130,"caption":"\"Contrariness\"","height":94});
															thumbnails[5309894] = clik.newPhoto({"id":5309894,"src":"rose2_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5309894.html","width":130,"caption":"\"Red Rose\" ","height":195});
															thumbnails[5310173] = clik.newPhoto({"id":5310173,"src":"annunciation_1_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310173.html","width":130,"caption":"\"Annunciation: A Fleck of Now's Tomorrow\"","height":99});
															thumbnails[5415979] = clik.newPhoto({"id":5415979,"src":"Yield_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5415979.html","width":130,"caption":"\"Yield\"","height":175});
															thumbnails[5417148] = clik.newPhoto({"id":5417148,"src":"no_one_is_wrong_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417148.html","width":130,"caption":"\"No one is wrong\"","height":178});
															thumbnails[5317518] = clik.newPhoto({"id":5317518,"src":"room_to_rhyme_2_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317518.html","width":130,"caption":"\"Clearances\"","height":163});
															thumbnails[6963778] = clik.newPhoto({"id":6963778,"src":"an_attitude_of_mind_low_res_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6963778.html","width":130,"caption":"\"an attitude of mind\" Exhibition","height":107});
															thumbnails[5417025] = clik.newPhoto({"id":5417025,"src":"marvellous_detritus_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5417025.html","width":130,"caption":"\"Marvellous Detritus\"","height":98});
															thumbnails[5416010] = clik.newPhoto({"id":5416010,"src":"our_two_soules_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5416010.html","width":130,"caption":"\"Our Two Soules\"","height":114});
															thumbnails[5312890] = clik.newPhoto({"id":5312890,"src":"heart_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5312890.html","width":130,"caption":"\"The Lover\"  ","height":195});
															thumbnails[5310192] = clik.newPhoto({"id":5310192,"src":"annunciation_2_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310192.html","width":130,"caption":"\"Annunciation: The Halo of Announcement\"","height":99});
															thumbnails[5417154] = clik.newPhoto({"id":5417154,"src":"in_the_silence_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417154.html","width":130,"caption":"\"In the silence\"","height":87});
															thumbnails[5419883] = clik.newPhoto({"id":5419883,"src":"VAS_Poem_House_detail_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419883.html","width":130,"caption":"Visual Arts Scotland Workshop","height":173});
															thumbnails[6955033] = clik.newPhoto({"id":6955033,"src":"an_attitude_of_mind_detail_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6955033.html","width":130,"caption":"\"an attitude of mind\" Exhibition","height":99});
															thumbnails[5415991] = clik.newPhoto({"id":5415991,"src":"you_could_not_come_1_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5415991.html","width":130,"caption":"\"You could not come (and yet you go)\"","height":104});
															thumbnails[5312767] = clik.newPhoto({"id":5312767,"src":"daisy3_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5312767.html","width":130,"caption":"\"Daisies\"","height":164});
															thumbnails[5317669] = clik.newPhoto({"id":5317669,"src":"daisy-moth1_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317669.html","width":130,"caption":"\"Dream Box\"","height":172});
															thumbnails[5419915] = clik.newPhoto({"id":5419915,"src":"home_away_from_home_1_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419915.html","width":130,"caption":"\"A Home Away From Home\"","height":195});
															thumbnails[5416777] = clik.newPhoto({"id":5416777,"src":"studio_thread_thumb.jpg","galleries_id":298773,"server_id":15,"link":"photo_5416777.html","width":130,"caption":"\"Thread\"","height":98});
															thumbnails[5310284] = clik.newPhoto({"id":5310284,"src":"late_fragment_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310284.html","width":130,"caption":"\"Late Fragment\"","height":130});
															thumbnails[5417253] = clik.newPhoto({"id":5417253,"src":"in_the_silence_detail_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417253.html","width":130,"caption":"\"In the silence\" (detail)","height":108});
															thumbnails[6955038] = clik.newPhoto({"id":6955038,"src":"an_attitude_of_mind_thumb.jpg","galleries_id":376000,"server_id":15,"link":"photo_6955038.html","width":130,"caption":"\"an attitude of mind\" Exhibition","height":71});
															thumbnails[5313026] = clik.newPhoto({"id":5313026,"src":"robert_burns_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5313026.html","width":130,"caption":"\"The Farmer\"","height":174});
															thumbnails[5419971] = clik.newPhoto({"id":5419971,"src":"Bristol_UWE_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419971.html","width":130,"caption":"\"A Poetic Gathering\" Workshop","height":168});
															thumbnails[5317578] = clik.newPhoto({"id":5317578,"src":"room_to_rhyme_3_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5317578.html","width":130,"caption":"\"Digging\"","height":102});
															thumbnails[5310257] = clik.newPhoto({"id":5310257,"src":"come_see_flowers_1_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310257.html","width":130,"caption":"\"Come, see real flowers...\"","height":137});
															thumbnails[5810893] = clik.newPhoto({"id":5810893,"src":"vice_versa_1_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5810893.html","width":130,"caption":"\"Vice Versa\"","height":103});
															thumbnails[5810979] = clik.newPhoto({"id":5810979,"src":"pied_beauty_1_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5810979.html","width":130,"caption":"\"Pied Beauty\"","height":87});
															thumbnails[5811004] = clik.newPhoto({"id":5811004,"src":"angel_1_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5811004.html","width":130,"caption":"\"Angel\"","height":87});
															thumbnails[5420246] = clik.newPhoto({"id":5420246,"src":"casting_gathering_1_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5420246.html","width":130,"caption":"\"Vice Versa\"","height":98});
															thumbnails[5313050] = clik.newPhoto({"id":5313050,"src":"secret_lake_thumb.jpg","galleries_id":298770,"server_id":15,"link":"photo_5313050.html","width":130,"caption":"\"The Secret Lake\" ","height":197});
															thumbnails[5310458] = clik.newPhoto({"id":5310458,"src":"Invincible_Summer_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5310458.html","width":130,"caption":"\"Invincible Summer\"","height":147});
															thumbnails[5419933] = clik.newPhoto({"id":5419933,"src":"do_not_go_gentle_thumb.jpg","galleries_id":298774,"server_id":15,"link":"photo_5419933.html","width":130,"caption":"\"The Poetic Revolt\" Project","height":173});
															thumbnails[5810931] = clik.newPhoto({"id":5810931,"src":"grace_1_thumb.jpg","galleries_id":298771,"server_id":15,"link":"photo_5810931.html","width":130,"caption":"\"Grace\"","height":104});
															thumbnails[5810944] = clik.newPhoto({"id":5810944,"src":"gloaming_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5810944.html","width":130,"caption":"\"Gloaming\"","height":87});
															thumbnails[5417272] = clik.newPhoto({"id":5417272,"src":"hushed_air_web_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5417272.html","width":130,"caption":"\"hush\"","height":98});
															thumbnails[5810913] = clik.newPhoto({"id":5810913,"src":"tree_house_1_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5810913.html","width":130,"caption":"\"Elsewhere\"","height":122});
															thumbnails[5811069] = clik.newPhoto({"id":5811069,"src":"blue_boat_1_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5811069.html","width":130,"caption":"\"The Blue Boat\"","height":134});
															thumbnails[5810916] = clik.newPhoto({"id":5810916,"src":"tree_house_2_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5810916.html","width":130,"caption":"\"Elsewhere\" ","height":115});
															thumbnails[5810921] = clik.newPhoto({"id":5810921,"src":"contrariness_0C22E332-24E8-5EC4-4F8A83FD2AF1CDE9_thumb.jpg","galleries_id":250431,"server_id":15,"link":"photo_5810921.html","width":130,"caption":"\"Vice Versa\"","height":87});
															thumbnails[5811099] = clik.newPhoto({"id":5811099,"src":"daisies_1_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5811099.html","width":130,"caption":"\"Daisies I\"","height":184});
															thumbnails[5811032] = clik.newPhoto({"id":5811032,"src":"the_joy_of_dewdrops_1_thumb.jpg","galleries_id":298772,"server_id":15,"link":"photo_5811032.html","width":130,"caption":"\"The joy of dewdrops\"","height":87});
															thumbnails[5811109] = clik.newPhoto({"id":5811109,"src":"daisies_2_thumb.jpg","galleries_id":250430,"server_id":15,"link":"photo_5811109.html","width":130,"caption":"\"Daisies II\"","height":183});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[250430] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings","link":"gallery_250430.html","maxRecords":0.0,"photoIDs":[9089875.0,9089876.0,5310537.0,5309834.0,5310153.0,5310474.0,5310487.0,5310173.0,5310192.0,5310284.0,5310257.0,5310458.0,5811069.0,5811099.0,5811109.0],"skipIndex":0,"section_code":"gallery","featured_images":"9089876,9089875,5811109,5811099,5811069,5310537,5310487,5310474,5310458,5310284","id":250430,"singleSection":false});				  						galleries[250431] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Poem-Houses","link":"gallery_250431.html","maxRecords":0.0,"photoIDs":[5317294.0,5317371.0,5317390.0,5317426.0,5317484.0,5317518.0,5317669.0,5317578.0,5810893.0,5420246.0,5810913.0,5810916.0,5810921.0],"skipIndex":0,"section_code":"gallery","featured_images":"5810921,5810916,5810913,5810893,5420246,5317669,5317578,5317518,5317484,5317426","id":250431,"singleSection":false});				  						galleries[298770] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Illustrations","link":"gallery_298770.html","maxRecords":0.0,"photoIDs":[5310050.0,5310097.0,5312908.0,5312804.0,5313003.0,5309894.0,5312890.0,5312767.0,5313026.0,5313050.0],"skipIndex":0,"section_code":"gallery","featured_images":"5313050,5313026,5313003,5312908,5312890,5312804,5312767,5310097,5310050,5309894","id":298770,"singleSection":false});				  						galleries[298771] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Book Forms","link":"gallery_298771.html","maxRecords":0.0,"photoIDs":[5415845.0,5415860.0,5415927.0,5415931.0,5415950.0,5415979.0,5416010.0,5415991.0,5811004.0,5810931.0],"skipIndex":0,"section_code":"gallery","featured_images":"5811004,5810931,5416010,5415991,5415979,5415950,5415931,5415927,5415860,5415845","id":298771,"singleSection":false});				  						galleries[298772] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Collaborations","link":"gallery_298772.html","maxRecords":0.0,"photoIDs":[5417106.0,5417119.0,5417125.0,5417126.0,5417140.0,5417148.0,5417154.0,5417253.0,5810979.0,5810944.0,5417272.0,5811032.0],"skipIndex":0,"section_code":"gallery","featured_images":"5811032,5810979,5810944,5417272,5417253,5417154,5417148,5417140,5417126,5417125","id":298772,"singleSection":false});				  						galleries[298773] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Studio","link":"gallery_298773.html","maxRecords":0.0,"photoIDs":[5416819.0,5416800.0,5416852.0,5416773.0,5417010.0,5416895.0,5417025.0,5416777.0],"skipIndex":0,"section_code":"gallery","featured_images":"5417025,5417010,5416895,5416852,5416819,5416800,5416777,5416773","id":298773,"singleSection":false});				  						galleries[298774] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Workshops","link":"gallery_298774.html","maxRecords":0.0,"photoIDs":[9090194.0,9090238.0,9090245.0,5419834.0,5419838.0,5419843.0,5419844.0,5419848.0,5419853.0,5419883.0,5419915.0,5419971.0,5419933.0],"skipIndex":0,"section_code":"gallery","featured_images":"9090245,9090238,9090194,5419971,5419933,5419915,5419883,5419853,5419848,5419844","id":298774,"singleSection":false});				  						galleries[376000] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions","link":"gallery_376000.html","maxRecords":0.0,"photoIDs":[6933266.0,6933316.0,6933352.0,6933371.0,6955029.0,6963778.0,6955033.0,6955038.0],"skipIndex":0,"section_code":"gallery","featured_images":"6963778,6955038,6955033,6955029,6933371,6933352,6933316,6933266","id":376000,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9090245,9090238,9090194,9089876,9089875,6963778,6955038,6955033,6955029,6933371,6933352,6933316,6933266,5811109,5811099,5811069,5811032,5811004,5810979,5810944,5810931,5810921,5810916,5810913,5810893,5420246,5419971,5419933,5419915,5419883,5419853,5419848,5419844,5419843,5419838,5419834,5417272,5417253,5417154,5417148,5417140,5417126,5417125,5417119,5417106,5417025,5417010,5416895,5416852,5416819';
imageSets[3] = '9090245,9090238,9090194,9089876,9089875,6963778,6955038,6955033,6955029,6933371,6933352,6933316,6933266,5811109,5811099,5811069,5811032,5811004,5810979,5810944,5810931,5810921,5810916,5810913,5810893,5420246,5419971,5419933,5419915,5419883,5419853,5419848,5419844,5419843,5419838,5419834,5417272,5417253,5417154,5417148,5417140,5417126,5417125,5417119,5417106,5417025,5417010,5416895,5416852,5416819';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bcollins/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bcollins/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bcollins/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bcollins/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/bcollins/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/bcollins/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bcollins/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/bcollins/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 = 'brigidcollins.co.uk: ' + 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;
	}
}

			

