window.thumbnails = {};
															thumbnails[4181976] = clik.newPhoto({"id":4181976,"src":"banner_black_430x71sm_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":22});
															thumbnails[4805805] = clik.newPhoto({"id":4805805,"src":"BulkHandling1_packard_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"CBH Depot, Merredin Western Australia","height":212});
															thumbnails[4057337] = clik.newPhoto({"id":4057337,"src":"E_Tarp_Merredin_packard1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Inside E Type","height":56});
															thumbnails[5779239] = clik.newPhoto({"id":5779239,"src":"Harvestbackground_packard_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":92});
															thumbnails[5779246] = clik.newPhoto({"id":5779246,"src":"Harvestbackground_packard2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":87});
															thumbnails[4078216] = clik.newPhoto({"id":4078216,"src":"me_shot_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The photographer, Richard Packard.","height":193});
															thumbnails[6528536] = clik.newPhoto({"id":6528536,"src":"PIbrandcompacttrans_copy123_thumb.png","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":303});
															thumbnails[5781001] = clik.newPhoto({"id":5781001,"src":"website_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":105});
															thumbnails[6672503] = clik.newPhoto({"id":6672503,"src":"Fordson_6627web_thumb.jpg","galleries_id":364596,"server_id":15,"link":"photo_6672503.html","width":130,"caption":"","height":195});
															thumbnails[6672505] = clik.newPhoto({"id":6672505,"src":"Fordson_6633web_thumb.jpg","galleries_id":364596,"server_id":15,"link":"photo_6672505.html","width":130,"caption":"","height":195});
															thumbnails[6672507] = clik.newPhoto({"id":6672507,"src":"Fordson_6640solarisedweb_thumb.jpg","galleries_id":364596,"server_id":15,"link":"photo_6672507.html","width":130,"caption":"","height":195});
															thumbnails[6672510] = clik.newPhoto({"id":6672510,"src":"Fordson_6641web_thumb.jpg","galleries_id":364596,"server_id":15,"link":"photo_6672510.html","width":130,"caption":"","height":195});
															thumbnails[6672560] = clik.newPhoto({"id":6672560,"src":"Fordson_6642web_thumb.jpg","galleries_id":364596,"server_id":15,"link":"photo_6672560.html","width":130,"caption":"","height":204});
															thumbnails[6672616] = clik.newPhoto({"id":6672616,"src":"fORDSONbwwebPACKARD_thumb.jpg","galleries_id":364596,"server_id":15,"link":"photo_6672616.html","width":130,"caption":"","height":195});
															thumbnails[6672618] = clik.newPhoto({"id":6672618,"src":"COW2WEBPACKARD_E106DF60-24E8-5EC4-4FBE6B7696DCA07A_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_6672618.html","width":130,"caption":"","height":236});
															thumbnails[6672658] = clik.newPhoto({"id":6672658,"src":"CowbwwebPACKARD_E10789DA-24E8-5EC4-4F7DA1763D7E9BEB_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_6672658.html","width":130,"caption":"","height":195});
															thumbnails[6672746] = clik.newPhoto({"id":6672746,"src":"Goldfields106web_thumb.jpg","galleries_id":242968,"server_id":15,"link":"photo_6672746.html","width":130,"caption":"","height":195});
															thumbnails[6672754] = clik.newPhoto({"id":6672754,"src":"0056Seeding_packardimagesbwed_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_6672754.html","width":130,"caption":"","height":191});
															thumbnails[7085334] = clik.newPhoto({"id":7085334,"src":"Broadwater003_thumb.jpg","galleries_id":383643,"server_id":15,"link":"photo_7085334.html","width":130,"caption":"Evening Light","height":195});
															thumbnails[7085335] = clik.newPhoto({"id":7085335,"src":"Broadwater001_thumb.jpg","galleries_id":383643,"server_id":15,"link":"photo_7085335.html","width":130,"caption":"Arum Lily","height":210});
															thumbnails[7085336] = clik.newPhoto({"id":7085336,"src":"Broadwater004_thumb.jpg","galleries_id":383643,"server_id":15,"link":"photo_7085336.html","width":130,"caption":"","height":83});
															thumbnails[7085337] = clik.newPhoto({"id":7085337,"src":"Broadwater002_thumb.jpg","galleries_id":383643,"server_id":15,"link":"photo_7085337.html","width":130,"caption":"","height":248});
															thumbnails[7514017] = clik.newPhoto({"id":7514017,"src":"bales001bwweb_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_7514017.html","width":160,"caption":"Straw Bale Stack","height":246});
															thumbnails[8846958] = clik.newPhoto({"id":8846958,"src":"IMG_8599_HDRweb1_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8846958.html","width":260,"caption":"The Old Workshop","height":391});
															thumbnails[8847563] = clik.newPhoto({"id":8847563,"src":"IMG_8546_HDRwebv2_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847563.html","width":260,"caption":"Sydney Harbour Bridge","height":391});
															thumbnails[6054654] = clik.newPhoto({"id":6054654,"src":"0017Flora_Fauna_packardimages_thumb.jpg","galleries_id":242968,"server_id":15,"link":"photo_6054654.html","width":130,"caption":"Fence Series 001","height":87});
															thumbnails[8846948] = clik.newPhoto({"id":8846948,"src":"IMG_8348_HDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8846948.html","width":160,"caption":"The Berowra Waters Ferry","height":121});
															thumbnails[8847109] = clik.newPhoto({"id":8847109,"src":"IMG_7199_v2bwHDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847109.html","width":260,"caption":"London Paddington","height":391});
															thumbnails[8847110] = clik.newPhoto({"id":8847110,"src":"IMG_7202_HDRweb_21C4ADFD-1E4F-37DC-7129D489A0FC9AC1_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847110.html","width":260,"caption":"London Paddington - Colour Landscape","height":173});
															thumbnails[8847111] = clik.newPhoto({"id":8847111,"src":"IMG_7466_HDRweb_21C53111-1E4F-37DC-717E80D76CAF542C_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847111.html","width":260,"caption":"Miss Cumbria 4 - Windermere","height":170});
															thumbnails[8847112] = clik.newPhoto({"id":8847112,"src":"IMG_7507_HDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847112.html","width":260,"caption":"Lake District walking trail","height":391});
															thumbnails[8847113] = clik.newPhoto({"id":8847113,"src":"IMG_7844_HDRweb_21C62724-1E4F-37DC-71D9DEE847D3E6BC_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847113.html","width":260,"caption":"Newlyn Trawler","height":176});
															thumbnails[8847115] = clik.newPhoto({"id":8847115,"src":"IMG_7872_HDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847115.html","width":260,"caption":"PZ331 Trawler","height":391});
															thumbnails[8847116] = clik.newPhoto({"id":8847116,"src":"IMG_8061_HDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847116.html","width":260,"caption":"Inside St.Michaels Mount","height":393});
															thumbnails[8847117] = clik.newPhoto({"id":8847117,"src":"IMG_8390_HDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847117.html","width":260,"caption":"For HIRE!","height":386});
															thumbnails[8847118] = clik.newPhoto({"id":8847118,"src":"IMG_8303_HDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847118.html","width":260,"caption":"Waiting for the ferry","height":390});
															thumbnails[6054664] = clik.newPhoto({"id":6054664,"src":"0018Flora_Fauna_packardimages_thumb.jpg","galleries_id":242968,"server_id":15,"link":"photo_6054664.html","width":130,"caption":"Fence Series Black and White","height":231});
															thumbnails[8847120] = clik.newPhoto({"id":8847120,"src":"IMG_8665_HDRweb_thumb.jpg","galleries_id":465288,"server_id":15,"link":"photo_8847120.html","width":260,"caption":"The Smithy's workshop","height":398});
															thumbnails[4473246] = clik.newPhoto({"id":4473246,"src":"Ag_Montage_thumb.jpg","galleries_id":249090,"server_id":15,"link":"photo_4473246.html","width":130,"caption":"Agricultural Panorama","height":30});
															thumbnails[6054695] = clik.newPhoto({"id":6054695,"src":"BL001sm_thumb.jpg","galleries_id":340173,"server_id":15,"link":"photo_6054695.html","width":130,"caption":"Autumn colour, Maple leaves","height":87});
															thumbnails[6054712] = clik.newPhoto({"id":6054712,"src":"BL002_thumb.jpg","galleries_id":340173,"server_id":15,"link":"photo_6054712.html","width":130,"caption":"Autumn Colour, Maple leaves 002","height":195});
															thumbnails[6054724] = clik.newPhoto({"id":6054724,"src":"BL003_thumb.jpg","galleries_id":340173,"server_id":15,"link":"photo_6054724.html","width":130,"caption":"Autumn Colour, Maple leaves","height":130});
															thumbnails[4805808] = clik.newPhoto({"id":4805808,"src":"BulkHandling2_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805808.html","width":130,"caption":"CBH Silos Merredin Western Australia","height":51});
															thumbnails[4805810] = clik.newPhoto({"id":4805810,"src":"BulkHandling3_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805810.html","width":130,"caption":"Old Wooden Grain Wagons","height":195});
															thumbnails[5139344] = clik.newPhoto({"id":5139344,"src":"cattle1_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139344.html","width":130,"caption":"","height":195});
															thumbnails[5139347] = clik.newPhoto({"id":5139347,"src":"cattle2_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139347.html","width":130,"caption":"","height":87});
															thumbnails[5139348] = clik.newPhoto({"id":5139348,"src":"cattle3_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139348.html","width":130,"caption":"","height":195});
															thumbnails[4805871] = clik.newPhoto({"id":4805871,"src":"Crops1_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805871.html","width":130,"caption":"Triticale Crop","height":271});
															thumbnails[4805872] = clik.newPhoto({"id":4805872,"src":"Crops2_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805872.html","width":130,"caption":"Triticale Heads","height":195});
															thumbnails[6054734] = clik.newPhoto({"id":6054734,"src":"DB001_thumb.jpg","galleries_id":340173,"server_id":15,"link":"photo_6054734.html","width":130,"caption":"Pear Orchard, carpet of yellow","height":224});
															thumbnails[6054747] = clik.newPhoto({"id":6054747,"src":"DB003panoylsm_thumb.jpg","galleries_id":340173,"server_id":15,"link":"photo_6054747.html","width":130,"caption":"Pear Orchard, yellow rows","height":41});
															thumbnails[4182009] = clik.newPhoto({"id":4182009,"src":"DUBAI2_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182009.html","width":130,"caption":"Arab Fountain","height":195});
															thumbnails[4182011] = clik.newPhoto({"id":4182011,"src":"DUBAI3_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182011.html","width":130,"caption":"Burj Al Arab Hotel","height":87});
															thumbnails[4473247] = clik.newPhoto({"id":4473247,"src":"enviro_pano_land_thumb.jpg","galleries_id":249090,"server_id":15,"link":"photo_4473247.html","width":130,"caption":"Drum Panorama","height":18});
															thumbnails[4072953] = clik.newPhoto({"id":4072953,"src":"Freeway_lights_packardnew1_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4072953.html","width":130,"caption":"Kwinana freeway night lights","height":190});
															thumbnails[4076753] = clik.newPhoto({"id":4076753,"src":"Freeway_lights2_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4076753.html","width":130,"caption":"Kwinana freeway night lights","height":195});
															thumbnails[4473249] = clik.newPhoto({"id":4473249,"src":"Harvest_9_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473249.html","width":130,"caption":"Stubble View","height":59});
															thumbnails[4076788] = clik.newPhoto({"id":4076788,"src":"Harvest1_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4076788.html","width":130,"caption":"Yilgarn harvest, Western Australia","height":87});
															thumbnails[4473250] = clik.newPhoto({"id":4473250,"src":"Harvest10_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473250.html","width":130,"caption":"Truck Loading","height":195});
															thumbnails[4473251] = clik.newPhoto({"id":4473251,"src":"Harvest11_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473251.html","width":130,"caption":"In A Row","height":66});
															thumbnails[4473252] = clik.newPhoto({"id":4473252,"src":"Harvest12_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473252.html","width":130,"caption":"Red Soil Stubble","height":195});
															thumbnails[4473253] = clik.newPhoto({"id":4473253,"src":"Harvest13_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473253.html","width":130,"caption":"Grain Flow","height":195});
															thumbnails[4473254] = clik.newPhoto({"id":4473254,"src":"Harvest15_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473254.html","width":130,"caption":"Roadtrain Loading","height":87});
															thumbnails[4473255] = clik.newPhoto({"id":4473255,"src":"Harvest16_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473255.html","width":130,"caption":"CAT + Chaser Bin","height":87});
															thumbnails[4805873] = clik.newPhoto({"id":4805873,"src":"Harvest18_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805873.html","width":130,"caption":"John Deere Oat harvest","height":241});
															thumbnails[4805888] = clik.newPhoto({"id":4805888,"src":"Harvest19_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805888.html","width":130,"caption":"Chaser at work during Canola harvest","height":152});
															thumbnails[4076789] = clik.newPhoto({"id":4076789,"src":"Harvest2_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4076789.html","width":130,"caption":"Yilgarn harvest, John Deere harvester.","height":87});
															thumbnails[4076790] = clik.newPhoto({"id":4076790,"src":"Harvest3_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4076790.html","width":130,"caption":"Yilgarn harvest, John Deere harvester","height":195});
															thumbnails[4076791] = clik.newPhoto({"id":4076791,"src":"Harvest4_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4076791.html","width":130,"caption":"Yilgarn harvest, Case IH harvester.","height":87});
															thumbnails[4076796] = clik.newPhoto({"id":4076796,"src":"Harvest5_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4076796.html","width":130,"caption":"Yilgarn harvest, group of machines.","height":87});
															thumbnails[4076801] = clik.newPhoto({"id":4076801,"src":"Harvest6_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4076801.html","width":130,"caption":"John Deere harvester.","height":87});
															thumbnails[4076806] = clik.newPhoto({"id":4076806,"src":"Harvest7_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4076806.html","width":130,"caption":"Yilgarn community harvest, the people and machines involved","height":18});
															thumbnails[4473248] = clik.newPhoto({"id":4473248,"src":"Harvest8_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4473248.html","width":130,"caption":"Dust View","height":102});
															thumbnails[4076756] = clik.newPhoto({"id":4076756,"src":"HK_lights1_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4076756.html","width":130,"caption":"Night lights of Kowloon, Hong Kong","height":195});
															thumbnails[4182200] = clik.newPhoto({"id":4182200,"src":"HK1_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182200.html","width":130,"caption":"Star Ferry leaving Kowloon for Hong Kong Island.","height":209});
															thumbnails[4057341] = clik.newPhoto({"id":4057341,"src":"Kings_Park_BW_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4057341.html","width":130,"caption":"Perth city at night, viewed from Kings Park","height":90});
															thumbnails[4072954] = clik.newPhoto({"id":4072954,"src":"Kings_park_trees_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4072954.html","width":130,"caption":"Kings Park illuminations, Perth Western Australia.","height":194});
															thumbnails[4805984] = clik.newPhoto({"id":4805984,"src":"MuntyRock_packard_thumb.jpg","galleries_id":242968,"server_id":15,"link":"photo_4805984.html","width":130,"caption":"Muntadgin Rocks Sunset","height":195});
															thumbnails[4805993] = clik.newPhoto({"id":4805993,"src":"Night_Burning_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805993.html","width":130,"caption":"Night Burn","height":87});
															thumbnails[4182206] = clik.newPhoto({"id":4182206,"src":"Panorama1_packard_thumb.jpg","galleries_id":249090,"server_id":15,"link":"photo_4182206.html","width":130,"caption":"The North Cornish coast, taken from Rosewall Hill, near St.Ives Cornwall UK","height":23});
															thumbnails[4182263] = clik.newPhoto({"id":4182263,"src":"Panorama2_packard_thumb.jpg","galleries_id":249090,"server_id":15,"link":"photo_4182263.html","width":130,"caption":"Hong Kong city skyline from The Peak","height":41});
															thumbnails[4076726] = clik.newPhoto({"id":4076726,"src":"saltlake_3999web_thumb.jpg","galleries_id":242968,"server_id":15,"link":"photo_4076726.html","width":130,"caption":"Sunset over Lake Kurrenkutten, Western Australia.","height":87});
															thumbnails[4076728] = clik.newPhoto({"id":4076728,"src":"Salt_lake2_packard1_thumb.jpg","galleries_id":242968,"server_id":15,"link":"photo_4076728.html","width":130,"caption":"Fence line, Lake Kurrenkutten, Western Australia","height":87});
															thumbnails[4805926] = clik.newPhoto({"id":4805926,"src":"Seeding05-Emerging_Bly_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805926.html","width":130,"caption":"Barley Seedlings","height":221});
															thumbnails[4805931] = clik.newPhoto({"id":4805931,"src":"Seeding05-landscape-packard_thumb.jpg","galleries_id":242968,"server_id":15,"link":"photo_4805931.html","width":130,"caption":"Seeding Landscape","height":141});
															thumbnails[4805892] = clik.newPhoto({"id":4805892,"src":"0120Seeding_packardimagesweb_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805892.html","width":130,"caption":"Steiger Tiger seeding in the dust","height":87});
															thumbnails[4805917] = clik.newPhoto({"id":4805917,"src":"Seeding2_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805917.html","width":130,"caption":"New Holland Seeding","height":87});
															thumbnails[4805922] = clik.newPhoto({"id":4805922,"src":"Seeding3_packard_thumb.jpg","galleries_id":245101,"server_id":15,"link":"photo_4805922.html","width":130,"caption":"New Holland from Flexicoil airseeder","height":187});
															thumbnails[5139350] = clik.newPhoto({"id":5139350,"src":"sheep1_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139350.html","width":130,"caption":"Woolly Merino Sheep","height":87});
															thumbnails[5139351] = clik.newPhoto({"id":5139351,"src":"sheep2_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139351.html","width":130,"caption":"The Black Sheep Of The Family?","height":195});
															thumbnails[5139353] = clik.newPhoto({"id":5139353,"src":"sheep3_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139353.html","width":130,"caption":"","height":87});
															thumbnails[5139354] = clik.newPhoto({"id":5139354,"src":"sheep4_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139354.html","width":130,"caption":"","height":87});
															thumbnails[5139355] = clik.newPhoto({"id":5139355,"src":"sheep5_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139355.html","width":130,"caption":"Woolly Merino Ewe","height":87});
															thumbnails[5139358] = clik.newPhoto({"id":5139358,"src":"sheep6_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139358.html","width":130,"caption":"","height":195});
															thumbnails[5139360] = clik.newPhoto({"id":5139360,"src":"sheep7_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139360.html","width":130,"caption":"","height":87});
															thumbnails[5139364] = clik.newPhoto({"id":5139364,"src":"sheep8_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139364.html","width":130,"caption":"Merino Ewes and Lambs through yard fence","height":87});
															thumbnails[5139367] = clik.newPhoto({"id":5139367,"src":"sheep9_packard_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_5139367.html","width":130,"caption":"","height":195});
															thumbnails[6638144] = clik.newPhoto({"id":6638144,"src":"SheepdogPACKARD_thumb.jpg","galleries_id":290461,"server_id":15,"link":"photo_6638144.html","width":130,"caption":"Sheep Dog in action around the yards","height":86});
															thumbnails[4056987] = clik.newPhoto({"id":4056987,"src":"stick_gimlet_tallpano_packard_thumb.jpg","galleries_id":244117,"server_id":15,"link":"photo_4056987.html","width":130,"caption":"Stick Gimlets","height":327});
															thumbnails[4056961] = clik.newPhoto({"id":4056961,"src":"stick_gimlet1_packard_thumb.jpg","galleries_id":244117,"server_id":15,"link":"photo_4056961.html","width":130,"caption":"Stick Gimlet 1","height":195});
															thumbnails[4056967] = clik.newPhoto({"id":4056967,"src":"stick_gimlet2_packard_thumb.jpg","galleries_id":244117,"server_id":15,"link":"photo_4056967.html","width":130,"caption":"Stick Gimlet 2","height":195});
															thumbnails[4056984] = clik.newPhoto({"id":4056984,"src":"Stick_Gimlet3_packard_thumb.jpg","galleries_id":244117,"server_id":15,"link":"photo_4056984.html","width":130,"caption":"Stick Gimlet 3","height":87});
															thumbnails[4754438] = clik.newPhoto({"id":4754438,"src":"stick_gimlet4_packard_thumb.jpg","galleries_id":244117,"server_id":15,"link":"photo_4754438.html","width":130,"caption":"Stick Gimlet Shadows","height":259});
															thumbnails[4754435] = clik.newPhoto({"id":4754435,"src":"stick_panno_small_packard_thumb.jpg","galleries_id":244117,"server_id":15,"link":"photo_4754435.html","width":130,"caption":"Stick Gimlet Panorama","height":19});
															thumbnails[4076758] = clik.newPhoto({"id":4076758,"src":"Temple_HK1_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4076758.html","width":130,"caption":"Candles and incense burning at Tin Hau Temple, Yau Ma Tei, Hong Kong.","height":195});
															thumbnails[4076761] = clik.newPhoto({"id":4076761,"src":"Temple_HK2_packard1_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4076761.html","width":130,"caption":"Incense spirals hanging from the roof inside Tin Hau Temple, Yau Ma Tei, Hong Kong.","height":195});
															thumbnails[4076764] = clik.newPhoto({"id":4076764,"src":"Temple_HK3_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4076764.html","width":130,"caption":"Ornate temple bell at the Tin Hau Temple, Yau Ma Tei, Hong Kong","height":195});
															thumbnails[4077070] = clik.newPhoto({"id":4077070,"src":"UK1_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4077070.html","width":130,"caption":"Fishing boat, St.Ives Cornwall UK","height":216});
															thumbnails[4182012] = clik.newPhoto({"id":4182012,"src":"UK2_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182012.html","width":130,"caption":"Pots and nets, Smeatons Pier - St.Ives, Cornwall UK","height":195});
															thumbnails[4182013] = clik.newPhoto({"id":4182013,"src":"UK3_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182013.html","width":130,"caption":"Fishing boats tenders in storage over winter on the key in St.Ives, Cornwall UK","height":217});
															thumbnails[4182211] = clik.newPhoto({"id":4182211,"src":"UK4_packard1_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182211.html","width":130,"caption":"Flag reflection","height":195});
															thumbnails[4182224] = clik.newPhoto({"id":4182224,"src":"UK5_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182224.html","width":130,"caption":"Spring Tulips","height":209});
															thumbnails[4182217] = clik.newPhoto({"id":4182217,"src":"UK6_packard_thumb.jpg","galleries_id":383645,"server_id":15,"link":"photo_4182217.html","width":130,"caption":"Crabs and Prawns","height":217});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[364596] = clik.newGallery({"parentGallery":363411,"usePopups":true,"title":"fordson","link":"gallery_364596.html","maxRecords":0.0,"photoIDs":[6672503.0,6672505.0,6672507.0,6672510.0,6672560.0,6672616.0],"skipIndex":0,"section_code":"gallery","featured_images":"6672616,6672560,6672510,6672507,6672505,6672503","id":364596,"singleSection":false});				  						galleries[465288] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Packard Images HDR","link":"section555026.html","maxRecords":0.0,"photoIDs":[8846958.0,8847563.0,8846948.0,8847109.0,8847110.0,8847111.0,8847112.0,8847113.0,8847115.0,8847116.0,8847117.0,8847118.0,8847120.0],"skipIndex":0,"section_code":"section555026","featured_images":"8847563,8847120,8847118,8847117,8847116,8847115,8847113,8847112,8847111,8847110","id":465288,"singleSection":true});				  						galleries[340173] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"seasons","link":"gallery_340173.html","maxRecords":0.0,"photoIDs":[6054695.0,6054712.0,6054724.0,6054734.0,6054747.0],"skipIndex":0,"section_code":"gallery","featured_images":"6054747,6054734,6054724,6054712,6054695","id":340173,"singleSection":false});				  						galleries[363411] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"vintage","link":"gallery_363411.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6672616,6672560,6672510,6672507,6672505,6672503","id":363411,"singleSection":false});				  						galleries[245101] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"broadacre agriculture","link":"gallery_245101.html","maxRecords":0.0,"photoIDs":[6672754.0,7514017.0,4805808.0,4805810.0,4805871.0,4805872.0,4473249.0,4076788.0,4473250.0,4473251.0,4473252.0,4473253.0,4473254.0,4473255.0,4805873.0,4805888.0,4076789.0,4076790.0,4076791.0,4076796.0,4076801.0,4076806.0,4473248.0,4805993.0,4805926.0,4805892.0,4805917.0,4805922.0],"skipIndex":0,"section_code":"gallery","featured_images":4076791.0,"id":245101,"singleSection":false});				  						galleries[290461] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"livestock","link":"gallery_290461.html","maxRecords":0.0,"photoIDs":[6672618.0,6672658.0,5139344.0,5139347.0,5139348.0,5139350.0,5139351.0,5139353.0,5139354.0,5139355.0,5139358.0,5139360.0,5139364.0,5139367.0,6638144.0],"skipIndex":0,"section_code":"gallery","featured_images":"6672658,6672618,6638144,5139367,5139364,5139360,5139358,5139355,5139354,5139353","id":290461,"singleSection":false});				  						galleries[242968] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"rural landscapes","link":"gallery_242968.html","maxRecords":0.0,"photoIDs":[6672746.0,6054654.0,6054664.0,4805984.0,4076726.0,4076728.0,4805931.0],"skipIndex":0,"section_code":"gallery","featured_images":"6672746,6054664,6054654,4805984,4805931,4076728,4076726","id":242968,"singleSection":false});				  						galleries[244117] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"tree series","link":"gallery_244117.html","maxRecords":0.0,"photoIDs":[4056987.0,4056961.0,4056967.0,4056984.0,4754438.0,4754435.0],"skipIndex":0,"section_code":"gallery","featured_images":"4056987,4056967","id":244117,"singleSection":false});				  						galleries[383643] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"the broadwater project","link":"gallery_383643.html","maxRecords":0.0,"photoIDs":[7085334.0,7085335.0,7085336.0,7085337.0],"skipIndex":0,"section_code":"gallery","featured_images":"7085337,7085336,7085335,7085334","id":383643,"singleSection":false});				  						galleries[249090] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"panoramic images","link":"section555027_249090.html","maxRecords":0.0,"photoIDs":[4473246.0,4473247.0,4182206.0,4182263.0],"skipIndex":0,"section_code":"section555027","featured_images":4182263.0,"id":249090,"singleSection":false});				  						galleries[383645] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"other images","link":"section555027_383645.html","maxRecords":0.0,"photoIDs":[4182009.0,4182011.0,4072953.0,4076753.0,4076756.0,4182200.0,4057341.0,4072954.0,4076758.0,4076761.0,4076764.0,4077070.0,4182012.0,4182013.0,4182211.0,4182224.0,4182217.0],"skipIndex":0,"section_code":"section555027","featured_images":"4077070,4076756,4057341","id":383645,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[231945] = '7514017,4805805,4805808,4805810,4805871,4805872,4057337,4473249,4076788,4473250,4473251,4473252,4473253,4473254,4473255,4805888,4076789,4076790,4076791,4076796,4076801,4473248,4805993,4805926,4805892,4805917,4805922';
imageSets[231946] = '6054664,4805984,4076726,4076728,4805931';
imageSets[231947] = '4182011,4076756,4182200,4076758,4076761,4076764,4077070,4182012,4182013,4182211,4182217';
imageSets[1] = '8846948,8847110,8847113';
imageSets[2] = '4076791,4076756,4057341,4182263,4056987,4056967,4077070';
imageSets[3] = '4473246,4181976,4182011,4057337,4473247,4072953,4076753,4473249,4076788,4473250,4473251,4473252,4473253,4473254,4473255,4076789,4076790,4076791,4076796,4076801,4076806,4473248,5779239,5779246,4076756,4182200,4057341,4072954,4078216,4182206,4182263,4076726,4076728,4056987,4056961,4056967,4056984,4076758,4076761,4076764,4077070,4182012,4182013,4182211,4182224,4182217';
imageSets[231948] = '4473246,4473247,4182206,4182263,4056987';
imageSets[231949] = '4181976,4078216,6528536';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rpackard/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rpackard/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rpackard/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rpackard/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/rpackard/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/rpackard/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rpackard/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/rpackard/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 += 'section555026.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 && 'section555026' != '') {
					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 = 'Packard Images: ' + 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>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>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="rpackard@westnet.com.au">';
					temp += '<input type="hidden" name="currency_code" value="AUD">';
					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="rpackard@westnet.com.au">';
				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({					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;
	}
}

			

