window.thumbnails = {};
															thumbnails[3281008] = clik.newPhoto({"id":3281008,"src":"Charlotte_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Charlotte and Matthew Goodsall","height":136});
															thumbnails[4941689] = clik.newPhoto({"id":4941689,"src":"Helen_Casey_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Helen and Gerry Casey","height":195});
															thumbnails[7006682] = clik.newPhoto({"id":7006682,"src":"Georgina_and_Marc_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":196});
															thumbnails[7006821] = clik.newPhoto({"id":7006821,"src":"05821_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8971513] = clik.newPhoto({"id":8971513,"src":"ICS_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Corporate","height":131});
															thumbnails[3281498] = clik.newPhoto({"id":3281498,"src":"janine full pic copy1_thumb.jpg","galleries_id":469903,"server_id":15,"link":"photo_3281498.html","width":130,"caption":"Janine","height":212});
															thumbnails[3281523] = clik.newPhoto({"id":3281523,"src":"blck & whtcopy_thumb.jpg","galleries_id":469903,"server_id":15,"link":"photo_3281523.html","width":130,"caption":"Mini Cakes","height":216});
															thumbnails[3281926] = clik.newPhoto({"id":3281926,"src":"Betty Boop_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3281926.html","width":130,"caption":"Betty Boop","height":173});
															thumbnails[3281931] = clik.newPhoto({"id":3281931,"src":"21st cake_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3281931.html","width":130,"caption":"21st Birthday","height":98});
															thumbnails[3281933] = clik.newPhoto({"id":3281933,"src":"airplane_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3281933.html","width":130,"caption":"Aeroplane","height":98});
															thumbnails[3284521] = clik.newPhoto({"id":3284521,"src":"disney princess_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3284521.html","width":130,"caption":"Princess Castle","height":200});
															thumbnails[3284563] = clik.newPhoto({"id":3284563,"src":"Eeyore_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3284563.html","width":130,"caption":"Eeyore","height":173});
															thumbnails[3284574] = clik.newPhoto({"id":3284574,"src":"Individuals_thumb.jpg","galleries_id":469903,"server_id":15,"link":"photo_3284574.html","width":130,"caption":"Individual Cakes in Rice Paper","height":174});
															thumbnails[3302769] = clik.newPhoto({"id":3302769,"src":"booties_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_3302769.html","width":130,"caption":"Bootees","height":98});
															thumbnails[3302829] = clik.newPhoto({"id":3302829,"src":"Eloise_thumb.jpg","galleries_id":201155,"server_id":15,"link":"photo_3302829.html","width":130,"caption":"Eloise","height":173});
															thumbnails[3302833] = clik.newPhoto({"id":3302833,"src":"Finlay_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302833.html","width":130,"caption":"Building Blocks","height":97});
															thumbnails[3302843] = clik.newPhoto({"id":3302843,"src":"horse_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302843.html","width":130,"caption":"Horses Head","height":97});
															thumbnails[3302845] = clik.newPhoto({"id":3302845,"src":"ickle pickle_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302845.html","width":130,"caption":"Iggle Pickle","height":173});
															thumbnails[3302856] = clik.newPhoto({"id":3302856,"src":"Lizzie_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302856.html","width":130,"caption":"Lizzie","height":174});
															thumbnails[3302869] = clik.newPhoto({"id":3302869,"src":"Megan_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3302869.html","width":130,"caption":"Megan","height":97});
															thumbnails[3302882] = clik.newPhoto({"id":3302882,"src":"Nikhil_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302882.html","width":130,"caption":"Large Train","height":50});
															thumbnails[3302885] = clik.newPhoto({"id":3302885,"src":"Noddy Car_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302885.html","width":130,"caption":"Noddys Car","height":97});
															thumbnails[3302889] = clik.newPhoto({"id":3302889,"src":"R2D2_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302889.html","width":130,"caption":"R2D2","height":173});
															thumbnails[3302897] = clik.newPhoto({"id":3302897,"src":"ROSE CHRISTENING_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_3302897.html","width":130,"caption":"Rose Christening","height":173});
															thumbnails[3302902] = clik.newPhoto({"id":3302902,"src":"Spiderman_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302902.html","width":130,"caption":"Spiderman","height":105});
															thumbnails[3302905] = clik.newPhoto({"id":3302905,"src":"teddies_thumb.jpg","galleries_id":201155,"server_id":15,"link":"photo_3302905.html","width":130,"caption":"Teddies","height":97});
															thumbnails[3302907] = clik.newPhoto({"id":3302907,"src":"thomas face_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_3302907.html","width":130,"caption":"2D Thomas","height":168});
															thumbnails[3303062] = clik.newPhoto({"id":3303062,"src":"dads camera 049_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3303062.html","width":130,"caption":"Laura","height":173});
															thumbnails[3303065] = clik.newPhoto({"id":3303065,"src":"Christening_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_3303065.html","width":130,"caption":"Floral Horse Shoe","height":148});
															thumbnails[3303066] = clik.newPhoto({"id":3303066,"src":"swan x 3_thumb.jpg","galleries_id":201155,"server_id":15,"link":"photo_3303066.html","width":130,"caption":"Swan Vesta","height":98});
															thumbnails[3303147] = clik.newPhoto({"id":3303147,"src":"scouts_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3303147.html","width":130,"caption":"Scouts Camping","height":173});
															thumbnails[3403751] = clik.newPhoto({"id":3403751,"src":"claire_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_3403751.html","width":130,"caption":"Claire","height":173});
															thumbnails[3573215] = clik.newPhoto({"id":3573215,"src":"disney_014_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3573215.html","width":130,"caption":"Ben 10 Omnitrix","height":130});
															thumbnails[3573218] = clik.newPhoto({"id":3573218,"src":"disney_003_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3573218.html","width":130,"caption":"L V Handbag","height":98});
															thumbnails[3573313] = clik.newPhoto({"id":3573313,"src":"march_010_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_3573313.html","width":130,"caption":"Spring Christening Cake","height":138});
															thumbnails[3963289] = clik.newPhoto({"id":3963289,"src":"Tank_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3963289.html","width":130,"caption":"Tank","height":98});
															thumbnails[3963291] = clik.newPhoto({"id":3963291,"src":"Tiffany_box_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3963291.html","width":130,"caption":"Tiffany Box","height":173});
															thumbnails[3963293] = clik.newPhoto({"id":3963293,"src":"Ferrari_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3963293.html","width":130,"caption":"Red Ferrari","height":173});
															thumbnails[3963296] = clik.newPhoto({"id":3963296,"src":"Floral_christening_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_3963296.html","width":130,"caption":"Floral Christening","height":173});
															thumbnails[3963298] = clik.newPhoto({"id":3963298,"src":"Pink_race_car_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_3963298.html","width":130,"caption":"Pink Race Car","height":98});
															thumbnails[4339660] = clik.newPhoto({"id":4339660,"src":"Monica_1_thumb_CB1254D9-1EC9-DFB6-0939118D630A7B86.JPG","galleries_id":469903,"server_id":15,"link":"photo_4339660.html","width":130,"caption":"Monica","height":173});
															thumbnails[4339669] = clik.newPhoto({"id":4339669,"src":"Noddy_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_4339669.html","width":130,"caption":"Noddy","height":173});
															thumbnails[4339676] = clik.newPhoto({"id":4339676,"src":"R_W_Communications_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_4339676.html","width":130,"caption":"R W Communications","height":178});
															thumbnails[4941767] = clik.newPhoto({"id":4941767,"src":"Vanilla_and_choc_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_4941767.html","width":130,"caption":"Individual Muffin Cakes","height":204});
															thumbnails[5327582] = clik.newPhoto({"id":5327582,"src":"Green_Motorbike_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_5327582.html","width":130,"caption":"Green Motorbike","height":98});
															thumbnails[5478442] = clik.newPhoto({"id":5478442,"src":"Roary_racing_car_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_5478442.html","width":130,"caption":"Roary Racing Car","height":173});
															thumbnails[5478510] = clik.newPhoto({"id":5478510,"src":"Darth_Vader_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_5478510.html","width":130,"caption":"Darth Vader","height":131});
															thumbnails[7006829] = clik.newPhoto({"id":7006829,"src":"Lucia_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7006829.html","width":130,"caption":"Lucia","height":173});
															thumbnails[7029079] = clik.newPhoto({"id":7029079,"src":"Gill_2_tier_thumb.jpg","galleries_id":200056,"server_id":15,"link":"photo_7029079.html","width":130,"caption":"Birthday\/wedding","height":131});
															thumbnails[7029260] = clik.newPhoto({"id":7029260,"src":"Red_and_Yellow_roses_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7029260.html","width":130,"caption":"Red and Gold","height":173});
															thumbnails[7029294] = clik.newPhoto({"id":7029294,"src":"Becky_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_7029294.html","width":130,"caption":"Individual Vanilla Cup Cakes","height":122});
															thumbnails[7277649] = clik.newPhoto({"id":7277649,"src":"Carla_full_size_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_7277649.html","width":130,"caption":"Carla's Cakes","height":253});
															thumbnails[7277657] = clik.newPhoto({"id":7277657,"src":"Gill_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7277657.html","width":130,"caption":"Gill ","height":173});
															thumbnails[7277861] = clik.newPhoto({"id":7277861,"src":"Janine_lilac_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7277861.html","width":130,"caption":"Janine and David","height":179});
															thumbnails[7277888] = clik.newPhoto({"id":7277888,"src":"Petrina_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7277888.html","width":130,"caption":"Helen's Ivory","height":194});
															thumbnails[7277949] = clik.newPhoto({"id":7277949,"src":"Reena_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7277949.html","width":130,"caption":"Reena and Andrew","height":149});
															thumbnails[7278011] = clik.newPhoto({"id":7278011,"src":"50_Numeral_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_7278011.html","width":130,"caption":"50 floral numeral","height":98});
															thumbnails[7278073] = clik.newPhoto({"id":7278073,"src":"Jen_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7278073.html","width":130,"caption":"Jenny's Roses","height":173});
															thumbnails[7278076] = clik.newPhoto({"id":7278076,"src":"60_Numeral_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_7278076.html","width":130,"caption":"60 floral numeral","height":80});
															thumbnails[7278099] = clik.newPhoto({"id":7278099,"src":"Elisa_Blck_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_7278099.html","width":130,"caption":"Elisa","height":124});
															thumbnails[8931685] = clik.newPhoto({"id":8931685,"src":"Danielle_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_8931685.html","width":130,"caption":"Danielle","height":173});
															thumbnails[8931689] = clik.newPhoto({"id":8931689,"src":"Carla_Minis_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_8931689.html","width":130,"caption":"","height":97});
															thumbnails[8971115] = clik.newPhoto({"id":8971115,"src":"Pacifica_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971115.html","width":130,"caption":"Yamaha Pacifica","height":173});
															thumbnails[8971301] = clik.newPhoto({"id":8971301,"src":"Gold_Leaves_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8971301.html","width":130,"caption":"Gold & Ivory","height":198});
															thumbnails[8971360] = clik.newPhoto({"id":8971360,"src":"Everton_shirt_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971360.html","width":130,"caption":"Football Shirt","height":140});
															thumbnails[8971516] = clik.newPhoto({"id":8971516,"src":"Chardonay_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971516.html","width":130,"caption":"Chardonnay","height":173});
															thumbnails[8971766] = clik.newPhoto({"id":8971766,"src":"Keith__Linh_Cake_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_8971766.html","width":130,"caption":"Linh","height":163});
															thumbnails[8971837] = clik.newPhoto({"id":8971837,"src":"ICS1_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_8971837.html","width":130,"caption":"Corporate","height":131});
															thumbnails[8971842] = clik.newPhoto({"id":8971842,"src":"Katrin_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8971842.html","width":130,"caption":"Katrin","height":173});
															thumbnails[8971848] = clik.newPhoto({"id":8971848,"src":"Sophie_18th_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971848.html","width":130,"caption":"Sophie","height":165});
															thumbnails[8971854] = clik.newPhoto({"id":8971854,"src":"Waynes_21_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971854.html","width":130,"caption":"","height":97});
															thumbnails[8971868] = clik.newPhoto({"id":8971868,"src":"Mentor_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_8971868.html","width":130,"caption":"Smile Week","height":173});
															thumbnails[8972050] = clik.newPhoto({"id":8972050,"src":"St_andrews_cake_thumb.jpg","galleries_id":201155,"server_id":15,"link":"photo_8972050.html","width":130,"caption":"St Andrews Church","height":124});
															thumbnails[8972073] = clik.newPhoto({"id":8972073,"src":"Mentor1_thumb.JPG","galleries_id":201155,"server_id":15,"link":"photo_8972073.html","width":130,"caption":"Mentor\/Smile Week","height":173});
															thumbnails[8931568] = clik.newPhoto({"id":8931568,"src":"Dawn_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8931568.html","width":130,"caption":"Dawn","height":173});
															thumbnails[8931748] = clik.newPhoto({"id":8931748,"src":"Stephanie_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_8931748.html","width":130,"caption":"Stephanie","height":173});
															thumbnails[8971160] = clik.newPhoto({"id":8971160,"src":"Black_Motorbike_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971160.html","width":130,"caption":"","height":98});
															thumbnails[8971355] = clik.newPhoto({"id":8971355,"src":"Black_and_white_handbag_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971355.html","width":130,"caption":"","height":98});
															thumbnails[8971175] = clik.newPhoto({"id":8971175,"src":"pnk_wte_minis_thumb.JPG","galleries_id":469903,"server_id":15,"link":"photo_8971175.html","width":130,"caption":"Pink & Whites","height":174});
															thumbnails[8971543] = clik.newPhoto({"id":8971543,"src":"Michelle_C952E0A5-1EC9-DFB6-090C6997FF3618A2_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8971543.html","width":130,"caption":"Shelly","height":173});
															thumbnails[8971154] = clik.newPhoto({"id":8971154,"src":"Joanne_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8971154.html","width":130,"caption":"Joanne","height":173});
															thumbnails[3303021] = clik.newPhoto({"id":3303021,"src":"Charlotte_2_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_3303021.html","width":130,"caption":"Charlotte","height":201});
															thumbnails[8931691] = clik.newPhoto({"id":8931691,"src":"Emmas_Choc_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_8931691.html","width":130,"caption":"Emma","height":173});
															thumbnails[8971166] = clik.newPhoto({"id":8971166,"src":"Natalia_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8971166.html","width":130,"caption":"Natalia","height":178});
															thumbnails[8971518] = clik.newPhoto({"id":8971518,"src":"Kairan_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8971518.html","width":130,"caption":"Kairan","height":173});
															thumbnails[8971271] = clik.newPhoto({"id":8971271,"src":"Disco_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971271.html","width":130,"caption":"Retro Disco","height":186});
															thumbnails[8971520] = clik.newPhoto({"id":8971520,"src":"Silver_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8971520.html","width":130,"caption":"Angela","height":173});
															thumbnails[8931564] = clik.newPhoto({"id":8931564,"src":"Jayne_thumb_C5AC8DD8-24E8-5EC4-4F46BE7438C89073.JPG","galleries_id":200055,"server_id":15,"link":"photo_8931564.html","width":130,"caption":"Jayne","height":173});
															thumbnails[3281464] = clik.newPhoto({"id":3281464,"src":"BandWSpotsCopy_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3281464.html","width":130,"caption":"Dalmation","height":173});
															thumbnails[8931694] = clik.newPhoto({"id":8931694,"src":"Natalie_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_8931694.html","width":130,"caption":"Natalie","height":165});
															thumbnails[8931967] = clik.newPhoto({"id":8931967,"src":"adriane__david_047_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8931967.html","width":130,"caption":"Adrianne","height":195});
															thumbnails[8931969] = clik.newPhoto({"id":8931969,"src":"Alison1_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_8931969.html","width":130,"caption":"Alison","height":173});
															thumbnails[3281478] = clik.newPhoto({"id":3281478,"src":"B&G mtrbkcopy_thumb.jpg","galleries_id":299772,"server_id":15,"link":"photo_3281478.html","width":130,"caption":"Milk Choc Curls and Soft Fruits","height":158});
															thumbnails[8971296] = clik.newPhoto({"id":8971296,"src":"Bowser_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971296.html","width":130,"caption":"Bowser","height":179});
															thumbnails[3281488] = clik.newPhoto({"id":3281488,"src":"Catherine Copy_thumb.jpg","galleries_id":299772,"server_id":15,"link":"photo_3281488.html","width":130,"caption":"Catherine","height":138});
															thumbnails[8971305] = clik.newPhoto({"id":8971305,"src":"Violin_thumb.JPG","galleries_id":200056,"server_id":15,"link":"photo_8971305.html","width":130,"caption":"Violin","height":72});
															thumbnails[3302793] = clik.newPhoto({"id":3302793,"src":"Cindi_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_3302793.html","width":130,"caption":"Cindi","height":173});
															thumbnails[3281743] = clik.newPhoto({"id":3281743,"src":"Shauncopy_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3281743.html","width":130,"caption":"Shauna","height":173});
															thumbnails[3302825] = clik.newPhoto({"id":3302825,"src":"Donna_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_3302825.html","width":130,"caption":"Donna","height":173});
															thumbnails[3302834] = clik.newPhoto({"id":3302834,"src":"Ginas roses_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_3302834.html","width":130,"caption":"Gina","height":98});
															thumbnails[3281555] = clik.newPhoto({"id":3281555,"src":"kirstencopy_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3281555.html","width":130,"caption":"Kirsten","height":90});
															thumbnails[3302821] = clik.newPhoto({"id":3302821,"src":"Desilva_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3302821.html","width":130,"caption":"Desilva","height":191});
															thumbnails[3302848] = clik.newPhoto({"id":3302848,"src":"Jenny_thumb.jpg","galleries_id":299772,"server_id":15,"link":"photo_3302848.html","width":130,"caption":"Jenny","height":182});
															thumbnails[3302886] = clik.newPhoto({"id":3302886,"src":"Pauline_thumb.jpg","galleries_id":299772,"server_id":15,"link":"photo_3302886.html","width":130,"caption":"Pauline","height":174});
															thumbnails[4339656] = clik.newPhoto({"id":4339656,"src":"Chocolate_and_Cream_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_4339656.html","width":130,"caption":"Chocolate and Cream","height":196});
															thumbnails[8931890] = clik.newPhoto({"id":8931890,"src":"Square_chocolate_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_8931890.html","width":130,"caption":"Square with Berries","height":154});
															thumbnails[8931892] = clik.newPhoto({"id":8931892,"src":"Vanessa_Chocolate_cake_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_8931892.html","width":130,"caption":"Vanessa","height":173});
															thumbnails[3303149] = clik.newPhoto({"id":3303149,"src":"sunflowerscopy_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3303149.html","width":130,"caption":"Sunflowers","height":173});
															thumbnails[3281558] = clik.newPhoto({"id":3281558,"src":"Rebeccacopy_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3281558.html","width":130,"caption":"Rebecca","height":173});
															thumbnails[3302878] = clik.newPhoto({"id":3302878,"src":"Nicola_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3302878.html","width":130,"caption":"Nicola","height":204});
															thumbnails[3403755] = clik.newPhoto({"id":3403755,"src":"LV suitcases_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3403755.html","width":130,"caption":"L V Suitcases","height":173});
															thumbnails[3303130] = clik.newPhoto({"id":3303130,"src":"mini choc and strawbs_thumb.JPG","galleries_id":299772,"server_id":15,"link":"photo_3303130.html","width":130,"caption":"Strawberries and Chocolate","height":173});
															thumbnails[3302858] = clik.newPhoto({"id":3302858,"src":"Lou_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3302858.html","width":130,"caption":"Lou","height":176});
															thumbnails[7278160] = clik.newPhoto({"id":7278160,"src":"Ugo_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_7278160.html","width":130,"caption":"Ugo","height":173});
															thumbnails[3302762] = clik.newPhoto({"id":3302762,"src":"alex_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3302762.html","width":130,"caption":"Alex","height":310});
															thumbnails[3302828] = clik.newPhoto({"id":3302828,"src":"doves_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3302828.html","width":130,"caption":"Doves","height":187});
															thumbnails[3303063] = clik.newPhoto({"id":3303063,"src":"hennacopy_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3303063.html","width":130,"caption":"Henna","height":173});
															thumbnails[3963286] = clik.newPhoto({"id":3963286,"src":"Asian_style_Cushions_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_3963286.html","width":130,"caption":"Asian Style Cushions","height":173});
															thumbnails[3302770] = clik.newPhoto({"id":3302770,"src":"charlotte lily_thumb.JPG","galleries_id":200055,"server_id":15,"link":"photo_3302770.html","width":130,"caption":"Lillies","height":196});
															thumbnails[3302876] = clik.newPhoto({"id":3302876,"src":"Michelle_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3302876.html","width":130,"caption":"Michelle","height":136});
															thumbnails[3281536] = clik.newPhoto({"id":3281536,"src":"Helencopy_thumb.jpg","galleries_id":200055,"server_id":15,"link":"photo_3281536.html","width":130,"caption":"Helen","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[200055] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Cakes","link":"gallery_200055.html","maxRecords":0.0,"photoIDs":[3403751.0,7006829.0,7029260.0,7277657.0,7277861.0,7277888.0,7277949.0,7278073.0,8971301.0,8971766.0,8971842.0,8931568.0,8971543.0,8971154.0,3303021.0,8971166.0,8971518.0,8971520.0,8931564.0,3281464.0,8931967.0,8931969.0,3302793.0,3281743.0,3281555.0,3302821.0,4339656.0,3303149.0,3281558.0,3302878.0,3403755.0,3302858.0,7278160.0,3302762.0,3302828.0,3303063.0,3963286.0,3302770.0,3302876.0,3281536.0],"skipIndex":0,"section_code":"gallery","featured_images":3281464.0,"id":200055,"singleSection":false});				  						galleries[299772] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Chocolate Cakes","link":"gallery_299772.html","maxRecords":0.0,"photoIDs":[8931748.0,8931691.0,8931694.0,3281478.0,3281488.0,3302825.0,3302834.0,3302848.0,3302886.0,8931890.0,8931892.0,3303130.0],"skipIndex":0,"section_code":"gallery","featured_images":8931748.0,"id":299772,"singleSection":false});				  						galleries[200056] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birthday Cakes","link":"gallery_200056.html","maxRecords":0.0,"photoIDs":[3281926.0,3281931.0,3281933.0,3284521.0,3284563.0,3302833.0,3302843.0,3302845.0,3302856.0,3302869.0,3302882.0,3302885.0,3302889.0,3302902.0,3302907.0,3303062.0,3303147.0,3573215.0,3573218.0,3963289.0,3963291.0,3963293.0,3963298.0,4339669.0,5327582.0,5478442.0,5478510.0,7029079.0,7278011.0,7278076.0,8971115.0,8971360.0,8971516.0,8971848.0,8971854.0,8971160.0,8971355.0,8971271.0,8971296.0,8971305.0],"skipIndex":0,"section_code":"gallery","featured_images":5327582.0,"id":200056,"singleSection":false});				  						galleries[469903] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cup Cakes & Individuals","link":"gallery_469903.html","maxRecords":0.0,"photoIDs":[3281498.0,3281523.0,3284574.0,4339660.0,4941767.0,7029294.0,7277649.0,7278099.0,8931685.0,8931689.0,8971868.0,8971175.0],"skipIndex":0,"section_code":"gallery","featured_images":7029294.0,"id":469903,"singleSection":false});				  						galleries[201155] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Celebration Cakes","link":"gallery_201155.html","maxRecords":0.0,"photoIDs":[3302769.0,3302829.0,3302897.0,3302905.0,3303065.0,3303066.0,3573313.0,3963296.0,4339676.0,8971837.0,8972050.0,8972073.0],"skipIndex":0,"section_code":"gallery","featured_images":3303066.0,"id":201155,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7277888,7029260,7006829,7006682,4941689,3281008,3281464,3281555';
imageSets[2] = '7029294,7006821,5327582,3303066,8931748,3281464';
imageSets[3] = '7029260,7006829,3963296';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dawnshrewsbury/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dawnshrewsbury/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 = 'Dawn\'s Wedding Cakes Berkshire : ' + 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;
	}
}

			

