window.thumbnails = {};
															thumbnails[333722] = clik.newPhoto({"id":333722,"src":"kangaroo00017_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_333722.html","width":130,"caption":"Kangaroo taking it easy, Perth, Australia ","height":87});
															thumbnails[376395] = clik.newPhoto({"id":376395,"src":"giraffe0626_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_376395.html","width":130,"caption":"Towering","height":104});
															thumbnails[376473] = clik.newPhoto({"id":376473,"src":"monkeys00031_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_376473.html","width":130,"caption":"Brotherly love","height":98});
															thumbnails[376474] = clik.newPhoto({"id":376474,"src":"penguin00026_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_376474.html","width":130,"caption":"Cooling dip","height":87});
															thumbnails[405921] = clik.newPhoto({"id":405921,"src":"Deer_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_405921.html","width":130,"caption":"Deer feeding ","height":87});
															thumbnails[1717249] = clik.newPhoto({"id":1717249,"src":"Sailing-into-sunset_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_1717249.html","width":130,"caption":"Sailing into the sunset","height":194});
															thumbnails[1782638] = clik.newPhoto({"id":1782638,"src":"Pyramid_thumb.jpg","galleries_id":27955,"server_id":1,"link":"photo_1782638.html","width":130,"caption":"Pyramid entertainment","height":98});
															thumbnails[1785240] = clik.newPhoto({"id":1785240,"src":"Parrots-1-C00931(1)_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_1785240.html","width":130,"caption":"Wild parrots","height":98});
															thumbnails[2544469] = clik.newPhoto({"id":2544469,"src":"Best of friends_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_2544469.html","width":130,"caption":"Best Friends","height":98});
															thumbnails[8294548] = clik.newPhoto({"id":8294548,"src":"490001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294548.html","width":130,"caption":"","height":163});
															thumbnails[2544488] = clik.newPhoto({"id":2544488,"src":"Stay back!_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_2544488.html","width":130,"caption":"Stay back!","height":98});
															thumbnails[8294300] = clik.newPhoto({"id":8294300,"src":"280001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294300.html","width":130,"caption":"","height":163});
															thumbnails[2544532] = clik.newPhoto({"id":2544532,"src":"Flamingo_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_2544532.html","width":130,"caption":"Flamingo","height":98});
															thumbnails[8294427] = clik.newPhoto({"id":8294427,"src":"430001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294427.html","width":130,"caption":"","height":163});
															thumbnails[8294280] = clik.newPhoto({"id":8294280,"src":"260001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294280.html","width":130,"caption":"","height":194});
															thumbnails[341968] = clik.newPhoto({"id":341968,"src":"maldives-2_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_341968.html","width":130,"caption":"A paradise dream in real life, Maldives.","height":87});
															thumbnails[1717182] = clik.newPhoto({"id":1717182,"src":"Aruba-2_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_1717182.html","width":130,"caption":"Setting sun in Aruba","height":194});
															thumbnails[1717201] = clik.newPhoto({"id":1717201,"src":"Curacao-beach-2_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_1717201.html","width":130,"caption":"Beach paradise.","height":87});
															thumbnails[8294290] = clik.newPhoto({"id":8294290,"src":"240001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294290.html","width":130,"caption":"","height":194});
															thumbnails[8294303] = clik.newPhoto({"id":8294303,"src":"300001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294303.html","width":130,"caption":"","height":182});
															thumbnails[379762] = clik.newPhoto({"id":379762,"src":"sunrise36161_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_379762.html","width":130,"caption":"Sun rise over Bay of Islands ","height":173});
															thumbnails[8294307] = clik.newPhoto({"id":8294307,"src":"320001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294307.html","width":130,"caption":"","height":169});
															thumbnails[1717218] = clik.newPhoto({"id":1717218,"src":"Aruba-sunset-3149_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_1717218.html","width":130,"caption":"Setting sun in Aruba","height":98});
															thumbnails[8294831] = clik.newPhoto({"id":8294831,"src":"470001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294831.html","width":130,"caption":"","height":163});
															thumbnails[8294929] = clik.newPhoto({"id":8294929,"src":"500001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294929.html","width":130,"caption":"","height":163});
															thumbnails[333508] = clik.newPhoto({"id":333508,"src":"pyramid00006_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_333508.html","width":130,"caption":"Pyramids, Egypt","height":98});
															thumbnails[333691] = clik.newPhoto({"id":333691,"src":"sunset0694_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_333691.html","width":130,"caption":"Sunsetting in Perth, New Zealand  ","height":98});
															thumbnails[341567] = clik.newPhoto({"id":341567,"src":"venicereflection1A_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_341567.html","width":130,"caption":"Venetian glass","height":195});
															thumbnails[341588] = clik.newPhoto({"id":341588,"src":"harbourbridge1156_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341588.html","width":130,"caption":"Sydney Harbour Bridge at sunset","height":98});
															thumbnails[392281] = clik.newPhoto({"id":392281,"src":"tongarirrocrossing2_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_392281.html","width":130,"caption":"Volcanic oasis","height":87});
															thumbnails[392491] = clik.newPhoto({"id":392491,"src":"abeltasman21_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_392491.html","width":130,"caption":"Taste of paradise","height":87});
															thumbnails[422795] = clik.newPhoto({"id":422795,"src":"Canvas-print_thumb.jpg","galleries_id":33787,"server_id":1,"link":"photo_422795.html","width":130,"caption":"High quality canvas print  ","height":194});
															thumbnails[1785234] = clik.newPhoto({"id":1785234,"src":"Curaco-Beach_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_1785234.html","width":130,"caption":"Curaco Beach","height":98});
															thumbnails[8294934] = clik.newPhoto({"id":8294934,"src":"200001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294934.html","width":130,"caption":"","height":98});
															thumbnails[376323] = clik.newPhoto({"id":376323,"src":"sunsetireland4393_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_376323.html","width":130,"caption":"Majestic","height":98});
															thumbnails[392182] = clik.newPhoto({"id":392182,"src":"ninetymilebeachnz2_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_392182.html","width":130,"caption":"Into infinity","height":88});
															thumbnails[392292] = clik.newPhoto({"id":392292,"src":"tongarirocrossing3_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_392292.html","width":130,"caption":"Volcanic Crater","height":87});
															thumbnails[393171] = clik.newPhoto({"id":393171,"src":"churchofthegoodshepherd17_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_393171.html","width":130,"caption":"Outside inside","height":182});
															thumbnails[393734] = clik.newPhoto({"id":393734,"src":"sydneyharbourbridge002_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393734.html","width":130,"caption":"Sydney Harbour Bridge and palm","height":87});
															thumbnails[392495] = clik.newPhoto({"id":392495,"src":"abeltasman31_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_392495.html","width":130,"caption":"World renowned for its golden beaches ","height":87});
															thumbnails[8294295] = clik.newPhoto({"id":8294295,"src":"340001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8294295.html","width":130,"caption":"","height":93});
															thumbnails[376288] = clik.newPhoto({"id":376288,"src":"troopingthecolour4593_thumb.jpg","galleries_id":27955,"server_id":1,"link":"photo_376288.html","width":130,"caption":"Trooping the colour","height":93});
															thumbnails[376388] = clik.newPhoto({"id":376388,"src":"paihia3618_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_376388.html","width":130,"caption":"Sunrise in New Zealand  ","height":98});
															thumbnails[392384] = clik.newPhoto({"id":392384,"src":"franzjosefglacier1_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_392384.html","width":130,"caption":"Reflective mood","height":87});
															thumbnails[392427] = clik.newPhoto({"id":392427,"src":"maldivesheron-3_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_392427.html","width":130,"caption":"Heron","height":87});
															thumbnails[393216] = clik.newPhoto({"id":393216,"src":"sydneyoperahouse15_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_393216.html","width":130,"caption":"One million tiles ","height":194});
															thumbnails[393747] = clik.newPhoto({"id":393747,"src":"sydneyharbourbridge4_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393747.html","width":130,"caption":"Sydney Harbour Bridge at dusk","height":87});
															thumbnails[8293969] = clik.newPhoto({"id":8293969,"src":"140001_thumb.jpg","galleries_id":27951,"server_id":38,"link":"photo_8293969.html","width":130,"caption":"","height":87});
															thumbnails[333626] = clik.newPhoto({"id":333626,"src":"egyptian001_thumb.jpg","galleries_id":27955,"server_id":1,"link":"photo_333626.html","width":130,"caption":"Best of friends","height":87});
															thumbnails[376318] = clik.newPhoto({"id":376318,"src":"paihia3622_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_376318.html","width":130,"caption":"Sunrise over the Bay of Islands","height":98});
															thumbnails[392415] = clik.newPhoto({"id":392415,"src":"mitrepeak2230_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_392415.html","width":130,"caption":"Milford Magic","height":98});
															thumbnails[393784] = clik.newPhoto({"id":393784,"src":"sydneyoperahousenight16_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393784.html","width":130,"caption":"Icon","height":87});
															thumbnails[333490] = clik.newPhoto({"id":333490,"src":"lunapark1000_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_333490.html","width":130,"caption":"Luna Park","height":93});
															thumbnails[341583] = clik.newPhoto({"id":341583,"src":"harbourbridge0999_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341583.html","width":130,"caption":"Sydney Harbour Bridge and Opera House","height":98});
															thumbnails[376214] = clik.newPhoto({"id":376214,"src":"mtcook1751_thumb.jpg","galleries_id":27954,"server_id":1,"link":"photo_376214.html","width":130,"caption":"Sunset over Mount Cook","height":98});
															thumbnails[379802] = clik.newPhoto({"id":379802,"src":"The-days-takings3_thumb.jpg","galleries_id":27955,"server_id":1,"link":"photo_379802.html","width":130,"caption":"The day's takings","height":194});
															thumbnails[393640] = clik.newPhoto({"id":393640,"src":"mtcookflight0033_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_393640.html","width":130,"caption":"Mount Cook National Park from 4000 metres","height":93});
															thumbnails[340697] = clik.newPhoto({"id":340697,"src":"laser3083_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_340697.html","width":130,"caption":"Surrounded by lasers","height":98});
															thumbnails[376199] = clik.newPhoto({"id":376199,"src":"mtcook1603_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_376199.html","width":130,"caption":"Alpine paradise","height":98});
															thumbnails[379797] = clik.newPhoto({"id":379797,"src":"The-days-takings-sepia--14_thumb.jpg","galleries_id":27955,"server_id":1,"link":"photo_379797.html","width":130,"caption":"The day's takings","height":194});
															thumbnails[393227] = clik.newPhoto({"id":393227,"src":"sydneyoperahousenight29_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393227.html","width":130,"caption":"Sydney Opera House ","height":87});
															thumbnails[1785231] = clik.newPhoto({"id":1785231,"src":"Aruba-1_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_1785231.html","width":130,"caption":"Aruba sunset","height":173});
															thumbnails[333496] = clik.newPhoto({"id":333496,"src":"eiffeltour00005_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_333496.html","width":130,"caption":"The Eiffel Tour, Paris","height":87});
															thumbnails[333521] = clik.newPhoto({"id":333521,"src":"brycecanyon38641_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_333521.html","width":130,"caption":"Bryce Canyon on a Winters morning","height":98});
															thumbnails[392522] = clik.newPhoto({"id":392522,"src":"abeltasman36_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_392522.html","width":130,"caption":"51 km of heaven","height":182});
															thumbnails[393209] = clik.newPhoto({"id":393209,"src":"icecave2529_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_393209.html","width":130,"caption":"Blue ice","height":98});
															thumbnails[405856] = clik.newPhoto({"id":405856,"src":"britishmuseum032_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_405856.html","width":130,"caption":"Sky of glass","height":87});
															thumbnails[333590] = clik.newPhoto({"id":333590,"src":"brycecanyon3868_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_333590.html","width":130,"caption":"Bryce Canyon contrasting against fresh snow  ","height":98});
															thumbnails[341624] = clik.newPhoto({"id":341624,"src":"paris00030_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341624.html","width":130,"caption":"The Louvre Pyramid, Paris","height":98});
															thumbnails[342000] = clik.newPhoto({"id":342000,"src":"sepialeaves_thumb.jpg","galleries_id":27953,"server_id":1,"link":"photo_342000.html","width":130,"caption":"Sepia Leaves","height":87});
															thumbnails[392172] = clik.newPhoto({"id":392172,"src":"ninetymilebeachnz1_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_392172.html","width":130,"caption":"Ninety Mile Beach","height":192});
															thumbnails[342073] = clik.newPhoto({"id":342073,"src":"bussleton00037_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_342073.html","width":130,"caption":"Busselton Jetty, Western Australia","height":194});
															thumbnails[375990] = clik.newPhoto({"id":375990,"src":"duklingfour00001_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_375990.html","width":130,"caption":"Duk Ling, Hong Kong","height":98});
															thumbnails[393727] = clik.newPhoto({"id":393727,"src":"londoneye00022_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393727.html","width":130,"caption":"Moon and London Eye ","height":98});
															thumbnails[333493] = clik.newPhoto({"id":333493,"src":"bigben27_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_333493.html","width":130,"caption":"Big Ben ","height":98});
															thumbnails[342032] = clik.newPhoto({"id":342032,"src":"bussleton00035_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_342032.html","width":130,"caption":"Busselton Beach, Western Australia.","height":194});
															thumbnails[375995] = clik.newPhoto({"id":375995,"src":"duklingthree022_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_375995.html","width":130,"caption":"Duk Ling at sunset","height":98});
															thumbnails[2544701] = clik.newPhoto({"id":2544701,"src":"Lions_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_2544701.html","width":130,"caption":"Lions","height":194});
															thumbnails[333506] = clik.newPhoto({"id":333506,"src":"londoneye00013_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_333506.html","width":130,"caption":"The London Eye, England","height":87});
															thumbnails[393163] = clik.newPhoto({"id":393163,"src":"lantauisland26_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_393163.html","width":130,"caption":"Lantau Island","height":87});
															thumbnails[405884] = clik.newPhoto({"id":405884,"src":"londonbridge28_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_405884.html","width":130,"caption":"Tower Bridge - one of London's great landmarks","height":87});
															thumbnails[375997] = clik.newPhoto({"id":375997,"src":"geyser3456_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_375997.html","width":130,"caption":"The 'Prince of Wales Feathers' geyser ","height":173});
															thumbnails[341594] = clik.newPhoto({"id":341594,"src":"lasvegas3803_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341594.html","width":130,"caption":"The Venetian Hotel, Las Vegas ","height":98});
															thumbnails[376009] = clik.newPhoto({"id":376009,"src":"grancanyon3920_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_376009.html","width":130,"caption":"Grand Canyon serenity","height":173});
															thumbnails[376215] = clik.newPhoto({"id":376215,"src":"rotorua3514_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_376215.html","width":130,"caption":"Thermal wonderland","height":173});
															thumbnails[392390] = clik.newPhoto({"id":392390,"src":"milfordsound1_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_392390.html","width":130,"caption":"Sound of silence","height":194});
															thumbnails[341680] = clik.newPhoto({"id":341680,"src":"verona1D_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341680.html","width":130,"caption":"Amphitheatre, Verona, Italy ","height":85});
															thumbnails[393634] = clik.newPhoto({"id":393634,"src":"mtcookflight14_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_393634.html","width":130,"caption":"Mt Cook from the air","height":194});
															thumbnails[376260] = clik.newPhoto({"id":376260,"src":"tongarirocrossing5_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_376260.html","width":130,"caption":"Emerald Lakes","height":194});
															thumbnails[393667] = clik.newPhoto({"id":393667,"src":"hongkongnight31_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393667.html","width":130,"caption":"Hong Kong's neon lights","height":87});
															thumbnails[341597] = clik.newPhoto({"id":341597,"src":"paris00027_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341597.html","width":130,"caption":"The Louvre,Paris","height":173});
															thumbnails[376204] = clik.newPhoto({"id":376204,"src":"mtcook1713_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_376204.html","width":130,"caption":"Mountain meditation","height":173});
															thumbnails[333604] = clik.newPhoto({"id":333604,"src":"brycecanyon3879_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_333604.html","width":130,"caption":"Getting a sense of scale in Bryce Canyon","height":173});
															thumbnails[333589] = clik.newPhoto({"id":333589,"src":"brycecanyon38661_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_333589.html","width":130,"caption":"Bryce Canyon, first signs of Spring","height":173});
															thumbnails[392425] = clik.newPhoto({"id":392425,"src":"mitrepeak2231_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_392425.html","width":130,"caption":"Mitre Peak ","height":173});
															thumbnails[405873] = clik.newPhoto({"id":405873,"src":"lighthouse001_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_405873.html","width":130,"caption":"Portland Bill","height":194});
															thumbnails[393166] = clik.newPhoto({"id":393166,"src":"bigbudha31_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393166.html","width":130,"caption":"Big Buddha","height":194});
															thumbnails[341657] = clik.newPhoto({"id":341657,"src":"venicecolumns1E_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341657.html","width":130,"caption":"Doge's Palace (Palazzo Ducale) Venice, Italy","height":198});
															thumbnails[392426] = clik.newPhoto({"id":392426,"src":"mitrepeak2224_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_392426.html","width":130,"caption":"Stunning Milford Sound","height":173});
															thumbnails[341672] = clik.newPhoto({"id":341672,"src":"venicegondola2_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341672.html","width":130,"caption":"Gondola,Venice  ","height":196});
															thumbnails[342010] = clik.newPhoto({"id":342010,"src":"abeltasman1_thumb.jpg","galleries_id":31963,"server_id":1,"link":"photo_342010.html","width":130,"caption":"Beach perfection, New Zealand","height":182});
															thumbnails[341640] = clik.newPhoto({"id":341640,"src":"venice6_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_341640.html","width":130,"caption":"Canal Grande, Venice, Italy","height":198});
															thumbnails[376030] = clik.newPhoto({"id":376030,"src":"hkharbourone1005_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_376030.html","width":130,"caption":"Chinese New Year, Hong Kong harbour","height":173});
															thumbnails[376280] = clik.newPhoto({"id":376280,"src":"venice4_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_376280.html","width":130,"caption":"Elegance","height":198});
															thumbnails[379738] = clik.newPhoto({"id":379738,"src":"gondolasepia42_thumb.jpg","galleries_id":27950,"server_id":1,"link":"photo_379738.html","width":130,"caption":"Italian Elegance","height":198});
															thumbnails[393212] = clik.newPhoto({"id":393212,"src":"sydneyoperahouse12_thumb.jpg","galleries_id":27952,"server_id":1,"link":"photo_393212.html","width":130,"caption":"Iconic","height":194});
															thumbnails[2544586] = clik.newPhoto({"id":2544586,"src":"Roar of the lion_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_2544586.html","width":130,"caption":"Roar of the lion","height":194});
															thumbnails[2544576] = clik.newPhoto({"id":2544576,"src":"Elephant_thumb.jpg","galleries_id":27123,"server_id":1,"link":"photo_2544576.html","width":130,"caption":"Elephant","height":194});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[27951] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_27951.html","maxRecords":0.0,"photoIDs":[8294548.0,8294300.0,8294427.0,8294280.0,8294290.0,8294303.0,8294307.0,8294831.0,8294929.0,8294934.0,8294295.0,8293969.0],"skipIndex":0,"section_code":"gallery","featured_images":8294290.0,"id":27951,"singleSection":false});				  						galleries[27952] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architectural","link":"gallery_27952.html","maxRecords":0.0,"photoIDs":[333508.0,341588.0,393734.0,393747.0,393784.0,341583.0,393227.0,333496.0,341624.0,393727.0,333493.0,333506.0,405884.0,341594.0,341680.0,393667.0,341597.0,405873.0,393166.0,341657.0,341672.0,341640.0,393212.0],"skipIndex":0,"section_code":"gallery","featured_images":"341672,341657,341640","id":27952,"singleSection":false});				  						galleries[31963] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seascapes","link":"gallery_31963.html","maxRecords":0.0,"photoIDs":[341968.0,1717201.0,392491.0,392182.0,392495.0,392427.0,1785231.0,392522.0,392172.0,342073.0,342032.0,342010.0],"skipIndex":0,"section_code":"gallery","featured_images":392172.0,"id":31963,"singleSection":false});				  						galleries[27954] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sunset and sunrise","link":"gallery_27954.html","maxRecords":0.0,"photoIDs":[1717249.0,1717182.0,379762.0,1717218.0,333691.0,376323.0,376388.0,376318.0,376214.0],"skipIndex":0,"section_code":"gallery","featured_images":"1717249,1717182","id":27954,"singleSection":false});				  						galleries[27950] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_27950.html","maxRecords":0.0,"photoIDs":[392281.0,1785234.0,392292.0,392384.0,392415.0,393640.0,376199.0,333521.0,333590.0,375990.0,375995.0,393163.0,375997.0,376009.0,376215.0,392390.0,393634.0,376260.0,376204.0,333604.0,333589.0,392425.0,392426.0,376030.0,376280.0,379738.0],"skipIndex":0,"section_code":"gallery","featured_images":"392390,376280,376260","id":27950,"singleSection":false});				  						galleries[27953] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract","link":"gallery_27953.html","maxRecords":0.0,"photoIDs":[341567.0,393171.0,393216.0,333490.0,340697.0,393209.0,405856.0,342000.0],"skipIndex":0,"section_code":"gallery","featured_images":"393216,341567","id":27953,"singleSection":false});				  						galleries[27955] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_27955.html","maxRecords":0.0,"photoIDs":[1782638.0,376288.0,333626.0,379802.0,379797.0],"skipIndex":0,"section_code":"gallery","featured_images":379797.0,"id":27955,"singleSection":false});				  						galleries[27123] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_27123.html","maxRecords":0.0,"photoIDs":[333722.0,376395.0,376473.0,376474.0,405921.0,1785240.0,2544469.0,2544488.0,2544532.0,2544701.0,2544586.0,2544576.0],"skipIndex":0,"section_code":"gallery","featured_images":"2544701,2544586,2544488","id":27123,"singleSection":false});				  						galleries[33787] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Canvas prints and unframed photos","link":"gallery_33787.html","maxRecords":0.0,"photoIDs":[422795.0],"skipIndex":0,"section_code":"gallery","featured_images":422795.0,"id":33787,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8294290,2544701,2544586,2544532,2544488,2544469,1785240,1785234,1785231,1717249,1717182,405856,393784,392390,392182,392172,379802,376215,376214,375990,341968,341657,341640,341588,341583,333590,333506,333490';
imageSets[2] = '8294290,2544701,2544586,2544488,1717249,1717182,422795,393216,392390,392172,379797,376280,376260,341672,341657,341640,341567';
imageSets[3] = '8294934,8294929,8294831,8294548,8294427,8294307,8294303,8294300,8294295,8294290,8294280,8293969,2544701,2544586,2544576,2544532,2544488,2544469,1785240,1785234,1785231,1782638,1717249,1717218,1717201,1717182,422795,405921,405884,405873,405856,393784,393747,393734,393727,393667,393640,393634,393227,393216,393212,393209,393171,393166,393163,392522,392495,392491,392427,392426';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/photosfor/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/photosfor/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/photosfor/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/photosfor/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/photosfor/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/photosfor/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/photosfor/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 += '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 = 'PHOTOS FOR HOME: ' + 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>Richard Hider </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>Richard Hider  </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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="richard.hider@photosforhome.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="richard.hider@photosforhome.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

