window.thumbnails = {};
															thumbnails[6902666] = clik.newPhoto({"id":6902666,"src":"Harlequin_07_lo_res_B3CF174C-1D09-001F-995B3739D082AB40_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Harlequin","height":130});
															thumbnails[6902667] = clik.newPhoto({"id":6902667,"src":"Indian_Summer_of_Her_Beauty_07_lo_res_B3CF9FA7-1D09-001F-99A6B50310E4A8DB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Indian Summer of Her Beauty","height":130});
															thumbnails[6902677] = clik.newPhoto({"id":6902677,"src":"Untitled_12-05-07_lo_res_B3D5A5A5-1D09-001F-99A47EC1BD24AF07_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Vindictive Peace","height":130});
															thumbnails[6902678] = clik.newPhoto({"id":6902678,"src":"Untitled_15-05-07_lo_res_B3D66A3D-1D09-001F-99E96F650AE98A37_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"<q>So wonderfully built among the reeds<\/q>","height":130});
															thumbnails[6902679] = clik.newPhoto({"id":6902679,"src":"Untitled_10-12-07_lo_res_B3D7DAA5-1D09-001F-99DA7F1300F2A644_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Chained by a Futureless Defeat","height":130});
															thumbnails[6902680] = clik.newPhoto({"id":6902680,"src":"Untitled_15-07-07_lo_res_B3D939C8-1D09-001F-99C294F600B7BA14_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Eternal Glow","height":130});
															thumbnails[1712288] = clik.newPhoto({"id":1712288,"src":"Untitled_05-07-07_lo_res_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Time Without End","height":130});
															thumbnails[1711889] = clik.newPhoto({"id":1711889,"src":"Unamed_lo_res_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Un-named","height":173});
															thumbnails[919627] = clik.newPhoto({"id":919627,"src":"White_Matter_of_the_Cerebrum_06_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"White Matter of the Cerebrum","height":130});
															thumbnails[6908446] = clik.newPhoto({"id":6908446,"src":"LoRes_Aeolus-god-of-the-win_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6908446.html","width":130,"caption":"Aeolus - God of the Winds","height":130});
															thumbnails[6908448] = clik.newPhoto({"id":6908448,"src":"LoRes_Agapai_500_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6908448.html","width":130,"caption":"Agapai - Seed of Hope","height":133});
															thumbnails[1712340] = clik.newPhoto({"id":1712340,"src":"Untitled_15-07-07_lo_res_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_1712340.html","width":130,"caption":"Just Outside the Cay","height":130});
															thumbnails[6908473] = clik.newPhoto({"id":6908473,"src":"LoRes_New-Horizons_500_thumb.jpg","galleries_id":374799,"server_id":1,"link":"photo_6908473.html","width":130,"caption":"Before Time (New Horizons)","height":87});
															thumbnails[6908450] = clik.newPhoto({"id":6908450,"src":"LoRes_AsianSunset_500_thumb.jpg","galleries_id":374799,"server_id":1,"link":"photo_6908450.html","width":130,"caption":"Written in Time (Asian Sunset)","height":86});
															thumbnails[6908485] = clik.newPhoto({"id":6908485,"src":"LoRes_Explosion_500_thumb.jpg","galleries_id":374799,"server_id":1,"link":"photo_6908485.html","width":130,"caption":"Paroxysm","height":195});
															thumbnails[6895883] = clik.newPhoto({"id":6895883,"src":"Lo_Long-ago-long-ago-on-t_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895883.html","width":130,"caption":"<q>Long ago, long ago, on the waves built a city...<\/q>","height":130});
															thumbnails[6895899] = clik.newPhoto({"id":6895899,"src":"To_Rise_Up_Again_into_Life_III_thumb.jpg","galleries_id":123654,"server_id":1,"link":"photo_6895899.html","width":130,"caption":"<q>To Rise Up into Life Again III<\/q>","height":130});
															thumbnails[6908491] = clik.newPhoto({"id":6908491,"src":"LoRes_HeavyColours_500_thumb.jpg","galleries_id":374799,"server_id":1,"link":"photo_6908491.html","width":130,"caption":"Cross Section of Time","height":201});
															thumbnails[6908475] = clik.newPhoto({"id":6908475,"src":"LoRes_Blue_Hoyland_500_thumb.jpg","galleries_id":374799,"server_id":1,"link":"photo_6908475.html","width":130,"caption":"Kairos - Divine Time","height":131});
															thumbnails[700982] = clik.newPhoto({"id":700982,"src":"Burned-Hopes_8_06_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_700982.html","width":130,"caption":"Burned Hopes","height":126});
															thumbnails[1712147] = clik.newPhoto({"id":1712147,"src":"Apocalypto_07-11-07_lo_res_thumb.jpg","galleries_id":115065,"server_id":1,"link":"photo_1712147.html","width":130,"caption":"Untainted Peace","height":130});
															thumbnails[6895886] = clik.newPhoto({"id":6895886,"src":"Lo_The-sylphs-and-ondine-_o_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895886.html","width":130,"caption":"The sylphs and ondines of Venice No 1","height":130});
															thumbnails[6908478] = clik.newPhoto({"id":6908478,"src":"LoRes_Busy-Hoyland_500_thumb.jpg","galleries_id":374799,"server_id":1,"link":"photo_6908478.html","width":130,"caption":"Without Time","height":131});
															thumbnails[1712272] = clik.newPhoto({"id":1712272,"src":"Apocalypto_11-06-07_lo_res_thumb.jpg","galleries_id":115065,"server_id":1,"link":"photo_1712272.html","width":130,"caption":"Our Lands Were Salvaged","height":130});
															thumbnails[6895901] = clik.newPhoto({"id":6895901,"src":"The_Flame_Mounts_Again_II_thumb.jpg","galleries_id":123654,"server_id":1,"link":"photo_6895901.html","width":130,"caption":"<q>The Flame Mounts Again II<\/q>","height":104});
															thumbnails[6908503] = clik.newPhoto({"id":6908503,"src":"LoRes_Unchained_II_500_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_6908503.html","width":130,"caption":"Chained by a Futureless Defeat II","height":131});
															thumbnails[6895890] = clik.newPhoto({"id":6895890,"src":"Lo_The-sylphs-and-ondines-o_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895890.html","width":130,"caption":"The sylphs and ondines of Venice No 2","height":130});
															thumbnails[1712282] = clik.newPhoto({"id":1712282,"src":"Harlequin_07_lo_res_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_1712282.html","width":130,"caption":"Harlequin","height":130});
															thumbnails[701048] = clik.newPhoto({"id":701048,"src":"Dove_of_War_10_06_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_701048.html","width":130,"caption":"Dove of War","height":128});
															thumbnails[1712284] = clik.newPhoto({"id":1712284,"src":"Indian_Summer_of_Her_Beauty_07_lo_res_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_1712284.html","width":130,"caption":"Indian Summer of Her Beauty","height":130});
															thumbnails[6895893] = clik.newPhoto({"id":6895893,"src":"Lo_To-Rise-Up-into-Life-Aga_thumb.jpg","galleries_id":123654,"server_id":1,"link":"photo_6895893.html","width":130,"caption":"<q>To Rise up into Life Again II<\/q> ","height":132});
															thumbnails[6908501] = clik.newPhoto({"id":6908501,"src":"LoRes_Sweet_Delusions_of_My_Mind_500_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6908501.html","width":130,"caption":"Sweet Delusions of my Mind","height":130});
															thumbnails[1712273] = clik.newPhoto({"id":1712273,"src":"Apocalypto_23-06-07_lo_res_thumb.jpg","galleries_id":115065,"server_id":1,"link":"photo_1712273.html","width":130,"caption":"To Seek A New Beginning","height":165});
															thumbnails[6902694] = clik.newPhoto({"id":6902694,"src":"LoRes_Panthea_500_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6902694.html","width":130,"caption":"Panthea","height":159});
															thumbnails[6908499] = clik.newPhoto({"id":6908499,"src":"LoRes_SummerWorms_500_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6908499.html","width":130,"caption":"Searching for New Neural Pathways","height":176});
															thumbnails[701075] = clik.newPhoto({"id":701075,"src":"Each_in_Its_Turn_5_05_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_701075.html","width":130,"caption":"Each In Its Turn","height":163});
															thumbnails[6896156] = clik.newPhoto({"id":6896156,"src":"LoA-thousand-years-their-cl_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6896156.html","width":130,"caption":"<q>A thousand years their cloudy wings expand...<\/q>","height":161});
															thumbnails[701236] = clik.newPhoto({"id":701236,"src":"Weep_for_the_Children_3_05_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_701236.html","width":130,"caption":"Weep for the Children","height":128});
															thumbnails[6895905] = clik.newPhoto({"id":6895905,"src":"On-the-Flank-of-an-Emerald-_thumb.jpg","galleries_id":123654,"server_id":1,"link":"photo_6895905.html","width":130,"caption":"<q>On the Flank of an Emerald Wave II<\/q>","height":175});
															thumbnails[6895866] = clik.newPhoto({"id":6895866,"src":"Lo_And-music-meets-not-alwa_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895866.html","width":130,"caption":"<q>And music meets not always now the ear..<\/q>","height":104});
															thumbnails[701076] = clik.newPhoto({"id":701076,"src":"Hyperbole_I_8_05_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_701076.html","width":130,"caption":"Hyperbole I","height":175});
															thumbnails[6908496] = clik.newPhoto({"id":6908496,"src":"LoRes_Price-of-Greed_500_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_6908496.html","width":130,"caption":"Price of Greed","height":161});
															thumbnails[701027] = clik.newPhoto({"id":701027,"src":"Capriccio_II_10_06_thumb.jpg","galleries_id":123654,"server_id":1,"link":"photo_701027.html","width":130,"caption":"<q>Happiness, That None can Flee<\/q> ","height":131});
															thumbnails[6895868] = clik.newPhoto({"id":6895868,"src":"Lo_And-silent-rows-the-song_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895868.html","width":130,"caption":"<q>And silent rows the songless gondolier...<\/q>","height":163});
															thumbnails[701166] = clik.newPhoto({"id":701166,"src":"911_9_04_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_701166.html","width":130,"caption":911.0,"height":195});
															thumbnails[6895885] = clik.newPhoto({"id":6895885,"src":"Lo_Rising-like-water-column_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895885.html","width":130,"caption":"<q>Rising like water-columns from the sea...<\/q>","height":131});
															thumbnails[701222] = clik.newPhoto({"id":701222,"src":"Sleeping_Spirit_1_05_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_701222.html","width":130,"caption":"Sleeping Spirit","height":81});
															thumbnails[6895875] = clik.newPhoto({"id":6895875,"src":"Lo_Had-stampd-her-image-in_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895875.html","width":130,"caption":"<q>Had stamp'd her image on me...<\/q>","height":103});
															thumbnails[1711886] = clik.newPhoto({"id":1711886,"src":"African _Mist_07_lo_res_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_1711886.html","width":130,"caption":"Africa in the Mist","height":173});
															thumbnails[6895877] = clik.newPhoto({"id":6895877,"src":"Lo_Her-palaces-are-crumblin_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895877.html","width":130,"caption":"<q>Her palaces are crumbling to the shore<\/q>","height":130});
															thumbnails[1219178] = clik.newPhoto({"id":1219178,"src":"05-07 Lg Venice_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_1219178.html","width":130,"caption":"<q>White swan of cities, slumbering in thy nest...<\/q>","height":132});
															thumbnails[1712337] = clik.newPhoto({"id":1712337,"src":"Untitled_12-05-07_lo_res_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_1712337.html","width":130,"caption":"Vindictive Peace","height":130});
															thumbnails[6895872] = clik.newPhoto({"id":6895872,"src":"Lo_And-with-a-fresher-growt_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_6895872.html","width":130,"caption":"<q>And with a fresher growth replenishing the void..<\/q>","height":131});
															thumbnails[919626] = clik.newPhoto({"id":919626,"src":"Digital_Fusion_I_07_03_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_919626.html","width":130,"caption":"Digital Fusion","height":130});
															thumbnails[919634] = clik.newPhoto({"id":919634,"src":"Fraction_I_06_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_919634.html","width":130,"caption":"Fraction - Digital Fusion","height":126});
															thumbnails[1712338] = clik.newPhoto({"id":1712338,"src":"Untitled_15-05-07_lo_res_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_1712338.html","width":130,"caption":"<q>So wonderfully built among the reeds...<\/q>","height":130});
															thumbnails[1219172] = clik.newPhoto({"id":1219172,"src":"04-07-07 Venice_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_1219172.html","width":130,"caption":"<q>Lifting thy golden filaments and seeds...<\/q>","height":130});
															thumbnails[1843880] = clik.newPhoto({"id":1843880,"src":"Untitled_08-02-07_lo_res1_thumb.jpg","galleries_id":124077,"server_id":1,"link":"photo_1843880.html","width":130,"caption":"Canals of Venice No 1","height":161});
															thumbnails[701080] = clik.newPhoto({"id":701080,"src":"Hyperbole_XXXVI_11_05_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_701080.html","width":130,"caption":"Hyperbole XXXVI ","height":132});
															thumbnails[701079] = clik.newPhoto({"id":701079,"src":"Hyperbole_XXXIV_11_05_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_701079.html","width":130,"caption":"Hyperbole XXXIV","height":130});
															thumbnails[701077] = clik.newPhoto({"id":701077,"src":"Hyperbole_XXXIII_11_05_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_701077.html","width":130,"caption":"Hyperbole XXXII","height":130});
															thumbnails[701161] = clik.newPhoto({"id":701161,"src":"Cybernetics_V_10_06_thumb.jpg","galleries_id":123685,"server_id":1,"link":"photo_701161.html","width":130,"caption":"Cybernetics V ","height":93});
															thumbnails[701082] = clik.newPhoto({"id":701082,"src":"Intuitive_Spark_1_05_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_701082.html","width":130,"caption":"Intuitive Spark ","height":130});
															thumbnails[6908494] = clik.newPhoto({"id":6908494,"src":"LoRes_RightCropped_500_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6908494.html","width":130,"caption":"Courtly Love","height":86});
															thumbnails[6908493] = clik.newPhoto({"id":6908493,"src":"LoRes_LeftCropped_500_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6908493.html","width":130,"caption":"Without Prejudice","height":86});
															thumbnails[6908483] = clik.newPhoto({"id":6908483,"src":"LoRes_BlueEggs_500_thumb.jpg","galleries_id":123659,"server_id":1,"link":"photo_6908483.html","width":130,"caption":"Brain Plasticity","height":164});
															thumbnails[6902658] = clik.newPhoto({"id":6902658,"src":"Apocalypto_07-11-07_lo_res_B3C62D12-1D09-001F-99CCAB884FD6A534_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902658.html","width":130,"caption":"Untainted Peace","height":130});
															thumbnails[6902661] = clik.newPhoto({"id":6902661,"src":"Apocalypto_11-06-07_lo_res_B3CB5B3E-1D09-001F-990DA2E176AB42B8_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902661.html","width":130,"caption":"Our Lands were Salvaged","height":130});
															thumbnails[6902662] = clik.newPhoto({"id":6902662,"src":"Apocalypto_23-06-07_lo_res_B3CC5780-1D09-001F-99B9A73F79DC2764_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902662.html","width":130,"caption":"To Seek a New Beginning","height":165});
															thumbnails[6902663] = clik.newPhoto({"id":6902663,"src":"I_AM_NATURE_07_B3CD9437-1D09-001F-99F0568870D53A1F_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902663.html","width":130,"caption":"I am Nature","height":130});
															thumbnails[6902688] = clik.newPhoto({"id":6902688,"src":"Transitions_I_10_06_B3DF3120-1D09-001F-99D90BF3400A223A_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902688.html","width":130,"caption":"Transitions I","height":131});
															thumbnails[6902689] = clik.newPhoto({"id":6902689,"src":"Transitions_III_10_06_B3DFB554-1D09-001F-99B2C0D7BE997296_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902689.html","width":130,"caption":"Transitions III","height":129});
															thumbnails[6902687] = clik.newPhoto({"id":6902687,"src":"Meditations_Zen_V_10_06_B3DE6B40-1D09-001F-99E916EA99F54102_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902687.html","width":130,"caption":"Meditation - Zen V","height":128});
															thumbnails[6902686] = clik.newPhoto({"id":6902686,"src":"Meditation_Zen_VII_11_06_B3DDC8B6-1D09-001F-99347AB34480B20D_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902686.html","width":130,"caption":"Meditation - Zen VII","height":130});
															thumbnails[6902685] = clik.newPhoto({"id":6902685,"src":"Meditation_Zen_III_10_06_B3DD5E06-1D09-001F-996CC393AB213B5C_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902685.html","width":130,"caption":"Meditation - Zen III","height":131});
															thumbnails[6902681] = clik.newPhoto({"id":6902681,"src":"Cybernetics_III_1_06_B3DB08EA-1D09-001F-993EBF7B76349E36_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902681.html","width":130,"caption":"Cybernetics III","height":130});
															thumbnails[6902682] = clik.newPhoto({"id":6902682,"src":"Cybernetics_VII_10_06_B3DB9721-1D09-001F-99CA4EAC9ADD0312_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902682.html","width":130,"caption":"Cybernetics VII","height":131});
															thumbnails[6902683] = clik.newPhoto({"id":6902683,"src":"Cybernetics_V_10_06_B3DC4FE1-1D09-001F-991658960CFF43BD_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902683.html","width":130,"caption":"Cybernetics V","height":93});
															thumbnails[6902673] = clik.newPhoto({"id":6902673,"src":"Untitled_26-08-07_lo_res_B3D3A570-1D09-001F-990BF328D99725B2_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902673.html","width":130,"caption":"<q>On the Flank of an Emerald Wave<\/q>","height":129});
															thumbnails[6902671] = clik.newPhoto({"id":6902671,"src":"What_Lie_Must_I_Maintain_lo_res_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902671.html","width":130,"caption":"<q>What Lie Must I Maintain<\/q>","height":130});
															thumbnails[6902690] = clik.newPhoto({"id":6902690,"src":"On-the-Flank-of-an-Emerald-1_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902690.html","width":130,"caption":"On the Flank of an Emerald Wave II","height":175});
															thumbnails[6902669] = clik.newPhoto({"id":6902669,"src":"The_Flame_Mounts_Again_lo_res_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902669.html","width":130,"caption":"<q>The Flame Mounts Again<\/q>","height":104});
															thumbnails[6902670] = clik.newPhoto({"id":6902670,"src":"Tis_the_Sea_Made_One_with_the_Sun_lo_res_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902670.html","width":130,"caption":"<q>Tis the Sea Made One with the Sun<\/q>","height":130});
															thumbnails[6902676] = clik.newPhoto({"id":6902676,"src":"Untitled_17-08-07_lo_res_B3D4F4A4-1D09-001F-9902126014DAEC3F_thumb.jpg","galleries_id":374537,"server_id":1,"link":"photo_6902676.html","width":130,"caption":"<q>To Rise Up Again into Life<\/q>","height":103});
															thumbnails[701049] = clik.newPhoto({"id":701049,"src":"Future-Memories_II_2_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701049.html","width":130,"caption":"Future Memories II","height":130});
															thumbnails[701050] = clik.newPhoto({"id":701050,"src":"Future-Memories_IV_2_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701050.html","width":130,"caption":"Future Memories IV","height":130});
															thumbnails[701052] = clik.newPhoto({"id":701052,"src":"Hypnogogic_II_2_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701052.html","width":130,"caption":"Hypnogogic II 2006","height":130});
															thumbnails[1712279] = clik.newPhoto({"id":1712279,"src":"I_AM_NATURE_07_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1712279.html","width":130,"caption":"I Am Nature","height":130});
															thumbnails[701061] = clik.newPhoto({"id":701061,"src":"Transitions_I_10_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701061.html","width":130,"caption":"Transitions I ","height":131});
															thumbnails[701062] = clik.newPhoto({"id":701062,"src":"Transitions_III_10_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701062.html","width":130,"caption":"Transitions III","height":129});
															thumbnails[701057] = clik.newPhoto({"id":701057,"src":"Meditation_Zen_VII_11_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701057.html","width":130,"caption":"Meditations - Zen VII","height":130});
															thumbnails[701053] = clik.newPhoto({"id":701053,"src":"Meditations_Zen_V_10_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701053.html","width":130,"caption":"Meditations - Zen V 2006","height":128});
															thumbnails[701054] = clik.newPhoto({"id":701054,"src":"Meditation_Zen_III_10_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701054.html","width":130,"caption":"Meditations - Zen III","height":131});
															thumbnails[1712568] = clik.newPhoto({"id":1712568,"src":"Untitled_17-08-07_lo_res_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1712568.html","width":130,"caption":"To Rise Up Again into Life","height":103});
															thumbnails[1712572] = clik.newPhoto({"id":1712572,"src":"Untitled_30-07-07_lo_res_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1712572.html","width":130,"caption":"What Lie Must I Maintain","height":130});
															thumbnails[1712567] = clik.newPhoto({"id":1712567,"src":"Untitled_16-08-07_lo_res_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1712567.html","width":130,"caption":"The Flame Mounts Again","height":104});
															thumbnails[1712571] = clik.newPhoto({"id":1712571,"src":"Untitled_26-08-07_lo_res_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1712571.html","width":130,"caption":"On the Flank of an Emerald Wave","height":129});
															thumbnails[701220] = clik.newPhoto({"id":701220,"src":"Over_the_Edge_I_07_05_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701220.html","width":130,"caption":"Over the Edge I 2005","height":129});
															thumbnails[701060] = clik.newPhoto({"id":701060,"src":"Over_the_Edge_III_10_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701060.html","width":130,"caption":"Over the Edge III","height":132});
															thumbnails[1712569] = clik.newPhoto({"id":1712569,"src":"Untitled_26-05-07_lo_res_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1712569.html","width":130,"caption":"Tis the Sea Made One with the Sun","height":130});
															thumbnails[701028] = clik.newPhoto({"id":701028,"src":"Cybernetics_III_1_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701028.html","width":130,"caption":"Cypernetics III ","height":130});
															thumbnails[701043] = clik.newPhoto({"id":701043,"src":"Cybernetics_VII_10_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701043.html","width":130,"caption":"Cypbernetics VII","height":131});
															thumbnails[701228] = clik.newPhoto({"id":701228,"src":"Urban_Habitat_10_05_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701228.html","width":130,"caption":"Urban Habitat 2005","height":130});
															thumbnails[1219219] = clik.newPhoto({"id":1219219,"src":"20-05-07 grey_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1219219.html","width":130,"caption":"Untitled 20-05-07","height":128});
															thumbnails[1219214] = clik.newPhoto({"id":1219214,"src":"11-02-07 Green_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1219214.html","width":130,"caption":"Canals of Venice No 2","height":130});
															thumbnails[701230] = clik.newPhoto({"id":701230,"src":"Uriel_7_04_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701230.html","width":130,"caption":"Uriel","height":173});
															thumbnails[701218] = clik.newPhoto({"id":701218,"src":"Night_at_the_Opera_06_02_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701218.html","width":130,"caption":"Night at the Opera 2002","height":162});
															thumbnails[701064] = clik.newPhoto({"id":701064,"src":"Dancing_Donkey_3_05_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701064.html","width":130,"caption":"Dancing Donkey  ","height":157});
															thumbnails[1219220] = clik.newPhoto({"id":1219220,"src":"Splat1TP_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1219220.html","width":130,"caption":"Untitled 01-07","height":134});
															thumbnails[1219216] = clik.newPhoto({"id":1219216,"src":"18-03-07 Sam Jackson and John_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1219216.html","width":130,"caption":"Sam Jackson and John 03-07","height":130});
															thumbnails[1712292] = clik.newPhoto({"id":1712292,"src":"Untitled_10-12-07_lo_res_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1712292.html","width":130,"caption":"Chained by a Futureless Defeat","height":130});
															thumbnails[1219182] = clik.newPhoto({"id":1219182,"src":"05-07 Sperm_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1219182.html","width":130,"caption":"Vortex","height":130});
															thumbnails[701051] = clik.newPhoto({"id":701051,"src":"Hyperbole_V_10_06_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_701051.html","width":130,"caption":"Hyperbole V 2006","height":131});
															thumbnails[1219211] = clik.newPhoto({"id":1219211,"src":"10-03-07 Red Swirl_thumb.jpg","galleries_id":53856,"server_id":1,"link":"photo_1219211.html","width":130,"caption":"River in TIme","height":131});
															thumbnails[1219550] = clik.newPhoto({"id":1219550,"src":"Beecher Photo_thumb.jpg","galleries_id":87308,"server_id":1,"link":"photo_1219550.html","width":130,"caption":"","height":110});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[87308] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Artist's Statement","link":"section119701.html","maxRecords":0.0,"photoIDs":[1219550.0],"skipIndex":0,"section_code":"section119701","featured_images":1219550.0,"id":87308,"singleSection":true});				  						galleries[374537] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Limited Edition Prints","link":"section79149.html","maxRecords":0.0,"photoIDs":[6902658.0,6902661.0,6902662.0,6902663.0,6902688.0,6902689.0,6902687.0,6902686.0,6902685.0,6902681.0,6902682.0,6902683.0,6902673.0,6902671.0,6902690.0,6902669.0,6902670.0,6902676.0],"skipIndex":0,"section_code":"section79149","featured_images":"6902690,6902689,6902688,6902687,6902686,6902685,6902683,6902682,6902681,6902676","id":374537,"singleSection":true});				  						galleries[53856] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sold Work ","link":"section79150.html","maxRecords":0.0,"photoIDs":[701049.0,701050.0,701052.0,1712279.0,701061.0,701062.0,701057.0,701053.0,701054.0,1712568.0,1712572.0,1712567.0,1712571.0,701220.0,701060.0,1712569.0,701028.0,701043.0,701228.0,1219219.0,1219214.0,701230.0,701218.0,701064.0,1219220.0,1219216.0,1712292.0,1219182.0,701051.0,1219211.0],"skipIndex":0,"section_code":"section79150","featured_images":"1712292,1712279,701220,701061,701054,701052,701050,701049","id":53856,"singleSection":true});				  						galleries[115065] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Apocalypto","link":"section79118_115065.html","maxRecords":0.0,"photoIDs":[1712147.0,1712272.0,1712273.0],"skipIndex":0,"section_code":"section79118","featured_images":1712147.0,"id":115065,"singleSection":false});				  						galleries[124077] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Impressions of Venice","link":"section79118_124077.html","maxRecords":0.0,"photoIDs":[6895883.0,6895886.0,6895890.0,6896156.0,6895866.0,6895868.0,6895885.0,6895875.0,6895877.0,1219178.0,6895872.0,1712338.0,1219172.0,1843880.0],"skipIndex":0,"section_code":"section79118","featured_images":"6895886,6895883","id":124077,"singleSection":false});				  						galleries[123659] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Insights into the Human Condition","link":"section79118_123659.html","maxRecords":0.0,"photoIDs":[6908446.0,6908448.0,1712340.0,1712282.0,1712284.0,6908501.0,6902694.0,6908499.0,701076.0,701080.0,701079.0,701077.0,701082.0,6908494.0,6908493.0,6908483.0],"skipIndex":0,"section_code":"section79118","featured_images":1712284.0,"id":123659,"singleSection":false});				  						galleries[374799] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Journies in Time","link":"section79118_374799.html","maxRecords":0.0,"photoIDs":[6908473.0,6908450.0,6908485.0,6908491.0,6908475.0,6908478.0],"skipIndex":0,"section_code":"section79118","featured_images":"6908491,6908485,6908478,6908475,6908473,6908450","id":374799,"singleSection":false});				  						galleries[123685] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Man's Shame","link":"section79118_123685.html","maxRecords":0.0,"photoIDs":[700982.0,6908503.0,701048.0,701075.0,701236.0,6908496.0,701166.0,701222.0,1711886.0,1712337.0,919626.0,919634.0,701161.0],"skipIndex":0,"section_code":"section79118","featured_images":701236.0,"id":123685,"singleSection":false});				  						galleries[123654] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"What Soul Is Free of Treasons","link":"section79118_123654.html","maxRecords":0.0,"photoIDs":[6895899.0,6895901.0,6895893.0,6895905.0,701027.0],"skipIndex":0,"section_code":"section79118","featured_images":6895901.0,"id":123654,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6908446,6902658,6908448,6902662,6908473,6908450,6895899,6895883,6908475,6895886,1712147,6908503,6895901,6895890,1712282,1712284,6908501,6896156,701236,1712337';
imageSets[2] = '1219550,701049,701050,701052,6895883,1712279,6895886,1712147,701061,6895901,1712284,701236,701054,701220,919627,1712292';
imageSets[3] = '1219550,1712279,1712147,1712273,1711889,1843880,701220,919627,701230,701218,1219216,1712292';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/artbybeecher/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/artbybeecher/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 += 'section79118.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 && 'section79118' != '') {
					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 = 'Art by Beecher: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy this item Now:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="ARTBYBEECHER">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

