window.thumbnails = {};
															thumbnails[8967254] = clik.newPhoto({"id":8967254,"src":"My_Hpoto_for_My_Web_6_Low_Res_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8967255] = clik.newPhoto({"id":8967255,"src":"Eva_Photo_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":200,"caption":"","height":200});
															thumbnails[8967256] = clik.newPhoto({"id":8967256,"src":"Eva-Photo1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":200,"caption":"","height":200});
															thumbnails[9016082] = clik.newPhoto({"id":9016082,"src":"My-PhotoFormated_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":189,"caption":"","height":260});
															thumbnails[8989872] = clik.newPhoto({"id":8989872,"src":"Lancet-Neurology-Front-Cover-1_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989872.html","width":260,"caption":"","height":260});
															thumbnails[8989869] = clik.newPhoto({"id":8989869,"src":"Harvard-Business-Review-Magazine1_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989869.html","width":209,"caption":"","height":260});
															thumbnails[8989914] = clik.newPhoto({"id":8989914,"src":"The-Lancet_A09521F9-24E8-5EC4-4F95E663DE0214FA_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989914.html","width":260,"caption":"","height":260});
															thumbnails[8989930] = clik.newPhoto({"id":8989930,"src":"UCLA-Medical-Magazine-FINAL_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989930.html","width":260,"caption":"","height":260});
															thumbnails[4139907] = clik.newPhoto({"id":4139907,"src":"40_2_4-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4139907.html","width":130,"caption":"","height":78});
															thumbnails[8989938] = clik.newPhoto({"id":8989938,"src":"Vita-magazine-Arthritis-FINAL-ILLO_thumb_A0E5FAA3-24E8-5EC4-4F76D780F72E049A.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989938.html","width":260,"caption":"","height":190});
															thumbnails[8989882] = clik.newPhoto({"id":8989882,"src":"Readers-Digest-Medical-1_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989882.html","width":184,"caption":"","height":260});
															thumbnails[8989884] = clik.newPhoto({"id":8989884,"src":"Readers-Digest-Medical-2a_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989884.html","width":194,"caption":"","height":260});
															thumbnails[4142489] = clik.newPhoto({"id":4142489,"src":"50_2_5-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4142489.html","width":119,"caption":"","height":130});
															thumbnails[8989636] = clik.newPhoto({"id":8989636,"src":"Baylor-Health-Magazine-Multiple-Myeloma1_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989636.html","width":260,"caption":"","height":93});
															thumbnails[8989637] = clik.newPhoto({"id":8989637,"src":"Baylor-Health-Magazine-Multiple-Myeloma2_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989637.html","width":260,"caption":"","height":93});
															thumbnails[4139911] = clik.newPhoto({"id":4139911,"src":"10_2_1-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_4139911.html","width":130,"caption":"","height":84});
															thumbnails[8989854] = clik.newPhoto({"id":8989854,"src":"Consumer-Reports-Mag-ICONS-Final_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989854.html","width":260,"caption":"","height":158});
															thumbnails[8989877] = clik.newPhoto({"id":8989877,"src":"Readers_digest_9a-et_readers-digest_thumb_A01E7DF4-24E8-5EC4-4F19B88C0A32BC81.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989877.html","width":130,"caption":"","height":260});
															thumbnails[8989919] = clik.newPhoto({"id":8989919,"src":"UCLA-Integrative-Medicine-FINAL_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989919.html","width":202,"caption":"","height":260});
															thumbnails[5166471] = clik.newPhoto({"id":5166471,"src":"160_2_16-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_5166471.html","width":130,"caption":"","height":87});
															thumbnails[4143095] = clik.newPhoto({"id":4143095,"src":"80_2_8-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4143095.html","width":130,"caption":"","height":93});
															thumbnails[8989903] = clik.newPhoto({"id":8989903,"src":"PATIENT-4-ROUGH_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989903.html","width":260,"caption":"","height":137});
															thumbnails[8989999] = clik.newPhoto({"id":8989999,"src":"UCLA-Integrative-Medicine-NEW-ROGH_thumb_A1587019-24E8-5EC4-4F8836EB20AE4B3B.jpg","galleries_id":473450,"server_id":5,"link":"photo_8989999.html","width":196,"caption":"","height":260});
															thumbnails[8990097] = clik.newPhoto({"id":8990097,"src":"Yoga-Journal-Magazine-FINAL-ILLO_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_8990097.html","width":100,"caption":"","height":100});
															thumbnails[4398638] = clik.newPhoto({"id":4398638,"src":"100_2_10-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4398638.html","width":130,"caption":"","height":87});
															thumbnails[5166462] = clik.newPhoto({"id":5166462,"src":"120_2_12-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_5166462.html","width":102,"caption":"","height":130});
															thumbnails[9008850] = clik.newPhoto({"id":9008850,"src":"Family_Circle_Now-What-MAIN-ILLO-FINAL_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_9008850.html","width":260,"caption":"","height":148});
															thumbnails[4143124] = clik.newPhoto({"id":4143124,"src":"70_2_7-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_4143124.html","width":130,"caption":"","height":129});
															thumbnails[5166428] = clik.newPhoto({"id":5166428,"src":"220_22-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_5166428.html","width":114,"caption":"","height":130});
															thumbnails[9008852] = clik.newPhoto({"id":9008852,"src":"Continental-Magazine_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_9008852.html","width":260,"caption":"","height":220});
															thumbnails[9008853] = clik.newPhoto({"id":9008853,"src":"Continent_Mag_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_9008853.html","width":260,"caption":"","height":201});
															thumbnails[9008851] = clik.newPhoto({"id":9008851,"src":"FINAL-ILLO-Juice-Clense-CONTINENTAL_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_9008851.html","width":194,"caption":"","height":260});
															thumbnails[4142497] = clik.newPhoto({"id":4142497,"src":"200_2_20-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_4142497.html","width":130,"caption":"","height":64});
															thumbnails[9006244] = clik.newPhoto({"id":9006244,"src":"Consumer-Reports-Magazine_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006244.html","width":260,"caption":"","height":260});
															thumbnails[9006253] = clik.newPhoto({"id":9006253,"src":"Consumer-Reports-Mag-Cell-Phones-Services_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006253.html","width":260,"caption":"","height":167});
															thumbnails[9006637] = clik.newPhoto({"id":9006637,"src":"Live-TV-Inside-aircraft-cabins-FINAL_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006637.html","width":201,"caption":"","height":260});
															thumbnails[9006256] = clik.newPhoto({"id":9006256,"src":"Consumer-Reports-Magazine-Wireles-For-Every-Priotity-Spots_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006256.html","width":257,"caption":"","height":260});
															thumbnails[9006263] = clik.newPhoto({"id":9006263,"src":"PC-Word-Magazine_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006263.html","width":260,"caption":"","height":228});
															thumbnails[9006266] = clik.newPhoto({"id":9006266,"src":"Acura-Magazinejpg_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006266.html","width":260,"caption":"","height":254});
															thumbnails[9006268] = clik.newPhoto({"id":9006268,"src":"Acura-Magazine_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006268.html","width":260,"caption":"","height":254});
															thumbnails[9006306] = clik.newPhoto({"id":9006306,"src":"PC-World-_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006306.html","width":234,"caption":"","height":260});
															thumbnails[4143106] = clik.newPhoto({"id":4143106,"src":"250_2_25-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_4143106.html","width":130,"caption":"","height":80});
															thumbnails[4139695] = clik.newPhoto({"id":4139695,"src":"30_3-for-Web_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_4139695.html","width":130,"caption":"","height":90});
															thumbnails[4143029] = clik.newPhoto({"id":4143029,"src":"120_12-for-Web_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_4143029.html","width":126,"caption":"","height":130});
															thumbnails[4143086] = clik.newPhoto({"id":4143086,"src":"270_27-for-Web_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_4143086.html","width":130,"caption":"","height":53});
															thumbnails[9008861] = clik.newPhoto({"id":9008861,"src":"Entrepreneur-Magazine_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9008861.html","width":260,"caption":"","height":152});
															thumbnails[4139706] = clik.newPhoto({"id":4139706,"src":"40_4-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4139706.html","width":130,"caption":"","height":81});
															thumbnails[4139808] = clik.newPhoto({"id":4139808,"src":"80_8-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4139808.html","width":130,"caption":"","height":121});
															thumbnails[9006293] = clik.newPhoto({"id":9006293,"src":"Tomorrows-World_thumb.jpg","galleries_id":172482,"server_id":5,"link":"photo_9006293.html","width":228,"caption":"","height":260});
															thumbnails[4140036] = clik.newPhoto({"id":4140036,"src":"122-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4140036.html","width":130,"caption":"","height":87});
															thumbnails[4139807] = clik.newPhoto({"id":4139807,"src":"50_5-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4139807.html","width":130,"caption":"","height":87});
															thumbnails[4142804] = clik.newPhoto({"id":4142804,"src":"90_9-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4142804.html","width":105,"caption":"","height":130});
															thumbnails[5166447] = clik.newPhoto({"id":5166447,"src":"240_24-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_5166447.html","width":130,"caption":"","height":85});
															thumbnails[4143091] = clik.newPhoto({"id":4143091,"src":"100_10-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4143091.html","width":130,"caption":"","height":87});
															thumbnails[4140041] = clik.newPhoto({"id":4140041,"src":"70_7-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4140041.html","width":98,"caption":"Bridgepoint Company Report (UK)","height":130});
															thumbnails[4143218] = clik.newPhoto({"id":4143218,"src":"320_2_32-for-Web_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_4143218.html","width":130,"caption":"","height":87});
															thumbnails[5166456] = clik.newPhoto({"id":5166456,"src":"230_23-for-Web1_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_5166456.html","width":103,"caption":"","height":130});
															thumbnails[9008865] = clik.newPhoto({"id":9008865,"src":"D-CEO-Mag-Commercial-Real-Estate-_thumb.jpg","galleries_id":172479,"server_id":5,"link":"photo_9008865.html","width":260,"caption":"","height":251});
															thumbnails[9006417] = clik.newPhoto({"id":9006417,"src":"et-WV-2_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9006417.html","width":226,"caption":"","height":260});
															thumbnails[4139707] = clik.newPhoto({"id":4139707,"src":"60_6-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4139707.html","width":130,"caption":"","height":79});
															thumbnails[4139931] = clik.newPhoto({"id":4139931,"src":"119-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4139931.html","width":130,"caption":"","height":87});
															thumbnails[9009106] = clik.newPhoto({"id":9009106,"src":"ACURA-25-Years-Anniversary-_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9009106.html","width":260,"caption":"","height":152});
															thumbnails[9006420] = clik.newPhoto({"id":9006420,"src":"ACURA-1_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9006420.html","width":260,"caption":"","height":137});
															thumbnails[4143246] = clik.newPhoto({"id":4143246,"src":"330_33-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4143246.html","width":130,"caption":"","height":87});
															thumbnails[4139812] = clik.newPhoto({"id":4139812,"src":"250_25-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4139812.html","width":130,"caption":"","height":70});
															thumbnails[4139818] = clik.newPhoto({"id":4139818,"src":"320_32-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4139818.html","width":130,"caption":"","height":87});
															thumbnails[4139820] = clik.newPhoto({"id":4139820,"src":"260_26-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4139820.html","width":93,"caption":"","height":130});
															thumbnails[4143250] = clik.newPhoto({"id":4143250,"src":"20_2_2-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4143250.html","width":130,"caption":"","height":87});
															thumbnails[9006431] = clik.newPhoto({"id":9006431,"src":"Continental-Mag_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9006431.html","width":260,"caption":"","height":171});
															thumbnails[4142486] = clik.newPhoto({"id":4142486,"src":"30_2_3-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4142486.html","width":130,"caption":"","height":71});
															thumbnails[9009102] = clik.newPhoto({"id":9009102,"src":"Eva-Tatcheva-Accura_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9009102.html","width":227,"caption":"","height":260});
															thumbnails[9006440] = clik.newPhoto({"id":9006440,"src":"hybrid-2_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9006440.html","width":260,"caption":"","height":140});
															thumbnails[9009103] = clik.newPhoto({"id":9009103,"src":"Eva-Tatcheva-VISION-2_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9009103.html","width":260,"caption":"","height":246});
															thumbnails[9006639] = clik.newPhoto({"id":9006639,"src":"Live-TV-Inside-aircraft-cabins-FINAL1_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9006639.html","width":201,"caption":"","height":260});
															thumbnails[4140032] = clik.newPhoto({"id":4140032,"src":"1211_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_4140032.html","width":60,"caption":"","height":60});
															thumbnails[9006428] = clik.newPhoto({"id":9006428,"src":"Common-Thread-Poster_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9006428.html","width":225,"caption":"","height":260});
															thumbnails[5166420] = clik.newPhoto({"id":5166420,"src":"20_2-for-Web_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_5166420.html","width":130,"caption":"","height":87});
															thumbnails[9009154] = clik.newPhoto({"id":9009154,"src":"WV-3b1_thumb.jpg","galleries_id":472265,"server_id":5,"link":"photo_9009154.html","width":260,"caption":"","height":140});
															thumbnails[8459461] = clik.newPhoto({"id":8459461,"src":"Styles_Image_thumb_9A1851FD-1EC9-D45B-1CC84DBED6F48B10.jpg","galleries_id":472266,"server_id":5,"link":"photo_8459461.html","width":220,"caption":"","height":260});
															thumbnails[4143104] = clik.newPhoto({"id":4143104,"src":"140_14-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143104.html","width":130,"caption":"","height":129});
															thumbnails[8970415] = clik.newPhoto({"id":8970415,"src":"Eva-Tatcheva-Pssenger-Terminal-World-1_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_8970415.html","width":215,"caption":"","height":260});
															thumbnails[5182282] = clik.newPhoto({"id":5182282,"src":"170_17-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_5182282.html","width":130,"caption":"","height":115});
															thumbnails[4139917] = clik.newPhoto({"id":4139917,"src":"116-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4139917.html","width":130,"caption":"","height":86});
															thumbnails[5166474] = clik.newPhoto({"id":5166474,"src":"180_18-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_5166474.html","width":130,"caption":"","height":87});
															thumbnails[9009172] = clik.newPhoto({"id":9009172,"src":"Siempre-Mujer-Mag-One-of-the-Boys-RFINAL-ILLO_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_9009172.html","width":230,"caption":"","height":260});
															thumbnails[4142493] = clik.newPhoto({"id":4142493,"src":"203_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4142493.html","width":130,"caption":"","height":86});
															thumbnails[5159187] = clik.newPhoto({"id":5159187,"src":"160_16-for_Web_b_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_5159187.html","width":130,"caption":"AGM","height":90});
															thumbnails[4143133] = clik.newPhoto({"id":4143133,"src":"190_19-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143133.html","width":130,"caption":"","height":73});
															thumbnails[9006499] = clik.newPhoto({"id":9006499,"src":"ET-Tomorows-World_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_9006499.html","width":260,"caption":"","height":133});
															thumbnails[4143097] = clik.newPhoto({"id":4143097,"src":"210_21-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143097.html","width":130,"caption":"","height":87});
															thumbnails[4139810] = clik.newPhoto({"id":4139810,"src":"290_29-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4139810.html","width":128,"caption":"","height":130});
															thumbnails[4139816] = clik.newPhoto({"id":4139816,"src":"280_28-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4139816.html","width":130,"caption":"AGM Lifestyle","height":82});
															thumbnails[9006494] = clik.newPhoto({"id":9006494,"src":"Are-you-Compatible--Siempre-Mujer-FINAL-ILLO_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_9006494.html","width":210,"caption":"","height":260});
															thumbnails[4139927] = clik.newPhoto({"id":4139927,"src":"110_11-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4139927.html","width":130,"caption":"EW ","height":130});
															thumbnails[4143229] = clik.newPhoto({"id":4143229,"src":"210_2_21-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143229.html","width":130,"caption":"","height":87});
															thumbnails[9006502] = clik.newPhoto({"id":9006502,"src":"Peoples-World_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_9006502.html","width":260,"caption":"","height":239});
															thumbnails[9009164] = clik.newPhoto({"id":9009164,"src":"Coaster-2010-MadMan-FINAL-1_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_9009164.html","width":260,"caption":"","height":260});
															thumbnails[9006508] = clik.newPhoto({"id":9006508,"src":"Siempre-Mujer-MagDrama-Queen_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_9006508.html","width":220,"caption":"","height":260});
															thumbnails[4143226] = clik.newPhoto({"id":4143226,"src":"304-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143226.html","width":127,"caption":"","height":130});
															thumbnails[5166452] = clik.newPhoto({"id":5166452,"src":"150_15-for-Web_a_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_5166452.html","width":130,"caption":"","height":87});
															thumbnails[4143144] = clik.newPhoto({"id":4143144,"src":"301-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143144.html","width":130,"caption":"","height":59});
															thumbnails[4143263] = clik.newPhoto({"id":4143263,"src":"312-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143263.html","width":130,"caption":"","height":130});
															thumbnails[4143237] = clik.newPhoto({"id":4143237,"src":"220_2_22-for-Web_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_4143237.html","width":130,"caption":"","height":87});
															thumbnails[9009161] = clik.newPhoto({"id":9009161,"src":"APPS-Image-8_thumb.jpg","galleries_id":472266,"server_id":5,"link":"photo_9009161.html","width":191,"caption":"","height":260});
															thumbnails[5182627] = clik.newPhoto({"id":5182627,"src":"180_3_18-for-Web_thumb.jpg","galleries_id":474034,"server_id":5,"link":"photo_5182627.html","width":130,"caption":"","height":128});
															thumbnails[9009187] = clik.newPhoto({"id":9009187,"src":"Mexican-Game-Cards-Project-Cock-Rooster_thumb.jpg","galleries_id":474034,"server_id":5,"link":"photo_9009187.html","width":195,"caption":"","height":260});
															thumbnails[4143270] = clik.newPhoto({"id":4143270,"src":"314-for-Web_thumb.jpg","galleries_id":474034,"server_id":5,"link":"photo_4143270.html","width":130,"caption":"","height":124});
															thumbnails[9009193] = clik.newPhoto({"id":9009193,"src":"Mexican-Playing-Card-1_thumb.jpg","galleries_id":474034,"server_id":5,"link":"photo_9009193.html","width":181,"caption":"","height":260});
															thumbnails[4143268] = clik.newPhoto({"id":4143268,"src":"380_2_38-for-Web_thumb.jpg","galleries_id":474034,"server_id":5,"link":"photo_4143268.html","width":117,"caption":"","height":130});
															thumbnails[4143121] = clik.newPhoto({"id":4143121,"src":"280_2_28-for-Web_thumb.jpg","galleries_id":474034,"server_id":5,"link":"photo_4143121.html","width":130,"caption":" ","height":68});
															thumbnails[4139814] = clik.newPhoto({"id":4139814,"src":"130_13-for-Web_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_4139814.html","width":130,"caption":"","height":87});
															thumbnails[4143112] = clik.newPhoto({"id":4143112,"src":"260_2_26-for-Web_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_4143112.html","width":130,"caption":"","height":45});
															thumbnails[9009201] = clik.newPhoto({"id":9009201,"src":"Eva-Tatcheva-Inside-Housing-Builders-Social-Housing_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009201.html","width":89,"caption":"","height":260});
															thumbnails[9009181] = clik.newPhoto({"id":9009181,"src":"SHOTS-Magazine_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009181.html","width":226,"caption":"","height":260});
															thumbnails[9009177] = clik.newPhoto({"id":9009177,"src":"Good-Vibrations_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009177.html","width":260,"caption":"","height":231});
															thumbnails[4143100] = clik.newPhoto({"id":4143100,"src":"230_2_23-for-Web_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_4143100.html","width":130,"caption":"","height":87});
															thumbnails[4143342] = clik.newPhoto({"id":4143342,"src":"150_3_15-for-Web_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_4143342.html","width":130,"caption":"","height":130});
															thumbnails[9009207] = clik.newPhoto({"id":9009207,"src":"George-Clooney_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009207.html","width":237,"caption":"","height":260});
															thumbnails[9009209] = clik.newPhoto({"id":9009209,"src":"Johnny-Deep_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009209.html","width":260,"caption":"","height":258});
															thumbnails[9009215] = clik.newPhoto({"id":9009215,"src":"Matthew-McConaughey_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009215.html","width":237,"caption":"","height":260});
															thumbnails[9009223] = clik.newPhoto({"id":9009223,"src":"Justine-Timberlake_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009223.html","width":233,"caption":"","height":260});
															thumbnails[9006702] = clik.newPhoto({"id":9006702,"src":"AGM-Coaster-2011-Circus_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9006702.html","width":260,"caption":"","height":260});
															thumbnails[4139922] = clik.newPhoto({"id":4139922,"src":"310_31-for-Web_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_4139922.html","width":130,"caption":"","height":69});
															thumbnails[4143244] = clik.newPhoto({"id":4143244,"src":"3081_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_4143244.html","width":60,"caption":"","height":36});
															thumbnails[9006713] = clik.newPhoto({"id":9006713,"src":"Womens-Weekly-Magazine_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9006713.html","width":202,"caption":"","height":260});
															thumbnails[9009195] = clik.newPhoto({"id":9009195,"src":"Open-Spaces_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9009195.html","width":260,"caption":"","height":153});
															thumbnails[5160762] = clik.newPhoto({"id":5160762,"src":"10_1--for-Web_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_5160762.html","width":130,"caption":"","height":76});
															thumbnails[9006705] = clik.newPhoto({"id":9006705,"src":"EW_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9006705.html","width":252,"caption":"","height":260});
															thumbnails[9006708] = clik.newPhoto({"id":9006708,"src":"Tomorrows-World_7461FDF8-1EC9-D45B-1C88347B170081EF_thumb.jpg","galleries_id":474035,"server_id":5,"link":"photo_9006708.html","width":260,"caption":"","height":193});
															thumbnails[4143273] = clik.newPhoto({"id":4143273,"src":"10_3_1-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143273.html","width":130,"caption":"","height":126});
															thumbnails[4143302] = clik.newPhoto({"id":4143302,"src":"80_3_8-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143302.html","width":94,"caption":"","height":130});
															thumbnails[4143338] = clik.newPhoto({"id":4143338,"src":"140_3_14-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143338.html","width":128,"caption":"Summer","height":130});
															thumbnails[4143305] = clik.newPhoto({"id":4143305,"src":"90_3_9-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143305.html","width":130,"caption":"","height":91});
															thumbnails[4143312] = clik.newPhoto({"id":4143312,"src":"110_3_11-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143312.html","width":99,"caption":"","height":130});
															thumbnails[4143285] = clik.newPhoto({"id":4143285,"src":"30_3_3-for-Web1_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143285.html","width":88,"caption":"","height":130});
															thumbnails[4143287] = clik.newPhoto({"id":4143287,"src":"40_3_4-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143287.html","width":88,"caption":"","height":130});
															thumbnails[4143294] = clik.newPhoto({"id":4143294,"src":"60_3_6-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143294.html","width":88,"caption":"","height":130});
															thumbnails[4143291] = clik.newPhoto({"id":4143291,"src":"50_3_5-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143291.html","width":88,"caption":"","height":130});
															thumbnails[4143279] = clik.newPhoto({"id":4143279,"src":"20_3_2-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143279.html","width":89,"caption":"","height":130});
															thumbnails[4143314] = clik.newPhoto({"id":4143314,"src":"120_3_12-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143314.html","width":97,"caption":"Pop Sycadelic","height":130});
															thumbnails[4143348] = clik.newPhoto({"id":4143348,"src":"170_3_17-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143348.html","width":98,"caption":"","height":130});
															thumbnails[4143297] = clik.newPhoto({"id":4143297,"src":"70_3_7-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143297.html","width":130,"caption":"Culinary Delights","height":94});
															thumbnails[4143308] = clik.newPhoto({"id":4143308,"src":"100_3_10-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143308.html","width":108,"caption":"","height":130});
															thumbnails[4143316] = clik.newPhoto({"id":4143316,"src":"130_3_13-for-Web_thumb.jpg","galleries_id":172485,"server_id":5,"link":"photo_4143316.html","width":97,"caption":"","height":130});
															thumbnails[4139905] = clik.newPhoto({"id":4139905,"src":"200_20-for-Web_thumb.jpg","galleries_id":473450,"server_id":5,"link":"photo_4139905.html","width":129,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[473450] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 1","link":"section215579_473450.html","maxRecords":0.0,"photoIDs":[8989872.0,8989869.0,8989914.0,8989930.0,8989938.0,8989882.0,8989884.0,8989636.0,8989637.0,4139911.0,8989854.0,8989877.0,8989919.0,5166471.0,8989903.0,8989999.0,8990097.0,5166462.0,9008850.0,4143124.0,5166428.0,9008852.0,9008853.0,9008851.0,4142497.0,4143106.0,4139905.0],"skipIndex":0,"section_code":"section215579","featured_images":8989636.0,"id":473450,"singleSection":false});				  						galleries[172482] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 2","link":"section215579_172482.html","maxRecords":0.0,"photoIDs":[9006244.0,9006253.0,9006637.0,9006256.0,9006263.0,9006266.0,9006268.0,9006306.0,4139695.0,4143029.0,4143086.0,9008861.0,9006293.0],"skipIndex":0,"section_code":"section215579","featured_images":"9006244,4139695","id":172482,"singleSection":false});				  						galleries[172479] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 3","link":"section215579_172479.html","maxRecords":0.0,"photoIDs":[4139907.0,4142489.0,4143095.0,4398638.0,4139706.0,4139808.0,4140036.0,4139807.0,4142804.0,5166447.0,4143091.0,4140041.0,4143218.0,5166456.0,9008865.0],"skipIndex":0,"section_code":"section215579","featured_images":4139706.0,"id":172479,"singleSection":false});				  						galleries[472265] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 4","link":"section215579_472265.html","maxRecords":0.0,"photoIDs":[9006417.0,4139707.0,4139931.0,9009106.0,9006420.0,4143246.0,4139812.0,4139818.0,4139820.0,4143250.0,9006431.0,4142486.0,9009102.0,9006440.0,9009103.0,9006639.0,4140032.0,9006428.0,5166420.0,9009154.0],"skipIndex":0,"section_code":"section215579","featured_images":"4139818,4139707","id":472265,"singleSection":false});				  						galleries[472266] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 5","link":"section215579_472266.html","maxRecords":0.0,"photoIDs":[8459461.0,4143104.0,8970415.0,5182282.0,4139917.0,5166474.0,9009172.0,4142493.0,5159187.0,4143133.0,9006499.0,4143097.0,4139810.0,4139816.0,9006494.0,4139927.0,4143229.0,9006502.0,9009164.0,9006508.0,4143226.0,5166452.0,4143144.0,4143263.0,4143237.0,9009161.0],"skipIndex":0,"section_code":"section215579","featured_images":9006508.0,"id":472266,"singleSection":false});				  						galleries[474034] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 6","link":"section215579_474034.html","maxRecords":0.0,"photoIDs":[5182627.0,9009187.0,4143270.0,9009193.0,4143268.0,4143121.0],"skipIndex":0,"section_code":"section215579","featured_images":4143270.0,"id":474034,"singleSection":false});				  						galleries[474035] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 7","link":"section215579_474035.html","maxRecords":0.0,"photoIDs":[4139814.0,4143112.0,9009201.0,9009181.0,9009177.0,4143100.0,4143342.0,9009207.0,9009209.0,9009215.0,9009223.0,9006702.0,4139922.0,4143244.0,9006713.0,9009195.0,5160762.0,9006705.0,9006708.0],"skipIndex":0,"section_code":"section215579","featured_images":4139814.0,"id":474035,"singleSection":false});				  						galleries[172485] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolio 8 ","link":"section215579_172485.html","maxRecords":0.0,"photoIDs":[4143273.0,4143302.0,4143338.0,4143305.0,4143312.0,4143285.0,4143287.0,4143294.0,4143291.0,4143279.0,4143314.0,4143348.0,4143297.0,4143308.0,4143316.0],"skipIndex":0,"section_code":"section215579","featured_images":4143302.0,"id":172485,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[225393] = '4143305';
imageSets[225391] = '4139808,5166420';
imageSets[1] = '9006293';
imageSets[2] = '8989636,9006244,4139695,4139706,4139707,4139818,9006508,4143270,4139814,4143302';
imageSets[3] = '9016082,9009223,9009215,9009209,9009207,9009201,9009195,9009193,9009187,9009181,9009177,9009172,9009164,9009161,9009154,9009106,9009103,9009102,9008865,9008861,9008853,9008852,9008851,9008850,9006713,9006708,9006705,9006702,9006639,9006637,9006508,9006502,9006499,9006494,9006440,9006431,9006428,9006420,9006417,9006306,9006293,9006268,9006266,9006263,9006256,9006253,9006244,8990097,8989999,8989938';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/evatatcheva/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/evatatcheva/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 += 'section215579.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 && 'section215579' != '') {
					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 = 'EVA TATCHEVA  ILLUSTRATION: ' + 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="eva_tatcheva@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="eva_tatcheva@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

