window.thumbnails = {};
															thumbnails[3591299] = clik.newPhoto({"id":3591299,"src":"family200_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3591300] = clik.newPhoto({"id":3591300,"src":"mum1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3591307] = clik.newPhoto({"id":3591307,"src":"ellen3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":110});
															thumbnails[3617720] = clik.newPhoto({"id":3617720,"src":"block_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":61});
															thumbnails[3617737] = clik.newPhoto({"id":3617737,"src":"mothers32_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":29});
															thumbnails[3667348] = clik.newPhoto({"id":3667348,"src":"sueworking_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":200});
															thumbnails[4473210] = clik.newPhoto({"id":4473210,"src":"F1000003aj_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":157});
															thumbnails[4473212] = clik.newPhoto({"id":4473212,"src":"stripj_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":29});
															thumbnails[4789886] = clik.newPhoto({"id":4789886,"src":"F1000007smer_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":99});
															thumbnails[5481661] = clik.newPhoto({"id":5481661,"src":"F1020015_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5481663] = clik.newPhoto({"id":5481663,"src":"F1010010_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5481664] = clik.newPhoto({"id":5481664,"src":"F1000014_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5481666] = clik.newPhoto({"id":5481666,"src":"F1000001_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5481674] = clik.newPhoto({"id":5481674,"src":"F1000002_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5481675] = clik.newPhoto({"id":5481675,"src":"F1000032_B0DC96B2-1EC9-D45B-1C6B8AA12C97E0AD_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":194});
															thumbnails[5481676] = clik.newPhoto({"id":5481676,"src":"F1000032_B0DCFDC8-1EC9-D45B-1C3AFDE201FFC10A_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":194});
															thumbnails[5481684] = clik.newPhoto({"id":5481684,"src":"F1000009_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":187});
															thumbnails[5517460] = clik.newPhoto({"id":5517460,"src":"F1000013_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5517461] = clik.newPhoto({"id":5517461,"src":"F1010029_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521078] = clik.newPhoto({"id":5521078,"src":"F1000019_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521080] = clik.newPhoto({"id":5521080,"src":"F1000022_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521081] = clik.newPhoto({"id":5521081,"src":"F1010018_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521132] = clik.newPhoto({"id":5521132,"src":"F1000010_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521134] = clik.newPhoto({"id":5521134,"src":"F1010005_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521136] = clik.newPhoto({"id":5521136,"src":"F1010006_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521137] = clik.newPhoto({"id":5521137,"src":"F1010017_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5521138] = clik.newPhoto({"id":5521138,"src":"F1010027_sm_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5627893] = clik.newPhoto({"id":5627893,"src":"newlogo2_thumb.gif","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[5628678] = clik.newPhoto({"id":5628678,"src":"4859786917_0a7e3c48f2_o_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":182});
															thumbnails[5628680] = clik.newPhoto({"id":5628680,"src":"poster1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":168});
															thumbnails[5651904] = clik.newPhoto({"id":5651904,"src":"mothers3_2010_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":29});
															thumbnails[6547424] = clik.newPhoto({"id":6547424,"src":"top_10_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6547426] = clik.newPhoto({"id":6547426,"src":"strip10_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":29});
															thumbnails[7331068] = clik.newPhoto({"id":7331068,"src":"1000013_21-01-2011_sap_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7331069] = clik.newPhoto({"id":7331069,"src":"1000001_25-01-2011_sap_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":194});
															thumbnails[7656625] = clik.newPhoto({"id":7656625,"src":"sap_2010-05-11_1020035_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7656630] = clik.newPhoto({"id":7656630,"src":"sap_2010-05-11_10200351_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7656717] = clik.newPhoto({"id":7656717,"src":"sap_2010-05-11_10200352_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7656749] = clik.newPhoto({"id":7656749,"src":"sap_2010-05-11_10200353_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7656777] = clik.newPhoto({"id":7656777,"src":"sap_2010-05-11_10200354_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8251739] = clik.newPhoto({"id":8251739,"src":"logo_aug11_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":46});
															thumbnails[8251744] = clik.newPhoto({"id":8251744,"src":"untitled-9125_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8251841] = clik.newPhoto({"id":8251841,"src":"untitled-9626_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":94});
															thumbnails[8251852] = clik.newPhoto({"id":8251852,"src":"untitled-8882_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8251854] = clik.newPhoto({"id":8251854,"src":"untitled-91251_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[8251855] = clik.newPhoto({"id":8251855,"src":"untitled-9439_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8316225] = clik.newPhoto({"id":8316225,"src":"heroes3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":88});
															thumbnails[3070759] = clik.newPhoto({"id":3070759,"src":"F1000004_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3070759.html","width":130,"caption":"","height":87});
															thumbnails[3070762] = clik.newPhoto({"id":3070762,"src":"F1000008_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070762.html","width":130,"caption":"","height":87});
															thumbnails[3070766] = clik.newPhoto({"id":3070766,"src":"F1000012_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3070766.html","width":130,"caption":"","height":87});
															thumbnails[3070790] = clik.newPhoto({"id":3070790,"src":"F1000022_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070790.html","width":130,"caption":"","height":87});
															thumbnails[3070794] = clik.newPhoto({"id":3070794,"src":"F1000031_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070794.html","width":130,"caption":"","height":87});
															thumbnails[3070798] = clik.newPhoto({"id":3070798,"src":"F1010004_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070798.html","width":130,"caption":"","height":87});
															thumbnails[3070802] = clik.newPhoto({"id":3070802,"src":"F1010019_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070802.html","width":130,"caption":"","height":87});
															thumbnails[3070810] = clik.newPhoto({"id":3070810,"src":"F1030001_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070810.html","width":130,"caption":"","height":87});
															thumbnails[3070811] = clik.newPhoto({"id":3070811,"src":"F1030016_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070811.html","width":130,"caption":"","height":87});
															thumbnails[3070816] = clik.newPhoto({"id":3070816,"src":"WPS12940033_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3070816.html","width":130,"caption":"","height":87});
															thumbnails[3215235] = clik.newPhoto({"id":3215235,"src":"F1000006_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215235.html","width":130,"caption":"","height":87});
															thumbnails[3215237] = clik.newPhoto({"id":3215237,"src":"F10000193_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215237.html","width":130,"caption":"","height":87});
															thumbnails[3215238] = clik.newPhoto({"id":3215238,"src":"F1000019MCKINNON_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215238.html","width":130,"caption":"","height":87});
															thumbnails[3215239] = clik.newPhoto({"id":3215239,"src":"F1000027_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215239.html","width":130,"caption":"","height":87});
															thumbnails[3215240] = clik.newPhoto({"id":3215240,"src":"F10000302_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215240.html","width":130,"caption":"","height":87});
															thumbnails[3215241] = clik.newPhoto({"id":3215241,"src":"F10000321_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215241.html","width":130,"caption":"","height":87});
															thumbnails[3215242] = clik.newPhoto({"id":3215242,"src":"F10000341_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215242.html","width":130,"caption":"","height":87});
															thumbnails[3215243] = clik.newPhoto({"id":3215243,"src":"F1000036_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215243.html","width":130,"caption":"","height":87});
															thumbnails[3215247] = clik.newPhoto({"id":3215247,"src":"F1010032_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215247.html","width":130,"caption":"","height":87});
															thumbnails[3215253] = clik.newPhoto({"id":3215253,"src":"019_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3215253.html","width":130,"caption":"","height":87});
															thumbnails[3215254] = clik.newPhoto({"id":3215254,"src":"F10000322_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3215254.html","width":130,"caption":"","height":87});
															thumbnails[3617744] = clik.newPhoto({"id":3617744,"src":"F10000202_thumb.jpg","galleries_id":188666,"server_id":5,"link":"photo_3617744.html","width":130,"caption":"","height":194});
															thumbnails[3617745] = clik.newPhoto({"id":3617745,"src":"F10000292_thumb.jpg","galleries_id":188666,"server_id":5,"link":"photo_3617745.html","width":130,"caption":"","height":194});
															thumbnails[3629155] = clik.newPhoto({"id":3629155,"src":"F1000018_thumb.JPG","galleries_id":188666,"server_id":5,"link":"photo_3629155.html","width":130,"caption":"","height":87});
															thumbnails[3629156] = clik.newPhoto({"id":3629156,"src":"F1000024_thumb.JPG","galleries_id":188666,"server_id":5,"link":"photo_3629156.html","width":130,"caption":"","height":87});
															thumbnails[3070288] = clik.newPhoto({"id":3070288,"src":"F1020013_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3070288.html","width":130,"caption":"","height":87});
															thumbnails[3070783] = clik.newPhoto({"id":3070783,"src":"F10000191_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070783.html","width":130,"caption":"","height":194});
															thumbnails[3215047] = clik.newPhoto({"id":3215047,"src":"F1010005_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3215047.html","width":130,"caption":"","height":87});
															thumbnails[3070791] = clik.newPhoto({"id":3070791,"src":"F1000030_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070791.html","width":130,"caption":"","height":194});
															thumbnails[3070349] = clik.newPhoto({"id":3070349,"src":"WPS12920011_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3070349.html","width":130,"caption":"","height":87});
															thumbnails[3070800] = clik.newPhoto({"id":3070800,"src":"F1010018_thumb.jpg","galleries_id":188665,"server_id":5,"link":"photo_3070800.html","width":130,"caption":"","height":194});
															thumbnails[3215046] = clik.newPhoto({"id":3215046,"src":"F1000032_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3215046.html","width":130,"caption":"","height":89});
															thumbnails[3215045] = clik.newPhoto({"id":3215045,"src":"F1000029_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3215045.html","width":130,"caption":"","height":87});
															thumbnails[3215050] = clik.newPhoto({"id":3215050,"src":"F10000192_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3215050.html","width":130,"caption":"","height":87});
															thumbnails[3070351] = clik.newPhoto({"id":3070351,"src":"F1020005_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3070351.html","width":130,"caption":"","height":194});
															thumbnails[3215048] = clik.newPhoto({"id":3215048,"src":"F1010011_thumb.jpg","galleries_id":188435,"server_id":5,"link":"photo_3215048.html","width":130,"caption":"","height":87});
															thumbnails[3211593] = clik.newPhoto({"id":3211593,"src":"031_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211593.html","width":130,"caption":"","height":87});
															thumbnails[3211594] = clik.newPhoto({"id":3211594,"src":"02860018_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211594.html","width":130,"caption":"","height":86});
															thumbnails[3211598] = clik.newPhoto({"id":3211598,"src":"02870018_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211598.html","width":130,"caption":"","height":86});
															thumbnails[3211600] = clik.newPhoto({"id":3211600,"src":"02870022_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211600.html","width":130,"caption":"","height":86});
															thumbnails[3211603] = clik.newPhoto({"id":3211603,"src":"F10000081_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211603.html","width":130,"caption":"","height":87});
															thumbnails[3215255] = clik.newPhoto({"id":3215255,"src":"F10000311_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3215255.html","width":130,"caption":"","height":87});
															thumbnails[3211596] = clik.newPhoto({"id":3211596,"src":"02870010_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211596.html","width":130,"caption":"","height":196});
															thumbnails[3215257] = clik.newPhoto({"id":3215257,"src":"F1100010_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3215257.html","width":130,"caption":"","height":194});
															thumbnails[3211734] = clik.newPhoto({"id":3211734,"src":"F1000028_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211734.html","width":130,"caption":"","height":194});
															thumbnails[3211612] = clik.newPhoto({"id":3211612,"src":"F1000021_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211612.html","width":130,"caption":"","height":194});
															thumbnails[3211602] = clik.newPhoto({"id":3211602,"src":"F10000041_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3211602.html","width":130,"caption":"","height":194});
															thumbnails[3212062] = clik.newPhoto({"id":3212062,"src":"F1000034_thumb.jpg","galleries_id":188436,"server_id":5,"link":"photo_3212062.html","width":130,"caption":"","height":194});
															thumbnails[3070814] = clik.newPhoto({"id":3070814,"src":"WPS12940025_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3070814.html","width":130,"caption":"","height":194});
															thumbnails[3070813] = clik.newPhoto({"id":3070813,"src":"WPS12920027_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3070813.html","width":130,"caption":"","height":194});
															thumbnails[3215244] = clik.newPhoto({"id":3215244,"src":"F1000038_thumb.jpg","galleries_id":196175,"server_id":5,"link":"photo_3215244.html","width":130,"caption":"","height":194});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[188435] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Families","link":"gallery_188435.html","maxRecords":0.0,"photoIDs":[3070288.0,3215047.0,3070349.0,3215046.0,3215045.0,3215050.0,3070351.0,3215048.0],"skipIndex":0,"section_code":"gallery","featured_images":"3215050,3215048,3215047,3215046,3215045,3070349,3070288","id":188435,"singleSection":false});				  						galleries[188665] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_188665.html","maxRecords":0.0,"photoIDs":[3070762.0,3070790.0,3070794.0,3070798.0,3070802.0,3070810.0,3070811.0,3215253.0,3215254.0,3070783.0,3070791.0,3070800.0],"skipIndex":0,"section_code":"gallery","featured_images":"3215254,3215253,3070811,3070810,3070802,3070798,3070794,3070790,3070762","id":188665,"singleSection":false});				  						galleries[188436] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Babies and Toddlers","link":"gallery_188436.html","maxRecords":0.0,"photoIDs":[3211593.0,3211594.0,3211598.0,3211600.0,3211603.0,3215255.0,3211596.0,3215257.0,3211734.0,3211612.0,3211602.0,3212062.0],"skipIndex":0,"section_code":"gallery","featured_images":"3215255,3211603,3211600,3211598,3211594,3211593","id":188436,"singleSection":false});				  						galleries[196175] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Siblings","link":"gallery_196175.html","maxRecords":0.0,"photoIDs":[3070759.0,3070766.0,3070816.0,3215235.0,3215237.0,3215238.0,3215239.0,3215240.0,3215241.0,3215242.0,3215243.0,3215247.0,3070814.0,3070813.0,3215244.0],"skipIndex":0,"section_code":"gallery","featured_images":"3215247,3215243,3215242,3215241,3215240,3215239,3215238,3215237,3215235,3070816,3070766,3070759","id":196175,"singleSection":false});				  						galleries[188666] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Pregnancy","link":"gallery_188666.html","maxRecords":0.0,"photoIDs":[3617744.0,3617745.0,3629155.0,3629156.0],"skipIndex":0,"section_code":"gallery","featured_images":"3629156,3629155","id":188666,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3215254,3215253,3215247,3215243,3215242,3215241,3215240,3215239,3215238,3215237,3215235,3070816,3070811,3070810,3070802,3070798,3070794,3070790,3070766,3070762,3070759,3070288,3215047,3070349,3215046,3215045,3215050,3215048,3211593,3211594,3211598,3211600,3211603,3215255';
imageSets[2] = '3629156,3629155,3215254,3215253,3215247,3215243,3215242,3215241,3215240,3215239,3215238,3215237,3215235,3070816,3070811,3070810,3070802,3070798,3070794,3070790,3070766,3070762,3070759,3070288,3215047,3070349,3215046,3215045,3215050,3215048,3211593,3211594,3211598,3211600,3211603,3215255';
imageSets[3] = '8316225,8251855,8251854,8251852,8251841,8251744,8251739,7656777,7656749,7656717,7656630,7656625,7331069,7331068,6547426,6547424,5651904,5628680,5628678,5627893,5521138,5521137,5521136,5521134,5521132,5521081,5521080,5521078,5517461,5517460,5481684,5481676,5481675,5481674,5481666,5481664,5481663,5481661,4789886,4473212,4473210,3667348,3629156,3629155,3617745,3617744,3617737,3617720,3591307,3591300';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/michelleb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/michelleb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/michelleb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/michelleb/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/michelleb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/michelleb/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/michelleb/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/michelleb/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 = 'sueallmanpeople: ' + 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.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;
	}
}

			

