window.thumbnails = {};
															thumbnails[6564182] = clik.newPhoto({"id":6564182,"src":"DSC_5085-copy-rr-at-600_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_6564182.html","width":130,"caption":"","height":194});
															thumbnails[6564185] = clik.newPhoto({"id":6564185,"src":"DSC_4954-rr-at-600_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_6564185.html","width":130,"caption":"","height":194});
															thumbnails[6564186] = clik.newPhoto({"id":6564186,"src":"DSC_4929-rr-at-600_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_6564186.html","width":130,"caption":"","height":194});
															thumbnails[5718934] = clik.newPhoto({"id":5718934,"src":"DSC_0147-copy-v2_thumb.jpg","galleries_id":325739,"server_id":15,"link":"photo_5718934.html","width":130,"caption":"","height":98});
															thumbnails[5719008] = clik.newPhoto({"id":5719008,"src":"Windmill--conor-at-500_thumb.jpg","galleries_id":325739,"server_id":15,"link":"photo_5719008.html","width":130,"caption":"","height":194});
															thumbnails[3604935] = clik.newPhoto({"id":3604935,"src":"portraits-makeovers-6_thumb.jpg","galleries_id":325739,"server_id":15,"link":"photo_3604935.html","width":130,"caption":"","height":83});
															thumbnails[5750956] = clik.newPhoto({"id":5750956,"src":"DSC_0143_v2_-_Copy_thumb.jpg","galleries_id":325739,"server_id":15,"link":"photo_5750956.html","width":130,"caption":"","height":194});
															thumbnails[5719010] = clik.newPhoto({"id":5719010,"src":"Windmill-Taylor-at-500_thumb.jpg","galleries_id":325739,"server_id":15,"link":"photo_5719010.html","width":130,"caption":"","height":194});
															thumbnails[3678028] = clik.newPhoto({"id":3678028,"src":"1-web-25x20_thumb.jpg","galleries_id":220505,"server_id":15,"link":"photo_3678028.html","width":130,"caption":"","height":156});
															thumbnails[5717612] = clik.newPhoto({"id":5717612,"src":"erin-mix_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5717612.html","width":130,"caption":"","height":184});
															thumbnails[5718071] = clik.newPhoto({"id":5718071,"src":"Klopot-at-500_thumb.jpg","galleries_id":267787,"server_id":15,"link":"photo_5718071.html","width":130,"caption":"","height":176});
															thumbnails[5719175] = clik.newPhoto({"id":5719175,"src":"landscape-mix-3-600_AA9D921B-1EC9-D45B-1C68F82036240017_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5719175.html","width":130,"caption":"","height":184});
															thumbnails[6502591] = clik.newPhoto({"id":6502591,"src":"1-copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6502591.html","width":130,"caption":"","height":184});
															thumbnails[3678023] = clik.newPhoto({"id":3678023,"src":"4-web-25x20_thumb.jpg","galleries_id":220505,"server_id":15,"link":"photo_3678023.html","width":130,"caption":"","height":156});
															thumbnails[5152709] = clik.newPhoto({"id":5152709,"src":"Phortfolio_mix_A4_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5152709.html","width":130,"caption":"","height":184});
															thumbnails[3678029] = clik.newPhoto({"id":3678029,"src":"5-web-25x20_thumb.jpg","galleries_id":220505,"server_id":15,"link":"photo_3678029.html","width":130,"caption":"","height":156});
															thumbnails[5719597] = clik.newPhoto({"id":5719597,"src":"DSC_0103-at-6001_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5719597.html","width":130,"caption":"","height":184});
															thumbnails[6503032] = clik.newPhoto({"id":6503032,"src":"3_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503032.html","width":130,"caption":"","height":184});
															thumbnails[5719703] = clik.newPhoto({"id":5719703,"src":"Jiggy-Mix-9-at-6001_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5719703.html","width":130,"caption":"","height":184});
															thumbnails[3678036] = clik.newPhoto({"id":3678036,"src":"8-web-25x201_thumb.jpg","galleries_id":220505,"server_id":15,"link":"photo_3678036.html","width":130,"caption":"","height":156});
															thumbnails[5719269] = clik.newPhoto({"id":5719269,"src":"Jiggy-Mix-5-at-600_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5719269.html","width":130,"caption":"","height":184});
															thumbnails[3678031] = clik.newPhoto({"id":3678031,"src":"6-web-25x20_thumb.jpg","galleries_id":220505,"server_id":15,"link":"photo_3678031.html","width":130,"caption":"","height":156});
															thumbnails[3678037] = clik.newPhoto({"id":3678037,"src":"9-web-25x20_thumb.jpg","galleries_id":220505,"server_id":15,"link":"photo_3678037.html","width":130,"caption":"","height":156});
															thumbnails[5719274] = clik.newPhoto({"id":5719274,"src":"Jiggy-Mix-13-at-600_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5719274.html","width":130,"caption":"","height":184});
															thumbnails[6503038] = clik.newPhoto({"id":6503038,"src":"6_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503038.html","width":130,"caption":"","height":184});
															thumbnails[5153708] = clik.newPhoto({"id":5153708,"src":"DSC_0135-webisize1_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5153708.html","width":130,"caption":"","height":194});
															thumbnails[5152664] = clik.newPhoto({"id":5152664,"src":"6_DSC_0968_12x10_v2_copy_copy1_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5152664.html","width":130,"caption":"","height":156});
															thumbnails[6503039] = clik.newPhoto({"id":6503039,"src":"7_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503039.html","width":130,"caption":"","height":184});
															thumbnails[5152661] = clik.newPhoto({"id":5152661,"src":"3_DSC_0473_12x10_copy_copy12_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5152661.html","width":130,"caption":"","height":156});
															thumbnails[5152662] = clik.newPhoto({"id":5152662,"src":"4_Kopia_DSC_0975_copy_edited-12x10_small1_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5152662.html","width":130,"caption":"","height":156});
															thumbnails[6503041] = clik.newPhoto({"id":6503041,"src":"13_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503041.html","width":130,"caption":"","height":184});
															thumbnails[5719209] = clik.newPhoto({"id":5719209,"src":"mix-1-at-600_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5719209.html","width":130,"caption":"","height":184});
															thumbnails[6503044] = clik.newPhoto({"id":6503044,"src":"16_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503044.html","width":130,"caption":"","height":184});
															thumbnails[8411676] = clik.newPhoto({"id":8411676,"src":"1111_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411676.html","width":130,"caption":"","height":129});
															thumbnails[8411678] = clik.newPhoto({"id":8411678,"src":"211_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411678.html","width":130,"caption":"","height":71});
															thumbnails[5823921] = clik.newPhoto({"id":5823921,"src":"DSC_0116-at-5002_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5823921.html","width":130,"caption":"","height":184});
															thumbnails[8411679] = clik.newPhoto({"id":8411679,"src":"311_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411679.html","width":130,"caption":"","height":95});
															thumbnails[5037464] = clik.newPhoto({"id":5037464,"src":"edinburgh-poster-websize_B6E2F6A0-1D09-001F-9915189FD23E4A0F_thumb.jpg","galleries_id":219984,"server_id":15,"link":"photo_5037464.html","width":130,"caption":"","height":184});
															thumbnails[6503047] = clik.newPhoto({"id":6503047,"src":"18_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503047.html","width":130,"caption":"","height":184});
															thumbnails[8411680] = clik.newPhoto({"id":8411680,"src":"411_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411680.html","width":130,"caption":"","height":130});
															thumbnails[6503051] = clik.newPhoto({"id":6503051,"src":"20_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503051.html","width":130,"caption":"","height":184});
															thumbnails[8411681] = clik.newPhoto({"id":8411681,"src":"511_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411681.html","width":130,"caption":"","height":130});
															thumbnails[8411683] = clik.newPhoto({"id":8411683,"src":"611_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411683.html","width":130,"caption":"","height":130});
															thumbnails[6094144] = clik.newPhoto({"id":6094144,"src":"Expressions-at-5001_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_6094144.html","width":130,"caption":"","height":163});
															thumbnails[6503053] = clik.newPhoto({"id":6503053,"src":"29_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503053.html","width":130,"caption":"","height":184});
															thumbnails[8411685] = clik.newPhoto({"id":8411685,"src":"711_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411685.html","width":130,"caption":"","height":71});
															thumbnails[6571254] = clik.newPhoto({"id":6571254,"src":"DSC_0395-at-600_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_6571254.html","width":130,"caption":"","height":196});
															thumbnails[8411686] = clik.newPhoto({"id":8411686,"src":"811_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411686.html","width":130,"caption":"","height":130});
															thumbnails[6094147] = clik.newPhoto({"id":6094147,"src":"DSC_3559-BnW-at-500-in-fram_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_6094147.html","width":130,"caption":"","height":161});
															thumbnails[6503059] = clik.newPhoto({"id":6503059,"src":"31_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503059.html","width":130,"caption":"","height":184});
															thumbnails[8411687] = clik.newPhoto({"id":8411687,"src":"1011_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411687.html","width":130,"caption":"","height":71});
															thumbnails[5825351] = clik.newPhoto({"id":5825351,"src":"DSC_0652-at-500_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_5825351.html","width":130,"caption":"","height":184});
															thumbnails[5718819] = clik.newPhoto({"id":5718819,"src":"DSC_0662-less-red-at-500_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_5718819.html","width":130,"caption":"","height":194});
															thumbnails[8411690] = clik.newPhoto({"id":8411690,"src":"1211_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411690.html","width":130,"caption":"","height":66});
															thumbnails[6503062] = clik.newPhoto({"id":6503062,"src":"33_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503062.html","width":130,"caption":"","height":184});
															thumbnails[8411689] = clik.newPhoto({"id":8411689,"src":"11111_thumb.jpg","galleries_id":219985,"server_id":19,"link":"photo_8411689.html","width":130,"caption":"","height":130});
															thumbnails[5852705] = clik.newPhoto({"id":5852705,"src":"DSC_0529-in-frame-at-5001_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_5852705.html","width":130,"caption":"","height":194});
															thumbnails[6503065] = clik.newPhoto({"id":6503065,"src":"35_copy_copy_thumb.jpg","galleries_id":357905,"server_id":15,"link":"photo_6503065.html","width":130,"caption":"","height":184});
															thumbnails[5717563] = clik.newPhoto({"id":5717563,"src":"DSC_1217_finished_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_5717563.html","width":130,"caption":"","height":194});
															thumbnails[4605568] = clik.newPhoto({"id":4605568,"src":"DSC_0006-web-at-500x747-bez_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_4605568.html","width":130,"caption":"","height":194});
															thumbnails[6571255] = clik.newPhoto({"id":6571255,"src":"4-copy-at-600_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_6571255.html","width":130,"caption":"","height":196});
															thumbnails[3732779] = clik.newPhoto({"id":3732779,"src":"56-web-5001_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_3732779.html","width":130,"caption":"","height":194});
															thumbnails[5854691] = clik.newPhoto({"id":5854691,"src":"DSC_0101-at-500_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_5854691.html","width":130,"caption":"","height":184});
															thumbnails[5823948] = clik.newPhoto({"id":5823948,"src":"DSC_2509-copy-at-600_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_5823948.html","width":130,"caption":"","height":87});
															thumbnails[6571257] = clik.newPhoto({"id":6571257,"src":"DSC_0352-at-600_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_6571257.html","width":130,"caption":"","height":86});
															thumbnails[6571258] = clik.newPhoto({"id":6571258,"src":"5-copy-at-600_thumb.jpg","galleries_id":228483,"server_id":15,"link":"photo_6571258.html","width":130,"caption":"","height":86});
															thumbnails[4192327] = clik.newPhoto({"id":4192327,"src":"6-close-before-cat-500_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192327.html","width":130,"caption":"BEFORE","height":130});
															thumbnails[4192326] = clik.newPhoto({"id":4192326,"src":"6-close-after-cat-500_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192326.html","width":130,"caption":"AFTER","height":130});
															thumbnails[4192568] = clik.newPhoto({"id":4192568,"src":"1-close-before-zelda-500_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192568.html","width":130,"caption":"BEFORE","height":130});
															thumbnails[4192567] = clik.newPhoto({"id":4192567,"src":"1-close-after-zelda-500_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192567.html","width":130,"caption":"AFTER","height":130});
															thumbnails[4192805] = clik.newPhoto({"id":4192805,"src":"DSC_0662-eyes-before-bigger_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192805.html","width":130,"caption":"BEFORE","height":104});
															thumbnails[4192804] = clik.newPhoto({"id":4192804,"src":"DSC_0662-eyes-after-bigger_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192804.html","width":130,"caption":"AFTER","height":104});
															thumbnails[4192329] = clik.newPhoto({"id":4192329,"src":"DSC_0662-lips-before-500_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192329.html","width":130,"caption":"BEFORE","height":104});
															thumbnails[4192328] = clik.newPhoto({"id":4192328,"src":"DSC_0662-lips-after-500_thumb.jpg","galleries_id":220506,"server_id":15,"link":"photo_4192328.html","width":130,"caption":"AFTER","height":104});
															thumbnails[4581631] = clik.newPhoto({"id":4581631,"src":"0808-691-websize_thumb.jpg","galleries_id":265797,"server_id":15,"link":"photo_4581631.html","width":130,"caption":"","height":98});
															thumbnails[4037250] = clik.newPhoto({"id":4037250,"src":"DSC_0418-width-540_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_4037250.html","width":130,"caption":"","height":109});
															thumbnails[6094020] = clik.newPhoto({"id":6094020,"src":"Expressions-at-500_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_6094020.html","width":130,"caption":"","height":163});
															thumbnails[5825398] = clik.newPhoto({"id":5825398,"src":"DSC_0652-at-5001_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_5825398.html","width":130,"caption":"","height":184});
															thumbnails[3732421] = clik.newPhoto({"id":3732421,"src":"DSC_0662-less-red-at-5001_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_3732421.html","width":130,"caption":"","height":194});
															thumbnails[5719821] = clik.newPhoto({"id":5719821,"src":"Windmill--conor-at-5001_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_5719821.html","width":130,"caption":"","height":194});
															thumbnails[5854700] = clik.newPhoto({"id":5854700,"src":"DSC_0101-at-5001_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_5854700.html","width":130,"caption":"","height":184});
															thumbnails[3640517] = clik.newPhoto({"id":3640517,"src":"DSC_0473-500_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_3640517.html","width":130,"caption":"","height":194});
															thumbnails[5152707] = clik.newPhoto({"id":5152707,"src":"1_Portrait_thumb.jpg","galleries_id":281338,"server_id":15,"link":"photo_5152707.html","width":130,"caption":"","height":194});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[219984] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Professional Portfolios","link":"gallery_219984.html","maxRecords":0.0,"photoIDs":[6564182.0,6564185.0,6564186.0,5717612.0,5719175.0,5152709.0,5719597.0,5719703.0,5719269.0,5719274.0,5153708.0,5152664.0,5152661.0,5152662.0,5719209.0,5823921.0,5037464.0],"skipIndex":0,"section_code":"gallery","featured_images":5152661.0,"id":219984,"singleSection":false});				  						galleries[228483] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits and Makeovers","link":"gallery_228483.html","maxRecords":0.0,"photoIDs":[6094144.0,6571254.0,6094147.0,5825351.0,5718819.0,5852705.0,5717563.0,4605568.0,6571255.0,3732779.0,5854691.0,5823948.0,6571257.0,6571258.0],"skipIndex":0,"section_code":"gallery","featured_images":5717563.0,"id":228483,"singleSection":false});				  						galleries[325739] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_325739.html","maxRecords":0.0,"photoIDs":[5718934.0,5719008.0,3604935.0,5750956.0,5719010.0],"skipIndex":0,"section_code":"gallery","featured_images":5750956.0,"id":325739,"singleSection":false});				  						galleries[357905] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PR photography","link":"gallery_357905.html","maxRecords":0.0,"photoIDs":[6502591.0,6503032.0,6503038.0,6503039.0,6503041.0,6503044.0,6503047.0,6503051.0,6503053.0,6503059.0,6503062.0,6503065.0],"skipIndex":0,"section_code":"gallery","featured_images":6503039.0,"id":357905,"singleSection":false});				  						galleries[219985] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Photography ","link":"gallery_219985.html","maxRecords":0.0,"photoIDs":[8411676.0,8411678.0,8411679.0,8411680.0,8411681.0,8411683.0,8411685.0,8411686.0,8411687.0,8411690.0,8411689.0],"skipIndex":0,"section_code":"gallery","featured_images":"8411690,8411689,8411687,8411686,8411685,8411683,8411681,8411680,8411679,8411678","id":219985,"singleSection":false});				  						galleries[220505] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events ","link":"gallery_220505.html","maxRecords":0.0,"photoIDs":[3678028.0,3678023.0,3678029.0,3678036.0,3678031.0,3678037.0],"skipIndex":0,"section_code":"gallery","featured_images":3678031.0,"id":220505,"singleSection":false});				  						galleries[220506] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Retouching","link":"section306898.html","maxRecords":0.0,"photoIDs":[4192327.0,4192326.0,4192568.0,4192567.0,4192805.0,4192804.0,4192329.0,4192328.0],"skipIndex":0,"section_code":"section306898","featured_images":4192567.0,"id":220506,"singleSection":true});				  						galleries[267787] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_267787.html","maxRecords":0.0,"photoIDs":[5718071.0],"skipIndex":0,"section_code":"gallery","featured_images":5718071.0,"id":267787,"singleSection":false});				  						galleries[281338] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Images for homepage","link":"section319692_281338.html","maxRecords":0.0,"photoIDs":[4037250.0,6094020.0,5825398.0,3732421.0,5719821.0,5854700.0,3640517.0,5152707.0],"skipIndex":0,"section_code":"section319692","featured_images":3640517.0,"id":281338,"singleSection":true});				  						galleries[265797] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Booking sheet","link":"section319692.html","maxRecords":0.0,"photoIDs":[4581631.0],"skipIndex":0,"section_code":"section319692","featured_images":4581631.0,"id":265797,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[227287] = '8411676,8411678,8411679,8411680,8411681,8411683,8411685,8411686,8411687,8411690,8411689';
imageSets[1] = '4037250,6094020,5825398,3732421,5719821,5854700,3640517,3732779';
imageSets[2] = '5750956,5718071,4192567,3678031,6503039,5152661,3640517,5717563';
imageSets[3] = '4581631';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/anulapank/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/anulapank/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/anulapank/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/anulapank/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/anulapank/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/anulapank/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/anulapank/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$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 = 'Portrait & Makeover Photographer Bolton Manchester: ' + 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>Payment options:</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="ANULAPANK">';
			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;
	}
}

			

