window.thumbnails = {};
															thumbnails[5460638] = clik.newPhoto({"id":5460638,"src":"House-by-the-Cathedral_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_5460638.html","width":130,"caption":"Cottage by the Cathedral","height":98});
															thumbnails[6626781] = clik.newPhoto({"id":6626781,"src":"Southwold1_thumb.jpg","galleries_id":306129,"server_id":5,"link":"photo_6626781.html","width":130,"caption":"Beach Huts","height":98});
															thumbnails[6626801] = clik.newPhoto({"id":6626801,"src":"Boat_in_Ireland_thumb.jpg","galleries_id":363169,"server_id":5,"link":"photo_6626801.html","width":130,"caption":"Tranquility","height":98});
															thumbnails[6627987] = clik.newPhoto({"id":6627987,"src":"20070906596_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6627987.html","width":130,"caption":"Jaunting Car","height":98});
															thumbnails[6628450] = clik.newPhoto({"id":6628450,"src":"Colosseum_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6628450.html","width":130,"caption":"Colosseum Cross","height":98});
															thumbnails[6628474] = clik.newPhoto({"id":6628474,"src":"drums_thumb.jpg","galleries_id":363160,"server_id":5,"link":"photo_6628474.html","width":130,"caption":"Drums","height":98});
															thumbnails[6628482] = clik.newPhoto({"id":6628482,"src":"Bird--Sunset_thumb.jpg","galleries_id":363169,"server_id":5,"link":"photo_6628482.html","width":130,"caption":"Into the Sunset","height":98});
															thumbnails[6628515] = clik.newPhoto({"id":6628515,"src":"A-Touch-of-Red-Window_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6628515.html","width":130,"caption":"Window and Wheels","height":98});
															thumbnails[6628529] = clik.newPhoto({"id":6628529,"src":"Bentalls-Improved_thumb.jpg","galleries_id":363160,"server_id":5,"link":"photo_6628529.html","width":130,"caption":"Bentalls Improved","height":98});
															thumbnails[6629297] = clik.newPhoto({"id":6629297,"src":"Colourful-Wheel_thumb.jpg","galleries_id":363160,"server_id":5,"link":"photo_6629297.html","width":130,"caption":"Colourful Wheel","height":98});
															thumbnails[6629306] = clik.newPhoto({"id":6629306,"src":"Abandoned-Old-Boat_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6629306.html","width":130,"caption":"Abandoned","height":98});
															thumbnails[6629510] = clik.newPhoto({"id":6629510,"src":"Halls-Croft_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6629510.html","width":130,"caption":"Halls Croft","height":98});
															thumbnails[6630113] = clik.newPhoto({"id":6630113,"src":"Riverside-Residence_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6630113.html","width":130,"caption":"Riverside Residence","height":98});
															thumbnails[6630425] = clik.newPhoto({"id":6630425,"src":"Re-Enactment-Character_thumb.jpg","galleries_id":363158,"server_id":5,"link":"photo_6630425.html","width":130,"caption":"Re-enactment Character","height":98});
															thumbnails[6630788] = clik.newPhoto({"id":6630788,"src":"Fence_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6630788.html","width":130,"caption":"Beach Fence","height":98});
															thumbnails[6630859] = clik.newPhoto({"id":6630859,"src":"Re-Enactment-Character-2_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6630859.html","width":130,"caption":"Re-enactment Character 2","height":98});
															thumbnails[6630865] = clik.newPhoto({"id":6630865,"src":"War-Worn_thumb.jpg","galleries_id":363158,"server_id":5,"link":"photo_6630865.html","width":130,"caption":"War Torn","height":98});
															thumbnails[6630974] = clik.newPhoto({"id":6630974,"src":"Artist-at-Work_thumb.jpg","galleries_id":363158,"server_id":5,"link":"photo_6630974.html","width":130,"caption":"Artist at Work","height":173});
															thumbnails[6631584] = clik.newPhoto({"id":6631584,"src":"Scotney-Castle--Gardens-Kent_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6631584.html","width":130,"caption":"Scotney Castle","height":98});
															thumbnails[6631673] = clik.newPhoto({"id":6631673,"src":"Golden-Age-Extras_thumb.jpg","galleries_id":363161,"server_id":5,"link":"photo_6631673.html","width":130,"caption":"Extra's on the Film \"The Golden Age\"","height":98});
															thumbnails[6631853] = clik.newPhoto({"id":6631853,"src":"Cromer-Pier-Soft-Sepia_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6631853.html","width":130,"caption":"Pier","height":98});
															thumbnails[6631982] = clik.newPhoto({"id":6631982,"src":"Old-News_thumb.jpg","galleries_id":363160,"server_id":5,"link":"photo_6631982.html","width":130,"caption":"Old News, Old Tools","height":98});
															thumbnails[6632009] = clik.newPhoto({"id":6632009,"src":"House-in-Lower-Slaughter_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6632009.html","width":130,"caption":"Cotswolds Dwelling","height":98});
															thumbnails[6632026] = clik.newPhoto({"id":6632026,"src":"Beach-Scene_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6632026.html","width":130,"caption":"On the Beach","height":98});
															thumbnails[6632172] = clik.newPhoto({"id":6632172,"src":"Look_No_Fillings1_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_6632172.html","width":130,"caption":"'Look...No Fillings'","height":98});
															thumbnails[6632189] = clik.newPhoto({"id":6632189,"src":"Is-this-my-best-side_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_6632189.html","width":130,"caption":"'My Hair gives me the Hump'","height":98});
															thumbnails[6632359] = clik.newPhoto({"id":6632359,"src":"Adare-Cottage_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6632359.html","width":130,"caption":"Thatched Cottage","height":98});
															thumbnails[6632451] = clik.newPhoto({"id":6632451,"src":"Waters-Edge_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6632451.html","width":130,"caption":"Waters Edge","height":98});
															thumbnails[6632713] = clik.newPhoto({"id":6632713,"src":"Foden-Steam-Wagon_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6632713.html","width":130,"caption":"Foden Steam Wagon","height":98});
															thumbnails[6632716] = clik.newPhoto({"id":6632716,"src":"Rave-by-The-Cathedral_thumb.jpg","galleries_id":363158,"server_id":5,"link":"photo_6632716.html","width":130,"caption":"Cathedral Rave","height":98});
															thumbnails[6632721] = clik.newPhoto({"id":6632721,"src":"Brasso_thumb.jpg","galleries_id":363160,"server_id":5,"link":"photo_6632721.html","width":130,"caption":"Brasso","height":173});
															thumbnails[6632758] = clik.newPhoto({"id":6632758,"src":"Cromwell_thumb.jpg","galleries_id":363158,"server_id":5,"link":"photo_6632758.html","width":130,"caption":"Cromwell","height":98});
															thumbnails[6633391] = clik.newPhoto({"id":6633391,"src":"Veteran-Car-in-Cotswolds_thumb.jpg","galleries_id":363160,"server_id":5,"link":"photo_6633391.html","width":130,"caption":"Veteran Car","height":98});
															thumbnails[6633718] = clik.newPhoto({"id":6633718,"src":"Golden-Age-Couple_thumb.jpg","galleries_id":363161,"server_id":5,"link":"photo_6633718.html","width":130,"caption":"Filming \"The Golden Age\"","height":98});
															thumbnails[6634419] = clik.newPhoto({"id":6634419,"src":"Bearded_thumb.jpg","galleries_id":363161,"server_id":5,"link":"photo_6634419.html","width":130,"caption":"The Thinker","height":173});
															thumbnails[6637407] = clik.newPhoto({"id":6637407,"src":"Cromer-Sunset_thumb.jpg","galleries_id":363169,"server_id":5,"link":"photo_6637407.html","width":130,"caption":"Cromer Sunset","height":98});
															thumbnails[6733089] = clik.newPhoto({"id":6733089,"src":"Roman-Ruins_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6733089.html","width":130,"caption":"At the foot of Roman Ruins","height":173});
															thumbnails[6733108] = clik.newPhoto({"id":6733108,"src":"The-Eyes-Have-it_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_6733108.html","width":130,"caption":"The Eyes Have it!","height":173});
															thumbnails[6733135] = clik.newPhoto({"id":6733135,"src":"Rusty-Lamp_thumb.jpg","galleries_id":363160,"server_id":5,"link":"photo_6733135.html","width":130,"caption":"Rusty Lamp","height":173});
															thumbnails[6734042] = clik.newPhoto({"id":6734042,"src":"Are-You-Looking-at-Me_thumb.jpg","galleries_id":363158,"server_id":5,"link":"photo_6734042.html","width":130,"caption":"Are You Looking at Me?","height":173});
															thumbnails[6734077] = clik.newPhoto({"id":6734077,"src":"Kitchen-Hand-Kentwell_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6734077.html","width":130,"caption":"Kitchen Hand","height":173});
															thumbnails[6734223] = clik.newPhoto({"id":6734223,"src":"Wells-Next-the-SEa_thumb.jpg","galleries_id":363169,"server_id":5,"link":"photo_6734223.html","width":130,"caption":"Painterly Seascape","height":98});
															thumbnails[6734826] = clik.newPhoto({"id":6734826,"src":"Mary-Ardens-House_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6734826.html","width":130,"caption":"Mary Arden's House","height":98});
															thumbnails[6735104] = clik.newPhoto({"id":6735104,"src":"Ely-Cathedral_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6735104.html","width":130,"caption":"Cathedral","height":98});
															thumbnails[6749629] = clik.newPhoto({"id":6749629,"src":"Reflections-of-Florence_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_6749629.html","width":130,"caption":"Reflections","height":98});
															thumbnails[6750056] = clik.newPhoto({"id":6750056,"src":"Feed-Me_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6750056.html","width":130,"caption":"Feed Me","height":173});
															thumbnails[6750224] = clik.newPhoto({"id":6750224,"src":"High-and-Dry_thumb.jpg","galleries_id":363209,"server_id":5,"link":"photo_6750224.html","width":130,"caption":"High and Dry","height":98});
															thumbnails[6754042] = clik.newPhoto({"id":6754042,"src":"Monkey_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754042.html","width":130,"caption":"Monkey","height":98});
															thumbnails[6754047] = clik.newPhoto({"id":6754047,"src":"Monkey2_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754047.html","width":130,"caption":"Monkey 2","height":98});
															thumbnails[6754051] = clik.newPhoto({"id":6754051,"src":"RED-panda_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754051.html","width":130,"caption":"Red Panda","height":98});
															thumbnails[6754053] = clik.newPhoto({"id":6754053,"src":"Carp_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754053.html","width":130,"caption":"Fishface","height":98});
															thumbnails[6754264] = clik.newPhoto({"id":6754264,"src":"Alligator_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754264.html","width":130,"caption":"Alligator","height":98});
															thumbnails[6754268] = clik.newPhoto({"id":6754268,"src":"Bird_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754268.html","width":130,"caption":"Bird!","height":173});
															thumbnails[6754384] = clik.newPhoto({"id":6754384,"src":"Train-Driver_thumb.jpg","galleries_id":363161,"server_id":5,"link":"photo_6754384.html","width":130,"caption":"Train Driver","height":98});
															thumbnails[6754409] = clik.newPhoto({"id":6754409,"src":"Turtle_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754409.html","width":130,"caption":"Turtle","height":98});
															thumbnails[6754451] = clik.newPhoto({"id":6754451,"src":"Train-Driver-2_thumb.jpg","galleries_id":363161,"server_id":5,"link":"photo_6754451.html","width":130,"caption":"Train Driver 2","height":98});
															thumbnails[6754577] = clik.newPhoto({"id":6754577,"src":"Bird-2_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_6754577.html","width":130,"caption":"Bird 2","height":98});
															thumbnails[6767391] = clik.newPhoto({"id":6767391,"src":"Walcott-Church1_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_6767391.html","width":130,"caption":"Norfolk Church","height":173});
															thumbnails[7026532] = clik.newPhoto({"id":7026532,"src":"Leopard_at_Banham_Zoo_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7026532.html","width":130,"caption":"Leopard at Banham Zoo","height":98});
															thumbnails[7026538] = clik.newPhoto({"id":7026538,"src":"Red-Panda-at-Banham-Zoo_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7026538.html","width":130,"caption":"Red Panda at Banham Zoo","height":173});
															thumbnails[7026592] = clik.newPhoto({"id":7026592,"src":"Giraffe-at-Banham-Zoo_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7026592.html","width":130,"caption":"Giraffe at Banham Zoo","height":98});
															thumbnails[7035773] = clik.newPhoto({"id":7035773,"src":"Tiger-at-Linton-Zoo_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7035773.html","width":130,"caption":"Tiger at Linton Zoo","height":98});
															thumbnails[7037849] = clik.newPhoto({"id":7037849,"src":"Cotswold-Village-Antique_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_7037849.html","width":130,"caption":"Cotswold Village","height":98});
															thumbnails[7037961] = clik.newPhoto({"id":7037961,"src":"This-is-my-best-side_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7037961.html","width":130,"caption":"Lion King","height":98});
															thumbnails[7038429] = clik.newPhoto({"id":7038429,"src":"Rome_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_7038429.html","width":130,"caption":"Roman Ruins","height":173});
															thumbnails[7038437] = clik.newPhoto({"id":7038437,"src":"santorini-church_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_7038437.html","width":130,"caption":"Greek Church","height":173});
															thumbnails[7041910] = clik.newPhoto({"id":7041910,"src":"Bald-Eagle-with-Attitude1_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7041910.html","width":130,"caption":"Bald Eagle with Attitude","height":98});
															thumbnails[7045641] = clik.newPhoto({"id":7045641,"src":"Tiger-at-Banham-Zoo_thumb.jpg","galleries_id":363183,"server_id":5,"link":"photo_7045641.html","width":130,"caption":"Tiger at Banham Zoo","height":173});
															thumbnails[7243738] = clik.newPhoto({"id":7243738,"src":"Florence-Baptistry_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_7243738.html","width":130,"caption":"The Baptistry","height":98});
															thumbnails[7243797] = clik.newPhoto({"id":7243797,"src":"Florence-Cathedral1_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_7243797.html","width":130,"caption":"Florence Cathedral","height":98});
															thumbnails[7243852] = clik.newPhoto({"id":7243852,"src":"Dome_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_7243852.html","width":130,"caption":"The Duomo","height":98});
															thumbnails[7311180] = clik.newPhoto({"id":7311180,"src":"The-Baptistry_thumb.jpg","galleries_id":306128,"server_id":5,"link":"photo_7311180.html","width":130,"caption":"The Baptistry","height":98});
															thumbnails[7619565] = clik.newPhoto({"id":7619565,"src":"Snow_Leopard1_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7619565.html","width":130,"caption":"Snow Leopard","height":173});
															thumbnails[7619695] = clik.newPhoto({"id":7619695,"src":"Leopard_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7619695.html","width":130,"caption":"Lip Licking Leopard","height":98});
															thumbnails[7684857] = clik.newPhoto({"id":7684857,"src":"High_and_Dry_thumb.jpg","galleries_id":363159,"server_id":5,"link":"photo_7684857.html","width":130,"caption":"High and Dry","height":98});
															thumbnails[7686986] = clik.newPhoto({"id":7686986,"src":"Lookout_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_7686986.html","width":130,"caption":"Lookout","height":173});
															thumbnails[8561308] = clik.newPhoto({"id":8561308,"src":"Colchester_Zoo_Deer_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_8561308.html","width":130,"caption":"On Lookout","height":99});
															thumbnails[8573382] = clik.newPhoto({"id":8573382,"src":"Wolferton_Railway_Station1234_thumb.jpg","galleries_id":453307,"server_id":5,"link":"photo_8573382.html","width":130,"caption":"Wolferton Royal Station","height":98});
															thumbnails[8574762] = clik.newPhoto({"id":8574762,"src":"Colchester_Zoo_Leopard_thumb.jpg","galleries_id":363181,"server_id":5,"link":"photo_8574762.html","width":130,"caption":"Leopard","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[363181] = clik.newGallery({"parentGallery":363155,"usePopups":false,"title":"Animals and Birds","link":"gallery_363181.html","maxRecords":0.0,"photoIDs":[6632172.0,6632189.0,6733108.0,7026532.0,7026538.0,7026592.0,7035773.0,7037961.0,7041910.0,7619565.0,7619695.0,7686986.0,8561308.0,8574762.0],"skipIndex":0,"section_code":"gallery","featured_images":"8574762,8561308,7686986,7619695,7619565,7041910,7037961,7035773,7026592,7026538","id":363181,"singleSection":false});				  						galleries[363183] = clik.newGallery({"parentGallery":363205,"usePopups":false,"title":"Animals and Birds","link":"gallery_363183.html","maxRecords":0.0,"photoIDs":[6750056.0,6754042.0,6754047.0,6754051.0,6754053.0,6754264.0,6754268.0,6754409.0,6754577.0,7045641.0],"skipIndex":0,"section_code":"gallery","featured_images":"7045641,6754577,6754409,6754268,6754264,6754053,6754051,6754047,6754042,6750056","id":363183,"singleSection":false});				  						galleries[363155] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bob's Galleries","link":"gallery_363155.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8574762,8573382,8561308,7686986,7684857,7619695,7619565,7311180,7243852,7243797","id":363155,"singleSection":false});				  						galleries[363160] = clik.newGallery({"parentGallery":363155,"usePopups":false,"title":"Miscellaneous","link":"gallery_363160.html","maxRecords":0.0,"photoIDs":[6628474.0,6628529.0,6629297.0,6631982.0,6632721.0,6633391.0,6733135.0],"skipIndex":0,"section_code":"gallery","featured_images":"6733135,6633391,6632721,6631982,6629297,6628529,6628474","id":363160,"singleSection":false});				  						galleries[363209] = clik.newGallery({"parentGallery":363205,"usePopups":false,"title":"Miscellaneous","link":"gallery_363209.html","maxRecords":0.0,"photoIDs":[6750224.0],"skipIndex":0,"section_code":"gallery","featured_images":6750224.0,"id":363209,"singleSection":false});				  						galleries[363159] = clik.newGallery({"parentGallery":363155,"usePopups":false,"title":"Monochrome","link":"gallery_363159.html","maxRecords":0.0,"photoIDs":[6630788.0,6630859.0,6631584.0,6631853.0,6632009.0,6632713.0,6733089.0,6734077.0,6734826.0,6735104.0,6767391.0,7037849.0,7038429.0,7684857.0],"skipIndex":0,"section_code":"gallery","featured_images":"7684857,7038429,7037849,6767391,6735104,6734826,6734077,6733089,6632713,6632009","id":363159,"singleSection":false});				  						galleries[363161] = clik.newGallery({"parentGallery":363205,"usePopups":false,"title":"People & Portraits","link":"gallery_363161.html","maxRecords":0.0,"photoIDs":[6631673.0,6633718.0,6634419.0,6754384.0,6754451.0],"skipIndex":0,"section_code":"gallery","featured_images":"6754451,6754384,6634419,6633718,6631673","id":363161,"singleSection":false});				  						galleries[363158] = clik.newGallery({"parentGallery":363155,"usePopups":false,"title":"People & Portraits","link":"gallery_363158.html","maxRecords":0.0,"photoIDs":[6630425.0,6630865.0,6630974.0,6632716.0,6632758.0,6734042.0],"skipIndex":0,"section_code":"gallery","featured_images":"6734042,6632758,6632716,6630974,6630865,6630425","id":363158,"singleSection":false});				  						galleries[363205] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sally's Galleries","link":"gallery_363205.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7045641,6754577,6754451,6754409,6754384,6754268,6754264,6754053,6754051,6754047","id":363205,"singleSection":false});				  						galleries[363208] = clik.newGallery({"parentGallery":363205,"usePopups":false,"title":"Seascapes","link":"gallery_363208.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":363208,"singleSection":false});				  						galleries[363169] = clik.newGallery({"parentGallery":363155,"usePopups":false,"title":"Seascapes","link":"gallery_363169.html","maxRecords":0.0,"photoIDs":[6626801.0,6628482.0,6637407.0,6734223.0],"skipIndex":0,"section_code":"gallery","featured_images":"6734223,6637407,6628482,6626801","id":363169,"singleSection":false});				  						galleries[453307] = clik.newGallery({"parentGallery":363155,"usePopups":false,"title":"Wolferton","link":"gallery_453307.html","maxRecords":0.0,"photoIDs":[8573382.0],"skipIndex":0,"section_code":"gallery","featured_images":8573382.0,"id":453307,"singleSection":false});				  						galleries[306128] = clik.newGallery({"parentGallery":363155,"usePopups":false,"title":"Landscapes and Architecture","link":"gallery_306128.html","maxRecords":0.0,"photoIDs":[5460638.0,6627987.0,6628450.0,6628515.0,6629306.0,6629510.0,6630113.0,6632026.0,6632359.0,6632451.0,6749629.0,7038437.0,7243738.0,7243797.0,7243852.0,7311180.0],"skipIndex":0,"section_code":"gallery","featured_images":"7311180,7243852,7243797,7243738,7038437,6749629,6632451,6632359,6632026,6630113","id":306128,"singleSection":false});				  						galleries[306129] = clik.newGallery({"parentGallery":363205,"usePopups":false,"title":"Landscapes and Architecture","link":"gallery_306129.html","maxRecords":0.0,"photoIDs":[6626781.0],"skipIndex":0,"section_code":"gallery","featured_images":6626781.0,"id":306129,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6632716';
imageSets[3] = '8574762,8573382,8561308,7686986,7684857,7619695,7619565,7311180,7243852,7243797,7243738,7045641,7041910,7038437,7038429,7037961,7037849,7035773,7026592,7026538,7026532,6767391,6754577,6754451,6754409,6754384,6754268,6754264,6754053,6754051,6754047,6754042,6750224,6750056,6749629,6735104,6734826,6734223,6734077,6734042,6733135,6733108,6733089,6637407,6634419,6633718,6633391,6632758,6632721,6632716';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/BobMcManus/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/BobMcManus/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'McManus Digital: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

