window.thumbnails = {};
															thumbnails[8104312] = clik.newPhoto({"id":8104312,"src":"DSC_8736_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104312.html","width":99,"caption":"","height":100});
															thumbnails[8104293] = clik.newPhoto({"id":8104293,"src":"ALR_7944_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104293.html","width":102,"caption":"event 15","height":100});
															thumbnails[8104301] = clik.newPhoto({"id":8104301,"src":"DSC_2038a_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104301.html","width":103,"caption":"event 15","height":100});
															thumbnails[8104302] = clik.newPhoto({"id":8104302,"src":"DSC_2110a_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104302.html","width":103,"caption":"event 15","height":100});
															thumbnails[8104306] = clik.newPhoto({"id":8104306,"src":"DSC_7093_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104306.html","width":100,"caption":"event 15","height":100});
															thumbnails[8104298] = clik.newPhoto({"id":8104298,"src":"awards_1_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104298.html","width":102,"caption":"event 15","height":100});
															thumbnails[8683148] = clik.newPhoto({"id":8683148,"src":"st_pauls_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8683148.html","width":66,"caption":"st pauls","height":100});
															thumbnails[8104291] = clik.newPhoto({"id":8104291,"src":"ALR_7824_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104291.html","width":98,"caption":"event 15","height":100});
															thumbnails[8104294] = clik.newPhoto({"id":8104294,"src":"ALR_8117_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104294.html","width":96,"caption":"event 15","height":100});
															thumbnails[8104300] = clik.newPhoto({"id":8104300,"src":"DSCF070644_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104300.html","width":102,"caption":"event 15","height":100});
															thumbnails[8104295] = clik.newPhoto({"id":8104295,"src":"ALR_8132_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104295.html","width":95,"caption":"event 15","height":100});
															thumbnails[8104296] = clik.newPhoto({"id":8104296,"src":"ALR_8139_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104296.html","width":99,"caption":"event 15","height":100});
															thumbnails[8683147] = clik.newPhoto({"id":8683147,"src":"st_pauls_H_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8683147.html","width":130,"caption":"st pauls H","height":86});
															thumbnails[8104297] = clik.newPhoto({"id":8104297,"src":"ALR_8242_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104297.html","width":103,"caption":"event 15","height":100});
															thumbnails[8640547] = clik.newPhoto({"id":8640547,"src":"089_AAR_3884_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8640547.html","width":130,"caption":"089 AAR 3884","height":89});
															thumbnails[8104292] = clik.newPhoto({"id":8104292,"src":"ALR_7832_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104292.html","width":102,"caption":"event 15","height":100});
															thumbnails[8640548] = clik.newPhoto({"id":8640548,"src":"092_ARO_1936_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8640548.html","width":66,"caption":"092 ARO 1936","height":100});
															thumbnails[8640549] = clik.newPhoto({"id":8640549,"src":"099_ARO_2212_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8640549.html","width":130,"caption":"099 ARO 2212","height":86});
															thumbnails[8104299] = clik.newPhoto({"id":8104299,"src":"awards_2_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8104299.html","width":93,"caption":"event 15","height":100});
															thumbnails[8640550] = clik.newPhoto({"id":8640550,"src":"ARO_2007_thumb.jpg","galleries_id":80964,"server_id":1,"link":"photo_8640550.html","width":130,"caption":"ARO 2007","height":87});
															thumbnails[8104184] = clik.newPhoto({"id":8104184,"src":"DSC_5249_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8104184.html","width":105,"caption":"","height":100});
															thumbnails[8104188] = clik.newPhoto({"id":8104188,"src":"DSC_0666_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8104188.html","width":98,"caption":"","height":100});
															thumbnails[8088553] = clik.newPhoto({"id":8088553,"src":"ALR_8085_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088553.html","width":99,"caption":"shoes or coffee","height":100});
															thumbnails[8104013] = clik.newPhoto({"id":8104013,"src":"cca_3310_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8104013.html","width":100,"caption":"cca 3310","height":100});
															thumbnails[8640518] = clik.newPhoto({"id":8640518,"src":"002_AAR_1273_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8640518.html","width":130,"caption":"conference KPMG","height":86});
															thumbnails[8088554] = clik.newPhoto({"id":8088554,"src":"DSC_1311_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088554.html","width":104,"caption":"red bull","height":100});
															thumbnails[8104014] = clik.newPhoto({"id":8104014,"src":"CCA_3437_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8104014.html","width":100,"caption":"CCA 3437","height":100});
															thumbnails[8640519] = clik.newPhoto({"id":8640519,"src":"024ARO_3909_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8640519.html","width":130,"caption":"Jim Lawless","height":86});
															thumbnails[8088556] = clik.newPhoto({"id":8088556,"src":"Kate_Walsh_ARO_2041_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088556.html","width":102,"caption":"Kate Walsh","height":100});
															thumbnails[8104015] = clik.newPhoto({"id":8104015,"src":"CCA_6042_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8104015.html","width":99,"caption":"CCA 6042","height":100});
															thumbnails[8088558] = clik.newPhoto({"id":8088558,"src":"LNP_Amanda_Holden_ARO_8554_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088558.html","width":97,"caption":"Amanda Holden ","height":100});
															thumbnails[8104016] = clik.newPhoto({"id":8104016,"src":"CCA_6674_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8104016.html","width":99,"caption":"CCA 6674","height":100});
															thumbnails[8640521] = clik.newPhoto({"id":8640521,"src":"ARO_1379_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8640521.html","width":130,"caption":"Kevin Downey ","height":95});
															thumbnails[8088560] = clik.newPhoto({"id":8088560,"src":"LNP_Cars2_and_Virgin_Racing_AAR_2709_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088560.html","width":101,"caption":"Virgin Racing","height":100});
															thumbnails[8088562] = clik.newPhoto({"id":8088562,"src":"LNP_London_fashion_week_017_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088562.html","width":101,"caption":"London fashion ","height":100});
															thumbnails[8640546] = clik.newPhoto({"id":8640546,"src":"058_AAR_1227_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8640546.html","width":130,"caption":"058 AAR 1227","height":86});
															thumbnails[8088564] = clik.newPhoto({"id":8088564,"src":"LNP_Pottermore_Launch_ARO_8848_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088564.html","width":102,"caption":"J.K.Rowling ","height":100});
															thumbnails[8088565] = clik.newPhoto({"id":8088565,"src":"moonwalk_2010_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088565.html","width":94,"caption":"moonwalk ","height":100});
															thumbnails[8088566] = clik.newPhoto({"id":8088566,"src":"nike_product_launch_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8088566.html","width":102,"caption":"nike product launch","height":100});
															thumbnails[8104320] = clik.newPhoto({"id":8104320,"src":"DSC_7317trafalgar_8_thumb.jpg","galleries_id":81390,"server_id":1,"link":"photo_8104320.html","width":106,"caption":"trafalgar 8","height":100});
															thumbnails[8088536] = clik.newPhoto({"id":8088536,"src":"rhianna_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088536.html","width":98,"caption":"rhianna","height":100});
															thumbnails[8088391] = clik.newPhoto({"id":8088391,"src":"LNP_Wireless_day_1_AAR_0100_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088391.html","width":99,"caption":"Black eyed peas at Wireless ","height":100});
															thumbnails[8088406] = clik.newPhoto({"id":8088406,"src":"LNP_Wireless_day3_AAR_1231_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088406.html","width":98,"caption":"Vintage Trouble","height":100});
															thumbnails[8088527] = clik.newPhoto({"id":8088527,"src":"Angelina_Mono_DSC_0072_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088527.html","width":98,"caption":"Angelina Mono DSC 0072","height":100});
															thumbnails[8088392] = clik.newPhoto({"id":8088392,"src":"LNP_Wireless_day_1_AAR_0132_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088392.html","width":101,"caption":"Fergie from Black eyed peas ","height":100});
															thumbnails[8088528] = clik.newPhoto({"id":8088528,"src":"Christina_Aguilera_AL2_9478_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088528.html","width":99,"caption":"Christina Aguilera AL2 9478","height":100});
															thumbnails[8088393] = clik.newPhoto({"id":8088393,"src":"LNP_Wireless_day_1_ARO_9768_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088393.html","width":99,"caption":"Far east movement ","height":100});
															thumbnails[8088408] = clik.newPhoto({"id":8088408,"src":"LNP_Wireless_day3_AAR_1598_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088408.html","width":104,"caption":"The Neon trees ","height":100});
															thumbnails[8088409] = clik.newPhoto({"id":8088409,"src":"LNP_Wireless_day3_AAR_1742_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088409.html","width":103,"caption":"The Hives","height":100});
															thumbnails[8088530] = clik.newPhoto({"id":8088530,"src":"Dame_Helen_Mirren_AL2_2761_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088530.html","width":101,"caption":"Dame Helen Mirren AL2 2761","height":100});
															thumbnails[8088395] = clik.newPhoto({"id":8088395,"src":"LNP_Wireless_Festival_Day_2_AAR_1040_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088395.html","width":98,"caption":"L.M.F.A.O","height":100});
															thumbnails[8088410] = clik.newPhoto({"id":8088410,"src":"LNP_Wireless_day3_AAR_2021_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088410.html","width":99,"caption":"Taylor Mumsen ","height":100});
															thumbnails[8088531] = clik.newPhoto({"id":8088531,"src":"drew_barrymore__ALR_4234_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088531.html","width":96,"caption":"drew barrymore  ALR 4234","height":100});
															thumbnails[8088411] = clik.newPhoto({"id":8088411,"src":"LNP_Wireless_day3_AAR_2156_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088411.html","width":98,"caption":"Grace Jones ","height":100});
															thumbnails[8088412] = clik.newPhoto({"id":8088412,"src":"LNP_Wireless_day3_ARO_1025_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088412.html","width":97,"caption":"Wireless day three","height":100});
															thumbnails[8088533] = clik.newPhoto({"id":8088533,"src":"John_Hurt__ALR_4935_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088533.html","width":98,"caption":"John Hurt  ALR 4935","height":100});
															thumbnails[8088534] = clik.newPhoto({"id":8088534,"src":"Rachel_WeiszDSC_0774_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088534.html","width":98,"caption":"Rachel WeiszDSC 0774","height":100});
															thumbnails[8088414] = clik.newPhoto({"id":8088414,"src":"LNP_Wireless_Festival_Day_2_AAR_0372_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088414.html","width":99,"caption":"Ke$ha","height":100});
															thumbnails[8088535] = clik.newPhoto({"id":8088535,"src":"Ralph_Fiennes_ALR_7448_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088535.html","width":100,"caption":"Ralph Fiennes ALR 7448","height":100});
															thumbnails[8088416] = clik.newPhoto({"id":8088416,"src":"LNP_Wireless_Festival_Day_2_ARO_0857_thumb.jpg","galleries_id":111670,"server_id":1,"link":"photo_8088416.html","width":101,"caption":"The Chemical Brothers ","height":100});
															thumbnails[8088537] = clik.newPhoto({"id":8088537,"src":"sheridan__FB8C2032-1E4F-37DC-71C4C158F49B49EB_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088537.html","width":98,"caption":"sheridan ","height":100});
															thumbnails[8088538] = clik.newPhoto({"id":8088538,"src":"Sylvester_Stallone_ALR_3028_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088538.html","width":97,"caption":"Sylvester Stallone ALR 3028","height":100});
															thumbnails[8088529] = clik.newPhoto({"id":8088529,"src":"DaDannii_Minogue_ALR_7885_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088529.html","width":108,"caption":"DaDannii Minogue ALR 7885","height":100});
															thumbnails[8088532] = clik.newPhoto({"id":8088532,"src":"gillian_anderson_DSC_0705_thumb.jpg","galleries_id":319848,"server_id":1,"link":"photo_8088532.html","width":99,"caption":"gillian anderson DSC 0705","height":100});
															thumbnails[8133730] = clik.newPhoto({"id":8133730,"src":"Arthur_Premiere_ARO_0971_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133730.html","width":101,"caption":"Arthur Premiere ARO 0971","height":100});
															thumbnails[8847279] = clik.newPhoto({"id":8847279,"src":"LNP_Thanksgiving_Parade_ARO_0097_24C4E6A3-1EC9-DFB6-099DF9DC8230E0A5_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847279.html","width":130,"caption":"LNP Thanksgiving Parade ARO 0097","height":86});
															thumbnails[8104321] = clik.newPhoto({"id":8104321,"src":"olivers_mount_7_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8104321.html","width":100,"caption":"olivers mount 7","height":100});
															thumbnails[8133732] = clik.newPhoto({"id":8133732,"src":"Bafta_TV_Awards_ARO_4142_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133732.html","width":104,"caption":"Bafta TV Awards ARO 4142","height":100});
															thumbnails[8483177] = clik.newPhoto({"id":8483177,"src":"AAR_0279_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483177.html","width":130,"caption":"AAR 0279","height":86});
															thumbnails[8847280] = clik.newPhoto({"id":8847280,"src":"LNP_Thanksgiving_Parade_ARO_0055_24C51012-1EC9-DFB6-09CD14C2783FAE08_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847280.html","width":130,"caption":"LNP Thanksgiving Parade ARO 0055","height":86});
															thumbnails[8133735] = clik.newPhoto({"id":8133735,"src":"Brian_ARO_3047_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133735.html","width":102,"caption":"Brian ARO 3047","height":100});
															thumbnails[8847281] = clik.newPhoto({"id":8847281,"src":"LNP_Thanksgiving_Parade_ARO_0163_24C55CEA-1EC9-DFB6-099A66B60D78C565_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847281.html","width":130,"caption":"LNP Thanksgiving Parade ARO 0163","height":86});
															thumbnails[8133738] = clik.newPhoto({"id":8133738,"src":"demo_ARO_7852_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133738.html","width":101,"caption":"demo ARO 7852","height":100});
															thumbnails[8483179] = clik.newPhoto({"id":8483179,"src":"AAR_0342_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483179.html","width":130,"caption":"AAR 0342","height":86});
															thumbnails[8847282] = clik.newPhoto({"id":8847282,"src":"LNP_Thanksgiving_Parade_ARO_0132_24C5D098-1EC9-DFB6-095F7A42EED91D89_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847282.html","width":130,"caption":"LNP Thanksgiving Parade ARO 0132","height":86});
															thumbnails[8133740] = clik.newPhoto({"id":8133740,"src":"Hurly_Burly_Show_6953_ARO_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133740.html","width":95,"caption":"Hurly Burly Show 6953 ARO","height":100});
															thumbnails[8483180] = clik.newPhoto({"id":8483180,"src":"AAR_0348_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483180.html","width":130,"caption":"AAR 0348","height":85});
															thumbnails[8847283] = clik.newPhoto({"id":8847283,"src":"LNP_Thanksgiving_Parade_ARO_0208_24C60561-1EC9-DFB6-09F7821E19EDF861_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847283.html","width":68,"caption":"LNP Thanksgiving Parade ARO 0208","height":100});
															thumbnails[8133744] = clik.newPhoto({"id":8133744,"src":"LNP_BUPA_London_ARO_5711_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133744.html","width":98,"caption":"LNP BUPA London ARO 5711","height":100});
															thumbnails[8483181] = clik.newPhoto({"id":8483181,"src":"AAR_0406_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483181.html","width":130,"caption":"AAR 0406","height":84});
															thumbnails[8847284] = clik.newPhoto({"id":8847284,"src":"LNP_Thanksgiving_Parade_ARO_0301_24C65C2D-1EC9-DFB6-0924E0A49947408A_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847284.html","width":66,"caption":"LNP Thanksgiving Parade ARO 0301","height":100});
															thumbnails[8483176] = clik.newPhoto({"id":8483176,"src":"AAR_0201_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483176.html","width":67,"caption":"AAR 0201","height":100});
															thumbnails[8133746] = clik.newPhoto({"id":8133746,"src":"LNP_Harry_Potter_ARO_1546_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133746.html","width":101,"caption":"LNP Harry Potter ARO 1546","height":100});
															thumbnails[8483182] = clik.newPhoto({"id":8483182,"src":"AAR_0541_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483182.html","width":64,"caption":"AAR 0541","height":100});
															thumbnails[8847285] = clik.newPhoto({"id":8847285,"src":"LNP_Thanksgiving_Parade_ARO_9045_24C69464-1EC9-DFB6-0954903B33B432F0_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847285.html","width":67,"caption":"LNP Thanksgiving Parade ARO 9045","height":100});
															thumbnails[8483178] = clik.newPhoto({"id":8483178,"src":"AAR_0321_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483178.html","width":67,"caption":"AAR 0321","height":100});
															thumbnails[8133749] = clik.newPhoto({"id":8133749,"src":"LNP_Larry_Crowne_ARO_5550_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133749.html","width":102,"caption":"LNP Larry Crowne ARO 5550","height":100});
															thumbnails[8483183] = clik.newPhoto({"id":8483183,"src":"AAR_0712_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483183.html","width":67,"caption":"AAR 0712","height":100});
															thumbnails[8847286] = clik.newPhoto({"id":8847286,"src":"LNP_Thanksgiving_Parade_ARO_0474_24C6CEF2-1EC9-DFB6-09C017200DE660E6_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847286.html","width":67,"caption":"LNP Thanksgiving Parade ARO 0474","height":100});
															thumbnails[8133751] = clik.newPhoto({"id":8133751,"src":"LNP_Queens_birthday_ARO_6672_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133751.html","width":100,"caption":"LNP Queens birthday ARO 6672","height":100});
															thumbnails[8847287] = clik.newPhoto({"id":8847287,"src":"LNP_Thanksgiving_Parade_ARO_0174_24C71677-1EC9-DFB6-09D1320DA8173810_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847287.html","width":130,"caption":"LNP Thanksgiving Parade ARO 0174","height":86});
															thumbnails[8133754] = clik.newPhoto({"id":8133754,"src":"Million_Women_Rise_ARO_5232_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133754.html","width":102,"caption":"Million Women Rise ARO 5232","height":100});
															thumbnails[8483184] = clik.newPhoto({"id":8483184,"src":"AAR_0425_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483184.html","width":130,"caption":"AAR 0425","height":61});
															thumbnails[8847288] = clik.newPhoto({"id":8847288,"src":"LNP_Thanksgiving_Parade_ARO_0200_24C7454C-1EC9-DFB6-0967BA6AFBE21F92_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847288.html","width":130,"caption":"LNP Thanksgiving Parade ARO 0200","height":86});
															thumbnails[8133756] = clik.newPhoto({"id":8133756,"src":"Pirates_4_ARO_2220_thumb.jpg","galleries_id":435025,"server_id":1,"link":"photo_8133756.html","width":96,"caption":"Pirates 4 ARO 2220","height":100});
															thumbnails[8847289] = clik.newPhoto({"id":8847289,"src":"LNP_Thanksgiving_Parade_ARO_9009_24C7955F-1EC9-DFB6-09696D14D9884F32_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847289.html","width":130,"caption":"LNP Thanksgiving Parade ARO 9009","height":86});
															thumbnails[8847290] = clik.newPhoto({"id":8847290,"src":"LNP_Thanksgiving_Parade_ARO_9789_24C7CD50-1EC9-DFB6-090AAC59217B1679_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847290.html","width":130,"caption":"LNP Thanksgiving Parade ARO 9789","height":86});
															thumbnails[8847291] = clik.newPhoto({"id":8847291,"src":"LNP_Thanksgiving_Parade_ARO_9589_24C805B3-1EC9-DFB6-0943468CD6B8B6CB_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847291.html","width":67,"caption":"LNP Thanksgiving Parade ARO 9589","height":100});
															thumbnails[8847292] = clik.newPhoto({"id":8847292,"src":"LNP_Thanksgiving_Parade_ARO_9661_24C842EA-1EC9-DFB6-090AC2840C46581C_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847292.html","width":67,"caption":"LNP Thanksgiving Parade ARO 9661","height":100});
															thumbnails[8847293] = clik.newPhoto({"id":8847293,"src":"LNP_Thanksgiving_Parade_ARO_9986_24C881CF-1EC9-DFB6-09A28CFBE9BFF7D3_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847293.html","width":67,"caption":"LNP Thanksgiving Parade ARO 9986","height":100});
															thumbnails[8847294] = clik.newPhoto({"id":8847294,"src":"LNP_Thanksgiving_Parade_ARO_0401_24C8BB05-1EC9-DFB6-091F1E1DBFF59F7C_thumb.jpg","galleries_id":465300,"server_id":1,"link":"photo_8847294.html","width":68,"caption":"LNP Thanksgiving Parade ARO 0401","height":100});
															thumbnails[8483185] = clik.newPhoto({"id":8483185,"src":"AAR_0462_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483185.html","width":130,"caption":"AAR 0462","height":86});
															thumbnails[8483186] = clik.newPhoto({"id":8483186,"src":"AAR_0738_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483186.html","width":68,"caption":"AAR 0738","height":100});
															thumbnails[8483187] = clik.newPhoto({"id":8483187,"src":"AAR_0789_thumb.jpg","galleries_id":448619,"server_id":1,"link":"photo_8483187.html","width":67,"caption":"AAR 0789","height":100});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[448619] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"London Fashion Week","link":"section522553_448619.html","maxRecords":0.0,"photoIDs":[8483177.0,8483179.0,8483180.0,8483181.0,8483176.0,8483182.0,8483178.0,8483183.0,8483184.0,8483185.0,8483186.0,8483187.0],"skipIndex":0,"section_code":"section522553","featured_images":"8483187,8483186,8483185,8483184,8483183,8483182,8483181,8483180,8483179,8483178","id":448619,"singleSection":false});				  						galleries[435025] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"News Pictures","link":"section522553_435025.html","maxRecords":0.0,"photoIDs":[8133730.0,8104321.0,8133732.0,8133735.0,8133738.0,8133740.0,8133744.0,8133746.0,8133749.0,8133751.0,8133754.0,8133756.0],"skipIndex":0,"section_code":"section522553","featured_images":"8133756,8133754,8133751,8133749,8133746,8133744,8133740,8133738,8133735,8133732","id":435025,"singleSection":false});				  						galleries[319848] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Red Carpet Arrivals ","link":"section227108_319848.html","maxRecords":0.0,"photoIDs":[8088536.0,8088527.0,8088528.0,8088530.0,8088531.0,8088533.0,8088534.0,8088535.0,8088537.0,8088538.0,8088529.0,8088532.0],"skipIndex":0,"section_code":"section227108","featured_images":"8088538,8088537,8088536,8088535,8088534,8088533,8088532,8088531,8088530,8088529","id":319848,"singleSection":false});				  						galleries[465300] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New York Thanksgiving Parade 2011","link":"section522553_465300.html","maxRecords":0.0,"photoIDs":[8847279.0,8847280.0,8847281.0,8847282.0,8847283.0,8847284.0,8847285.0,8847286.0,8847287.0,8847288.0,8847289.0,8847290.0,8847291.0,8847292.0,8847293.0,8847294.0],"skipIndex":0,"section_code":"section522553","featured_images":"8847294,8847293,8847292,8847291,8847290,8847289,8847288,8847287,8847286,8847285","id":465300,"singleSection":false});				  						galleries[80964] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Event Photography ","link":"section481551.html","maxRecords":0.0,"photoIDs":[8104312.0,8104293.0,8104301.0,8104302.0,8104306.0,8104298.0,8683148.0,8104291.0,8104294.0,8104300.0,8104295.0,8104296.0,8683147.0,8104297.0,8640547.0,8104292.0,8640548.0,8640549.0,8104299.0,8640550.0],"skipIndex":0,"section_code":"section481551","featured_images":"8683148,8683147,8640550,8640549,8640548,8640547,8104312,8104306,8104302,8104301","id":80964,"singleSection":true});				  						galleries[81390] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Corporate and Advertising","link":"section481550.html","maxRecords":0.0,"photoIDs":[8104184.0,8104188.0,8088553.0,8104013.0,8640518.0,8088554.0,8104014.0,8640519.0,8088556.0,8104015.0,8088558.0,8104016.0,8640521.0,8088560.0,8088562.0,8640546.0,8088564.0,8088565.0,8088566.0,8104320.0],"skipIndex":0,"section_code":"section481550","featured_images":"8640546,8640521,8640519,8640518,8104320,8104188,8104184,8104016,8104015,8104014","id":81390,"singleSection":true});				  						galleries[111670] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"music photography","link":"section227108_111670.html","maxRecords":0.0,"photoIDs":[8088391.0,8088406.0,8088392.0,8088393.0,8088408.0,8088409.0,8088395.0,8088410.0,8088411.0,8088412.0,8088414.0,8088416.0],"skipIndex":0,"section_code":"section227108","featured_images":"8088416,8088414,8088412,8088411,8088410,8088409,8088408,8088406,8088395,8088393","id":111670,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8104301,8104015,8088560,8683147,8104296';
imageSets[3] = '8104293';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/yellowfirestorm/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/yellowfirestorm/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 += 'section481551.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 && 'section481551' != '') {
					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 = ': ' + 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> &pound;' + (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 !== '' || 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="alanroxborough@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					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="alanroxborough@hotmail.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;
	}
}

			

