window.thumbnails = {};
															thumbnails[3395881] = clik.newPhoto({"id":3395881,"src":"Horseshoe_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8692743] = clik.newPhoto({"id":8692743,"src":"Ercol_for_Extension_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[4415601] = clik.newPhoto({"id":4415601,"src":"Artemide_Lights_1_thumb.jpg","galleries_id":258670,"server_id":1,"link":"photo_4415601.html","width":130,"caption":"Artemide Lights, Tolomeo Tavolo Mini, by Michele de Lucchi and Giancarlo Fassina, £125 each","height":183});
															thumbnails[5261182] = clik.newPhoto({"id":5261182,"src":"Customer_France_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_5261182.html","width":130,"caption":"Paris","height":107});
															thumbnails[6164383] = clik.newPhoto({"id":6164383,"src":"Old_Cast_Iron_Table1_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_6164383.html","width":130,"caption":"Old Cast Iron Table with new galvanised zinc coated top, H71cm x W59cm, £155 ","height":173});
															thumbnails[7567670] = clik.newPhoto({"id":7567670,"src":"Mirror_1_thumb.jpg","galleries_id":232047,"server_id":1,"link":"photo_7567670.html","width":130,"caption":"Rosewood mirror, £140 H97.6cm W64.5cm D4cm at base ","height":186});
															thumbnails[7764778] = clik.newPhoto({"id":7764778,"src":"Beryl_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_7764778.html","width":130,"caption":"Beryl Woods Ware 20 cups, saucers and sandwich plates, now sold","height":173});
															thumbnails[8658594] = clik.newPhoto({"id":8658594,"src":"Pieff_Beta_Armchair_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_8658594.html","width":130,"caption":"Pieff Beta Chair, £380","height":103});
															thumbnails[8877485] = clik.newPhoto({"id":8877485,"src":"Jonsson_Sideboard_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_8877485.html","width":130,"caption":"Nils Jonsson Sideboard, H71.5cm W127cm D43cm, now sold","height":98});
															thumbnails[2480950] = clik.newPhoto({"id":2480950,"src":"Customer_1_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_2480950.html","width":130,"caption":"Bespoke Ladderax arrangement in customer's home ","height":173});
															thumbnails[3477766] = clik.newPhoto({"id":3477766,"src":"Ercol_Round_Dining_Table_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_3477766.html","width":130,"caption":"Ercol \"utility\" dining table, £300","height":173});
															thumbnails[3809721] = clik.newPhoto({"id":3809721,"src":"Victorian_Mirror_thumb.jpg","galleries_id":232047,"server_id":1,"link":"photo_3809721.html","width":130,"caption":"A Victorian mirror solid mahogany, suitable for home interiors or shop display, reserved","height":173});
															thumbnails[3999678] = clik.newPhoto({"id":3999678,"src":"Bruno_Pollack_Chair_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_3999678.html","width":130,"caption":"Single Bruno Pollack Chair, £45","height":173});
															thumbnails[6963748] = clik.newPhoto({"id":6963748,"src":"Ladderax_Small_Arrangement_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_6963748.html","width":130,"caption":"Small Ladderax shelving, Height 86.2cm Width 47.5cm Depth 36.5cm, £150, P+P £20                                            ","height":112});
															thumbnails[7764781] = clik.newPhoto({"id":7764781,"src":"Planter_Black_1_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_7764781.html","width":130,"caption":"Black planter, 28cm Diameter, Total Height, £25","height":98});
															thumbnails[2480951] = clik.newPhoto({"id":2480951,"src":"Customer_2_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_2480951.html","width":130,"caption":"Bespoke Ladderax arrangement, Barbican, London","height":173});
															thumbnails[3999661] = clik.newPhoto({"id":3999661,"src":"Ercol_Butler_Coffee_Table_With_Windsor_Bow_Top_Armchair_449A_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_3999661.html","width":130,"caption":"Ercol Butler Coffee Table, £200 (Ercol Windsor Bow-top Armchair SOLD)","height":100});
															thumbnails[3999669] = clik.newPhoto({"id":3999669,"src":"Bruno_Pollack_Brown_Grey_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_3999669.html","width":130,"caption":"Bruno Pollack chair with grey canvas, £50","height":173});
															thumbnails[7764792] = clik.newPhoto({"id":7764792,"src":"Planter_Black_2_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_7764792.html","width":130,"caption":"Black Planter, oval shape measures 30cm x 9.5cm, total height 45cm,  £35","height":98});
															thumbnails[8161770] = clik.newPhoto({"id":8161770,"src":"Gold_Ladderax_Small_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_8161770.html","width":130,"caption":"Wonderful gold ladders, also available in black or white, H86.2cm x W47.5cm x D36.5cm, £160, Post and packing £20","height":173});
															thumbnails[6404050] = clik.newPhoto({"id":6404050,"src":"Bruno_Pollack_Grey_on_Grey_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_6404050.html","width":130,"caption":"Bruno Pollack Chair with Grey Canvas Seat, £50","height":180});
															thumbnails[7567566] = clik.newPhoto({"id":7567566,"src":"Old_Arsenal_Complex_Woolwich_1_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_7567566.html","width":130,"caption":"Old Arsenal Complex, Woolwich","height":201});
															thumbnails[7764793] = clik.newPhoto({"id":7764793,"src":"Platers_Grey_1_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_7764793.html","width":130,"caption":"Two Planters, circumference 33cm, total height 20 cm, £25 each","height":98});
															thumbnails[7883084] = clik.newPhoto({"id":7883084,"src":"Whitefronted_Ladderax_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_7883084.html","width":130,"caption":"White-fronted Ladderax, H132.5cm W63cm D37cm, £220","height":173});
															thumbnails[8658774] = clik.newPhoto({"id":8658774,"src":"Small_Ercol_Coffee_or_Side_Table_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_8658774.html","width":130,"caption":"Ercol 213 Occasional\/Coffee Table, H44cm W72cm D44.5cm, £180","height":101});
															thumbnails[567251] = clik.newPhoto({"id":567251,"src":"ercol_round_dropleaf_coffee_table_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_567251.html","width":130,"caption":"Ercol round drop-leaf coffee table, £185","height":173});
															thumbnails[3478423] = clik.newPhoto({"id":3478423,"src":"Figure_11_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_3478423.html","width":130,"caption":"Shop display figure, £160","height":173});
															thumbnails[3999714] = clik.newPhoto({"id":3999714,"src":"James_Leonard_Aluminium_Childrens_Chair_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_3999714.html","width":130,"caption":"James Leonard Children's Chair, shown next to Ercol chair.now sold","height":98});
															thumbnails[4009059] = clik.newPhoto({"id":4009059,"src":"Ladderax_Drawer_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_4009059.html","width":130,"caption":"Ladderax Arrangement with Single Drawer, £230  H110cm W63cm D35cm","height":173});
															thumbnails[6177301] = clik.newPhoto({"id":6177301,"src":"Aluminium_Hat_Block_Stretcher_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_6177301.html","width":130,"caption":"Aluminium metal hat block stretcher, £250","height":90});
															thumbnails[7567569] = clik.newPhoto({"id":7567569,"src":"Old_Arsenal_Complex_Woolwich_2_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_7567569.html","width":130,"caption":"Old Arsenal Complex, Woolwich","height":202});
															thumbnails[4513562] = clik.newPhoto({"id":4513562,"src":"Welsh_Blanket_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_4513562.html","width":130,"caption":"Welsh Blanket (Wool), £65 ","height":144});
															thumbnails[5972839] = clik.newPhoto({"id":5972839,"src":"Ercol_Coffee_Table_Round_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_5972839.html","width":130,"caption":"Renovated Ercol Coffee Table, H44cm x W75cm, now sold","height":98});
															thumbnails[7567572] = clik.newPhoto({"id":7567572,"src":"Old_Arsenal_Complex_Woolwich_3_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_7567572.html","width":130,"caption":"Old Arsenal Complex, Woolwich","height":211});
															thumbnails[8204196] = clik.newPhoto({"id":8204196,"src":"Ercol_Red_Dot_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_8204196.html","width":130,"caption":"Ercol Children's Chair, £80","height":186});
															thumbnails[8626937] = clik.newPhoto({"id":8626937,"src":"Laddera_Gold_Ladders_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_8626937.html","width":130,"caption":"Gold Slim Ladderax Bookshelf, H201cm W78cm D20.5cm, £390 - unrestored ladders","height":204});
															thumbnails[567903] = clik.newPhoto({"id":567903,"src":"accessories_poole_coffee_set_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_567903.html","width":130,"caption":"Poole Pottery Coffee Set, £55","height":98});
															thumbnails[5557379] = clik.newPhoto({"id":5557379,"src":"Ercol_Childres_Chair_Double_Bar_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_5557379.html","width":130,"caption":"Ercol Children's Chair, with double bar across and yellow dot at the back, H 58cm W 36.5cm, D 37cm, £80","height":173});
															thumbnails[7567574] = clik.newPhoto({"id":7567574,"src":"Old_Arsenal_Complex_Woolwich_4_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_7567574.html","width":130,"caption":"Old Arsenal complex, Woolwich","height":213});
															thumbnails[8626941] = clik.newPhoto({"id":8626941,"src":"White_Slim_Ladderax_with_Extensions_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_8626941.html","width":130,"caption":"White Slim Ladderax Bookshelves, supplied with or without extensions (to raise over tall skirting boards), H171cm\/H163 cm (without extensions) W78cm D20.5cm, £350 (with no extensions) or £384 (with extensions)","height":228});
															thumbnails[8692726] = clik.newPhoto({"id":8692726,"src":"Tripod_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_8692726.html","width":130,"caption":"Tripod table, diameter 41cm, height 41cm, £85 (it can be posted)","height":154});
															thumbnails[2480954] = clik.newPhoto({"id":2480954,"src":"Centurion_Tray_Table_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_2480954.html","width":130,"caption":"Centurion ply tray table, £85 ","height":98});
															thumbnails[4699702] = clik.newPhoto({"id":4699702,"src":"Music_Stand_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_4699702.html","width":130,"caption":"Ladderax system with music stand\/display shelf, H 201cm W 63cm D 37cm, £260","height":213});
															thumbnails[5557386] = clik.newPhoto({"id":5557386,"src":"Ercol_Childres_Chair_Single_Bar_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_5557386.html","width":130,"caption":"Ercol Children's Chair, with single bar across, H 58.5cm W 35.5cm, D 42cm, £80","height":173});
															thumbnails[7567577] = clik.newPhoto({"id":7567577,"src":"Berkhampstead_1_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_7567577.html","width":130,"caption":"Berkhampstead","height":198});
															thumbnails[8692738] = clik.newPhoto({"id":8692738,"src":"Ercol_Extension_Table_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_8692738.html","width":130,"caption":"Ercol End Table, Model 265, W 66cm D 46cm H 72.5cm","height":98});
															thumbnails[567908] = clik.newPhoto({"id":567908,"src":"space_lily_bowl_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_567908.html","width":130,"caption":"Procter : Rihl Space Lily Bowl designed 1997","height":98});
															thumbnails[2505967] = clik.newPhoto({"id":2505967,"src":"James_Leonard_School_Desk_and_Chair_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_2505967.html","width":130,"caption":"James Leonard School Desk and Chair, £360 *** NOW AVAILABLE ***","height":98});
															thumbnails[3698387] = clik.newPhoto({"id":3698387,"src":"Ladderax_Drawers_Narrow_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_3698387.html","width":130,"caption":"Ladderax System with Drawers Unit, available with Black or white Ladders, £270","height":213});
															thumbnails[3999676] = clik.newPhoto({"id":3999676,"src":"Jame_Leonard_Chair_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_3999676.html","width":130,"caption":"James Leonard Chair, £130","height":173});
															thumbnails[7567578] = clik.newPhoto({"id":7567578,"src":"Berkhampstead_2_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_7567578.html","width":130,"caption":"Berkhampstead","height":246});
															thumbnails[3141290] = clik.newPhoto({"id":3141290,"src":"Leather_Chair_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_3141290.html","width":130,"caption":"Superb Quality Leather Chair, £95 each (six available, stackable) ","height":173});
															thumbnails[3573981] = clik.newPhoto({"id":3573981,"src":"Ercol_Table_Drop_Leaf1_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_3573981.html","width":130,"caption":"Ercol Dining Table, Drop-leaf, SOLD","height":173});
															thumbnails[3939022] = clik.newPhoto({"id":3939022,"src":"Foundry_Patterns1_thumb.jpg","galleries_id":43800,"server_id":1,"link":"photo_3939022.html","width":130,"caption":"Sculptural foundry patterns, different sizes, £25-£65, descriptive images available on request","height":98});
															thumbnails[4601120] = clik.newPhoto({"id":4601120,"src":"Ladderax_White_Narrow_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_4601120.html","width":130,"caption":"Available in black or white, Ladderax with the smallest width shelving in the Ladderax range. H 201cm, W 47.2cm, D 36cm £300 now reserved","height":221});
															thumbnails[6403995] = clik.newPhoto({"id":6403995,"src":"Ladderax_White_Customer_Muswell_Hill_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_6403995.html","width":130,"caption":"Muswell Hill","height":194});
															thumbnails[567248] = clik.newPhoto({"id":567248,"src":"ercol_nest_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_567248.html","width":130,"caption":"Ercol Nest of Tables, SOLD","height":173});
															thumbnails[4009070] = clik.newPhoto({"id":4009070,"src":"Ercol_414_Dressing_or_Desk_Chair_2_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_4009070.html","width":130,"caption":"Ercol dressing or desk chair, H to seat 64cm, Total H 64cm, W43.5cm, D41cm £150","height":100});
															thumbnails[4397503] = clik.newPhoto({"id":4397503,"src":"Ladderax_Shelving_Wider_Shelves_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_4397503.html","width":130,"caption":"Ladderax Slim Bookshelves (Narrow Bookshelf Ladders), with widest shelves available, H201cm, W 109 cm, D 20cm.","height":203});
															thumbnails[6404001] = clik.newPhoto({"id":6404001,"src":"Ladderax_White_Customer_Muswell_Hill_2_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_6404001.html","width":130,"caption":"Muswell Hill","height":194});
															thumbnails[2505964] = clik.newPhoto({"id":2505964,"src":"Singer_Stool_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_2505964.html","width":130,"caption":"Singer Stool, £165","height":98});
															thumbnails[3395854] = clik.newPhoto({"id":3395854,"src":"Zinc_coated_steel_top_table_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_3395854.html","width":130,"caption":"Zinc-coated steel top table, H 78cm W 186cm  D 43cm, £230, sold","height":98});
															thumbnails[3698382] = clik.newPhoto({"id":3698382,"src":"Ladderax_narrow_shelves_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_3698382.html","width":130,"caption":"Ladderax Unit Furniture System H 201cm W 139.2cm D 35.5cm","height":164});
															thumbnails[5919640] = clik.newPhoto({"id":5919640,"src":"Customer_SW1_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_5919640.html","width":130,"caption":"London, SW1","height":173});
															thumbnails[567257] = clik.newPhoto({"id":567257,"src":"Ladderax_White1_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_567257.html","width":130,"caption":"Ladderax Unit Furniture System, White Ladders, H 201cm W 154.5cm D 40.5cm","height":173});
															thumbnails[3141286] = clik.newPhoto({"id":3141286,"src":"Customer_31_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_3141286.html","width":130,"caption":"South West London","height":195});
															thumbnails[3395825] = clik.newPhoto({"id":3395825,"src":"Ercol_Dining_Chairs_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_3395825.html","width":130,"caption":"Ercol Dining Chairs, now sold","height":98});
															thumbnails[4195936] = clik.newPhoto({"id":4195936,"src":"Extended_Ercol_Coffee_Table_thumb.jpg","galleries_id":43695,"server_id":1,"link":"photo_4195936.html","width":130,"caption":"Ercol Long Occasional Table, SOLD","height":89});
															thumbnails[567259] = clik.newPhoto({"id":567259,"src":"Ladderax_Desk_and_Shelving_System_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_567259.html","width":130,"caption":"Ladderax Unit Furniture System, H 201cm W 185 cm D 36 cm £495","height":160});
															thumbnails[3141396] = clik.newPhoto({"id":3141396,"src":"Danish_Chair_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_3141396.html","width":130,"caption":"Danish Desk Chair, Manufacturer: N. Eilersen, est. 1895, SOLD","height":173});
															thumbnails[3268187] = clik.newPhoto({"id":3268187,"src":"Customer_5_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_3268187.html","width":130,"caption":"Architectural practice, Essex","height":98});
															thumbnails[8877482] = clik.newPhoto({"id":8877482,"src":"Arkana_Stool_thumb.jpg","galleries_id":43693,"server_id":1,"link":"photo_8877482.html","width":130,"caption":"Arkana Stool, with original upholstery, H44cm W39cm, now sold","height":98});
															thumbnails[567262] = clik.newPhoto({"id":567262,"src":"Ladderax_Black3_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_567262.html","width":130,"caption":"Ladderax Unit Furniture System,  H 201cm W 154.5cm D 35.5cm","height":173});
															thumbnails[3268624] = clik.newPhoto({"id":3268624,"src":"Customer_5a_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_3268624.html","width":130,"caption":"Architectural practice, Essex","height":114});
															thumbnails[3993983] = clik.newPhoto({"id":3993983,"src":"Customer_6_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_3993983.html","width":130,"caption":"Stoke Newington, N16","height":173});
															thumbnails[5119798] = clik.newPhoto({"id":5119798,"src":"Ladderax_Wooden_Ladders_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_5119798.html","width":130,"caption":"Ladderax Shelving with Wooden Ladders","height":185});
															thumbnails[5765294] = clik.newPhoto({"id":5765294,"src":"Ladderax_White_Front_Desk_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_5765294.html","width":130,"caption":"Ladderax Shelving System with White-fronted Drop-down Desk and Cabinet","height":202});
															thumbnails[6774947] = clik.newPhoto({"id":6774947,"src":"cornwall_thumb.JPG","galleries_id":43697,"server_id":1,"link":"photo_6774947.html","width":130,"caption":"Destination Cornwall (£630)","height":173});
															thumbnails[567260] = clik.newPhoto({"id":567260,"src":"Ladderax_Black2_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_567260.html","width":130,"caption":"Ladderax Unit Furniture System, H 201cm w 154.5cm D 40.5cm","height":173});
															thumbnails[2505962] = clik.newPhoto({"id":2505962,"src":"Ladderax_Single_Bay_White_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_2505962.html","width":130,"caption":"Ladderax Unit Furniture System, H 201cm W 78cm D 35.5cm","height":173});
															thumbnails[7312818] = clik.newPhoto({"id":7312818,"src":"Record_Cabinet_Manchester_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_7312818.html","width":130,"caption":"Record cabinet, Manchester","height":187});
															thumbnails[6963688] = clik.newPhoto({"id":6963688,"src":"Customer_Derbyshire_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_6963688.html","width":130,"caption":"Destination Derbyshire","height":165});
															thumbnails[5110376] = clik.newPhoto({"id":5110376,"src":"Ladderax_White_Narrow_1_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_5110376.html","width":130,"caption":"Ladderax Slim Bookshelves, H 201cm W 78.2cm D20.2cm","height":185});
															thumbnails[8161751] = clik.newPhoto({"id":8161751,"src":"Customer_1_3E3F2B0F-24E8-5EC4-4FFAC8EE4C165A7B_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_8161751.html","width":130,"caption":"Beckenham","height":195});
															thumbnails[6963745] = clik.newPhoto({"id":6963745,"src":"Ladderax_Extensions_thumb.jpg","galleries_id":43671,"server_id":1,"link":"photo_6963745.html","width":130,"caption":"Extensions for Ladderax Shelving System, Raise ladders by 3 inches. £34  per pair, including post and packging (in either black or white)","height":98});
															thumbnails[8161754] = clik.newPhoto({"id":8161754,"src":"Customer_3_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_8161754.html","width":130,"caption":"Beckenham","height":87});
															thumbnails[8161757] = clik.newPhoto({"id":8161757,"src":"Customer_2_3E40FA82-24E8-5EC4-4FD80021F60AF7B0_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_8161757.html","width":130,"caption":"Beckenham","height":87});
															thumbnails[6963706] = clik.newPhoto({"id":6963706,"src":"Customer_Gloucestershire_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_6963706.html","width":130,"caption":"Gloucestershire","height":193});
															thumbnails[4397469] = clik.newPhoto({"id":4397469,"src":"Ladderax_Chest_Sold_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_4397469.html","width":130,"caption":"East London","height":102});
															thumbnails[6774975] = clik.newPhoto({"id":6774975,"src":"CD_Storage_Destination_SE11_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_6774975.html","width":130,"caption":"CD Storage, Destination SE11","height":98});
															thumbnails[2756755] = clik.newPhoto({"id":2756755,"src":"Ladder_Restoration_thumb.jpg","galleries_id":43697,"server_id":1,"link":"photo_2756755.html","width":130,"caption":"Ladder Restoration ","height":173});
															thumbnails[5261171] = clik.newPhoto({"id":5261171,"src":"Press_11_thumb.jpg","galleries_id":296177,"server_id":1,"link":"photo_5261171.html","width":130,"caption":"Material Cultures Ladderax Shelving System featured in Miro Hanatsubaki, January 2010, Japan","height":184});
															thumbnails[5261139] = clik.newPhoto({"id":5261139,"src":"Press_2_thumb.jpg","galleries_id":296177,"server_id":1,"link":"photo_5261139.html","width":130,"caption":"","height":184});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[296177] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Japan","link":"section354053.html","maxRecords":0.0,"photoIDs":[5261171.0,5261139.0],"skipIndex":0,"section_code":"section354053","featured_images":5261139.0,"id":296177,"singleSection":true});				  						galleries[43693] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seating","link":"gallery_43693.html","maxRecords":0.0,"photoIDs":[8658594.0,3999678.0,3999669.0,6404050.0,3999714.0,8204196.0,5557379.0,5557386.0,3999676.0,3141290.0,4009070.0,2505964.0,3395825.0,3141396.0,8877482.0],"skipIndex":0,"section_code":"gallery","featured_images":"8658594,6404050,5557386,5557379,4009070,3999714,3999678,3999676,3999669,3395825,3141290,2505964","id":43693,"singleSection":false});				  						galleries[43695] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tables","link":"gallery_43695.html","maxRecords":0.0,"photoIDs":[6164383.0,3477766.0,3999661.0,8658774.0,567251.0,5972839.0,8692726.0,8692738.0,2505967.0,3573981.0,567248.0,3395854.0,4195936.0],"skipIndex":0,"section_code":"gallery","featured_images":"8692738,8692726,8658774,6164383,5972839,3999661,2505967","id":43695,"singleSection":false});				  						galleries[43671] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Shelving & Storage","link":"gallery_43671.html","maxRecords":0.0,"photoIDs":[8877485.0,6963748.0,8161770.0,7883084.0,4009059.0,8626937.0,8626941.0,4699702.0,3698387.0,4601120.0,4397503.0,3698382.0,567257.0,567259.0,567262.0,5119798.0,5765294.0,567260.0,2505962.0,5110376.0,6963745.0],"skipIndex":0,"section_code":"gallery","featured_images":"8877485,8626941,8626937,7883084,4699702,4601120,3698387,3698382,567259,567257","id":43671,"singleSection":false});				  						galleries[258670] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lighting","link":"gallery_258670.html","maxRecords":0.0,"photoIDs":[4415601.0],"skipIndex":0,"section_code":"gallery","featured_images":4415601.0,"id":258670,"singleSection":false});				  						galleries[232047] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mirrors","link":"gallery_232047.html","maxRecords":0.0,"photoIDs":[7567670.0,3809721.0],"skipIndex":0,"section_code":"gallery","featured_images":7567670.0,"id":232047,"singleSection":false});				  						galleries[43800] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Accessories","link":"gallery_43800.html","maxRecords":0.0,"photoIDs":[7764778.0,7764781.0,7764792.0,7764793.0,3478423.0,6177301.0,4513562.0,567903.0,2480954.0,567908.0,3939022.0],"skipIndex":0,"section_code":"gallery","featured_images":"7764793,7764792,7764778,6177301,3478423,567908","id":43800,"singleSection":false});				  						galleries[43697] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bespoke","link":"gallery_43697.html","maxRecords":0.0,"photoIDs":[5261182.0,2480950.0,2480951.0,7567566.0,7567569.0,7567572.0,7567574.0,7567577.0,7567578.0,6403995.0,6404001.0,5919640.0,3141286.0,3268187.0,3268624.0,3993983.0,6774947.0,7312818.0,6963688.0,8161751.0,8161754.0,8161757.0,6963706.0,4397469.0,6774975.0,2756755.0],"skipIndex":0,"section_code":"gallery","featured_images":"8161751,7567566,7312818,6403995,5919640,5261182,2480950","id":43697,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8692743,3395881,8877485,8658594,7764778,6164383,5261182,3999678,7764792,3999669,3999661,8658774,7883084,7764793,7567566,6404050,6177301,4009059,3999714,3478423,8626937,7567572,5972839,8626941,5557379,8692738,7567577,5557386,4699702,2505967,6403995,4601120,3939022,4009070,3698382,2505964,3395825,567259,8161751,8161754,6963745';
imageSets[2] = '8877485,8658594,7764778,7567670,6164383,5261182,4415601,5261139,3999678,2480950,7764792,3999669,3999661,8658774,7883084,7764793,7567566,6404050,6177301,3999714,3478423,8626937,5972839,8692726,8626941,5557379,8692738,5557386,4699702,3999676,3698387,2505967,567908,6403995,4601120,3141290,4009070,5919640,3698382,2505964,3395825,567257,567259,7312818,8161751';
imageSets[3] = '8877485,8877482,8692743,8692738,8692726,8658774,8658594,8626941,8626937,8204196,8161770,8161757,8161754,8161751,7883084,7764793,7764792,7764781,7764778,7567670,7567578,7567577,7567574,7567572,7567569,7567566,7312818,6963748,6963745,6963706,6963688,6774975,6774947,6404050,6404001,6403995,6177301,6164383,5972839,5919640,5765294,5557386,5557379,5261182,5261171,5261139,5119798,5110376,4699702,4601120';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/materialcultures/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/materialcultures/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Material Cultures: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

