window.thumbnails = {};
															thumbnails[5879681] = clik.newPhoto({"id":5879681,"src":"AUP_Gill__Luke_lo_res__thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Sample page layout","height":47});
															thumbnails[7829170] = clik.newPhoto({"id":7829170,"src":"AUP_Gill__Luke_lo_res__0A328935-1E4F-37DC-715E75FAA01EFE0F_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Wedding Albums","height":47});
															thumbnails[2019951] = clik.newPhoto({"id":2019951,"src":"Aysia_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_2019951.html","width":130,"caption":"About U Photography-Kids","height":173});
															thumbnails[3155373] = clik.newPhoto({"id":3155373,"src":"cuddles_thumb.jpg","galleries_id":193328,"server_id":1,"link":"photo_3155373.html","width":130,"caption":"","height":104});
															thumbnails[2224533] = clik.newPhoto({"id":2224533,"src":"aboutuphotography-maidstone_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_2224533.html","width":130,"caption":"","height":184});
															thumbnails[2613139] = clik.newPhoto({"id":2613139,"src":"Newborn_photography_Kent_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_2613139.html","width":130,"caption":"","height":104});
															thumbnails[3523420] = clik.newPhoto({"id":3523420,"src":"Jump_montage_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3523420.html","width":130,"caption":"Family portraits Kent","height":66});
															thumbnails[2018604] = clik.newPhoto({"id":2018604,"src":"Kent_Childrens_Photography_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_2018604.html","width":130,"caption":"","height":104});
															thumbnails[2405108] = clik.newPhoto({"id":2405108,"src":"Kent-Toddler-Photography_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_2405108.html","width":130,"caption":"About U Photography","height":173});
															thumbnails[6325422] = clik.newPhoto({"id":6325422,"src":"Pre_school_thumb.jpg","galleries_id":127018,"server_id":1,"link":"photo_6325422.html","width":130,"caption":"<br>\r\n<br>\r\n<br>\r\n","height":184});
															thumbnails[2224461] = clik.newPhoto({"id":2224461,"src":"maternity-portrait-maidstone_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_2224461.html","width":130,"caption":"Maternity & family portraiture","height":85});
															thumbnails[2432504] = clik.newPhoto({"id":2432504,"src":"Connor_0041_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_2432504.html","width":130,"caption":"Baby pictures in Maidstone","height":173});
															thumbnails[6586501] = clik.newPhoto({"id":6586501,"src":"Pre_school_photography_thumb.jpg","galleries_id":127018,"server_id":1,"link":"photo_6586501.html","width":130,"caption":"","height":183});
															thumbnails[5762608] = clik.newPhoto({"id":5762608,"src":"Baby_bump_portraits-Kent_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_5762608.html","width":130,"caption":"","height":173});
															thumbnails[2346187] = clik.newPhoto({"id":2346187,"src":"Hanging_baby_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_2346187.html","width":130,"caption":"Click on any image to enlarge","height":184});
															thumbnails[2405629] = clik.newPhoto({"id":2405629,"src":"Baby_Piers_0115_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_2405629.html","width":130,"caption":"Baby photography for Kent","height":163});
															thumbnails[1894204] = clik.newPhoto({"id":1894204,"src":"Kids_photography_kent_0033_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_1894204.html","width":130,"caption":"","height":163});
															thumbnails[5762713] = clik.newPhoto({"id":5762713,"src":"Kissing_the_bump_Kent_photography_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_5762713.html","width":130,"caption":"","height":87});
															thumbnails[3569068] = clik.newPhoto({"id":3569068,"src":"Stokes1_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_3569068.html","width":130,"caption":"","height":98});
															thumbnails[5762680] = clik.newPhoto({"id":5762680,"src":"Pregnant_photos_kent_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_5762680.html","width":130,"caption":"","height":98});
															thumbnails[5762643] = clik.newPhoto({"id":5762643,"src":"Maternity_portrait_kent_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_5762643.html","width":130,"caption":"","height":98});
															thumbnails[2224646] = clik.newPhoto({"id":2224646,"src":"about-u_-photography_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_2224646.html","width":130,"caption":"","height":194});
															thumbnails[2535861] = clik.newPhoto({"id":2535861,"src":"Colour_pop_ball_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_2535861.html","width":130,"caption":"","height":98});
															thumbnails[5762902] = clik.newPhoto({"id":5762902,"src":"Pregnancy_portraits_Maidstone_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_5762902.html","width":130,"caption":"","height":173});
															thumbnails[1894224] = clik.newPhoto({"id":1894224,"src":"Baby_hammock_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_1894224.html","width":130,"caption":"","height":104});
															thumbnails[6586507] = clik.newPhoto({"id":6586507,"src":"Kent_school_photography_thumb.jpg","galleries_id":127018,"server_id":1,"link":"photo_6586507.html","width":130,"caption":"","height":183});
															thumbnails[6840277] = clik.newPhoto({"id":6840277,"src":"bump_portrait_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_6840277.html","width":130,"caption":"","height":173});
															thumbnails[1994711] = clik.newPhoto({"id":1994711,"src":"brothers_photography_kent_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_1994711.html","width":130,"caption":"","height":104});
															thumbnails[2182916] = clik.newPhoto({"id":2182916,"src":"Popping_colour_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_2182916.html","width":130,"caption":"","height":195});
															thumbnails[2074181] = clik.newPhoto({"id":2074181,"src":"Family_photgraphy_Kent_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_2074181.html","width":130,"caption":"","height":163});
															thumbnails[3053783] = clik.newPhoto({"id":3053783,"src":"fun-photography-maidstone_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3053783.html","width":130,"caption":"","height":93});
															thumbnails[4317225] = clik.newPhoto({"id":4317225,"src":"Salim_0037_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_4317225.html","width":130,"caption":"","height":173});
															thumbnails[3054774] = clik.newPhoto({"id":3054774,"src":"Mum_Baby_Photography_Kent_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3054774.html","width":130,"caption":"","height":104});
															thumbnails[3569213] = clik.newPhoto({"id":3569213,"src":"Sharpe_0072_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_3569213.html","width":130,"caption":"Kids portraits Kent","height":183});
															thumbnails[3523554] = clik.newPhoto({"id":3523554,"src":"Kent_Family_Photography_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3523554.html","width":130,"caption":"","height":104});
															thumbnails[3569179] = clik.newPhoto({"id":3569179,"src":"Kent-1st-birthday-shoot_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_3569179.html","width":130,"caption":"","height":173});
															thumbnails[6801318] = clik.newPhoto({"id":6801318,"src":"Kent-School-Photography_thumb.jpg","galleries_id":127018,"server_id":1,"link":"photo_6801318.html","width":130,"caption":"","height":183});
															thumbnails[3569440] = clik.newPhoto({"id":3569440,"src":"About_U_Photograpy_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3569440.html","width":130,"caption":"","height":104});
															thumbnails[3569413] = clik.newPhoto({"id":3569413,"src":"King_004410x5_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3569413.html","width":130,"caption":"","height":68});
															thumbnails[2074455] = clik.newPhoto({"id":2074455,"src":"Kent-studio-portraits_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_2074455.html","width":130,"caption":"","height":163});
															thumbnails[3286078] = clik.newPhoto({"id":3286078,"src":"family-photography-kent_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3286078.html","width":130,"caption":"","height":104});
															thumbnails[3569136] = clik.newPhoto({"id":3569136,"src":"LisaEmily_0073_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_3569136.html","width":130,"caption":"","height":98});
															thumbnails[3843119] = clik.newPhoto({"id":3843119,"src":"Baby_in_arms_photography_Kent_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_3843119.html","width":130,"caption":"","height":163});
															thumbnails[3569357] = clik.newPhoto({"id":3569357,"src":"fun-family-photoshoot-Maidstone_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_3569357.html","width":130,"caption":"","height":98});
															thumbnails[3053902] = clik.newPhoto({"id":3053902,"src":"Kent-contemporary-photography_thumb.jpg","galleries_id":218167,"server_id":1,"link":"photo_3053902.html","width":130,"caption":"","height":98});
															thumbnails[3577727] = clik.newPhoto({"id":3577727,"src":"Ava_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_3577727.html","width":130,"caption":"","height":163});
															thumbnails[3843151] = clik.newPhoto({"id":3843151,"src":"Baby_photography_Kent_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_3843151.html","width":130,"caption":"","height":98});
															thumbnails[2613176] = clik.newPhoto({"id":2613176,"src":"Newborn_family_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_2613176.html","width":130,"caption":"","height":173});
															thumbnails[3569089] = clik.newPhoto({"id":3569089,"src":"cute-baby_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_3569089.html","width":130,"caption":"","height":98});
															thumbnails[3677553] = clik.newPhoto({"id":3677553,"src":"Craigh_0012A_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3677553.html","width":130,"caption":"","height":183});
															thumbnails[6840281] = clik.newPhoto({"id":6840281,"src":"Maternity-Medway_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_6840281.html","width":130,"caption":"","height":173});
															thumbnails[6840332] = clik.newPhoto({"id":6840332,"src":"Kent-Maternity-Photography_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_6840332.html","width":130,"caption":"","height":173});
															thumbnails[2613239] = clik.newPhoto({"id":2613239,"src":"Newborn-Family-portrait_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_2613239.html","width":130,"caption":"","height":173});
															thumbnails[3843128] = clik.newPhoto({"id":3843128,"src":"baby_portraits_kent_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_3843128.html","width":130,"caption":"","height":87});
															thumbnails[5762937] = clik.newPhoto({"id":5762937,"src":"Maternity_photography-maidstone_thumb.jpg","galleries_id":127012,"server_id":1,"link":"photo_5762937.html","width":130,"caption":"","height":173});
															thumbnails[5234655] = clik.newPhoto({"id":5234655,"src":"Baby-photography-kent_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_5234655.html","width":130,"caption":"","height":98});
															thumbnails[3843240] = clik.newPhoto({"id":3843240,"src":"celebrations-portrait-photography_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3843240.html","width":130,"caption":"","height":104});
															thumbnails[9002248] = clik.newPhoto({"id":9002248,"src":"about_u_photography_baby_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_9002248.html","width":130,"caption":"","height":104});
															thumbnails[1894231] = clik.newPhoto({"id":1894231,"src":"Sister_portraits_Kent_thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_1894231.html","width":130,"caption":"","height":104});
															thumbnails[3843212] = clik.newPhoto({"id":3843212,"src":"SallyGeorgia__thumb.jpg","galleries_id":127168,"server_id":1,"link":"photo_3843212.html","width":130,"caption":"","height":104});
															thumbnails[5234661] = clik.newPhoto({"id":5234661,"src":"Maidstone-newborn-photos_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_5234661.html","width":130,"caption":"","height":98});
															thumbnails[9002272] = clik.newPhoto({"id":9002272,"src":"family_photography_kent_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_9002272.html","width":130,"caption":"","height":163});
															thumbnails[5234647] = clik.newPhoto({"id":5234647,"src":"About-U-Photography_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_5234647.html","width":130,"caption":"","height":183});
															thumbnails[9002300] = clik.newPhoto({"id":9002300,"src":"cute_baby_photography_kent_thumb.jpg","galleries_id":126998,"server_id":1,"link":"photo_9002300.html","width":130,"caption":"","height":163});
															thumbnails[2022752] = clik.newPhoto({"id":2022752,"src":"Kent_Wedding_photos_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_2022752.html","width":130,"caption":"","height":163});
															thumbnails[1897130] = clik.newPhoto({"id":1897130,"src":"leeds-castle-wedding-photography_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_1897130.html","width":130,"caption":"","height":98});
															thumbnails[1897218] = clik.newPhoto({"id":1897218,"src":"Wedding_candid_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_1897218.html","width":130,"caption":"","height":163});
															thumbnails[6943797] = clik.newPhoto({"id":6943797,"src":"reportage-wedding-photography-kent_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_6943797.html","width":130,"caption":"","height":163});
															thumbnails[4245825] = clik.newPhoto({"id":4245825,"src":"Maidstone_wedding_photography_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_4245825.html","width":130,"caption":"","height":104});
															thumbnails[6943848] = clik.newPhoto({"id":6943848,"src":"table_setting_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_6943848.html","width":130,"caption":"","height":173});
															thumbnails[2022745] = clik.newPhoto({"id":2022745,"src":"Cake_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_2022745.html","width":130,"caption":"","height":195});
															thumbnails[2183040] = clik.newPhoto({"id":2183040,"src":"Wedding_guests_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_2183040.html","width":130,"caption":"","height":163});
															thumbnails[2022736] = clik.newPhoto({"id":2022736,"src":"kent-family-wedding-photography_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_2022736.html","width":130,"caption":"","height":163});
															thumbnails[4245840] = clik.newPhoto({"id":4245840,"src":"wedding_photography_kent_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_4245840.html","width":130,"caption":"","height":194});
															thumbnails[6943695] = clik.newPhoto({"id":6943695,"src":"confetti_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_6943695.html","width":130,"caption":"","height":173});
															thumbnails[4245870] = clik.newPhoto({"id":4245870,"src":"wedding_reportage_photography_kent_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_4245870.html","width":130,"caption":"","height":194});
															thumbnails[2186340] = clik.newPhoto({"id":2186340,"src":"kent-wedding-photography_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_2186340.html","width":130,"caption":"","height":104});
															thumbnails[2224254] = clik.newPhoto({"id":2224254,"src":"Kent_wedding_reportage_photography_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_2224254.html","width":130,"caption":"","height":78});
															thumbnails[1897160] = clik.newPhoto({"id":1897160,"src":"Kent_wedding_flowers_thumb.jpg","galleries_id":127147,"server_id":1,"link":"photo_1897160.html","width":130,"caption":"","height":104});
															thumbnails[4698391] = clik.newPhoto({"id":4698391,"src":"Acrylic_frame_thumb.jpg","galleries_id":270199,"server_id":1,"link":"photo_4698391.html","width":130,"caption":"Click to enlarge","height":104});
															thumbnails[6937483] = clik.newPhoto({"id":6937483,"src":"Fancy_gift_voucher_thumb.jpg","galleries_id":376280,"server_id":1,"link":"photo_6937483.html","width":130,"caption":"","height":88});
															thumbnails[3155499] = clik.newPhoto({"id":3155499,"src":"23Novmontage_thumb.jpg","galleries_id":193372,"server_id":1,"link":"photo_3155499.html","width":130,"caption":"Click to enlarge","height":104});
															thumbnails[4698525] = clik.newPhoto({"id":4698525,"src":"Art_boxes_side_view_thumb.jpg","galleries_id":270207,"server_id":1,"link":"photo_4698525.html","width":130,"caption":"Click to enlarge","height":144});
															thumbnails[6082880] = clik.newPhoto({"id":6082880,"src":"Photoblock_thumb.jpg","galleries_id":341479,"server_id":1,"link":"photo_6082880.html","width":130,"caption":"Click to enlarge","height":98});
															thumbnails[3626480] = clik.newPhoto({"id":3626480,"src":"montage_1_thumb.jpg","galleries_id":193372,"server_id":1,"link":"photo_3626480.html","width":130,"caption":"","height":87});
															thumbnails[3186948] = clik.newPhoto({"id":3186948,"src":"Guymontage_thumb.jpg","galleries_id":193372,"server_id":1,"link":"photo_3186948.html","width":130,"caption":"","height":81});
															thumbnails[4698547] = clik.newPhoto({"id":4698547,"src":"Wooden_wrap_rear_thumb.jpg","galleries_id":270207,"server_id":1,"link":"photo_4698547.html","width":130,"caption":"Click to enlarge","height":124});
															thumbnails[3710550] = clik.newPhoto({"id":3710550,"src":"about_u_photography-canvas_wrap_thumb.jpg","galleries_id":226737,"server_id":1,"link":"photo_3710550.html","width":130,"caption":"Click to enlarge","height":84});
															thumbnails[3710587] = clik.newPhoto({"id":3710587,"src":"wedding-memory_book-maidstone_thumb.jpg","galleries_id":226103,"server_id":1,"link":"photo_3710587.html","width":130,"caption":"","height":86});
															thumbnails[5234640] = clik.newPhoto({"id":5234640,"src":"Aboutuphotography-Oak-photo_frames_thumb.jpg","galleries_id":295094,"server_id":1,"link":"photo_5234640.html","width":130,"caption":"Solid Oak","height":98});
															thumbnails[3710564] = clik.newPhoto({"id":3710564,"src":"Canvas_wrap_thumb.jpg","galleries_id":226737,"server_id":1,"link":"photo_3710564.html","width":130,"caption":"Click to enlarge","height":98});
															thumbnails[3710630] = clik.newPhoto({"id":3710630,"src":"memory_book-design-maidstone-kent_thumb.jpg","galleries_id":226103,"server_id":1,"link":"photo_3710630.html","width":130,"caption":"","height":87});
															thumbnails[5234641] = clik.newPhoto({"id":5234641,"src":"Black_glass_photo_frame_thumb.jpg","galleries_id":295094,"server_id":1,"link":"photo_5234641.html","width":130,"caption":"Contemporary black glass","height":144});
															thumbnails[3710639] = clik.newPhoto({"id":3710639,"src":"about_u_photography-coffee_table_book_thumb.jpg","galleries_id":226103,"server_id":1,"link":"photo_3710639.html","width":130,"caption":"","height":87});
															thumbnails[5234643] = clik.newPhoto({"id":5234643,"src":"Solid_wood-photo_frames-kent_thumb.jpg","galleries_id":295094,"server_id":1,"link":"photo_5234643.html","width":130,"caption":"Dark Walnut Finish","height":97});
															thumbnails[3155525] = clik.newPhoto({"id":3155525,"src":"Family_Montage-photography-kent1_thumb.jpg","galleries_id":193372,"server_id":1,"link":"photo_3155525.html","width":130,"caption":"Click to enlarge","height":163});
															thumbnails[3626440] = clik.newPhoto({"id":3626440,"src":"montage-photography-kent_thumb.jpg","galleries_id":193372,"server_id":1,"link":"photo_3626440.html","width":130,"caption":"","height":130});
															thumbnails[8972782] = clik.newPhoto({"id":8972782,"src":"Free_newborn_portrait_session_Kent_thumb.jpg","galleries_id":472444,"server_id":1,"link":"photo_8972782.html","width":130,"caption":"Free Newborn Portrait Session","height":163});
															thumbnails[8988891] = clik.newPhoto({"id":8988891,"src":"About_U_Photography_Recommend_a_friend_thumb.jpg","galleries_id":472452,"server_id":1,"link":"photo_8988891.html","width":130,"caption":"About U Photography Recommend A Friend Offer","height":163});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[270199] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Acrylic panel prints","link":"section238646_270199.html","maxRecords":0.0,"photoIDs":[4698391.0],"skipIndex":0,"section_code":"section238646","featured_images":4698391.0,"id":270199,"singleSection":false});				  						galleries[472444] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FREE NEWBORN PORTRAIT SESSION","link":"section573890_472444.html","maxRecords":0.0,"photoIDs":[8972782.0],"skipIndex":0,"section_code":"section573890","featured_images":8972782.0,"id":472444,"singleSection":false});				  						galleries[376280] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Kent Studio Portrait Gift Vouchers","link":"section238646_376280.html","maxRecords":0.0,"photoIDs":[6937483.0],"skipIndex":0,"section_code":"section238646","featured_images":6937483.0,"id":376280,"singleSection":false});				  						galleries[127012] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kent Pregnancy Photography","link":"gallery_127012.html","maxRecords":0.0,"photoIDs":[2224533.0,2224461.0,5762608.0,5762713.0,5762680.0,5762643.0,2224646.0,5762902.0,6840277.0,6840281.0,6840332.0,5762937.0],"skipIndex":0,"section_code":"gallery","featured_images":2224533.0,"id":127012,"singleSection":false});				  						galleries[126998] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kent Baby Photography","link":"gallery_126998.html","maxRecords":0.0,"photoIDs":[2432504.0,2346187.0,2405629.0,3569068.0,2535861.0,1894224.0,3569179.0,3843119.0,3577727.0,3843151.0,3569089.0,3843128.0,5234655.0,9002248.0,5234661.0,9002272.0,5234647.0,9002300.0],"skipIndex":0,"section_code":"gallery","featured_images":3843119.0,"id":126998,"singleSection":false});				  						galleries[341479] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Photo Blocks","link":"section238646_341479.html","maxRecords":0.0,"photoIDs":[6082880.0],"skipIndex":0,"section_code":"section238646","featured_images":6082880.0,"id":341479,"singleSection":false});				  						galleries[472452] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"RECOMMEND A FRIEND SCHEME","link":"section573890_472452.html","maxRecords":0.0,"photoIDs":[8988891.0],"skipIndex":0,"section_code":"section573890","featured_images":8988891.0,"id":472452,"singleSection":false});				  						galleries[218167] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kent Toddlers to Teenage Portraits","link":"gallery_218167.html","maxRecords":0.0,"photoIDs":[2019951.0,2018604.0,2405108.0,1894204.0,2182916.0,2074181.0,4317225.0,3569213.0,2074455.0,3569136.0,3569357.0,3053902.0],"skipIndex":0,"section_code":"gallery","featured_images":2182916.0,"id":218167,"singleSection":false});				  						galleries[127168] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Family Portraits for Kent","link":"gallery_127168.html","maxRecords":0.0,"photoIDs":[2613139.0,3523420.0,1994711.0,3053783.0,3054774.0,3523554.0,3569440.0,3569413.0,3286078.0,2613176.0,3677553.0,2613239.0,3843240.0,1894231.0,3843212.0],"skipIndex":0,"section_code":"gallery","featured_images":2613176.0,"id":127168,"singleSection":false});				  						galleries[127147] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Relaxed Kent reportage wedding photography","link":"section472857.html","maxRecords":0.0,"photoIDs":[2022752.0,1897130.0,1897218.0,6943797.0,4245825.0,6943848.0,2022745.0,2183040.0,2022736.0,4245840.0,6943695.0,4245870.0,2186340.0,2224254.0,1897160.0],"skipIndex":0,"section_code":"section472857","featured_images":6943695.0,"id":127147,"singleSection":true});				  						galleries[127018] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"School Photography","link":"gallery_127018.html","maxRecords":0.0,"photoIDs":[6325422.0,6586501.0,6586507.0,6801318.0],"skipIndex":0,"section_code":"gallery","featured_images":6325422.0,"id":127018,"singleSection":false});				  						galleries[226737] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Quality Canvas wraps","link":"section238646_226737.html","maxRecords":0.0,"photoIDs":[3710550.0,3710564.0],"skipIndex":0,"section_code":"section238646","featured_images":"3710564,3710550","id":226737,"singleSection":false});				  						galleries[270207] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Wooden wraps","link":"section238646_270207.html","maxRecords":0.0,"photoIDs":[4698525.0,4698547.0],"skipIndex":0,"section_code":"section238646","featured_images":"4698547,4698525","id":270207,"singleSection":false});				  						galleries[295094] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Quality Photo Frames","link":"section238646_295094.html","maxRecords":0.0,"photoIDs":[5234640.0,5234641.0,5234643.0],"skipIndex":0,"section_code":"section238646","featured_images":5234641.0,"id":295094,"singleSection":false});				  						galleries[193372] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Montage images","link":"section238646_193372.html","maxRecords":0.0,"photoIDs":[3155499.0,3626480.0,3186948.0,3155525.0,3626440.0],"skipIndex":0,"section_code":"section238646","featured_images":3155499.0,"id":193372,"singleSection":false});				  						galleries[226103] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Memory book design and supply","link":"section238646_226103.html","maxRecords":0.0,"photoIDs":[3710587.0,3710630.0,3710639.0],"skipIndex":0,"section_code":"section238646","featured_images":3710587.0,"id":226103,"singleSection":false});				  						galleries[193328] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tips for the perfect shoot","link":"gallery_193328.html","maxRecords":0.0,"photoIDs":[3155373.0],"skipIndex":0,"section_code":"gallery","featured_images":3155373.0,"id":193328,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2019951,2613139,2018604,6943797,1894224,3054774,3523554,5234661';
imageSets[2] = '3155499,2224533,6325422,3710587,5234641,2182916,6943695,3843119,2613176';
imageSets[3] = '9002300,9002272,9002248,8988891,8972782,7829170,6943848,6943797,6943695,6937483,6840332,6840281,6840277,6801318,6586507,6586501,6325422,6082880,5879681,5762937,5762902,5762713,5762680,5762643,5762608,5234661,5234655,5234647,5234643,5234641,5234640,4698547,4698525,4698391,4317225,4245870,4245840,4245825,3843240,3843212,3843151,3843128,3843119,3710639,3710630,3710587,3710564,3710550,3677553,3626480';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/aboutu/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/aboutu/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/aboutu/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/aboutu/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/aboutu/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/aboutu/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/aboutu/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/aboutu/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 = 'About U 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>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;
	}
}

			

