window.thumbnails = {};
															thumbnails[8101898] = clik.newPhoto({"id":8101898,"src":"buckerell_lodge_1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Buckerell Lodge Wedding Brochure","height":89});
															thumbnails[8101902] = clik.newPhoto({"id":8101902,"src":"buckerell_lodge_2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Buckerell Lodge Wedding Brochure","height":89});
															thumbnails[8101903] = clik.newPhoto({"id":8101903,"src":"buckerell_lodge_3_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Buckerell Lodge Wedding Brochure","height":86});
															thumbnails[8101911] = clik.newPhoto({"id":8101911,"src":"tibshelf_school_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Tibshelf School - Derbyshire Times","height":86});
															thumbnails[8101915] = clik.newPhoto({"id":8101915,"src":"buddah_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Buddah Statuette","height":86});
															thumbnails[8101917] = clik.newPhoto({"id":8101917,"src":"cup_cakes_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Cup Cakes","height":86});
															thumbnails[8101925] = clik.newPhoto({"id":8101925,"src":"prom_dress_2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Prom Dress","height":196});
															thumbnails[8108879] = clik.newPhoto({"id":8108879,"src":"porsche_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":72});
															thumbnails[8109047] = clik.newPhoto({"id":8109047,"src":"buckerell_lodge1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Buckerell Lodge Hotel","height":70});
															thumbnails[8140907] = clik.newPhoto({"id":8140907,"src":"cornish_fishermen_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Cornish Fishermen","height":98});
															thumbnails[8190135] = clik.newPhoto({"id":8190135,"src":"circuit_board_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Circuit Board","height":81});
															thumbnails[8224772] = clik.newPhoto({"id":8224772,"src":"DSC_3111sml_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Bracelet","height":87});
															thumbnails[8224778] = clik.newPhoto({"id":8224778,"src":"DSC_3106sml_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Watch, Lighter and Key","height":86});
															thumbnails[8224780] = clik.newPhoto({"id":8224780,"src":"DSC_3098sml_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Perfume Bottle","height":86});
															thumbnails[8224782] = clik.newPhoto({"id":8224782,"src":"DSC_3051sml_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Sunglasses","height":86});
															thumbnails[8224785] = clik.newPhoto({"id":8224785,"src":"DSC_3044sml_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Perfume Bottles","height":95});
															thumbnails[8293554] = clik.newPhoto({"id":8293554,"src":"IMG_78702_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8293566] = clik.newPhoto({"id":8293566,"src":"IMG_83462_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8293580] = clik.newPhoto({"id":8293580,"src":"IMG_0913a2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8293610] = clik.newPhoto({"id":8293610,"src":"DSC_3111sml_C438A65E-1EC9-D45B-1C5DF28CE73E19DD_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8293612] = clik.newPhoto({"id":8293612,"src":"DSC_3044sml_C4392C18-1EC9-D45B-1CEFAFFC85D5C661_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8293617] = clik.newPhoto({"id":8293617,"src":"DSC_3440smla_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8347835] = clik.newPhoto({"id":8347835,"src":"measml1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Ian Lancaster","height":163});
															thumbnails[8409458] = clik.newPhoto({"id":8409458,"src":"chart_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":94});
															thumbnails[8480013] = clik.newPhoto({"id":8480013,"src":"IMG_0883sml_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Liza Watts","height":163});
															thumbnails[8292423] = clik.newPhoto({"id":8292423,"src":"IMG_2802_thumb.jpg","galleries_id":416137,"server_id":15,"link":"photo_8292423.html","width":130,"caption":"Jasper","height":130});
															thumbnails[8292428] = clik.newPhoto({"id":8292428,"src":"IMG_2799_thumb.jpg","galleries_id":416137,"server_id":15,"link":"photo_8292428.html","width":130,"caption":"Jasper","height":130});
															thumbnails[8292439] = clik.newPhoto({"id":8292439,"src":"IMG_0332_thumb.jpg","galleries_id":416137,"server_id":15,"link":"photo_8292439.html","width":130,"caption":"Pixie","height":130});
															thumbnails[8292442] = clik.newPhoto({"id":8292442,"src":"IMG_0334_thumb.jpg","galleries_id":416137,"server_id":15,"link":"photo_8292442.html","width":130,"caption":"Pixie","height":130});
															thumbnails[8292447] = clik.newPhoto({"id":8292447,"src":"IMG_0630_thumb.jpg","galleries_id":416137,"server_id":15,"link":"photo_8292447.html","width":130,"caption":"Timmy","height":130});
															thumbnails[8292451] = clik.newPhoto({"id":8292451,"src":"IMG_0631_thumb.jpg","galleries_id":416137,"server_id":15,"link":"photo_8292451.html","width":130,"caption":"Timmy","height":130});
															thumbnails[8292564] = clik.newPhoto({"id":8292564,"src":"IMG_1475shadowshighlights_thumb.jpg","galleries_id":392378,"server_id":15,"link":"photo_8292564.html","width":130,"caption":"Chloe","height":130});
															thumbnails[8292568] = clik.newPhoto({"id":8292568,"src":"IMG_7744asml_thumb.jpg","galleries_id":392378,"server_id":15,"link":"photo_8292568.html","width":130,"caption":"Helen","height":130});
															thumbnails[8292570] = clik.newPhoto({"id":8292570,"src":"IMG_6181_thumb.jpg","galleries_id":392378,"server_id":15,"link":"photo_8292570.html","width":130,"caption":"Victoria","height":130});
															thumbnails[8292573] = clik.newPhoto({"id":8292573,"src":"IMG_35991_thumb.jpg","galleries_id":392378,"server_id":15,"link":"photo_8292573.html","width":130,"caption":"Katie","height":130});
															thumbnails[8292582] = clik.newPhoto({"id":8292582,"src":"IMG_0583shadows-highlights_thumb.jpg","galleries_id":392378,"server_id":15,"link":"photo_8292582.html","width":130,"caption":"Mel","height":130});
															thumbnails[8292584] = clik.newPhoto({"id":8292584,"src":"IMG_7366_C3151607-1EC9-D45B-1CD7985E3BFC9D0D_thumb.jpg","galleries_id":392378,"server_id":15,"link":"photo_8292584.html","width":130,"caption":"Hayley","height":130});
															thumbnails[8292928] = clik.newPhoto({"id":8292928,"src":"IMG_0356_thumb.jpg","galleries_id":358897,"server_id":15,"link":"photo_8292928.html","width":130,"caption":"Tianna","height":130});
															thumbnails[8292929] = clik.newPhoto({"id":8292929,"src":"IMG_0380_thumb.jpg","galleries_id":358897,"server_id":15,"link":"photo_8292929.html","width":130,"caption":"Tianna","height":130});
															thumbnails[8292932] = clik.newPhoto({"id":8292932,"src":"IMG_0831_thumb.jpg","galleries_id":358897,"server_id":15,"link":"photo_8292932.html","width":130,"caption":"Kieran","height":130});
															thumbnails[8292933] = clik.newPhoto({"id":8292933,"src":"IMG_0854_thumb.jpg","galleries_id":358897,"server_id":15,"link":"photo_8292933.html","width":130,"caption":"Kieran","height":130});
															thumbnails[8292934] = clik.newPhoto({"id":8292934,"src":"IMG_0913a_thumb.jpg","galleries_id":358897,"server_id":15,"link":"photo_8292934.html","width":130,"caption":"Kieran and Nolah","height":130});
															thumbnails[8292936] = clik.newPhoto({"id":8292936,"src":"IMG_1897_thumb.jpg","galleries_id":358897,"server_id":15,"link":"photo_8292936.html","width":130,"caption":"Elliott","height":130});
															thumbnails[8292963] = clik.newPhoto({"id":8292963,"src":"montagea1_thumb.jpg","galleries_id":416136,"server_id":15,"link":"photo_8292963.html","width":130,"caption":"Katie","height":130});
															thumbnails[8292964] = clik.newPhoto({"id":8292964,"src":"IMG_7663light_thumb.jpg","galleries_id":416136,"server_id":15,"link":"photo_8292964.html","width":130,"caption":"Katie","height":130});
															thumbnails[8292969] = clik.newPhoto({"id":8292969,"src":"IMG_78701_thumb.jpg","galleries_id":416136,"server_id":15,"link":"photo_8292969.html","width":130,"caption":"Sarah","height":130});
															thumbnails[8292970] = clik.newPhoto({"id":8292970,"src":"IMG_7836a1_thumb.jpg","galleries_id":416136,"server_id":15,"link":"photo_8292970.html","width":130,"caption":"Sarah","height":130});
															thumbnails[8292972] = clik.newPhoto({"id":8292972,"src":"IMG_5694shadows-highlights_thumb.jpg","galleries_id":416136,"server_id":15,"link":"photo_8292972.html","width":130,"caption":"Beata","height":130});
															thumbnails[8292979] = clik.newPhoto({"id":8292979,"src":"montagese1_thumb.jpg","galleries_id":416136,"server_id":15,"link":"photo_8292979.html","width":130,"caption":"Sophia","height":130});
															thumbnails[8293078] = clik.newPhoto({"id":8293078,"src":"IMG_0249_thumb.JPG","galleries_id":358892,"server_id":15,"link":"photo_8293078.html","width":130,"caption":"Family Members","height":130});
															thumbnails[8293081] = clik.newPhoto({"id":8293081,"src":"IMG_0269shadows-highlights1_thumb.jpg","galleries_id":358892,"server_id":15,"link":"photo_8293081.html","width":130,"caption":"The Bride and Best Men","height":130});
															thumbnails[8293093] = clik.newPhoto({"id":8293093,"src":"IMG_8188light1_thumb.jpg","galleries_id":358892,"server_id":15,"link":"photo_8293093.html","width":130,"caption":"Bride and Father","height":130});
															thumbnails[8293103] = clik.newPhoto({"id":8293103,"src":"IMG_8282_thumb.jpg","galleries_id":358892,"server_id":15,"link":"photo_8293103.html","width":130,"caption":"All the Guests","height":130});
															thumbnails[8293143] = clik.newPhoto({"id":8293143,"src":"IMG_83461_thumb.jpg","galleries_id":358892,"server_id":15,"link":"photo_8293143.html","width":130,"caption":"The Bride and Groom","height":130});
															thumbnails[8297311] = clik.newPhoto({"id":8297311,"src":"IMG_7876_thumb.jpg","galleries_id":358892,"server_id":15,"link":"photo_8297311.html","width":130,"caption":"Signing the Register","height":130});
															thumbnails[8293739] = clik.newPhoto({"id":8293739,"src":"DSC_3450smla_thumb.jpg","galleries_id":441318,"server_id":15,"link":"photo_8293739.html","width":130,"caption":"Lovedays Solicitors","height":130});
															thumbnails[8293741] = clik.newPhoto({"id":8293741,"src":"DSC_3376smla_thumb.jpg","galleries_id":441318,"server_id":15,"link":"photo_8293741.html","width":130,"caption":"Lovedays Solicitors","height":130});
															thumbnails[8293742] = clik.newPhoto({"id":8293742,"src":"DSC_3440smla1_thumb.jpg","galleries_id":441318,"server_id":15,"link":"photo_8293742.html","width":130,"caption":"Lovedays Solicitors","height":130});
															thumbnails[8293748] = clik.newPhoto({"id":8293748,"src":"buckerell_lodge_11_thumb.jpg","galleries_id":441319,"server_id":15,"link":"photo_8293748.html","width":130,"caption":"Buckerell Lodge Wedding Brochure","height":130});
															thumbnails[8293750] = clik.newPhoto({"id":8293750,"src":"buckerell_lodge_21_thumb.jpg","galleries_id":441319,"server_id":15,"link":"photo_8293750.html","width":130,"caption":"Buckerell Lodge Wedding Brochure","height":130});
															thumbnails[8293751] = clik.newPhoto({"id":8293751,"src":"buckerell_lodge_31_thumb.jpg","galleries_id":441319,"server_id":15,"link":"photo_8293751.html","width":130,"caption":"Buckerell Lodge Wedding Brochure","height":130});
															thumbnails[8400568] = clik.newPhoto({"id":8400568,"src":"DSC_4231sml_thumb.jpg","galleries_id":445168,"server_id":15,"link":"photo_8400568.html","width":130,"caption":"Boosting Business","height":130});
															thumbnails[8400569] = clik.newPhoto({"id":8400569,"src":"DSC_4224sml_thumb.jpg","galleries_id":445168,"server_id":15,"link":"photo_8400569.html","width":130,"caption":"Boosting Business","height":130});
															thumbnails[8400571] = clik.newPhoto({"id":8400571,"src":"DSC_4183sml_thumb.jpg","galleries_id":445168,"server_id":15,"link":"photo_8400571.html","width":130,"caption":"Boosting Business","height":130});
															thumbnails[8618692] = clik.newPhoto({"id":8618692,"src":"_D200006sml_thumb.jpg","galleries_id":455600,"server_id":15,"link":"photo_8618692.html","width":130,"caption":"Lillybet's Florists","height":130});
															thumbnails[8618694] = clik.newPhoto({"id":8618694,"src":"DSC_4300editsml_thumb.jpg","galleries_id":455600,"server_id":15,"link":"photo_8618694.html","width":130,"caption":"Lillybet's Florists","height":130});
															thumbnails[8618695] = clik.newPhoto({"id":8618695,"src":"DSC_4322sml_thumb.jpg","galleries_id":455600,"server_id":15,"link":"photo_8618695.html","width":130,"caption":"Lillybet's Florists","height":130});
															thumbnails[8618697] = clik.newPhoto({"id":8618697,"src":"DSC_4420sml_thumb.jpg","galleries_id":455598,"server_id":15,"link":"photo_8618697.html","width":130,"caption":"Winning Works","height":130});
															thumbnails[8618699] = clik.newPhoto({"id":8618699,"src":"DSC_4436sml_thumb.jpg","galleries_id":455598,"server_id":15,"link":"photo_8618699.html","width":130,"caption":"Winning Works","height":130});
															thumbnails[8618700] = clik.newPhoto({"id":8618700,"src":"DSC_4446sml_thumb.jpg","galleries_id":455598,"server_id":15,"link":"photo_8618700.html","width":130,"caption":"Winning Works","height":130});
															thumbnails[8618709] = clik.newPhoto({"id":8618709,"src":"_D200017sml_thumb.jpg","galleries_id":455601,"server_id":15,"link":"photo_8618709.html","width":130,"caption":"Read Interiors","height":130});
															thumbnails[8618711] = clik.newPhoto({"id":8618711,"src":"_D200026sml_thumb.jpg","galleries_id":455601,"server_id":15,"link":"photo_8618711.html","width":130,"caption":"Read Interiors","height":130});
															thumbnails[8618712] = clik.newPhoto({"id":8618712,"src":"_D200069sml_thumb.jpg","galleries_id":455601,"server_id":15,"link":"photo_8618712.html","width":130,"caption":"Read Interiors","height":130});
															thumbnails[8293242] = clik.newPhoto({"id":8293242,"src":"IMG_6411aaa1_thumb.jpg","galleries_id":441314,"server_id":15,"link":"photo_8293242.html","width":130,"caption":"Hair by Chantelle Price ","height":130});
															thumbnails[8293262] = clik.newPhoto({"id":8293262,"src":"hair_by_chantelle_21_thumb.jpg","galleries_id":441314,"server_id":15,"link":"photo_8293262.html","width":130,"caption":"Hair by Chantelle Price ","height":130});
															thumbnails[8293280] = clik.newPhoto({"id":8293280,"src":"IMG_65742_thumb.jpg","galleries_id":441314,"server_id":15,"link":"photo_8293280.html","width":130,"caption":"Hair by Chantelle Price ","height":130});
															thumbnails[8293294] = clik.newPhoto({"id":8293294,"src":"IMG_2656_thumb.jpg","galleries_id":441317,"server_id":15,"link":"photo_8293294.html","width":130,"caption":"Makeup by Adele Coxon","height":130});
															thumbnails[8293420] = clik.newPhoto({"id":8293420,"src":"spread-5_thumb.jpg","galleries_id":441316,"server_id":15,"link":"photo_8293420.html","width":130,"caption":"Headquarters, Exeter","height":130});
															thumbnails[8297314] = clik.newPhoto({"id":8297314,"src":"hair13_thumb.jpg","galleries_id":441316,"server_id":15,"link":"photo_8297314.html","width":130,"caption":"Headquarters, Exeter","height":130});
															thumbnails[8297316] = clik.newPhoto({"id":8297316,"src":"IMG_2020a_thumb.jpg","galleries_id":441316,"server_id":15,"link":"photo_8297316.html","width":130,"caption":"Headquarters, Exeter","height":130});
															thumbnails[8297322] = clik.newPhoto({"id":8297322,"src":"hair12_thumb.jpg","galleries_id":441317,"server_id":15,"link":"photo_8297322.html","width":130,"caption":"Makeup by Adele Coxon","height":130});
															thumbnails[8297342] = clik.newPhoto({"id":8297342,"src":"hair111_thumb.jpg","galleries_id":441317,"server_id":15,"link":"photo_8297342.html","width":130,"caption":"Makeup by Adele Coxon","height":130});
															thumbnails[8293429] = clik.newPhoto({"id":8293429,"src":"IMG_26561_thumb.jpg","galleries_id":413345,"server_id":15,"link":"photo_8293429.html","width":130,"caption":"Makeup by Adele Coxon","height":130});
															thumbnails[8293445] = clik.newPhoto({"id":8293445,"src":"IMG_54161_thumb.jpg","galleries_id":413324,"server_id":15,"link":"photo_8293445.html","width":130,"caption":"Finishing Touch","height":130});
															thumbnails[8293448] = clik.newPhoto({"id":8293448,"src":"IMG_5581a_thumb.jpg","galleries_id":413324,"server_id":15,"link":"photo_8293448.html","width":130,"caption":"Finishing Touch","height":130});
															thumbnails[8293451] = clik.newPhoto({"id":8293451,"src":"DSC_1756sml_thumb.jpg","galleries_id":413324,"server_id":15,"link":"photo_8293451.html","width":130,"caption":"Finishing Touch","height":130});
															thumbnails[8293457] = clik.newPhoto({"id":8293457,"src":"_DSC14021_thumb.JPG","galleries_id":429685,"server_id":15,"link":"photo_8293457.html","width":130,"caption":"Alex Hinds","height":130});
															thumbnails[8293459] = clik.newPhoto({"id":8293459,"src":"_DSC24541_thumb.JPG","galleries_id":429685,"server_id":15,"link":"photo_8293459.html","width":130,"caption":"Alex Hinds","height":130});
															thumbnails[8293461] = clik.newPhoto({"id":8293461,"src":"_DSC25861_thumb.JPG","galleries_id":429685,"server_id":15,"link":"photo_8293461.html","width":130,"caption":"Alex Hinds","height":130});
															thumbnails[8293467] = clik.newPhoto({"id":8293467,"src":"wedding-21_thumb.jpg","galleries_id":429685,"server_id":15,"link":"photo_8293467.html","width":130,"caption":"Alex Hinds","height":130});
															thumbnails[8293472] = clik.newPhoto({"id":8293472,"src":"_DSC46591_thumb.jpg","galleries_id":429685,"server_id":15,"link":"photo_8293472.html","width":130,"caption":"Alex Hinds","height":130});
															thumbnails[8293478] = clik.newPhoto({"id":8293478,"src":"_DSC47681_thumb.JPG","galleries_id":429685,"server_id":15,"link":"photo_8293478.html","width":130,"caption":"Alex Hinds","height":130});
															thumbnails[8297325] = clik.newPhoto({"id":8297325,"src":"hair121_thumb.jpg","galleries_id":413345,"server_id":15,"link":"photo_8297325.html","width":130,"caption":"Makeup by Adele Coxon","height":130});
															thumbnails[8297339] = clik.newPhoto({"id":8297339,"src":"hair11_thumb.jpg","galleries_id":413345,"server_id":15,"link":"photo_8297339.html","width":130,"caption":"Makeup by Adele Coxon","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[413345] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Adele Coxon","link":"section485289_413345.html","maxRecords":0.0,"photoIDs":[8293429.0,8297325.0,8297339.0],"skipIndex":0,"section_code":"section485289","featured_images":"8297339,8297325,8293429","id":413345,"singleSection":false});				  						galleries[429685] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alex Hinds","link":"section485289_429685.html","maxRecords":0.0,"photoIDs":[8293457.0,8293459.0,8293461.0,8293467.0,8293472.0,8293478.0],"skipIndex":0,"section_code":"section485289","featured_images":"8293478,8293472,8293467,8293461,8293459,8293457","id":429685,"singleSection":false});				  						galleries[416137] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_416137.html","maxRecords":0.0,"photoIDs":[8292423.0,8292428.0,8292439.0,8292442.0,8292447.0,8292451.0],"skipIndex":0,"section_code":"gallery","featured_images":"8292451,8292447,8292442,8292439,8292428,8292423","id":416137,"singleSection":false});				  						galleries[455600] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Best of .....","link":"section521098_455600.html","maxRecords":0.0,"photoIDs":[8618692.0,8618694.0,8618695.0],"skipIndex":0,"section_code":"section521098","featured_images":"8618695,8618694,8618692","id":455600,"singleSection":false});				  						galleries[445168] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Boosting Business","link":"section521098_445168.html","maxRecords":0.0,"photoIDs":[8400568.0,8400569.0,8400571.0],"skipIndex":0,"section_code":"section521098","featured_images":"8400571,8400569,8400568","id":445168,"singleSection":false});				  						galleries[441319] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Buckerell Lodge Hotel","link":"section521098_441319.html","maxRecords":0.0,"photoIDs":[8293748.0,8293750.0,8293751.0],"skipIndex":0,"section_code":"section521098","featured_images":"8293751,8293750,8293748","id":441319,"singleSection":false});				  						galleries[413324] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Finishing Touch","link":"section485289_413324.html","maxRecords":0.0,"photoIDs":[8293445.0,8293448.0,8293451.0],"skipIndex":0,"section_code":"section485289","featured_images":"8293451,8293448,8293445","id":413324,"singleSection":false});				  						galleries[441314] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hair by Chantelle Price","link":"section530607_441314.html","maxRecords":0.0,"photoIDs":[8293242.0,8293262.0,8293280.0],"skipIndex":0,"section_code":"section530607","featured_images":"8293280,8293262,8293242","id":441314,"singleSection":false});				  						galleries[441316] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Headquarters Exeter","link":"section530607_441316.html","maxRecords":0.0,"photoIDs":[8293420.0,8297314.0,8297316.0],"skipIndex":0,"section_code":"section530607","featured_images":"8297316,8297314,8293420","id":441316,"singleSection":false});				  						galleries[441318] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lovedays Solicitors","link":"section521098_441318.html","maxRecords":0.0,"photoIDs":[8293739.0,8293741.0,8293742.0],"skipIndex":0,"section_code":"section521098","featured_images":"8293742,8293741,8293739","id":441318,"singleSection":false});				  						galleries[441317] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Makeup by Adele Coxon","link":"section530607_441317.html","maxRecords":0.0,"photoIDs":[8293294.0,8297322.0,8297342.0],"skipIndex":0,"section_code":"section530607","featured_images":"8297342,8297322,8293294","id":441317,"singleSection":false});				  						galleries[455601] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Read Interiors","link":"section521098_455601.html","maxRecords":0.0,"photoIDs":[8618709.0,8618711.0,8618712.0],"skipIndex":0,"section_code":"section521098","featured_images":"8618712,8618711,8618709","id":455601,"singleSection":false});				  						galleries[455598] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winning Works","link":"section521098_455598.html","maxRecords":0.0,"photoIDs":[8618697.0,8618699.0,8618700.0],"skipIndex":0,"section_code":"section521098","featured_images":"8618700,8618699,8618697","id":455598,"singleSection":false});				  						galleries[392378] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_392378.html","maxRecords":0.0,"photoIDs":[8292564.0,8292568.0,8292570.0,8292573.0,8292582.0,8292584.0],"skipIndex":0,"section_code":"gallery","featured_images":"8292584,8292582,8292573,8292570,8292568,8292564","id":392378,"singleSection":false});				  						galleries[358892] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_358892.html","maxRecords":0.0,"photoIDs":[8293078.0,8293081.0,8293093.0,8293103.0,8293143.0,8297311.0],"skipIndex":0,"section_code":"gallery","featured_images":"8297311,8293143,8293103,8293093,8293081,8293078","id":358892,"singleSection":false});				  						galleries[358897] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_358897.html","maxRecords":0.0,"photoIDs":[8292928.0,8292929.0,8292932.0,8292933.0,8292934.0,8292936.0],"skipIndex":0,"section_code":"gallery","featured_images":"8292936,8292934,8292933,8292932,8292929,8292928","id":358897,"singleSection":false});				  						galleries[416136] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolios","link":"gallery_416136.html","maxRecords":0.0,"photoIDs":[8292963.0,8292964.0,8292969.0,8292970.0,8292972.0,8292979.0],"skipIndex":0,"section_code":"gallery","featured_images":"8292979,8292972,8292970,8292969,8292964,8292963","id":416136,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[244670] = '8409458';
imageSets[1] = '8293617,8293612,8293610,8293580,8293566,8293554';
imageSets[244968] = '8480013,8347835';
imageSets[3] = '8618712,8618711,8618709,8618700,8618699,8618697,8618695,8618694,8618692,8480013,8409458,8400571,8400569,8400568,8347835,8297342,8297339,8297325,8297322,8297316,8297314,8297311,8293751,8293750,8293748,8293742,8293741,8293739,8293617,8293612,8293610,8293580,8293566,8293554,8293478,8293472,8293467,8293461,8293459,8293457,8293451,8293448,8293445,8293429,8293420,8293294,8293280,8293262,8293242,8293143';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/ilancphoto/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/ilancphoto/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 = 'Shots of Inspiration: ' + 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 !== '' || this.payment_groups_id !== '') {
			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;
	}
}

			

