window.thumbnails = {};
thumbnails[8606458] = clik.newPhoto({"link":"#","caption":"","height":196,"id":8606458,"server_id":31,"src":"DSC_0031_thumb.JPG","galleries_id":"","width":130});
thumbnails[8606648] = clik.newPhoto({"link":"photo_8606648.html","caption":"","height":88,"id":8606648,"server_id":31,"src":"CNV00106_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606759] = clik.newPhoto({"link":"photo_8606759.html","caption":"maids and page","height":88,"id":8606759,"server_id":31,"src":"CNV00097_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606768] = clik.newPhoto({"link":"photo_8606768.html","caption":"Sofie and Tash","height":89,"id":8606768,"server_id":31,"src":"DSC_0726_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606778] = clik.newPhoto({"link":"photo_8606778.html","caption":"","height":196,"id":8606778,"server_id":31,"src":"02460034_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606783] = clik.newPhoto({"link":"photo_8606783.html","caption":"","height":196,"id":8606783,"server_id":31,"src":"07140009_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606794] = clik.newPhoto({"link":"photo_8606794.html","caption":"","height":86,"id":8606794,"server_id":31,"src":"07140026_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606798] = clik.newPhoto({"link":"photo_8606798.html","caption":"Bridesmaids","height":86,"id":8606798,"server_id":31,"src":"DSC_0097_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606802] = clik.newPhoto({"link":"photo_8606802.html","caption":"Oli and her gals","height":83,"id":8606802,"server_id":31,"src":"DSC_0105_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606806] = clik.newPhoto({"link":"photo_8606806.html","caption":"Sofie","height":181,"id":8606806,"server_id":31,"src":"DSC_0112_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8606822] = clik.newPhoto({"link":"photo_8606822.html","caption":"Beach boys","height":87,"id":8606822,"server_id":31,"src":"CNV00011_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606826] = clik.newPhoto({"link":"photo_8606826.html","caption":"","height":80,"id":8606826,"server_id":31,"src":"DSC_0362_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606829] = clik.newPhoto({"link":"photo_8606829.html","caption":"","height":86,"id":8606829,"server_id":31,"src":"DSC_0433_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606831] = clik.newPhoto({"link":"photo_8606831.html","caption":"chase","height":68,"id":8606831,"server_id":31,"src":"DSC_0434_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606834] = clik.newPhoto({"link":"photo_8606834.html","caption":"Marrakesh","height":86,"id":8606834,"server_id":31,"src":"DSC_0509_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606836] = clik.newPhoto({"link":"photo_8606836.html","caption":"","height":196,"id":8606836,"server_id":31,"src":"DSC_0543_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606845] = clik.newPhoto({"link":"photo_8606845.html","caption":"","height":196,"id":8606845,"server_id":31,"src":"DSC_0707_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606847] = clik.newPhoto({"link":"photo_8606847.html","caption":"sand stroll","height":196,"id":8606847,"server_id":31,"src":"DSC_0720_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606849] = clik.newPhoto({"link":"photo_8606849.html","caption":"gang","height":87,"id":8606849,"server_id":31,"src":"DSC_0820_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606851] = clik.newPhoto({"link":"photo_8606851.html","caption":"gang2","height":86,"id":8606851,"server_id":31,"src":"DSC_0819_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606853] = clik.newPhoto({"link":"photo_8606853.html","caption":"Berber","height":188,"id":8606853,"server_id":31,"src":"DSC_0857_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606872] = clik.newPhoto({"link":"photo_8606872.html","caption":"Suny","height":86,"id":8606872,"server_id":31,"src":"DSC_9824_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606874] = clik.newPhoto({"link":"photo_8606874.html","caption":"Mampta","height":196,"id":8606874,"server_id":31,"src":"DSC_9861_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8606908] = clik.newPhoto({"link":"photo_8606908.html","caption":"seamstress","height":196,"id":8606908,"server_id":31,"src":"DSC_9959_thumb.JPG","galleries_id":453356,"width":130});
thumbnails[8607844] = clik.newPhoto({"link":"photo_8607844.html","caption":"family","height":196,"id":8607844,"server_id":31,"src":"46090024_thumb.JPG","galleries_id":455056,"width":130});
thumbnails[8607896] = clik.newPhoto({"link":"photo_8607896.html","caption":"Nathan Hines","height":196,"id":8607896,"server_id":31,"src":"86450025_thumb.JPG","galleries_id":455056,"width":130});
thumbnails[8607905] = clik.newPhoto({"link":"photo_8607905.html","caption":"cheeky","height":196,"id":8607905,"server_id":31,"src":"46080021_thumb.JPG","galleries_id":455056,"width":130});
thumbnails[8607923] = clik.newPhoto({"link":"photo_8607923.html","caption":"Electronic mud fest","height":82,"id":8607923,"server_id":31,"src":"DSC_00071_thumb.JPG","galleries_id":455068,"width":130});
thumbnails[8607925] = clik.newPhoto({"link":"photo_8607925.html","caption":"The Cat","height":86,"id":8607925,"server_id":31,"src":"DSC_0188_thumb.JPG","galleries_id":455068,"width":130});
thumbnails[8607935] = clik.newPhoto({"link":"photo_8607935.html","caption":"Alabama 3","height":86,"id":8607935,"server_id":31,"src":"DSC_0226_1_thumb.JPG","galleries_id":455068,"width":130});
thumbnails[8607948] = clik.newPhoto({"link":"photo_8607948.html","caption":"Atomic drop","height":91,"id":8607948,"server_id":31,"src":"DSC_0570_thumb.jpg","galleries_id":455068,"width":130});
thumbnails[8607954] = clik.newPhoto({"link":"photo_8607954.html","caption":"","height":86,"id":8607954,"server_id":31,"src":"DSC_0588_thumb.JPG","galleries_id":455068,"width":130});
thumbnails[8607961] = clik.newPhoto({"link":"photo_8607961.html","caption":"knockengorroch love","height":86,"id":8607961,"server_id":31,"src":"DSC_0176_thumb.JPG","galleries_id":455068,"width":130});
thumbnails[8608228] = clik.newPhoto({"link":"photo_8608228.html","caption":"Sandy the piper","height":197,"id":8608228,"server_id":31,"src":"CNV00058_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8608243] = clik.newPhoto({"link":"photo_8608243.html","caption":"","height":204,"id":8608243,"server_id":31,"src":"DSC_0356_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8610580] = clik.newPhoto({"link":"photo_8610580.html","caption":"spying","height":87,"id":8610580,"server_id":31,"src":"DSC_0049_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610590] = clik.newPhoto({"link":"photo_8610590.html","caption":"","height":87,"id":8610590,"server_id":31,"src":"DSC_0056_2_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610592] = clik.newPhoto({"link":"photo_8610592.html","caption":"","height":170,"id":8610592,"server_id":31,"src":"DSC_0074_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610620] = clik.newPhoto({"link":"photo_8610620.html","caption":"Confetti","height":195,"id":8610620,"server_id":31,"src":"DSC_0209_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610622] = clik.newPhoto({"link":"photo_8610622.html","caption":"Jojo & Tali","height":195,"id":8610622,"server_id":31,"src":"DSC_0233_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610626] = clik.newPhoto({"link":"photo_8610626.html","caption":"mischief","height":196,"id":8610626,"server_id":31,"src":"DSC_0234_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610631] = clik.newPhoto({"link":"photo_8610631.html","caption":"Arriving","height":87,"id":8610631,"server_id":31,"src":"DSC_0319_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610638] = clik.newPhoto({"link":"photo_8610638.html","caption":"","height":87,"id":8610638,"server_id":31,"src":"DSC_0621_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610643] = clik.newPhoto({"link":"photo_8610643.html","caption":"Fee","height":195,"id":8610643,"server_id":31,"src":"DSC_0720_E425BC17-1EC9-DFB6-09D3B478924DE084_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610650] = clik.newPhoto({"link":"photo_8610650.html","caption":"Becks Beecher and her boys","height":86,"id":8610650,"server_id":31,"src":"DSC_4802_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610654] = clik.newPhoto({"link":"photo_8610654.html","caption":"Amy & Jack","height":109,"id":8610654,"server_id":31,"src":"IMG_8799_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8610811] = clik.newPhoto({"link":"photo_8610811.html","caption":"Isla","height":196,"id":8610811,"server_id":31,"src":"02460001_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610814] = clik.newPhoto({"link":"photo_8610814.html","caption":"","height":196,"id":8610814,"server_id":31,"src":"46080038.JPG_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610819] = clik.newPhoto({"link":"photo_8610819.html","caption":"Sian","height":86,"id":8610819,"server_id":31,"src":"86460025_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610821] = clik.newPhoto({"link":"photo_8610821.html","caption":"Mr Wah","height":196,"id":8610821,"server_id":31,"src":"DSC_0014_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610822] = clik.newPhoto({"link":"photo_8610822.html","caption":"Mima","height":171,"id":8610822,"server_id":31,"src":"DSC_0030_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610824] = clik.newPhoto({"link":"photo_8610824.html","caption":"","height":180,"id":8610824,"server_id":31,"src":"DSC_0079_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610830] = clik.newPhoto({"link":"photo_8610830.html","caption":"","height":86,"id":8610830,"server_id":31,"src":"DSC_0084_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610849] = clik.newPhoto({"link":"photo_8610849.html","caption":"Gemma","height":196,"id":8610849,"server_id":31,"src":"DSC_0121_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610856] = clik.newPhoto({"link":"photo_8610856.html","caption":"Rosie","height":86,"id":8610856,"server_id":31,"src":"DSC_0144_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8610869] = clik.newPhoto({"link":"photo_8610869.html","caption":"Imp","height":86,"id":8610869,"server_id":31,"src":"DSC_442.JPG_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8611667] = clik.newPhoto({"link":"photo_8611667.html","caption":"Madame Oeuf","height":194,"id":8611667,"server_id":31,"src":"CNV00012_thumb.jpg","galleries_id":453356,"width":130});
thumbnails[8611682] = clik.newPhoto({"link":"photo_8611682.html","caption":"","height":194,"id":8611682,"server_id":31,"src":"CNV00016_thumb.jpg","galleries_id":453356,"width":130});
thumbnails[8611684] = clik.newPhoto({"link":"photo_8611684.html","caption":"Market seller","height":194,"id":8611684,"server_id":31,"src":"CNV00019_thumb.jpg","galleries_id":453356,"width":130});
thumbnails[8611693] = clik.newPhoto({"link":"photo_8611693.html","caption":"Oddities","height":87,"id":8611693,"server_id":31,"src":"CNV00021_thumb.jpg","galleries_id":453356,"width":130});
thumbnails[8611820] = clik.newPhoto({"link":"photo_8611820.html","caption":"Poppy Akroyd","height":87,"id":8611820,"server_id":31,"src":"DSC_04141_thumb.jpg","galleries_id":455068,"width":130});
thumbnails[8611825] = clik.newPhoto({"link":"photo_8611825.html","caption":"Joe Acheson","height":87,"id":8611825,"server_id":31,"src":"DSC_0420_thumb.jpg","galleries_id":455068,"width":130});
thumbnails[8611949] = clik.newPhoto({"link":"photo_8611949.html","caption":"Kathryn","height":220,"id":8611949,"server_id":31,"src":"DSC_0059_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8611951] = clik.newPhoto({"link":"photo_8611951.html","caption":"","height":86,"id":8611951,"server_id":31,"src":"DSC_0369_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8611952] = clik.newPhoto({"link":"photo_8611952.html","caption":"Groom and his best men","height":86,"id":8611952,"server_id":31,"src":"DSC_0428_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8611954] = clik.newPhoto({"link":"photo_8611954.html","caption":"Sofie and the boys","height":86,"id":8611954,"server_id":31,"src":"DSC_0397_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8612018] = clik.newPhoto({"link":"photo_8612018.html","caption":"saska","height":195,"id":8612018,"server_id":31,"src":"DSC_02931_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8615087] = clik.newPhoto({"link":"photo_8615087.html","caption":"","height":195,"id":8615087,"server_id":31,"src":"girl_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8615131] = clik.newPhoto({"link":"photo_8615131.html","caption":"Father and son","height":185,"id":8615131,"server_id":31,"src":"garreth_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8615300] = clik.newPhoto({"link":"photo_8615300.html","caption":"sillouhette","height":86,"id":8615300,"server_id":31,"src":"isla_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8628248] = clik.newPhoto({"link":"photo_8628248.html","caption":"Horace Andy","height":163,"id":8628248,"server_id":31,"src":"DSC_05231_thumb.jpg","galleries_id":455068,"width":130});
thumbnails[8628804] = clik.newPhoto({"link":"photo_8628804.html","caption":"","height":196,"id":8628804,"server_id":31,"src":"DSC_0706_thumb.jpg","galleries_id":453356,"width":130});
thumbnails[8628807] = clik.newPhoto({"link":"photo_8628807.html","caption":"","height":196,"id":8628807,"server_id":31,"src":"DSC_0712_thumb.jpg","galleries_id":453356,"width":130});
thumbnails[8628810] = clik.newPhoto({"link":"photo_8628810.html","caption":"Sofia","height":196,"id":8628810,"server_id":31,"src":"DSC_9444_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8628821] = clik.newPhoto({"link":"photo_8628821.html","caption":"Sofia","height":196,"id":8628821,"server_id":31,"src":"DSC_94551_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8628829] = clik.newPhoto({"link":"photo_8628829.html","caption":"Gem","height":195,"id":8628829,"server_id":31,"src":"DSC_9770_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8628831] = clik.newPhoto({"link":"photo_8628831.html","caption":"Grandmother","height":171,"id":8628831,"server_id":31,"src":"DSC_9886_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8630618] = clik.newPhoto({"link":"photo_8630618.html","caption":"Jack","height":196,"id":8630618,"server_id":31,"src":"DSC_0109_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[8630630] = clik.newPhoto({"link":"photo_8630630.html","caption":"Sofie 1","height":86,"id":8630630,"server_id":31,"src":"DSC_0648_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8630634] = clik.newPhoto({"link":"photo_8630634.html","caption":"Sofie 2","height":86,"id":8630634,"server_id":31,"src":"DSC_0651_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8630641] = clik.newPhoto({"link":"photo_8630641.html","caption":"Sofie 3","height":86,"id":8630641,"server_id":31,"src":"DSC_0652_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8630697] = clik.newPhoto({"link":"photo_8630697.html","caption":"","height":86,"id":8630697,"server_id":31,"src":"DSC_9745_thumb.jpg","galleries_id":455068,"width":130});
thumbnails[8631634] = clik.newPhoto({"link":"photo_8631634.html","caption":"","height":86,"id":8631634,"server_id":31,"src":"DSC_0053_thumb.JPG","galleries_id":455056,"width":130});
thumbnails[8631663] = clik.newPhoto({"link":"photo_8631663.html","caption":"Bridesmaid","height":196,"id":8631663,"server_id":31,"src":"DSC_0131_thumb.JPG","galleries_id":453355,"width":130});
thumbnails[8642768] = clik.newPhoto({"link":"photo_8642768.html","caption":"Fee 1","height":195,"id":8642768,"server_id":31,"src":"DSC_0286_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8642769] = clik.newPhoto({"link":"photo_8642769.html","caption":"Fee 2","height":195,"id":8642769,"server_id":31,"src":"DSC_0287_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8642773] = clik.newPhoto({"link":"photo_8642773.html","caption":"Fee 3","height":187,"id":8642773,"server_id":31,"src":"DSC_0289_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8798392] = clik.newPhoto({"link":"photo_8798392.html","caption":"Pammy and Jim","height":87,"id":8798392,"server_id":31,"src":"pam_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8798399] = clik.newPhoto({"link":"photo_8798399.html","caption":"Corky and Pam","height":195,"id":8798399,"server_id":31,"src":"pamm_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[8805860] = clik.newPhoto({"link":"photo_8805860.html","caption":"","height":150,"id":8805860,"server_id":31,"src":"DSC_0524_thumb.jpg","galleries_id":453356,"width":130});
thumbnails[8826834] = clik.newPhoto({"link":"photo_8826834.html","caption":"Za","height":195,"id":8826834,"server_id":31,"src":"DSC_0272_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[9033891] = clik.newPhoto({"link":"photo_9033891.html","caption":"Connor","height":166,"id":9033891,"server_id":31,"src":"DSC_0163_thumb.jpg","galleries_id":455056,"width":130});
thumbnails[9052262] = clik.newPhoto({"link":"photo_9052262.html","caption":"","height":87,"id":9052262,"server_id":31,"src":"kids_thumb.jpg","galleries_id":453355,"width":130});
thumbnails[9085969] = clik.newPhoto({"link":"photo_9085969.html","caption":"Mary-Jane 1","height":87,"id":9085969,"server_id":31,"src":"DSC_102_thumb.JPG","galleries_id":455056,"width":130});
thumbnails[9085973] = clik.newPhoto({"link":"photo_9085973.html","caption":"Mary-Jane 2","height":74,"id":9085973,"server_id":31,"src":"DSC_113_thumb.JPG","galleries_id":455056,"width":130});
thumbnails[9085976] = clik.newPhoto({"link":"photo_9085976.html","caption":"Mary-Jane 3","height":79,"id":9085976,"server_id":31,"src":"DSC_119_thumb.JPG","galleries_id":455056,"width":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[455068] = clik.newGallery({"photoIDs":[8607923,8607925,8607935,8607948,8607954,8607961,8611820,8611825,8628248,8630697],"link":"gallery_455068.html","skipIndex":0,"section_code":"gallery","id":455068,"parentGallery":"","featured_images":"8630697,8628248,8611825,8611820,8607961,8607954,8607948,8607935,8607925,8607923","maxRecords":0,"usePopups":true,"singleSection":false,"title":"Music"});galleries[455056] = clik.newGallery({"photoIDs":[8607844,8607896,8607905,8610811,8610814,8610819,8610821,8610822,8610824,8610830,8610849,8610856,8610869,8612018,8615087,8615131,8615300,8628810,8628821,8628829,8628831,8630618,8631634,8826834,9033891,9085969,9085973,9085976],"link":"gallery_455056.html","skipIndex":0,"section_code":"gallery","id":455056,"parentGallery":"","featured_images":"9085976,9085973,9085969,9033891,8826834,8631634,8630618,8628831,8628829,8628821","maxRecords":0,"usePopups":true,"singleSection":false,"title":"Portrait"});galleries[453355] = clik.newGallery({"photoIDs":[8606648,8606759,8606768,8606778,8606783,8606794,8606798,8606802,8606806,8608228,8608243,8610580,8610590,8610592,8610620,8610622,8610626,8610631,8610638,8610643,8610650,8610654,8611949,8611951,8611952,8611954,8630630,8630634,8630641,8631663,8642768,8642769,8642773,8798392,8798399,9052262],"link":"gallery_453355.html","skipIndex":0,"section_code":"gallery","id":453355,"parentGallery":"","featured_images":"9052262,8798399,8798392,8642773,8642769,8642768,8631663,8630641,8630634,8630630","maxRecords":0,"usePopups":true,"singleSection":false,"title":"Wedding"});galleries[453356] = clik.newGallery({"photoIDs":[8606822,8606826,8606829,8606831,8606834,8606836,8606845,8606847,8606849,8606851,8606853,8606872,8606874,8606908,8611667,8611682,8611684,8611693,8628804,8628807,8805860],"link":"gallery_453356.html","skipIndex":0,"section_code":"gallery","id":453356,"parentGallery":"","featured_images":"8805860,8628807,8628804,8611693,8611684,8611682,8611667,8606908,8606874,8606872","maxRecords":0,"usePopups":true,"singleSection":false,"title":"Travel"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '9085976,9085973,9085969,9052262,9033891,8826834,8805860,8798399,8798392,8642773,8642769,8642768,8631663,8631634,8630697,8630641,8630634,8630630,8630618,8628831,8628829,8628821,8628810,8628807,8628804,8628248,8615300,8615131,8615087,8612018,8611954,8611952,8611951,8611949,8611825,8611820,8611693,8611684,8611682,8611667,8610869,8610856,8610849,8610830,8610824,8610822,8610821,8610819,8610814,8610811';
imageSets[1] = '8610856,8606648';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/bellaThewes/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/bellaThewes/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 = 'Bella Thewes Photography: ' + 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> ' + (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 += '<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;
	}
}

		

