window.thumbnails = {};
thumbnails[9045635] = clik.newPhoto({"link":"photo_9045635.html","caption":"Guarding the Mall","height":160,"id":9045635,"server_id":31,"src":"DSC_0488_89_90_fused_e_bw_vig_es_thumb.jpg","galleries_id":475076,"width":105});
thumbnails[9045651] = clik.newPhoto({"link":"photo_9045651.html","caption":"The Lincoln Memorial","height":106,"id":9045651,"server_id":31,"src":"DSC_0475_79_83_86_tonemapped_es_filtered_bw_es_thumb.jpg","galleries_id":475076,"width":160});
thumbnails[9008089] = clik.newPhoto({"link":"photo_9008089.html","caption":"Grand Canyon Sunset","height":92,"id":9008089,"server_id":31,"src":"DSC02250-2es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9008090] = clik.newPhoto({"link":"photo_9008090.html","caption":"The Grand Canyon","height":107,"id":9008090,"server_id":31,"src":"DSC02144es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014267] = clik.newPhoto({"link":"photo_9014267.html","caption":"The Grand Canyon","height":107,"id":9014267,"server_id":31,"src":"DSC02144_bw_es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014273] = clik.newPhoto({"link":"photo_9014273.html","caption":"Grand Canyon Panorama","height":74,"id":9014273,"server_id":31,"src":"DSC02172_bw_es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014283] = clik.newPhoto({"link":"photo_9014283.html","caption":"Loose Rocks, Steep Trails","height":105,"id":9014283,"server_id":31,"src":"DSC02129es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014295] = clik.newPhoto({"link":"photo_9014295.html","caption":"The Hoodoos","height":107,"id":9014295,"server_id":31,"src":"DSC02127es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014311] = clik.newPhoto({"link":"photo_9014311.html","caption":"Hoodoo Trees","height":160,"id":9014311,"server_id":31,"src":"DSC02072es_thumb_DC36821F-1EC9-D45B-1C9A7A9194E8BAEC.JPG","galleries_id":474078,"width":107});
thumbnails[9014320] = clik.newPhoto({"link":"photo_9014320.html","caption":"The Land Before Time","height":107,"id":9014320,"server_id":31,"src":"DSC02037-2es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014327] = clik.newPhoto({"link":"photo_9014327.html","caption":"Stone Henge","height":107,"id":9014327,"server_id":31,"src":"DSC02027-2es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014364] = clik.newPhoto({"link":"photo_9014364.html","caption":"Stove Pipe Wells","height":107,"id":9014364,"server_id":31,"src":"DSC01932-2es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014370] = clik.newPhoto({"link":"photo_9014370.html","caption":"Yosemite Reflections I","height":160,"id":9014370,"server_id":31,"src":"DSC01657-2es_thumb_DC3C146C-1EC9-D45B-1C457EDD6757625B.JPG","galleries_id":474078,"width":107});
thumbnails[9014377] = clik.newPhoto({"link":"photo_9014377.html","caption":"Yosemite Reflections II","height":107,"id":9014377,"server_id":31,"src":"DSC01652-3es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014396] = clik.newPhoto({"link":"photo_9014396.html","caption":"Half Dome I","height":75,"id":9014396,"server_id":31,"src":"DSC01645_bw_es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014399] = clik.newPhoto({"link":"photo_9014399.html","caption":"Half Dome II","height":69,"id":9014399,"server_id":31,"src":"DSC01638_bw_es1_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014400] = clik.newPhoto({"link":"photo_9014400.html","caption":"Half Dome III","height":107,"id":9014400,"server_id":31,"src":"DSC01590_bw_es1_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014409] = clik.newPhoto({"link":"photo_9014409.html","caption":"The Golden Gate","height":107,"id":9014409,"server_id":31,"src":"DSC01482es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014410] = clik.newPhoto({"link":"photo_9014410.html","caption":"Golden Sunset","height":107,"id":9014410,"server_id":31,"src":"DSC01465-2es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014414] = clik.newPhoto({"link":"photo_9014414.html","caption":"The Holocaust","height":107,"id":9014414,"server_id":31,"src":"DSC01129es_thumb.JPG","galleries_id":474078,"width":160});
thumbnails[9014422] = clik.newPhoto({"link":"photo_9014422.html","caption":"Driftwood","height":160,"id":9014422,"server_id":31,"src":"DSC_0385r_100_200_tonemapped_3_es_thumb.jpg","galleries_id":475048,"width":106});
thumbnails[9014429] = clik.newPhoto({"link":"photo_9014429.html","caption":"Sea Fishing","height":160,"id":9014429,"server_id":31,"src":"DSC07800ebws_thumb.JPG","galleries_id":475048,"width":107});
thumbnails[9014433] = clik.newPhoto({"link":"photo_9014433.html","caption":"Elkhorn Reflections I","height":160,"id":9014433,"server_id":31,"src":"DSC07977_8_9_tonemapped_es_thumb.jpg","galleries_id":475048,"width":108});
thumbnails[9014436] = clik.newPhoto({"link":"photo_9014436.html","caption":"Elkhorn Reflections II","height":119,"id":9014436,"server_id":31,"src":"DSC08019_20_21_tonemapped_es_thumb.jpg","galleries_id":475048,"width":160});
thumbnails[9014441] = clik.newPhoto({"link":"photo_9014441.html","caption":"Little Patuxent River","height":111,"id":9014441,"server_id":31,"src":"DSC05715_6_tonemapped_es_thumb.jpg","galleries_id":475048,"width":160});
thumbnails[9014537] = clik.newPhoto({"link":"photo_9014537.html","caption":"Grand Central Station","height":108,"id":9014537,"server_id":31,"src":"DSC08794_5_tonemapped_bw_es_thumb.jpg","galleries_id":475061,"width":160});
thumbnails[9014555] = clik.newPhoto({"link":"photo_9014555.html","caption":"New York Mist","height":107,"id":9014555,"server_id":31,"src":"DSC08770es_thumb.JPG","galleries_id":475061,"width":160});
thumbnails[9014556] = clik.newPhoto({"link":"photo_9014556.html","caption":"New York","height":108,"id":9014556,"server_id":31,"src":"DSC06682_044es_thumb.JPG","galleries_id":475061,"width":160});
thumbnails[9014560] = clik.newPhoto({"link":"photo_9014560.html","caption":"NYPD: Prime Suspect","height":160,"id":9014560,"server_id":31,"src":"DSC06458__-100__-200_tonemapped_es_thumb.jpg","galleries_id":475061,"width":107});
thumbnails[9014563] = clik.newPhoto({"link":"photo_9014563.html","caption":"New York Mist II","height":160,"id":9014563,"server_id":31,"src":"DSC08757e_bw_e_thumb.JPG","galleries_id":475061,"width":105});
thumbnails[9014565] = clik.newPhoto({"link":"photo_9014565.html","caption":"The Empire State","height":160,"id":9014565,"server_id":31,"src":"DSC08764e_bw_es_thumb.JPG","galleries_id":475061,"width":106});
thumbnails[9014628] = clik.newPhoto({"link":"photo_9014628.html","caption":"The Ruby Stairs","height":160,"id":9014628,"server_id":31,"src":"DSC08147__200__-200_tonemapped_es_thumb.jpg","galleries_id":475061,"width":107});
thumbnails[9014632] = clik.newPhoto({"link":"photo_9014632.html","caption":"Hailing A Cab","height":160,"id":9014632,"server_id":31,"src":"DSC08177-2e__over__under_fused_es_thumb.jpg","galleries_id":475061,"width":138});
thumbnails[9014640] = clik.newPhoto({"link":"photo_9014640.html","caption":"Speeding Taxis","height":131,"id":9014640,"server_id":31,"src":"DSC08075__-100__-200_tonemapped_es_thumb.jpg","galleries_id":475061,"width":160});
thumbnails[9014657] = clik.newPhoto({"link":"photo_9014657.html","caption":"War & Peace","height":160,"id":9014657,"server_id":31,"src":"DSC_0144res_thumb.JPG","galleries_id":475076,"width":106});
thumbnails[9014658] = clik.newPhoto({"link":"photo_9014658.html","caption":"The Washington Monument","height":160,"id":9014658,"server_id":31,"src":"DSC07071es_thumb.JPG","galleries_id":475076,"width":107});
thumbnails[9014662] = clik.newPhoto({"link":"photo_9014662.html","caption":"World War II Memorial","height":160,"id":9014662,"server_id":31,"src":"DSC07079es_thumb.JPG","galleries_id":475076,"width":107});
thumbnails[9014673] = clik.newPhoto({"link":"photo_9014673.html","caption":"The Ladder","height":131,"id":9014673,"server_id":31,"src":"DSC09835ebws_thumb.JPG","galleries_id":475079,"width":160});
thumbnails[9014675] = clik.newPhoto({"link":"photo_9014675.html","caption":"The Wooden Door","height":108,"id":9014675,"server_id":31,"src":"DSC09819_100___-100ebws_thumb.jpg","galleries_id":475079,"width":160});
thumbnails[9014679] = clik.newPhoto({"link":"photo_9014679.html","caption":"Mount Moriah Lodge No. 7","height":106,"id":9014679,"server_id":31,"src":"DSC_0328_29_30_tonemapped_3_bw_vig_es_thumb.jpg","galleries_id":475079,"width":160});
thumbnails[9014714] = clik.newPhoto({"link":"photo_9014714.html","caption":"Mount Moriah Lodge Sunset","height":106,"id":9014714,"server_id":31,"src":"DSC_0367_8_tonemapped_2_es_thumb.jpg","galleries_id":475079,"width":160});
thumbnails[9014744] = clik.newPhoto({"link":"photo_9014744.html","caption":"Mount Moriah Lodge Sunset II","height":106,"id":9014744,"server_id":31,"src":"DSC_0367_8_tonemapped_2_bw_es_thumb.jpg","galleries_id":475079,"width":160});
thumbnails[9014755] = clik.newPhoto({"link":"photo_9014755.html","caption":"Broadway Tower","height":147,"id":9014755,"server_id":31,"src":"DSC05683_1_2e1SmCropped_thumb.jpg","galleries_id":475079,"width":160});
thumbnails[9014761] = clik.newPhoto({"link":"photo_9014761.html","caption":"The Blue Door","height":160,"id":9014761,"server_id":31,"src":"DSC09911_-0_-1_03es_thumb.jpg","galleries_id":475079,"width":106});
thumbnails[9014766] = clik.newPhoto({"link":"photo_9014766.html","caption":"The Lodge Door","height":160,"id":9014766,"server_id":31,"src":"DSC_0346_7_8_tonemapped_bw_es_thumb.jpg","galleries_id":475079,"width":112});
thumbnails[9014774] = clik.newPhoto({"link":"photo_9014774.html","caption":"Bollman Truss Railroad Bridge","height":160,"id":9014774,"server_id":31,"src":"DSC05642_3_4_tonemapped_bw_es_thumb.jpg","galleries_id":475079,"width":106});
thumbnails[9014781] = clik.newPhoto({"link":"photo_9014781.html","caption":"Bollman Truss Railroad Bridge II","height":160,"id":9014781,"server_id":31,"src":"DSC05648_49_50_tonemapped_bw_es_thumb.jpg","galleries_id":475079,"width":108});
thumbnails[9017314] = clik.newPhoto({"link":"photo_9017314.html","caption":"Lancashire Winter","height":108,"id":9017314,"server_id":31,"src":"DSC03145_6_7es_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017318] = clik.newPhoto({"link":"photo_9017318.html","caption":"Honister Pass I","height":107,"id":9017318,"server_id":31,"src":"DSC04365_6_7_tonemapped_es_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017322] = clik.newPhoto({"link":"photo_9017322.html","caption":"Healey Dell I","height":108,"id":9017322,"server_id":31,"src":"DSC03347_5_6a2e-800_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017324] = clik.newPhoto({"link":"photo_9017324.html","caption":"Binary Tree","height":160,"id":9017324,"server_id":31,"src":"DSC03444_3_2_HDRe-800_thumb.jpg","galleries_id":475250,"width":107});
thumbnails[9017331] = clik.newPhoto({"link":"photo_9017331.html","caption":"Healey Dell II","height":160,"id":9017331,"server_id":31,"src":"DSC03368_6a5e-800_thumb.jpg","galleries_id":475250,"width":108});
thumbnails[9017336] = clik.newPhoto({"link":"photo_9017336.html","caption":"Stock Ghyll","height":160,"id":9017336,"server_id":31,"src":"DSC02566es_thumb.JPG","galleries_id":475250,"width":107});
thumbnails[9017341] = clik.newPhoto({"link":"photo_9017341.html","caption":"The Pier at Windermere","height":160,"id":9017341,"server_id":31,"src":"DSC02640ebws_thumb.JPG","galleries_id":475250,"width":132});
thumbnails[9017342] = clik.newPhoto({"link":"photo_9017342.html","caption":"Beached","height":160,"id":9017342,"server_id":31,"src":"DSC02652_-067_100_133es_thumb.jpg","galleries_id":475250,"width":107});
thumbnails[9017346] = clik.newPhoto({"link":"photo_9017346.html","caption":"The Falls at Buttermere","height":160,"id":9017346,"server_id":31,"src":"DSC04386_7_8_tonemapped_2_es_thumb.jpg","galleries_id":475250,"width":102});
thumbnails[9017353] = clik.newPhoto({"link":"photo_9017353.html","caption":"Healey Dell III","height":108,"id":9017353,"server_id":31,"src":"DSC03381_79_80a2e-800_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017356] = clik.newPhoto({"link":"photo_9017356.html","caption":"Cumbrian Fells","height":108,"id":9017356,"server_id":31,"src":"DSC04404_5_6_tonemapped_es_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017358] = clik.newPhoto({"link":"photo_9017358.html","caption":"Llanberis Pass I","height":107,"id":9017358,"server_id":31,"src":"DSC05068_7a2e4-800_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017363] = clik.newPhoto({"link":"photo_9017363.html","caption":"Honister Pass II","height":160,"id":9017363,"server_id":31,"src":"DSC04355_6_7_tonemapped_es_thumb.jpg","galleries_id":475250,"width":108});
thumbnails[9017365] = clik.newPhoto({"link":"photo_9017365.html","caption":"Honister Pass III","height":160,"id":9017365,"server_id":31,"src":"DSC04374_5_6_tonemapped_es_thumb.jpg","galleries_id":475250,"width":108});
thumbnails[9017366] = clik.newPhoto({"link":"photo_9017366.html","caption":"St Giles Church I","height":160,"id":9017366,"server_id":31,"src":"DSC07584_2_3es_thumb.jpg","galleries_id":475250,"width":108});
thumbnails[9017368] = clik.newPhoto({"link":"photo_9017368.html","caption":"Llanberis Pass II","height":107,"id":9017368,"server_id":31,"src":"DSC05055_6_7a2e-800_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017369] = clik.newPhoto({"link":"photo_9017369.html","caption":"St Giles Church II","height":116,"id":9017369,"server_id":31,"src":"DSC07584_2_3e_crop_s_thumb.jpg","galleries_id":475250,"width":160});
thumbnails[9017371] = clik.newPhoto({"link":"photo_9017371.html","caption":"Galician Vineyards","height":160,"id":9017371,"server_id":31,"src":"DSC09278_9es_thumb.jpg","galleries_id":475257,"width":108});
thumbnails[9017375] = clik.newPhoto({"link":"photo_9017375.html","caption":"Galician Vineyards","height":160,"id":9017375,"server_id":31,"src":"DSC09278_9ebws_thumb.jpg","galleries_id":475257,"width":108});
thumbnails[9017378] = clik.newPhoto({"link":"photo_9017378.html","caption":"Rio Deva","height":160,"id":9017378,"server_id":31,"src":"DSC09462_100_033_-100es_thumb.jpg","galleries_id":475257,"width":107});
thumbnails[9017381] = clik.newPhoto({"link":"photo_9017381.html","caption":"The Pearly Gates","height":89,"id":9017381,"server_id":31,"src":"DSC09072_1ebws_thumb.jpg","galleries_id":475257,"width":160});
thumbnails[9017384] = clik.newPhoto({"link":"photo_9017384.html","caption":"From Bremen to Ellis","height":107,"id":9017384,"server_id":31,"src":"DSC06794__100__-133_tonemapped_es_thumb.jpg","galleries_id":475259,"width":160});
thumbnails[9017387] = clik.newPhoto({"link":"photo_9017387.html","caption":"Penguin Feeding","height":107,"id":9017387,"server_id":31,"src":"DSC03869es_thumb.JPG","galleries_id":475259,"width":160});
thumbnails[9017398] = clik.newPhoto({"link":"photo_9017398.html","caption":"Christmas Wine","height":108,"id":9017398,"server_id":31,"src":"DSC09049_50_51_tonemapped_bw_e_vig_es_thumb.jpg","galleries_id":475259,"width":160});
thumbnails[9017422] = clik.newPhoto({"link":"photo_9017422.html","caption":"All The King's Men","height":160,"id":9017422,"server_id":31,"src":"DSC06277_2_1_3eSm_filtered_thumb.jpg","galleries_id":475259,"width":111});
thumbnails[9017441] = clik.newPhoto({"link":"photo_9017441.html","caption":"All The King's Men II","height":160,"id":9017441,"server_id":31,"src":"DSC06286_2_1_3eSm_filtered_thumb.jpg","galleries_id":475259,"width":91});
thumbnails[9017457] = clik.newPhoto({"link":"photo_9017457.html","caption":"All The King's Men III","height":88,"id":9017457,"server_id":31,"src":"DSC06327_2_1_3eSm_filtered_thumb.jpg","galleries_id":475259,"width":160});
thumbnails[9017498] = clik.newPhoto({"link":"photo_9017498.html","caption":"Winter Trees","height":105,"id":9017498,"server_id":31,"src":"DSC03055es_thumb_0E4E0FA6-1EC9-D45B-1C9F644BFAE8F7D4.JPG","galleries_id":475259,"width":160});
thumbnails[9017544] = clik.newPhoto({"link":"photo_9017544.html","caption":"Snow Sprint I","height":107,"id":9017544,"server_id":31,"src":"DSC02977es_thumb.JPG","galleries_id":475263,"width":160});
thumbnails[9017574] = clik.newPhoto({"link":"photo_9017574.html","caption":"Snow Sprint II","height":105,"id":9017574,"server_id":31,"src":"DSC02998es_thumb.JPG","galleries_id":475263,"width":160});
thumbnails[9017586] = clik.newPhoto({"link":"photo_9017586.html","caption":"Golden Light","height":107,"id":9017586,"server_id":31,"src":"DSC03050es_thumb.JPG","galleries_id":475263,"width":160});
thumbnails[9017593] = clik.newPhoto({"link":"photo_9017593.html","caption":"Pink Flamingo","height":107,"id":9017593,"server_id":31,"src":"DSC01108es_thumb.JPG","galleries_id":475263,"width":160});
thumbnails[9017606] = clik.newPhoto({"link":"photo_9017606.html","caption":"Polar Paddling","height":107,"id":9017606,"server_id":31,"src":"DSC00946-2es_thumb.JPG","galleries_id":475263,"width":160});
thumbnails[9017616] = clik.newPhoto({"link":"photo_9017616.html","caption":"Shakin'","height":107,"id":9017616,"server_id":31,"src":"DSC04142esf_thumb.JPG","galleries_id":475263,"width":160});
thumbnails[9017631] = clik.newPhoto({"link":"photo_9017631.html","caption":"Waning Moon","height":103,"id":9017631,"server_id":31,"src":"DSC02949e_thumb_0E7586CC-1EC9-D45B-1CBFFAD33F849A85.JPG","galleries_id":475264,"width":160});
thumbnails[9017642] = clik.newPhoto({"link":"photo_9017642.html","caption":"On God's Earth","height":111,"id":9017642,"server_id":31,"src":"Startrails3_perspective_corrected_de_hot_spot_es_thumb.jpg","galleries_id":475264,"width":160});
thumbnails[9158307] = clik.newPhoto({"link":"photo_9158307.html","caption":"Mustang I","height":160,"id":9158307,"server_id":31,"src":"DSC_0533res_watermark_1_thumb.JPG","galleries_id":483608,"width":106});
thumbnails[9158308] = clik.newPhoto({"link":"photo_9158308.html","caption":"Indy Car","height":160,"id":9158308,"server_id":31,"src":"DSC_0658res_watermarked_1_thumb.JPG","galleries_id":483608,"width":106});
thumbnails[9158309] = clik.newPhoto({"link":"photo_9158309.html","caption":"Indy Car II","height":160,"id":9158309,"server_id":31,"src":"DSC_0648res_watermark_1_thumb.JPG","galleries_id":483608,"width":106});
thumbnails[9158310] = clik.newPhoto({"link":"photo_9158310.html","caption":"Corvette","height":160,"id":9158310,"server_id":31,"src":"DSC_0730res_watermark_1_thumb.JPG","galleries_id":483608,"width":106});
thumbnails[9158311] = clik.newPhoto({"link":"photo_9158311.html","caption":"Cyberdyne Systems Model 0.2: Hank","height":160,"id":9158311,"server_id":31,"src":"DSC_0783res_watermark_1_thumb.JPG","galleries_id":483608,"width":106});
thumbnails[9158312] = clik.newPhoto({"link":"photo_9158312.html","caption":"Shelby I","height":106,"id":9158312,"server_id":31,"src":"DSC_0623res_watermark_1_thumb.JPG","galleries_id":483608,"width":160});
thumbnails[9158313] = clik.newPhoto({"link":"photo_9158313.html","caption":"Mustang II","height":106,"id":9158313,"server_id":31,"src":"DSC_0542res_1_thumb.JPG","galleries_id":483608,"width":160});
thumbnails[9158314] = clik.newPhoto({"link":"photo_9158314.html","caption":"Mustang III","height":106,"id":9158314,"server_id":31,"src":"DSC_0534res_1_thumb.JPG","galleries_id":483608,"width":160});
thumbnails[9158315] = clik.newPhoto({"link":"photo_9158315.html","caption":"Mustang IV","height":106,"id":9158315,"server_id":31,"src":"DSC_0621res_watermark_1_thumb.JPG","galleries_id":483608,"width":160});
thumbnails[9158316] = clik.newPhoto({"link":"photo_9158316.html","caption":"Scaletrix","height":106,"id":9158316,"server_id":31,"src":"DSC_0688res_watermark_1_thumb.JPG","galleries_id":483608,"width":160});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[475250] = clik.newGallery({"photoIDs":[9017314,9017318,9017322,9017324,9017331,9017336,9017341,9017342,9017346,9017353,9017356,9017358,9017363,9017365,9017366,9017368,9017369],"link":"gallery_475250.html","skipIndex":0,"section_code":"gallery","id":475250,"parentGallery":474077,"featured_images":"9017369,9017356,9017353,9017322,9017318,9017314","maxRecords":0,"usePopups":false,"singleSection":false,"title":"United Kingdom"});galleries[475048] = clik.newGallery({"photoIDs":[9014422,9014429,9014433,9014436,9014441],"link":"gallery_475048.html","skipIndex":0,"section_code":"gallery","id":475048,"parentGallery":474077,"featured_images":"9014441,9014436","maxRecords":0,"usePopups":false,"singleSection":false,"title":"United States - East"});galleries[475061] = clik.newGallery({"photoIDs":[9014537,9014555,9014556,9014560,9014563,9014565,9014628,9014632,9014640],"link":"gallery_475061.html","skipIndex":0,"section_code":"gallery","id":475061,"parentGallery":475059,"featured_images":"9014640,9014556,9014537","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Cities"});galleries[474077] = clik.newGallery({"photoIDs":[],"link":"gallery_474077.html","skipIndex":0,"section_code":"gallery","id":474077,"parentGallery":"","featured_images":"9017369,9017356,9017353,9017322,9017318,9017314,9014441,9014436,9014410,9014400,9014377","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Country & Waterscapes"});galleries[475059] = clik.newGallery({"photoIDs":[],"link":"gallery_475059.html","skipIndex":0,"section_code":"gallery","id":475059,"parentGallery":"","featured_images":"9045651,9014755,9014744,9014714,9014679,9014675,9014673,9014640,9014556,9014537","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Cities, Buildings & Monuments"});galleries[475079] = clik.newGallery({"photoIDs":[9014673,9014675,9014679,9014714,9014744,9014755,9014761,9014766,9014774,9014781],"link":"gallery_475079.html","skipIndex":0,"section_code":"gallery","id":475079,"parentGallery":475059,"featured_images":"9014755,9014744,9014714,9014679,9014675,9014673","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Rural Buildings"});galleries[474078] = clik.newGallery({"photoIDs":[9008089,9008090,9014267,9014273,9014283,9014295,9014311,9014320,9014327,9014364,9014370,9014377,9014396,9014399,9014400,9014409,9014410,9014414],"link":"gallery_474078.html","skipIndex":0,"section_code":"gallery","id":474078,"parentGallery":474077,"featured_images":"9014410,9014400,9014377","maxRecords":0,"usePopups":false,"singleSection":false,"title":"United States - West"});galleries[475076] = clik.newGallery({"photoIDs":[9045635,9045651,9014657,9014658,9014662],"link":"gallery_475076.html","skipIndex":0,"section_code":"gallery","id":475076,"parentGallery":475059,"featured_images":9045651,"maxRecords":0,"usePopups":false,"singleSection":false,"title":"Monuments"});galleries[475259] = clik.newGallery({"photoIDs":[9017384,9017387,9017398,9017422,9017441,9017457,9017498],"link":"gallery_475259.html","skipIndex":0,"section_code":"gallery","id":475259,"parentGallery":"","featured_images":"9017398,9017384","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Still Life & Abstract"});galleries[483608] = clik.newGallery({"photoIDs":[9158307,9158308,9158309,9158310,9158311,9158312,9158313,9158314,9158315,9158316],"link":"gallery_483608.html","skipIndex":0,"section_code":"gallery","id":483608,"parentGallery":"","featured_images":"9158316,9158315,9158314,9158313,9158312,9158311,9158310,9158309,9158308,9158307","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Auto"});galleries[475257] = clik.newGallery({"photoIDs":[9017371,9017375,9017378,9017381],"link":"gallery_475257.html","skipIndex":0,"section_code":"gallery","id":475257,"parentGallery":474077,"featured_images":"9017381,9017378,9017375,9017371","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Europe"});galleries[475263] = clik.newGallery({"photoIDs":[9017544,9017574,9017586,9017593,9017606,9017616],"link":"gallery_475263.html","skipIndex":0,"section_code":"gallery","id":475263,"parentGallery":"","featured_images":"9017606,9017593,9017586,9017544","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Pets & Wildlife"});galleries[475264] = clik.newGallery({"photoIDs":[9017631,9017642],"link":"gallery_475264.html","skipIndex":0,"section_code":"gallery","id":475264,"parentGallery":"","featured_images":"9017642,9017631","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Astro"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '9158316,9158315,9158314,9158313,9158312,9158311,9158310,9158309,9158308,9158307,9045651,9045635,9017642,9017631,9017616,9017606,9017593,9017586,9017574,9017544,9017498,9017457,9017441,9017422,9017398,9017387,9017384,9017381,9017378,9017375,9017371,9017369,9017368,9017366,9017365,9017363,9017358,9017356,9017353,9017346,9017342,9017341,9017336,9017331,9017324,9017322,9017318,9017314,9014781,9014774';
imageSets[2] = '9045651,9017642,9017631,9017606,9017593,9017586,9017544,9017398,9017384,9017369,9017356,9017353,9017322,9017318,9017314,9014755,9014744,9014714,9014679,9014675,9014673,9014640,9014556,9014537,9014441,9014436,9014410,9014400,9014377';
imageSets[1] = '9045651,9017642,9017606,9017593,9017586,9017544,9017384,9017381,9017369,9017356,9017353,9017322,9017318,9017314,9014755,9014744,9014714,9014679,9014673,9014640,9014556,9014537,9014410,9014400,9014377,9008089';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/simoncrumpton/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/simoncrumpton/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 = 'Simon Crumpton 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>';
	}
			
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
						temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
					temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="SIMONCRUMPTON">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

		

