window.thumbnails = {};
															thumbnails[3017287] = clik.newPhoto({"id":3017287,"src":"La Cheylane_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[3017290] = clik.newPhoto({"id":3017290,"src":"La Cheylane 2_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[3405000] = clik.newPhoto({"id":3405000,"src":"Atelier Cezanne 63_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":156});
															thumbnails[4248931] = clik.newPhoto({"id":4248931,"src":"AC_West_wall_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":119});
															thumbnails[4248936] = clik.newPhoto({"id":4248936,"src":"AC_Stove_and_chair_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":156});
															thumbnails[4248947] = clik.newPhoto({"id":4248947,"src":"AC_Northeast_corner_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":93});
															thumbnails[1779758] = clik.newPhoto({"id":1779758,"src":"Arbus3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":99});
															thumbnails[6231002] = clik.newPhoto({"id":6231002,"src":"Daves_book_2_thumb.jpg","galleries_id":"","server_id":37,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4249320] = clik.newPhoto({"id":4249320,"src":"AC_Northwest_corner_thumb.JPG","galleries_id":119157,"server_id":1,"link":"photo_4249320.html","width":130,"caption":"","height":94});
															thumbnails[4249327] = clik.newPhoto({"id":4249327,"src":"AC_Southwest_corner_thumb.JPG","galleries_id":119157,"server_id":1,"link":"photo_4249327.html","width":130,"caption":"","height":97});
															thumbnails[5093378] = clik.newPhoto({"id":5093378,"src":"Cucuron_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5093378.html","width":130,"caption":"","height":89});
															thumbnails[5093383] = clik.newPhoto({"id":5093383,"src":"Cucuron_sepia_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5093383.html","width":130,"caption":"","height":103});
															thumbnails[5093400] = clik.newPhoto({"id":5093400,"src":"Lourmarin_Church_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5093400.html","width":130,"caption":"","height":187});
															thumbnails[5134691] = clik.newPhoto({"id":5134691,"src":"Bill_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_5134691.html","width":130,"caption":"","height":206});
															thumbnails[5134732] = clik.newPhoto({"id":5134732,"src":"Eric_Sapet_2_thumb.JPG","galleries_id":119159,"server_id":1,"link":"photo_5134732.html","width":130,"caption":"","height":190});
															thumbnails[5134734] = clik.newPhoto({"id":5134734,"src":"Philippe_Sublet_thumb.JPG","galleries_id":119159,"server_id":1,"link":"photo_5134734.html","width":130,"caption":"","height":137});
															thumbnails[5134737] = clik.newPhoto({"id":5134737,"src":"Reine_Sammut_thumb.JPG","galleries_id":119159,"server_id":1,"link":"photo_5134737.html","width":130,"caption":"","height":182});
															thumbnails[5146078] = clik.newPhoto({"id":5146078,"src":"Tarascon_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_5146078.html","width":130,"caption":"","height":229});
															thumbnails[5146111] = clik.newPhoto({"id":5146111,"src":"Palais_des_Papes_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5146111.html","width":130,"caption":"","height":97});
															thumbnails[5146139] = clik.newPhoto({"id":5146139,"src":"Lacoste_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5146139.html","width":130,"caption":"","height":99});
															thumbnails[5146161] = clik.newPhoto({"id":5146161,"src":"Abbaye_St_Honorat_3_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5146161.html","width":130,"caption":"","height":104});
															thumbnails[5147592] = clik.newPhoto({"id":5147592,"src":"Ron_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_5147592.html","width":130,"caption":"","height":99});
															thumbnails[5164085] = clik.newPhoto({"id":5164085,"src":"Chateau_de_Lourmarin_Gallery_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_5164085.html","width":130,"caption":"","height":108});
															thumbnails[5164117] = clik.newPhoto({"id":5164117,"src":"Cassis_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_5164117.html","width":130,"caption":"","height":58});
															thumbnails[5164184] = clik.newPhoto({"id":5164184,"src":"Chateau_du_Martinet_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5164184.html","width":130,"caption":"","height":159});
															thumbnails[5164187] = clik.newPhoto({"id":5164187,"src":"Tour_dAigues_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_5164187.html","width":130,"caption":"","height":110});
															thumbnails[5164193] = clik.newPhoto({"id":5164193,"src":"Charleval_1_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_5164193.html","width":130,"caption":"","height":151});
															thumbnails[5164196] = clik.newPhoto({"id":5164196,"src":"LAbbaye_de_Frigolet_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_5164196.html","width":130,"caption":"","height":192});
															thumbnails[5166196] = clik.newPhoto({"id":5166196,"src":"Barben_Kitchen_3132BFAC-2219-B5B5-4C325EEF7E590CCB_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_5166196.html","width":130,"caption":"","height":94});
															thumbnails[5166232] = clik.newPhoto({"id":5166232,"src":"Chateau_dAnsouis_kitchen_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_5166232.html","width":130,"caption":"","height":97});
															thumbnails[5166249] = clik.newPhoto({"id":5166249,"src":"Chateau_dAnsouis_entrance_hall_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_5166249.html","width":130,"caption":"","height":105});
															thumbnails[5166259] = clik.newPhoto({"id":5166259,"src":"Chateau_dAnsouis_staircase_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_5166259.html","width":130,"caption":"","height":190});
															thumbnails[5166367] = clik.newPhoto({"id":5166367,"src":"AC_Monochrome_315B7655-2219-B5B5-4CA88D227C250811_thumb.JPG","galleries_id":119157,"server_id":1,"link":"photo_5166367.html","width":130,"caption":"","height":178});
															thumbnails[5166389] = clik.newPhoto({"id":5166389,"src":"Lourmarin_1_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_5166389.html","width":130,"caption":"","height":98});
															thumbnails[6087977] = clik.newPhoto({"id":6087977,"src":"Villa_St_Louis_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_6087977.html","width":130,"caption":"","height":97});
															thumbnails[6087992] = clik.newPhoto({"id":6087992,"src":"Camping_a_la_Ferme_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6087992.html","width":130,"caption":"","height":171});
															thumbnails[6087997] = clik.newPhoto({"id":6087997,"src":"Mas_de_Tourteron_3_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_6087997.html","width":130,"caption":"","height":206});
															thumbnails[6087998] = clik.newPhoto({"id":6087998,"src":"Lourmarin_Church_06DC8EF0-1D09-001F-99E5D8BEA90BA31E_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6087998.html","width":130,"caption":"","height":187});
															thumbnails[6088001] = clik.newPhoto({"id":6088001,"src":"Cucuron_sepia_06DD8A09-1D09-001F-99D069B7F3EB7134_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088001.html","width":130,"caption":"","height":103});
															thumbnails[6088003] = clik.newPhoto({"id":6088003,"src":"Cucuron_06DED2E5-1D09-001F-9910B408E0841E68_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088003.html","width":130,"caption":"","height":89});
															thumbnails[6088004] = clik.newPhoto({"id":6088004,"src":"Cucuron_4_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088004.html","width":130,"caption":"","height":259});
															thumbnails[6088007] = clik.newPhoto({"id":6088007,"src":"Lourmarin3_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088007.html","width":130,"caption":"","height":174});
															thumbnails[6088010] = clik.newPhoto({"id":6088010,"src":"Mont_St_Victoire_from_the_Bastide_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088010.html","width":130,"caption":"","height":113});
															thumbnails[6088011] = clik.newPhoto({"id":6088011,"src":"Ventabren_thumb.JPG","galleries_id":341415,"server_id":1,"link":"photo_6088011.html","width":130,"caption":"","height":256});
															thumbnails[6088013] = clik.newPhoto({"id":6088013,"src":"Clocher_06E70D66-1D09-001F-99525BEDDBBADF0D_thumb.JPG","galleries_id":341415,"server_id":1,"link":"photo_6088013.html","width":130,"caption":"","height":207});
															thumbnails[6088027] = clik.newPhoto({"id":6088027,"src":"Lourmarin_4_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088027.html","width":130,"caption":"","height":57});
															thumbnails[6088164] = clik.newPhoto({"id":6088164,"src":"Lourrmarin_3_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088164.html","width":130,"caption":"","height":92});
															thumbnails[6088193] = clik.newPhoto({"id":6088193,"src":"Lourmarin_2_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088193.html","width":130,"caption":"","height":98});
															thumbnails[6088235] = clik.newPhoto({"id":6088235,"src":"jars_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088235.html","width":130,"caption":"","height":260});
															thumbnails[6088236] = clik.newPhoto({"id":6088236,"src":"Mas_de_Tourteron_2_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088236.html","width":130,"caption":"","height":172});
															thumbnails[6088237] = clik.newPhoto({"id":6088237,"src":"Mas_de_Tourteron_dresser_thumb.jpg","galleries_id":341415,"server_id":1,"link":"photo_6088237.html","width":130,"caption":"","height":202});
															thumbnails[8044562] = clik.newPhoto({"id":8044562,"src":"Gordes_thumb.JPG","galleries_id":185836,"server_id":19,"link":"photo_8044562.html","width":130,"caption":"","height":87});
															thumbnails[8044677] = clik.newPhoto({"id":8044677,"src":"Saignon_2_thumb.JPG","galleries_id":185836,"server_id":19,"link":"photo_8044677.html","width":130,"caption":"","height":95});
															thumbnails[3875687] = clik.newPhoto({"id":3875687,"src":"Barben_Kitchen_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_3875687.html","width":130,"caption":"","height":94});
															thumbnails[1771294] = clik.newPhoto({"id":1771294,"src":"The Mission 3_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1771294.html","width":130,"caption":"","height":174});
															thumbnails[1779668] = clik.newPhoto({"id":1779668,"src":"Antique Shop_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1779668.html","width":130,"caption":"","height":93});
															thumbnails[1785474] = clik.newPhoto({"id":1785474,"src":"Bell harry From The dark entry 2_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785474.html","width":130,"caption":"","height":209});
															thumbnails[1785520] = clik.newPhoto({"id":1785520,"src":"Near The Accademia, Venice_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785520.html","width":130,"caption":"","height":216});
															thumbnails[1793234] = clik.newPhoto({"id":1793234,"src":"Ken_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793234.html","width":130,"caption":"","height":204});
															thumbnails[3017186] = clik.newPhoto({"id":3017186,"src":"Aix Cathedral 2_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3017186.html","width":130,"caption":"","height":218});
															thumbnails[5144168] = clik.newPhoto({"id":5144168,"src":"St_Pauls_2_thumb.JPG","galleries_id":113345,"server_id":1,"link":"photo_5144168.html","width":130,"caption":"","height":113});
															thumbnails[1779723] = clik.newPhoto({"id":1779723,"src":"Osborn-Jackson House   Kitchen  East Hampton 20 x 28_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1779723.html","width":130,"caption":"","height":95});
															thumbnails[1785027] = clik.newPhoto({"id":1785027,"src":"Martyrdom 2_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785027.html","width":130,"caption":"","height":176});
															thumbnails[1785533] = clik.newPhoto({"id":1785533,"src":"San Vidal, Venice_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785533.html","width":130,"caption":"","height":196});
															thumbnails[1787937] = clik.newPhoto({"id":1787937,"src":"House in the trees_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1787937.html","width":130,"caption":"","height":182});
															thumbnails[1793237] = clik.newPhoto({"id":1793237,"src":"Louise Reading_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793237.html","width":130,"caption":"","height":194});
															thumbnails[3017185] = clik.newPhoto({"id":3017185,"src":"Aix Cathedral 1_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3017185.html","width":130,"caption":"","height":179});
															thumbnails[1779728] = clik.newPhoto({"id":1779728,"src":"Table with clam shells_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1779728.html","width":130,"caption":"","height":84});
															thumbnails[1785504] = clik.newPhoto({"id":1785504,"src":"Pulpit 2_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785504.html","width":130,"caption":"","height":200});
															thumbnails[1785560] = clik.newPhoto({"id":1785560,"src":"Mission1_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785560.html","width":130,"caption":"","height":130});
															thumbnails[1787906] = clik.newPhoto({"id":1787906,"src":"Street In Toletta, Venice_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1787906.html","width":130,"caption":"","height":203});
															thumbnails[1793245] = clik.newPhoto({"id":1793245,"src":"Portraits 001_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793245.html","width":130,"caption":"","height":217});
															thumbnails[3020468] = clik.newPhoto({"id":3020468,"src":"St_thumb. Jean de Malte 1.JPG","galleries_id":185836,"server_id":1,"link":"photo_3020468.html","width":130,"caption":"","height":180});
															thumbnails[1779733] = clik.newPhoto({"id":1779733,"src":"Osborn Jackson dining room 2_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1779733.html","width":130,"caption":"","height":95});
															thumbnails[1785510] = clik.newPhoto({"id":1785510,"src":"Trinity Chapel 2_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785510.html","width":130,"caption":"","height":200});
															thumbnails[1785530] = clik.newPhoto({"id":1785530,"src":"Palazzo_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785530.html","width":130,"caption":"","height":99});
															thumbnails[3890887] = clik.newPhoto({"id":3890887,"src":"St_Jean_de_Malte_21_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3890887.html","width":130,"caption":"","height":213});
															thumbnails[1779645] = clik.newPhoto({"id":1779645,"src":"Home in the woods_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1779645.html","width":130,"caption":"","height":119});
															thumbnails[1785517] = clik.newPhoto({"id":1785517,"src":"Evening Canal, Venice_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785517.html","width":130,"caption":"","height":88});
															thumbnails[1788061] = clik.newPhoto({"id":1788061,"src":"Chaise Longue_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788061.html","width":130,"caption":"","height":93});
															thumbnails[1793232] = clik.newPhoto({"id":1793232,"src":"Jonathan_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793232.html","width":130,"caption":"","height":162});
															thumbnails[1785518] = clik.newPhoto({"id":1785518,"src":"From The Accademia, Venice_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785518.html","width":130,"caption":"","height":93});
															thumbnails[1785558] = clik.newPhoto({"id":1785558,"src":"La Bicyclette1_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1785558.html","width":130,"caption":"","height":95});
															thumbnails[1785563] = clik.newPhoto({"id":1785563,"src":"Mission 5_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785563.html","width":130,"caption":"","height":132});
															thumbnails[1793252] = clik.newPhoto({"id":1793252,"src":"The Head Boy_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793252.html","width":130,"caption":"","height":174});
															thumbnails[3890880] = clik.newPhoto({"id":3890880,"src":"Clocher_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3890880.html","width":130,"caption":"","height":207});
															thumbnails[1785469] = clik.newPhoto({"id":1785469,"src":"Beckett Door_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785469.html","width":130,"caption":"","height":120});
															thumbnails[1785519] = clik.newPhoto({"id":1785519,"src":"La Vieille Bourse - Lille_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785519.html","width":130,"caption":"","height":95});
															thumbnails[1785552] = clik.newPhoto({"id":1785552,"src":"Cypress Inn_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785552.html","width":130,"caption":"","height":115});
															thumbnails[1788056] = clik.newPhoto({"id":1788056,"src":"Home Sweet Home_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788056.html","width":130,"caption":"","height":90});
															thumbnails[1793244] = clik.newPhoto({"id":1793244,"src":"Olivia In Ink_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793244.html","width":130,"caption":"","height":185});
															thumbnails[3020475] = clik.newPhoto({"id":3020475,"src":"Rue Cardinale 2_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3020475.html","width":130,"caption":"","height":194});
															thumbnails[1779776] = clik.newPhoto({"id":1779776,"src":"Central Park In December 20 x 28_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1779776.html","width":130,"caption":"","height":95});
															thumbnails[1785493] = clik.newPhoto({"id":1785493,"src":"The Choir_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785493.html","width":130,"caption":"","height":103});
															thumbnails[1785521] = clik.newPhoto({"id":1785521,"src":"Palais Longchamp Marseille_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785521.html","width":130,"caption":"","height":98});
															thumbnails[1787977] = clik.newPhoto({"id":1787977,"src":"Osborn Jackson Music Room mono1_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1787977.html","width":130,"caption":"","height":91});
															thumbnails[1793228] = clik.newPhoto({"id":1793228,"src":"Delia_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793228.html","width":130,"caption":"","height":175});
															thumbnails[3020472] = clik.newPhoto({"id":3020472,"src":"Rue Cardinale, Aix_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3020472.html","width":130,"caption":"","height":202});
															thumbnails[1785498] = clik.newPhoto({"id":1785498,"src":"The Crypt_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785498.html","width":130,"caption":"","height":103});
															thumbnails[1785516] = clik.newPhoto({"id":1785516,"src":"Charles Bridge Prague_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785516.html","width":130,"caption":"","height":92});
															thumbnails[1785543] = clik.newPhoto({"id":1785543,"src":"Arbus11_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785543.html","width":130,"caption":"","height":94});
															thumbnails[1788076] = clik.newPhoto({"id":1788076,"src":"Study Osborn Jackson House 20 x 28_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788076.html","width":130,"caption":"","height":91});
															thumbnails[1793250] = clik.newPhoto({"id":1793250,"src":"Rodin Bust_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793250.html","width":130,"caption":"","height":180});
															thumbnails[3890002] = clik.newPhoto({"id":3890002,"src":"Rue_Adanson_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3890002.html","width":130,"caption":"","height":228});
															thumbnails[1785535] = clik.newPhoto({"id":1785535,"src":"St_thumb. Maclou - Rouen.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785535.html","width":130,"caption":"","height":168});
															thumbnails[1785547] = clik.newPhoto({"id":1785547,"src":"Carmel Oak 3_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785547.html","width":130,"caption":"","height":95});
															thumbnails[1788064] = clik.newPhoto({"id":1788064,"src":"East Hampton Playroom_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788064.html","width":130,"caption":"","height":96});
															thumbnails[1793224] = clik.newPhoto({"id":1793224,"src":"After Rodin 2_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793224.html","width":130,"caption":"","height":183});
															thumbnails[3020465] = clik.newPhoto({"id":3020465,"src":"Tribunal de Commerce_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3020465.html","width":130,"caption":"","height":170});
															thumbnails[1785532] = clik.newPhoto({"id":1785532,"src":"Sacre Coeur_thumb.jpg","galleries_id":113346,"server_id":1,"link":"photo_1785532.html","width":130,"caption":"","height":178});
															thumbnails[1785548] = clik.newPhoto({"id":1785548,"src":"Carmel Trees 1_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785548.html","width":130,"caption":"","height":96});
															thumbnails[1788078] = clik.newPhoto({"id":1788078,"src":"Dining Room Of Osborn- Jackson House 20 x 28_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788078.html","width":130,"caption":"","height":93});
															thumbnails[1793246] = clik.newPhoto({"id":1793246,"src":"Portraits 002_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793246.html","width":130,"caption":"","height":95});
															thumbnails[3017298] = clik.newPhoto({"id":3017298,"src":"Place Albertas, Aix_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3017298.html","width":130,"caption":"","height":95});
															thumbnails[1785513] = clik.newPhoto({"id":1785513,"src":"St_thumb. Paul's interior.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785513.html","width":130,"caption":"","height":97});
															thumbnails[1787980] = clik.newPhoto({"id":1787980,"src":"Osborn Jackson Music Room sepia_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1787980.html","width":130,"caption":"","height":99});
															thumbnails[1793247] = clik.newPhoto({"id":1793247,"src":"Raymond Ovens_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793247.html","width":130,"caption":"","height":95});
															thumbnails[3135939] = clik.newPhoto({"id":3135939,"src":"Place des  Ormeaux1_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3135939.html","width":130,"caption":"","height":95});
															thumbnails[1785514] = clik.newPhoto({"id":1785514,"src":"Westminster Abbey_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785514.html","width":130,"caption":"","height":96});
															thumbnails[1785555] = clik.newPhoto({"id":1785555,"src":"Jan de Luz_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1785555.html","width":130,"caption":"","height":158});
															thumbnails[1785564] = clik.newPhoto({"id":1785564,"src":"Mission 61_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785564.html","width":130,"caption":"","height":89});
															thumbnails[1793253] = clik.newPhoto({"id":1793253,"src":"Tom_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793253.html","width":130,"caption":"","height":115});
															thumbnails[3017301] = clik.newPhoto({"id":3017301,"src":"Place de la Mairie 2_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3017301.html","width":130,"caption":"","height":87});
															thumbnails[1785031] = clik.newPhoto({"id":1785031,"src":"Joel_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1785031.html","width":130,"caption":"","height":110});
															thumbnails[1785515] = clik.newPhoto({"id":1785515,"src":"Westminster Cathedral_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785515.html","width":130,"caption":"","height":96});
															thumbnails[1785565] = clik.newPhoto({"id":1785565,"src":"Mission Interior 1_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1785565.html","width":130,"caption":"","height":163});
															thumbnails[1785571] = clik.newPhoto({"id":1785571,"src":"Wharf_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1785571.html","width":130,"caption":"","height":66});
															thumbnails[3020481] = clik.newPhoto({"id":3020481,"src":"Place de l'Archeveche_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3020481.html","width":130,"caption":"","height":104});
															thumbnails[1785484] = clik.newPhoto({"id":1785484,"src":"Canterbury Cathedral In Snow_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785484.html","width":130,"caption":"","height":96});
															thumbnails[1787987] = clik.newPhoto({"id":1787987,"src":"Spinning Wheel_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1787987.html","width":130,"caption":"","height":184});
															thumbnails[1793238] = clik.newPhoto({"id":1793238,"src":"Marie de Boer_thumb.jpg","galleries_id":119159,"server_id":1,"link":"photo_1793238.html","width":130,"caption":"","height":94});
															thumbnails[1811278] = clik.newPhoto({"id":1811278,"src":"Carmel Valley Still Life 2_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1811278.html","width":130,"caption":"","height":88});
															thumbnails[1785479] = clik.newPhoto({"id":1785479,"src":"Canterbury Cathedral from SE - color_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785479.html","width":130,"caption":"","height":96});
															thumbnails[1787974] = clik.newPhoto({"id":1787974,"src":"Pantigo Windmill 2_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1787974.html","width":130,"caption":"","height":139});
															thumbnails[1810584] = clik.newPhoto({"id":1810584,"src":"1770 House_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1810584.html","width":130,"caption":"","height":91});
															thumbnails[1811150] = clik.newPhoto({"id":1811150,"src":"Mission  7_thumb.jpg","galleries_id":109956,"server_id":1,"link":"photo_1811150.html","width":130,"caption":"","height":119});
															thumbnails[3008715] = clik.newPhoto({"id":3008715,"src":"Matthew_thumb.JPG","galleries_id":119159,"server_id":1,"link":"photo_3008715.html","width":130,"caption":"","height":203});
															thumbnails[3017296] = clik.newPhoto({"id":3017296,"src":"Mont St Victoire_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3017296.html","width":130,"caption":"","height":95});
															thumbnails[3888798] = clik.newPhoto({"id":3888798,"src":"Cloister_1_lower_resolution__thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_3888798.html","width":130,"caption":"","height":95});
															thumbnails[1785512] = clik.newPhoto({"id":1785512,"src":"Waterfall Cottage In Sepia_thumb.jpg","galleries_id":113345,"server_id":1,"link":"photo_1785512.html","width":130,"caption":"","height":91});
															thumbnails[1785569] = clik.newPhoto({"id":1785569,"src":"Siesta_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1785569.html","width":130,"caption":"","height":131});
															thumbnails[3017294] = clik.newPhoto({"id":3017294,"src":"Le Grillon_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3017294.html","width":130,"caption":"","height":142});
															thumbnails[1788058] = clik.newPhoto({"id":1788058,"src":"Pots 001_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788058.html","width":130,"caption":"","height":148});
															thumbnails[3017295] = clik.newPhoto({"id":3017295,"src":"Les Deux  Garcons_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3017295.html","width":130,"caption":"","height":98});
															thumbnails[1787984] = clik.newPhoto({"id":1787984,"src":"St Lukes Church color 001_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1787984.html","width":130,"caption":"","height":94});
															thumbnails[3024847] = clik.newPhoto({"id":3024847,"src":"La Cheylane1_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3024847.html","width":130,"caption":"","height":91});
															thumbnails[1788083] = clik.newPhoto({"id":1788083,"src":"Entrance Hall Of Osborn Jackson House 28 x 20_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788083.html","width":130,"caption":"","height":179});
															thumbnails[3024849] = clik.newPhoto({"id":3024849,"src":"La Cheylane 21_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3024849.html","width":130,"caption":"","height":89});
															thumbnails[1788072] = clik.newPhoto({"id":1788072,"src":"575 5th Avenue 3_thumb.jpg","galleries_id":119157,"server_id":1,"link":"photo_1788072.html","width":130,"caption":"","height":184});
															thumbnails[3875740] = clik.newPhoto({"id":3875740,"src":"Barben_from_the_crossroads_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3875740.html","width":130,"caption":"","height":207});
															thumbnails[3875661] = clik.newPhoto({"id":3875661,"src":"Barben_from_the_garden_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3875661.html","width":130,"caption":"","height":192});
															thumbnails[3633980] = clik.newPhoto({"id":3633980,"src":"Barben_3_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3633980.html","width":130,"caption":"","height":207});
															thumbnails[3875446] = clik.newPhoto({"id":3875446,"src":"Barben_from_the_car_park_stormy_weather_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3875446.html","width":130,"caption":"","height":137});
															thumbnails[3633866] = clik.newPhoto({"id":3633866,"src":"Vauvenargues_2a_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3633866.html","width":130,"caption":"","height":111});
															thumbnails[3890846] = clik.newPhoto({"id":3890846,"src":"Chateau_de_Vauvenargues_from_car_park_without_border_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_3890846.html","width":130,"caption":"","height":101});
															thumbnails[3875765] = clik.newPhoto({"id":3875765,"src":"AC_Facade_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3875765.html","width":130,"caption":"","height":97});
															thumbnails[3399876] = clik.newPhoto({"id":3399876,"src":"Atelier Cezanne 1_thumb.jpg","galleries_id":185836,"server_id":1,"link":"photo_3399876.html","width":130,"caption":"","height":93});
															thumbnails[3399941] = clik.newPhoto({"id":3399941,"src":"Atelier Cezanne 32_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3399941.html","width":130,"caption":"","height":117});
															thumbnails[3890789] = clik.newPhoto({"id":3890789,"src":"AC_Monochrome_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3890789.html","width":130,"caption":"","height":178});
															thumbnails[3399899] = clik.newPhoto({"id":3399899,"src":"Atelier Cezanne 91_thumb.JPG","galleries_id":185836,"server_id":1,"link":"photo_3399899.html","width":130,"caption":"","height":140});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[113345] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ENGLAND","link":"gallery_113345.html","maxRecords":0.0,"photoIDs":[1785474.0,5144168.0,1785027.0,1785504.0,1785510.0,1785469.0,1785493.0,1785498.0,1785513.0,1785514.0,1785515.0,1785484.0,1785479.0,1785512.0],"skipIndex":0,"section_code":"gallery","featured_images":1785027.0,"id":113345,"singleSection":false});				  						galleries[113346] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"EUROPE","link":"gallery_113346.html","maxRecords":0.0,"photoIDs":[1785520.0,1785533.0,1787906.0,1785530.0,1785517.0,1785518.0,1785519.0,1785521.0,1785516.0,1785535.0,1785532.0],"skipIndex":0,"section_code":"gallery","featured_images":1785535.0,"id":113346,"singleSection":false});				  						galleries[109956] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"AMERICA","link":"gallery_109956.html","maxRecords":0.0,"photoIDs":[1771294.0,1787937.0,1785560.0,1779645.0,1785563.0,1785552.0,1779776.0,1785543.0,1785547.0,1785548.0,1785564.0,1785571.0,1811278.0,1810584.0,1811150.0],"skipIndex":0,"section_code":"gallery","featured_images":"1779645,1771294","id":109956,"singleSection":false});				  						galleries[119157] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"INTERIORS","link":"gallery_119157.html","maxRecords":0.0,"photoIDs":[4249320.0,4249327.0,5166196.0,5166232.0,5166249.0,5166259.0,5166367.0,5166389.0,6087977.0,6087997.0,1779668.0,1779723.0,1779728.0,1779733.0,1788061.0,1785558.0,1788056.0,1787977.0,1788076.0,1788064.0,1788078.0,1787980.0,1785555.0,1785565.0,1787987.0,1787974.0,1785569.0,1788058.0,1787984.0,1788083.0,1788072.0],"skipIndex":0,"section_code":"gallery","featured_images":1779668.0,"id":119157,"singleSection":false});				  						galleries[119159] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PORTRAITS","link":"gallery_119159.html","maxRecords":0.0,"photoIDs":[5134691.0,5134732.0,5134734.0,5134737.0,5147592.0,1793234.0,1793237.0,1793245.0,1793232.0,1793252.0,1793244.0,1793228.0,1793250.0,1793224.0,1793246.0,1793247.0,1793253.0,1785031.0,1793238.0,3008715.0],"skipIndex":0,"section_code":"gallery","featured_images":1785031.0,"id":119159,"singleSection":false});				  						galleries[185836] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FRANCE","link":"gallery_185836.html","maxRecords":0.0,"photoIDs":[5093378.0,5093383.0,5093400.0,5146078.0,5146111.0,5146139.0,5146161.0,5164085.0,5164117.0,5164184.0,5164187.0,5164193.0,5164196.0,8044562.0,8044677.0,3875687.0,3017186.0,3017185.0,3020468.0,3890887.0,3890880.0,3020475.0,3020472.0,3890002.0,3020465.0,3017298.0,3135939.0,3017301.0,3020481.0,3017296.0,3888798.0,3017294.0,3017295.0,3024847.0,3024849.0,3875740.0,3875661.0,3633980.0,3875446.0,3633866.0,3890846.0,3875765.0,3399876.0,3399941.0,3890789.0,3399899.0],"skipIndex":0,"section_code":"gallery","featured_images":"3633980,3399941,3017298","id":185836,"singleSection":false});				  						galleries[341415] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PROVENCE","link":"gallery_341415.html","maxRecords":0.0,"photoIDs":[6087992.0,6087998.0,6088001.0,6088003.0,6088004.0,6088007.0,6088010.0,6088011.0,6088013.0,6088027.0,6088164.0,6088193.0,6088235.0,6088236.0,6088237.0],"skipIndex":0,"section_code":"gallery","featured_images":"6088237,6088236,6088235,6088193,6088164,6088027,6088013,6088011,6088010,6088007","id":341415,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5144168,3875687,1788061,1788058,1785564,1785543,1785031,1785027,1779728,1779668,1779645,1771294';
imageSets[2] = '3633980,3399941,3017298,1785535,1785031,1785027,1779668,1779645,1771294';
imageSets[3] = '6088237,6088236,6088193,6088164,6088027,6088013,6088011,6088010,6088007,6088004,6088003,6088001,6087997,6087992,6087977';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/davidarbus/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/davidarbus/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 = 'David Arbus Fine Art: ' + 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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

