window.thumbnails = {};
															thumbnails[5147937] = clik.newPhoto({"id":5147937,"src":"Hafla_pic_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":130});
															thumbnails[5089927] = clik.newPhoto({"id":5089927,"src":"06-20-09_6631_edited-1web_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":86});
															thumbnails[6320397] = clik.newPhoto({"id":6320397,"src":"_DSC2325_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":195});
															thumbnails[5745340] = clik.newPhoto({"id":5745340,"src":"winter-spring2010027b_thumb.jpg","galleries_id":188017,"server_id":32,"link":"photo_5745340.html","width":130,"caption":"Ceri","height":147});
															thumbnails[5147857] = clik.newPhoto({"id":5147857,"src":"IMG_1001_thumb.JPG","galleries_id":188017,"server_id":32,"link":"photo_5147857.html","width":130,"caption":"Cis","height":162});
															thumbnails[8471295] = clik.newPhoto({"id":8471295,"src":"Jess_thumb.jpg","galleries_id":188017,"server_id":32,"link":"photo_8471295.html","width":130,"caption":"Jess","height":277});
															thumbnails[8471253] = clik.newPhoto({"id":8471253,"src":"Rachel_thumb.jpg","galleries_id":188017,"server_id":32,"link":"photo_8471253.html","width":130,"caption":"Rachel","height":98});
															thumbnails[3204158] = clik.newPhoto({"id":3204158,"src":"profile_thumb.jpg","galleries_id":188017,"server_id":32,"link":"photo_3204158.html","width":130,"caption":"Rosie","height":200});
															thumbnails[8471266] = clik.newPhoto({"id":8471266,"src":"Ula_thumb.jpg","galleries_id":188017,"server_id":32,"link":"photo_8471266.html","width":130,"caption":"Ula","height":156});
															thumbnails[3204136] = clik.newPhoto({"id":3204136,"src":"Me_thumb.jpg","galleries_id":188017,"server_id":32,"link":"photo_3204136.html","width":130,"caption":"Zoe","height":161});
															thumbnails[3204175] = clik.newPhoto({"id":3204175,"src":"4271_91112327620_679757620_2344685_2887183_n_thumb.jpg","galleries_id":268476,"server_id":32,"link":"photo_3204175.html","width":130,"caption":"Julia","height":194});
															thumbnails[3227635] = clik.newPhoto({"id":3227635,"src":"clare1_thumb.jpg","galleries_id":268476,"server_id":32,"link":"photo_3227635.html","width":130,"caption":"Clare","height":248});
															thumbnails[5105290] = clik.newPhoto({"id":5105290,"src":"liz_thumb.jpg","galleries_id":268476,"server_id":32,"link":"photo_5105290.html","width":130,"caption":"Liz","height":208});
															thumbnails[5081434] = clik.newPhoto({"id":5081434,"src":"belly_dance_095_thumb.jpg","galleries_id":268476,"server_id":32,"link":"photo_5081434.html","width":130,"caption":"Melissa","height":113});
															thumbnails[4649398] = clik.newPhoto({"id":4649398,"src":"IMG_0002_C32482D2-24E8-5EC4-4F73C11B465E9845_thumb.JPG","galleries_id":268476,"server_id":32,"link":"photo_4649398.html","width":130,"caption":"Amy","height":116});
															thumbnails[4653840] = clik.newPhoto({"id":4653840,"src":"Kdancer_thumb.jpg","galleries_id":268476,"server_id":32,"link":"photo_4653840.html","width":130,"caption":"Kate","height":258});
															thumbnails[3204151] = clik.newPhoto({"id":3204151,"src":"kim1_thumb.jpg","galleries_id":268476,"server_id":32,"link":"photo_3204151.html","width":130,"caption":"Kim","height":188});
															thumbnails[5586547] = clik.newPhoto({"id":5586547,"src":"4271_91112387620_679757620_2344695_2254551_n_thumb.jpg","galleries_id":268476,"server_id":32,"link":"photo_5586547.html","width":130,"caption":"Ruth","height":194});
															thumbnails[5727375] = clik.newPhoto({"id":5727375,"src":"Clare_Suzanne_thumb.jpg","galleries_id":324400,"server_id":32,"link":"photo_5727375.html","width":130,"caption":"","height":173});
															thumbnails[5727376] = clik.newPhoto({"id":5727376,"src":"nicky_ruth_jill_thumb.jpg","galleries_id":324400,"server_id":32,"link":"photo_5727376.html","width":130,"caption":"","height":173});
															thumbnails[5727377] = clik.newPhoto({"id":5727377,"src":"016_thumb.JPG","galleries_id":324400,"server_id":32,"link":"photo_5727377.html","width":130,"caption":"","height":98});
															thumbnails[6220636] = clik.newPhoto({"id":6220636,"src":"danceinwgdns_thumb.jpeg","galleries_id":346635,"server_id":32,"link":"photo_6220636.html","width":130,"caption":"Mafi Mushkila do the Jai Ho!","height":61});
															thumbnails[6220638] = clik.newPhoto({"id":6220638,"src":"danceinwgdns2_thumb.jpeg","galleries_id":346635,"server_id":32,"link":"photo_6220638.html","width":130,"caption":"","height":74});
															thumbnails[6220639] = clik.newPhoto({"id":6220639,"src":"wedtroupe1_thumb.jpeg","galleries_id":346635,"server_id":32,"link":"photo_6220639.html","width":130,"caption":"Mafi Mushkila ready to go...","height":74});
															thumbnails[6220640] = clik.newPhoto({"id":6220640,"src":"xtaticdancers_thumb.jpeg","galleries_id":346635,"server_id":32,"link":"photo_6220640.html","width":130,"caption":"","height":88});
															thumbnails[6325969] = clik.newPhoto({"id":6325969,"src":"Troupe_Day_of_Dance_3_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6325969.html","width":130,"caption":"","height":73});
															thumbnails[6336670] = clik.newPhoto({"id":6336670,"src":"all_dancers_3_thumb.jpg","galleries_id":351271,"server_id":32,"link":"photo_6336670.html","width":130,"caption":"All dancers on stage for the finale!","height":98});
															thumbnails[7176660] = clik.newPhoto({"id":7176660,"src":"34970_412469522820_596702820_5085988_6757757_n_thumb.jpg","galleries_id":387805,"server_id":32,"link":"photo_7176660.html","width":130,"caption":"","height":98});
															thumbnails[7176663] = clik.newPhoto({"id":7176663,"src":"37583_412471382820_596702820_5086048_2418100_n_thumb.jpg","galleries_id":387805,"server_id":32,"link":"photo_7176663.html","width":130,"caption":"","height":97});
															thumbnails[8659800] = clik.newPhoto({"id":8659800,"src":"Boomshanka_Broomhill_2011_2011_10_15_025_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659800.html","width":130,"caption":"","height":195});
															thumbnails[8659802] = clik.newPhoto({"id":8659802,"src":"Boomshanka_Broomhill_2011_2011_10_15_032_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659802.html","width":130,"caption":"","height":195});
															thumbnails[8659804] = clik.newPhoto({"id":8659804,"src":"Boomshanka_Broomhill_2011_2011_10_15_035_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659804.html","width":130,"caption":"","height":195});
															thumbnails[8659805] = clik.newPhoto({"id":8659805,"src":"Boomshanka_Broomhill_2011_2011_10_15_036_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659805.html","width":130,"caption":"","height":195});
															thumbnails[8659807] = clik.newPhoto({"id":8659807,"src":"Boomshanka_Broomhill_2011_2011_10_15_041_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659807.html","width":130,"caption":"","height":87});
															thumbnails[8659809] = clik.newPhoto({"id":8659809,"src":"Boomshanka_Broomhill_2011_2011_10_15_059_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659809.html","width":130,"caption":"","height":195});
															thumbnails[8659810] = clik.newPhoto({"id":8659810,"src":"Boomshanka_Broomhill_2011_2011_10_15_060_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659810.html","width":130,"caption":"","height":195});
															thumbnails[8659811] = clik.newPhoto({"id":8659811,"src":"Boomshanka_Broomhill_2011_2011_10_15_074_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659811.html","width":130,"caption":"","height":195});
															thumbnails[8659812] = clik.newPhoto({"id":8659812,"src":"Boomshanka_Broomhill_2011_2011_10_15_084_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659812.html","width":130,"caption":"","height":87});
															thumbnails[8659813] = clik.newPhoto({"id":8659813,"src":"Boomshanka_Broomhill_2011_2011_10_15_103_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659813.html","width":130,"caption":"","height":87});
															thumbnails[8659814] = clik.newPhoto({"id":8659814,"src":"Boomshanka_Broomhill_2011_2011_10_15_125_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659814.html","width":130,"caption":"","height":87});
															thumbnails[8659815] = clik.newPhoto({"id":8659815,"src":"Boomshanka_Broomhill_2011_2011_10_15_137_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659815.html","width":130,"caption":"","height":87});
															thumbnails[8659817] = clik.newPhoto({"id":8659817,"src":"Boomshanka_Broomhill_2011_2011_10_15_150_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659817.html","width":130,"caption":"","height":87});
															thumbnails[8659819] = clik.newPhoto({"id":8659819,"src":"Boomshanka_Broomhill_2011_2011_10_15_152_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659819.html","width":130,"caption":"","height":87});
															thumbnails[8659821] = clik.newPhoto({"id":8659821,"src":"Boomshanka_Broomhill_2011_2011_10_15_153_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659821.html","width":130,"caption":"","height":195});
															thumbnails[8659822] = clik.newPhoto({"id":8659822,"src":"Boomshanka_Broomhill_2011_2011_10_15_165_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659822.html","width":130,"caption":"","height":87});
															thumbnails[8659824] = clik.newPhoto({"id":8659824,"src":"Boomshanka_Broomhill_2011_2011_10_15_184_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659824.html","width":130,"caption":"","height":87});
															thumbnails[8659825] = clik.newPhoto({"id":8659825,"src":"Boomshanka_Broomhill_2011_2011_10_15_189_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659825.html","width":130,"caption":"","height":87});
															thumbnails[8659827] = clik.newPhoto({"id":8659827,"src":"Boomshanka_Broomhill_2011_2011_10_15_192_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659827.html","width":130,"caption":"","height":87});
															thumbnails[8659829] = clik.newPhoto({"id":8659829,"src":"Boomshanka_Broomhill_2011_2011_10_15_196_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659829.html","width":130,"caption":"","height":87});
															thumbnails[8659832] = clik.newPhoto({"id":8659832,"src":"Boomshanka_Broomhill_2011_2011_10_15_199_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659832.html","width":130,"caption":"","height":195});
															thumbnails[8659846] = clik.newPhoto({"id":8659846,"src":"Boomshanka_Broomhill_2011_2011_10_15_197_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659846.html","width":130,"caption":"","height":195});
															thumbnails[8659847] = clik.newPhoto({"id":8659847,"src":"Boomshanka_Broomhill_2011_2011_10_15_136_1600x1200_thumb.JPG","galleries_id":455968,"server_id":32,"link":"photo_8659847.html","width":130,"caption":"","height":87});
															thumbnails[6320175] = clik.newPhoto({"id":6320175,"src":"_DSC2298_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6320175.html","width":130,"caption":"","height":195});
															thumbnails[6320482] = clik.newPhoto({"id":6320482,"src":"_DSC2417_thumb.jpg","galleries_id":350567,"server_id":32,"link":"photo_6320482.html","width":130,"caption":"","height":86});
															thumbnails[6320197] = clik.newPhoto({"id":6320197,"src":"_DSC2326_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6320197.html","width":130,"caption":"","height":86});
															thumbnails[6320389] = clik.newPhoto({"id":6320389,"src":"_DSC2309_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6320389.html","width":130,"caption":"","height":87});
															thumbnails[4935367] = clik.newPhoto({"id":4935367,"src":"IMG_3390web1_thumb.jpg","galleries_id":280874,"server_id":32,"link":"photo_4935367.html","width":130,"caption":"","height":182});
															thumbnails[6320391] = clik.newPhoto({"id":6320391,"src":"_DSC2317_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6320391.html","width":130,"caption":"","height":87});
															thumbnails[6320486] = clik.newPhoto({"id":6320486,"src":"_DSC2419_thumb.jpg","galleries_id":350567,"server_id":32,"link":"photo_6320486.html","width":130,"caption":"","height":101});
															thumbnails[6320393] = clik.newPhoto({"id":6320393,"src":"_DSC2323_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6320393.html","width":130,"caption":"","height":196});
															thumbnails[4935409] = clik.newPhoto({"id":4935409,"src":"IMG_33911_thumb.jpg","galleries_id":280874,"server_id":32,"link":"photo_4935409.html","width":130,"caption":"","height":98});
															thumbnails[5689683] = clik.newPhoto({"id":5689683,"src":"IMG_0002_thumb.JPG","galleries_id":322261,"server_id":32,"link":"photo_5689683.html","width":130,"caption":"","height":109});
															thumbnails[6320488] = clik.newPhoto({"id":6320488,"src":"_DSC2421_thumb.jpg","galleries_id":350567,"server_id":32,"link":"photo_6320488.html","width":130,"caption":"","height":86});
															thumbnails[6325965] = clik.newPhoto({"id":6325965,"src":"Troupe_Day_of_Dance_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6325965.html","width":130,"caption":"","height":73});
															thumbnails[4935371] = clik.newPhoto({"id":4935371,"src":"IMG_3392bweb_thumb.jpg","galleries_id":280874,"server_id":32,"link":"photo_4935371.html","width":130,"caption":"","height":205});
															thumbnails[4935411] = clik.newPhoto({"id":4935411,"src":"IMG_3393web1_thumb.jpg","galleries_id":280874,"server_id":32,"link":"photo_4935411.html","width":130,"caption":"","height":268});
															thumbnails[5689685] = clik.newPhoto({"id":5689685,"src":"IMG_0005_thumb.JPG","galleries_id":322261,"server_id":32,"link":"photo_5689685.html","width":130,"caption":"","height":98});
															thumbnails[6325966] = clik.newPhoto({"id":6325966,"src":"Troupe_Day_of_Dance_2_thumb.jpg","galleries_id":346635,"server_id":32,"link":"photo_6325966.html","width":130,"caption":"","height":73});
															thumbnails[4935412] = clik.newPhoto({"id":4935412,"src":"IMG_3394_thumb.jpg","galleries_id":280874,"server_id":32,"link":"photo_4935412.html","width":130,"caption":"","height":173});
															thumbnails[4935419] = clik.newPhoto({"id":4935419,"src":"IMG_3396b_thumb.jpg","galleries_id":280874,"server_id":32,"link":"photo_4935419.html","width":130,"caption":"","height":226});
															thumbnails[5689689] = clik.newPhoto({"id":5689689,"src":"IMG_0011_thumb.JPG","galleries_id":322261,"server_id":32,"link":"photo_5689689.html","width":130,"caption":"","height":93});
															thumbnails[5689692] = clik.newPhoto({"id":5689692,"src":"IMG_0020_thumb.JPG","galleries_id":322261,"server_id":32,"link":"photo_5689692.html","width":130,"caption":"","height":86});
															thumbnails[5689695] = clik.newPhoto({"id":5689695,"src":"IMG_0029_thumb.JPG","galleries_id":322261,"server_id":32,"link":"photo_5689695.html","width":130,"caption":"","height":124});
															thumbnails[5689697] = clik.newPhoto({"id":5689697,"src":"IMG_0036_thumb.JPG","galleries_id":322261,"server_id":32,"link":"photo_5689697.html","width":130,"caption":"","height":139});
															thumbnails[5721637] = clik.newPhoto({"id":5721637,"src":"Jan_2010_Hafla_and_snow_011_thumb.jpg","galleries_id":322261,"server_id":32,"link":"photo_5721637.html","width":130,"caption":"Some of the Eckington Tuesday class ","height":98});
															thumbnails[8341185] = clik.newPhoto({"id":8341185,"src":"tickets_thumb.jpg","galleries_id":443306,"server_id":32,"link":"photo_8341185.html","width":130,"caption":"Adult Ticket","height":108});
															thumbnails[8341216] = clik.newPhoto({"id":8341216,"src":"tickets1_thumb.jpg","galleries_id":443306,"server_id":32,"link":"photo_8341216.html","width":130,"caption":"Concession Ticket","height":108});
															thumbnails[8341235] = clik.newPhoto({"id":8341235,"src":"tickets_F68E24FF-1E4F-37DC-71344F2C95A503C4_thumb.jpg","galleries_id":443306,"server_id":32,"link":"photo_8341235.html","width":130,"caption":"Child Ticket","height":108});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[268476] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alumni","link":"section323217.html","maxRecords":0.0,"photoIDs":[3204175.0,3227635.0,5105290.0,5081434.0,4649398.0,4653840.0,3204151.0,5586547.0],"skipIndex":0,"section_code":"section323217","featured_images":"5586547,5105290,5081434,4653840,4649398,3227635,3204175,3204151","id":268476,"singleSection":true});				  						galleries[455968] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Autumn Hafla 2011","link":"section232758_455968.html","maxRecords":0.0,"photoIDs":[8659800.0,8659802.0,8659804.0,8659805.0,8659807.0,8659809.0,8659810.0,8659811.0,8659812.0,8659813.0,8659814.0,8659815.0,8659817.0,8659819.0,8659821.0,8659822.0,8659824.0,8659825.0,8659827.0,8659829.0,8659832.0,8659846.0,8659847.0],"skipIndex":0,"section_code":"section232758","featured_images":"8659847,8659846,8659832,8659829,8659827,8659825,8659824,8659822,8659821,8659819","id":455968,"singleSection":false});				  						galleries[387805] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gothla 2010","link":"section232758_387805.html","maxRecords":0.0,"photoIDs":[7176660.0,7176663.0],"skipIndex":0,"section_code":"section232758","featured_images":"7176663,7176660","id":387805,"singleSection":false});				  						galleries[443306] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hafla Tickets","link":"section532859.html","maxRecords":0.0,"photoIDs":[8341185.0,8341216.0,8341235.0],"skipIndex":0,"section_code":"section532859","featured_images":"8341235,8341216,8341185","id":443306,"singleSection":true});				  						galleries[188017] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Profiles of the Boomshanka Tribal Belly Dancers","link":"section218705.html","maxRecords":0.0,"photoIDs":[5745340.0,5147857.0,8471295.0,8471253.0,3204158.0,8471266.0,3204136.0],"skipIndex":0,"section_code":"section218705","featured_images":"8471295,8471266,8471253,5745340,5147857,3204158,3204136","id":188017,"singleSection":true});				  						galleries[350567] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Heeley Festival 2010","link":"section232758_350567.html","maxRecords":0.0,"photoIDs":[6320482.0,6320486.0,6320488.0],"skipIndex":0,"section_code":"section232758","featured_images":"6320488,6320486,6320482","id":350567,"singleSection":false});				  						galleries[351271] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bedazzle","link":"section232758_351271.html","maxRecords":0.0,"photoIDs":[6336670.0],"skipIndex":0,"section_code":"section232758","featured_images":6336670.0,"id":351271,"singleSection":false});				  						galleries[346635] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Chance to Dance 2010","link":"section232758_346635.html","maxRecords":0.0,"photoIDs":[6220636.0,6220638.0,6220639.0,6220640.0,6325969.0,6320175.0,6320197.0,6320389.0,6320391.0,6320393.0,6325965.0,6325966.0],"skipIndex":0,"section_code":"section232758","featured_images":"6325969,6325966,6325965,6320393,6320391,6320389,6320197,6320175,6220640,6220639","id":346635,"singleSection":false});				  						galleries[324400] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ladies Night","link":"section232758_324400.html","maxRecords":0.0,"photoIDs":[5727375.0,5727376.0,5727377.0],"skipIndex":0,"section_code":"section232758","featured_images":"5727377,5727376,5727375","id":324400,"singleSection":false});				  						galleries[322261] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winter Hafla 2010","link":"section232758_322261.html","maxRecords":0.0,"photoIDs":[5689683.0,5689685.0,5689689.0,5689692.0,5689695.0,5689697.0,5721637.0],"skipIndex":0,"section_code":"section232758","featured_images":"5721637,5689697,5689695,5689692,5689689,5689685,5689683","id":322261,"singleSection":false});				  						galleries[280874] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Frozac October 2009","link":"section232758_280874.html","maxRecords":0.0,"photoIDs":[4935367.0,4935409.0,4935371.0,4935411.0,4935412.0,4935419.0],"skipIndex":0,"section_code":"section232758","featured_images":"4935419,4935412,4935411,4935409,4935371,4935367","id":280874,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5147937,5089927';
imageSets[3] = '8659847,8659846,8659832,8659829,8659827,8659825,8659824,8659822,8659821,8659819,8659817,8659815,8659814,8659813,8659812,8659811,8659810,8659809,8659807,8659805,8659804,8659802,8659800,8471295,8471266,8471253,8341235,8341216,8341185,7176663,7176660,6336670,6325969,6325966,6325965,6320488,6320486,6320482,6320397,6320393,6320391,6320389,6320197,6320175,6220640,6220639,6220638,6220636,5745340,5727377';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/boomshanka/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/boomshanka/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 += 'section218705.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 && 'section218705' != '') {
					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 = 'Boomshanka Tribal Belly Dance: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="BOOMSHANKA">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

