window.thumbnails = {};
															thumbnails[5060279] = clik.newPhoto({"id":5060279,"src":"WEB_MONTAGE1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Alex_Ferguson_Manchester","height":243});
															thumbnails[9116474] = clik.newPhoto({"id":9116474,"src":"HQIP_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[4240208] = clik.newPhoto({"id":4240208,"src":"small_Students_chatting-14_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Prospectus photography in Manchester","height":186});
															thumbnails[9088088] = clik.newPhoto({"id":9088088,"src":"Alice_800w_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[9105817] = clik.newPhoto({"id":9105817,"src":"Ronhill_22_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[9111069] = clik.newPhoto({"id":9111069,"src":"Saddleworth_wedding_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[9110998] = clik.newPhoto({"id":9110998,"src":"Projection_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[9120638] = clik.newPhoto({"id":9120638,"src":"PB2_520_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[9088309] = clik.newPhoto({"id":9088309,"src":"Alice_2_800w_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":93});
															thumbnails[9088341] = clik.newPhoto({"id":9088341,"src":"Alice_3_800w_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[9088362] = clik.newPhoto({"id":9088362,"src":"Alice_4_800w_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[9088379] = clik.newPhoto({"id":9088379,"src":"Alice_5_800w_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[9105679] = clik.newPhoto({"id":9105679,"src":"Ronhill_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":86});
															thumbnails[9116192] = clik.newPhoto({"id":9116192,"src":"Civil_Ceremony_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[9088411] = clik.newPhoto({"id":9088411,"src":"Girls_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[9088423] = clik.newPhoto({"id":9088423,"src":"Girls_22_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[9088483] = clik.newPhoto({"id":9088483,"src":"Penny_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8022586] = clik.newPhoto({"id":8022586,"src":"Becky-69_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8022586.html","width":130,"caption":"Manchester wedding photography","height":195});
															thumbnails[8022576] = clik.newPhoto({"id":8022576,"src":"Becky-002_thumb.JPG","galleries_id":167800,"server_id":1,"link":"photo_8022576.html","width":130,"caption":"","height":195});
															thumbnails[8022582] = clik.newPhoto({"id":8022582,"src":"Becky-001_thumb.JPG","galleries_id":167800,"server_id":1,"link":"photo_8022582.html","width":130,"caption":"","height":195});
															thumbnails[8022857] = clik.newPhoto({"id":8022857,"src":"Becky-40_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8022857.html","width":130,"caption":"","height":195});
															thumbnails[597093] = clik.newPhoto({"id":597093,"src":"Charles & camilla_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_597093.html","width":130,"caption":"The Prince of Wales","height":166});
															thumbnails[6159674] = clik.newPhoto({"id":6159674,"src":"Carley_Ashley_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_6159674.html","width":130,"caption":"Carley Stenson & Ashley Taylor Dawson","height":111});
															thumbnails[8022864] = clik.newPhoto({"id":8022864,"src":"Becky-12_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8022864.html","width":130,"caption":"","height":195});
															thumbnails[8022865] = clik.newPhoto({"id":8022865,"src":"Becky-004_thumb.JPG","galleries_id":167800,"server_id":1,"link":"photo_8022865.html","width":130,"caption":"","height":87});
															thumbnails[8022867] = clik.newPhoto({"id":8022867,"src":"Becky-58_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8022867.html","width":130,"caption":"","height":87});
															thumbnails[8022953] = clik.newPhoto({"id":8022953,"src":"Becky-003_thumb.JPG","galleries_id":167800,"server_id":1,"link":"photo_8022953.html","width":130,"caption":"","height":87});
															thumbnails[3512040] = clik.newPhoto({"id":3512040,"src":"PB2_1577_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_3512040.html","width":130,"caption":"David Cameron in Manchester","height":135});
															thumbnails[5159021] = clik.newPhoto({"id":5159021,"src":"Pendleton_thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_5159021.html","width":130,"caption":"Cycling Champion Victoria Pendleton at Sportcity in Manchester.","height":195});
															thumbnails[7025870] = clik.newPhoto({"id":7025870,"src":"Cat_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025870.html","width":130,"caption":"","height":189});
															thumbnails[8014917] = clik.newPhoto({"id":8014917,"src":"8a_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_8014917.html","width":130,"caption":"","height":169});
															thumbnails[8022285] = clik.newPhoto({"id":8022285,"src":"corp_shot_2_thumb.jpg","galleries_id":190394,"server_id":1,"link":"photo_8022285.html","width":130,"caption":"Business photography","height":195});
															thumbnails[9110794] = clik.newPhoto({"id":9110794,"src":"Wedding_Penny02_1_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110794.html","width":130,"caption":"","height":223});
															thumbnails[597092] = clik.newPhoto({"id":597092,"src":"Camilla_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_597092.html","width":130,"caption":"The Duchess of Cornwall in Buxton","height":190});
															thumbnails[598277] = clik.newPhoto({"id":598277,"src":"Netto _thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_598277.html","width":130,"caption":"A happy Netto customer","height":251});
															thumbnails[3104614] = clik.newPhoto({"id":3104614,"src":"posh11_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_3104614.html","width":130,"caption":"Victoria Beckham arrives at Harvey Nichols ","height":170});
															thumbnails[7025871] = clik.newPhoto({"id":7025871,"src":"Amanda_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025871.html","width":130,"caption":"","height":171});
															thumbnails[8016634] = clik.newPhoto({"id":8016634,"src":"Wedding-225_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016634.html","width":130,"caption":"","height":195});
															thumbnails[8022298] = clik.newPhoto({"id":8022298,"src":"corp_shot_3_thumb.jpg","galleries_id":190394,"server_id":1,"link":"photo_8022298.html","width":130,"caption":"Business photography","height":195});
															thumbnails[9110846] = clik.newPhoto({"id":9110846,"src":"Wedding_Wave2_1_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110846.html","width":130,"caption":"","height":88});
															thumbnails[8016635] = clik.newPhoto({"id":8016635,"src":"Wedding-238_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016635.html","width":130,"caption":"","height":87});
															thumbnails[8016636] = clik.newPhoto({"id":8016636,"src":"Wedding-255_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016636.html","width":130,"caption":"","height":87});
															thumbnails[8016637] = clik.newPhoto({"id":8016637,"src":"Wedding-266_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016637.html","width":130,"caption":"","height":87});
															thumbnails[8016638] = clik.newPhoto({"id":8016638,"src":"Wedding-044_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016638.html","width":130,"caption":"","height":195});
															thumbnails[8016639] = clik.newPhoto({"id":8016639,"src":"Wedding-269_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016639.html","width":130,"caption":"","height":87});
															thumbnails[8016640] = clik.newPhoto({"id":8016640,"src":"Wedding-290_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016640.html","width":130,"caption":"","height":87});
															thumbnails[8016641] = clik.newPhoto({"id":8016641,"src":"Wedding-264_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_8016641.html","width":130,"caption":"","height":87});
															thumbnails[3104928] = clik.newPhoto({"id":3104928,"src":"giggs_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_3104928.html","width":130,"caption":"Ryan Giggs with an honorary degree","height":191});
															thumbnails[598278] = clik.newPhoto({"id":598278,"src":"North Face_thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_598278.html","width":130,"caption":"Bear Grylls opens the North Face store in Manchester","height":212});
															thumbnails[611667] = clik.newPhoto({"id":611667,"src":"McKellan1_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_611667.html","width":130,"caption":"Sir Ian Mckellen in Manchester","height":176});
															thumbnails[3568228] = clik.newPhoto({"id":3568228,"src":"PB-Duke-04_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_3568228.html","width":130,"caption":"The Duke of York in Manchester","height":130});
															thumbnails[7025832] = clik.newPhoto({"id":7025832,"src":"Michelle_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025832.html","width":130,"caption":"","height":192});
															thumbnails[8022428] = clik.newPhoto({"id":8022428,"src":"corp_shot_4_thumb.jpg","galleries_id":190394,"server_id":1,"link":"photo_8022428.html","width":130,"caption":"Business photography","height":195});
															thumbnails[9110867] = clik.newPhoto({"id":9110867,"src":"Wedding_Penny01_1_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110867.html","width":130,"caption":"","height":95});
															thumbnails[598276] = clik.newPhoto({"id":598276,"src":"Coleen Asda_thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_598276.html","width":130,"caption":"Coleen Rooney in Manchester.","height":214});
															thumbnails[695812] = clik.newPhoto({"id":695812,"src":"Streaker2_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_695812.html","width":130,"caption":"A football streaker escorted off the field","height":165});
															thumbnails[2651915] = clik.newPhoto({"id":2651915,"src":"20070213-PB__Wilson 02_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_2651915.html","width":130,"caption":"","height":97});
															thumbnails[5594946] = clik.newPhoto({"id":5594946,"src":"OBrien_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_5594946.html","width":130,"caption":"Tina O'Brien with Key 103's Mike Toolan","height":148});
															thumbnails[7025803] = clik.newPhoto({"id":7025803,"src":"Sophie_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025803.html","width":130,"caption":"","height":205});
															thumbnails[8022442] = clik.newPhoto({"id":8022442,"src":"corp_shot_11_thumb.jpg","galleries_id":190394,"server_id":1,"link":"photo_8022442.html","width":130,"caption":"Annual Report photography","height":195});
															thumbnails[9110893] = clik.newPhoto({"id":9110893,"src":"Wedding_Penny01_2_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110893.html","width":130,"caption":"","height":125});
															thumbnails[6159672] = clik.newPhoto({"id":6159672,"src":"Carley_01_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_6159672.html","width":130,"caption":"","height":101});
															thumbnails[597094] = clik.newPhoto({"id":597094,"src":"Cheap as chips 600_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_597094.html","width":130,"caption":"David Dickinson","height":107});
															thumbnails[598282] = clik.newPhoto({"id":598282,"src":"Viacom 3_thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_598282.html","width":130,"caption":"Corporate gambling night photography","height":204});
															thumbnails[598286] = clik.newPhoto({"id":598286,"src":"Coleen_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_598286.html","width":130,"caption":"Coleen Rooney","height":217});
															thumbnails[6394166] = clik.newPhoto({"id":6394166,"src":"Pregnant_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_6394166.html","width":130,"caption":"","height":196});
															thumbnails[7025805] = clik.newPhoto({"id":7025805,"src":"Sarah_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025805.html","width":130,"caption":"","height":187});
															thumbnails[9110774] = clik.newPhoto({"id":9110774,"src":"Wedding_Penny04_1_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110774.html","width":130,"caption":"","height":214});
															thumbnails[597095] = clik.newPhoto({"id":597095,"src":"Clarke_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_597095.html","width":130,"caption":"Conference photography in Manchester","height":101});
															thumbnails[598275] = clik.newPhoto({"id":598275,"src":"Cafe Kiss 3July_thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_598275.html","width":130,"caption":"PR promotion photography Manchester","height":156});
															thumbnails[598370] = clik.newPhoto({"id":598370,"src":"Artwork silhouette1_thumb.jpg","galleries_id":45881,"server_id":1,"link":"photo_598370.html","width":130,"caption":"Manchester Peace Garden artist","height":87});
															thumbnails[2614358] = clik.newPhoto({"id":2614358,"src":"jackson_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_2614358.html","width":130,"caption":"","height":97});
															thumbnails[3104845] = clik.newPhoto({"id":3104845,"src":"gest 01_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_3104845.html","width":130,"caption":"David Gest","height":203});
															thumbnails[3104920] = clik.newPhoto({"id":3104920,"src":"deloitte1_thumb.jpg","galleries_id":190394,"server_id":1,"link":"photo_3104920.html","width":130,"caption":"Corporate portraits","height":106});
															thumbnails[7025863] = clik.newPhoto({"id":7025863,"src":"Helen_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025863.html","width":130,"caption":"","height":196});
															thumbnails[9110772] = clik.newPhoto({"id":9110772,"src":"Wedding_Penny06_1_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110772.html","width":130,"caption":"","height":96});
															thumbnails[2614362] = clik.newPhoto({"id":2614362,"src":"nic1_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_2614362.html","width":130,"caption":"","height":117});
															thumbnails[5594947] = clik.newPhoto({"id":5594947,"src":"Platt_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_5594947.html","width":130,"caption":"Platt strikes twice","height":134});
															thumbnails[7025869] = clik.newPhoto({"id":7025869,"src":"Cath_2_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025869.html","width":130,"caption":"","height":187});
															thumbnails[9110942] = clik.newPhoto({"id":9110942,"src":"Wedding_Penny05_1_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110942.html","width":130,"caption":"","height":76});
															thumbnails[611695] = clik.newPhoto({"id":611695,"src":"samia1_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_611695.html","width":130,"caption":"Samia Smith","height":226});
															thumbnails[2614368] = clik.newPhoto({"id":2614368,"src":"daz_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_2614368.html","width":130,"caption":"","height":125});
															thumbnails[7025865] = clik.newPhoto({"id":7025865,"src":"Catherine_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025865.html","width":130,"caption":"","height":186});
															thumbnails[9110958] = clik.newPhoto({"id":9110958,"src":"Wedding_Penny07_1_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_9110958.html","width":130,"caption":"","height":158});
															thumbnails[4239915] = clik.newPhoto({"id":4239915,"src":"Harvey_Nic-25_thumb.jpg","galleries_id":190394,"server_id":1,"link":"photo_4239915.html","width":130,"caption":"Business Photography in Manchester","height":88});
															thumbnails[598270] = clik.newPhoto({"id":598270,"src":"arrivals_thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_598270.html","width":130,"caption":"Pregnant British Airways staff at Manchester Airport","height":92});
															thumbnails[598323] = clik.newPhoto({"id":598323,"src":"Nadine1_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_598323.html","width":130,"caption":"Nadine Coyle","height":232});
															thumbnails[2614881] = clik.newPhoto({"id":2614881,"src":"ethan_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_2614881.html","width":130,"caption":"","height":129});
															thumbnails[4238909] = clik.newPhoto({"id":4238909,"src":"Golf1_thumb.jpg","galleries_id":190394,"server_id":1,"link":"photo_4238909.html","width":130,"caption":"Corporate Golf photography","height":88});
															thumbnails[7025861] = clik.newPhoto({"id":7025861,"src":"Joanne_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025861.html","width":130,"caption":"","height":184});
															thumbnails[9116473] = clik.newPhoto({"id":9116473,"src":"Cueto_1_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_9116473.html","width":130,"caption":"","height":212});
															thumbnails[598368] = clik.newPhoto({"id":598368,"src":"Jordan_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_598368.html","width":130,"caption":"Katie Price","height":203});
															thumbnails[5158979] = clik.newPhoto({"id":5158979,"src":"Betfred_thumb.jpg","galleries_id":45882,"server_id":1,"link":"photo_5158979.html","width":130,"caption":"Frankie Dettori at Haydock Park","height":99});
															thumbnails[6212724] = clik.newPhoto({"id":6212724,"src":"Jessica_01_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_6212724.html","width":130,"caption":"","height":103});
															thumbnails[7025806] = clik.newPhoto({"id":7025806,"src":"Paula_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025806.html","width":130,"caption":"","height":195});
															thumbnails[5594958] = clik.newPhoto({"id":5594958,"src":"Halsall1_thumb.jpg","galleries_id":45884,"server_id":1,"link":"photo_5594958.html","width":130,"caption":"Alan Halsall and Lucy-Jo Hudson","height":161});
															thumbnails[6212778] = clik.newPhoto({"id":6212778,"src":"Sara01_thumb.jpg","galleries_id":45885,"server_id":1,"link":"photo_6212778.html","width":130,"caption":"","height":93});
															thumbnails[7025864] = clik.newPhoto({"id":7025864,"src":"Gemma_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025864.html","width":130,"caption":"","height":181});
															thumbnails[6159385] = clik.newPhoto({"id":6159385,"src":"Ella_01_thumb.JPG","galleries_id":45885,"server_id":1,"link":"photo_6159385.html","width":130,"caption":"","height":140});
															thumbnails[7025873] = clik.newPhoto({"id":7025873,"src":"Alice_thumb.jpg","galleries_id":380384,"server_id":1,"link":"photo_7025873.html","width":130,"caption":"","height":184});
															thumbnails[5159543] = clik.newPhoto({"id":5159543,"src":"Suzanne5_thumb.JPG","galleries_id":480827,"server_id":1,"link":"photo_5159543.html","width":130,"caption":"","height":204});
															thumbnails[5159638] = clik.newPhoto({"id":5159638,"src":"Suzanne1_thumb.JPG","galleries_id":480827,"server_id":1,"link":"photo_5159638.html","width":130,"caption":"","height":86});
															thumbnails[5159641] = clik.newPhoto({"id":5159641,"src":"Suzanne2_thumb.JPG","galleries_id":480827,"server_id":1,"link":"photo_5159641.html","width":130,"caption":"","height":86});
															thumbnails[5159643] = clik.newPhoto({"id":5159643,"src":"Suzanne3_thumb.JPG","galleries_id":480827,"server_id":1,"link":"photo_5159643.html","width":130,"caption":"","height":86});
															thumbnails[5159652] = clik.newPhoto({"id":5159652,"src":"131_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_5159652.html","width":130,"caption":"","height":195});
															thumbnails[5159646] = clik.newPhoto({"id":5159646,"src":"Suzanne4_thumb.JPG","galleries_id":480827,"server_id":1,"link":"photo_5159646.html","width":130,"caption":"","height":86});
															thumbnails[5159649] = clik.newPhoto({"id":5159649,"src":"130_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_5159649.html","width":130,"caption":"","height":87});
															thumbnails[5159653] = clik.newPhoto({"id":5159653,"src":"147_thumb.jpg","galleries_id":480827,"server_id":1,"link":"photo_5159653.html","width":130,"caption":"","height":86});
															thumbnails[4242829] = clik.newPhoto({"id":4242829,"src":"small_Wedding_135_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_4242829.html","width":130,"caption":"","height":95});
															thumbnails[4242847] = clik.newPhoto({"id":4242847,"src":"small_Wedding_139_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_4242847.html","width":130,"caption":"","height":87});
															thumbnails[6392407] = clik.newPhoto({"id":6392407,"src":"Jetty_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_6392407.html","width":130,"caption":"","height":87});
															thumbnails[4246064] = clik.newPhoto({"id":4246064,"src":"Wedding_1461_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_4246064.html","width":130,"caption":"","height":86});
															thumbnails[9085269] = clik.newPhoto({"id":9085269,"src":"PAB_4718_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_9085269.html","width":130,"caption":"","height":184});
															thumbnails[9085258] = clik.newPhoto({"id":9085258,"src":"PAB_4511_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_9085258.html","width":130,"caption":"","height":102});
															thumbnails[9085264] = clik.newPhoto({"id":9085264,"src":"PAB_4548_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_9085264.html","width":130,"caption":"","height":86});
															thumbnails[9085267] = clik.newPhoto({"id":9085267,"src":"PAB_4622_thumb.jpg","galleries_id":167800,"server_id":1,"link":"photo_9085267.html","width":130,"caption":"","height":90});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[480823] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Photography","link":"gallery_480823.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9110774,8022586,8016634","id":480823,"singleSection":false});				  						galleries[167800] = clik.newGallery({"parentGallery":480823,"usePopups":false,"title":"Weddings","link":"gallery_167800.html","maxRecords":0.0,"photoIDs":[8022586.0,8022576.0,8022582.0,8022857.0,8022864.0,8022865.0,8022867.0,8022953.0,8016634.0,8016635.0,8016636.0,8016637.0,8016638.0,8016639.0,8016640.0,8016641.0,4242829.0,4242847.0,6392407.0,4246064.0,9085269.0,9085258.0,9085264.0,9085267.0],"skipIndex":0,"section_code":"gallery","featured_images":"8022586,8016634","id":167800,"singleSection":false});				  						galleries[480827] = clik.newGallery({"parentGallery":480823,"usePopups":false,"title":"Black & White Weddings","link":"gallery_480827.html","maxRecords":0.0,"photoIDs":[9110794.0,9110846.0,9110867.0,9110893.0,9110774.0,9110772.0,9110942.0,9110958.0,5159543.0,5159638.0,5159641.0,5159643.0,5159652.0,5159646.0,5159649.0,5159653.0],"skipIndex":0,"section_code":"gallery","featured_images":9110774.0,"id":480827,"singleSection":false});				  						galleries[45885] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_45885.html","maxRecords":0.0,"photoIDs":[8014917.0,2651915.0,6159672.0,6394166.0,2614358.0,2614362.0,2614368.0,2614881.0,9116473.0,6212724.0,6212778.0,6159385.0],"skipIndex":0,"section_code":"gallery","featured_images":"8014917,2614358","id":45885,"singleSection":false});				  						galleries[190394] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Corporate","link":"gallery_190394.html","maxRecords":0.0,"photoIDs":[8022285.0,8022298.0,8022428.0,8022442.0,3104920.0,4239915.0,4238909.0],"skipIndex":0,"section_code":"gallery","featured_images":"8022442,8022428","id":190394,"singleSection":false});				  						galleries[45882] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Public Relations","link":"gallery_45882.html","maxRecords":0.0,"photoIDs":[5159021.0,598277.0,598278.0,598276.0,598282.0,598275.0,598270.0,5158979.0],"skipIndex":0,"section_code":"gallery","featured_images":"5158979,598270","id":45882,"singleSection":false});				  						galleries[45884] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Celebrities","link":"gallery_45884.html","maxRecords":0.0,"photoIDs":[6159674.0,3104614.0,3104928.0,611667.0,5594946.0,598286.0,3104845.0,5594947.0,611695.0,598323.0,598368.0,5594958.0],"skipIndex":0,"section_code":"gallery","featured_images":"6159674,5594958,5594946,3104614,598368,598286","id":45884,"singleSection":false});				  						galleries[45881] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"News","link":"gallery_45881.html","maxRecords":0.0,"photoIDs":[597093.0,3512040.0,597092.0,3568228.0,695812.0,597094.0,597095.0,598370.0],"skipIndex":0,"section_code":"gallery","featured_images":3512040.0,"id":45881,"singleSection":false});				  						galleries[380384] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Charity Calendar","link":"gallery_380384.html","maxRecords":0.0,"photoIDs":[7025870.0,7025871.0,7025832.0,7025803.0,7025805.0,7025863.0,7025869.0,7025865.0,7025861.0,7025806.0,7025864.0,7025873.0],"skipIndex":0,"section_code":"gallery","featured_images":7025806.0,"id":380384,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9088088,9105817,9111069,9110998,9120638,9088309,9088341,9088362,9088379,9105679,9116192,9088411,9088423,9088483';
imageSets[2] = '8022586,6159674,8014917,3512040,8016634,3104614,8022428,8022442,5594946,9110774,598286,2614358,598270,7025806,5158979,598368,5594958';
imageSets[3] = '9120638,9116474,9116473,9116192,9111069,9110998,9110958,9110942,9110893,9110867,9110846,9110794,9110774,9110772,9105817,9105679,9088483,9088423,9088411,9088379,9088362,9088341,9088309,9088088,9085269,9085267,9085264,9085258,8022953,8022867,8022865,8022864,8022857,8022586,8022582,8022576,8022442,8022428,8022298,8022285,8016641,8016640,8016639,8016638,8016637,8016636,8016635,8016634,8014917,7025873';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/paulburrows/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/paulburrows/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 = 'Paul Burrows Photographer Manchester: ' + 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;
	}
}

			

