window.thumbnails = {};
															thumbnails[3119011] = clik.newPhoto({"id":3119011,"src":"Beatrix_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3119011.html","width":130,"caption":"Beatrix","height":105});
															thumbnails[4776547] = clik.newPhoto({"id":4776547,"src":"1_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776547.html","width":130,"caption":"","height":195});
															thumbnails[5747128] = clik.newPhoto({"id":5747128,"src":"Polly_C8B74FDA-1EC9-D45B-1C2902C21B52E3F4_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_5747128.html","width":130,"caption":"Polly","height":119});
															thumbnails[8854923] = clik.newPhoto({"id":8854923,"src":"Evelyn_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8854923.html","width":130,"caption":"Evelyn","height":188});
															thumbnails[1410691] = clik.newPhoto({"id":1410691,"src":"Flo_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1410691.html","width":130,"caption":"Flo","height":130});
															thumbnails[3119023] = clik.newPhoto({"id":3119023,"src":"Debbie_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3119023.html","width":130,"caption":"Debbie","height":99});
															thumbnails[4395854] = clik.newPhoto({"id":4395854,"src":"Dee_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4395854.html","width":130,"caption":"Dee","height":93});
															thumbnails[5747132] = clik.newPhoto({"id":5747132,"src":"Summer_storm_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_5747132.html","width":130,"caption":"Summer Storm","height":103});
															thumbnails[8854932] = clik.newPhoto({"id":8854932,"src":"Orovida_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8854932.html","width":130,"caption":"Orovida","height":191});
															thumbnails[1410854] = clik.newPhoto({"id":1410854,"src":"Mo_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1410854.html","width":130,"caption":"Mo","height":131});
															thumbnails[1534369] = clik.newPhoto({"id":1534369,"src":"smaller dinah_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1534369.html","width":130,"caption":"Dinah","height":116});
															thumbnails[8854934] = clik.newPhoto({"id":8854934,"src":"Penelope_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8854934.html","width":130,"caption":"Penelope","height":63});
															thumbnails[228368] = clik.newPhoto({"id":228368,"src":"Chi-chi_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_228368.html","width":130,"caption":"Chi Chi","height":128});
															thumbnails[2722506] = clik.newPhoto({"id":2722506,"src":"Nellie_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2722506.html","width":130,"caption":"Nellie","height":113});
															thumbnails[4776568] = clik.newPhoto({"id":4776568,"src":"4_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776568.html","width":130,"caption":"","height":195});
															thumbnails[8972197] = clik.newPhoto({"id":8972197,"src":"Queenies_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8972197.html","width":130,"caption":"Queenie","height":85});
															thumbnails[2257542] = clik.newPhoto({"id":2257542,"src":"Fran_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2257542.html","width":130,"caption":"Fran","height":68});
															thumbnails[4776571] = clik.newPhoto({"id":4776571,"src":"5_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776571.html","width":130,"caption":"","height":202});
															thumbnails[4776573] = clik.newPhoto({"id":4776573,"src":"6_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776573.html","width":130,"caption":"","height":195});
															thumbnails[229485] = clik.newPhoto({"id":229485,"src":"Calm_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_229485.html","width":130,"caption":"Calm-g","height":73});
															thumbnails[3119046] = clik.newPhoto({"id":3119046,"src":"Polly_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3119046.html","width":130,"caption":"Polly","height":186});
															thumbnails[3424955] = clik.newPhoto({"id":3424955,"src":"Ferrie_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3424955.html","width":130,"caption":"Ferrie","height":75});
															thumbnails[4776580] = clik.newPhoto({"id":4776580,"src":"7_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776580.html","width":130,"caption":"","height":87});
															thumbnails[3119048] = clik.newPhoto({"id":3119048,"src":"Oona_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3119048.html","width":130,"caption":"Oona","height":173});
															thumbnails[4776585] = clik.newPhoto({"id":4776585,"src":"8_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776585.html","width":130,"caption":"","height":87});
															thumbnails[3324331] = clik.newPhoto({"id":3324331,"src":"Edie_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3324331.html","width":130,"caption":"Edie","height":191});
															thumbnails[3622006] = clik.newPhoto({"id":3622006,"src":"Ava_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3622006.html","width":130,"caption":"Ava (was Foggy)","height":119});
															thumbnails[1208729] = clik.newPhoto({"id":1208729,"src":"BB21_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1208729.html","width":130,"caption":"Bee Bee","height":158});
															thumbnails[3324476] = clik.newPhoto({"id":3324476,"src":"Darcy_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3324476.html","width":130,"caption":"Darcy","height":196});
															thumbnails[4566667] = clik.newPhoto({"id":4566667,"src":"Lottie_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4566667.html","width":130,"caption":"Lottie","height":132});
															thumbnails[2722473] = clik.newPhoto({"id":2722473,"src":"Hallie_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2722473.html","width":130,"caption":"Hallie","height":128});
															thumbnails[6892936] = clik.newPhoto({"id":6892936,"src":"Elstone2Alicia_thumb.jpg","galleries_id":374051,"server_id":1,"link":"photo_6892936.html","width":130,"caption":"Alicia","height":192});
															thumbnails[2949990] = clik.newPhoto({"id":2949990,"src":"Shelby_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2949990.html","width":130,"caption":"Shelby","height":134});
															thumbnails[2949994] = clik.newPhoto({"id":2949994,"src":"Mi-mi_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2949994.html","width":130,"caption":"Mimi","height":130});
															thumbnails[4710722] = clik.newPhoto({"id":4710722,"src":"Bess_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4710722.html","width":130,"caption":"Bess","height":130});
															thumbnails[6892928] = clik.newPhoto({"id":6892928,"src":"Elstone_Hayes_2Bree_thumb.jpg","galleries_id":374051,"server_id":1,"link":"photo_6892928.html","width":130,"caption":"Bree","height":192});
															thumbnails[2949996] = clik.newPhoto({"id":2949996,"src":"Molly_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2949996.html","width":130,"caption":"Molly","height":134});
															thumbnails[6892962] = clik.newPhoto({"id":6892962,"src":"Arkley_-_Main_Deck_Salon_thumb.jpg","galleries_id":374051,"server_id":1,"link":"photo_6892962.html","width":130,"caption":"Bree and Alicia in situ","height":80});
															thumbnails[7050818] = clik.newPhoto({"id":7050818,"src":"Nerrys_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_7050818.html","width":130,"caption":"Nerys","height":51});
															thumbnails[8660842] = clik.newPhoto({"id":8660842,"src":"eha_arkley_05_thumb.jpg","galleries_id":374051,"server_id":1,"link":"photo_8660842.html","width":130,"caption":"Bree in situ","height":66});
															thumbnails[2984448] = clik.newPhoto({"id":2984448,"src":"Hester_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2984448.html","width":130,"caption":"Hester","height":132});
															thumbnails[3100340] = clik.newPhoto({"id":3100340,"src":"Rhona_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3100340.html","width":130,"caption":"Rhona","height":133});
															thumbnails[7998109] = clik.newPhoto({"id":7998109,"src":"Nic_thumb.jpg","galleries_id":374051,"server_id":1,"link":"photo_7998109.html","width":130,"caption":"Nicola","height":133});
															thumbnails[2988660] = clik.newPhoto({"id":2988660,"src":"Emille_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2988660.html","width":130,"caption":"Emille","height":133});
															thumbnails[981314] = clik.newPhoto({"id":981314,"src":"lola_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_981314.html","width":130,"caption":"Lola","height":116});
															thumbnails[3100353] = clik.newPhoto({"id":3100353,"src":"Elsie_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3100353.html","width":130,"caption":"Elsie","height":133});
															thumbnails[4756211] = clik.newPhoto({"id":4756211,"src":"Ermengarde_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4756211.html","width":130,"caption":"Ermengarde","height":101});
															thumbnails[4756215] = clik.newPhoto({"id":4756215,"src":"Kitty_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4756215.html","width":130,"caption":"Kitty","height":122});
															thumbnails[4776556] = clik.newPhoto({"id":4776556,"src":"2_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776556.html","width":130,"caption":"","height":87});
															thumbnails[7894687] = clik.newPhoto({"id":7894687,"src":"Kathysml_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7894687.html","width":130,"caption":"Kathy","height":129});
															thumbnails[3100336] = clik.newPhoto({"id":3100336,"src":"Rosie_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3100336.html","width":130,"caption":"Rosie","height":79});
															thumbnails[4426564] = clik.newPhoto({"id":4426564,"src":"Cassie1_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4426564.html","width":130,"caption":"Cassie","height":83});
															thumbnails[1076156] = clik.newPhoto({"id":1076156,"src":"Never-finish_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1076156.html","width":130,"caption":"Never-finish","height":88});
															thumbnails[4426561] = clik.newPhoto({"id":4426561,"src":"Bette_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4426561.html","width":130,"caption":"Bette","height":97});
															thumbnails[906234] = clik.newPhoto({"id":906234,"src":"Cheesecake2_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_906234.html","width":130,"caption":"Cheesecake","height":83});
															thumbnails[7929050] = clik.newPhoto({"id":7929050,"src":"cherry_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7929050.html","width":130,"caption":"Cherry","height":130});
															thumbnails[228344] = clik.newPhoto({"id":228344,"src":"pop1_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_228344.html","width":130,"caption":"Pop","height":63});
															thumbnails[1179960] = clik.newPhoto({"id":1179960,"src":"ccecy_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1179960.html","width":130,"caption":"Cecy","height":91});
															thumbnails[1216564] = clik.newPhoto({"id":1216564,"src":"Viole1_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_1216564.html","width":130,"caption":"Viole","height":57});
															thumbnails[1782236] = clik.newPhoto({"id":1782236,"src":"Maai_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1782236.html","width":130,"caption":"Mai","height":60});
															thumbnails[4776561] = clik.newPhoto({"id":4776561,"src":"3_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_4776561.html","width":130,"caption":"","height":87});
															thumbnails[7891200] = clik.newPhoto({"id":7891200,"src":"Reenie_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7891200.html","width":130,"caption":"Elspeth","height":129});
															thumbnails[1410670] = clik.newPhoto({"id":1410670,"src":"2192297145_6fea24a84f_o_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1410670.html","width":130,"caption":"Flossie Bobs","height":41});
															thumbnails[1065246] = clik.newPhoto({"id":1065246,"src":"gigi2_thumb.jpg","galleries_id":119825,"server_id":1,"link":"photo_1065246.html","width":130,"caption":"Gigi","height":61});
															thumbnails[2015894] = clik.newPhoto({"id":2015894,"src":"Holly_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2015894.html","width":130,"caption":"Holly","height":96});
															thumbnails[1960559] = clik.newPhoto({"id":1960559,"src":"Jess_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_1960559.html","width":130,"caption":"Jess","height":99});
															thumbnails[1832048] = clik.newPhoto({"id":1832048,"src":"Ellie_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_1832048.html","width":130,"caption":"Ellie","height":90});
															thumbnails[1888242] = clik.newPhoto({"id":1888242,"src":"Leah_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_1888242.html","width":130,"caption":"Leah","height":85});
															thumbnails[8774263] = clik.newPhoto({"id":8774263,"src":"Ro3_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_8774263.html","width":130,"caption":"","height":98});
															thumbnails[3228000] = clik.newPhoto({"id":3228000,"src":"Graciesml_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_3228000.html","width":130,"caption":"Grace","height":127});
															thumbnails[6446662] = clik.newPhoto({"id":6446662,"src":"kike33_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6446662.html","width":130,"caption":"Kike","height":77});
															thumbnails[7542081] = clik.newPhoto({"id":7542081,"src":"Lesley_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7542081.html","width":130,"caption":"Lesley","height":130});
															thumbnails[5734318] = clik.newPhoto({"id":5734318,"src":"Miriam_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_5734318.html","width":130,"caption":"Miriam","height":90});
															thumbnails[6109047] = clik.newPhoto({"id":6109047,"src":"maya3_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6109047.html","width":130,"caption":"Maya","height":88});
															thumbnails[6137945] = clik.newPhoto({"id":6137945,"src":"Bill1_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6137945.html","width":130,"caption":"Bill","height":55});
															thumbnails[8774264] = clik.newPhoto({"id":8774264,"src":"RO4_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_8774264.html","width":130,"caption":"","height":93});
															thumbnails[5376092] = clik.newPhoto({"id":5376092,"src":"Róisín_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_5376092.html","width":130,"caption":"Róisín","height":128});
															thumbnails[7311306] = clik.newPhoto({"id":7311306,"src":"Dottie_May_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7311306.html","width":130,"caption":"Dottie May","height":123});
															thumbnails[8774265] = clik.newPhoto({"id":8774265,"src":"ro5_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_8774265.html","width":130,"caption":"","height":95});
															thumbnails[6308562] = clik.newPhoto({"id":6308562,"src":"sammysml_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6308562.html","width":130,"caption":"Sammy","height":131});
															thumbnails[6578958] = clik.newPhoto({"id":6578958,"src":"786_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6578958.html","width":130,"caption":"Peggy","height":130});
															thumbnails[1888252] = clik.newPhoto({"id":1888252,"src":"Helena_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_1888252.html","width":130,"caption":"Helena","height":134});
															thumbnails[4823028] = clik.newPhoto({"id":4823028,"src":"Maude_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4823028.html","width":130,"caption":"Maude","height":187});
															thumbnails[6707117] = clik.newPhoto({"id":6707117,"src":"Jemima_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6707117.html","width":130,"caption":"Jemima","height":126});
															thumbnails[8774266] = clik.newPhoto({"id":8774266,"src":"Running_over2_thumb.jpg","galleries_id":374041,"server_id":1,"link":"photo_8774266.html","width":130,"caption":"","height":95});
															thumbnails[5376087] = clik.newPhoto({"id":5376087,"src":"Celestine_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_5376087.html","width":130,"caption":"Celestine","height":128});
															thumbnails[8026280] = clik.newPhoto({"id":8026280,"src":"saskia2_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8026280.html","width":130,"caption":"Saskia","height":128});
															thumbnails[6707122] = clik.newPhoto({"id":6707122,"src":"Jennie_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6707122.html","width":130,"caption":"Jennie","height":131});
															thumbnails[1065297] = clik.newPhoto({"id":1065297,"src":"lulu1_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_1065297.html","width":130,"caption":"Lulu","height":73});
															thumbnails[2029929] = clik.newPhoto({"id":2029929,"src":"Phillfinished_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2029929.html","width":130,"caption":"Phill","height":39});
															thumbnails[3358985] = clik.newPhoto({"id":3358985,"src":"Mabel1_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3358985.html","width":130,"caption":"Mabel","height":193});
															thumbnails[6308574] = clik.newPhoto({"id":6308574,"src":"Josie2_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6308574.html","width":130,"caption":"Josie","height":130});
															thumbnails[8067058] = clik.newPhoto({"id":8067058,"src":"Julia_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8067058.html","width":130,"caption":"Julia","height":130});
															thumbnails[2248044] = clik.newPhoto({"id":2248044,"src":"Stanley_thumb.jpg","galleries_id":172322,"server_id":1,"link":"photo_2248044.html","width":130,"caption":"Stanley","height":44});
															thumbnails[6072633] = clik.newPhoto({"id":6072633,"src":"Rachel_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6072633.html","width":130,"caption":"Rachel","height":127});
															thumbnails[5990815] = clik.newPhoto({"id":5990815,"src":"Sarla_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_5990815.html","width":130,"caption":"Sarla","height":132});
															thumbnails[7363467] = clik.newPhoto({"id":7363467,"src":"Ella_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7363467.html","width":130,"caption":"Ella","height":93});
															thumbnails[5747293] = clik.newPhoto({"id":5747293,"src":"Dave_copy_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_5747293.html","width":130,"caption":"Dave","height":181});
															thumbnails[8336172] = clik.newPhoto({"id":8336172,"src":"Rowwan_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8336172.html","width":130,"caption":"Rowan","height":76});
															thumbnails[6072629] = clik.newPhoto({"id":6072629,"src":"Laura_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_6072629.html","width":130,"caption":"Laura","height":132});
															thumbnails[6892968] = clik.newPhoto({"id":6892968,"src":"Sara_thumb.jpg","galleries_id":374051,"server_id":1,"link":"photo_6892968.html","width":130,"caption":"Sara","height":129});
															thumbnails[8092954] = clik.newPhoto({"id":8092954,"src":"Laurie_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_8092954.html","width":130,"caption":"Laurie","height":76});
															thumbnails[5747291] = clik.newPhoto({"id":5747291,"src":"James_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_5747291.html","width":130,"caption":"James","height":115});
															thumbnails[3324495] = clik.newPhoto({"id":3324495,"src":"Mildred_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3324495.html","width":130,"caption":"Mildred","height":185});
															thumbnails[5882315] = clik.newPhoto({"id":5882315,"src":"28_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_5882315.html","width":130,"caption":"Lisa","height":131});
															thumbnails[6892966] = clik.newPhoto({"id":6892966,"src":"4709145959_3a7d7ec737_o_thumb.jpg","galleries_id":374051,"server_id":1,"link":"photo_6892966.html","width":130,"caption":"Linsey","height":129});
															thumbnails[228382] = clik.newPhoto({"id":228382,"src":"pretty-g_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_228382.html","width":130,"caption":"Pretty g","height":128});
															thumbnails[229475] = clik.newPhoto({"id":229475,"src":"Wiggles_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_229475.html","width":130,"caption":"Wiggles","height":113});
															thumbnails[3608441] = clik.newPhoto({"id":3608441,"src":"Alexis_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3608441.html","width":130,"caption":"Alexis","height":186});
															thumbnails[2056195] = clik.newPhoto({"id":2056195,"src":"viole_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_2056195.html","width":130,"caption":"Vivienne","height":109});
															thumbnails[3994005] = clik.newPhoto({"id":3994005,"src":"Kate11_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3994005.html","width":130,"caption":"Kate","height":167});
															thumbnails[3994012] = clik.newPhoto({"id":3994012,"src":"Katie_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3994012.html","width":130,"caption":"Katie","height":166});
															thumbnails[5803381] = clik.newPhoto({"id":5803381,"src":"Maggiesml_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_5803381.html","width":130,"caption":"Maggie","height":134});
															thumbnails[7891197] = clik.newPhoto({"id":7891197,"src":"Floraasml_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7891197.html","width":130,"caption":"Flora","height":58});
															thumbnails[279339] = clik.newPhoto({"id":279339,"src":"Kitty_blue_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_279339.html","width":130,"caption":"Kitty Blue aka \"Black Betty\"","height":121});
															thumbnails[1802612] = clik.newPhoto({"id":1802612,"src":"Bleeding sky_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_1802612.html","width":130,"caption":"Bleeding Sky","height":69});
															thumbnails[4566666] = clik.newPhoto({"id":4566666,"src":"Sophie_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_4566666.html","width":130,"caption":"Sophie","height":132});
															thumbnails[906224] = clik.newPhoto({"id":906224,"src":"Femire_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_906224.html","width":130,"caption":"Femir","height":65});
															thumbnails[3994021] = clik.newPhoto({"id":3994021,"src":"Tabitha_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3994021.html","width":130,"caption":"Tabitha","height":132});
															thumbnails[3621962] = clik.newPhoto({"id":3621962,"src":"Morgana__thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3621962.html","width":130,"caption":"Morgana","height":130});
															thumbnails[3621980] = clik.newPhoto({"id":3621980,"src":"Posy__thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3621980.html","width":130,"caption":"Posy","height":130});
															thumbnails[981330] = clik.newPhoto({"id":981330,"src":"Rushesss_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_981330.html","width":130,"caption":"Rushes","height":72});
															thumbnails[3622020] = clik.newPhoto({"id":3622020,"src":"Sylviia_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3622020.html","width":130,"caption":"Sylvia","height":83});
															thumbnails[981369] = clik.newPhoto({"id":981369,"src":"Leekub_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_981369.html","width":130,"caption":"Lekub","height":84});
															thumbnails[3622097] = clik.newPhoto({"id":3622097,"src":"Bobbiesmall_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3622097.html","width":130,"caption":"Bobbie","height":87});
															thumbnails[3622106] = clik.newPhoto({"id":3622106,"src":"Nia_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3622106.html","width":130,"caption":"Nia","height":127});
															thumbnails[3622118] = clik.newPhoto({"id":3622118,"src":"Erin_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3622118.html","width":130,"caption":"Erin","height":129});
															thumbnails[3622185] = clik.newPhoto({"id":3622185,"src":"Freya_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3622185.html","width":130,"caption":"Freya","height":76});
															thumbnails[3622212] = clik.newPhoto({"id":3622212,"src":"ysobel_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_3622212.html","width":130,"caption":"Ysobel","height":93});
															thumbnails[228328] = clik.newPhoto({"id":228328,"src":"Fritzin_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_228328.html","width":130,"caption":"Fritzin","height":44});
															thumbnails[228365] = clik.newPhoto({"id":228365,"src":"Parhelia_thumb.jpg","galleries_id":325512,"server_id":1,"link":"photo_228365.html","width":130,"caption":"Parhelia","height":129});
															thumbnails[7673652] = clik.newPhoto({"id":7673652,"src":"Joolssml_thumb.jpg","galleries_id":395424,"server_id":1,"link":"photo_7673652.html","width":130,"caption":"Jools","height":50});
															thumbnails[5532426] = clik.newPhoto({"id":5532426,"src":"bhopal_thumb.jpg","galleries_id":303168,"server_id":1,"link":"photo_5532426.html","width":130,"caption":"Azid","height":130});
															thumbnails[9007034] = clik.newPhoto({"id":9007034,"src":"Lily_thumb.jpg","galleries_id":474549,"server_id":1,"link":"photo_9007034.html","width":130,"caption":"Lily","height":130});
															thumbnails[8972158] = clik.newPhoto({"id":8972158,"src":"Cicely_copy_thumb.jpg","galleries_id":474549,"server_id":1,"link":"photo_8972158.html","width":130,"caption":"Cicely","height":130});
															thumbnails[9042074] = clik.newPhoto({"id":9042074,"src":"Prudence_thumb.jpg","galleries_id":474549,"server_id":1,"link":"photo_9042074.html","width":130,"caption":"Prudence","height":129});
															thumbnails[6859321] = clik.newPhoto({"id":6859321,"src":"Rory_thumb.jpg","galleries_id":202614,"server_id":1,"link":"photo_6859321.html","width":130,"caption":"Rory","height":96});
															thumbnails[9062910] = clik.newPhoto({"id":9062910,"src":"Petra_thumb.jpg","galleries_id":474549,"server_id":1,"link":"photo_9062910.html","width":130,"caption":"Petra","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[474549] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Coloured Grounds: 2012","link":"gallery_474549.html","maxRecords":0.0,"photoIDs":[9007034.0,8972158.0,9042074.0,9062910.0],"skipIndex":0,"section_code":"gallery","featured_images":8972158.0,"id":474549,"singleSection":false});				  						galleries[395424] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Stellar: 2011","link":"gallery_395424.html","maxRecords":0.0,"photoIDs":[8854923.0,8854932.0,8854934.0,8972197.0,7894687.0,7929050.0,7891200.0,7542081.0,7311306.0,8026280.0,8067058.0,7363467.0,8336172.0,8092954.0,7891197.0,7673652.0],"skipIndex":0,"section_code":"gallery","featured_images":7311306.0,"id":395424,"singleSection":false});				  						galleries[303168] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Liquid Soul: 2010","link":"gallery_303168.html","maxRecords":0.0,"photoIDs":[7050818.0,6446662.0,5734318.0,6109047.0,6137945.0,5376092.0,6308562.0,6578958.0,6707117.0,5376087.0,6707122.0,6308574.0,6072633.0,5990815.0,6072629.0,5882315.0,5803381.0,5532426.0],"skipIndex":0,"section_code":"gallery","featured_images":"5376092,5376087","id":303168,"singleSection":false});				  						galleries[202614] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Fast Soul: 2009","link":"gallery_202614.html","maxRecords":0.0,"photoIDs":[4395854.0,3424955.0,3622006.0,4566667.0,4710722.0,4756211.0,4756215.0,4426564.0,4426561.0,4823028.0,3358985.0,3324495.0,3608441.0,3994005.0,3994012.0,4566666.0,3994021.0,3621962.0,3621980.0,3622020.0,3622097.0,3622106.0,3622118.0,3622185.0,3622212.0,6859321.0],"skipIndex":0,"section_code":"gallery","featured_images":4566667.0,"id":202614,"singleSection":false});				  						galleries[172322] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"2008: Precipitation Series","link":"gallery_172322.html","maxRecords":0.0,"photoIDs":[3119011.0,3119023.0,2722506.0,2257542.0,3119046.0,3119048.0,3324331.0,3324476.0,2722473.0,2949990.0,2949994.0,2949996.0,2984448.0,3100340.0,2988660.0,3100353.0,3100336.0,2015894.0,1960559.0,1832048.0,1888242.0,3228000.0,1888252.0,2029929.0,2248044.0],"skipIndex":0,"section_code":"gallery","featured_images":3119011.0,"id":172322,"singleSection":false});				  						galleries[119825] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The Drift: 2006 - 07","link":"gallery_119825.html","maxRecords":0.0,"photoIDs":[1410691.0,1410854.0,1534369.0,1208729.0,981314.0,1076156.0,906234.0,1179960.0,1782236.0,1410670.0,1065246.0],"skipIndex":0,"section_code":"gallery","featured_images":1534369.0,"id":119825,"singleSection":false});				  						galleries[325512] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Early Work: 2003 - 2005","link":"gallery_325512.html","maxRecords":0.0,"photoIDs":[5747128.0,5747132.0,228368.0,229485.0,228344.0,1216564.0,1065297.0,5747293.0,5747291.0,228382.0,229475.0,2056195.0,279339.0,1802612.0,906224.0,981330.0,981369.0,228328.0,228365.0],"skipIndex":0,"section_code":"gallery","featured_images":"5747291,228365,228344","id":325512,"singleSection":false});				  						galleries[374051] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Commissions","link":"gallery_374051.html","maxRecords":0.0,"photoIDs":[6892936.0,6892928.0,6892962.0,8660842.0,7998109.0,6892968.0,6892966.0],"skipIndex":0,"section_code":"gallery","featured_images":6892966.0,"id":374051,"singleSection":false});				  						galleries[374041] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Exhibitions","link":"gallery_374041.html","maxRecords":0.0,"photoIDs":[4776547.0,4776568.0,4776571.0,4776573.0,4776580.0,4776585.0,4776556.0,4776561.0,8774263.0,8774264.0,8774265.0,8774266.0],"skipIndex":0,"section_code":"gallery","featured_images":4776585.0,"id":374041,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8972158';
imageSets[2] = '3119011,1534369,4776585,4566667,228344,5376092,7311306,5376087,5747291,6892966,228365,8972158';
imageSets[3] = '4776547,5747132,4776568,4776571,4776573,4776580,4776585,4756211,4776556,4756215,4776561,6446662,5734318,6109047,6137945,6578958,6308562,6707117,4823028,5376087,6308574,6072633,5990815,5747293,6072629,5882315,5803381,5532426,6859321';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/georgina/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/georgina/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/georgina/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/georgina/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/georgina/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/georgina/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/georgina/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/georgina/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 = 'georgina vinsun - Fine Art: ' + 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> &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.item_price !== '') {
																		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="georgievinsun@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="georgievinsun@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

