window.thumbnails = {};
															thumbnails[4897255] = clik.newPhoto({"id":4897255,"src":"tt_nobs__2_test1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":433});
															thumbnails[5060199] = clik.newPhoto({"id":5060199,"src":"web_home1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":241});
															thumbnails[5114739] = clik.newPhoto({"id":5114739,"src":"Website_ad_generic_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":520});
															thumbnails[6837019] = clik.newPhoto({"id":6837019,"src":"CHRISTMAS_WEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":241});
															thumbnails[7588190] = clik.newPhoto({"id":7588190,"src":"Baby_25_Facebook_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[7614892] = clik.newPhoto({"id":7614892,"src":"JEP_2011_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":217});
															thumbnails[8344063] = clik.newPhoto({"id":8344063,"src":"D1889-25web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":82});
															thumbnails[7609983] = clik.newPhoto({"id":7609983,"src":"BF_Front_2011_April_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":197});
															thumbnails[1449309] = clik.newPhoto({"id":1449309,"src":"commercial-header_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Client: Jersey Royal","height":73});
															thumbnails[2826047] = clik.newPhoto({"id":2826047,"src":"On The Road logo web_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"\"Bringing affordable, Professional Portraiture out to the Community\"","height":233});
															thumbnails[1449200] = clik.newPhoto({"id":1449200,"src":"291_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[1476866] = clik.newPhoto({"id":1476866,"src":"wood-block-set_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"<em>Wooden Blocks.<\/em><br>\r\n<br>\r\nLike the Perspex blocks, these can be displayed individually or as a set for guaranteed WOW factor. Our 3\/4\" wooden blocks have the <br>\r\nimages mounted and laminated onto the surface, and are then offset 3\/4\" from the wall. <br>\r\nClean and minimalist, we cut our blocks to size to accomodate the number of images you wish to incorporate into your design.<br>\r\n","height":188});
															thumbnails[7575105] = clik.newPhoto({"id":7575105,"src":"Baby_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":318});
															thumbnails[7609986] = clik.newPhoto({"id":7609986,"src":"BF_Back_2011_April_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":197});
															thumbnails[1734760] = clik.newPhoto({"id":1734760,"src":"D1359-03_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":179});
															thumbnails[7575107] = clik.newPhoto({"id":7575107,"src":"Baby_3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":309});
															thumbnails[1617977] = clik.newPhoto({"id":1617977,"src":"baby_Frame_cover1_thumb1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":638});
															thumbnails[4345847] = clik.newPhoto({"id":4345847,"src":"Baby_strip_31_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":851});
															thumbnails[4345888] = clik.newPhoto({"id":4345888,"src":"Baby_strip_212_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":778});
															thumbnails[1449380] = clik.newPhoto({"id":1449380,"src":"D1317-15_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":52});
															thumbnails[1476882] = clik.newPhoto({"id":1476882,"src":"perspex-block-set_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Perspex Blocks.Like the Wooden blocks, these can be displayed individually or as a set for guaranteed WOW factor. Our 1\/2\" Perspex blocks have the images mounted behind so they are viewed through the crystal clear Perspex. They are then offset 1\/2\" from the wall. Clean and minimalist, we cut our blocks to size to accomodate the number of images you wish to incorporate into your design. The ultimate in contemporary style.","height":175});
															thumbnails[1476940] = clik.newPhoto({"id":1476940,"src":"D1262-087 copy_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Client: Aveda","height":154});
															thumbnails[1476957] = clik.newPhoto({"id":1476957,"src":"D1229-32_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Client: Jersey Telecom","height":86});
															thumbnails[4343862] = clik.newPhoto({"id":4343862,"src":"baby_Frame_cover1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":285});
															thumbnails[7466943] = clik.newPhoto({"id":7466943,"src":"2_Johns_video_logo1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"2 Johns Video","height":48});
															thumbnails[1449367] = clik.newPhoto({"id":1449367,"src":"14_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[1476906] = clik.newPhoto({"id":1476906,"src":"perspex-4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Perspex Blocks with Backplates.<br>\r\nA great way to add a different dimension to your display, individual or sets of Perspex block displays can be mounted onto a backplate and the whole piece offset 1\/2\" from the wall.<br>\r\nChoose your backplate from stainless steel effect, mirror, gold mirror, clear, frosted, black or red.","height":205});
															thumbnails[1476960] = clik.newPhoto({"id":1476960,"src":"D1266-32_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Client: Barnes Daniels","height":83});
															thumbnails[1449371] = clik.newPhoto({"id":1449371,"src":"1107-14_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":138});
															thumbnails[1449379] = clik.newPhoto({"id":1449379,"src":"D1097-14_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":170});
															thumbnails[1476911] = clik.newPhoto({"id":1476911,"src":"perspex-9_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Perspex Clear Case.<br>\r\n Add a clear front to your Perspex Block & Backplate to create this fantastic look. There are nine small blocks shown here, but can be applied to any configuration. Finished off with either<br>\r\nchrome or gold fittings.<br>\r\n","height":155});
															thumbnails[1477378] = clik.newPhoto({"id":1477378,"src":"D1327-25 finished_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Client: Elmina","height":158});
															thumbnails[1476919] = clik.newPhoto({"id":1476919,"src":"mosaic_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Mosaic.<br>\r\n                Perfect for a breathtaking display in a good sized area; a single image split into a mosaic. Totally flexible to suit the picture and the display area. Available as Wood or Perspex blocks.<br>\r\n","height":200});
															thumbnails[1734809] = clik.newPhoto({"id":1734809,"src":"D1340-18_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":80});
															thumbnails[4343373] = clik.newPhoto({"id":4343373,"src":"Homepage_July_09_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":193});
															thumbnails[1476923] = clik.newPhoto({"id":1476923,"src":"frame_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Frames.<br>\r\nWe do still offer a selection of frames of course; displays can be one main portrait or multi-aperture as shown here.","height":197});
															thumbnails[1734811] = clik.newPhoto({"id":1734811,"src":"D1376-27_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1476928] = clik.newPhoto({"id":1476928,"src":"canvas_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Canvas Wrap.<br>\r\nPrinted onto canvas, laminated and wrapped around a 2\" deep framework. Seeing some of your image wrapped around the edges gives a 3D-like display.","height":266});
															thumbnails[1476931] = clik.newPhoto({"id":1476931,"src":"chrome-rail_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Chrome Rail Triple.<br>\r\nA bold statement featuring 3 square frames of your choice on a double chrome rail - can be displayed vertically or horizontally.<br>\r\n","height":228});
															thumbnails[6332139] = clik.newPhoto({"id":6332139,"src":"nspcc_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Click the link on the left to view your Summer Ball Images!","height":36});
															thumbnails[7682647] = clik.newPhoto({"id":7682647,"src":"2_Johns_comp_1_thumb.jpg","galleries_id":414601,"server_id":1,"link":"photo_7682647.html","width":130,"caption":"","height":147});
															thumbnails[7574292] = clik.newPhoto({"id":7574292,"src":"Baby_1_thumb.jpg","galleries_id":414601,"server_id":1,"link":"photo_7574292.html","width":130,"caption":"","height":169});
															thumbnails[5491605] = clik.newPhoto({"id":5491605,"src":"tt_pics1_thumb.jpg","galleries_id":410221,"server_id":1,"link":"photo_5491605.html","width":130,"caption":"","height":683});
															thumbnails[5691557] = clik.newPhoto({"id":5691557,"src":"Toddler_team_thumb.jpg","galleries_id":410221,"server_id":1,"link":"photo_5691557.html","width":130,"caption":"","height":173});
															thumbnails[5423132] = clik.newPhoto({"id":5423132,"src":"wedding_title_1ap_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_5423132.html","width":130,"caption":"","height":194});
															thumbnails[5423133] = clik.newPhoto({"id":5423133,"src":"wedding_title_2bp_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_5423133.html","width":130,"caption":"","height":194});
															thumbnails[5423134] = clik.newPhoto({"id":5423134,"src":"wedding_title_3bp_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_5423134.html","width":130,"caption":"","height":194});
															thumbnails[1449316] = clik.newPhoto({"id":1449316,"src":"1334_001_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449316.html","width":130,"caption":"","height":194});
															thumbnails[1449584] = clik.newPhoto({"id":1449584,"src":"1334_003_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449584.html","width":130,"caption":"","height":194});
															thumbnails[1449608] = clik.newPhoto({"id":1449608,"src":"1334_015_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449608.html","width":130,"caption":"","height":87});
															thumbnails[1449643] = clik.newPhoto({"id":1449643,"src":"1334_0161_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449643.html","width":130,"caption":"","height":87});
															thumbnails[1449660] = clik.newPhoto({"id":1449660,"src":"1334_020_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449660.html","width":130,"caption":"","height":194});
															thumbnails[1449673] = clik.newPhoto({"id":1449673,"src":"1334_039_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449673.html","width":130,"caption":"","height":194});
															thumbnails[1449690] = clik.newPhoto({"id":1449690,"src":"1334_043_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449690.html","width":130,"caption":"","height":194});
															thumbnails[1449703] = clik.newPhoto({"id":1449703,"src":"1334_054_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449703.html","width":130,"caption":"","height":194});
															thumbnails[1449732] = clik.newPhoto({"id":1449732,"src":"1334_086_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449732.html","width":130,"caption":"","height":87});
															thumbnails[1449746] = clik.newPhoto({"id":1449746,"src":"1334_087_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449746.html","width":130,"caption":"","height":194});
															thumbnails[1449762] = clik.newPhoto({"id":1449762,"src":"1334_102_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449762.html","width":130,"caption":"","height":194});
															thumbnails[1449775] = clik.newPhoto({"id":1449775,"src":"1334_109_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449775.html","width":130,"caption":"","height":194});
															thumbnails[1449776] = clik.newPhoto({"id":1449776,"src":"1334_117_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449776.html","width":130,"caption":"","height":194});
															thumbnails[1449777] = clik.newPhoto({"id":1449777,"src":"1334_124_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449777.html","width":130,"caption":"","height":87});
															thumbnails[1449778] = clik.newPhoto({"id":1449778,"src":"1334_125_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449778.html","width":130,"caption":"","height":194});
															thumbnails[1449784] = clik.newPhoto({"id":1449784,"src":"1334_134_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449784.html","width":130,"caption":"","height":87});
															thumbnails[1449791] = clik.newPhoto({"id":1449791,"src":"1334_154_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449791.html","width":130,"caption":"","height":194});
															thumbnails[1449793] = clik.newPhoto({"id":1449793,"src":"1334_157_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449793.html","width":130,"caption":"","height":87});
															thumbnails[1449794] = clik.newPhoto({"id":1449794,"src":"1334_1591_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449794.html","width":130,"caption":"","height":87});
															thumbnails[1449796] = clik.newPhoto({"id":1449796,"src":"1334_210_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449796.html","width":130,"caption":"","height":87});
															thumbnails[1449797] = clik.newPhoto({"id":1449797,"src":"1334_224_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449797.html","width":130,"caption":"","height":194});
															thumbnails[1449800] = clik.newPhoto({"id":1449800,"src":"1334_227_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449800.html","width":130,"caption":"","height":194});
															thumbnails[1449801] = clik.newPhoto({"id":1449801,"src":"1334_265_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449801.html","width":130,"caption":"","height":194});
															thumbnails[1449802] = clik.newPhoto({"id":1449802,"src":"1334_268_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449802.html","width":130,"caption":"","height":194});
															thumbnails[1449816] = clik.newPhoto({"id":1449816,"src":"1334_271_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449816.html","width":130,"caption":"","height":87});
															thumbnails[1449821] = clik.newPhoto({"id":1449821,"src":"1334_272_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449821.html","width":130,"caption":"","height":194});
															thumbnails[1449822] = clik.newPhoto({"id":1449822,"src":"1334_279_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449822.html","width":130,"caption":"","height":194});
															thumbnails[1449823] = clik.newPhoto({"id":1449823,"src":"1334_292_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449823.html","width":130,"caption":"","height":194});
															thumbnails[1449824] = clik.newPhoto({"id":1449824,"src":"1334_294_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449824.html","width":130,"caption":"","height":194});
															thumbnails[1449825] = clik.newPhoto({"id":1449825,"src":"1334_299_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449825.html","width":130,"caption":"","height":194});
															thumbnails[1449827] = clik.newPhoto({"id":1449827,"src":"1334_302_thumb.jpg","galleries_id":410262,"server_id":1,"link":"photo_1449827.html","width":130,"caption":"","height":194});
															thumbnails[7466870] = clik.newPhoto({"id":7466870,"src":"2_Johns_video_logo_thumb.jpg","galleries_id":412087,"server_id":1,"link":"photo_7466870.html","width":130,"caption":"","height":48});
															thumbnails[8994609] = clik.newPhoto({"id":8994609,"src":"Head_to_Toe_Display_thumb.jpg","galleries_id":473716,"server_id":1,"link":"photo_8994609.html","width":130,"caption":"","height":101});
															thumbnails[8994705] = clik.newPhoto({"id":8994705,"src":"Head_to_Toe_room_shot_thumb.jpg","galleries_id":473716,"server_id":1,"link":"photo_8994705.html","width":130,"caption":"","height":149});
															thumbnails[2319774] = clik.newPhoto({"id":2319774,"src":"Kids 9th - 12th web copy copy_thumb.jpg","galleries_id":417200,"server_id":1,"link":"photo_2319774.html","width":130,"caption":"","height":2117});
															thumbnails[1734822] = clik.newPhoto({"id":1734822,"src":"D1273-15_thumb.jpg","galleries_id":417200,"server_id":1,"link":"photo_1734822.html","width":130,"caption":"","height":79});
															thumbnails[1734756] = clik.newPhoto({"id":1734756,"src":"D1329-11 copy_thumb.jpg","galleries_id":417200,"server_id":1,"link":"photo_1734756.html","width":130,"caption":"","height":201});
															thumbnails[2319858] = clik.newPhoto({"id":2319858,"src":"Kids 9th - 12th web2_thumb.jpg","galleries_id":417200,"server_id":1,"link":"photo_2319858.html","width":130,"caption":"","height":201});
															thumbnails[8026644] = clik.newPhoto({"id":8026644,"src":"BF_Desktop_eg_2011_thumb.jpg","galleries_id":431055,"server_id":1,"link":"photo_8026644.html","width":130,"caption":"","height":98});
															thumbnails[8026626] = clik.newPhoto({"id":8026626,"src":"Desk_situ_thumb.jpg","galleries_id":431055,"server_id":1,"link":"photo_8026626.html","width":130,"caption":"","height":102});
															thumbnails[6084698] = clik.newPhoto({"id":6084698,"src":"Nurseries_Header_thumb.jpg","galleries_id":428696,"server_id":1,"link":"photo_6084698.html","width":130,"caption":"To view your nursery, click on the link on the left!","height":100});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[414601] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby 1st Year Wall Display ","link":"section496183_414601.html","maxRecords":0.0,"photoIDs":[7682647.0,7574292.0],"skipIndex":0,"section_code":"section496183","featured_images":"7682647,7574292","id":414601,"singleSection":false});				  						galleries[414615] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby Home","link":"section496183_414615.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section496183","featured_images":"","id":414615,"singleSection":false});				  						galleries[414546] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"baby home","link":"handout_414546.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"handout","featured_images":"","id":414546,"singleSection":false});				  						galleries[416084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"baby room","link":"handout_416084.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"handout","featured_images":"","id":416084,"singleSection":false});				  							galleries[411518] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"babyvoucher","link":"babyvoucher.html","maxRecords":0.0,"photoIDs":[],"skipIndex":true,"section_code":"babyvoucher","featured_images":"","id":411518,"singleSection":true});				  						galleries[412710] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Handout","link":"handout_412710.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"handout","featured_images":"","id":412710,"singleSection":false});				  						galleries[417200] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kids Klub","link":"kidsklub.html","maxRecords":0.0,"photoIDs":[2319774.0,1734822.0,1734756.0,2319858.0],"skipIndex":0,"section_code":"kidsklub","featured_images":2319858.0,"id":417200,"singleSection":true});				  						galleries[444295] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New School Photos","link":"toddlerteam_444295.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"toddlerteam","featured_images":"","id":444295,"singleSection":false});				  						galleries[428695] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"nursery","link":"section514844_428695.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section514844","featured_images":"","id":428695,"singleSection":false});				  						galleries[447981] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wedding","link":"section490882_447981.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section490882","featured_images":"","id":447981,"singleSection":false});				  						galleries[410221] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2 Johns Toddler Team","link":"toddlerteam_410221.html","maxRecords":0.0,"photoIDs":[5491605.0,5691557.0],"skipIndex":0,"section_code":"toddlerteam","featured_images":5691557.0,"id":410221,"singleSection":false});				  						galleries[473716] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby Head to Toe ","link":"baby_head_to_toe.html","maxRecords":0.0,"photoIDs":[8994609.0,8994705.0],"skipIndex":0,"section_code":"baby_head_to_toe","featured_images":8994609.0,"id":473716,"singleSection":true});				  						galleries[410262] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2 Johns Weddings","link":"section490882_410262.html","maxRecords":0.0,"photoIDs":[5423132.0,5423133.0,5423134.0,1449316.0,1449584.0,1449608.0,1449643.0,1449660.0,1449673.0,1449690.0,1449703.0,1449732.0,1449746.0,1449762.0,1449775.0,1449776.0,1449777.0,1449778.0,1449784.0,1449791.0,1449793.0,1449794.0,1449796.0,1449797.0,1449800.0,1449801.0,1449802.0,1449816.0,1449821.0,1449822.0,1449823.0,1449824.0,1449825.0,1449827.0],"skipIndex":0,"section_code":"section490882","featured_images":"1449824,1449794","id":410262,"singleSection":false});				  						galleries[412087] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"2 Johns Video services","link":"video.html","maxRecords":0.0,"photoIDs":[7466870.0],"skipIndex":0,"section_code":"video","featured_images":7466870.0,"id":412087,"singleSection":true});				  							galleries[411286] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby Trial","link":"babytrial.html","maxRecords":0.0,"photoIDs":[],"skipIndex":true,"section_code":"babytrial","featured_images":"","id":411286,"singleSection":true});				  							galleries[431055] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baby desk","link":"photo_8026644.html","maxRecords":0.0,"photoIDs":[8026644.0,8026626.0],"skipIndex":true,"section_code":"babydesk","featured_images":"8026644,8026626","id":431055,"singleSection":true});				  						galleries[428696] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nursery Photos","link":"section514844_428696.html","maxRecords":0.0,"photoIDs":[6084698.0],"skipIndex":0,"section_code":"section514844","featured_images":6084698.0,"id":428696,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[241472] = '7682647,7574292,7575107';
imageSets[1] = '5060199';
imageSets[241155] = '7609986';
imageSets[3] = '5491605,5423132,5423133,5423134,1449316,1617977,4345847,4345888,1449584,1449608,1449643,1449660,1449673,1449703,1449690,1449732,1449746,1449762,1449775,1449776,1449777,1449778,1449784,1449791,1449793,1449794,1449796,1449797,1449800,1449801,1449802,1449816,1449821,1449822,1449823,1449825,1449827';
imageSets[241157] = '7609983';
imageSets[241343] = '7574292';
imageSets[240991] = '7574292';
imageSets[243119] = '8026644,8026626';
imageSets[2] = '5691557,1449309,8994609,1449200,4343862,1476919,6084698,1449794,1449824,2319858';
imageSets[241004] = '7588190';
imageSets[240914] = '7575105';
imageSets[240915] = '7575107';
imageSets[241012] = '7574292';
imageSets[241176] = '7614892';
imageSets[247162] = '8994705';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/2Johns/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/2Johns/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/2Johns/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/2Johns/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/2Johns/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/2Johns/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/2Johns/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/2Johns/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 += 'section496183.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 && 'section496183' != '') {
					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 = 'Family, Kids, Baby & Wedding Photography in Jersey: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="info@2johns.com">';
					temp += '<input type="hidden" name="currency_code" value="USD">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="info@2johns.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

