window.thumbnails = {};
															thumbnails[2426233] = clik.newPhoto({"id":2426233,"src":"rainforest_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Save the Rainforest","height":166});
															thumbnails[2438002] = clik.newPhoto({"id":2438002,"src":"testy5_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":109});
															thumbnails[2649917] = clik.newPhoto({"id":2649917,"src":"pushkar girl_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Pushkar, Rajasthan, India","height":173});
															thumbnails[3815685] = clik.newPhoto({"id":3815685,"src":"gina_tree_1100_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Vrikshasana - Tree Pose, West Sussex, UK","height":88});
															thumbnails[4218518] = clik.newPhoto({"id":4218518,"src":"sunrise_walker_small_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4222364] = clik.newPhoto({"id":4222364,"src":"Gina_Leung_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Gina Sukhasana","height":127});
															thumbnails[4222381] = clik.newPhoto({"id":4222381,"src":"Gina_Leung380_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"gina 380","height":127});
															thumbnails[4222650] = clik.newPhoto({"id":4222650,"src":"Gina_Leung300x201_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":" ","height":127});
															thumbnails[4264294] = clik.newPhoto({"id":4264294,"src":"ginger_flower_sala_sea_small1_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5042298] = clik.newPhoto({"id":5042298,"src":"London_Lite__thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Read about Gina in the London Lite Newspaper","height":48});
															thumbnails[6515628] = clik.newPhoto({"id":6515628,"src":"Low_Lunge_R_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Low Lunge","height":73});
															thumbnails[6572784] = clik.newPhoto({"id":6572784,"src":"Laughter_Yoga_Article_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Featured in the London Paper October 2009","height":77});
															thumbnails[7221464] = clik.newPhoto({"id":7221464,"src":"03-Paradise20Bay20in20the20morning_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"I'm ready to book my yoga holiday to Turkey!","height":96});
															thumbnails[7221467] = clik.newPhoto({"id":7221467,"src":"08-Crystal20blue20waters_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"turquoise sea","height":97});
															thumbnails[7224271] = clik.newPhoto({"id":7224271,"src":"Paradise-Bay-Bodrum_overvie_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Bay","height":98});
															thumbnails[7224277] = clik.newPhoto({"id":7224277,"src":"03-Paradise20Bay20in20the20morning_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"paradise bay 450","height":96});
															thumbnails[7224307] = clik.newPhoto({"id":7224307,"src":"yoga-Turkey-large-view2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7224348] = clik.newPhoto({"id":7224348,"src":"06-Pool20with20garden20view_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7224349] = clik.newPhoto({"id":7224349,"src":"03-Breakfast20at20Atami20Hotel_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":173});
															thumbnails[7224484] = clik.newPhoto({"id":7224484,"src":"Bodrum-Turkey_map_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"bodrum map","height":93});
															thumbnails[7224598] = clik.newPhoto({"id":7224598,"src":"Standard20Room-balcony_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"standard balcony","height":173});
															thumbnails[7224627] = clik.newPhoto({"id":7224627,"src":"Deluxe20Room-20bathroom_210_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"delux bath","height":100});
															thumbnails[7224632] = clik.newPhoto({"id":7224632,"src":"Deluxe20Room-20balcony_210_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"delux balcony","height":85});
															thumbnails[7224633] = clik.newPhoto({"id":7224633,"src":"Deluxe20Room_210_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"delux rm 210","height":90});
															thumbnails[7224680] = clik.newPhoto({"id":7224680,"src":"Standard20Room-1_210_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"standard rm ","height":97});
															thumbnails[7224682] = clik.newPhoto({"id":7224682,"src":"Standard20Room-balcony_210_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"standard balcony","height":174});
															thumbnails[7224692] = clik.newPhoto({"id":7224692,"src":"Standard20Room-2_210_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"standard rm 2","height":97});
															thumbnails[7224703] = clik.newPhoto({"id":7224703,"src":"Standard20Room-bathroom_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"standard shower","height":114});
															thumbnails[7224724] = clik.newPhoto({"id":7224724,"src":"Deluxe20Room-20balcony_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"delux balcony sm","height":85});
															thumbnails[7224725] = clik.newPhoto({"id":7224725,"src":"Deluxe20Room_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"delux rm sm","height":90});
															thumbnails[7224728] = clik.newPhoto({"id":7224728,"src":"Deluxe20Room-20bathroom_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"delux ","height":100});
															thumbnails[7224730] = clik.newPhoto({"id":7224730,"src":"Deluxe20Room-20bathroom_sm1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"delux ","height":100});
															thumbnails[7225167] = clik.newPhoto({"id":7225167,"src":"01-Yoga20and20meditation20by20the20poolside_333_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"yoga atami","height":98});
															thumbnails[7288537] = clik.newPhoto({"id":7288537,"src":"bedroom1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7288539] = clik.newPhoto({"id":7288539,"src":"abruzzo_countryside1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7288555] = clik.newPhoto({"id":7288555,"src":"bedroom2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7288558] = clik.newPhoto({"id":7288558,"src":"decking_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7288559] = clik.newPhoto({"id":7288559,"src":"pool_yoga_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7288561] = clik.newPhoto({"id":7288561,"src":"yoga_terrace1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7311586] = clik.newPhoto({"id":7311586,"src":"map_thumb.gif","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7371625] = clik.newPhoto({"id":7371625,"src":"Morpho_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7371750] = clik.newPhoto({"id":7371750,"src":"sunrise_koh_ra_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7512190] = clik.newPhoto({"id":7512190,"src":"purple_meditation_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7512753] = clik.newPhoto({"id":7512753,"src":"GrenadineLodgeSuiteM_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7512754] = clik.newPhoto({"id":7512754,"src":"GrenadneLodgeStandartOda_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7512791] = clik.newPhoto({"id":7512791,"src":"pool-again_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7512828] = clik.newPhoto({"id":7512828,"src":"location_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":62});
															thumbnails[7512831] = clik.newPhoto({"id":7512831,"src":"Dalyan-Beach_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[7512833] = clik.newPhoto({"id":7512833,"src":"Iztutu_beach_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":84});
															thumbnails[7512838] = clik.newPhoto({"id":7512838,"src":"market_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[7512893] = clik.newPhoto({"id":7512893,"src":"pool1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7512897] = clik.newPhoto({"id":7512897,"src":"the-yoga-space1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7512905] = clik.newPhoto({"id":7512905,"src":"loggerhead1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[7512923] = clik.newPhoto({"id":7512923,"src":"Iztuzu-Turtle-beach-21_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7513163] = clik.newPhoto({"id":7513163,"src":"loggerhead_s_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6515611] = clik.newPhoto({"id":6515611,"src":"Tadasana_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Tadasana - Mountain pose","height":73});
															thumbnails[2425486] = clik.newPhoto({"id":2425486,"src":"down dog_thumb.jpg","galleries_id":211952,"server_id":5,"link":"photo_2425486.html","width":130,"caption":"What's it about?","height":87});
															thumbnails[2425497] = clik.newPhoto({"id":2425497,"src":"gina waterfall biz card 250_thumb.jpg","galleries_id":211958,"server_id":5,"link":"photo_2425497.html","width":130,"caption":"Find your inner silence","height":222});
															thumbnails[2425501] = clik.newPhoto({"id":2425501,"src":"yogamat_thumb.jpg","galleries_id":156776,"server_id":5,"link":"photo_2425501.html","width":130,"caption":"Yoga Mad Warrior Mat","height":130});
															thumbnails[2425643] = clik.newPhoto({"id":2425643,"src":"yoga mat bags_thumb.jpg","galleries_id":156776,"server_id":5,"link":"photo_2425643.html","width":130,"caption":"Fair Trade Yoga Mat Bags  ","height":131});
															thumbnails[2425683] = clik.newPhoto({"id":2425683,"src":"thai foot massage1_thumb.jpg","galleries_id":156584,"server_id":5,"link":"photo_2425683.html","width":130,"caption":"How does Thai Foot Massage work?","height":98});
															thumbnails[2425736] = clik.newPhoto({"id":2425736,"src":"yinyang_thumb.jpg","galleries_id":211957,"server_id":5,"link":"photo_2425736.html","width":130,"caption":"What is Yin Yoga?","height":130});
															thumbnails[2425751] = clik.newPhoto({"id":2425751,"src":"testy1_thumb.jpg","galleries_id":167721,"server_id":5,"link":"photo_2425751.html","width":130,"caption":"How does Indian Head Massage work? ","height":109});
															thumbnails[2425770] = clik.newPhoto({"id":2425770,"src":"testy6_thumb.jpg","galleries_id":211956,"server_id":5,"link":"photo_2425770.html","width":130,"caption":"Relax & Rejuvenate Yourself","height":109});
															thumbnails[2437157] = clik.newPhoto({"id":2437157,"src":"hemp 840_thumb.jpg","galleries_id":156776,"server_id":5,"link":"photo_2437157.html","width":130,"caption":"Organic Hemp Accesories ","height":98});
															thumbnails[2437180] = clik.newPhoto({"id":2437180,"src":"gina photo_thumb.jpg","galleries_id":157270,"server_id":5,"link":"photo_2437180.html","width":130,"caption":"A little bit about me","height":156});
															thumbnails[2438009] = clik.newPhoto({"id":2438009,"src":"testy3_thumb.jpg","galleries_id":466901,"server_id":5,"link":"photo_2438009.html","width":130,"caption":"Click here to find out more.","height":109});
															thumbnails[2438111] = clik.newPhoto({"id":2438111,"src":"tibetan incense_thumb.jpg","galleries_id":156776,"server_id":5,"link":"photo_2438111.html","width":130,"caption":"Tibetan Incense","height":76});
															thumbnails[2438136] = clik.newPhoto({"id":2438136,"src":"gift certificate_thumb.jpg","galleries_id":156776,"server_id":5,"link":"photo_2438136.html","width":130,"caption":"Gift Certificate","height":130});
															thumbnails[2438169] = clik.newPhoto({"id":2438169,"src":"testy4_thumb.jpg","galleries_id":214154,"server_id":5,"link":"photo_2438169.html","width":130,"caption":"Private 1-to-1 Yoga Sessions","height":109});
															thumbnails[2440729] = clik.newPhoto({"id":2440729,"src":"testy_thumb.jpg","galleries_id":232499,"server_id":5,"link":"photo_2440729.html","width":130,"caption":"Bringing benefits of Yoga into the Workplace","height":109});
															thumbnails[2649960] = clik.newPhoto({"id":2649960,"src":"andaman beach_thumb.jpg","galleries_id":167852,"server_id":5,"link":"photo_2649960.html","width":130,"caption":"My favorite beach<br>\r\n","height":98});
															thumbnails[2649995] = clik.newPhoto({"id":2649995,"src":"boudhanath and prayer flags_thumb.jpg","galleries_id":167852,"server_id":5,"link":"photo_2649995.html","width":130,"caption":"Kathmandu, Nepal","height":98});
															thumbnails[2650080] = clik.newPhoto({"id":2650080,"src":"Bodhi Tree_thumb.jpg","galleries_id":167852,"server_id":5,"link":"photo_2650080.html","width":130,"caption":"The Bodhi Tree","height":98});
															thumbnails[2650099] = clik.newPhoto({"id":2650099,"src":"Dyes_thumb.jpg","galleries_id":167852,"server_id":5,"link":"photo_2650099.html","width":130,"caption":"Market stall","height":98});
															thumbnails[3467607] = clik.newPhoto({"id":3467607,"src":"ryt 500_thumb.jpg","galleries_id":157270,"server_id":5,"link":"photo_3467607.html","width":130,"caption":"Yoga Alliance ","height":118});
															thumbnails[3478826] = clik.newPhoto({"id":3478826,"src":"IMG_19441_thumb.JPG","galleries_id":167852,"server_id":5,"link":"photo_3478826.html","width":130,"caption":"My snowboard","height":98});
															thumbnails[7031254] = clik.newPhoto({"id":7031254,"src":"mini1_thumb.jpg","galleries_id":380677,"server_id":5,"link":"photo_7031254.html","width":130,"caption":"Relieve Pain, Restore Balance & Energy","height":85});
															thumbnails[8576178] = clik.newPhoto({"id":8576178,"src":"candle_sukhasana_thumb.jpg","galleries_id":453353,"server_id":5,"link":"photo_8576178.html","width":130,"caption":"Candlelight Yoga","height":74});
															thumbnails[2426222] = clik.newPhoto({"id":2426222,"src":"namaste_thumb.jpg","galleries_id":211961,"server_id":5,"link":"photo_2426222.html","width":130,"caption":"Laughter Yoga is Fun & Good for Your Health!","height":97});
															thumbnails[7341759] = clik.newPhoto({"id":7341759,"src":"Laughter_Yoga_Newspaper_Article_thumb.jpg","galleries_id":211961,"server_id":5,"link":"photo_7341759.html","width":130,"caption":"Featured in the London Paper October 2009","height":95});
															thumbnails[5042426] = clik.newPhoto({"id":5042426,"src":"metro_article_2000_thumb.jpg","galleries_id":211961,"server_id":5,"link":"photo_5042426.html","width":130,"caption":"Featured in the Metro Sao Paulo paper October 2009","height":120});
															thumbnails[6521372] = clik.newPhoto({"id":6521372,"src":"Sukhasana_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521372.html","width":130,"caption":"1. Centering","height":73});
															thumbnails[6521449] = clik.newPhoto({"id":6521449,"src":"Hands_by_your_sides_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521449.html","width":130,"caption":"2. Hands by your side","height":73});
															thumbnails[6521450] = clik.newPhoto({"id":6521450,"src":"Raise_your_arms_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521450.html","width":130,"caption":"3. Raise your arms ","height":73});
															thumbnails[6521456] = clik.newPhoto({"id":6521456,"src":"Arms_over_your_head_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521456.html","width":130,"caption":"4. Arms over your head","height":72});
															thumbnails[6521461] = clik.newPhoto({"id":6521461,"src":"Interlock_fingers_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521461.html","width":130,"caption":"5. Interlock fingers","height":72});
															thumbnails[6521464] = clik.newPhoto({"id":6521464,"src":"Round_your_back_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521464.html","width":130,"caption":"6. Round your back","height":73});
															thumbnails[6521466] = clik.newPhoto({"id":6521466,"src":"Release_your_palms_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521466.html","width":130,"caption":"7. Release your palms","height":74});
															thumbnails[6521470] = clik.newPhoto({"id":6521470,"src":"Interlock_fingers_behind_your_back_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521470.html","width":130,"caption":"8. Interlock fingers behind your back","height":72});
															thumbnails[6521473] = clik.newPhoto({"id":6521473,"src":"Hands_by_your_sides1_thumb.jpg","galleries_id":358714,"server_id":5,"link":"photo_6521473.html","width":130,"caption":"9. Return back to centre","height":73});
															thumbnails[7288535] = clik.newPhoto({"id":7288535,"src":"valley_thumb.jpg","galleries_id":395968,"server_id":5,"link":"photo_7288535.html","width":130,"caption":"I'm ready to book my Yoga Holiday in Italy!","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[358714] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Spine warming breath","link":"section427157.html","maxRecords":0.0,"photoIDs":[6521372.0,6521449.0,6521450.0,6521456.0,6521461.0,6521464.0,6521466.0,6521470.0,6521473.0],"skipIndex":0,"section_code":"section427157","featured_images":"6521449,6521372","id":358714,"singleSection":true});				  						galleries[466901] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yoga CD","link":"gallery_466901.html","maxRecords":0.0,"photoIDs":[2438009.0],"skipIndex":0,"section_code":"gallery","featured_images":2438009,"id":466901,"singleSection":false});				  						galleries[157270] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gina ","link":"gallery_157270.html","maxRecords":0.0,"photoIDs":[2437180.0,3467607.0],"skipIndex":0,"section_code":"gallery","featured_images":2437180.0,"id":157270,"singleSection":false});				  						galleries[395968] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yoga Holiday in Italy","link":"section305036.html","maxRecords":0.0,"photoIDs":[7288535.0],"skipIndex":0,"section_code":"section305036","featured_images":7288535.0,"id":395968,"singleSection":true});				  						galleries[211952] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hatha Yoga","link":"gallery_211952.html","maxRecords":0.0,"photoIDs":[2425486.0],"skipIndex":0,"section_code":"gallery","featured_images":2425486.0,"id":211952,"singleSection":false});				  						galleries[453353] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Candlelight Yoga","link":"gallery_453353.html","maxRecords":0.0,"photoIDs":[8576178.0],"skipIndex":0,"section_code":"gallery","featured_images":8576178.0,"id":453353,"singleSection":false});				  						galleries[211957] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yin Yoga","link":"gallery_211957.html","maxRecords":0.0,"photoIDs":[2425736.0],"skipIndex":0,"section_code":"gallery","featured_images":2425736.0,"id":211957,"singleSection":false});				  						galleries[211956] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Restorative Yoga","link":"gallery_211956.html","maxRecords":0.0,"photoIDs":[2425770.0],"skipIndex":0,"section_code":"gallery","featured_images":2425770.0,"id":211956,"singleSection":false});				  						galleries[214154] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Private 1-to-1 Yoga Sessions","link":"gallery_214154.html","maxRecords":0.0,"photoIDs":[2438169.0],"skipIndex":0,"section_code":"gallery","featured_images":2438169.0,"id":214154,"singleSection":false});				  						galleries[232499] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Workplace Yoga","link":"gallery_232499.html","maxRecords":0.0,"photoIDs":[2440729.0],"skipIndex":0,"section_code":"gallery","featured_images":2440729.0,"id":232499,"singleSection":false});				  						galleries[211961] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Laughter Yoga","link":"gallery_211961.html","maxRecords":0.0,"photoIDs":[2426222.0,7341759.0,5042426.0],"skipIndex":0,"section_code":"gallery","featured_images":2426222.0,"id":211961,"singleSection":false});				  						galleries[211958] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Meditation","link":"gallery_211958.html","maxRecords":0.0,"photoIDs":[2425497.0],"skipIndex":0,"section_code":"gallery","featured_images":2425497.0,"id":211958,"singleSection":false});				  						galleries[167721] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Indian Head Massage","link":"gallery_167721.html","maxRecords":0.0,"photoIDs":[2425751.0],"skipIndex":0,"section_code":"gallery","featured_images":2425751.0,"id":167721,"singleSection":false});				  						galleries[156584] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Thai Foot Massage","link":"gallery_156584.html","maxRecords":0.0,"photoIDs":[2425683.0],"skipIndex":0,"section_code":"gallery","featured_images":2425683.0,"id":156584,"singleSection":false});				  						galleries[167852] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gina's travel pics","link":"gallery_167852.html","maxRecords":0.0,"photoIDs":[2649960.0,2649995.0,2650080.0,2650099.0,3478826.0],"skipIndex":0,"section_code":"gallery","featured_images":"3478826,2650099,2650080,2649995,2649960","id":167852,"singleSection":false});				  						galleries[380677] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Negative-ion and Far Infra-Red Amethyst Bio-Mat","link":"gallery_380677.html","maxRecords":0.0,"photoIDs":[7031254.0],"skipIndex":0,"section_code":"gallery","featured_images":7031254.0,"id":380677,"singleSection":false});				  						galleries[156776] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yoga Shop ","link":"gallery_156776.html","maxRecords":0.0,"photoIDs":[2425501.0,2425643.0,2437157.0,2438111.0,2438136.0],"skipIndex":0,"section_code":"gallery","featured_images":2425643.0,"id":156776,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4264294,4218518,3815685,2649995,2649960,2438002,2425497,2425486';
imageSets[2] = '2437180,2425770,2425643,6521372,2426222,6521449';
imageSets[3] = '8576178,7513163,7512923,7512905,7512897,7512893,7512838,7512833,7512831,7512828,7512791,7512754,7512753,7512190,7371750,7371625,7341759,7311586,7288561,7288559,7288558,7288555,7288539,7288537,7288535,7225167,7224730,7224728,7224725,7224724,7224703,7224692,7224682,7224680,7224633,7224632,7224627,7224598,7224484,7224349,7224348,7224307,7224277,7224271,7221467,7221464,7031254,6572784,6521473,6521470';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/pureyogabliss/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/pureyogabliss/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 = 'PURE YOGA BLISS | PRIVATE 1-TO-1 | RESTORATIVE: ' + 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>Where: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>When: </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 now using Paypal</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="pureyogabliss@gmail.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="pureyogabliss@gmail.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;
	}
}

			

