window.thumbnails = {};
															thumbnails[6920457] = clik.newPhoto({"id":6920457,"src":"web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":130});
															thumbnails[7934115] = clik.newPhoto({"id":7934115,"src":"dvd_cover.jpg_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Art DVD","height":126});
															thumbnails[5900440] = clik.newPhoto({"id":5900440,"src":"taxi_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Taxi","height":130});
															thumbnails[7526957] = clik.newPhoto({"id":7526957,"src":"rider_web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Rider","height":130});
															thumbnails[6190085] = clik.newPhoto({"id":6190085,"src":"Summers_Day_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_6190085.html","width":130,"caption":"Summer's Day, 24 x 30","height":130});
															thumbnails[5650477] = clik.newPhoto({"id":5650477,"src":"Marie_art_web_thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_5650477.html","width":130,"caption":"Marie In Sunlight","height":130});
															thumbnails[397079] = clik.newPhoto({"id":397079,"src":"covent_garden_shoppers_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_397079.html","width":130,"caption":"Covent Garden Shoppers","height":130});
															thumbnails[564841] = clik.newPhoto({"id":564841,"src":"mr pickles 1thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_564841.html","width":130,"caption":"Mr Pickles","height":130});
															thumbnails[8371377] = clik.newPhoto({"id":8371377,"src":"Brick_Lane_Sunday_art_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_8371377.html","width":130,"caption":"Brick Lane Sunday","height":130});
															thumbnails[4119459] = clik.newPhoto({"id":4119459,"src":"evening_reflection_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4119459.html","width":130,"caption":"Evening Reflection, 8 x 8","height":130});
															thumbnails[3693227] = clik.newPhoto({"id":3693227,"src":"spain_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_3693227.html","width":130,"caption":"Seville Side Street","height":130});
															thumbnails[3570166] = clik.newPhoto({"id":3570166,"src":"marie_web_thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_3570166.html","width":130,"caption":"Marie","height":130});
															thumbnails[667595] = clik.newPhoto({"id":667595,"src":"cup tea web thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_667595.html","width":130,"caption":"Cup of tea luv","height":130});
															thumbnails[8371507] = clik.newPhoto({"id":8371507,"src":"East_End_Side_Street_art_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_8371507.html","width":130,"caption":"East End Side Street","height":130});
															thumbnails[5254098] = clik.newPhoto({"id":5254098,"src":"reflection_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_5254098.html","width":130,"caption":"Reflection, 24 x 24","height":130});
															thumbnails[1180292] = clik.newPhoto({"id":1180292,"src":"brenda web_thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_1180292.html","width":130,"caption":"Brenda","height":130});
															thumbnails[8371546] = clik.newPhoto({"id":8371546,"src":"Father_and_Son_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_8371546.html","width":130,"caption":"Father And Son","height":130});
															thumbnails[4598497] = clik.newPhoto({"id":4598497,"src":"storm_coming_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4598497.html","width":130,"caption":"Storm Coming, 8 x 8","height":130});
															thumbnails[399972] = clik.newPhoto({"id":399972,"src":"bull horns web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_399972.html","width":130,"caption":"Bull by the horns","height":130});
															thumbnails[8371551] = clik.newPhoto({"id":8371551,"src":"Brick_Lane_Sun_web_AB319835-1EC9-DFB6-09A7F4FAD954F7F6_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_8371551.html","width":130,"caption":"Brick Lane Sun","height":130});
															thumbnails[4098842] = clik.newPhoto({"id":4098842,"src":"tree111_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4098842.html","width":130,"caption":"Tree 1, 24 x 30","height":130});
															thumbnails[767072] = clik.newPhoto({"id":767072,"src":"c garden pla web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_767072.html","width":130,"caption":"Covent Garden Players","height":130});
															thumbnails[397040] = clik.newPhoto({"id":397040,"src":"idol web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_397040.html","width":130,"caption":"Book idol","height":130});
															thumbnails[398898] = clik.newPhoto({"id":398898,"src":"flower fig web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398898.html","width":130,"caption":"Flowers","height":130});
															thumbnails[409991] = clik.newPhoto({"id":409991,"src":"torch web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_409991.html","width":130,"caption":"Torch","height":130});
															thumbnails[6920454] = clik.newPhoto({"id":6920454,"src":"brick_lane_crowds_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6920454.html","width":130,"caption":"Brick Lane Crowds","height":130});
															thumbnails[572368] = clik.newPhoto({"id":572368,"src":"boat web thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_572368.html","width":130,"caption":"Headship","height":130});
															thumbnails[7814039] = clik.newPhoto({"id":7814039,"src":"rhino_web_thumb.jpg","galleries_id":421863,"server_id":18,"link":"photo_7814039.html","width":130,"caption":"Rhino","height":130});
															thumbnails[6897060] = clik.newPhoto({"id":6897060,"src":"brick_lane_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6897060.html","width":130,"caption":"Brick Lane","height":130});
															thumbnails[4098918] = clik.newPhoto({"id":4098918,"src":"tree2_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4098918.html","width":130,"caption":"Tree 2,24 x 30","height":130});
															thumbnails[410149] = clik.newPhoto({"id":410149,"src":"covent gar1 web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_410149.html","width":130,"caption":"Covent Garden Coffee","height":130});
															thumbnails[1177113] = clik.newPhoto({"id":1177113,"src":"me thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_1177113.html","width":130,"caption":"self","height":130});
															thumbnails[396680] = clik.newPhoto({"id":396680,"src":"pensions thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_396680.html","width":130,"caption":"Pensions, pencil and pastel","height":130});
															thumbnails[6023481] = clik.newPhoto({"id":6023481,"src":"Cov_Gard_Cafe_web1_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6023481.html","width":130,"caption":"Covent Garden Cafe","height":130});
															thumbnails[400727] = clik.newPhoto({"id":400727,"src":"pandora web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_400727.html","width":130,"caption":"Pandora's Box","height":130});
															thumbnails[397033] = clik.newPhoto({"id":397033,"src":"lib web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_397033.html","width":130,"caption":"Liberty","height":130});
															thumbnails[767070] = clik.newPhoto({"id":767070,"src":"flip coin web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_767070.html","width":130,"caption":"Flip Coin","height":130});
															thumbnails[4098921] = clik.newPhoto({"id":4098921,"src":"tree3_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4098921.html","width":130,"caption":"Tree 3, 24 x 24","height":130});
															thumbnails[1966890] = clik.newPhoto({"id":1966890,"src":"co gar per web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_1966890.html","width":130,"caption":"Covent Garden Performance","height":130});
															thumbnails[3225685] = clik.newPhoto({"id":3225685,"src":"CG by Night web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_3225685.html","width":130,"caption":"Covent Garden by Night","height":130});
															thumbnails[410042] = clik.newPhoto({"id":410042,"src":"Punch Judy web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_410042.html","width":130,"caption":"Punch and Judy","height":130});
															thumbnails[7814047] = clik.newPhoto({"id":7814047,"src":"chimp_web_thumb.jpg","galleries_id":421863,"server_id":18,"link":"photo_7814047.html","width":130,"caption":"Chimp study","height":130});
															thumbnails[6897062] = clik.newPhoto({"id":6897062,"src":"c_town_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6897062.html","width":130,"caption":"China Town","height":130});
															thumbnails[4098926] = clik.newPhoto({"id":4098926,"src":"tree4_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4098926.html","width":130,"caption":"Tree 4, 30 x 20","height":130});
															thumbnails[400724] = clik.newPhoto({"id":400724,"src":"covent gar_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_400724.html","width":130,"caption":"Covent Garden","height":130});
															thumbnails[1177121] = clik.newPhoto({"id":1177121,"src":"ken web thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_1177121.html","width":130,"caption":"Ken","height":130});
															thumbnails[398232] = clik.newPhoto({"id":398232,"src":"red tape thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398232.html","width":130,"caption":"Red Tape","height":130});
															thumbnails[6023471] = clik.newPhoto({"id":6023471,"src":"Cove_Gard_Crowds_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6023471.html","width":130,"caption":"Covent Garden Crowds","height":130});
															thumbnails[400206] = clik.newPhoto({"id":400206,"src":"Hidden Treasures web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_400206.html","width":130,"caption":"Hidden Treasures","height":130});
															thumbnails[1190948] = clik.newPhoto({"id":1190948,"src":"den thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_1190948.html","width":130,"caption":"Dennis","height":130});
															thumbnails[4098937] = clik.newPhoto({"id":4098937,"src":"tree5_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4098937.html","width":130,"caption":"Tree 5, 24 x 24","height":130});
															thumbnails[1181949] = clik.newPhoto({"id":1181949,"src":"port th.jpg","galleries_id":84832,"server_id":18,"link":"photo_1181949.html","width":130,"caption":"Demo","height":130});
															thumbnails[6897065] = clik.newPhoto({"id":6897065,"src":"the_strand_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6897065.html","width":130,"caption":"The Strand","height":130});
															thumbnails[6023476] = clik.newPhoto({"id":6023476,"src":"Cov_Gard_Quartet_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6023476.html","width":130,"caption":"Covent Garden Quartet","height":130});
															thumbnails[398484] = clik.newPhoto({"id":398484,"src":"grow thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398484.html","width":130,"caption":"Grow","height":130});
															thumbnails[396580] = clik.newPhoto({"id":396580,"src":"side st web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_396580.html","width":130,"caption":"London Side Street","height":130});
															thumbnails[396569] = clik.newPhoto({"id":396569,"src":"lamp web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_396569.html","width":130,"caption":"Street Lamp","height":130});
															thumbnails[398196] = clik.newPhoto({"id":398196,"src":"mon night web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_398196.html","width":130,"caption":"Monmarte By Night","height":130});
															thumbnails[6897068] = clik.newPhoto({"id":6897068,"src":"west_end_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_6897068.html","width":130,"caption":"West End","height":130});
															thumbnails[808891] = clik.newPhoto({"id":808891,"src":"em web thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_808891.html","width":130,"caption":"Emily","height":130});
															thumbnails[398492] = clik.newPhoto({"id":398492,"src":"micro thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398492.html","width":130,"caption":"Micro","height":130});
															thumbnails[399440] = clik.newPhoto({"id":399440,"src":"Notting Hill Players web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_399440.html","width":130,"caption":"Notting Hill Players, Exhibited at The Institute of Oil Painters 09","height":130});
															thumbnails[1192195] = clik.newPhoto({"id":1192195,"src":"alex thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_1192195.html","width":130,"caption":"Alex","height":130});
															thumbnails[8013451] = clik.newPhoto({"id":8013451,"src":"Colchester_Wolf_web_thumb.jpg","galleries_id":421863,"server_id":18,"link":"photo_8013451.html","width":130,"caption":"Colchester Wolf","height":130});
															thumbnails[400158] = clik.newPhoto({"id":400158,"src":"Nottinghill crowd web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_400158.html","width":130,"caption":"Notting Hill Crowd","height":130});
															thumbnails[1216996] = clik.newPhoto({"id":1216996,"src":"jackie thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_1216996.html","width":130,"caption":"Jackie","height":130});
															thumbnails[398500] = clik.newPhoto({"id":398500,"src":"trust thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398500.html","width":130,"caption":"Trust","height":130});
															thumbnails[8819845] = clik.newPhoto({"id":8819845,"src":"chimp_art_thumb.jpg","galleries_id":421863,"server_id":18,"link":"photo_8819845.html","width":130,"caption":"","height":130});
															thumbnails[1192192] = clik.newPhoto({"id":1192192,"src":"Chinese New Year in China Town web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_1192192.html","width":130,"caption":"Chinese New Year in China Town","height":130});
															thumbnails[1230755] = clik.newPhoto({"id":1230755,"src":"self thu.jpg","galleries_id":84832,"server_id":18,"link":"photo_1230755.html","width":130,"caption":"Self portrait with sock","height":130});
															thumbnails[410147] = clik.newPhoto({"id":410147,"src":"market web1_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_410147.html","width":130,"caption":"Market","height":130});
															thumbnails[1247931] = clik.newPhoto({"id":1247931,"src":"sue thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_1247931.html","width":130,"caption":"Sue","height":130});
															thumbnails[398507] = clik.newPhoto({"id":398507,"src":"boxhead thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398507.html","width":130,"caption":"Boxhead","height":130});
															thumbnails[4366356] = clik.newPhoto({"id":4366356,"src":"orange_glow_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4366356.html","width":130,"caption":"Orange Glow, 8 x 10","height":130});
															thumbnails[407235] = clik.newPhoto({"id":407235,"src":"ponte web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_407235.html","width":130,"caption":"Ponte Vecchio","height":130});
															thumbnails[398516] = clik.newPhoto({"id":398516,"src":"comp teeth thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398516.html","width":130,"caption":"Computer Mouth","height":130});
															thumbnails[396576] = clik.newPhoto({"id":396576,"src":"venice_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_396576.html","width":130,"caption":"St Marks","height":130});
															thumbnails[4598505] = clik.newPhoto({"id":4598505,"src":"flickerling_light_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_4598505.html","width":130,"caption":"Flickering Light, 10 x 8","height":130});
															thumbnails[395682] = clik.newPhoto({"id":395682,"src":"venice canal web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_395682.html","width":130,"caption":"Venice Canal","height":130});
															thumbnails[1295125] = clik.newPhoto({"id":1295125,"src":"pete thu.jpg","galleries_id":84832,"server_id":18,"link":"photo_1295125.html","width":130,"caption":"Peter","height":130});
															thumbnails[398525] = clik.newPhoto({"id":398525,"src":"can worms web thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398525.html","width":130,"caption":"Can of Worms","height":130});
															thumbnails[395696] = clik.newPhoto({"id":395696,"src":"venice canal sunset web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_395696.html","width":130,"caption":"Venice Canal Sunset","height":130});
															thumbnails[8013476] = clik.newPhoto({"id":8013476,"src":"tropical_taste_thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_8013476.html","width":130,"caption":"Tropical Taste","height":130});
															thumbnails[1295153] = clik.newPhoto({"id":1295153,"src":"VEN 3 thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_1295153.html","width":130,"caption":"Venice 3","height":130});
															thumbnails[398550] = clik.newPhoto({"id":398550,"src":"raft thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398550.html","width":130,"caption":"Raft","height":130});
															thumbnails[1212716] = clik.newPhoto({"id":1212716,"src":"ven 2 thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_1212716.html","width":130,"caption":"Venice 2","height":130});
															thumbnails[7127711] = clik.newPhoto({"id":7127711,"src":"brick_lane_cab_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7127711.html","width":130,"caption":"Brick Lane Cab","height":130});
															thumbnails[749451] = clik.newPhoto({"id":749451,"src":"cam web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_749451.html","width":130,"caption":"Cambridge Side Street","height":130});
															thumbnails[398693] = clik.newPhoto({"id":398693,"src":"gangsters thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398693.html","width":130,"caption":"Gangsters","height":130});
															thumbnails[2294008] = clik.newPhoto({"id":2294008,"src":"lib gard web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_2294008.html","width":130,"caption":"Library Gardens, Leigh","height":130});
															thumbnails[7127714] = clik.newPhoto({"id":7127714,"src":"columbia_rd_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7127714.html","width":130,"caption":"Columbia Rd ","height":130});
															thumbnails[398718] = clik.newPhoto({"id":398718,"src":"gates thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398718.html","width":130,"caption":"Bill Gates","height":130});
															thumbnails[7127719] = clik.newPhoto({"id":7127719,"src":"brick_lane_shoppers_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7127719.html","width":130,"caption":"Brick Lane Shoppers","height":130});
															thumbnails[398722] = clik.newPhoto({"id":398722,"src":"shattered thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398722.html","width":130,"caption":"Shattered","height":130});
															thumbnails[1965403] = clik.newPhoto({"id":1965403,"src":"Southwold art web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_1965403.html","width":130,"caption":"Southwold","height":130});
															thumbnails[410034] = clik.newPhoto({"id":410034,"src":"southwold 2 web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_410034.html","width":130,"caption":"Southwold 2","height":130});
															thumbnails[398725] = clik.newPhoto({"id":398725,"src":"wire thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398725.html","width":130,"caption":"Barbed Wire","height":130});
															thumbnails[7127721] = clik.newPhoto({"id":7127721,"src":"petticoat_lane_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7127721.html","width":130,"caption":"Petticoat Lane Market","height":130});
															thumbnails[398757] = clik.newPhoto({"id":398757,"src":"snail thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398757.html","width":130,"caption":"Snail","height":130});
															thumbnails[398763] = clik.newPhoto({"id":398763,"src":"print thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398763.html","width":130,"caption":"Print","height":130});
															thumbnails[398769] = clik.newPhoto({"id":398769,"src":"window thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398769.html","width":130,"caption":"Window","height":130});
															thumbnails[7131842] = clik.newPhoto({"id":7131842,"src":"artworkweb_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7131842.html","width":130,"caption":"Chatsworth Rd","height":130});
															thumbnails[398777] = clik.newPhoto({"id":398777,"src":"woman thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398777.html","width":130,"caption":"Woman","height":130});
															thumbnails[398780] = clik.newPhoto({"id":398780,"src":"snake thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398780.html","width":130,"caption":"Snake","height":130});
															thumbnails[5272333] = clik.newPhoto({"id":5272333,"src":"water_glow_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_5272333.html","width":130,"caption":"Water Glow, 30 x 20","height":130});
															thumbnails[398817] = clik.newPhoto({"id":398817,"src":"tiger thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398817.html","width":130,"caption":"Tiger","height":130});
															thumbnails[6897091] = clik.newPhoto({"id":6897091,"src":"river_stour_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_6897091.html","width":130,"caption":"River Stour 1, 28 x 28","height":130});
															thumbnails[398833] = clik.newPhoto({"id":398833,"src":"dress thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398833.html","width":130,"caption":"Dress","height":130});
															thumbnails[6897094] = clik.newPhoto({"id":6897094,"src":"Stour_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_6897094.html","width":130,"caption":"Rver Stour 2, 24 x 24","height":130});
															thumbnails[398837] = clik.newPhoto({"id":398837,"src":"hands thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398837.html","width":130,"caption":"Hands","height":130});
															thumbnails[398847] = clik.newPhoto({"id":398847,"src":"gatsby thumb1.jpg","galleries_id":32166,"server_id":18,"link":"photo_398847.html","width":130,"caption":"Gatsby","height":130});
															thumbnails[398851] = clik.newPhoto({"id":398851,"src":"trout thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398851.html","width":130,"caption":"Trout","height":130});
															thumbnails[398854] = clik.newPhoto({"id":398854,"src":"sam thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_398854.html","width":130,"caption":"Sam","height":130});
															thumbnails[564854] = clik.newPhoto({"id":564854,"src":"mic web_thumb.jpg","galleries_id":32166,"server_id":18,"link":"photo_564854.html","width":130,"caption":"Lab Rat","height":130});
															thumbnails[7626454] = clik.newPhoto({"id":7626454,"src":"golden_tree_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_7626454.html","width":130,"caption":"Golden Tree, 24 x 24","height":130});
															thumbnails[7527089] = clik.newPhoto({"id":7527089,"src":"brick_lane_shade_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7527089.html","width":130,"caption":"Brick Lane Shade","height":130});
															thumbnails[7527091] = clik.newPhoto({"id":7527091,"src":"brick_lane_market_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7527091.html","width":130,"caption":"Brick Lane Market","height":130});
															thumbnails[7626440] = clik.newPhoto({"id":7626440,"src":"Brick_Ln_Bikes_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7626440.html","width":130,"caption":"Brick Lane Bikes","height":130});
															thumbnails[6421348] = clik.newPhoto({"id":6421348,"src":"ben_web_thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_6421348.html","width":130,"caption":"Benny","height":130});
															thumbnails[7626442] = clik.newPhoto({"id":7626442,"src":"bandstand._web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7626442.html","width":130,"caption":"Bandstand","height":130});
															thumbnails[7771950] = clik.newPhoto({"id":7771950,"src":"northcote_rd_artwork_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_7771950.html","width":130,"caption":"Northcote Road","height":130});
															thumbnails[7626477] = clik.newPhoto({"id":7626477,"src":"tree_sketch_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_7626477.html","width":130,"caption":"Tree Sketch, 12 x 12","height":130});
															thumbnails[8101654] = clik.newPhoto({"id":8101654,"src":"harrogate_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_8101654.html","width":130,"caption":"Harrogate Theatre","height":130});
															thumbnails[8101656] = clik.newPhoto({"id":8101656,"src":"eros_web_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_8101656.html","width":130,"caption":"Eros","height":130});
															thumbnails[8190704] = clik.newPhoto({"id":8190704,"src":"hard_life_web_thumb.jpg","galleries_id":84832,"server_id":18,"link":"photo_8190704.html","width":130,"caption":"Hard Life","height":130});
															thumbnails[8372458] = clik.newPhoto({"id":8372458,"src":"bluebell_wood_web_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_8372458.html","width":130,"caption":"Bluebell Wood, 12 x 16","height":130});
															thumbnails[5803109] = clik.newPhoto({"id":5803109,"src":"rainydays_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5803109.html","width":130,"caption":"Rainy Days","height":130});
															thumbnails[4294245] = clik.newPhoto({"id":4294245,"src":"Lloyds_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_4294245.html","width":130,"caption":"Lloyds","height":130});
															thumbnails[5254021] = clik.newPhoto({"id":5254021,"src":"Leaden_market_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5254021.html","width":130,"caption":"Leadenhall Market","height":130});
															thumbnails[6073368] = clik.newPhoto({"id":6073368,"src":"italianreflection_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_6073368.html","width":130,"caption":"Italian Rain","height":130});
															thumbnails[5410874] = clik.newPhoto({"id":5410874,"src":"italian_rain_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5410874.html","width":130,"caption":"Italian Rain","height":130});
															thumbnails[8375479] = clik.newPhoto({"id":8375479,"src":"evening_light_thumb.jpg","galleries_id":245938,"server_id":18,"link":"photo_8375479.html","width":130,"caption":"Red Glow","height":130});
															thumbnails[5106887] = clik.newPhoto({"id":5106887,"src":"paris_by_night_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5106887.html","width":130,"caption":"Paris By Night","height":130});
															thumbnails[5106896] = clik.newPhoto({"id":5106896,"src":"venice_by_night_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5106896.html","width":130,"caption":"Venice By Night","height":130});
															thumbnails[5135420] = clik.newPhoto({"id":5135420,"src":"Edinburgh_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5135420.html","width":130,"caption":"Edinburgh Street","height":130});
															thumbnails[5148128] = clik.newPhoto({"id":5148128,"src":"Not_hil_Crowds_2_web1_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5148128.html","width":130,"caption":"Nottinghill Crowds 2","height":130});
															thumbnails[5410860] = clik.newPhoto({"id":5410860,"src":"after_the_carnival_web_thumb.jpg","galleries_id":59310,"server_id":18,"link":"photo_5410860.html","width":130,"caption":"After the Carnival","height":130});
															thumbnails[8819826] = clik.newPhoto({"id":8819826,"src":"london_buses_artwork_thumb.jpg","galleries_id":338815,"server_id":18,"link":"photo_8819826.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[338815] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Paintings 2","link":"gallery_338815.html","maxRecords":0.0,"photoIDs":[8371377.0,8371507.0,8371546.0,8371551.0,6920454.0,6897060.0,6023481.0,6897062.0,6023471.0,6897065.0,6023476.0,6897068.0,7127711.0,7127714.0,7127719.0,7127721.0,7131842.0,7527089.0,7527091.0,7626440.0,7626442.0,7771950.0,8101654.0,8101656.0,8819826.0],"skipIndex":0,"section_code":"gallery","featured_images":7771950.0,"id":338815,"singleSection":false});				  						galleries[245938] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Trees","link":"gallery_245938.html","maxRecords":0.0,"photoIDs":[6190085.0,4119459.0,5254098.0,4598497.0,4098842.0,4098918.0,4098921.0,4098926.0,4098937.0,4366356.0,4598505.0,5272333.0,6897091.0,6897094.0,7626454.0,7626477.0,8372458.0,8375479.0],"skipIndex":0,"section_code":"gallery","featured_images":4098926.0,"id":245938,"singleSection":false});				  						galleries[59310] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings","link":"gallery_59310.html","maxRecords":0.0,"photoIDs":[397079.0,3693227.0,767072.0,410149.0,1966890.0,3225685.0,410042.0,400724.0,400206.0,396580.0,396569.0,398196.0,399440.0,400158.0,1192192.0,410147.0,407235.0,396576.0,395682.0,395696.0,1295153.0,1212716.0,749451.0,2294008.0,1965403.0,410034.0,5803109.0,4294245.0,5254021.0,6073368.0,5410874.0,5106887.0,5106896.0,5135420.0,5148128.0,5410860.0],"skipIndex":0,"section_code":"gallery","featured_images":400158.0,"id":59310,"singleSection":false});				  						galleries[421863] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_421863.html","maxRecords":0.0,"photoIDs":[7814039.0,7814047.0,8013451.0,8819845.0],"skipIndex":0,"section_code":"gallery","featured_images":8819845.0,"id":421863,"singleSection":false});				  						galleries[84832] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings, Portraits","link":"gallery_84832.html","maxRecords":0.0,"photoIDs":[5650477.0,3570166.0,1180292.0,1177113.0,1177121.0,1190948.0,1181949.0,808891.0,1192195.0,1216996.0,1230755.0,1247931.0,1295125.0,8013476.0,6421348.0,8190704.0],"skipIndex":0,"section_code":"gallery","featured_images":1177113.0,"id":84832,"singleSection":false});				  						galleries[32166] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and White ","link":"gallery_32166.html","maxRecords":0.0,"photoIDs":[564841.0,667595.0,399972.0,397040.0,398898.0,409991.0,572368.0,396680.0,400727.0,397033.0,767070.0,398232.0,398484.0,398492.0,398500.0,398507.0,398516.0,398525.0,398550.0,398693.0,398718.0,398722.0,398725.0,398757.0,398763.0,398769.0,398777.0,398780.0,398817.0,398833.0,398837.0,398847.0,398851.0,398854.0,564854.0],"skipIndex":0,"section_code":"gallery","featured_images":564854.0,"id":32166,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7771950';
imageSets[2] = '7526957,1177113,4098926,400158,8819845,564854,7771950';
imageSets[3] = '6920454,6897060,6023481,6897062,6023471,1190948,1181949,6023476,6897068,808891,1192195,1216996,1192192,1247931,410147,1295153,1212716,749451,2294008,7127714,7127719,1965403,7127721,7131842,6897094,564854,5410874';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/hashakib/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/hashakib/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/hashakib/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/hashakib/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/hashakib/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/hashakib/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/hashakib/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 = 'Hashim Akib: ' + 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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="hashimakib@yahoo.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="hashimakib@yahoo.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

