window.thumbnails = {};
															thumbnails[3874807] = clik.newPhoto({"id":3874807,"src":"ID_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":109,"caption":"","height":130});
															thumbnails[8832494] = clik.newPhoto({"id":8832494,"src":"203_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_8832494.html","width":130,"caption":"The Wall","height":130});
															thumbnails[8796940] = clik.newPhoto({"id":8796940,"src":"201_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_8796940.html","width":130,"caption":"Personel Tree","height":130});
															thumbnails[8796971] = clik.newPhoto({"id":8796971,"src":"92_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_8796971.html","width":130,"caption":"Too Late","height":130});
															thumbnails[8796976] = clik.newPhoto({"id":8796976,"src":"93_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_8796976.html","width":130,"caption":"A Far Cry","height":130});
															thumbnails[8797073] = clik.newPhoto({"id":8797073,"src":"95_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_8797073.html","width":130,"caption":"Sad Situation","height":130});
															thumbnails[8735008] = clik.newPhoto({"id":8735008,"src":"90_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_8735008.html","width":130,"caption":"Three Islands","height":130});
															thumbnails[8607926] = clik.newPhoto({"id":8607926,"src":"_DSC5771_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_8607926.html","width":130,"caption":"Days Are Numbers IV","height":130});
															thumbnails[8467343] = clik.newPhoto({"id":8467343,"src":"certain_end_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_8467343.html","width":130,"caption":"Certain End","height":130});
															thumbnails[7185460] = clik.newPhoto({"id":7185460,"src":"089_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_7185460.html","width":130,"caption":"Never","height":130});
															thumbnails[7142268] = clik.newPhoto({"id":7142268,"src":"085_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_7142268.html","width":130,"caption":"Runaway","height":130});
															thumbnails[7142274] = clik.newPhoto({"id":7142274,"src":"087_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_7142274.html","width":130,"caption":"Wait","height":130});
															thumbnails[6754383] = clik.newPhoto({"id":6754383,"src":"81_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_6754383.html","width":130,"caption":"Days Are Numbers II","height":130});
															thumbnails[6234937] = clik.newPhoto({"id":6234937,"src":"079_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_6234937.html","width":130,"caption":"Parliament Building","height":130});
															thumbnails[6519209] = clik.newPhoto({"id":6519209,"src":"080_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_6519209.html","width":130,"caption":"Under The Bridge","height":130});
															thumbnails[7142237] = clik.newPhoto({"id":7142237,"src":"083_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_7142237.html","width":130,"caption":"The Heroes' Square","height":130});
															thumbnails[5688466] = clik.newPhoto({"id":5688466,"src":"019_8CC022B8-1D09-001F-99BED5D25A81BF90_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_5688466.html","width":130,"caption":"Early Morning II","height":130});
															thumbnails[5695891] = clik.newPhoto({"id":5695891,"src":"077_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5695891.html","width":130,"caption":"Disappearing","height":130});
															thumbnails[5695894] = clik.newPhoto({"id":5695894,"src":"078_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5695894.html","width":130,"caption":"Fragile","height":130});
															thumbnails[6754385] = clik.newPhoto({"id":6754385,"src":"82_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_6754385.html","width":130,"caption":"Away We Go","height":130});
															thumbnails[5618166] = clik.newPhoto({"id":5618166,"src":"076_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5618166.html","width":130,"caption":"Missing","height":130});
															thumbnails[5314675] = clik.newPhoto({"id":5314675,"src":"71_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5314675.html","width":130,"caption":"Last Hope II","height":130});
															thumbnails[5314678] = clik.newPhoto({"id":5314678,"src":"072_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5314678.html","width":130,"caption":"Stand Still","height":130});
															thumbnails[5541094] = clik.newPhoto({"id":5541094,"src":"_DSC3692_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5541094.html","width":130,"caption":"Shelter","height":130});
															thumbnails[3587264] = clik.newPhoto({"id":3587264,"src":"0351_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3587264.html","width":130,"caption":"Different Levels","height":130});
															thumbnails[5295930] = clik.newPhoto({"id":5295930,"src":"070_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5295930.html","width":130,"caption":"Hidden","height":130});
															thumbnails[5242188] = clik.newPhoto({"id":5242188,"src":"068_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5242188.html","width":130,"caption":"Eight Line Poem","height":130});
															thumbnails[3987602] = clik.newPhoto({"id":3987602,"src":"056_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3987602.html","width":130,"caption":"Rain","height":130});
															thumbnails[5189535] = clik.newPhoto({"id":5189535,"src":"018_4BC3154E-1D09-001F-995E9CDC5975EF71_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_5189535.html","width":130,"caption":"Early Morning","height":130});
															thumbnails[4469913] = clik.newPhoto({"id":4469913,"src":"062_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_4469913.html","width":130,"caption":460.0,"height":130});
															thumbnails[4514785] = clik.newPhoto({"id":4514785,"src":"013_1_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_4514785.html","width":130,"caption":"Return To Fantasy","height":130});
															thumbnails[4326882] = clik.newPhoto({"id":4326882,"src":"012_1_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_4326882.html","width":130,"caption":"The Path II","height":130});
															thumbnails[4330980] = clik.newPhoto({"id":4330980,"src":"061_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_4330980.html","width":130,"caption":"The Path","height":130});
															thumbnails[4025616] = clik.newPhoto({"id":4025616,"src":"058_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_4025616.html","width":130,"caption":"Last Hope","height":130});
															thumbnails[4059217] = clik.newPhoto({"id":4059217,"src":"0555_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_4059217.html","width":130,"caption":"Sunday","height":130});
															thumbnails[3950102] = clik.newPhoto({"id":3950102,"src":"052_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3950102.html","width":130,"caption":"The Waking Edge","height":130});
															thumbnails[3950792] = clik.newPhoto({"id":3950792,"src":"053_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3950792.html","width":130,"caption":"Cognitive Dissonance","height":130});
															thumbnails[3961744] = clik.newPhoto({"id":3961744,"src":"054_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3961744.html","width":130,"caption":"Stream of Consciousness","height":130});
															thumbnails[3807843] = clik.newPhoto({"id":3807843,"src":"0152_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3807843.html","width":130,"caption":"No Man's Land II","height":130});
															thumbnails[3865823] = clik.newPhoto({"id":3865823,"src":"_DSC2259-2_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3865823.html","width":130,"caption":"Whispering Wind","height":130});
															thumbnails[4565446] = clik.newPhoto({"id":4565446,"src":"063_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_4565446.html","width":130,"caption":"No Man's Land II","height":130});
															thumbnails[3757171] = clik.newPhoto({"id":3757171,"src":"039_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3757171.html","width":130,"caption":"Choices","height":130});
															thumbnails[3759575] = clik.newPhoto({"id":3759575,"src":"_DSC2190tn_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3759575.html","width":130,"caption":"Leaving","height":130});
															thumbnails[3808616] = clik.newPhoto({"id":3808616,"src":"04212_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3808616.html","width":130,"caption":"Time To Leave","height":130});
															thumbnails[3674624] = clik.newPhoto({"id":3674624,"src":"038_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3674624.html","width":130,"caption":"One More River","height":130});
															thumbnails[3516967] = clik.newPhoto({"id":3516967,"src":"033_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3516967.html","width":130,"caption":"Perpetual Change","height":130});
															thumbnails[3615176] = clik.newPhoto({"id":3615176,"src":"0371_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3615176.html","width":130,"caption":"Perpetual Change II","height":130});
															thumbnails[3587261] = clik.newPhoto({"id":3587261,"src":"0151_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3587261.html","width":130,"caption":"Swept Away","height":130});
															thumbnails[3587267] = clik.newPhoto({"id":3587267,"src":"036_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3587267.html","width":130,"caption":"The Passage","height":130});
															thumbnails[3545191] = clik.newPhoto({"id":3545191,"src":"0112_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3545191.html","width":130,"caption":"Hang On To A Dream","height":130});
															thumbnails[3474623] = clik.newPhoto({"id":3474623,"src":"0041_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474623.html","width":130,"caption":"Steel Rain","height":130});
															thumbnails[3474624] = clik.newPhoto({"id":3474624,"src":"005_1_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474624.html","width":130,"caption":"Mind Drive","height":130});
															thumbnails[3474619] = clik.newPhoto({"id":3474619,"src":"0021_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474619.html","width":130,"caption":"The Lonely Ones","height":130});
															thumbnails[3474621] = clik.newPhoto({"id":3474621,"src":"0031_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474621.html","width":130,"caption":"Future Flowers II","height":130});
															thumbnails[3474618] = clik.newPhoto({"id":3474618,"src":"0012_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474618.html","width":130,"caption":"Still I'm Sad","height":130});
															thumbnails[3474630] = clik.newPhoto({"id":3474630,"src":"0091_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474630.html","width":130,"caption":"Threesome","height":130});
															thumbnails[3474655] = clik.newPhoto({"id":3474655,"src":"023_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474655.html","width":130,"caption":"Way To Fall II","height":130});
															thumbnails[3474426] = clik.newPhoto({"id":3474426,"src":"009_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474426.html","width":130,"caption":"Hide In Your Shell","height":130});
															thumbnails[3474653] = clik.newPhoto({"id":3474653,"src":"021_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474653.html","width":130,"caption":"Silence And I","height":130});
															thumbnails[3474654] = clik.newPhoto({"id":3474654,"src":"022_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474654.html","width":130,"caption":"Endless Dream","height":130});
															thumbnails[3574183] = clik.newPhoto({"id":3574183,"src":"0131_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3574183.html","width":130,"caption":"Anybody There","height":130});
															thumbnails[3474645] = clik.newPhoto({"id":3474645,"src":"017_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474645.html","width":130,"caption":"Separate Ways","height":130});
															thumbnails[3474649] = clik.newPhoto({"id":3474649,"src":"019_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474649.html","width":130,"caption":"Poles Apart","height":130});
															thumbnails[3474424] = clik.newPhoto({"id":3474424,"src":"007_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474424.html","width":130,"caption":"Days Are Numbers","height":130});
															thumbnails[3474422] = clik.newPhoto({"id":3474422,"src":"005_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474422.html","width":130,"caption":"On The Turning Away","height":130});
															thumbnails[3474423] = clik.newPhoto({"id":3474423,"src":"006_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474423.html","width":130,"caption":"Time Is Time","height":130});
															thumbnails[3474642] = clik.newPhoto({"id":3474642,"src":"015_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474642.html","width":130,"caption":"Limelight","height":130});
															thumbnails[3474644] = clik.newPhoto({"id":3474644,"src":"016_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474644.html","width":130,"caption":"Us And Them","height":130});
															thumbnails[3474416] = clik.newPhoto({"id":3474416,"src":"002_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474416.html","width":130,"caption":"Start","height":130});
															thumbnails[3474417] = clik.newPhoto({"id":3474417,"src":"003_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474417.html","width":130,"caption":"Sad To Say Farewell","height":130});
															thumbnails[3474640] = clik.newPhoto({"id":3474640,"src":"014_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474640.html","width":130,"caption":"Way To Fall","height":130});
															thumbnails[3474415] = clik.newPhoto({"id":3474415,"src":"001_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474415.html","width":130,"caption":"Still Here","height":130});
															thumbnails[3474636] = clik.newPhoto({"id":3474636,"src":"012_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474636.html","width":130,"caption":"Forever","height":130});
															thumbnails[3852034] = clik.newPhoto({"id":3852034,"src":"043_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3852034.html","width":130,"caption":"Sweet Suicide","height":130});
															thumbnails[3474632] = clik.newPhoto({"id":3474632,"src":"0101_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474632.html","width":130,"caption":"My Dreams","height":130});
															thumbnails[3474669] = clik.newPhoto({"id":3474669,"src":"031_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474669.html","width":130,"caption":"Seven Posts","height":130});
															thumbnails[3474667] = clik.newPhoto({"id":3474667,"src":"030_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474667.html","width":130,"caption":127.0,"height":130});
															thumbnails[3474616] = clik.newPhoto({"id":3474616,"src":"010_thumb.jpg","galleries_id":211723,"server_id":15,"link":"photo_3474616.html","width":130,"caption":"Calming End","height":130});
															thumbnails[4225565] = clik.newPhoto({"id":4225565,"src":"060_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_4225565.html","width":130,"caption":"Thirteen","height":130});
															thumbnails[3474663] = clik.newPhoto({"id":3474663,"src":"028_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474663.html","width":130,"caption":"Future Flowers","height":130});
															thumbnails[3474625] = clik.newPhoto({"id":3474625,"src":"0061_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474625.html","width":130,"caption":"Closer","height":130});
															thumbnails[3474659] = clik.newPhoto({"id":3474659,"src":"025_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3474659.html","width":130,"caption":"Reach Out","height":130});
															thumbnails[3875115] = clik.newPhoto({"id":3875115,"src":"046_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3875115.html","width":130,"caption":"Stoned Alone","height":130});
															thumbnails[3939699] = clik.newPhoto({"id":3939699,"src":"050_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_3939699.html","width":130,"caption":"Hang On To A Dream","height":130});
															thumbnails[5360291] = clik.newPhoto({"id":5360291,"src":"073_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_5360291.html","width":130,"caption":"Destination Nowhere","height":130});
															thumbnails[8467374] = clik.newPhoto({"id":8467374,"src":"111_thumb.jpg","galleries_id":211722,"server_id":15,"link":"photo_8467374.html","width":130,"caption":"Five","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[211722] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"B&W","link":"gallery_211722.html","maxRecords":0.0,"photoIDs":[8796971.0,8796976.0,8797073.0,8735008.0,8607926.0,8467343.0,7185460.0,7142268.0,7142274.0,6754383.0,6234937.0,6519209.0,7142237.0,5695891.0,5695894.0,6754385.0,5618166.0,5314675.0,5314678.0,5541094.0,3587264.0,5295930.0,5242188.0,3987602.0,4469913.0,4330980.0,4025616.0,4059217.0,3950102.0,3950792.0,3961744.0,3865823.0,4565446.0,3757171.0,3759575.0,3808616.0,3674624.0,3516967.0,3615176.0,3587267.0,3474623.0,3474624.0,3474619.0,3474621.0,3474618.0,3474630.0,3474655.0,3474653.0,3474654.0,3474645.0,3474649.0,3474642.0,3474644.0,3474640.0,3474636.0,3852034.0,3474632.0,3474669.0,3474667.0,4225565.0,3474663.0,3474625.0,3474659.0,3875115.0,3939699.0,5360291.0,8467374.0],"skipIndex":0,"section_code":"gallery","featured_images":"8797073,8796976,8796971,8735008,8607926,8467374,8467343,7185460,7142274,7142268","id":211722,"singleSection":false});				  						galleries[211723] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"COLOR","link":"gallery_211723.html","maxRecords":0.0,"photoIDs":[8832494.0,8796940.0,5688466.0,5189535.0,4514785.0,4326882.0,3807843.0,3587261.0,3545191.0,3474426.0,3574183.0,3474424.0,3474422.0,3474423.0,3474416.0,3474417.0,3474415.0,3474616.0],"skipIndex":0,"section_code":"gallery","featured_images":"8832494,8796940,5688466,5189535,4514785,4326882,3807843,3587261,3574183,3545191","id":211723,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6754385,6754383,6234937,5695891,5618166,5541094,5314678,5295930,4565446,4330980,3961744,3950792,3875115,3757171,3474659,3474654,3474653,3474645,3474644,3474642,3474632,3474624,3474623,3474621';
imageSets[3] = '8832494,8797073,8796976,8796971,8796940,8735008,8607926,8467374,8467343,7185460,7142274,7142268,7142237,6754385,6754383,6519209,6234937,5695894,5695891,5688466,5618166,5541094,5360291,5314678,5314675,5295930,5242188,5189535,4565446,4514785,4469913,4330980,4326882,4225565,4059217,4025616,3987602,3961744,3950792,3950102,3939699,3875115,3874807,3865823,3852034,3808616,3807843,3759575,3757171,3674624';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/acukur/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/acukur/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/acukur/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/acukur/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/acukur/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/acukur/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/acukur/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/acukur/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 = 'alperçukur: ' + 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> &euro;' + (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="ACUKUR">';
			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;
	}
}

			

