window.thumbnails = {};
															thumbnails[4849953] = clik.newPhoto({"id":4849953,"src":"Proposed_1_Glidewell_Barn-Model_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_4849953.html","width":130,"caption":"Barn conversion","height":104});
															thumbnails[430887] = clik.newPhoto({"id":430887,"src":"image11_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430887.html","width":130,"caption":"Warm light","height":195});
															thumbnails[430888] = clik.newPhoto({"id":430888,"src":"image12_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430888.html","width":130,"caption":"View from dining area towards kitchen. Note the ceiling edge details and integration of natural light.","height":95});
															thumbnails[430889] = clik.newPhoto({"id":430889,"src":"image13_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430889.html","width":130,"caption":"Natural light<br>\r\n","height":170});
															thumbnails[430890] = clik.newPhoto({"id":430890,"src":"image14_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430890.html","width":130,"caption":"Bathroom","height":95});
															thumbnails[430891] = clik.newPhoto({"id":430891,"src":"image15_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430891.html","width":130,"caption":"Kitchen","height":99});
															thumbnails[430892] = clik.newPhoto({"id":430892,"src":"image16_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430892.html","width":130,"caption":"Night","height":119});
															thumbnails[430893] = clik.newPhoto({"id":430893,"src":"image17_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430893.html","width":130,"caption":"Mood lighting","height":91});
															thumbnails[430894] = clik.newPhoto({"id":430894,"src":"image18_thumb.jpg","galleries_id":34457,"server_id":1,"link":"photo_430894.html","width":130,"caption":"Cool light","height":101});
															thumbnails[430903] = clik.newPhoto({"id":430903,"src":"image19_thumb.jpg","galleries_id":34460,"server_id":1,"link":"photo_430903.html","width":130,"caption":"","height":131});
															thumbnails[430906] = clik.newPhoto({"id":430906,"src":"image20_thumb.jpg","galleries_id":34460,"server_id":1,"link":"photo_430906.html","width":130,"caption":"Inside view from dining area","height":90});
															thumbnails[430907] = clik.newPhoto({"id":430907,"src":"image21_thumb.jpg","galleries_id":34460,"server_id":1,"link":"photo_430907.html","width":130,"caption":"Kitchen island","height":104});
															thumbnails[430908] = clik.newPhoto({"id":430908,"src":"image22_thumb.jpg","galleries_id":34460,"server_id":1,"link":"photo_430908.html","width":130,"caption":"Exterior view","height":90});
															thumbnails[430909] = clik.newPhoto({"id":430909,"src":"image23_thumb.jpg","galleries_id":34462,"server_id":1,"link":"photo_430909.html","width":130,"caption":"Modern house in a conservation area","height":73});
															thumbnails[430910] = clik.newPhoto({"id":430910,"src":"image24_thumb.jpg","galleries_id":34462,"server_id":1,"link":"photo_430910.html","width":130,"caption":"Elevations","height":106});
															thumbnails[430911] = clik.newPhoto({"id":430911,"src":"image25_thumb.jpg","galleries_id":34462,"server_id":1,"link":"photo_430911.html","width":130,"caption":"Upper Ground Floor Plan","height":90});
															thumbnails[430912] = clik.newPhoto({"id":430912,"src":"image26_thumb.jpg","galleries_id":34462,"server_id":1,"link":"photo_430912.html","width":130,"caption":"Lower Ground Floor Plan","height":68});
															thumbnails[430913] = clik.newPhoto({"id":430913,"src":"image27_thumb.jpg","galleries_id":34463,"server_id":1,"link":"photo_430913.html","width":130,"caption":"Access Project, St Anselm's Church","height":100});
															thumbnails[430914] = clik.newPhoto({"id":430914,"src":"image28_thumb.jpg","galleries_id":34463,"server_id":1,"link":"photo_430914.html","width":130,"caption":"A combination of ramps and meeting spaces were incorporated","height":91});
															thumbnails[430915] = clik.newPhoto({"id":430915,"src":"image29_thumb.jpg","galleries_id":34463,"server_id":1,"link":"photo_430915.html","width":130,"caption":"Garaging was included","height":86});
															thumbnails[430917] = clik.newPhoto({"id":430917,"src":"image30_thumb.jpg","galleries_id":34464,"server_id":1,"link":"photo_430917.html","width":130,"caption":"Cafe bar for lawyers at Gray's Inn","height":86});
															thumbnails[430918] = clik.newPhoto({"id":430918,"src":"image31_thumb.jpg","galleries_id":34464,"server_id":1,"link":"photo_430918.html","width":130,"caption":"New starter flats in Wandsworth","height":98});
															thumbnails[430919] = clik.newPhoto({"id":430919,"src":"image32_thumb.jpg","galleries_id":34465,"server_id":1,"link":"photo_430919.html","width":130,"caption":"Listed Building Works and fit out at Onslow Gardens.","height":86});
															thumbnails[430920] = clik.newPhoto({"id":430920,"src":"image33_thumb.jpg","galleries_id":34464,"server_id":1,"link":"photo_430920.html","width":130,"caption":"Office Development Battersea","height":195});
															thumbnails[430922] = clik.newPhoto({"id":430922,"src":"image34_thumb.jpg","galleries_id":34465,"server_id":1,"link":"photo_430922.html","width":130,"caption":"Refurbishment in Notting Hill","height":104});
															thumbnails[430925] = clik.newPhoto({"id":430925,"src":"image37_thumb.jpg","galleries_id":34466,"server_id":1,"link":"photo_430925.html","width":130,"caption":"Kitchen area","height":152});
															thumbnails[430926] = clik.newPhoto({"id":430926,"src":"image38_thumb.jpg","galleries_id":34466,"server_id":1,"link":"photo_430926.html","width":130,"caption":"Sliding\/folding doors to garden","height":195});
															thumbnails[430927] = clik.newPhoto({"id":430927,"src":"image39_thumb.jpg","galleries_id":34466,"server_id":1,"link":"photo_430927.html","width":130,"caption":"Stair detail","height":172});
															thumbnails[430928] = clik.newPhoto({"id":430928,"src":"image40_thumb.jpg","galleries_id":34466,"server_id":1,"link":"photo_430928.html","width":130,"caption":"TV behind sliding screen","height":90});
															thumbnails[472060] = clik.newPhoto({"id":472060,"src":"400-DSC_3396_thumb.jpg","galleries_id":37253,"server_id":1,"link":"photo_472060.html","width":130,"caption":"","height":87});
															thumbnails[472062] = clik.newPhoto({"id":472062,"src":"400-DSC_3391_thumb.jpg","galleries_id":37253,"server_id":1,"link":"photo_472062.html","width":130,"caption":"","height":87});
															thumbnails[472153] = clik.newPhoto({"id":472153,"src":"400-Coniger-5_thumb.jpg","galleries_id":37254,"server_id":1,"link":"photo_472153.html","width":130,"caption":"","height":86});
															thumbnails[472155] = clik.newPhoto({"id":472155,"src":"400-Coniger-6_thumb.jpg","galleries_id":37254,"server_id":1,"link":"photo_472155.html","width":130,"caption":"","height":86});
															thumbnails[472160] = clik.newPhoto({"id":472160,"src":"400-DSC_0003_thumb.jpg","galleries_id":37254,"server_id":1,"link":"photo_472160.html","width":130,"caption":"","height":86});
															thumbnails[472163] = clik.newPhoto({"id":472163,"src":"400-Coniger-7_thumb.jpg","galleries_id":37254,"server_id":1,"link":"photo_472163.html","width":130,"caption":"","height":196});
															thumbnails[472253] = clik.newPhoto({"id":472253,"src":"400_RCB0490_thumb.jpg","galleries_id":37255,"server_id":1,"link":"photo_472253.html","width":130,"caption":"","height":194});
															thumbnails[472256] = clik.newPhoto({"id":472256,"src":"400_RCB0498_thumb.jpg","galleries_id":37255,"server_id":1,"link":"photo_472256.html","width":130,"caption":"","height":87});
															thumbnails[472259] = clik.newPhoto({"id":472259,"src":"400_RCB04861_thumb.jpg","galleries_id":37255,"server_id":1,"link":"photo_472259.html","width":130,"caption":"","height":87});
															thumbnails[472261] = clik.newPhoto({"id":472261,"src":"400_RCB04691_thumb.jpg","galleries_id":37255,"server_id":1,"link":"photo_472261.html","width":130,"caption":"","height":87});
															thumbnails[472265] = clik.newPhoto({"id":472265,"src":"400_NIK00041_thumb.jpg","galleries_id":37272,"server_id":1,"link":"photo_472265.html","width":130,"caption":"","height":87});
															thumbnails[472266] = clik.newPhoto({"id":472266,"src":"400_NIK0010_thumb.jpg","galleries_id":37272,"server_id":1,"link":"photo_472266.html","width":130,"caption":"","height":194});
															thumbnails[472267] = clik.newPhoto({"id":472267,"src":"400_NIK0015_thumb.jpg","galleries_id":37272,"server_id":1,"link":"photo_472267.html","width":130,"caption":"","height":87});
															thumbnails[472269] = clik.newPhoto({"id":472269,"src":"400_NIK0018_thumb.jpg","galleries_id":37272,"server_id":1,"link":"photo_472269.html","width":130,"caption":"","height":87});
															thumbnails[472355] = clik.newPhoto({"id":472355,"src":"Flat-glass-rooflight_thumb.jpg","galleries_id":34465,"server_id":1,"link":"photo_472355.html","width":130,"caption":"","height":201});
															thumbnails[483979] = clik.newPhoto({"id":483979,"src":"400-ouseley-1_thumb.jpg","galleries_id":37896,"server_id":1,"link":"photo_483979.html","width":130,"caption":"","height":196});
															thumbnails[483981] = clik.newPhoto({"id":483981,"src":"400-Ouseley-2_thumb.jpg","galleries_id":37896,"server_id":1,"link":"photo_483981.html","width":130,"caption":"","height":87});
															thumbnails[483982] = clik.newPhoto({"id":483982,"src":"400-Ouseley-3_thumb.jpg","galleries_id":37896,"server_id":1,"link":"photo_483982.html","width":130,"caption":"","height":86});
															thumbnails[483983] = clik.newPhoto({"id":483983,"src":"400-Ouseley-4_thumb.jpg","galleries_id":37896,"server_id":1,"link":"photo_483983.html","width":130,"caption":"","height":86});
															thumbnails[483984] = clik.newPhoto({"id":483984,"src":"400-Ouseley-5_thumb.jpg","galleries_id":37896,"server_id":1,"link":"photo_483984.html","width":130,"caption":"","height":72});
															thumbnails[483985] = clik.newPhoto({"id":483985,"src":"400-Ouseley-under-construct_thumb.jpg","galleries_id":37896,"server_id":1,"link":"photo_483985.html","width":130,"caption":"","height":100});
															thumbnails[1893682] = clik.newPhoto({"id":1893682,"src":"Abb-1_thumb.jpg","galleries_id":126967,"server_id":1,"link":"photo_1893682.html","width":130,"caption":"","height":194});
															thumbnails[1893685] = clik.newPhoto({"id":1893685,"src":"Abb-2_thumb.jpg","galleries_id":126967,"server_id":1,"link":"photo_1893685.html","width":130,"caption":"","height":87});
															thumbnails[1893688] = clik.newPhoto({"id":1893688,"src":"Abb-3_thumb.jpg","galleries_id":126967,"server_id":1,"link":"photo_1893688.html","width":130,"caption":"","height":87});
															thumbnails[2001268] = clik.newPhoto({"id":2001268,"src":"1 Rear Window_thumb.jpg","galleries_id":134241,"server_id":1,"link":"photo_2001268.html","width":130,"caption":"","height":87});
															thumbnails[2001271] = clik.newPhoto({"id":2001271,"src":"1 Fishtank_thumb.jpg","galleries_id":134241,"server_id":1,"link":"photo_2001271.html","width":130,"caption":"","height":194});
															thumbnails[2001273] = clik.newPhoto({"id":2001273,"src":"1 Rear Draw Room_thumb.jpg","galleries_id":134241,"server_id":1,"link":"photo_2001273.html","width":130,"caption":"","height":87});
															thumbnails[2001281] = clik.newPhoto({"id":2001281,"src":"2 Stairs 3_thumb.jpg","galleries_id":134241,"server_id":1,"link":"photo_2001281.html","width":130,"caption":"","height":130});
															thumbnails[2015151] = clik.newPhoto({"id":2015151,"src":"1-Herondale-web_thumb.jpg","galleries_id":37253,"server_id":1,"link":"photo_2015151.html","width":130,"caption":"","height":87});
															thumbnails[2032766] = clik.newPhoto({"id":2032766,"src":"doors_thumb.jpg","galleries_id":136205,"server_id":1,"link":"photo_2032766.html","width":130,"caption":"","height":86});
															thumbnails[2032776] = clik.newPhoto({"id":2032776,"src":"eaves_thumb.jpg","galleries_id":136205,"server_id":1,"link":"photo_2032776.html","width":130,"caption":"","height":86});
															thumbnails[2032782] = clik.newPhoto({"id":2032782,"src":"kitch mod_thumb.jpg","galleries_id":136205,"server_id":1,"link":"photo_2032782.html","width":130,"caption":"","height":86});
															thumbnails[2032793] = clik.newPhoto({"id":2032793,"src":"rear_thumb.jpg","galleries_id":136205,"server_id":1,"link":"photo_2032793.html","width":130,"caption":"","height":86});
															thumbnails[2032808] = clik.newPhoto({"id":2032808,"src":"to garden_thumb.jpg","galleries_id":136205,"server_id":1,"link":"photo_2032808.html","width":130,"caption":"","height":86});
															thumbnails[2032812] = clik.newPhoto({"id":2032812,"src":"view to kitch_thumb.jpg","galleries_id":136205,"server_id":1,"link":"photo_2032812.html","width":130,"caption":"","height":214});
															thumbnails[2032861] = clik.newPhoto({"id":2032861,"src":"RB%202007_thumb.jpg","galleries_id":136205,"server_id":2,"link":"photo_2032861.html","width":130,"caption":"","height":195});
															thumbnails[2038626] = clik.newPhoto({"id":2038626,"src":"collage1_thumb.jpg","galleries_id":134241,"server_id":1,"link":"photo_2038626.html","width":130,"caption":"","height":130});
															thumbnails[3189388] = clik.newPhoto({"id":3189388,"src":"21 terrapin bay 1_thumb.jpg","galleries_id":195052,"server_id":1,"link":"photo_3189388.html","width":130,"caption":"","height":216});
															thumbnails[3189390] = clik.newPhoto({"id":3189390,"src":"21 terrapin bay 2_thumb.jpg","galleries_id":195052,"server_id":1,"link":"photo_3189390.html","width":130,"caption":"","height":196});
															thumbnails[3189393] = clik.newPhoto({"id":3189393,"src":"21 terrapin garden 1_thumb.jpg","galleries_id":195052,"server_id":1,"link":"photo_3189393.html","width":130,"caption":"","height":86});
															thumbnails[3189396] = clik.newPhoto({"id":3189396,"src":"21 terrapin inside-outside1_thumb.jpg","galleries_id":195052,"server_id":1,"link":"photo_3189396.html","width":130,"caption":"","height":86});
															thumbnails[3189405] = clik.newPhoto({"id":3189405,"src":"21 terrapin interior 1_thumb.jpg","galleries_id":195052,"server_id":1,"link":"photo_3189405.html","width":130,"caption":"","height":86});
															thumbnails[3189406] = clik.newPhoto({"id":3189406,"src":"21 terrapin kitchen 1_thumb.jpg","galleries_id":195052,"server_id":1,"link":"photo_3189406.html","width":130,"caption":"","height":86});
															thumbnails[3189407] = clik.newPhoto({"id":3189407,"src":"21 terrapin multimedia_thumb.jpg","galleries_id":195052,"server_id":1,"link":"photo_3189407.html","width":130,"caption":"","height":86});
															thumbnails[7167286] = clik.newPhoto({"id":7167286,"src":"Lavender_Gardens_Roof_thumb.JPG","galleries_id":387261,"server_id":1,"link":"photo_7167286.html","width":130,"caption":"","height":86});
															thumbnails[7167315] = clik.newPhoto({"id":7167315,"src":"Barn-conversion-and-new-gar_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7167315.html","width":130,"caption":"Barn Conversion and new garages at Henbury Cheshire","height":98});
															thumbnails[7169025] = clik.newPhoto({"id":7169025,"src":"Barn-Conversion-Henbury-Che_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169025.html","width":130,"caption":"","height":98});
															thumbnails[7169026] = clik.newPhoto({"id":7169026,"src":"Construction-works-Clapham_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169026.html","width":130,"caption":"","height":98});
															thumbnails[7169027] = clik.newPhoto({"id":7169027,"src":"Dining_Regents_Park_Road_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169027.html","width":130,"caption":"","height":102});
															thumbnails[7169029] = clik.newPhoto({"id":7169029,"src":"Extension-at-Wandsworth_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169029.html","width":130,"caption":"","height":98});
															thumbnails[7169036] = clik.newPhoto({"id":7169036,"src":"Glazed-roof-Wandsworth_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169036.html","width":130,"caption":"","height":173});
															thumbnails[7169037] = clik.newPhoto({"id":7169037,"src":"Kitchen-Extension-Clapham-C_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169037.html","width":130,"caption":"","height":86});
															thumbnails[7169039] = clik.newPhoto({"id":7169039,"src":"Kitchen-Hillier-Road1_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169039.html","width":130,"caption":"","height":86});
															thumbnails[7169043] = clik.newPhoto({"id":7169043,"src":"New_stairs_Regents_Park_Road1_thumb.JPG","galleries_id":387261,"server_id":1,"link":"photo_7169043.html","width":130,"caption":"","height":195});
															thumbnails[7169047] = clik.newPhoto({"id":7169047,"src":"Office-Refurbishment-Northw1_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169047.html","width":130,"caption":"","height":98});
															thumbnails[7169048] = clik.newPhoto({"id":7169048,"src":"Rear-frame-construction-Cla1_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7169048.html","width":130,"caption":"","height":98});
															thumbnails[7172986] = clik.newPhoto({"id":7172986,"src":"Shower-1_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_7172986.html","width":130,"caption":"","height":86});
															thumbnails[8336993] = clik.newPhoto({"id":8336993,"src":"2011_Project_Rear_View_thumb.jpg","galleries_id":443097,"server_id":1,"link":"photo_8336993.html","width":130,"caption":"","height":87});
															thumbnails[8337167] = clik.newPhoto({"id":8337167,"src":"2011_Project_Kitchen_1_thumb.jpg","galleries_id":443097,"server_id":1,"link":"photo_8337167.html","width":130,"caption":"","height":194});
															thumbnails[8337168] = clik.newPhoto({"id":8337168,"src":"2011_Project_Kitchen_2_thumb.jpg","galleries_id":443097,"server_id":1,"link":"photo_8337168.html","width":130,"caption":"","height":87});
															thumbnails[8337169] = clik.newPhoto({"id":8337169,"src":"2011_Project_Kitchen_3_thumb.jpg","galleries_id":443097,"server_id":1,"link":"photo_8337169.html","width":130,"caption":"","height":87});
															thumbnails[8337170] = clik.newPhoto({"id":8337170,"src":"2011_Project_Kitchen_4_thumb.jpg","galleries_id":443097,"server_id":1,"link":"photo_8337170.html","width":130,"caption":"","height":194});
															thumbnails[8854617] = clik.newPhoto({"id":8854617,"src":"DSC_0236_thumb.JPG","galleries_id":387261,"server_id":1,"link":"photo_8854617.html","width":130,"caption":"Kitchen alterations at AlderleyEdge","height":86});
															thumbnails[8854637] = clik.newPhoto({"id":8854637,"src":"DSC_0233_thumb.JPG","galleries_id":387261,"server_id":1,"link":"photo_8854637.html","width":130,"caption":"Refurb at Alderley Edge","height":86});
															thumbnails[8854684] = clik.newPhoto({"id":8854684,"src":"DSC_0224_thumb.JPG","galleries_id":387261,"server_id":1,"link":"photo_8854684.html","width":130,"caption":"Kitchen works at Alderley Edge","height":86});
															thumbnails[8854747] = clik.newPhoto({"id":8854747,"src":"DSC_0227_thumb.JPG","galleries_id":387261,"server_id":1,"link":"photo_8854747.html","width":130,"caption":"Kitchen works at Alderley Edge","height":86});
															thumbnails[8854825] = clik.newPhoto({"id":8854825,"src":"DSC_0219_thumb.JPG","galleries_id":465604,"server_id":1,"link":"photo_8854825.html","width":130,"caption":"Kitchen extension and house refurb","height":196});
															thumbnails[8854960] = clik.newPhoto({"id":8854960,"src":"DSC_0217_thumb.JPG","galleries_id":465604,"server_id":1,"link":"photo_8854960.html","width":130,"caption":"Kitchen Works","height":86});
															thumbnails[8854978] = clik.newPhoto({"id":8854978,"src":"DSC_0215_thumb.JPG","galleries_id":465604,"server_id":1,"link":"photo_8854978.html","width":130,"caption":"","height":86});
															thumbnails[4849703] = clik.newPhoto({"id":4849703,"src":"Proposed_3_17-19_Winnington_Street_Northwich_CW8_1AQ-Model_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_4849703.html","width":130,"caption":"Refurbishment and Extension of traditional Northwich timber framed building.","height":104});
															thumbnails[4849735] = clik.newPhoto({"id":4849735,"src":"Proposed_1_Watchfield_Frodsham_WA6_6DT-Model_thumb.jpg","galleries_id":387261,"server_id":1,"link":"photo_4849735.html","width":130,"caption":"Proposed extensions to detached house. ","height":104});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[37255] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ellerton Road, SW18","link":"section54783_37255.html","maxRecords":0.0,"photoIDs":[472253.0,472256.0,472259.0,472261.0],"skipIndex":0,"section_code":"section54783","featured_images":"472261,472259,472256,472253","id":37255,"singleSection":false});				  						galleries[37253] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Extension Private House, Herondale Avenue, SW18","link":"section54783_37253.html","maxRecords":0.0,"photoIDs":[472060.0,472062.0,2015151.0],"skipIndex":0,"section_code":"section54783","featured_images":"2015151,472062,472060","id":37253,"singleSection":false});				  						galleries[34466] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"House Refurbishment, Blackheath","link":"section54783_34466.html","maxRecords":0.0,"photoIDs":[430925.0,430926.0,430927.0,430928.0],"skipIndex":0,"section_code":"section54783","featured_images":430925.0,"id":34466,"singleSection":false});				  						galleries[34463] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Access Project, St Anselm's Church","link":"section54783_34463.html","maxRecords":0.0,"photoIDs":[430913.0,430914.0,430915.0],"skipIndex":0,"section_code":"section54783","featured_images":430913.0,"id":34463,"singleSection":false});				  						galleries[34462] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New House in Harrow","link":"section54783_34462.html","maxRecords":0.0,"photoIDs":[430909.0,430910.0,430911.0,430912.0],"skipIndex":0,"section_code":"section54783","featured_images":"430912,430911,430910,430909","id":34462,"singleSection":false});				  						galleries[34464] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Projects for Commercial Clients","link":"section54783_34464.html","maxRecords":0.0,"photoIDs":[430917.0,430918.0,430920.0],"skipIndex":0,"section_code":"section54783","featured_images":430917.0,"id":34464,"singleSection":false});				  						galleries[34465] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Projects for Private Clients ","link":"section54783_34465.html","maxRecords":0.0,"photoIDs":[430919.0,430922.0,472355.0],"skipIndex":0,"section_code":"section54783","featured_images":"472355,430922,430919","id":34465,"singleSection":false});				  						galleries[126967] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Refurbishment Abbeville Road Clapham","link":"section54783_126967.html","maxRecords":0.0,"photoIDs":[1893682.0,1893685.0,1893688.0],"skipIndex":0,"section_code":"section54783","featured_images":1893682.0,"id":126967,"singleSection":false});				  						galleries[37254] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Refurbishment to house, Peterborough Estate, SW6","link":"section54783_37254.html","maxRecords":0.0,"photoIDs":[472153.0,472155.0,472160.0,472163.0],"skipIndex":0,"section_code":"section54783","featured_images":"472163,472160,472155,472153","id":37254,"singleSection":false});				  						galleries[34457] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ritherdon Road Heaver Estate","link":"section54783_34457.html","maxRecords":0.0,"photoIDs":[430887.0,430888.0,430889.0,430890.0,430891.0,430892.0,430893.0,430894.0],"skipIndex":0,"section_code":"section54783","featured_images":430892.0,"id":34457,"singleSection":false});				  						galleries[37272] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Rutherfords Development, Northcote Road, SW11","link":"section54783_37272.html","maxRecords":0.0,"photoIDs":[472265.0,472266.0,472267.0,472269.0],"skipIndex":0,"section_code":"section54783","featured_images":"472269,472267,472266,472265","id":37272,"singleSection":false});				  						galleries[134241] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Works at Regents Park Road","link":"section54783_134241.html","maxRecords":0.0,"photoIDs":[2001268.0,2001271.0,2001273.0,2001281.0,2038626.0],"skipIndex":0,"section_code":"section54783","featured_images":"2038626,2001281,2001273,2001271,2001268","id":134241,"singleSection":false});				  						galleries[34460] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Works to Grade II Listed House, London SW12","link":"section54783_34460.html","maxRecords":0.0,"photoIDs":[430903.0,430906.0,430907.0,430908.0],"skipIndex":0,"section_code":"section54783","featured_images":"430908,430907,430906,430903","id":34460,"singleSection":false});				  						galleries[387261] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cheshire and London 2010 and 2009 Projects","link":"section54783_387261.html","maxRecords":0.0,"photoIDs":[4849953.0,7167286.0,7167315.0,7169025.0,7169026.0,7169027.0,7169029.0,7169036.0,7169037.0,7169039.0,7169043.0,7169047.0,7169048.0,7172986.0,8854617.0,8854637.0,8854684.0,8854747.0,4849703.0,4849735.0],"skipIndex":0,"section_code":"section54783","featured_images":"8854747,8854684,8854637,8854617,7172986,7169048,7169047,7169043,7169039,7169037","id":387261,"singleSection":false});				  						galleries[443097] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dalebury Road","link":"section54783_443097.html","maxRecords":0.0,"photoIDs":[8336993.0,8337167.0,8337168.0,8337169.0,8337170.0],"skipIndex":0,"section_code":"section54783","featured_images":8337170.0,"id":443097,"singleSection":false});				  						galleries[465604] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hillier Road, London SW11","link":"section54783_465604.html","maxRecords":0.0,"photoIDs":[8854825.0,8854960.0,8854978.0],"skipIndex":0,"section_code":"section54783","featured_images":"8854978,8854960,8854825","id":465604,"singleSection":false});				  						galleries[195052] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Terrapin Road, Heaver Estate, SW17","link":"section54783_195052.html","maxRecords":0.0,"photoIDs":[3189388.0,3189390.0,3189393.0,3189396.0,3189405.0,3189406.0,3189407.0],"skipIndex":0,"section_code":"section54783","featured_images":3189393.0,"id":195052,"singleSection":false});				  						galleries[37896] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alterations, Ouseley Road, SW12","link":"section54783_37896.html","maxRecords":0.0,"photoIDs":[483979.0,483981.0,483982.0,483983.0,483984.0,483985.0],"skipIndex":0,"section_code":"section54783","featured_images":483981.0,"id":37896,"singleSection":false});				  						galleries[136205] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Extensions at  Private House Kew","link":"section54783_136205.html","maxRecords":0.0,"photoIDs":[2032766.0,2032776.0,2032782.0,2032793.0,2032808.0,2032812.0,2032861.0],"skipIndex":0,"section_code":"section54783","featured_images":2032793.0,"id":136205,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8854960,8854617,8337170,8337169,8337168,8336993,7172986,7169043,7169039,7169037,7169036,7169027,7169025,7167315,7167286,3189393,2032793,2001281,483981,430925';
imageSets[2] = '8337170,3189393,2032793,1893682,483981,430925,430917,430913,430892';
imageSets[3] = '8854978,8854960,8854825,8854747,8854684,8854637,8854617,8337170,8337169,8337168,8337167,8336993,7172986,7169048,7169047,7169043,7169039,7169037,7169036,7169029,7169027,7169026,7169025,7167315,7167286,4849953,4849735,4849703,3189407,3189406,3189405,3189396,3189393,3189390,3189388,2038626,2032861,2032812,2032808,2032793,2032782,2032776,2032766,2015151,2001281,2001273,2001271,2001268,1893688,1893685';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rbd/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rbd/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rbd/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rbd/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rbd/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/rbd/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rbd/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rbd/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 += 'section54783.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 && 'section54783' != '') {
					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 = 'baxter phillips architects : ' + 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;
	}
}

			

