window.thumbnails = {};
															thumbnails[6237536] = clik.newPhoto({"id":6237536,"src":"EarlPembroke_Wedding61_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":" ","height":186});
															thumbnails[6237655] = clik.newPhoto({"id":6237655,"src":"Bikes-Bulford44_web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_6237655.html","width":130,"caption":"News","height":87});
															thumbnails[6237658] = clik.newPhoto({"id":6237658,"src":"John_Glen2_web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_6237658.html","width":130,"caption":"News","height":195});
															thumbnails[8605896] = clik.newPhoto({"id":8605896,"src":"RREvoque37web2_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_8605896.html","width":130,"caption":"Press\/PR","height":104});
															thumbnails[5039577] = clik.newPhoto({"id":5039577,"src":"DPventura1a_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_5039577.html","width":130,"caption":"News","height":87});
															thumbnails[5921061] = clik.newPhoto({"id":5921061,"src":"LLeat2web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_5921061.html","width":130,"caption":"News","height":91});
															thumbnails[8701002] = clik.newPhoto({"id":8701002,"src":"MJAbath66web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_8701002.html","width":130,"caption":"Brochure","height":87});
															thumbnails[4211300] = clik.newPhoto({"id":4211300,"src":"CJandover27a_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_4211300.html","width":130,"caption":"PR","height":91});
															thumbnails[1845741] = clik.newPhoto({"id":1845741,"src":"tidworth92web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_1845741.html","width":130,"caption":"News","height":195});
															thumbnails[609904] = clik.newPhoto({"id":609904,"src":"webald1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_609904.html","width":130,"caption":"News","height":87});
															thumbnails[5042368] = clik.newPhoto({"id":5042368,"src":"09GradWinUni44a1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_5042368.html","width":130,"caption":"News","height":186});
															thumbnails[4448771] = clik.newPhoto({"id":4448771,"src":"RichardBaish1web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_4448771.html","width":130,"caption":"PR","height":91});
															thumbnails[609913] = clik.newPhoto({"id":609913,"src":"webbishop2_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_609913.html","width":130,"caption":"News","height":195});
															thumbnails[609907] = clik.newPhoto({"id":609907,"src":"webben2_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_609907.html","width":130,"caption":" PR","height":87});
															thumbnails[609890] = clik.newPhoto({"id":609890,"src":"webhordle2_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_609890.html","width":130,"caption":"News","height":87});
															thumbnails[8701027] = clik.newPhoto({"id":8701027,"src":"sculpture_Cathweb_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_8701027.html","width":130,"caption":"Sean Henry Sculpture","height":87});
															thumbnails[3361292] = clik.newPhoto({"id":3361292,"src":"Imber12web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_3361292.html","width":130,"caption":"News","height":87});
															thumbnails[609978] = clik.newPhoto({"id":609978,"src":"webpark1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_609978.html","width":130,"caption":"PR","height":87});
															thumbnails[8711963] = clik.newPhoto({"id":8711963,"src":"Remembrance_petals_07Tidworthweb1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_8711963.html","width":130,"caption":"","height":198});
															thumbnails[678514] = clik.newPhoto({"id":678514,"src":"webcanb1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_678514.html","width":130,"caption":"News","height":87});
															thumbnails[8711967] = clik.newPhoto({"id":8711967,"src":"SalsCathTopping1web1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_8711967.html","width":130,"caption":"","height":86});
															thumbnails[609935] = clik.newPhoto({"id":609935,"src":"webttour1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_609935.html","width":130,"caption":"PR","height":195});
															thumbnails[4211208] = clik.newPhoto({"id":4211208,"src":"HSC9web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_4211208.html","width":130,"caption":"PR","height":91});
															thumbnails[1845745] = clik.newPhoto({"id":1845745,"src":"strongweb_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_1845745.html","width":130,"caption":"PR","height":87});
															thumbnails[4448898] = clik.newPhoto({"id":4448898,"src":"Imber100web_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_4448898.html","width":130,"caption":"News","height":87});
															thumbnails[6237553] = clik.newPhoto({"id":6237553,"src":"Andover132_web1_thumb.jpg","galleries_id":45243,"server_id":18,"link":"photo_6237553.html","width":130,"caption":"Commercial","height":87});
															thumbnails[5042045] = clik.newPhoto({"id":5042045,"src":"Polo4a_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_5042045.html","width":130,"caption":"Summer weather strikes the Rundle Cup Polo Tournament","height":87});
															thumbnails[5039580] = clik.newPhoto({"id":5039580,"src":"Sam1a_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_5039580.html","width":130,"caption":"Stained Glass craftsman at Salisbury Cathedral.","height":87});
															thumbnails[603692] = clik.newPhoto({"id":603692,"src":"webshoot1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_603692.html","width":130,"caption":"Part of a feature on country pursuits.","height":87});
															thumbnails[4211365] = clik.newPhoto({"id":4211365,"src":"sortimoweb1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_4211365.html","width":130,"caption":"Part of a series of images for a business magazine.","height":91});
															thumbnails[603683] = clik.newPhoto({"id":603683,"src":"webphil1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_603683.html","width":130,"caption":"HRH The Duke of Edinburgh inspects  an army cadet parade in Salisbury Cathedral Close.","height":87});
															thumbnails[4448804] = clik.newPhoto({"id":4448804,"src":"_woolacoombe_web_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_4448804.html","width":130,"caption":"Freedom of holidays feature","height":195});
															thumbnails[603671] = clik.newPhoto({"id":603671,"src":"webgunss1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_603671.html","width":130,"caption":"Part of a feature on a Pheasant shoot in Wiltshire.","height":87});
															thumbnails[5039603] = clik.newPhoto({"id":5039603,"src":"Sculpt120_thumb.JPG","galleries_id":45244,"server_id":18,"link":"photo_5039603.html","width":130,"caption":"Sculpture exhibition at Salisbury Cathedral.","height":87});
															thumbnails[610056] = clik.newPhoto({"id":610056,"src":"webpolohrhc1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_610056.html","width":130,"caption":"The Prince of Wales competes in the Rundle Cup Polo match 2005.","height":207});
															thumbnails[1273630] = clik.newPhoto({"id":1273630,"src":"webQueen_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_1273630.html","width":130,"caption":"HRH The Queen visits Romsey in Hampshire.","height":83});
															thumbnails[4211119] = clik.newPhoto({"id":4211119,"src":"WJazz107web_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_4211119.html","width":130,"caption":"Stacey Kent at the Wiltshire Jazz Festival 2009","height":87});
															thumbnails[603656] = clik.newPhoto({"id":603656,"src":"webbow1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_603656.html","width":130,"caption":"Bowood House in Wiltshire","height":195});
															thumbnails[603660] = clik.newPhoto({"id":603660,"src":"webfw1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_603660.html","width":130,"caption":"Farmers Weekly feature near Weymouth.","height":87});
															thumbnails[603652] = clik.newPhoto({"id":603652,"src":"webchar1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_603652.html","width":130,"caption":"A summer ball at a country house.","height":195});
															thumbnails[609956] = clik.newPhoto({"id":609956,"src":"webfire1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_609956.html","width":130,"caption":"Part of a feature on rural businesses for local Government.","height":199});
															thumbnails[610071] = clik.newPhoto({"id":610071,"src":"larkhillwinner_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_610071.html","width":130,"caption":"A winner crosses the line at the Larkhill Point to Point races in 2005.","height":87});
															thumbnails[603663] = clik.newPhoto({"id":603663,"src":"webgemma1_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_603663.html","width":130,"caption":"Portrait by Royal Appointment: Gemma Phipps in Fulham for Wiltshire Life.","height":195});
															thumbnails[6237468] = clik.newPhoto({"id":6237468,"src":"2010Jazz19_web_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_6237468.html","width":130,"caption":"Gabby Young in action at Wiltshire Jazz Festival 2010.","height":91});
															thumbnails[6237564] = clik.newPhoto({"id":6237564,"src":"2010Jazz54_web_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_6237564.html","width":130,"caption":"Ian Shaw at the Wiltshire Jazz Festival 2010","height":91});
															thumbnails[610063] = clik.newPhoto({"id":610063,"src":"webpolowills2_thumb.jpg","galleries_id":45244,"server_id":18,"link":"photo_610063.html","width":130,"caption":"Prince William competes in the Rundle Cup polo match 2006.","height":206});
															thumbnails[6243662] = clik.newPhoto({"id":6243662,"src":"SandroydTues110_web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6243662.html","width":130,"caption":"","height":91});
															thumbnails[4211199] = clik.newPhoto({"id":4211199,"src":"LHart35web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_4211199.html","width":130,"caption":"","height":91});
															thumbnails[6243647] = clik.newPhoto({"id":6243647,"src":"SandroydMon105_web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6243647.html","width":130,"caption":"","height":87});
															thumbnails[6243646] = clik.newPhoto({"id":6243646,"src":"SandroydMon51_web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6243646.html","width":130,"caption":"","height":91});
															thumbnails[6243645] = clik.newPhoto({"id":6243645,"src":"SandroydMon22_web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6243645.html","width":130,"caption":"","height":91});
															thumbnails[6244673] = clik.newPhoto({"id":6244673,"src":"SandroydTues5_web_jump_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6244673.html","width":130,"caption":"","height":195});
															thumbnails[6244710] = clik.newPhoto({"id":6244710,"src":"SandroydTues3_web_pup_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6244710.html","width":130,"caption":"","height":87});
															thumbnails[6244714] = clik.newPhoto({"id":6244714,"src":"SandroydTues85_web_buggy_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6244714.html","width":130,"caption":"","height":91});
															thumbnails[6244682] = clik.newPhoto({"id":6244682,"src":"SandroydTues41_web_class1_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6244682.html","width":130,"caption":"","height":186});
															thumbnails[7023015] = clik.newPhoto({"id":7023015,"src":"KingsB126web1_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7023015.html","width":130,"caption":"","height":87});
															thumbnails[7023085] = clik.newPhoto({"id":7023085,"src":"Day1Rookwood_112web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7023085.html","width":130,"caption":"","height":91});
															thumbnails[7023082] = clik.newPhoto({"id":7023082,"src":"Day1Rookwood_76web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7023082.html","width":130,"caption":"","height":87});
															thumbnails[7022935] = clik.newPhoto({"id":7022935,"src":"Oct8KB5web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7022935.html","width":130,"caption":"","height":87});
															thumbnails[7022929] = clik.newPhoto({"id":7022929,"src":"KingsB41web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7022929.html","width":130,"caption":"","height":91});
															thumbnails[7023089] = clik.newPhoto({"id":7023089,"src":"Day2Rookwood102web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7023089.html","width":130,"caption":"","height":91});
															thumbnails[7022931] = clik.newPhoto({"id":7022931,"src":"KingsB56web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7022931.html","width":130,"caption":"","height":91});
															thumbnails[6244551] = clik.newPhoto({"id":6244551,"src":"SandroydMon10_web1_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6244551.html","width":130,"caption":"","height":186});
															thumbnails[6244556] = clik.newPhoto({"id":6244556,"src":"SandroydMon176_web1_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6244556.html","width":130,"caption":"","height":186});
															thumbnails[7023087] = clik.newPhoto({"id":7023087,"src":"Day2Rookwood54web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7023087.html","width":130,"caption":"","height":87});
															thumbnails[6243656] = clik.newPhoto({"id":6243656,"src":"SandroydTues56_web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6243656.html","width":130,"caption":"","height":87});
															thumbnails[7022973] = clik.newPhoto({"id":7022973,"src":"Oct5KB7weblow_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7022973.html","width":130,"caption":"","height":186});
															thumbnails[6243660] = clik.newPhoto({"id":6243660,"src":"SandroydTues100_web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_6243660.html","width":130,"caption":"","height":91});
															thumbnails[7023091] = clik.newPhoto({"id":7023091,"src":"Day2Rookwood175web_thumb.jpg","galleries_id":42439,"server_id":18,"link":"photo_7023091.html","width":130,"caption":"","height":87});
															thumbnails[6237554] = clik.newPhoto({"id":6237554,"src":"EarlPembroke_Wedding10_web1_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_6237554.html","width":130,"caption":"","height":91});
															thumbnails[6237570] = clik.newPhoto({"id":6237570,"src":"TobyHelen131_web1_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_6237570.html","width":130,"caption":"","height":91});
															thumbnails[6237656] = clik.newPhoto({"id":6237656,"src":"ELDwedd83_confetti_web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_6237656.html","width":130,"caption":"","height":91});
															thumbnails[8706337] = clik.newPhoto({"id":8706337,"src":"AKreduced_web21_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_8706337.html","width":130,"caption":"","height":195});
															thumbnails[3028724] = clik.newPhoto({"id":3028724,"src":"K&L70web1_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_3028724.html","width":130,"caption":"","height":87});
															thumbnails[4211217] = clik.newPhoto({"id":4211217,"src":"DB142web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_4211217.html","width":130,"caption":"","height":87});
															thumbnails[4211457] = clik.newPhoto({"id":4211457,"src":"AS132web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_4211457.html","width":130,"caption":"","height":93});
															thumbnails[5042612] = clik.newPhoto({"id":5042612,"src":"DB60web1_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_5042612.html","width":130,"caption":"","height":186});
															thumbnails[5042532] = clik.newPhoto({"id":5042532,"src":"DB137web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_5042532.html","width":130,"caption":"","height":195});
															thumbnails[8700998] = clik.newPhoto({"id":8700998,"src":"10x8AK169BWweb_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_8700998.html","width":130,"caption":"","height":87});
															thumbnails[4448821] = clik.newPhoto({"id":4448821,"src":"AS99web1_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_4448821.html","width":130,"caption":"","height":91});
															thumbnails[4211219] = clik.newPhoto({"id":4211219,"src":"DB44web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_4211219.html","width":130,"caption":"","height":91});
															thumbnails[2568917] = clik.newPhoto({"id":2568917,"src":"MP172web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_2568917.html","width":130,"caption":"","height":87});
															thumbnails[5042222] = clik.newPhoto({"id":5042222,"src":"AM196a1_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_5042222.html","width":130,"caption":"","height":195});
															thumbnails[6237561] = clik.newPhoto({"id":6237561,"src":"TobyHelen73_web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_6237561.html","width":130,"caption":"","height":87});
															thumbnails[6237562] = clik.newPhoto({"id":6237562,"src":"TobyHelen80_web_thumb.jpg","galleries_id":459172,"server_id":18,"link":"photo_6237562.html","width":130,"caption":"","height":91});
															thumbnails[8605814] = clik.newPhoto({"id":8605814,"src":"YellowDress43web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_8605814.html","width":130,"caption":"The Girl in the Yellow Dress - Salisbury Playhouse","height":87});
															thumbnails[4211249] = clik.newPhoto({"id":4211249,"src":"a15web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_4211249.html","width":130,"caption":"Faith Healer production photography","height":87});
															thumbnails[7023017] = clik.newPhoto({"id":7023017,"src":"DeathTheMaiden45web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_7023017.html","width":130,"caption":"Death and the Maiden 2010 ","height":105});
															thumbnails[1845666] = clik.newPhoto({"id":1845666,"src":"Robin86web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_1845666.html","width":130,"caption":"Robin Hood and Babes in the Wood, Salisbury Playhouse Panto 2007.","height":87});
															thumbnails[1273626] = clik.newPhoto({"id":1273626,"src":"webTempest_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_1273626.html","width":130,"caption":"Tempest production at Salisbury Playhouse.","height":87});
															thumbnails[1845794] = clik.newPhoto({"id":1845794,"src":"Robin124web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_1845794.html","width":130,"caption":"Robin Hood and Babes in the Wood, Salisbury Playhouse Panto 2007.","height":87});
															thumbnails[4211351] = clik.newPhoto({"id":4211351,"src":"ozweb1_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_4211351.html","width":130,"caption":"Production photography for The Wizard of Oz","height":87});
															thumbnails[7023024] = clik.newPhoto({"id":7023024,"src":"Pavilion26web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_7023024.html","width":130,"caption":"Pavilion Dance Theatre in Bournemouth","height":186});
															thumbnails[7023026] = clik.newPhoto({"id":7023026,"src":"Pavilion71web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_7023026.html","width":130,"caption":"Pavilion Dance Theatre in Bournemouth","height":87});
															thumbnails[7022976] = clik.newPhoto({"id":7022976,"src":"DeathTheMaiden25web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_7022976.html","width":130,"caption":"Death and the Maiden","height":91});
															thumbnails[7023101] = clik.newPhoto({"id":7023101,"src":"The_Picture32web_thumb.jpg","galleries_id":459177,"server_id":18,"link":"photo_7023101.html","width":130,"caption":"Rehearsal of The Picture at Salisbury Playhouse","height":100});
															thumbnails[8862873] = clik.newPhoto({"id":8862873,"src":"Waitrose_Chronicle_Nov11_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8862873.html","width":130,"caption":"","height":184});
															thumbnails[8862907] = clik.newPhoto({"id":8862907,"src":"Rook_web_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8862907.html","width":130,"caption":"","height":92});
															thumbnails[8862929] = clik.newPhoto({"id":8862929,"src":"WLweb_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8862929.html","width":130,"caption":"","height":184});
															thumbnails[8862959] = clik.newPhoto({"id":8862959,"src":"RR_review_web_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8862959.html","width":130,"caption":"","height":184});
															thumbnails[8863150] = clik.newPhoto({"id":8863150,"src":"Rook_web2_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8863150.html","width":130,"caption":"","height":92});
															thumbnails[8863402] = clik.newPhoto({"id":8863402,"src":"WL07_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8863402.html","width":130,"caption":"","height":184});
															thumbnails[8863791] = clik.newPhoto({"id":8863791,"src":"img153_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8863791.html","width":130,"caption":"","height":184});
															thumbnails[8863794] = clik.newPhoto({"id":8863794,"src":"Sprinter_313CDI_Vito_110CDI_MJ_Abbott_7_jpg_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8863794.html","width":130,"caption":"","height":87});
															thumbnails[8863798] = clik.newPhoto({"id":8863798,"src":"WL_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8863798.html","width":130,"caption":"","height":184});
															thumbnails[8863805] = clik.newPhoto({"id":8863805,"src":"Kings_B_web_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8863805.html","width":130,"caption":"","height":92});
															thumbnails[8863958] = clik.newPhoto({"id":8863958,"src":"Waitrose_2_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8863958.html","width":130,"caption":"","height":184});
															thumbnails[8864105] = clik.newPhoto({"id":8864105,"src":"Old_Brut11_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8864105.html","width":130,"caption":"","height":184});
															thumbnails[8904664] = clik.newPhoto({"id":8904664,"src":"Grittle2_web_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8904664.html","width":130,"caption":"","height":92});
															thumbnails[8904683] = clik.newPhoto({"id":8904683,"src":"grittle_web_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8904683.html","width":130,"caption":"","height":92});
															thumbnails[8904686] = clik.newPhoto({"id":8904686,"src":"Jazz_fest_web_thumb.jpg","galleries_id":466055,"server_id":18,"link":"photo_8904686.html","width":130,"caption":"","height":184});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[466055] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"In Print","link":"section564261.html","maxRecords":0.0,"photoIDs":[8862873.0,8862907.0,8862929.0,8862959.0,8863150.0,8863402.0,8863791.0,8863794.0,8863798.0,8863805.0,8863958.0,8864105.0,8904664.0,8904683.0,8904686.0],"skipIndex":0,"section_code":"section564261","featured_images":"8904686,8904683,8904664,8864105,8863958,8863805,8863798,8863794,8863791,8863402","id":466055,"singleSection":true});				  						galleries[45244] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Magazine","link":"section555834.html","maxRecords":0.0,"photoIDs":[5042045.0,5039580.0,603692.0,4211365.0,603683.0,4448804.0,603671.0,5039603.0,610056.0,1273630.0,4211119.0,603656.0,603660.0,603652.0,609956.0,610071.0,603663.0,6237468.0,6237564.0,610063.0],"skipIndex":0,"section_code":"section555834","featured_images":"6237564,6237468,5042045,5039603,5039580,4448804,4211365,4211119,1273630,610071","id":45244,"singleSection":true});				  						galleries[45243] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Press\/PR","link":"section414767.html","maxRecords":0.0,"photoIDs":[6237655.0,6237658.0,8605896.0,5039577.0,5921061.0,8701002.0,4211300.0,1845741.0,609904.0,5042368.0,4448771.0,609913.0,609907.0,609890.0,8701027.0,3361292.0,609978.0,8711963.0,678514.0,8711967.0,609935.0,4211208.0,1845745.0,4448898.0,6237553.0],"skipIndex":0,"section_code":"section414767","featured_images":"8711967,8711963,8701027,8701002,8605896,6237658,6237655,6237553,5921061,5042368","id":45243,"singleSection":true});				  						galleries[459177] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Theatre","link":"section555830.html","maxRecords":0.0,"photoIDs":[8605814.0,4211249.0,7023017.0,1845666.0,1273626.0,1845794.0,4211351.0,7023024.0,7023026.0,7022976.0,7023101.0],"skipIndex":0,"section_code":"section555830","featured_images":"8605814,7023101,7023026,7023024,7023017,7022976,4211351,4211249,1845794,1845666","id":459177,"singleSection":true});				  						galleries[459172] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section555827.html","maxRecords":0.0,"photoIDs":[6237554.0,6237570.0,6237656.0,8706337.0,3028724.0,4211217.0,4211457.0,5042612.0,5042532.0,8700998.0,4448821.0,4211219.0,2568917.0,5042222.0,6237561.0,6237562.0],"skipIndex":0,"section_code":"section555827","featured_images":"8706337,8700998,6237656,6237570,6237562,6237561,6237554,5042612,5042532,5042222","id":459172,"singleSection":true});				  						galleries[42439] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"School Prospectus","link":"section414734.html","maxRecords":0.0,"photoIDs":[6243662.0,4211199.0,6243647.0,6243646.0,6243645.0,6244673.0,6244710.0,6244714.0,6244682.0,7023015.0,7023085.0,7023082.0,7022935.0,7022929.0,7023089.0,7022931.0,6244551.0,6244556.0,7023087.0,6243656.0,7022973.0,6243660.0,7023091.0],"skipIndex":0,"section_code":"section414734","featured_images":"7023091,7023089,7023087,7023085,7023082,7023015,7022973,7022935,7022931,7022929","id":42439,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8605896,8605814,5039577,5042045,4211249,5039580,603692,4211365,603683,4448804,7023017,5921061,603671,6243662,5039603,4211300,4211199,1845741,609904,5042368,4448771,1845666,3028724,610056,609913,609907,1273630,609890,8701027,6243646,6243645,3361292,609978,8711963,6244673,8711967,678514,4211119,6244710,1273626,603656,603660,609935,4211217,1845794,6244714,4211208,1845745,4211351,603652,609956,4448898,6244682,4211457,5042612,7023015,7023085,7023082,610071,7022935,7022929,7023089,7022931,8700998,6244551,4448821,4211219,2568917,6237561,6237468,6237564,6237553,7023024,7023026,7022976,7023101,6244556,6237562,7023087,6243656,7022973,6243660,7023091,610063';
imageSets[3] = '5039577,4211249,5039580,4211365,4448804,7023017,6243662,5039603,4211300,4211199,1845741,4448771,6243647,1845666,3028724,1273630,8701027,6243646,6243645,3361292,8711963,6244673,8711967,678514,4211119,6244710,1273626,4211217,1845794,6244714,4211208,1845745,4211351,4448898,6244682,4211457,7023015,7023085,7023082,7022935,7022929,7023089,7022931,6244551,4448821,4211219,2568917,6237561,6237468,6237564,6237553,7023024,7023026,7022976,7023101,6244556,6237562,7023087,6243656,7022973,6243660,7023091';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dompics/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dompics/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dompics/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dompics/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dompics/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/dompics/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dompics/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dompics/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 += 'section414767.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 && 'section414767' != '') {
					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 = 'Dominic Parkes 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> AU$' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

