window.thumbnails = {};
															thumbnails[8371170] = clik.newPhoto({"id":8371170,"src":"Shoes_thumb.jpg","galleries_id":66215,"server_id":37,"link":"photo_8371170.html","width":130,"caption":"Wedding details...","height":173});
															thumbnails[8371172] = clik.newPhoto({"id":8371172,"src":"Wedding_Rings_thumb.jpg","galleries_id":66215,"server_id":37,"link":"photo_8371172.html","width":130,"caption":"Wedding details 02","height":173});
															thumbnails[8371174] = clik.newPhoto({"id":8371174,"src":"Ring_02_thumb.jpg","galleries_id":66215,"server_id":37,"link":"photo_8371174.html","width":130,"caption":"Wedding details 03","height":173});
															thumbnails[8371180] = clik.newPhoto({"id":8371180,"src":"Flowers_thumb.jpg","galleries_id":66215,"server_id":37,"link":"photo_8371180.html","width":130,"caption":"Wedding details 04","height":173});
															thumbnails[7600374] = clik.newPhoto({"id":7600374,"src":"Carly_ii_thumb.jpg","galleries_id":412247,"server_id":1,"link":"photo_7600374.html","width":130,"caption":"Maternity","height":98});
															thumbnails[7600409] = clik.newPhoto({"id":7600409,"src":"Carly_10_thumb.jpg","galleries_id":412247,"server_id":1,"link":"photo_7600409.html","width":130,"caption":"Carly","height":195});
															thumbnails[7116104] = clik.newPhoto({"id":7116104,"src":"Mist_web_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_7116104.html","width":130,"caption":"Mist","height":55});
															thumbnails[5649723] = clik.newPhoto({"id":5649723,"src":"Lucy__Gareth_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_5649723.html","width":130,"caption":"Lucy & Gareth 03","height":88});
															thumbnails[5649726] = clik.newPhoto({"id":5649726,"src":"Lucy__Gareth_5_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_5649726.html","width":130,"caption":"Lucy & Gareth 04","height":67});
															thumbnails[5649728] = clik.newPhoto({"id":5649728,"src":"Lucy__Gareth_4_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_5649728.html","width":130,"caption":"Lucy & Gareth 05","height":109});
															thumbnails[5666035] = clik.newPhoto({"id":5666035,"src":"19372_276074288641_574583641_4685545_2883580_n_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_5666035.html","width":130,"caption":"Viaduct","height":87});
															thumbnails[5391811] = clik.newPhoto({"id":5391811,"src":"23_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_5391811.html","width":130,"caption":"Winter Sunset","height":195});
															thumbnails[5391785] = clik.newPhoto({"id":5391785,"src":"07_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_5391785.html","width":130,"caption":"King of the Hill","height":195});
															thumbnails[3686561] = clik.newPhoto({"id":3686561,"src":"Hellingly_08-03-2009_04_WEB_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_3686561.html","width":130,"caption":"Miss Kitty Peels","height":87});
															thumbnails[5074105] = clik.newPhoto({"id":5074105,"src":"Heron_1_web_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_5074105.html","width":130,"caption":"Come fly with me","height":87});
															thumbnails[2901915] = clik.newPhoto({"id":2901915,"src":"Wedding 25-08-2007 (14)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901915.html","width":86,"caption":"Vicky & Phil","height":130});
															thumbnails[7795548] = clik.newPhoto({"id":7795548,"src":"007_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795548.html","width":130,"caption":"","height":65});
															thumbnails[7795718] = clik.newPhoto({"id":7795718,"src":"013_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795718.html","width":130,"caption":"","height":54});
															thumbnails[7795720] = clik.newPhoto({"id":7795720,"src":"014_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795720.html","width":130,"caption":"","height":87});
															thumbnails[7795726] = clik.newPhoto({"id":7795726,"src":"017_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795726.html","width":130,"caption":"","height":195});
															thumbnails[7795736] = clik.newPhoto({"id":7795736,"src":"021_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795736.html","width":130,"caption":"","height":87});
															thumbnails[7795743] = clik.newPhoto({"id":7795743,"src":"026_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795743.html","width":130,"caption":"","height":54});
															thumbnails[7795752] = clik.newPhoto({"id":7795752,"src":"030_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795752.html","width":130,"caption":"","height":195});
															thumbnails[7795764] = clik.newPhoto({"id":7795764,"src":"033_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795764.html","width":130,"caption":"","height":195});
															thumbnails[8371704] = clik.newPhoto({"id":8371704,"src":"Jennie_03_thumb.jpg","galleries_id":119947,"server_id":38,"link":"photo_8371704.html","width":130,"caption":"Jennie","height":87});
															thumbnails[7599638] = clik.newPhoto({"id":7599638,"src":"206535_10150243432938642_574583641_9258444_7303658_n_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_7599638.html","width":130,"caption":"Geisha","height":192});
															thumbnails[7255428] = clik.newPhoto({"id":7255428,"src":"4cfd0eaf7a80c_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_7255428.html","width":130,"caption":"Jennie","height":130});
															thumbnails[7255429] = clik.newPhoto({"id":7255429,"src":"4d0a78d5b3462_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_7255429.html","width":130,"caption":"Jennie","height":192});
															thumbnails[5649716] = clik.newPhoto({"id":5649716,"src":"Lucy__Gareth_2_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_5649716.html","width":130,"caption":"Lucy & Gareth 01","height":193});
															thumbnails[5391725] = clik.newPhoto({"id":5391725,"src":"Kitty_01_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_5391725.html","width":130,"caption":"Puppet","height":148});
															thumbnails[5391745] = clik.newPhoto({"id":5391745,"src":"Kitty_web_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_5391745.html","width":130,"caption":"Split Personality","height":130});
															thumbnails[4670901] = clik.newPhoto({"id":4670901,"src":"01_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_4670901.html","width":130,"caption":"Candy Girl","height":88});
															thumbnails[4780169] = clik.newPhoto({"id":4780169,"src":"deer_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_4780169.html","width":130,"caption":"Solitude","height":54});
															thumbnails[5046598] = clik.newPhoto({"id":5046598,"src":"7_sisters_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_5046598.html","width":130,"caption":"Frozen","height":192});
															thumbnails[5046646] = clik.newPhoto({"id":5046646,"src":"7_sisters_b_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_5046646.html","width":130,"caption":"Up","height":88});
															thumbnails[3272011] = clik.newPhoto({"id":3272011,"src":"which way WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_3272011.html","width":130,"caption":"Corridors.....","height":87});
															thumbnails[3272028] = clik.newPhoto({"id":3272028,"src":"Goring WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_3272028.html","width":130,"caption":"Winter Waves","height":87});
															thumbnails[3232197] = clik.newPhoto({"id":3232197,"src":"Disappier WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_3232197.html","width":130,"caption":"Disappier","height":65});
															thumbnails[2902061] = clik.newPhoto({"id":2902061,"src":"Wedding 075_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902061.html","width":86,"caption":"Stefy & Daniel","height":130});
															thumbnails[2902058] = clik.newPhoto({"id":2902058,"src":"VICKY & PHIL 7_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902058.html","width":86,"caption":"Vick & Phil","height":130});
															thumbnails[5046558] = clik.newPhoto({"id":5046558,"src":"10_web_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_5046558.html","width":130,"caption":"SparkleAstar","height":119});
															thumbnails[7600402] = clik.newPhoto({"id":7600402,"src":"Four_thumb.jpg","galleries_id":412247,"server_id":1,"link":"photo_7600402.html","width":130,"caption":"Cutie","height":90});
															thumbnails[7795518] = clik.newPhoto({"id":7795518,"src":"004_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795518.html","width":130,"caption":"","height":87});
															thumbnails[6364122] = clik.newPhoto({"id":6364122,"src":"Kitty_Lion_Tamer1_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_6364122.html","width":130,"caption":"The Lion Tamer","height":87});
															thumbnails[5391756] = clik.newPhoto({"id":5391756,"src":"kitty_bw_WEB_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_5391756.html","width":130,"caption":"Dark Seducer","height":195});
															thumbnails[4780175] = clik.newPhoto({"id":4780175,"src":"deer_2_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_4780175.html","width":130,"caption":"Run to the hills","height":54});
															thumbnails[3686563] = clik.newPhoto({"id":3686563,"src":"Hellingly_08-03-2009_29_WEB_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_3686563.html","width":130,"caption":"Followed","height":87});
															thumbnails[2902183] = clik.newPhoto({"id":2902183,"src":"embrace_web_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902183.html","width":87,"caption":"Tara & Chris","height":130});
															thumbnails[4780355] = clik.newPhoto({"id":4780355,"src":"POPPIES_web_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_4780355.html","width":130,"caption":"Cissbury Summer","height":87});
															thumbnails[5046986] = clik.newPhoto({"id":5046986,"src":"06_b_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_5046986.html","width":130,"caption":"Tiara","height":81});
															thumbnails[7795513] = clik.newPhoto({"id":7795513,"src":"002_thumb.JPG","galleries_id":66215,"server_id":1,"link":"photo_7795513.html","width":130,"caption":"","height":195});
															thumbnails[7599649] = clik.newPhoto({"id":7599649,"src":"China_03_web_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_7599649.html","width":130,"caption":"Hula Girl","height":88});
															thumbnails[7715576] = clik.newPhoto({"id":7715576,"src":"Geisha_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_7715576.html","width":130,"caption":"Geisha II","height":193});
															thumbnails[6364127] = clik.newPhoto({"id":6364127,"src":"Ring_Master_2_web1_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_6364127.html","width":130,"caption":"The Ring Master","height":172});
															thumbnails[6079742] = clik.newPhoto({"id":6079742,"src":"28628_452909813641_574583641_6031125_6889390_n_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_6079742.html","width":130,"caption":"Red Girl","height":87});
															thumbnails[4775734] = clik.newPhoto({"id":4775734,"src":"Kitty_18_web_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_4775734.html","width":130,"caption":"Wired","height":87});
															thumbnails[3686562] = clik.newPhoto({"id":3686562,"src":"Hellingly_08-03-2009_35_WEB_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_3686562.html","width":130,"caption":"Electrix","height":87});
															thumbnails[5071318] = clik.newPhoto({"id":5071318,"src":"Tanbridge_1_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_5071318.html","width":130,"caption":"Tanbridge House School Prospectus 2008\/ 09","height":186});
															thumbnails[5071322] = clik.newPhoto({"id":5071322,"src":"Tanbridge_2_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_5071322.html","width":130,"caption":"Tanbridge House School 2008\/ 09 Prospectus","height":186});
															thumbnails[2901987] = clik.newPhoto({"id":2901987,"src":"Mark & Marie Wedding (5)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901987.html","width":86,"caption":"Mark & Marie","height":130});
															thumbnails[2902333] = clik.newPhoto({"id":2902333,"src":"Caley (3)_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_2902333.html","width":86,"caption":"Scarlett Suicide","height":130});
															thumbnails[3534882] = clik.newPhoto({"id":3534882,"src":"pony_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_3534882.html","width":87,"caption":"Fringe","height":130});
															thumbnails[3098722] = clik.newPhoto({"id":3098722,"src":"Sally Tiara 09 WEB_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_3098722.html","width":97,"caption":"Sally","height":130});
															thumbnails[2901446] = clik.newPhoto({"id":2901446,"src":"Chantry Hill_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901446.html","width":130,"caption":"Which Way to Amberley?","height":86});
															thumbnails[2901605] = clik.newPhoto({"id":2901605,"src":"Tinies Office 6 WEB_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_2901605.html","width":130,"caption":"Tinies Brighton","height":86});
															thumbnails[3098727] = clik.newPhoto({"id":3098727,"src":"Sally Tiara 05 WEB_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_3098727.html","width":89,"caption":"Sally","height":130});
															thumbnails[2902341] = clik.newPhoto({"id":2902341,"src":"Graffiti (12)_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_2902341.html","width":86,"caption":"Candice","height":130});
															thumbnails[2902368] = clik.newPhoto({"id":2902368,"src":"Poppies_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_2902368.html","width":86,"caption":"Poppies","height":130});
															thumbnails[2901607] = clik.newPhoto({"id":2901607,"src":"Steve 6_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_2901607.html","width":130,"caption":"Steve","height":86});
															thumbnails[2901256] = clik.newPhoto({"id":2901256,"src":"_MG_5779_thumb.JPG","galleries_id":179826,"server_id":1,"link":"photo_2901256.html","width":130,"caption":"De Waag","height":86});
															thumbnails[2909865] = clik.newPhoto({"id":2909865,"src":"Lightning_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_2909865.html","width":130,"caption":"Angry Gods","height":54});
															thumbnails[2901456] = clik.newPhoto({"id":2901456,"src":"Southdowns_View_WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901456.html","width":130,"caption":"South Downs View","height":87});
															thumbnails[2902346] = clik.newPhoto({"id":2902346,"src":"Caley Hotel (24)_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_2902346.html","width":86,"caption":"Scarlett Suicide","height":130});
															thumbnails[2902420] = clik.newPhoto({"id":2902420,"src":"Glandular Cape Marigold - Closed_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_2902420.html","width":86,"caption":"Glandular Cape Marigold","height":130});
															thumbnails[2901927] = clik.newPhoto({"id":2901927,"src":"Wedding 070_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901927.html","width":130,"caption":"Stefy & Daniel","height":86});
															thumbnails[2901459] = clik.newPhoto({"id":2901459,"src":"Trees_copy_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901459.html","width":130,"caption":"February","height":87});
															thumbnails[2901272] = clik.newPhoto({"id":2901272,"src":"amsterdam abstract_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_2901272.html","width":130,"caption":"Koninklijk Paleis ","height":86});
															thumbnails[2902031] = clik.newPhoto({"id":2902031,"src":"kids_web_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902031.html","width":130,"caption":"Tara & Chris","height":87});
															thumbnails[2901273] = clik.newPhoto({"id":2901273,"src":"Watch Dog_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_2901273.html","width":130,"caption":"Watch Dog","height":86});
															thumbnails[2901934] = clik.newPhoto({"id":2901934,"src":"Frank & Di Wedding (69)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901934.html","width":130,"caption":"Frank & Di","height":86});
															thumbnails[2902733] = clik.newPhoto({"id":2902733,"src":"Caley Nude_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_2902733.html","width":130,"caption":"Scarlett Suicide","height":86});
															thumbnails[2909833] = clik.newPhoto({"id":2909833,"src":"Poppy1_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_2909833.html","width":130,"caption":"Red","height":86});
															thumbnails[2901274] = clik.newPhoto({"id":2901274,"src":"Thailand 2004 (2)_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_2901274.html","width":130,"caption":"Boats","height":86});
															thumbnails[2901935] = clik.newPhoto({"id":2901935,"src":"Wedding 043_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901935.html","width":86,"caption":"Leala & Darren","height":130});
															thumbnails[2901479] = clik.newPhoto({"id":2901479,"src":"Poor Cow_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901479.html","width":129,"caption":"Poor Cow","height":87});
															thumbnails[2901698] = clik.newPhoto({"id":2901698,"src":"Wedding Dress 3_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_2901698.html","width":86,"caption":"Dreamy Brides 2","height":130});
															thumbnails[2901937] = clik.newPhoto({"id":2901937,"src":"Wedding 074_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901937.html","width":86,"caption":"Stefy & Daniel","height":130});
															thumbnails[2909730] = clik.newPhoto({"id":2909730,"src":"Caley (11)_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_2909730.html","width":87,"caption":"Scarlett Suicide","height":130});
															thumbnails[2909842] = clik.newPhoto({"id":2909842,"src":"sta-mi-na_thumb.JPG","galleries_id":119948,"server_id":1,"link":"photo_2909842.html","width":86,"caption":"Sta-mi-na","height":130});
															thumbnails[2945084] = clik.newPhoto({"id":2945084,"src":"PIC 10  ONE_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_2945084.html","width":86,"caption":"Biomechanical","height":130});
															thumbnails[2901488] = clik.newPhoto({"id":2901488,"src":"Grazin'_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901488.html","width":130,"caption":"Grazin'","height":86});
															thumbnails[2909845] = clik.newPhoto({"id":2909845,"src":"Tulip 2_thumb.jpg","galleries_id":119948,"server_id":1,"link":"photo_2909845.html","width":86,"caption":"Star Within","height":130});
															thumbnails[2901404] = clik.newPhoto({"id":2901404,"src":"DSCN0104_thumb.JPG","galleries_id":179826,"server_id":1,"link":"photo_2901404.html","width":86,"caption":"Canal","height":130});
															thumbnails[2902098] = clik.newPhoto({"id":2902098,"src":"Wedding 044_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902098.html","width":86,"caption":"Leala & Darren","height":130});
															thumbnails[2901518] = clik.newPhoto({"id":2901518,"src":"WOOD 1_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901518.html","width":130,"caption":"Pebbles","height":86});
															thumbnails[2901414] = clik.newPhoto({"id":2901414,"src":"Thailand 2004 (3)_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_2901414.html","width":86,"caption":"Phi Phi","height":130});
															thumbnails[3232206] = clik.newPhoto({"id":3232206,"src":"Pier 1 WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_3232206.html","width":87,"caption":"Brighton Rocks","height":130});
															thumbnails[3272036] = clik.newPhoto({"id":3272036,"src":"Blue Door WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_3272036.html","width":87,"caption":"Blue Door","height":130});
															thumbnails[3272064] = clik.newPhoto({"id":3272064,"src":"Bathroom WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_3272064.html","width":87,"caption":"Bath-time","height":130});
															thumbnails[3272102] = clik.newPhoto({"id":3272102,"src":"Take a seat WEB_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_3272102.html","width":87,"caption":"Take a seat","height":130});
															thumbnails[2901749] = clik.newPhoto({"id":2901749,"src":"Tinies Office 5 WEB_thumb.jpg","galleries_id":93463,"server_id":1,"link":"photo_2901749.html","width":130,"caption":"Tinies Office","height":86});
															thumbnails[3534861] = clik.newPhoto({"id":3534861,"src":"CAR_WEB_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_3534861.html","width":130,"caption":"Tara & Chris","height":87});
															thumbnails[2901547] = clik.newPhoto({"id":2901547,"src":"Snowy Trees_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901547.html","width":86,"caption":"Spring or Winter?","height":130});
															thumbnails[70999] = clik.newPhoto({"id":70999,"src":"egyptportrait3_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_70999.html","width":130,"caption":"Egyptian Women","height":175});
															thumbnails[2909766] = clik.newPhoto({"id":2909766,"src":"Graffiti (11) SAMPLE1_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_2909766.html","width":130,"caption":"Candice","height":86});
															thumbnails[2901580] = clik.newPhoto({"id":2901580,"src":"Summer Evening 03_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2901580.html","width":86,"caption":"Summer Evening","height":130});
															thumbnails[71000] = clik.newPhoto({"id":71000,"src":"egyptportrait21_thumb.jpg","galleries_id":179826,"server_id":1,"link":"photo_71000.html","width":130,"caption":"Wise Old Woman","height":173});
															thumbnails[2901982] = clik.newPhoto({"id":2901982,"src":"Frank & Di Wedding (50)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901982.html","width":130,"caption":"Frank & Di","height":86});
															thumbnails[2909875] = clik.newPhoto({"id":2909875,"src":"Tarring High Street 2005_thumb.jpg","galleries_id":3538,"server_id":1,"link":"photo_2909875.html","width":87,"caption":"Tarring High Street","height":130});
															thumbnails[2901963] = clik.newPhoto({"id":2901963,"src":"bridal shoot 1361_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901963.html","width":86,"caption":"Bridal Shoot","height":130});
															thumbnails[2901996] = clik.newPhoto({"id":2901996,"src":"Frank & Di Wedding (3)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901996.html","width":86,"caption":"Frank & Di","height":130});
															thumbnails[2902025] = clik.newPhoto({"id":2902025,"src":"Wedding 030_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902025.html","width":86,"caption":"Leala & Darren","height":130});
															thumbnails[71001] = clik.newPhoto({"id":71001,"src":"portrait1_thumb.jpg","galleries_id":119947,"server_id":1,"link":"photo_71001.html","width":130,"caption":"Shroud","height":171});
															thumbnails[2901933] = clik.newPhoto({"id":2901933,"src":"Wedding 25-08-2007 (51)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901933.html","width":130,"caption":"Vicky & Phil","height":86});
															thumbnails[2902035] = clik.newPhoto({"id":2902035,"src":"kids_2_web_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902035.html","width":130,"caption":"Tara & Chris","height":87});
															thumbnails[2902050] = clik.newPhoto({"id":2902050,"src":"Wedding 020_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902050.html","width":130,"caption":"Leala & Darren","height":86});
															thumbnails[2902055] = clik.newPhoto({"id":2902055,"src":"Frank & Di Wedding (24)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902055.html","width":130,"caption":"Frank & Di","height":86});
															thumbnails[2902109] = clik.newPhoto({"id":2902109,"src":"Wedding 0101_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902109.html","width":86,"caption":"Stefy & Daniel","height":130});
															thumbnails[2902243] = clik.newPhoto({"id":2902243,"src":"VICKY & PHIL 11_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902243.html","width":86,"caption":"Vicky & Phil","height":130});
															thumbnails[2902270] = clik.newPhoto({"id":2902270,"src":"Wedding 019_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902270.html","width":86,"caption":"Stefy & Daniel","height":130});
															thumbnails[2902277] = clik.newPhoto({"id":2902277,"src":"VICKY & PHIL 5_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902277.html","width":86,"caption":"Vicky & Phil","height":130});
															thumbnails[2902309] = clik.newPhoto({"id":2902309,"src":"Wedding 05_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2902309.html","width":86,"caption":"Stefy & Daniel","height":130});
															thumbnails[2901913] = clik.newPhoto({"id":2901913,"src":"Frank & Di Wedding (52)_thumb.jpg","galleries_id":66215,"server_id":1,"link":"photo_2901913.html","width":86,"caption":"Frank & Di","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[66215] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding","link":"gallery_66215.html","maxRecords":0.0,"photoIDs":[8371170.0,8371172.0,8371174.0,8371180.0,5649723.0,5649726.0,5649728.0,2901915.0,7795548.0,7795718.0,7795720.0,7795726.0,7795736.0,7795743.0,7795752.0,7795764.0,5649716.0,2902061.0,2902058.0,7795518.0,2902183.0,7795513.0,2901987.0,2901927.0,2902031.0,2901934.0,2901935.0,2901937.0,2902098.0,3534861.0,2901982.0,2901963.0,2901996.0,2902025.0,2901933.0,2902035.0,2902050.0,2902055.0,2902109.0,2902243.0,2902270.0,2902277.0,2902309.0,2901913.0],"skipIndex":0,"section_code":"gallery","featured_images":"8371180,8371174,8371170,7795752,7795720,7795548,5649728,5649723,5649716,3534861,2902309,2902277,2902270,2902243,2902183,2902109,2902098,2902058,2902035,2902031,2902025,2901996,2901982,2901963,2901934,2901933,2901927,2901913","id":66215,"singleSection":false});				  						galleries[119947] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Models","link":"gallery_119947.html","maxRecords":0.0,"photoIDs":[3686561.0,8371704.0,7599638.0,7255428.0,7255429.0,5391725.0,5391745.0,4670901.0,6364122.0,5391756.0,3686563.0,7599649.0,7715576.0,6364127.0,6079742.0,4775734.0,3686562.0,2902333.0,3098727.0,2902341.0,2902346.0,2902733.0,2909730.0,2909766.0,71001.0],"skipIndex":0,"section_code":"gallery","featured_images":"8371704,7715576,7599649,7599638,7255429,7255428,6364127,6364122,6079742,5391745,5391725,4775734,4670901,3686563,3686561,2909766,2909730,2902733,2902346,2902341,71001","id":119947,"singleSection":false});				  						galleries[412247] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Maternity & Babies","link":"gallery_412247.html","maxRecords":0.0,"photoIDs":[7600374.0,7600409.0,7600402.0],"skipIndex":0,"section_code":"gallery","featured_images":"7600409,7600402,7600374","id":412247,"singleSection":false});				  						galleries[119948] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_119948.html","maxRecords":0.0,"photoIDs":[5074105.0,4780169.0,4780175.0,3534882.0,2902368.0,2902420.0,2909833.0,2909842.0,2909845.0],"skipIndex":0,"section_code":"gallery","featured_images":"5074105,4780175,4780169,3534882,2909845,2909842,2909833,2902420,2902368","id":119948,"singleSection":false});				  						galleries[3538] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sussex","link":"gallery_3538.html","maxRecords":0.0,"photoIDs":[7116104.0,5666035.0,5046598.0,5046646.0,3272011.0,3272028.0,3232197.0,4780355.0,2901446.0,2901456.0,2901459.0,2901479.0,2901488.0,2901518.0,3232206.0,3272036.0,3272064.0,3272102.0,2901547.0,2901580.0,2909875.0],"skipIndex":0,"section_code":"gallery","featured_images":"7116104,5666035,5046646,5046598,3272102,3272064,3272036,3272028,3272011,3232206,3232197,2909875,2901580,2901488,2901459,2901446","id":3538,"singleSection":false});				  						galleries[93463] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial","link":"gallery_93463.html","maxRecords":0.0,"photoIDs":[5046558.0,5046986.0,5071318.0,5071322.0,3098722.0,2901605.0,2901607.0,2901698.0,2945084.0,2901749.0],"skipIndex":0,"section_code":"gallery","featured_images":"5046986,5046558,2945084,2901749,2901607,2901605","id":93463,"singleSection":false});				  						galleries[179826] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"gallery_179826.html","maxRecords":0.0,"photoIDs":[5391811.0,5391785.0,2901256.0,2909865.0,2901272.0,2901273.0,2901274.0,2901404.0,2901414.0,70999.0,71000.0],"skipIndex":0,"section_code":"gallery","featured_images":"2909865,2901414,2901273,2901272,2901256,71000,70999","id":179826,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8371704,8371180,8371174,8371172,8371170,7795764,7795752,7795726,7795720,7795718,7795548,7795513,7715576,7600409,7600402,7600374,7599649,7599638,7255429,7255428,6364127,6364122,5666035,5649728,5649723,5391745,5391725,5046598,4775734,3686561,3534861,3272028,3232197,2909833,2909730,2902420,2902368,2902341,2902270,2902243,2902183,2902109,2902098,2902058,2902035,2902025,2901996,2901982,2901937,2901933,2901927,2901913,2901580,2901488,2901446,2901414,2901273,70999';
imageSets[2] = '8371704,8371180,8371174,8371170,7795752,7795720,7795548,7715576,7600409,7600402,7600374,7599649,7599638,7255429,7255428,7116104,6364127,6364122,6079742,5666035,5649728,5649723,5649716,5391745,5391725,5074105,5046986,5046646,5046598,5046558,4780175,4780169,4775734,4670901,3686563,3686561,3534882,3534861,3272102,3272064,3272036,3272028,3272011,3232206,3232197,2945084,2909875,2909865,2909845,2909842,2909833,2909766,2909730,2902733,2902420,2902368,2902346,2902341,2902309,2902277,2902270,2902243,2902183,2902109,2902098,2902058,2902035,2902031,2902025,2901996,2901982,2901963,2901934,2901933,2901927,2901913,2901749,2901607,2901605,2901580,2901488,2901459,2901446,2901414,2901273,2901272,2901256,71001,71000,70999';
imageSets[3] = '4780355,2901459';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Marisapotter/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Marisapotter/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 = 'Marisa Potter Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="MARISAPOTTER">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

