window.thumbnails = {};
															thumbnails[577201] = clik.newPhoto({"id":577201,"src":"tex CU4_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"This detail was inspired by the pebbles, sand and sea-weed left at the high tide mark.  ","height":173});
															thumbnails[591835] = clik.newPhoto({"id":591835,"src":"beach1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Rosemary Blackmore","height":216});
															thumbnails[615036] = clik.newPhoto({"id":615036,"src":"mok_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Our newest model Sold","height":173});
															thumbnails[591740] = clik.newPhoto({"id":591740,"src":"rocco_thumb.jpg","galleries_id":44398,"server_id":18,"link":"photo_591740.html","width":130,"caption":" <br>\r\n St Ouen's Bay","height":98});
															thumbnails[591743] = clik.newPhoto({"id":591743,"src":"corb_thumb.jpg","galleries_id":44398,"server_id":18,"link":"photo_591743.html","width":130,"caption":" Corbiere Light-house","height":66});
															thumbnails[619024] = clik.newPhoto({"id":619024,"src":"DSC01558_thumb.JPG","galleries_id":44398,"server_id":18,"link":"photo_619024.html","width":130,"caption":"Les Ecrehous Reef","height":67});
															thumbnails[619025] = clik.newPhoto({"id":619025,"src":"DSC01877_thumb.JPG","galleries_id":44398,"server_id":18,"link":"photo_619025.html","width":130,"caption":"St Ouen","height":98});
															thumbnails[619026] = clik.newPhoto({"id":619026,"src":"DSC01953_thumb.JPG","galleries_id":44398,"server_id":18,"link":"photo_619026.html","width":130,"caption":"Rock Formation","height":98});
															thumbnails[619028] = clik.newPhoto({"id":619028,"src":"DSC02020_1_thumb.JPG","galleries_id":44398,"server_id":18,"link":"photo_619028.html","width":130,"caption":"Watersplash","height":98});
															thumbnails[619029] = clik.newPhoto({"id":619029,"src":"DSC04086_thumb.JPG","galleries_id":44398,"server_id":18,"link":"photo_619029.html","width":130,"caption":"Dawn, St Ouen's Bay","height":98});
															thumbnails[619030] = clik.newPhoto({"id":619030,"src":"grass_thumb.jpg","galleries_id":44398,"server_id":18,"link":"photo_619030.html","width":130,"caption":"Marram Grass","height":98});
															thumbnails[619031] = clik.newPhoto({"id":619031,"src":"wood_thumb.jpg","galleries_id":44398,"server_id":18,"link":"photo_619031.html","width":130,"caption":"Erosion","height":98});
															thumbnails[575826] = clik.newPhoto({"id":575826,"src":"insp1_thumb.jpg","galleries_id":44398,"server_id":18,"link":"photo_575826.html","width":130,"caption":" La Corbiere Point","height":98});
															thumbnails[575835] = clik.newPhoto({"id":575835,"src":"insp2_thumb.jpg","galleries_id":44398,"server_id":18,"link":"photo_575835.html","width":130,"caption":" St Aubin's Village","height":98});
															thumbnails[575838] = clik.newPhoto({"id":575838,"src":"insp3_thumb.jpg","galleries_id":44398,"server_id":18,"link":"photo_575838.html","width":130,"caption":" Plemont Cove","height":98});
															thumbnails[545860] = clik.newPhoto({"id":545860,"src":"Tub_Small1_thumb.jpeg","galleries_id":42953,"server_id":18,"link":"photo_545860.html","width":130,"caption":"HMS Seagull.<br>\r\n ","height":98});
															thumbnails[577220] = clik.newPhoto({"id":577220,"src":"tub copy1_thumb.jpg","galleries_id":42953,"server_id":18,"link":"photo_577220.html","width":130,"caption":"Chug-Chug.  <br>\r\n ","height":98});
															thumbnails[577280] = clik.newPhoto({"id":577280,"src":"panel cu_thumb.jpg","galleries_id":44394,"server_id":18,"link":"photo_577280.html","width":130,"caption":"Wall Panel ","height":98});
															thumbnails[577303] = clik.newPhoto({"id":577303,"src":"wall panel cu_thumb.jpg","galleries_id":44394,"server_id":18,"link":"photo_577303.html","width":130,"caption":"Steel and Ceramic Wall Panel","height":98});
															thumbnails[584913] = clik.newPhoto({"id":584913,"src":"ls panel_thumb.jpg","galleries_id":44394,"server_id":18,"link":"photo_584913.html","width":130,"caption":"Stainless steel\/Mild steel\/Ceramic wall panel.<br>\r\n210 x 40cms","height":150});
															thumbnails[584914] = clik.newPhoto({"id":584914,"src":"cu panel_thumb.jpg","galleries_id":44394,"server_id":18,"link":"photo_584914.html","width":130,"caption":"Close Up","height":98});
															thumbnails[593841] = clik.newPhoto({"id":593841,"src":"but11_thumb.jpg","galleries_id":44375,"server_id":18,"link":"photo_593841.html","width":130,"caption":"Ceramic Buttons 1","height":57});
															thumbnails[593849] = clik.newPhoto({"id":593849,"src":"newpanel_thumb.jpg","galleries_id":44394,"server_id":18,"link":"photo_593849.html","width":130,"caption":"Stainless steel and ceramic.<br>\r\n120 x 40cms","height":436});
															thumbnails[593851] = clik.newPhoto({"id":593851,"src":"but21_thumb.jpg","galleries_id":44375,"server_id":18,"link":"photo_593851.html","width":130,"caption":"Buttons 2","height":56});
															thumbnails[619033] = clik.newPhoto({"id":619033,"src":"DSC03441_thumb.JPG","galleries_id":44394,"server_id":18,"link":"photo_619033.html","width":130,"caption":"Ceramic Bullrushes   Sold","height":173});
															thumbnails[2916578] = clik.newPhoto({"id":2916578,"src":"coast boat copy_thumb.jpg","galleries_id":42953,"server_id":18,"link":"photo_2916578.html","width":130,"caption":"H.M.S. Pinafore","height":173});
															thumbnails[2916584] = clik.newPhoto({"id":2916584,"src":"junk copy_thumb.jpg","galleries_id":42953,"server_id":18,"link":"photo_2916584.html","width":130,"caption":"Junk","height":173});
															thumbnails[2983328] = clik.newPhoto({"id":2983328,"src":"oct boat resize _thumb.jpg","galleries_id":42953,"server_id":18,"link":"photo_2983328.html","width":130,"caption":"'GO WEST'","height":173});
															thumbnails[554590] = clik.newPhoto({"id":554590,"src":"1_thumb.jpeg","galleries_id":42953,"server_id":18,"link":"photo_554590.html","width":130,"caption":"Swing Boat.  <br>\r\n ","height":173});
															thumbnails[575390] = clik.newPhoto({"id":575390,"src":"smboat_thumb1_thumb.jpg","galleries_id":42953,"server_id":18,"link":"photo_575390.html","width":130,"caption":"High and Dry<br>\r\n ","height":173});
															thumbnails[575854] = clik.newPhoto({"id":575854,"src":"8_thumb.jpeg","galleries_id":44377,"server_id":18,"link":"photo_575854.html","width":130,"caption":"Bag A. £39.<br>\r\nHand Felted. 24 x 40 cms","height":173});
															thumbnails[576898] = clik.newPhoto({"id":576898,"src":"bag d1_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576898.html","width":130,"caption":"Bag D. £68.<br>\r\nKnitted and Crocheted.<br>\r\n35 x 35 cms","height":165});
															thumbnails[576899] = clik.newPhoto({"id":576899,"src":"bag e_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576899.html","width":130,"caption":"Bag E. £68.<br>\r\nCrocheted. 35 x 33 cms","height":173});
															thumbnails[576900] = clik.newPhoto({"id":576900,"src":"bag f_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576900.html","width":130,"caption":"Bag F. £45.<br>\r\n27 x 27 cms","height":161});
															thumbnails[576920] = clik.newPhoto({"id":576920,"src":"ba i_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576920.html","width":130,"caption":"Bag B. £68.<br>\r\nHand Knitted, felted<br>\r\nDecoration. 30 x 29 cms","height":173});
															thumbnails[576922] = clik.newPhoto({"id":576922,"src":"bag j_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576922.html","width":130,"caption":"Bag I. £45. Hand-made<br>\r\nFelt Bag. 36 x 33 cms","height":173});
															thumbnails[576928] = clik.newPhoto({"id":576928,"src":"bag L_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576928.html","width":130,"caption":"Bag L. £49<br>\r\nHand Crocheted<br>\r\n26 x 28 cms","height":169});
															thumbnails[576929] = clik.newPhoto({"id":576929,"src":"bag m_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576929.html","width":130,"caption":"Bag M. Hand Crocheted. £35<br>\r\n26 x 25 cms","height":156});
															thumbnails[576930] = clik.newPhoto({"id":576930,"src":"bag n_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576930.html","width":130,"caption":"Bag N. £65.Hand Crocheted<br>\r\nWool and Hemp.42 x 32 cms","height":161});
															thumbnails[576933] = clik.newPhoto({"id":576933,"src":"bag o_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576933.html","width":130,"caption":"Bag O. £48. Felted.<br>\r\n32 x 26 cms","height":173});
															thumbnails[576934] = clik.newPhoto({"id":576934,"src":"bag p_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576934.html","width":130,"caption":"Bag P. £65.<br>\r\n34 x 31 cms","height":164});
															thumbnails[576935] = clik.newPhoto({"id":576935,"src":"bag q_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576935.html","width":130,"caption":"Bag Q. £58. Knitted<br>\r\nand Felted. 60 x 34 cms","height":110});
															thumbnails[576939] = clik.newPhoto({"id":576939,"src":"bag s_thumb.jpg","galleries_id":44377,"server_id":18,"link":"photo_576939.html","width":130,"caption":"Bag R. £48.<br>\r\n24 x 34 cms","height":100});
															thumbnails[8411774] = clik.newPhoto({"id":8411774,"src":"DSC00814JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8411774.html","width":130,"caption":"Bag S","height":148});
															thumbnails[8411846] = clik.newPhoto({"id":8411846,"src":"DSC00815JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8411846.html","width":130,"caption":"Bag T","height":162});
															thumbnails[8411851] = clik.newPhoto({"id":8411851,"src":"DSC00816JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8411851.html","width":130,"caption":"Bag U","height":148});
															thumbnails[8411928] = clik.newPhoto({"id":8411928,"src":"DSC00817JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8411928.html","width":130,"caption":"Bag V","height":135});
															thumbnails[8411955] = clik.newPhoto({"id":8411955,"src":"DSC00818JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8411955.html","width":130,"caption":"Bag W","height":164});
															thumbnails[8411963] = clik.newPhoto({"id":8411963,"src":"DSC00820JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8411963.html","width":130,"caption":"Bag X","height":215});
															thumbnails[8411973] = clik.newPhoto({"id":8411973,"src":"DSC00823JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8411973.html","width":130,"caption":"Bag Y","height":131});
															thumbnails[8412020] = clik.newPhoto({"id":8412020,"src":"DSC00822JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8412020.html","width":130,"caption":"Scarf A","height":185});
															thumbnails[8412027] = clik.newPhoto({"id":8412027,"src":"DSC00824JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8412027.html","width":130,"caption":"Scarf B","height":176});
															thumbnails[8412029] = clik.newPhoto({"id":8412029,"src":"DSC00826JPG_thumb.jpg","galleries_id":44377,"server_id":38,"link":"photo_8412029.html","width":130,"caption":"Scarf C","height":180});
															thumbnails[575386] = clik.newPhoto({"id":575386,"src":"9_thumb.jpeg","galleries_id":44377,"server_id":18,"link":"photo_575386.html","width":130,"caption":"Bag Z. £38. Hand Felted. 24 x 27 cms","height":173});
															thumbnails[553198] = clik.newPhoto({"id":553198,"src":"rosiemural_thumb.jpg","galleries_id":42875,"server_id":18,"link":"photo_553198.html","width":130,"caption":"Hard at work","height":84});
															thumbnails[576846] = clik.newPhoto({"id":576846,"src":"poolfin_thumb.jpg","galleries_id":42875,"server_id":18,"link":"photo_576846.html","width":130,"caption":"Pool Mural","height":96});
															thumbnails[576848] = clik.newPhoto({"id":576848,"src":"_thumb.jpg","galleries_id":42875,"server_id":18,"link":"photo_576848.html","width":130,"caption":"Cellar Mural","height":98});
															thumbnails[576849] = clik.newPhoto({"id":576849,"src":"1_thumb1.jpg","galleries_id":42875,"server_id":18,"link":"photo_576849.html","width":130,"caption":"Cellar Mural 2","height":98});
															thumbnails[614960] = clik.newPhoto({"id":614960,"src":"mu2_thumb.jpg","galleries_id":42875,"server_id":18,"link":"photo_614960.html","width":130,"caption":"Stairwell Mural, <br>\r\nPrivate Home<br>\r\n ","height":91});
															thumbnails[614961] = clik.newPhoto({"id":614961,"src":"m3_thumb.jpg","galleries_id":42875,"server_id":18,"link":"photo_614961.html","width":130,"caption":"Stairwell Mural,<br>\r\nPrivate Home","height":87});
															thumbnails[614963] = clik.newPhoto({"id":614963,"src":"t4_thumb.jpg","galleries_id":42875,"server_id":18,"link":"photo_614963.html","width":130,"caption":"Stairwell Mural,<br>\r\nPrivate Home","height":198});
															thumbnails[576598] = clik.newPhoto({"id":576598,"src":"Quintet copy_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_576598.html","width":130,"caption":"Quintet. 44 x 34 cms.<br>\r\n<br>\r\n£45.00","height":92});
															thumbnails[576625] = clik.newPhoto({"id":576625,"src":"dozy fin1_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_576625.html","width":130,"caption":"Dozy Cow. 44 x 34 cms.<br>\r\n<br>\r\n£39.00<br>\r\n ","height":89});
															thumbnails[577189] = clik.newPhoto({"id":577189,"src":"Loyal Friend_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_577189.html","width":130,"caption":"Fishing Boats. 44 x 34 cms.<br>\r\n<br>\r\n£39.00","height":94});
															thumbnails[591739] = clik.newPhoto({"id":591739,"src":"newsummer_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_591739.html","width":130,"caption":"Summer. 44 x 34 cms.<br>\r\n<br>\r\n£39.00","height":92});
															thumbnails[607655] = clik.newPhoto({"id":607655,"src":"daisy_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_607655.html","width":130,"caption":"Gert and Daisy. <br>\r\n39 x 39 cms. £45","height":130});
															thumbnails[621097] = clik.newPhoto({"id":621097,"src":"jersey cow_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_621097.html","width":130,"caption":"The Jersey Cow,. <br>\r\nLitho print, <br>\r\n26 x 20 cms. £14.50","height":186});
															thumbnails[621101] = clik.newPhoto({"id":621101,"src":"mooveover_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_621101.html","width":130,"caption":"Moove Over. <br>\r\nLitho Print. <br>\r\n26 x 20 cms. £14.50","height":89});
															thumbnails[1664829] = clik.newPhoto({"id":1664829,"src":" cow 1 small_thumb.jpg","galleries_id":42950,"server_id":2,"link":"photo_1664829.html","width":130,"caption":"Nutmeg","height":98});
															thumbnails[1664833] = clik.newPhoto({"id":1664833,"src":"c0w 2 small_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_1664833.html","width":130,"caption":"Lily. A Genuine Jersey","height":98});
															thumbnails[2890670] = clik.newPhoto({"id":2890670,"src":"jep ad ps copy_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_2890670.html","width":130,"caption":"Winter Sun","height":173});
															thumbnails[6294136] = clik.newPhoto({"id":6294136,"src":"PuffResize_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_6294136.html","width":130,"caption":"Puffins","height":78});
															thumbnails[6297268] = clik.newPhoto({"id":6297268,"src":"sheprze_thumb.jpg","galleries_id":42950,"server_id":18,"link":"photo_6297268.html","width":130,"caption":"Longwool Sheep","height":131});
															thumbnails[8409606] = clik.newPhoto({"id":8409606,"src":"Hot_Gossip_jpg_copy_thumb.jpg","galleries_id":42950,"server_id":37,"link":"photo_8409606.html","width":130,"caption":"Hot Gossip","height":62});
															thumbnails[6280127] = clik.newPhoto({"id":6280127,"src":"daneresize_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_6280127.html","width":130,"caption":"Great Dane ","height":182});
															thumbnails[6280156] = clik.newPhoto({"id":6280156,"src":"labresize_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_6280156.html","width":130,"caption":"Labrador","height":185});
															thumbnails[6280183] = clik.newPhoto({"id":6280183,"src":"mokertesize_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_6280183.html","width":130,"caption":"Weimaraner","height":183});
															thumbnails[6280187] = clik.newPhoto({"id":6280187,"src":"meerkatsresize_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_6280187.html","width":130,"caption":"Meerkats Backlit SOLD","height":92});
															thumbnails[6297124] = clik.newPhoto({"id":6297124,"src":"canise_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_6297124.html","width":130,"caption":"Can I See!","height":126});
															thumbnails[7452491] = clik.newPhoto({"id":7452491,"src":"fig_sqJPG_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_7452491.html","width":130,"caption":"Fig. Oil on box canvas. 30 x 30cm","height":98});
															thumbnails[7452569] = clik.newPhoto({"id":7452569,"src":"apples_sq_JPG1_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_7452569.html","width":130,"caption":"Apples. Oil on box canvas. 30 x 30cm","height":98});
															thumbnails[7453465] = clik.newPhoto({"id":7453465,"src":"garlic_sq_jpgJPG_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_7453465.html","width":130,"caption":"Garlic. Oil on box canvas. 30 x 30 cm","height":98});
															thumbnails[7453572] = clik.newPhoto({"id":7453572,"src":"mushroom_sqJPG_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_7453572.html","width":130,"caption":"Mushroom. Oil on box canvas. 30 x 30 cm","height":98});
															thumbnails[7453576] = clik.newPhoto({"id":7453576,"src":"onion_sqJPG_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_7453576.html","width":130,"caption":"Onion. Oil on box canvas. 30 x 30 cm","height":98});
															thumbnails[7453583] = clik.newPhoto({"id":7453583,"src":"pair_sq_JPG_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_7453583.html","width":130,"caption":"Pair. Oil on box canvas. 30 x 30 cm","height":98});
															thumbnails[7453589] = clik.newPhoto({"id":7453589,"src":"pepper_sq_jpgJPG_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_7453589.html","width":130,"caption":"Pepper. Oil on box canvas. 30 x 30 cm","height":98});
															thumbnails[1785833] = clik.newPhoto({"id":1785833,"src":"splash copy_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_1785833.html","width":130,"caption":"Sea Wall, St Ouen, Jersey<br>\r\nOil on Canvas, 1520x1120cms<br>\r\nSold","height":98});
															thumbnails[2891416] = clik.newPhoto({"id":2891416,"src":"Madge_thumb.jpg","galleries_id":179363,"server_id":18,"link":"photo_2891416.html","width":130,"caption":"Madge\/SOLD","height":93});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[179363] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Original Paintings","link":"section222837.html","maxRecords":0.0,"photoIDs":[6280127.0,6280156.0,6280183.0,6280187.0,6297124.0,7452491.0,7452569.0,7453465.0,7453572.0,7453576.0,7453583.0,7453589.0,1785833.0,2891416.0],"skipIndex":0,"section_code":"section222837","featured_images":"7453589,7453583,7453576,7453572,7453465,7452569,7452491,6297124,6280187,6280183","id":179363,"singleSection":true});				  						galleries[42953] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"boats","link":"section67196_42953.html","maxRecords":0.0,"photoIDs":[545860.0,577220.0,2916578.0,2916584.0,2983328.0,554590.0,575390.0],"skipIndex":0,"section_code":"section67196","featured_images":554590.0,"id":42953,"singleSection":false});				  						galleries[44398] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1","link":"section67232.html","maxRecords":0.0,"photoIDs":[591740.0,591743.0,619024.0,619025.0,619026.0,619028.0,619029.0,619030.0,619031.0,575826.0,575835.0,575838.0],"skipIndex":0,"section_code":"section67232","featured_images":"619031,619030,619029,619028,619026,619025,619024,591743,591740,575838","id":44398,"singleSection":true});				  						galleries[44375] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"buttons","link":"section67196_44375.html","maxRecords":0.0,"photoIDs":[593841.0,593851.0],"skipIndex":0,"section_code":"section67196","featured_images":"593851,593841","id":44375,"singleSection":false});				  						galleries[44394] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wall panels","link":"section67196_44394.html","maxRecords":0.0,"photoIDs":[577280.0,577303.0,584913.0,584914.0,593849.0,619033.0],"skipIndex":0,"section_code":"section67196","featured_images":"619033,593849,584914,584913,577303,577280","id":44394,"singleSection":false});				  						galleries[44377] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bags and Scarves","link":"section67203.html","maxRecords":0.0,"photoIDs":[575854.0,576898.0,576899.0,576900.0,576920.0,576922.0,576928.0,576929.0,576930.0,576933.0,576934.0,576935.0,576939.0,8411774.0,8411846.0,8411851.0,8411928.0,8411955.0,8411963.0,8411973.0,8412020.0,8412027.0,8412029.0,575386.0],"skipIndex":0,"section_code":"section67203","featured_images":"8412029,8412027,8412020,8411973,8411963,8411955,8411928,8411851,8411846,8411774","id":44377,"singleSection":true});				  						galleries[42875] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Murals","link":"section67198.html","maxRecords":0.0,"photoIDs":[553198.0,576846.0,576848.0,576849.0,614960.0,614961.0,614963.0],"skipIndex":0,"section_code":"section67198","featured_images":"614963,614961,614960,576849,576848,576846,553198","id":42875,"singleSection":true});				  						galleries[42950] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Giclee Prints and Painting","link":"section65851.html","maxRecords":0.0,"photoIDs":[576598.0,576625.0,577189.0,591739.0,607655.0,621097.0,621101.0,1664829.0,1664833.0,2890670.0,6294136.0,6297268.0,8409606.0],"skipIndex":0,"section_code":"section65851","featured_images":"8409606,6297268,6294136,2890670,1664833,1664829,621101,621097,607655,591739","id":42950,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '577201';
imageSets[2] = '615036,554590';
imageSets[3] = '8412029,8412027,8412020,8411973,8411963,8411955,8411928,8411851,8411846,8411774,8409606,7453589,7453583,7453576,7453572,7453465,7452569,7452491,6297268,6297124,6294136,6280187,6280183,6280156,6280127,2983328,2916584,2916578,2891416,2890670,1785833,1664833,1664829,621101,621097,619033,619031,619030,619029,619028,619026,619025,619024,615036,614963,614961,614960,607655,593851,593849';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/robertblackmore/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/robertblackmore/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 += 'section67232.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 && 'section67232' != '') {
					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 = 'ROSEMARY BLACKMORE : ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</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=" boris@localdial.com">';
					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=" boris@localdial.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

