window.thumbnails = {};
															thumbnails[3383034] = clik.newPhoto({"id":3383034,"src":"Swan_River_Sunset_9E508951-1D09-001F-99B3A078D5806599_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Swan River Sunset","height":87});
															thumbnails[1872048] = clik.newPhoto({"id":1872048,"src":"Perth_Skyscraper_Sunset_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Perth Skyscraper Sunset","height":85});
															thumbnails[1890862] = clik.newPhoto({"id":1890862,"src":"Oblong_Turtle_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Oblong Turtle","height":87});
															thumbnails[1874817] = clik.newPhoto({"id":1874817,"src":"City_Beach_Storm_at_Sunset_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"City Beach Storm at Sunset","height":87});
															thumbnails[3466553] = clik.newPhoto({"id":3466553,"src":"Bennion_Beach_Cove_Sunset_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Bennion Beach Cove Sunset","height":89});
															thumbnails[3138874] = clik.newPhoto({"id":3138874,"src":"Lake_District_Road_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Lake District Road","height":87});
															thumbnails[3377235] = clik.newPhoto({"id":3377235,"src":"Danby_Beacon_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Danby Beacon","height":84});
															thumbnails[3373176] = clik.newPhoto({"id":3373176,"src":"Herdsman_Lake_Lightning_Storm__4A23B3C8-1E4F-37DC-71A3DE3E3E6FA658_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3373176.html","width":130,"caption":"Herdsman Lake Lightning Storm","height":87});
															thumbnails[5712501] = clik.newPhoto({"id":5712501,"src":"Two_Rocks_Sunset_Storm_EAC56ACC-1E4F-37DC-71F41BD0A6A5EE03_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5712501.html","width":130,"caption":"Two Rocks Sunset Storm","height":53});
															thumbnails[4009512] = clik.newPhoto({"id":4009512,"src":"Perth_Coastline_Storm_at_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_4009512.html","width":87,"caption":"Perth Coastline Storm at Sunset","height":130});
															thumbnails[7770151] = clik.newPhoto({"id":7770151,"src":"Burns_Beach_at_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7770151.html","width":87,"caption":"Burns Beach at Sunset","height":130});
															thumbnails[3600181] = clik.newPhoto({"id":3600181,"src":"Perth_City_Sunrise_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3600181.html","width":130,"caption":"Perth City Sunrise ","height":38});
															thumbnails[7694716] = clik.newPhoto({"id":7694716,"src":"Perth_Swan_River_Sunrise_17th_April_2011_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7694716.html","width":130,"caption":"Perth Swan River Sunrise, 17th April 2011","height":36});
															thumbnails[8763628] = clik.newPhoto({"id":8763628,"src":"North_Cottesloe_Winter_Light1_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8763628.html","width":130,"caption":"Sunset at North Cottesloe Beach","height":87});
															thumbnails[7110444] = clik.newPhoto({"id":7110444,"src":"Cottesloe_Storm_at_Sunset_164B050E-1EC9-D45B-1CCC9D1BA8314920_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7110444.html","width":130,"caption":"Cottesloe Storm at Sunset","height":45});
															thumbnails[8321589] = clik.newPhoto({"id":8321589,"src":"Last_Light_at_North_Cottesloe_Beach_1E09F8E9-1EC9-D45B-1C6EE5B0A869FE12_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8321589.html","width":87,"caption":"Last Light at North Cottesloe Beach","height":130});
															thumbnails[3377176] = clik.newPhoto({"id":3377176,"src":"Glossy_Ibis_Silhouette_9E514CB1-1D09-001F-99B0E1E251F06F01_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377176.html","width":130,"caption":"Glossy Ibis Silhouette","height":103});
															thumbnails[6740693] = clik.newPhoto({"id":6740693,"src":"Burns_Beach_Dusk__1234_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_6740693.html","width":88,"caption":"Burns Beach Dusk","height":130});
															thumbnails[5517882] = clik.newPhoto({"id":5517882,"src":"Sun_Rays_Over_The_Stirling_Range_AF9F2EDD-24E8-5EC4-4F60B86FD75AF7EC_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5517882.html","width":130,"caption":"Sun Rays Over The Stirling Range","height":87});
															thumbnails[7531303] = clik.newPhoto({"id":7531303,"src":"North_Cottesloe_Storm_at_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7531303.html","width":130,"caption":"North Cottesloe Storm at Sunset","height":87});
															thumbnails[3377208] = clik.newPhoto({"id":3377208,"src":"Stirling_Range_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377208.html","width":130,"caption":"Stirling Range Sunset","height":58});
															thumbnails[4005932] = clik.newPhoto({"id":4005932,"src":"Marmion_Beach_Storm_at_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_4005932.html","width":130,"caption":"Marmion Beach Storm at Sunset","height":87});
															thumbnails[8749630] = clik.newPhoto({"id":8749630,"src":"North_Cottesloe_Beach_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8749630.html","width":87,"caption":"North Cottesloe Beach Sunset","height":130});
															thumbnails[7704267] = clik.newPhoto({"id":7704267,"src":"Crawley_Edge_Boatshed_73_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7704267.html","width":78,"caption":"Crawley Edge Boatshed 73","height":130});
															thumbnails[7398237] = clik.newPhoto({"id":7398237,"src":"Perth_Swan_River_Sunset_15th_Decemberr_2010_4DF5F134-1EC9-DFB6-09D68B9FAE176470_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7398237.html","width":130,"caption":"Perth Swan River Sunset, 15th December 2010","height":41});
															thumbnails[3373186] = clik.newPhoto({"id":3373186,"src":"Trigg_Sunset_9E513E88-1D09-001F-997269DFA8F57B18_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3373186.html","width":86,"caption":"Trigg Sunset","height":130});
															thumbnails[3373191] = clik.newPhoto({"id":3373191,"src":"Whistling_Kite_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3373191.html","width":130,"caption":"Whistling Kite","height":87});
															thumbnails[3997270] = clik.newPhoto({"id":3997270,"src":"Storm_over_Hillarys_Boat_Harbour_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3997270.html","width":82,"caption":"Storm over Hillary's Boat Harbour","height":130});
															thumbnails[7439427] = clik.newPhoto({"id":7439427,"src":"Perth_Swan_River_Sunset_18th_November_2010_1C0058F2-24E8-5EC4-4FD9240DF83903A9_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7439427.html","width":130,"caption":"Perth Swan River Sunset, 18th November 2010","height":43});
															thumbnails[8237576] = clik.newPhoto({"id":8237576,"src":"Sunrise_Rainbow_Over_The_Swan_River_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8237576.html","width":130,"caption":"Sunrise Rainbow Over The Swan River","height":52});
															thumbnails[6310227] = clik.newPhoto({"id":6310227,"src":"North_Cottesloe_Netherworld_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_6310227.html","width":84,"caption":"North Cottesloe Netherworld","height":130});
															thumbnails[3379085] = clik.newPhoto({"id":3379085,"src":"Cottesloe_Beach_Sunset_4C6FD47E-1E4F-37DC-71FBE6241891CD54_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3379085.html","width":130,"caption":"Cottesloe Beach Sunset","height":87});
															thumbnails[7291018] = clik.newPhoto({"id":7291018,"src":"Sunset_on_the_Shores_of_the_Swan_River_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7291018.html","width":87,"caption":"Sunset on the Shores of the Swan River","height":130});
															thumbnails[5999211] = clik.newPhoto({"id":5999211,"src":"Burns_Beach_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5999211.html","width":87,"caption":"Burns Beach Sunset","height":130});
															thumbnails[7737562] = clik.newPhoto({"id":7737562,"src":"At_The_Edge_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7737562.html","width":87,"caption":"At The Edge","height":130});
															thumbnails[3976885] = clik.newPhoto({"id":3976885,"src":"Autumn_Sunset_At_Marmion_Beach_292E8D18-24E8-5EC4-4FCB6E0CDBECED32_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3976885.html","width":130,"caption":"Autumn Sunset at Marmion Beach","height":87});
															thumbnails[6735516] = clik.newPhoto({"id":6735516,"src":"Sunset_at_Watermans_Beach_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_6735516.html","width":87,"caption":"Sunset at Watermans Beach","height":130});
															thumbnails[3377189] = clik.newPhoto({"id":3377189,"src":"Stirling_Range_Storm_at_Sunset_EC4F6570-1EC9-D45B-1C2842EBC33E422D_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377189.html","width":130,"caption":"Stirling Range Storm at Sunset","height":87});
															thumbnails[7537471] = clik.newPhoto({"id":7537471,"src":"Sunset_at_Westbeach_Esperance_ED7E4DC2-1EC9-DFB6-098ADE84DD0B2AF3_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7537471.html","width":130,"caption":"Sunset at Westbeach, Esperance","height":87});
															thumbnails[8875917] = clik.newPhoto({"id":8875917,"src":"Prevelly_Beach_Dawn_Margaret_River_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8875917.html","width":130,"caption":"Prevelly Beach Dawn, Margaret River","height":87});
															thumbnails[3377223] = clik.newPhoto({"id":3377223,"src":"Stirling_Range_Storm_F10F65E7-24E8-5EC4-4FE214470079ABB2_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377223.html","width":130,"caption":"Stirling Range Storm","height":87});
															thumbnails[8103071] = clik.newPhoto({"id":8103071,"src":"Sunset_at_Two_Rocks_4A377BA6-1E4F-37DC-71E2BFDF92942F69_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8103071.html","width":130,"caption":"Sunset at Two Rocks","height":87});
															thumbnails[4005908] = clik.newPhoto({"id":4005908,"src":"Marmion_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_4005908.html","width":84,"caption":"Marmion Sunset","height":130});
															thumbnails[8860928] = clik.newPhoto({"id":8860928,"src":"Perth_Swan_River_Sunrise_Rainbow_6th_December_2011_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8860928.html","width":130,"caption":"Perth Swan River Sunrise Rainbow, 6th December 2011","height":43});
															thumbnails[3377229] = clik.newPhoto({"id":3377229,"src":"Esperance_Sunset_F8074BC8-24E8-5EC4-4FE520F9654F04B3_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377229.html","width":130,"caption":"Esperance Sunset","height":84});
															thumbnails[5080515] = clik.newPhoto({"id":5080515,"src":"Ocean_Rain_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5080515.html","width":86,"caption":"Ocean Rain","height":130});
															thumbnails[8030720] = clik.newPhoto({"id":8030720,"src":"Autumn_Sunset_At_Burns_Beach_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8030720.html","width":52,"caption":"Autumn Sunset at Burns Beach","height":130});
															thumbnails[8591559] = clik.newPhoto({"id":8591559,"src":"Sunset_Rainbow_Over_Perth_and_The_Swan_River_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8591559.html","width":130,"caption":"Sunset Rainbow Over Perth and The Swan River","height":32});
															thumbnails[3742895] = clik.newPhoto({"id":3742895,"src":"Sunset_at_Cape_Peron_F87B69A0-24E8-5EC4-4FBF017722D0A8A7_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3742895.html","width":130,"caption":"Sunset at Cape Peron","height":84});
															thumbnails[5293921] = clik.newPhoto({"id":5293921,"src":"Marmion_Beach_Storm_at_Dusk_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5293921.html","width":87,"caption":"Marmion Beach Storm at Dusk","height":130});
															thumbnails[5989881] = clik.newPhoto({"id":5989881,"src":"Moonrise_Over_Burns_Beach_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5989881.html","width":88,"caption":"Moonrise Over Burns Beach","height":130});
															thumbnails[8534226] = clik.newPhoto({"id":8534226,"src":"Swan_River_Pelicans_at_Sunrise_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8534226.html","width":130,"caption":"Swan River Pelicans at Sunrise","height":52});
															thumbnails[8875916] = clik.newPhoto({"id":8875916,"src":"Perth_Pelicans_at_Sunrise_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8875916.html","width":130,"caption":"Perth Pelicans at Sunrise","height":43});
															thumbnails[6463612] = clik.newPhoto({"id":6463612,"src":"Sunrise_at_Crawley_Edge_Boatshed_5142EF7E-24E8-5EC4-4F1072A29088B73B_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_6463612.html","width":130,"caption":"Sunrise at Crawley Edge Boatshed","height":41});
															thumbnails[8213676] = clik.newPhoto({"id":8213676,"src":"Sunset_Over_North_Cottesloe_Beach1_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8213676.html","width":87,"caption":"Sunset Over North Cottesloe Beach","height":130});
															thumbnails[3138869] = clik.newPhoto({"id":3138869,"src":"Ornate_Dragon_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3138869.html","width":130,"caption":"Ornate Dragon","height":87});
															thumbnails[8306796] = clik.newPhoto({"id":8306796,"src":"Perth_Sunset_12th_August_2011_57D85B37-1EC9-DFB6-09FE324B379C737D_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8306796.html","width":130,"caption":"Perth Sunset, 12th August 2011","height":39});
															thumbnails[6564144] = clik.newPhoto({"id":6564144,"src":"Watermans_Sunset_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_6564144.html","width":87,"caption":"Watermans Sunset","height":130});
															thumbnails[3398602] = clik.newPhoto({"id":3398602,"src":"Paperbark_Swamp_9E4D3F56-1D09-001F-99039B59E837DB7A_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3398602.html","width":130,"caption":"Paperbark Swamp","height":87});
															thumbnails[1878326] = clik.newPhoto({"id":1878326,"src":"Willie_Wagtail_Nest_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_1878326.html","width":130,"caption":"Willie Wagtail Nest","height":91});
															thumbnails[8042460] = clik.newPhoto({"id":8042460,"src":"First_Day_Of_Winter_5B751495-1E4F-37DC-71ADC73ACB28661A_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8042460.html","width":130,"caption":"First Day Of Winter","height":87});
															thumbnails[5665754] = clik.newPhoto({"id":5665754,"src":"Eternal_Flow_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5665754.html","width":85,"caption":"Eternal Flow","height":130});
															thumbnails[7792526] = clik.newPhoto({"id":7792526,"src":"Two_Rocks_Twilight_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_7792526.html","width":130,"caption":"Two Rocks Twilight","height":65});
															thumbnails[3377237] = clik.newPhoto({"id":3377237,"src":"Bennion_Beach_Sunset_9E4CC804-1D09-001F-99320B3983706533_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377237.html","width":130,"caption":"Bennion  Beach Sunset","height":88});
															thumbnails[8196247] = clik.newPhoto({"id":8196247,"src":"South_Perth_and_The_Swan_River_at_Dawn_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8196247.html","width":130,"caption":"South Perth and The Swan River at Dawn","height":43});
															thumbnails[2191343] = clik.newPhoto({"id":2191343,"src":"Little_Corella_Cockatoo_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_2191343.html","width":130,"caption":"Little Corella Cockatoo","height":87});
															thumbnails[3377238] = clik.newPhoto({"id":3377238,"src":"Great_Egret_and_Perth_Skyscrapers_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377238.html","width":130,"caption":"Great Egret and Perth Skyscrapers","height":103});
															thumbnails[4067591] = clik.newPhoto({"id":4067591,"src":"City_Beach_Storm_at_Sunset_Panoramic_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_4067591.html","width":130,"caption":"City Beach Storm at Sunset Panoramic","height":52});
															thumbnails[5005957] = clik.newPhoto({"id":5005957,"src":"North_Beach_Sunset_8F965F5F-1EC9-DFB6-0936427D8CD3EE7E_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5005957.html","width":130,"caption":"North Beach Sunset","height":87});
															thumbnails[5046435] = clik.newPhoto({"id":5046435,"src":"Storm_Clouds_Over_Trigg_Beach_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5046435.html","width":87,"caption":"Storm Clouds Over Trigg Beach","height":130});
															thumbnails[3858239] = clik.newPhoto({"id":3858239,"src":"Perth_Beach_Sunset_57E59BEE-24E8-5EC4-4F5E400D367A70F7_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3858239.html","width":130,"caption":"Perth Beach Sunset","height":87});
															thumbnails[3377246] = clik.newPhoto({"id":3377246,"src":"Border_Collie_Shaking_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377246.html","width":130,"caption":"Border Collie Shaking","height":87});
															thumbnails[8247962] = clik.newPhoto({"id":8247962,"src":"North_Cottesloe_Winter_Light_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_8247962.html","width":130,"caption":"North Cottesloe Winter Light","height":87});
															thumbnails[4083224] = clik.newPhoto({"id":4083224,"src":"stirling_range_national_park_sunset_61E037DB-24E8-5EC4-4F50B117A6ACE26C_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_4083224.html","width":130,"caption":"Stirling Range National Park Sunset","height":81});
															thumbnails[3730155] = clik.newPhoto({"id":3730155,"src":"Point_Peron_Sunset_F8AAC25F-24E8-5EC4-4F539ADDAD4AECCB_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3730155.html","width":130,"caption":"Point Peron Sunset","height":88});
															thumbnails[1871843] = clik.newPhoto({"id":1871843,"src":"Great_Crested_Grebe_Nest_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_1871843.html","width":130,"caption":"Great Crested Grebe Nest","height":109});
															thumbnails[4155677] = clik.newPhoto({"id":4155677,"src":"Mid_Winter_Storm_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_4155677.html","width":80,"caption":"Mid Winter Storm","height":130});
															thumbnails[5665780] = clik.newPhoto({"id":5665780,"src":"Marmion_Marine_Park_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5665780.html","width":87,"caption":"Marmion Marine Park","height":130});
															thumbnails[5712412] = clik.newPhoto({"id":5712412,"src":"Incoming_Tide_at_Two_Rocks_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_5712412.html","width":130,"caption":"Incoming Tide at Two Rocks","height":87});
															thumbnails[3373185] = clik.newPhoto({"id":3373185,"src":"North_Yorkshire_Moors_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3373185.html","width":130,"caption":"North Yorkshire Moors","height":87});
															thumbnails[3373195] = clik.newPhoto({"id":3373195,"src":"Ambleside_Roundabout_F91830EF-24E8-5EC4-4FC4AD902BE10DA0_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3373195.html","width":130,"caption":"Ambleside Roundabout","height":87});
															thumbnails[3373184] = clik.newPhoto({"id":3373184,"src":"Honister_Pass_The_Path_Less_Travelled_F956A962-24E8-5EC4-4FEEB42083C45952_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3373184.html","width":130,"caption":"Honister Pass (The Path Less Travelled)","height":87});
															thumbnails[3377188] = clik.newPhoto({"id":3377188,"src":"Newlands_Valley_Mist_F995B40D-24E8-5EC4-4F8921E7233CAFB8_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377188.html","width":130,"caption":"Newlands Valley Mist","height":81});
															thumbnails[3377213] = clik.newPhoto({"id":3377213,"src":"Sandsend_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377213.html","width":130,"caption":"Sandsend","height":87});
															thumbnails[3377243] = clik.newPhoto({"id":3377243,"src":"North_Yorkshire_Moors_Sheep_8EC46518-1EC9-DFB6-09061620C62E93AA_thumb.jpg","galleries_id":206050,"server_id":1,"link":"photo_3377243.html","width":130,"caption":"North Yorkshire Moors Sheep","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[206050] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Open and Limited Edition Prints","link":"gallery.html","maxRecords":0.0,"photoIDs":[3373176.0,5712501.0,4009512.0,7770151.0,3600181.0,7694716.0,8763628.0,7110444.0,8321589.0,3377176.0,6740693.0,5517882.0,7531303.0,3377208.0,4005932.0,8749630.0,7704267.0,7398237.0,3373186.0,3373191.0,3997270.0,7439427.0,8237576.0,6310227.0,3379085.0,7291018.0,5999211.0,7737562.0,3976885.0,6735516.0,3377189.0,7537471.0,8875917.0,3377223.0,8103071.0,4005908.0,8860928.0,3377229.0,5080515.0,8030720.0,8591559.0,3742895.0,5293921.0,5989881.0,8534226.0,8875916.0,6463612.0,8213676.0,3138869.0,8306796.0,6564144.0,3398602.0,1878326.0,8042460.0,5665754.0,7792526.0,3377237.0,8196247.0,2191343.0,3377238.0,4067591.0,5005957.0,5046435.0,3858239.0,3377246.0,8247962.0,4083224.0,3730155.0,1871843.0,4155677.0,5665780.0,5712412.0,3373185.0,3373195.0,3373184.0,3377188.0,3377213.0,3377243.0],"skipIndex":0,"section_code":"gallery","featured_images":3373176.0,"id":206050,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3373176,5712501,4009512,7770151,3600181,7694716,8763628,7110444,8321589,3377176,5517882,3377208,4005932,8749630,7704267,3373186,3373191,8237576,6310227,7737562,3976885,3377189,8875917,4005908,8860928,5080515,8030720,8591559,8534226,8042460,4067591,5046435,1871843,4155677,5665780,5712412,3373195,3377213';
imageSets[2] = '3373176';
imageSets[3] = '3373195';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/holgatemike2/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/holgatemike2/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 = 'Michael Willis 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> AU$' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p><b>Purchase this print:</b></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="HOLGATEMIKE2">';
			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;
	}
}

			

