window.thumbnails = {};
															thumbnails[209645] = clik.newPhoto({"id":209645,"src":"spain_thumb.jpg","galleries_id":16341,"server_id":1,"link":"photo_209645.html","width":130,"caption":"ecu: european currency unfolds 01 - spanish peseta","height":71});
															thumbnails[249042] = clik.newPhoto({"id":249042,"src":"UKECU_thumb.jpg","galleries_id":16341,"server_id":1,"link":"photo_249042.html","width":130,"caption":"ecu: european currency unfolds 02 - english pound","height":73});
															thumbnails[249462] = clik.newPhoto({"id":249462,"src":"italy_thumb.jpg","galleries_id":16341,"server_id":1,"link":"photo_249462.html","width":130,"caption":"ecu: european currency unfolds 03 - italian lira","height":71});
															thumbnails[249464] = clik.newPhoto({"id":249464,"src":"greek_thumb.jpg","galleries_id":16341,"server_id":1,"link":"photo_249464.html","width":130,"caption":"ecu: european currency unfolds 04","height":130});
															thumbnails[249465] = clik.newPhoto({"id":249465,"src":"RKecu01_thumb.jpg","galleries_id":16341,"server_id":1,"link":"photo_249465.html","width":130,"caption":"ecu: european currency unfolds05","height":130});
															thumbnails[249468] = clik.newPhoto({"id":249468,"src":"rk02_thumb.jpg","galleries_id":22559,"server_id":1,"link":"photo_249468.html","width":130,"caption":"Virtual Exiles: From the Edge (1)","height":86});
															thumbnails[249480] = clik.newPhoto({"id":249480,"src":"rk06_thumb.jpg","galleries_id":22559,"server_id":1,"link":"photo_249480.html","width":130,"caption":"Virtual Exiles: Frontlines\/Backyards (4)","height":85});
															thumbnails[249484] = clik.newPhoto({"id":249484,"src":"rk10_thumb.jpg","galleries_id":22559,"server_id":1,"link":"photo_249484.html","width":130,"caption":"Virtual Exiles: Frontlines\/Backyards (3)","height":85});
															thumbnails[249488] = clik.newPhoto({"id":249488,"src":"RK011_thumb.jpg","galleries_id":22559,"server_id":1,"link":"photo_249488.html","width":130,"caption":"Virtual Exiles: Going for Gold (2)","height":85});
															thumbnails[249491] = clik.newPhoto({"id":249491,"src":"rk15_thumb.jpg","galleries_id":22559,"server_id":1,"link":"photo_249491.html","width":130,"caption":"Virtual Exiles: The Colour Museum (2)","height":85});
															thumbnails[249504] = clik.newPhoto({"id":249504,"src":"rk16_thumb.jpg","galleries_id":22559,"server_id":1,"link":"photo_249504.html","width":130,"caption":"Virtual Exiles: From the Edge (4)","height":85});
															thumbnails[249519] = clik.newPhoto({"id":249519,"src":"rk19_thumb.jpg","galleries_id":22559,"server_id":1,"link":"photo_249519.html","width":130,"caption":"Virtual Exiles: From the Edge (6)","height":85});
															thumbnails[249617] = clik.newPhoto({"id":249617,"src":"bRoom01_thumb.jpg","galleries_id":22637,"server_id":1,"link":"photo_249617.html","width":130,"caption":"Future Belonging01","height":45});
															thumbnails[249619] = clik.newPhoto({"id":249619,"src":"pharmacy01_thumb.jpg","galleries_id":22637,"server_id":1,"link":"photo_249619.html","width":130,"caption":"Future Belonging02","height":45});
															thumbnails[249622] = clik.newPhoto({"id":249622,"src":"train01_thumb.jpg","galleries_id":22637,"server_id":1,"link":"photo_249622.html","width":130,"caption":"Future Belonging03","height":45});
															thumbnails[249625] = clik.newPhoto({"id":249625,"src":"bRoom02_thumb.jpg","galleries_id":22637,"server_id":1,"link":"photo_249625.html","width":130,"caption":"Future Belonging04","height":86});
															thumbnails[249629] = clik.newPhoto({"id":249629,"src":"pharmacy02_thumb.jpg","galleries_id":22637,"server_id":1,"link":"photo_249629.html","width":130,"caption":"Future Belonging05","height":177});
															thumbnails[249633] = clik.newPhoto({"id":249633,"src":"train022_thumb.jpg","galleries_id":22637,"server_id":1,"link":"photo_249633.html","width":130,"caption":"Future Belonging06","height":108});
															thumbnails[249676] = clik.newPhoto({"id":249676,"src":"cocoaworkers_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249676.html","width":130,"caption":"ghosting01","height":67});
															thumbnails[249682] = clik.newPhoto({"id":249682,"src":"Marie01_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249682.html","width":130,"caption":"ghosting02","height":67});
															thumbnails[249688] = clik.newPhoto({"id":249688,"src":"ram01_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249688.html","width":130,"caption":"ghosting03","height":67});
															thumbnails[249689] = clik.newPhoto({"id":249689,"src":"Ram02_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249689.html","width":130,"caption":"ghosting04","height":67});
															thumbnails[249690] = clik.newPhoto({"id":249690,"src":"ruth02_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249690.html","width":130,"caption":"ghosting05","height":67});
															thumbnails[249691] = clik.newPhoto({"id":249691,"src":"ruth03_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249691.html","width":130,"caption":"ghosting06","height":67});
															thumbnails[249693] = clik.newPhoto({"id":249693,"src":"ruth04_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249693.html","width":130,"caption":"ghosting07","height":67});
															thumbnails[249695] = clik.newPhoto({"id":249695,"src":"ruth05_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249695.html","width":130,"caption":"ghosting08","height":67});
															thumbnails[249697] = clik.newPhoto({"id":249697,"src":"victoria01_thumb.jpg","galleries_id":22642,"server_id":1,"link":"photo_249697.html","width":130,"caption":"ghosting09","height":66});
															thumbnails[250489] = clik.newPhoto({"id":250489,"src":"end01_thumb.jpg","galleries_id":22714,"server_id":1,"link":"photo_250489.html","width":130,"caption":"endless01","height":130});
															thumbnails[250509] = clik.newPhoto({"id":250509,"src":"end02_thumb.jpg","galleries_id":22714,"server_id":1,"link":"photo_250509.html","width":130,"caption":"endless02","height":111});
															thumbnails[250510] = clik.newPhoto({"id":250510,"src":"end03_thumb.jpg","galleries_id":22714,"server_id":1,"link":"photo_250510.html","width":130,"caption":"endless03","height":111});
															thumbnails[250514] = clik.newPhoto({"id":250514,"src":"end04_thumb.jpg","galleries_id":22714,"server_id":1,"link":"photo_250514.html","width":130,"caption":"endless04","height":110});
															thumbnails[250519] = clik.newPhoto({"id":250519,"src":"porch03_thumb.jpg","galleries_id":22714,"server_id":1,"link":"photo_250519.html","width":130,"caption":"endless05","height":85});
															thumbnails[250521] = clik.newPhoto({"id":250521,"src":"jaganview02_thumb.jpg","galleries_id":22714,"server_id":1,"link":"photo_250521.html","width":130,"caption":"endless06","height":195});
															thumbnails[2309691] = clik.newPhoto({"id":2309691,"src":"betta02_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309691.html","width":130,"caption":"amendments01","height":73});
															thumbnails[2309694] = clik.newPhoto({"id":2309694,"src":"betta03_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309694.html","width":130,"caption":"amendments02","height":73});
															thumbnails[2309696] = clik.newPhoto({"id":2309696,"src":"betta09_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309696.html","width":130,"caption":"amendments03","height":73});
															thumbnails[2309698] = clik.newPhoto({"id":2309698,"src":"seer03_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309698.html","width":130,"caption":"amendments04","height":73});
															thumbnails[2309699] = clik.newPhoto({"id":2309699,"src":"seer04_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309699.html","width":130,"caption":"amendments05","height":73});
															thumbnails[2309701] = clik.newPhoto({"id":2309701,"src":"ven04_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309701.html","width":130,"caption":"amendments06","height":73});
															thumbnails[2309703] = clik.newPhoto({"id":2309703,"src":"ven05_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309703.html","width":130,"caption":"amendments07","height":73});
															thumbnails[2309705] = clik.newPhoto({"id":2309705,"src":"ven06_thumb.jpg","galleries_id":151084,"server_id":1,"link":"photo_2309705.html","width":130,"caption":"amendments08","height":73});
															thumbnails[7069583] = clik.newPhoto({"id":7069583,"src":"amaka01_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069583.html","width":130,"caption":"Arrival - Amaka","height":73});
															thumbnails[7069603] = clik.newPhoto({"id":7069603,"src":"interview01_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069603.html","width":130,"caption":"Arrival - interview","height":73});
															thumbnails[7069629] = clik.newPhoto({"id":7069629,"src":"interview02_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069629.html","width":130,"caption":"Arrival - interview","height":73});
															thumbnails[7069632] = clik.newPhoto({"id":7069632,"src":"interview03_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069632.html","width":130,"caption":"Arrival - interview","height":73});
															thumbnails[7069633] = clik.newPhoto({"id":7069633,"src":"interview04_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069633.html","width":130,"caption":"Arrival - interview","height":73});
															thumbnails[7069634] = clik.newPhoto({"id":7069634,"src":"interview07_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069634.html","width":130,"caption":"Arrival - interview","height":73});
															thumbnails[7069644] = clik.newPhoto({"id":7069644,"src":"interview08_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069644.html","width":130,"caption":"Arrival - interview","height":73});
															thumbnails[7069646] = clik.newPhoto({"id":7069646,"src":"Nnedi01_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069646.html","width":130,"caption":"Arrival - Nnedi","height":73});
															thumbnails[7069652] = clik.newPhoto({"id":7069652,"src":"Nnedi02_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069652.html","width":130,"caption":"Arrival - Nnedi","height":73});
															thumbnails[7069657] = clik.newPhoto({"id":7069657,"src":"Nnedi04_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069657.html","width":130,"caption":"Arrival - Nnedi","height":73});
															thumbnails[7069694] = clik.newPhoto({"id":7069694,"src":"Nnedi06_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069694.html","width":130,"caption":"Arrival - Nnedi","height":73});
															thumbnails[7069713] = clik.newPhoto({"id":7069713,"src":"Nnedi08_thumb.jpg","galleries_id":374940,"server_id":1,"link":"photo_7069713.html","width":130,"caption":"Arrival - Nnedi","height":73});
															thumbnails[5545761] = clik.newPhoto({"id":5545761,"src":"Intro1_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545761.html","width":130,"caption":"Sweetness and Light 01","height":91});
															thumbnails[5545833] = clik.newPhoto({"id":5545833,"src":"Intro2_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545833.html","width":130,"caption":"Sweetness and Light 02","height":91});
															thumbnails[5545839] = clik.newPhoto({"id":5545839,"src":"headpeople1_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545839.html","width":130,"caption":"Sweetness and Light: Head People 01","height":91});
															thumbnails[5545843] = clik.newPhoto({"id":5545843,"src":"headpeople2_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545843.html","width":130,"caption":"Sweetness and Light: Head People 02","height":91});
															thumbnails[5545850] = clik.newPhoto({"id":5545850,"src":"headpeople3_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545850.html","width":130,"caption":"Sweetness and Light: Head People 03","height":91});
															thumbnails[5545855] = clik.newPhoto({"id":5545855,"src":"GreatHouse1_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545855.html","width":130,"caption":"Sweetness and Light: Great House 01","height":91});
															thumbnails[5545860] = clik.newPhoto({"id":5545860,"src":"GreatHouse31_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545860.html","width":130,"caption":"Sweetness and Light: Great House 03","height":91});
															thumbnails[5545921] = clik.newPhoto({"id":5545921,"src":"GreatHouse4_thumb.jpg","galleries_id":314268,"server_id":1,"link":"photo_5545921.html","width":130,"caption":"Sweetness and Light: Great House 04","height":91});
															thumbnails[9049174] = clik.newPhoto({"id":9049174,"src":"RKempadooInaugFINAL_new_7ADB48DE-1EC9-DFB6-09E229A381D13AD8_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049174.html","width":160,"caption":"20.01.09.Washington DC. This body, here, walked tall that day.","height":90});
															thumbnails[9049175] = clik.newPhoto({"id":9049175,"src":"RKEmpadooLondonFINAL_7ADB8CC4-1EC9-DFB6-0903621C2AC1679F_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049175.html","width":160,"caption":"1.04.09, Downing Street, London. This body, here, gave respect.","height":90});
															thumbnails[9049173] = clik.newPhoto({"id":9049173,"src":"RKempadooEyepassFINAL_7ADB0F61-1EC9-DFB6-0901F61252FD85F8_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049173.html","width":160,"caption":"9.09.09. health-care speech, Washington DC. This body, here, kissed her teeth, indignant at what they did.","height":90});
															thumbnails[9049176] = clik.newPhoto({"id":9049176,"src":"RKempadooOverfamiliar01FINAL_7ADBB909-1EC9-DFB6-09454178A9381FBB_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049176.html","width":160,"caption":"16.11.11.Canberra, Australia. This body, here, watched her ‘over familiarity’ and wondered when novelty wore off.","height":90});
															thumbnails[9049171] = clik.newPhoto({"id":9049171,"src":"USA_MilitaryFINAL_7ADA9191-1EC9-DFB6-09CBE5F9BC742FD0_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049171.html","width":160,"caption":"02.05.11. this body here, turned away for awhile, troubled by the rhetoric.","height":90});
															thumbnails[9049177] = clik.newPhoto({"id":9049177,"src":"RKempadooRECALL_FINAL_7ADBEBCC-1EC9-DFB6-09FA744145FEF4FC_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049177.html","width":160,"caption":"5.02.11. Bamako, Mali. This body, here, recalled moments of ‘return’.","height":90});
															thumbnails[9049178] = clik.newPhoto({"id":9049178,"src":"RKempadooRecall02FINAL_7ADC1D11-1EC9-DFB6-09E49832F5FDB7E0_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049178.html","width":160,"caption":"11.07.09. Accra, Ghana. ‘My family's own story encompasses both the tragedies and triumphs of a larger African story.’","height":90});
															thumbnails[9049179] = clik.newPhoto({"id":9049179,"src":"RKempadooSanctuaryFINAL_7ADC5156-1EC9-DFB6-0973DB1C909AFD55_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049179.html","width":160,"caption":"29.07.11.London. This body, here, wondered what sanctuary looked like.","height":90});
															thumbnails[9049172] = clik.newPhoto({"id":9049172,"src":"RKempadooAtLastFINAL_7ADACE3D-1EC9-DFB6-091CA6EBCCD80864_thumb.jpg","galleries_id":477001,"server_id":1,"link":"photo_9049172.html","width":160,"caption":"20.01.09.’At Last’ Washington DC. Here, she moved her sexy body and danced.","height":90});
															thumbnails[2616670] = clik.newPhoto({"id":2616670,"src":"RKempadooJMP20082_thumb.jpg","galleries_id":166136,"server_id":1,"link":"photo_2616670.html","width":130,"caption":"Journal of Media Practice, 9:2.  ","height":182});
															thumbnails[2616640] = clik.newPhoto({"id":2616640,"src":"RKempadooFig04_thumb.jpg","galleries_id":166136,"server_id":1,"link":"photo_2616640.html","width":130,"caption":"Projecting Migration: Transcultural Documentary Practice.","height":178});
															thumbnails[2616661] = clik.newPhoto({"id":2616661,"src":"RKempadooFig05_thumb.jpg","galleries_id":166136,"server_id":1,"link":"photo_2616661.html","width":130,"caption":"“Black” British Aesthetics Today.","height":184});
															thumbnails[2616668] = clik.newPhoto({"id":2616668,"src":"RKempadooFig06_thumb.jpg","galleries_id":166136,"server_id":1,"link":"photo_2616668.html","width":130,"caption":"exposure: The Society for Photographic Education, 38:2","height":183});
															thumbnails[2616631] = clik.newPhoto({"id":2616631,"src":"RKempadooFig02_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_2616631.html","width":130,"caption":"Roshini Kempadoo Work: 1990 – 2004 ","height":108});
															thumbnails[6375557] = clik.newPhoto({"id":6375557,"src":"RkempadooRH2009_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_6375557.html","width":130,"caption":"Radical History Review: 2009","height":186});
															thumbnails[6375686] = clik.newPhoto({"id":6375686,"src":"Engage_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_6375686.html","width":130,"caption":"engage: the international journal of visual art and gallery education","height":129});
															thumbnails[6376095] = clik.newPhoto({"id":6376095,"src":"DigitalEye2010_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_6376095.html","width":130,"caption":"Digital Eye: Photographic Art in the Electronic Age","height":169});
															thumbnails[6376169] = clik.newPhoto({"id":6376169,"src":"SmallAxe2009_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_6376169.html","width":130,"caption":"Small Axe: A Caribbean Journal of Criticism","height":160});
															thumbnails[6376380] = clik.newPhoto({"id":6376380,"src":"FictionsofFemCitizen2010_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_6376380.html","width":130,"caption":"Fictions of Feminie Citizenship","height":195});
															thumbnails[6376549] = clik.newPhoto({"id":6376549,"src":"BlackVenus2010_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_6376549.html","width":130,"caption":"Black Venus 2010","height":186});
															thumbnails[6376594] = clik.newPhoto({"id":6376594,"src":"JMP2010_thumb.jpg","galleries_id":166136,"server_id":1,"link":"photo_6376594.html","width":130,"caption":"Journal of Media Practice 11:1","height":182});
															thumbnails[8501159] = clik.newPhoto({"id":8501159,"src":"Screen-shot-2011_thumb.jpg","galleries_id":352786,"server_id":1,"link":"photo_8501159.html","width":160,"caption":"Wrestling with the Image: Caribbean Interventions, e-catalogue","height":160});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[477001] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"State of Play (2011)","link":"gallery_477001.html","maxRecords":0.0,"photoIDs":[9049174.0,9049175.0,9049173.0,9049176.0,9049171.0,9049177.0,9049178.0,9049179.0,9049172.0],"skipIndex":0,"section_code":"gallery","featured_images":"9049178,9049176,9049174,9049173,9049172,9049171","id":477001,"singleSection":false});				  						galleries[374940] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Arrival (2010)","link":"gallery_374940.html","maxRecords":0.0,"photoIDs":[7069583.0,7069603.0,7069629.0,7069632.0,7069633.0,7069634.0,7069644.0,7069646.0,7069652.0,7069657.0,7069694.0,7069713.0],"skipIndex":0,"section_code":"gallery","featured_images":"7069713,7069694,7069657,7069652,7069646,7069644,7069634,7069633,7069632,7069629","id":374940,"singleSection":false});				  						galleries[151084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Amendments(2007)","link":"gallery_151084.html","maxRecords":0.0,"photoIDs":[2309691.0,2309694.0,2309696.0,2309698.0,2309699.0,2309701.0,2309703.0,2309705.0],"skipIndex":0,"section_code":"gallery","featured_images":"2309705,2309703,2309701,2309699,2309698,2309696,2309694,2309691","id":151084,"singleSection":false});				  						galleries[22642] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ghosting (2004)","link":"gallery_22642.html","maxRecords":0.0,"photoIDs":[249676.0,249682.0,249688.0,249689.0,249690.0,249691.0,249693.0,249695.0,249697.0],"skipIndex":0,"section_code":"gallery","featured_images":"249697,249695,249693,249690,249689,249688,249682,249676","id":22642,"singleSection":false});				  						galleries[22714] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"endless prospects (2004\/5)","link":"gallery_22714.html","maxRecords":0.0,"photoIDs":[250489.0,250509.0,250510.0,250514.0,250519.0,250521.0],"skipIndex":0,"section_code":"gallery","featured_images":"250521,250519,250514,250510,250509,250489","id":22714,"singleSection":false});				  						galleries[22637] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Future Belonging (2000)","link":"gallery_22637.html","maxRecords":0.0,"photoIDs":[249617.0,249619.0,249622.0,249625.0,249629.0,249633.0],"skipIndex":0,"section_code":"gallery","featured_images":"249633,249629,249625,249622,249619,249617","id":22637,"singleSection":false});				  						galleries[22559] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Virtual Exiles (2000)","link":"gallery_22559.html","maxRecords":0.0,"photoIDs":[249468.0,249480.0,249484.0,249488.0,249491.0,249504.0,249519.0],"skipIndex":0,"section_code":"gallery","featured_images":"249519,249504,249491,249488,249484,249480,249468","id":22559,"singleSection":false});				  						galleries[314268] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sweetness and Light (1995)","link":"gallery_314268.html","maxRecords":0.0,"photoIDs":[5545761.0,5545833.0,5545839.0,5545843.0,5545850.0,5545855.0,5545860.0,5545921.0],"skipIndex":0,"section_code":"gallery","featured_images":"5545921,5545860,5545855,5545850,5545843,5545839,5545833,5545761","id":314268,"singleSection":false});				  						galleries[16341] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ECU: European Currency Unfolds (1992)","link":"gallery_16341.html","maxRecords":0.0,"photoIDs":[209645.0,249042.0,249462.0,249464.0,249465.0],"skipIndex":0,"section_code":"gallery","featured_images":"249465,249464,249462,249042,209645","id":16341,"singleSection":false});				  						galleries[477113] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Videos - Online","link":"section208804_477113.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section208804","featured_images":7069583,"id":477113,"singleSection":false});				  						galleries[166136] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Publications: Scholarly Writings","link":"section208804_166136.html","maxRecords":0.0,"photoIDs":[2616670.0,2616640.0,2616661.0,2616668.0,6376594.0],"skipIndex":0,"section_code":"section208804","featured_images":"6376594,2616670,2616668,2616661,2616640","id":166136,"singleSection":false});				  						galleries[352786] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Publications: Art References","link":"section208804_352786.html","maxRecords":0.0,"photoIDs":[2616631.0,6375557.0,6375686.0,6376095.0,6376169.0,6376380.0,6376549.0,8501159.0],"skipIndex":0,"section_code":"section208804","featured_images":"8501159,6376549,6376380,6376169,6376095,6375686,6375557,2616631","id":352786,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[237966] = '7069713,7069657,7069652,7069646,7069633,7069632,7069629,7069603,7069583';
imageSets[1] = '7069713,7069657,7069652,7069646,7069633,7069632,7069629,7069603,7069583,2309701,2309698,2309694,250519,250509,249693,249690,249688,249682,249625,249622,249617,249519,249504,249488,249480,249464,249042,209645,9049174,9049175,9049173,9049176,9049178,9049172';
imageSets[2] = '2309705,2309703,2309701,2309699,2309698,2309696,2309694,2309691,250521,250519,250514,250510,250509,250489,249697,249695,249693,249690,249689,249688,249682,249676,249633,249629,249625,249622,249619,249617,249519,249504,249491,249488,249484,249480,249468,249465,249464,249462,249042,209645,9049174,9049173,9049176,9049171,9049178,9049172';
imageSets[3] = '5545761,5545833,5545839,5545843,5545850,5545855,5545860,5545921,9049174,9049175,9049173,9049176,9049171,9049178,9049172';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/roshini/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/roshini/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/roshini/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/roshini/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/roshini/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/roshini/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/roshini/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/roshini/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 = 'Roshini Kempadoo: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="r.kempadoo@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="r.kempadoo@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;
	}
}

			

