window.thumbnails = {};
															thumbnails[8832057] = clik.newPhoto({"id":8832057,"src":"emily_m7_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8832057.html","width":130,"caption":"","height":130});
															thumbnails[8832079] = clik.newPhoto({"id":8832079,"src":"emily_m8_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8832079.html","width":130,"caption":"","height":130});
															thumbnails[8832080] = clik.newPhoto({"id":8832080,"src":"emily_m9_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8832080.html","width":130,"caption":"","height":130});
															thumbnails[8832599] = clik.newPhoto({"id":8832599,"src":"emily_m10_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8832599.html","width":130,"caption":"","height":130});
															thumbnails[8832606] = clik.newPhoto({"id":8832606,"src":"emily_m11_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8832606.html","width":130,"caption":"","height":130});
															thumbnails[8832607] = clik.newPhoto({"id":8832607,"src":"emily_m12_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8832607.html","width":130,"caption":"","height":130});
															thumbnails[8832609] = clik.newPhoto({"id":8832609,"src":"emily_m13_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8832609.html","width":130,"caption":"","height":130});
															thumbnails[8860456] = clik.newPhoto({"id":8860456,"src":"erin1_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8860456.html","width":130,"caption":"","height":130});
															thumbnails[8860468] = clik.newPhoto({"id":8860468,"src":"erin3_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8860468.html","width":130,"caption":"","height":130});
															thumbnails[8860474] = clik.newPhoto({"id":8860474,"src":"erin2_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8860474.html","width":130,"caption":"","height":130});
															thumbnails[8860481] = clik.newPhoto({"id":8860481,"src":"erin4_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8860481.html","width":130,"caption":"","height":130});
															thumbnails[8860484] = clik.newPhoto({"id":8860484,"src":"erin6_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8860484.html","width":130,"caption":"","height":130});
															thumbnails[8860487] = clik.newPhoto({"id":8860487,"src":"erin9_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8860487.html","width":130,"caption":"","height":130});
															thumbnails[8860490] = clik.newPhoto({"id":8860490,"src":"erin5_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8860490.html","width":130,"caption":"","height":130});
															thumbnails[8812207] = clik.newPhoto({"id":8812207,"src":"emily_m6_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812207.html","width":130,"caption":"","height":130});
															thumbnails[8812398] = clik.newPhoto({"id":8812398,"src":"emily_may2_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812398.html","width":130,"caption":"","height":130});
															thumbnails[8812211] = clik.newPhoto({"id":8812211,"src":"emily_m2_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812211.html","width":130,"caption":"","height":130});
															thumbnails[8812213] = clik.newPhoto({"id":8812213,"src":"emily_m3_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812213.html","width":130,"caption":"","height":130});
															thumbnails[8812218] = clik.newPhoto({"id":8812218,"src":"emily_m1_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812218.html","width":130,"caption":"","height":130});
															thumbnails[8812247] = clik.newPhoto({"id":8812247,"src":"emily_m5_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812247.html","width":130,"caption":"","height":130});
															thumbnails[8812271] = clik.newPhoto({"id":8812271,"src":"emily_m4_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812271.html","width":130,"caption":"","height":130});
															thumbnails[8812329] = clik.newPhoto({"id":8812329,"src":"emily_xmas1_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812329.html","width":130,"caption":"","height":130});
															thumbnails[8812404] = clik.newPhoto({"id":8812404,"src":"emily_may1_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812404.html","width":130,"caption":"","height":130});
															thumbnails[8812344] = clik.newPhoto({"id":8812344,"src":"emily_xmas2_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812344.html","width":130,"caption":"","height":130});
															thumbnails[8812406] = clik.newPhoto({"id":8812406,"src":"emily_may3_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812406.html","width":130,"caption":"","height":130});
															thumbnails[8812348] = clik.newPhoto({"id":8812348,"src":"emily_xmas3_thumb.jpg","galleries_id":124246,"server_id":1,"link":"photo_8812348.html","width":130,"caption":"","height":130});
															thumbnails[8732701] = clik.newPhoto({"id":8732701,"src":"MIC_85591_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732701.html","width":130,"caption":"","height":196});
															thumbnails[8732715] = clik.newPhoto({"id":8732715,"src":"MIC_8588_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732715.html","width":130,"caption":"","height":184});
															thumbnails[8732723] = clik.newPhoto({"id":8732723,"src":"MIC_8638_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732723.html","width":130,"caption":"","height":196});
															thumbnails[8732740] = clik.newPhoto({"id":8732740,"src":"MIC_8661_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732740.html","width":130,"caption":"","height":196});
															thumbnails[8732746] = clik.newPhoto({"id":8732746,"src":"MIC_8691_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732746.html","width":130,"caption":"","height":196});
															thumbnails[8732756] = clik.newPhoto({"id":8732756,"src":"MIC_8707_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732756.html","width":130,"caption":"","height":86});
															thumbnails[8732770] = clik.newPhoto({"id":8732770,"src":"MIC_8747_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732770.html","width":130,"caption":"","height":196});
															thumbnails[8732796] = clik.newPhoto({"id":8732796,"src":"MIC_8879_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732796.html","width":130,"caption":"","height":184});
															thumbnails[8732802] = clik.newPhoto({"id":8732802,"src":"MIC_8900_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732802.html","width":130,"caption":"","height":37});
															thumbnails[8732810] = clik.newPhoto({"id":8732810,"src":"MIC_8964_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732810.html","width":130,"caption":"","height":86});
															thumbnails[8732820] = clik.newPhoto({"id":8732820,"src":"MIC_8981_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732820.html","width":130,"caption":"","height":196});
															thumbnails[8732858] = clik.newPhoto({"id":8732858,"src":"MIC_8470_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732858.html","width":130,"caption":"","height":196});
															thumbnails[8732866] = clik.newPhoto({"id":8732866,"src":"MIC_9389_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732866.html","width":130,"caption":"","height":183});
															thumbnails[8732868] = clik.newPhoto({"id":8732868,"src":"MIC_9462_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732868.html","width":130,"caption":"","height":196});
															thumbnails[8732870] = clik.newPhoto({"id":8732870,"src":"MIC_9493_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732870.html","width":130,"caption":"","height":86});
															thumbnails[8732872] = clik.newPhoto({"id":8732872,"src":"MIC_9540_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732872.html","width":130,"caption":"","height":196});
															thumbnails[8732899] = clik.newPhoto({"id":8732899,"src":"MIC_9566_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732899.html","width":130,"caption":"","height":86});
															thumbnails[8732905] = clik.newPhoto({"id":8732905,"src":"MIC_9610_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732905.html","width":130,"caption":"","height":86});
															thumbnails[8732906] = clik.newPhoto({"id":8732906,"src":"MIC_9625_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732906.html","width":130,"caption":"","height":184});
															thumbnails[8732907] = clik.newPhoto({"id":8732907,"src":"MIC_9637_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732907.html","width":130,"caption":"","height":86});
															thumbnails[8732908] = clik.newPhoto({"id":8732908,"src":"MIC_9744_thumb.JPG","galleries_id":460167,"server_id":1,"link":"photo_8732908.html","width":130,"caption":"","height":86});
															thumbnails[8812537] = clik.newPhoto({"id":8812537,"src":"wedding1_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812537.html","width":130,"caption":"","height":130});
															thumbnails[8812538] = clik.newPhoto({"id":8812538,"src":"wedding2_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812538.html","width":130,"caption":"","height":130});
															thumbnails[8812541] = clik.newPhoto({"id":8812541,"src":"wedding3_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812541.html","width":130,"caption":"","height":130});
															thumbnails[8812544] = clik.newPhoto({"id":8812544,"src":"wedding4_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812544.html","width":130,"caption":"","height":130});
															thumbnails[8812546] = clik.newPhoto({"id":8812546,"src":"wedding5_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812546.html","width":130,"caption":"","height":130});
															thumbnails[8812547] = clik.newPhoto({"id":8812547,"src":"wedding6_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812547.html","width":130,"caption":"","height":130});
															thumbnails[8812550] = clik.newPhoto({"id":8812550,"src":"wedding7_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812550.html","width":130,"caption":"","height":130});
															thumbnails[8812553] = clik.newPhoto({"id":8812553,"src":"wedding8_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812553.html","width":130,"caption":"","height":130});
															thumbnails[8812556] = clik.newPhoto({"id":8812556,"src":"wedding9_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812556.html","width":130,"caption":"","height":130});
															thumbnails[8812558] = clik.newPhoto({"id":8812558,"src":"wedding10_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812558.html","width":130,"caption":"","height":130});
															thumbnails[8812560] = clik.newPhoto({"id":8812560,"src":"wedding11_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812560.html","width":130,"caption":"","height":130});
															thumbnails[8812562] = clik.newPhoto({"id":8812562,"src":"wedding12_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812562.html","width":130,"caption":"","height":130});
															thumbnails[8812714] = clik.newPhoto({"id":8812714,"src":"wedding13_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812714.html","width":130,"caption":"","height":130});
															thumbnails[8812717] = clik.newPhoto({"id":8812717,"src":"wedding14_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812717.html","width":130,"caption":"","height":130});
															thumbnails[8812760] = clik.newPhoto({"id":8812760,"src":"wedding15_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812760.html","width":130,"caption":"","height":130});
															thumbnails[8812783] = clik.newPhoto({"id":8812783,"src":"wedding16_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812783.html","width":130,"caption":"","height":130});
															thumbnails[8812785] = clik.newPhoto({"id":8812785,"src":"wedding17_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812785.html","width":130,"caption":"","height":130});
															thumbnails[8812787] = clik.newPhoto({"id":8812787,"src":"wedding18_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8812787.html","width":130,"caption":"","height":130});
															thumbnails[8813074] = clik.newPhoto({"id":8813074,"src":"wedding19_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813074.html","width":130,"caption":"","height":130});
															thumbnails[8813075] = clik.newPhoto({"id":8813075,"src":"wedding20_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813075.html","width":130,"caption":"","height":130});
															thumbnails[8813078] = clik.newPhoto({"id":8813078,"src":"wedding21_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813078.html","width":130,"caption":"","height":130});
															thumbnails[8813079] = clik.newPhoto({"id":8813079,"src":"wedding22_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813079.html","width":130,"caption":"","height":130});
															thumbnails[8813080] = clik.newPhoto({"id":8813080,"src":"wedding23_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813080.html","width":130,"caption":"","height":130});
															thumbnails[8813082] = clik.newPhoto({"id":8813082,"src":"wedding24_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813082.html","width":130,"caption":"","height":130});
															thumbnails[8813083] = clik.newPhoto({"id":8813083,"src":"wedding25_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813083.html","width":130,"caption":"","height":130});
															thumbnails[8813172] = clik.newPhoto({"id":8813172,"src":"wedding26_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813172.html","width":130,"caption":"","height":130});
															thumbnails[8813174] = clik.newPhoto({"id":8813174,"src":"wedding27_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813174.html","width":130,"caption":"","height":130});
															thumbnails[8813175] = clik.newPhoto({"id":8813175,"src":"wedding28_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813175.html","width":130,"caption":"","height":130});
															thumbnails[8813177] = clik.newPhoto({"id":8813177,"src":"wedding29_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813177.html","width":130,"caption":"","height":130});
															thumbnails[8813179] = clik.newPhoto({"id":8813179,"src":"wedding30_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813179.html","width":130,"caption":"","height":130});
															thumbnails[8813181] = clik.newPhoto({"id":8813181,"src":"wedding31_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813181.html","width":130,"caption":"","height":130});
															thumbnails[8813187] = clik.newPhoto({"id":8813187,"src":"wedding32_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813187.html","width":130,"caption":"","height":130});
															thumbnails[8813188] = clik.newPhoto({"id":8813188,"src":"wedding33_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813188.html","width":130,"caption":"","height":130});
															thumbnails[8813189] = clik.newPhoto({"id":8813189,"src":"wedding34_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813189.html","width":130,"caption":"","height":130});
															thumbnails[8813191] = clik.newPhoto({"id":8813191,"src":"wedding35_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813191.html","width":130,"caption":"","height":130});
															thumbnails[8813192] = clik.newPhoto({"id":8813192,"src":"wedding36_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813192.html","width":130,"caption":"","height":130});
															thumbnails[8813193] = clik.newPhoto({"id":8813193,"src":"wedding37_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813193.html","width":130,"caption":"","height":130});
															thumbnails[8813194] = clik.newPhoto({"id":8813194,"src":"wedding38_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813194.html","width":130,"caption":"","height":130});
															thumbnails[8813195] = clik.newPhoto({"id":8813195,"src":"wedding39_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813195.html","width":130,"caption":"","height":130});
															thumbnails[8813429] = clik.newPhoto({"id":8813429,"src":"wedding40_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813429.html","width":130,"caption":"","height":130});
															thumbnails[8813432] = clik.newPhoto({"id":8813432,"src":"wedding41_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813432.html","width":130,"caption":"","height":130});
															thumbnails[8813433] = clik.newPhoto({"id":8813433,"src":"wedding42_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813433.html","width":130,"caption":"","height":130});
															thumbnails[8813435] = clik.newPhoto({"id":8813435,"src":"wedding43_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813435.html","width":130,"caption":"","height":130});
															thumbnails[8813436] = clik.newPhoto({"id":8813436,"src":"wedding44_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813436.html","width":130,"caption":"","height":130});
															thumbnails[8813439] = clik.newPhoto({"id":8813439,"src":"wedding45_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813439.html","width":130,"caption":"","height":130});
															thumbnails[8813440] = clik.newPhoto({"id":8813440,"src":"wedding46_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813440.html","width":130,"caption":"","height":130});
															thumbnails[8813442] = clik.newPhoto({"id":8813442,"src":"wedding47_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813442.html","width":130,"caption":"","height":130});
															thumbnails[8813443] = clik.newPhoto({"id":8813443,"src":"wedding48_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813443.html","width":130,"caption":"","height":130});
															thumbnails[8813445] = clik.newPhoto({"id":8813445,"src":"wedding49_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813445.html","width":130,"caption":"","height":130});
															thumbnails[8813449] = clik.newPhoto({"id":8813449,"src":"wedding50_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813449.html","width":130,"caption":"","height":130});
															thumbnails[8813451] = clik.newPhoto({"id":8813451,"src":"wedding51_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813451.html","width":130,"caption":"","height":130});
															thumbnails[8813454] = clik.newPhoto({"id":8813454,"src":"wedding52_thumb.jpg","galleries_id":124232,"server_id":1,"link":"photo_8813454.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[124246] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BABY PHOTOGRAPHY","link":"section162333.html","maxRecords":0.0,"photoIDs":[8832057.0,8832079.0,8832080.0,8832599.0,8832606.0,8832607.0,8832609.0,8860456.0,8860468.0,8860474.0,8860481.0,8860484.0,8860487.0,8860490.0,8812207.0,8812398.0,8812211.0,8812213.0,8812218.0,8812247.0,8812271.0,8812329.0,8812404.0,8812344.0,8812406.0,8812348.0],"skipIndex":0,"section_code":"section162333","featured_images":"8860490,8860487,8860484,8860481,8860474,8860468,8860456,8832609,8832607,8832606","id":124246,"singleSection":true});				  						galleries[460167] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PRIVATE WORK","link":"section557085.html","maxRecords":0.0,"photoIDs":[8732701.0,8732715.0,8732723.0,8732740.0,8732746.0,8732756.0,8732770.0,8732796.0,8732802.0,8732810.0,8732820.0,8732858.0,8732866.0,8732868.0,8732870.0,8732872.0,8732899.0,8732905.0,8732906.0,8732907.0,8732908.0],"skipIndex":0,"section_code":"section557085","featured_images":"8732908,8732907,8732906,8732905,8732899,8732872,8732870,8732868,8732866,8732858","id":460167,"singleSection":true});				  						galleries[124232] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"WEDDING PORTFOLIO","link":"section162322.html","maxRecords":0.0,"photoIDs":[8812537.0,8812538.0,8812541.0,8812544.0,8812546.0,8812547.0,8812550.0,8812553.0,8812556.0,8812558.0,8812560.0,8812562.0,8812714.0,8812717.0,8812760.0,8812783.0,8812785.0,8812787.0,8813074.0,8813075.0,8813078.0,8813079.0,8813080.0,8813082.0,8813083.0,8813172.0,8813174.0,8813175.0,8813177.0,8813179.0,8813181.0,8813187.0,8813188.0,8813189.0,8813191.0,8813192.0,8813193.0,8813194.0,8813195.0,8813429.0,8813432.0,8813433.0,8813435.0,8813436.0,8813439.0,8813440.0,8813442.0,8813443.0,8813445.0,8813449.0,8813451.0,8813454.0],"skipIndex":0,"section_code":"section162322","featured_images":"8813454,8813451,8813449,8813445,8813443,8813442,8813440,8813439,8813436,8813435","id":124232,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8860481,8860468,8832609,8832606,8832080,8832057,8812787,8812760,8812714,8812553,8812544,8812207,8813432,8812213,8812344,8813445,8813449';
imageSets[3] = '8860490,8860487,8860484,8860481,8860474,8860468,8860456,8832609,8832607,8832606,8832599,8832080,8832079,8832057,8813454,8813451,8813449,8813445,8813443,8813442,8813440,8813439,8813436,8813435,8813433,8813432,8813429,8813195,8813194,8813193,8813192,8813191,8813189,8813188,8813187,8813181,8813179,8813177,8813175,8813174,8813172,8813083,8813082,8813080,8813079,8813078,8813075,8813074,8812787,8812785';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chellephoto/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chellephoto/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 += 'section162333.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 && 'section162333' != '') {
					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 = 'Photography by Michelle Sibthorp: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="michellesibthorp@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="michellesibthorp@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

