window.thumbnails = {};
															thumbnails[2181945] = clik.newPhoto({"id":2181945,"src":"Prinul @ S-PbUniversity_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Prinul Patel","height":195});
															thumbnails[2892934] = clik.newPhoto({"id":2892934,"src":"Transition_Poster2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":198});
															thumbnails[2944157] = clik.newPhoto({"id":2944157,"src":"matinbleu_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":175});
															thumbnails[4643007] = clik.newPhoto({"id":4643007,"src":"Afisha_Mag_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Article in Afisha Magazine","height":252});
															thumbnails[5397143] = clik.newPhoto({"id":5397143,"src":"logo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[5082274] = clik.newPhoto({"id":5082274,"src":"Moss__Co_Map_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Map of Gallery","height":94});
															thumbnails[3852004] = clik.newPhoto({"id":3852004,"src":"Ishikawa_news_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Ishikawa news","height":177});
															thumbnails[5421925] = clik.newPhoto({"id":5421925,"src":"Banco_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Banco","height":93});
															thumbnails[5422136] = clik.newPhoto({"id":5422136,"src":"Noto_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Noto","height":87});
															thumbnails[4321183] = clik.newPhoto({"id":4321183,"src":"securedownload1_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Girl in Kanazawa Series","height":173});
															thumbnails[5085871] = clik.newPhoto({"id":5085871,"src":"Wild_flower_detail1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Wild flower (detail)","height":172});
															thumbnails[4786391] = clik.newPhoto({"id":4786391,"src":"Roma_original_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Roma","height":189});
															thumbnails[4704166] = clik.newPhoto({"id":4704166,"src":"IMG_0202_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Garden Bench","height":87});
															thumbnails[5421927] = clik.newPhoto({"id":5421927,"src":"Cachoeira_das_borboletas__thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Cachoeira das borboletas ","height":93});
															thumbnails[5422135] = clik.newPhoto({"id":5422135,"src":"Noto_ii_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Noto (ii)","height":87});
															thumbnails[4702245] = clik.newPhoto({"id":4702245,"src":"Pylon_series_x_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Pylon series x","height":179});
															thumbnails[5101156] = clik.newPhoto({"id":5101156,"src":"mandy_expo2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Moss & Co Gallery","height":173});
															thumbnails[5421929] = clik.newPhoto({"id":5421929,"src":"Cachoeira_das_Borboletas_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Cachoeira das Borboletas","height":181});
															thumbnails[5422138] = clik.newPhoto({"id":5422138,"src":"Rail_Track_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Rail Track","height":87});
															thumbnails[5558398] = clik.newPhoto({"id":5558398,"src":"07440026_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"North London","height":197});
															thumbnails[5421930] = clik.newPhoto({"id":5421930,"src":"Itatiba_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Itatiba","height":93});
															thumbnails[5421934] = clik.newPhoto({"id":5421934,"src":"Tiradentes_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Tiradentes","height":181});
															thumbnails[5863401] = clik.newPhoto({"id":5863401,"src":"Wlanut1_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Black Walnut Edged Unit","height":98});
															thumbnails[5421931] = clik.newPhoto({"id":5421931,"src":"Sao_Thome_das_Letras_iii_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Sao Thome das Letras (iii)","height":93});
															thumbnails[5422137] = clik.newPhoto({"id":5422137,"src":"Rail_Track_ii_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Rail Track (ii)","height":194});
															thumbnails[2954404] = clik.newPhoto({"id":2954404,"src":"streets11_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Fruits du Voyage","height":196});
															thumbnails[5421932] = clik.newPhoto({"id":5421932,"src":"Sao_Thome_das_Letras__thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Sao Thome das Letras ","height":93});
															thumbnails[5422141] = clik.newPhoto({"id":5422141,"src":"Sakura_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Sakura","height":87});
															thumbnails[1952692] = clik.newPhoto({"id":1952692,"src":"Ipe_Decking_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Ipe Decking","height":98});
															thumbnails[5101157] = clik.newPhoto({"id":5101157,"src":"mandy_expo4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Mandy & Rashid Belmokhtar Exhibiiton","height":98});
															thumbnails[5421935] = clik.newPhoto({"id":5421935,"src":"Tree_trunk_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Tree trunk","height":93});
															thumbnails[7354044] = clik.newPhoto({"id":7354044,"src":"Composition1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Composition1","height":172});
															thumbnails[7354045] = clik.newPhoto({"id":7354045,"src":"Composition1b_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Composition1b","height":172});
															thumbnails[7354046] = clik.newPhoto({"id":7354046,"src":"Composition2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Composition2","height":98});
															thumbnails[5076097] = clik.newPhoto({"id":5076097,"src":"Wild_flower_1detail1_thumb.jpg","galleries_id":181521,"server_id":1,"link":"photo_5076097.html","width":130,"caption":"Wild Flower (detail)","height":173});
															thumbnails[4321180] = clik.newPhoto({"id":4321180,"src":"Girl_in_Kanazawa_00041_thumb.jpg","galleries_id":181521,"server_id":1,"link":"photo_4321180.html","width":130,"caption":"Girl in Kanazawa ","height":181});
															thumbnails[5076166] = clik.newPhoto({"id":5076166,"src":"River_Ganges_Print_thumb.jpg","galleries_id":181521,"server_id":1,"link":"photo_5076166.html","width":130,"caption":"River Ganges","height":164});
															thumbnails[5076144] = clik.newPhoto({"id":5076144,"src":"Roma_original_DAF40E4B-2219-B5B5-4CAAF59A34A9749C_thumb.jpg","galleries_id":181521,"server_id":1,"link":"photo_5076144.html","width":130,"caption":"Roma","height":189});
															thumbnails[8547804] = clik.newPhoto({"id":8547804,"src":"Palmeiraemail_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_8547804.html","width":130,"caption":"Palmeira","height":199});
															thumbnails[8406041] = clik.newPhoto({"id":8406041,"src":"Wild_Flower_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_8406041.html","width":130,"caption":"Wild Flower","height":213});
															thumbnails[4299685] = clik.newPhoto({"id":4299685,"src":"Girl_in_Kanazawa_green_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_4299685.html","width":130,"caption":"Girl In Kanazawa Series","height":186});
															thumbnails[4299688] = clik.newPhoto({"id":4299688,"src":"Girl_in_Kanazawa_0004_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_4299688.html","width":130,"caption":"Girl In Kanazawa Series","height":181});
															thumbnails[8406021] = clik.newPhoto({"id":8406021,"src":"Girl_in_Kanazawa_Seriesii_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_8406021.html","width":130,"caption":"Girl in Kanazawa Series","height":173});
															thumbnails[8406019] = clik.newPhoto({"id":8406019,"src":"Composition1_2F235D42-1EC9-D45B-1C0891D5A1373FD0_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_8406019.html","width":130,"caption":"Composition (i)","height":244});
															thumbnails[8406020] = clik.newPhoto({"id":8406020,"src":"Composition1b_2F2362B0-1EC9-D45B-1C24DA9872074B8D_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_8406020.html","width":130,"caption":"Composition (ib)","height":172});
															thumbnails[8406018] = clik.newPhoto({"id":8406018,"src":"Compositioniii_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_8406018.html","width":130,"caption":"Composition (iii)","height":98});
															thumbnails[3851914] = clik.newPhoto({"id":3851914,"src":"Pylon_series_iii_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3851914.html","width":130,"caption":"Pylon Series (iii)","height":87});
															thumbnails[3852014] = clik.newPhoto({"id":3852014,"src":"Pylon_series_iv_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3852014.html","width":130,"caption":"Pylon Series (iv)","height":217});
															thumbnails[3852005] = clik.newPhoto({"id":3852005,"src":"Plyon_Wood-Cut_Block_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3852005.html","width":130,"caption":"Wood-Cut Block","height":357});
															thumbnails[4642728] = clik.newPhoto({"id":4642728,"src":"Pylon_Series_vi_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_4642728.html","width":130,"caption":"Pylon Series (vi)","height":303});
															thumbnails[4626297] = clik.newPhoto({"id":4626297,"src":"Pylon_ochre_1_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_4626297.html","width":130,"caption":"Landscape with Pylons (ii)","height":201});
															thumbnails[3703690] = clik.newPhoto({"id":3703690,"src":"Pylons_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3703690.html","width":130,"caption":"Landscape with Pylons ","height":84});
															thumbnails[4226845] = clik.newPhoto({"id":4226845,"src":"The_sky_in_winter_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_4226845.html","width":130,"caption":"The Sky in Winter","height":168});
															thumbnails[3703719] = clik.newPhoto({"id":3703719,"src":"River_Ganges_1234_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3703719.html","width":130,"caption":"River Ganges","height":164});
															thumbnails[3601276] = clik.newPhoto({"id":3601276,"src":"Small_boy11_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3601276.html","width":130,"caption":"Small boy","height":173});
															thumbnails[3601271] = clik.newPhoto({"id":3601271,"src":"Capoeira1_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3601271.html","width":130,"caption":"Capoeira","height":98});
															thumbnails[3703810] = clik.newPhoto({"id":3703810,"src":"leaves_on_the_water_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3703810.html","width":130,"caption":"leaves on the water","height":130});
															thumbnails[3703809] = clik.newPhoto({"id":3703809,"src":"Indian_Lady_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3703809.html","width":130,"caption":"Indian Lady","height":174});
															thumbnails[3703808] = clik.newPhoto({"id":3703808,"src":"Brother_and_Sister_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3703808.html","width":130,"caption":"Brother and Sister","height":90});
															thumbnails[3703812] = clik.newPhoto({"id":3703812,"src":"standing_in_the_rain_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3703812.html","width":130,"caption":"Standing in the Rain","height":90});
															thumbnails[3703760] = clik.newPhoto({"id":3703760,"src":"Route_Map1_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_3703760.html","width":130,"caption":"London - St Petersburg  On Bicycle 54 days.. with a tent and two guitars","height":87});
															thumbnails[1998873] = clik.newPhoto({"id":1998873,"src":"Po_ouli-(ii)_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_1998873.html","width":130,"caption":"'Po-Ouli' Motif (London - St Petersburg)","height":173});
															thumbnails[1998871] = clik.newPhoto({"id":1998871,"src":"po_ouli-(i)_thumb.jpg","galleries_id":130833,"server_id":1,"link":"photo_1998871.html","width":130,"caption":"'Po-ouli' Motif(London - St Petersburg)","height":173});
															thumbnails[5677452] = clik.newPhoto({"id":5677452,"src":"Cedar_planters_2_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_5677452.html","width":130,"caption":"Cedar planter, (w)0.8m x (d)0.8m x (h)0.6m  ","height":162});
															thumbnails[6187477] = clik.newPhoto({"id":6187477,"src":"Teak_Bench_ii_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_6187477.html","width":130,"caption":"Teak Bench (ii)","height":173});
															thumbnails[6187478] = clik.newPhoto({"id":6187478,"src":"Teak_Bench_iii_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_6187478.html","width":130,"caption":"Teak Bench (iii)","height":173});
															thumbnails[6187479] = clik.newPhoto({"id":6187479,"src":"Teak_Bench_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_6187479.html","width":130,"caption":"Teak Bench","height":180});
															thumbnails[4704167] = clik.newPhoto({"id":4704167,"src":"IMG_0213_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_4704167.html","width":130,"caption":"Garden Bench","height":87});
															thumbnails[4704165] = clik.newPhoto({"id":4704165,"src":"IMG_0200_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_4704165.html","width":130,"caption":"Garden Bench","height":87});
															thumbnails[4704168] = clik.newPhoto({"id":4704168,"src":"IMG_0219_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_4704168.html","width":130,"caption":"Garden Bench","height":87});
															thumbnails[1952678] = clik.newPhoto({"id":1952678,"src":"Maple_and_wenge1_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_1952678.html","width":130,"caption":"Maple and Wenge coffee table","height":86});
															thumbnails[1951878] = clik.newPhoto({"id":1951878,"src":"Oak_side_table_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_1951878.html","width":130,"caption":"Oak Side-table","height":86});
															thumbnails[1952687] = clik.newPhoto({"id":1952687,"src":"Teak_shower_tray_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_1952687.html","width":130,"caption":"Teak_shower_tray","height":86});
															thumbnails[1952694] = clik.newPhoto({"id":1952694,"src":"walnut_table_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_1952694.html","width":130,"caption":"Walnut Table","height":87});
															thumbnails[1952697] = clik.newPhoto({"id":1952697,"src":"Cedar_plant_pot_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_1952697.html","width":130,"caption":"Cedar planter","height":196});
															thumbnails[2955518] = clik.newPhoto({"id":2955518,"src":"Iroko stands_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_2955518.html","width":130,"caption":"Iroko stands","height":196});
															thumbnails[1952674] = clik.newPhoto({"id":1952674,"src":"Mirror_frame_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_1952674.html","width":130,"caption":"Oak mirror frame","height":86});
															thumbnails[1952672] = clik.newPhoto({"id":1952672,"src":"oak_frame_thumb.jpg","galleries_id":130965,"server_id":1,"link":"photo_1952672.html","width":130,"caption":"Oak frame ","height":86});
															thumbnails[5738103] = clik.newPhoto({"id":5738103,"src":"planter_prices1_thumb.jpg","galleries_id":321641,"server_id":1,"link":"photo_5738103.html","width":130,"caption":"Standard Sizes + Prices","height":101});
															thumbnails[5558397] = clik.newPhoto({"id":5558397,"src":"07440018_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_5558397.html","width":130,"caption":"Camden","height":197});
															thumbnails[5558399] = clik.newPhoto({"id":5558399,"src":"07440033_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_5558399.html","width":130,"caption":"","height":197});
															thumbnails[5422139] = clik.newPhoto({"id":5422139,"src":"Rope_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_5422139.html","width":130,"caption":"Rope in a greenhouse, Noto, Japan","height":194});
															thumbnails[5422140] = clik.newPhoto({"id":5422140,"src":"Sakura_ii_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_5422140.html","width":130,"caption":"Sakura, Noto, Japan","height":87});
															thumbnails[5421933] = clik.newPhoto({"id":5421933,"src":"Sao_Thome_das_Letras_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_5421933.html","width":130,"caption":"Sao Thome das Letras","height":181});
															thumbnails[5422142] = clik.newPhoto({"id":5422142,"src":"Slippers_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_5422142.html","width":130,"caption":"Slippers at a temple, Japan","height":194});
															thumbnails[8406056] = clik.newPhoto({"id":8406056,"src":"france2010_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_8406056.html","width":130,"caption":"France 2010","height":173});
															thumbnails[5421236] = clik.newPhoto({"id":5421236,"src":"Palm_Tree123_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_5421236.html","width":130,"caption":"Itatiba, Brasil","height":181});
															thumbnails[8406017] = clik.newPhoto({"id":8406017,"src":"BuenosAires_thumb.jpg","galleries_id":445175,"server_id":1,"link":"photo_8406017.html","width":130,"caption":"Buenos Aires 2011","height":174});
															thumbnails[5085332] = clik.newPhoto({"id":5085332,"src":"Yard6_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5085332.html","width":130,"caption":"Gallery before","height":98});
															thumbnails[5085838] = clik.newPhoto({"id":5085838,"src":"Yard_8_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5085838.html","width":130,"caption":"Gallery in progress","height":98});
															thumbnails[5084589] = clik.newPhoto({"id":5084589,"src":"yard2_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5084589.html","width":130,"caption":"Gallery in Progress","height":173});
															thumbnails[5085333] = clik.newPhoto({"id":5085333,"src":"Yard7_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5085333.html","width":130,"caption":"Gallery Space","height":173});
															thumbnails[5084616] = clik.newPhoto({"id":5084616,"src":"Yard4_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5084616.html","width":130,"caption":"Gallery@Moss&Co","height":98});
															thumbnails[5085331] = clik.newPhoto({"id":5085331,"src":"Yard_5_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5085331.html","width":130,"caption":"Moss & Co Galery","height":98});
															thumbnails[5082112] = clik.newPhoto({"id":5082112,"src":"news_article_E39086E2-2219-B5B5-4C8308278CFEA128_thumb.JPG","galleries_id":287531,"server_id":1,"link":"photo_5082112.html","width":130,"caption":"Elona Bennett FRBS Retrospective exhibition ","height":140});
															thumbnails[5084586] = clik.newPhoto({"id":5084586,"src":"On_being_2_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5084586.html","width":130,"caption":"'On Being' Exhibition ","height":194});
															thumbnails[5084587] = clik.newPhoto({"id":5084587,"src":"On_being_3_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5084587.html","width":130,"caption":"'On Being' Exhibition","height":87});
															thumbnails[5084588] = clik.newPhoto({"id":5084588,"src":"on_being2_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5084588.html","width":130,"caption":"'On Being' Exhibition","height":98});
															thumbnails[5085600] = clik.newPhoto({"id":5085600,"src":"Mizu-Ki-Ishi_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5085600.html","width":130,"caption":"Mizu-Ki-Ishi Exhibition","height":92});
															thumbnails[5085980] = clik.newPhoto({"id":5085980,"src":"Mizu_Article1_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5085980.html","width":130,"caption":"Mizu-Ki-Ishi article","height":259});
															thumbnails[5085993] = clik.newPhoto({"id":5085993,"src":"Memories_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5085993.html","width":130,"caption":"Memories Exhibition November 2009","height":169});
															thumbnails[5101155] = clik.newPhoto({"id":5101155,"src":"Mandy_expo1_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5101155.html","width":130,"caption":"Mandy & Rashid Belmokhtar Exhibiiton","height":173});
															thumbnails[5101154] = clik.newPhoto({"id":5101154,"src":"mandy_expo_6_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5101154.html","width":130,"caption":"Mandy & Rashid Belmokhtar Exhibiiton ","height":173});
															thumbnails[5101158] = clik.newPhoto({"id":5101158,"src":"mandy_expo5_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5101158.html","width":130,"caption":"Moss & Co Gallery","height":98});
															thumbnails[5201314] = clik.newPhoto({"id":5201314,"src":"Patricia_article_2_thumb.jpg","galleries_id":287531,"server_id":1,"link":"photo_5201314.html","width":130,"caption":"Patricia Terrapon Exhibition ","height":151});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[287531] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions at Moss & Co","link":"section344928.html","maxRecords":0.0,"photoIDs":[5085332.0,5085838.0,5084589.0,5085333.0,5084616.0,5085331.0,5082112.0,5084586.0,5084587.0,5084588.0,5085600.0,5085980.0,5085993.0,5101155.0,5101154.0,5101158.0,5201314.0],"skipIndex":0,"section_code":"section344928","featured_images":5082112.0,"id":287531,"singleSection":true});				  						galleries[130965] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Furniture","link":"section170295.html","maxRecords":0.0,"photoIDs":[5677452.0,6187477.0,6187478.0,6187479.0,4704167.0,4704165.0,4704168.0,1952678.0,1951878.0,1952687.0,1952694.0,1952697.0,2955518.0,1952674.0,1952672.0],"skipIndex":0,"section_code":"section170295","featured_images":"2955518,1952694,1952687,1952678,1952672,1951878","id":130965,"singleSection":true});				  						galleries[445175] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photography","link":"section366763.html","maxRecords":0.0,"photoIDs":[5558397.0,5558399.0,5422139.0,5422140.0,5421933.0,5422142.0,8406056.0,5421236.0,8406017.0],"skipIndex":0,"section_code":"section366763","featured_images":"5422139,5421236","id":445175,"singleSection":true});				  						galleries[321641] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Planters","link":"section385830.html","maxRecords":0.0,"photoIDs":[5738103.0],"skipIndex":0,"section_code":"section385830","featured_images":5738103.0,"id":321641,"singleSection":true});				  						galleries[181521] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Work for Sale","link":"section225266.html","maxRecords":0.0,"photoIDs":[5076097.0,4321180.0,5076166.0,5076144.0],"skipIndex":0,"section_code":"section225266","featured_images":"5076166,5076144,5076097,4321180","id":181521,"singleSection":true});				  						galleries[130833] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art","link":"gallery.html","maxRecords":0.0,"photoIDs":[8547804.0,8406041.0,4299685.0,4299688.0,8406021.0,8406019.0,8406020.0,8406018.0,3851914.0,3852014.0,3852005.0,4642728.0,4626297.0,3703690.0,4226845.0,3703719.0,3601276.0,3601271.0,3703810.0,3703809.0,3703808.0,3703812.0,3703760.0,1998873.0,1998871.0],"skipIndex":0,"section_code":"gallery","featured_images":3703719.0,"id":130833,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8547804,8406041,5085871,4299685,3851914,3852014,3703690,5421236';
imageSets[2] = '3852004,1952678,5082112,1951878,3703719,5422139,1952687,1952694,2955518,5421236,1952672';
imageSets[3] = '5397143,4643007,5085332,5082274,5076097,5085838,4704167,3852004,5084589,4704165,4704168,5085871,5085333,4321183,5084616,5085331,4299688,4704166,3852005,4642728,5082112,4702245,5101156,5084586,3703809,3703808,5084587,5076166,5085600,5084588,5076144,5085993,5085980,5101155,5101157,5101154';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/prinulpatel/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/prinulpatel/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 += 'section225266.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 && 'section225266' != '') {
					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 = 'Prinul Patel: ' + 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.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="">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					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="">';
				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;
	}
}

			

