window.thumbnails = {};
															thumbnails[7862061] = clik.newPhoto({"id":7862061,"src":"Room-with-Picture-B_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"HOME EXAMPLE","height":107});
															thumbnails[7862058] = clik.newPhoto({"id":7862058,"src":"Room-with-Picture-E_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"HOME EXAMPLE","height":107});
															thumbnails[7862057] = clik.newPhoto({"id":7862057,"src":"Room-with-Picture-D_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"HOME EXAMPLE","height":107});
															thumbnails[7862056] = clik.newPhoto({"id":7862056,"src":"Room-with-Picture-C_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":160,"caption":"HOME EXAMPLE","height":107});
															thumbnails[7894348] = clik.newPhoto({"id":7894348,"src":"114173972T_thumb.jpg","galleries_id":425030,"server_id":1,"link":"photo_7894348.html","width":160,"caption":"Sunset at Sugar Loaf","height":240});
															thumbnails[7894394] = clik.newPhoto({"id":7894394,"src":"084162460S_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7894394.html","width":160,"caption":"Karri Forest","height":53});
															thumbnails[7894416] = clik.newPhoto({"id":7894416,"src":"096094728mono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894416.html","width":160,"caption":"Baskets","height":241});
															thumbnails[7898061] = clik.newPhoto({"id":7898061,"src":"096306098S_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7898061.html","width":160,"caption":"Sunrise over the Tufa","height":107});
															thumbnails[8015863] = clik.newPhoto({"id":8015863,"src":"10B242207Sb_thumb.jpg","galleries_id":122355,"server_id":1,"link":"photo_8015863.html","width":160,"caption":"St Oswalds Chapel","height":107});
															thumbnails[8104357] = clik.newPhoto({"id":8104357,"src":"10B292258b_thumb.jpg","galleries_id":425031,"server_id":1,"link":"photo_8104357.html","width":160,"caption":"Sheep in Frost","height":240});
															thumbnails[8222843] = clik.newPhoto({"id":8222843,"src":"10B181894S_thumb.jpg","galleries_id":438417,"server_id":1,"link":"photo_8222843.html","width":160,"caption":"Low Tide","height":107});
															thumbnails[8573350] = clik.newPhoto({"id":8573350,"src":"098212120Sa_thumb.jpg","galleries_id":425032,"server_id":1,"link":"photo_8573350.html","width":160,"caption":"Gateway Arch","height":237});
															thumbnails[8573411] = clik.newPhoto({"id":8573411,"src":"1191278423456TH_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_8573411.html","width":160,"caption":"Fortescue Falls","height":107});
															thumbnails[8728607] = clik.newPhoto({"id":8728607,"src":"104178667Sa_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_8728607.html","width":160,"caption":"Sunset at the old boat-ramp ","height":53});
															thumbnails[7894395] = clik.newPhoto({"id":7894395,"src":"084212623S_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7894395.html","width":160,"caption":"Sunrise on the Bay","height":53});
															thumbnails[7894417] = clik.newPhoto({"id":7894417,"src":"098060340mono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894417.html","width":160,"caption":"Cafe","height":240});
															thumbnails[8222845] = clik.newPhoto({"id":8222845,"src":"10B292272SJ_thumb.jpg","galleries_id":438417,"server_id":1,"link":"photo_8222845.html","width":160,"caption":"The Homecoming","height":107});
															thumbnails[8573351] = clik.newPhoto({"id":8573351,"src":"1191884534567T2_thumb.jpg","galleries_id":425030,"server_id":1,"link":"photo_8573351.html","width":160,"caption":"Carnarvon Jetty","height":240});
															thumbnails[7894396] = clik.newPhoto({"id":7894396,"src":"086105534S_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7894396.html","width":160,"caption":"Circular Pool","height":53});
															thumbnails[7894418] = clik.newPhoto({"id":7894418,"src":"098060542mono_4F2592BA-1EC9-D45B-1C7E83AB28D8FE0E_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894418.html","width":160,"caption":"Hero","height":241});
															thumbnails[8573352] = clik.newPhoto({"id":8573352,"src":"119208483S_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_8573352.html","width":160,"caption":"Murchison River","height":53});
															thumbnails[7894397] = clik.newPhoto({"id":7894397,"src":"086115788S_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7894397.html","width":160,"caption":"Red Earth","height":53});
															thumbnails[7894419] = clik.newPhoto({"id":7894419,"src":"098110810amono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894419.html","width":160,"caption":"Strawberry Fields","height":106});
															thumbnails[7894398] = clik.newPhoto({"id":7894398,"src":"086145866_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_7894398.html","width":160,"caption":"80 Mile Beach","height":107});
															thumbnails[7894420] = clik.newPhoto({"id":7894420,"src":"098110886mono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894420.html","width":160,"caption":"Rockefeller","height":106});
															thumbnails[7987785] = clik.newPhoto({"id":7987785,"src":"097026773S_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7987785.html","width":160,"caption":"Mountain Stream","height":107});
															thumbnails[7894399] = clik.newPhoto({"id":7894399,"src":"097067315Sa_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7894399.html","width":160,"caption":"Sunset at the Canyon","height":107});
															thumbnails[7894421] = clik.newPhoto({"id":7894421,"src":"098120909amono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894421.html","width":160,"caption":"The Jogger","height":106});
															thumbnails[7894422] = clik.newPhoto({"id":7894422,"src":"098120916mono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894422.html","width":160,"caption":"The Busker","height":106});
															thumbnails[7894423] = clik.newPhoto({"id":7894423,"src":"098121006amono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894423.html","width":160,"caption":"Alice","height":106});
															thumbnails[7894424] = clik.newPhoto({"id":7894424,"src":"098222183Samono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894424.html","width":160,"caption":"Puddles","height":53});
															thumbnails[7894347] = clik.newPhoto({"id":7894347,"src":"113263558aH_thumb.jpg","galleries_id":425030,"server_id":1,"link":"photo_7894347.html","width":160,"caption":"Thistle Cove","height":240});
															thumbnails[7894425] = clik.newPhoto({"id":7894425,"src":"10A140209Smono_thumb.jpg","galleries_id":425880,"server_id":1,"link":"photo_7894425.html","width":160,"caption":"Stop","height":106});
															thumbnails[7894346] = clik.newPhoto({"id":7894346,"src":"112201465Sa_thumb.jpg","galleries_id":424280,"server_id":1,"link":"photo_7894346.html","width":160,"caption":"Tasmanian Scenery","height":53});
															thumbnails[7898062] = clik.newPhoto({"id":7898062,"src":"096306302Sa_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7898062.html","width":160,"caption":"Reflections","height":53});
															thumbnails[7894344] = clik.newPhoto({"id":7894344,"src":"084092017Sa_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_7894344.html","width":160,"caption":"Geographe Dawn","height":107});
															thumbnails[7986044] = clik.newPhoto({"id":7986044,"src":"097016623Sb_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7986044.html","width":160,"caption":"Mt Morrison across Convict Lake","height":53});
															thumbnails[7889341] = clik.newPhoto({"id":7889341,"src":"099054469S_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7889341.html","width":160,"caption":"Wild Goose Island","height":53});
															thumbnails[7889340] = clik.newPhoto({"id":7889340,"src":"097036929S_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7889340.html","width":160,"caption":"Zabriskie Point","height":53});
															thumbnails[7965360] = clik.newPhoto({"id":7965360,"src":"096235344S_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7965360.html","width":160,"caption":"El Capitan and Bridalveil Falls","height":53});
															thumbnails[7889339] = clik.newPhoto({"id":7889339,"src":"096265717Sa_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7889339.html","width":160,"caption":"Half Dome from the Valley","height":53});
															thumbnails[7889338] = clik.newPhoto({"id":7889338,"src":"096265696S_thumb.jpg","galleries_id":425032,"server_id":1,"link":"photo_7889338.html","width":160,"caption":"Yosemite Falls","height":240});
															thumbnails[7889337] = clik.newPhoto({"id":7889337,"src":"096245572Sa_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7889337.html","width":160,"caption":"Sunset on Half Dome","height":53});
															thumbnails[7889336] = clik.newPhoto({"id":7889336,"src":"096235383Sa_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7889336.html","width":160,"caption":"El Capitan from Tunnel View","height":53});
															thumbnails[7889335] = clik.newPhoto({"id":7889335,"src":"096235350S_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7889335.html","width":160,"caption":"Fern Spring","height":107});
															thumbnails[7990156] = clik.newPhoto({"id":7990156,"src":"099155474Sa_thumb.jpg","galleries_id":318567,"server_id":1,"link":"photo_7990156.html","width":160,"caption":"Volcanic Blue","height":53});
															thumbnails[7889334] = clik.newPhoto({"id":7889334,"src":"096235297Sa_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7889334.html","width":160,"caption":"Cathedral Rocks","height":107});
															thumbnails[7889333] = clik.newPhoto({"id":7889333,"src":"096124910S_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7889333.html","width":160,"caption":"Misty Gate","height":107});
															thumbnails[7889332] = clik.newPhoto({"id":7889332,"src":"096104777S_thumb.jpg","galleries_id":425032,"server_id":1,"link":"photo_7889332.html","width":160,"caption":"Reflections","height":240});
															thumbnails[7986356] = clik.newPhoto({"id":7986356,"src":"099013995Sa_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7986356.html","width":160,"caption":"Grand Prismatic Spring","height":107});
															thumbnails[7889331] = clik.newPhoto({"id":7889331,"src":"092203558_thumb.jpg","galleries_id":425030,"server_id":1,"link":"photo_7889331.html","width":160,"caption":"After the Fire","height":240});
															thumbnails[7883950] = clik.newPhoto({"id":7883950,"src":"10B242194Sa_thumb.jpg","galleries_id":122355,"server_id":1,"link":"photo_7883950.html","width":160,"caption":"Autumn Sentinel","height":107});
															thumbnails[7991042] = clik.newPhoto({"id":7991042,"src":"10_110061SaT_thumb.jpg","galleries_id":122354,"server_id":1,"link":"photo_7991042.html","width":160,"caption":"Ferns in Sunlight","height":53});
															thumbnails[7883948] = clik.newPhoto({"id":7883948,"src":"10B242169S_thumb.jpg","galleries_id":122354,"server_id":1,"link":"photo_7883948.html","width":160,"caption":"Churchyard with Frost","height":56});
															thumbnails[7883946] = clik.newPhoto({"id":7883946,"src":"10B221965S_thumb.jpg","galleries_id":122354,"server_id":1,"link":"photo_7883946.html","width":160,"caption":"Autumn Colours","height":53});
															thumbnails[7883944] = clik.newPhoto({"id":7883944,"src":"10B211945S_thumb.jpg","galleries_id":122354,"server_id":1,"link":"photo_7883944.html","width":160,"caption":"Plantation","height":53});
															thumbnails[7883942] = clik.newPhoto({"id":7883942,"src":"10B211934Sb_thumb.jpg","galleries_id":122355,"server_id":1,"link":"photo_7883942.html","width":160,"caption":"Ancient Trees","height":108});
															thumbnails[7883940] = clik.newPhoto({"id":7883940,"src":"10B211904S_thumb.jpg","galleries_id":122355,"server_id":1,"link":"photo_7883940.html","width":160,"caption":"New Forest Autumn","height":107});
															thumbnails[7883938] = clik.newPhoto({"id":7883938,"src":"10B131741SdT_thumb.jpg","galleries_id":425031,"server_id":1,"link":"photo_7883938.html","width":160,"caption":"Truro Cathedral","height":240});
															thumbnails[7883936] = clik.newPhoto({"id":7883936,"src":"10B071544SbT_thumb.jpg","galleries_id":122355,"server_id":1,"link":"photo_7883936.html","width":160,"caption":"Granite and Water","height":107});
															thumbnails[7883934] = clik.newPhoto({"id":7883934,"src":"10B041403S_thumb.jpg","galleries_id":122354,"server_id":1,"link":"photo_7883934.html","width":160,"caption":"The Long Walk","height":53});
															thumbnails[7883931] = clik.newPhoto({"id":7883931,"src":"10A230786S_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7883931.html","width":160,"caption":"Fall Colors","height":107});
															thumbnails[7883929] = clik.newPhoto({"id":7883929,"src":"10A200584c_thumb.jpg","galleries_id":425032,"server_id":1,"link":"photo_7883929.html","width":160,"caption":"Watkins Glen","height":240});
															thumbnails[7883927] = clik.newPhoto({"id":7883927,"src":"10A140240_thumb.jpg","galleries_id":318568,"server_id":1,"link":"photo_7883927.html","width":160,"caption":"Conifer","height":107});
															thumbnails[7883925] = clik.newPhoto({"id":7883925,"src":"10A089931_thumb.jpg","galleries_id":425031,"server_id":1,"link":"photo_7883925.html","width":160,"caption":"The Chiltern Beechwoods","height":240});
															thumbnails[7883923] = clik.newPhoto({"id":7883923,"src":"102227547S_mono_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7883923.html","width":160,"caption":"Wilson's Inlet","height":53});
															thumbnails[7882695] = clik.newPhoto({"id":7882695,"src":"115104376aH_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_7882695.html","width":160,"caption":"Canal Rocks","height":107});
															thumbnails[7882694] = clik.newPhoto({"id":7882694,"src":"115104370a_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_7882694.html","width":160,"caption":"Canal Rocks","height":107});
															thumbnails[7882692] = clik.newPhoto({"id":7882692,"src":"114173992S_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7882692.html","width":160,"caption":"Sunset at Sugar Loaf","height":53});
															thumbnails[7882691] = clik.newPhoto({"id":7882691,"src":"114173961T_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_7882691.html","width":160,"caption":"Sugar Loaf Rock","height":107});
															thumbnails[7882690] = clik.newPhoto({"id":7882690,"src":"114173926Tmono_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_7882690.html","width":160,"caption":"Sugar Loaf Rock in B\/W","height":107});
															thumbnails[7882689] = clik.newPhoto({"id":7882689,"src":"113263526cS_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7882689.html","width":160,"caption":"Thistle Cove","height":53});
															thumbnails[7882688] = clik.newPhoto({"id":7882688,"src":"113223418_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7882688.html","width":160,"caption":"Bunda Cliffs","height":107});
															thumbnails[7882687] = clik.newPhoto({"id":7882687,"src":"113123188_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7882687.html","width":160,"caption":"Rosebud Sunset","height":107});
															thumbnails[7882686] = clik.newPhoto({"id":7882686,"src":"113113159_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7882686.html","width":160,"caption":"Rosebud Jetty","height":107});
															thumbnails[7882685] = clik.newPhoto({"id":7882685,"src":"113062752T_thumb.jpg","galleries_id":425029,"server_id":1,"link":"photo_7882685.html","width":160,"caption":"Guide Falls","height":240});
															thumbnails[7882684] = clik.newPhoto({"id":7882684,"src":"113042563_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7882684.html","width":160,"caption":"Pencil Pines Cascades","height":107});
															thumbnails[7882683] = clik.newPhoto({"id":7882683,"src":"113032466T_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7882683.html","width":160,"caption":"Mount Murchison","height":107});
															thumbnails[7882682] = clik.newPhoto({"id":7882682,"src":"113032430S_thumb.jpg","galleries_id":424280,"server_id":1,"link":"photo_7882682.html","width":160,"caption":"Lake Plimsoll","height":53});
															thumbnails[7882680] = clik.newPhoto({"id":7882680,"src":"113012352H_thumb.jpg","galleries_id":425029,"server_id":1,"link":"photo_7882680.html","width":160,"caption":"Shady Creek","height":240});
															thumbnails[7882678] = clik.newPhoto({"id":7882678,"src":"113012337T_thumb.jpg","galleries_id":425029,"server_id":1,"link":"photo_7882678.html","width":160,"caption":"Nelson Falls","height":240});
															thumbnails[7882677] = clik.newPhoto({"id":7882677,"src":"113012292T_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7882677.html","width":160,"caption":"Road to Queenstown","height":107});
															thumbnails[7872537] = clik.newPhoto({"id":7872537,"src":"11_2282261_C_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7872537.html","width":160,"caption":"Oast Houses","height":107});
															thumbnails[7872536] = clik.newPhoto({"id":7872536,"src":"11_2282237T_C_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7872536.html","width":160,"caption":"Horseshoe Falls","height":107});
															thumbnails[7872535] = clik.newPhoto({"id":7872535,"src":"112282236T1_thumb.jpg","galleries_id":425029,"server_id":1,"link":"photo_7872535.html","width":160,"caption":"Russell Falls","height":240});
															thumbnails[7872534] = clik.newPhoto({"id":7872534,"src":"11_2231699H_C_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7872534.html","width":160,"caption":"Forest Cascade","height":107});
															thumbnails[7868932] = clik.newPhoto({"id":7868932,"src":"11_2201516H_C2_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7868932.html","width":160,"caption":"Ferny Creek","height":107});
															thumbnails[7868930] = clik.newPhoto({"id":7868930,"src":"11_2191404T_C_thumb.jpg","galleries_id":425029,"server_id":1,"link":"photo_7868930.html","width":160,"caption":"Granite Jetty","height":240});
															thumbnails[7868928] = clik.newPhoto({"id":7868928,"src":"11_2191383_C_thumb.jpg","galleries_id":425029,"server_id":1,"link":"photo_7868928.html","width":160,"caption":"Forest Stream","height":240});
															thumbnails[7868926] = clik.newPhoto({"id":7868926,"src":"11_2191360H_C_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7868926.html","width":160,"caption":"Lower Lilydale Falls","height":107});
															thumbnails[7868924] = clik.newPhoto({"id":7868924,"src":"11_1310293H_C_thumb.jpg","galleries_id":424279,"server_id":1,"link":"photo_7868924.html","width":160,"caption":"Lost Jetty","height":107});
															thumbnails[7868456] = clik.newPhoto({"id":7868456,"src":"10_5079109Sa_C_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7868456.html","width":160,"caption":"Misty Sunrise","height":53});
															thumbnails[7868454] = clik.newPhoto({"id":7868454,"src":"10_4178645S_C_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7868454.html","width":160,"caption":"Sunset at the Jetty","height":53});
															thumbnails[7868452] = clik.newPhoto({"id":7868452,"src":"10_4128623c_C15_thumb.jpg","galleries_id":122352,"server_id":1,"link":"photo_7868452.html","width":160,"caption":"Cape Leeuwin Lighthouse","height":107});
															thumbnails[7983744] = clik.newPhoto({"id":7983744,"src":"07A300582_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7983744.html","width":160,"caption":"Misty Farm Sunrise","height":53});
															thumbnails[7868374] = clik.newPhoto({"id":7868374,"src":"10_A069823S_C_thumb.jpg","galleries_id":122355,"server_id":1,"link":"photo_7868374.html","width":160,"caption":"Chilterns Avenue","height":107});
															thumbnails[7985996] = clik.newPhoto({"id":7985996,"src":"091103218Sb_thumb.jpg","galleries_id":122351,"server_id":1,"link":"photo_7985996.html","width":160,"caption":"Sunrise at Quindalup","height":53});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[424274] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Australia","link":"gallery_424274.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7894346,7882688,7882687,7882686,7882685,7882684,7882683,7882682,7882680,7882678","id":424274,"singleSection":false});				  						galleries[424275] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"USA","link":"gallery_424275.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8573350,7990156,7987785,7986356,7986044,7965360,7898062,7898061,7894425,7894424","id":424275,"singleSection":false});				  						galleries[424276] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"UK","link":"gallery_424276.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8222845,8222843,8104357","id":424276,"singleSection":false});				  						galleries[424277] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Western Australia","link":"gallery_424277.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8728607,8573411,8573352,8573351,7985996,7983744,7894398,7894397,7894396,7894395","id":424277,"singleSection":false});				  						galleries[424279] = clik.newGallery({"parentGallery":424274,"usePopups":true,"title":"Landscapes Australia","link":"gallery_424279.html","maxRecords":0.0,"photoIDs":[7882688.0,7882687.0,7882686.0,7882684.0,7882683.0,7882677.0,7872537.0,7872536.0,7872534.0,7868932.0,7868926.0,7868924.0],"skipIndex":0,"section_code":"gallery","featured_images":"7882688,7882687,7882686,7882684,7882683,7882677,7872537,7872536,7872534,7868932","id":424279,"singleSection":false});				  						galleries[424280] = clik.newGallery({"parentGallery":424274,"usePopups":true,"title":"Panoramas Australia","link":"gallery_424280.html","maxRecords":0.0,"photoIDs":[7894346.0,7882682.0],"skipIndex":0,"section_code":"gallery","featured_images":"7894346,7882682","id":424280,"singleSection":false});				  						galleries[425029] = clik.newGallery({"parentGallery":424274,"usePopups":true,"title":"Portraits Australia","link":"gallery_425029.html","maxRecords":0.0,"photoIDs":[7882685.0,7882680.0,7882678.0,7872535.0,7868930.0,7868928.0],"skipIndex":0,"section_code":"gallery","featured_images":"7882685,7882680,7882678,7872535,7868930,7868928","id":425029,"singleSection":false});				  						galleries[122352] = clik.newGallery({"parentGallery":424277,"usePopups":true,"title":"Landscapes Western Australia","link":"gallery_122352.html","maxRecords":0.0,"photoIDs":[8573411.0,7894398.0,7894344.0,7882695.0,7882694.0,7882691.0,7882690.0,7868452.0],"skipIndex":0,"section_code":"gallery","featured_images":"8573411,7894398,7894344,7882695,7882694,7882691,7882690,7868452","id":122352,"singleSection":false});				  						galleries[122351] = clik.newGallery({"parentGallery":424277,"usePopups":true,"title":"Panoramas Western Australia","link":"gallery_122351.html","maxRecords":0.0,"photoIDs":[7894394.0,8728607.0,7894395.0,7894396.0,8573352.0,7894397.0,7883923.0,7882692.0,7882689.0,7868456.0,7868454.0,7983744.0,7985996.0],"skipIndex":0,"section_code":"gallery","featured_images":"8728607,8573352,7985996,7983744,7894397,7894396,7894395,7894394,7883923,7882692","id":122351,"singleSection":false});				  						galleries[425030] = clik.newGallery({"parentGallery":424277,"usePopups":true,"title":"Portraits Western Australia","link":"gallery_425030.html","maxRecords":0.0,"photoIDs":[7894348.0,8573351.0,7894347.0,7889331.0],"skipIndex":0,"section_code":"gallery","featured_images":"8573351,7894348,7894347,7889331","id":425030,"singleSection":false});				  						galleries[122355] = clik.newGallery({"parentGallery":424276,"usePopups":true,"title":"Landscapes UK","link":"gallery_122355.html","maxRecords":0.0,"photoIDs":[8015863.0,7883950.0,7883942.0,7883940.0,7883936.0,7868374.0],"skipIndex":0,"section_code":"gallery","featured_images":"8015863,7883950,7883942,7883940,7883936,7868374","id":122355,"singleSection":false});				  						galleries[122354] = clik.newGallery({"parentGallery":424276,"usePopups":true,"title":"Panoramas UK","link":"gallery_122354.html","maxRecords":0.0,"photoIDs":[7991042.0,7883948.0,7883946.0,7883944.0,7883934.0],"skipIndex":0,"section_code":"gallery","featured_images":"7991042,7883948,7883946,7883944,7883934","id":122354,"singleSection":false});				  						galleries[425031] = clik.newGallery({"parentGallery":424276,"usePopups":true,"title":"Portraits UK","link":"gallery_425031.html","maxRecords":0.0,"photoIDs":[8104357.0,7883938.0,7883925.0],"skipIndex":0,"section_code":"gallery","featured_images":8104357.0,"id":425031,"singleSection":false});				  						galleries[438417] = clik.newGallery({"parentGallery":424276,"usePopups":true,"title":"Visualisations UK","link":"gallery_438417.html","maxRecords":0.0,"photoIDs":[8222843.0,8222845.0],"skipIndex":0,"section_code":"gallery","featured_images":"8222845,8222843","id":438417,"singleSection":false});				  						galleries[318568] = clik.newGallery({"parentGallery":424275,"usePopups":true,"title":"Landscapes USA","link":"gallery_318568.html","maxRecords":0.0,"photoIDs":[7898061.0,7987785.0,7894399.0,7889335.0,7889334.0,7889333.0,7986356.0,7883931.0,7883927.0],"skipIndex":0,"section_code":"gallery","featured_images":"7987785,7986356,7898061,7894399,7889335,7889334,7889333,7883931,7883927","id":318568,"singleSection":false});				  						galleries[318567] = clik.newGallery({"parentGallery":424275,"usePopups":true,"title":"Panoramas USA","link":"gallery_318567.html","maxRecords":0.0,"photoIDs":[7898062.0,7986044.0,7889341.0,7889340.0,7965360.0,7889339.0,7889337.0,7889336.0,7990156.0],"skipIndex":0,"section_code":"gallery","featured_images":"7990156,7986044,7965360,7898062,7889341,7889340,7889339,7889337,7889336","id":318567,"singleSection":false});				  						galleries[425032] = clik.newGallery({"parentGallery":424275,"usePopups":true,"title":"Portraits USA","link":"gallery_425032.html","maxRecords":0.0,"photoIDs":[8573350.0,7889338.0,7889332.0,7883929.0],"skipIndex":0,"section_code":"gallery","featured_images":"8573350,7889338,7889332,7883929","id":425032,"singleSection":false});				  						galleries[425880] = clik.newGallery({"parentGallery":424275,"usePopups":true,"title":"Red Series USA","link":"gallery_425880.html","maxRecords":0.0,"photoIDs":[7894416.0,7894417.0,7894418.0,7894419.0,7894420.0,7894421.0,7894422.0,7894423.0,7894424.0,7894425.0],"skipIndex":0,"section_code":"gallery","featured_images":"7894425,7894424,7894423,7894422,7894421,7894420,7894419,7894418,7894417,7894416","id":425880,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[242356] = '7862061,7862058,7862057,7862056';
imageSets[1] = '8222843,8015863,7898061,8222845,7987785,7894398,7894399,7894344,7990156,7889335,7889334,7991042,7883950,7883942,7883931,7882691,7882687,7882677,7872534,7868932,7868374';
imageSets[2] = '8222843,8104357,8222845';
imageSets[3] = '7889331';
imageSets[242357] = '7862061,7862058,7862057,7862056';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/michaelfromoz/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/michaelfromoz/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 && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section509221.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 && 'section509221' != '') {
					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 Taylor - Photographic Fine Art: ' + 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.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Details: </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><br>Select from this drop down menu to Buy this image online.<br> Price includes delivery worldwide:<br></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="MICHAELFROMOZ">';
			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;
	}
}

			

