window.thumbnails = new Object();
												thumbnails[5244946] = new thumbnail(5244946,'295597','Brisbane lane','brisbane_laneway2_thumb.jpg',130, 86,5,'photo_5244946.html');
												thumbnails[5244949] = new thumbnail(5244949,'295597','Barrington, Cairns','barrington_tug_clear_day6_thumb.jpg',130, 65,5,'photo_5244949.html');
												thumbnails[5246507] = new thumbnail(5246507,'295621','Balcony bike, Brisbane','brisbane-balcony-bike_thumb.jpg',130, 88,5,'photo_5246507.html');
												thumbnails[5246534] = new thumbnail(5246534,'295622','Last man','last_man_thumb.jpg',130, 87,5,'photo_5246534.html');
												thumbnails[5246537] = new thumbnail(5246537,'295595','Intruders happy in the dark','watchers_thumb.jpg',130, 130,5,'photo_5246537.html');
												thumbnails[5246542] = new thumbnail(5246542,'295595','Jackie Howe','Spirit-of-Jackie-Howe_thumb.jpg',130, 130,5,'photo_5246542.html');
												thumbnails[5246543] = new thumbnail(5246543,'295596','Pears','pears_trio_thumb.jpg',130, 93,5,'photo_5246543.html');
												thumbnails[5247276] = new thumbnail(5247276,'295621','Flicking pages','still_life_chives_thumb.jpg',130, 93,5,'photo_5247276.html');
												thumbnails[5247279] = new thumbnail(5247279,'295597','Welcome to Cairns','nautico-watched-nyd-1-panorama-1_thumb.jpg',130, 71,5,'photo_5247279.html');
												thumbnails[5251044] = new thumbnail(5251044,'295664','Mango farm, Dimbulah','dimbulah-mangro-tree-pruned-changed-1_thumb.jpg',130, 87,5,'photo_5251044.html');
												thumbnails[5251069] = new thumbnail(5251069,'295622','Dog walk','comp-movement-woman-dog_thumb.jpg',130, 93,5,'photo_5251069.html');
												thumbnails[5251649] = new thumbnail(5251649,'295621','Cloisters, UAE','al-ain-museum-walkway-horse-1_thumb.jpg',130, 116,5,'photo_5251649.html');
												thumbnails[5251657] = new thumbnail(5251657,'295821','Red legs','green-branch-with-bugs-legs-a_thumb.jpg',130, 182,5,'photo_5251657.html');
												thumbnails[5251658] = new thumbnail(5251658,'295821','Green leaves','green-leaf-scan_thumb.jpg',130, 182,5,'photo_5251658.html');
												thumbnails[5251664] = new thumbnail(5251664,'295821','Orange bug','macro-orange-bug-on-leaf-pin-sharp_thumb.jpg',130, 93,5,'photo_5251664.html');
												thumbnails[5253271] = new thumbnail(5253271,'295597','Barrington at dock','barrington-wet-day-hdr-panorama_thumb.jpg',130, 65,5,'photo_5253271.html');
												thumbnails[5253281] = new thumbnail(5253281,'295621','Bowls','table-with-bowls-geom-exp-4_thumb.jpg',130, 93,5,'photo_5253281.html');
												thumbnails[5253284] = new thumbnail(5253284,'295595','Mortal Coil','this-mortal-coil_thumb.jpg',130, 54,5,'photo_5253284.html');
												thumbnails[5255470] = new thumbnail(5255470,'295595','Shark attack','lagoon-boys-in-search-sharks-1_thumb.jpg',130, 65,5,'photo_5255470.html');
												thumbnails[5255642] = new thumbnail(5255642,'295821','Praying mantus','bright-green-hopper-with-eye-a_thumb.jpg',130, 93,5,'photo_5255642.html');
												thumbnails[5255643] = new thumbnail(5255643,'295821','My precious','crystal-blow-fly_2_thumb.jpg',130, 182,5,'photo_5255643.html');
												thumbnails[5260657] = new thumbnail(5260657,'295597','Tempest','Tempest---Palm-Cove-noise_thumb.jpg',130, 93,5,'photo_5260657.html');
												thumbnails[5260662] = new thumbnail(5260662,'295621','House, Charters Towers','charters-towers-red-door-noise_thumb.jpg',130, 99,5,'photo_5260662.html');
												thumbnails[5260666] = new thumbnail(5260666,'295664','Mango tree','Project__dubai-landscapes0022_thumb.jpg',130, 93,5,'photo_5260666.html');
												thumbnails[5260669] = new thumbnail(5260669,'295664','Wetlands','Project__dubai-landscapes0024_thumb.jpg',130, 59,5,'photo_5260669.html');
												thumbnails[5260676] = new thumbnail(5260676,'295664','Copperlode Dam','Project__dubai-landscapes0027_thumb.jpg',130, 93,5,'photo_5260676.html');
												thumbnails[5260695] = new thumbnail(5260695,'295664','Mount Garnet','Project__dubai-landscapes0023_thumb.jpg',130, 87,5,'photo_5260695.html');
												thumbnails[5260696] = new thumbnail(5260696,'295664','Miners Camp, Mount Garnet','Mount-Garnett---Miners-Valley_thumb.jpg',130, 87,5,'photo_5260696.html');
												thumbnails[5260716] = new thumbnail(5260716,'295664','Boardwalk','Mangrove-boardwalk_thumb.jpg',130, 112,5,'photo_5260716.html');
												thumbnails[5260866] = new thumbnail(5260866,'295664','Cattle muster, Lynd','Cattle-Muster---The-Lynd_thumb.jpg',130, 93,5,'photo_5260866.html');
												thumbnails[5260900] = new thumbnail(5260900,'295664','Tom Roberts woodwork project','Tom-Roberts-Woodwork-Assignment_thumb.jpg',130, 93,5,'photo_5260900.html');
												thumbnails[5260919] = new thumbnail(5260919,'295664','Sunset, Porcupine Gorge','Project__dubai-landscapes0026_thumb.jpg',130, 93,5,'photo_5260919.html');
												thumbnails[5260934] = new thumbnail(5260934,'295664','Ball Tree, Esplanade','Esplanade---Cairns_thumb.jpg',130, 87,5,'photo_5260934.html');
												thumbnails[5260937] = new thumbnail(5260937,'295664','Tingira','Project__dubai-landscapes0014a_thumb.jpg',130, 96,5,'photo_5260937.html');
												thumbnails[5260941] = new thumbnail(5260941,'295597','Flooded Boardwalk','Project__dubai-landscapes0025_thumb.jpg',130, 87,5,'photo_5260941.html');
												thumbnails[5260945] = new thumbnail(5260945,'295664','Skeleton Tree','Project__dubai-landscapes0028_thumb.jpg',130, 194,5,'photo_5260945.html');
												thumbnails[5260950] = new thumbnail(5260950,'295664','Tree, Holloways Beach','Holloways-Beach-Foreshore_thumb.jpg',130, 108,5,'photo_5260950.html');
												thumbnails[5260964] = new thumbnail(5260964,'295622','Fishing the Baron','dubai-fisherman---2-1_thumb.jpg',130, 176,5,'photo_5260964.html');
												thumbnails[5260967] = new thumbnail(5260967,'295622','Day on the beach, Palm Cove','Project__dubai-people0005_thumb.jpg',130, 130,5,'photo_5260967.html');
												thumbnails[5260969] = new thumbnail(5260969,'295622','Catch of the day','Project__dubai-people0001_thumb.jpg',130, 81,5,'photo_5260969.html');
												thumbnails[5260971] = new thumbnail(5260971,'295622','Guarded','Project__dubai-people0003_thumb.jpg',130, 68,5,'photo_5260971.html');
												thumbnails[5260972] = new thumbnail(5260972,'295622','Reveille, Lagoon','esplanade-lagoon-sunbathers-noise-2_thumb.jpg',130, 93,5,'photo_5260972.html');
												thumbnails[5260982] = new thumbnail(5260982,'295664','Don\'t go into the woods.','Project__dubai-landscapes0020_thumb.jpg',130, 87,5,'photo_5260982.html');
												thumbnails[5261103] = new thumbnail(5261103,'295595','Fisher, Palm Cove','palm-cove-fisherman-2_1-noise-21_thumb.jpg',130, 138,5,'photo_5261103.html');
												thumbnails[5261104] = new thumbnail(5261104,'295595','Woman, Palm Cove','people-col-palm-cove-woman-photographer-noise-31_thumb.jpg',130, 138,5,'photo_5261104.html');
												thumbnails[5261106] = new thumbnail(5261106,'295622','Departure','peir-seven-sisters-and-ship-together-a-2-print1_thumb.jpg',130, 77,5,'photo_5261106.html');
												thumbnails[5262438] = new thumbnail(5262438,'295595','Hashashin','hashashin_2_thumb.jpg',130, 93,5,'photo_5262438.html');
												thumbnails[5262442] = new thumbnail(5262442,'295595','Pied piper','pied-piper_thumb.jpg',130, 131,5,'photo_5262442.html');
												thumbnails[5262455] = new thumbnail(5262455,'295621','Crown','pictorial-house-structure-B9180_thumb.jpg',130, 87,5,'photo_5262455.html');
												thumbnails[5262460] = new thumbnail(5262460,'295622','Rodeo','mareeba-cowboys-soft-focus_thumb.jpg',130, 104,5,'photo_5262460.html');
												thumbnails[5262467] = new thumbnail(5262467,'295622','Cowboy?','mareeba-rodeo-portrait-2_thumb.jpg',130, 173,5,'photo_5262467.html');
												thumbnails[5262476] = new thumbnail(5262476,'295622','Weekend','palm-cove-fun-girl-peir_thumb.jpg',130, 93,5,'photo_5262476.html');
												thumbnails[5262480] = new thumbnail(5262480,'295622','Watch dogs','esplanade-watch-dogs_thumb.jpg',130, 87,5,'photo_5262480.html');
												thumbnails[5262506] = new thumbnail(5262506,'295622','Jump for joy','palm-cove-girl-peir-jumping_thumb.jpg',130, 122,5,'photo_5262506.html');
												thumbnails[5267925] = new thumbnail(5267925,'295621','Offices','pict-col-smithfield-office-block-colors-B9180_thumb.jpg',130, 93,5,'photo_5267925.html');
												thumbnails[5267943] = new thumbnail(5267943,'295622','Morning coffee','a-andrew-with-coffee1_thumb.jpg',130, 168,5,'photo_5267943.html');
												thumbnails[5267944] = new thumbnail(5267944,'295621','Bedroom','bedroom-side-desk-still-life-lab-col-square1_thumb.jpg',130, 130,5,'photo_5267944.html');
												thumbnails[5277715] = new thumbnail(5277715,'295622','Red shoes','Red-Shoes_thumb.jpg',130, 122,5,'photo_5277715.html');
												thumbnails[5277716] = new thumbnail(5277716,'295622','Lagoon','lagoon-busy-day-hdr-noise-a-1_thumb.jpg',130, 180,5,'photo_5277716.html');
												thumbnails[5281787] = new thumbnail(5281787,'295664','Lynd trees','lynd-dark-trees-a_thumb.jpg',130, 87,5,'photo_5281787.html');
												thumbnails[5285447] = new thumbnail(5285447,'295595','Epiphany','epiphany-esplanade_thumb.jpg',130, 182,5,'photo_5285447.html');
												thumbnails[5292142] = new thumbnail(5292142,'295597','Tanks','Blue-Heaven_thumb.jpg',130, 93,5,'photo_5292142.html');
												thumbnails[5292151] = new thumbnail(5292151,'295597','Blue car','transport-blue-car-garage-5_thumb.jpg',130, 93,5,'photo_5292151.html');
												thumbnails[5292832] = new thumbnail(5292832,'295821','Shell, Orange','orange-shell-dof-hf-2_thumb.jpg',130, 93,5,'photo_5292832.html');
												thumbnails[5292833] = new thumbnail(5292833,'295622','Rustie\'s coffee','food-rusties-coffee-break-colour-B9180_thumb.jpg',130, 93,5,'photo_5292833.html');
												thumbnails[5292834] = new thumbnail(5292834,'295622','Holloways','holloways-swimmers-with-dog-wash_thumb.jpg',130, 130,5,'photo_5292834.html');
												thumbnails[5292838] = new thumbnail(5292838,'295622','Washers','trinity-water-cleaners-b-1_thumb.jpg',130, 173,5,'photo_5292838.html');
												thumbnails[5308822] = new thumbnail(5308822,'295622','Batman and Robin','people-bw-marlin-marina-batman-and-robin-B9180-1_filtered-a_thumb.jpg',130, 120,5,'photo_5308822.html');
												thumbnails[5308823] = new thumbnail(5308823,'295622','Father','people-esplanade-chine-family-seated-a_thumb.jpg',130, 93,5,'photo_5308823.html');
												thumbnails[5320635] = new thumbnail(5320635,'295621','Diorama, Brisbane','diorama_brisbane_thumb.jpg',130, 87,5,'photo_5320635.html');
												thumbnails[5320636] = new thumbnail(5320636,'295622','Jimmy, Fisher','Jimmy-of-The-Solomons_thumb.jpg',130, 93,5,'photo_5320636.html');
												thumbnails[5320637] = new thumbnail(5320637,'295622','Dinner','dinner_small_thumb.jpg',130, 93,5,'photo_5320637.html');
												thumbnails[5320643] = new thumbnail(5320643,'295622','Fisher, Holloways Beach','holloways-beach-fisher-31_thumb.jpg',130, 109,5,'photo_5320643.html');
												thumbnails[5353977] = new thumbnail(5353977,'295597','Peir','peir-sats_10_thumb.jpg',130, 87,5,'photo_5353977.html');
												thumbnails[5354037] = new thumbnail(5354037,'295621','Pelican House','cairns-pelican-house-square1_thumb.jpg',130, 130,5,'photo_5354037.html');
												thumbnails[5354045] = new thumbnail(5354045,'295596','Feathers','feather-dancers-spin1_thumb.jpg',130, 173,5,'photo_5354045.html');
												thumbnails[5362710] = new thumbnail(5362710,'295595','Waiting, Peir','peir-woman-in-blue-noise-draw_3b-4_thumb.jpg',130, 100,5,'photo_5362710.html');
												thumbnails[5362714] = new thumbnail(5362714,'295596','Red vine','red-vine_thumb.jpg',130, 163,5,'photo_5362714.html');
												thumbnails[5431639] = new thumbnail(5431639,'295664','Outriggers','trinity-dusk-long-boats-11_thumb.jpg',130, 93,5,'photo_5431639.html');
												thumbnails[5454311] = new thumbnail(5454311,'295664','Misty','innot-morning-mist-dam-7_12_thumb.jpg',130, 93,5,'photo_5454311.html');
												thumbnails[5470879] = new thumbnail(5470879,'295595','Run from the hounds','lagoon-boys-montage-small---4-1_thumb.jpg',130, 93,5,'photo_5470879.html');
												thumbnails[5470984] = new thumbnail(5470984,'295621','Brisbane courts','brisbane-court-steps-bw-toned_thumb.jpg',130, 93,5,'photo_5470984.html');
												thumbnails[5518975] = new thumbnail(5518975,'295595','a do run run','running-mutants-a_thumb.jpg',130, 95,5,'photo_5518975.html');
												thumbnails[5548771] = new thumbnail(5548771,'295622','Red shoes','esplanade-beach-red-shoes-1a_thumb.jpg',130, 130,5,'photo_5548771.html');
												thumbnails[5559733] = new thumbnail(5559733,'295664','Qryptic 1:Incubus','qryptic-1-Incubus_thumb.jpg',130, 130,5,'photo_5559733.html');
												thumbnails[5559766] = new thumbnail(5559766,'295596','Tryst','tryst-embrace_thumb.jpg',130, 182,5,'photo_5559766.html');
												thumbnails[5662198] = new thumbnail(5662198,'295595','Little children','Suffer-the-Little-Children-to-Come-Unto-Me_thumb.jpg',130, 172,5,'photo_5662198.html');
												thumbnails[5705839] = new thumbnail(5705839,'295664','Machans','machans-beach-estuary-entrance-worked_thumb.jpg',130, 95,5,'photo_5705839.html');
												thumbnails[5705841] = new thumbnail(5705841,'295664','The Lynd','lynd-highway-impressionist-landscape-1c_thumb.jpg',130, 88,5,'photo_5705841.html');
												thumbnails[5705844] = new thumbnail(5705844,'295595','The Watcher','esplanade-jogger-watched-2b_thumb.jpg',130, 93,5,'photo_5705844.html');
												thumbnails[5779085] = new thumbnail(5779085,'295622','g.o.t.','mareeba-rodeo-stands-girls-tatts_thumb.jpg',130, 182,5,'photo_5779085.html');
												thumbnails[5799967] = new thumbnail(5799967,'295622','..... on seats!','mareeba-rodeo-stands-seated-A-1_thumb.jpg',130, 93,5,'photo_5799967.html');
												thumbnails[5799973] = new thumbnail(5799973,'295622','Babe','mareeba-rodeo-couple-suntan-bwa_thumb.jpg',130, 87,5,'photo_5799973.html');
												thumbnails[5871229] = new thumbnail(5871229,'295664','Golden sands','esplanade-beach-with-stormy-sky-sats_thumb.jpg',130, 93,5,'photo_5871229.html');
												thumbnails[5897111] = new thumbnail(5897111,'295595','Between the flags','kewarra-beach-swimban-col-bw-11_thumb.jpg',130, 93,5,'photo_5897111.html');
												thumbnails[6177619] = new thumbnail(6177619,'295664','Autumn','ringwood-vets-tree-1d_thumb.jpg',130, 93,5,'photo_6177619.html');
												thumbnails[6177642] = new thumbnail(6177642,'345095','Boardwalk, Hamelin','hamelin-boadwalk-squarish-wa_thumb.jpg',130, 117,5,'photo_6177642.html');
												thumbnails[6177785] = new thumbnail(6177785,'345095','One Mile Jetty, Carnarvon','Carnarvon-mile-jetty-wa1_thumb.jpg',130, 87,5,'photo_6177785.html');
												thumbnails[6177793] = new thumbnail(6177793,'345095','Alpha male, Coral Bay','coral-bay-testosterone_2-wa_thumb.jpg',130, 106,5,'photo_6177793.html');
												thumbnails[6224665] = new thumbnail(6224665,'345095','Arthur - put the billy on','peron-park-arthur-best-wa_thumb.jpg',130, 87,5,'photo_6224665.html');
												thumbnails[6224667] = new thumbnail(6224667,'345095','Solomon and Grundy','carnarvon-puppies-on-jetty-1-wa_thumb.jpg',130, 93,5,'photo_6224667.html');
												thumbnails[6224669] = new thumbnail(6224669,'345095','Magritte\'s walkway','hamelin-boardwalk-with-cloud-daubs-a-wa_thumb.jpg',130, 87,5,'photo_6224669.html');
												thumbnails[6224678] = new thumbnail(6224678,'345095','New Norcia','new-norcia-stairs-wa_thumb.jpg',130, 100,5,'photo_6224678.html');
												thumbnails[6224681] = new thumbnail(6224681,'345095','Tall grasses','kalbarri-tall-grasses-pinks-wa_thumb.jpg',130, 98,5,'photo_6224681.html');
												thumbnails[6224683] = new thumbnail(6224683,'345095','Toodyay - train fireman','old-man-toodyay-1a-squarish-wa_thumb.jpg',130, 138,5,'photo_6224683.html');
												thumbnails[6224708] = new thumbnail(6224708,'295664','Lost ball - Ringwood','ringwood-lake-tree-clear_thumb.jpg',130, 170,5,'photo_6224708.html');
												thumbnails[6224710] = new thumbnail(6224710,'295622','RMIT - art for arts sake','rmit-goal-courtyard-yellowed_thumb.jpg',130, 173,5,'photo_6224710.html');
												thumbnails[6229623] = new thumbnail(6229623,'345095','Morning road side, Hamelin','hamelin-tree-road-side-wa_thumb.jpg',130, 87,5,'photo_6229623.html');
												thumbnails[6237640] = new thumbnail(6237640,'345095','Crayfish, Geraldton','geraldton-crafish-outlet-2-wa_thumb.jpg',130, 106,5,'photo_6237640.html');
												thumbnails[6242763] = new thumbnail(6242763,'345095','Homestead','homestead-panorama-wa_thumb.jpg',130, 70,5,'photo_6242763.html');
												thumbnails[6244795] = new thumbnail(6244795,'345095','Homestead, Carnarvon','Carnarvon-homestead-cropped-b-wa_thumb.jpg',130, 93,5,'photo_6244795.html');
												thumbnails[6244800] = new thumbnail(6244800,'345095','Red dirt','carnarvon-red-dirt-wa_thumb.jpg',130, 87,5,'photo_6244800.html');
												thumbnails[6244823] = new thumbnail(6244823,'345095','Leg rope','carnarvon-tree-rope-a4-wa_thumb.jpg',130, 170,5,'photo_6244823.html');
												thumbnails[6300743] = new thumbnail(6300743,'295664','Back shed, Heathmont','heathmont-paddock-shed-final_thumb.jpg',130, 87,5,'photo_6300743.html');
												thumbnails[6303596] = new thumbnail(6303596,'345095','Farm house, Back road','cervantes-road-farm-way-off-4-wa_thumb.jpg',130, 93,5,'photo_6303596.html');
												thumbnails[6357950] = new thumbnail(6357950,'345095','Night ride','exmouth-bike-dusk-wa1_thumb.jpg',130, 87,5,'photo_6357950.html');
												thumbnails[6379506] = new thumbnail(6379506,'295664','The lake, Ringwood','ringwood-lake-twisted_thumb.jpg',130, 182,5,'photo_6379506.html');
												thumbnails[6470812] = new thumbnail(6470812,'295595','Kiss chasy','small-feet-tingira---4-1-a1_thumb.jpg',130, 89,5,'photo_6470812.html');
												thumbnails[6515750] = new thumbnail(6515750,'358433','Mercury','carnarvon-fence-line-purples-2-wa_thumb.jpg',130, 93,5,'photo_6515750.html');
												thumbnails[6515754] = new thumbnail(6515754,'358433','Jupiter','carnarvon-redder-terrain-blended-green-wa_thumb.jpg',130, 85,5,'photo_6515754.html');
												thumbnails[6515758] = new thumbnail(6515758,'358433','Mars','carnarvon-redder-terrain-blended-wa_thumb.jpg',130, 93,5,'photo_6515758.html');
												thumbnails[6515761] = new thumbnail(6515761,'358433','Venus','carnarvon-redder-terrain-dark-browns-1-wa_thumb.jpg',130, 86,5,'photo_6515761.html');
												thumbnails[6515772] = new thumbnail(6515772,'358433','Moon','carnarvon-shrubbery-blues-a-wa_thumb.jpg',130, 108,5,'photo_6515772.html');
												thumbnails[6515782] = new thumbnail(6515782,'358433','Uranus','denham-overcast-sky-raw-a-blend-sharp-wa_thumb.jpg',130, 93,5,'photo_6515782.html');
												thumbnails[6515785] = new thumbnail(6515785,'358433','Saturn','carnarvon-north-shrubbery-a-plus-extra-b-wa_thumb.jpg',130, 106,5,'photo_6515785.html');
												thumbnails[6515791] = new thumbnail(6515791,'295664','Egrets','esplande-gloomy-birds-blue-mix-wa_thumb.jpg',130, 88,5,'photo_6515791.html');
												thumbnails[6519798] = new thumbnail(6519798,'358433','Neptune','exmouth-backbeach-daubs-mix-planets-1-wa_thumb.jpg',130, 94,5,'photo_6519798.html');
												thumbnails[6531776] = new thumbnail(6531776,'358433','Pluto - the dwarf','tingira-pluto_thumb.jpg',130, 94,5,'photo_6531776.html');
												thumbnails[6578911] = new thumbnail(6578911,'358433','Sun','dubai-sands-df-amalg-1a-planets-sun_thumb.jpg',130, 83,5,'photo_6578911.html');
												thumbnails[6578923] = new thumbnail(6578923,'295664','Nocia wax trees','norcia-wax-trees_2a-wa_thumb.jpg',130, 112,5,'photo_6578923.html');
												thumbnails[6751473] = new thumbnail(6751473,'295664','Ice - Cairns','esplanade-stark-tree-winter-a_thumb.jpg',130, 93,5,'photo_6751473.html');
												thumbnails[6760006] = new thumbnail(6760006,'295664','Port Douglas','port-douglas-beach-front-painting_thumb.jpg',130, 87,5,'photo_6760006.html');
												thumbnails[6760394] = new thumbnail(6760394,'358433','Earth','yellow-dubai-sanddune-with-sky-earth_thumb.jpg',130, 130,5,'photo_6760394.html');
												thumbnails[6767062] = new thumbnail(6767062,'368346','Three graces - Aphrodite, Hera and Athena','dont-know-woman-dark-3-trio-1_thumb.jpg',130, 108,5,'photo_6767062.html');
												thumbnails[6767066] = new thumbnail(6767066,'368346','Could be a plus size model','dont-know-woman006c_thumb.jpg',130, 130,5,'photo_6767066.html');
												thumbnails[6771811] = new thumbnail(6771811,'368346','Little Boy - August 6th','working-girl-one-3_thumb.jpg',130, 130,5,'photo_6771811.html');
												thumbnails[6884710] = new thumbnail(6884710,'314415','The Waltz','Undara-tree-limbs-mix-1_thumb.jpg',130, 173,5,'photo_6884710.html');
												thumbnails[6884716] = new thumbnail(6884716,'314415','Tapestry','Undara-tree-leaves-blended-2-cropped_thumb.jpg',130, 192,5,'photo_6884716.html');
												thumbnails[6916772] = new thumbnail(6916772,'358433','Nemesis','Undara-Valkyries-cave_thumb.jpg',130, 173,5,'photo_6916772.html');
												thumbnails[6916774] = new thumbnail(6916774,'295664','Awakening','awakening-the-creation-spirit-cobbold_thumb.jpg',130, 91,5,'photo_6916774.html');
												thumbnails[6916780] = new thumbnail(6916780,'295664','Reflection','innot-pool-reflection-b_thumb.jpg',130, 91,5,'photo_6916780.html');
												thumbnails[7055660] = new thumbnail(7055660,'295664','Sailor\'s delight','smithfield-tree-raw-tz10-reds-sharp_thumb.jpg',130, 176,5,'photo_7055660.html');
												thumbnails[7055667] = new thumbnail(7055667,'295664','Ire','smithfield-tree-raw-tz10_2-crop-2a-square_thumb.jpg',130, 130,5,'photo_7055667.html');
												thumbnails[7144622] = new thumbnail(7144622,'386151','Verdant','lake-molloy-tz10-hdr-hillocks_thumb.jpg',130, 172,5,'photo_7144622.html');
												thumbnails[7144627] = new thumbnail(7144627,'386151','Grasses','lake-molloy-orange-grasses_thumb.jpg',130, 130,5,'photo_7144627.html');
												thumbnails[7144633] = new thumbnail(7144633,'386151','Quarantine Bay','Quarantine-bay-orange-pebbles_thumb.jpg',130, 87,5,'photo_7144633.html');
												thumbnails[7144639] = new thumbnail(7144639,'386151','Quarantine Bay','Quarantine-bay-with-rock-square_thumb.jpg',130, 165,5,'photo_7144639.html');
												thumbnails[7144652] = new thumbnail(7144652,'386151','Keating lagoon I','cooktown-keating-lagoon-2g_thumb.jpg',130, 173,5,'photo_7144652.html');
												thumbnails[7144662] = new thumbnail(7144662,'386151','Keating lagoon II','cooktown-keating-lagoon-ectoplasm_thumb.jpg',130, 173,5,'photo_7144662.html');
												thumbnails[7144667] = new thumbnail(7144667,'386151','Endeavour river bank','cooktown-endeavour-trees-sharper_thumb.jpg',130, 194,5,'photo_7144667.html');
												thumbnails[7147132] = new thumbnail(7147132,'386151','Swamp','cooktown-keating-lagoon-3_thumb.jpg',130, 173,5,'photo_7147132.html');
												thumbnails[7229938] = new thumbnail(7229938,'295597','Voyager','mangrove-board-walk-dec-2010-2_thumb.jpg',130, 174,5,'photo_7229938.html');
												thumbnails[7229939] = new thumbnail(7229939,'314415','Mangrove light','mangrove-boardwalk-december-2010-3_thumb.jpg',130, 96,5,'photo_7229939.html');
												thumbnails[7375895] = new thumbnail(7375895,'295595','Walking the dog','Esplanade-man-and-dog_8_thumb.jpg',130, 104,5,'photo_7375895.html');
												thumbnails[7375901] = new thumbnail(7375901,'314415','Millaa Millaa I','millaa-millaa-back-yard-straight-3a_thumb.jpg',130, 173,5,'photo_7375901.html');
												thumbnails[7375910] = new thumbnail(7375910,'314415','Millaa Millaa II','millaa-millaa-tree-in-paddock_1a_thumb.jpg',130, 173,5,'photo_7375910.html');
												thumbnails[7375924] = new thumbnail(7375924,'314415','Copperlode','copperlode-dam-tree-copse-panorama-bluer_thumb.jpg',130, 74,5,'photo_7375924.html');
												thumbnails[7375936] = new thumbnail(7375936,'314415','Palms','palm-trees-painted-green-black-redderer_thumb.jpg',130, 90,5,'photo_7375936.html');
												thumbnails[7375944] = new thumbnail(7375944,'314415','Trees','tree-smithfield-campus-extra-skeleton-treess_thumb.jpg',130, 152,5,'photo_7375944.html');
												thumbnails[8025099] = new thumbnail(8025099,'430976','Red mountain - Kyrgyzstan','kyrg-red-hill_thumb.jpg',130, 89,5,'photo_8025099.html');
												thumbnails[8025156] = new thumbnail(8025156,'430976','Chatyr-Kul - Kyrgyzstan','kyrg-lake-area-1_thumb.jpg',130, 173,5,'photo_8025156.html');
												thumbnails[8025257] = new thumbnail(8025257,'430976','Hast Imam Madrassa I','hast-madrassa-in-rain-2-cropped-a_thumb.jpg',130, 173,5,'photo_8025257.html');
												thumbnails[8025307] = new thumbnail(8025307,'430976','Hast Imam Madrassa II','hast-square-madressa-tashkent_thumb.jpg',130, 173,5,'photo_8025307.html');
												thumbnails[8025312] = new thumbnail(8025312,'430976','Weaver\'s House','khiva-un-weaver-house-1_thumb.jpg',130, 173,5,'photo_8025312.html');
												thumbnails[8025368] = new thumbnail(8025368,'430976','Camel Drivers','camel-drivers_thumb.jpg',130, 173,5,'photo_8025368.html');
												thumbnails[8025370] = new thumbnail(8025370,'430976','Hast Imam shoppers','shoppers-hast-imam-medressa-3_thumb.jpg',130, 173,5,'photo_8025370.html');
												thumbnails[8025374] = new thumbnail(8025374,'430976','Tibetan pilgrim','china-pilgrim_thumb.jpg',130, 173,5,'photo_8025374.html');
												thumbnails[8025379] = new thumbnail(8025379,'430976','Boy with dog','kryg-buk-boy-with-dog_thumb.jpg',130, 198,5,'photo_8025379.html');
												thumbnails[8025381] = new thumbnail(8025381,'430976','Sheep','china-sheep-waiting_thumb.jpg',130, 110,5,'photo_8025381.html');
												thumbnails[8025451] = new thumbnail(8025451,'430976','Ballet - Beijing','china-opera-house-repairs-2_thumb.jpg',130, 189,5,'photo_8025451.html');
												thumbnails[8025458] = new thumbnail(8025458,'430976','Sentab Village - Uzbekistan','centab-girl-running-b_thumb.jpg',130, 173,5,'photo_8025458.html');
												thumbnails[8025462] = new thumbnail(8025462,'430976','Warriors I','chinese-warriors1_thumb.jpg',130, 173,5,'photo_8025462.html');
												thumbnails[8025518] = new thumbnail(8025518,'430976','Warriors II','china-headless-warriors_thumb.jpg',130, 173,5,'photo_8025518.html');
												thumbnails[8036267] = new thumbnail(8036267,'430976','Son-Kul I - Kyrgyzstan','kyrg-son-kul-grass-1a_thumb.jpg',130, 98,5,'photo_8036267.html');
												thumbnails[8036268] = new thumbnail(8036268,'430976','Son-Kul II - Kyrgyzstan','issyk-kul-lake-scape-1_thumb.jpg',130, 98,5,'photo_8036268.html');
												thumbnails[8036269] = new thumbnail(8036269,'430976','Son-Kul III - Kyrgyzstan','issyk-kul-1_thumb.jpg',130, 98,5,'photo_8036269.html');
												thumbnails[8036270] = new thumbnail(8036270,'430976','Tash Rabat I','tash-rabat-valley-a2_thumb.jpg',130, 173,5,'photo_8036270.html');
												thumbnails[8036271] = new thumbnail(8036271,'430976','Tash Rabat II','tash-rabat-farm-1_thumb.jpg',130, 104,5,'photo_8036271.html');
												thumbnails[8036272] = new thumbnail(8036272,'430976','Kyrgyzstan horses','torugart-pass-horses-1_thumb.jpg',130, 159,5,'photo_8036272.html');
												thumbnails[8036273] = new thumbnail(8036273,'430976','Yurts','tash-rabat-yurt-camp-1_thumb.jpg',130, 152,5,'photo_8036273.html');
												thumbnails[8036274] = new thumbnail(8036274,'430976','Sentab Village - Uzbekistan','uzbek-centab-trees-gardens_thumb.jpg',130, 173,5,'photo_8036274.html');
												thumbnails[8036275] = new thumbnail(8036275,'430976','Taklamakan Desert I','camel-dunes_4_thumb.jpg',130, 173,5,'photo_8036275.html');
												thumbnails[8036276] = new thumbnail(8036276,'430976','Taklamakan Desert II','china-sand-dunes-11_thumb.jpg',130, 173,5,'photo_8036276.html');
												thumbnails[8036277] = new thumbnail(8036277,'430976','Mosque - Bukhara','bukarra-mosque-1_thumb.jpg',130, 104,5,'photo_8036277.html');
												thumbnails[8036279] = new thumbnail(8036279,'430976','Shah-i-Zinda Mausoleum Complex - Samarkand','uzbek-tashkent-mausoleum-complex_1a_thumb.jpg',130, 182,5,'photo_8036279.html');
												thumbnails[8042461] = new thumbnail(8042461,'430976','Archway - Samarkand','tashkent-mausoleum_thumb.jpg',130, 98,5,'photo_8042461.html');
												thumbnails[8042463] = new thumbnail(8042463,'430976','Cupola - Bukhara','bukara-cupola-1-plus-bird_thumb.jpg',130, 208,5,'photo_8042463.html');
												thumbnails[8042464] = new thumbnail(8042464,'430976','Filigree - China','china-fillagree-work1_thumb.jpg',130, 148,5,'photo_8042464.html');
												thumbnails[8063663] = new thumbnail(8063663,'430976','Star and Garnet Garden - Bukhara','bukhara-summer-palace_thumb.jpg',130, 102,5,'photo_8063663.html');
												thumbnails[8063698] = new thumbnail(8063698,'430976','Early morning - Khiva','khiva-morning-light-1_thumb.jpg',130, 173,5,'photo_8063698.html');
												thumbnails[8063703] = new thumbnail(8063703,'430976','Early morning - Bukhara','bukhara-bike-rider-red-dress_thumb.jpg',130, 154,5,'photo_8063703.html');
												thumbnails[8063705] = new thumbnail(8063705,'430976','Vegetable seller','kashgar-market-vegie-woman_thumb.jpg',130, 160,5,'photo_8063705.html');
												thumbnails[8063707] = new thumbnail(8063707,'430976','Curiouser and curiouser','kashgar-market-man-watching_thumb.jpg',130, 198,5,'photo_8063707.html');
												thumbnails[8063710] = new thumbnail(8063710,'430976','I saw Yul Brynner in 7/11','kashgar-market-yul-brynner-1_thumb.jpg',130, 185,5,'photo_8063710.html');
												thumbnails[8063713] = new thumbnail(8063713,'430976','Sheep market - Kashgar','kashgar-market-selling-sheep_thumb.jpg',130, 98,5,'photo_8063713.html');
												thumbnails[8063716] = new thumbnail(8063716,'430976','Restoration - Samarkand','samarkand-conservator-painter_thumb.jpg',130, 98,5,'photo_8063716.html');
												thumbnails[8163921] = new thumbnail(8163921,'430976','Hello - Tashkent','tashkent-woman-stairs_thumb.jpg',130, 140,5,'photo_8163921.html');
												thumbnails[8171711] = new thumbnail(8171711,'430976','Bicycle rider - Khiva','khiva-boy-on-bike-squarer_thumb.jpg',130, 152,5,'photo_8171711.html');
												thumbnails[8171712] = new thumbnail(8171712,'430976','Short tower - Khiva','khiva-short-tower-top_thumb.jpg',130, 141,5,'photo_8171712.html');
												thumbnails[8171714] = new thumbnail(8171714,'430976','Burana tower - Kyrgyzstan','kryg-burana-tower_thumb.jpg',130, 173,5,'photo_8171714.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[314415] = new gallery(314415,'7375944,7375936,7375924,7375910,7375901,7229939,6884716,6884710','Adit','gallery',[6884710,6884716,7229939,7375901,7375910,7375924,7375936,7375944],0, 0, '', 'gallery_314415.html',0,0);
				  					galleries[345095] = new gallery(345095,'6357950,6303596,6244823,6244800,6244795,6242763,6237640,6229623,6224683,6224681','An Australian Vacation','gallery',[6177642,6177785,6177793,6224665,6224667,6224669,6224678,6224681,6224683,6229623,6237640,6242763,6244795,6244800,6244823,6303596,6357950],0, 0, '', 'gallery_345095.html',0,0);
				  					galleries[358433] = new gallery(358433,'6916772,6760394,6578911,6531776,6519798,6515785,6515782,6515772,6515761,6515758','Beyond','gallery',[6515750,6515754,6515758,6515761,6515772,6515782,6515785,6519798,6531776,6578911,6760394,6916772],0, 0, '', 'gallery_358433.html',0,0);
				  					galleries[295597] = new gallery(295597,'7229938,5353977,5292151,5292142,5260941,5260657,5253271,5247279,5244949,5244946','Carbon footprints','gallery',[5244946,5244949,5247279,5253271,5260657,5260941,5292142,5292151,5353977,7229938],0, 0, '', 'gallery_295597.html',0,0);
				  					galleries[295596] = new gallery(295596,'5559766,5362714,5354045,5246543','Card only','gallery',[5246543,5354045,5362714,5559766],0, 0, '', 'gallery_295596.html',0,0);
				  					galleries[386151] = new gallery(386151,'7147132,7144667,7144662,7144652,7144639,7144633,7144627,7144622','Cooktown','gallery',[7144622,7144627,7144633,7144639,7144652,7144662,7144667,7147132],0, 0, '', 'gallery_386151.html',0,0);
				  					galleries[295621] = new gallery(295621,'5470984,5354037,5320635,5267944,5267925,5262455,5260662,5253281,5251649,5247276','Hearth','gallery',[5246507,5247276,5251649,5253281,5260662,5262455,5267925,5267944,5320635,5354037,5470984],0, 0, '', 'gallery_295621.html',0,0);
				  					galleries[295821] = new gallery(295821,'5292832,5255643,5255642,5251664,5251658,5251657','Nature?','gallery',[5251657,5251658,5251664,5255642,5255643,5292832],0, 0, '', 'gallery_295821.html',0,0);
				  					galleries[295622] = new gallery(295622,'6224710,5799973,5799967,5779085,5548771,5320643,5320637,5320636,5308823,5308822','Our daily bread','gallery',[5246534,5251069,5260964,5260967,5260969,5260971,5260972,5261106,5262460,5262467,5262476,5262480,5262506,5267943,5277715,5277716,5292833,5292834,5292838,5308822,5308823,5320636,5320637,5320643,5548771,5779085,5799967,5799973,6224710],0, 0, '', 'gallery_295622.html',0,0);
				  					galleries[368346] = new gallery(368346,'6771811,6767066,6767062','Pretentiously indulgent','gallery',[6767062,6767066,6771811],0, 0, '', 'gallery_368346.html',0,0);
				  					galleries[295595] = new gallery(295595,'7375895,6470812,5897111,5705844,5662198,5518975,5470879,5362710,5285447,5262442','Scary monsters, super creeps','gallery',[5246537,5246542,5253284,5255470,5261103,5261104,5262438,5262442,5285447,5362710,5470879,5518975,5662198,5705844,5897111,6470812,7375895],0, 0, '', 'gallery_295595.html',0,0);
				  					galleries[295664] = new gallery(295664,'7055667,7055660,6916780,6916774,6760006,6751473,6578923,6515791,6379506,6300743','Scenic','gallery',[5251044,5260666,5260669,5260676,5260695,5260696,5260716,5260866,5260900,5260919,5260934,5260937,5260945,5260950,5260982,5281787,5431639,5454311,5559733,5705839,5705841,5871229,6177619,6224708,6300743,6379506,6515791,6578923,6751473,6760006,6916774,6916780,7055660,7055667],0, 0, '', 'gallery_295664.html',0,0);
				  					galleries[430976] = new gallery(430976,'8171714,8171712,8171711,8163921,8063716,8063713,8063710,8063707,8063705,8063703','Silk Road','gallery',[8025099,8025156,8025257,8025307,8025312,8025368,8025370,8025374,8025379,8025381,8025451,8025458,8025462,8025518,8036267,8036268,8036269,8036270,8036271,8036272,8036273,8036274,8036275,8036276,8036277,8036279,8042461,8042463,8042464,8063663,8063698,8063703,8063705,8063707,8063710,8063713,8063716,8163921,8171711,8171712,8171714],0, 0, '', 'gallery_430976.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '8171714,8171712,8063716,8063713,8063707,8063703,8063663,8042464,8042461,8036274,8036273,8036272,8036271,8036267,8025462,8025381,8025374,8025368,8025257,8025156,8025099,7375944,7375924,7229939,7144639,6884716,6884710,6751473,6531776,6515750,6379506,6357950,6303596,6300743,6244795,6229623,6224681,6224678,6224669,6224667,6177619,5897111,5799967,5705841,5548771,5518975,5470984,5454311,5320643,5320635,5292142,5277716,5267944,5260982,5260950,5260716,5251069,5251044,5247279,5246543,5244949,5244946';
imageSets[3] = '5244949,5244946';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/brondeee/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/brondeee/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/brondeee/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/brondeee/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/brondeee/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/brondeee/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'bronwyn e douglas: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object' || array == undefined) {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

