window.thumbnails = {};
															thumbnails[1450458] = clik.newPhoto({"id":1450458,"src":"1993SEPE12_WHITE_DRIFTWOOD_(C)_BY_MASSIMO_CONTI_500x600_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":108});
															thumbnails[2386187] = clik.newPhoto({"id":2386187,"src":"mC Portrait 160x120_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2610439] = clik.newPhoto({"id":2610439,"src":"LIMITED EDITION TORSO_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":112});
															thumbnails[2610647] = clik.newPhoto({"id":2610647,"src":"White_Driftwood_v1_(c)_by_Massimo_Conti1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[2613129] = clik.newPhoto({"id":2613129,"src":"WHITE_DRIFTWOOD_POSTER_BY_MASSIMO_CONTI_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":157});
															thumbnails[3482911] = clik.newPhoto({"id":3482911,"src":"eye_triptych_(c)_by_Massimo_Conti_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":79});
															thumbnails[3482957] = clik.newPhoto({"id":3482957,"src":"cocoon1_triptych_(c)_by_Massimo_Conti_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":79});
															thumbnails[3482970] = clik.newPhoto({"id":3482970,"src":"cocoon_II_triptych_(c)_by_Massimo_Conti_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":79});
															thumbnails[2586642] = clik.newPhoto({"id":2586642,"src":"1993_SEP_B19_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_2586642.html","width":130,"caption":"","height":173});
															thumbnails[2586951] = clik.newPhoto({"id":2586951,"src":"Cleo_(c)_by_Massimo_Conti_93AUGB30_500x600_thumb.jpg","galleries_id":428165,"server_id":1,"link":"photo_2586951.html","width":130,"caption":"","height":156});
															thumbnails[2622769] = clik.newPhoto({"id":2622769,"src":"3125_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_2622769.html","width":130,"caption":"","height":156});
															thumbnails[3091898] = clik.newPhoto({"id":3091898,"src":"Sculpture_River2_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_3091898.html","width":130,"caption":"","height":156});
															thumbnails[6672739] = clik.newPhoto({"id":6672739,"src":"N4_PAG24_C_Massimo_Conti_600x600_thumb.jpg","galleries_id":164291,"server_id":1,"link":"photo_6672739.html","width":130,"caption":"","height":130});
															thumbnails[8331414] = clik.newPhoto({"id":8331414,"src":"1185_c_Massimo_Conti_500x600_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8331414.html","width":130,"caption":"","height":156});
															thumbnails[2586651] = clik.newPhoto({"id":2586651,"src":"1993_SEP_B14_c_Massimo_Conti_600x800_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_2586651.html","width":130,"caption":"","height":173});
															thumbnails[2586966] = clik.newPhoto({"id":2586966,"src":"Cleo_(c)_by_Massimo_Conti_93AUGB35_500x600_thumb.jpg","galleries_id":428165,"server_id":1,"link":"photo_2586966.html","width":130,"caption":"","height":156});
															thumbnails[2614978] = clik.newPhoto({"id":2614978,"src":"3069_(C)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_2614978.html","width":130,"caption":"","height":156});
															thumbnails[3092097] = clik.newPhoto({"id":3092097,"src":"Sculpture_River1_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_3092097.html","width":130,"caption":"","height":156});
															thumbnails[6673306] = clik.newPhoto({"id":6673306,"src":"N07_P65_c_by_Massimo_Conti_600x600_thumb.jpg","galleries_id":164291,"server_id":1,"link":"photo_6673306.html","width":130,"caption":"","height":130});
															thumbnails[8331431] = clik.newPhoto({"id":8331431,"src":"4377_c_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8331431.html","width":130,"caption":"","height":156});
															thumbnails[2586673] = clik.newPhoto({"id":2586673,"src":"1993_SEP_B20_c_Massimo_Conti_600x800_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_2586673.html","width":130,"caption":"","height":173});
															thumbnails[2587047] = clik.newPhoto({"id":2587047,"src":"Cleo_(c)_by_Massimo_Conti_93AUGB28_500x6001_thumb.jpg","galleries_id":428165,"server_id":1,"link":"photo_2587047.html","width":130,"caption":"","height":156});
															thumbnails[2622355] = clik.newPhoto({"id":2622355,"src":"0240_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_2622355.html","width":130,"caption":"","height":156});
															thumbnails[3092157] = clik.newPhoto({"id":3092157,"src":"Sculpture_River3_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_3092157.html","width":130,"caption":"","height":156});
															thumbnails[6673409] = clik.newPhoto({"id":6673409,"src":"N11_P50_c_by_Massimo_Conti_600x600_thumb.jpg","galleries_id":164291,"server_id":1,"link":"photo_6673409.html","width":130,"caption":"","height":130});
															thumbnails[8331418] = clik.newPhoto({"id":8331418,"src":"3510_C_by_Massimo_Conti_600x500_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8331418.html","width":130,"caption":"","height":156});
															thumbnails[1450519] = clik.newPhoto({"id":1450519,"src":"1077_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_1450519.html","width":130,"caption":"","height":98});
															thumbnails[3090768] = clik.newPhoto({"id":3090768,"src":"Sculpture_Forest2_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_3090768.html","width":130,"caption":"","height":156});
															thumbnails[6433196] = clik.newPhoto({"id":6433196,"src":"Meiji_Temple_4p1_c_Massimo_Conti_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_6433196.html","width":130,"caption":"","height":130});
															thumbnails[6676146] = clik.newPhoto({"id":6676146,"src":"N07_P57_c_by_Massimo_Conti_600x600_thumb.jpg","galleries_id":164291,"server_id":1,"link":"photo_6676146.html","width":130,"caption":"","height":130});
															thumbnails[8330314] = clik.newPhoto({"id":8330314,"src":"1989_C_Massimo_Conti_800x600_OS_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8330314.html","width":130,"caption":"","height":98});
															thumbnails[8332533] = clik.newPhoto({"id":8332533,"src":"0968_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428165,"server_id":1,"link":"photo_8332533.html","width":130,"caption":"","height":173});
															thumbnails[1440831] = clik.newPhoto({"id":1440831,"src":"1145_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_1440831.html","width":130,"caption":"","height":98});
															thumbnails[3090692] = clik.newPhoto({"id":3090692,"src":"Sculpture_Forest1_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_3090692.html","width":130,"caption":"","height":156});
															thumbnails[6436746] = clik.newPhoto({"id":6436746,"src":"Meiji_Temple_2p1_c_Massimo_Conti_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_6436746.html","width":130,"caption":"","height":130});
															thumbnails[7988272] = clik.newPhoto({"id":7988272,"src":"N01_PAG5_c_by_Massimo_Conti_600x600_thumb.jpg","galleries_id":164291,"server_id":1,"link":"photo_7988272.html","width":130,"caption":"","height":130});
															thumbnails[8330319] = clik.newPhoto({"id":8330319,"src":"2240_c_Massimo_Conti_600x800_H1_VOGUE_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8330319.html","width":130,"caption":"","height":98});
															thumbnails[8332538] = clik.newPhoto({"id":8332538,"src":"0987_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428165,"server_id":1,"link":"photo_8332538.html","width":130,"caption":"","height":173});
															thumbnails[3090757] = clik.newPhoto({"id":3090757,"src":"Sculpture_Forest3_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_3090757.html","width":130,"caption":"","height":156});
															thumbnails[6436822] = clik.newPhoto({"id":6436822,"src":"Miyajima_c_by_Massimo_Conti_600x600-_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_6436822.html","width":130,"caption":"","height":130});
															thumbnails[8014811] = clik.newPhoto({"id":8014811,"src":"N08_P50_c_by_Massimo_Conti_600x600_thumb.jpg","galleries_id":164291,"server_id":1,"link":"photo_8014811.html","width":130,"caption":"","height":130});
															thumbnails[8330488] = clik.newPhoto({"id":8330488,"src":"2223_c_Massimo_Conti_600x800_H_VOGUE_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8330488.html","width":130,"caption":"","height":98});
															thumbnails[8332614] = clik.newPhoto({"id":8332614,"src":"0973_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428165,"server_id":1,"link":"photo_8332614.html","width":130,"caption":"","height":173});
															thumbnails[8332753] = clik.newPhoto({"id":8332753,"src":"1298_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_8332753.html","width":130,"caption":"","height":98});
															thumbnails[3092502] = clik.newPhoto({"id":3092502,"src":"Sea_Sculpture2_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_3092502.html","width":130,"caption":"","height":156});
															thumbnails[4796397] = clik.newPhoto({"id":4796397,"src":"Painting_of_Light_I_c_by_Massimo_Conti_500X600_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_4796397.html","width":130,"caption":"","height":156});
															thumbnails[7988152] = clik.newPhoto({"id":7988152,"src":"19900039_C_Massimo_Conti_500x600_Selenium_thumb.jpg","galleries_id":164291,"server_id":1,"link":"photo_7988152.html","width":130,"caption":"","height":156});
															thumbnails[8330640] = clik.newPhoto({"id":8330640,"src":"2260_c_Massimo_Conti_600x800_VOGUE_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8330640.html","width":130,"caption":"","height":173});
															thumbnails[1450408] = clik.newPhoto({"id":1450408,"src":"Rock_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1450408.html","width":130,"caption":"","height":156});
															thumbnails[4796454] = clik.newPhoto({"id":4796454,"src":"Painting_of_Light_II_c_by_Massimo_Conti_500X600_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_4796454.html","width":130,"caption":"","height":156});
															thumbnails[8330663] = clik.newPhoto({"id":8330663,"src":"2325_c_Massimo_Conti_600x800_3_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8330663.html","width":130,"caption":"","height":173});
															thumbnails[1429753] = clik.newPhoto({"id":1429753,"src":"white_driftwood_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1429753.html","width":130,"caption":"","height":156});
															thumbnails[4796457] = clik.newPhoto({"id":4796457,"src":"Painting_of_Light_III_c_by_Massimo_Conti_500X600_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_4796457.html","width":130,"caption":"","height":156});
															thumbnails[8330324] = clik.newPhoto({"id":8330324,"src":"2203_c_Massimo_Conti_600x800_VOGUE_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8330324.html","width":130,"caption":"","height":173});
															thumbnails[1450415] = clik.newPhoto({"id":1450415,"src":"1993SEPD19_WHITE_DRIFTWOOD_(C)_BY_MASSIMO_CONTI_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1450415.html","width":130,"caption":"","height":108});
															thumbnails[1780075] = clik.newPhoto({"id":1780075,"src":"Fern_(c)_by_Massimo_Conti_9212A0_500x600_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_1780075.html","width":130,"caption":"","height":156});
															thumbnails[8331623] = clik.newPhoto({"id":8331623,"src":"5000_C_by_Massimo_Conti_800x600_VOGUE_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8331623.html","width":130,"caption":"","height":173});
															thumbnails[1450501] = clik.newPhoto({"id":1450501,"src":"1993C25_WHITE_DRIFTWOOD_H1_(C)_BY_MASSIMO_CONTI_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1450501.html","width":130,"caption":"","height":108});
															thumbnails[1782930] = clik.newPhoto({"id":1782930,"src":"Fern_(c)_by_Massimo_Conti_92DECB17_500x600_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_1782930.html","width":130,"caption":"","height":156});
															thumbnails[8331627] = clik.newPhoto({"id":8331627,"src":"5020_C_by_Massimo_Conti_800x600_VOGUE_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8331627.html","width":130,"caption":"","height":173});
															thumbnails[1450483] = clik.newPhoto({"id":1450483,"src":"1993C25_WHITE_DRIFTWOOD_(C)_BY_MASSIMO_CONTI_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1450483.html","width":130,"caption":"","height":108});
															thumbnails[7950909] = clik.newPhoto({"id":7950909,"src":"Banana_leaf_c_by_Massimo_Conti_92DECC7_500x600_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_7950909.html","width":130,"caption":"","height":156});
															thumbnails[8331630] = clik.newPhoto({"id":8331630,"src":"5185_c_by_Massimo_Conti_800x600_VOGUE_thumb.jpg","galleries_id":428166,"server_id":1,"link":"photo_8331630.html","width":130,"caption":"","height":173});
															thumbnails[1447537] = clik.newPhoto({"id":1447537,"src":"1993AUGC35_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1447537.html","width":130,"caption":"","height":156});
															thumbnails[6758828] = clik.newPhoto({"id":6758828,"src":"N12_PAG07_94_C_Massimo_Conti_600x600_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_6758828.html","width":130,"caption":"","height":130});
															thumbnails[8332625] = clik.newPhoto({"id":8332625,"src":"1084_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_8332625.html","width":130,"caption":"","height":173});
															thumbnails[1439638] = clik.newPhoto({"id":1439638,"src":"1993AUGC28_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1439638.html","width":130,"caption":"","height":108});
															thumbnails[6758843] = clik.newPhoto({"id":6758843,"src":"N06_P34_c_Massimo_Conti_600x600_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_6758843.html","width":130,"caption":"","height":130});
															thumbnails[8332627] = clik.newPhoto({"id":8332627,"src":"1099_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_8332627.html","width":130,"caption":"","height":173});
															thumbnails[1439836] = clik.newPhoto({"id":1439836,"src":"1993AUGC23_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1439836.html","width":130,"caption":"","height":108});
															thumbnails[6759551] = clik.newPhoto({"id":6759551,"src":"N03_P34_c_Massimo_Conti_600x600_thumb.jpg","galleries_id":99892,"server_id":1,"link":"photo_6759551.html","width":130,"caption":"","height":130});
															thumbnails[8332651] = clik.newPhoto({"id":8332651,"src":"1127_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":428148,"server_id":1,"link":"photo_8332651.html","width":130,"caption":"","height":173});
															thumbnails[1439944] = clik.newPhoto({"id":1439944,"src":"1993AUGA23_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1439944.html","width":130,"caption":"","height":156});
															thumbnails[1435967] = clik.newPhoto({"id":1435967,"src":"1993AUGF34_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1435967.html","width":130,"caption":"","height":108});
															thumbnails[1447644] = clik.newPhoto({"id":1447644,"src":"1993AUGH13_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1447644.html","width":130,"caption":"","height":108});
															thumbnails[1447619] = clik.newPhoto({"id":1447619,"src":"1993SEPA18_(c)_by_Massimo_Conti_500X600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1447619.html","width":130,"caption":"","height":108});
															thumbnails[1439743] = clik.newPhoto({"id":1439743,"src":"1993SEPB11_(c)_by_Massimo_Conti_500X600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1439743.html","width":130,"caption":"","height":108});
															thumbnails[1448068] = clik.newPhoto({"id":1448068,"src":"1993AUGG34_(c)_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_1448068.html","width":130,"caption":"","height":156});
															thumbnails[4785377] = clik.newPhoto({"id":4785377,"src":"6752_c_by_Massimo_Conti_500x600_copy_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_4785377.html","width":130,"caption":"","height":156});
															thumbnails[4785384] = clik.newPhoto({"id":4785384,"src":"6836_c_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_4785384.html","width":130,"caption":"","height":156});
															thumbnails[4785389] = clik.newPhoto({"id":4785389,"src":"6842_c_by_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_4785389.html","width":130,"caption":"","height":156});
															thumbnails[4785397] = clik.newPhoto({"id":4785397,"src":"6844_c_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_4785397.html","width":130,"caption":"","height":108});
															thumbnails[4785430] = clik.newPhoto({"id":4785430,"src":"6759_c_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_4785430.html","width":130,"caption":"","height":108});
															thumbnails[4785916] = clik.newPhoto({"id":4785916,"src":"7043_c_Massimo_Conti_500x600_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_4785916.html","width":130,"caption":"","height":108});
															thumbnails[8337389] = clik.newPhoto({"id":8337389,"src":"1247_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_8337389.html","width":130,"caption":"","height":98});
															thumbnails[8337403] = clik.newPhoto({"id":8337403,"src":"1258_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_8337403.html","width":130,"caption":"","height":98});
															thumbnails[8337510] = clik.newPhoto({"id":8337510,"src":"1283_30APR2011_c_Massimo_Conti_800x600_Selenium_thumb.jpg","galleries_id":272972,"server_id":1,"link":"photo_8337510.html","width":130,"caption":"","height":98});
															thumbnails[2610096] = clik.newPhoto({"id":2610096,"src":"THE_SILENCE_OF_THE_GODS_BOOK_C)_BY_MASSIMO_CONTI_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_2610096.html","width":130,"caption":"","height":104});
															thumbnails[3891628] = clik.newPhoto({"id":3891628,"src":"OS_Portovenere_c_Massimo_Conti_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_3891628.html","width":130,"caption":"","height":104});
															thumbnails[2596122] = clik.newPhoto({"id":2596122,"src":"Anthropomorphic_Sculptures_book_(c)_by_Massimo_Conti_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_2596122.html","width":130,"caption":"","height":104});
															thumbnails[7946432] = clik.newPhoto({"id":7946432,"src":"HIDDEN_5TERRE_c_Massimo_Conti_500x600_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_7946432.html","width":130,"caption":"","height":156});
															thumbnails[3185693] = clik.newPhoto({"id":3185693,"src":"PORTOVENERE_8x10_PORTOVENERE_500x600_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_3185693.html","width":130,"caption":"","height":156});
															thumbnails[3185904] = clik.newPhoto({"id":3185904,"src":"3125_Cover_Book_Seashells_(c)_by_Massimo_Conti_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_3185904.html","width":130,"caption":"","height":156});
															thumbnails[3891603] = clik.newPhoto({"id":3891603,"src":"SPA_Book_Front_Cover_c_by_Massimo_Conti_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_3891603.html","width":130,"caption":"","height":104});
															thumbnails[3891618] = clik.newPhoto({"id":3891618,"src":"Scarfs_Book_Front_Cover_c_by_Massimo_Conti_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_3891618.html","width":130,"caption":"","height":104});
															thumbnails[2596113] = clik.newPhoto({"id":2596113,"src":"Book_Sea_(c)_by_Massimo_Conti_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_2596113.html","width":130,"caption":"","height":104});
															thumbnails[3185829] = clik.newPhoto({"id":3185829,"src":"1993SEPC28_C_Massimo_Conti_500x600_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_3185829.html","width":130,"caption":"","height":156});
															thumbnails[7946478] = clik.newPhoto({"id":7946478,"src":"Japan_c_by_Massimo_Conti_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_7946478.html","width":130,"caption":"","height":156});
															thumbnails[7950315] = clik.newPhoto({"id":7950315,"src":"1992DECA0_Book_c_Massimo_Conti_500x600_thumb.jpg","galleries_id":189779,"server_id":1,"link":"photo_7950315.html","width":130,"caption":"","height":156});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[189779] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Books","link":"section234775.html","maxRecords":0.0,"photoIDs":[2610096.0,3891628.0,2596122.0,7946432.0,3185693.0,3185904.0,3891603.0,3891618.0,2596113.0,3185829.0,7946478.0,7950315.0],"skipIndex":0,"section_code":"section234775","featured_images":2596113.0,"id":189779,"singleSection":true});				  						galleries[428148] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nudes","link":"gallery_428148.html","maxRecords":0.0,"photoIDs":[2586642.0,2586651.0,2586673.0,1450519.0,1440831.0,8332753.0,4796397.0,4796454.0,4796457.0,1780075.0,1782930.0,7950909.0,8332625.0,8332627.0,8332651.0],"skipIndex":0,"section_code":"gallery","featured_images":1780075.0,"id":428148,"singleSection":false});				  						galleries[272972] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Living Sculptures","link":"gallery_272972.html","maxRecords":0.0,"photoIDs":[3091898.0,3092097.0,3092157.0,3090768.0,3090692.0,3090757.0,3092502.0,1450408.0,1429753.0,1450415.0,1450501.0,1450483.0,1447537.0,1439638.0,1439836.0,1439944.0,1435967.0,1447644.0,1447619.0,1439743.0,1448068.0,4785377.0,4785384.0,4785389.0,4785397.0,4785430.0,4785916.0,8337389.0,8337403.0,8337510.0],"skipIndex":0,"section_code":"gallery","featured_images":1429753.0,"id":272972,"singleSection":false});				  						galleries[428165] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portrait","link":"gallery_428165.html","maxRecords":0.0,"photoIDs":[2586951.0,2586966.0,2587047.0,8332533.0,8332538.0,8332614.0],"skipIndex":0,"section_code":"gallery","featured_images":2586966.0,"id":428165,"singleSection":false});				  						galleries[99892] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Editorial","link":"gallery_99892.html","maxRecords":0.0,"photoIDs":[2622769.0,2614978.0,2622355.0,6433196.0,6436746.0,6436822.0,6758828.0,6758843.0,6759551.0],"skipIndex":0,"section_code":"gallery","featured_images":2622769.0,"id":99892,"singleSection":false});				  						galleries[164291] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture","link":"gallery_164291.html","maxRecords":0.0,"photoIDs":[6672739.0,6673306.0,6673409.0,6676146.0,7988272.0,8014811.0,7988152.0],"skipIndex":0,"section_code":"gallery","featured_images":7988152.0,"id":164291,"singleSection":false});				  						galleries[428166] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion","link":"gallery_428166.html","maxRecords":0.0,"photoIDs":[8331414.0,8331431.0,8331418.0,8330314.0,8330319.0,8330488.0,8330640.0,8330663.0,8330324.0,8331623.0,8331627.0,8331630.0],"skipIndex":0,"section_code":"gallery","featured_images":8331414.0,"id":428166,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3482970,3482911,2586642';
imageSets[2] = '8331414,2622769,2586966,7988152,2596113,1429753,1780075';
imageSets[3] = '1447537,1447644,1448068';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mconti/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mconti/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mconti/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mconti/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mconti/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mconti/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mconti/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 = 'Massimo Conti | Fine Art Photography: ' + 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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="patrice.oceanshelling@gmail.com">';
					temp += '<input type="hidden" name="currency_code" value="USD">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="patrice.oceanshelling@gmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

