window.thumbnails = new Object();
												thumbnails[3402549] = new thumbnail(3402549,'207839','Oumar with two of the children','Boysandbogolan2_thumb.jpeg',130, 97,15,'																			photo_3402549.html');
												thumbnails[3402712] = new thumbnail(3402712,'207839','Completed bogolan items','Bogolanexamples_thumb.jpg',130, 97,15,'																			photo_3402712.html');
												thumbnails[3402724] = new thumbnail(3402724,'207839','Items for sale','Bogolanonline2_thumb.jpg',130, 97,15,'																			photo_3402724.html');
												thumbnails[3402731] = new thumbnail(3402731,'207839','Finished items','Dress_thumb.jpg',130, 97,15,'																			photo_3402731.html');
												thumbnails[3402736] = new thumbnail(3402736,'207839','Appying mud to the cloth','Boybogolan_thumb.jpg',130, 97,15,'																			photo_3402736.html');
												thumbnails[3402742] = new thumbnail(3402742,'207839','Bassidy with two young artists','Courtyard1_thumb.jpg',130, 97,15,'																			photo_3402742.html');
												thumbnails[3402747] = new thumbnail(3402747,'207839','Tim under instruction','Timandboyswithbogolan_thumb.jpg',130, 97,15,'																			photo_3402747.html');
												thumbnails[3402758] = new thumbnail(3402758,'207839','Mud drying on the cloth','bogolandrying_thumb.jpg',130, 174,15,'																			photo_3402758.html');
												thumbnails[3403002] = new thumbnail(3403002,'207839','Raw cotton and fabric and treated fabric.','Cottoncloth_thumb.jpg',130, 97,15,'																			photo_3403002.html');
												thumbnails[3403045] = new thumbnail(3403045,'207839','Bassidy teaching Tim how to rub the dried mud off.','Rubbingoffclay1_thumb.jpg',130, 97,15,'																			photo_3403045.html');
												thumbnails[3403046] = new thumbnail(3403046,'207839','Dipping cloth in the fixative.','bogolandye_thumb.jpg',130, 174,15,'																			photo_3403046.html');
												thumbnails[3403048] = new thumbnail(3403048,'207839','Cooking up the fixative.','bogolanleavesboiling_thumb.jpg',130, 97,15,'																			photo_3403048.html');
												thumbnails[3403049] = new thumbnail(3403049,'207839','Bassidy with a local taylor','Tailor_thumb.jpg',130, 174,15,'																			photo_3403049.html');
												thumbnails[3403101] = new thumbnail(3403101,'207870','','art1_thumb.jpg',130, 226,15,'																			photo_3403101.html');
												thumbnails[3403728] = new thumbnail(3403728,'207839','Kader Keita','kaderandcotton_thumb.jpg',130, 97,15,'																			photo_3403728.html');
												thumbnails[3403731] = new thumbnail(3403731,'207839','The Footprints of Children with Noma','footprint_thumb.jpg',130, 91,15,'																			photo_3403731.html');
												thumbnails[3403735] = new thumbnail(3403735,'207870','','art2_thumb.jpg',130, 174,15,'																			photo_3403735.html');
												thumbnails[3403736] = new thumbnail(3403736,'207870','','art3_thumb.jpg',130, 174,15,'																			photo_3403736.html');
												thumbnails[3403737] = new thumbnail(3403737,'207870','','art4_thumb.jpg',130, 180,15,'																			photo_3403737.html');
												thumbnails[3403738] = new thumbnail(3403738,'207870','','art5_thumb.jpg',130, 269,15,'																			photo_3403738.html');
												thumbnails[3403816] = new thumbnail(3403816,'207870','','art6_thumb.jpeg',130, 185,15,'																			photo_3403816.html');
												thumbnails[3403817] = new thumbnail(3403817,'207870','','art7_thumb.jpeg',130, 206,15,'																			photo_3403817.html');
												thumbnails[3403818] = new thumbnail(3403818,'207870','','art8_thumb.jpeg',130, 96,15,'																			photo_3403818.html');
												thumbnails[3403821] = new thumbnail(3403821,'207870','','art9_thumb.jpeg',130, 169,15,'																			photo_3403821.html');
												thumbnails[3403822] = new thumbnail(3403822,'207870','','art10_thumb.jpeg',130, 246,15,'																			photo_3403822.html');
												thumbnails[3403823] = new thumbnail(3403823,'207839','Dra and Papou stitching bogolan cloth','boysewing_thumb.jpeg',130, 97,15,'																			photo_3403823.html');
												thumbnails[3403826] = new thumbnail(3403826,'207839','The Team and some bogolan artists ','group1_thumb.jpeg',130, 97,15,'																			photo_3403826.html');
												thumbnails[3403828] = new thumbnail(3403828,'207839','The Team. Oumar, Kader, Awa, Amy and Bassidy, with little Sidi, Kader and Awa\'s baby.','group2_thumb.jpeg',130, 97,15,'																			photo_3403828.html');
												thumbnails[3403829] = new thumbnail(3403829,'207839','Kader, Awa, Sidi and Amy, in the courtyard outside their home.','group3_thumb.jpeg',130, 174,15,'																			photo_3403829.html');
												thumbnails[3407588] = new thumbnail(3407588,'207870','','Kader1_thumb.jpg',130, 190,15,'																			photo_3407588.html');
												thumbnails[3407590] = new thumbnail(3407590,'207870','','Kader12_thumb.jpg',130, 196,15,'																			photo_3407590.html');
												thumbnails[3407593] = new thumbnail(3407593,'207840','','streetchildren1_thumb.jpg',130, 97,15,'																			photo_3407593.html');
												thumbnails[3407598] = new thumbnail(3407598,'207840','','DSCN5443_thumb.jpg',130, 97,15,'																			photo_3407598.html');
												thumbnails[3407599] = new thumbnail(3407599,'207840','','DSCN5448_thumb.jpg',130, 174,15,'																			photo_3407599.html');
												thumbnails[3407602] = new thumbnail(3407602,'207840','','DSCN5453_thumb.jpg',130, 97,15,'																			photo_3407602.html');
												thumbnails[3407606] = new thumbnail(3407606,'207840','','DSCN5459_thumb.jpg',130, 97,15,'																			photo_3407606.html');
												thumbnails[3407607] = new thumbnail(3407607,'207840','','DSCN5461_thumb.jpg',130, 97,15,'																			photo_3407607.html');
												thumbnails[3407614] = new thumbnail(3407614,'207870','','Kader13_thumb.jpg',130, 188,15,'																			photo_3407614.html');
												thumbnails[3407616] = new thumbnail(3407616,'207870','','Kader19_thumb.jpg',130, 192,15,'																			photo_3407616.html');
												thumbnails[3407619] = new thumbnail(3407619,'207870','','Kader20_thumb.jpg',130, 193,15,'																			photo_3407619.html');
												thumbnails[3458562] = new thumbnail(3458562,'207839','Oumar brings school work for Bassidy to check','Boy and bogolan_thumb.jpg',130, 97,15,'																			photo_3458562.html');
												thumbnails[3458564] = new thumbnail(3458564,'207839','Dra at work','Boy doing stencil_thumb.jpg',130, 174,15,'																			photo_3458564.html');
												thumbnails[3458565] = new thumbnail(3458565,'207839','Work in progress','Boy doing stencil 2_thumb.jpg',130, 97,15,'																			photo_3458565.html');
												thumbnails[3458566] = new thumbnail(3458566,'207839','Dra serves tea for all.','Boys and tea_thumb.jpg',130, 97,15,'																			photo_3458566.html');
												thumbnails[3458568] = new thumbnail(3458568,'207839','Dra and Papou at work','Boys doing stencil 3_thumb.jpg',130, 174,15,'																			photo_3458568.html');
												thumbnails[3458571] = new thumbnail(3458571,'207840','Cattle market','Cattle Mkt 2_thumb.jpg',130, 174,15,'																			photo_3458571.html');
												thumbnails[3458582] = new thumbnail(3458582,'207839','Kader and Tim eating crickets','Kader and Tim meal_thumb.jpg',130, 97,15,'																			photo_3458582.html');
												thumbnails[3458583] = new thumbnail(3458583,'207839','Amy, who cooks for the children','Lovely lady_thumb.jpg',130, 174,15,'																			photo_3458583.html');
												thumbnails[3458585] = new thumbnail(3458585,'207839','Bassidy with fixed texile and raw cotton','Man and cloth_thumb.jpg',130, 97,15,'																			photo_3458585.html');
												thumbnails[3458586] = new thumbnail(3458586,'207839','Examples of recent work','Map bogolan_thumb.jpg',130, 97,15,'																			photo_3458586.html');
												thumbnails[3458590] = new thumbnail(3458590,'207839','Dra, with Oumar Papou and Bassidy','Pension_thumb.jpg',130, 97,15,'																			photo_3458590.html');
												thumbnails[3458604] = new thumbnail(3458604,'207839','Bassidy removes a stencil','Stencil_thumb.jpg',130, 174,15,'																			photo_3458604.html');
												thumbnails[3458606] = new thumbnail(3458606,'207839','The street after washing time','Street_thumb.jpg',130, 97,15,'																			photo_3458606.html');
												thumbnails[3458813] = new thumbnail(3458813,'207839','Kader feeds children at night','DSCN54532_thumb.jpg',130, 97,15,'																			photo_3458813.html');
												thumbnails[3463478] = new thumbnail(3463478,'207839','A Hand print shirt.','Hand shirt_thumb.jpg',130, 87,15,'																			photo_3463478.html');
												thumbnails[3510720] = new thumbnail(3510720,'207839','Artist at work','DSCN5556_thumb.jpg',130, 97,15,'																			photo_3510720.html');
												thumbnails[3510739] = new thumbnail(3510739,'207839','Finished design','Picture 003_thumb.jpg',130, 87,15,'																			photo_3510739.html');
												thumbnails[3511067] = new thumbnail(3511067,'207839','Papou and Dra','DSCN5266_thumb.jpg',130, 97,15,'																			photo_3511067.html');
												thumbnails[3511070] = new thumbnail(3511070,'207839','Concentration.','DSCN5267_thumb.jpg',130, 174,15,'																			photo_3511070.html');
												thumbnails[3511079] = new thumbnail(3511079,'207839','Textile drying in the street','DSCN5277_thumb.jpg',130, 174,15,'																			photo_3511079.html');
												thumbnails[3511083] = new thumbnail(3511083,'207839','Dra, brews up some Mali tea','DSCN5283_thumb.jpg',130, 174,15,'																			photo_3511083.html');
												thumbnails[3511094] = new thumbnail(3511094,'207839','Playtime outside the Assn.','DSCN52972_thumb.jpg',130, 174,15,'																			photo_3511094.html');
												thumbnails[3511098] = new thumbnail(3511098,'207839','Oumar and Bassidy with two young students','DSCN5302_thumb.jpg',130, 97,15,'																			photo_3511098.html');
												thumbnails[3511102] = new thumbnail(3511102,'207839','The Association left on the stret','DSCN5314_thumb.jpg',130, 97,15,'																			photo_3511102.html');
												thumbnails[3511109] = new thumbnail(3511109,'207839','Preparing the fixative','DSCN53741_thumb.jpg',130, 97,15,'																			photo_3511109.html');
												thumbnails[3511115] = new thumbnail(3511115,'207839','Association Office','DSCN5398_thumb.jpg',130, 174,15,'																			photo_3511115.html');
												thumbnails[3511118] = new thumbnail(3511118,'207840','Children give Tim a \'begging tin\'','DSCN5450_thumb.jpg',130, 97,15,'																			photo_3511118.html');
												thumbnails[3511125] = new thumbnail(3511125,'207840','Hungry children with Tim','DSCN5452_thumb.jpg',130, 97,15,'																			photo_3511125.html');
												thumbnails[3511127] = new thumbnail(3511127,'207840','Kader feeds children on the street','DSCN5454_thumb.jpg',130, 97,15,'																			photo_3511127.html');
												thumbnails[3511136] = new thumbnail(3511136,'207840','Kader and his ex-student','DSCN54592_thumb.jpg',130, 97,15,'																			photo_3511136.html');
												thumbnails[3511139] = new thumbnail(3511139,'207840','City centre for homless','DSCN54611_thumb.jpg',130, 97,15,'																			photo_3511139.html');
												thumbnails[3511141] = new thumbnail(3511141,'207840','Lafiabougou football ground','DSCN5465_thumb.jpg',130, 97,15,'																			photo_3511141.html');
												thumbnails[3511191] = new thumbnail(3511191,'207840','A street cattle market','DSCN54701_thumb.jpg',130, 97,15,'																			photo_3511191.html');
												thumbnails[3511194] = new thumbnail(3511194,'207840','Walking into Bamako','DSCN54731_thumb.jpg',130, 174,15,'																			photo_3511194.html');
												thumbnails[3511199] = new thumbnail(3511199,'207839',' A student being supervised','DSCN55282_thumb.jpg',130, 97,15,'																			photo_3511199.html');
												thumbnails[3511201] = new thumbnail(3511201,'207839','Kader speaks with parents','DSCN55341_thumb.jpg',130, 97,15,'																			photo_3511201.html');
												thumbnails[3533454] = new thumbnail(3533454,'207839','Bogolan shopping bag','kader_bags_1_thumb.jpg',130, 173,15,'																			photo_3533454.html');
												thumbnails[3533458] = new thumbnail(3533458,'207839','','kader_bags_2_thumb.jpg',130, 98,15,'																			photo_3533458.html');
												thumbnails[3533465] = new thumbnail(3533465,'207839','Kader teaching','kader_bags_3_thumb.jpg',130, 98,15,'																			photo_3533465.html');
												thumbnails[3533475] = new thumbnail(3533475,'207870','Kader Keita','KaderHome_thumb.jpg',130, 181,15,'																			photo_3533475.html');
												thumbnails[3533883] = new thumbnail(3533883,'207839','','DSCN55561_thumb.jpg',130, 97,15,'																			photo_3533883.html');
												thumbnails[5368740] = new thumbnail(5368740,'207839','Kadet and Awa at graduation','Kader_and_Awajpg2_thumb.jpg',130, 95,15,'																			photo_5368740.html');
												thumbnails[7385478] = new thumbnail(7385478,'399844','','Bogalon_Preview01_thumb.jpg',130, 196,15,'																			photo_7385478.html');
												thumbnails[7385480] = new thumbnail(7385480,'399844','Pancho ','Bogalon_Preview02_thumb.jpg',130, 196,15,'																			photo_7385480.html');
												thumbnails[7385601] = new thumbnail(7385601,'399844','','Bogalon_Preview11_thumb.jpg',130, 196,15,'																			photo_7385601.html');
												thumbnails[7385602] = new thumbnail(7385602,'399844','','Bogalon_Preview10_thumb.jpg',130, 196,15,'																			photo_7385602.html');
												thumbnails[7385604] = new thumbnail(7385604,'399844','','Bogalon_Preview08_thumb.jpg',130, 86,15,'																			photo_7385604.html');
												thumbnails[7385605] = new thumbnail(7385605,'399844','','Bogalon_Preview07_thumb.jpg',130, 196,15,'																			photo_7385605.html');
												thumbnails[7385607] = new thumbnail(7385607,'399844','','Bogalon_Preview06_thumb.jpg',130, 86,15,'																			photo_7385607.html');
												thumbnails[7385609] = new thumbnail(7385609,'399844','','Bogalon_Preview12_thumb.jpg',130, 196,15,'																			photo_7385609.html');
												thumbnails[7385615] = new thumbnail(7385615,'399844','','Bogalon_Preview15_thumb.jpg',130, 196,15,'																			photo_7385615.html');
												thumbnails[7385622] = new thumbnail(7385622,'399844','','Bogalon_Preview16_thumb.jpg',130, 196,15,'																			photo_7385622.html');
												thumbnails[7385625] = new thumbnail(7385625,'399844','','Bogalon_Preview17_thumb.jpg',130, 86,15,'																			photo_7385625.html');
												thumbnails[7385627] = new thumbnail(7385627,'399844','','Bogalon_Preview18_thumb.jpg',130, 86,15,'																			photo_7385627.html');
												thumbnails[7385630] = new thumbnail(7385630,'399844','','Bogalon_Preview20_thumb.jpg',130, 88,15,'																			photo_7385630.html');
												thumbnails[7385631] = new thumbnail(7385631,'399844','','Bogalon_Preview26_thumb.jpg',130, 86,15,'																			photo_7385631.html');
												thumbnails[7385633] = new thumbnail(7385633,'399844','','Bogalon_Preview30_thumb.jpg',130, 196,15,'																			photo_7385633.html');
												thumbnails[7385634] = new thumbnail(7385634,'399844','','Bogalon_Preview42_thumb.jpg',130, 86,15,'																			photo_7385634.html');
												thumbnails[7385713] = new thumbnail(7385713,'399844','','IMG_0909_thumb.JPG',130, 222,15,'																			photo_7385713.html');
												thumbnails[7385715] = new thumbnail(7385715,'399844','','IMG_0910_thumb.JPG',130, 160,15,'																			photo_7385715.html');
												thumbnails[7385716] = new thumbnail(7385716,'399844','','IMG_0908_thumb.JPG',130, 205,15,'																			photo_7385716.html');
												thumbnails[7385717] = new thumbnail(7385717,'399844','','IMG_0912_thumb.JPG',130, 210,15,'																			photo_7385717.html');
												thumbnails[7385719] = new thumbnail(7385719,'399844','','IMG_0914_thumb.JPG',130, 257,15,'																			photo_7385719.html');
												thumbnails[7385721] = new thumbnail(7385721,'399844','','IMG_0915_thumb.JPG',130, 193,15,'																			photo_7385721.html');
												thumbnails[7385728] = new thumbnail(7385728,'399844','','IMG_0917_thumb.JPG',130, 80,15,'																			photo_7385728.html');
												thumbnails[7385730] = new thumbnail(7385730,'399844','','IMG_0919_thumb.JPG',130, 238,15,'																			photo_7385730.html');
												thumbnails[7385732] = new thumbnail(7385732,'399844','','IMG_0920_thumb.JPG',130, 228,15,'																			photo_7385732.html');
												thumbnails[7385734] = new thumbnail(7385734,'399844','','IMG_0921_thumb.JPG',130, 203,15,'																			photo_7385734.html');
												thumbnails[7385735] = new thumbnail(7385735,'399844','','IMG_0922_thumb.JPG',130, 159,15,'																			photo_7385735.html');
												thumbnails[7385737] = new thumbnail(7385737,'399844','','IMG_0923_thumb.JPG',130, 98,15,'																			photo_7385737.html');
												thumbnails[7385740] = new thumbnail(7385740,'399844','','IMG_0924_thumb.JPG',130, 215,15,'																			photo_7385740.html');
												thumbnails[7385742] = new thumbnail(7385742,'399844','','IMG_0925_thumb.JPG',130, 165,15,'																			photo_7385742.html');
												thumbnails[7385743] = new thumbnail(7385743,'399844','','IMG_0926_thumb.JPG',130, 147,15,'																			photo_7385743.html');
												thumbnails[7385746] = new thumbnail(7385746,'399844','','IMG_0927_thumb.JPG',130, 172,15,'																			photo_7385746.html');
												thumbnails[7385747] = new thumbnail(7385747,'399844','','IMG_0928_thumb.JPG',130, 208,15,'																			photo_7385747.html');
												thumbnails[7385757] = new thumbnail(7385757,'399844','','IMG_0929_thumb.JPG',130, 218,15,'																			photo_7385757.html');
												thumbnails[7385758] = new thumbnail(7385758,'399844','','IMG_0931_thumb.JPG',130, 187,15,'																			photo_7385758.html');
												thumbnails[7409855] = new thumbnail(7409855,'401401','','jan2011__009_thumb.jpg',130, 98,15,'																			photo_7409855.html');
												thumbnails[7409857] = new thumbnail(7409857,'401401','','Class_of_jan2011__004_thumb.jpg',130, 98,15,'																			photo_7409857.html');
												thumbnails[7409858] = new thumbnail(7409858,'401401','','jan2011__005_thumb.jpg',130, 98,15,'																			photo_7409858.html');
												thumbnails[7409859] = new thumbnail(7409859,'401401','','jan2011__006_thumb.jpg',130, 98,15,'																			photo_7409859.html');
												thumbnails[7409860] = new thumbnail(7409860,'401401','','jan2011__0024_thumb.jpg',130, 98,15,'																			photo_7409860.html');
												thumbnails[7409989] = new thumbnail(7409989,'401401','','Formation_bogolan_027_thumb.jpg',130, 98,15,'																			photo_7409989.html');
												thumbnails[7409991] = new thumbnail(7409991,'401401','','Formation_bogolan_032_thumb.jpg',130, 98,15,'																			photo_7409991.html');
												thumbnails[7409993] = new thumbnail(7409993,'401401','','Formation_bogolan_034_thumb.jpg',130, 98,15,'																			photo_7409993.html');
												thumbnails[7409995] = new thumbnail(7409995,'401401','','Formation_bogolan_037_thumb.jpg',130, 98,15,'																			photo_7409995.html');
												thumbnails[7409997] = new thumbnail(7409997,'401401','','Formation_bogolan_039_thumb.jpg',130, 98,15,'																			photo_7409997.html');
												thumbnails[7409998] = new thumbnail(7409998,'401401','','Formation_bogolan_041_thumb.jpg',130, 98,15,'																			photo_7409998.html');
												thumbnails[7409999] = new thumbnail(7409999,'401401','','Formation_bogolan_0411_thumb.jpg',130, 98,15,'																			photo_7409999.html');
												thumbnails[7410010] = new thumbnail(7410010,'401401','','Formation_bogolan_054_thumb.jpg',130, 173,15,'																			photo_7410010.html');
												thumbnails[7410016] = new thumbnail(7410016,'401401','','Formation_bogolan_166_thumb.jpg',130, 98,15,'																			photo_7410016.html');
												thumbnails[7385491] = new thumbnail(7385491,'399844','','Bogalon_Preview03_thumb.jpg',130, 196,15,'																			photo_7385491.html');
												thumbnails[7385495] = new thumbnail(7385495,'399844','','Bogalon_Preview33_thumb.jpg',130, 86,15,'																			photo_7385495.html');
												thumbnails[5368779] = new thumbnail(5368779,'207839','\'Youssouf\' please see the \'news article\' ','Kader_presenting_certificatejpg4_thumb.jpg',130, 97,15,'																			photo_5368779.html');
												thumbnails[5368778] = new thumbnail(5368778,'207839','Graduation for students','Class_and_certificatesjpg1_thumb.jpg',130, 92,15,'																			photo_5368778.html');
												thumbnails[7385507] = new thumbnail(7385507,'399844','Riches and Support with out support life is hard','Bogalon_Preview13_thumb.jpg',130, 196,15,'																			photo_7385507.html');
												thumbnails[7410013] = new thumbnail(7410013,'401401','Kader teaching','Formation_bogolan_069_thumb.jpg',130, 98,15,'																			photo_7410013.html');
												thumbnails[5368772] = new thumbnail(5368772,'207839','Kader on his new bike','Kader_on_new_bikejpg3_thumb.jpg',130, 98,15,'																			photo_5368772.html');
												thumbnails[5368759] = new thumbnail(5368759,'207839','A student with his work','student_with_work_jpg5_thumb.jpg',130, 92,15,'																			photo_5368759.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[401401] = new gallery(401401,'7410016,7410013,7410010,7409999,7409998,7409997,7409995,7409993,7409991,7409989','Class of January 2011','gallery',[7409855,7409857,7409858,7409859,7409860,7409989,7409991,7409993,7409995,7409997,7409998,7409999,7410010,7410016,7410013],0, 0, '', '																																																																																																							gallery_401401.html',0,0);
				  					galleries[399844] = new gallery(399844,'7385758,7385757,7385747,7385746,7385743,7385742,7385740,7385737,7385735,7385734',' Saïd Business School, Exibition, Oxford','gallery',[7385478,7385480,7385601,7385602,7385604,7385605,7385607,7385609,7385615,7385622,7385625,7385627,7385630,7385631,7385633,7385634,7385713,7385715,7385716,7385717,7385719,7385721,7385728,7385730,7385732,7385734,7385735,7385737,7385740,7385742,7385743,7385746,7385747,7385757,7385758,7385491,7385495,7385507],0, 0, '', '																																																																																																							gallery_399844.html',0,0);
				  					galleries[207839] = new gallery(207839,'5368740,3403828','Mali Assn. of Culture and Hope','gallery',[3402549,3402712,3402724,3402731,3402736,3402742,3402747,3402758,3403002,3403045,3403046,3403048,3403049,3403728,3403731,3403823,3403826,3403828,3403829,3458562,3458564,3458565,3458566,3458568,3458582,3458583,3458585,3458586,3458590,3458604,3458606,3458813,3463478,3510720,3510739,3511067,3511070,3511079,3511083,3511094,3511098,3511102,3511109,3511115,3511199,3511201,3533454,3533458,3533465,3533883,5368740,5368779,5368778,5368772,5368759],0, 0, '', '																																																																																																							gallery_207839.html',0,0);
				  					galleries[207840] = new gallery(207840,'3511194,3511191,3511141,3511139,3511136,3511127,3511125,3511118,3458571,3407607','Bamako','gallery',[3407593,3407598,3407599,3407602,3407606,3407607,3458571,3511118,3511125,3511127,3511136,3511139,3511141,3511191,3511194],0, 0, '', '																																																																																																							gallery_207840.html',0,0);
				  					galleries[207870] = new gallery(207870,'3403822,3403738','Kader','gallery',[3403101,3403735,3403736,3403737,3403738,3403816,3403817,3403818,3403821,3403822,3407588,3407590,3407614,3407616,3407619,3533475],0, 0, '', '																																																																																																							gallery_207870.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7409997,7409991,7409858,7409857,7409855,7385747,7385743,7385742,7385735,7385734,7385730,7385728,7385719,7385717,7385716,7385715,7385713,7385634,7385633,7385631,7385630,7385627,7385625,7385622,7385615,7385609,7385607,7385605,7385604,7385602,7385601,5368779,5368778,3510720,3407614,3407598,3403826';
imageSets[2] = '5368740,3403828,3403822,3403738';
imageSets[3] = '3533883,3533475,3533465,3533458,3533454,3511201,3511199,3511194,3511191,3511141,3511139,3511136,3511127,3511125,3511118,3511115,3511109,3511102,3511098,3511094,3511083,3511079,3511070,3511067,3510739,3510720,3463478,3458813,3458606,3458604,3458590,3458586,3458585';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/timhewes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/timhewes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/timhewes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/timhewes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/timhewes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/timhewes/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Mali Association of Culture and Hope: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 							' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

