function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[3095461]=new thumbnail(3095461,"189833","Trees in the Mist","Trees in the mist (New)JPG_thumb.jpg",130,85,5);thumbnails[3095815]=new thumbnail(3095815,"189833","Frosted Trees","Frosted-Trees-2_thumb.jpg",130,85,5);thumbnails[3098294]=new thumbnail(3098294,"189833","Autumn Glow","Ferns (Second Version)JPG_thumb.jpg",130,86,5);thumbnails[3102840]=new thumbnail(3102840,"189833","Rolling Mist","Rolling-Mist_thumb.jpg",130,87,5);thumbnails[3102875]=new thumbnail(3102875,"189833","Stokesay Castle","Stokesay CastleJPG_thumb.jpg",130,80,5);thumbnails[3122451]=new thumbnail(3122451,"189833","Misty Trees","Tree-in-the-Mist_thumb.jpg",120,130,5);thumbnails[3122459]=new thumbnail(3122459,"189833","Autumn on the Ercall","Autumn-on-the-Ercall_thumb.jpg",130,87,5);thumbnails[3122473]=new thumbnail(3122473,"189833","Shropshire Harvest #2","Bales-2_thumb.jpg",130,85,5);thumbnails[3132560]=new thumbnail(3132560,"189833","Wrekin Reservoir","Wrekin-Reservoir_thumb.jpg",130,79,5);thumbnails[3137058]=new thumbnail(3137058,"189833","Wrekin Reservoir #2","Wrekin-Reservoir-22_thumb.jpg",87,130,5);thumbnails[3241023]=new thumbnail(3241023,"189833","Wrekin Harvest","Wrekin BalesJPG_thumb.jpg",130,87,5);thumbnails[3241181]=new thumbnail(3241181,"189833","From Lythe Hill","From-Lythe-Hill_thumb.jpg",130,78,5);thumbnails[3241392]=new thumbnail(3241392,"189833","Shropshire Harvest","Bales001_thumb.jpg",130,87,5);thumbnails[3241465]=new thumbnail(3241465,"189833","Wrekin Autumn","Ercall Wood TreesJPG_thumb.jpg",130,87,5);thumbnails[3241492]=new thumbnail(3241492,"189833","Approaching Storm","Poppies Cornfield (Web)JPG_thumb.jpg",130,85,5);thumbnails[3742014]=new thumbnail(3742014,"189833","Silver Trees","Frosty-Trees-on-Wrekin_thumb.jpg",130,72,5);thumbnails[4167948]=new thumbnail(4167948,"189833","Power Station View","From-the-Wrekin_thumb.jpg",130,87,5);thumbnails[4167951]=new thumbnail(4167951,"189833","Frost and Furrows","Wrekin-Tree--Furrows-S-Fi_thumb.jpg",130,55,5);thumbnails[4167953]=new thumbnail(4167953,"189833","Clearing Mist","Wrekin-Tree--Furrows-2_thumb.jpg",130,87,5);thumbnails[4167958]=new thumbnail(4167958,"189833","Stretton Hills","From-the-Long-Myndd_thumb.jpg",130,68,5);thumbnails[4167960]=new thumbnail(4167960,"189833","Towards Wrockwardine","Towards-Wrockwardine_thumb.jpg",130,49,5);thumbnails[4167978]=new thumbnail(4167978,"189833","Solitary Tree","Solitary-Tree_thumb.jpg",130,87,5);thumbnails[4167999]=new thumbnail(4167999,"189833","Frosted Grasses","Priorslee-Balancing-Lake-L_thumb.jpg",130,82,5);thumbnails[4168014]=new thumbnail(4168014,"189833","Frosted Trees","Sunlit-Frosty-Trees_thumb.jpg",130,87,5);thumbnails[4168016]=new thumbnail(4168016,"189833","Robin","Robin_thumb.jpg",130,89,5);thumbnails[4168019]=new thumbnail(4168019,"189833","Furrows and Frost","Furrows--Frost-4_thumb.jpg",130,64,5);thumbnails[5821212]=new thumbnail(5821212,"189833","Fence Line","Frosty-Fence-Wrekin-levels--spot-2_thumb.jpg",130,87,5);thumbnails[5825452]=new thumbnail(5825452,"189833","Leighton Meander","Leighton-Meander-New_thumb.jpg",130,87,5);thumbnails[3095425]=new thumbnail(3095425,"189833","Iron Bridge","Iron BridgeJPG_thumb.jpg",130,86,5);thumbnails[3098531]=new thumbnail(3098531,"189833","Wrekin Snow","Wrekin SnowJPG_thumb.jpg",130,85,5);thumbnails[3095434]=new thumbnail(3095434,"189833","The Wrekin from Little Wenlock","The-Wrekin-from-Wenlock-(Pr1_thumb.jpg",130,85,5);thumbnails[3095014]=new thumbnail(3095014,"189833","Wrockwardine church from the Wrekin","Admaston Church (cloned)001_thumb.jpg",130,46,5);thumbnails[3098306]=new thumbnail(3098306,"189833","Misty Sunset","Mist Sunset (New)JPG_thumb.jpg",130,60,5);thumbnails[3098407]=new thumbnail(3098407,"189833","Misty Sunset","Trees & Sunset 2JPG_thumb.jpg",130,60,5);thumbnails[3098229]=new thumbnail(3098229,"189833","Autumn Glow","Trees in Mist (cropped)JPG_thumb.jpg",130,51,5);thumbnails[3095024]=new thumbnail(3095024,"189833","Apley Pool Sunset","Apley-Pool_thumb.jpg",130,84,5);thumbnails[3098284]=new thumbnail(3098284,"189833","Leighton Meander","Leighton Meander 2JPG_thumb.jpg",130,82,5);thumbnails[3098418]=new thumbnail(3098418,"189833","Haughton Hall","Haughton-Hall_thumb.jpg",130,84,5);thumbnails[3098413]=new thumbnail(3098413,"189833","Approaching Storm","Wrekin Rape FieldsJPG_thumb.jpg",130,87,5);thumbnails[3095038]=new thumbnail(3095038,"189833","Fallen Oak Bough","Broken TreeJPG_thumb.jpg",130,80,5);thumbnails[3095474]=new thumbnail(3095474,"189833","Power in the Mist","Power in the Valley001_thumb.jpg",87,130,5);thumbnails[3098425]=new thumbnail(3098425,"189833","Power in the Mist #2","Ironbridge (Cropped)JPG_thumb.jpg",130,58,5);thumbnails[3094641]=new thumbnail(3094641,"189833","Wrekin Autumn","Autumn Gold (Wrekin) 4JPG_thumb.jpg",130,84,5);thumbnails[3098300]=new thumbnail(3098300,"189835","Morning Light","Morning LightJPG_thumb.jpg",130,84,5);thumbnails[3098301]=new thumbnail(3098301,"189835","Golden Mist","Rydal Tree 2JPG_thumb.jpg",130,86,5);thumbnails[3098302]=new thumbnail(3098302,"189835","Oak Tree","Rydal Tree 3JPG_thumb.jpg",130,85,5);thumbnails[3102968]=new thumbnail(3102968,"189835","Reflections","Rydal-Water-Reflections_thumb.jpg",130,87,5);thumbnails[3104081]=new thumbnail(3104081,"189835","Rydal Water","Rydal across lakeJPG_thumb.jpg",130,85,5);thumbnails[3105034]=new thumbnail(3105034,"189835","Langdales","Langdales 2JPG_thumb.jpg",130,87,5);thumbnails[3105035]=new thumbnail(3105035,"189835","Langdale","Langdales_thumb.jpg",130,87,5);thumbnails[3132554]=new thumbnail(3132554,"189835","Rydal Water","Rydal-Water_thumb.jpg",130,87,5);thumbnails[3137031]=new thumbnail(3137031,"189835","Rydal Water","Rydal-Water-3_thumb.jpg",130,87,5);thumbnails[3241248]=new thumbnail(3241248,"189835","Buttermere Pines","Buttermere-Pines_thumb.jpg",130,83,5);thumbnails[3241259]=new thumbnail(3241259,"189835","Fading Light","Fading LightJPG_thumb.jpg",130,85,5);thumbnails[3241580]=new thumbnail(3241580,"189835","Windermere Sunrise","Widermere Boat (cropped ss100)JPG_thumb.jpg",130,52,5);thumbnails[3122572]=new thumbnail(3122572,"189835","Dungeon Ghyll","Dungeon-Ghyll_thumb.jpg",87,130,5);thumbnails[3095104]=new thumbnail(3095104,"189835","Castlerigg Stone Circle","Castlerigg-(New)_thumb.jpg",130,87,5);thumbnails[3113339]=new thumbnail(3113339,"189835","Autumn Beech","_DSC0048-1_thumb.jpg",130,87,5);thumbnails[3095028]=new thumbnail(3095028,"189839","The Barracks","Barracks (correct)JPG_thumb.jpg",130,85,5);thumbnails[3095034]=new thumbnail(3095034,"189839","Storm Force","Breaking WaveJPG_thumb.jpg",130,86,5);thumbnails[3095456]=new thumbnail(3095456,"189839","Cascade","Cascade_thumb.jpg",130,87,5);thumbnails[3095476]=new thumbnail(3095476,"189839","Incoming tide ","New Quay Beach 2 (Print)JPG_thumb.jpg",130,85,5);thumbnails[3095827]=new thumbnail(3095827,"189839","Fences and Hedges","Snow, Trees, Fence 2JPG_thumb.jpg",130,85,5);thumbnails[3096968]=new thumbnail(3096968,"189839","Crib Goch","Crib Goch (Print)JPG_thumb.jpg",130,85,5);thumbnails[3098493]=new thumbnail(3098493,"189839","Crib Goch","Crib Goch across lake 2 (SS100)JPG_thumb.jpg",130,84,5);thumbnails[3098507]=new thumbnail(3098507,"189839","Distant Ruin","Distant Ruin (new)JPG_thumb.jpg",130,86,5);thumbnails[3132654]=new thumbnail(3132654,"189839","Barmouth Viaduct","Barmouth_thumb.jpg",130,87,5);thumbnails[3135918]=new thumbnail(3135918,"189839","Llyn Gwynant Reflections","Llyn-Gwynant_thumb.jpg",130,83,5);thumbnails[3135921]=new thumbnail(3135921,"189839","Fence Line","fence-line_thumb.jpg",130,86,5);thumbnails[3135940]=new thumbnail(3135940,"189839","Beach Strollers","Beach StrollersJPG_thumb.jpg",130,87,5);thumbnails[3137048]=new thumbnail(3137048,"197792","Standing Proud","The-Poser_thumb.jpg",130,88,5);thumbnails[3161052]=new thumbnail(3161052,"189839","Crib Goch Sunrise","Crib Goch Sunrise (Print 2)JPG_thumb.jpg",130,84,5);thumbnails[3241043]=new thumbnail(3241043,"189839","Autumn Beeches ","Vyrnwy-Beeches_thumb.jpg",130,87,5);thumbnails[3241091]=new thumbnail(3241091,"189839","Barmouth Viaduct","Barmouth-Viaduct1_thumb.jpg",130,70,5);thumbnails[3241129]=new thumbnail(3241129,"189839","Cascade","Cascade 3JPG_thumb.jpg",130,91,5);thumbnails[3241150]=new thumbnail(3241150,"189839","Ebb and Flow","Ebb-and-Flow-2_thumb.jpg",130,87,5);thumbnails[3241166]=new thumbnail(3241166,"197792","Night Fishermen","FishermenSalobrenia_thumb.jpg",130,74,5);thumbnails[3241206]=new thumbnail(3241206,"197792","Sunrise Alcaidesa","Alcaidesa Rocks (Mick Jones Print) NewJPG_thumb.jpg",130,85,5);thumbnails[3241218]=new thumbnail(3241218,"197792","Alcaidesa Sunrise","Alcaidesa Sun & Grasses (DESAT)JPG_thumb.jpg",130,80,5);thumbnails[3241275]=new thumbnail(3241275,"189839","Golden Light","Barmouth-Harbour_thumb.jpg",130,55,5);thumbnails[3241310]=new thumbnail(3241310,"197792","Cesares Impression","Cesares 1AJPG_thumb.jpg",130,85,5);thumbnails[3241435]=new thumbnail(3241435,"189839","Fence Line","Fence Moel Shabod 2JPG1_thumb.jpg",130,85,5);thumbnails[3241470]=new thumbnail(3241470,"197792","Granada & Sierra Nevada","Granada_thumb.jpg",130,87,5);thumbnails[3241509]=new thumbnail(3241509,"189839","Fence Line","Snowdon-&-Fence-(SS100)_thumb.jpg",130,85,5);thumbnails[3241531]=new thumbnail(3241531,"189839","Nant Gwynant ","Trees-Nant-Gwynant-(Soft-Li_thumb.jpg",130,85,5);thumbnails[3241539]=new thumbnail(3241539,"189839","Shades of Autumn","Vyrnwy-Trees_thumb.jpg",130,87,5);thumbnails[3241628]=new thumbnail(3241628,"197792","Setting Sun","Salobrenia_thumb.jpg",130,87,5);thumbnails[4167957]=new thumbnail(4167957,"189839","Winter Grasses","Tree-in-Grasses_thumb.jpg",130,87,5);thumbnails[4167966]=new thumbnail(4167966,"197792","From Mount Teide","Mount-Teide-2_thumb.jpg",130,87,5);thumbnails[4168010]=new thumbnail(4168010,"197792","Balcony","BalconyJPG_thumb.jpg",130,85,5);thumbnails[5825435]=new thumbnail(5825435,"197792","Receding wave","Rock--Receding-Wave_thumb.jpg",130,130,5);thumbnails[3095503]=new thumbnail(3095503,"189686","Cherry Blossom","White Cherry Bloom 3 (SS100)JPG_thumb.jpg",130,83,5);thumbnails[3095513]=new thumbnail(3095513,"189686","Cherry Blossom #2","White Cherry Bloom 2AAAJPG_thumb.jpg",130,83,5);thumbnails[3095526]=new thumbnail(3095526,"189686","Wild Flower Meadow","Flower meadow 2JPG_thumb.jpg",130,130,5);thumbnails[3097058]=new thumbnail(3097058,"189686","Narcisi","Narcisi NEWJPG_thumb.jpg",130,85,5);thumbnails[3098298]=new thumbnail(3098298,"189686","Flower Impression","Diffused Flowers (Edges 2)JPG_thumb.jpg",130,65,5);thumbnails[3098463]=new thumbnail(3098463,"189686","Simply Petals","Tinted Gerbera BloomJPG_thumb.jpg",130,87,5);thumbnails[3098494]=new thumbnail(3098494,"189686","Cherry Leaves","Diffused Leaf (Diffused Glow)JPG1_thumb.jpg",130,84,5);thumbnails[3098505]=new thumbnail(3098505,"189686","Cherry Leaves #1","Diffused Leaf 11a (SS100)JPG_thumb.jpg",130,84,5);thumbnails[3102687]=new thumbnail(3102687,"189686","Simply Petals","Simply PetalsJPG_thumb.jpg",130,130,5);thumbnails[3122266]=new thumbnail(3122266,"189686","Orchid","OrchidJPG_thumb.jpg",130,130,5);thumbnails[3122579]=new thumbnail(3122579,"189686","Dahlia","Dahlia_thumb.jpg",130,87,5);thumbnails[3122615]=new thumbnail(3122615,"189686","Flower Impression","Flower-Impresion_thumb.jpg",130,130,5);thumbnails[3135923]=new thumbnail(3135923,"189686","Cherry Blossom","Cherry-Bloom_thumb.jpg",130,84,5);thumbnails[3241404]=new thumbnail(3241404,"189686","Bluebell Impression","Bluebells + Grain 2JPG_thumb.jpg",84,130,5);thumbnails[4167935]=new thumbnail(4167935,"189686","Bluebells (2)","Bluebell-5_thumb.jpg",130,130,5);thumbnails[4167946]=new thumbnail(4167946,"189686","Diffused Petals","Daisies-in-Close-up_thumb.jpg",130,87,5);thumbnails[4167950]=new thumbnail(4167950,"189686","Blossom","Dale-End-Cherry-Blossom_thumb.jpg",130,130,5);thumbnails[4167961]=new thumbnail(4167961,"189686","Frosted Rose Leaf","Frosted-Rose-Leaf_thumb.jpg",130,130,5);thumbnails[4167964]=new thumbnail(4167964,"189686","Iris (1)","Iris-Bloom-2_thumb.jpg",130,130,5);thumbnails[4167968]=new thumbnail(4167968,"189686","Cherry Blossom","Pink-Blossom_thumb.jpg",130,130,5);thumbnails[4167977]=new thumbnail(4167977,"189686","Acer Leaves","Red-Maple-Leaves_thumb.jpg",130,87,5);thumbnails[4167979]=new thumbnail(4167979,"189686","Thistle and Poppies","Thistle--Poppies_thumb.jpg",130,130,5);thumbnails[4167981]=new thumbnail(4167981,"189686","Bluebells","Bluebells-3_thumb.jpg",130,130,5);thumbnails[4167984]=new thumbnail(4167984,"189686","Emerging Bluebells","Bluebells-1_thumb.jpg",130,119,5);thumbnails[4167993]=new thumbnail(4167993,"189686","Emerging Bluebells #2","Bluebells-4_thumb.jpg",130,130,5);thumbnails[4167996]=new thumbnail(4167996,"189686","Frosted Grasses","Frosted_Grasses001_thumb.jpg",130,87,5);thumbnails[5825438]=new thumbnail(5825438,"189686","Fern Leaves","Ferns-4_thumb.jpg",130,130,5);thumbnails[5825447]=new thumbnail(5825447,"189686","","Daisies_thumb.jpg",130,130,5);thumbnails[5825461]=new thumbnail(5825461,"189686","Iris (3)","Iris_thumb.jpg",130,130,5);thumbnails[5825470]=new thumbnail(5825470,"189686","Iris (2)","Iris-dsc-009_thumb.jpg",130,130,5);thumbnails[3095802]=new thumbnail(3095802,"189686","Frosted Leaf","Frosty Leaf (Square Format)JPG_thumb.jpg",130,130,5);thumbnails[3096836]=new thumbnail(3096836,"190135","Giants of the Night","Giants of the Night JPG_thumb.jpg",130,87,5);thumbnails[3098234]=new thumbnail(3098234,"190135","Reflections","Reeds (Horiz Print) Blue001_thumb.jpg",130,85,5);thumbnails[3098288]=new thumbnail(3098288,"190135","Trees in the Mist","trees in the mist (Duotone)JPG_thumb.jpg",130,83,5);thumbnails[3098293]=new thumbnail(3098293,"190135","Daisey Impression","daisies 4 (CROPPED)JPG_thumb.jpg",130,86,5);thumbnails[3098477]=new thumbnail(3098477,"190135","Reflections","Apley Reflections 2JPG_thumb.jpg",130,87,5);thumbnails[3098484]=new thumbnail(3098484,"190135","Reflections","Apley Single TwigJPG_thumb.jpg",130,87,5);thumbnails[3098523]=new thumbnail(3098523,"190135","Floating Beech Leaf","Apley Birch 2JPG_thumb.jpg",130,87,5);thumbnails[3102866]=new thumbnail(3102866,"190135","Autumn Impression","Autumn-Impression_thumb.jpg",130,87,5);thumbnails[3102956]=new thumbnail(3102956,"190135","Beech Trees","BeechesJPG_thumb.jpg",130,87,5);thumbnails[3102961]=new thumbnail(3102961,"190135","Cascade","Ebb-and-Flow-3_thumb.jpg",130,85,5);thumbnails[3122420]=new thumbnail(3122420,"190135","Foaming Waters","Cascade 2JPG_thumb.jpg",130,87,5);thumbnails[3122454]=new thumbnail(3122454,"190135","Stranded Rock","Stranded-Rock_thumb.jpg",130,87,5);thumbnails[3122594]=new thumbnail(3122594,"190135","Two Trees","Two-Trees_thumb.jpg",130,59,5);thumbnails[3122619]=new thumbnail(3122619,"190135","Reflections","Reflections_thumb.jpg",130,64,5);thumbnails[3132556]=new thumbnail(3132556,"190135","Storm Clouds","Storm-Clouds9_thumb.jpg",130,87,5);thumbnails[3161048]=new thumbnail(3161048,"190135","Spring Impression","3-daffs-2_thumb.jpg",130,84,5);thumbnails[3241291]=new thumbnail(3241291,"190135","Maple Impression","Blue Maples (Blue)JPG_thumb.jpg",130,86,5);thumbnails[3241368]=new thumbnail(3241368,"190135","Autumn Maple","Maple-Tree-(Burnt-in)_thumb.jpg",130,86,5);thumbnails[3241469]=new thumbnail(3241469,"190135","Golden Grasses","Golden Grasses 2 (New)JPG_thumb.jpg",130,74,5);thumbnails[3241474]=new thumbnail(3241474,"190135","Grasses","Grasses (Screen) 3JPG_thumb.jpg",130,85,5);thumbnails[3241501]=new thumbnail(3241501,"190135","Neon Reflections","reffectionsJPG_thumb.jpg",130,84,5);thumbnails[3241519]=new thumbnail(3241519,"190135","Sunflowers","Sun-Flowers-(Spotted)_thumb.jpg",130,85,5);thumbnails[3241559]=new thumbnail(3241559,"190135","Harvest Patterns","Wrekin-BalesJPG_thumb.jpg",130,87,5);thumbnails[4167963]=new thumbnail(4167963,"190135","Grasses","Grasses_thumb.jpg",130,130,5);thumbnails[5825412]=new thumbnail(5825412,"190135","Autumnal Birch Leaves","Hanging-Birch-Leaves-3aa_thumb.jpg",87,130,5);thumbnails[5825418]=new thumbnail(5825418,"190135","Grasses and Poppies","Grasses--Poppies-6_thumb.jpg",130,130,5);thumbnails[5825421]=new thumbnail(5825421,"190135","Hanging on","Two-Leaves_thumb.jpg",87,130,5);thumbnails[5825423]=new thumbnail(5825423,"190135","Misty Tree","Misty-Tree-Orton-Zoom_thumb.jpg",130,87,5);thumbnails[5825426]=new thumbnail(5825426,"190135","Seashells","Seashell-3_thumb.jpg",130,87,5);thumbnails[5825444]=new thumbnail(5825444,"190135","Bluebell Impression","Bluebell-5a_thumb.jpg",130,130,5);thumbnails[5825630]=new thumbnail(5825630,"190135","Reflections","Reflected-Leaves_thumb.jpg",130,130,5);thumbnails[3241110]=new thumbnail(3241110,"190135","Leaf Impression","Blurred-Leaves-2A-(HIGHLIGH_thumb.jpg",85,130,5);thumbnails[3098216]=new thumbnail(3098216,"190135","Reflected Grasses","Refections Reeds (81a)JPG_thumb.jpg",85,130,5);thumbnails[3098422]=new thumbnail(3098422,"190135","Setting Sun","Hogweed  (Screen)JPG_thumb.jpg",130,83,5);thumbnails[3094669]=new thumbnail(3094669,"190135","Setting Sun","Barmouth 2 (SUNSET)JPG_thumb.jpg",130,85,5);thumbnails[4167956]=new thumbnail(4167956,"190135","Ivy Leaves","Virginia-Creper-Leaves_thumb.jpg",130,130,5);thumbnails[3095137]=new thumbnail(3095137,"190135","Frosted Leaf #2","Frost Leaf (Painted Mono)JPG_thumb.jpg",130,130,5);thumbnails[3122428]=new thumbnail(3122428,"190135","Cascade #2","Cascade-2_thumb.jpg",130,130,5);thumbnails[3161045]=new thumbnail(3161045,"190135","Maple Leaves","Yellow-Maple-Leaves_thumb.jpg",130,119,5);thumbnails[3208488]=new thumbnail(3208488,"190135","Apley Pool Reflections","Apley-Twig-Reflections_thumb.jpg",130,130,5);var galleries=new Object();galleries[189804]=new gallery(189804,"3132554,3122572,3122451,3113339,3105035,3104081,3102968,3102840,3098531,3098507,3098493,3098413,3098407,3098301,3098300,3098294,3098284,3098229,3096968,3095815,3095476,3095474,3095461,3095434,3095425","Landscapes","gallery",[]);galleries[189833]=new gallery(189833,"3122451,3102840,3098531,3098413,3098407,3098294,3098284,3098229,3095815,3095474,3095461,3095434,3095425","Shropshire","gallery",[3095461,3095815,3098294,3102840,3102875,3122451,3122459,3122473,3132560,3137058,3241023,3241181,3241392,3241465,3241492,3742014,4167948,4167951,4167953,4167958,4167960,4167978,4167999,4168014,4168016,4168019,5821212,5825452,3095425,3098531,3095434,3095014,3098306,3098407,3098229,3095024,3098284,3098418,3098413,3095038,3095474,3098425,3094641]);galleries[189835]=new gallery(189835,"3132554,3122572,3113339,3105035,3104081,3102968,3098301,3098300","Lake District","gallery",[3098300,3098301,3098302,3102968,3104081,3105034,3105035,3132554,3137031,3241248,3241259,3241580,3122572,3095104,3113339]);galleries[197792]=new gallery(197792,"3137048","Spain","gallery",[3137048,3241166,3241206,3241218,3241310,3241470,3241628,4167966,4168010,5825435]);galleries[189839]=new gallery(189839,"3098507,3098493,3096968,3095476","Wales","gallery",[3095028,3095034,3095456,3095476,3095827,3096968,3098493,3098507,3132654,3135918,3135921,3135940,3161052,3241043,3241091,3241129,3241150,3241275,3241435,3241509,3241531,3241539,4167957]);galleries[189686]=new gallery(189686,"3122579,3102687,3098505,3098494,3097058,3095802,3095513,3095503","Flowers & Leaves","gallery",[3095503,3095513,3095526,3097058,3098298,3098463,3098494,3098505,3102687,3122266,3122579,3122615,3135923,3241404,4167935,4167946,4167950,4167961,4167964,4167968,4167977,4167979,4167981,4167984,4167993,4167996,5825438,5825447,5825461,5825470,3095802]);galleries[190135]=new gallery(190135,"3122619,3122454,3122420,3102961,3102956,3098523,3098477,3098422,3098293,3098288,3098234,3098216,3096836,3094669","Abstract & Creative","gallery",[3096836,3098234,3098288,3098293,3098477,3098484,3098523,3102866,3102956,3102961,3122420,3122454,3122594,3122619,3132556,3161048,3241291,3241368,3241469,3241474,3241501,3241519,3241559,4167963,5825412,5825418,5825421,5825423,5825426,5825444,5825630,3241110,3098216,3098422,3094669,4167956,3095137,3122428,3161045,3208488]);var imageSets=new Object();imageSets[1]="4168016,4168014,4167978,4167977,4167968,4167960,4167957,4167956,4167951,4167935,3742014,3241492,3122594,3122451,3105035,3098407,3096968,3095815,3095802,3095503,3095476,3095425";imageSets[2]="3137048,3132554,3122619,3122579,3122572,3122454,3122451,3122420,3113339,3105035,3104081,3102968,3102961,3102956,3102840,3102687,3098531,3098523,3098507,3098505,3098494,3098493,3098477,3098422,3098413,3098407,3098301,3098300,3098294,3098293,3098288,3098284,3098234,3098229,3098216,3097058,3096968,3096836,3095815,3095802,3095513,3095503,3095476,3095474,3095461,3095434,3095425,3094669";imageSets[3]="5825630,5825470,5825461,5825452,5825447,5825444,5825438,5825435,5825426,5825423,5825421,5825418,5825412,5821212,4168019,4168016,4168014,4168010,4167999,4167996,4167993,4167984,4167981,4167979,4167978,4167977,4167968,4167966,4167964,4167963,4167961,4167960,4167958,4167957,4167956,4167953,4167951,4167950,4167948,4167946,4167935,3742014,3241628,3241580,3241559,3241539,3241531,3241519,3241509,3241501";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/chrislewis123/images";break}switch(a){case 1:b="http://www1.clikpic.com/chrislewis123/images";break}switch(a){case 2:b="http://admin.clikpic.com/chrislewis123/images";break}switch(a){case 24:b="http://tpc15/clikpic/chrislewis123/images";break}switch(a){case 4:b="http://www.clikchurch.com/chrislewis123/images";break}switch(a){case 5:b="http://www2.clikpic.com/chrislewis123/images";break}switch(a){case 22:b="http://tpc5/clikpic/chrislewis123/images";break}switch(a){case 23:b="http://tpc10/clikpic/chrislewis123/images";break}switch(a){case 25:b="http://tpc16/clikpic/chrislewis123/images";break}switch(a){case 15:b="http://www3.clikpic.com/chrislewis123/images";break}switch(a){case 18:b="http://www4.clikpic.com/chrislewis123/images";break}switch(a){case 19:b="http://www5.clikpic.com/chrislewis123/images";break}switch(a){case 31:b="http://www7.clikpic.com/chrislewis123/images";break}switch(a){case 32:b="http://admin2.clikpic.com/chrislewis123/images";break}switch(a){case 33:b="http://www8.clikpic.com/chrislewis123/images";break}switch(a){case 34:b="http://www9.clikpic.com/chrislewis123/images";break}switch(a){case 35:b="http://admin3.clikpic.com/chrislewis123/images";break}switch(a){case 37:b="http://admin4.clikpic.com/chrislewis123/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Chris Lewis Photography: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};