window.thumbnails = {};
															thumbnails[1237780] = clik.newPhoto({"id":1237780,"src":"DrawingPins_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":95});
															thumbnails[1237813] = clik.newPhoto({"id":1237813,"src":"IMGP1251Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Drawing at The Forum","height":173});
															thumbnails[1237814] = clik.newPhoto({"id":1237814,"src":"IMGP1249web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[1237815] = clik.newPhoto({"id":1237815,"src":"IMGP1261web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[1238011] = clik.newPhoto({"id":1238011,"src":"IMGP4483web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1238014] = clik.newPhoto({"id":1238014,"src":"IMGP4489web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1261699] = clik.newPhoto({"id":1261699,"src":"cocoweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[1261700] = clik.newPhoto({"id":1261700,"src":"coco2web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":95});
															thumbnails[6801684] = clik.newPhoto({"id":6801684,"src":"his_and_hers_comp_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":83});
															thumbnails[2287708] = clik.newPhoto({"id":2287708,"src":"IMGP6996_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":238});
															thumbnails[1237983] = clik.newPhoto({"id":1237983,"src":"b3web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[1239182] = clik.newPhoto({"id":1239182,"src":"IMGP3079web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[1239367] = clik.newPhoto({"id":1239367,"src":"IMGP0661WEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1506103] = clik.newPhoto({"id":1506103,"src":"BPAINTING60X90SCANsmall fileWEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":199});
															thumbnails[1261060] = clik.newPhoto({"id":1261060,"src":"IMGP5271web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":198});
															thumbnails[1261627] = clik.newPhoto({"id":1261627,"src":"NIce'Y'Fronts2cropweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":201});
															thumbnails[1261037] = clik.newPhoto({"id":1261037,"src":"RedShoes_web2crop_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":159});
															thumbnails[1261059] = clik.newPhoto({"id":1261059,"src":"IMGP5226cropweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":197});
															thumbnails[1237821] = clik.newPhoto({"id":1237821,"src":"RunningShoesWeb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":188});
															thumbnails[1237981] = clik.newPhoto({"id":1237981,"src":"b2web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":96});
															thumbnails[1239183] = clik.newPhoto({"id":1239183,"src":"IMGP3082_thumb.JPGwhitened&lessmoarksmediumweb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[1239370] = clik.newPhoto({"id":1239370,"src":"IMGP0511WEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1506113] = clik.newPhoto({"id":1506113,"src":"AllDayIDreamAboutSportWEBcrop_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":89});
															thumbnails[1261057] = clik.newPhoto({"id":1261057,"src":"IMGP5190web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":83});
															thumbnails[1239364] = clik.newPhoto({"id":1239364,"src":"IMGP0659WEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1237841] = clik.newPhoto({"id":1237841,"src":"IMGP1900web5_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1239365] = clik.newPhoto({"id":1239365,"src":"IMGP1508WEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1261052] = clik.newPhoto({"id":1261052,"src":"IMGP5299web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":176});
															thumbnails[6494036] = clik.newPhoto({"id":6494036,"src":"P1020211_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1237976] = clik.newPhoto({"id":1237976,"src":"IMGP1903web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1261044] = clik.newPhoto({"id":1261044,"src":"IMGP5187web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":93});
															thumbnails[1261046] = clik.newPhoto({"id":1261046,"src":"IMGP5183web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[2259828] = clik.newPhoto({"id":2259828,"src":"IMGP6967 web crop_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8309405] = clik.newPhoto({"id":8309405,"src":"nice060_c_com_thumb.jpg","galleries_id":"","server_id":19,"link":"#","width":130,"caption":"","height":182});
															thumbnails[1239376] = clik.newPhoto({"id":1239376,"src":"PICT0070web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8309410] = clik.newPhoto({"id":8309410,"src":"nice056_c_com_thumb.jpg","galleries_id":"","server_id":19,"link":"#","width":130,"caption":"","height":182});
															thumbnails[1239372] = clik.newPhoto({"id":1239372,"src":"IMGP4553WEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1260963] = clik.newPhoto({"id":1260963,"src":"IMGP5282best_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1432294] = clik.newPhoto({"id":1432294,"src":"IMGP5725_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[1237797] = clik.newPhoto({"id":1237797,"src":"IMGP3111web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[1261040] = clik.newPhoto({"id":1261040,"src":"IMGP5235web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":125});
															thumbnails[1261068] = clik.newPhoto({"id":1261068,"src":"IMGP5205cropweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[1261063] = clik.newPhoto({"id":1261063,"src":"Untitled(brown&white)cropweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":132});
															thumbnails[1480702] = clik.newPhoto({"id":1480702,"src":"IMG_1467cropWEB_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":134});
															thumbnails[2275851] = clik.newPhoto({"id":2275851,"src":"1 3by4_thumb.JPG","galleries_id":149628,"server_id":1,"link":"photo_2275851.html","width":130,"caption":"","height":98});
															thumbnails[6489075] = clik.newPhoto({"id":6489075,"src":"P1020083_thumb.JPG","galleries_id":99176,"server_id":1,"link":"photo_6489075.html","width":130,"caption":"","height":98});
															thumbnails[6489076] = clik.newPhoto({"id":6489076,"src":"P1020110_thumb.JPG","galleries_id":99176,"server_id":1,"link":"photo_6489076.html","width":130,"caption":"","height":98});
															thumbnails[8257741] = clik.newPhoto({"id":8257741,"src":"nice058_c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8257741.html","width":130,"caption":"","height":182});
															thumbnails[1505846] = clik.newPhoto({"id":1505846,"src":"Tree pin pricks with light_thumb.jpg","galleries_id":88489,"server_id":1,"link":"photo_1505846.html","width":130,"caption":"","height":183});
															thumbnails[2275860] = clik.newPhoto({"id":2275860,"src":"IMGP6977 3by4_thumb.jpg","galleries_id":149630,"server_id":1,"link":"photo_2275860.html","width":130,"caption":"","height":173});
															thumbnails[2275864] = clik.newPhoto({"id":2275864,"src":"1 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275864.html","width":130,"caption":"","height":87});
															thumbnails[6488973] = clik.newPhoto({"id":6488973,"src":"P1020079_thumb.JPG","galleries_id":99176,"server_id":1,"link":"photo_6488973.html","width":130,"caption":"","height":98});
															thumbnails[6494246] = clik.newPhoto({"id":6494246,"src":"Etch_a_Sketch_2_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_6494246.html","width":130,"caption":"","height":94});
															thumbnails[8352946] = clik.newPhoto({"id":8352946,"src":"IMGP0566__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352946.html","width":130,"caption":"","height":130});
															thumbnails[1432182] = clik.newPhoto({"id":1432182,"src":"IMGP5430s_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_1432182.html","width":130,"caption":"","height":98});
															thumbnails[2275866] = clik.newPhoto({"id":2275866,"src":"2 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275866.html","width":130,"caption":"","height":87});
															thumbnails[2275891] = clik.newPhoto({"id":2275891,"src":"2 3by4_thumb.JPG","galleries_id":149628,"server_id":1,"link":"photo_2275891.html","width":130,"caption":"","height":98});
															thumbnails[2275898] = clik.newPhoto({"id":2275898,"src":"IMGP7051_thumb.JPG","galleries_id":149630,"server_id":1,"link":"photo_2275898.html","width":130,"caption":"","height":172});
															thumbnails[1260990] = clik.newPhoto({"id":1260990,"src":"OnlyFools&Horses_webcrop_thumb.jpg","galleries_id":88485,"server_id":1,"link":"photo_1260990.html","width":130,"caption":"","height":205});
															thumbnails[2275870] = clik.newPhoto({"id":2275870,"src":"3 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275870.html","width":130,"caption":"","height":87});
															thumbnails[2275895] = clik.newPhoto({"id":2275895,"src":"3 3by4_thumb.JPG","galleries_id":149628,"server_id":1,"link":"photo_2275895.html","width":130,"caption":"","height":98});
															thumbnails[2275900] = clik.newPhoto({"id":2275900,"src":"IMGP7053_thumb.JPG","galleries_id":149630,"server_id":1,"link":"photo_2275900.html","width":130,"caption":"","height":173});
															thumbnails[2287704] = clik.newPhoto({"id":2287704,"src":"IMGP7107_thumb.JPG","galleries_id":88489,"server_id":1,"link":"photo_2287704.html","width":130,"caption":"","height":183});
															thumbnails[2275873] = clik.newPhoto({"id":2275873,"src":"4 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275873.html","width":130,"caption":"","height":87});
															thumbnails[1237842] = clik.newPhoto({"id":1237842,"src":"IMGP5275web_thumb.jpg","galleries_id":88485,"server_id":1,"link":"photo_1237842.html","width":130,"caption":"","height":177});
															thumbnails[1432120] = clik.newPhoto({"id":1432120,"src":"IMGP5402web_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_1432120.html","width":130,"caption":"","height":98});
															thumbnails[2260874] = clik.newPhoto({"id":2260874,"src":"His & Hers web crop 3by4_thumb.jpg","galleries_id":88489,"server_id":1,"link":"photo_2260874.html","width":130,"caption":"","height":98});
															thumbnails[2275876] = clik.newPhoto({"id":2275876,"src":"5 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275876.html","width":130,"caption":"","height":87});
															thumbnails[6942078] = clik.newPhoto({"id":6942078,"src":"P1030094w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942078.html","width":130,"caption":"","height":98});
															thumbnails[8352947] = clik.newPhoto({"id":8352947,"src":"IMGP0475_SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352947.html","width":130,"caption":"","height":130});
															thumbnails[2275877] = clik.newPhoto({"id":2275877,"src":"6 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275877.html","width":130,"caption":"","height":87});
															thumbnails[2275880] = clik.newPhoto({"id":2275880,"src":"7 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275880.html","width":130,"caption":"","height":87});
															thumbnails[8352948] = clik.newPhoto({"id":8352948,"src":"IMGP0490__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352948.html","width":130,"caption":"","height":130});
															thumbnails[2098446] = clik.newPhoto({"id":2098446,"src":"IMGP6642web_thumb.jpg","galleries_id":88487,"server_id":1,"link":"photo_2098446.html","width":130,"caption":"","height":98});
															thumbnails[2275882] = clik.newPhoto({"id":2275882,"src":"8 6by4_thumb.JPG","galleries_id":149629,"server_id":1,"link":"photo_2275882.html","width":130,"caption":"","height":87});
															thumbnails[2277641] = clik.newPhoto({"id":2277641,"src":"IMGP6989crop_thumb.jpg","galleries_id":88485,"server_id":1,"link":"photo_2277641.html","width":130,"caption":"","height":173});
															thumbnails[8352963] = clik.newPhoto({"id":8352963,"src":"IMGP0555__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352963.html","width":130,"caption":"","height":130});
															thumbnails[1505839] = clik.newPhoto({"id":1505839,"src":"IMG_1456WEBcol_thumb.jpg","galleries_id":88485,"server_id":1,"link":"photo_1505839.html","width":130,"caption":"","height":173});
															thumbnails[1432183] = clik.newPhoto({"id":1432183,"src":"IMGP5405s_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_1432183.html","width":130,"caption":"","height":98});
															thumbnails[2098449] = clik.newPhoto({"id":2098449,"src":"IMGP6645web_thumb.jpg","galleries_id":88487,"server_id":1,"link":"photo_2098449.html","width":130,"caption":"","height":98});
															thumbnails[6942072] = clik.newPhoto({"id":6942072,"src":"P1030086w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942072.html","width":130,"caption":"","height":98});
															thumbnails[7559478] = clik.newPhoto({"id":7559478,"src":"P1040252e_thumb.JPG","galleries_id":149624,"server_id":1,"link":"photo_7559478.html","width":130,"caption":"","height":98});
															thumbnails[8352954] = clik.newPhoto({"id":8352954,"src":"IMGP0521__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352954.html","width":130,"caption":"","height":130});
															thumbnails[2212078] = clik.newPhoto({"id":2212078,"src":"IMGP6751_thumb.JPG","galleries_id":88487,"server_id":1,"link":"photo_2212078.html","width":130,"caption":"","height":97});
															thumbnails[7559470] = clik.newPhoto({"id":7559470,"src":"P1040249e_thumb.JPG","galleries_id":149624,"server_id":1,"link":"photo_7559470.html","width":130,"caption":"","height":98});
															thumbnails[7559472] = clik.newPhoto({"id":7559472,"src":"P1040257e_thumb.JPG","galleries_id":149624,"server_id":1,"link":"photo_7559472.html","width":130,"caption":"","height":98});
															thumbnails[6942074] = clik.newPhoto({"id":6942074,"src":"P1030088w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942074.html","width":130,"caption":"","height":98});
															thumbnails[7559467] = clik.newPhoto({"id":7559467,"src":"P1040245eH_thumb.JPG","galleries_id":149624,"server_id":1,"link":"photo_7559467.html","width":130,"caption":"","height":98});
															thumbnails[8352950] = clik.newPhoto({"id":8352950,"src":"IMGP0507__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352950.html","width":130,"caption":"","height":130});
															thumbnails[1237805] = clik.newPhoto({"id":1237805,"src":"DunlopsWeb_thumb.jpg","galleries_id":88485,"server_id":1,"link":"photo_1237805.html","width":130,"caption":"","height":87});
															thumbnails[6942067] = clik.newPhoto({"id":6942067,"src":"P1030262w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942067.html","width":130,"caption":"","height":98});
															thumbnails[8352949] = clik.newPhoto({"id":8352949,"src":"IMGP0496__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352949.html","width":130,"caption":"","height":130});
															thumbnails[6942070] = clik.newPhoto({"id":6942070,"src":"P1030097w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942070.html","width":130,"caption":"","height":98});
															thumbnails[8352952] = clik.newPhoto({"id":8352952,"src":"IMGP0497__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352952.html","width":130,"caption":"","height":130});
															thumbnails[1506085] = clik.newPhoto({"id":1506085,"src":"AngelaWEB2_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_1506085.html","width":130,"caption":"","height":189});
															thumbnails[6942075] = clik.newPhoto({"id":6942075,"src":"P1030255w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942075.html","width":130,"caption":"","height":98});
															thumbnails[8309408] = clik.newPhoto({"id":8309408,"src":"nice063_c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8309408.html","width":130,"caption":"","height":182});
															thumbnails[8352951] = clik.newPhoto({"id":8352951,"src":"IMGP0508__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352951.html","width":130,"caption":"","height":130});
															thumbnails[6494032] = clik.newPhoto({"id":6494032,"src":"P1020221_thumb.JPG","galleries_id":99176,"server_id":1,"link":"photo_6494032.html","width":130,"caption":"","height":98});
															thumbnails[6942080] = clik.newPhoto({"id":6942080,"src":"P1030246w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942080.html","width":130,"caption":"","height":98});
															thumbnails[8352961] = clik.newPhoto({"id":8352961,"src":"IMGP0510__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352961.html","width":130,"caption":"","height":130});
															thumbnails[1237818] = clik.newPhoto({"id":1237818,"src":"IMGP0910web copy_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_1237818.html","width":130,"caption":"","height":173});
															thumbnails[2761304] = clik.newPhoto({"id":2761304,"src":"light construction_thumb.jpg","galleries_id":88487,"server_id":1,"link":"photo_2761304.html","width":130,"caption":"","height":109});
															thumbnails[6942094] = clik.newPhoto({"id":6942094,"src":"P1020179w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6942094.html","width":130,"caption":"","height":97});
															thumbnails[8309407] = clik.newPhoto({"id":8309407,"src":"nice062_c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8309407.html","width":130,"caption":"","height":182});
															thumbnails[1237824] = clik.newPhoto({"id":1237824,"src":"IMGP0901web_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_1237824.html","width":130,"caption":"","height":173});
															thumbnails[1480631] = clik.newPhoto({"id":1480631,"src":"IMG_1440WEB_thumb.jpg","galleries_id":88481,"server_id":1,"link":"photo_1480631.html","width":130,"caption":"","height":195});
															thumbnails[8352959] = clik.newPhoto({"id":8352959,"src":"IMGP0550__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352959.html","width":130,"caption":"","height":130});
															thumbnails[2149046] = clik.newPhoto({"id":2149046,"src":"IMGP6664_thumb.JPG","galleries_id":88487,"server_id":1,"link":"photo_2149046.html","width":130,"caption":"","height":98});
															thumbnails[2260848] = clik.newPhoto({"id":2260848,"src":"IMGP6968 crop 3by4_thumb.JPG","galleries_id":149624,"server_id":1,"link":"photo_2260848.html","width":130,"caption":"","height":173});
															thumbnails[2277643] = clik.newPhoto({"id":2277643,"src":"IMGP7042 crop 4by3_thumb.jpg","galleries_id":88489,"server_id":1,"link":"photo_2277643.html","width":130,"caption":"","height":98});
															thumbnails[8309406] = clik.newPhoto({"id":8309406,"src":"nice061c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8309406.html","width":130,"caption":"","height":182});
															thumbnails[8352957] = clik.newPhoto({"id":8352957,"src":"IMGP0545__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352957.html","width":130,"caption":"","height":130});
															thumbnails[8309401] = clik.newPhoto({"id":8309401,"src":"nice048_c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8309401.html","width":130,"caption":"","height":182});
															thumbnails[8353025] = clik.newPhoto({"id":8353025,"src":"IMGP0559__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8353025.html","width":130,"caption":"","height":130});
															thumbnails[2149062] = clik.newPhoto({"id":2149062,"src":"IMGP6767_thumb.JPG","galleries_id":88487,"server_id":1,"link":"photo_2149062.html","width":130,"caption":"","height":97});
															thumbnails[2260852] = clik.newPhoto({"id":2260852,"src":"IMGP6976 web crop 3by4_thumb.JPG","galleries_id":149624,"server_id":1,"link":"photo_2260852.html","width":130,"caption":"","height":173});
															thumbnails[6939889] = clik.newPhoto({"id":6939889,"src":"P1030208w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6939889.html","width":130,"caption":"","height":98});
															thumbnails[8309404] = clik.newPhoto({"id":8309404,"src":"nice059_c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8309404.html","width":130,"caption":"","height":182});
															thumbnails[8352988] = clik.newPhoto({"id":8352988,"src":"IMGP0562__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352988.html","width":130,"caption":"","height":130});
															thumbnails[8309402] = clik.newPhoto({"id":8309402,"src":"nice050_c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8309402.html","width":130,"caption":"","height":182});
															thumbnails[2277404] = clik.newPhoto({"id":2277404,"src":"IMGP6972 3by4_thumb.jpg","galleries_id":149624,"server_id":1,"link":"photo_2277404.html","width":130,"caption":"","height":173});
															thumbnails[6939836] = clik.newPhoto({"id":6939836,"src":"P1030206w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6939836.html","width":130,"caption":"","height":98});
															thumbnails[6939828] = clik.newPhoto({"id":6939828,"src":"P1030204w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6939828.html","width":130,"caption":"","height":98});
															thumbnails[6939835] = clik.newPhoto({"id":6939835,"src":"P1030213w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6939835.html","width":130,"caption":"","height":98});
															thumbnails[8309395] = clik.newPhoto({"id":8309395,"src":"nice031_c_com_thumb.jpg","galleries_id":88486,"server_id":19,"link":"photo_8309395.html","width":130,"caption":"","height":182});
															thumbnails[8352955] = clik.newPhoto({"id":8352955,"src":"IMGP0541__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8352955.html","width":130,"caption":"","height":130});
															thumbnails[2357652] = clik.newPhoto({"id":2357652,"src":"IMGP7236c_thumb.jpg","galleries_id":88487,"server_id":1,"link":"photo_2357652.html","width":130,"caption":"","height":98});
															thumbnails[6939840] = clik.newPhoto({"id":6939840,"src":"P1030212w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6939840.html","width":130,"caption":"","height":98});
															thumbnails[8353065] = clik.newPhoto({"id":8353065,"src":"IMGP0569__SQ_thumb.jpg","galleries_id":443772,"server_id":35,"link":"photo_8353065.html","width":130,"caption":"","height":130});
															thumbnails[2357641] = clik.newPhoto({"id":2357641,"src":"IMGP7237_thumb.JPG","galleries_id":88487,"server_id":1,"link":"photo_2357641.html","width":130,"caption":"","height":98});
															thumbnails[6939886] = clik.newPhoto({"id":6939886,"src":"P1030211w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6939886.html","width":130,"caption":"","height":98});
															thumbnails[6939895] = clik.newPhoto({"id":6939895,"src":"P1030201w_thumb.jpg","galleries_id":99176,"server_id":1,"link":"photo_6939895.html","width":130,"caption":"","height":98});
															thumbnails[6494016] = clik.newPhoto({"id":6494016,"src":"P1020223_thumb.JPG","galleries_id":99176,"server_id":1,"link":"photo_6494016.html","width":130,"caption":"","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[88481] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Drawings","link":"gallery_88481.html","maxRecords":0.0,"photoIDs":[6494246.0,1432182.0,1432120.0,1432183.0,1506085.0,1237818.0,1237824.0,1480631.0],"skipIndex":0,"section_code":"gallery","featured_images":1432182.0,"id":88481,"singleSection":false});				  						galleries[149629] = clik.newGallery({"parentGallery":149625,"usePopups":false,"title":"Yesterday's Socks","link":"gallery_149629.html","maxRecords":0.0,"photoIDs":[2275864.0,2275866.0,2275870.0,2275873.0,2275876.0,2275877.0,2275880.0,2275882.0],"skipIndex":0,"section_code":"gallery","featured_images":"2275882,2275880,2275877,2275873,2275870","id":149629,"singleSection":false});				  						galleries[88489] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paper Cuts","link":"gallery_88489.html","maxRecords":0.0,"photoIDs":[1505846.0,2287704.0,2260874.0,2277643.0],"skipIndex":0,"section_code":"gallery","featured_images":2260874.0,"id":88489,"singleSection":false});				  						galleries[99176] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jewellery","link":"gallery_99176.html","maxRecords":0.0,"photoIDs":[6489075.0,6489076.0,6488973.0,6942078.0,6942072.0,6942074.0,6942067.0,6942070.0,6942075.0,6494032.0,6942080.0,6942094.0,6939889.0,6939836.0,6939828.0,6939835.0,6939840.0,6939886.0,6939895.0,6494016.0],"skipIndex":0,"section_code":"gallery","featured_images":"6942078,6942074,6942072,6939836,6494032,6494016","id":99176,"singleSection":false});				  						galleries[88487] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Projects","link":"gallery_88487.html","maxRecords":0.0,"photoIDs":[2098446.0,2098449.0,2212078.0,2761304.0,2149046.0,2149062.0,2357652.0,2357641.0],"skipIndex":0,"section_code":"gallery","featured_images":"2761304,2149062","id":88487,"singleSection":false});				  						galleries[149628] = clik.newGallery({"parentGallery":149625,"usePopups":false,"title":"Business Socks","link":"gallery_149628.html","maxRecords":0.0,"photoIDs":[2275851.0,2275891.0,2275895.0],"skipIndex":0,"section_code":"gallery","featured_images":2275851.0,"id":149628,"singleSection":false});				  						galleries[88485] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings","link":"gallery_88485.html","maxRecords":0.0,"photoIDs":[1260990.0,1237842.0,2277641.0,1505839.0,1237805.0],"skipIndex":0,"section_code":"gallery","featured_images":1237842.0,"id":88485,"singleSection":false});				  						galleries[149630] = clik.newGallery({"parentGallery":149625,"usePopups":false,"title":"Pull your socks up!","link":"gallery_149630.html","maxRecords":0.0,"photoIDs":[2275860.0,2275898.0,2275900.0],"skipIndex":0,"section_code":"gallery","featured_images":2275860.0,"id":149630,"singleSection":false});				  						galleries[149624] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Collage","link":"gallery_149624.html","maxRecords":0.0,"photoIDs":[7559478.0,7559470.0,7559472.0,7559467.0,2260848.0,2260852.0,2277404.0],"skipIndex":0,"section_code":"gallery","featured_images":"7559478,7559472","id":149624,"singleSection":false});				  						galleries[149625] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Works in series","link":"gallery_149625.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"2275882,2275880,2275877,2275873,2275870,2275860,2275851","id":149625,"singleSection":false});				  						galleries[88486] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Collaborations","link":"gallery_88486.html","maxRecords":0.0,"photoIDs":[8257741.0,8309408.0,8309407.0,8309406.0,8309401.0,8309404.0,8309402.0,8309395.0],"skipIndex":0,"section_code":"gallery","featured_images":8257741.0,"id":88486,"singleSection":false});				  						galleries[443772] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sketchbook","link":"gallery_443772.html","maxRecords":0.0,"photoIDs":[8352946.0,8352947.0,8352948.0,8352963.0,8352954.0,8352950.0,8352949.0,8352952.0,8352951.0,8352961.0,8352959.0,8352957.0,8353025.0,8352988.0,8352955.0,8353065.0],"skipIndex":0,"section_code":"gallery","featured_images":"8353065,8353025,8352988,8352961,8352959,8352957,8352955,8352954,8352952,8352951,8352950,8352949,8352948,8352947,8352946","id":443772,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7559472,6801684,6488973,2761304,2275851,2260874';
imageSets[2] = '8353065,8353025,8352988,8352961,8352959,8352957,8352955,8352954,8352952,8352951,8352950,8352949,8352948,8352947,8352946,8257741,7559478,7559472,6942078,6942074,6942072,6939836,6494032,6494016,2761304,2275882,2275880,2275877,2275873,2275870,2275860,2275851,2260874,2149062,1432182,1239367,1237842,1237813';
imageSets[3] = '8353065,8353025,8352988,8352963,8352961,8352959,8352957,8352955,8352954,8352952,8352951,8352950,8352949,8352948,8352947,8352946,8309410,8309408,8309407,8309406,8309405,8309404,8309402,8309401,8309395,8257741,7559478,7559472,7559470,7559467,6942094,6942080,6942078,6942075,6942074,6942072,6942070,6942067,6939895,6939889,6939886,6939840,6939836,6939835,6939828,6801684,6494246,6494036,6494032,6494016';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/beccasmith/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/beccasmith/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Becca Smith Sturgess: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="spacebuns@lycos.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="spacebuns@lycos.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

