window.thumbnails = {};
															thumbnails[7839013] = clik.newPhoto({"id":7839013,"src":"Band-wide-shot-web_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_7839013.html","width":130,"caption":"","height":92});
															thumbnails[4512407] = clik.newPhoto({"id":4512407,"src":"2008_05_11_0283_edited-1-1_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4512407.html","width":130,"caption":"","height":87});
															thumbnails[4512409] = clik.newPhoto({"id":4512409,"src":"2008_05_11_0300_edited-1-1_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_4512409.html","width":130,"caption":"","height":87});
															thumbnails[4512415] = clik.newPhoto({"id":4512415,"src":"DSC_3631_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4512415.html","width":130,"caption":"","height":194});
															thumbnails[4512418] = clik.newPhoto({"id":4512418,"src":"DSC_3710_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4512418.html","width":130,"caption":"","height":194});
															thumbnails[4512420] = clik.newPhoto({"id":4512420,"src":"DSC_3756_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4512420.html","width":130,"caption":"","height":194});
															thumbnails[4512424] = clik.newPhoto({"id":4512424,"src":"DSCF2466_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4512424.html","width":130,"caption":"","height":98});
															thumbnails[4512425] = clik.newPhoto({"id":4512425,"src":"DSCF2467_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4512425.html","width":130,"caption":"Desperado SECC 2008","height":98});
															thumbnails[4512426] = clik.newPhoto({"id":4512426,"src":"Eddie_Jones_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4512426.html","width":130,"caption":"","height":92});
															thumbnails[4512427] = clik.newPhoto({"id":4512427,"src":"Mark_Anderson_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_4512427.html","width":130,"caption":"","height":92});
															thumbnails[4512428] = clik.newPhoto({"id":4512428,"src":"Queens_Hall_March_20055808_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4512428.html","width":130,"caption":"Queens Hall 2006","height":87});
															thumbnails[4512432] = clik.newPhoto({"id":4512432,"src":"Queens_Hall_March_20055809_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4512432.html","width":130,"caption":"","height":195});
															thumbnails[4512434] = clik.newPhoto({"id":4512434,"src":"Queens_Hall_March_20055821_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4512434.html","width":130,"caption":"","height":195});
															thumbnails[4512436] = clik.newPhoto({"id":4512436,"src":"Queens_Hall_March_20055831_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_4512436.html","width":130,"caption":"","height":195});
															thumbnails[4512440] = clik.newPhoto({"id":4512440,"src":"Queens_Hall_March_20055977_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4512440.html","width":130,"caption":"","height":195});
															thumbnails[4512441] = clik.newPhoto({"id":4512441,"src":"Queens_Hall_March_20055984_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_4512441.html","width":130,"caption":"","height":195});
															thumbnails[4512442] = clik.newPhoto({"id":4512442,"src":"Queens_Hall_March_20056001_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_4512442.html","width":130,"caption":"","height":195});
															thumbnails[4514343] = clik.newPhoto({"id":4514343,"src":"Don_6_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514343.html","width":130,"caption":"Playing with Don Felder at Dunhill Cup 2005","height":129});
															thumbnails[4514357] = clik.newPhoto({"id":4514357,"src":"DSC_0005_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4514357.html","width":130,"caption":"","height":87});
															thumbnails[4514358] = clik.newPhoto({"id":4514358,"src":"DSC_0006_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514358.html","width":130,"caption":"","height":87});
															thumbnails[4514360] = clik.newPhoto({"id":4514360,"src":"DSC_0008_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514360.html","width":130,"caption":"","height":87});
															thumbnails[4514364] = clik.newPhoto({"id":4514364,"src":"DSC_3626_1_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514364.html","width":130,"caption":"SECC 2008","height":83});
															thumbnails[4514366] = clik.newPhoto({"id":4514366,"src":"DSC_3635_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4514366.html","width":130,"caption":"Melbourne Music Festival 2007","height":87});
															thumbnails[4514367] = clik.newPhoto({"id":4514367,"src":"DSC_3639_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514367.html","width":130,"caption":"","height":87});
															thumbnails[4514368] = clik.newPhoto({"id":4514368,"src":"DSC_3673_1_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514368.html","width":130,"caption":"","height":73});
															thumbnails[4514369] = clik.newPhoto({"id":4514369,"src":"DSC_3701_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4514369.html","width":130,"caption":"","height":87});
															thumbnails[4514372] = clik.newPhoto({"id":4514372,"src":"Felder_Dunhill_1-10-05_014_1_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514372.html","width":130,"caption":"Jim with Don Felder 2005","height":107});
															thumbnails[4514373] = clik.newPhoto({"id":4514373,"src":"Kilmarnock_20070003_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514373.html","width":130,"caption":"Banter...","height":87});
															thumbnails[4514487] = clik.newPhoto({"id":4514487,"src":"Lasswade_02-04_44_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_4514487.html","width":130,"caption":"","height":96});
															thumbnails[4514489] = clik.newPhoto({"id":4514489,"src":"Lasswade_02-04_48_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4514489.html","width":130,"caption":"","height":96});
															thumbnails[4514490] = clik.newPhoto({"id":4514490,"src":"Lasswade_02-04_150_1_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4514490.html","width":130,"caption":"","height":139});
															thumbnails[4514500] = clik.newPhoto({"id":4514500,"src":"P1030622_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_4514500.html","width":130,"caption":"","height":98});
															thumbnails[4514501] = clik.newPhoto({"id":4514501,"src":"P1030658_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_4514501.html","width":130,"caption":"Rocky Mountain Way","height":98});
															thumbnails[4644954] = clik.newPhoto({"id":4644954,"src":"2008_05_31_0514_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_4644954.html","width":130,"caption":"","height":87});
															thumbnails[4644956] = clik.newPhoto({"id":4644956,"src":"2008_05_31_0515_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_4644956.html","width":130,"caption":"","height":87});
															thumbnails[4686234] = clik.newPhoto({"id":4686234,"src":"DSCF2460_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_4686234.html","width":130,"caption":"","height":98});
															thumbnails[4686240] = clik.newPhoto({"id":4686240,"src":"DSCF2462_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_4686240.html","width":130,"caption":"","height":91});
															thumbnails[6864316] = clik.newPhoto({"id":6864316,"src":"DSC_4350_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_6864316.html","width":130,"caption":"","height":86});
															thumbnails[6864326] = clik.newPhoto({"id":6864326,"src":"DSC_4396_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_6864326.html","width":130,"caption":"","height":195});
															thumbnails[8254606] = clik.newPhoto({"id":8254606,"src":"062_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_8254606.html","width":130,"caption":"","height":195});
															thumbnails[8254608] = clik.newPhoto({"id":8254608,"src":"105_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_8254608.html","width":130,"caption":"","height":86});
															thumbnails[8254609] = clik.newPhoto({"id":8254609,"src":"121_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_8254609.html","width":130,"caption":"","height":86});
															thumbnails[8254611] = clik.newPhoto({"id":8254611,"src":"214_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_8254611.html","width":130,"caption":"","height":86});
															thumbnails[8254612] = clik.newPhoto({"id":8254612,"src":"240_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_8254612.html","width":130,"caption":"","height":86});
															thumbnails[8254613] = clik.newPhoto({"id":8254613,"src":"253_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_8254613.html","width":130,"caption":"","height":86});
															thumbnails[8254614] = clik.newPhoto({"id":8254614,"src":"Hotel_California120_thumb.jpg","galleries_id":262326,"server_id":18,"link":"photo_8254614.html","width":130,"caption":"","height":87});
															thumbnails[8254616] = clik.newPhoto({"id":8254616,"src":"013_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_8254616.html","width":130,"caption":"","height":86});
															thumbnails[8254617] = clik.newPhoto({"id":8254617,"src":"293_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_8254617.html","width":130,"caption":"","height":86});
															thumbnails[8254618] = clik.newPhoto({"id":8254618,"src":"304_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_8254618.html","width":130,"caption":"","height":195});
															thumbnails[8254619] = clik.newPhoto({"id":8254619,"src":"309_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_8254619.html","width":130,"caption":"","height":86});
															thumbnails[8254620] = clik.newPhoto({"id":8254620,"src":"325_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_8254620.html","width":130,"caption":"","height":195});
															thumbnails[8254622] = clik.newPhoto({"id":8254622,"src":"Hotel_California115_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_8254622.html","width":130,"caption":"","height":87});
															thumbnails[8254624] = clik.newPhoto({"id":8254624,"src":"Hotel_California1201_thumb.jpg","galleries_id":262333,"server_id":18,"link":"photo_8254624.html","width":130,"caption":"","height":87});
															thumbnails[8254641] = clik.newPhoto({"id":8254641,"src":"012_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_8254641.html","width":130,"caption":"","height":195});
															thumbnails[8254642] = clik.newPhoto({"id":8254642,"src":"128_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_8254642.html","width":130,"caption":"","height":86});
															thumbnails[8254643] = clik.newPhoto({"id":8254643,"src":"130_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_8254643.html","width":130,"caption":"","height":86});
															thumbnails[8254645] = clik.newPhoto({"id":8254645,"src":"140_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_8254645.html","width":130,"caption":"","height":86});
															thumbnails[8254646] = clik.newPhoto({"id":8254646,"src":"230_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_8254646.html","width":130,"caption":"","height":86});
															thumbnails[8254649] = clik.newPhoto({"id":8254649,"src":"322_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_8254649.html","width":130,"caption":"","height":86});
															thumbnails[8254650] = clik.newPhoto({"id":8254650,"src":"Hotel_California65_thumb.jpg","galleries_id":262334,"server_id":18,"link":"photo_8254650.html","width":130,"caption":"","height":87});
															thumbnails[8254659] = clik.newPhoto({"id":8254659,"src":"135_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254659.html","width":130,"caption":"","height":86});
															thumbnails[8254660] = clik.newPhoto({"id":8254660,"src":"138_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254660.html","width":130,"caption":"","height":86});
															thumbnails[8254661] = clik.newPhoto({"id":8254661,"src":"178_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254661.html","width":130,"caption":"","height":195});
															thumbnails[8254663] = clik.newPhoto({"id":8254663,"src":"233_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254663.html","width":130,"caption":"","height":86});
															thumbnails[8254665] = clik.newPhoto({"id":8254665,"src":"265_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254665.html","width":130,"caption":"","height":86});
															thumbnails[8254667] = clik.newPhoto({"id":8254667,"src":"282_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254667.html","width":130,"caption":"","height":86});
															thumbnails[8254669] = clik.newPhoto({"id":8254669,"src":"333_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254669.html","width":130,"caption":"","height":86});
															thumbnails[8254670] = clik.newPhoto({"id":8254670,"src":"364_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254670.html","width":130,"caption":"","height":86});
															thumbnails[8254671] = clik.newPhoto({"id":8254671,"src":"Hotel_California39_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254671.html","width":130,"caption":"","height":87});
															thumbnails[8254673] = clik.newPhoto({"id":8254673,"src":"Hotel_California107_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254673.html","width":130,"caption":"","height":87});
															thumbnails[8254674] = clik.newPhoto({"id":8254674,"src":"Hotel_California118_thumb.jpg","galleries_id":262335,"server_id":18,"link":"photo_8254674.html","width":130,"caption":"","height":87});
															thumbnails[8254681] = clik.newPhoto({"id":8254681,"src":"110_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_8254681.html","width":130,"caption":"","height":195});
															thumbnails[8254682] = clik.newPhoto({"id":8254682,"src":"155_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_8254682.html","width":130,"caption":"","height":195});
															thumbnails[8254684] = clik.newPhoto({"id":8254684,"src":"187_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_8254684.html","width":130,"caption":"","height":86});
															thumbnails[8254685] = clik.newPhoto({"id":8254685,"src":"206_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_8254685.html","width":130,"caption":"","height":86});
															thumbnails[8254687] = clik.newPhoto({"id":8254687,"src":"296_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_8254687.html","width":130,"caption":"","height":86});
															thumbnails[8254688] = clik.newPhoto({"id":8254688,"src":"Hotel_California122_thumb.jpg","galleries_id":262325,"server_id":18,"link":"photo_8254688.html","width":130,"caption":"","height":87});
															thumbnails[8254695] = clik.newPhoto({"id":8254695,"src":"077_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_8254695.html","width":130,"caption":"","height":86});
															thumbnails[8254697] = clik.newPhoto({"id":8254697,"src":"092_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_8254697.html","width":130,"caption":"","height":86});
															thumbnails[8254698] = clik.newPhoto({"id":8254698,"src":"099_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_8254698.html","width":130,"caption":"","height":86});
															thumbnails[8254700] = clik.newPhoto({"id":8254700,"src":"Hotel_California_12_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_8254700.html","width":130,"caption":"","height":87});
															thumbnails[8254701] = clik.newPhoto({"id":8254701,"src":"Hotel_California_15_thumb.jpg","galleries_id":262603,"server_id":18,"link":"photo_8254701.html","width":130,"caption":"","height":87});
															thumbnails[4618100] = clik.newPhoto({"id":4618100,"src":"Gallery3_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4618100.html","width":130,"caption":"","height":171});
															thumbnails[4618158] = clik.newPhoto({"id":4618158,"src":"Audio_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4618158.html","width":130,"caption":"","height":171});
															thumbnails[4618168] = clik.newPhoto({"id":4618168,"src":"Links_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4618168.html","width":130,"caption":"","height":171});
															thumbnails[4618240] = clik.newPhoto({"id":4618240,"src":"vegaside2_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4618240.html","width":130,"caption":"","height":171});
															thumbnails[4618247] = clik.newPhoto({"id":4618247,"src":"Video_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4618247.html","width":130,"caption":"","height":171});
															thumbnails[4618261] = clik.newPhoto({"id":4618261,"src":"Contact_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4618261.html","width":130,"caption":"","height":171});
															thumbnails[4625286] = clik.newPhoto({"id":4625286,"src":"History_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4625286.html","width":130,"caption":"","height":171});
															thumbnails[4625288] = clik.newPhoto({"id":4625288,"src":"Guestbook_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4625288.html","width":130,"caption":"","height":171});
															thumbnails[4625290] = clik.newPhoto({"id":4625290,"src":"News_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_4625290.html","width":130,"caption":"","height":171});
															thumbnails[5403247] = clik.newPhoto({"id":5403247,"src":"Download_Panel_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_5403247.html","width":130,"caption":"","height":171});
															thumbnails[5403267] = clik.newPhoto({"id":5403267,"src":"Tour_thumb.jpg","galleries_id":266952,"server_id":18,"link":"photo_5403267.html","width":130,"caption":"","height":171});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[266952] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hidden","link":"section321386.html","maxRecords":0.0,"photoIDs":[4618100.0,4618158.0,4618168.0,4618240.0,4618247.0,4618261.0,4625286.0,4625288.0,4625290.0,5403247.0,5403267.0],"skipIndex":0,"section_code":"section321386","featured_images":"5403267,5403247,4625290,4625288,4625286,4618261,4618247,4618240,4618168,4618158","id":266952,"singleSection":true});				  						galleries[262603] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Various stuff","link":"gallery_262603.html","maxRecords":0.0,"photoIDs":[7839013.0,4514343.0,4514358.0,4514360.0,4514364.0,4514367.0,4514368.0,4514372.0,4514373.0,4514487.0,8254695.0,8254697.0,8254698.0,8254700.0,8254701.0],"skipIndex":0,"section_code":"gallery","featured_images":"8254701,8254700,8254698,8254697,8254695,7839013,4514487,4514373,4514372,4514368","id":262603,"singleSection":false});				  						galleries[262325] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Eddie Jones","link":"gallery_262325.html","maxRecords":0.0,"photoIDs":[4512407.0,4512415.0,4512418.0,4512420.0,4512424.0,4512426.0,4514357.0,4514366.0,4514369.0,4686234.0,8254681.0,8254682.0,8254684.0,8254685.0,8254687.0,8254688.0],"skipIndex":0,"section_code":"gallery","featured_images":4512426.0,"id":262325,"singleSection":false});				  						galleries[262326] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Davie Moss","link":"gallery_262326.html","maxRecords":0.0,"photoIDs":[6864316.0,8254606.0,8254608.0,8254609.0,8254611.0,8254612.0,8254613.0,8254614.0],"skipIndex":0,"section_code":"gallery","featured_images":"8254614,8254613,8254612,8254611,8254609,8254608,8254606,6864316","id":262326,"singleSection":false});				  						galleries[262333] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Kenny Archibald","link":"gallery_262333.html","maxRecords":0.0,"photoIDs":[4512436.0,4512441.0,4512442.0,4514500.0,4644956.0,4686240.0,8254616.0,8254617.0,8254618.0,8254619.0,8254620.0,8254622.0,8254624.0],"skipIndex":0,"section_code":"gallery","featured_images":"8254624,8254622,8254620,8254619,8254618,8254617,8254616,4686240,4644956,4514500","id":262333,"singleSection":false});				  						galleries[262334] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Mark Anderson","link":"gallery_262334.html","maxRecords":0.0,"photoIDs":[4512409.0,4512427.0,4644954.0,6864326.0,8254641.0,8254642.0,8254643.0,8254645.0,8254646.0,8254649.0,8254650.0],"skipIndex":0,"section_code":"gallery","featured_images":4512427.0,"id":262334,"singleSection":false});				  						galleries[262335] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Jim Bowie","link":"gallery_262335.html","maxRecords":0.0,"photoIDs":[4512425.0,4512428.0,4512432.0,4512434.0,4512440.0,4514489.0,4514490.0,4514501.0,8254659.0,8254660.0,8254661.0,8254663.0,8254665.0,8254667.0,8254669.0,8254670.0,8254671.0,8254673.0,8254674.0],"skipIndex":0,"section_code":"gallery","featured_images":"8254674,8254673,8254671,8254670,8254669,8254667,8254665,8254663,8254661,8254660","id":262335,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7839013,4514368,4514367,4514364';
imageSets[2] = '4512427,4512426';
imageSets[3] = '4514368,4514367,4514364';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/hotelcalifornia/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/hotelcalifornia/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 = 'Hotel California: ' + 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="">';
					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="">';
				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;
	}
}

			

