window.thumbnails = {};
															thumbnails[1367092] = clik.newPhoto({"id":1367092,"src":"5581 web1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1367095] = clik.newPhoto({"id":1367095,"src":"5414 web1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1367096] = clik.newPhoto({"id":1367096,"src":"5591 web1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1367128] = clik.newPhoto({"id":1367128,"src":"_MG_53773.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1367129] = clik.newPhoto({"id":1367129,"src":"_MG_53785.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1378940] = clik.newPhoto({"id":1378940,"src":"2785 web1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[1378943] = clik.newPhoto({"id":1378943,"src":"2792 web1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1909909] = clik.newPhoto({"id":1909909,"src":"_MG_5675_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":" ","height":195});
															thumbnails[4458539] = clik.newPhoto({"id":4458539,"src":"6672clikpic1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[4458601] = clik.newPhoto({"id":4458601,"src":"6672clikpic2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[4458627] = clik.newPhoto({"id":4458627,"src":"6672clik3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[5389726] = clik.newPhoto({"id":5389726,"src":"space1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":86});
															thumbnails[5390241] = clik.newPhoto({"id":5390241,"src":"Elaine_space_2__for_clikpic_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[8844600] = clik.newPhoto({"id":8844600,"src":"E_nd_L_by_Fraz_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[8844607] = clik.newPhoto({"id":8844607,"src":"elaines_cam_on_june_20_2010_284_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8844615] = clik.newPhoto({"id":8844615,"src":"E_and_L_talk_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[8844631] = clik.newPhoto({"id":8844631,"src":"talk_4_by_Fraz_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[791552] = clik.newPhoto({"id":791552,"src":"Cuban1.jpg","galleries_id":61222,"server_id":1,"link":"photo_791552.html","width":130,"caption":"Cuban","height":150});
															thumbnails[791555] = clik.newPhoto({"id":791555,"src":"Elle1.jpg","galleries_id":61222,"server_id":1,"link":"photo_791555.html","width":130,"caption":"Elle","height":176});
															thumbnails[791561] = clik.newPhoto({"id":791561,"src":"Dior3.jpg","galleries_id":61222,"server_id":1,"link":"photo_791561.html","width":130,"caption":"Dior","height":146});
															thumbnails[791567] = clik.newPhoto({"id":791567,"src":"Fancy1.jpg","galleries_id":61222,"server_id":1,"link":"photo_791567.html","width":130,"caption":"Fancy","height":154});
															thumbnails[791568] = clik.newPhoto({"id":791568,"src":"Hartnell1.jpg","galleries_id":61222,"server_id":1,"link":"photo_791568.html","width":130,"caption":"Hartnell","height":157});
															thumbnails[791570] = clik.newPhoto({"id":791570,"src":"Highlife1.jpg","galleries_id":61222,"server_id":1,"link":"photo_791570.html","width":130,"caption":"Highlife","height":142});
															thumbnails[792940] = clik.newPhoto({"id":792940,"src":"Austria3.jpg","galleries_id":61222,"server_id":1,"link":"photo_792940.html","width":130,"caption":"Austria","height":124});
															thumbnails[792941] = clik.newPhoto({"id":792941,"src":"Knee-High3.jpg","galleries_id":61222,"server_id":1,"link":"photo_792941.html","width":130,"caption":"Knee High","height":144});
															thumbnails[792943] = clik.newPhoto({"id":792943,"src":"Kunert-Continental1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792943.html","width":130,"caption":"Kunert Continental","height":167});
															thumbnails[792948] = clik.newPhoto({"id":792948,"src":"lace-top1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792948.html","width":130,"caption":"Lace-Top","height":172});
															thumbnails[792949] = clik.newPhoto({"id":792949,"src":"Leggy1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792949.html","width":130,"caption":"Leggy","height":159});
															thumbnails[792950] = clik.newPhoto({"id":792950,"src":"Leprechaun1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792950.html","width":130,"caption":"Leprechaun","height":171});
															thumbnails[792953] = clik.newPhoto({"id":792953,"src":"Lucky-Charm1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792953.html","width":130,"caption":"Lucky-Charm","height":142});
															thumbnails[792954] = clik.newPhoto({"id":792954,"src":"Made-in-England1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792954.html","width":130,"caption":"Made in England","height":159});
															thumbnails[792955] = clik.newPhoto({"id":792955,"src":"Mascot1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792955.html","width":130,"caption":"Mascot","height":142});
															thumbnails[792957] = clik.newPhoto({"id":792957,"src":"Medium-Chocolate1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792957.html","width":130,"caption":"Medium Chocolate","height":150});
															thumbnails[792958] = clik.newPhoto({"id":792958,"src":"Nylon1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792958.html","width":130,"caption":"Nylon","height":142});
															thumbnails[792959] = clik.newPhoto({"id":792959,"src":"Protege-Bas1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792959.html","width":130,"caption":"Protege-Bas","height":177});
															thumbnails[792960] = clik.newPhoto({"id":792960,"src":"Second-Skin1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792960.html","width":130,"caption":"Second Skin","height":143});
															thumbnails[792962] = clik.newPhoto({"id":792962,"src":"Sheer1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792962.html","width":130,"caption":"Sheer","height":146});
															thumbnails[792964] = clik.newPhoto({"id":792964,"src":"Stalactite1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792964.html","width":130,"caption":"Stalactite","height":176});
															thumbnails[792965] = clik.newPhoto({"id":792965,"src":"Taille-Unique1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792965.html","width":130,"caption":"Taille Unique","height":171});
															thumbnails[792966] = clik.newPhoto({"id":792966,"src":"City-Queen4.jpg","galleries_id":61222,"server_id":1,"link":"photo_792966.html","width":130,"caption":"City Queen","height":142});
															thumbnails[792967] = clik.newPhoto({"id":792967,"src":"Snag1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792967.html","width":130,"caption":"Snag","height":166});
															thumbnails[792968] = clik.newPhoto({"id":792968,"src":"Sockette1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792968.html","width":130,"caption":"Sockette","height":177});
															thumbnails[792971] = clik.newPhoto({"id":792971,"src":"Inside-Out1.jpg","galleries_id":61222,"server_id":1,"link":"photo_792971.html","width":130,"caption":"Inside-Out","height":167});
															thumbnails[794042] = clik.newPhoto({"id":794042,"src":"2goldenbottles1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794042.html","width":130,"caption":"","height":130});
															thumbnails[794043] = clik.newPhoto({"id":794043,"src":"5-blue-botts1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794043.html","width":130,"caption":"","height":130});
															thumbnails[794045] = clik.newPhoto({"id":794045,"src":"blue-scrunched-plastic1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794045.html","width":130,"caption":"","height":130});
															thumbnails[794046] = clik.newPhoto({"id":794046,"src":"blue-thames1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794046.html","width":130,"caption":"","height":130});
															thumbnails[794047] = clik.newPhoto({"id":794047,"src":"diagonal-rockpool-bott1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794047.html","width":130,"caption":"","height":130});
															thumbnails[794048] = clik.newPhoto({"id":794048,"src":"golden-crown-bott1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794048.html","width":130,"caption":"","height":130});
															thumbnails[794050] = clik.newPhoto({"id":794050,"src":"iow-single-golden1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794050.html","width":130,"caption":"","height":130});
															thumbnails[794052] = clik.newPhoto({"id":794052,"src":"red-dragged-bott1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794052.html","width":130,"caption":"","height":130});
															thumbnails[794054] = clik.newPhoto({"id":794054,"src":"red-jagged-bott1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794054.html","width":130,"caption":"","height":130});
															thumbnails[794055] = clik.newPhoto({"id":794055,"src":"single-'urine'-bottle1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794055.html","width":130,"caption":"","height":130});
															thumbnails[794057] = clik.newPhoto({"id":794057,"src":"snakeskin-bott1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794057.html","width":130,"caption":"","height":130});
															thumbnails[794059] = clik.newPhoto({"id":794059,"src":"welsh-beer1.jpg","galleries_id":61230,"server_id":1,"link":"photo_794059.html","width":130,"caption":"","height":130});
															thumbnails[821532] = clik.newPhoto({"id":821532,"src":"Ateles5.jpg","galleries_id":61231,"server_id":1,"link":"photo_821532.html","width":130,"caption":"Ateles","height":163});
															thumbnails[821604] = clik.newPhoto({"id":821604,"src":"Bos-Taurus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821604.html","width":130,"caption":"Bos Taurus","height":163});
															thumbnails[821605] = clik.newPhoto({"id":821605,"src":"Bradypus-Tridactylus-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821605.html","width":130,"caption":"Bradypus Tridactylus I","height":163});
															thumbnails[821607] = clik.newPhoto({"id":821607,"src":"Bradypus-Tridactylus-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821607.html","width":130,"caption":"Bradypus Tridactylus II","height":103});
															thumbnails[821609] = clik.newPhoto({"id":821609,"src":"Cervus-Davidanus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821609.html","width":130,"caption":"Cervus Davidanus","height":163});
															thumbnails[821610] = clik.newPhoto({"id":821610,"src":"Crocodilus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821610.html","width":130,"caption":"Crocodilus","height":163});
															thumbnails[821611] = clik.newPhoto({"id":821611,"src":"Cynopterus-Marginatus-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821611.html","width":130,"caption":"Cynopterus Marginatus I","height":163});
															thumbnails[821613] = clik.newPhoto({"id":821613,"src":"Cynopterus-Marginatus-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821613.html","width":130,"caption":"Cynopterus Marginatus II","height":163});
															thumbnails[821614] = clik.newPhoto({"id":821614,"src":"Dactylopterus-Volitans-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821614.html","width":130,"caption":"Dactylopterus Volitans I","height":163});
															thumbnails[821616] = clik.newPhoto({"id":821616,"src":"Dactylopterus-Volitans-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821616.html","width":130,"caption":"Dactylopterus Volitans II","height":163});
															thumbnails[821618] = clik.newPhoto({"id":821618,"src":"Delphinus-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821618.html","width":130,"caption":"Delphinus","height":163});
															thumbnails[821621] = clik.newPhoto({"id":821621,"src":"Delphinus-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821621.html","width":130,"caption":"Delphinus II","height":103});
															thumbnails[821624] = clik.newPhoto({"id":821624,"src":"Delphinus-III1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821624.html","width":130,"caption":"Delphinus III<br>\r\n","height":103});
															thumbnails[821627] = clik.newPhoto({"id":821627,"src":"Dynastes-Hercules1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821627.html","width":130,"caption":"Dynastes Hercules","height":163});
															thumbnails[821629] = clik.newPhoto({"id":821629,"src":"Equus-Caballus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821629.html","width":130,"caption":"Equuss Caballus","height":163});
															thumbnails[821632] = clik.newPhoto({"id":821632,"src":"Equus-Caballus-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821632.html","width":130,"caption":"Equus Caballus II","height":163});
															thumbnails[821635] = clik.newPhoto({"id":821635,"src":"Equus-Caballus-III1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821635.html","width":130,"caption":"Equus Caballus III","height":163});
															thumbnails[821637] = clik.newPhoto({"id":821637,"src":"Eucephala-Caerulea-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821637.html","width":130,"caption":"Eucephala Caerulea I","height":163});
															thumbnails[821641] = clik.newPhoto({"id":821641,"src":"Eucephala-Caerulea-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821641.html","width":130,"caption":"Eucephala Caerulea II","height":163});
															thumbnails[821644] = clik.newPhoto({"id":821644,"src":"Hippocampus-Guttulatus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_821644.html","width":130,"caption":"Hippocampus Guttulatus","height":163});
															thumbnails[823837] = clik.newPhoto({"id":823837,"src":"Hyla-Maxima1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823837.html","width":130,"caption":"Hyla Maxima","height":163});
															thumbnails[823838] = clik.newPhoto({"id":823838,"src":"Macacus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823838.html","width":130,"caption":"Macacus","height":163});
															thumbnails[823839] = clik.newPhoto({"id":823839,"src":"Macropus-Rufus-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823839.html","width":130,"caption":"Macropus Rufus","height":163});
															thumbnails[823840] = clik.newPhoto({"id":823840,"src":"Ophiura1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823840.html","width":130,"caption":"Ophiura","height":163});
															thumbnails[823841] = clik.newPhoto({"id":823841,"src":"Ovis-Aries-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823841.html","width":130,"caption":"Ovis Aries I","height":163});
															thumbnails[823842] = clik.newPhoto({"id":823842,"src":"Ovis-Aries-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823842.html","width":130,"caption":"Ovis Aries II","height":163});
															thumbnails[823843] = clik.newPhoto({"id":823843,"src":"Phalangista-Vulpina1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823843.html","width":130,"caption":"Phalangista Vulpina","height":163});
															thumbnails[823844] = clik.newPhoto({"id":823844,"src":"Pipa-Monstrosa-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823844.html","width":130,"caption":"Pipa Monstrosa I","height":163});
															thumbnails[823845] = clik.newPhoto({"id":823845,"src":"Pipa-Monstrosa-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823845.html","width":130,"caption":"Pipa Monstrosa II","height":163});
															thumbnails[823846] = clik.newPhoto({"id":823846,"src":"Rana-I1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823846.html","width":130,"caption":"Rana I","height":163});
															thumbnails[823848] = clik.newPhoto({"id":823848,"src":"Sciuropterus-Volucella1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823848.html","width":130,"caption":"Sciuropterus Volucella","height":103});
															thumbnails[823849] = clik.newPhoto({"id":823849,"src":"Scyllium-Canicula1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823849.html","width":130,"caption":"Scyllium Canicula","height":163});
															thumbnails[823850] = clik.newPhoto({"id":823850,"src":"Spheniscus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823850.html","width":130,"caption":"Spheniscus","height":163});
															thumbnails[823851] = clik.newPhoto({"id":823851,"src":"Trichechus1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823851.html","width":130,"caption":"Trichechus","height":163});
															thumbnails[823852] = clik.newPhoto({"id":823852,"src":"Triton1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823852.html","width":130,"caption":"Triton","height":163});
															thumbnails[823856] = clik.newPhoto({"id":823856,"src":"Rana-II1.jpg","galleries_id":61231,"server_id":1,"link":"photo_823856.html","width":130,"caption":"Rana II","height":163});
															thumbnails[1884949] = clik.newPhoto({"id":1884949,"src":"African Queen_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1884949.html","width":130,"caption":"","height":166});
															thumbnails[1884957] = clik.newPhoto({"id":1884957,"src":"Brief Encounter_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1884957.html","width":130,"caption":"","height":174});
															thumbnails[1884971] = clik.newPhoto({"id":1884971,"src":"Crouching Tiger HIdden Dragon_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1884971.html","width":130,"caption":"","height":166});
															thumbnails[1884976] = clik.newPhoto({"id":1884976,"src":"Damage_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1884976.html","width":130,"caption":"","height":167});
															thumbnails[1885007] = clik.newPhoto({"id":1885007,"src":"Foetal Attraction I_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885007.html","width":130,"caption":"","height":112});
															thumbnails[1885084] = clik.newPhoto({"id":1885084,"src":"Foetal Attraction II_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885084.html","width":130,"caption":"","height":140});
															thumbnails[1885089] = clik.newPhoto({"id":1885089,"src":"Ghost I_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885089.html","width":130,"caption":"","height":169});
															thumbnails[1885096] = clik.newPhoto({"id":1885096,"src":"Henry and June_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885096.html","width":130,"caption":"","height":166});
															thumbnails[1885100] = clik.newPhoto({"id":1885100,"src":"Life is Beautiful_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885100.html","width":130,"caption":"","height":166});
															thumbnails[1885102] = clik.newPhoto({"id":1885102,"src":"Live and Kicking_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885102.html","width":130,"caption":"","height":102});
															thumbnails[1885106] = clik.newPhoto({"id":1885106,"src":"Lost in Translation_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885106.html","width":130,"caption":"","height":166});
															thumbnails[1885112] = clik.newPhoto({"id":1885112,"src":"Proof_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885112.html","width":130,"caption":"","height":166});
															thumbnails[1885119] = clik.newPhoto({"id":1885119,"src":"Remains of the Day_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885119.html","width":130,"caption":"","height":168});
															thumbnails[1885212] = clik.newPhoto({"id":1885212,"src":"The Bone Collector_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885212.html","width":130,"caption":"","height":167});
															thumbnails[1885231] = clik.newPhoto({"id":1885231,"src":"The Untouchables_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885231.html","width":130,"caption":"","height":169});
															thumbnails[1885242] = clik.newPhoto({"id":1885242,"src":"Touching the Void_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885242.html","width":130,"caption":"","height":175});
															thumbnails[1885244] = clik.newPhoto({"id":1885244,"src":"Unbearable Lightness of Being_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885244.html","width":130,"caption":"","height":166});
															thumbnails[1885254] = clik.newPhoto({"id":1885254,"src":"Where the Truth Lies_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1885254.html","width":130,"caption":"","height":166});
															thumbnails[1915880] = clik.newPhoto({"id":1915880,"src":"The Ice Storm_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1915880.html","width":130,"caption":"","height":166});
															thumbnails[1915883] = clik.newPhoto({"id":1915883,"src":"Shadowlands_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1915883.html","width":130,"caption":"","height":166});
															thumbnails[1915884] = clik.newPhoto({"id":1915884,"src":"Wings of Desire_thumb.jpg","galleries_id":126605,"server_id":1,"link":"photo_1915884.html","width":130,"caption":"","height":166});
															thumbnails[6608869] = clik.newPhoto({"id":6608869,"src":"Protection1_thumb.jpg","galleries_id":362159,"server_id":1,"link":"photo_6608869.html","width":130,"caption":"","height":179});
															thumbnails[6753895] = clik.newPhoto({"id":6753895,"src":"Vulsellum_thumb.jpg","galleries_id":362159,"server_id":1,"link":"photo_6753895.html","width":130,"caption":"","height":179});
															thumbnails[6753903] = clik.newPhoto({"id":6753903,"src":"Scraper_thumb.jpg","galleries_id":362159,"server_id":1,"link":"photo_6753903.html","width":130,"caption":"","height":179});
															thumbnails[6753916] = clik.newPhoto({"id":6753916,"src":"Knife_thumb.jpg","galleries_id":362159,"server_id":1,"link":"photo_6753916.html","width":130,"caption":"","height":179});
															thumbnails[6753929] = clik.newPhoto({"id":6753929,"src":"Forceps_thumb.jpg","galleries_id":362159,"server_id":1,"link":"photo_6753929.html","width":130,"caption":"","height":179});
															thumbnails[6753931] = clik.newPhoto({"id":6753931,"src":"Speculum_20EF488C-1D09-001F-99C1A0DA8359DA8C_thumb.jpg","galleries_id":362159,"server_id":1,"link":"photo_6753931.html","width":130,"caption":"","height":179});
															thumbnails[6991225] = clik.newPhoto({"id":6991225,"src":"_MG_9719_thumb.jpg","galleries_id":378858,"server_id":1,"link":"photo_6991225.html","width":130,"caption":"","height":87});
															thumbnails[6991231] = clik.newPhoto({"id":6991231,"src":"_MG_9784_thumb.jpg","galleries_id":378858,"server_id":1,"link":"photo_6991231.html","width":130,"caption":"","height":87});
															thumbnails[6991232] = clik.newPhoto({"id":6991232,"src":"_MG_9792_thumb.jpg","galleries_id":378858,"server_id":1,"link":"photo_6991232.html","width":130,"caption":"","height":87});
															thumbnails[6991247] = clik.newPhoto({"id":6991247,"src":"_MG_98041_thumb.jpg","galleries_id":378858,"server_id":1,"link":"photo_6991247.html","width":130,"caption":"","height":87});
															thumbnails[6991333] = clik.newPhoto({"id":6991333,"src":"IMG_9595_thumb.jpg","galleries_id":378858,"server_id":1,"link":"photo_6991333.html","width":130,"caption":"","height":196});
															thumbnails[8794082] = clik.newPhoto({"id":8794082,"src":"Benediction_thumb.jpg","galleries_id":462999,"server_id":1,"link":"photo_8794082.html","width":130,"caption":"Benediction","height":130});
															thumbnails[8794088] = clik.newPhoto({"id":8794088,"src":"knife_1_thumb.jpg","galleries_id":462994,"server_id":1,"link":"photo_8794088.html","width":130,"caption":"","height":130});
															thumbnails[8794090] = clik.newPhoto({"id":8794090,"src":"knife_2_thumb.jpg","galleries_id":462994,"server_id":1,"link":"photo_8794090.html","width":130,"caption":"","height":130});
															thumbnails[8794092] = clik.newPhoto({"id":8794092,"src":"knife_3_thumb.jpg","galleries_id":462994,"server_id":1,"link":"photo_8794092.html","width":130,"caption":"","height":130});
															thumbnails[8794095] = clik.newPhoto({"id":8794095,"src":"knife_4_thumb.jpg","galleries_id":462994,"server_id":1,"link":"photo_8794095.html","width":130,"caption":"","height":130});
															thumbnails[8794098] = clik.newPhoto({"id":8794098,"src":"knife_5_thumb.jpg","galleries_id":462994,"server_id":1,"link":"photo_8794098.html","width":130,"caption":"","height":130});
															thumbnails[8794270] = clik.newPhoto({"id":8794270,"src":"Velvet_Blue_thumb.jpg","galleries_id":462997,"server_id":1,"link":"photo_8794270.html","width":130,"caption":"","height":179});
															thumbnails[8794271] = clik.newPhoto({"id":8794271,"src":"Velvet_Green_thumb.jpg","galleries_id":462997,"server_id":1,"link":"photo_8794271.html","width":130,"caption":"","height":179});
															thumbnails[8794273] = clik.newPhoto({"id":8794273,"src":"Velvet_Red_thumb.jpg","galleries_id":462997,"server_id":1,"link":"photo_8794273.html","width":130,"caption":"","height":179});
															thumbnails[8794275] = clik.newPhoto({"id":8794275,"src":"Scissors_thumb.jpg","galleries_id":462999,"server_id":1,"link":"photo_8794275.html","width":130,"caption":"","height":130});
															thumbnails[8794277] = clik.newPhoto({"id":8794277,"src":"Tourniquet_thumb.jpg","galleries_id":462999,"server_id":1,"link":"photo_8794277.html","width":130,"caption":"","height":130});
															thumbnails[8794455] = clik.newPhoto({"id":8794455,"src":"abdomen_retractors_thumb.jpg","galleries_id":462999,"server_id":1,"link":"photo_8794455.html","width":130,"caption":"","height":179});
															thumbnails[8794488] = clik.newPhoto({"id":8794488,"src":"box_set_army_tools_clean_thumb.jpg","galleries_id":462999,"server_id":1,"link":"photo_8794488.html","width":130,"caption":"","height":179});
															thumbnails[5558530] = clik.newPhoto({"id":5558530,"src":"Aqua_Amazonas_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558530.html","width":130,"caption":"Aqua Amazonas ","height":156});
															thumbnails[5558539] = clik.newPhoto({"id":5558539,"src":"Mappa_Mundo_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558539.html","width":130,"caption":"Mappa Mundi ","height":156});
															thumbnails[5558548] = clik.newPhoto({"id":5558548,"src":"Terra_Nova_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558548.html","width":130,"caption":"Terra Nova ","height":156});
															thumbnails[5558532] = clik.newPhoto({"id":5558532,"src":"Carta_Cosmographica_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558532.html","width":130,"caption":"Carta Cosmographica ","height":156});
															thumbnails[5558540] = clik.newPhoto({"id":5558540,"src":"Mollusca_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558540.html","width":130,"caption":"Mollusca Insatiabilis","height":156});
															thumbnails[5558549] = clik.newPhoto({"id":5558549,"src":"Vita_Luna_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558549.html","width":130,"caption":"Vita Luna ","height":156});
															thumbnails[5558533] = clik.newPhoto({"id":5558533,"src":"Hic_Sunt_Dracones_for_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558533.html","width":130,"caption":"Hic Sunt Dracones ","height":156});
															thumbnails[5558541] = clik.newPhoto({"id":5558541,"src":"Orbis_Atlantis_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558541.html","width":130,"caption":"Orbis Atlantis","height":156});
															thumbnails[5558534] = clik.newPhoto({"id":5558534,"src":"Locus_Vitae_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558534.html","width":130,"caption":"Locus Vitae ","height":156});
															thumbnails[5558542] = clik.newPhoto({"id":5558542,"src":"Terra_Amore_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558542.html","width":130,"caption":"Terra Amore ","height":156});
															thumbnails[5558535] = clik.newPhoto({"id":5558535,"src":"Manus_Dei_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558535.html","width":130,"caption":"Manus Dei ","height":156});
															thumbnails[5558543] = clik.newPhoto({"id":5558543,"src":"Terra_Incognita_web_thumb.jpg","galleries_id":304137,"server_id":1,"link":"photo_5558543.html","width":130,"caption":"Terra Incognita","height":156});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[462994] = clik.newGallery({"parentGallery":462993,"usePopups":false,"title":"Knife Circles","link":"gallery_462994.html","maxRecords":0.0,"photoIDs":[8794088.0,8794090.0,8794092.0,8794095.0,8794098.0],"skipIndex":0,"section_code":"gallery","featured_images":8794088.0,"id":462994,"singleSection":false});				  						galleries[362159] = clik.newGallery({"parentGallery":462993,"usePopups":false,"title":"Protection ","link":"gallery_362159.html","maxRecords":0.0,"photoIDs":[6608869.0,6753895.0,6753903.0,6753916.0,6753929.0,6753931.0],"skipIndex":0,"section_code":"gallery","featured_images":6608869.0,"id":362159,"singleSection":false});				  						galleries[462999] = clik.newGallery({"parentGallery":462993,"usePopups":false,"title":"Single Images","link":"gallery_462999.html","maxRecords":0.0,"photoIDs":[8794082.0,8794275.0,8794277.0,8794455.0,8794488.0],"skipIndex":0,"section_code":"gallery","featured_images":8794082.0,"id":462999,"singleSection":false});				  						galleries[462997] = clik.newGallery({"parentGallery":462993,"usePopups":false,"title":"Velvets","link":"gallery_462997.html","maxRecords":0.0,"photoIDs":[8794270.0,8794271.0,8794273.0],"skipIndex":0,"section_code":"gallery","featured_images":8794270.0,"id":462997,"singleSection":false});				  						galleries[304137] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MICRO MUNDI","link":"gallery_304137.html","maxRecords":0.0,"photoIDs":[5558530.0,5558539.0,5558548.0,5558532.0,5558540.0,5558549.0,5558533.0,5558541.0,5558534.0,5558542.0,5558535.0,5558543.0],"skipIndex":0,"section_code":"gallery","featured_images":5558549.0,"id":304137,"singleSection":false});				  						galleries[378858] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mirror Works","link":"gallery_378858.html","maxRecords":0.0,"photoIDs":[6991225.0,6991231.0,6991232.0,6991247.0,6991333.0],"skipIndex":0,"section_code":"gallery","featured_images":6991333.0,"id":378858,"singleSection":false});				  						galleries[462993] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Dreadful and The Divine","link":"gallery_462993.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8794270,8794088,8794082,6608869","id":462993,"singleSection":false});				  						galleries[126605] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Net","link":"gallery_126605.html","maxRecords":0.0,"photoIDs":[1884949.0,1884957.0,1884971.0,1884976.0,1885007.0,1885084.0,1885089.0,1885096.0,1885100.0,1885102.0,1885106.0,1885112.0,1885119.0,1885212.0,1885231.0,1885242.0,1885244.0,1885254.0,1915880.0,1915883.0,1915884.0],"skipIndex":0,"section_code":"gallery","featured_images":1885231.0,"id":126605,"singleSection":false});				  						galleries[61222] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nylon","link":"gallery_61222.html","maxRecords":0.0,"photoIDs":[791552.0,791555.0,791561.0,791567.0,791568.0,791570.0,792940.0,792941.0,792943.0,792948.0,792949.0,792950.0,792953.0,792954.0,792955.0,792957.0,792958.0,792959.0,792960.0,792962.0,792964.0,792965.0,792966.0,792967.0,792968.0,792971.0],"skipIndex":0,"section_code":"gallery","featured_images":792968.0,"id":61222,"singleSection":false});				  						galleries[61231] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mysteries of Generation","link":"gallery_61231.html","maxRecords":0.0,"photoIDs":[821532.0,821604.0,821605.0,821607.0,821609.0,821610.0,821611.0,821613.0,821614.0,821616.0,821618.0,821621.0,821624.0,821627.0,821629.0,821632.0,821635.0,821637.0,821641.0,821644.0,823837.0,823838.0,823839.0,823840.0,823841.0,823842.0,823843.0,823844.0,823845.0,823846.0,823848.0,823849.0,823850.0,823851.0,823852.0,823856.0],"skipIndex":0,"section_code":"gallery","featured_images":823850.0,"id":61231,"singleSection":false});				  						galleries[61230] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bottle","link":"gallery_61230.html","maxRecords":0.0,"photoIDs":[794042.0,794043.0,794045.0,794046.0,794047.0,794048.0,794050.0,794052.0,794054.0,794055.0,794057.0,794059.0],"skipIndex":0,"section_code":"gallery","featured_images":794057.0,"id":61230,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8844631,8844615,8844607,5390241,5389726';
imageSets[2] = '8794270,8794088,8794082,6991333,6608869,1885231,1367092,823850,794057,792968,5558549';
imageSets[3] = '8844631,8844615,8844607,8844600,8794488,8794455,8794277,8794275,8794273,8794271,8794270,8794098,8794095,8794092,8794090,8794088,8794082,6991333,6991247,6991232,6991231,6991225,6753931,6753929,6753916,6753903,6753895,6608869,5558549,5558548,5558543,5558542,5558541,5558540,5558539,5558535,5558534,5558533,5558532,5558530,5390241,5389726,4458627,4458601,4458539,1915884,1915883,1915880,1909909,1885254';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/elaineduigenan/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/elaineduigenan/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'ELAINE DUIGENAN PHOTOGRAPHY: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				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>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (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.item_price !== '') {
			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;
	}
}

			

