window.thumbnails = {};
															thumbnails[8100225] = clik.newPhoto({"id":8100225,"src":"2_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8100225.html","width":130,"caption":"","height":91});
															thumbnails[8438811] = clik.newPhoto({"id":8438811,"src":"38_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8438811.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8439405] = clik.newPhoto({"id":8439405,"src":"art4_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8439405.html","width":130,"caption":"","height":91});
															thumbnails[8439427] = clik.newPhoto({"id":8439427,"src":"art5_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8439427.html","width":130,"caption":"","height":91});
															thumbnails[8437406] = clik.newPhoto({"id":8437406,"src":"71_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437406.html","width":130,"caption":"","height":91});
															thumbnails[8438804] = clik.newPhoto({"id":8438804,"src":"312_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8438804.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8439295] = clik.newPhoto({"id":8439295,"src":"1_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439295.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8439359] = clik.newPhoto({"id":8439359,"src":"art1_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8439359.html","width":130,"caption":"","height":91});
															thumbnails[8441306] = clik.newPhoto({"id":8441306,"src":"14_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8441306.html","width":130,"caption":"","height":91});
															thumbnails[8507644] = clik.newPhoto({"id":8507644,"src":"1_91DAD670-1EC9-D45B-1CCFDF30C4808932_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507644.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8437517] = clik.newPhoto({"id":8437517,"src":"76_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437517.html","width":130,"caption":"India","height":91});
															thumbnails[8438207] = clik.newPhoto({"id":8438207,"src":"5_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438207.html","width":130,"caption":"","height":91});
															thumbnails[8439302] = clik.newPhoto({"id":8439302,"src":"2_4B03C7BC-24E8-5EC4-4FF3FECE97FA3A13_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439302.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8439372] = clik.newPhoto({"id":8439372,"src":"art2_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8439372.html","width":130,"caption":"","height":91});
															thumbnails[8507649] = clik.newPhoto({"id":8507649,"src":"21_91DCD359-1EC9-D45B-1C3D2200F570E84D_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507649.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8437494] = clik.newPhoto({"id":8437494,"src":"74_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437494.html","width":130,"caption":"India","height":91});
															thumbnails[8438214] = clik.newPhoto({"id":8438214,"src":"4_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438214.html","width":130,"caption":"","height":91});
															thumbnails[8438819] = clik.newPhoto({"id":8438819,"src":"56_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8438819.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8439307] = clik.newPhoto({"id":8439307,"src":"35_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439307.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8439386] = clik.newPhoto({"id":8439386,"src":"art3_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8439386.html","width":130,"caption":"","height":91});
															thumbnails[8441443] = clik.newPhoto({"id":8441443,"src":"22_100C649F-1EC9-DFB6-09E2652BDCC4D442_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8441443.html","width":130,"caption":"","height":91});
															thumbnails[8441486] = clik.newPhoto({"id":8441486,"src":"3_1032CD90-1EC9-DFB6-0983EDA3A432FA2D_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8441486.html","width":130,"caption":"","height":91});
															thumbnails[8507650] = clik.newPhoto({"id":8507650,"src":"3_91DF2084-1EC9-D45B-1C9C300F25E1F3CE_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507650.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8437412] = clik.newPhoto({"id":8437412,"src":"72_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437412.html","width":130,"caption":"India","height":91});
															thumbnails[8438244] = clik.newPhoto({"id":8438244,"src":"6_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438244.html","width":130,"caption":"","height":91});
															thumbnails[8438838] = clik.newPhoto({"id":8438838,"src":"36_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8438838.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8439313] = clik.newPhoto({"id":8439313,"src":"41_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439313.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8507652] = clik.newPhoto({"id":8507652,"src":"41_91E03C15-1EC9-D45B-1CE67F17E6F657DF_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507652.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8437837] = clik.newPhoto({"id":8437837,"src":"75_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437837.html","width":130,"caption":"India","height":91});
															thumbnails[8439082] = clik.newPhoto({"id":8439082,"src":"37_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8439082.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8439318] = clik.newPhoto({"id":8439318,"src":"3_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439318.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8442484] = clik.newPhoto({"id":8442484,"src":"4_14258F07-1EC9-DFB6-09F22108F2DFDDD0_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8442484.html","width":130,"caption":"","height":91});
															thumbnails[8442487] = clik.newPhoto({"id":8442487,"src":"5_1430EBFE-1EC9-DFB6-09F0F4529828C8DF_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8442487.html","width":130,"caption":"","height":91});
															thumbnails[8507656] = clik.newPhoto({"id":8507656,"src":"7_91E13D58-1EC9-D45B-1CC2C8C73FBC1A2D_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507656.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8437473] = clik.newPhoto({"id":8437473,"src":"73_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437473.html","width":130,"caption":"India","height":91});
															thumbnails[8437521] = clik.newPhoto({"id":8437521,"src":"77_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437521.html","width":130,"caption":"India","height":91});
															thumbnails[8438303] = clik.newPhoto({"id":8438303,"src":"15_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438303.html","width":130,"caption":"","height":186});
															thumbnails[8438353] = clik.newPhoto({"id":8438353,"src":"29_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438353.html","width":130,"caption":"Toni and Guy","height":186});
															thumbnails[8439103] = clik.newPhoto({"id":8439103,"src":"60_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8439103.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8439105] = clik.newPhoto({"id":8439105,"src":"34_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8439105.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8439322] = clik.newPhoto({"id":8439322,"src":"45_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439322.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8439323] = clik.newPhoto({"id":8439323,"src":"47_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439323.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8442489] = clik.newPhoto({"id":8442489,"src":"7_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8442489.html","width":130,"caption":"","height":91});
															thumbnails[8507664] = clik.newPhoto({"id":8507664,"src":"8_91E51ECF-1EC9-D45B-1C50DF78D0D378F4_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507664.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8437525] = clik.newPhoto({"id":8437525,"src":"85_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437525.html","width":130,"caption":"Thailand","height":91});
															thumbnails[8438582] = clik.newPhoto({"id":8438582,"src":"32_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438582.html","width":130,"caption":"","height":186});
															thumbnails[8439289] = clik.newPhoto({"id":8439289,"src":"58_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8439289.html","width":130,"caption":"© Hollyoaks Laters Lime Pictures","height":91});
															thumbnails[8439326] = clik.newPhoto({"id":8439326,"src":"53_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439326.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8475580] = clik.newPhoto({"id":8475580,"src":"art9_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8475580.html","width":130,"caption":"","height":91});
															thumbnails[8507685] = clik.newPhoto({"id":8507685,"src":"51_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507685.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8508436] = clik.newPhoto({"id":8508436,"src":"8_923DC53E-24E8-5EC4-4FDAD9EEDEC114D1_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8508436.html","width":130,"caption":"Luminanz","height":91});
															thumbnails[8437949] = clik.newPhoto({"id":8437949,"src":"90_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437949.html","width":130,"caption":"Thailand","height":186});
															thumbnails[8438586] = clik.newPhoto({"id":8438586,"src":"26_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438586.html","width":130,"caption":"Toni and Guy","height":186});
															thumbnails[8439343] = clik.newPhoto({"id":8439343,"src":"581_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439343.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8475582] = clik.newPhoto({"id":8475582,"src":"art10_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8475582.html","width":130,"caption":"","height":91});
															thumbnails[8507691] = clik.newPhoto({"id":8507691,"src":"61_91ECC2F9-1EC9-D45B-1CF3461BA9E8FAF4_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507691.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8508438] = clik.newPhoto({"id":8508438,"src":"9_923EF1AA-24E8-5EC4-4F70820D8C23B3DC_thumb.jpg","galleries_id":199848,"server_id":15,"link":"photo_8508438.html","width":130,"caption":"Prom nights","height":91});
															thumbnails[8437846] = clik.newPhoto({"id":8437846,"src":"88_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437846.html","width":130,"caption":"India","height":186});
															thumbnails[8438594] = clik.newPhoto({"id":8438594,"src":"16_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438594.html","width":130,"caption":"","height":186});
															thumbnails[8439344] = clik.newPhoto({"id":8439344,"src":"59_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439344.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8439345] = clik.newPhoto({"id":8439345,"src":"62_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439345.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8475588] = clik.newPhoto({"id":8475588,"src":"art8_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8475588.html","width":130,"caption":"","height":91});
															thumbnails[8507693] = clik.newPhoto({"id":8507693,"src":"9_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507693.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8437958] = clik.newPhoto({"id":8437958,"src":"89_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8437958.html","width":130,"caption":"India","height":186});
															thumbnails[8438603] = clik.newPhoto({"id":8438603,"src":"12_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438603.html","width":130,"caption":"","height":186});
															thumbnails[8439349] = clik.newPhoto({"id":8439349,"src":"64_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8439349.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8475589] = clik.newPhoto({"id":8475589,"src":"art7_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8475589.html","width":130,"caption":"","height":91});
															thumbnails[8507698] = clik.newPhoto({"id":8507698,"src":"10_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507698.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8438029] = clik.newPhoto({"id":8438029,"src":"92_thumb.jpg","galleries_id":446688,"server_id":15,"link":"photo_8438029.html","width":130,"caption":"Thailand","height":186});
															thumbnails[8438612] = clik.newPhoto({"id":8438612,"src":"24_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438612.html","width":130,"caption":"Toni and Guy","height":186});
															thumbnails[8467937] = clik.newPhoto({"id":8467937,"src":"4_68074479-1E4F-37DC-71FD1BEAABB198C2_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8467937.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8475591] = clik.newPhoto({"id":8475591,"src":"art14_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8475591.html","width":130,"caption":"","height":91});
															thumbnails[8507700] = clik.newPhoto({"id":8507700,"src":"11_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507700.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8438608] = clik.newPhoto({"id":8438608,"src":"22_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438608.html","width":130,"caption":"Toni and Guy","height":186});
															thumbnails[8467953] = clik.newPhoto({"id":8467953,"src":"5_6808839A-1E4F-37DC-71B4A92285699495_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8467953.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8507702] = clik.newPhoto({"id":8507702,"src":"12_91F28C98-1EC9-D45B-1CC1389FEBDF96AC_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507702.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8438633] = clik.newPhoto({"id":8438633,"src":"301_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438633.html","width":130,"caption":"","height":186});
															thumbnails[8468027] = clik.newPhoto({"id":8468027,"src":"7_680E7131-1E4F-37DC-712ABD80F832567C_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8468027.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8475592] = clik.newPhoto({"id":8475592,"src":"art13_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8475592.html","width":130,"caption":"","height":91});
															thumbnails[8438709] = clik.newPhoto({"id":8438709,"src":"311_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438709.html","width":130,"caption":"","height":186});
															thumbnails[8475594] = clik.newPhoto({"id":8475594,"src":"15_6EC62DEC-24E8-5EC4-4F23AD0C8C74D69F_thumb.jpg","galleries_id":199847,"server_id":15,"link":"photo_8475594.html","width":130,"caption":"","height":91});
															thumbnails[8507782] = clik.newPhoto({"id":8507782,"src":"14_91FDF9C4-1EC9-D45B-1C1C239FE0B62814_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507782.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8438753] = clik.newPhoto({"id":8438753,"src":"33_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438753.html","width":130,"caption":"","height":186});
															thumbnails[8468041] = clik.newPhoto({"id":8468041,"src":"61_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8468041.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8507830] = clik.newPhoto({"id":8507830,"src":"13_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507830.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8438782] = clik.newPhoto({"id":8438782,"src":"21_thumb.jpg","galleries_id":199842,"server_id":15,"link":"photo_8438782.html","width":130,"caption":"","height":186});
															thumbnails[8468060] = clik.newPhoto({"id":8468060,"src":"62_6812EB4F-1E4F-37DC-71DDC652D8592B83_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8468060.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8468083] = clik.newPhoto({"id":8468083,"src":"67_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8468083.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8507832] = clik.newPhoto({"id":8507832,"src":"151_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507832.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});
															thumbnails[8468085] = clik.newPhoto({"id":8468085,"src":"69_thumb.jpg","galleries_id":199846,"server_id":15,"link":"photo_8468085.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":91});
															thumbnails[8468119] = clik.newPhoto({"id":8468119,"src":"8_thumb.jpg","galleries_id":199849,"server_id":15,"link":"photo_8468119.html","width":130,"caption":"© Lime Pictures ","height":91});
															thumbnails[8507850] = clik.newPhoto({"id":8507850,"src":"16_9201603E-1EC9-D45B-1C87EEDBF486D6DE_thumb.jpg","galleries_id":449644,"server_id":15,"link":"photo_8507850.html","width":130,"caption":"© Hollyoaks Lime Pictures","height":186});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[446688] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"gallery_446688.html","maxRecords":0.0,"photoIDs":[8437406.0,8437517.0,8437494.0,8437412.0,8437837.0,8437473.0,8437521.0,8437525.0,8437949.0,8437846.0,8437958.0,8438029.0],"skipIndex":0,"section_code":"gallery","featured_images":"8437525,8437521","id":446688,"singleSection":false});				  						galleries[199842] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fashion","link":"gallery_199842.html","maxRecords":0.0,"photoIDs":[8100225.0,8438207.0,8438214.0,8438244.0,8438303.0,8438353.0,8438582.0,8438586.0,8438594.0,8438603.0,8438612.0,8438608.0,8438633.0,8438709.0,8438753.0,8438782.0],"skipIndex":0,"section_code":"gallery","featured_images":8438214.0,"id":199842,"singleSection":false});				  						galleries[199846] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Publicity","link":"gallery_199846.html","maxRecords":0.0,"photoIDs":[8438811.0,8438804.0,8438819.0,8438838.0,8439082.0,8439103.0,8439105.0,8439289.0,8468041.0,8468060.0,8468083.0,8468085.0],"skipIndex":0,"section_code":"gallery","featured_images":8439105.0,"id":199846,"singleSection":false});				  						galleries[199848] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"gallery_199848.html","maxRecords":0.0,"photoIDs":[8441306.0,8441443.0,8441486.0,8442484.0,8442487.0,8442489.0,8508436.0,8508438.0],"skipIndex":0,"section_code":"gallery","featured_images":8441306.0,"id":199848,"singleSection":false});				  						galleries[199847] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"gallery_199847.html","maxRecords":0.0,"photoIDs":[8439405.0,8439427.0,8439359.0,8439372.0,8439386.0,8475580.0,8475582.0,8475588.0,8475589.0,8475591.0,8475592.0,8475594.0],"skipIndex":0,"section_code":"gallery","featured_images":8439386.0,"id":199847,"singleSection":false});				  						galleries[199849] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Band\/Album artwork","link":"gallery_199849.html","maxRecords":0.0,"photoIDs":[8439295.0,8439302.0,8439307.0,8439313.0,8439318.0,8439322.0,8439323.0,8439326.0,8439343.0,8439344.0,8439345.0,8439349.0,8467937.0,8467953.0,8468027.0,8468119.0],"skipIndex":0,"section_code":"gallery","featured_images":"8467937,8439318","id":199849,"singleSection":false});				  						galleries[449644] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cast shots","link":"gallery_449644.html","maxRecords":0.0,"photoIDs":[8507644.0,8507649.0,8507650.0,8507652.0,8507656.0,8507664.0,8507685.0,8507691.0,8507693.0,8507698.0,8507700.0,8507702.0,8507782.0,8507830.0,8507832.0,8507850.0],"skipIndex":0,"section_code":"gallery","featured_images":8507644.0,"id":449644,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8438819,8438207';
imageSets[2] = '8507644,8467937,8441306,8439386,8439318,8439105,8438214,8437525,8437521';
imageSets[3] = '8438214';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/spicerkerry/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/spicerkerry/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 && backgrounds[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 = 'kerry spicer 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.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 += '<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;
	}
}

			

