window.thumbnails = {};
															thumbnails[8010345] = clik.newPhoto({"id":8010345,"src":"thepantrylogo_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":129,"caption":"The Pantry at Loewen Gardens","height":130});
															thumbnails[8010359] = clik.newPhoto({"id":8010359,"src":"06Jun11-110x150_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":95,"caption":"Expat Living","height":130});
															thumbnails[8010376] = clik.newPhoto({"id":8010376,"src":"slide02_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":85,"caption":"Parentlink Singapore","height":130});
															thumbnails[8010371] = clik.newPhoto({"id":8010371,"src":"LogoText_thumb.png","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Centre Stage School of Arts Singapore","height":36});
															thumbnails[8010373] = clik.newPhoto({"id":8010373,"src":"lrplogo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Llewellyn Robins","height":45});
															thumbnails[8010381] = clik.newPhoto({"id":8010381,"src":"banner5_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Capture The Moment Photography","height":11});
															thumbnails[8010365] = clik.newPhoto({"id":8010365,"src":"logo_thumb.gif","galleries_id":"","server_id":1,"link":"#","width":96,"caption":"M'Lop Tapang","height":96});
															thumbnails[6662512] = clik.newPhoto({"id":6662512,"src":"Qualification_logo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":37});
															thumbnails[6691770] = clik.newPhoto({"id":6691770,"src":"centrestage_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"centrestage","height":87});
															thumbnails[6785537] = clik.newPhoto({"id":6785537,"src":"starfinal_3C62068B-24E8-5EC4-4F862F420353B943_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"starfinal","height":137});
															thumbnails[8350119] = clik.newPhoto({"id":8350119,"src":"find-us-on-facebook_thumb.png","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":40});
															thumbnails[7170878] = clik.newPhoto({"id":7170878,"src":"Kate Griffiths_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":116});
															thumbnails[6698096] = clik.newPhoto({"id":6698096,"src":"IMG_0309_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6698104] = clik.newPhoto({"id":6698104,"src":"IMG_6232_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6698105] = clik.newPhoto({"id":6698105,"src":"IMG_6248_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6765881] = clik.newPhoto({"id":6765881,"src":"IMG_0160crop_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6765883] = clik.newPhoto({"id":6765883,"src":"IMG_0180_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6765885] = clik.newPhoto({"id":6765885,"src":"IMG_0262_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6765889] = clik.newPhoto({"id":6765889,"src":"IMG_0516_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765889.html","width":130,"caption":"","height":87});
															thumbnails[6765890] = clik.newPhoto({"id":6765890,"src":"IMG_0708_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765890.html","width":130,"caption":"","height":87});
															thumbnails[7927266] = clik.newPhoto({"id":7927266,"src":"IMG_00091_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_7927266.html","width":130,"caption":"","height":93});
															thumbnails[6691741] = clik.newPhoto({"id":6691741,"src":"6_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6691741.html","width":130,"caption":"","height":87});
															thumbnails[4861593] = clik.newPhoto({"id":4861593,"src":"web_0156_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_4861593.html","width":130,"caption":"","height":87});
															thumbnails[6662670] = clik.newPhoto({"id":6662670,"src":"IMG_0253a_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6662670.html","width":130,"caption":"","height":87});
															thumbnails[2858610] = clik.newPhoto({"id":2858610,"src":"bump_thumb.jpg","galleries_id":25873,"server_id":1,"link":"photo_2858610.html","width":130,"caption":"","height":87});
															thumbnails[6691739] = clik.newPhoto({"id":6691739,"src":"IMG_6390_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6691739.html","width":130,"caption":"","height":87});
															thumbnails[6691745] = clik.newPhoto({"id":6691745,"src":"IMG_00100346_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6691745.html","width":130,"caption":"","height":87});
															thumbnails[6691828] = clik.newPhoto({"id":6691828,"src":"IMG_0547_F030F1D7-1D09-001F-99EA1349653A3F03_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6691828.html","width":130,"caption":"","height":87});
															thumbnails[6698062] = clik.newPhoto({"id":6698062,"src":"CS-6218_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698062.html","width":130,"caption":"","height":87});
															thumbnails[6698069] = clik.newPhoto({"id":6698069,"src":"IMG_0964_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6698069.html","width":130,"caption":"","height":87});
															thumbnails[6765876] = clik.newPhoto({"id":6765876,"src":"IMG_0013_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6765876.html","width":130,"caption":"","height":87});
															thumbnails[6691762] = clik.newPhoto({"id":6691762,"src":"IMG_0098_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6691762.html","width":130,"caption":"","height":87});
															thumbnails[6691765] = clik.newPhoto({"id":6691765,"src":"IMG_0305_F006FC72-1D09-001F-99D80D00782CC604_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6691765.html","width":130,"caption":"","height":87});
															thumbnails[1946764] = clik.newPhoto({"id":1946764,"src":"chloe3_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_1946764.html","width":130,"caption":"","height":87});
															thumbnails[6662628] = clik.newPhoto({"id":6662628,"src":"IMG_0172_thumb.jpg","galleries_id":25873,"server_id":1,"link":"photo_6662628.html","width":130,"caption":"","height":87});
															thumbnails[6691740] = clik.newPhoto({"id":6691740,"src":"16x6in_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6691740.html","width":130,"caption":"","height":87});
															thumbnails[6691751] = clik.newPhoto({"id":6691751,"src":"Untitled-1_EFD78822-1D09-001F-99CD28671B014551_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6691751.html","width":130,"caption":"","height":87});
															thumbnails[6765828] = clik.newPhoto({"id":6765828,"src":"SS-17x17in_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6765828.html","width":130,"caption":"","height":87});
															thumbnails[781240] = clik.newPhoto({"id":781240,"src":"webvan1.jpg","galleries_id":25873,"server_id":1,"link":"photo_781240.html","width":130,"caption":"","height":87});
															thumbnails[6698063] = clik.newPhoto({"id":6698063,"src":"CS-6223_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698063.html","width":130,"caption":"","height":87});
															thumbnails[6765829] = clik.newPhoto({"id":6765829,"src":"ST-34x15in_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765829.html","width":130,"caption":"","height":87});
															thumbnails[6691829] = clik.newPhoto({"id":6691829,"src":"IMG_0611_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6691829.html","width":130,"caption":"","height":87});
															thumbnails[6699210] = clik.newPhoto({"id":6699210,"src":"IMG_0029_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6699210.html","width":130,"caption":"","height":87});
															thumbnails[6698066] = clik.newPhoto({"id":6698066,"src":"IMG_1136_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6698066.html","width":130,"caption":"","height":87});
															thumbnails[1946760] = clik.newPhoto({"id":1946760,"src":"jason2_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_1946760.html","width":130,"caption":"","height":87});
															thumbnails[6691769] = clik.newPhoto({"id":6691769,"src":"153_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6691769.html","width":130,"caption":"","height":87});
															thumbnails[2858608] = clik.newPhoto({"id":2858608,"src":"twins_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_2858608.html","width":130,"caption":"","height":87});
															thumbnails[6662637] = clik.newPhoto({"id":6662637,"src":"IMG_0297_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6662637.html","width":130,"caption":"","height":87});
															thumbnails[6691742] = clik.newPhoto({"id":6691742,"src":"AS-25x85in_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6691742.html","width":130,"caption":"","height":87});
															thumbnails[6698591] = clik.newPhoto({"id":6698591,"src":"C-29x9in_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6698591.html","width":130,"caption":"","height":87});
															thumbnails[6698064] = clik.newPhoto({"id":6698064,"src":"IMG_0310_F3DA25CA-1D09-001F-99F6CEFF1953391E_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6698064.html","width":130,"caption":"","height":87});
															thumbnails[6765877] = clik.newPhoto({"id":6765877,"src":"IMG_0143_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6765877.html","width":130,"caption":"","height":87});
															thumbnails[2858609] = clik.newPhoto({"id":2858609,"src":"twins2_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_2858609.html","width":130,"caption":"","height":87});
															thumbnails[6662645] = clik.newPhoto({"id":6662645,"src":"05411_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6662645.html","width":130,"caption":"","height":87});
															thumbnails[6698093] = clik.newPhoto({"id":6698093,"src":"card_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698093.html","width":130,"caption":"","height":87});
															thumbnails[6765843] = clik.newPhoto({"id":6765843,"src":"IMG_0731_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765843.html","width":130,"caption":"","height":87});
															thumbnails[6662649] = clik.newPhoto({"id":6662649,"src":"61_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6662649.html","width":130,"caption":"","height":87});
															thumbnails[6691830] = clik.newPhoto({"id":6691830,"src":"IMG_0782_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6691830.html","width":130,"caption":"","height":87});
															thumbnails[6699211] = clik.newPhoto({"id":6699211,"src":"IMG_0030des_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6699211.html","width":130,"caption":"","height":87});
															thumbnails[6691761] = clik.newPhoto({"id":6691761,"src":"C-7x25in_0313_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6691761.html","width":130,"caption":"","height":87});
															thumbnails[6662605] = clik.newPhoto({"id":6662605,"src":"preg2_thumb.jpg","galleries_id":25873,"server_id":1,"link":"photo_6662605.html","width":130,"caption":"","height":87});
															thumbnails[6662638] = clik.newPhoto({"id":6662638,"src":"IMG_0489_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6662638.html","width":130,"caption":"","height":87});
															thumbnails[6691771] = clik.newPhoto({"id":6691771,"src":"des200665_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6691771.html","width":130,"caption":"","height":87});
															thumbnails[6765831] = clik.newPhoto({"id":6765831,"src":"web_0003_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6765831.html","width":130,"caption":"","height":181});
															thumbnails[6765841] = clik.newPhoto({"id":6765841,"src":"IMG_3400_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765841.html","width":130,"caption":"","height":87});
															thumbnails[6698065] = clik.newPhoto({"id":6698065,"src":"IMG_0932_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6698065.html","width":130,"caption":"","height":87});
															thumbnails[6765838] = clik.newPhoto({"id":6765838,"src":"IMG_2544_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765838.html","width":130,"caption":"","height":87});
															thumbnails[6699212] = clik.newPhoto({"id":6699212,"src":"IMG_0048_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6699212.html","width":130,"caption":"","height":87});
															thumbnails[799961] = clik.newPhoto({"id":799961,"src":"van1.jpg","galleries_id":25873,"server_id":1,"link":"photo_799961.html","width":130,"caption":"","height":87});
															thumbnails[6662635] = clik.newPhoto({"id":6662635,"src":"1_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6662635.html","width":130,"caption":"","height":87});
															thumbnails[6691772] = clik.newPhoto({"id":6691772,"src":"design2_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6691772.html","width":130,"caption":"","height":87});
															thumbnails[6698071] = clik.newPhoto({"id":6698071,"src":"IMG_7397_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6698071.html","width":130,"caption":"","height":87});
															thumbnails[6662648] = clik.newPhoto({"id":6662648,"src":"600x4001_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6662648.html","width":130,"caption":"","height":87});
															thumbnails[6691827] = clik.newPhoto({"id":6691827,"src":"IMG_0310_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6691827.html","width":130,"caption":"","height":87});
															thumbnails[6765833] = clik.newPhoto({"id":6765833,"src":"IMG_3953_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765833.html","width":130,"caption":"","height":87});
															thumbnails[6691768] = clik.newPhoto({"id":6691768,"src":"1_F01380AC-1D09-001F-9955801487BB0A03_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6691768.html","width":130,"caption":"","height":87});
															thumbnails[6698584] = clik.newPhoto({"id":6698584,"src":"_0023_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6698584.html","width":130,"caption":"","height":87});
															thumbnails[6698072] = clik.newPhoto({"id":6698072,"src":"KateS-final_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698072.html","width":130,"caption":"","height":87});
															thumbnails[6698106] = clik.newPhoto({"id":6698106,"src":"x3_sq_canvas_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698106.html","width":130,"caption":"","height":87});
															thumbnails[6698594] = clik.newPhoto({"id":6698594,"src":"des00273_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698594.html","width":130,"caption":"","height":87});
															thumbnails[6765835] = clik.newPhoto({"id":6765835,"src":"JM-17x17in_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6765835.html","width":130,"caption":"","height":87});
															thumbnails[6662639] = clik.newPhoto({"id":6662639,"src":"pan_0538_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6662639.html","width":130,"caption":"","height":87});
															thumbnails[6698073] = clik.newPhoto({"id":6698073,"src":"katie4_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6698073.html","width":130,"caption":"","height":87});
															thumbnails[6698595] = clik.newPhoto({"id":6698595,"src":"IMG_0002_F523AFE8-1D09-001F-993A35D9FCE4DBEA_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6698595.html","width":130,"caption":"","height":87});
															thumbnails[6699215] = clik.newPhoto({"id":6699215,"src":"IMG_0091_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6699215.html","width":130,"caption":"","height":87});
															thumbnails[6765879] = clik.newPhoto({"id":6765879,"src":"IMG_0160_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6765879.html","width":130,"caption":"","height":87});
															thumbnails[6662627] = clik.newPhoto({"id":6662627,"src":"7x7IMG_6596_D66639F1-1D09-001F-99E775B1753FDB2A_thumb.jpg","galleries_id":25873,"server_id":1,"link":"photo_6662627.html","width":130,"caption":"","height":87});
															thumbnails[6691764] = clik.newPhoto({"id":6691764,"src":"IMG_0242_thumb.jpg","galleries_id":25868,"server_id":1,"link":"photo_6691764.html","width":130,"caption":"","height":87});
															thumbnails[6698074] = clik.newPhoto({"id":6698074,"src":"patrick_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6698074.html","width":130,"caption":"","height":87});
															thumbnails[6699218] = clik.newPhoto({"id":6699218,"src":"IMG_0094_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6699218.html","width":130,"caption":"","height":87});
															thumbnails[6698075] = clik.newPhoto({"id":6698075,"src":"popart_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698075.html","width":130,"caption":"","height":87});
															thumbnails[6649635] = clik.newPhoto({"id":6649635,"src":"Untitled-1_CD342C12-1D09-001F-99671794FB09DF85_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6649635.html","width":130,"caption":"","height":52});
															thumbnails[6662629] = clik.newPhoto({"id":6662629,"src":"IMG_0201_thumb.jpg","galleries_id":25873,"server_id":1,"link":"photo_6662629.html","width":130,"caption":"","height":87});
															thumbnails[6662653] = clik.newPhoto({"id":6662653,"src":"merge_06221_thumb.jpg","galleries_id":25880,"server_id":1,"link":"photo_6662653.html","width":130,"caption":"","height":87});
															thumbnails[6691748] = clik.newPhoto({"id":6691748,"src":"IMG_0576_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6691748.html","width":130,"caption":"","height":87});
															thumbnails[6698076] = clik.newPhoto({"id":6698076,"src":"Untitled-2_thumb.jpg","galleries_id":25875,"server_id":1,"link":"photo_6698076.html","width":130,"caption":"","height":87});
															thumbnails[781277] = clik.newPhoto({"id":781277,"src":"webvan21.jpg","galleries_id":25873,"server_id":1,"link":"photo_781277.html","width":130,"caption":"","height":87});
															thumbnails[6698590] = clik.newPhoto({"id":6698590,"src":"bump_F523A9FC-1D09-001F-99D30DA062663A62_thumb.jpg","galleries_id":25873,"server_id":1,"link":"photo_6698590.html","width":130,"caption":"","height":87});
															thumbnails[6699213] = clik.newPhoto({"id":6699213,"src":"IMG_0051_thumb.jpg","galleries_id":25882,"server_id":1,"link":"photo_6699213.html","width":130,"caption":"","height":87});
															thumbnails[6765837] = clik.newPhoto({"id":6765837,"src":"SS-12x5in-0401_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765837.html","width":130,"caption":"","height":87});
															thumbnails[6765847] = clik.newPhoto({"id":6765847,"src":"IMG_1606_thumb.jpg","galleries_id":25874,"server_id":1,"link":"photo_6765847.html","width":130,"caption":"","height":87});
															thumbnails[8415508] = clik.newPhoto({"id":8415508,"src":"FINAL050911website_thumb.jpg","galleries_id":427414,"server_id":1,"link":"photo_8415508.html","width":92,"caption":"MyLittleMuse.com search for a new face for their advertising campaign!","height":130});
															thumbnails[7937271] = clik.newPhoto({"id":7937271,"src":"loewenad_thumb.jpg","galleries_id":427414,"server_id":1,"link":"photo_7937271.html","width":92,"caption":"Join us at the Loewen Gardens Fair on 17th June 2011","height":130});
															thumbnails[7931581] = clik.newPhoto({"id":7931581,"src":"shophouse_thumb.jpg","galleries_id":427414,"server_id":1,"link":"photo_7931581.html","width":92,"caption":"The Shophouse Fair","height":130});
															thumbnails[7931579] = clik.newPhoto({"id":7931579,"src":"inspired_thumb.jpg","galleries_id":427414,"server_id":1,"link":"photo_7931579.html","width":92,"caption":"Inspired Living Exhibition 2010","height":130});
															thumbnails[7931576] = clik.newPhoto({"id":7931576,"src":"supportmlop_thumb.jpg","galleries_id":427414,"server_id":1,"link":"photo_7931576.html","width":92,"caption":"Support M'Lop Tapang","height":130});
															thumbnails[7931584] = clik.newPhoto({"id":7931584,"src":"photocourses1_thumb.jpg","galleries_id":427414,"server_id":1,"link":"photo_7931584.html","width":92,"caption":"Photography Courses","height":130});
															thumbnails[7931409] = clik.newPhoto({"id":7931409,"src":"singaporelaunch4_thumb.jpg","galleries_id":427414,"server_id":1,"link":"photo_7931409.html","width":92,"caption":"Singapore Launch","height":130});
															thumbnails[8118794] = clik.newPhoto({"id":8118794,"src":"resizedeljul11_Page_1_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_8118794.html","width":92,"caption":"Littleones photography featured in the July 2011 issue of Expat Living","height":130});
															thumbnails[8118797] = clik.newPhoto({"id":8118797,"src":"resizedeljul11_Page_2_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_8118797.html","width":91,"caption":"","height":130});
															thumbnails[8118799] = clik.newPhoto({"id":8118799,"src":"resizedeljul11_Page_3_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_8118799.html","width":92,"caption":"","height":130});
															thumbnails[8118800] = clik.newPhoto({"id":8118800,"src":"resizedeljul11_Page_4_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_8118800.html","width":92,"caption":"","height":130});
															thumbnails[7937811] = clik.newPhoto({"id":7937811,"src":"FBlaunch_Page_11_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937811.html","width":92,"caption":"Littleones is now on Facebook!","height":130});
															thumbnails[7937812] = clik.newPhoto({"id":7937812,"src":"FBlaunch_Page_21_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937812.html","width":92,"caption":"","height":130});
															thumbnails[7937172] = clik.newPhoto({"id":7937172,"src":"pantry_pics_EL_mag_Page_1_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937172.html","width":92,"caption":"Littleones Images used for The Pantry Advertising Campaign","height":130});
															thumbnails[7937174] = clik.newPhoto({"id":7937174,"src":"pantry_pics_EL_mag_Page_2_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937174.html","width":90,"caption":"","height":130});
															thumbnails[7937175] = clik.newPhoto({"id":7937175,"src":"elcambodia_article_Page_1_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937175.html","width":92,"caption":"Kate writes article for Expat Living Magazine","height":130});
															thumbnails[7937177] = clik.newPhoto({"id":7937177,"src":"elcambodia_article_Page_2_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937177.html","width":91,"caption":"","height":130});
															thumbnails[7937179] = clik.newPhoto({"id":7937179,"src":"elcambodia_article_Page_3_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937179.html","width":92,"caption":"","height":130});
															thumbnails[7937180] = clik.newPhoto({"id":7937180,"src":"elcambodia_article_Page_4_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937180.html","width":92,"caption":"","height":130});
															thumbnails[7937181] = clik.newPhoto({"id":7937181,"src":"elcambodia_article_Page_5_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937181.html","width":92,"caption":"","height":130});
															thumbnails[7937267] = clik.newPhoto({"id":7937267,"src":"coffeemorningdec2010_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937267.html","width":92,"caption":"Tips to take the perfect family photo!","height":130});
															thumbnails[7932012] = clik.newPhoto({"id":7932012,"src":"inspiredliving_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7932012.html","width":92,"caption":"Inspired Living Exhibition 2010","height":130});
															thumbnails[7931889] = clik.newPhoto({"id":7931889,"src":"centrestage_73A69396-1E4F-37DC-71A45531452D441A_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7931889.html","width":92,"caption":"Kate approached by Centre Stage, Singapore","height":130});
															thumbnails[7937167] = clik.newPhoto({"id":7937167,"src":"elarticle2009_Page_1_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937167.html","width":92,"caption":"Littleones in Expat Living Magazine Oct 2009","height":130});
															thumbnails[7937170] = clik.newPhoto({"id":7937170,"src":"elarticle2009_Page_2_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7937170.html","width":92,"caption":"","height":130});
															thumbnails[7932019] = clik.newPhoto({"id":7932019,"src":"mloptapong_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7932019.html","width":92,"caption":"A Charity close to Kate's heart","height":130});
															thumbnails[7932016] = clik.newPhoto({"id":7932016,"src":"mastersphotoassoc_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7932016.html","width":92,"caption":"Kate awarded prestigious qualifications","height":130});
															thumbnails[7931819] = clik.newPhoto({"id":7931819,"src":"Cambodia_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7931819.html","width":92,"caption":"Kate's Charity in Cambodia","height":130});
															thumbnails[7932006] = clik.newPhoto({"id":7932006,"src":"expatlivingbabyboom_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7932006.html","width":92,"caption":"Kate teams up with Expat Living for Baby Boom Feature","height":130});
															thumbnails[7932007] = clik.newPhoto({"id":7932007,"src":"hertsadvertiser_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7932007.html","width":92,"caption":"Media Coverage in Hertfordshire Advertiser, UK","height":130});
															thumbnails[7931813] = clik.newPhoto({"id":7931813,"src":"BIPP_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7931813.html","width":92,"caption":"BIPP Article","height":130});
															thumbnails[7931734] = clik.newPhoto({"id":7931734,"src":"bbctv1_thumb.jpg","galleries_id":427426,"server_id":1,"link":"photo_7931734.html","width":92,"caption":"Kate approached by the BBC","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[427414] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events and Promotions","link":"section513305.html","maxRecords":0.0,"photoIDs":[8415508.0,7937271.0,7931581.0,7931579.0,7931576.0,7931584.0,7931409.0],"skipIndex":0,"section_code":"section513305","featured_images":"8415508,7937271,7931584,7931581,7931579,7931576,7931409","id":427414,"singleSection":true});				  						galleries[427426] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Media Gallery","link":"section513307.html","maxRecords":0.0,"photoIDs":[8118794.0,8118797.0,8118799.0,8118800.0,7937811.0,7937812.0,7937172.0,7937174.0,7937175.0,7937177.0,7937179.0,7937180.0,7937181.0,7937267.0,7932012.0,7931889.0,7937167.0,7937170.0,7932019.0,7932016.0,7931819.0,7932006.0,7932007.0,7931813.0,7931734.0],"skipIndex":0,"section_code":"section513307","featured_images":"8118800,8118799,8118797,8118794,7937812,7937811,7937267,7937181,7937180,7937179","id":427426,"singleSection":true});				  						galleries[25873] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Me & Bump","link":"gallery_25873.html","maxRecords":0.0,"photoIDs":[2858610.0,6662628.0,781240.0,6662605.0,799961.0,6662627.0,6662629.0,781277.0,6698590.0],"skipIndex":0,"section_code":"gallery","featured_images":2858610.0,"id":25873,"singleSection":false});				  						galleries[25868] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Newborn","link":"gallery_25868.html","maxRecords":0.0,"photoIDs":[6698069.0,6691829.0,1946760.0,2858608.0,6698064.0,2858609.0,6691761.0,6662638.0,6698065.0,6691827.0,6698073.0,6691764.0],"skipIndex":0,"section_code":"gallery","featured_images":6698069.0,"id":25868,"singleSection":false});				  						galleries[25880] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Littleones","link":"gallery_25880.html","maxRecords":0.0,"photoIDs":[6765876.0,6691762.0,1946764.0,6699210.0,6698066.0,6765877.0,6691830.0,6699212.0,6698071.0,6662648.0,6691768.0,6765879.0,6662653.0],"skipIndex":0,"section_code":"gallery","featured_images":"6765879,6765877,6765876,6699212,6699210,6698071,6698066,6691830,6691768,6691762","id":25880,"singleSection":false});				  						galleries[25882] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Older ones","link":"gallery_25882.html","maxRecords":0.0,"photoIDs":[7927266.0,6691741.0,4861593.0,6662670.0,6691739.0,6662637.0,6662645.0,6662635.0,6698584.0,6662639.0,6691748.0,6699213.0],"skipIndex":0,"section_code":"gallery","featured_images":6691741.0,"id":25882,"singleSection":false});				  						galleries[25874] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Families","link":"gallery_25874.html","maxRecords":0.0,"photoIDs":[6765889.0,6765890.0,6691828.0,6691765.0,6765829.0,6691769.0,6691742.0,6698591.0,6765843.0,6765841.0,6765838.0,6765833.0,6698595.0,6699215.0,6698074.0,6699218.0,6765837.0,6765847.0],"skipIndex":0,"section_code":"gallery","featured_images":6691828.0,"id":25874,"singleSection":false});				  						galleries[25875] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Designer Images","link":"gallery_25875.html","maxRecords":0.0,"photoIDs":[6691745.0,6698062.0,6691740.0,6691751.0,6765828.0,6698063.0,6698093.0,6662649.0,6699211.0,6691771.0,6765831.0,6691772.0,6698072.0,6698106.0,6698594.0,6765835.0,6698075.0,6649635.0,6698076.0],"skipIndex":0,"section_code":"gallery","featured_images":6691745.0,"id":25875,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7927266,6691741,4861593,6662670,6698069,6691828,2858610,6691765,6691762,6691740,6765829,6699210,6691829,6698066,1946760,2858608,6662637,6765877,6691830,6662605,6699212,6765881,6691772,6765835,6698073,6765879,6691764,6691748';
imageSets[2] = '6691741,6698069,6691828,6691745,2858610';
imageSets[3] = '8415508,8350119,8118800,8118799,8118797,8118794,8010381,8010376,8010373,8010371,8010365,8010359,8010345,7937812,7937811,7937271,7937267,7937181,7937180,7937179,7937177,7937175,7937174,7937172,7937170,7937167,7932019,7932016,7932012,7932007,7932006,7931889,7931819,7931813,7931734,7931584,7931581,7931579,7931576,7931409,7927266,7170878,6785537,6765890,6765889,6765885,6765883,6765881,6765879,6765877';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/katelgriffiths/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/katelgriffiths/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'littleones Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> S$' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					temp += '<input type="hidden" name="currency_code" value="SGD">';
					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="">';
				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;
	}
}

			

