window.thumbnails = {};
															thumbnails[7293815] = clik.newPhoto({"id":7293815,"src":"The_Enemy_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7293815.html","width":130,"caption":"The Enemy","height":120});
															thumbnails[8391072] = clik.newPhoto({"id":8391072,"src":"The_Forest_Warnemunde_I_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391072.html","width":130,"caption":"The Forest (Warnemunde I)","height":225});
															thumbnails[8870898] = clik.newPhoto({"id":8870898,"src":"Tiergarten_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8870898.html","width":130,"caption":"Tiergarten (Berlin) I","height":174});
															thumbnails[6356890] = clik.newPhoto({"id":6356890,"src":"The_Broken_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6356890.html","width":130,"caption":"The Broken","height":156});
															thumbnails[8391121] = clik.newPhoto({"id":8391121,"src":"The_Forest_Warnemunde_II_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391121.html","width":130,"caption":"The Forest (Warnemunde II)","height":236});
															thumbnails[8870906] = clik.newPhoto({"id":8870906,"src":"Tiergarten_II1_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8870906.html","width":130,"caption":"Tiergarten (Berlin) II","height":177});
															thumbnails[6191093] = clik.newPhoto({"id":6191093,"src":"The_Swimmer1_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6191093.html","width":130,"caption":"The Swimmer","height":167});
															thumbnails[8391126] = clik.newPhoto({"id":8391126,"src":"The_Forest_Warnemunde_III_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391126.html","width":130,"caption":"The Forest (Warnemunde III)","height":233});
															thumbnails[8870925] = clik.newPhoto({"id":8870925,"src":"Stile_Olimpiou_Dios_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8870925.html","width":130,"caption":"Stile Olimpiou Dios (Athens) I","height":178});
															thumbnails[6191097] = clik.newPhoto({"id":6191097,"src":"The_Dancer1_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6191097.html","width":130,"caption":"The Dancer","height":166});
															thumbnails[8391131] = clik.newPhoto({"id":8391131,"src":"The_Forest_Warnemunde_IV_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391131.html","width":130,"caption":"The Forest (Warnemunde IV)","height":217});
															thumbnails[8870935] = clik.newPhoto({"id":8870935,"src":"Stile_Olimpiou_Dios_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8870935.html","width":130,"caption":"Stile Olimpiou Dios (Athens) II","height":183});
															thumbnails[6191090] = clik.newPhoto({"id":6191090,"src":"The_German1_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6191090.html","width":130,"caption":"The German","height":145});
															thumbnails[8391135] = clik.newPhoto({"id":8391135,"src":"The_Forest_Warnemunde_V_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391135.html","width":130,"caption":"The Forest (Warnemunde V)","height":225});
															thumbnails[8870960] = clik.newPhoto({"id":8870960,"src":"Queens_Green_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8870960.html","width":130,"caption":"Queen's Green (Cambridge) I","height":174});
															thumbnails[6357551] = clik.newPhoto({"id":6357551,"src":"The_Soldier12_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6357551.html","width":130,"caption":"The Soldier","height":167});
															thumbnails[8391139] = clik.newPhoto({"id":8391139,"src":"The_Forest_Warnemunde_VI_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391139.html","width":130,"caption":"The Forest (Warnemunde VI)","height":232});
															thumbnails[8870974] = clik.newPhoto({"id":8870974,"src":"Queens_Green_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8870974.html","width":130,"caption":"Queen's Green (Cambridge) II","height":177});
															thumbnails[6653426] = clik.newPhoto({"id":6653426,"src":"The_Navigator_16-55-30_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6653426.html","width":130,"caption":"The Navigator","height":160});
															thumbnails[8391144] = clik.newPhoto({"id":8391144,"src":"The_Forest_Warnemunde_VII_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391144.html","width":130,"caption":"The Forest (Warnemunde VII)","height":228});
															thumbnails[8871111] = clik.newPhoto({"id":8871111,"src":"Parc_de_la_Mar_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871111.html","width":130,"caption":"Parc de la Mar (Palma) I","height":162});
															thumbnails[6357570] = clik.newPhoto({"id":6357570,"src":"The_Athlete1_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6357570.html","width":130,"caption":"The Athlete","height":221});
															thumbnails[8391147] = clik.newPhoto({"id":8391147,"src":"The_Forest_Warnemunde_VIII_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391147.html","width":130,"caption":"The Forest (Warnemunde VIII)","height":225});
															thumbnails[8871115] = clik.newPhoto({"id":8871115,"src":"Parc_de_la_Mar_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871115.html","width":130,"caption":"Parc de la Mar (Palma) II","height":93});
															thumbnails[6356588] = clik.newPhoto({"id":6356588,"src":"The_Poet_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6356588.html","width":130,"caption":"The Poet","height":156});
															thumbnails[8391149] = clik.newPhoto({"id":8391149,"src":"The_Forest_Warnemunde_IX_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391149.html","width":130,"caption":"The Forest (Warnemunde IX)","height":221});
															thumbnails[8871128] = clik.newPhoto({"id":8871128,"src":"Parc_de_la_Mar_III_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871128.html","width":130,"caption":"Parc de la Mar (Palma) III","height":157});
															thumbnails[8391151] = clik.newPhoto({"id":8391151,"src":"The_Forest_Warnemunde_X_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391151.html","width":130,"caption":"The Forest (Warnemunde X)","height":229});
															thumbnails[8871152] = clik.newPhoto({"id":8871152,"src":"Hagaparken__I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871152.html","width":130,"caption":"Hagaparken (Stockholm) I","height":173});
															thumbnails[6653453] = clik.newPhoto({"id":6653453,"src":"The_Liar_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_6653453.html","width":130,"caption":"The Liar","height":155});
															thumbnails[7165261] = clik.newPhoto({"id":7165261,"src":"The_Bully__thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165261.html","width":130,"caption":"The Bully","height":174});
															thumbnails[8391202] = clik.newPhoto({"id":8391202,"src":"The_Forest_Warnemunde_XI_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391202.html","width":130,"caption":"The Forest (Warnemunde XI)","height":228});
															thumbnails[8871154] = clik.newPhoto({"id":8871154,"src":"Hagaparken_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871154.html","width":130,"caption":"Hagaparken (Stockholm) II","height":186});
															thumbnails[7165534] = clik.newPhoto({"id":7165534,"src":"The_Shadow__thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165534.html","width":130,"caption":"The Shadow","height":176});
															thumbnails[8391802] = clik.newPhoto({"id":8391802,"src":"The_Monoliths_Betty_Jean_I_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391802.html","width":130,"caption":"The Monoliths (Betty Jean I)","height":196});
															thumbnails[8871187] = clik.newPhoto({"id":8871187,"src":"Parque_del_Retiro_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871187.html","width":130,"caption":"Parque del Retiro (Madrid) I","height":174});
															thumbnails[7165545] = clik.newPhoto({"id":7165545,"src":"The_Sage_16-56-12_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165545.html","width":130,"caption":"The Sage","height":155});
															thumbnails[8391804] = clik.newPhoto({"id":8391804,"src":"The_Monoliths_Betty_Jean_II_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391804.html","width":130,"caption":"The Monoliths (Betty Jean II)","height":199});
															thumbnails[8871241] = clik.newPhoto({"id":8871241,"src":"Parque_del_Retiro_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871241.html","width":130,"caption":"Parque del Retiro (Madrid) II","height":189});
															thumbnails[9029029] = clik.newPhoto({"id":9029029,"src":"The_Prophet_thumb.JPG","galleries_id":352074,"server_id":1,"link":"photo_9029029.html","width":130,"caption":"The Prophet","height":155});
															thumbnails[7165896] = clik.newPhoto({"id":7165896,"src":"The_Celebrant_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165896.html","width":130,"caption":"The Celebrant","height":195});
															thumbnails[8391806] = clik.newPhoto({"id":8391806,"src":"The_Monoliths_Betty_Jean_III_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391806.html","width":130,"caption":"The Monoliths (Betty Jean III)","height":204});
															thumbnails[8871243] = clik.newPhoto({"id":8871243,"src":"Kensington_Gardens_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871243.html","width":130,"caption":"Kensington Gardens (London) I","height":170});
															thumbnails[7165897] = clik.newPhoto({"id":7165897,"src":"The_Seaman_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165897.html","width":130,"caption":"The Seaman","height":199});
															thumbnails[8391808] = clik.newPhoto({"id":8391808,"src":"The_Monoliths_Betty_Jean_IV_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391808.html","width":130,"caption":"The Monoliths (Betty Jean IV)","height":191});
															thumbnails[8871244] = clik.newPhoto({"id":8871244,"src":"Kensington_Gardens_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871244.html","width":130,"caption":"Kensington Gardens (London) II","height":180});
															thumbnails[7165898] = clik.newPhoto({"id":7165898,"src":"The_Groom_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165898.html","width":130,"caption":"The Groom","height":185});
															thumbnails[8391810] = clik.newPhoto({"id":8391810,"src":"The_Monoliths_Betty_Jean_V_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391810.html","width":130,"caption":"The Monoliths (Betty Jean V)","height":210});
															thumbnails[8871280] = clik.newPhoto({"id":8871280,"src":"Hampstead_Heath_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871280.html","width":130,"caption":"Hampstead Heath (London) I","height":182});
															thumbnails[7165899] = clik.newPhoto({"id":7165899,"src":"The_Cartographer_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165899.html","width":130,"caption":"The Cartographer","height":199});
															thumbnails[8391815] = clik.newPhoto({"id":8391815,"src":"The_Monoliths_Betty_Jean_VI_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391815.html","width":130,"caption":"The Monoliths (Betty Jean VI)","height":181});
															thumbnails[8871286] = clik.newPhoto({"id":8871286,"src":"Hampstead_Heath_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871286.html","width":130,"caption":"Hampstead Heath (London) II","height":186});
															thumbnails[7165922] = clik.newPhoto({"id":7165922,"src":"The_Wonder_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165922.html","width":130,"caption":"The Wonder","height":196});
															thumbnails[8391841] = clik.newPhoto({"id":8391841,"src":"The_Monoliths_Betty_Jean_VII_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391841.html","width":130,"caption":"The Monoliths (Betty Jean VII)","height":180});
															thumbnails[8871298] = clik.newPhoto({"id":8871298,"src":"Parque_de_Extabarrio_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871298.html","width":130,"caption":"Parque Etxebarria (Bilbao) I","height":178});
															thumbnails[7165927] = clik.newPhoto({"id":7165927,"src":"The_Other_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165927.html","width":130,"caption":"The Other","height":197});
															thumbnails[8391857] = clik.newPhoto({"id":8391857,"src":"The_Sea_Mattapoisett_I_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391857.html","width":130,"caption":"The Sea (Mattapoisett I)","height":174});
															thumbnails[8871403] = clik.newPhoto({"id":8871403,"src":"Parque_de_Extabarrio_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871403.html","width":130,"caption":"Parque Etxebarria (Bilbao) II","height":181});
															thumbnails[7165958] = clik.newPhoto({"id":7165958,"src":"The_Mystery1_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165958.html","width":130,"caption":"The Mystery","height":197});
															thumbnails[8391860] = clik.newPhoto({"id":8391860,"src":"The_Sea_Mattapoisett_II_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391860.html","width":130,"caption":"The Sea (Mattapoisett II) ","height":175});
															thumbnails[8871411] = clik.newPhoto({"id":8871411,"src":"Jardin_des_Plantes_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871411.html","width":130,"caption":"Jardin des Plantes (Paris) I","height":177});
															thumbnails[7165959] = clik.newPhoto({"id":7165959,"src":"The_Traveler_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7165959.html","width":130,"caption":"The Traveler","height":198});
															thumbnails[8391863] = clik.newPhoto({"id":8391863,"src":"The_Sea_Mattapoisett_III_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391863.html","width":130,"caption":"The Sea (Mattapoisett III) ","height":177});
															thumbnails[8871415] = clik.newPhoto({"id":8871415,"src":"Jardin_des_Plantes_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871415.html","width":130,"caption":"Jardin des Plantes (Paris) II","height":183});
															thumbnails[8391868] = clik.newPhoto({"id":8391868,"src":"The_Sea_Mattapoisett_IV_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391868.html","width":130,"caption":"The Sea (Mattapoisett IV)","height":173});
															thumbnails[8871421] = clik.newPhoto({"id":8871421,"src":"Villa_Borghese_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871421.html","width":130,"caption":"Villa Borghese (Roma) I","height":178});
															thumbnails[7166007] = clik.newPhoto({"id":7166007,"src":"The_Dreamer_thumb.jpg","galleries_id":352074,"server_id":1,"link":"photo_7166007.html","width":130,"caption":"The Dreamer","height":198});
															thumbnails[8391870] = clik.newPhoto({"id":8391870,"src":"The_Sea_Mattapoisett_V_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391870.html","width":130,"caption":"The Sea (Mattapoisett V)","height":176});
															thumbnails[8871425] = clik.newPhoto({"id":8871425,"src":"Villa_Borghese_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871425.html","width":130,"caption":"Villa Borghese (Roma) II","height":182});
															thumbnails[8391872] = clik.newPhoto({"id":8391872,"src":"The_Sea_Mattapoisett_VI_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391872.html","width":130,"caption":"The Sea (Mattapoisett VI)","height":173});
															thumbnails[8871430] = clik.newPhoto({"id":8871430,"src":"Esplande_des_Invalides_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871430.html","width":130,"caption":"Esplande des Invalides (Paris) I","height":154});
															thumbnails[8391875] = clik.newPhoto({"id":8391875,"src":"The_Sea_Mattapoisett_VII_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391875.html","width":130,"caption":"The Sea (Mattapoisett VII)","height":183});
															thumbnails[8871436] = clik.newPhoto({"id":8871436,"src":"Esplande_des_Invalides_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871436.html","width":130,"caption":"Esplande des Invalides (Paris) II","height":182});
															thumbnails[8391886] = clik.newPhoto({"id":8391886,"src":"The_Sea_Mattapoisett_VIII_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391886.html","width":130,"caption":"The Sea (Mattapoisett VIII)","height":185});
															thumbnails[8871440] = clik.newPhoto({"id":8871440,"src":"Giardini_Publici_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871440.html","width":130,"caption":"Giardini Publici (Venice) I","height":176});
															thumbnails[8391910] = clik.newPhoto({"id":8391910,"src":"The_Sea_Mattapoisett_IX_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391910.html","width":130,"caption":"The Sea (Mattapoisett IX)","height":178});
															thumbnails[8871444] = clik.newPhoto({"id":8871444,"src":"Giardini_Publici_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871444.html","width":130,"caption":"Giardini Publici (Venice) II","height":182});
															thumbnails[8391915] = clik.newPhoto({"id":8391915,"src":"The_Sea_Mattapoisett_X_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8391915.html","width":130,"caption":"The Sea (Mattapoisett X)","height":177});
															thumbnails[8871449] = clik.newPhoto({"id":8871449,"src":"Regents_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871449.html","width":130,"caption":"Regents Park (London) I","height":177});
															thumbnails[8392020] = clik.newPhoto({"id":8392020,"src":"This_Nymphal_Skin_thumb.JPG","galleries_id":444909,"server_id":1,"link":"photo_8392020.html","width":130,"caption":"","height":177});
															thumbnails[8871456] = clik.newPhoto({"id":8871456,"src":"Regents_Park_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871456.html","width":130,"caption":"Regents Park (London) II","height":175});
															thumbnails[8871462] = clik.newPhoto({"id":8871462,"src":"Volkspark_Friedrichshain_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871462.html","width":130,"caption":"Volkspark Friedrichshain (Berlin) I","height":177});
															thumbnails[8871467] = clik.newPhoto({"id":8871467,"src":"Volkspark_Freidrichshain_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871467.html","width":130,"caption":"Volkspark Friedrichshain (Berlin) II","height":183});
															thumbnails[8871471] = clik.newPhoto({"id":8871471,"src":"Tuileries_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871471.html","width":130,"caption":"Tuileries (Paris) I","height":184});
															thumbnails[8871475] = clik.newPhoto({"id":8871475,"src":"Tuileries_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871475.html","width":130,"caption":"Tuileries (Paris) II","height":174});
															thumbnails[8871484] = clik.newPhoto({"id":8871484,"src":"Jardines_de_Afalbia_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871484.html","width":130,"caption":"Jardines de Afalbia (Mallorca) I","height":176});
															thumbnails[8871490] = clik.newPhoto({"id":8871490,"src":"Jardines_de_Afalbia_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871490.html","width":130,"caption":"Jardines de Afalbia (Mallorca) II","height":191});
															thumbnails[8871494] = clik.newPhoto({"id":8871494,"src":"Englischer_Garten_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871494.html","width":130,"caption":"Englischer Garten (Munich) I","height":179});
															thumbnails[8871498] = clik.newPhoto({"id":8871498,"src":"Englischer_Garten_I12_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871498.html","width":130,"caption":"Englischer Garten (Munich) II","height":178});
															thumbnails[8871504] = clik.newPhoto({"id":8871504,"src":"Hyde_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871504.html","width":130,"caption":"Hyde Park (London) I","height":187});
															thumbnails[8871509] = clik.newPhoto({"id":8871509,"src":"Hyde_Park_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871509.html","width":130,"caption":"Hyde Park (London) II","height":185});
															thumbnails[8871513] = clik.newPhoto({"id":8871513,"src":"Hyde_Park_III_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871513.html","width":130,"caption":"Hyde Park (London) III","height":175});
															thumbnails[8871517] = clik.newPhoto({"id":8871517,"src":"Planten_un_Blomen_I_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871517.html","width":130,"caption":"Planten un Blomen (Hamburg) I","height":185});
															thumbnails[8871520] = clik.newPhoto({"id":8871520,"src":"Planten_un_Blomen_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871520.html","width":130,"caption":"Planten un Blomen (Hamburg) II","height":183});
															thumbnails[8871523] = clik.newPhoto({"id":8871523,"src":"Hofgarten_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871523.html","width":130,"caption":"Hofgarten (Munich) I","height":177});
															thumbnails[8871526] = clik.newPhoto({"id":8871526,"src":"Hofgarten_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871526.html","width":130,"caption":"Hofgarten (Munich) II","height":176});
															thumbnails[8871528] = clik.newPhoto({"id":8871528,"src":"Jardines_del_Alcazar_de_Sevilla_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871528.html","width":130,"caption":"Jardines del Alcazar de Sevilla I","height":163});
															thumbnails[8871531] = clik.newPhoto({"id":8871531,"src":"Jardines_del_Alcazar_de_Sevilla_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871531.html","width":130,"caption":"Jardines del Alcazar de Sevilla II","height":176});
															thumbnails[8871532] = clik.newPhoto({"id":8871532,"src":"Kew_Gardens_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871532.html","width":130,"caption":"Kew Gardens I","height":179});
															thumbnails[8871536] = clik.newPhoto({"id":8871536,"src":"Kew_Gardens_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871536.html","width":130,"caption":"Kew Gardens II","height":182});
															thumbnails[8871539] = clik.newPhoto({"id":8871539,"src":"Kew_Gardens_III_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871539.html","width":130,"caption":"Kew Gardens III","height":183});
															thumbnails[8871542] = clik.newPhoto({"id":8871542,"src":"Parc_Guell_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871542.html","width":130,"caption":"Parc Guell (Barcelona) I","height":176});
															thumbnails[8871543] = clik.newPhoto({"id":8871543,"src":"Parc_Guell_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871543.html","width":130,"caption":"Parc Guell (Barcelona) II","height":186});
															thumbnails[8871555] = clik.newPhoto({"id":8871555,"src":"Battersea_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871555.html","width":130,"caption":"Battersea Park (London) I","height":160});
															thumbnails[8871563] = clik.newPhoto({"id":8871563,"src":"Battersea_Park_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871563.html","width":130,"caption":"Battersea Park (London) II","height":184});
															thumbnails[8871564] = clik.newPhoto({"id":8871564,"src":"Elk_Rock_Gardens_of_the_Bishops_Close_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871564.html","width":130,"caption":"Elk Rock Gardens of the Bishop's Close (Portland) I","height":179});
															thumbnails[8871566] = clik.newPhoto({"id":8871566,"src":"Elk_Rock_Gardens_of_the_Bishops_Close_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871566.html","width":130,"caption":"Elk Rock Gardens of the Bishop's Close (Portland) II","height":181});
															thumbnails[8871569] = clik.newPhoto({"id":8871569,"src":"Parc_de_Joan_Miro_I_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871569.html","width":130,"caption":"Parc de Joan Miro (Barcelona) I","height":174});
															thumbnails[8871571] = clik.newPhoto({"id":8871571,"src":"Parc_de_Joan_Miro_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871571.html","width":130,"caption":"Parc de Joan Miro (Barcelona) II","height":183});
															thumbnails[8871574] = clik.newPhoto({"id":8871574,"src":"Central_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871574.html","width":130,"caption":"Central Park (NYC) I","height":163});
															thumbnails[8871575] = clik.newPhoto({"id":8871575,"src":"Central_Park_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871575.html","width":130,"caption":"Central Park (NYC) II","height":174});
															thumbnails[8871578] = clik.newPhoto({"id":8871578,"src":"Green_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871578.html","width":130,"caption":"Green Park (London) I","height":178});
															thumbnails[8871581] = clik.newPhoto({"id":8871581,"src":"Green_Park_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871581.html","width":130,"caption":"Green Park (London) II","height":177});
															thumbnails[8871599] = clik.newPhoto({"id":8871599,"src":"Princes_Street_Gardens_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871599.html","width":130,"caption":"Princes Street Gardens (Edinburgh) I","height":176});
															thumbnails[8871603] = clik.newPhoto({"id":8871603,"src":"Princes_Street_Gardens_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871603.html","width":130,"caption":"Princes Street Gardens (Edinburgh) II","height":184});
															thumbnails[8871614] = clik.newPhoto({"id":8871614,"src":"Theresienwiese_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871614.html","width":130,"caption":"Theresienwiese (Munich) I","height":170});
															thumbnails[8871621] = clik.newPhoto({"id":8871621,"src":"Theresienwiese_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871621.html","width":130,"caption":"Theresienwiese (Munich) II","height":177});
															thumbnails[8871628] = clik.newPhoto({"id":8871628,"src":"Holland_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871628.html","width":130,"caption":"Holland Park (London) I","height":174});
															thumbnails[8871635] = clik.newPhoto({"id":8871635,"src":"Holland_Park_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871635.html","width":130,"caption":"Holland Park (London) II","height":179});
															thumbnails[8871640] = clik.newPhoto({"id":8871640,"src":"Holland_Park_III_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871640.html","width":130,"caption":"Holland Park (London) III","height":174});
															thumbnails[8871644] = clik.newPhoto({"id":8871644,"src":"Cherokee_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871644.html","width":130,"caption":"Cherokee Park (Louisville) I","height":174});
															thumbnails[8871647] = clik.newPhoto({"id":8871647,"src":"Cherokee_Park_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871647.html","width":130,"caption":"Cherokee Park (Louisville) II","height":182});
															thumbnails[8871654] = clik.newPhoto({"id":8871654,"src":"Juniper_Hill_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871654.html","width":130,"caption":"Baerenpark (Bern) I","height":173});
															thumbnails[8871727] = clik.newPhoto({"id":8871727,"src":"Juniper_Hill_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871727.html","width":130,"caption":"Baerenpark (Bern) II","height":181});
															thumbnails[8871734] = clik.newPhoto({"id":8871734,"src":"Lofos_Akropolis_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871734.html","width":130,"caption":"Lofos Akropolis (Athens) I","height":174});
															thumbnails[8871732] = clik.newPhoto({"id":8871732,"src":"Lofos_Akropolis_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871732.html","width":130,"caption":"Lofos Akropolis (Athens) II","height":184});
															thumbnails[8871739] = clik.newPhoto({"id":8871739,"src":"White_Point_Gardens_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871739.html","width":130,"caption":"White Point Gardens (Charleston) I","height":176});
															thumbnails[8871743] = clik.newPhoto({"id":8871743,"src":"White_Point_Gardens_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871743.html","width":130,"caption":"White Point Gardens (Charleston) II","height":174});
															thumbnails[8871751] = clik.newPhoto({"id":8871751,"src":"Parc-Ed-J-Klein_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871751.html","width":130,"caption":"Parc-Ed-J-Klein (Luxembourg) I","height":174});
															thumbnails[8871755] = clik.newPhoto({"id":8871755,"src":"Parc-Ed-J-Klein_II_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871755.html","width":130,"caption":"Parc-Ed-J-Klein (Luxembourg) II","height":178});
															thumbnails[8871764] = clik.newPhoto({"id":8871764,"src":"Jardin_du_Luxembourg_I1_thumb.JPG","galleries_id":466524,"server_id":1,"link":"photo_8871764.html","width":130,"caption":"Jardin du Luxembourg (Paris) I","height":178});
															thumbnails[8871759] = clik.newPhoto({"id":8871759,"src":"Jardin_du_Luxembourg_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871759.html","width":130,"caption":"Jardin du Luxembourg (Paris) II","height":174});
															thumbnails[8871773] = clik.newPhoto({"id":8871773,"src":"Lincoln_Park_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871773.html","width":130,"caption":"Lincoln Park (Chicago) I","height":174});
															thumbnails[8871777] = clik.newPhoto({"id":8871777,"src":"Lincoln_Park_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871777.html","width":130,"caption":"Lincoln Park (Chicago) II","height":177});
															thumbnails[8871778] = clik.newPhoto({"id":8871778,"src":"Noorderplantsoen_I_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871778.html","width":130,"caption":"Noorderplantsoen (Groningen) I","height":175});
															thumbnails[8871781] = clik.newPhoto({"id":8871781,"src":"Noorderplantsoen_II_thumb.jpg","galleries_id":466524,"server_id":1,"link":"photo_8871781.html","width":130,"caption":"Noorderplantsoen (Groningen) II","height":180});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[352074] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bei Nacht ","link":"gallery_352074.html","maxRecords":0.0,"photoIDs":[7293815.0,6356890.0,6191093.0,6191097.0,6191090.0,6357551.0,6653426.0,6357570.0,6356588.0,6653453.0,7165261.0,7165534.0,7165545.0,9029029.0,7165896.0,7165897.0,7165898.0,7165899.0,7165922.0,7165927.0,7165958.0,7165959.0,7166007.0],"skipIndex":0,"section_code":"gallery","featured_images":7165898.0,"id":352074,"singleSection":false});				  						galleries[444909] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"This Nymphal Skin","link":"gallery_444909.html","maxRecords":0.0,"photoIDs":[8391072.0,8391121.0,8391126.0,8391131.0,8391135.0,8391139.0,8391144.0,8391147.0,8391149.0,8391151.0,8391202.0,8391802.0,8391804.0,8391806.0,8391808.0,8391810.0,8391815.0,8391841.0,8391857.0,8391860.0,8391863.0,8391868.0,8391870.0,8391872.0,8391875.0,8391886.0,8391910.0,8391915.0,8392020.0],"skipIndex":0,"section_code":"gallery","featured_images":8391139.0,"id":444909,"singleSection":false});				  						galleries[466524] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Impartial Witness","link":"gallery_466524.html","maxRecords":0.0,"photoIDs":[8870898.0,8870906.0,8870925.0,8870935.0,8870960.0,8870974.0,8871111.0,8871115.0,8871128.0,8871152.0,8871154.0,8871187.0,8871241.0,8871243.0,8871244.0,8871280.0,8871286.0,8871298.0,8871403.0,8871411.0,8871415.0,8871421.0,8871425.0,8871430.0,8871436.0,8871440.0,8871444.0,8871449.0,8871456.0,8871462.0,8871467.0,8871471.0,8871475.0,8871484.0,8871490.0,8871494.0,8871498.0,8871504.0,8871509.0,8871513.0,8871517.0,8871520.0,8871523.0,8871526.0,8871528.0,8871531.0,8871532.0,8871536.0,8871539.0,8871542.0,8871543.0,8871555.0,8871563.0,8871564.0,8871566.0,8871569.0,8871571.0,8871574.0,8871575.0,8871578.0,8871581.0,8871599.0,8871603.0,8871614.0,8871621.0,8871628.0,8871635.0,8871640.0,8871644.0,8871647.0,8871654.0,8871727.0,8871734.0,8871732.0,8871739.0,8871743.0,8871751.0,8871755.0,8871764.0,8871759.0,8871773.0,8871777.0,8871778.0,8871781.0],"skipIndex":0,"section_code":"gallery","featured_images":8871403.0,"id":466524,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9029029,7165545';
imageSets[2] = '8391139,7165898,8871403';
imageSets[3] = '9029029,8871781,8871778,8871777,8871773,8871764,8871759,8871755,8871751,8871743,8871739,8871734,8871732,8871727,8871654,8871647,8871644,8871640,8871635,8871628,8871621,8871614,8871603,8871599,8871581,8871578,8871575,8871574,8871571,8871569,8871566,8871564,8871563,8871555,8871543,8871542,8871539,8871536,8871532,8871531,8871528,8871526,8871523,8871520,8871517,8871513,8871509,8871504,8871498,8871494';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/johnebrooks/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/johnebrooks/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'John Edward Brooks: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

