window.thumbnails = {};
															thumbnails[6215335] = clik.newPhoto({"id":6215335,"src":"IMG_4617_thumb.JPG","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7427250] = clik.newPhoto({"id":7427250,"src":"prom_display_6A6D90B0-1EC9-DFB6-092F343FA115CAF0_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Make it a Prom to remember","height":134});
															thumbnails[7427569] = clik.newPhoto({"id":7427569,"src":"new_voucher_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Vouchers are customised for the personal touch","height":190});
															thumbnails[7845284] = clik.newPhoto({"id":7845284,"src":"tuition_ad1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"This months Course","height":173});
															thumbnails[9005732] = clik.newPhoto({"id":9005732,"src":"display_sarah1.7_copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":105});
															thumbnails[9005806] = clik.newPhoto({"id":9005806,"src":"IMG_0916_12_x_8_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"makeover magic","height":196});
															thumbnails[5864492] = clik.newPhoto({"id":5864492,"src":"port_5_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5864492.html","width":130,"caption":"fun families","height":130});
															thumbnails[5864637] = clik.newPhoto({"id":5864637,"src":"port_11_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5864637.html","width":130,"caption":"families","height":133});
															thumbnails[5864639] = clik.newPhoto({"id":5864639,"src":"17_thumb.jpg","galleries_id":331494,"server_id":32,"link":"photo_5864639.html","width":130,"caption":"teenage  parties and friends pictures","height":173});
															thumbnails[5864642] = clik.newPhoto({"id":5864642,"src":"port_6_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5864642.html","width":130,"caption":"Fun, friendly and timeless","height":78});
															thumbnails[5864644] = clik.newPhoto({"id":5864644,"src":"port_70_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5864644.html","width":130,"caption":"relaxed","height":87});
															thumbnails[5865541] = clik.newPhoto({"id":5865541,"src":"port_64_thumb.jpg","galleries_id":331494,"server_id":32,"link":"photo_5865541.html","width":130,"caption":"friends","height":104});
															thumbnails[5865543] = clik.newPhoto({"id":5865543,"src":"port_521_thumb.jpg","galleries_id":331494,"server_id":32,"link":"photo_5865543.html","width":130,"caption":"cousins and grandchildren","height":173});
															thumbnails[5865545] = clik.newPhoto({"id":5865545,"src":"porty_21_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865545.html","width":130,"caption":"older children...\"cool images\" ","height":96});
															thumbnails[5865546] = clik.newPhoto({"id":5865546,"src":"port_7_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5865546.html","width":130,"caption":"couples and families","height":130});
															thumbnails[5865548] = clik.newPhoto({"id":5865548,"src":"port_62_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5865548.html","width":130,"caption":"families","height":163});
															thumbnails[5865552] = clik.newPhoto({"id":5865552,"src":"port_8_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5865552.html","width":130,"caption":"Brothers ","height":130});
															thumbnails[5865554] = clik.newPhoto({"id":5865554,"src":"port_67_thumb.jpg","galleries_id":331503,"server_id":32,"link":"photo_5865554.html","width":130,"caption":"young families","height":87});
															thumbnails[5865555] = clik.newPhoto({"id":5865555,"src":"port_22_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5865555.html","width":130,"caption":"New mums to be and dad  black and white or colour","height":183});
															thumbnails[5865557] = clik.newPhoto({"id":5865557,"src":"port_61_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5865557.html","width":130,"caption":"Special effects make original art of images","height":195});
															thumbnails[5865558] = clik.newPhoto({"id":5865558,"src":"port_74_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5865558.html","width":130,"caption":"soft and gentle","height":163});
															thumbnails[5865620] = clik.newPhoto({"id":5865620,"src":"pregnancy_sized_9_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5865620.html","width":130,"caption":"beauty of mothers to be","height":218});
															thumbnails[5865661] = clik.newPhoto({"id":5865661,"src":"pregnancy_12_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5865661.html","width":130,"caption":"beautiful ","height":163});
															thumbnails[5865663] = clik.newPhoto({"id":5865663,"src":"port_102_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5865663.html","width":130,"caption":"multi images ","height":76});
															thumbnails[5865787] = clik.newPhoto({"id":5865787,"src":"por_2_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865787.html","width":130,"caption":"multi images and large compilations make individual wall art","height":69});
															thumbnails[5865792] = clik.newPhoto({"id":5865792,"src":"display_66_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865792.html","width":130,"caption":"simple and striking portraits","height":149});
															thumbnails[5865803] = clik.newPhoto({"id":5865803,"src":"port12_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865803.html","width":130,"caption":"black or white backgrounds contemporary portraits","height":195});
															thumbnails[5865813] = clik.newPhoto({"id":5865813,"src":"port80_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865813.html","width":130,"caption":"Simple fresh and relaxed.  Timeless portraits","height":195});
															thumbnails[5865851] = clik.newPhoto({"id":5865851,"src":"port_28_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865851.html","width":130,"caption":"stylish and modern","height":195});
															thumbnails[5865855] = clik.newPhoto({"id":5865855,"src":"port_25_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865855.html","width":130,"caption":"engaged couples and contemporary portraits","height":87});
															thumbnails[5865863] = clik.newPhoto({"id":5865863,"src":"port_18_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865863.html","width":130,"caption":"style and image.  hobbies and pastimes.","height":153});
															thumbnails[5865866] = clik.newPhoto({"id":5865866,"src":"port_19_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865866.html","width":130,"caption":"stylish and young portraiture","height":101});
															thumbnails[5865871] = clik.newPhoto({"id":5865871,"src":"port_79_thumb.jpg","galleries_id":331453,"server_id":32,"link":"photo_5865871.html","width":130,"caption":"Hobbies and stretch pictures","height":104});
															thumbnails[5865902] = clik.newPhoto({"id":5865902,"src":"por50_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865902.html","width":130,"caption":"Portfolio shoots and fashion style.","height":163});
															thumbnails[5865944] = clik.newPhoto({"id":5865944,"src":"port_20_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865944.html","width":130,"caption":"Glamour portfolios and mini albums.","height":184});
															thumbnails[5865947] = clik.newPhoto({"id":5865947,"src":"port_43_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865947.html","width":130,"caption":"boudoir ","height":190});
															thumbnails[5865979] = clik.newPhoto({"id":5865979,"src":"port_46_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865979.html","width":130,"caption":"\"There is a godess in every woman.\"","height":184});
															thumbnails[5865980] = clik.newPhoto({"id":5865980,"src":"port_49_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865980.html","width":130,"caption":"simply, sexy, beautiful.","height":87});
															thumbnails[5865981] = clik.newPhoto({"id":5865981,"src":"port_41_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865981.html","width":130,"caption":"boudoir pictures","height":195});
															thumbnails[5865984] = clik.newPhoto({"id":5865984,"src":"port_16_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865984.html","width":130,"caption":"young and fashionable ","height":179});
															thumbnails[5865987] = clik.newPhoto({"id":5865987,"src":"port_10_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865987.html","width":130,"caption":"sylish and individual","height":181});
															thumbnails[5865989] = clik.newPhoto({"id":5865989,"src":"port_1_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865989.html","width":130,"caption":"Unique wall art.","height":163});
															thumbnails[5865993] = clik.newPhoto({"id":5865993,"src":"port_69_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5865993.html","width":130,"caption":"Tattoos and piercing pictures.","height":163});
															thumbnails[5865995] = clik.newPhoto({"id":5865995,"src":"5_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5865995.html","width":130,"caption":"Young mums","height":249});
															thumbnails[5865998] = clik.newPhoto({"id":5865998,"src":"12_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5865998.html","width":130,"caption":"Mums and toddlers","height":87});
															thumbnails[5866047] = clik.newPhoto({"id":5866047,"src":"16_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866047.html","width":130,"caption":"Babies eyes are special.","height":114});
															thumbnails[5866049] = clik.newPhoto({"id":5866049,"src":"port_30_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5866049.html","width":130,"caption":"tenderness.","height":196});
															thumbnails[5866050] = clik.newPhoto({"id":5866050,"src":"port_34_thumb.jpg","galleries_id":331493,"server_id":32,"link":"photo_5866050.html","width":130,"caption":"New dads and babies.","height":195});
															thumbnails[5866052] = clik.newPhoto({"id":5866052,"src":"port_38_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866052.html","width":130,"caption":"Playing and natural.","height":195});
															thumbnails[5866054] = clik.newPhoto({"id":5866054,"src":"port_71_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866054.html","width":130,"caption":"contemporary lifestyle images.","height":178});
															thumbnails[5866056] = clik.newPhoto({"id":5866056,"src":"port_83_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866056.html","width":130,"caption":"playful.","height":158});
															thumbnails[5866057] = clik.newPhoto({"id":5866057,"src":"port_87_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866057.html","width":130,"caption":"Dads and babies.","height":163});
															thumbnails[5866060] = clik.newPhoto({"id":5866060,"src":"port_88_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866060.html","width":130,"caption":"Sepia available on request.","height":104});
															thumbnails[5866062] = clik.newPhoto({"id":5866062,"src":"ricky__2_sized_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866062.html","width":130,"caption":"modern and contemporary style.","height":82});
															thumbnails[5866066] = clik.newPhoto({"id":5866066,"src":"ricky_sized_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_5866066.html","width":130,"caption":"New babies","height":160});
															thumbnails[5866070] = clik.newPhoto({"id":5866070,"src":"port_101_thumb.jpg","galleries_id":331482,"server_id":32,"link":"photo_5866070.html","width":130,"caption":"mini albums and collage pictures.","height":73});
															thumbnails[5866071] = clik.newPhoto({"id":5866071,"src":"2_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866071.html","width":130,"caption":"pretty pups.","height":87});
															thumbnails[5866073] = clik.newPhoto({"id":5866073,"src":"dispaly_22_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866073.html","width":130,"caption":"dog tired.","height":174});
															thumbnails[5866077] = clik.newPhoto({"id":5866077,"src":"port_77_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866077.html","width":130,"caption":"Chic  dog","height":98});
															thumbnails[5866078] = clik.newPhoto({"id":5866078,"src":"port_78_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866078.html","width":130,"caption":"scruffy is good.","height":195});
															thumbnails[5866080] = clik.newPhoto({"id":5866080,"src":"display_111_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866080.html","width":130,"caption":"whats that?","height":194});
															thumbnails[5866081] = clik.newPhoto({"id":5866081,"src":"14_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866081.html","width":130,"caption":"pretty pooch.","height":195});
															thumbnails[5866082] = clik.newPhoto({"id":5866082,"src":"13_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866082.html","width":130,"caption":"mans best friend","height":163});
															thumbnails[5866083] = clik.newPhoto({"id":5866083,"src":"21_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866083.html","width":130,"caption":"dog days.","height":188});
															thumbnails[6333248] = clik.newPhoto({"id":6333248,"src":"portrait_display_sized_thumb.jpg","galleries_id":331494,"server_id":32,"link":"photo_6333248.html","width":130,"caption":"teen birthday pictures","height":181});
															thumbnails[6699827] = clik.newPhoto({"id":6699827,"src":"display_duo_flower_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_6699827.html","width":130,"caption":"Duo images black and white with a hint of colour<br>\r\nprovide Personal wallart.","height":244});
															thumbnails[6699832] = clik.newPhoto({"id":6699832,"src":"display_sized_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_6699832.html","width":130,"caption":"The eyes are the mirror of the soul.","height":104});
															thumbnails[6699833] = clik.newPhoto({"id":6699833,"src":"sized_peeping_boy_thumb.jpg","galleries_id":331455,"server_id":32,"link":"photo_6699833.html","width":130,"caption":"Special images, for special people.","height":58});
															thumbnails[6699838] = clik.newPhoto({"id":6699838,"src":"amelia_display_thumb.jpg","galleries_id":331494,"server_id":32,"link":"photo_6699838.html","width":130,"caption":"Teen fashion ","height":158});
															thumbnails[8437398] = clik.newPhoto({"id":8437398,"src":"dog_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_8437398.html","width":130,"caption":"doggy stars","height":165});
															thumbnails[5885550] = clik.newPhoto({"id":5885550,"src":"prom_display_thumb.jpg","galleries_id":331494,"server_id":32,"link":"photo_5885550.html","width":130,"caption":"prom princess","height":134});
															thumbnails[5866075] = clik.newPhoto({"id":5866075,"src":"port_99_thumb.jpg","galleries_id":331456,"server_id":32,"link":"photo_5866075.html","width":130,"caption":"Dog and master.","height":104});
															thumbnails[5866084] = clik.newPhoto({"id":5866084,"src":"wed44_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866084.html","width":130,"caption":"before the wedding.","height":195});
															thumbnails[5866085] = clik.newPhoto({"id":5866085,"src":"wed_2_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866085.html","width":130,"caption":"bride at home.","height":195});
															thumbnails[5866086] = clik.newPhoto({"id":5866086,"src":"wed57_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866086.html","width":130,"caption":"beautiful brides.","height":195});
															thumbnails[5866088] = clik.newPhoto({"id":5866088,"src":"wed61_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866088.html","width":130,"caption":"Bride before.","height":195});
															thumbnails[5866090] = clik.newPhoto({"id":5866090,"src":"wed63_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866090.html","width":130,"caption":"every aspect of the wedding.","height":82});
															thumbnails[5866093] = clik.newPhoto({"id":5866093,"src":"wed67_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866093.html","width":130,"caption":"reportage and candid","height":87});
															thumbnails[5866125] = clik.newPhoto({"id":5866125,"src":"wed58_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866125.html","width":130,"caption":"groom and ushers.","height":87});
															thumbnails[5866242] = clik.newPhoto({"id":5866242,"src":"wed3_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5866242.html","width":130,"caption":"boys will be boys","height":87});
															thumbnails[5885460] = clik.newPhoto({"id":5885460,"src":"wed_18_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885460.html","width":130,"caption":"fun ","height":195});
															thumbnails[5885463] = clik.newPhoto({"id":5885463,"src":"wed26_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885463.html","width":130,"caption":"romantic","height":148});
															thumbnails[5885465] = clik.newPhoto({"id":5885465,"src":"wed27__thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885465.html","width":130,"caption":"fabulous","height":195});
															thumbnails[5885466] = clik.newPhoto({"id":5885466,"src":"wed19_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885466.html","width":130,"caption":"duo tint","height":87});
															thumbnails[5885467] = clik.newPhoto({"id":5885467,"src":"wed25_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885467.html","width":130,"caption":"wonderful weddings","height":310});
															thumbnails[5885470] = clik.newPhoto({"id":5885470,"src":"wed31_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885470.html","width":130,"caption":"Imaginative storybook albums","height":58});
															thumbnails[5885471] = clik.newPhoto({"id":5885471,"src":"wed38_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885471.html","width":130,"caption":"natural","height":264});
															thumbnails[5885474] = clik.newPhoto({"id":5885474,"src":"wed51__thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885474.html","width":130,"caption":"romantic ","height":66});
															thumbnails[5885475] = clik.newPhoto({"id":5885475,"src":"wed_6_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885475.html","width":130,"caption":"captured memories","height":87});
															thumbnails[5885477] = clik.newPhoto({"id":5885477,"src":"wed33_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885477.html","width":130,"caption":"fabulous","height":93});
															thumbnails[5885478] = clik.newPhoto({"id":5885478,"src":"wed35_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885478.html","width":130,"caption":"all aspects of a wedding a memory","height":182});
															thumbnails[5885479] = clik.newPhoto({"id":5885479,"src":"wed36_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885479.html","width":130,"caption":"contemporary modern stylish","height":87});
															thumbnails[5885548] = clik.newPhoto({"id":5885548,"src":"20_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_5885548.html","width":130,"caption":"dynamic ","height":163});
															thumbnails[6333254] = clik.newPhoto({"id":6333254,"src":"wedding_sized_9_thumb.jpg","galleries_id":331454,"server_id":32,"link":"photo_6333254.html","width":130,"caption":"tender","height":163});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[331454] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section480819.html","maxRecords":0.0,"photoIDs":[5866084.0,5866085.0,5866086.0,5866088.0,5866090.0,5866093.0,5866125.0,5866242.0,5885460.0,5885463.0,5885465.0,5885466.0,5885467.0,5885470.0,5885471.0,5885474.0,5885475.0,5885477.0,5885478.0,5885479.0,5885548.0,6333254.0],"skipIndex":0,"section_code":"section480819","featured_images":"6333254,5885548,5885479,5885478,5885477,5885475,5885474,5885471,5885470,5885467","id":331454,"singleSection":true});				  						galleries[331453] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_331453.html","maxRecords":0.0,"photoIDs":[5865545.0,5865787.0,5865792.0,5865803.0,5865813.0,5865851.0,5865855.0,5865871.0],"skipIndex":0,"section_code":"gallery","featured_images":"5865871,5865855,5865851,5865813,5865803,5865792,5865787,5865545","id":331453,"singleSection":false});				  						galleries[331455] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Babies and Children","link":"gallery_331455.html","maxRecords":0.0,"photoIDs":[5865998.0,5866047.0,5866052.0,5866054.0,5866056.0,5866057.0,5866060.0,5866062.0,5866066.0,6699827.0,6699832.0,6699833.0],"skipIndex":0,"section_code":"gallery","featured_images":"6699833,6699832,6699827,5866066,5866062,5866060,5866057,5866056,5866054,5866052","id":331455,"singleSection":false});				  						galleries[331456] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pets","link":"gallery_331456.html","maxRecords":0.0,"photoIDs":[5866071.0,5866073.0,5866077.0,5866078.0,5866080.0,5866081.0,5866082.0,5866083.0,8437398.0,5866075.0],"skipIndex":0,"section_code":"gallery","featured_images":8437398.0,"id":331456,"singleSection":false});				  						galleries[331493] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mums to Be   \/  Pregnancy pictures ","link":"gallery_331493.html","maxRecords":0.0,"photoIDs":[5865555.0,5865557.0,5865558.0,5865620.0,5865661.0,5865663.0,5865995.0,5866049.0,5866050.0],"skipIndex":0,"section_code":"gallery","featured_images":"5866050,5866049,5865995,5865663,5865661,5865620,5865558,5865557,5865555","id":331493,"singleSection":false});				  						galleries[331503] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Families","link":"gallery_331503.html","maxRecords":0.0,"photoIDs":[5864492.0,5864637.0,5864642.0,5864644.0,5865546.0,5865548.0,5865552.0,5865554.0],"skipIndex":0,"section_code":"gallery","featured_images":"5864637,5864492","id":331503,"singleSection":false});				  						galleries[331494] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Teenagers and prom pictures","link":"gallery_331494.html","maxRecords":0.0,"photoIDs":[5864639.0,5865541.0,5865543.0,6333248.0,6699838.0,5885550.0],"skipIndex":0,"section_code":"gallery","featured_images":"6699838,5864639","id":331494,"singleSection":false});				  						galleries[331482] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion and boudoir","link":"gallery_331482.html","maxRecords":0.0,"photoIDs":[5865863.0,5865866.0,5865902.0,5865944.0,5865947.0,5865979.0,5865980.0,5865981.0,5865984.0,5865987.0,5865989.0,5865993.0,5866070.0],"skipIndex":0,"section_code":"gallery","featured_images":"5866070,5865993,5865989,5865987,5865984,5865981,5865980,5865979,5865947,5865944","id":331482,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8437398,6699838,6699833,6699832,6699827,6333254,6333248,5885548,5885479,5885467,5885465,5885463,5866077,5866066,5866062,5866054,5866047,5865987,5865866,5865851,5865792,5865787,5865558,5885550,5866075';
imageSets[2] = '8437398,6699838,5864639,5864637,5864492';
imageSets[3] = '5864639';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jackiestubbs/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jackiestubbs/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 = 'Jackie Stubbs Photography                      : ' + 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>Jackie Stubbs  </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;
	}
}

			

