window.thumbnails = {};
															thumbnails[1612612] = clik.newPhoto({"id":1612612,"src":"hepsibah4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1612643] = clik.newPhoto({"id":1612643,"src":"fovea1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Fovea Gallery","height":42});
															thumbnails[1612709] = clik.newPhoto({"id":1612709,"src":"londongallerywest_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Harrow Contemporary at London Gallery West","height":90});
															thumbnails[1612710] = clik.newPhoto({"id":1612710,"src":"stalbans_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":185});
															thumbnails[1613591] = clik.newPhoto({"id":1613591,"src":"mypicture_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":164});
															thumbnails[2746630] = clik.newPhoto({"id":2746630,"src":"audione_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Falling Flowers in Mary Penley Exhibition ","height":195});
															thumbnails[2746669] = clik.newPhoto({"id":2746669,"src":"auditwo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Hide and Seek ","height":87});
															thumbnails[3408887] = clik.newPhoto({"id":3408887,"src":"artistsinchina_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"just arrived!","height":98});
															thumbnails[3408909] = clik.newPhoto({"id":3408909,"src":"myhouse_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"my Hakka house","height":173});
															thumbnails[3408915] = clik.newPhoto({"id":3408915,"src":"nightontown_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"with Chen Yuping and Shan Dan","height":98});
															thumbnails[3427526] = clik.newPhoto({"id":3427526,"src":"chen&kiki_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3427534] = clik.newPhoto({"id":3427534,"src":"Liuhongliang_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Liu Hong Liang proudly displays a print","height":98});
															thumbnails[3486553] = clik.newPhoto({"id":3486553,"src":"liegeone_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Liege show","height":98});
															thumbnails[3486554] = clik.newPhoto({"id":3486554,"src":"liegetwo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Liege show by night","height":98});
															thumbnails[3486557] = clik.newPhoto({"id":3486557,"src":"liegethree_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Liege by day","height":173});
															thumbnails[3810365] = clik.newPhoto({"id":3810365,"src":"lesoirvictoire_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lesoir","height":180});
															thumbnails[4844379] = clik.newPhoto({"id":4844379,"src":"krakowweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[4844382] = clik.newPhoto({"id":4844382,"src":"krakowtwoweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":172});
															thumbnails[4933291] = clik.newPhoto({"id":4933291,"src":"krakow1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":85});
															thumbnails[4933292] = clik.newPhoto({"id":4933292,"src":"krakow2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[4933293] = clik.newPhoto({"id":4933293,"src":"krakow3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":185});
															thumbnails[5282858] = clik.newPhoto({"id":5282858,"src":"hepweb5_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[5282859] = clik.newPhoto({"id":5282859,"src":"hepweb3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[5282889] = clik.newPhoto({"id":5282889,"src":"hepweb4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":85});
															thumbnails[5282890] = clik.newPhoto({"id":5282890,"src":"hepweb2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[5282891] = clik.newPhoto({"id":5282891,"src":"hepweb1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[6881734] = clik.newPhoto({"id":6881734,"src":"margaretashmansaatchi2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Ashman and her winning work in the Saatchi Gallery","height":173});
															thumbnails[6881787] = clik.newPhoto({"id":6881787,"src":"margaretasmansaatchi1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Art Competition Gallery, Saatchi Gallery, 7 October 2010","height":173});
															thumbnails[6882812] = clik.newPhoto({"id":6882812,"src":"saatchi_gallery_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":75,"caption":"Saatchi Gallery","height":120});
															thumbnails[8045203] = clik.newPhoto({"id":8045203,"src":"margaret1_lloyd_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8045243] = clik.newPhoto({"id":8045243,"src":"room1_lloyd_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":85});
															thumbnails[8045288] = clik.newPhoto({"id":8045288,"src":"hall1_Lloyd_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":95});
															thumbnails[1612631] = clik.newPhoto({"id":1612631,"src":"underonesky9_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Under One Sky","height":87});
															thumbnails[1585405] = clik.newPhoto({"id":1585405,"src":"atimetohate_thumb.jpg","galleries_id":108403,"server_id":1,"link":"photo_1585405.html","width":130,"caption":"A Time to Hate","height":176});
															thumbnails[1585407] = clik.newPhoto({"id":1585407,"src":"atimetolaugh_thumb.jpg","galleries_id":108403,"server_id":1,"link":"photo_1585407.html","width":130,"caption":"A Time to Laugh","height":176});
															thumbnails[1585410] = clik.newPhoto({"id":1585410,"src":"atimetolove_thumb.jpg","galleries_id":108403,"server_id":1,"link":"photo_1585410.html","width":130,"caption":"A Time to Love","height":173});
															thumbnails[1585427] = clik.newPhoto({"id":1585427,"src":"atimetoweep_thumb.jpg","galleries_id":108403,"server_id":1,"link":"photo_1585427.html","width":130,"caption":"A TIme to Weep","height":177});
															thumbnails[1591884] = clik.newPhoto({"id":1591884,"src":"playacting1.jpg","galleries_id":108793,"server_id":1,"link":"photo_1591884.html","width":130,"caption":"Play Acting","height":96});
															thumbnails[1591912] = clik.newPhoto({"id":1591912,"src":"Sideways1.jpg","galleries_id":108793,"server_id":1,"link":"photo_1591912.html","width":130,"caption":"Sideways","height":96});
															thumbnails[1591914] = clik.newPhoto({"id":1591914,"src":"tellme1.jpg","galleries_id":108793,"server_id":1,"link":"photo_1591914.html","width":130,"caption":"Tell Me<br>\r\n","height":98});
															thumbnails[2193405] = clik.newPhoto({"id":2193405,"src":"atimetodancei_thumb.jpg","galleries_id":273870,"server_id":1,"link":"photo_2193405.html","width":130,"caption":"A Time to Dance I","height":181});
															thumbnails[2193408] = clik.newPhoto({"id":2193408,"src":"atimetodanceii_thumb.jpg","galleries_id":273870,"server_id":1,"link":"photo_2193408.html","width":130,"caption":"A Time to Dance II","height":189});
															thumbnails[2193411] = clik.newPhoto({"id":2193411,"src":"atimetodanceiii_thumb.jpg","galleries_id":273870,"server_id":1,"link":"photo_2193411.html","width":130,"caption":"A Time to Dance III","height":179});
															thumbnails[2197686] = clik.newPhoto({"id":2197686,"src":"mau_thumb.jpg","galleries_id":273870,"server_id":1,"link":"photo_2197686.html","width":130,"caption":"Mautoki","height":167});
															thumbnails[3427319] = clik.newPhoto({"id":3427319,"src":"conversationpiece1web_thumb.jpg","galleries_id":209512,"server_id":1,"link":"photo_3427319.html","width":130,"caption":"Conversation Piece No 1","height":150});
															thumbnails[3427323] = clik.newPhoto({"id":3427323,"src":"conversationpiece2web_thumb.jpg","galleries_id":209512,"server_id":1,"link":"photo_3427323.html","width":130,"caption":"Conversation Piece No 2","height":149});
															thumbnails[3427327] = clik.newPhoto({"id":3427327,"src":"conversationpiece3web_thumb.jpg","galleries_id":209512,"server_id":1,"link":"photo_3427327.html","width":130,"caption":"Conversation Piece No 3","height":150});
															thumbnails[3787813] = clik.newPhoto({"id":3787813,"src":"Dolce_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_3787813.html","width":130,"caption":"Dolce","height":187});
															thumbnails[3787862] = clik.newPhoto({"id":3787862,"src":"confuocoweb_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_3787862.html","width":130,"caption":"Con Fuoco","height":183});
															thumbnails[4144948] = clik.newPhoto({"id":4144948,"src":"Vivaceweb_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_4144948.html","width":130,"caption":"Vivace","height":183});
															thumbnails[4789310] = clik.newPhoto({"id":4789310,"src":"Apaiseweb_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_4789310.html","width":130,"caption":"Apaise","height":183});
															thumbnails[4968238] = clik.newPhoto({"id":4968238,"src":"eclatanteweb_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_4968238.html","width":130,"caption":"Eclatante","height":139});
															thumbnails[4968254] = clik.newPhoto({"id":4968254,"src":"volanteweb_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_4968254.html","width":130,"caption":"Volante","height":132});
															thumbnails[4968261] = clik.newPhoto({"id":4968261,"src":"giocoscoweb_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_4968261.html","width":130,"caption":"Giocoso","height":142});
															thumbnails[4968267] = clik.newPhoto({"id":4968267,"src":"ariosoweb_thumb.jpg","galleries_id":230925,"server_id":1,"link":"photo_4968267.html","width":130,"caption":"Arioso","height":146});
															thumbnails[5554952] = clik.newPhoto({"id":5554952,"src":"atimetomendweb_thumb.jpg","galleries_id":108403,"server_id":1,"link":"photo_5554952.html","width":130,"caption":"A Time to Mend","height":139});
															thumbnails[5554959] = clik.newPhoto({"id":5554959,"src":"atimetomeasureweb_thumb.jpg","galleries_id":108403,"server_id":1,"link":"photo_5554959.html","width":130,"caption":"A Time to Measure","height":139});
															thumbnails[5865443] = clik.newPhoto({"id":5865443,"src":"timebeyond_thumb.jpg","galleries_id":108403,"server_id":1,"link":"photo_5865443.html","width":130,"caption":"A Time Beyond","height":139});
															thumbnails[7276578] = clik.newPhoto({"id":7276578,"src":"esme_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_7276578.html","width":130,"caption":"Esme","height":176});
															thumbnails[1591803] = clik.newPhoto({"id":1591803,"src":"Hide-and-Seekone_thumb.jpg","galleries_id":108405,"server_id":1,"link":"photo_1591803.html","width":130,"caption":"Hide and Seek 1","height":185});
															thumbnails[3125758] = clik.newPhoto({"id":3125758,"src":"flightfancy1_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_3125758.html","width":130,"caption":"Flight of Fancy","height":194});
															thumbnails[1592307] = clik.newPhoto({"id":1592307,"src":"Hide-and-Seektwo_thumb.jpg","galleries_id":108405,"server_id":1,"link":"photo_1592307.html","width":130,"caption":"Hide and Seek 2","height":185});
															thumbnails[8872591] = clik.newPhoto({"id":8872591,"src":"Natya_Usha_web_thumb.jpg","galleries_id":466603,"server_id":1,"link":"photo_8872591.html","width":130,"caption":"Natya Usha","height":105});
															thumbnails[1592348] = clik.newPhoto({"id":1592348,"src":"caughtup_thumb.jpg","galleries_id":108405,"server_id":1,"link":"photo_1592348.html","width":130,"caption":"Caught","height":181});
															thumbnails[3427343] = clik.newPhoto({"id":3427343,"src":"distantsongweb_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_3427343.html","width":130,"caption":"Distant Song","height":193});
															thumbnails[1591910] = clik.newPhoto({"id":1591910,"src":"shineup_thumb.jpg","galleries_id":108405,"server_id":1,"link":"photo_1591910.html","width":130,"caption":"Shine","height":188});
															thumbnails[4484246] = clik.newPhoto({"id":4484246,"src":"sweetsongweb_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_4484246.html","width":130,"caption":"Sweet Song","height":191});
															thumbnails[6856219] = clik.newPhoto({"id":6856219,"src":"flyawayweb_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_6856219.html","width":130,"caption":"Fly Away","height":188});
															thumbnails[1591894] = clik.newPhoto({"id":1591894,"src":"raw_thumb.jpg","galleries_id":108405,"server_id":1,"link":"photo_1591894.html","width":130,"caption":"Raw","height":188});
															thumbnails[6854939] = clik.newPhoto({"id":6854939,"src":"Immersionweb_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_6854939.html","width":130,"caption":"Immersion","height":124});
															thumbnails[8872588] = clik.newPhoto({"id":8872588,"src":"Natya_Varana_web1_thumb.jpg","galleries_id":466603,"server_id":1,"link":"photo_8872588.html","width":130,"caption":"Natya Varana","height":105});
															thumbnails[1585447] = clik.newPhoto({"id":1585447,"src":"blow_thumb.jpg","galleries_id":108405,"server_id":1,"link":"photo_1585447.html","width":130,"caption":"BLow","height":184});
															thumbnails[7199858] = clik.newPhoto({"id":7199858,"src":"Bird-of-Paradise_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_7199858.html","width":130,"caption":"Bird of Paradise","height":136});
															thumbnails[8526869] = clik.newPhoto({"id":8526869,"src":"Shu_Jihe_for_web_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_8526869.html","width":130,"caption":"Shù  Jíhé","height":136});
															thumbnails[7199929] = clik.newPhoto({"id":7199929,"src":"peace-offering_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_7199929.html","width":130,"caption":"Peace Offering","height":198});
															thumbnails[8872593] = clik.newPhoto({"id":8872593,"src":"Natya_Leena_web1_thumb.jpg","galleries_id":466603,"server_id":1,"link":"photo_8872593.html","width":130,"caption":"Natya Leena","height":105});
															thumbnails[7199933] = clik.newPhoto({"id":7199933,"src":"Falling-Poppies_Margaret-Ashman_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_7199933.html","width":130,"caption":"Falling Poppies","height":199});
															thumbnails[1585370] = clik.newPhoto({"id":1585370,"src":"ariseedition_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1585370.html","width":130,"caption":"Arise","height":166});
															thumbnails[1591771] = clik.newPhoto({"id":1591771,"src":"closeupgreen_thumb.jpg","galleries_id":108786,"server_id":1,"link":"photo_1591771.html","width":130,"caption":"Close","height":184});
															thumbnails[1591879] = clik.newPhoto({"id":1591879,"src":"memorycoat_thumb.jpg","galleries_id":108368,"server_id":1,"link":"photo_1591879.html","width":130,"caption":"Memory Coat","height":193});
															thumbnails[1591921] = clik.newPhoto({"id":1591921,"src":"torn_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_1591921.html","width":130,"caption":"Torn","height":195});
															thumbnails[1591924] = clik.newPhoto({"id":1591924,"src":"wherexsix_thumb.jpg","galleries_id":108401,"server_id":1,"link":"photo_1591924.html","width":130,"caption":"Where?","height":190});
															thumbnails[8872560] = clik.newPhoto({"id":8872560,"src":"Natya_Sandhya_web1_thumb.jpg","galleries_id":466603,"server_id":1,"link":"photo_8872560.html","width":130,"caption":"Natya Sandhya","height":105});
															thumbnails[1585369] = clik.newPhoto({"id":1585369,"src":"angel_thumb.jpg","galleries_id":108401,"server_id":1,"link":"photo_1585369.html","width":130,"caption":"Angel","height":109});
															thumbnails[1591780] = clik.newPhoto({"id":1591780,"src":"dolls_thumb.jpg","galleries_id":108368,"server_id":1,"link":"photo_1591780.html","width":130,"caption":"Rag Dolls","height":185});
															thumbnails[1591867] = clik.newPhoto({"id":1591867,"src":"Innocence_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1591867.html","width":130,"caption":"Innocence","height":166});
															thumbnails[1591897] = clik.newPhoto({"id":1591897,"src":"Redeemedforweb_thumb.jpg","galleries_id":108786,"server_id":1,"link":"photo_1591897.html","width":130,"caption":"Redeemed","height":183});
															thumbnails[1591899] = clik.newPhoto({"id":1591899,"src":"riseweb_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_1591899.html","width":130,"caption":"Rise","height":198});
															thumbnails[2193396] = clik.newPhoto({"id":2193396,"src":"whiteheat_thumb.jpg","galleries_id":273870,"server_id":1,"link":"photo_2193396.html","width":130,"caption":"White Heat","height":183});
															thumbnails[1621917] = clik.newPhoto({"id":1621917,"src":"shift_thumb.jpg","galleries_id":273870,"server_id":1,"link":"photo_1621917.html","width":130,"caption":"Shift","height":203});
															thumbnails[1585342] = clik.newPhoto({"id":1585342,"src":"ajourney_thumb.jpg","galleries_id":108368,"server_id":1,"link":"photo_1585342.html","width":130,"caption":"Journey","height":117});
															thumbnails[1591794] = clik.newPhoto({"id":1591794,"src":"fallingflowers_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_1591794.html","width":130,"caption":"Falling Flowers","height":155});
															thumbnails[1591798] = clik.newPhoto({"id":1591798,"src":"fresco_thumb.jpg","galleries_id":108786,"server_id":1,"link":"photo_1591798.html","width":130,"caption":"Fresco","height":159});
															thumbnails[1591805] = clik.newPhoto({"id":1591805,"src":"Holdtight_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1591805.html","width":130,"caption":"Hold Tight","height":152});
															thumbnails[1591915] = clik.newPhoto({"id":1591915,"src":"text_thumb.jpg","galleries_id":273885,"server_id":1,"link":"photo_1591915.html","width":130,"caption":"Text","height":56});
															thumbnails[1585353] = clik.newPhoto({"id":1585353,"src":"alwaysedition_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1585353.html","width":130,"caption":"Always","height":138});
															thumbnails[1591785] = clik.newPhoto({"id":1591785,"src":"Faithforweb_thumb.jpg","galleries_id":108786,"server_id":1,"link":"photo_1591785.html","width":130,"caption":"Faith","height":145});
															thumbnails[1591797] = clik.newPhoto({"id":1591797,"src":"fallingleaves_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_1591797.html","width":130,"caption":"Falling Leaves","height":177});
															thumbnails[1591922] = clik.newPhoto({"id":1591922,"src":"trunkinstallation_thumb.jpg","galleries_id":108368,"server_id":1,"link":"photo_1591922.html","width":130,"caption":"Trunk","height":93});
															thumbnails[1829139] = clik.newPhoto({"id":1829139,"src":"truecoloursforweb_thumb.jpg","galleries_id":108401,"server_id":1,"link":"photo_1829139.html","width":130,"caption":"True Colours","height":135});
															thumbnails[1591800] = clik.newPhoto({"id":1591800,"src":"goldenbower_thumb.jpg","galleries_id":108788,"server_id":1,"link":"photo_1591800.html","width":130,"caption":"Golden Bower","height":172});
															thumbnails[1591887] = clik.newPhoto({"id":1591887,"src":"Praiseyou_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1591887.html","width":130,"caption":"Praise","height":182});
															thumbnails[1591923] = clik.newPhoto({"id":1591923,"src":"Trustmeisaid_thumb.jpg","galleries_id":108368,"server_id":1,"link":"photo_1591923.html","width":130,"caption":"Trust Me ","height":105});
															thumbnails[1612885] = clik.newPhoto({"id":1612885,"src":"closeup_thumb.jpg","galleries_id":108786,"server_id":1,"link":"photo_1612885.html","width":130,"caption":"Close Up","height":195});
															thumbnails[1668276] = clik.newPhoto({"id":1668276,"src":"familyalbum1925_thumb.jpg","galleries_id":108368,"server_id":1,"link":"photo_1668276.html","width":130,"caption":"Family Album 1925","height":173});
															thumbnails[1829228] = clik.newPhoto({"id":1829228,"src":"orangeforweb_thumb.jpg","galleries_id":108401,"server_id":1,"link":"photo_1829228.html","width":130,"caption":"Orange","height":132});
															thumbnails[1829229] = clik.newPhoto({"id":1829229,"src":"greenforweb_thumb.jpg","galleries_id":108401,"server_id":1,"link":"photo_1829229.html","width":130,"caption":"Green","height":132});
															thumbnails[1591873] = clik.newPhoto({"id":1591873,"src":"loveeternalup_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1591873.html","width":130,"caption":"Love Eternal","height":163});
															thumbnails[1612891] = clik.newPhoto({"id":1612891,"src":"motherchild_thumb.jpg","galleries_id":108786,"server_id":1,"link":"photo_1612891.html","width":130,"caption":"Mother and Child","height":170});
															thumbnails[1591870] = clik.newPhoto({"id":1591870,"src":"Littleone_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1591870.html","width":130,"caption":"Little One","height":146});
															thumbnails[1829232] = clik.newPhoto({"id":1829232,"src":"orangevariationsforweb4_thumb.jpg","galleries_id":108401,"server_id":1,"link":"photo_1829232.html","width":130,"caption":"Orange Variations","height":51});
															thumbnails[2654617] = clik.newPhoto({"id":2654617,"src":"comewithmeweb_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_2654617.html","width":130,"caption":"Come With Me","height":154});
															thumbnails[1591926] = clik.newPhoto({"id":1591926,"src":"whisper_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1591926.html","width":130,"caption":"Whisper","height":136});
															thumbnails[1829235] = clik.newPhoto({"id":1829235,"src":"goinggreenforweb_thumb.jpg","galleries_id":108401,"server_id":1,"link":"photo_1829235.html","width":130,"caption":"Going Green","height":51});
															thumbnails[1668275] = clik.newPhoto({"id":1668275,"src":"littlefloralprint_thumb.jpg","galleries_id":108399,"server_id":1,"link":"photo_1668275.html","width":130,"caption":"Little Floral Print","height":103});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[466603] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Indian Dancer Series","link":"gallery_466603.html","maxRecords":0.0,"photoIDs":[8872591.0,8872588.0,8872593.0,8872560.0],"skipIndex":0,"section_code":"gallery","featured_images":8872588.0,"id":466603,"singleSection":false});				  						galleries[108403] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A Time ....","link":"gallery_108403.html","maxRecords":0.0,"photoIDs":[1585405.0,1585407.0,1585410.0,1585427.0,5554952.0,5554959.0,5865443.0],"skipIndex":0,"section_code":"gallery","featured_images":5865443.0,"id":108403,"singleSection":false});				  						galleries[108788] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers and Birds Series ","link":"gallery_108788.html","maxRecords":0.0,"photoIDs":[3125758.0,3427343.0,4484246.0,6856219.0,6854939.0,7199858.0,8526869.0,7199929.0,7199933.0,1591921.0,1591899.0,1591794.0,1591797.0,1591800.0],"skipIndex":0,"section_code":"gallery","featured_images":4484246.0,"id":108788,"singleSection":false});				  						galleries[273870] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Japanese Dancer Series","link":"gallery_273870.html","maxRecords":0.0,"photoIDs":[2193405.0,2193408.0,2193411.0,2197686.0,2193396.0,1621917.0],"skipIndex":0,"section_code":"gallery","featured_images":2197686.0,"id":273870,"singleSection":false});				  						galleries[209512] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Conversation Piece","link":"gallery_209512.html","maxRecords":0.0,"photoIDs":[3427319.0,3427323.0,3427327.0],"skipIndex":0,"section_code":"gallery","featured_images":"3427327,3427323,3427319","id":209512,"singleSection":false});				  						galleries[108401] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Signing","link":"gallery_108401.html","maxRecords":0.0,"photoIDs":[1591924.0,1585369.0,1829139.0,1829228.0,1829229.0,1829232.0,1829235.0],"skipIndex":0,"section_code":"gallery","featured_images":1585369.0,"id":108401,"singleSection":false});				  						galleries[230925] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"\"Here\" by Signdance series","link":"gallery_230925.html","maxRecords":0.0,"photoIDs":[3787813.0,3787862.0,4144948.0,4789310.0,4968238.0,4968254.0,4968261.0,4968267.0],"skipIndex":0,"section_code":"gallery","featured_images":"4789310,3787862","id":230925,"singleSection":false});				  						galleries[108405] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Emotion","link":"gallery_108405.html","maxRecords":0.0,"photoIDs":[1591803.0,1592307.0,1592348.0,1591910.0,1591894.0,1585447.0],"skipIndex":0,"section_code":"gallery","featured_images":"1592348,1592307,1591910,1591894,1591803,1585447","id":108405,"singleSection":false});				  						galleries[108793] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Domestic Drama ","link":"gallery_108793.html","maxRecords":0.0,"photoIDs":[1591884.0,1591912.0,1591914.0],"skipIndex":0,"section_code":"gallery","featured_images":"1591914,1591912,1591884","id":108793,"singleSection":false});				  						galleries[273885] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Text","link":"gallery_273885.html","maxRecords":0.0,"photoIDs":[1591915.0],"skipIndex":0,"section_code":"gallery","featured_images":1591915.0,"id":273885,"singleSection":false});				  						galleries[108786] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Large Hands","link":"gallery_108786.html","maxRecords":0.0,"photoIDs":[1591771.0,1591897.0,1591798.0,1591785.0,1612885.0,1612891.0],"skipIndex":0,"section_code":"gallery","featured_images":1591785.0,"id":108786,"singleSection":false});				  						galleries[108399] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hands","link":"gallery_108399.html","maxRecords":0.0,"photoIDs":[7276578.0,1585370.0,1591867.0,1591805.0,1585353.0,1591887.0,1591873.0,1591870.0,2654617.0,1591926.0,1668275.0],"skipIndex":0,"section_code":"gallery","featured_images":2654617.0,"id":108399,"singleSection":false});				  						galleries[108368] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Journey","link":"gallery_108368.html","maxRecords":0.0,"photoIDs":[1591879.0,1591780.0,1585342.0,1591922.0,1591923.0,1668276.0],"skipIndex":0,"section_code":"gallery","featured_images":"1668276,1591923,1591922,1591879,1591780,1585342","id":108368,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7276578,5865443,5554959,5554952,4144948,3787862,3787813,3427327,3427323,3427319,2197686,2193411,2193408,2193405,1585427,1585410,1585407,3125758,8872591,3427343,6856219,8872588,6854939,8526869,8872593,8872560,1591879,2193396,1591899,1621917,1591794,1591922,1591797,1591800,2654617';
imageSets[2] = '5865443,4789310,3787862,2197686,4484246,8872588,1585369,1591785,2654617';
imageSets[3] = '8872593,8872591,8872588,8872560,8526869,8045288,8045243,8045203,7276578,7199933,7199929,7199858,6882812,6881787,6881734,6856219,6854939,5865443,5554959,5554952,5282891,5282890,5282889,5282859,5282858,4968267,4968261,4968254,4968238,4933293,4933292,4933291,4844382,4844379,4789310,4484246,4144948,3810365,3787862,3787813,3486557,3486554,3486553,3427534,3427526,3427343,3427327,3427323,3427319,3408915';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/margaretashman/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/margaretashman/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 = 'margaret ashman : ' + 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> ' + (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 += '<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;
	}
}

			

