window.thumbnails = {};
															thumbnails[3840620] = clik.newPhoto({"id":3840620,"src":"4_s2018_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6255421] = clik.newPhoto({"id":6255421,"src":"1_897C1D68-24E8-5EC4-4FA1226F4ED424C7_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":196});
															thumbnails[7666770] = clik.newPhoto({"id":7666770,"src":"COVERFINAL01-11_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":197});
															thumbnails[6255424] = clik.newPhoto({"id":6255424,"src":"Copy_of_kids1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[6255423] = clik.newPhoto({"id":6255423,"src":"2_897C6995-24E8-5EC4-4F7016AAC8D5ECED_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":196});
															thumbnails[6255425] = clik.newPhoto({"id":6255425,"src":"Copy_of_kids4_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[6255426] = clik.newPhoto({"id":6255426,"src":"3_897DC732-24E8-5EC4-4FAAB7D05B45FF36_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":196});
															thumbnails[6255427] = clik.newPhoto({"id":6255427,"src":"Copy_of_kids5opt_897E0D54-24E8-5EC4-4FE7C97A21DE3FB3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":174});
															thumbnails[6255428] = clik.newPhoto({"id":6255428,"src":"5_897E53D3-24E8-5EC4-4F65F15CDDCC5FA8_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":196});
															thumbnails[6255430] = clik.newPhoto({"id":6255430,"src":"Copy_of_kids6nonipple_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":173});
															thumbnails[9087565] = clik.newPhoto({"id":9087565,"src":"2_1_thumb.jpg","galleries_id":479373,"server_id":15,"link":"photo_9087565.html","width":130,"caption":"","height":182});
															thumbnails[3840869] = clik.newPhoto({"id":3840869,"src":"Fashion-TL-_060_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3840869.html","width":130,"caption":"","height":96});
															thumbnails[5172362] = clik.newPhoto({"id":5172362,"src":"10_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5172362.html","width":130,"caption":"","height":173});
															thumbnails[6255487] = clik.newPhoto({"id":6255487,"src":"matthewholroyd11_thumb.jpg","galleries_id":347831,"server_id":15,"link":"photo_6255487.html","width":130,"caption":"","height":179});
															thumbnails[7653605] = clik.newPhoto({"id":7653605,"src":"HN_AW11_WOMENS_FullDocScreenSize-1_thumb.jpg","galleries_id":414924,"server_id":15,"link":"photo_7653605.html","width":130,"caption":"","height":189});
															thumbnails[8939690] = clik.newPhoto({"id":8939690,"src":"1_0E6E92E6-24E8-5EC4-4F34B7A3A17815B4_thumb.jpg","galleries_id":470510,"server_id":15,"link":"photo_8939690.html","width":130,"caption":"","height":184});
															thumbnails[8940030] = clik.newPhoto({"id":8940030,"src":"1_1054A18D-1EC9-DFB6-0955F0A6B0E91B59_thumb.jpg","galleries_id":470516,"server_id":15,"link":"photo_8940030.html","width":130,"caption":"","height":195});
															thumbnails[8979149] = clik.newPhoto({"id":8979149,"src":"59_shot05281_thumb.jpg","galleries_id":472873,"server_id":15,"link":"photo_8979149.html","width":130,"caption":"","height":88});
															thumbnails[9087564] = clik.newPhoto({"id":9087564,"src":"1_1_thumb.jpg","galleries_id":479373,"server_id":15,"link":"photo_9087564.html","width":130,"caption":"","height":182});
															thumbnails[3816269] = clik.newPhoto({"id":3816269,"src":"54_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816269.html","width":130,"caption":"","height":196});
															thumbnails[6255492] = clik.newPhoto({"id":6255492,"src":"salon_Ysl3-2_b1_thumb.jpg","galleries_id":347831,"server_id":15,"link":"photo_6255492.html","width":130,"caption":"","height":195});
															thumbnails[7653607] = clik.newPhoto({"id":7653607,"src":"HN_AW11_WOMENS_FullDocScreenSize-2_thumb.jpg","galleries_id":414924,"server_id":15,"link":"photo_7653607.html","width":130,"caption":"","height":94});
															thumbnails[8939701] = clik.newPhoto({"id":8939701,"src":"2_0E73673C-24E8-5EC4-4FF8A3D81AA51FC9_thumb.jpg","galleries_id":470510,"server_id":15,"link":"photo_8939701.html","width":130,"caption":"","height":184});
															thumbnails[8940031] = clik.newPhoto({"id":8940031,"src":"matthewholroyd2_thumb.jpg","galleries_id":470516,"server_id":15,"link":"photo_8940031.html","width":130,"caption":"","height":195});
															thumbnails[8979163] = clik.newPhoto({"id":8979163,"src":"59_shot03204_thumb.jpg","galleries_id":472873,"server_id":15,"link":"photo_8979163.html","width":130,"caption":"","height":112});
															thumbnails[3816290] = clik.newPhoto({"id":3816290,"src":"james21_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816290.html","width":130,"caption":"","height":173});
															thumbnails[6255493] = clik.newPhoto({"id":6255493,"src":"salon_Ysl3-1_b1_thumb.jpg","galleries_id":347831,"server_id":15,"link":"photo_6255493.html","width":130,"caption":"","height":87});
															thumbnails[7653608] = clik.newPhoto({"id":7653608,"src":"HN_AW11_WOMENS_FullDocScreenSize-3_thumb.jpg","galleries_id":414924,"server_id":15,"link":"photo_7653608.html","width":130,"caption":"","height":94});
															thumbnails[8939702] = clik.newPhoto({"id":8939702,"src":"3_0E7664D6-24E8-5EC4-4F1679785ACD2401_thumb.jpg","galleries_id":470510,"server_id":15,"link":"photo_8939702.html","width":130,"caption":"","height":93});
															thumbnails[8979165] = clik.newPhoto({"id":8979165,"src":"59_shot06350_thumb.jpg","galleries_id":472873,"server_id":15,"link":"photo_8979165.html","width":130,"caption":"","height":88});
															thumbnails[9087566] = clik.newPhoto({"id":9087566,"src":"3_1_thumb.jpg","galleries_id":479373,"server_id":15,"link":"photo_9087566.html","width":130,"caption":"","height":182});
															thumbnails[3816301] = clik.newPhoto({"id":3816301,"src":"_MG_76592_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816301.html","width":130,"caption":"","height":195});
															thumbnails[5166463] = clik.newPhoto({"id":5166463,"src":"5_3AA28320-1D09-001F-99441B5C8105CDF3_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5166463.html","width":130,"caption":"","height":173});
															thumbnails[5554180] = clik.newPhoto({"id":5554180,"src":"foxyyyyy_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5554180.html","width":130,"caption":"","height":98});
															thumbnails[5595617] = clik.newPhoto({"id":5595617,"src":"junior_whouse_2cut_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5595617.html","width":130,"caption":"","height":132});
															thumbnails[8939707] = clik.newPhoto({"id":8939707,"src":"4_0E7ECBC4-24E8-5EC4-4F5C8C87BCBA228B_thumb.jpg","galleries_id":470510,"server_id":15,"link":"photo_8939707.html","width":130,"caption":"","height":184});
															thumbnails[8940033] = clik.newPhoto({"id":8940033,"src":"matthewholroyd1_thumb.jpg","galleries_id":470516,"server_id":15,"link":"photo_8940033.html","width":130,"caption":"","height":195});
															thumbnails[9087567] = clik.newPhoto({"id":9087567,"src":"5_1_thumb.jpg","galleries_id":479373,"server_id":15,"link":"photo_9087567.html","width":130,"caption":"","height":182});
															thumbnails[3816354] = clik.newPhoto({"id":3816354,"src":"Copy_of_kids6nonipple123_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816354.html","width":130,"caption":"","height":173});
															thumbnails[5133959] = clik.newPhoto({"id":5133959,"src":"3_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5133959.html","width":130,"caption":"","height":173});
															thumbnails[5729143] = clik.newPhoto({"id":5729143,"src":"Green_sabre_Final_LR_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5729143.html","width":130,"caption":"","height":193});
															thumbnails[8939714] = clik.newPhoto({"id":8939714,"src":"5_0E81CB78-24E8-5EC4-4FFDBED74E4E96C0_thumb.jpg","galleries_id":470510,"server_id":15,"link":"photo_8939714.html","width":130,"caption":"","height":184});
															thumbnails[8940034] = clik.newPhoto({"id":8940034,"src":"5_1060612D-1EC9-DFB6-091F635AB6DA4AEE_thumb.jpg","galleries_id":470516,"server_id":15,"link":"photo_8940034.html","width":130,"caption":"","height":195});
															thumbnails[9087568] = clik.newPhoto({"id":9087568,"src":"5a_1_thumb.jpg","galleries_id":479373,"server_id":15,"link":"photo_9087568.html","width":130,"caption":"","height":182});
															thumbnails[5166455] = clik.newPhoto({"id":5166455,"src":"2_3185CFC0-2219-B5B5-4C479DD004ADBC85_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5166455.html","width":130,"caption":"","height":173});
															thumbnails[9087570] = clik.newPhoto({"id":9087570,"src":"6_1_thumb.jpg","galleries_id":479373,"server_id":15,"link":"photo_9087570.html","width":130,"caption":"","height":182});
															thumbnails[3816432] = clik.newPhoto({"id":3816432,"src":"Anna_car__copy_final_copy11_thumb.JPG","galleries_id":232299,"server_id":15,"link":"photo_3816432.html","width":130,"caption":"","height":87});
															thumbnails[3816449] = clik.newPhoto({"id":3816449,"src":"5L8I4983_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816449.html","width":130,"caption":"","height":195});
															thumbnails[5174108] = clik.newPhoto({"id":5174108,"src":"8_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5174108.html","width":130,"caption":"","height":173});
															thumbnails[8939719] = clik.newPhoto({"id":8939719,"src":"6_0E84C0A4-24E8-5EC4-4FD3BBAF6B51BA5E_thumb.jpg","galleries_id":470510,"server_id":15,"link":"photo_8939719.html","width":130,"caption":"","height":184});
															thumbnails[4070198] = clik.newPhoto({"id":4070198,"src":"FinalWellst_Vio_flat_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_4070198.html","width":130,"caption":"","height":105});
															thumbnails[8939729] = clik.newPhoto({"id":8939729,"src":"72_thumb.jpg","galleries_id":470510,"server_id":15,"link":"photo_8939729.html","width":130,"caption":"","height":184});
															thumbnails[8940037] = clik.newPhoto({"id":8940037,"src":"8_1066AD3D-1EC9-DFB6-098C59BBC16D98FB_thumb.jpg","galleries_id":470516,"server_id":15,"link":"photo_8940037.html","width":130,"caption":"","height":195});
															thumbnails[5166482] = clik.newPhoto({"id":5166482,"src":"babette_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5166482.html","width":130,"caption":"","height":173});
															thumbnails[3816514] = clik.newPhoto({"id":3816514,"src":"2_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816514.html","width":130,"caption":"","height":196});
															thumbnails[3816555] = clik.newPhoto({"id":3816555,"src":"lookfive_thumb.JPG","galleries_id":232299,"server_id":15,"link":"photo_3816555.html","width":130,"caption":"","height":87});
															thumbnails[5595621] = clik.newPhoto({"id":5595621,"src":"Jo_-_Img_05_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5595621.html","width":130,"caption":"","height":100});
															thumbnails[3816578] = clik.newPhoto({"id":3816578,"src":"Anna_Rockery_copy_low_res_last_v11_thumb.JPG","galleries_id":232299,"server_id":15,"link":"photo_3816578.html","width":130,"caption":"","height":87});
															thumbnails[5166448] = clik.newPhoto({"id":5166448,"src":"9_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5166448.html","width":130,"caption":"","height":173});
															thumbnails[3816583] = clik.newPhoto({"id":3816583,"src":"Copy_of_kids5opt_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816583.html","width":130,"caption":"","height":173});
															thumbnails[5166461] = clik.newPhoto({"id":5166461,"src":"1_3187FFE6-2219-B5B5-4C979228480D980A_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5166461.html","width":130,"caption":"","height":173});
															thumbnails[3816584] = clik.newPhoto({"id":3816584,"src":"_MG_7692_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816584.html","width":130,"caption":"","height":195});
															thumbnails[5173658] = clik.newPhoto({"id":5173658,"src":"1_3AA65016-1D09-001F-9953E2B138D06447_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5173658.html","width":130,"caption":"","height":173});
															thumbnails[5361564] = clik.newPhoto({"id":5361564,"src":"S2030prog_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5361564.html","width":130,"caption":"","height":173});
															thumbnails[5595609] = clik.newPhoto({"id":5595609,"src":"ele_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5595609.html","width":130,"caption":"","height":90});
															thumbnails[3816585] = clik.newPhoto({"id":3816585,"src":"cibele1_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816585.html","width":130,"caption":"","height":173});
															thumbnails[3816591] = clik.newPhoto({"id":3816591,"src":"FinalWellst_Nygauth_flat_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816591.html","width":130,"caption":"","height":104});
															thumbnails[5361527] = clik.newPhoto({"id":5361527,"src":"S6073prog_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5361527.html","width":130,"caption":"","height":173});
															thumbnails[5729148] = clik.newPhoto({"id":5729148,"src":"KeiranTV_cropped_LR_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5729148.html","width":130,"caption":"","height":86});
															thumbnails[3816598] = clik.newPhoto({"id":3816598,"src":"lookone_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816598.html","width":130,"caption":"","height":87});
															thumbnails[3816670] = clik.newPhoto({"id":3816670,"src":"1_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816670.html","width":130,"caption":"","height":196});
															thumbnails[5174110] = clik.newPhoto({"id":5174110,"src":"vague_7195_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5174110.html","width":130,"caption":"","height":195});
															thumbnails[3816884] = clik.newPhoto({"id":3816884,"src":"vic_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816884.html","width":130,"caption":"","height":207});
															thumbnails[5174106] = clik.newPhoto({"id":5174106,"src":"4_3B37B2F5-1D09-001F-992FAF0FA7DBCB71_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5174106.html","width":130,"caption":"","height":173});
															thumbnails[3816675] = clik.newPhoto({"id":3816675,"src":"victor41_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_3816675.html","width":130,"caption":"","height":174});
															thumbnails[5361502] = clik.newPhoto({"id":5361502,"src":"S6_040_thumb.jpg","galleries_id":232299,"server_id":15,"link":"photo_5361502.html","width":130,"caption":"","height":173});
															thumbnails[8568211] = clik.newPhoto({"id":8568211,"src":"57179_161928643831010_112142442142964_429880_2978037_o-1_thumb.jpg","galleries_id":452915,"server_id":15,"link":"photo_8568211.html","width":130,"caption":"","height":87});
															thumbnails[8458311] = clik.newPhoto({"id":8458311,"src":"comp_1_thumb.jpg","galleries_id":447559,"server_id":15,"link":"photo_8458311.html","width":130,"caption":"","height":98});
															thumbnails[8458329] = clik.newPhoto({"id":8458329,"src":"cup_cr_thumb.jpg","galleries_id":447559,"server_id":15,"link":"photo_8458329.html","width":130,"caption":"","height":173});
															thumbnails[8458331] = clik.newPhoto({"id":8458331,"src":"first_cr_thumb.jpg","galleries_id":447559,"server_id":15,"link":"photo_8458331.html","width":130,"caption":"","height":91});
															thumbnails[8458334] = clik.newPhoto({"id":8458334,"src":"amanda_rafaelle_2_dr_thumb.jpg","galleries_id":447559,"server_id":15,"link":"photo_8458334.html","width":130,"caption":"","height":98});
															thumbnails[8458336] = clik.newPhoto({"id":8458336,"src":"meredith_rafaelle_dr_thumb.jpg","galleries_id":447559,"server_id":15,"link":"photo_8458336.html","width":130,"caption":"","height":98});
															thumbnails[8458338] = clik.newPhoto({"id":8458338,"src":"comp_2_thumb.jpg","galleries_id":447559,"server_id":15,"link":"photo_8458338.html","width":130,"caption":"","height":98});
															thumbnails[8488382] = clik.newPhoto({"id":8488382,"src":"1_7DFCC83F-1E4F-37DC-71D87BCD1110C816_thumb.jpg","galleries_id":448789,"server_id":15,"link":"photo_8488382.html","width":130,"caption":"","height":173});
															thumbnails[8488385] = clik.newPhoto({"id":8488385,"src":"2_7DFDCF03-1E4F-37DC-714333CB6C08197B_thumb.jpg","galleries_id":448789,"server_id":15,"link":"photo_8488385.html","width":130,"caption":"","height":173});
															thumbnails[8488391] = clik.newPhoto({"id":8488391,"src":"3_7E0043A4-1E4F-37DC-718637CAF4B2828C_thumb.jpg","galleries_id":448789,"server_id":15,"link":"photo_8488391.html","width":130,"caption":"","height":173});
															thumbnails[8488396] = clik.newPhoto({"id":8488396,"src":"5_7E01B02C-1E4F-37DC-7191E50C4DDE1166_thumb.jpg","galleries_id":448789,"server_id":15,"link":"photo_8488396.html","width":130,"caption":"","height":173});
															thumbnails[6255869] = clik.newPhoto({"id":6255869,"src":"39_thumb.jpg","galleries_id":347843,"server_id":15,"link":"photo_6255869.html","width":130,"caption":"","height":88});
															thumbnails[6913235] = clik.newPhoto({"id":6913235,"src":"matthewholroyd7_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913235.html","width":130,"caption":"","height":173});
															thumbnails[6913359] = clik.newPhoto({"id":6913359,"src":"S4_008_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913359.html","width":130,"caption":"","height":173});
															thumbnails[6255871] = clik.newPhoto({"id":6255871,"src":"40_thumb.jpg","galleries_id":347843,"server_id":15,"link":"photo_6255871.html","width":130,"caption":"","height":88});
															thumbnails[6913366] = clik.newPhoto({"id":6913366,"src":"S9_018-flat_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913366.html","width":130,"caption":"","height":173});
															thumbnails[6913227] = clik.newPhoto({"id":6913227,"src":"01-flat-BW_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913227.html","width":130,"caption":"","height":173});
															thumbnails[6255880] = clik.newPhoto({"id":6255880,"src":"41_thumb.jpg","galleries_id":347843,"server_id":15,"link":"photo_6255880.html","width":130,"caption":"","height":88});
															thumbnails[6913361] = clik.newPhoto({"id":6913361,"src":"S5_014_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913361.html","width":130,"caption":"","height":173});
															thumbnails[6913228] = clik.newPhoto({"id":6913228,"src":"02-flat-BW_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913228.html","width":130,"caption":"","height":173});
															thumbnails[7643294] = clik.newPhoto({"id":7643294,"src":"42_thumb.jpg","galleries_id":347843,"server_id":15,"link":"photo_7643294.html","width":130,"caption":"","height":88});
															thumbnails[6913357] = clik.newPhoto({"id":6913357,"src":"S2_009_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913357.html","width":130,"caption":"","height":173});
															thumbnails[7643300] = clik.newPhoto({"id":7643300,"src":"43_thumb.jpg","galleries_id":347843,"server_id":15,"link":"photo_7643300.html","width":130,"caption":"","height":88});
															thumbnails[6913383] = clik.newPhoto({"id":6913383,"src":"S10_024-flat_thumb.jpg","galleries_id":375023,"server_id":15,"link":"photo_6913383.html","width":130,"caption":"","height":173});
															thumbnails[8039266] = clik.newPhoto({"id":8039266,"src":"SS12_Look_book_high_res_Page_03_thumb.jpg","galleries_id":414928,"server_id":15,"link":"photo_8039266.html","width":130,"caption":"","height":179});
															thumbnails[8039267] = clik.newPhoto({"id":8039267,"src":"SS12_Look_book_high_res_Page_08_thumb.jpg","galleries_id":414928,"server_id":15,"link":"photo_8039267.html","width":130,"caption":"","height":181});
															thumbnails[8039269] = clik.newPhoto({"id":8039269,"src":"SS12_Look_book_high_res_Page_09_thumb.jpg","galleries_id":414928,"server_id":15,"link":"photo_8039269.html","width":130,"caption":"","height":185});
															thumbnails[8039270] = clik.newPhoto({"id":8039270,"src":"SS12_Look_book_high_res_Page_10_thumb.jpg","galleries_id":414928,"server_id":15,"link":"photo_8039270.html","width":130,"caption":"","height":182});
															thumbnails[8039271] = clik.newPhoto({"id":8039271,"src":"SS12_Look_book_high_res_Page_12_thumb.jpg","galleries_id":414928,"server_id":15,"link":"photo_8039271.html","width":130,"caption":"","height":177});
															thumbnails[7653679] = clik.newPhoto({"id":7653679,"src":"SS12_Look_book_high_res_Page_02_thumb.jpg","galleries_id":414928,"server_id":15,"link":"photo_7653679.html","width":130,"caption":"","height":181});
															thumbnails[6257496] = clik.newPhoto({"id":6257496,"src":"Vague_-_3_thumb.jpg","galleries_id":347939,"server_id":15,"link":"photo_6257496.html","width":130,"caption":"","height":173});
															thumbnails[6257513] = clik.newPhoto({"id":6257513,"src":"Vague_-_4_thumb.jpg","galleries_id":347939,"server_id":15,"link":"photo_6257513.html","width":130,"caption":"","height":173});
															thumbnails[6502266] = clik.newPhoto({"id":6502266,"src":"CircularSpray_3_Flat_thumb.jpg","galleries_id":357901,"server_id":15,"link":"photo_6502266.html","width":130,"caption":"","height":185});
															thumbnails[6502272] = clik.newPhoto({"id":6502272,"src":"LeatheretteRetouch_02_thumb.jpg","galleries_id":357901,"server_id":15,"link":"photo_6502272.html","width":130,"caption":"","height":185});
															thumbnails[6502273] = clik.newPhoto({"id":6502273,"src":"Neck2_Retouched_Cropped_Cracks_thumb.jpg","galleries_id":357901,"server_id":15,"link":"photo_6502273.html","width":130,"caption":"","height":184});
															thumbnails[6502274] = clik.newPhoto({"id":6502274,"src":"Photogram_thumb.jpg","galleries_id":357901,"server_id":15,"link":"photo_6502274.html","width":130,"caption":"","height":185});
															thumbnails[6502275] = clik.newPhoto({"id":6502275,"src":"SkyRetouched_thumb.jpg","galleries_id":357901,"server_id":15,"link":"photo_6502275.html","width":130,"caption":"","height":185});
															thumbnails[6502276] = clik.newPhoto({"id":6502276,"src":"SprayRetouch2_2_thumb.jpg","galleries_id":357901,"server_id":15,"link":"photo_6502276.html","width":130,"caption":"","height":185});
															thumbnails[8877791] = clik.newPhoto({"id":8877791,"src":"54_img4851_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8877791.html","width":130,"caption":"","height":189});
															thumbnails[8877795] = clik.newPhoto({"id":8877795,"src":"54_img44441_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8877795.html","width":130,"caption":"","height":191});
															thumbnails[8877798] = clik.newPhoto({"id":8877798,"src":"54_30a_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8877798.html","width":130,"caption":"","height":195});
															thumbnails[8877799] = clik.newPhoto({"id":8877799,"src":"54_30_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8877799.html","width":130,"caption":"","height":185});
															thumbnails[8877800] = clik.newPhoto({"id":8877800,"src":"54_29_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8877800.html","width":130,"caption":"","height":177});
															thumbnails[6305191] = clik.newPhoto({"id":6305191,"src":"lookfive_B1B7B31B-24E8-5EC4-4F7F5CCF92C80D62_thumb.JPG","galleries_id":349753,"server_id":15,"link":"photo_6305191.html","width":130,"caption":"","height":86});
															thumbnails[8399036] = clik.newPhoto({"id":8399036,"src":"1_262BD043-1EC9-D45B-1C95195FF8C356FC_thumb.jpg","galleries_id":445115,"server_id":15,"link":"photo_8399036.html","width":130,"caption":"","height":195});
															thumbnails[8413665] = clik.newPhoto({"id":8413665,"src":"54_img4990_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8413665.html","width":130,"caption":"","height":190});
															thumbnails[8500967] = clik.newPhoto({"id":8500967,"src":"1_8894D963-1E4F-37DC-7127C182DEC63F7F_thumb.jpg","galleries_id":449317,"server_id":15,"link":"photo_8500967.html","width":130,"caption":"","height":195});
															thumbnails[8876797] = clik.newPhoto({"id":8876797,"src":"1_62833AF0-24E8-5EC4-4F96BE51673FA8F7_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876797.html","width":130,"caption":"","height":193});
															thumbnails[6305192] = clik.newPhoto({"id":6305192,"src":"lookfour_thumb.jpg","galleries_id":349753,"server_id":15,"link":"photo_6305192.html","width":130,"caption":"","height":87});
															thumbnails[8399042] = clik.newPhoto({"id":8399042,"src":"2_262D8AD3-1EC9-D45B-1C23A85E69671B86_thumb.jpg","galleries_id":445115,"server_id":15,"link":"photo_8399042.html","width":130,"caption":"","height":195});
															thumbnails[8413399] = clik.newPhoto({"id":8413399,"src":"matthewholroyd3_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8413399.html","width":130,"caption":"","height":195});
															thumbnails[8876816] = clik.newPhoto({"id":8876816,"src":"2_6287809A-24E8-5EC4-4F81D19726683746_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876816.html","width":130,"caption":"","height":193});
															thumbnails[8413827] = clik.newPhoto({"id":8413827,"src":"54_30c1_thumb.jpg","galleries_id":445750,"server_id":15,"link":"photo_8413827.html","width":130,"caption":"","height":195});
															thumbnails[8500968] = clik.newPhoto({"id":8500968,"src":"3_88968FA6-1E4F-37DC-71D27F9E7A447D24_thumb.jpg","galleries_id":449317,"server_id":15,"link":"photo_8500968.html","width":130,"caption":"","height":195});
															thumbnails[8876818] = clik.newPhoto({"id":8876818,"src":"5_628D9C39-24E8-5EC4-4FF0936CD157F873_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876818.html","width":130,"caption":"","height":193});
															thumbnails[6305193] = clik.newPhoto({"id":6305193,"src":"lookone_B1B84A79-24E8-5EC4-4F7045BF45C751E0_thumb.jpg","galleries_id":349753,"server_id":15,"link":"photo_6305193.html","width":130,"caption":"","height":86});
															thumbnails[8399055] = clik.newPhoto({"id":8399055,"src":"4_thumb.jpg","galleries_id":445115,"server_id":15,"link":"photo_8399055.html","width":130,"caption":"","height":195});
															thumbnails[8876820] = clik.newPhoto({"id":8876820,"src":"4_6292CC2A-24E8-5EC4-4F210CD0AA780141_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876820.html","width":130,"caption":"","height":193});
															thumbnails[8399058] = clik.newPhoto({"id":8399058,"src":"5_thumb.jpg","galleries_id":445115,"server_id":15,"link":"photo_8399058.html","width":130,"caption":"","height":195});
															thumbnails[8501040] = clik.newPhoto({"id":8501040,"src":"5_88998069-1E4F-37DC-71435C1EE9B445A4_thumb.jpg","galleries_id":449317,"server_id":15,"link":"photo_8501040.html","width":130,"caption":"","height":195});
															thumbnails[8501042] = clik.newPhoto({"id":8501042,"src":"2_889AA7C7-1E4F-37DC-71B44BADC52D0CF8_thumb.jpg","galleries_id":449317,"server_id":15,"link":"photo_8501042.html","width":130,"caption":"","height":195});
															thumbnails[8876825] = clik.newPhoto({"id":8876825,"src":"71_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876825.html","width":130,"caption":"","height":193});
															thumbnails[8876830] = clik.newPhoto({"id":8876830,"src":"6_62CD0C73-24E8-5EC4-4FB855D8C49E792F_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876830.html","width":130,"caption":"","height":193});
															thumbnails[8876832] = clik.newPhoto({"id":8876832,"src":"9_62D4B87C-24E8-5EC4-4FA35E3B4E198114_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876832.html","width":130,"caption":"","height":193});
															thumbnails[8502497] = clik.newPhoto({"id":8502497,"src":"Shot_06_276_thumb.jpg","galleries_id":449317,"server_id":15,"link":"photo_8502497.html","width":130,"caption":"","height":195});
															thumbnails[8876833] = clik.newPhoto({"id":8876833,"src":"8_62DC341E-24E8-5EC4-4FF3225941185BEE_thumb.jpg","galleries_id":466944,"server_id":15,"link":"photo_8876833.html","width":130,"caption":"","height":193});
															thumbnails[7643078] = clik.newPhoto({"id":7643078,"src":"TorsoRetouched_thumb.jpg","galleries_id":357901,"server_id":15,"link":"photo_7643078.html","width":130,"caption":"","height":185});
															thumbnails[8502493] = clik.newPhoto({"id":8502493,"src":"44_thumb.jpg","galleries_id":449317,"server_id":15,"link":"photo_8502493.html","width":130,"caption":"","height":87});
															thumbnails[8877805] = clik.newPhoto({"id":8877805,"src":"51_1-temp_thumb.jpg","galleries_id":467017,"server_id":15,"link":"photo_8877805.html","width":130,"caption":"","height":188});
															thumbnails[8877806] = clik.newPhoto({"id":8877806,"src":"51_2-temp_thumb.jpg","galleries_id":467017,"server_id":15,"link":"photo_8877806.html","width":130,"caption":"","height":188});
															thumbnails[8877807] = clik.newPhoto({"id":8877807,"src":"51_4-temp_thumb.jpg","galleries_id":467017,"server_id":15,"link":"photo_8877807.html","width":130,"caption":"","height":188});
															thumbnails[8877808] = clik.newPhoto({"id":8877808,"src":"51_3-temp_thumb.jpg","galleries_id":467017,"server_id":15,"link":"photo_8877808.html","width":130,"caption":"","height":188});
															thumbnails[8877809] = clik.newPhoto({"id":8877809,"src":"51_5-temp_thumb.jpg","galleries_id":467017,"server_id":15,"link":"photo_8877809.html","width":130,"caption":"","height":188});
															thumbnails[8877810] = clik.newPhoto({"id":8877810,"src":"51_6-temp_thumb.jpg","galleries_id":467017,"server_id":15,"link":"photo_8877810.html","width":130,"caption":"","height":188});
															thumbnails[6257330] = clik.newPhoto({"id":6257330,"src":"P1050587_thumb.JPG","galleries_id":347934,"server_id":15,"link":"photo_6257330.html","width":130,"caption":"","height":98});
															thumbnails[8448548] = clik.newPhoto({"id":8448548,"src":"matthewholroydTwelveBooksandRestir11_thumb.jpg","galleries_id":447157,"server_id":15,"link":"photo_8448548.html","width":130,"caption":"","height":98});
															thumbnails[6257375] = clik.newPhoto({"id":6257375,"src":"P1050588_thumb.JPG","galleries_id":347934,"server_id":15,"link":"photo_6257375.html","width":130,"caption":"","height":98});
															thumbnails[8448550] = clik.newPhoto({"id":8448550,"src":"matthewholroydTwelveBooksandRestir2jpg1_thumb.jpg","galleries_id":447157,"server_id":15,"link":"photo_8448550.html","width":130,"caption":"","height":98});
															thumbnails[6257377] = clik.newPhoto({"id":6257377,"src":"P1050589_thumb.JPG","galleries_id":347934,"server_id":15,"link":"photo_6257377.html","width":130,"caption":"","height":98});
															thumbnails[8448551] = clik.newPhoto({"id":8448551,"src":"matthewholroydTwelveBooksandRestir31_thumb.jpg","galleries_id":447157,"server_id":15,"link":"photo_8448551.html","width":130,"caption":"","height":98});
															thumbnails[6257380] = clik.newPhoto({"id":6257380,"src":"P1050596_thumb.JPG","galleries_id":347934,"server_id":15,"link":"photo_6257380.html","width":130,"caption":"","height":98});
															thumbnails[6257383] = clik.newPhoto({"id":6257383,"src":"P1050597_thumb.JPG","galleries_id":347934,"server_id":15,"link":"photo_6257383.html","width":130,"caption":"","height":98});
															thumbnails[6257390] = clik.newPhoto({"id":6257390,"src":"P1050590_thumb.JPG","galleries_id":347934,"server_id":15,"link":"photo_6257390.html","width":130,"caption":"","height":173});
															thumbnails[6257394] = clik.newPhoto({"id":6257394,"src":"Copy_of_P1050584_thumb.JPG","galleries_id":347934,"server_id":15,"link":"photo_6257394.html","width":130,"caption":"","height":98});
															thumbnails[8488459] = clik.newPhoto({"id":8488459,"src":"1_7E175C11-1E4F-37DC-7118037D3978E0F6_thumb.jpg","galleries_id":448799,"server_id":15,"link":"photo_8488459.html","width":130,"caption":"","height":87});
															thumbnails[8488461] = clik.newPhoto({"id":8488461,"src":"2_7E17E5D8-1E4F-37DC-71628A63C99EDB5D_thumb.jpg","galleries_id":448799,"server_id":15,"link":"photo_8488461.html","width":130,"caption":"","height":185});
															thumbnails[8488463] = clik.newPhoto({"id":8488463,"src":"3_7E183011-1E4F-37DC-7131EADBECF12B9F_thumb.jpg","galleries_id":448799,"server_id":15,"link":"photo_8488463.html","width":130,"caption":"","height":195});
															thumbnails[8488466] = clik.newPhoto({"id":8488466,"src":"4_7E187885-1E4F-37DC-71496BC25605B42B_thumb.jpg","galleries_id":448799,"server_id":15,"link":"photo_8488466.html","width":130,"caption":"","height":87});
															thumbnails[8488467] = clik.newPhoto({"id":8488467,"src":"5_7E18C3B8-1E4F-37DC-71A0A3C07DDF0F4A_thumb.jpg","galleries_id":448799,"server_id":15,"link":"photo_8488467.html","width":130,"caption":"","height":195});
															thumbnails[8488470] = clik.newPhoto({"id":8488470,"src":"6_thumb.jpg","galleries_id":448799,"server_id":15,"link":"photo_8488470.html","width":130,"caption":"","height":195});
															thumbnails[6437044] = clik.newPhoto({"id":6437044,"src":"Stimules_Response_-_1_thumb.jpg","galleries_id":355247,"server_id":15,"link":"photo_6437044.html","width":130,"caption":"","height":173});
															thumbnails[6437050] = clik.newPhoto({"id":6437050,"src":"Stimules_Response_-_6_thumb.jpg","galleries_id":355247,"server_id":15,"link":"photo_6437050.html","width":130,"caption":"","height":173});
															thumbnails[5174121] = clik.newPhoto({"id":5174121,"src":"matthewholroyd6_thumb.jpg","galleries_id":406683,"server_id":15,"link":"photo_5174121.html","width":130,"caption":"","height":179});
															thumbnails[7500974] = clik.newPhoto({"id":7500974,"src":"Margot_-_8Bit1_thumb.jpg","galleries_id":406683,"server_id":15,"link":"photo_7500974.html","width":130,"caption":"","height":74});
															thumbnails[6255471] = clik.newPhoto({"id":6255471,"src":"1_8984981A-24E8-5EC4-4FF02D1287173B5E_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255471.html","width":130,"caption":"","height":196});
															thumbnails[6255472] = clik.newPhoto({"id":6255472,"src":"Copy_of_kids11_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255472.html","width":130,"caption":"","height":173});
															thumbnails[6255473] = clik.newPhoto({"id":6255473,"src":"Copy_of_2_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255473.html","width":130,"caption":"","height":195});
															thumbnails[6255474] = clik.newPhoto({"id":6255474,"src":"Copy_of_kids41_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255474.html","width":130,"caption":"","height":173});
															thumbnails[6255475] = clik.newPhoto({"id":6255475,"src":"3_8985A074-24E8-5EC4-4FFFEE7758F298F2_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255475.html","width":130,"caption":"","height":196});
															thumbnails[6255477] = clik.newPhoto({"id":6255477,"src":"Copy_of_kids5opt_8985D540-24E8-5EC4-4FFD11EDF1606CA4_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255477.html","width":130,"caption":"","height":174});
															thumbnails[6255479] = clik.newPhoto({"id":6255479,"src":"matthewholroyd5_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255479.html","width":130,"caption":"","height":196});
															thumbnails[6255480] = clik.newPhoto({"id":6255480,"src":"Copy_of_kids6nonipple1_thumb.jpg","galleries_id":347828,"server_id":15,"link":"photo_6255480.html","width":130,"caption":"","height":173});
															thumbnails[6255721] = clik.newPhoto({"id":6255721,"src":"cibele1_89B8BBF4-24E8-5EC4-4F9149BE96F2501C_thumb.jpg","galleries_id":347840,"server_id":15,"link":"photo_6255721.html","width":130,"caption":"","height":173});
															thumbnails[6255722] = clik.newPhoto({"id":6255722,"src":"james2_thumb.jpg","galleries_id":347840,"server_id":15,"link":"photo_6255722.html","width":130,"caption":"","height":173});
															thumbnails[6255726] = clik.newPhoto({"id":6255726,"src":"Look_Four_thumb.jpg","galleries_id":347840,"server_id":15,"link":"photo_6255726.html","width":130,"caption":"","height":173});
															thumbnails[7670513] = clik.newPhoto({"id":7670513,"src":"3_joannalowres_thumb.jpg","galleries_id":347840,"server_id":15,"link":"photo_7670513.html","width":130,"caption":"","height":173});
															thumbnails[6255505] = clik.newPhoto({"id":6255505,"src":"kids_3_e_thumb.jpg","galleries_id":347832,"server_id":15,"link":"photo_6255505.html","width":130,"caption":"","height":173});
															thumbnails[6255507] = clik.newPhoto({"id":6255507,"src":"whippets20111_thumb.JPG","galleries_id":347832,"server_id":15,"link":"photo_6255507.html","width":130,"caption":"","height":98});
															thumbnails[6255513] = clik.newPhoto({"id":6255513,"src":"kids_5_b_thumb.jpg","galleries_id":347832,"server_id":15,"link":"photo_6255513.html","width":130,"caption":"","height":173});
															thumbnails[6255515] = clik.newPhoto({"id":6255515,"src":"kids_4_f_thumb.jpg","galleries_id":347832,"server_id":15,"link":"photo_6255515.html","width":130,"caption":"","height":173});
															thumbnails[8530802] = clik.newPhoto({"id":8530802,"src":"1_AA684374-1EC9-D45B-1C0E7188AF57C108_thumb.jpg","galleries_id":450732,"server_id":15,"link":"photo_8530802.html","width":130,"caption":"","height":98});
															thumbnails[8530803] = clik.newPhoto({"id":8530803,"src":"2_AA689E94-1EC9-D45B-1C8A3A3A48465C39_thumb.jpg","galleries_id":450732,"server_id":15,"link":"photo_8530803.html","width":130,"caption":"","height":173});
															thumbnails[8530805] = clik.newPhoto({"id":8530805,"src":"3_AA69149F-1EC9-D45B-1CBA003F77EE3CCD_thumb.jpg","galleries_id":450732,"server_id":15,"link":"photo_8530805.html","width":130,"caption":"","height":98});
															thumbnails[8530808] = clik.newPhoto({"id":8530808,"src":"45_thumb.jpg","galleries_id":450732,"server_id":15,"link":"photo_8530808.html","width":130,"caption":"","height":173});
															thumbnails[6255568] = clik.newPhoto({"id":6255568,"src":"Anna_car__copy_final_copy1_thumb.JPG","galleries_id":347833,"server_id":15,"link":"photo_6255568.html","width":130,"caption":"","height":87});
															thumbnails[6255569] = clik.newPhoto({"id":6255569,"src":"FinalWellst_Vio_flat_8998D338-24E8-5EC4-4F7A830221354F12_thumb.jpg","galleries_id":347833,"server_id":15,"link":"photo_6255569.html","width":130,"caption":"","height":105});
															thumbnails[6255571] = clik.newPhoto({"id":6255571,"src":"the_secon_coming_thumb.jpg","galleries_id":347833,"server_id":15,"link":"photo_6255571.html","width":130,"caption":"","height":103});
															thumbnails[6255574] = clik.newPhoto({"id":6255574,"src":"Anna_Rockery_copy_low_res_last_v1_thumb.JPG","galleries_id":347833,"server_id":15,"link":"photo_6255574.html","width":130,"caption":"","height":87});
															thumbnails[6255633] = clik.newPhoto({"id":6255633,"src":"30g_thumb_AD431A0C-24E8-5EC4-4FB5483AAAD81167.jpg","galleries_id":347838,"server_id":15,"link":"photo_6255633.html","width":130,"caption":"","height":163});
															thumbnails[7643087] = clik.newPhoto({"id":7643087,"src":"30ga_thumb.jpg","galleries_id":347838,"server_id":15,"link":"photo_7643087.html","width":130,"caption":"","height":163});
															thumbnails[6255604] = clik.newPhoto({"id":6255604,"src":"52_tim-29108_thumb.jpg","galleries_id":347835,"server_id":15,"link":"photo_6255604.html","width":130,"caption":"","height":173});
															thumbnails[6255606] = clik.newPhoto({"id":6255606,"src":"52_tim-288601_thumb.jpg","galleries_id":347835,"server_id":15,"link":"photo_6255606.html","width":130,"caption":"","height":173});
															thumbnails[6255607] = clik.newPhoto({"id":6255607,"src":"52_tim-29183_thumb.jpg","galleries_id":347835,"server_id":15,"link":"photo_6255607.html","width":130,"caption":"","height":173});
															thumbnails[6255610] = clik.newPhoto({"id":6255610,"src":"52_tim-29020_thumb.jpg","galleries_id":347835,"server_id":15,"link":"photo_6255610.html","width":130,"caption":"","height":173});
															thumbnails[6255616] = clik.newPhoto({"id":6255616,"src":"52_tim-28777_thumb.jpg","galleries_id":347835,"server_id":15,"link":"photo_6255616.html","width":130,"caption":"","height":173});
															thumbnails[8877818] = clik.newPhoto({"id":8877818,"src":"52_tim-29345_thumb.jpg","galleries_id":347835,"server_id":15,"link":"photo_8877818.html","width":130,"caption":"","height":173});
															thumbnails[6257494] = clik.newPhoto({"id":6257494,"src":"hostemadvert_thumb.jpg","galleries_id":376761,"server_id":15,"link":"photo_6257494.html","width":130,"caption":"","height":192});
															thumbnails[3838519] = clik.newPhoto({"id":3838519,"src":"72906-IMG_0979_thumb.JPG","galleries_id":233632,"server_id":15,"link":"photo_3838519.html","width":130,"caption":"","height":196});
															thumbnails[3838521] = clik.newPhoto({"id":3838521,"src":"BRASS_RED_6_thumb.JPG","galleries_id":233632,"server_id":15,"link":"photo_3838521.html","width":130,"caption":"","height":196});
															thumbnails[3838522] = clik.newPhoto({"id":3838522,"src":"l_e701d30fcc065e1ac3a0ca4d4aad4f56_thumb.jpg","galleries_id":233632,"server_id":15,"link":"photo_3838522.html","width":130,"caption":"","height":109});
															thumbnails[5554216] = clik.newPhoto({"id":5554216,"src":"4293463689_971c279f8b_thumb.jpg","galleries_id":233632,"server_id":15,"link":"photo_5554216.html","width":130,"caption":"","height":86});
															thumbnails[3838526] = clik.newPhoto({"id":3838526,"src":"Steph1_copy_thumb.jpg","galleries_id":233632,"server_id":15,"link":"photo_3838526.html","width":130,"caption":"","height":195});
															thumbnails[4435529] = clik.newPhoto({"id":4435529,"src":"page208A_thumb.jpg","galleries_id":233632,"server_id":15,"link":"photo_4435529.html","width":130,"caption":"","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[479373] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"6 magazine ","link":"section583596.html","maxRecords":0.0,"photoIDs":[9087565.0,9087564.0,9087566.0,9087567.0,9087568.0,9087570.0],"skipIndex":0,"section_code":"section583596","featured_images":"9087570,9087568,9087567,9087566,9087565,9087564","id":479373,"singleSection":true});				  						galleries[467017] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"alice waese","link":"section565839.html","maxRecords":0.0,"photoIDs":[8877805.0,8877806.0,8877807.0,8877808.0,8877809.0,8877810.0],"skipIndex":0,"section_code":"section565839","featured_images":"8877810,8877809,8877808,8877807,8877806,8877805","id":467017,"singleSection":true});				  						galleries[433493] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Austrailia","link":"section417507_433493.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section417507","featured_images":"","id":433493,"singleSection":false});				  						galleries[347934] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"carnival","link":"section415307.html","maxRecords":0.0,"photoIDs":[6257330.0,6257375.0,6257377.0,6257380.0,6257383.0,6257390.0,6257394.0],"skipIndex":0,"section_code":"section415307","featured_images":"6257394,6257390,6257383,6257380,6257377,6257375,6257330","id":347934,"singleSection":true});				  						galleries[347838] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"casely-hayford","link":"section415204.html","maxRecords":0.0,"photoIDs":[6255633.0,7643087.0],"skipIndex":0,"section_code":"section415204","featured_images":"7643087,6255633","id":347838,"singleSection":true});				  						galleries[347840] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ellen","link":"section415213.html","maxRecords":0.0,"photoIDs":[6255721.0,6255722.0,6255726.0,7670513.0],"skipIndex":0,"section_code":"section415213","featured_images":"7670513,6255726,6255722,6255721","id":347840,"singleSection":true});				  						galleries[447559] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"foxy knoxy","link":"section538211.html","maxRecords":0.0,"photoIDs":[8458311.0,8458329.0,8458331.0,8458334.0,8458336.0,8458338.0],"skipIndex":0,"section_code":"section538211","featured_images":"8458338,8458336,8458334,8458331,8458329,8458311","id":447559,"singleSection":true});				  						galleries[414924] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"harvey nichols","link":"section496576.html","maxRecords":0.0,"photoIDs":[7653605.0,7653607.0,7653608.0],"skipIndex":0,"section_code":"section496576","featured_images":"7653608,7653607,7653605","id":414924,"singleSection":true});				  						galleries[376761] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"hostem campaign","link":"section448592.html","maxRecords":0.0,"photoIDs":[6257494.0],"skipIndex":0,"section_code":"section448592","featured_images":6257494.0,"id":376761,"singleSection":true});				  						galleries[445115] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Junior Magazine","link":"section535066.html","maxRecords":0.0,"photoIDs":[8399036.0,8399042.0,8399055.0,8399058.0],"skipIndex":0,"section_code":"section535066","featured_images":"8399058,8399055,8399042,8399036","id":445115,"singleSection":true});				  						galleries[472873] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"junior magazine ","link":"section574124.html","maxRecords":0.0,"photoIDs":[8979149.0,8979163.0,8979165.0],"skipIndex":0,"section_code":"section574124","featured_images":"8979165,8979163,8979149","id":472873,"singleSection":true});				  						galleries[448799] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"junior magazine ","link":"section540065.html","maxRecords":0.0,"photoIDs":[8488459.0,8488461.0,8488463.0,8488466.0,8488467.0,8488470.0],"skipIndex":0,"section_code":"section540065","featured_images":"8488470,8488467,8488466,8488463,8488461,8488459","id":448799,"singleSection":true});				  						galleries[347832] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"new dawn","link":"section415199.html","maxRecords":0.0,"photoIDs":[6255505.0,6255507.0,6255513.0,6255515.0],"skipIndex":0,"section_code":"section415199","featured_images":6255515.0,"id":347832,"singleSection":true});				  						galleries[347835] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"nineties catalogue","link":"section415201.html","maxRecords":0.0,"photoIDs":[6255604.0,6255606.0,6255607.0,6255610.0,6255616.0,8877818.0],"skipIndex":0,"section_code":"section415201","featured_images":"8877818,6255616,6255610,6255607,6255606,6255604","id":347835,"singleSection":true});				  						galleries[445750] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pandrogyne","link":"section535747.html","maxRecords":0.0,"photoIDs":[8877791.0,8877795.0,8877798.0,8877799.0,8877800.0,8413665.0,8413399.0,8413827.0],"skipIndex":0,"section_code":"section535747","featured_images":"8877800,8877799,8877798,8877795,8877791,8413827,8413665,8413399","id":445750,"singleSection":true});				  						galleries[347833] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"parrot","link":"section415200.html","maxRecords":0.0,"photoIDs":[6255568.0,6255569.0,6255571.0,6255574.0],"skipIndex":0,"section_code":"section415200","featured_images":"6255574,6255571,6255569,6255568","id":347833,"singleSection":true});				  						galleries[232299] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"portfolio","link":"section283752.html","maxRecords":0.0,"photoIDs":[3840869.0,5172362.0,3816269.0,3816290.0,3816301.0,5166463.0,5554180.0,5595617.0,3816354.0,5133959.0,5729143.0,5166455.0,3816432.0,3816449.0,5174108.0,4070198.0,5166482.0,3816514.0,3816555.0,5595621.0,3816578.0,5166448.0,3816583.0,5166461.0,3816584.0,5173658.0,5361564.0,5595609.0,3816585.0,3816591.0,5361527.0,5729148.0,3816598.0,3816670.0,5174110.0,3816884.0,5174106.0,3816675.0,5361502.0],"skipIndex":0,"section_code":"section283752","featured_images":"5729148,5729143,5595621,5595617,5595609,5554180,5361564,5361527,5361502,5174110","id":232299,"singleSection":true});				  						galleries[447157] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"restir shop windows project","link":"section537657.html","maxRecords":0.0,"photoIDs":[8448548.0,8448550.0,8448551.0],"skipIndex":0,"section_code":"section537657","featured_images":"8448551,8448550,8448548","id":447157,"singleSection":true});				  						galleries[347828] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"smile it might never happen","link":"section415196.html","maxRecords":0.0,"photoIDs":[6255471.0,6255472.0,6255473.0,6255474.0,6255475.0,6255477.0,6255479.0,6255480.0],"skipIndex":0,"section_code":"section415196","featured_images":"6255480,6255479,6255477,6255475,6255474,6255473,6255472,6255471","id":347828,"singleSection":true});				  						galleries[466944] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"stimulus respond","link":"section565730.html","maxRecords":0.0,"photoIDs":[8876797.0,8876816.0,8876818.0,8876820.0,8876825.0,8876830.0,8876832.0,8876833.0],"skipIndex":0,"section_code":"section565730","featured_images":"8876833,8876832,8876830,8876825,8876820,8876818,8876816,8876797","id":466944,"singleSection":true});				  						galleries[414928] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"tdlm lookbook","link":"section496580.html","maxRecords":0.0,"photoIDs":[8039266.0,8039267.0,8039269.0,8039270.0,8039271.0,7653679.0],"skipIndex":0,"section_code":"section496580","featured_images":"8039271,8039270,8039269,8039267,8039266,7653679","id":414928,"singleSection":true});				  						galleries[233632] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"VIP","link":"section284991.html","maxRecords":0.0,"photoIDs":[3838519.0,3838521.0,3838522.0,5554216.0,3838526.0,4435529.0],"skipIndex":0,"section_code":"section284991","featured_images":"5554216,4435529,3838526,3838522,3838521,3838519","id":233632,"singleSection":true});				  						galleries[347831] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ysl","link":"section415197.html","maxRecords":0.0,"photoIDs":[6255487.0,6255492.0,6255493.0],"skipIndex":0,"section_code":"section415197","featured_images":"6255493,6255492,6255487","id":347831,"singleSection":true});				  						galleries[470510] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"glass magazine","link":"section571587.html","maxRecords":0.0,"photoIDs":[8939690.0,8939701.0,8939702.0,8939707.0,8939714.0,8939719.0,8939729.0],"skipIndex":0,"section_code":"section571587","featured_images":"8939729,8939719,8939714,8939707,8939702,8939701,8939690","id":470510,"singleSection":true});				  						galleries[470516] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"lime magazine","link":"section571594.html","maxRecords":0.0,"photoIDs":[8940030.0,8940031.0,8940033.0,8940034.0,8940037.0],"skipIndex":0,"section_code":"section571594","featured_images":"8940037,8940034,8940033,8940031,8940030","id":470516,"singleSection":true});				  						galleries[355247] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"narcissism and other demons","link":"section423599.html","maxRecords":0.0,"photoIDs":[6437044.0,6437050.0],"skipIndex":0,"section_code":"section423599","featured_images":"6437050,6437044","id":355247,"singleSection":true});				  						galleries[347843] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wendy james","link":"section415216.html","maxRecords":0.0,"photoIDs":[6255869.0,6255871.0,6255880.0,7643294.0,7643300.0],"skipIndex":0,"section_code":"section415216","featured_images":"7643300,7643294,6255880,6255871,6255869","id":347843,"singleSection":true});				  						galleries[347939] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"men and children","link":"section415316.html","maxRecords":0.0,"photoIDs":[6257496.0,6257513.0],"skipIndex":0,"section_code":"section415316","featured_images":"6257513,6257496","id":347939,"singleSection":true});				  						galleries[375023] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"post-structure","link":"section446552.html","maxRecords":0.0,"photoIDs":[6913235.0,6913359.0,6913366.0,6913227.0,6913361.0,6913228.0,6913357.0,6913383.0],"skipIndex":0,"section_code":"section446552","featured_images":"6913383,6913366,6913361,6913359,6913357,6913235,6913228,6913227","id":375023,"singleSection":true});				  						galleries[357901] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"perfume","link":"section426575.html","maxRecords":0.0,"photoIDs":[6502266.0,6502272.0,6502273.0,6502274.0,6502275.0,6502276.0,7643078.0],"skipIndex":0,"section_code":"section426575","featured_images":"7643078,6502276,6502275,6502274,6502273,6502272,6502266","id":357901,"singleSection":true});				  						galleries[449317] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"6 magazine","link":"section540762.html","maxRecords":0.0,"photoIDs":[8500967.0,8500968.0,8501040.0,8501042.0,8502497.0,8502493.0],"skipIndex":0,"section_code":"section540762","featured_images":"8502497,8502493,8501042,8501040,8500968,8500967","id":449317,"singleSection":true});				  						galleries[349753] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Break","link":"section417507_349753.html","maxRecords":0.0,"photoIDs":[6305191.0,6305192.0,6305193.0],"skipIndex":0,"section_code":"section417507","featured_images":"6305193,6305192,6305191","id":349753,"singleSection":false});				  						galleries[448789] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"junior magazine","link":"section540056.html","maxRecords":0.0,"photoIDs":[8488382.0,8488385.0,8488391.0,8488396.0],"skipIndex":0,"section_code":"section540056","featured_images":"8488396,8488391,8488385,8488382","id":448789,"singleSection":true});				  						galleries[452915] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"its so vague","link":"section547015.html","maxRecords":0.0,"photoIDs":[8568211.0],"skipIndex":0,"section_code":"section547015","featured_images":8568211.0,"id":452915,"singleSection":true});				  						galleries[450732] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"junior magazine ","link":"section542802.html","maxRecords":0.0,"photoIDs":[8530802.0,8530803.0,8530805.0,8530808.0],"skipIndex":0,"section_code":"section542802","featured_images":"8530808,8530805,8530803,8530802","id":450732,"singleSection":true});				  						galleries[406683] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"margot henderson","link":"section486390.html","maxRecords":0.0,"photoIDs":[5174121.0,7500974.0],"skipIndex":0,"section_code":"section486390","featured_images":"7500974,5174121","id":406683,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9087567';
imageSets[2] = '6255515';
imageSets[3] = '9087570,9087568,9087567,9087566,9087565,9087564,8979165,8979163,8979149,8940037,8940034,8940033,8940031,8940030,8939729,8939719,8939714,8939707,8939702,8939701,8939690,8877818,8877810,8877809,8877808,8877807,8877806,8877805,8877800,8877799,8877798,8877795,8877791,8876833,8876832,8876830,8876825,8876820,8876818,8876816,8876797,8568211,8530808,8530805,8530803,8530802,8502497,8502493,8501042,8501040';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/darcygwyer/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/darcygwyer/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 += 'section283752.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 && 'section283752' != '') {
					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 = 'matthew holroyd - art director/editor/stylist: ' + 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.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;
	}
}

			

